/* The light curtain, on its own. Ready to paste.
   Every rule below is copied word for word from site/src/css/base.css (5 Nov 2026). It’s all CSS: no
   images, no canvas, no script.

   Markup:
     <div class="sky" aria-hidden="true"></div>
     <div class="curtain" aria-hidden="true"><i class="dust"></i><i class="sheet"></i><i class="core"></i></div>

   The parent needs position: relative and the words need a z-index of 2 or more (.curtain sits at 1).
   The three layers: .dust is the faint stars, .sheet is the blue light, .core is the orange glow.
   Two dials: --level (how high the light has risen, 0 to 1, moved with transform only) and --glow (how
   strong the core is). To surge the core for a moment, add the class .surge. To pause it off screen, add .is-off.

   Heights and dials the site uses:
     .hero .curtain               height: 46%, 52% from 1180px wide
     .ihero .curtain              height: 50%
     .phero .curtain              height: 42%
     .how.is-story .curtain       height: 34%, opacity: .9, --level from .35 to 1 with scroll
     .hard.is-live .curtain       height: 54%, --level from .1 to .82, --glow from .12 to 1 with scroll
     .close .curtain              height: 52%, --level .4, then 1 when it comes into view

   Where it goes (design brief, 3 Nov 2026): the hero, the held scenes and the last call. Never behind
   body copy, never brighter than the headline.
   Orange lives in .core and the small waiting dots. Nowhere else, ever. */

/* The tokens it needs, from base.css :root. Drop these if you’ve loaded tokens.css. */
:root { --night: #060a13; --ink: #eef2ff; --accent: #fc734d; --ease: cubic-bezier(.2, .7, .2, 1); }

.curtain { position: absolute; left: 0; right: 0; bottom: 0; height: 52%; overflow: hidden; isolation: isolate; pointer-events: none; z-index: 1; --level: 1; --glow: 1; }
.curtain > i { position: absolute; inset: 0; display: block; transform-origin: 50% 100%; }
.curtain .dust { opacity: .7; background-image: radial-gradient(1px 1px at 24px 30px, var(--ink), transparent), radial-gradient(1px 1px at 96px 12px, var(--ink), transparent), radial-gradient(1.2px 1.2px at 150px 70px, var(--ink), transparent), radial-gradient(1px 1px at 210px 28px, var(--ink), transparent), radial-gradient(1px 1px at 60px 118px, var(--ink), transparent), radial-gradient(1.2px 1.2px at 190px 150px, var(--ink), transparent); background-size: 240px 180px; -webkit-mask-image: radial-gradient(46% 50% at 82% 26%, #000, transparent 100%); mask-image: radial-gradient(46% 50% at 82% 26%, #000, transparent 100%); }
.curtain .sheet { transform: scaleY(var(--level)); transition: transform .9s var(--ease); background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .2) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(0, 0, 0, .16) 0 2px, transparent 2px 7px), repeating-linear-gradient(90deg, rgba(200, 240, 255, .18) 0 1px, transparent 1px 11px), repeating-linear-gradient(90deg, rgba(0, 0, 0, .2) 0 3px, transparent 3px 17px), repeating-linear-gradient(90deg, rgba(160, 230, 255, .12) 0 2px, transparent 2px 23px), radial-gradient(40% 74% at 50% 100%, #9fe8ff 0%, #5fd1f8 20%, #13a6f0 46%, rgba(0, 115, 204, .6) 74%, transparent 100%), linear-gradient(0deg, #0a86e0 0%, #0062c4 30%, #06307e 62%, rgba(2, 20, 60, 0) 100%); -webkit-mask-image: radial-gradient(34% 100% at 50% 100%, #000 34%, transparent), radial-gradient(18% 66% at 14% 100%, #000 20%, transparent), radial-gradient(18% 70% at 86% 100%, #000 20%, transparent), linear-gradient(0deg, #000, rgba(0, 0, 0, .75) 26%, transparent 62%); mask-image: radial-gradient(34% 100% at 50% 100%, #000 34%, transparent), radial-gradient(18% 66% at 14% 100%, #000 20%, transparent), radial-gradient(18% 70% at 86% 100%, #000 20%, transparent), linear-gradient(0deg, #000, rgba(0, 0, 0, .75) 26%, transparent 62%); animation: sway 9s steps(90) infinite alternate; }
.curtain .core { opacity: calc(.9 * var(--glow)); transform: scaleY(calc(.6 + var(--level) * .4)); transition: transform .9s var(--ease), opacity .6s; background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(0, 0, 0, .18) 0 2px, transparent 2px 7px), repeating-linear-gradient(90deg, rgba(0, 0, 0, .2) 0 3px, transparent 3px 17px), repeating-linear-gradient(90deg, rgba(255, 226, 210, .16) 0 1px, transparent 1px 11px), radial-gradient(24% 38% at 50% 94%, var(--accent) 0 30%, rgba(252, 115, 77, .7) 55%, transparent 100%), radial-gradient(46% 58% at 50% 100%, rgba(247, 126, 96, .66), rgba(244, 182, 165, .18) 64%, transparent 100%), radial-gradient(70% 30% at 50% 104%, rgba(244, 182, 165, .3), transparent 100%); -webkit-mask-image: radial-gradient(56% 70% at 50% 100%, #000 44%, transparent); mask-image: radial-gradient(56% 70% at 50% 100%, #000 44%, transparent); animation: breathe 6s ease-in-out infinite alternate; }
.curtain.surge .core { --glow: 1.25; transition-duration: .2s; }
.is-paused .curtain .sheet, .curtain.is-off .sheet { animation-play-state: paused; }
@keyframes sway { from { background-position: 6px 0, -4px 0, 10px 0, -8px 0, 3px 0, 0 0, 0 0; opacity: .86; } }
@keyframes breathe { from { opacity: calc(.7 * var(--glow)); } }
@media (hover: none) { .curtain .sheet { filter: none; } }
@media (hover: hover) { .curtain .sheet { filter: blur(.5px); } }
.sky { position: absolute; inset: 0; background: radial-gradient(60% 50% at 0% 0%, #000, transparent 70%), radial-gradient(60% 50% at 100% 0%, #000, transparent 70%), linear-gradient(180deg, #010213 0%, var(--night) 34%, #010e32 100%); }

/* base.css switches every animation off for reduced motion. On its own, the curtain does that here. */
@media (prefers-reduced-motion: reduce) { .curtain > i { animation: none !important; transition: none !important; } }
