:root {
  --black:    #080808;
  --surface:  #111014;
  --card:     #16131c;
  --border:   #2a2035;
  --purple:   #5b1f8a;
  --purple-light: #7c3aed;
  --purple-dim:   #2d1150;
  --gold:     #c9922a;
  --gold-light: #e8b84b;
  --gold-dim: #6b4a10;
  --text:     #ede8f5;
  --text-dim: #8b809e;
  --text-faint: #3d3550;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--text);
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── GRAIN OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
  z-index: 9999;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 64px;
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--gold-light); }

/* ── PAGE ENTRY ── */
.page-wrap {
  min-height: 100vh;
  padding-top: 64px;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── LAYOUT ── */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 3rem;
}

.section-sm {
  max-width: 760px;
  margin: 0 auto;
  padding: 5rem 3rem;
}

/* ── DIVIDER ── */
.rule {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── LABELS ── */
.label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* ── HEADINGS ── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  line-height: 1.1;
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--gold);
  color: var(--black);
  border: none;
  padding: 0.75rem 1.75rem;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 0.75rem 1.75rem;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  color: var(--gold-dim);
}

.footer-copy {
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.1em;
}

/* ══════════════════════════════════
   HOME
══════════════════════════════════ */
.home-hero {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 3rem;
  gap: 4rem;
  position: relative;
}

.home-hero::after {
  content: '';
  position: absolute;
  top: 10%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(91,31,138,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
}

.hero-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 5vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 2rem;
}

.hero-headline em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-body {
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.9;
  max-width: 440px;
  margin-bottom: 2.5rem;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.equation-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--purple);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.equation-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--purple) 0%, transparent 100%);
}

.eq-label {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 1rem;
}

.eq-formula {
  font-family: 'Cormorant Garamond', serif;
  font-size: 5rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.eq-formula sup {
  font-size: 2.5rem;
  color: var(--gold);
  vertical-align: super;
}

.eq-expand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

.eq-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

.eq-diagnostic {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.8;
}

.eq-diagnostic strong {
  color: var(--gold-light);
  font-weight: 400;
}

.applies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 3rem;
}

.applies-cell {
  background: var(--surface);
  padding: 2rem;
  transition: background 0.2s;
}

.applies-cell:hover { background: var(--card); }

.applies-tag {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 0.6rem;
}

.applies-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.applies-body {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ══════════════════════════════════
   FRAMEWORK
══════════════════════════════════ */
.fw-hero {
  padding: 5rem 3rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.fw-hero-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.fw-hero-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  max-width: 700px;
  margin-bottom: 1.5rem;
}

.fw-hero-sub {
  font-size: 12px;
  color: var(--text-dim);
  max-width: 500px;
  line-height: 1.9;
}

.fw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
  margin: 3rem 0;
  border: 1px solid var(--border);
}

.fw-card {
  background: var(--surface);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.fw-card::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(91,31,138,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.fw-card-label {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 1rem;
}

.fw-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.fw-card-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.fw-card-body {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.sig-list {
  list-style: none;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

.sig-list li {
  font-size: 11px;
  color: var(--text-dim);
  padding: 0.4rem 0;
  padding-left: 1.2rem;
  position: relative;
  border-bottom: 1px solid rgba(42,32,53,0.5);
}

.sig-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--gold);
}

.layer-stack { margin-top: 2rem; }

.layer-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.layer-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: var(--purple-light);
  line-height: 1;
  padding-top: 0.2rem;
}

.layer-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.layer-body {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.7;
}

.together-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  padding: 3rem;
  margin-top: 2px;
}

.together-block h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

.together-block p {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.9;
  max-width: 720px;
}

.callout {
  background: var(--purple-dim);
  border-left: 3px solid var(--purple-light);
  padding: 2rem;
  margin-top: 1.5rem;
}

.callout-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.callout-sub {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 0.8rem;
}

.callout p {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.8;
}

/* ══════════════════════════════════
   CAPABILITY
══════════════════════════════════ */
.cap-hero {
  padding: 5rem 3rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.cap-hero-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.cap-hero-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  max-width: 600px;
  margin-bottom: 1.5rem;
}

.cap-hero-sub {
  font-size: 12px;
  color: var(--text-dim);
  max-width: 480px;
  line-height: 1.9;
}

.evidence-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  margin: 3rem 0;
}

.evidence-card {
  background: var(--surface);
  padding: 2.5rem 3rem;
  position: relative;
}

.evidence-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--purple);
  opacity: 0;
  transition: opacity 0.2s;
}

.evidence-card:hover::before { opacity: 1; }
.evidence-card:hover { background: var(--card); }

.ev-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

.ev-tag {
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  padding: 0.2rem 0.6rem;
}

.ev-tag-purple {
  background: var(--purple);
  color: var(--text);
}

.ev-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.8rem;
}

.ev-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--gold-light);
  border-left: 2px solid var(--gold-dim);
  padding-left: 1rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.ev-analysis {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.85;
}

.case-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  padding: 3rem;
  margin-bottom: 2px;
  position: relative;
  overflow: hidden;
}

.case-block::after {
  content: 'Et Tu, Gemini';
  position: absolute;
  right: -1rem;
  top: 2rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 4rem;
  color: var(--border);
  letter-spacing: 0.1em;
  pointer-events: none;
  white-space: nowrap;
}

.case-label {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.case-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.case-date {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.case-body {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.9;
  max-width: 640px;
  margin-bottom: 2rem;
}

.revelation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 2rem;
}

.revelation-cell {
  background: var(--surface);
  padding: 1.75rem;
}

.rev-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  color: var(--purple-light);
  margin-bottom: 0.4rem;
}

.rev-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.rev-body {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ══════════════════════════════════
   ENGAGEMENTS
══════════════════════════════════ */
.eng-hero {
  padding: 5rem 3rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.eng-hero-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.eng-hero-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  max-width: 620px;
  margin-bottom: 1.5rem;
}

.eng-hero-sub {
  font-size: 12px;
  color: var(--text-dim);
  max-width: 520px;
  line-height: 1.9;
}

.domain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 3rem;
}

.domain-cell {
  background: var(--surface);
  padding: 1.75rem;
  transition: background 0.2s;
}

.domain-cell:hover { background: var(--card); }

.domain-tag {
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 0.6rem;
}

.domain-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.domain-body {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.7;
}

.eng-types {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 3rem;
}

.eng-card {
  background: var(--surface);
  padding: 2.5rem 3rem;
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 2rem;
  align-items: start;
  transition: background 0.2s;
}

.eng-card:hover { background: var(--card); }

.eng-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  color: var(--purple-light);
  line-height: 1;
}

.eng-card-label {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.eng-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.eng-card-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-dim);
  margin-bottom: 0.8rem;
}

.eng-card-body {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.8;
}

.eng-price {
  text-align: right;
  white-space: nowrap;
}

.price-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--gold-light);
  margin-bottom: 0.2rem;
}

.price-note {
  font-size: 9px;
  color: var(--text-faint);
  letter-spacing: 0.08em;
}

.contact-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  padding: 4rem 3rem;
  margin-top: 2px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.contact-label {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.contact-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.contact-body {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.85;
  max-width: 500px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 200px;
}

.contact-link-block {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
}

.contact-link-label {
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.3rem;
}

.contact-link-value {
  font-size: 12px;
  color: var(--gold-light);
  text-decoration: none;
}

.contact-link-value:hover { text-decoration: underline; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 0 1.5rem; }
  .nav-links { gap: 1.5rem; }
  .home-hero { grid-template-columns: 1fr; padding: 3rem 1.5rem; }
  .fw-grid, .revelation-grid, .applies-grid { grid-template-columns: 1fr; }
  .domain-grid { grid-template-columns: 1fr 1fr; }
  .eng-card { grid-template-columns: 80px 1fr; }
  .eng-price { display: none; }
  .contact-block { grid-template-columns: 1fr; }
  .section, .section-sm, .fw-hero, .cap-hero, .eng-hero { padding: 3rem 1.5rem; }
  footer { flex-direction: column; gap: 0.5rem; text-align: center; }
}
