/* Home "2100" (js/nova.js, docs/plan/2026-10-05-home-2100.md): the dark stage with the light path, the level and settings
   dialogs, the welcome, and the header logo. The stage carries its own palette (--nv-*); text sizes, spacing, radii and
   the green call to action come from the site tokens (css/ui-kit.css). Every animation sits inside
   prefers-reduced-motion: no-preference and stops in calm / easy mode. */

/* ---------- palettes ---------- */
.nova, .nv-dlg, .nv-wel {
  --nv-g1: #22d3ee; --nv-g2: #e879f9; --nv-g3: #a3e635; --nv-ground: #02030a; --nv-fg: #eef2ff; --nv-field: .38;
  --nv-edge: rgb(255 255 255 / .2); --nv-card: rgb(255 255 255 / .08); --nv-lit: var(--nv-g1);
}
:is(.nova, .nv-dlg, .nv-wel)[data-th="space"] { --nv-g1: #5ef0b0; --nv-g2: #38bdf8; --nv-g3: #818cf8; --nv-ground: #050818; --nv-field: .55; }
:is(.nova, .nv-dlg, .nv-wel)[data-th="glass"] { --nv-g1: #4f46e5; --nv-g2: #c0266d; --nv-g3: #0f7f99; --nv-ground: #0b0d1c; --nv-field: .7; --nv-edge: rgb(255 255 255 / .22); --nv-card: rgb(255 255 255 / .07); --nv-lit: #a5b4fc; }
:is(.nova, .nv-dlg, .nv-wel)[data-th="dawn"] { --nv-g1: #fbbf24; --nv-g2: #fb7185; --nv-g3: #c084fc; --nv-ground: #1a0b24; --nv-field: .55; --nv-lit: #fde68a; }
/* before the drawn background starts (and without it): the same three fields in CSS */
.nova, .nv-wel { background: radial-gradient(60% 50% at 20% 25%, color-mix(in srgb, var(--nv-g1) 42%, transparent), transparent 70%),
  radial-gradient(55% 45% at 85% 40%, color-mix(in srgb, var(--nv-g2) 38%, transparent), transparent 70%),
  radial-gradient(50% 40% at 50% 95%, color-mix(in srgb, var(--nv-g3) 26%, transparent), transparent 70%), var(--nv-ground); color: var(--nv-fg); }

/* ---------- the stage ---------- */
/* .nova is the size container and .nv-stage inside it is the grid: a container query never styles the container itself,
   so a grid on .nova kept one column while the path was placed in a second one and squeezed the words (leo, 17:49) */
.home .nova { position: relative; isolation: isolate; overflow: hidden; container: nova / inline-size; display: flex; flex-direction: column;
  padding: var(--sp-4); border-radius: var(--r-xl); min-height: 560px; box-shadow: var(--e3); }
/* the video-background mode paints every hero card light; the stage keeps its own night sky */
html.scene-on .home .nova { background-color: var(--nv-ground); }
.nv-stage { flex: 1; align-self: stretch; min-width: 0; display: grid; gap: var(--sp-3); align-items: start; grid-template-columns: minmax(0, 1fr); }
.nova .nv-gen { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: 0; transition: opacity .8s; }
.nova.nv-live .nv-gen { opacity: 1; }
.nova button { font: inherit; color: inherit; cursor: pointer; }
.nova :is(button, [role="button"]):focus-visible { outline: 3px solid var(--nv-lit); outline-offset: 3px; }
.nv-top { display: flex; align-items: center; gap: var(--sp-2); }
.nv-tools { display: flex; gap: var(--sp-2); margin-inline-start: auto; }
.nv-ic { width: 40px; height: 40px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .14); }
@media (pointer: coarse) { .nv-ic { width: 44px; height: 44px; } } /* sound and settings on the map: a full finger target on touch screens */
.nv-ic svg, .nv-sndrow svg, .wl-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nv-ic svg path:first-child, .nv-sndrow svg path:first-child, .wl-btn svg path:first-child { fill: currentColor; stroke: none; }
.nv-ic[data-nv-set] svg path:first-child { fill: none; stroke: currentColor; }
.nv-mic { display: flex; align-items: center; gap: var(--sp-2); min-height: 44px; padding: 4px 14px 4px 6px; border: 0; border-radius: var(--r-pill); text-align: start; background: var(--nv-card); box-shadow: inset 0 0 0 1px var(--nv-edge); }
.nv-mic b { display: block; font-size: var(--fs-sm); }
.nv-mic small { display: block; font-size: var(--fs-xs); opacity: .8; }
.nv-orb { width: 34px; height: 34px; flex: none; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--nv-lit) 45%, var(--nv-g2)); box-shadow: 0 0 20px var(--nv-lit); position: relative; }
.nv-orb::after { content: ''; position: absolute; inset: 10px 13px; border-radius: 6px; border: 2px solid #0b0d1c; border-bottom-width: 3px; }
.nv-hi { display: flex; align-items: center; gap: var(--sp-3); }
.nv-hi > div { flex: 1; min-width: 0; }
.home .nova .hi-title { margin: 0; font-size: var(--fs-h1); line-height: 1.12; max-width: none; color: inherit; }
.home .nova .hi-line { margin: 4px 0 0; font-size: var(--fs-sm); opacity: .8; color: inherit; }
.nv-crew { position: relative; display: flex; flex: none; border: 0; padding: 4px; background: none; border-radius: var(--r-pill); }
.nv-crew .wl-ai { top: auto; bottom: -4px; inset-inline-start: 50%; translate: -50% 0; font-size: 9px; padding: 0 5px; }
[dir="rtl"] .nv-crew .wl-ai { translate: 50% 0; }
.nv-crew img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; background: #11152a;
  box-shadow: 0 0 0 2px var(--nv-ground), 0 0 0 3.5px var(--nv-g2), 0 0 16px var(--nv-g2); }
.nv-crew img + img { margin-inline-start: -12px; box-shadow: 0 0 0 2px var(--nv-ground), 0 0 0 3.5px var(--nv-lit), 0 0 16px var(--nv-lit); }
/* next lesson: glass with a turning rainbow edge */
@property --nv-a { syntax: '<angle>'; initial-value: 210deg; inherits: false; }
.nv-next { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-lg);
  background: var(--nv-card); box-shadow: inset 0 1px 0 var(--nv-edge), 0 0 34px -12px var(--nv-lit); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.nv-next::after { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; background: conic-gradient(from var(--nv-a), var(--nv-g1), var(--nv-g2), var(--nv-g3), #fde68a, var(--nv-g1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.nv-next small { display: block; font-size: var(--fs-xs); opacity: .8; }
.nv-next b { font-size: var(--fs-lg); }
.nv-meta { font-size: var(--fs-xs); opacity: .92; white-space: nowrap; } /* .75 left small text at 3.5:1 */
/* the path or the ring: same height either way, so switching never moves the page */
.nv-main { height: clamp(220px, 60cqi, 300px); display: grid; }
.nv-main > * { min-height: 0; height: 100%; }
.nv-route svg { width: 100%; height: 100%; display: block; direction: ltr; overflow: visible; }
.nv-trail { fill: none; stroke: rgb(255 255 255 / .22); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1 8; }
.nv-lit { fill: none; stroke: var(--nv-lit); stroke-width: 5; stroke-linecap: round; filter: drop-shadow(0 0 6px var(--nv-lit)); }
.nv-lv { cursor: pointer; outline: none; }
.nv-hit { fill: transparent; }
.nv-nd { fill: var(--nv-ground); stroke: rgb(255 255 255 / .4); stroke-width: 2; }
.nv-lv.is-done .nv-nd { fill: var(--nv-lit); stroke: var(--nv-lit); }
.nv-lv.is-now .nv-nd { fill: #fff; stroke: var(--nv-lit); stroke-width: 4; }
.nv-lv.is-todo text { opacity: .6; }
.nv-lv:hover .nv-nd, .nv-lv:focus-visible .nv-nd { stroke: var(--nv-g2); stroke-width: 3.5; }
.nv-lv:focus-visible .nv-hit { stroke: var(--nv-lit); stroke-width: 2; }
/* the route scales with the screen, so the 20-unit tap circle round each level drew 39 px on a 360 px phone; 24 units is
   47 px there, and still leaves a gap to the stop two levels on */
@media (pointer: coarse) { .nv-hit { r: 24px; } }
.nv-halo { fill: var(--nv-lit); opacity: .25; transform-box: fill-box; transform-origin: center; }
.nv-route text { fill: var(--nv-fg); font-size: 12px; font-weight: 700; }
.nv-route .nv-here { font-size: 9.5px; font-weight: 500; opacity: .75; }
.nv-portal { display: grid; place-items: center; }
.nv-portal svg { height: 100%; width: auto; max-width: 100%; direction: ltr; }
.nv-ringbg { fill: none; stroke: rgb(255 255 255 / .12); stroke-width: 10; }
.nv-ring { fill: none; stroke: var(--nv-lit); stroke-width: 10; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; filter: drop-shadow(0 0 8px var(--nv-lit)); }
.nv-ring2 { fill: none; stroke: var(--nv-g2); stroke-width: 2; stroke-dasharray: 2 6; opacity: .6; transform-origin: 50% 50%; }
.nv-core { fill: var(--nv-card); stroke: var(--nv-edge); }
.nv-portal text { fill: var(--nv-fg); text-anchor: middle; }
.nv-t-s { font-size: 10px; opacity: .8; }
.nv-t-b { font-size: 26px; font-weight: 800; }
.nova[data-look="path"] .nv-portal, .nova[data-look="portal"] :is(.nv-route, .nv-next) { display: none; }
/* the bottom of direction 3 */
.nv-mile { position: relative; overflow: hidden; display: flex; gap: var(--sp-3); align-items: center; padding: var(--sp-2) var(--sp-3); border-radius: var(--r); background: rgb(42 37 54 / .82); border: 1px solid rgb(255 255 255 / .12); }
.nv-mile::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 10% 30%, #fbbf24 0 2px, transparent 3px), radial-gradient(circle at 30% 80%, #f472b6 0 2px, transparent 3px),
  radial-gradient(circle at 60% 20%, #60a5fa 0 2px, transparent 3px), radial-gradient(circle at 85% 70%, #34d399 0 2px, transparent 3px), radial-gradient(circle at 92% 25%, #fbbf24 0 2px, transparent 3px); }
.nv-mile > * { position: relative; }
.nv-medal { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: radial-gradient(circle at 35% 30%, #fde68a, #d97706); color: #2a1709; }
.nv-mile b { font-size: var(--fs-sm); }
.nv-mile small { display: block; font-size: var(--fs-xs); opacity: .8; }
.btn.nv-go { width: 100%; min-height: 52px; border: 0; border-radius: var(--r-pill); font-weight: 800; color: var(--on-cta); background: var(--cta); box-shadow: 0 10px 22px -12px rgb(13 122 71 / .9); justify-content: center; }
.btn.nv-go:hover { filter: brightness(1.08); }
.nv-all { margin: 0; text-align: center; opacity: .85; }
/* the spaceship with Polly and Mila: one pass every 18 s behind everything; its black sky blends away */
.nv-fly { position: absolute; z-index: -1; top: 26%; left: 0; width: min(34%, 190px); height: auto; mix-blend-mode: screen; pointer-events: none; opacity: 0; }

/* wide stage (desktop and tablets): words and buttons on one side, the path on the other */
@container nova (min-width: 640px) {
  .nv-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); column-gap: var(--sp-6); row-gap: var(--sp-3); padding: var(--sp-2); }
  .nv-stage > :is(.nv-top, .nv-hi, .nv-next, .nv-mile, .btn.nv-go, .nv-all) { grid-column: 1; }
  .nv-stage > .nv-main { grid-column: 2; grid-row: 1 / span 6; height: 100%; min-height: 380px; align-self: stretch; }
  .nova .nv-crew img { width: 56px; height: 56px; }
  .nv-fly { top: 14%; width: min(22%, 220px); }
}

/* ---------- dialogs: a level's topics, the screen settings ---------- */
.nv-dlg { border: 0; padding: 0; margin: auto; width: min(440px, 100vw - 24px); max-height: min(720px, 100dvh - 24px); border-radius: var(--r-xl); overflow: hidden;
  display: none; flex-direction: column; color: var(--nv-fg); background: color-mix(in srgb, var(--nv-ground) 92%, transparent); box-shadow: 0 0 0 1px var(--nv-edge), var(--e4); }
.nv-dlg[open] { display: flex; }
.nv-dlg::backdrop { background: rgb(2 3 10 / .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.nv-dlg button { font: inherit; color: inherit; cursor: pointer; }
.nv-dlg :is(button, a):focus-visible { outline: 3px solid var(--nv-lit); outline-offset: 2px; }
@media (min-width: 900px) {
  .nv-dlg.nv-lvl { margin-block: 12px; margin-inline: auto 12px; height: calc(100dvh - 24px); max-height: none; }
}
@media (max-width: 560px) {
  .nv-dlg.nv-lvl { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
}
.nv-sh-top { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-4) var(--sp-4) var(--sp-2); }
.nv-back { width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .12); }
.nv-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
[dir="ltr"] .nv-back svg, :root:not([dir="rtl"]) .nv-back svg { transform: scaleX(-1); }
.nv-sh-top h2 { margin: 0; font-size: var(--fs-h3); line-height: 1.2; }
.nv-sh-top h2 small { display: block; font-size: var(--fs-xs); font-weight: 500; opacity: .78; }
.nv-big { margin-inline-start: auto; font-size: 1.5rem; font-weight: 800; color: var(--nv-lit); text-shadow: 0 0 14px var(--nv-lit); }
.nv-bar { margin: var(--sp-1) var(--sp-4) var(--sp-2); height: 4px; border-radius: 4px; background: rgb(255 255 255 / .12); overflow: hidden; }
.nv-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--nv-g2), var(--nv-lit)); box-shadow: 0 0 10px var(--nv-lit); }
.nv-tpath { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.nv-in { position: relative; }
.nv-in > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.nv-tr { fill: none; stroke: rgb(255 255 255 / .2); stroke-width: 3; stroke-dasharray: 1 8; stroke-linecap: round; }
.nv-ln { fill: none; stroke: var(--nv-lit); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; filter: drop-shadow(0 0 6px var(--nv-lit)); }
.nv-in ol { list-style: none; margin: 0; padding: 0; }
.nv-tp { position: absolute; width: 150px; margin-left: -75px; translate: 0 -26px; }
.nv-tp button { width: 100%; border: 0; background: none; padding: 0; display: grid; justify-items: center; gap: 4px; text-align: center; border-radius: var(--r); }
.nv-hx { width: 52px; height: 52px; display: grid; place-items: center; position: relative; filter: drop-shadow(0 0 8px var(--nv-glow, transparent)); }
.nv-hx::before, .nv-hx::after { content: ''; position: absolute; clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%); }
.nv-hx::before { inset: 0; background: var(--nv-hxbg, rgb(255 255 255 / .25)); }
.nv-hx::after { inset: 2.5px; background: var(--nv-hxin, var(--nv-ground)); }
.nv-hx > * { position: relative; z-index: 1; }
.nv-hx svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.nv-num { font-weight: 800; opacity: .65; }
.nv-tp b { font-size: var(--fs-sm); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nv-pl { display: inline-block; font-size: var(--fs-xs); font-weight: 700; padding: 1px 9px; border-radius: var(--r-pill); }
.nv-tp.is-done { --nv-glow: var(--nv-lit); --nv-hxbg: linear-gradient(135deg, var(--nv-lit), var(--nv-g2)); --nv-hxin: linear-gradient(135deg, var(--nv-lit), var(--nv-g2)); }
.nv-tp.is-done .nv-hx { color: #04121a; }
.nv-tp.is-done .nv-pl { background: rgb(255 255 255 / .12); box-shadow: inset 0 0 0 1px var(--nv-lit); }
.nv-tp.is-now { --nv-glow: var(--nv-g2); --nv-hxbg: conic-gradient(from var(--nv-a), var(--nv-g1), var(--nv-g2), var(--nv-g3), var(--nv-g1)); }
.nv-tp.is-now .nv-hx svg { fill: currentColor; stroke: none; }
.nv-tp.is-now .nv-pl { background: var(--cta); color: var(--on-cta); }
.nv-halo2 { position: absolute; inset: -8px; border-radius: 50%; background: radial-gradient(circle, var(--nv-g2), transparent 70%); opacity: .35; z-index: 0; }
.nv-tp.is-todo :is(b, .nv-pl) { opacity: .72; }
.nv-foot { padding: var(--sp-2) var(--sp-4) var(--sp-4); }
/* settings */
.nv-set h3 { margin: var(--sp-3) var(--sp-4) var(--sp-1); font-size: var(--fs-sm); opacity: .85; }
.nv-opts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); padding: var(--sp-1) var(--sp-4); }
.nv-opt { border: 0; border-radius: var(--r); padding: var(--sp-3) var(--sp-2); background: var(--nv-card); box-shadow: inset 0 0 0 1px var(--nv-edge); display: grid; gap: 4px; justify-items: center; font-weight: 700; }
.nv-opt[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--nv-lit), 0 0 18px -4px var(--nv-lit); }
.nv-opt small { font-weight: 500; opacity: .75; }
.nv-opt svg { width: 70px; height: 50px; direction: ltr; }
.nv-opt svg .a { fill: none; stroke: var(--nv-lit); stroke-width: 4; stroke-linecap: round; }
.nv-opt svg .b { fill: none; stroke: rgb(255 255 255 / .15); stroke-width: 4; }
.nv-opt svg circle:not(.a):not(.b) { fill: #fff; }
.nv-sw { display: flex; flex-wrap: wrap; gap: var(--sp-2); padding: var(--sp-1) var(--sp-4) var(--sp-4); }
.nv-sw:last-child { padding-bottom: var(--sp-5); }
.nv-sw button { min-height: 40px; border: 0; border-radius: var(--r-pill); padding: 6px 14px 6px 8px; display: inline-flex; align-items: center; gap: var(--sp-2); font-weight: 700; background: var(--nv-card); box-shadow: inset 0 0 0 1px var(--nv-edge); }
.nv-sw button[aria-pressed="true"]:not(.nv-snd) { box-shadow: inset 0 0 0 2px var(--nv-lit); }
.nv-sw i { width: 20px; height: 20px; border-radius: 50%; }

/* ---------- the welcome ---------- */
.nv-wel { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; display: none; flex-direction: column; overflow: hidden; isolation: isolate; }
.nv-wel[open] { display: flex; }
.nv-wel:focus { outline: none; }
.nv-wel::backdrop { background: #02030a; }
.nv-wel button { font: inherit; color: inherit; cursor: pointer; }
.nv-wel :is(button):focus-visible { outline: 3px solid var(--nv-lit); outline-offset: 2px; }
.wl-segs { display: flex; gap: 4px; padding: var(--sp-3) var(--sp-4) 0; direction: ltr; }
.wl-segs i { flex: 1; height: 3px; border-radius: 3px; background: rgb(255 255 255 / .2); overflow: hidden; }
.wl-segs b { display: block; height: 100%; width: 0; background: var(--nv-lit); box-shadow: 0 0 8px var(--nv-lit); }
.wl-segs .done b { width: 100%; }
.wl-segs .on b { width: 100%; }
.wl-bar { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-4) 0; }
.nv-sp { flex: 1; }
.wl-btn { min-height: 40px; min-width: 40px; border: 0; border-radius: var(--r-pill); padding: 0 14px; display: inline-grid; place-items: center; white-space: nowrap; font-weight: 700; background: rgb(255 255 255 / .14); }
.nv-brand { display: inline-flex; align-items: center; gap: 8px; direction: ltr; font-weight: 500; letter-spacing: .04em; }
.nv-brand .nv-mark { width: 30px; height: 30px; }
.nv-brand b { font-weight: 800; background: linear-gradient(100deg, var(--nv-lit), var(--nv-g2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wl-kin { position: absolute; inset: 0; z-index: -1; pointer-events: none; display: grid; place-items: center; }
.wl-kin span { position: absolute; font-size: clamp(44px, 12vw, 140px); font-weight: 800; color: transparent; -webkit-text-stroke: 1px rgb(255 255 255 / .14); white-space: nowrap; direction: ltr; opacity: 0; }
.wl-kin span.on { opacity: 1; }
.wl-ship { position: absolute; top: 14%; left: 0; width: min(46%, 300px); mix-blend-mode: screen; pointer-events: none; opacity: 0; }
span:is(.nv-fly, .wl-ship) { display: block; mix-blend-mode: normal; filter: drop-shadow(0 0 10px rgb(125 249 255 / .35)); }
/* the painted ship is a clear-background picture: no glow needed, its AI tag rides along with it */
span.is-pic:is(.nv-fly, .wl-ship) { filter: drop-shadow(0 6px 10px rgb(0 0 0 / .35)); }
.is-pic > img { display: block; width: 100%; height: auto; }
.is-pic > .wl-ai { top: auto; bottom: 0; font-size: 8px; padding: 0 4px; }
.wl-cast { position: relative; flex: 1; min-height: 0; display: flex; justify-content: center; align-items: center; gap: var(--sp-3); padding: var(--sp-2) var(--sp-4); }
.wl-pilot { position: relative; margin: 0; width: min(42vw, 230px); aspect-ratio: 3 / 4; max-height: 100%; border-radius: var(--r-xl); overflow: hidden; background: #0d1124; opacity: .55; scale: .93;
  box-shadow: 0 0 0 1.5px var(--nv-edge); transition: scale .45s var(--ease), opacity .45s, box-shadow .45s; }
.wl-pilot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.wl-pilot.talk { opacity: 1; scale: 1; box-shadow: 0 0 0 2px var(--nv-lit), 0 0 44px -6px var(--nv-lit); }
.wl-pilot[data-who="mila"].talk { box-shadow: 0 0 0 2px var(--nv-g2), 0 0 44px -6px var(--nv-g2); }
.wl-pilot figcaption { position: absolute; bottom: 8px; inset-inline: 8px; text-align: center; font-size: var(--fs-xs); font-weight: 800; background: rgb(2 3 10 / .62); border-radius: var(--r-pill); padding: 2px 0; }
.wl-vu { position: absolute; top: 10px; inset-inline-end: 10px; display: flex; gap: 2px; align-items: flex-end; height: 16px; opacity: 0; transition: opacity .3s; color: var(--nv-lit); }
.wl-pilot[data-who="mila"] .wl-vu { color: var(--nv-g2); }
.wl-pilot.talk .wl-vu { opacity: 1; }
.wl-vu i { width: 3px; height: 45%; border-radius: 2px; background: currentColor; transform-origin: bottom; }
.wl-cap { min-height: 7.5em; margin: 0; padding: var(--sp-2) var(--sp-5) var(--sp-1); text-align: center; font-size: clamp(1rem, .9rem + .8vw, 1.45rem); font-weight: 700; line-height: 1.4; text-wrap: balance; max-width: 820px; margin-inline: auto; }
.wl-cap .w { display: inline-block; }
.wl-cap em { font-style: normal; color: var(--nv-lit); text-shadow: 0 0 14px var(--nv-lit); }
.wl-cap.en { font-size: clamp(1.7rem, 1.2rem + 3vw, 3rem); font-weight: 800; direction: ltr; }
.wl-cap.en .w { background: linear-gradient(100deg, #fff 30%, var(--nv-lit) 48%, var(--nv-g2) 58%, #fff 72%) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.wl-who { display: block; font-size: var(--fs-xs); font-weight: 600; opacity: .65; margin-bottom: 2px; }
.wl-end { display: grid; gap: var(--sp-2); padding: 0 var(--sp-4) var(--sp-5); width: min(100%, 420px); margin-inline: auto; }
.wl-end[hidden] { display: none; }
.wl-later { min-height: 40px; border: 0; background: none; font-weight: 600; opacity: .8; }
.nv-wel > :last-child:not(.wl-end) { margin-bottom: var(--sp-5); }

/* ---------- header logo: an open orbit around a P, and "glitz" in light ---------- */
.nv-mark { width: 40px; height: 40px; flex: none; overflow: visible; filter: drop-shadow(0 0 5px color-mix(in srgb, #22d3ee 60%, transparent)); }
.nv-mark .o { fill: none; stroke: #22d3ee; stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 70 15; transform-origin: 16px 16px; rotate: -55deg; }
.nv-mark .p { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.nv-mark .s { fill: #e879f9; transform-origin: 26px 6px; }
.top .brand:has(.nv-mark) :is(.brand-mark, .brand-anim) { display: none; }
.top .brand:has(.nv-mark) { gap: 10px; }
.top .brand:has(.nv-mark) .brand-text { font-weight: 500; letter-spacing: .02em; }
.top .brand:has(.nv-mark) .brand-glitz { font-weight: 800; background: linear-gradient(100deg, #0891b2, #c026d3); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="dark"] .top .brand:has(.nv-mark) .brand-glitz { background-image: linear-gradient(100deg, #22d3ee, #e879f9); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .top .brand:has(.nv-mark) .brand-glitz { background-image: linear-gradient(100deg, #22d3ee, #e879f9); } }
.top .brand:has(.nv-mark) .brand-i { background: linear-gradient(#0891b2, #c026d3); }
.top .brand:has(.nv-mark) .brand-i::after { background: #e879f9; border-radius: 0; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); width: .55em; height: .55em; top: -.6em; }
@media (max-width: 640px) { .nv-mark { width: 34px; height: 34px; } }
html.a11y-contrast .top .brand:has(.nv-mark) .brand-glitz { background: none; color: inherit; }

/* ---------- motion: only when allowed; calm and easy modes keep everything still ---------- */
@media (prefers-reduced-motion: no-preference) {
  html:not(.pref-calm):not(.pref-easy) .nv-halo, html:not(.pref-calm):not(.pref-easy) .nv-tp.is-now .nv-halo2 { animation: nv-halo 2.6s ease-in-out infinite; }
  html:not(.pref-calm):not(.pref-easy) .nv-orb { animation: nv-orb 2.4s ease-in-out infinite; }
  html:not(.pref-calm):not(.pref-easy) .nv-next::after, html:not(.pref-calm):not(.pref-easy) .nv-tp.is-now .nv-hx::before { animation: nv-turn 8s linear infinite; }
  html:not(.pref-calm):not(.pref-easy) .nv-ring2 { animation: nv-spin 40s linear infinite; }
  html:not(.pref-calm):not(.pref-easy) .nv-fly { animation: nv-fly 18s linear 3s infinite; }
  html:not(.pref-calm):not(.pref-easy) .nv-mark .o { animation: nv-orbit 14s linear infinite; }
  html:not(.pref-calm):not(.pref-easy) .nv-mark .s { animation: nv-twinkle 3.6s ease-in-out infinite; }
  html:not(.pref-calm):not(.pref-easy) .nv-dlg[open] { animation: nv-in .4s var(--ease) both; }
  html:not(.pref-calm):not(.pref-easy) .nv-lvl[open] .nv-ln { animation: nv-draw 1.1s .15s ease-out both; }
  html:not(.pref-calm):not(.pref-easy) .nv-lvl[open] .nv-tp { animation: nv-pop .5s calc(.12s + var(--i) * 60ms) cubic-bezier(.2, .9, .3, 1.3) both; }
  html:not(.pref-calm):not(.pref-easy) .wl-segs .on b { animation: nv-seg var(--dur, 3s) linear both; }
  html:not(.pref-calm):not(.pref-easy) .nv-wel[open] .wl-ship { animation: nv-cross 2.8s cubic-bezier(.45, 0, .3, 1) .2s both; }
  html:not(.pref-calm):not(.pref-easy) .nv-wel[open] .wl-pilot { animation: nv-pilot .8s var(--ease) both; }
  html:not(.pref-calm):not(.pref-easy) .nv-wel[open] .wl-pilot + .wl-pilot { animation-delay: .15s; }
  html:not(.pref-calm):not(.pref-easy) .wl-pilot.talk .wl-vu i { animation: nv-vu .5s ease-in-out infinite alternate; }
  html:not(.pref-calm):not(.pref-easy) .wl-vu i:nth-child(2) { animation-delay: -.2s; }
  html:not(.pref-calm):not(.pref-easy) .wl-vu i:nth-child(3) { animation-delay: -.35s; }
  html:not(.pref-calm):not(.pref-easy) .wl-cap .w { animation: nv-rise .6s calc(var(--i) * 55ms) var(--ease) both; }
  html:not(.pref-calm):not(.pref-easy) .wl-cap.en .w { animation: nv-rise .7s calc(var(--i) * 120ms) var(--ease) both, nv-shine 3.2s .8s linear infinite; }
  html:not(.pref-calm):not(.pref-easy) .wl-kin span.on { animation: nv-drift 7s ease-out both; }
  html:not(.pref-calm):not(.pref-easy) .wl-end:not([hidden]) { animation: nv-rise .6s var(--ease) both; }
}
/* kids (docs/plan/2026-10-20-kids-look.md): the home stage moves when it opens, then rests. Each endless loop plays a few
   times and stops on its resting frame, so a child's screen is calm while reading; one-off entrances are unchanged. */
html.kids:not(.pref-calm):not(.pref-easy) :is(.nv-halo, .nv-tp.is-now .nv-halo2, .nv-orb, .nv-mark .s) { animation-iteration-count: 3; }
html.kids:not(.pref-calm):not(.pref-easy) .nv-next::after, html.kids:not(.pref-calm):not(.pref-easy) .nv-tp.is-now .nv-hx::before,
html.kids:not(.pref-calm):not(.pref-easy) .nv-fly { animation-iteration-count: 2; } /* pseudo-elements can't sit inside :is() */
html.kids:not(.pref-calm):not(.pref-easy) :is(.nv-ring2, .nv-mark .o) { animation-iteration-count: 1; animation-fill-mode: forwards; }
@keyframes nv-halo { 50% { scale: 1.6; opacity: .1; } }
@keyframes nv-orb { 50% { scale: 1.08; } }
@keyframes nv-turn { to { --nv-a: 570deg; } }
@keyframes nv-spin { to { rotate: 360deg; } }
@keyframes nv-orbit { to { rotate: 305deg; } }
@keyframes nv-twinkle { 0%, 70%, 100% { scale: 1; opacity: 1; } 80% { scale: 1.5; opacity: .6; } 90% { scale: .8; } }
@keyframes nv-fly { 0% { opacity: 1; translate: -110% 20px; rotate: 4deg; } 22% { opacity: 1; translate: 520% -50px; rotate: -6deg; } 22.5%, 100% { opacity: 0; translate: 520% -50px; } }
@keyframes nv-in { from { opacity: 0; transform: translateY(24px) scale(.97); } }
@keyframes nv-draw { from { stroke-dashoffset: 1; } }
@keyframes nv-pop { from { opacity: 0; scale: .4; } }
@keyframes nv-seg { from { width: 0; } }
@keyframes nv-cross { 0% { opacity: 1; translate: -110% 30px; rotate: 6deg; } 100% { opacity: 1; translate: 260% -40px; rotate: -6deg; } }
@keyframes nv-pilot { from { opacity: 0; translate: 0 40px; scale: .8; filter: blur(8px) brightness(2); } }
@keyframes nv-vu { from { scale: 1 .3; } to { scale: 1 1.6; } }
@keyframes nv-rise { from { opacity: 0; translate: 0 14px; filter: blur(6px); } }
@keyframes nv-shine { to { background-position: -300% 0; } }
@keyframes nv-drift { from { opacity: 0; scale: .7; } 30% { opacity: 1; } to { opacity: .5; scale: 1.15; } }

/* high contrast: plain colours, no glow */
html.a11y-contrast .nova, html.a11y-contrast .nv-dlg, html.a11y-contrast .nv-wel { background: #000; color: #fff; }
html.a11y-contrast .nova .nv-gen, html.a11y-contrast .nv-fly { display: none; }

/* ---------- the opening of a first visit (js/intro.js): night landscape, logo, down arrow, then the two languages ---------- */
html.nv-intro-on { overflow: hidden; }
html.nv-intro-on .lang-pick { display: none; }
.nv-intro { position: fixed; inset: 0; z-index: 100000; overflow: hidden; isolation: isolate; color: #eef2ff; background: #05041a; -webkit-tap-highlight-color: transparent; }
.nv-intro button { font: inherit; color: inherit; cursor: pointer; }
.nv-intro:focus { outline: none; }
.nv-intro[data-stage="out"] { opacity: 0; pointer-events: none; }
.in-sky { position: absolute; z-index: 0; inset: 0 0 -16vh; overflow: hidden; background: linear-gradient(180deg, #02020a 0%, #0a0830 34%, #24125a 52%, #4c1a6e 60%, #120a32 70%, #05041a 100%); }
.in-sky > i { position: absolute; pointer-events: none; }
.in-stars { inset: 0 0 40%; background-image: radial-gradient(1px 1px at 20px 30px, #fff, transparent), radial-gradient(1px 1px at 124px 82px, #cfe9ff, transparent),
  radial-gradient(1.6px 1.6px at 62px 140px, #fff, transparent), radial-gradient(1px 1px at 172px 168px, #ffd6f5, transparent), radial-gradient(1px 1px at 92px 204px, #fff, transparent);
  background-size: 200px 220px; opacity: .85; }
.in-stars.b { background-size: 290px 310px; background-position: 70px 40px; opacity: .5; }
.in-aurora { left: -20%; right: -20%; top: 6%; height: 40%; border-radius: 50%; opacity: .85; transform: skewY(-8deg);
  background: linear-gradient(100deg, transparent 10%, rgb(34 211 238 / .2) 30%, rgb(168 85 247 / .18) 50%, rgb(255 91 211 / .15) 66%, transparent 86%);
  -webkit-mask-image: linear-gradient(transparent, #000 40%, #000 60%, transparent); mask-image: linear-gradient(transparent, #000 40%, #000 60%, transparent); }
.in-aurora.b { top: 18%; height: 26%; opacity: .55; transform: skewY(6deg); background: linear-gradient(80deg, transparent 15%, rgb(163 230 53 / .13) 36%, rgb(34 211 238 / .17) 56%, transparent 80%); }
.in-planet { top: 9%; inset-inline-end: 8%; width: clamp(64px, 14vmin, 150px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #ffd1f2, #c04bd8 34%, #4a1a7a 68%, #1a0838); box-shadow: 0 0 60px rgb(232 121 249 / .35); }
.in-planet::after { content: ''; position: absolute; left: -40%; right: -40%; top: 41%; height: 18%; border-radius: 50%; border: 2px solid rgb(255 214 245 / .6); border-top-color: rgb(255 214 245 / .15); rotate: -14deg; }
.in-moon { top: 20%; inset-inline-start: 13%; width: clamp(14px, 3vmin, 26px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f5f3ff, #a5b4fc 60%, #4338ca); box-shadow: 0 0 22px rgb(165 180 252 / .5); }
.in-fall { position: absolute; top: calc(4% + var(--n) * 6%); left: calc(24% + var(--n) * 12%); width: clamp(80px, 14vw, 160px); height: 2px; border-radius: 2px; opacity: 0; rotate: -35deg;
  background: linear-gradient(90deg, #fff, rgb(125 249 255 / .6) 25%, transparent); box-shadow: 0 0 6px rgb(255 255 255 / .6); pointer-events: none; }
.in-flags { position: absolute; inset: 0 0 42%; pointer-events: none; }
.in-flags i { position: absolute; top: var(--y); left: 0; width: calc(36px * var(--s)); opacity: 0; }
.in-flags svg { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: 2px; box-shadow: 0 0 14px rgb(125 249 255 / .22); }
.in-land { position: absolute; inset: 0; width: 100%; height: 100%; }
.in-photo { position: absolute; inset: 0; z-index: 1; opacity: 0; }
.in-sky > :is(.in-flags, .in-fall, .in-run) { z-index: 2; }
.in-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; display: block; }
.nv-intro.has-photo .in-photo { opacity: 1; }
.nv-intro.has-photo :is(.in-planet, .in-moon) { opacity: 0; }
/* keeps the logo and the arrow readable on the photo's bright horizon */
.nv-intro.has-photo .in-sky::after { content: ''; position: absolute; inset: 0; z-index: 1; background: radial-gradient(60% 40% at 50% 38%, rgb(3 2 12 / .45), transparent 70%), linear-gradient(transparent 70%, rgb(3 2 12 / .55)); pointer-events: none; }
.in-ai, .wl-ai { position: absolute; z-index: 2; font-size: 10px; font-weight: 700; letter-spacing: .06em; padding: 1px 6px; border-radius: 6px; background: rgb(3 2 12 / .55); color: rgb(255 255 255 / .8); pointer-events: none; }
.in-ai { bottom: 8px; inset-inline-start: 8px; }
.in-ai[hidden] { display: none; }
.wl-ai { top: 8px; inset-inline-start: 8px; }
.in-run { position: absolute; top: 46%; left: 0; width: clamp(90px, 16vw, 180px); opacity: 0; pointer-events: none; }
.pg-ship { display: block; width: 100%; height: auto; overflow: visible; }

.in-hero { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 0 16px 22vh; }
.in-logo { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.in-mark { width: clamp(76px, 18vmin, 128px); height: auto; overflow: visible; filter: drop-shadow(0 0 18px rgb(168 85 247 / .6)); }
.in-mark .o { fill: none; stroke: url(#inMk); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 84 16; transform-origin: 16px 16px; rotate: -55deg; }
.in-mark .p { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.in-mark .s { fill: #ffe9a8; transform-box: fill-box; transform-origin: center; }
.in-word { font-weight: 800; font-size: clamp(28px, 8vmin, 64px); line-height: 1; letter-spacing: .3em; padding-inline-start: .3em; color: #fff; text-shadow: 0 0 26px rgb(125 249 255 / .45); }
.in-word b { font-weight: 800; color: transparent; text-shadow: none; background: linear-gradient(100deg, #7df9ff, #a855f7 25%, #ff5bd3 50%, #a855f7 75%, #7df9ff) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; }
.in-bar { width: min(220px, 52vw); height: 2px; border-radius: 2px; overflow: hidden; background: rgb(255 255 255 / .12); direction: ltr; }
.in-bar i { display: block; height: 100%; transform-origin: 0 50%; background: linear-gradient(90deg, #7df9ff, #ff5bd3); box-shadow: 0 0 10px #7df9ff; }
.nv-intro:not([data-stage="load"]) .in-bar { opacity: 0; }
/* the arrow: no words, no box, just light in the landscape (leo 15:24) */
.in-down { position: absolute; bottom: max(5vh, 20px); left: 0; right: 0; margin-inline: auto; width: 76px; height: 76px; padding: 0; border: 0; border-radius: 50%; background: none; display: grid; place-items: center; color: #7df9ff; }
.in-down[hidden] { display: none; }
.in-down svg { width: 46px; height: 46px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px currentColor); }
.in-down svg path:first-child { opacity: .45; }
.in-down:hover { color: #fff; }
.in-down:focus-visible { outline: 2px solid rgb(125 249 255 / .7); outline-offset: 2px; }

.in-pick { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; place-items: center; padding: max(20px, 5vh) 16px;
  background: linear-gradient(180deg, rgb(3 2 12 / .2), rgb(3 2 12 / .6)); opacity: 0; visibility: hidden; transform: translateY(100vh); }
.nv-intro:is([data-stage="pick"], [data-stage="out"]) .in-pick { opacity: 1; visibility: visible; transform: none; }
.nv-intro:is([data-stage="pick"], [data-stage="out"]) .in-hero { opacity: 0; visibility: hidden; transform: translateY(-60vh); }
.in-card { width: min(100%, 760px); display: flex; flex-direction: column; gap: 12px; padding: clamp(18px, 4vw, 34px); border-radius: 28px; text-align: start;
  background: linear-gradient(160deg, rgb(30 24 80 / .82), rgb(8 6 28 / .86)); border: 1px solid rgb(255 255 255 / .15);
  box-shadow: 0 30px 80px -20px rgb(0 0 0 / .75), inset 0 1px 0 rgb(255 255 255 / .16); }
.in-q { margin: 6px 0 2px; display: flex; align-items: baseline; gap: 10px; font-size: clamp(1.15rem, 1rem + 1.1vw, 1.6rem); font-weight: 800; line-height: 1.25; }
.in-q span { font-size: .68em; letter-spacing: .12em; color: transparent; background: linear-gradient(90deg, #7df9ff, #ff5bd3); -webkit-background-clip: text; background-clip: text; direction: ltr; }
.in-langs { display: grid; grid-template-columns: repeat(auto-fill, minmax(134px, 1fr)); gap: 8px; }
.in-chip { min-height: 46px; display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 14px; text-align: start; font-weight: 600;
  border: 1px solid rgb(255 255 255 / .14); background: rgb(255 255 255 / .05); }
.in-chip:hover { border-color: rgb(125 249 255 / .5); }
.in-chip.on { border-color: #7df9ff; background: rgb(125 249 255 / .13); box-shadow: 0 0 0 1px #7df9ff, 0 0 22px -4px #7df9ff; }
.in-fl { font-size: 1.25em; line-height: 1; }
.in-courses { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 12px; }
.in-course { position: relative; min-height: 104px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border-radius: 20px; font-size: 1.15rem; font-weight: 800;
  border: 1px solid rgb(255 255 255 / .14); background: radial-gradient(circle at 50% 0%, rgb(168 85 247 / .28), transparent 70%), rgb(255 255 255 / .04); }
.in-course:hover { border-color: rgb(255 91 211 / .5); }
.in-course.on { border-color: #ff5bd3; box-shadow: 0 0 0 1px #ff5bd3, 0 0 30px -6px #ff5bd3; }
.in-course.on::after { content: ''; position: absolute; top: 10px; inset-inline-end: 12px; width: 8px; height: 8px; border-radius: 50%; background: #ff5bd3; box-shadow: 0 0 10px #ff5bd3; }
.in-cfl { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-size: .95rem; font-weight: 800; letter-spacing: .08em; padding-inline-start: .08em;
  background: radial-gradient(circle at 35% 30%, rgb(255 255 255 / .35), transparent 55%), linear-gradient(135deg, #22d3ee, #a855f7 55%, #ff5bd3); box-shadow: 0 0 0 2px rgb(255 255 255 / .2), 0 0 22px rgb(168 85 247 / .45); }
.in-chip:focus-visible, .in-course:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.in-down.in-go { position: static; margin: 6px auto 0; color: #ff5bd3; }
@media (max-width: 560px) {
  .in-flags i:nth-child(n+10), .in-fall:nth-of-type(n+4) { display: none; }
  .in-langs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .in-chip { flex-direction: column; justify-content: center; gap: 2px; min-height: 52px; padding: 4px; text-align: center; font-size: .8rem; line-height: 1.15; border-radius: 12px; }
  .in-card { gap: 10px; padding: 16px 14px; border-radius: 24px; }
  .in-course { min-height: 88px; }
  .in-cfl { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: no-preference) {
  html:not(.pref-calm):not(.pref-easy) .nv-intro { transition: opacity .6s ease; }
  html:not(.pref-calm):not(.pref-easy) .nv-intro .in-sky { transition: transform 1.2s cubic-bezier(.6, 0, .2, 1); }
  html:not(.pref-calm):not(.pref-easy) .nv-intro:is([data-stage="pick"], [data-stage="out"]) .in-sky { transform: translateY(-14vh); }
  html:not(.pref-calm):not(.pref-easy) .nv-intro :is(.in-hero, .in-pick) { transition: transform .9s cubic-bezier(.6, 0, .2, 1), opacity .7s ease, visibility 0s linear .9s; }
  html:not(.pref-calm):not(.pref-easy) .nv-intro:is([data-stage="pick"], [data-stage="out"]) .in-pick { transition-delay: .12s, .12s, 0s; }
  html:not(.pref-calm):not(.pref-easy) .nv-intro .in-bar { transition: opacity .5s; }
  html:not(.pref-calm):not(.pref-easy) .nv-intro :is(.in-photo, .in-planet, .in-moon) { transition: opacity 1.4s ease; }
  /* a slow camera drift over the landscape photo: the background lives while the language is chosen */
  html:not(.pref-calm):not(.pref-easy) .nv-intro .in-photo img { animation: in-drift 28s ease-in-out infinite alternate; }
  html:not(.pref-calm):not(.pref-easy) .nv-intro .in-logo { animation: in-logo 2.6s cubic-bezier(.2, .7, .2, 1) .4s both; }
  html:not(.pref-calm):not(.pref-easy) .nv-intro .in-mark .o { animation: in-ring 2.4s ease-out .5s both, in-orbit 26s linear 3s infinite; }
  html:not(.pref-calm):not(.pref-easy) .nv-intro .in-mark .s { animation: nv-twinkle 3.2s ease-in-out 2.6s infinite; }
  html:not(.pref-calm):not(.pref-easy) .nv-intro .in-word b { animation: nv-shine 7s linear 3s infinite; }
  html:not(.pref-calm):not(.pref-easy) .nv-intro .in-bar i { animation: in-load 3.2s cubic-bezier(.3, .1, .3, 1) .1s both; }
  html:not(.pref-calm):not(.pref-easy) .nv-intro .in-down:not([hidden]) { animation: in-up .9s cubic-bezier(.2, .7, .2, 1) both, in-bob 2s ease-in-out .9s infinite; }
  html:not(.pref-calm):not(.pref-easy) .nv-intro .in-stars.b { animation: in-tw 4s ease-in-out infinite alternate; }
  html:not(.pref-calm):not(.pref-easy) .nv-intro .in-aurora { animation: in-aur 16s ease-in-out infinite alternate; }
  html:not(.pref-calm):not(.pref-easy) .nv-intro .in-aurora.b { animation-duration: 21s; animation-direction: alternate-reverse; }
  html:not(.pref-calm):not(.pref-easy) .nv-intro .in-fall { animation: in-fall calc(6s + var(--n) * 1.4s) linear calc(.6s + var(--n) * 1.1s) infinite; }
  html:not(.pref-calm):not(.pref-easy) .nv-intro .in-flags i { animation: in-flag var(--d) linear var(--dl) infinite; }
  html:not(.pref-calm):not(.pref-easy) .nv-intro .in-flags svg { transform-origin: 0 50%; animation: in-wave 2.4s ease-in-out infinite alternate; }
  html:not(.pref-calm):not(.pref-easy) .nv-intro .in-run { animation: in-run 12s cubic-bezier(.45, 0, .25, 1) .3s infinite; }
  html:not(.pref-calm):not(.pref-easy) :is(.nv-intro, .nv-wel, .nova) .pg-ship .fire { transform-box: fill-box; transform-origin: 100% 50%; animation: in-fire .16s ease-in-out infinite alternate; }
  html:not(.pref-calm):not(.pref-easy) .nv-intro :is(.in-glint rect, .in-city circle) { animation: in-tw 2.6s ease-in-out infinite alternate; }
}
@keyframes in-logo { from { opacity: .02; transform: scale(.94); } }
@keyframes in-drift { from { transform: scale(1.04); } to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); } }
@keyframes in-ring { from { stroke-dasharray: 0 100; } }
@keyframes in-orbit { to { rotate: 305deg; } }
@keyframes in-load { from { scale: 0 1; } }
@keyframes in-up { from { opacity: 0; translate: 0 -10px; } }
@keyframes in-bob { 50% { translate: 0 8px; } }
@keyframes in-tw { from { opacity: .25; } to { opacity: .8; } }
@keyframes in-aur { from { translate: -6% 0; } to { translate: 6% 2%; } }
@keyframes in-fall { 0% { opacity: 0; translate: 0 0; } 2% { opacity: 1; } 11% { opacity: 0; translate: -30vmin 21vmin; } 100% { opacity: 0; translate: -30vmin 21vmin; } }
@keyframes in-flag { 0% { opacity: 0; translate: -12vw 0; rotate: -6deg; } 6% { opacity: calc(.4 + var(--s) * .45); } 50% { translate: 50vw -3vh; rotate: 5deg; } 94% { opacity: calc(.4 + var(--s) * .45); } 100% { opacity: 0; translate: 108vw 2vh; rotate: -4deg; } }
@keyframes in-wave { from { transform: perspective(60px) rotateY(-14deg) skewY(-3deg); } to { transform: perspective(60px) rotateY(10deg) skewY(3deg); } }
@keyframes in-run { 0% { opacity: 0; translate: -30vw 5vh; rotate: 6deg; } 3% { opacity: 1; } 32% { opacity: 1; translate: 110vw -12vh; rotate: -7deg; } 33%, 100% { opacity: 0; translate: 110vw -12vh; } }
@keyframes in-fire { from { scale: .75 .9; } to { scale: 1.2 1.05; } }

/* the opening film (js/intro.js, film()): full screen over the opening, one skip button */
.in-film { position: absolute; inset: 0; z-index: 5; background: #000; display: grid; place-items: center; }
.in-film video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.in-film-bar { position: absolute; inset-block-start: max(12px, env(safe-area-inset-top)); inset-inline: 12px; display: flex; justify-content: space-between; gap: 8px; pointer-events: none; }
.in-film-bar button, .in-play { pointer-events: auto; padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .5); background: rgba(0, 0, 0, .55); color: #fff; min-height: 44px; }
.in-play { position: absolute; font-size: 1.1rem; padding-inline: 28px; }
.in-film video::cue { font-size: clamp(14px, 2.4vw, 22px); background: rgba(0, 0, 0, .6); color: #fff; }
.in-film { opacity: 0; transition: opacity .45s; }
.in-film.on { opacity: 1; }
.in-film.out { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .in-film { transition: none; } }
