/* =====================================================================
   ROBO J1NGLE  |  theaiartist.co
   Dark graphite + silver, with cyan used sparingly (as on the RJ logo).
   Fonts are in v25/css/fonts.css. No inline styles anywhere in the HTML.

   Modes
   - default          : calm, static page (no JS, or reduced-motion visitors)
   - html.js:not(.rm) : pinned 3D stage. Scroll drives the giant title (see v25/js/main.js)
   ===================================================================== */

:root{
  --bg:#040405;
  --ink:#eef1f5;
  --silver:#c3c9d2;
  --gray:#8d949f;
  --dim:#5a606b;
  --faint:#3a3f48;
  --line:rgba(190,198,212,.14);
  --line2:rgba(190,198,212,.30);
  --cyan:#22e0ff;
  --display:"Orbitron","Eurostile","Bank Gothic","Segoe UI",system-ui,sans-serif;
  --mono:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --ease:cubic-bezier(.2,.7,.2,1);
}
*{box-sizing:border-box;margin:0;padding:0}
html{background:var(--bg);-webkit-text-size-adjust:100%;scrollbar-color:#23262c var(--bg)}
html.loading{overflow:hidden}
body{
  min-height:100vh;background:var(--bg);color:var(--gray);
  font-family:var(--mono);font-size:14px;line-height:1.6;
  -webkit-font-smoothing:antialiased;overflow-x:hidden;overflow-x:clip;   /* clip (not hidden) so the sticky stage below still works */
}
a{color:inherit}
button{font:inherit;color:inherit}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.nostyle-note{display:none}
.hide-s{display:inline}

/* ---------- background ---------- */
.bg{
  position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden;
  background:radial-gradient(90vmax 62vmax at 50% 40%,#0d0e11 0%,#050506 52%,#020203 100%);
}
.bg::after{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 50% 42%,transparent 40%,rgba(0,0,0,.7) 100%)}
#stars{position:absolute;inset:0;width:100%;height:100%}
/* a soft tint per section: static gradients. field.js sets .bg[data-tone] once a section has settled and CSS fades the tint over 1.6 s (nothing is blended while scenes cross over).
   Transmissions = a faint cyan glow high up, The Method = a faint teal haze low centre, Contact = a faint blue haze low right. */
.bg-tone{position:absolute;inset:0;opacity:0;pointer-events:none;transition:opacity 1.6s ease}
.bg-tone--tx{background:radial-gradient(ellipse 62% 99% at 50% 30%,rgba(34,224,255,.09),rgba(34,224,255,0)),radial-gradient(ellipse 40% 64% at 12% 85%,rgba(205,212,224,.035),rgba(205,212,224,0))}
.bg-tone--mt{background:radial-gradient(ellipse 72% 96% at 50% 78%,rgba(60,214,190,.075),rgba(60,214,190,0)),radial-gradient(ellipse 44% 66% at 92% 12%,rgba(205,212,224,.03),rgba(205,212,224,0))}
.bg-tone--ct{background:radial-gradient(ellipse 66% 105% at 80% 80%,rgba(150,170,255,.08),rgba(150,170,255,0)),radial-gradient(ellipse 42% 67% at 14% 20%,rgba(34,224,255,.04),rgba(34,224,255,0))}
.bg[data-tone="tx"] .bg-tone--tx,.bg[data-tone="mt"] .bg-tone--mt,.bg[data-tone="ct"] .bg-tone--ct{opacity:1}
#field{position:absolute;inset:0;width:100%;height:100%}          /* the sparse per-section field (Transmissions network, The Method stream, Contact telemetry), v25/js/field.js */
#signal{position:absolute;inset:0;width:100%;height:100%}          /* simulated waveform / spectrogram, v25/js/signal.js */
.bg-guides{
  --g:rgba(190,198,212,.11);
  position:absolute;inset:0;
  background-image:
    repeating-linear-gradient(to bottom,var(--g) 0 6px,transparent 6px 14px),
    repeating-linear-gradient(to bottom,var(--g) 0 6px,transparent 6px 14px),
    repeating-linear-gradient(to right,var(--g) 0 6px,transparent 6px 14px);
  background-size:1px 100%,1px 100%,100% 1px;
  background-repeat:no-repeat;
  background-position:calc(50% - min(24vw,340px)) 0,calc(50% + min(24vw,340px)) 0,0 50%;
  opacity:.7;
}
.frame{
  position:fixed;inset:12px;z-index:45;pointer-events:none;--c:rgba(190,198,212,.4);
  background:
    linear-gradient(var(--c),var(--c)) 0 0/22px 1px no-repeat,
    linear-gradient(var(--c),var(--c)) 0 0/1px 22px no-repeat,
    linear-gradient(var(--c),var(--c)) 100% 0/22px 1px no-repeat,
    linear-gradient(var(--c),var(--c)) 100% 0/1px 22px no-repeat,
    linear-gradient(var(--c),var(--c)) 0 100%/22px 1px no-repeat,
    linear-gradient(var(--c),var(--c)) 0 100%/1px 22px no-repeat,
    linear-gradient(var(--c),var(--c)) 100% 100%/22px 1px no-repeat,
    linear-gradient(var(--c),var(--c)) 100% 100%/1px 22px no-repeat;
}

/* ---------- fixed HUD ---------- */
.hud{
  position:fixed;left:0;right:0;top:0;z-index:50;
  display:flex;justify-content:space-between;align-items:center;gap:16px;
  padding:clamp(20px,3vw,34px) clamp(24px,4vw,52px);
  font-size:11px;letter-spacing:.22em;text-transform:uppercase;color:var(--dim);
}
.hud::before{                         /* dark fade so page content never collides with the header text */
  content:"";position:absolute;left:0;right:0;top:0;bottom:-34px;z-index:-1;pointer-events:none;
  background:linear-gradient(180deg,rgba(4,4,5,.94) 0%,rgba(4,4,5,.7) 55%,rgba(4,4,5,0) 100%);
  opacity:var(--hudbg,var(--rel,0));
}
html:not(.js) .hud,html.rm .hud{--hudbg:1}
.hud-brand span,.hud-status,.hud-link{white-space:nowrap}
.hud-link{
  display:inline-flex;align-items:center;gap:9px;color:var(--silver);text-decoration:none;
  padding:6px 0;border-bottom:1px dashed var(--line2);transition:color .25s,border-color .25s;
}
.hud-link .led{width:5px;height:5px}
.hud-link:hover{color:#fff;border-bottom-color:var(--cyan)}
.hud-link:focus-visible{color:#fff;border-bottom-color:var(--cyan);outline:none}
.hud-brand{display:inline-flex;align-items:center;gap:12px;color:var(--silver);text-decoration:none}
.hud-brand img{width:34px;height:34px;border-radius:8px;display:block;box-shadow:0 0 0 1px var(--line)}
.hud-status{display:inline-flex;align-items:center;gap:10px;margin-left:.6em;color:var(--dim)}
/* live clock beside the status (v22): the visitor's own local time from their device, filled in by v25/js/main.js. Hidden until the first tick, and without JavaScript. */
.hud-clock{display:none;align-items:center;gap:.9em;margin-left:.2em;padding-left:1.1em;border-left:1px solid var(--line2);color:var(--dim);font-variant-numeric:tabular-nums;line-height:1}
.hud-clock.on{display:inline-flex}
.hud-clock .hc-time{color:var(--silver)}
.hud-clock .hc-tz{color:var(--gray)}
.hud-clock .hc-loc{display:none}
@media (min-width:1280px){.hud-clock .hc-loc.has{display:inline}}
.led{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--cyan);box-shadow:0 0 8px var(--cyan);animation:pulse 2s ease-in-out infinite}
/* opacity only: a box-shadow animation is repainted by the main thread on every frame, an opacity animation runs on the graphics chip */
@keyframes pulse{50%{opacity:.3}}

.hud-foot{
  position:relative;z-index:50;
  display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px 18px;
  padding:clamp(34px,5vw,56px) clamp(24px,4vw,52px) clamp(18px,2.6vw,28px);
  font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--dim);
}
.taa{display:inline-flex;align-items:center;gap:10px;color:var(--gray)}
.taa svg{width:18px;height:18px;flex:none;fill:none;stroke:var(--silver);stroke-width:1.6}
.taa svg path+path{stroke-width:1}
.taa span{color:var(--silver)}
.taa .taa-long{color:var(--gray)}
/* social icons: links are set in v25/js/main.js, LINKS. Without a link the icon shows a dashed, dimmed "pending" state.
   Two copies of the same two icons:
     .social--rail  a vertical stack fixed to the left edge, halfway down the screen (the main one)
     .social--foot  a row in the footer, shown only where the left stack would sit on top of the content (see the media query below) */
.social{display:inline-flex;align-items:center;gap:10px}
.social--rail{
  position:fixed;z-index:50;left:clamp(12px,1.8vw,24px);top:50%;transform:translateY(-50%);
  flex-direction:column;gap:12px;
}
.social--foot{display:none}
@media (max-width:1279px){
  /* narrower than a laptop the stack would cover the console, so it belongs to the hero: it fades out with it, and the footer row takes over.
     (visibility, not display: hiding it with display would replay its intro fade every time it came back) */
  html.js:not(.rm) .social--rail{opacity:calc(1 - var(--rel,0) * 3)}
  html.js.foot-flow .social--rail{visibility:hidden;pointer-events:none}
  html:not(.js) .social--rail,html.rm .social--rail{display:none}
  html:not(.js) .social--foot,html.rm .social--foot,html.js:not(.rm) .social--foot{display:inline-flex}
}
.soc{
  position:relative;display:grid;place-items:center;width:36px;height:36px;
  color:var(--silver);border:1px solid var(--line2);border-radius:2px;background:rgba(12,13,16,.6);
  transition:border-color .3s,color .3s,box-shadow .3s,transform .3s var(--ease);
}
.soc svg{width:16px;height:16px;fill:currentColor;display:block}
.soc::after{                       /* corner tick, like the HUD frame */
  content:"";position:absolute;right:-1px;bottom:-1px;width:7px;height:7px;
  border-right:1px solid var(--cyan);border-bottom:1px solid var(--cyan);opacity:0;transition:opacity .3s;
}
.soc[href]:hover{
  color:#fff;border-color:rgba(34,224,255,.7);transform:translateY(-2px);
  box-shadow:0 0 0 1px rgba(34,224,255,.18),0 8px 22px -8px rgba(34,224,255,.65);
}
.soc[href]:focus-visible{
  color:#fff;border-color:rgba(34,224,255,.7);outline:none;transform:translateY(-2px);
  box-shadow:0 0 0 1px rgba(34,224,255,.18),0 8px 22px -8px rgba(34,224,255,.65);
}
.social--rail .soc[href]:hover{transform:translateX(3px)}          /* in the vertical stack the nudge goes sideways */
.social--rail .soc[href]:focus-visible{transform:translateX(3px)}
.soc[href]:hover::after{opacity:1}
.soc[href]:focus-visible::after{opacity:1}
.soc:not([href]){border-style:dashed;color:var(--dim);cursor:default}
.legal{order:4;flex:0 0 100%;text-align:center;font-size:9.5px;letter-spacing:.06em;text-transform:none;line-height:1.5;color:var(--dim)}
/* footer line 1: "Flying with TAA // The Astral Accord" sits in the exact CENTRE. Two equal spacers either side keep it centred; on screens narrower than 1280px
   the social icons take the right-hand spacer's place (pinned to the right of the same line) so the text stays centred there too. */
.hud-foot::before,.hud-foot::after{content:"";flex:1 1 0;min-width:0;order:1}
.hud-foot::after{order:3}
.hud-foot .taa{order:2;flex:none}
.hud-foot .social--foot{order:3;flex:1 1 0;justify-content:flex-end}
@media (max-width:1279px){.hud-foot::after{display:none}}

.rail{position:fixed;right:clamp(12px,1.8vw,24px);top:calc(50% - min(15vh,120px));z-index:50;width:2px;height:min(30vh,240px);background:var(--line)}
.rail i{position:absolute;inset:0;background:var(--silver);transform-origin:50% 0;transform:scaleY(var(--p,0))}
.rail b{position:absolute;left:-2px;width:6px;height:1px;background:var(--silver);opacity:.55}          /* one tick per scene, placed by main.js */

.cue{
  position:fixed;left:0;right:0;margin:0 auto;width:max-content;bottom:clamp(96px,14vh,130px);z-index:50;
  display:flex;flex-direction:column;align-items:center;gap:12px;
  background:none;border:0;cursor:pointer;
  font-size:10.5px;letter-spacing:.3em;text-transform:uppercase;color:var(--gray);
  opacity:var(--cue,1);
}
.cue-off .cue{visibility:hidden;pointer-events:none}          /* set by main.js once you have scrolled away from the start: an invisible button must not sit over the console */
.cue-btn{width:38px;height:38px;display:grid;place-items:center;border:1px dashed var(--line2);border-radius:50%;transition:border-color .3s,color .3s}
.cue:hover .cue-btn{border-color:var(--silver);color:var(--ink)}
.cue:focus-visible .cue-btn{border-color:var(--silver);color:var(--ink)}
.cue:focus-visible{outline:none}
.cue svg{fill:none;stroke:currentColor;stroke-width:1.6;animation:bob 1.8s ease-in-out infinite}
@keyframes bob{50%{transform:translateY(3px)}}

/* ---------- stage / hero ---------- */
.track{position:relative}
.stage{position:relative;z-index:10}
.hero{
  position:relative;min-height:100vh;min-height:100svh;
  display:flex;align-items:center;justify-content:center;
  padding:110px clamp(16px,4vw,56px) 120px;
}
.hero-col{position:relative;width:min(1400px,100%);display:flex;flex-direction:column;align-items:center;text-align:center}


/* ---------- THE 3D TITLE ----------
   The front of every letter is the supplied wordmark artwork (v25/img/title/*.webp, one cut-out per letter).
   Behind it, stacked SVG silhouettes of the solid letter body are pushed back in Z to make the extrusion.
   Everything is sized in em, so the single font-size below scales the whole wordmark. */
.t3d-wrap{perspective:1500px;perspective-origin:50% 50%;padding:2vh 0}
.t3d{
  font-size:clamp(2.6rem,12vw,11rem);line-height:0;
  transform-style:preserve-3d;
}
.rig{
  --n:14;--depth:8px;--step:calc(var(--depth) / var(--n));
  display:flex;flex-wrap:wrap;justify-content:center;gap:.1em .206em;
  transform-style:preserve-3d;will-change:transform;
}
.word{display:inline-flex;transform-style:preserve-3d}
.lt{position:relative;display:block;transform-style:preserve-3d;will-change:transform}
.face{display:block;line-height:0}
.face:not(:first-child){position:absolute;left:0;top:0;transform:translateZ(calc(var(--i) * var(--step) * -1))}
.gl{display:block;height:1em;width:calc(1em * var(--w));max-width:none}
.g-r{--w:0.7872}.g-o1{--w:0.6554}.g-b{--w:0.6959}.g-o2{--w:0.7061}.g-j{--w:0.6791}.g-1{--w:0.3074}.g-n{--w:0.7466}.g-g{--w:0.7095}.g-l{--w:0.6182}.g-e{--w:0.7601}

/* extrusion layers: steel-graphite that darkens with depth (only in the scroll/3D mode) */
.ext{display:none}
.js:not(.rm) .ext{display:block}
.ext path{fill:#4a5058;fill:hsl(208 12% calc(50% - var(--i) * 2.9%))}

.face:nth-child(2){--i:1}.face:nth-child(3){--i:2}.face:nth-child(4){--i:3}.face:nth-child(5){--i:4}
.face:nth-child(6){--i:5}.face:nth-child(7){--i:6}.face:nth-child(8){--i:7}.face:nth-child(9){--i:8}
.face:nth-child(10){--i:9}.face:nth-child(11){--i:10}.face:nth-child(12){--i:11}.face:nth-child(13){--i:12}
.face:nth-child(14){--i:13}.face:nth-child(15){--i:14}.face:nth-child(16){--i:15}.face:nth-child(17){--i:16}.face:nth-child(18){--i:17}

.defs{position:absolute;width:0;height:0;overflow:hidden}

/* ---------- descriptor + tagline ---------- */
.pre{opacity:var(--pre,1)}
.descriptor{
  display:flex;align-items:center;justify-content:center;gap:clamp(12px,2vw,22px);
  margin-top:clamp(10px,2.4vh,24px);
  font-family:var(--display);font-weight:600;text-transform:uppercase;
  font-size:clamp(.72rem,1.9vw,1.25rem);letter-spacing:.5em;color:var(--silver);
}
.descriptor::before,.descriptor::after{
  content:"";flex:none;width:clamp(20px,6vw,80px);height:1px;
  background:linear-gradient(90deg,transparent,rgba(34,224,255,.6));
}
.descriptor::after{transform:scaleX(-1);margin-left:-.5em}
.type{margin-top:clamp(14px,3vh,28px);font-size:clamp(12px,3.2vw,16px);letter-spacing:.14em;color:var(--silver);min-height:1.7em}
.type .pfx{color:var(--cyan)}
.type .caret{display:inline-block;width:.6em;height:1.05em;margin-left:.15em;vertical-align:-.16em;background:var(--silver);animation:blink 1s steps(1) infinite}
@keyframes blink{50%{opacity:0}}

/* ---------- info block (about + chips), revealed at the end of the scroll ---------- */
.info{
  display:flex;flex-direction:column;align-items:center;
  margin-top:clamp(20px,4vh,36px);
  padding-inline:clamp(20px,5vw,32px);
  opacity:var(--info,1);
  transform:translate3d(0,calc((1 - var(--info,1)) * 46px),0);
}
.about{max-width:54ch;color:var(--gray);font-size:clamp(12px,3.1vw,13.5px)}
.about em{font-style:normal;color:var(--ink)}
.chips{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:clamp(18px,3.4vh,30px);list-style:none}
.chips li{display:flex}
.chip{
  display:inline-flex;align-items:center;gap:10px;padding:9px 14px;border-radius:2px;
  font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--silver);text-decoration:none;
  border:1px solid var(--line2);background:rgba(12,13,16,.68);
}
.chip small{font-size:9px;letter-spacing:.2em;color:var(--dim)}
.chip .led{width:5px;height:5px}
.chip.live{border-color:rgba(190,198,212,.55);background:rgba(190,198,212,.08);color:var(--ink)}
a.chip{transition:border-color .25s,background .25s,color .25s}
a.chip:hover{border-color:var(--cyan);background:rgba(34,224,255,.1);color:#fff}
a.chip:focus-visible{border-color:var(--cyan);background:rgba(34,224,255,.1);color:#fff;outline:none}

/* =====================================================================
   FIXED STAGE  (JS on, motion allowed)
   The whole site is ONE screen. .track is a very tall, invisible scroll runway; .stage stays pinned to the window; every
   .scene is stacked inside it. main.js turns the scroll position into a cross-fade / depth move between scenes and into
   the hero's 3D title choreography, so the page never visibly "scrolls down".
   ===================================================================== */
html.js:not(.rm){--pre:1;--info:0;--cue:1;--foot:0}     /* starting values; main.js then writes them onto .pre / #info / #cue / .hud-foot themselves as you scroll (never on <html>: that re-styles the whole page every frame) */
html.js:not(.rm){scrollbar-width:none;-ms-overflow-style:none}   /* no scrollbar: it would give away that a page is scrolling. Wheel, touch, keys, the menu and the progress line all still work */
html.js:not(.rm)::-webkit-scrollbar{display:none}
.js:not(.rm) .track{height:calc(var(--tl,670) * 1vh)}          /* --tl = total scroll length in screens, computed from the scenes' data-len */
.js:not(.rm) .stage{position:sticky;top:0;height:100vh;height:100dvh;overflow:hidden}
.vh-probe{position:fixed;left:0;top:0;width:0;height:100vh;visibility:hidden;pointer-events:none}
.js:not(.rm) .stage{transition:opacity .4s ease}
.js:not(.rm) .stage.hop-out{opacity:0;transition:opacity .3s ease}       /* menu / logo jump: fade out ... */
.js:not(.rm) .stage.arrive{animation:arrive .9s ease backwards}          /* ... and fade the new scene in */
@keyframes arrive{from{opacity:0}}

/* scenes: stacked on top of each other. main.js writes each scene's opacity and transform straight onto the element every frame (not through inherited
   custom properties, which made the browser re-check every element on the page). The transform is "none" whenever a scene is at rest, so anything
   position:fixed inside it (the phone sheet) stays correct. */
html.js:not(.rm) .scene{position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden}
html.js:not(.rm) .scene ~ .scene{visibility:hidden;opacity:0}
/* While a scene is crossing (main.js adds .is-moving) it becomes its own graphics layer: the browser keeps the picture it already drew and just scales / fades it,
   instead of re-drawing the whole scene's text on every frame. The class is removed at rest, so nothing here keeps a transform (the phone sheet is position:fixed). */
html.js:not(.rm) .scene.is-moving{will-change:transform,opacity}
html.js:not(.rm) .scene.is-on{visibility:visible}
html.js:not(.rm) .scene.is-off{visibility:hidden}
html.js:not(.rm) .scene.is-back{pointer-events:none}

/* footer (Flying with TAA + legal): hidden for the whole journey, fades in only at the very end of the last scene */
html.js:not(.rm) .hud-foot{position:fixed;left:0;right:0;bottom:0;padding-top:16px;opacity:var(--foot,0);pointer-events:none;background:linear-gradient(180deg,rgba(4,4,5,0),rgba(4,4,5,.88) 55%)}
html.js:not(.rm):not(.at-end) .hud-foot{visibility:hidden}
html.js:not(.rm).at-end .hud-foot{pointer-events:auto}
.js:not(.rm) .hero{position:absolute;left:0;top:0;right:0;bottom:0;min-height:0;padding:0}
.js:not(.rm) .info{position:absolute;top:100%;left:0;right:0;pointer-events:none;visibility:hidden}
.js:not(.rm) .info.on{pointer-events:auto;visibility:visible}
.js:not(.rm) .rail i{transform:scaleY(var(--g,0))}
.rm .cue,.rm .rail{display:none}
html:not(.js) .cue,html:not(.js) .rail{display:none}

/* ---------- one-time intro (main.js adds .intro after the loader opens) ---------- */
.loading .hud,.loading .hud-foot,.loading .frame,.loading .cue,.loading .rail,.loading .social--rail,.loading .t3d-wrap,.loading .pre{opacity:0}
html.loading .hud-foot,html.loading .social--rail{opacity:0!important}   /* must come after the footer rule above */
.intro .hud{animation:rise 1.1s var(--ease) .5s backwards}
.intro .frame{animation:fade 1.4s ease .4s backwards}
.intro .cue{animation:rise 1s var(--ease) 1.5s backwards}
.intro .rail{animation:fade 1s ease 1.4s backwards}
.intro .social--rail{animation:fade 1s ease 1.4s backwards}
.intro .pre{animation:rise 1s var(--ease) 1.2s backwards}
/* RETURNING visitors (html.quick, set by boot.js): the same reveal, about three times faster, and no loading text or Skip button (there is no time to read or press them) */
html.quick .ld-top,html.quick .ld-bottom,html.quick .ld-skip{display:none}
html.quick.intro .hud{animation:rise .45s var(--ease) .05s backwards}
html.quick.intro .frame{animation:fade .5s ease .05s backwards}
html.quick.intro .cue{animation:rise .45s var(--ease) .4s backwards}
html.quick.intro .rail{animation:fade .45s ease .35s backwards}
html.quick.intro .social--rail{animation:fade .45s ease .35s backwards}
html.quick.intro .pre{animation:rise .5s var(--ease) .25s backwards}
@keyframes rise{from{opacity:0;transform:translateY(14px)}}
@keyframes fade{from{opacity:0}}

/* =====================================================================
   PRELOADER  (traces the RJ mark, fills it, then the doors swing open)
   ===================================================================== */
.loader{position:fixed;inset:0;z-index:200;perspective:1600px;overflow:hidden;--k:0;--uo:1;--gd:0;--lp:0;--td:0;--so:0}
.rm .loader,html:not(.js) .loader{display:none}
.ld-door{
  position:absolute;left:0;right:0;height:50.3%;z-index:1;will-change:transform;
  background:
    repeating-linear-gradient(90deg,rgba(190,198,212,.035) 0 1px,transparent 1px 160px),
    linear-gradient(#060709,#030304);
}
.ld-door::after{
  content:"";position:absolute;left:0;right:0;height:1px;
  background:linear-gradient(90deg,transparent,var(--cyan),transparent);
  opacity:calc(1 - var(--k) * 2.4);
}
.ld-door--t{top:0;transform-origin:50% 0;transform:translateY(calc(var(--k) * -100%)) rotateX(calc(var(--k) * -66deg))}
.ld-door--t::after{bottom:0}
.ld-door--b{bottom:0;transform-origin:50% 100%;transform:translateY(calc(var(--k) * 100%)) rotateX(calc(var(--k) * 66deg))}
.ld-door--b::after{top:0}

.ld-ui{position:absolute;inset:0;z-index:2;opacity:var(--uo)}
.ld-gx,.ld-gy{position:absolute;background:repeating-linear-gradient(to right,rgba(190,198,212,.22) 0 6px,transparent 6px 14px)}
.ld-gx{left:0;right:0;top:50%;height:1px;transform:scaleX(var(--gd));transform-origin:50% 50%}
.ld-gy{top:0;bottom:0;left:50%;width:1px;background:repeating-linear-gradient(to bottom,rgba(190,198,212,.22) 0 6px,transparent 6px 14px);transform:scaleY(var(--gd));transform-origin:50% 50%}
.ld-logo{
  position:absolute;--s:min(64vmin,540px);width:var(--s);height:var(--s);
  left:calc(50% - var(--s) / 2);top:calc(50% - var(--s) / 2);
}
.ld-img{
  position:absolute;inset:0;width:100%;height:100%;
  clip-path:inset(0 calc((1 - var(--lp)) * 100%) 0 0);
}
.ld-scan{
  position:absolute;top:10%;bottom:10%;left:calc(var(--lp) * 100%);width:1px;
  background:var(--cyan);box-shadow:0 0 14px var(--cyan),0 0 40px rgba(34,224,255,.5);opacity:var(--so);
}
.ld-svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.ld-trace{fill:none;stroke:var(--silver);stroke-width:2.4;stroke-linejoin:miter;stroke-dasharray:1;stroke-dashoffset:calc(1 - var(--td))}
.ld-a{fill:var(--bg);stroke:var(--cyan);stroke-width:2.2;opacity:0;transform-box:fill-box;transform-origin:center;transform:scale(.2);transition:opacity .25s,transform .35s var(--ease)}
.ld-a.on{opacity:1;transform:none}
.ld-h{opacity:0;transition:opacity .4s}
.ld-h.on{opacity:.9}
.ld-h line{stroke:var(--cyan);stroke-width:1.4}
.ld-h circle{fill:var(--cyan)}
.ld-top,.ld-bottom{
  position:absolute;left:0;right:0;display:flex;justify-content:space-between;align-items:baseline;
  padding:0 clamp(24px,4vw,52px);font-size:11px;letter-spacing:.24em;text-transform:uppercase;color:var(--dim);
}
.ld-top{top:clamp(22px,3.4vw,38px);color:var(--silver)}
.ld-bottom{bottom:clamp(24px,3.6vw,40px)}
.ld-count{font-family:var(--display);font-weight:500;font-size:clamp(22px,3.4vw,40px);letter-spacing:.06em;color:var(--silver)}
.ld-count b{font-weight:500}
.ld-skip{
  position:absolute;left:0;right:0;margin:0 auto;width:max-content;bottom:clamp(26px,3.8vw,44px);
  background:none;border:1px dashed var(--line2);border-radius:20px;padding:6px 16px;cursor:pointer;
  font-size:10px;letter-spacing:.3em;text-transform:uppercase;color:var(--dim);transition:color .25s,border-color .25s;
}
.ld-skip:hover{color:var(--ink);border-color:var(--silver)}
.ld-skip:focus-visible{color:var(--ink);border-color:var(--silver);outline:none}

/* ---------- small screens ---------- */
@media (max-width:640px){
  .hide-s{display:none}
  .hud-clock{border-left:0;padding-left:0;margin-left:.5em}
  .hud-clock .hc-day,.hud-clock .hc-tz{display:none}
  .frame{inset:8px}
  .t3d{font-size:clamp(2.6rem,21vw,7.4rem)}
  .rig{gap:.06em .3em}
  .descriptor{font-size:clamp(.62rem,3.1vw,.8rem);letter-spacing:.32em;gap:10px}
  .descriptor::after{margin-left:-.32em}
  .hud-foot{justify-content:space-between;align-items:center;text-align:left}
  .taa .taa-long{display:none}
  .soc{width:32px;height:32px}
  .social--rail{left:6px;gap:10px}
  .social--rail .soc{width:30px;height:30px}
  .legal{font-size:9px}
  .cue{bottom:clamp(150px,21vh,190px)}
}
@media (max-width:400px){
  .social--rail .soc{width:28px;height:28px}
  .type{letter-spacing:.08em}          /* keeps the tagline clear of the social icons on the left edge */
}
@media (max-height:520px) and (orientation:landscape){
  .hero{padding-top:70px;padding-bottom:70px}
  .t3d{font-size:min(9vw,14.5vh)}
  .t3d-wrap{padding:0}
  .descriptor{margin-top:6px}
  .type{margin-top:8px}
  .info{margin-top:10px}
  .chips{margin-top:12px}
  .legal,.cue{display:none}
  .soc{width:30px;height:30px}
  .hud-foot{padding-bottom:14px}
}

/* =====================================================================
   BURGER + FULL-SCREEN MENU
   The menu sits under the header (z 40 < 50), so the logo and the burger (which turns into an X) stay usable while it is open.
   Its list is built by main.js from every [data-scene].
   ===================================================================== */
.burger{
  position:relative;display:grid;place-content:center;gap:4px;width:42px;height:42px;flex:none;cursor:pointer;
  background:rgba(12,13,16,.6);border:1px solid var(--line2);border-radius:2px;color:var(--silver);
  transition:border-color .3s,color .3s;
}
.burger span{display:block;width:16px;height:1.5px;background:currentColor;transition:transform .4s var(--ease),opacity .2s ease}
.burger::after{content:"";position:absolute;right:-1px;bottom:-1px;width:7px;height:7px;border-right:1px solid var(--cyan);border-bottom:1px solid var(--cyan);opacity:0;transition:opacity .3s}
.burger:hover{border-color:rgba(34,224,255,.6);color:#fff}
.burger:hover::after{opacity:1}
.burger:focus-visible{border-color:rgba(34,224,255,.6);color:#fff;outline:none}
.burger:focus-visible::after{opacity:1}
html.menu-open .burger{border-color:rgba(34,224,255,.6);color:#fff}
html.menu-open .burger span:nth-child(1){transform:translateY(5.5px) rotate(45deg)}
html.menu-open .burger span:nth-child(2){opacity:0}
html.menu-open .burger span:nth-child(3){transform:translateY(-5.5px) rotate(-45deg)}
html:not(.js) .burger,html:not(.js) .menu{display:none}

.menu{
  position:fixed;left:0;top:0;right:0;bottom:0;z-index:40;overflow-y:auto;overscroll-behavior:contain;
  background:rgba(4,4,5,.66);          /* the scenes fade out underneath, so the star field and signal lines stay visible behind the menu */
  opacity:0;visibility:hidden;transition:opacity .4s ease,visibility 0s .4s;
}
html.menu-open .menu{opacity:1;visibility:visible;transition:opacity .4s ease}
html.menu-open{overflow:hidden}
html.js:not(.rm).menu-open .stage{opacity:0}
html.menu-open .social--rail,html.menu-open .cue,html.menu-open .rail{opacity:0!important;visibility:hidden}
html.menu-open .hud-foot{visibility:hidden!important}
.menu-inner{
  min-height:100%;max-width:1100px;margin:0 auto;display:flex;flex-direction:column;justify-content:center;gap:clamp(22px,4.5vh,44px);
  padding:calc(var(--hudh,96px) + 12px) clamp(24px,6vw,72px) clamp(26px,5vh,52px);
}
.menu-eyebrow{display:inline-flex;align-items:center;gap:12px;font-size:11px;letter-spacing:.3em;text-transform:uppercase;color:var(--gray)}
.menu-list{list-style:none;border-top:1px solid var(--line)}
.menu-list li{border-bottom:1px solid var(--line);opacity:0;transform:translateY(16px);transition:opacity .3s ease,transform .3s ease}
html.menu-open .menu-list li{opacity:1;transform:none;transition:opacity .55s ease calc(var(--i,0) * 90ms + 180ms),transform .7s var(--ease) calc(var(--i,0) * 90ms + 180ms)}
.menu-link{
  position:relative;display:grid;grid-template-columns:clamp(44px,6vw,76px) minmax(0,1fr) auto;align-items:baseline;gap:6px 16px;
  padding:clamp(16px,3.2vh,30px) 8px;text-decoration:none;color:var(--gray);transition:color .3s,padding-left .45s var(--ease);
}
.menu-link::before{content:"";position:absolute;left:0;top:18%;bottom:18%;width:2px;background:var(--cyan);transform:scaleY(0);transition:transform .35s var(--ease)}
.menu-num{font-family:var(--display);font-size:clamp(11px,1.4vw,13px);letter-spacing:.2em;color:var(--dim)}
.menu-title{font-family:var(--display);font-weight:700;text-transform:uppercase;font-size:clamp(1.5rem,5.6vw,3.6rem);letter-spacing:.12em;line-height:1.1;overflow-wrap:anywhere}
.menu-sub{font-size:10.5px;letter-spacing:.22em;text-transform:uppercase;color:var(--dim);text-align:right}
.menu-link:hover{color:var(--ink);padding-left:22px}
.menu-link:hover::before{transform:scaleY(1)}
.menu-link:focus-visible{color:var(--ink);padding-left:22px;outline:none}
.menu-link:focus-visible::before{transform:scaleY(1)}
.menu-link[aria-current="true"]{color:var(--silver)}
.menu-link[aria-current="true"] .menu-num::after{content:"";display:inline-block;width:5px;height:5px;margin-left:9px;border-radius:50%;background:var(--cyan);box-shadow:0 0 8px var(--cyan);vertical-align:middle}
.menu-foot{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:14px 18px;font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--dim)}
@media (max-width:640px){
  .menu-link{grid-template-columns:36px minmax(0,1fr);padding-left:2px}
  .menu-sub{grid-column:2;text-align:left}
  .menu-foot .taa-long{display:none}
}
@media (max-height:560px){
  .menu-inner{justify-content:flex-start;gap:16px}
  .menu-link{padding-top:12px;padding-bottom:12px}
  .menu-title{font-size:clamp(1.3rem,4vw,2rem)}
}

/* ---------- reduced motion: calm, static, no scroll effects ---------- */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
}
