/*
 * theme.css — Aurora Book 16. A display launch page: it opens at night so the
 * screen is the brightest thing on it. Polar green is the one brand colour;
 * the blue and violet only ever appear inside the aurora gradient.
 *
 * :root is the dark mode the page opens in; html[data-theme="light"] is the
 * other. --x-* tokens are this app's own: the notebook's metal and glass, the
 * aurora stops, and the always-dark closing band.
 */

:root {
  color-scheme: dark;

  --canvas: #07080d;
  --surface: #10121a;
  --surface-2: #171a25;
  --border: #252a3a;
  --border-strong: #4a5169;
  --ink: #eef0f6;
  --muted: #9aa1b5;
  --accent: #6fe9c6;
  --accent-hover: #93f1d6;
  --accent-ink: #04221a;
  --accent-text: #7df0cf;
  --accent-strong: #8ef3d7;
  --accent-soft: #0f2a26;
  --accent-border: #1f5348;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #172f22;
  --success-strong: #58a474;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #3a2517;
  --warning-strong: #ca854f;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #3b191b;
  --danger-strong: #d57575;
  --chart-1: #6fe9c6;
  --chart-2: #2bb8ff;
  --chart-3: #a66bff;
  --chart-4: #98911a;
  --chart-5: #cb70a4;
  --chart-6: #a1a1aa;

  --x-metal-1: #3b404e;
  --x-metal-2: #22252e;
  --x-metal-3: #5c6274;
  --x-key: #14161c;
  --x-glass: #020203;
  --x-aurora-1: #3df5b4;
  --x-aurora-2: #2bb8ff;
  --x-aurora-3: #a66bff;
  --x-night: #05060a;
  --x-night-ink: #eef0f6;
  --x-night-muted: #9aa1b5;
  --x-night-line: #252a3a;
  --gradient-aurora: linear-gradient(120deg, var(--x-aurora-1), var(--x-aurora-2) 55%, var(--x-aurora-3));

  --font-display: "Manrope Variable", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Manrope Variable", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Manrope Variable", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --display-weight: 600;
  --display-tracking: -0.045em;
  --eyebrow-tracking: 0.08em;

  --radius-btn: 999px;
  --radius-card: 1.75rem;
  --radius-input: 999px;
  --shadow-card: none;
}

html[data-theme="light"] {
  color-scheme: light;

  --canvas: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #e9ebf0;
  --border: #d5d8e0;
  --border-strong: #a9aebb;
  --ink: #0b0d14;
  --muted: #5b6172;
  --accent: #0c6f5b;
  --accent-hover: #095747;
  --accent-ink: #ffffff;
  --accent-text: #0a6352;
  --accent-strong: #0a5747;
  --accent-soft: #dcf1ec;
  --accent-border: #9fd3c7;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #dfebe3;
  --success-strong: #137638;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #f2e6dd;
  --warning-strong: #a64c08;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #f2dfdf;
  --danger-strong: #b91c1c;
  --chart-1: #0c6f5b;
  --chart-2: #1670a8;
  --chart-3: #6a3fc0;
  --chart-4: #425605;
  --chart-5: #7c285c;
  --chart-6: #5b6172;

  --x-metal-1: #e6e9ee;
  --x-metal-2: #c4c9d3;
  --x-metal-3: #9aa0ad;
  --x-key: #1c1f26;
  --x-glass: #020203;
  --x-aurora-1: #3df5b4;
  --x-aurora-2: #2bb8ff;
  --x-aurora-3: #a66bff;
  --x-night: #05060a;
  --x-night-ink: #eef0f6;
  --x-night-muted: #9aa1b5;
  --x-night-line: #252a3a;
}

/*
 * app.css — Aurora Book 16. What no primitive covers: the notebook that opens
 * and then fills the screen as the page scrolls, the brightness scene, the
 * comparison slider, the glass and motion demos, the pixel torch, the reel
 * and the night band. Tokens only. Every scene RESTS in its finished state;
 * app.js adds .js-scroll to <html> and only then do the scenes become tall,
 * pinned and scroll-driven.
 */

html { scroll-behavior: smooth; }
html.reduced-motion { scroll-behavior: auto; }

/* ---- Top bar ------------------------------------------------------------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  border-bottom: 1px solid transparent;
  transition: background-color 300ms ease, border-color 300ms ease;
}
.topbar.is-solid {
  background: color-mix(in srgb, var(--canvas) 78%, transparent);
  border-bottom-color: var(--border);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
}
.brand-ring {
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 999px;
  background: var(--gradient-aurora);
  -webkit-mask: radial-gradient(circle, transparent 42%, black 46%);
  mask: radial-gradient(circle, transparent 42%, black 46%);
  flex: none;
}

/* ---- Entrances: set by app.js, so a page without it is simply all there -- */
.rise { transition: opacity 800ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 800ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.rise-wait { opacity: 0; transform: translateY(1.75rem); }

/* ---- Scene 1: the lid ---------------------------------------------------- */
.nb-scene {
  position: relative;
  --open: 1;    /* 0 closed → 1 open */
  --glow: 1;    /* 0 panel off → 1 panel lit */
  --boot: 0;    /* the mark that shows while the panel wakes */
  --flat: 0;    /* 0 → 1 the screen turns to face you */
  --zs: 1;      /* the push-in scale */
  --zy: 0px;    /* and its vertical travel */
  --a: 1;       /* opening headline */
  --b: 1;       /* the line under the open notebook */
  --c: 0;       /* the full-bleed frame the push-in lands on */
}
.nb-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  min-height: 100svh;
  padding: 7rem 1.5rem 3rem;
  overflow: clip;
  text-align: center;
}
.nb-copy-a { opacity: var(--a); transform: translateY(calc((1 - var(--a)) * -2rem)); }
.nb-copy-b { opacity: var(--b); transform: translateY(calc((1 - var(--b)) * 1.5rem)); }
.nb-full { display: none; }

.js-scroll .nb-scene { height: 460vh; }
.js-scroll .nb-stage { position: sticky; top: 0; height: 100svh; padding-block: 0; }
.js-scroll .nb-copy-a { position: absolute; inset: 6.5rem 1.5rem auto; }
.js-scroll .nb-copy-b { position: absolute; inset: auto 1.5rem 2.25rem; }
.js-scroll .nb-wrap { transform: translateY(calc((1 - var(--open)) * 15svh - var(--open) * 7svh)); }
.js-scroll .nb-full {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  opacity: var(--c);
  pointer-events: none;
  background: var(--x-glass);
  color: var(--x-night-ink);
  text-align: left;
}
.nb-full > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nb-full::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 30%, transparent 45%, rgba(0, 0, 0, 0.8) 100%);
}
.nb-full-copy { position: relative; z-index: 1; width: 100%; transform: translateY(calc((1 - var(--c)) * 2rem)); }
.nb-full .night-muted { color: var(--x-night-muted); }

.nb-wrap {
  --w: min(84vw, 860px, 62svh);
  --t: calc(var(--w) * 0.016);
  position: relative;
  flex: none;
  width: var(--w);
  height: calc(var(--w) * 0.8);
  perspective: 2000px;
  perspective-origin: 50% 30%;
}
.nb-glow {
  position: absolute;
  inset: -4% 2% 34%;
  background: var(--gradient-aurora);
  filter: blur(calc(var(--w) * 0.13));
  opacity: calc(var(--glow) * 0.55 * (1 - var(--flat)));
  pointer-events: none;
}
.nb {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform-origin: 50% calc(var(--w) * 0.62);
  transform:
    translateY(calc(var(--w) * -0.26 * (1 - var(--open)) + var(--zy)))
    scale(var(--zs))
    rotateX(calc((-42deg + 26deg * var(--open)) * (1 - var(--flat))));
}
.nb-shadow {
  position: absolute;
  inset: calc(var(--w) * 0.62) -6% auto;
  height: calc(var(--w) * 0.66);
  transform-origin: 50% 0;
  transform: rotateX(90deg) translateZ(calc(var(--t) * -1.4));
  background: radial-gradient(ellipse at 50% 55%, rgba(0, 0, 0, 0.5), transparent 68%);
  filter: blur(calc(var(--w) * 0.02));
}

/* the lid: glass on the inside, metal on the outside, and an edge between */
.nb-lid {
  position: absolute;
  inset: 0 0 auto 0;
  height: calc(var(--w) * 0.62);
  transform-style: preserve-3d;
  transform-origin: 50% 100%;
  transform: translateY(-3px) rotateX(calc(-90deg + (102deg - 12deg * var(--flat)) * var(--open)));
}
.nb-face {
  position: absolute;
  inset: 0;
  border-radius: calc(var(--w) * 0.022);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.nb-front {
  padding: calc(var(--w) * 0.018) calc(var(--w) * 0.013) calc(var(--w) * 0.014);
  background: var(--x-glass);
  box-shadow: inset 0 0 0 calc(var(--w) * 0.0025) var(--x-metal-3);
}
.nb-cam {
  position: absolute;
  inset: calc(var(--w) * 0.006) 0 auto;
  margin-inline: auto;
  width: calc(var(--w) * 0.007);
  height: calc(var(--w) * 0.007);
  border-radius: 999px;
  background: var(--x-metal-2);
  box-shadow: 0 0 0 1px var(--x-key);
}
.nb-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--w) * 0.01);
  background: var(--gradient-aurora);
}
.nb-screen img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nb-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--x-glass);
  opacity: calc(1 - var(--glow));
}
.nb-sheen {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(112deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.03) 24%, transparent 38%);
  opacity: calc(1 - var(--flat));
}
.nb-boot {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  opacity: var(--boot);
}
.nb-boot > span {
  width: 9%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--gradient-aurora);
  -webkit-mask: radial-gradient(circle, transparent 46%, black 50%);
  mask: radial-gradient(circle, transparent 46%, black 50%);
}
.nb-back {
  display: grid;
  place-items: center;
  background: linear-gradient(158deg, var(--x-metal-1) 0%, var(--x-metal-2) 58%, var(--x-metal-1) 100%);
  box-shadow: inset 0 0 0 1px var(--x-metal-3);
  transform: translateZ(calc(var(--t) * -0.6)) rotateY(180deg);
}
.nb-emblem {
  width: 8.5%;
  aspect-ratio: 1;
  border-radius: 999px;
  border: calc(var(--w) * 0.0055) solid var(--x-metal-3);
  box-shadow: inset 0 0 0 calc(var(--w) * 0.006) var(--x-metal-2), inset 0 0 0 calc(var(--w) * 0.009) var(--x-metal-3);
}
.nb-lid-edge {
  position: absolute;
  inset: 0 calc(var(--w) * 0.02) auto;
  height: calc(var(--t) * 0.6);
  transform-origin: 50% 0;
  transform: rotateX(-90deg);
  background: linear-gradient(90deg, var(--x-metal-2), var(--x-metal-3) 50%, var(--x-metal-2));
}

/* the deck */
.nb-base {
  position: absolute;
  inset: calc(var(--w) * 0.62) 0 auto 0;
  height: calc(var(--w) * 0.62);
  transform-style: preserve-3d;
  transform-origin: 50% 0;
  transform: rotateX(90deg);
  border-radius: calc(var(--w) * 0.01) calc(var(--w) * 0.01) calc(var(--w) * 0.032) calc(var(--w) * 0.032);
  background: linear-gradient(180deg, var(--x-metal-2) 0%, var(--x-metal-1) 70%);
  box-shadow: inset 0 0 0 1px var(--x-metal-3);
}
.nb-spill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, color-mix(in srgb, var(--x-aurora-1) 30%, transparent) 0%, transparent 58%);
  opacity: var(--glow);
}
.nb-hinge {
  position: absolute;
  inset: 0 14% auto;
  height: 2.4%;
  border-radius: 0 0 calc(var(--w) * 0.008) calc(var(--w) * 0.008);
  background: linear-gradient(180deg, var(--x-glass), var(--x-key));
}
.nb-grille {
  position: absolute;
  inset: 12% auto 45% 3.2%;
  width: 4.6%;
  background: radial-gradient(circle, var(--x-key) 36%, transparent 44%) 0 0 / calc(var(--w) * 0.0075) calc(var(--w) * 0.0075);
  opacity: 0.8;
}
.nb-grille-r { inset: 12% 3.2% 45% auto; }
.nb-keys {
  position: absolute;
  inset: 11% 9.6% auto;
  height: 44%;
  display: flex;
  flex-direction: column;
  gap: calc(var(--w) * 0.0045);
  padding: calc(var(--w) * 0.0045);
  border-radius: calc(var(--w) * 0.008);
  background: color-mix(in srgb, var(--x-aurora-1) calc(26% * var(--glow)), var(--x-glass));
}
.nb-row { display: flex; flex: 1; gap: calc(var(--w) * 0.0045); }
.nb-row-fn { flex: 0.58; }
.nb-key {
  flex: 1;
  border-radius: calc(var(--w) * 0.004);
  background: var(--x-key);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.nb-key-15 { flex: 1.55; }
.nb-key-2 { flex: 2.05; }
.nb-key-space { flex: 6.4; }
.nb-pad {
  position: absolute;
  inset: 60.5% 30% 6.5%;
  border-radius: calc(var(--w) * 0.012);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--x-metal-3) 70%, transparent);
}
.nb-lip {
  position: absolute;
  inset: 100% 0 auto 0;
  height: var(--t);
  transform-origin: 50% 0;
  transform: rotateX(-90deg);
  border-radius: 0 0 calc(var(--w) * 0.02) calc(var(--w) * 0.02);
  background: linear-gradient(180deg, var(--x-metal-3), var(--x-metal-2));
}
.nb-lip::after {
  content: "";
  position: absolute;
  inset: 0 43% 45%;
  border-radius: 0 0 999px 999px;
  background: var(--x-metal-2);
}
.nb-side {
  position: absolute;
  inset: calc(var(--w) * 0.01) auto calc(var(--w) * 0.03) 0;
  width: var(--t);
  transform-origin: 0 50%;
  transform: rotateY(90deg);
  background: var(--x-metal-2);
}
.nb-side-r { inset: calc(var(--w) * 0.01) 0 calc(var(--w) * 0.03) auto; transform-origin: 100% 50%; transform: rotateY(-90deg); }

.scroll-cue { animation: cue 1.8s ease-in-out infinite; }
@keyframes cue {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(0.4rem); }
}
html.reduced-motion .scroll-cue { animation: none; }

/* ---- The statement: words light as they are reached ---------------------- */
.say-word { transition: opacity 200ms linear; }

/* ---- The comparison slider ------------------------------------------------ */
.cmp {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--x-glass);
  color: var(--x-night-ink);
  --pos: 50%;
}
.cmp img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cmp-lcd { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cmp-lcd img { filter: brightness(1.3) contrast(0.6) saturate(0.78); }
.cmp-lcd::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, 0.08); }
.cmp-bar {
  position: absolute;
  inset: 0 auto 0 var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--x-night-ink);
  pointer-events: none;
}
.cmp-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: var(--x-night-ink);
  color: var(--x-night);
  transform: translate(-50%, -50%);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.45);
}
.cmp-tag {
  position: absolute;
  bottom: 1rem;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  font-size: 0.75rem;
  pointer-events: none;
}
.cmp-tag-l { left: 1rem; }
.cmp-tag-r { right: 1rem; }
.cmp-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

/* ---- Scene 2: brightness -------------------------------------------------- */
.nits-scene { position: relative; --lum: 1; }
.nits-stage { padding-block: 6rem; }
.js-scroll .nits-scene { height: 280vh; }
.js-scroll .nits-stage {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding-block: 4.5rem 2rem;
}
.nits-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--x-glass);
  box-shadow: 0 0 calc(7rem * var(--lum)) color-mix(in srgb, var(--x-aurora-2) calc(38% * var(--lum)), transparent);
}
.nits-panel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(calc(0.38 + 0.74 * var(--lum))) saturate(calc(0.7 + 0.5 * var(--lum)));
}
.nits-meter { height: 0.375rem; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.nits-meter > span {
  display: block;
  height: 100%;
  width: calc(31.25% + 68.75% * var(--lum));
  border-radius: inherit;
  background: var(--gradient-aurora);
}
.nits-step { color: var(--muted); transition: color 200ms linear; }
.nits-step.is-on { color: var(--ink); }

/* ---- Colour: the full-bleed frame and the banding strips ------------------ */
.bleed {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: min(82svh, 48rem);
  min-height: 30rem;
  overflow: hidden;
  background: var(--x-glass);
  color: var(--x-night-ink);
}
.bleed > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bleed::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.82) 100%);
}
.bleed > div { position: relative; z-index: 1; width: 100%; }
.bleed .night-muted { color: var(--x-night-muted); }
.band { height: 3.5rem; border-radius: 0.75rem; }
.band-smooth { background: linear-gradient(90deg, var(--x-aurora-1), var(--x-aurora-3)); }
.band-steps {
  background: linear-gradient(
    90deg,
    var(--x-aurora-1) 0 10%,
    color-mix(in srgb, var(--x-aurora-1) 89%, var(--x-aurora-3)) 10% 20%,
    color-mix(in srgb, var(--x-aurora-1) 78%, var(--x-aurora-3)) 20% 30%,
    color-mix(in srgb, var(--x-aurora-1) 67%, var(--x-aurora-3)) 30% 40%,
    color-mix(in srgb, var(--x-aurora-1) 56%, var(--x-aurora-3)) 40% 50%,
    color-mix(in srgb, var(--x-aurora-1) 44%, var(--x-aurora-3)) 50% 60%,
    color-mix(in srgb, var(--x-aurora-1) 33%, var(--x-aurora-3)) 60% 70%,
    color-mix(in srgb, var(--x-aurora-1) 22%, var(--x-aurora-3)) 70% 80%,
    color-mix(in srgb, var(--x-aurora-1) 11%, var(--x-aurora-3)) 80% 90%,
    var(--x-aurora-3) 90% 100%
  );
}

/* ---- Motion: the same journey, stepped and smooth ------------------------- */
.hz-track { position: relative; height: 3.5rem; overflow: hidden; border-radius: 999px; background: var(--surface-2); }
.hz-dot {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--gradient-aurora);
  animation: hz 2.6s linear infinite alternate;
}
.hz-dot-steps { animation-timing-function: steps(12); }
@keyframes hz { to { left: calc(100% - 3rem); } }
html.reduced-motion .hz-dot { animation: none; }

/* ---- Glass: one reflection, two finishes ----------------------------------- */
.glass { position: relative; overflow: hidden; border-radius: 1.25rem; background: var(--x-glass); }
.glass img { display: block; width: 100%; height: 100%; object-fit: cover; }
.glass-glare {
  position: absolute;
  inset: -10%;
  background:
    linear-gradient(104deg, transparent 28%, rgba(255, 255, 255, 0.62) 34%, rgba(255, 255, 255, 0.55) 44%, transparent 50%),
    linear-gradient(104deg, transparent 56%, rgba(255, 255, 255, 0.4) 60%, rgba(255, 255, 255, 0.36) 66%, transparent 70%);
  filter: blur(3px);
  opacity: 0.85;
  transition: filter 600ms ease, opacity 600ms ease;
}
[data-glass="matte"] .glass-glare { filter: blur(48px); opacity: 0.3; }
[data-glass="gloss"] .only-matte, [data-glass="matte"] .only-gloss { display: none; }

/* ---- The pixel torch ------------------------------------------------------ */
.torch {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--x-glass);
  color: var(--x-night-ink);
  --mx: 68%;
  --my: 38%;
  touch-action: pan-y;
}
.torch-light {
  position: absolute;
  inset: 0;
  background: var(--gradient-aurora);
  -webkit-mask-image: radial-gradient(circle 11rem at var(--mx) var(--my), black 0%, rgba(0, 0, 0, 0.5) 45%, transparent 100%);
  mask-image: radial-gradient(circle 11rem at var(--mx) var(--my), black 0%, rgba(0, 0, 0, 0.5) 45%, transparent 100%);
}
.torch-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--x-glass) 1.5px, transparent 1.5px),
    linear-gradient(90deg, var(--x-glass) 1.5px, transparent 1.5px);
  background-size: 9px 9px;
}
.torch-copy { position: relative; }
.torch .night-muted { color: var(--x-night-muted); }

.hue-strip { height: 0.75rem; border-radius: 999px; background: var(--gradient-aurora); }

/* ---- The reel: a row you scroll sideways, pinned when app.js is running ---- */
.reel { position: relative; }
.reel-stage { padding-block: 6rem; }
.reel-track {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  overflow-x: auto;
  padding-inline: max(1.5rem, calc((100vw - 72rem) / 2));
  scroll-snap-type: x mandatory;
}
.reel-card { flex: none; scroll-snap-align: center; }
.reel-intro { width: min(80vw, 26rem); }
.reel-shot { height: min(60svh, 36rem, 100vw); aspect-ratio: 4 / 5; }
.js-scroll .reel { height: 340vh; }
.js-scroll .reel-stage {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100svh;
  padding-block: 4rem 0;
  overflow: clip;
}
.js-scroll .reel-track { overflow: visible; scroll-snap-type: none; transform: translateX(var(--x, 0px)); }

/* ---- The night band: dark in both modes ----------------------------------- */
.night { background: var(--x-night); color: var(--x-night-ink); }
.night .night-muted { color: var(--x-night-muted); }
.night .night-line { border-color: var(--x-night-line); }
.aurora-text {
  background: var(--gradient-aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.night-glow { position: relative; overflow: clip; }
.night-glow::before {
  content: "";
  position: absolute;
  inset: auto 10% -55% 10%;
  height: 80%;
  background: var(--gradient-aurora);
  filter: blur(7rem);
  opacity: 0.35;
  pointer-events: none;
}
.night-glow > * { position: relative; }
