/* Cinematic layer (16/10/2026). Additive and decorative: removing this file and motion.js
   leaves the approved narrative, its states and its honesty qualifiers untouched.
   Everything that moves here has a readable final state (reduced motion, pause, no JS). */
:root{--ease-move:cubic-bezier(.77,0,.175,1);--sheet-r:44px}

/* Stacked sheets: each chapter slides over the previous one like a card on a table. */
.section:not(#problem){border-radius:var(--sheet-r) var(--sheet-r) 0 0;margin-top:calc(var(--sheet-r) * -1)}
.universe{background:var(--paper)}

/* Opening curtain: pure CSS, plays once over content that is already rendered and usable. */
.curtain{position:fixed;inset:0;z-index:100;display:grid;place-items:center;pointer-events:none;background:radial-gradient(ellipse 60% 50% at 50% 55%,#3a1f8f 0%,#1b1130 55%,var(--night) 100%);color:#fff;animation:curtain-wipe 1.95s var(--ease-move) forwards}
.curtain-inner{display:grid;justify-items:center;gap:18px;padding:0 24px;text-align:center}
.curtain-inner img{width:72px;height:72px;animation:cur-pop .8s .05s var(--ease-out) both}
.curtain-word{display:flex;align-items:baseline;font:700 clamp(72px,17vw,220px)/.9 'Space Grotesk',sans-serif;letter-spacing:-.05em;max-width:none}
.curtain-word span{display:inline-block;animation:cur-letter .8s var(--ease-out) both}
.curtain-word span:nth-child(1){animation-delay:.12s}.curtain-word span:nth-child(2){animation-delay:.2s}.curtain-word span:nth-child(3){animation-delay:.28s}.curtain-word span:nth-child(4){animation-delay:.36s}
.curtain-word small{font-size:.2em;letter-spacing:-.02em;color:var(--yellow);margin-left:.15em;animation:cur-fade .6s .55s var(--ease-out) both}
.curtain-line{font-size:15px;color:var(--text-night-2);letter-spacing:.02em;animation:cur-fade .6s .65s var(--ease-out) both}
@keyframes cur-letter{from{transform:translateY(105%) rotate(6deg);opacity:0}to{transform:none;opacity:1}}
@keyframes cur-fade{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes cur-pop{from{opacity:0;transform:scale(.6) rotate(-14deg)}to{opacity:1;transform:none}}
@keyframes curtain-wipe{0%,64%{clip-path:inset(0);visibility:visible}99%{clip-path:inset(0 0 100% 0);visibility:visible}100%{clip-path:inset(0 0 100% 0);visibility:hidden}}
@media(prefers-reduced-motion:reduce){.curtain{display:none}}
.motion-off .curtain{display:none}

/* Scroll progress, chapter rail and the motion control */
.progress{position:fixed;inset:0 0 auto;height:3px;z-index:60;background:linear-gradient(90deg,var(--violet),var(--yellow));transform-origin:0 50%;transform:scaleX(var(--p,0));pointer-events:none}
.rail,.motion-dock{display:none}
.enhanced .motion-dock{display:flex}
.rail{position:fixed;right:10px;top:50%;transform:translateY(-50%);z-index:25;--rail-c:#fff}
.rail[data-tone=day],.rail[data-tone=sun]{--rail-c:var(--ink)}
.rail ol{display:grid}
.rail a{position:relative;display:flex;align-items:center;justify-content:flex-end;height:44px;padding:0 36px 0 12px;text-decoration:none;color:transparent;transition:color 180ms ease;white-space:nowrap;font:600 12px/1 'Space Grotesk',sans-serif;letter-spacing:.06em;text-transform:uppercase}
.rail a:hover::after,.rail a:focus-visible::after{opacity:1;transform:scale(1.4)}
.rail a::after{content:'';position:absolute;right:14px;top:50%;width:8px;height:8px;margin-top:-4px;border-radius:50%;background:var(--rail-c);opacity:.38;transition:transform 220ms var(--ease-out),opacity 180ms ease}
.rail a[aria-current]{color:transparent}
.rail a[aria-current]::after{opacity:1;transform:scale(1.7)}
.rail a:focus-visible{outline-color:var(--violet-ink)}
.rail[data-tone=night] a:focus-visible{outline-color:var(--yellow)}
@media(min-width:1200px){.enhanced .rail{display:block}}
.motion-dock{position:fixed;left:18px;bottom:18px;transition:transform 300ms var(--ease-out);z-index:25;align-items:center;gap:12px;min-height:44px;padding:6px 18px 6px 14px;border-radius:999px;background:#120e1dcc;color:#fff;box-shadow:inset 0 0 0 1px #ffffff2e,0 12px 30px -10px #0008;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.motion-dock:focus-visible{outline-color:var(--yellow)}
.motion-dock.lift{transform:translateY(-104px)}
.dock-bars{display:flex;align-items:end;gap:3px;height:16px}
.dock-bars i{display:block;width:3px;height:100%;border-radius:2px;background:var(--yellow);transform-origin:50% 100%;animation:dock-bar 1.1s ease-in-out infinite alternate}
.dock-bars i:nth-child(2){animation-delay:.25s}.dock-bars i:nth-child(3){animation-delay:.5s}
.dock-text{display:grid;text-align:left;line-height:1.15}
.dock-text small{font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--text-night-2)}
.dock-text b{font-size:13px;font-weight:600}
.motion-dock[aria-pressed=true] .dock-bars i,.motion-off .dock-bars i{animation:none;transform:scaleY(.3);background:var(--text-night-2)}
@keyframes dock-bar{from{transform:scaleY(.25)}to{transform:scaleY(1)}}
/* Phones: the fixed pill would sit over chat choices and demo controls. The header toggle stays. */
@media(max-width:680px){.enhanced .motion-dock{display:none}}

/* Opening: the outlined wordmark sits behind the portrait, a dashed orbit frames the face */
.hero{position:relative}
.hero-word{position:absolute;right:-2vw;top:7%;z-index:0;font:700 clamp(160px,21vw,360px)/.8 'Space Grotesk',sans-serif;letter-spacing:-.06em;color:transparent;-webkit-text-stroke:1.5px #b9a4ff2e;pointer-events:none;user-select:none;white-space:nowrap}
.hero-copy,.hero-visual{z-index:2}
.hero-orbit{position:absolute;left:50%;top:42%;width:122%;aspect-ratio:1;translate:-50% -50%;border-radius:50%;border:1.5px dashed #b9a4ff40;pointer-events:none;animation:orbit 90s linear infinite}
.hero-orbit i{position:absolute;left:50%;top:0;width:10px;height:10px;margin:-5px 0 0 -5px;border-radius:50%;background:var(--yellow);box-shadow:0 0 0 6px #f4ff6226}
@keyframes orbit{to{rotate:360deg}}
.motion-off .hero-orbit{animation:none}
/* Live: the badge pulses, crowns float up like reactions, the chat climbs and Gali types her replies.
   Everything here is hidden or static without JS: the full chat is already in the page. */
.live-badge i{animation:livepulse 1.6s ease-in-out infinite}
@keyframes livepulse{50%{transform:scale(.55);opacity:.5}}
.stream-reactions img{animation:reaction 5.5s ease-out infinite}
.stream-reactions img:nth-child(2){animation-delay:1.9s;right:14px}
.stream-reactions img:nth-child(3){animation-delay:3.6s;right:4px}
@keyframes reaction{0%{opacity:0;transform:translateY(0) scale(.6)}12%{opacity:.95}100%{opacity:0;transform:translateY(-190px) scale(1.15) rotate(12deg)}}
.motion-off .live-badge i,.motion-off .stream-reactions img{animation:none}
.chat-wait{display:none}
/* Typewriter: the full text stays in the DOM; the rest is only hidden, so messages never resize. */
.tw-off{visibility:hidden}
.is-writing .tw-on::after{content:'';display:inline-block;width:2px;height:1em;margin-left:2px;vertical-align:-.15em;background:currentColor;animation:caret 1s steps(1) infinite}
@keyframes caret{50%{opacity:0}}
.portrait-invite img{will-change:transform}

/* Ribbon: the thesis as a band that scrolls with the page and leans into it */
.marquee{position:relative;z-index:6;margin-block:-72px;padding-block:44px;overflow:hidden;overflow:clip;pointer-events:none}
.marquee-band{width:110%;margin-left:-5%;transform:rotate(-2deg);background:var(--yellow);color:var(--ink);box-shadow:0 20px 50px -20px #1110168a;overflow:hidden;overflow:clip}
.marquee-shift{will-change:transform}
.marquee-track{display:flex;width:max-content;animation:marquee 46s linear infinite}
.marquee.is-away .marquee-track{animation-play-state:paused}
.mq-group{display:flex;align-items:center;gap:clamp(24px,3vw,48px);padding:clamp(14px,2vw,26px) clamp(12px,1.5vw,24px);font:700 clamp(40px,7.6vw,118px)/1 'Space Grotesk',sans-serif;letter-spacing:-.045em;white-space:nowrap}
.mq-group img{width:.85em;height:.85em;flex:none}
.mq-out{color:transparent;-webkit-text-stroke:2px var(--ink)}
@keyframes marquee{to{transform:translateX(-50%)}}
.motion-off .marquee-track{animation:none}
@media(max-width:680px){.marquee{margin-block:-48px;padding-block:32px}.mq-out{-webkit-text-stroke-width:1.5px}}

/* Headlines: words rise out of a mask. Final state is the plain heading. */
.wi-mask{vertical-align:top;padding:0 .05em .14em!important;margin:0 -.05em -.14em}
.wi{display:inline-block}
.cin .wi{will-change:transform}
#problem h2 em{--sweep:100%;background:linear-gradient(var(--yellow),var(--yellow)) 0 90%/var(--sweep) .34em no-repeat}

/* Cycle: the halo keeps turning; the stage pins on desktop and scrolling walks the loop */
.cycle-track .halo{stroke:var(--violet-soft);stroke-width:1.5;stroke-dasharray:2 12;opacity:.55;transform-box:fill-box;transform-origin:center;animation:spin 120s linear infinite}
.cycle-ring{--ring-glow:#7445ff2e}
.cycle-core{box-shadow:0 0 0 14px var(--ring-glow),0 0 0 34px #7445ff14}
.cycle-core::after{content:'';position:absolute;inset:-16%;border-radius:50%;border:1.5px solid var(--violet-soft);opacity:.5;animation:breathe 5s ease-in-out infinite;pointer-events:none}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes breathe{50%{transform:scale(1.14);opacity:0}}
.motion-off .cycle-track .halo,.motion-off .cycle-core::after,.motion-off .network-lines circle{animation:none}

/* Network: orbits drift and signals leave the center */
.network-lines circle{transform-box:fill-box;transform-origin:center;animation:spin 140s linear infinite}
.network-lines circle:nth-of-type(2){animation-direction:reverse;animation-duration:110s}
.net-pulse{fill:var(--violet);pointer-events:none}

/* Cards: numbering only (the pointer light was removed, 16/10/2026) */
.pain-grid li,.trust-grid li{position:relative;isolation:isolate}
.trust-grid{counter-reset:t}
.trust-grid li::before{counter-increment:t;content:'0' counter(t);position:absolute;right:26px;top:20px;font:600 13px/1 'Space Grotesk',sans-serif;letter-spacing:.14em;color:var(--violet-soft)}

/* Closing: the invitation gets a pulse of its own */
.partner-email{will-change:transform}
.partners .jacket-emblem{will-change:transform}

@media(max-width:900px){:root{--sheet-r:32px}}
@media(max-width:680px){:root{--sheet-r:26px}.hero-word{font-size:48vw;top:auto;bottom:-7vw;right:-4vw}.hero-orbit{width:112%;top:38%}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:1ms!important;animation-iteration-count:1!important;animation-delay:0ms!important}.marquee-track{transform:none}}
