/* Synepsa — cinematic landing-page candidate v2 (local review only; not approved, not deployed).
   Tokens from Design System v0.2 §5 (Cosmic Navy). Motion values are starting values, not brand standards. */
:root {
  --deep-space:#070A1E; --cosmic-navy:#141B4D; --cosmic-indigo:#3F4ACB;
  --periwinkle:#9AA6FF; --starlight:#F0F2FF;
  --white:#FFFFFF; --black:#000000; --neutral-gray:#5A6372;
  --bg:var(--deep-space); --fg:var(--starlight);
  --muted:rgba(240,242,255,0.72); --soft:rgba(240,242,255,0.88); --border:rgba(240,242,255,0.16);
  --surface:var(--cosmic-navy);
  --font-ui:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --gutter:clamp(22px,4vw,56px); --content:1280px;

  --display:clamp(2.5rem,6vw + 0.6rem,6.25rem);
  --mega:clamp(1.75rem,2.6vw + 0.65rem,3.125rem);
  --colossal:clamp(3rem,10.4vw,10rem);
  --title:clamp(2rem,3vw + 0.9rem,3.875rem);
  --body:clamp(1.1875rem,0.55vw + 1.02rem,1.4375rem);
  --chapter-pad:clamp(72px,11vw,168px);
  --logo-w:clamp(256px,44vw,580px);

  --ease-out:cubic-bezier(.16,1,.3,1);
  --ease-soft:cubic-bezier(.33,1,.68,1);
  --ease-io:cubic-bezier(.65,0,.35,1);
  --t-control:180ms;

  /* Set by the stage module: pointer position (−1…1) and each chapter's scroll progress (0…1). */
  --mx:0; --my:0; --p:0.5;
}
:focus-visible { outline:2px solid var(--periwinkle); outline-offset:4px; }
@media(prefers-reduced-motion:reduce){ *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important;} }

*, *::before, *::after { box-sizing:border-box; }
html { background:var(--bg); -webkit-text-size-adjust:100%; text-size-adjust:100%; scroll-behavior:smooth; }
body {
  margin:0; color:var(--fg);
  font-family:var(--font-ui); font-size:1rem; line-height:1.6; font-weight:400;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
h1, h2, p { margin:0; }
img, svg { display:block; max-width:100%; }
.defs { position:absolute; width:0; height:0; overflow:hidden; }
.accent { color:var(--periwinkle); }
em { font-style:normal; color:var(--periwinkle); }

/* Atmosphere and the two decorative canvases, all behind the content. */
body::before {
  content:""; position:fixed; inset:0; z-index:-3; pointer-events:none;
  background:
    radial-gradient(ellipse 85% 62% at 50% 0%, rgba(20,27,77,0.62) 0%, rgba(20,27,77,0.20) 46%, rgba(20,27,77,0) 76%),
    radial-gradient(ellipse 70% 46% at 50% 118%, rgba(63,74,203,0.11) 0%, rgba(63,74,203,0) 70%);
}
.field, .sculpture {
  position:fixed; top:0; left:0; width:100%; height:100vh; height:100lvh;
  display:block; pointer-events:none;
}
.field { z-index:-2; opacity:1; transition:opacity 700ms var(--ease-soft); }
.field.is-waking { opacity:0; transition:none; }
.field--still {
  position:absolute; height:var(--still-h,100vh);
  -webkit-mask-image:linear-gradient(#000 78%, transparent); mask-image:linear-gradient(#000 78%, transparent);
}
.sculpture { z-index:-1; display:none; }
.motion .sculpture { display:block; }

.visually-hidden {
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}
.skip {
  position:absolute; left:var(--gutter); top:-100px; z-index:20;
  background:var(--starlight); color:var(--deep-space);
  padding:12px 16px; border-radius:8px; text-decoration:none; font-weight:500;
}
.skip:focus { top:16px; }

main > section, .site-footer {
  width:100%; max-width:calc(var(--content) + 2 * var(--gutter));
  margin-inline:auto; padding-inline:var(--gutter);
}
.anchor { position:absolute; left:50%; top:50%; width:1px; height:1px; pointer-events:none; }

/* ---------- Chapter 1: the question ---------- */
.hero {
  position:relative; min-height:100vh; min-height:100svh;
  display:grid; justify-items:center; align-content:center; text-align:center;
  padding-block:clamp(72px,12vh,144px);
}
.display {
  font-size:var(--display); line-height:1.06; font-weight:600; letter-spacing:-0.028em;
  max-width:21ch; text-wrap:balance;
}
.display .line { display:block; }
.display .line + .line { margin-top:0.42em; }
.explore {
  position:absolute; left:50%; bottom:clamp(28px,6vh,60px); transform:translateX(-50%);
  display:inline-flex; align-items:center; gap:10px; min-height:44px; padding:0 22px;
  color:var(--fg); text-decoration:none; font-size:0.9375rem; font-weight:500; letter-spacing:0.02em;
  border:1px solid rgba(154,166,255,0.45); border-radius:999px; background:rgba(7,10,30,0.5);
  transition:border-color var(--t-control) var(--ease-soft), background-color var(--t-control) var(--ease-soft);
}
.explore:hover { border-color:var(--starlight); background:rgba(20,27,77,0.8); }
.explore span { color:var(--periwinkle); }

.chapter { position:relative; padding-block:var(--chapter-pad); }
.stage { position:relative; perspective:1100px; }

.chapter--duo {
  min-height:118vh; display:grid; align-items:center; gap:clamp(24px,4vw,72px);
  grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);
}
.chapter--duo .stage { grid-column:2; grid-row:1; position:sticky; top:9vh; height:82vh; }
.mega {
  grid-column:1; grid-row:1;
  font-size:var(--mega); line-height:1.14; font-weight:500; letter-spacing:-0.024em;
  color:var(--fg); max-width:17ch; text-wrap:balance;
}

/* The human figure: a relief of translucent slices, turned slightly toward the reader. */
.bust, .brain { position:absolute; transform-style:preserve-3d; }
.bust {
  right:-5%; top:50%; height:92%; aspect-ratio:440 / 500;
  transform:translateY(-50%) rotateY(calc(-24deg + var(--mx) * 10deg + (var(--p) - 0.5) * -38deg)) rotateX(calc(var(--my) * -6deg)) scaleX(-1);
  opacity:clamp(0.55, calc(0.25 + var(--p) * 1.5), 1);
}
.bust svg, .brain svg {
  position:absolute; inset:0; width:100%; height:100%; overflow:visible;
  fill:url(#g-form); fill-opacity:0.10; stroke:url(#g-edge); stroke-width:1.5; stroke-opacity:0.55;
  transform:translateZ(calc((var(--k) - 2.5) * 26px)) scale(calc(1 - var(--d) * 0.05));
}
.bust svg:nth-child(1) { --k:0.6; --d:0.7; fill:none; stroke-opacity:0.34; stroke-width:1.2; }
.bust svg:nth-child(2) { --k:2.5; --d:0; fill-opacity:0.26; stroke-opacity:1; stroke-width:2.2; }
.bust svg:nth-child(3) { --k:4.4; --d:0.7; fill-opacity:0.05; stroke-opacity:0.46; stroke-width:1.2; }

/* The machine: a rectilinear stack of frames that extends and turns, behind and beside the figure. */
.machine {
  position:absolute; left:-12%; top:50%; width:66%; aspect-ratio:1; transform-style:preserve-3d;
  transform:translateY(-52%) rotateX(63deg) rotateZ(calc(34deg + var(--p) * 56deg));
  opacity:clamp(0.2, calc(1.3 - var(--p) * 1.6), 0.95);
}
.machine i {
  position:absolute; inset:calc(var(--k) * 2.6%); border:1.5px solid rgba(154,166,255,0.7);
  background:
    linear-gradient(rgba(154,166,255,0.3) 1px, transparent 1px) 0 0 / 100% 12.5%,
    linear-gradient(90deg, rgba(154,166,255,0.3) 1px, transparent 1px) 0 0 / 12.5% 100%,
    rgba(20,27,77,0.22);
  transform:translateZ(calc((var(--k) - 3.5) * (16px + var(--p) * 52px))) rotate(calc(var(--k) * var(--p) * 7deg));
}
.machine i:nth-child(1){--k:0} .machine i:nth-child(2){--k:1} .machine i:nth-child(3){--k:2} .machine i:nth-child(4){--k:3}
.machine i:nth-child(5){--k:4} .machine i:nth-child(6){--k:5} .machine i:nth-child(7){--k:6} .machine i:nth-child(8){--k:7}
.machine i:nth-child(even) { background:rgba(63,74,203,0.16); }

/* ---------- Editorial chapters: copy beside a stage that stays while you read ---------- */
.chapter--split {
  display:grid; align-items:start; gap:clamp(28px,5vw,88px);
  grid-template-columns:minmax(0,1.06fr) minmax(0,0.94fr);
}
.chapter--rev { grid-template-columns:minmax(0,0.94fr) minmax(0,1.06fr); }
.chapter--split .stage { position:sticky; top:10vh; height:80vh; min-height:440px; }
.nb { white-space:nowrap; }
.chapter--rev .copy { grid-column:2; grid-row:1; }
.chapter--rev .stage { grid-column:1; grid-row:1; }
.copy { padding-block:clamp(8px,6vh,72px) clamp(24px,16vh,200px); }
.title {
  font-size:var(--title); line-height:1.06; font-weight:600; letter-spacing:-0.03em;
  text-wrap:balance; margin-bottom:clamp(28px,4vw,56px);
}
.title .accent { display:block; }
.copy p, .columns p {
  font-size:var(--body); line-height:1.58; color:var(--soft); max-width:33em; text-wrap:pretty;
}
.copy p + p { margin-top:1.3em; }
.copy .point, .copy .lede {
  color:var(--fg); font-weight:500; font-size:clamp(1.375rem,1.1vw + 1.05rem,2rem); line-height:1.3; letter-spacing:-0.014em;
}
.copy .point { margin-top:1.6em; padding-left:20px; border-left:2px solid var(--periwinkle); }
.copy .slogan {
  margin-top:1.4em; color:var(--fg); font-weight:600;
  font-size:clamp(1.75rem,2.6vw + 0.7rem,3.25rem); line-height:1.08; letter-spacing:-0.028em;
}
.caption, .tag, .cap {
  font-size:0.75rem; line-height:1rem; font-weight:500; letter-spacing:0.16em; text-transform:uppercase; color:var(--periwinkle);
}
.copy .caption { margin-top:2.2em; font-size:0.75rem; color:var(--periwinkle); }

/* Chapter 2 stage: accumulation becomes relationship. */
.planes__figure {
  position:absolute; left:50%; top:50%; height:74%; transform:translate(-50%,-50%);
  fill:rgba(63,74,203,0.08); stroke:rgba(154,166,255,0.32); stroke-width:1.5;
}
.planes__links { position:absolute; inset:0; width:100%; height:100%; overflow:visible; }
.link {
  fill:none; stroke:var(--periwinkle); stroke-width:1.6; vector-effect:non-scaling-stroke; opacity:var(--link, 1);
}
.link--open { stroke:var(--starlight); stroke-dasharray:5 6; }
.link-mark {
  position:absolute; left:77%; top:47%; width:26px; height:26px; margin:-13px; border-radius:50%;
  display:grid; place-items:center; font-size:0.875rem; font-weight:600; color:var(--deep-space);
  background:var(--starlight); opacity:var(--link, 1); transform:scale(var(--link, 1));
}
.plane {
  position:absolute; left:var(--x); top:var(--y); width:clamp(104px,23%,168px);
  padding:12px 14px 14px; border-radius:12px; margin:0;
  background:rgba(20,27,77,0.78); border:1px solid rgba(154,166,255,0.38);
  transform:translate(-50%,-50%); will-change:transform, opacity;
}
.plane b { display:block; font-size:0.875rem; line-height:1.2; font-weight:600; color:var(--fg); letter-spacing:0.01em; }
.plane i { display:block; height:3px; border-radius:2px; margin-top:8px; background:rgba(240,242,255,0.24); }
.plane i:last-child { width:62%; }
.plane--main { background:rgba(63,74,203,0.5); border-color:var(--starlight); }
.plane--fill { width:clamp(72px,15%,116px); padding:10px 12px 12px; background:rgba(20,27,77,0.5); border-color:rgba(154,166,255,0.2); }
.plane--fill i:first-child { margin-top:0; width:46%; background:rgba(154,166,255,0.4); }

/* Chapter 3 and 5 stages: diagrams that read as stills. */
.model, .case, .map { position:absolute; inset:0; width:100%; height:100%; overflow:visible; font-family:var(--font-ui); }
.node rect { fill:rgba(20,27,77,0.86); stroke:rgba(154,166,255,0.6); stroke-width:1.2; }
.node text, .key text, .far text, .here text { fill:var(--starlight); font-size:15px; font-weight:500; }
.node .sub { fill:rgba(240,242,255,0.72); font-size:12.5px; font-weight:400; }
.n-decision rect, .n-concl rect { fill:rgba(63,74,203,0.5); stroke:var(--starlight); stroke-width:1.6; }
.n-decision text, .n-concl text { font-size:18px; font-weight:600; }
.n-new rect, .n-newstudy rect { stroke:var(--starlight); stroke-dasharray:5 4; }
.edge { fill:none; stroke:rgba(154,166,255,0.62); stroke-width:1.6; }
.edge--changed { stroke:var(--starlight); stroke-dasharray:6 5; }
.mark circle { fill:var(--deep-space); stroke:var(--periwinkle); stroke-width:1.5; }
.mark path { fill:none; stroke:var(--periwinkle); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.mark text { fill:var(--starlight); font-size:13px; font-weight:600; }
.m-q circle { stroke:var(--starlight); }
.m-chg path { fill:var(--starlight); stroke:var(--starlight); }
.archive rect { fill:rgba(20,27,77,0.92); stroke:rgba(154,166,255,0.75); stroke-width:1.4; }
.archive line { stroke:rgba(240,242,255,0.42); stroke-width:3; stroke-linecap:round; }
.archive .cap { fill:var(--starlight); }
svg .cap { fill:var(--periwinkle); font-size:11px; font-weight:500; letter-spacing:0.16em; text-transform:uppercase; }
.key text { fill:rgba(240,242,255,0.8); font-size:13px; font-weight:400; }
.stage--case { display:grid; grid-template-rows:auto 1fr auto; gap:14px; }
.stage--case .case { position:relative; inset:auto; min-height:0; }
.flag rect { fill:var(--starlight); } .flag text { fill:var(--deep-space); font-size:14px; font-weight:600; }
.ask { font-size:clamp(1.125rem,1vw + 0.9rem,1.5rem); line-height:1.3; font-weight:500; color:var(--fg); text-align:center; }

/* ---------- Chapter 4: the shift ---------- */
.chapter--shift { padding-top:clamp(96px,14vw,220px); }
.colossal {
  font-size:var(--colossal); line-height:0.94; font-weight:600; letter-spacing:-0.045em;
  text-align:center; text-wrap:balance; margin-inline:auto; max-width:11ch;
}
.colossal .accent { display:block; }
.shift__grid {
  margin-top:clamp(40px,7vw,112px);
  display:grid; align-items:start; gap:clamp(28px,5vw,88px);
  grid-template-columns:minmax(0,1.1fr) minmax(0,0.9fr);
}
.shift__grid .stage { position:sticky; top:10vh; height:80vh; min-height:420px; }
.brain {
  left:50%; top:50%; width:min(92%,560px); aspect-ratio:460 / 400;
  transform:translate(-50%,-50%) rotateY(calc(18deg + var(--mx) * 12deg + (var(--p) - 0.5) * 60deg)) rotateX(calc(-6deg + var(--my) * -8deg));
}
.brain svg { stroke-width:1.6; }
.brain svg:nth-child(1) { --k:0.4; --d:1.1; fill-opacity:0.06; stroke-opacity:0.4; stroke-width:1.2; }
.brain svg:nth-child(2) { --k:2.5; --d:0; fill-opacity:0.24; stroke-opacity:1; stroke-width:2.2; }
.brain svg:nth-child(3) { --k:4.2; --d:0.9; fill-opacity:0.05; stroke-opacity:0.42; stroke-width:1.2; }
.brain svg:nth-child(4) { --k:3.4; --d:0.2; fill:none; stroke-opacity:0.3; stroke-width:1.2; }
/* Separate perspectives come into relationship around it. */
.views { position:absolute; inset:0; transform-style:preserve-3d; }
.views i {
  position:absolute; left:var(--x); top:var(--y); width:clamp(56px,13%,92px); aspect-ratio:5 / 3.4; margin:-4% 0 0 -6%;
  border-radius:10px; border:1px solid rgba(154,166,255,0.5); background:rgba(20,27,77,0.72);
  --e:clamp(0, calc((var(--p) - 0.18) * 2.6), 1);
  transform:translate3d(calc(var(--ox) * (1 - var(--e))), calc(var(--oy) * (1 - var(--e))), calc(-700px * (1 - var(--e)))) rotateY(calc(var(--r) * (1 - var(--e))));
  opacity:var(--e);
}
.views i::before, .views i::after { content:""; position:absolute; left:14%; height:3px; border-radius:2px; background:rgba(240,242,255,0.3); }
.views i::before { top:30%; width:44%; background:rgba(154,166,255,0.6); } .views i::after { top:56%; width:68%; }
.views i:nth-child(1){--x:12%;--y:18%;--ox:-40vw;--oy:-20vh;--r:70deg} .views i:nth-child(2){--x:86%;--y:14%;--ox:36vw;--oy:-26vh;--r:-80deg}
.views i:nth-child(3){--x:94%;--y:60%;--ox:44vw;--oy:10vh;--r:-60deg} .views i:nth-child(4){--x:70%;--y:90%;--ox:10vw;--oy:40vh;--r:50deg}
.views i:nth-child(5){--x:10%;--y:78%;--ox:-44vw;--oy:24vh;--r:64deg}

/* ---------- The logo's scene ---------- */
.reveal {
  position:relative; min-height:100vh; min-height:100svh;
  display:grid; justify-items:center; align-content:center; row-gap:clamp(20px,3vh,36px); text-align:center;
}
.label {
  font-size:0.8125rem; line-height:1rem; font-weight:500;
  letter-spacing:0.22em; text-indent:0.22em; text-transform:uppercase; color:var(--periwinkle);
}
.logo-frame { position:relative; width:var(--logo-w); max-width:100%; will-change:transform; }
.logo { width:100%; height:auto; }

/* ---------- Chapter 6: agency and the collective ---------- */
.chapter--agency { display:grid; row-gap:clamp(32px,5vw,72px); }
.pair {
  font-size:clamp(2.25rem,6.4vw,6.25rem); line-height:1; font-weight:600; letter-spacing:-0.04em;
  display:grid; row-gap:0.12em;
}
.pair span:first-child { justify-self:start; } .pair span:last-child { justify-self:end; text-align:right; }
.stage--people { height:clamp(280px,44vw,560px); }
.people { position:absolute; inset:0; width:100%; height:100%; overflow:visible; }
.person use { fill:url(#g-form); fill-opacity:0.2; stroke:url(#g-edge); stroke-width:3; stroke-opacity:0.9; }
.p2 use, .p4 use { fill-opacity:0.1; stroke-opacity:0.6; } .p3 use { fill-opacity:0.28; }
.ties path { fill:none; stroke:rgba(154,166,255,0.4); stroke-width:1.4; stroke-dasharray:3 7; }
.note { fill:var(--starlight); stroke:var(--cosmic-indigo); stroke-width:1.5; }
.columns { display:grid; gap:clamp(20px,3vw,48px); grid-template-columns:repeat(3,minmax(0,1fr)); }
.columns p:last-child { color:var(--fg); font-weight:500; }

/* ---------- Chapter 7: three commitments, three stages ---------- */
.chapter--verbs { display:grid; row-gap:clamp(56px,9vw,144px); overflow:visible; }
.verb {
  position:relative; display:grid; align-items:center; column-gap:clamp(20px,4vw,64px); row-gap:14px;
  grid-template-columns:minmax(0,1fr) clamp(150px,24vw,320px); min-height:clamp(320px,62vh,640px);
}
.verb__word {
  grid-column:1 / -1; font-size:clamp(3.5rem,14.5vw,13.5rem); line-height:0.9; font-weight:600; letter-spacing:-0.055em;
}
.verb p { font-size:clamp(1.25rem,1vw + 1rem,1.75rem); line-height:1.4; color:var(--soft); max-width:26em; text-wrap:pretty; }
.verb--amplify { text-align:right; grid-template-columns:clamp(150px,24vw,320px) minmax(0,1fr); }
.verb--amplify .verb__word { color:var(--periwinkle); }
.verb--amplify p { grid-column:2; justify-self:end; } .verb--amplify .verb__art { grid-column:1; grid-row:2; }
.verb--coordinate { text-align:center; grid-template-columns:1fr; justify-items:center; }
.verb__art { width:100%; height:auto; overflow:visible; }
.verb--coordinate .verb__art { width:clamp(200px,30vw,380px); }
.art-form { fill:url(#g-form); fill-opacity:0.22; stroke:url(#g-edge); stroke-width:2.2; }
.art-lines path { fill:none; stroke:var(--periwinkle); stroke-width:1.8; stroke-linecap:round; }
.art-dots circle { fill:var(--starlight); }
/* The closing line of the chapter is a statement, set as one. */
.aside {
  justify-self:center; text-align:center; color:var(--fg); max-width:24em;
  font-size:clamp(1.5rem,2.1vw + 0.8rem,2.75rem); line-height:1.2; font-weight:500; letter-spacing:-0.022em; text-wrap:balance;
}

/* ---------- Chapter 8: the development map ---------- */
.orbit { fill:none; stroke:rgba(154,166,255,0.5); stroke-width:1.4; }
.o2 { stroke-dasharray:2 8; } .o3 { stroke-dasharray:1 10; stroke:rgba(154,166,255,0.4); }
.stage--map .map { inset:9%; width:82%; height:82%; }
.spoke { fill:none; stroke:rgba(154,166,255,0.45); stroke-width:1.2; stroke-dasharray:3 6; }
.here circle { fill:rgba(63,74,203,0.6); stroke:var(--starlight); stroke-width:2; }
.here text { font-size:20px; font-weight:600; } .here .cap { font-size:12px; fill:var(--starlight); }
.far circle { fill:var(--deep-space); stroke:var(--periwinkle); stroke-width:2; }
.far text { font-size:23px; font-weight:600; } .far .cap { font-size:13px; }

/* ---------- Chapter 9: the invitation ---------- */
.closing {
  position:relative; min-height:100vh; min-height:100svh;
  display:grid; justify-items:center; align-content:center; row-gap:clamp(20px,3vw,40px); text-align:center;
  padding-block:var(--chapter-pad) calc(var(--chapter-pad) + 26vh);
}
.colossal--closing { font-size:clamp(1.375rem,3.9vw,4.25rem); line-height:1.06; letter-spacing:-0.032em; max-width:24ch; }
.colossal--closing .humanity { display:block; margin-top:0.36em; color:var(--fg); }
.colossal--closing .claim-line { display:block; margin-top:0; color:var(--periwinkle); font-size:1em; white-space:nowrap; }
@media (max-width:560px) { .colossal--closing .claim-line { white-space:normal; } }
.mission { font-size:clamp(1.375rem,1.6vw + 0.9rem,2.25rem); line-height:1.2; font-weight:500; letter-spacing:-0.016em; color:var(--soft); }
.status { font-size:0.8125rem; line-height:1.25rem; letter-spacing:0.18em; text-indent:0.18em; text-transform:uppercase; color:var(--periwinkle); font-weight:500; }

.registration { border-top:1px solid var(--border); padding-block:clamp(56px,7vw,104px); display:grid; justify-items:center; }
.registration .reading { width:100%; max-width:34rem; }
.registration__title { font-size:1.5rem; line-height:1.875rem; font-weight:600; letter-spacing:-0.012em; }
.registration__text { margin-top:8px; color:var(--muted); font-size:1.0625rem; }
.preview-note { margin-top:24px; padding:12px 16px; border:1px dashed var(--periwinkle); border-radius:12px; font-size:0.875rem; line-height:1.25rem; color:var(--fg); }
.registration__form { margin-top:24px; }
.field-group label { display:block; font-size:0.875rem; line-height:1.25rem; font-weight:500; margin-bottom:8px; }
.field-row { display:flex; gap:12px; }
.field-row input {
  flex:1 1 auto; min-width:0; min-height:48px; padding:12px 16px; font:inherit; font-size:1rem;
  color:var(--fg); background:var(--surface); border:1px solid rgba(240,242,255,0.45); border-radius:12px;
  transition:border-color var(--t-control) var(--ease-soft);
}
.field-row input:hover { border-color:rgba(240,242,255,0.7); }
.field-row input:focus-visible { border-color:var(--periwinkle); }
.field-row input[aria-invalid="true"] { border-color:#FFB4B4; }
.field-row button {
  flex:0 0 auto; min-height:48px; min-width:44px; padding:12px 24px; font:inherit; font-weight:500; font-size:1rem;
  color:var(--deep-space); background:var(--starlight); border:1px solid var(--starlight); border-radius:12px; cursor:pointer;
  transition:background-color var(--t-control) var(--ease-soft), border-color var(--t-control) var(--ease-soft);
}
.field-row button:hover { background:var(--white); border-color:var(--white); }
.registration__captcha { margin-top:16px; min-height:78px; }
.registration__form.is-done .field-group, .registration__form.is-done .registration__captcha { display:none; }
.registration__status.is-success { margin-top:0; padding:16px 20px; border:1px solid var(--periwinkle); border-radius:12px; font-size:1.0625rem; line-height:1.5rem; color:var(--fg); outline:none; }
.hp-field { position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }
.field-row button:disabled { opacity:0.6; cursor:progress; }
.registration__status { min-height:1.25rem; margin-top:12px; font-size:0.875rem; line-height:1.25rem; }
.registration__status.is-error { color:#FFB4B4; } .registration__status.is-info { color:var(--periwinkle); }
.registration__disclosure { margin-top:12px; font-size:0.875rem; line-height:1.375rem; color:var(--muted); }
.registration__disclosure a { color:var(--periwinkle); text-underline-offset:3px; }
.registration__disclosure a:focus-visible { outline:2px solid var(--periwinkle); outline-offset:3px; border-radius:2px; }
.pending-link { text-decoration:underline; text-decoration-style:dotted; text-underline-offset:3px; }

.site-footer {
  padding-block:32px 48px; border-top:1px solid var(--border);
  font-size:0.875rem; line-height:1.25rem; color:var(--muted);
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px 24px;
}
.signature { width:150px; height:auto; margin:-14px 0 -26px -18px; }

/* ---------- Narrow screens: every stage above its text, cropped and composed for the width ---------- */
@media (max-width:899px) {
  .chapter--duo, .chapter--split, .shift__grid { grid-template-columns:minmax(0,1fr); }
  .chapter--duo { min-height:0; }
  .chapter--duo .stage, .chapter--split .stage, .shift__grid .stage {
    position:relative; top:auto; grid-column:1; grid-row:1; height:clamp(320px,62vh,520px); min-height:0;
  }
  .mega, .chapter--split .copy, .chapter--rev .copy, .shift__grid .copy { grid-column:1; grid-row:2; }
  .copy { padding-block:0; }
  .bust { right:50%; transform:translate(50%,-50%) rotateY(calc(-20deg + (var(--p) - 0.5) * -30deg)) scaleX(-1); height:96%; }
  .machine { left:-18%; width:86%; }
  .columns { grid-template-columns:1fr; }
  .verb, .verb--amplify { grid-template-columns:minmax(0,1fr) clamp(96px,30vw,180px); min-height:0; }
  .verb--amplify { grid-template-columns:clamp(96px,30vw,180px) minmax(0,1fr); }
  .verb--coordinate { grid-template-columns:minmax(0,1fr); }
  .stage--people { height:clamp(220px,58vw,420px); }
  .site-footer { padding-bottom:88px; }
}
@media (max-width:560px) {
  .field-row { flex-direction:column; } .field-row button { width:100%; }
  .node text, .key text { font-size:17px; } .n-decision text, .n-concl text { font-size:20px; }
  .key text { font-size:15px; }
}

/* ======================= Motion (only under html.motion) ======================= */

/* Opening: the provocation arrives word by word; a late or missing script can never leave it hidden. */
.opening .display { opacity:0; }
.opening:not(.intro-live) .display { animation:appear 600ms var(--ease-soft) 700ms both; }
.opening.intro-live .display { opacity:1; }
@keyframes appear { from { opacity:0; } to { opacity:1; } }
.motion [data-split] .w { display:inline-block; transform-origin:50% 100%; }
.motion .explore { animation:appear 900ms var(--ease-soft) 3600ms both; }

/* The logo performs when its scene is reached, then breathes. */
.motion .logo-frame:not(.has-played) > .logo, .logo-frame.is-staged > .logo { opacity:0; }
.motion .logo-frame.has-played { animation:breathe 7500ms ease-in-out infinite; }
.motion-paused .logo-frame.has-played { animation-play-state:paused; }
@keyframes breathe { 0%, 100% { scale:1; } 50% { scale:1.055; } }
.logo-stage { position:absolute; inset:0; pointer-events:none; perspective:1000px; perspective-origin:50% 24%; }
.logo-part { position:absolute; inset:0; will-change:transform, opacity; }
.logo-part img { display:block; width:100%; height:100%; }

/* A different arrival for each kind of line. */
.motion [data-reveal] {
  opacity:0; transform:translate3d(0,22px,0);
  transition:opacity 760ms var(--ease-soft), transform 1000ms var(--ease-out);
}
.motion [data-reveal].is-in { opacity:1; transform:none; }
.motion .copy p:nth-of-type(2) { transition-delay:80ms; } .motion .copy p:nth-of-type(3) { transition-delay:160ms; }
.motion .columns p:nth-child(2) { transition-delay:140ms; } .motion .columns p:nth-child(3) { transition-delay:280ms; }

/* wipe: the line is uncovered from left to right. */
.wipe { display:block; }
.motion [data-reveal="wipe"] { opacity:1; transform:none; }
.motion [data-reveal="wipe"] > .wipe { clip-path:inset(-10% 100% -10% 0); transition:clip-path 1900ms var(--ease-io); }
.motion [data-reveal="wipe"].is-in > .wipe { clip-path:inset(-10% 0 -10% 0); }

/* mask: each word rises out of its own line. */
.motion [data-reveal="mask"] { opacity:1; transform:none; }
.motion [data-split="mask"] .w { overflow:hidden; vertical-align:top; padding-bottom:0.12em; margin-bottom:-0.12em; }
.motion [data-split="mask"] .wi { display:inline-block; transform:translate3d(0,112%,0); transition:transform 1050ms var(--ease-out); transition-delay:calc(var(--i) * 55ms); }
.motion [data-split="mask"].is-in .wi { transform:none; }

/* from-left / from-right: the line slides in from the side it speaks from. */
.motion [data-reveal="from-left"] { transform:translate3d(-16vw,0,0); transition-duration:900ms, 1300ms; }
.motion [data-reveal="from-right"] { transform:translate3d(16vw,0,0); transition-duration:900ms, 1300ms; }
.motion .pair [data-reveal="from-right"] { transition-delay:260ms; }

/* zoom: the statement comes toward the reader out of the distance. */
.motion [data-reveal="zoom"] {
  transform:scale(2.3); filter:blur(22px); letter-spacing:0.06em;
  transition:opacity 900ms var(--ease-soft), transform 1700ms var(--ease-out), filter 1300ms var(--ease-soft), letter-spacing 1700ms var(--ease-out);
}
.motion [data-reveal="zoom"].is-in { filter:blur(0); letter-spacing:-0.045em; }

/* track / label: letters draw together. */
.motion [data-reveal="track"] { transform:none; letter-spacing:0.5em; transition:opacity 900ms var(--ease-soft), letter-spacing 1600ms var(--ease-out); }
.motion [data-reveal="track"].is-in { letter-spacing:-0.028em; }
.motion [data-reveal="label"] { transform:none; letter-spacing:0.6em; text-indent:0.6em; transition:opacity 900ms var(--ease-soft), letter-spacing 1400ms var(--ease-out), text-indent 1400ms var(--ease-out); }
.motion [data-reveal="label"].is-in { letter-spacing:0.22em; text-indent:0.22em; }

/* stack: the heading swings down like a panel. */
.motion [data-reveal="stack"] { transform:perspective(900px) rotateX(-78deg); transform-origin:50% 0; transition-duration:700ms, 1300ms; }

/* flip: words turn up out of a blur (the closing echoes the opening). */
.motion [data-reveal="flip"] { opacity:1; transform:none; }
.motion [data-split="flip"] .w {
  opacity:0; filter:blur(10px); transform:perspective(800px) translate3d(0,0.4em,-80px) rotateX(-64deg);
  transition:opacity 900ms var(--ease-soft), transform 1200ms var(--ease-out), filter 900ms var(--ease-soft); transition-delay:calc(var(--i) * 80ms);
}
.motion [data-split="flip"].is-in .w { opacity:1; filter:blur(0); transform:perspective(800px) translate3d(0,0,0) rotateX(0deg); }

/* The three verbs: one from the left, one from the right, one out of the middle. */
.motion [data-reveal="fly-left"] { transform:perspective(1200px) translate3d(-105vw,0,0) rotateY(64deg); transition:opacity 500ms var(--ease-soft), transform 1500ms var(--ease-out); }
.motion [data-reveal="fly-right"] { transform:perspective(1200px) translate3d(105vw,0,0) rotateY(-64deg); transition:opacity 500ms var(--ease-soft), transform 1500ms var(--ease-out); }
.motion [data-reveal="fly-center"] { transform:perspective(1200px) translate3d(0,0,-2400px) scale(0.3); filter:blur(16px); transition:opacity 700ms var(--ease-soft), transform 1600ms var(--ease-out), filter 1200ms var(--ease-soft); }
.motion [data-reveal="fly-center"].is-in { filter:blur(0); }
.motion [data-reveal^="fly-"].is-in { transform:perspective(1200px) translate3d(0,0,0) rotateY(0deg) scale(1); }
.chapter--verbs { overflow-x:clip; }

/* Diagrams explain themselves in steps (classes s1…s4 are added in turn once a diagram is in view). */
.motion [data-steps] .archive, .motion [data-steps] .net .node, .motion [data-steps] .net .edge, .motion [data-steps] .net .mark,
.motion [data-steps] .key, .motion .case .node, .motion .case .edge, .motion .case .mark, .motion .case .flag, .motion .stage--case .ask {
  transition:opacity 800ms var(--ease-soft), transform 1100ms var(--ease-out), stroke-dashoffset 1200ms var(--ease-io);
  transform-box:fill-box; transform-origin:50% 50%;
}
.motion .stage--model:not(.s1) .archive { opacity:0; transform:translate3d(0,-30px,0); }
.motion .stage--model.s2 .archive { opacity:0.9; transform:translate3d(0,-14px,0) scale(0.92); }
.motion .stage--model:not(.s2) .net .node:not(.n-new), .motion .stage--model:not(.s2) .net .m-ok { opacity:0; transform:scale(0.6); }
.motion .stage--model .edge { stroke-dasharray:260; stroke-dashoffset:260; }
.motion .stage--model.s2 .edge:not(.edge--changed) { stroke-dashoffset:0; }
.motion .stage--model:not(.s3) .n-new { opacity:0; transform:translate3d(160px,-120px,0) rotate(14deg); }
.motion .stage--model.s4 .edge--changed { stroke-dasharray:6 5; stroke-dashoffset:0; }
.motion .stage--model:not(.s4) .m-q, .motion .stage--model:not(.s4) .m-chg, .motion .stage--model:not(.s4) .key { opacity:0; }
.motion .stage--model .n-claim { transition-delay:120ms; } .motion .stage--model .n-src { transition-delay:240ms; } .motion .stage--model .n-assume { transition-delay:360ms; }

.motion .stage--case:not(.s1) .node:not(.n-newstudy) { opacity:0; transform:translate3d(0,26px,0); }
.motion .stage--case .edge { stroke-dasharray:300; stroke-dashoffset:300; }
.motion .stage--case.s1 .edge:not(.edge--changed) { stroke-dashoffset:0; transition-delay:500ms; }
.motion .stage--case .n-a { transition-delay:150ms; } .motion .stage--case .n-b { transition-delay:300ms; } .motion .stage--case .n-as { transition-delay:450ms; }
.motion .stage--case:not(.s2) .n-newstudy { opacity:0; transform:translate3d(0,150px,0) scale(0.8); }
.motion .stage--case.s3 .edge--changed { stroke-dasharray:6 5; stroke-dashoffset:0; }
.motion .stage--case:not(.s3) .mark { opacity:0; transform:scale(0.2); }
.motion .stage--case.s3 .n-b rect { stroke:var(--starlight); stroke-dasharray:5 4; }
.motion .stage--case:not(.s4) .flag { opacity:0; transform:translate3d(0,-22px,0); }
.motion .stage--case:not(.s4) .ask { opacity:0; transform:translate3d(0,14px,0); }

/* Verb vignettes and the map draw with their chapter's progress. */
.motion .art-lines path { stroke-dasharray:420; stroke-dashoffset:calc(420 * (1 - clamp(0, (var(--p) - 0.22) * 3, 1))); }
.motion .art-dots circle { opacity:clamp(0, calc((var(--p) - 0.3) * 4), 1); }
.motion .art-form { transform-box:fill-box; transform-origin:50% 50%; transform:scale(calc(0.86 + clamp(0, var(--p) * 1.6, 1) * 0.14)); }
.motion .orbit { transform-box:fill-box; transform-origin:50% 50%; transform:scale(calc(0.5 + clamp(0, (var(--p) - 0.04) * 3.4, 1) * 0.5)) rotate(calc(var(--p) * 40deg)); opacity:clamp(0, calc((var(--p) - 0.03) * 5), 1); }
.motion .far, .motion .spoke { opacity:clamp(0, calc((var(--p) - 0.24) * 6), 1); }
.motion .people .person { transform-box:fill-box; transform-origin:50% 100%; }

/* Pause / play for all ongoing motion (WCAG 2.2.2). Inserted by the field module. */
.motion-toggle {
  position:fixed; right:16px; bottom:16px; z-index:10;
  display:inline-flex; align-items:center; gap:10px; min-height:44px; min-width:44px; padding:0 16px 0 14px;
  font:inherit; font-size:0.8125rem; line-height:1; font-weight:500; letter-spacing:0.01em;
  color:var(--muted); background:rgba(7,10,30,0.86); border:1px solid var(--border); border-radius:999px; cursor:pointer;
  transition:color var(--t-control) var(--ease-soft), border-color var(--t-control) var(--ease-soft);
}
.motion-toggle[hidden] { display:none; }
.motion-toggle:hover { color:var(--fg); border-color:rgba(240,242,255,0.42); }
.motion-toggle__icon { position:relative; width:10px; height:12px; flex:0 0 auto; }
.motion-toggle__icon::before, .motion-toggle__icon::after { content:""; position:absolute; top:0; bottom:0; width:3px; background:currentColor; border-radius:1px; }
.motion-toggle__icon::before { left:0; } .motion-toggle__icon::after { right:0; }
.motion-toggle[aria-pressed="true"] .motion-toggle__icon::before {
  width:0; height:0; background:none; border-radius:0; border-style:solid; border-width:6px 0 6px 10px; border-color:transparent transparent transparent currentColor;
}
.motion-toggle[aria-pressed="true"] .motion-toggle__icon::after { display:none; }
@media (max-width:719px) {
  .motion-toggle { padding:0; justify-content:center; width:44px; opacity:0.78; }
  .motion-toggle__label { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
}

.site-footer a { color:inherit; text-underline-offset:3px; }
.site-footer a:hover { color:var(--fg); }
.site-footer a:focus-visible { outline:2px solid var(--periwinkle); outline-offset:3px; border-radius:2px; }
.footer__x { display:inline-flex; align-items:center; gap:6px; }
.footer__x svg { flex:none; }
.explore--back { position:static; transform:none; margin-top:clamp(40px,6vw,72px); animation:none !important; }
