/* ==========================================================================
   eLova — site styles
   Brand: eLova Brand Book v1.0 · Paper / Ink / Deep / Sand / Stone
   Display: Cormorant Garamond · Text: Inter
   ========================================================================== */

:root {
  --paper: #FAF7F2;
  --paper-2: #F3EEE5;          /* paper, one step deeper — panels */
  --ink: #1A1A1A;
  --deep: #1F2A2E;
  --deep-2: #26343A;
  --sand: #C9B89A;
  --stone: #6B6B6B;

  --line: rgba(26, 26, 26, 0.12);
  --line-strong: rgba(26, 26, 26, 0.28);
  --line-rev: rgba(250, 247, 242, 0.16);

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(96px, 12vw, 168px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--sand); color: var(--ink); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--stone);
  margin: 0 0 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow .num { color: var(--ink); }
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow.plain::before { display: none; }

.display, h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0;
  font-variant-numeric: lining-nums;
}
h1 { font-size: clamp(56px, 9.2vw, 136px); line-height: 0.95; font-weight: 300; }
h2 { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.02; font-weight: 300; }
h3 { font-size: clamp(26px, 2.4vw, 32px); line-height: 1.15; }
.soft { color: var(--stone); }
.on-deep .soft { color: rgba(250, 247, 242, 0.56); }

.lead {
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.6;
  color: var(--ink);
  max-width: 34em;
  margin: 0;
}
p { margin: 0 0 1em; }
.muted { color: var(--stone); }
.small { font-size: 13px; line-height: 1.6; }
.fine { font-size: 12px; line-height: 1.6; color: var(--stone); }

.num-serif { font-family: var(--serif); font-variant-numeric: lining-nums tabular-nums; }

/* ---------- Buttons & links ---------- */

.btn {
  --b: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 26px;
  border: 1px solid var(--b);
  background: var(--b);
  color: var(--paper);
  font: 500 14px/1 var(--sans);
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--ink); }
.on-deep .btn { --b: var(--paper); color: var(--deep); }
.on-deep .btn:hover { background: transparent; color: var(--paper); }
.on-deep .btn.ghost { background: transparent; color: var(--paper); border-color: var(--line-rev); }
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 14px/1 var(--sans);
  letter-spacing: 0.02em;
  text-decoration: none;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
}
.link:hover .arrow { transform: translateX(3px); }
.link .arrow { transition: transform 0.35s var(--ease); }

:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.82);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.brand img { height: 26px; width: auto; }
.brand .endorse {
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--stone);
  padding-left: 16px; border-left: 1px solid var(--line-strong); line-height: 1.2;
}
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.nav-links a {
  font-size: 13px; letter-spacing: 0.02em; text-decoration: none; color: var(--ink);
  opacity: 0.72; transition: opacity 0.3s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; }
.nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.nav .btn { height: 40px; padding: 0 18px; font-size: 13px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-links .mobile-only { display: none; }
.skip:focus { left: 16px !important; top: 12px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 999px; }

@media (max-width: 900px) {
  .brand .endorse { display: none; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav .btn.nav-cta { display: none; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0;
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
  }
  .nav.open .nav-links .mobile-only { display: block; }
  .nav.open .nav-links a { font-size: 22px; font-family: var(--serif); opacity: 1; padding: 10px 0; width: 100%; border-bottom: 1px solid var(--line); }
}

/* ---------- Sections ---------- */

section { position: relative; }
.section { padding: var(--section) 0; }
.section.tight { padding: calc(var(--section) * 0.66) 0; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

.on-deep { background: var(--deep); color: var(--paper); }
.on-deep .eyebrow { color: rgba(250, 247, 242, 0.6); }
.on-deep .eyebrow .num { color: var(--paper); }
.on-deep .lead { color: var(--paper); }
.on-deep .muted { color: rgba(250, 247, 242, 0.62); }

.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }

.head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-bottom: clamp(48px, 6vw, 88px); align-items: end; }
.head h2 { grid-column: 1 / span 7; }
.head .lead { grid-column: 8 / span 5; }
@media (max-width: 900px) {
  .head { grid-template-columns: 1fr; }
  .head h2, .head .lead { grid-column: auto; }
}

/* ---------- Hero ---------- */

.hero { padding-top: clamp(56px, 8vw, 112px); }
.hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: end; }
.hero h1 { margin-bottom: clamp(28px, 3vw, 40px); font-size: clamp(46px, 6.9vw, 100px); line-height: 1; }
@media (min-width: 561px) { .hero h1 span { white-space: nowrap; } }
.hero h1 span { display: block; }
.hero .lead { margin-bottom: 40px; font-size: clamp(18px, 1.6vw, 22px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.result-card {
  background: #fff8;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 28px 22px;
  box-shadow: 0 40px 80px -48px rgba(31, 42, 46, 0.35);
  max-width: 420px;
  justify-self: end;
  width: 100%;
}
.result-card .rc-top { display: flex; align-items: center; gap: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.result-card .ring { width: 96px; height: 96px; flex: none; }
.result-card .rc-score { font-family: var(--serif); font-size: 40px; line-height: 1; }
.result-card .rc-label { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--stone); margin-bottom: 8px; }
.result-card .rc-note { font-size: 13px; color: var(--stone); margin: 6px 0 0; line-height: 1.5; }
.result-card ul { list-style: none; margin: 0; padding: 0; }
.result-card li { display: grid; grid-template-columns: 1fr auto; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); gap: 12px; }
.result-card li:last-child { border-bottom: 0; padding-bottom: 4px; }
.result-card .k { font-size: 14px; }
.result-card .k small { display: block; color: var(--stone); font-size: 12px; margin-top: 2px; }
.result-card .v { font-family: var(--serif); font-size: 30px; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.result-card .v sub { font-family: var(--sans); font-size: 11px; color: var(--stone); vertical-align: baseline; margin-left: 3px; }
.result-card .rc-foot { display: flex; justify-content: space-between; font-size: 11px; color: var(--stone); letter-spacing: 0.04em; margin-top: 12px; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .result-card { justify-self: start; }
}

/* EEG band */
.eeg {
  position: relative;
  margin-top: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.eeg canvas { width: 100%; height: clamp(200px, 22vw, 280px); display: block; }
.eeg-meta {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--stone);
  padding: 16px 0;
}
.eeg-state { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.eeg-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--sand); display: inline-block; animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .eeg-state i { animation: none; } }

/* ---------- Pillars ---------- */

.pillars { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); margin-top: clamp(48px, 6vw, 80px); }
.pillar { padding: 28px 20px 0 0; border-right: 1px solid var(--line); min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; }
.pillar + .pillar { padding-left: 20px; }
.pillar:last-child { border-right: 0; }
.pillar .p-num { font-size: 11px; letter-spacing: 0.2em; color: var(--stone); }
.pillar .p-name { font-family: var(--serif); font-size: clamp(28px, 2.6vw, 38px); line-height: 1.05; color: var(--stone); }
.pillar .p-sub { font-size: 13px; color: var(--stone); margin: 10px 0 0; }
.pillar.is-brain .p-name { color: var(--ink); }
.pillar.is-brain { position: relative; }
.pillar.is-brain::before { content: ""; position: absolute; top: -1px; left: 20px; right: 0; height: 1px; background: var(--ink); }
.pillar .p-mark { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--line-strong); }
.pillar.is-brain .p-mark { background: var(--sand); border-color: var(--sand); }
@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar { min-height: 150px; border-bottom: 1px solid var(--line); padding: 20px 16px 20px 0 !important; }
  .pillar:nth-child(2n) { border-right: 0; padding-left: 16px !important; }
  .pillar:nth-child(2n+1) { padding-left: 0 !important; }
  .pillar.is-brain { grid-column: 1 / -1; border-right: 0; }
  .pillar.is-brain::before { left: 0; }
}

/* ---------- Session / steps ---------- */

.session-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.photo { position: relative; border-radius: 4px; overflow: hidden; background: var(--paper-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption {
  position: absolute; left: 20px; bottom: 18px; right: 20px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(250, 247, 242, 0.85);
}
.session-photo { aspect-ratio: 4 / 5; }
.steps { list-style: none; margin: 40px 0 0; padding: 0; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 64px 1fr; gap: 8px; padding: 26px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps .s-num { font-family: var(--serif); font-size: 22px; color: var(--stone); line-height: 1.3; }
.steps h3 { font-size: 28px; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--stone); max-width: 30em; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.04em; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: transparent;
}
@media (max-width: 860px) {
  .session-grid { grid-template-columns: 1fr; }
  .session-photo { aspect-ratio: 4 / 3.4; }
}

/* ---------- Readings ---------- */

.readings { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.reading { padding: 32px 24px 36px 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.reading + .reading { padding-left: 24px; }
.reading:last-child { border-right: 0; }
.reading .r-k { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--stone); margin-bottom: 40px; display: flex; justify-content: space-between; }
.reading h3 { font-size: clamp(34px, 3.2vw, 46px); font-weight: 300; margin-bottom: 14px; }
.reading p { color: var(--stone); font-size: 15px; margin-bottom: 28px; }
.reading .r-scale { margin-top: auto; }
.r-scale .track { position: relative; height: 1px; background: var(--line-strong); margin: 14px 0 10px; }
.r-scale .track b { position: absolute; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); transform: translateX(-50%); }
.r-scale .track b.sand { background: var(--sand); }
.r-scale .ends { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 0.06em; color: var(--stone); }
.vitality-note {
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  margin-top: 40px; padding: 26px 30px; background: var(--paper-2); border-radius: 4px;
}
.vitality-note .vn-num { font-family: var(--serif); font-size: 54px; line-height: 1; }
.vitality-note .vn-num small { font-family: var(--sans); font-size: 12px; color: var(--stone); margin-left: 4px; }
.vitality-note p { margin: 0; color: var(--stone); max-width: 52em; }
.vitality-note strong { color: var(--ink); font-weight: 500; }
@media (max-width: 960px) {
  .readings { grid-template-columns: 1fr 1fr; }
  .reading { border-bottom: 1px solid var(--line); padding: 28px 18px 32px 0 !important; }
  .reading:nth-child(2n) { border-right: 0; padding-left: 18px !important; }
  .reading .r-k { margin-bottom: 24px; }
}
@media (max-width: 560px) {
  .readings { grid-template-columns: 1fr; }
  .reading { border-right: 0 !important; padding-left: 0 !important; }
  .vitality-note { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- Brain age ---------- */

.ba-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.ba-copy h2 { margin-bottom: 32px; }
.ba-copy .lead { margin-bottom: 28px; }
.ba-copy p.muted { max-width: 30em; }

.ba-visual { border: 1px solid var(--line-rev); border-radius: 4px; padding: clamp(24px, 3.5vw, 48px); background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0)); }
.ba-pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px; }
.ba-pair .k { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(250, 247, 242, 0.56); margin-bottom: 10px; }
.ba-pair .n { font-family: var(--serif); font-weight: 300; font-size: clamp(88px, 11vw, 168px); line-height: 0.82; font-variant-numeric: lining-nums; }
.ba-pair .n.dim { color: rgba(250, 247, 242, 0.34); }
.ba-pair .u { font-size: 13px; color: rgba(250, 247, 242, 0.56); margin-top: 14px; }
.ba-pair .vs { font-family: var(--serif); font-size: 22px; color: rgba(250, 247, 242, 0.4); padding-bottom: 36px; font-style: italic; }
.ba-gap-label { display: flex; justify-content: space-between; align-items: baseline; margin: 44px 0 0; gap: 16px; }
.ba-gap-label .g { font-family: var(--serif); font-size: 30px; }
.ba-gap-label .g em { font-style: normal; color: var(--sand); }
.ba-gap-label .t { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(250, 247, 242, 0.56); }
.gap-scale { margin-top: 18px; }
.gap-scale svg { width: 100%; height: auto; overflow: visible; }
.ba-flow {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 40px;
  border-top: 1px solid var(--line-rev);
}
.ba-flow div { padding: 18px 14px 0 0; font-size: 12px; color: rgba(250, 247, 242, 0.62); line-height: 1.5; }
.ba-flow b { display: block; font-weight: 500; color: var(--paper); font-size: 13px; margin-bottom: 4px; }
.ba-flow span { font-family: var(--serif); color: var(--sand); font-size: 15px; display: block; margin-bottom: 8px; }
@media (max-width: 960px) {
  .ba-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ba-flow { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .ba-pair { gap: 12px; }
  .ba-pair .vs { padding-bottom: 24px; }
  .ba-gap-label { flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 32px; }
}

/* ---------- Report ---------- */

.report-grid { display: grid; grid-template-columns: 4fr 6fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.report-notes { position: sticky; top: 120px; }
.report-notes h2 { margin-bottom: 28px; }
.report-notes .lead { margin-bottom: 36px; }
.notes { list-style: none; margin: 0 0 40px; padding: 0; }
.notes li { display: grid; grid-template-columns: 40px 1fr; padding: 16px 0; border-top: 1px solid var(--line); cursor: default; transition: opacity 0.3s; }
.notes li:last-child { border-bottom: 1px solid var(--line); }
.notes .n-i { font-family: var(--serif); font-size: 18px; color: var(--stone); }
.notes b { font-weight: 500; display: block; font-size: 15px; }
.notes span { color: var(--stone); font-size: 14px; }

.sheets { position: relative; padding: 0 0 8% 0; }
.sheet-frame { position: relative; width: 100%; }
.sheet-frame .sheet-scale { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
.sheets .front { position: relative; z-index: 2; width: 88%; }
.sheets .back { position: absolute; z-index: 1; width: 88%; top: 3%; left: 11%; transform: rotate(2.6deg); transform-origin: 30% 0; }
.sheets .back .sheet { box-shadow: 0 30px 60px -40px rgba(31, 42, 46, 0.4); }
.sheets .back::after { content: ""; position: absolute; inset: 0; background: rgba(250, 247, 242, 0.4); pointer-events: none; }
.sheet-actions { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 960px) {
  .report-grid { grid-template-columns: 1fr; }
  .report-notes { position: static; }
}
@media (max-width: 560px) {
  .sheets .front { width: 100%; }
  .sheets .back { display: none; }
  .sheets { padding: 0; }
}

/* ---------- Venues ---------- */

.venues-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.venues-photo { aspect-ratio: 4 / 3; }
.venue-list { list-style: none; padding: 0; margin: 36px 0 40px; }
.venue-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.venue-list li:last-child { border-bottom: 1px solid var(--line); }
.venue-list .v-n { font-family: var(--serif); font-size: 28px; line-height: 1.1; }
.venue-list .v-s { color: var(--stone); font-size: 13px; text-align: right; }
@media (max-width: 960px) { .venues-grid { grid-template-columns: 1fr; } }

/* ---------- Science teaser / stats ---------- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.stat { padding: 28px 20px 0 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 20px; }
.stat:last-child { border-right: 0; }
.stat .s-n { font-family: var(--serif); font-weight: 300; font-size: clamp(48px, 5vw, 72px); line-height: 1; font-variant-numeric: lining-nums; }
.stat .s-l { color: var(--stone); font-size: 14px; margin-top: 14px; max-width: 18em; }
.on-deep .stats { border-top-color: var(--paper); }
.on-deep .stat { border-right-color: var(--line-rev); }
.on-deep .stat .s-l { color: rgba(250, 247, 242, 0.62); }
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat .s-n { font-size: clamp(36px, 10.5vw, 48px); }
  .stat { padding: 24px 16px 24px 0 !important; border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; padding-left: 16px !important; }
  .on-deep .stat { border-bottom-color: var(--line-rev); }
}

.science-teaser .split-cta { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-top: 56px; flex-wrap: wrap; }
.endorse-line { font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--stone); }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-copy h2 { margin-bottom: 28px; }
.contact-copy .lead { margin-bottom: 40px; }
.contact-direct { border-top: 1px solid var(--line); padding-top: 22px; display: grid; gap: 14px; }
.contact-direct div { display: grid; grid-template-columns: 110px 1fr; font-size: 14px; }
.contact-direct dt, .contact-direct .k { color: var(--stone); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; padding-top: 2px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field label, .field legend { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--stone); padding: 0; }
.field input, .field textarea, .field select {
  font: 400 17px/1.4 var(--sans);
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 10px 0 12px;
  transition: border-color 0.3s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: rgba(107, 107, 107, 0.6); }
.field.invalid input, .field.invalid textarea { border-bottom-color: #8a5a44; }
.field .err { font-size: 12px; color: #8a5a44; min-height: 0; display: none; }
.field.invalid .err { display: block; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.seg { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.seg input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.seg label {
  font-size: 13px; letter-spacing: 0.02em; text-transform: none; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 16px; cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.seg input:checked + label { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.seg input:focus-visible + label { outline: 2px solid var(--sand); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--stone); line-height: 1.5; }
.consent input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.form-status { font-size: 14px; color: var(--stone); margin: 0; }
.form-status.ok { color: var(--ink); }
.form-done { display: none; padding: 40px 0; border-top: 1px solid var(--ink); }
.form-done h3 { font-size: 40px; font-weight: 300; margin-bottom: 12px; }
.sent .form { display: none; }
.sent .form-done { display: block; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

.footer { background: var(--deep); color: var(--paper); padding: clamp(72px, 9vw, 120px) 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 64px; border-bottom: 1px solid var(--line-rev); }
.footer .wm img { height: 56px; width: auto; }
.footer .tagline { font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; margin-top: 22px; color: rgba(250, 247, 242, 0.75); display: flex; align-items: center; gap: 14px; }
.footer .tagline::before { content: ""; width: 36px; height: 1px; background: rgba(250, 247, 242, 0.4); }
.footer h4 { font: 500 11px/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: rgba(250, 247, 242, 0.5); margin: 8px 0 20px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; color: rgba(250, 247, 242, 0.82); font-size: 14px; }
.footer a:hover { color: var(--paper); }
.footer-bottom { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding-top: 28px; font-size: 12px; color: rgba(250, 247, 242, 0.5); line-height: 1.6; }
.footer-bottom .right { text-align: right; }
@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > :first-child { grid-column: 1 / -1; }
  .footer-bottom { grid-template-columns: 1fr; }
  .footer-bottom .right { text-align: left; }
}

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   Science page
   ========================================================================== */

.sci-hero { padding: clamp(64px, 9vw, 128px) 0 clamp(48px, 6vw, 80px); }
.sci-hero h1 { font-size: clamp(56px, 8.4vw, 124px); margin-bottom: 36px; }
.sci-hero .lead { max-width: 36em; }
.sci-hero .meta { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); }
.sci-hero .meta b { color: var(--ink); font-weight: 500; }

.toc { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.toc li { border-bottom: 1px solid var(--line); }
.toc a { display: grid; grid-template-columns: 44px 1fr; padding: 16px 16px 16px 0; text-decoration: none; font-family: var(--serif); font-size: 22px; line-height: 1.25; }
.toc a span { font-family: var(--sans); font-size: 12px; color: var(--stone); padding-top: 6px; }
.toc a:hover { color: var(--stone); }
@media (max-width: 860px) { .toc { grid-template-columns: 1fr; } }

.chapter { padding: var(--section) 0 0; }
.chapter:last-of-type { padding-bottom: var(--section); }
.chapter-grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 6vw, 96px); }
.chapter-grid .side { position: sticky; top: 120px; align-self: start; }
.chapter-grid .side h2 { font-size: clamp(36px, 4.4vw, 60px); }
.prose { font-size: 17px; line-height: 1.75; max-width: 40em; }
.prose p { margin-bottom: 1.2em; }
.prose .lead { font-family: var(--serif); font-size: clamp(26px, 2.4vw, 32px); line-height: 1.3; font-weight: 400; margin-bottom: 1em; max-width: none; }
sup.ref { font-size: 11px; line-height: 0; margin-left: 1px; }
sup.ref a { text-decoration: none; color: var(--stone); }
sup.ref a:hover { color: var(--ink); }
.figure { margin: 48px 0 0; }
.figure img { width: 100%; border-radius: 4px; border: 1px solid var(--line); }
.figure figcaption { margin-top: 14px; font-size: 13px; color: var(--stone); display: flex; gap: 14px; }
.figure figcaption b { font-weight: 500; color: var(--ink); white-space: nowrap; }
@media (max-width: 960px) {
  .chapter-grid { grid-template-columns: 1fr; }
  .chapter-grid .side { position: static; }
}

.capture-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-top: 48px; }
.capture-grid .head-map { background: var(--paper-2); border-radius: 4px; padding: 28px; }
.capture-grid ul { list-style: none; padding: 0; margin: 0; }
.capture-grid li { padding: 16px 0; border-top: 1px solid var(--line); font-size: 15px; }
.capture-grid li:last-child { border-bottom: 1px solid var(--line); }
.capture-grid li b { display: block; font-weight: 500; }
.capture-grid li span { color: var(--stone); font-size: 14px; }
@media (max-width: 760px) { .capture-grid { grid-template-columns: 1fr; } }

.measures { margin-top: 40px; border-top: 1px solid var(--ink); }
.measure { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.measure h3 { font-size: 30px; }
.measure .m-k { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--stone); margin-top: 8px; display: block; }
.measure p { margin: 0 0 12px; }
.measure .markers { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 640px) { .measure { grid-template-columns: 1fr; gap: 10px; } }

.quote-card { background: var(--deep); color: var(--paper); border-radius: 4px; padding: 32px; margin: 40px 0 0; }
.quote-card .eyebrow { color: rgba(250, 247, 242, 0.55); margin-bottom: 18px; }
.quote-card blockquote { margin: 0 0 18px; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3; }
.quote-card p { margin: 0; font-size: 13px; color: rgba(250, 247, 242, 0.62); }
.quote-card a { color: rgba(250, 247, 242, 0.85); }

.tiers { width: 100%; border-collapse: collapse; margin-top: 40px; font-size: 15px; }
.tiers th { text-align: left; font: 500 11px/1.2 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--stone); padding: 0 16px 14px 0; border-bottom: 1px solid var(--ink); }
.tiers td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tiers td:first-child { font-family: var(--serif); font-size: 22px; white-space: nowrap; font-variant-numeric: lining-nums; }
.tiers td:last-child { color: var(--stone); }
@media (max-width: 640px) {
  .tiers thead { display: none; }
  .tiers tr { display: grid; grid-template-columns: 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .tiers td { border: 0; padding: 2px 0; }
}

.dataset { margin-top: 48px; }
.partners { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.boundary { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 40px; border-top: 1px solid var(--ink); }
.boundary div { padding: 18px 20px 18px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.boundary div:nth-child(2n) { padding-left: 20px; border-left: 1px solid var(--line); }
@media (max-width: 640px) { .boundary { grid-template-columns: 1fr; } .boundary div:nth-child(2n) { padding-left: 0; border-left: 0; } }

.refs { list-style: none; counter-reset: r; padding: 0; margin: 40px 0 0; border-top: 1px solid var(--ink); }
.refs li { counter-increment: r; display: grid; grid-template-columns: 44px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.6; color: var(--ink); }
.refs li::before { content: counter(r, decimal-leading-zero); font-family: var(--serif); font-size: 16px; color: var(--stone); }
.refs li:target { background: var(--paper-2); }
.refs a { color: var(--stone); word-break: break-word; }

.cta-band { padding: clamp(80px, 10vw, 140px) 0; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; }
.cta-band h2 { max-width: 12em; }


/* ---------- The question: how you feel vs what it shows ---------- */

.q-em { font-style: italic; font-weight: 400; color: var(--stone); }
.compare { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.c-col { padding: 32px 32px 8px 0; }
.c-col.is-shows { padding-left: 32px; border-left: 1px solid var(--line); }
.c-k { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--stone); margin: 0 0 18px; }
.moods, .shows { list-style: none; margin: 0; padding: 0; }
.moods li { font-family: var(--serif); font-style: italic; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.25; color: var(--stone); opacity: 0.75; }
.moods li:nth-child(2) { opacity: 0.6; } .moods li:nth-child(3) { opacity: 0.48; } .moods li:nth-child(4) { opacity: 0.36; }
.shows li { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.shows li:last-child { border-bottom: 0; }
.shows span { font-family: var(--serif); font-size: clamp(28px, 2.8vw, 38px); }
.shows b { font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 3.6vw, 52px); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.shows b small { font-family: var(--sans); font-size: 12px; color: var(--stone); margin-left: 4px; }
@media (max-width: 700px) {
  .compare { grid-template-columns: 1fr; }
  .c-col.is-shows { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- How it works: any EEG ---------- */

.devices { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.devices figure { margin: 0; padding: 36px 20px 28px; border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; text-align: center; }
.devices figure:last-child { border-right: 0; }
.devices img { width: 100%; max-width: 170px; height: auto; }
.devices figcaption { margin-top: 18px; display: grid; gap: 4px; }
.devices figcaption b { font-weight: 500; font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; }
.devices figcaption span { color: var(--stone); font-size: 14px; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.flow li { padding: 28px 24px 30px 0; }
.flow li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.flow .s-num { font-family: var(--serif); font-size: 20px; color: var(--stone); }
.flow h3 { font-size: 30px; margin: 6px 0 8px; }
.flow p { margin: 0; color: var(--stone); max-width: 26em; }
.statement { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.15; text-align: center; margin: clamp(56px, 7vw, 96px) 0 0; color: var(--stone); letter-spacing: -0.01em; }
.statement span { color: var(--ink); display: inline-block; }
@media (max-width: 860px) {
  .devices { grid-template-columns: 1fr 1fr; }
  .devices figure:nth-child(2) { border-right: 0; }
  .devices figure:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .flow { grid-template-columns: 1fr; }
  .flow li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Who it's for ---------- */

.audiences { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.audiences article { padding: 30px 24px 34px 0; border-right: 1px solid var(--line); }
.audiences article + article { padding-left: 24px; }
.audiences article:last-child { border-right: 0; }
.audiences .a-k { font-family: var(--serif); font-size: 20px; color: var(--stone); }
.audiences h3 { font-size: clamp(30px, 2.8vw, 38px); font-weight: 300; margin: 26px 0 12px; }
.audiences p { color: var(--stone); font-size: 15px; margin: 0; }
@media (max-width: 960px) {
  .audiences { grid-template-columns: 1fr 1fr; }
  .audiences article { border-bottom: 1px solid var(--line); padding: 26px 18px 30px 0 !important; }
  .audiences article:nth-child(2n) { border-right: 0; padding-left: 18px !important; }
}
@media (max-width: 560px) {
  .audiences { grid-template-columns: 1fr; }
  .audiences article { border-right: 0 !important; padding-left: 0 !important; }
}

/* ---------- Team ---------- */
.team { padding: 0 0 clamp(80px, 10vw, 140px); }
.team-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: end; padding-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line); }
.portrait { margin: 0; }
/* Warm monochrome so the portrait sits in the Paper / Ink palette. Remove the filter to show it in colour. */
.portrait img { display: block; width: 100%; height: auto; border-radius: 4px; filter: grayscale(1) sepia(0.16) contrast(1.02) brightness(1.06); }
.person h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(48px, 6.4vw, 96px); line-height: 1; letter-spacing: -0.015em; margin: 0 0 18px; }
.person .role { margin: 0 0 40px; font-size: 13px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--stone); }
@media (max-width: 760px) {
  .team-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 440px; }
}
