:root {
  --cinema-night: #020813;
  --cinema-navy: #071d3c;
  --cinema-blue: #6d9dca;
  --cinema-reveal-blue: #9fcdf4;
  --cinema-gold: #c3a06b;
}

body.cinematic-edition { overflow-x: clip; background: var(--paper); }
body.cinematic-edition section[id] { scroll-margin-top: 78px; }
.cinematic-edition .site-header { color: white; background: rgba(2,8,19,.48); border-bottom-color: rgba(255,255,255,.1); backdrop-filter: blur(22px) saturate(130%); transition: color .35s, background .35s, border-color .35s; }
.cinematic-edition .site-header .brand-mark { border-color: rgba(255,255,255,.5); }
.cinematic-edition .site-header nav a:not(.nav-cta):hover { color: #a8c8e7; }
.cinematic-edition .site-header .nav-cta { color: var(--navy); background: var(--ivory); }
.cinematic-edition .site-header .nav-cta:hover { background: white; }
.cinematic-edition .site-header.over-light { color: var(--ink); background: rgba(251,248,241,.9); border-bottom-color: var(--line); }
.cinematic-edition .site-header.over-light .brand-mark { border-color: var(--ink); }
.cinematic-edition .site-header.over-light .nav-cta { color: var(--ivory); background: var(--navy); }
.cinematic-edition .menu-toggle { color: inherit; border-color: currentColor; }

.cinematic-prologue { height: 440vh; position: relative; color: white; background: var(--cinema-night); }
.cinematic-sticky { height: 100svh; min-height: 640px; position: sticky; top: 0; overflow: hidden; isolation: isolate; }
.cinematic-sticky::after { content: ''; position: absolute; inset: auto 0 0; height: 24vh; pointer-events: none; background: linear-gradient(transparent, rgba(2,8,19,.9)); z-index: 8; }
.cinematic-atmosphere { position: absolute; inset: 0; overflow: hidden; z-index: -2; background: radial-gradient(circle at 50% 46%, rgba(35,78,120,.32), transparent 31%), radial-gradient(circle at 50% 90%, rgba(184,149,93,.12), transparent 35%), linear-gradient(#020813, #041126 65%, #020813); }
.cinematic-atmosphere::before { content: ''; position: absolute; width: 60vw; aspect-ratio: 1; left: 50%; top: 48%; translate: -50% -50%; border: 1px solid rgba(126,165,202,.16); border-radius: 50%; box-shadow: 0 0 0 9vw rgba(126,165,202,.025), 0 0 0 18vw rgba(126,165,202,.015); transform: scale(calc(.72 + var(--cinema-progress, 0) * .52)); opacity: calc(.45 + var(--cinema-progress, 0) * .3); }
.cinematic-atmosphere i { position: absolute; display: block; background: linear-gradient(90deg, transparent, rgba(255,255,255,.32), transparent); height: 1px; width: 38vw; opacity: .28; }
.cinematic-atmosphere i:nth-child(1) { left: -8vw; top: 31%; transform: rotate(-12deg); }
.cinematic-atmosphere i:nth-child(2) { right: -10vw; top: 58%; transform: rotate(14deg); }
.cinematic-atmosphere i:nth-child(3) { left: 30%; bottom: 14%; width: 44vw; opacity: .12; }

.skip-story { position: absolute; right: clamp(22px,5vw,76px); top: 102px; z-index: 15; color: #a7b6c8; text-decoration: none; text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; font-weight: 800; }
.skip-story:hover { color: white; }
.cinematic-lockup { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; z-index: 3; opacity: var(--lockup-opacity, 1); transform: translateY(var(--lockup-y, 0)) scale(var(--lockup-scale, 1)); will-change: opacity, transform; }
.cinematic-lockup p, .cinematic-lockup span { margin: 0; text-transform: uppercase; letter-spacing: .24em; font-size: clamp(.66rem,1vw,.8rem); color: #93a8bf; font-weight: 700; }
.cinematic-lockup h1 { max-width: none; margin: 22px 0 24px; color: #f8f4eb; font-size: clamp(5rem,13vw,13rem); line-height: .72; letter-spacing: -.075em; text-shadow: 0 8px 50px rgba(0,0,0,.45); }
.cinematic-lockup h1::first-line { color: white; }

.cinematic-book { position: absolute; left: 50%; top: 50%; width: clamp(180px,26vw,410px); aspect-ratio: 1365/2048; z-index: 4; opacity: var(--book-opacity, 0); transform: translate3d(calc(-50% + var(--book-x, 0px)), calc(-50% + var(--book-y, 0px)), 0) perspective(1400px) rotateY(var(--book-rotate-y, -14deg)) rotateX(var(--book-rotate-x, 2deg)) scale(var(--book-scale, .58)); transform-origin: center; filter: drop-shadow(34px 45px 44px rgba(0,0,0,.55)) brightness(var(--book-brightness, .72)); will-change: transform, opacity, filter; }
.cinematic-book img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 2; }
.cinematic-book-spine { position: absolute; right: 99.2%; top: 1%; width: 7%; height: 98%; transform: perspective(500px) rotateY(-62deg); transform-origin: right; background: linear-gradient(90deg,#020a17,#153458); box-shadow: inset 1px 0 rgba(255,255,255,.16); z-index: 1; }

.cinematic-beats { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.cinematic-beat { position: absolute; width: min(700px,43vw); margin: 0; font-family: var(--serif); font-size: clamp(3.25rem,6vw,7.2rem); line-height: .92; letter-spacing: -.055em; color: #f8f4eb; opacity: 0; transform: translate3d(var(--beat-x,0), var(--beat-y,40px),0) scale(var(--beat-scale,.96)); filter: blur(var(--beat-blur,10px)); will-change: transform, opacity, filter; }
.cinematic-beat small { display: block; margin-bottom: 20px; font-family: var(--sans); text-transform: uppercase; letter-spacing: .2em; font-size: .68rem; line-height: 1.4; color: #8ba2ba; font-weight: 800; }
.cinematic-beat em { color: var(--cinema-blue); font-weight: 400; }
.beat-left { left: 7vw; top: 35%; text-align: left; }
.beat-right { right: 7vw; top: 35%; text-align: right; }
.beat-center { left: 50%; top: 43%; translate: -50% -50%; width: min(1200px,86vw); text-align: center; color: var(--cinema-reveal-blue); text-shadow: 0 3px 24px rgba(2,8,19,.96), 0 1px 4px #020813; }
.final-reveal-line { color: var(--cinema-reveal-blue); }
.final-reveal-emphasis { font-style: italic; }

.cinematic-arrival { position: absolute; left: 50%; bottom: clamp(64px,9vh,110px); translate: -50% 0; z-index: 10; width: min(920px,86vw); text-align: center; opacity: 0; transform: translateY(28px); will-change: transform, opacity; }
.cinematic-arrival p { margin: 0 auto 26px; max-width: 760px; color: #c2ceda; font-family: var(--serif); font-size: clamp(1.05rem,1.7vw,1.45rem); }
.cinematic-arrival > div { display: flex; justify-content: center; align-items: center; gap: 24px; flex-wrap: wrap; }
.cinematic-text-link { color: white; text-decoration: none; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 800; }
.cinematic-progress { position: absolute; right: clamp(22px,4vw,60px); top: 50%; translate: 0 -50%; z-index: 12; display: grid; gap: 9px; }
.cinematic-progress i { width: 2px; height: 28px; background: rgba(255,255,255,.18); transition: height .3s, background .3s; }
.cinematic-progress i.active { height: 52px; background: var(--cinema-gold); }
.scroll-cue { position: absolute; z-index: 12; bottom: 28px; left: 50%; translate: -50% 0; margin: 0; display: flex; gap: 10px; align-items: center; color: #73879d; text-transform: uppercase; letter-spacing: .18em; font-size: .62rem; font-weight: 800; opacity: 1; }
.scroll-cue span { display: block; width: 1px; height: 32px; background: linear-gradient(white,transparent); animation: scrollPulse 1.8s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100% { transform: scaleY(.35); transform-origin: top; opacity: .35; } 50% { transform: scaleY(1); opacity: 1; } }

.cinematic-edition .product-hero { background: radial-gradient(circle at 78% 42%, rgba(126,165,202,.14), transparent 25%), var(--paper); }
.cinematic-edition .product-hero::before { content: 'THE BOOK'; position: absolute; left: clamp(22px,7vw,110px); top: 34px; color: rgba(11,33,66,.32); letter-spacing: .22em; font-size: .65rem; font-weight: 800; }
.cinematic-edition .product-hero .hero-copy { max-width: 900px; }
.cinematic-edition .product-hero .hero-heading { margin: 0 0 28px; max-width: 880px; font-size: clamp(3.15rem,6.5vw,7.2rem); line-height: .98; letter-spacing: -.055em; }
.cinematic-edition .product-hero .hero-heading em { color: #355e87; font-weight: 400; }
.cinematic-edition .signal-strip { position: relative; z-index: 2; }
.cinematic-edition .reveal { opacity: 0; transform: translateY(70px) scale(.985); filter: blur(10px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1), filter .9s; }
.cinematic-edition .reveal.visible { opacity: 1; transform: none; filter: none; }
.cinematic-edition .system-workbench, .cinematic-edition .workbook-shell { box-shadow: 0 55px 120px rgba(0,0,0,.34); }
.cinematic-edition .manifesto h2, .cinematic-edition .section-heading h2 { text-wrap: balance; }
.cinematic-edition .power-card, .cinematic-edition .framework-card { overflow: hidden; }
.cinematic-edition .power-card::after, .cinematic-edition .framework-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.45) 48%, transparent 66%); translate: -130% 0; transition: translate .8s ease; }
.cinematic-edition .power-card, .cinematic-edition .framework-card { position: relative; }
.cinematic-edition .power-card:hover::after, .cinematic-edition .framework-card:hover::after { translate: 130% 0; }
.cinematic-edition .about { min-height: 100svh; }
.cinematic-edition .author-photo img { transform: scale(var(--author-scale,1.04)); transform-origin: center 25%; transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }

@media (max-width: 900px) {
  .cinematic-prologue { height: 420svh; }
  .cinematic-sticky { height: 100svh; min-height: 0; }
  .cinematic-edition .site-header { background: rgba(2,8,19,.88); }
  .cinematic-edition .site-header.over-light { background: rgba(251,248,241,.94); }
  .cinematic-edition .site-header nav { color: var(--ink); }
  .cinematic-edition .site-header nav .nav-cta { color: var(--ivory); background: var(--navy); }
  .skip-story { top: 84px; }
  .cinematic-lockup h1 { font-size: clamp(4.5rem,22vw,9rem); }
  .cinematic-book { top: 54%; width: clamp(158px,42vw,270px); }
  .cinematic-beat { width: calc(100vw - 40px); max-width: 680px; font-size: clamp(2.75rem,10.5vw,5.2rem); line-height: .96; }
  .cinematic-beat small { margin-bottom: 14px; }
  .beat-left, .beat-right { left: 20px; right: auto; top: 24%; text-align: left; }
  .beat-center { inset: 0; width: 100%; max-width: none; height: 100%; translate: none; font-size: clamp(2.2rem,9.2vw,4rem); }
  .beat-center small { position: absolute; top: 20%; left: 18px; right: 18px; margin: 0; }
  .beat-center .final-reveal-line { position: absolute; left: 18px; right: 18px; display: block; will-change: opacity, transform, filter; }
  .beat-center .final-reveal-line:first-of-type { top: 27%; color: #f8f4eb; opacity: var(--final-top-opacity,0); transform: translate3d(0,var(--final-top-y,16px),0); filter: blur(var(--final-top-blur,7px)); }
  .beat-center .final-reveal-emphasis { top: 72%; color: var(--cinema-reveal-blue); opacity: var(--final-bottom-opacity,0); transform: translate3d(0,var(--final-bottom-y,16px),0); filter: blur(var(--final-bottom-blur,7px)); }
  .beat-center br { display: none; }
  .cinematic-arrival { bottom: max(52px, calc(env(safe-area-inset-bottom) + 30px)); width: calc(100vw - 40px); }
  .cinematic-progress { right: 16px; }
}

@media (max-width: 540px) {
  .skip-story { right: 18px; }
  .cinematic-lockup { padding: 0 18px; }
  .cinematic-lockup h1 { line-height: .78; }
  .cinematic-beat small { font-size: .62rem; line-height: 1.45; }
  .beat-center { font-size: clamp(2.15rem,9.2vw,3.35rem); }
  .beat-center .final-reveal-emphasis { font-size: .94em; }
  .cinematic-arrival p { font-size: 1rem; }
  .cinematic-arrival > div { gap: 12px; }
  .cinematic-arrival .button, .cinematic-arrival .cinematic-text-link { width: 100%; max-width: 320px; }
  .cinematic-progress { display: none; }
  .scroll-cue { white-space: nowrap; }
}

@media (max-width: 900px) and (max-height: 620px) {
  .skip-story { top: 72px; }
  .cinematic-lockup h1 { font-size: clamp(3.6rem,18vw,6.5rem); }
  .cinematic-book { top: 56%; width: clamp(130px,34vw,210px); }
  .cinematic-beat { top: 22%; font-size: clamp(2.3rem,8.5vw,3.7rem); }
  .beat-center { inset: 0; font-size: clamp(1.95rem,7.8vw,3rem); }
  .beat-center small { top: 16%; }
  .beat-center .final-reveal-line:first-of-type { top: 23%; }
  .beat-center .final-reveal-emphasis { top: 75%; }
  .cinematic-arrival { bottom: max(28px, calc(env(safe-area-inset-bottom) + 16px)); }
  .cinematic-arrival p { margin-bottom: 14px; }
  .scroll-cue { bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .cinematic-prologue { height: auto; padding: 128px 22px 72px; }
  .cinematic-sticky { height: auto; min-height: 0; position: relative; overflow: visible; display: grid; justify-items: center; gap: 54px; }
  .cinematic-atmosphere { position: absolute; }
  .skip-story, .cinematic-progress, .scroll-cue { display: none; }
  .cinematic-lockup, .cinematic-book, .cinematic-beat, .cinematic-arrival { position: relative; inset: auto; left: auto; right: auto; top: auto; bottom: auto; translate: none; opacity: 1 !important; transform: none !important; filter: none !important; }
  .cinematic-book { width: min(300px,70vw); }
  .cinematic-beats { position: relative; display: grid; gap: 50px; }
  .cinematic-beat, .beat-left, .beat-right, .beat-center { width: min(760px,88vw); text-align: center; }
  .beat-center { height: auto; }
  .beat-center small, .beat-center .final-reveal-line { position: static; opacity: 1; transform: none; filter: none; }
  .beat-center br { display: block; }
  .cinematic-arrival { width: min(760px,88vw); }
  .cinematic-edition .reveal { opacity: 1; transform: none; filter: none; }
}
