/* LEYLIGHT landing: art-deco futurism (GDD 4): black and green marble, brass, gold lines, light as a material.
   Tokens first, then the page in reading order. The font URLs below are replaced with hashed ones by scripts/build.mjs. */
@font-face { font-family: 'Jost'; src: url(/assets/jost.235d8f8964.woff2) format('woff2'); font-weight: 300 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poiret One'; src: url(/assets/poiret-one.ccb5754158.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --ink: #050607;
  --ink-2: #0a0c0b;
  --gold-hi: #fbefc4;
  --gold: #e2bc63;
  --gold-lo: #9c6b26;
  --line: rgba(226, 188, 99, .44);
  --line-2: rgba(226, 188, 99, .24);
  --faint: rgba(226, 188, 99, .13);
  --light: #fff4d6;
  --text: #ece5d3;
  --muted: #a69d8a;
  --dim: #7b7465;
  --steel: #a9bccd;
  --display: 'Poiret One', 'Jost', ui-sans-serif, system-ui, sans-serif;
  --sans: 'Jost', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: clamp(16px, 4.2vw, 56px);
  --max: 1200px;
  --ease: cubic-bezier(.2, .75, .1, 1);
  --gold-grad: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 52%, var(--gold-lo) 100%);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; min-height: 100vh; background: var(--ink); color: var(--text); font: 300 17px/1.65 var(--sans); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, svg, canvas { display: block; max-width: 100%; }
picture { display: contents; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 1px solid var(--gold-hi); outline-offset: 4px; }
::selection { background: rgba(226, 188, 99, .35); color: #fff; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -64px; z-index: 100; padding: 10px 14px; background: var(--ink-2); border: 1px solid var(--line); text-decoration: none; font-size: 14px; transition: top .2s; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.gold { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kicker { font: 500 11.5px/1.35 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: var(--gold); }
.ico { fill: none; stroke: var(--gold); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }

/* ── buttons: octagonal, with a 1 px gold edge ── */
.btn { --cut: 9px; position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 14px 24px; font: 500 12px/1.15 var(--sans); letter-spacing: .24em; text-transform: uppercase; text-decoration: none; color: var(--gold-hi); background: var(--line); clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut)); transition: background .35s, color .35s, translate .35s var(--ease); }
.btn::before { content: ''; position: absolute; inset: 1px; z-index: -1; background: linear-gradient(180deg, #131512, #0a0b0a); clip-path: inherit; transition: opacity .35s; }
.btn:hover { background: var(--gold); translate: 0 -1px; }
.btn--gold { color: #170f03; background: var(--gold-grad); }
.btn--gold::before { opacity: 0; }
.btn--gold:hover { background: linear-gradient(180deg, #fff7dc, #eecb78 52%, #ad7d32); }
.btn--sm { --cut: 7px; min-height: 38px; padding: 10px 16px; font-size: 11px; }

/* ── navigation ── */
.nav { position: fixed; inset: 0 0 auto; z-index: 40; display: flex; align-items: center; gap: 28px; height: 68px; padding: 0 var(--gutter); border-bottom: 1px solid transparent; transition: background .45s, border-color .45s; }
.nav.is-solid { background: rgba(5, 6, 7, .8); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-bottom-color: var(--faint); }
.nav__brand { display: flex; align-items: center; gap: 12px; flex: none; text-decoration: none; }
.nav__icon { width: 30px; height: 30px; }
.nav__word { width: auto; height: 15px; }
.nav__links { display: flex; gap: clamp(16px, 2vw, 30px); margin-inline: auto; }
.nav__links a { position: relative; padding: 8px 0; font: 500 11px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; text-decoration: none; color: var(--muted); transition: color .3s; }
.nav__links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .45s var(--ease); }
.nav__links a:hover, .nav__links a.is-on { color: var(--gold-hi); }
.nav__links a.is-on::after { transform: scaleX(1); }
.nav__tools { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.nav__lang, .nav__sound { padding: 8px 4px; font: 500 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; text-decoration: none; color: var(--muted); transition: color .3s; }
.nav__lang:hover, .nav__sound:hover, .nav__sound[aria-pressed="true"] { color: var(--gold-hi); }
.nav__sound { display: flex; align-items: center; gap: 9px; }
.eq { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq i { width: 2px; height: 3px; background: currentColor; }
.nav__sound[aria-pressed="true"] .eq i { animation: eq 1.1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; } .eq i:nth-child(4) { animation-delay: -.9s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }
@media (max-width: 1080px) { .nav__links { display: none; } }
@media (max-width: 640px) { .nav { height: 60px; gap: 12px; } .nav__cta, .nav__soundtxt { display: none; } .nav__word { height: 13px; } }

/* ── the leyline rail: a floor indicator for the five sections ── */
.rail { position: fixed; left: 22px; top: 50%; z-index: 30; height: min(52vh, 440px); translate: 0 -50%; display: flex; flex-direction: column; justify-content: space-between; align-items: center; opacity: 0; pointer-events: none; transition: opacity .6s; }
.rail.is-on { opacity: 1; pointer-events: auto; }
.rail__line { position: absolute; left: 50%; top: 13px; bottom: 13px; width: 1px; translate: -50% 0; background: var(--faint); }
.rail__line::before { content: ''; position: absolute; left: 0; top: 0; width: 1px; height: calc(var(--p, 0) * 100%); background: linear-gradient(var(--gold-lo), var(--gold)); }
.rail__light { position: absolute; left: 50%; top: calc(var(--p, 0) * 100%); width: 7px; height: 7px; border-radius: 50%; background: var(--light); box-shadow: 0 0 10px 2px rgba(255, 228, 160, .8), 0 0 30px 6px rgba(226, 188, 99, .3); translate: -50% -50%; }
.rail__node { position: relative; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); border: 1px solid var(--line-2); font: 500 8.5px/1 var(--sans); text-decoration: none; color: var(--muted); transition: border-color .4s, color .4s, box-shadow .4s; }
.rail__node.is-lit { border-color: var(--gold); color: var(--gold-hi); box-shadow: 0 0 14px rgba(226, 188, 99, .35); }
@media (max-width: 1259px) { .rail { display: none; } }

/* ── the hero ── */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 100px var(--gutter) 84px; overflow: clip; isolation: isolate; text-align: center; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.hero__bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 58% at 50% 40%, rgba(5, 6, 7, .05), rgba(5, 6, 7, .7) 72%, var(--ink)), linear-gradient(180deg, rgba(5, 6, 7, .8), rgba(5, 6, 7, 0) 22%, rgba(5, 6, 7, 0) 64%, var(--ink)); }
.hero__in { position: relative; display: grid; justify-items: center; gap: clamp(12px, 2vh, 20px); width: 100%; }
.hero__egg { position: relative; width: clamp(180px, 15vw + 13vh, 380px); aspect-ratio: 1; isolation: isolate; }
.hero__geo, .hero__rays { position: absolute; left: 50%; top: 50%; width: 330%; height: 330%; max-width: none; overflow: visible; pointer-events: none; z-index: -2; translate: -50% -50%; transition: transform .7s var(--ease); }
.hero__geo { transform: translate3d(calc(var(--px, 0) * -14px), calc(var(--py, 0) * -10px), 0); }
.hero__rays { z-index: -1; transform: translate3d(calc(var(--px, 0) * -6px), calc(var(--py, 0) * -4px), 0); }
.g { fill: none; stroke: var(--gold); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .5; }
.g--ring { opacity: .72; }
.g--thin { stroke-width: .6; opacity: .45; }
.g--tick { stroke-width: .8; opacity: .5; }
.ray { stroke: url(#rf); stroke-width: 1.6; vector-effect: non-scaling-stroke; transition: stroke-width .6s; }
.ray--minor { stroke-width: 1; opacity: .7; }
.glint { stroke: url(#rf); stroke-width: 2.6; vector-effect: non-scaling-stroke; stroke-dasharray: .045 .955; stroke-dashoffset: .045; opacity: 0; }
.hero__egg.hot .ray { stroke-width: 2.4; }
.js .g, .js .ray, .js .orn__l, .js .orn__c { stroke-dasharray: 1; stroke-dashoffset: 1; }
.hero.go .g { animation: draw 1.5s var(--ease) var(--d, 0s) forwards; }
.hero.go .ray { animation: draw 1.7s cubic-bezier(.3, .6, .2, 1) var(--d, 0s) forwards; }
.hero.go .glint { animation: glint 4.4s cubic-bezier(.5, 0, .9, .6) calc(3.4s + var(--d, 0s)) infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes glint { 0% { stroke-dashoffset: .045; opacity: 0; } 12% { opacity: 1; } 100% { stroke-dashoffset: -1; opacity: 0; } }
.hero__glow { position: absolute; inset: -20%; z-index: 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 228, 156, .42), rgba(226, 188, 99, .13) 46%, transparent 72%); animation: glow 5.5s ease-in-out infinite; transition: opacity .6s; }
.hero__egg.hot .hero__glow { opacity: 1; animation-play-state: paused; }
@keyframes glow { 50% { opacity: .62; transform: scale(.94); } }
.hero__eggimg { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 26px 40px rgba(0, 0, 0, .6)); transform: perspective(900px) rotateX(calc(var(--py, 0) * 8deg)) rotateY(calc(var(--px, 0) * -10deg)); transition: transform .6s var(--ease); }
.js .hero__eggimg { opacity: 0; translate: 0 14px; scale: .94; }
.hero.go .hero__eggimg { animation: egg-in 1.6s var(--ease) .15s forwards, float 7s ease-in-out 1.8s infinite; }
@keyframes egg-in { to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.hero__title img { width: clamp(230px, 30vw, 470px); height: auto; filter: drop-shadow(0 0 22px rgba(226, 188, 99, .28)); }
.hero__tag { max-width: 25ch; font: 300 clamp(18px, .95rem + .75vw, 27px)/1.4 var(--sans); color: var(--text); text-wrap: balance; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 4px; }
.hero__meta { font: 500 10.5px/1.6 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.js .hero__in > :not(.hero__egg) { opacity: 0; translate: 0 14px; }
.hero.go .hero__in > :not(.hero__egg) { animation: rise 1.2s var(--ease) forwards; }
.hero.go .hero__cap { animation-delay: .3s; }
.hero.go .hero__title { animation-delay: .9s; }
.hero.go .hero__tag { animation-delay: 1.15s; }
.hero.go .hero__cta { animation-delay: 1.35s; }
.hero.go .hero__meta { animation-delay: 1.55s; }
@keyframes rise { to { opacity: 1; translate: 0 0; } }
.cue { position: absolute; left: 50%; bottom: 18px; translate: -50% 0; display: grid; justify-items: center; gap: 10px; font: 500 10px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; text-decoration: none; color: var(--muted); }
.cue i { position: relative; width: 1px; height: 46px; overflow: hidden; background: linear-gradient(var(--line), transparent); }
.cue i::after { content: ''; position: absolute; left: -2px; top: -14px; width: 5px; height: 12px; border-radius: 3px; background: var(--light); box-shadow: 0 0 10px var(--gold); animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 30% { opacity: 1; } to { top: 46px; opacity: 0; } }
@media (max-height: 740px) { .cue { display: none; } }

/* ── sections ── */
.sec { position: relative; padding-block: clamp(96px, 12vw, 170px); }
.orn { position: absolute; top: 0; left: 50%; width: 240px; translate: -50% -50%; }
.orn svg { width: 100%; height: auto; overflow: visible; }
.orn__l, .orn__c { fill: none; stroke: var(--gold); stroke-width: 1; vector-effect: non-scaling-stroke; }
.orn__l { opacity: .45; }
.orn__d { fill: var(--gold); }
.orn.in .orn__l, .orn.in .orn__c { animation: draw 1.8s var(--ease) forwards; }
.orn.in .orn__c + .orn__c { animation-delay: .3s; }
.sec__head { display: grid; gap: 18px; max-width: 780px; margin-bottom: clamp(44px, 6vw, 76px); }
.sec__head--c { margin-inline: auto; text-align: center; justify-items: center; }
.sec__title { padding-bottom: .06em; font: 400 clamp(34px, 1.6rem + 2.9vw, 70px)/1.07 var(--display); letter-spacing: .005em; text-wrap: balance; filter: drop-shadow(0 0 26px rgba(226, 188, 99, .14)); }
.sec__lead { max-width: 62ch; font-size: clamp(16.5px, .95rem + .3vw, 19.5px); line-height: 1.7; color: var(--muted); text-wrap: pretty; }
.js .rv { opacity: 0; translate: 0 22px; transition: opacity 1.1s var(--ease) var(--rd, 0ms), translate 1.1s var(--ease) var(--rd, 0ms); }
.js .rv.in { opacity: 1; translate: 0 0; }
.js .orn.rv { translate: -50% -50%; }

/* ── I · The Will ── */
.will__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(36px, 5.5vw, 88px); align-items: center; }
.will__copy .sec__head { margin-bottom: 0; }
.film__screen { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #000; outline: 1px solid var(--faint); outline-offset: 10px; box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .9); }
.film__img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.12) saturate(.9) contrast(1.06); }
.film__fx { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .16) 0 1px, transparent 1px 3px), radial-gradient(130% 100% at 50% 45%, transparent 50%, rgba(0, 0, 0, .72)); }
.film__fx::after { content: ''; position: absolute; inset: 0; background: rgba(255, 240, 210, .05); opacity: 0; animation: flicker 5s steps(1, end) infinite; }
@keyframes flicker { 48% { opacity: 0; } 49% { opacity: 1; } 51% { opacity: .3; } 52% { opacity: 0; } }
.film__hud { position: absolute; inset: 14px 16px auto; display: flex; justify-content: space-between; gap: 14px; font: 500 10px/1.2 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: rgba(255, 244, 214, .86); text-shadow: 0 1px 2px #000; }
.film__label { flex: 1; overflow: hidden; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.film__rec { display: flex; align-items: center; gap: 8px; }
.film__rec i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); animation: blink 1.6s steps(2, start) infinite; }
@keyframes blink { 50% { opacity: .15; } }
.film__tc { font-variant-numeric: tabular-nums; }
.film__sub { position: absolute; left: 50%; bottom: 7%; display: flex; align-items: flex-end; justify-content: center; width: min(88%, 600px); min-height: 2.9em; translate: -50% 0; font: 400 clamp(14px, .75rem + .5vw, 19px)/1.45 var(--sans); text-align: center; color: #fff7e0; text-shadow: 0 1px 2px #000, 0 0 14px rgba(0, 0, 0, .9); }
.film__sub .caret { display: inline-block; width: 1px; height: 1.1em; margin-left: 2px; background: currentColor; vertical-align: -.15em; animation: blink 1s steps(2, start) infinite; }
.film__cap { margin-top: 22px; font-size: 13.5px; color: var(--muted); }
.quote { margin-top: 34px; padding-left: 26px; border-left: 1px solid var(--line); }
.quote p { font: 400 clamp(20px, .9rem + .9vw, 27px)/1.45 var(--display); color: var(--gold-hi); }
.quote cite { display: block; margin-top: 14px; font: 500 10.5px/1.4 var(--sans); font-style: normal; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.cast { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.2vw, 28px); margin-top: clamp(64px, 9vw, 112px); }
.cast__card { position: relative; overflow: hidden; background: linear-gradient(180deg, rgba(20, 30, 26, .55), rgba(8, 10, 9, .4)); border: 1px solid var(--faint); }
.cast__pic { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: #070908; }
.cast__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.cast__img--aster { object-position: 59% 0%; transform-origin: 58% 16%; transform: scale(1.8); }
.cast__img--crane { object-position: 50% 24%; }
.cast__card:hover .cast__img--aster { transform: scale(1.9); }
.cast__card:hover .cast__img--crane { transform: scale(1.06); }
.cast__iris { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(60% 60% at 50% 50%, rgba(226, 188, 99, .1), transparent 70%), #070908; }
.cast__iris svg, .mech--orn svg { width: 46%; height: auto; overflow: visible; animation: breathe 6s ease-in-out infinite; }
.cast__iris circle, .cast__iris path, .mech--orn circle, .mech--orn path { fill: none; stroke: var(--gold); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .75; }
@keyframes breathe { 50% { opacity: .45; scale: .97; } }
.cast__txt { display: grid; gap: 8px; padding: 22px 24px 26px; }
.cast__role { font: 500 10.5px/1.4 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.cast__card--crane .cast__role { color: var(--steel); }
.cast__name { font: 400 28px/1.1 var(--display); color: var(--gold-hi); }
.cast__txt p:last-child { font-size: 15.5px; line-height: 1.6; color: var(--muted); }
@media (max-width: 900px) {
  .will__grid, .cast { grid-template-columns: 1fr; }
  .cast__card { display: grid; grid-template-columns: 38% minmax(0, 1fr); }
  .cast__pic { aspect-ratio: auto; min-height: 100%; }
}
@media (max-width: 520px) { .cast__card { grid-template-columns: 1fr; } .cast__pic { aspect-ratio: 16 / 10; } }

/* ── II · The Underlay: the Lens over the city ── */
.lensview { --x: 50%; --y: 45%; --r: 110px; position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #05070a; outline: 1px solid var(--faint); outline-offset: 10px; cursor: none; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.lensview__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lensview > picture > .lensview__img { filter: brightness(.6) saturate(.8); }
.lensview__dev, .lensview__under { position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask: radial-gradient(circle var(--r) at calc(var(--x) - var(--r) / 2) var(--y), #000 calc(100% - 1.5px), transparent 100%), radial-gradient(circle var(--r) at calc(var(--x) + var(--r) / 2) var(--y), #000 calc(100% - 1.5px), transparent 100%);
  mask: radial-gradient(circle var(--r) at calc(var(--x) - var(--r) / 2) var(--y), #000 calc(100% - 1.5px), transparent 100%), radial-gradient(circle var(--r) at calc(var(--x) + var(--r) / 2) var(--y), #000 calc(100% - 1.5px), transparent 100%); }
.lensview__dev .lensview__img { filter: sepia(.4) saturate(1.25) brightness(1.1) contrast(1.05); }
.ul-line { fill: none; stroke: #ffe6a6; stroke-width: 2.2; vector-effect: non-scaling-stroke; opacity: .9; }
.ul-flow { fill: none; stroke: #fffaf0; stroke-width: 3; vector-effect: non-scaling-stroke; stroke-dasharray: 10 34; animation: flow 1.9s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -44; } }
.ul-seed circle, .ul-sigil circle, .ul-node circle { fill: none; stroke: #ffe6a6; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.ul-seed circle { opacity: .75; }
.ul-sigil path { fill: #ffe6a6; }
.ul-node .core { fill: #fffaf0; stroke: none; }
.ul-node.lit circle { stroke: #fff; stroke-width: 2.4; }
.ul-label { font: 500 15px var(--sans); letter-spacing: .2em; fill: #ffe6a6; }
.ul-door { fill: rgba(255, 230, 166, .16); stroke: #ffe6a6; stroke-width: 2; vector-effect: non-scaling-stroke; }
.lensview__ring { position: absolute; left: var(--x); top: var(--y); width: calc(var(--r) * 3.2); height: calc(var(--r) * 2.2); max-width: none; translate: -50% -50%; overflow: visible; pointer-events: none; }
.lr-ves { fill: rgba(255, 236, 180, .07); }
.lr-rim { fill: none; stroke: url(#brass); stroke-width: 6; }
.lr-in { fill: none; stroke: rgba(251, 239, 196, .55); stroke-width: 1; }
.lr-tick { fill: none; stroke: rgba(251, 239, 196, .55); stroke-width: 1; }
.lr-cross { fill: none; stroke: rgba(251, 239, 196, .7); stroke-width: 1; }
.lensview__hint { position: absolute; left: 50%; bottom: 18px; display: flex; align-items: center; gap: 10px; padding: 9px 16px; translate: -50% 0; background: rgba(5, 6, 7, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid var(--faint); font: 500 10.5px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gold-hi); white-space: nowrap; pointer-events: none; transition: opacity .6s; }
.lensview__hint i { width: 14px; height: 9px; border: 1px solid currentColor; border-radius: 50%; box-shadow: 6px 0 0 -1px var(--ink), 6px 0 0 0 currentColor; }
.lensview.is-user .lensview__hint { opacity: 0; }
.underlay__row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr); gap: clamp(32px, 5vw, 80px); align-items: center; margin-top: clamp(56px, 7vw, 96px); }
.lensprop { display: grid; gap: 18px; justify-items: start; }
.lensprop__img { width: min(100%, 330px); height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .7)); transform-origin: 40% 70%; animation: sway 9s ease-in-out infinite; }
@keyframes sway { 50% { rotate: -4deg; translate: 0 -6px; } }
.lensprop h3 { font: 400 32px/1.1 var(--display); color: var(--gold-hi); }
.lensprop p { font-size: 15.5px; color: var(--muted); }
.feats { display: grid; border-top: 1px solid var(--faint); }
.feat { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 20px; padding: 24px 0; border-bottom: 1px solid var(--faint); }
.feat svg { grid-row: span 2; width: 44px; height: 44px; }
.feat h3 { font: 500 12px/1.4 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--gold-hi); }
.feat p { font-size: 16px; color: var(--muted); }
@media (max-width: 900px) { .underlay__row { grid-template-columns: 1fr; } .lensview { aspect-ratio: 1; } }

/* ── III · The Language ── */
.lang__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.panel { position: relative; display: grid; grid-template-rows: auto 1fr auto; padding: clamp(18px, 2.4vw, 30px); background: linear-gradient(180deg, rgba(18, 28, 24, .6), rgba(7, 9, 8, .6)); border: 1px solid var(--faint); }
.panel::before, .panel::after { content: ''; position: absolute; width: 18px; height: 18px; border: 1px solid var(--line); }
.panel::before { top: 7px; left: 7px; border-right: 0; border-bottom: 0; }
.panel::after { right: 7px; bottom: 7px; border-left: 0; border-top: 0; }
.panel__label { font: 500 10.5px/1.4 var(--sans); letter-spacing: .3em; text-transform: uppercase; text-align: center; color: var(--gold); }
.construct__svg { width: 100%; max-width: 460px; aspect-ratio: 1; margin: 12px auto; overflow: visible; }
.cs { fill: none; stroke: var(--gold); stroke-width: 1.15; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s var(--ease) var(--d, 0s), opacity .8s var(--ease); }
.cs.on { stroke-dashoffset: 0; }
.cs.dim { opacity: .2; }
.cs--thin { stroke-width: .7; }
.cs--met { stroke-width: .8; transition-duration: 2.8s, .8s; }
.cs--phi { stroke: var(--gold-hi); stroke-width: 1.7; transition-duration: 2.4s, .8s; }
.cs-fill { fill: rgba(255, 236, 180, .13); opacity: 0; transition: opacity 1s var(--ease) .9s; }
.cs-fill.on { opacity: 1; }
.cs-fill.dim { opacity: 0; transition-delay: 0s; }
.cs-label { font: 400 38px var(--display); fill: var(--gold-hi); opacity: 0; transition: opacity 1s var(--ease) 1.4s; }
.cs-label.on { opacity: 1; }
.steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.step { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--faint); font: 500 10.5px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: color .3s, border-color .3s, background .3s; }
.step b { font: 400 13px/1 var(--display); letter-spacing: 0; color: var(--gold); }
.step:hover { color: var(--gold-hi); }
.step[aria-selected="true"] { color: var(--gold-hi); border-color: var(--line); background: rgba(226, 188, 99, .07); }
.construct__text, .solids__text { max-width: 46ch; min-height: 3.3em; margin: 16px auto 0; font-size: 15.5px; text-align: center; color: var(--muted); }
.solids__cv { width: 100%; max-width: 460px; aspect-ratio: 1; margin: 12px auto; cursor: grab; touch-action: pan-y; }
.solids__cv:active { cursor: grabbing; }
.solids__drag { position: absolute; top: 54px; right: 28px; font: 500 9.5px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.solids__tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.solid { display: grid; justify-items: center; gap: 4px; padding: 9px 4px; border: 1px solid var(--faint); transition: border-color .3s, background .3s; }
.solid span { font: 500 9.5px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--text); hyphens: auto; -webkit-hyphens: auto; }
.solid small { font: 400 13px/1.1 var(--display); color: var(--gold); }
.solid[aria-selected="true"] { border-color: var(--line); background: rgba(226, 188, 99, .08); }
.mechs__title { margin: clamp(64px, 8vw, 104px) 0 26px; font: 500 11.5px/1.3 var(--sans); letter-spacing: .34em; text-transform: uppercase; text-align: center; color: var(--gold); }
.mechs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--faint); border-left: 1px solid var(--faint); }
.mech { display: grid; align-content: start; gap: 10px; padding: 26px 24px 28px; border-right: 1px solid var(--faint); border-bottom: 1px solid var(--faint); }
.mech svg { width: 40px; height: 40px; }
.mech h4 { font: 400 22px/1.15 var(--display); color: var(--gold-hi); }
.mech p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.mech--orn { place-items: center; align-content: center; }
.mech--orn svg { width: 50%; }
@media (max-width: 1000px) { .mechs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .lang__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .mechs { grid-template-columns: 1fr; } .mech--orn { display: none; } .solids__tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ── IV · The Rooms ── */
.rooms__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.room { position: relative; overflow: hidden; background: #070908; border: 1px solid var(--faint); }
.room__pic { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.room__img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); filter: saturate(.92) brightness(.9); transition: transform 1.6s var(--ease), filter 1.2s; }
.room:hover .room__img { transform: scale(1.07); filter: saturate(1.05) brightness(1); }
.room__pic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(5, 6, 7, .92)); }
.room__tag { position: absolute; top: 14px; left: 14px; z-index: 1; padding: 6px 10px; font: 500 9.5px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gold-hi); background: rgba(5, 6, 7, .55); border: 1px solid var(--faint); }
.room__txt { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: grid; gap: 6px; padding: clamp(18px, 2.4vw, 30px); }
.room__year { font: 500 11px/1 var(--sans); letter-spacing: .34em; color: var(--gold); }
.room__name { font: 400 clamp(26px, 1.2rem + 1vw, 36px)/1.1 var(--display); color: var(--gold-hi); }
.room__txt p:last-child { max-width: 40ch; font-size: 15.5px; color: var(--text); opacity: .86; }
.acts { margin-top: clamp(64px, 8vw, 100px); text-align: center; }
.acts__title { margin-bottom: 34px; }
.acts__list { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.acts__list::before { content: ''; position: absolute; left: 10%; right: 10%; top: 9px; height: 1px; background: linear-gradient(90deg, transparent, var(--line), var(--line), transparent); }
.act { position: relative; display: grid; justify-items: center; gap: 6px; }
.act__dot { width: 19px; height: 19px; margin-bottom: 8px; border-radius: 50%; border: 1px solid var(--gold); background: var(--c, var(--ink)); box-shadow: 0 0 0 5px var(--ink); }
.act b { font: 500 10.5px/1.3 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.act__name { font: 400 22px/1.15 var(--display); color: var(--gold-hi); }
.act__key { font-size: 13.5px; color: var(--muted); }
.act--0 { --c: #2a2417; } .act--1 { --c: #d9c7a3; } .act--2 { --c: #a07a3c; } .act--3 { --c: #6f8a99; } .act--4 { --c: #fff4d6; }
.acts__free { display: inline-block; margin-top: 34px; padding: 10px 18px; border: 1px solid var(--line); font: 500 11px/1.3 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gold-hi); }
@media (max-width: 760px) {
  .rooms__grid { grid-template-columns: 1fr; }
  .room__pic { aspect-ratio: 4 / 3; }
  .acts__list { grid-template-columns: 1fr; gap: 24px; }
  .acts__list::before { left: 50%; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(transparent, var(--line), transparent); }
}

/* ── V · The Race ── */
.seq { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); align-items: start; gap: 8px; max-width: 980px; margin: 0 auto clamp(56px, 7vw, 88px); }
.seq::before { content: ''; position: absolute; left: 6%; right: 6%; top: 36px; height: 1px; background: var(--line-2); }
.seq::after { content: ''; position: absolute; top: 33px; left: 6%; width: 7px; height: 7px; border-radius: 50%; background: var(--light); box-shadow: 0 0 12px 3px rgba(255, 220, 140, .7); animation: travel 7s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes travel { 0% { left: 6%; opacity: 0; } 8%, 92% { opacity: 1; } 100% { left: 93%; opacity: 0; } }
.seq li { position: relative; display: grid; justify-items: center; gap: 12px; text-align: center; }
.seq svg { width: 72px; height: 72px; padding: 6px; background: var(--ink); }
.seq span { font: 500 10px/1.3 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.seq__g svg { stroke: var(--gold-hi); }
.seq__egg span { color: var(--gold-hi); }
.seq__eggimg { width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 0 16px rgba(226, 188, 99, .5)); }
.race__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.hall { position: relative; display: grid; align-content: center; justify-items: center; gap: 14px; padding: clamp(36px, 5vw, 64px) clamp(20px, 3vw, 44px); text-align: center; background: radial-gradient(80% 70% at 50% 0%, rgba(226, 188, 99, .1), transparent 70%), linear-gradient(180deg, #0d1210, #070908); border: 1px solid var(--line-2); outline: 1px solid var(--faint); outline-offset: -9px; }
.hall__line { font: 400 clamp(22px, 1rem + 1vw, 30px)/1.2 var(--display); color: var(--gold-hi); }
.hall__name { display: flex; align-items: flex-end; width: min(100%, 360px); height: 48px; border-bottom: 1px solid var(--gold); }
.hall__caret { width: 2px; height: 28px; margin: 0 0 8px 4px; background: var(--gold-hi); animation: blink 1.1s steps(2, start) infinite; }
.hall__empty { font-size: 14px; font-style: italic; color: var(--muted); }
.toast { display: grid; justify-items: center; gap: 8px; margin-top: 18px; }
.toast__label { font-size: 13px; color: var(--muted); }
.toast__msg { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid var(--line); background: rgba(226, 188, 99, .07); font: 500 11px/1.3 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-hi); }
.toast__msg i { font-style: normal; color: var(--gold); }
.adj { position: relative; min-height: 440px; overflow: hidden; background: #06080b; border: 1px solid rgba(169, 188, 205, .2); }
.adj__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; filter: saturate(.8) brightness(.82); }
.adj::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 8, 11, .05), rgba(6, 8, 11, .25) 42%, rgba(6, 8, 11, .94)); }
.adj__txt { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: grid; gap: 10px; padding: clamp(22px, 3vw, 36px); }
.adj h3 { font: 400 clamp(28px, 1.2rem + 1.2vw, 40px)/1.1 var(--display); color: #e3edf6; }
.adj p { font-size: 15.5px; color: #b9c6d2; }
.fair { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); margin-top: clamp(40px, 5vw, 64px); }
.fair li { display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: start; gap: 14px; padding-top: 18px; border-top: 1px solid var(--faint); font-size: 15px; color: var(--muted); }
.fair svg { width: 26px; height: 26px; }
@media (max-width: 900px) { .race__grid, .fair { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .seq { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 26px; } .seq::before, .seq::after { display: none; } .seq svg, .seq__eggimg { width: 56px; height: 56px; } }

/* ── Join ── */
.join { overflow: clip; text-align: center; }
.join::before { content: ''; position: absolute; inset: 0; background: radial-gradient(50% 60% at 50% 32%, rgba(226, 188, 99, .1), transparent 70%); pointer-events: none; }
.join__in { position: relative; display: grid; justify-items: center; }
.join__egg { width: 132px; margin-bottom: 18px; animation: float 7s ease-in-out infinite; }
.join__eggimg { width: 100%; height: auto; filter: drop-shadow(0 0 30px rgba(226, 188, 99, .45)); }
.join .sec__head { margin-bottom: 36px; }
.joinf { display: grid; gap: 14px; width: min(100%, 580px); }
.joinf__row { display: flex; gap: 10px; }
.joinf input { flex: 1; min-width: 0; height: 52px; padding: 0 18px; background: rgba(5, 6, 7, .7); border: 1px solid var(--line-2); border-radius: 0; font: 400 16px/1 var(--sans); color: var(--text); transition: border-color .3s, box-shadow .3s; }
.joinf input::placeholder { color: #6f6858; }
.joinf input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(226, 188, 99, .14); }
.joinf .btn { min-height: 52px; }
.joinf__msg { min-height: 1.4em; font-size: 15px; color: var(--gold-hi); }
.joinf__msg.bad { color: #e8a48f; }
.joinf__fine { font-size: 13px; color: var(--muted); }
.joinf.done .joinf__row { opacity: .4; pointer-events: none; }
@media (max-width: 560px) { .joinf__row { flex-direction: column; } }

/* ── footer, privacy and 404 ── */
.foot { position: relative; padding: clamp(72px, 9vw, 120px) 0 48px; background: linear-gradient(180deg, #070908, var(--ink)); border-top: 1px solid var(--faint); text-align: center; }
.foot__in { display: grid; justify-items: center; gap: 18px; }
.foot__icon { width: 52px; height: 52px; }
.foot__word { width: 200px; height: auto; }
.foot__by { font: 500 11px/1.5 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.foot__by a { color: var(--text); text-decoration: none; }
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; font-size: 14px; }
.foot__links a { color: var(--muted); text-decoration: none; }
.foot__links a:hover { color: var(--gold-hi); }
.foot__fine { max-width: 70ch; font-size: 12.5px; line-height: 1.6; color: var(--dim); }
.foot__rights { font-size: 12.5px; color: var(--dim); }
.doc { padding: 140px var(--gutter) 100px; }
.doc__in { display: grid; gap: 22px; width: min(100%, 720px); margin: 0 auto; }
.doc h1, .nf h1 { padding-bottom: .06em; font: 400 clamp(40px, 6vw, 64px)/1.05 var(--display); }
.doc p, .nf p { color: var(--muted); }
.doc__date { font-size: 13px; letter-spacing: .1em; }
.nf { display: grid; place-items: center; min-height: 100vh; min-height: 100svh; padding: 120px var(--gutter); text-align: center; }
.nf__in { display: grid; justify-items: center; gap: 22px; max-width: 560px; }
.nf__icon { width: 72px; height: 72px; }

/* ── stillness: paused offscreen, and for reduced motion ── */
.is-off, .is-off * { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .g, .js .ray, .js .orn__l, .js .orn__c { stroke-dashoffset: 0; }
  .js .rv, .js .hero__in > :not(.hero__egg), .js .hero__eggimg { opacity: 1; translate: none; scale: none; }
  .glint, .ul-flow, .seq::after, .cue i::after { display: none; }
}
