/* $RUDOLPH — "Northern Beacon · 1948 Archive" design system for Elysium Chain (99901).
   Editorial serif headlines + 1948 storybook ink: inked outlines, hard offset "print" shadows,
   pill controls and a floating header (craft borrowed from the owner's Kinepip site, recoloured
   in Rudolph's beacon red, brass and night navy). Fraunces + Figtree + IBM Plex Mono + Lilita One wordmark. */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-opsz-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-opsz-italic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree-var.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lilita One";
  src: url("/fonts/lilita-one.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --stamp: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;

  --r-lg: 26px;
  --r-md: 16px;
  --r-sm: 10px;
  --edge-w: 2.5px;
  --ink-line: var(--edge-w) solid var(--edge);
  --print: 6px 6px 0 var(--pop-ink);
  --print-sm: 4px 4px 0 var(--pop-ink);
  --print-hot: 8px 8px 0 var(--pop);
  --wrap: min(1200px, 100% - 2 * var(--gutter));
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.22, .8, .24, 1);
  color-scheme: light dark;
}

:root[data-theme="night"] {
  color-scheme: dark;
  --bg: #070d19;
  --bg-2: #0c1426;
  --surface: rgba(12, 20, 38, .80);
  --surface-solid: #101b33;
  --surface-2: #162442;
  --line: rgba(214, 226, 255, .14);
  --line-strong: rgba(214, 226, 255, .28);
  --ink: #f2f5fc;
  --ink-2: #a9bad8;
  --ink-3: #8396b8;
  --beacon: #cf3a43;
  --beacon-hot: #dc5259;
  --beacon-soft: rgba(207, 58, 67, .14);
  --brass: #d8b26e;
  --shadow: 0 24px 60px rgba(2, 6, 16, .48);
  --veil: linear-gradient(180deg, rgba(7, 13, 25, .94) 0%, rgba(7, 13, 25, .74) 44%, rgba(7, 13, 25, .52) 78%, rgba(7, 13, 25, .84) 100%);
  --edge: #dfe6f5;
  --paper: #111a30;
  --notch: #0a1121;
  --stamp-1: #3a1e2a;
  --stamp-2: #18294a;
  --stamp-3: #19302a;
  --edge-soft: rgba(223, 230, 245, .5);
  --pop: #b8323b;
  --pop-ink: #01040b;
  --title-shadow: #a52d36;
  --ca-bg: rgba(4, 9, 20, .55);
  --marquee-bg: #a52d36;
  --marquee-ink: #fff;
  --day-op: 0;
  --night-op: 1;
  --beacon-on: 1;
}

:root[data-theme="day"] {
  color-scheme: light;
  --bg: #f7f5f0;
  --bg-2: #eeeae1;
  --surface: rgba(255, 254, 251, .88);
  --surface-solid: #fffefb;
  --surface-2: #f3efe6;
  --line: rgba(27, 22, 19, .12);
  --line-strong: rgba(27, 22, 19, .26);
  --ink: #1b1613;
  --ink-2: #52463e;
  --ink-3: #6c5f57;
  --beacon: #c9242e;
  --beacon-hot: #e63946;
  --beacon-soft: rgba(201, 36, 46, .09);
  --brass: #8c621c;
  --shadow: 0 20px 50px rgba(27, 22, 19, .08);
  --veil: linear-gradient(180deg, rgba(247, 245, 240, .93) 0%, rgba(247, 245, 240, .74) 46%, rgba(247, 245, 240, .54) 78%, rgba(247, 245, 240, .86) 100%);
  --edge: #1b1613;
  --paper: #fffaf0;
  --notch: #f2efe7;
  --stamp-1: #f6d9cf;
  --stamp-2: #d7e3f0;
  --stamp-3: #dbe8d3;
  --edge-soft: rgba(27, 22, 19, .42);
  --pop: #c9242e;
  --pop-ink: #1b1613;
  --title-shadow: #f1b9bc;
  --ca-bg: rgba(243, 239, 230, .82);
  --marquee-bg: #1b1613;
  --marquee-ink: #fffefb;
  --day-op: 1;
  --night-op: 0;
  --beacon-on: 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 84px; overflow-x: clip; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.62 var(--body); -webkit-font-smoothing: antialiased;
  overflow-x: clip; position: relative;
}
figure { margin: 0; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: .22em; }
a:hover { text-decoration-color: currentColor; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--beacon); outline-offset: 3px; border-radius: 4px; }
.wrap { width: var(--wrap); margin-inline: auto; position: relative; z-index: 2; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 120; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; text-decoration: none; }
.skip:focus { top: calc(12px + env(safe-area-inset-top)); }

/* ---------- atmospheric alpine horizon backdrop + veil ---------- */
.page-backdrop {
  position: fixed; inset: -18px; z-index: 0; pointer-events: none;
  --bg-art-day: url("/img/bg-day-v2-2400.webp");
  --bg-art-night: url("/img/bg-night-v2-2400.webp");
  transform: translate3d(calc(var(--mx, 0) * -8px), calc(var(--my, 0) * -6px), 0) scale(1.025);
  transition: transform .25s ease-out;
}
.page-backdrop::before,
.page-backdrop::after {
  content: ""; position: absolute; inset: 0;
  background-size: cover; background-position: center bottom; background-repeat: no-repeat;
  transition: opacity .45s ease;
}
.page-backdrop::before { background-image: var(--veil), var(--bg-art-day); opacity: var(--day-op); }
.page-backdrop::after { background-image: var(--veil), var(--bg-art-night); opacity: var(--night-op); }
:root[data-theme="night"]:not(.bg-both) .page-backdrop::before,
:root[data-theme="day"]:not(.bg-both) .page-backdrop::after { background-image: none; }

.snow { position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }

/* ---------- typography ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.05; margin: 0 0 .45em; letter-spacing: -.02em; font-optical-sizing: auto; }
h2 { font-size: clamp(2rem, 1.35rem + 2.4vw, 3.1rem); }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.05rem, .98rem + .32vw, 1.2rem); color: var(--ink-2); max-width: 44ch; line-height: 1.58; }
.mono { font-family: var(--mono); font-size: .84em; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 1rem;
  font: 500 .75rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
}
.kicker-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--beacon-hot); flex: none;
  box-shadow: 0 0 calc(12px * var(--beacon-on)) var(--beacon-hot);
  animation: beacon-breathe 2.6s ease-in-out infinite;
}
@keyframes beacon-breathe { 50% { opacity: .45; transform: scale(.85); } }

/* ---------- floating inked header pill ---------- */
.top {
  position: sticky; top: 0; z-index: 45;
  padding: calc(10px + env(safe-area-inset-top)) 0 10px;
  pointer-events: none;
}
.top .wrap {
  display: flex; align-items: center; gap: 12px; min-height: 64px; pointer-events: auto;
  padding: 8px 10px 8px 12px; border: var(--ink-line); border-radius: 999px;
  background: color-mix(in srgb, var(--surface-solid) 90%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--print);
}
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; flex-shrink: 0; }
.mark img { width: 40px; height: 40px; border-radius: 50%; border: var(--ink-line); }
.mark .logo-day, :root[data-theme="day"] .mark .logo-night { display: none; }
:root[data-theme="day"] .mark .logo-day { display: block; }
:root[data-theme="night"] .mark .logo-night { box-shadow: 0 0 0 3px rgba(230, 57, 70, .28); }
.mark-text { display: inline-flex; align-items: center; gap: 8px; }
.mark b { font: 400 1.32rem/1 var(--stamp); letter-spacing: .01em; }
.mark-chain { font: 500 .66rem/1 var(--mono); letter-spacing: .08em; color: var(--ink-2); padding: 4px 8px; border: 1.5px solid var(--edge-soft); border-radius: 999px; }

.nav { display: flex; gap: 2px; align-items: center; }
.nav a {
  text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--ink-2);
  padding: 0 13px; min-height: 42px; display: inline-flex; align-items: center; white-space: nowrap;
  border: var(--edge-w) solid transparent; border-radius: 999px;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--ink); border-color: var(--edge); background: var(--beacon-soft); }

.menu-btn {
  width: 44px; height: 44px; flex: none; cursor: pointer; padding: 0;
  border-radius: 50%; border: var(--ink-line); background: var(--surface-solid); color: var(--ink);
  display: grid; place-items: center; box-shadow: 3px 3px 0 var(--pop-ink);
  transition: transform .14s var(--ease), box-shadow .14s var(--ease);
}
.menu-btn { display: none; }
@media (max-width: 920px) {
  .menu-btn { display: grid; }
  .nav {
    position: absolute; top: calc(100% + 12px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px; background: var(--surface-solid); border: var(--ink-line); border-radius: var(--r-lg);
    box-shadow: var(--print); display: none;
  }
  .top[data-open="true"] .nav { display: flex; }
  .nav a { font-size: 1rem; min-height: 48px; padding: 0 16px; }
}
@media (max-width: 400px) {
  .mark-chain { display: none; }
  .top .wrap { gap: 8px; }
}

/* ---------- bespoke Beacon Aperture theme control (R05) ---------- */
.beacon-switch {
  width: 44px; height: 44px; flex: none; cursor: pointer; padding: 0;
  border-radius: 50%; border: var(--ink-line); box-shadow: 3px 3px 0 var(--pop-ink);
  background: var(--surface-solid); display: grid; place-items: center; position: relative;
  transition: transform .14s var(--ease), box-shadow .14s var(--ease);
}
.beacon-switch:hover, .menu-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--pop-ink); }
.beacon-switch:active, .menu-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--pop-ink); }
.beacon-switch svg { width: 28px; height: 28px; overflow: visible; }
.beacon-switch .ring { fill: none; stroke: var(--ink-3); stroke-width: 1.3; opacity: .65; }
.beacon-switch .ticks { stroke: var(--brass); stroke-width: 1.4; stroke-linecap: round; opacity: .75; }
.beacon-switch .core { fill: var(--ink-3); transition: fill .28s ease, transform .28s var(--ease); transform-origin: 20px 20px; }
.beacon-switch .rays { stroke: var(--beacon-hot); stroke-width: 1.6; stroke-linecap: round; opacity: 0; transform-origin: 20px 20px; transform: scale(.65) rotate(-18deg); transition: opacity .3s, transform .4s var(--ease); }
:root[data-theme="night"] .beacon-switch .core { fill: var(--beacon-hot); transform: scale(1.12); }
:root[data-theme="night"] .beacon-switch .rays { opacity: 1; transform: scale(1) rotate(0deg); }
.beacon-switch .tip {
  position: absolute; top: calc(100% + 10px); right: 0; white-space: nowrap;
  font: 500 .7rem/1 var(--mono); background: var(--surface-solid); color: var(--ink);
  border: 2px solid var(--edge); padding: 7px 10px; border-radius: 999px;
  opacity: 0; pointer-events: none; transform: translateY(-4px); transition: opacity .15s, transform .15s;
}
.beacon-switch:hover .tip, .beacon-switch:focus-visible .tip { opacity: 1; transform: none; }

:root.theme-vt::view-transition-old(root), :root.theme-vt::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
:root.theme-vt::view-transition-new(root) { animation: beacon-sweep .58s var(--ease) both; }
:root.theme-swap *, :root.theme-swap *::before, :root.theme-swap *::after { transition: none !important; }
@keyframes beacon-sweep { from { clip-path: circle(0 at var(--vx, 90%) var(--vy, 34px)); } to { clip-path: circle(155vmax at var(--vx, 90%) var(--vy, 34px)); } }

/* ---------- shared inked panel ---------- */
.panel {
  border: var(--ink-line); border-radius: var(--r-lg);
  background: var(--surface); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--print);
}

/* ---------- hero: inked story panel + open-air observatory ---------- */
.hero { position: relative; padding-block: clamp(18px, 3.5vw, 44px) clamp(36px, 5vw, 64px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: center; gap: clamp(28px, 5vw, 64px); }
.hero-copy { min-width: 0; padding: clamp(22px, 4vw, 44px); box-shadow: var(--print-hot); }
.hero-title {
  font-family: var(--display); font-weight: 600; font-optical-sizing: auto;
  font-size: clamp(2rem, 1.3rem + 2.9vw, 3.5rem); line-height: 1.02; letter-spacing: -.024em;
  margin: 0 0 .4em;
}
.hero-title .ticker-tag {
  display: block; font: 400 clamp(3.1rem, 2rem + 5vw, 5.6rem)/.92 var(--stamp); letter-spacing: .005em;
  color: var(--ink); text-shadow: 5px 5px 0 var(--title-shadow); margin-bottom: .2em;
}
.hero-title em { font-style: italic; font-weight: 500; color: var(--beacon-hot); }
:root[data-theme="day"] .hero-title em { color: var(--beacon); }

/* dashed CA slip */
.ca {
  margin-top: 1.4rem; display: flex; align-items: center; gap: 4px; max-width: 580px;
  border: 2px dashed var(--edge-soft); border-radius: var(--r-md); padding: 6px;
  background: var(--ca-bg);
}
.ca-label {
  font: 400 .95rem/1 var(--stamp); letter-spacing: .06em;
  padding: 0 10px; display: grid; place-items: center; color: var(--beacon-hot); flex: none; align-self: stretch;
}
:root[data-theme="day"] .ca-label { color: var(--beacon); }
.ca-value { font: 400 .82rem/1.4 var(--mono); padding: 8px 6px; flex: 1; min-width: 0; overflow-wrap: anywhere; display: flex; align-items: center; }
.ca-value[data-state="pending"] { color: var(--ink-2); }
.ca button {
  flex: none; border: 2px solid var(--edge); border-radius: 999px; background: var(--surface-solid);
  padding: 0 16px; min-width: 74px; min-height: 44px; font: 600 .84rem/1 var(--body); cursor: pointer;
  box-shadow: 2px 2px 0 var(--pop-ink); transition: transform .14s var(--ease), box-shadow .14s var(--ease);
}
.ca button:hover:not(:disabled) { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--pop-ink); }
.ca button:disabled { cursor: not-allowed; opacity: .45; box-shadow: none; }

/* chunky inked pill buttons that press into the page */
.actions { display: flex; flex-wrap: wrap; gap: 14px 12px; margin: 1.5rem 0 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  border: var(--ink-line); background: var(--surface-solid); color: var(--ink);
  box-shadow: var(--print-sm);
  font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer;
  transition: transform .14s var(--ease), box-shadow .14s var(--ease), background .15s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--pop-ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--pop-ink); }
.btn.primary { background: var(--ink); color: var(--bg); box-shadow: 4px 4px 0 var(--pop); }
.btn.primary:hover { box-shadow: 5px 5px 0 var(--pop); }
.btn.primary:active { box-shadow: 1px 1px 0 var(--pop); }
.btn.beacon { background: var(--beacon); color: #fff; }
.btn.beacon:hover { background: var(--beacon-hot); }
.btn .arrow { transition: transform .18s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn.small { min-height: 44px; padding: 0 16px; font-size: .86rem; box-shadow: 3px 3px 0 var(--pop-ink); }
.btn[aria-disabled="true"], .btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* inline telemetry strip */
.telemetry {
  margin-top: clamp(24px, 3.5vw, 36px); padding-top: 20px; border-top: 2px dashed var(--edge-soft);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
.telemetry div { padding-right: 12px; border-right: 1px solid var(--line); min-width: 0; }
.telemetry div:last-child { border-right: 0; padding-right: 0; }
.telemetry dt { font: 500 .68rem/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 5px; }
.telemetry dd { margin: 0; font: 500 .95rem/1.25 var(--mono); color: var(--ink); }
@media (max-width: 700px) {
  .telemetry { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
  .telemetry div:nth-child(2n) { border-right: 0; padding-right: 0; }
}

/* ---------- right: Beacon Observatory reticle (unboxed character display) ---------- */
.observatory { display: grid; justify-items: center; gap: 14px; min-width: 0; width: 100%; }
.reticle {
  position: relative; width: min(100%, 430px); aspect-ratio: 1 / 1;
  display: grid; place-items: center; cursor: pointer; user-select: none;
  border-radius: 50%;
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform .18s ease-out;
}
.reticle-svg {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
}
.reticle-ring { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.reticle-ring.dashed { stroke: var(--line); stroke-dasharray: 4 7; }
.reticle-ring.accent { stroke: var(--brass); stroke-opacity: .38; }
.reticle-ticks { stroke: var(--ink-3); stroke-width: 1; opacity: .55; }
.reticle-coord { font-family: var(--mono); font-size: 9px; fill: var(--ink-3); letter-spacing: 1.5px; }

.reticle-aura {
  position: absolute; inset: 10%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--beacon-hot) 16%, transparent) 0%, transparent 66%);
  opacity: calc(.45 + .55 * var(--beacon-on));
  transition: opacity .35s ease, transform .35s ease;
}
.reticle[data-move="beacon"] .reticle-aura { opacity: 1; transform: scale(1.08); }

/* Reactive Rudolph: --lean-x/y follow the pointer, --near (0..1) is pointer distance to the nose. */
.reticle { --nose-x: 26.8%; --nose-y: 30.3%; --near: 0; --lean-x: 0; --lean-y: 0; cursor: pointer; }
.reticle[data-move="flight"] { --nose-x: 14%; --nose-y: 24.2%; }
.reticle[data-move="greeting"] { --nose-x: 45.3%; --nose-y: 30.3%; }
.hero-art-box {
  position: relative; width: 76%; height: 76%; display: grid; place-items: center; z-index: 2;
  transform: translate(calc(var(--lean-x) * 10px), calc(var(--lean-y) * 6px)) rotate(calc(var(--lean-x) * 3deg));
  transition: transform .3s var(--ease);
}
.hero-art-box img {
  width: 100%; height: 100%; object-fit: contain; transform-origin: 50% 100%;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, .28));
  transition: opacity .22s ease;
}
.reticle[data-move="flight"] .hero-art-box img { animation: glide 4s ease-in-out infinite; }
.reticle.is-hop .hero-art-box img { animation: r-hop .42s cubic-bezier(.3, 1.4, .5, 1); }
.reticle.is-boop .hero-art-box img { animation: r-boop .52s ease-out; }
.reticle.is-leap .hero-art-box img { animation: r-leap .9s cubic-bezier(.3, 1.2, .5, 1); }
.reticle.is-wiggle .hero-art-box img { animation: r-wiggle .7s ease-in-out; }
@keyframes glide { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes r-hop { 0% { transform: scale(1.06, .92); } 45% { transform: translateY(-18px) scale(.96, 1.05); } 100% { transform: none; } }
@keyframes r-boop { 0% { transform: none; } 25% { transform: scale(1.1, .88) rotate(-3deg); } 55% { transform: scale(.95, 1.06) rotate(2deg); } 100% { transform: none; } }
@keyframes r-leap { 0% { transform: scale(1.1, .85); } 35% { transform: translate(14px, -46px) rotate(-12deg); } 70% { transform: translate(-4px, -10px) rotate(4deg); } 100% { transform: none; } }
@keyframes r-wiggle { 20% { transform: rotate(-4deg); } 40% { transform: rotate(3deg); } 60% { transform: rotate(-2deg); } 80% { transform: rotate(1deg); } }

.nose-glow {
  position: absolute; left: var(--nose-x); top: var(--nose-y); width: 28%; aspect-ratio: 1;
  translate: -50% -50%; border-radius: 50%; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(224, 82, 82, .62) 0%, rgba(207, 58, 67, 0) 70%);
  opacity: min(1, calc(var(--beacon-on) * .8 + var(--near) * .9));
  transform: scale(calc(1 + var(--near) * .45));
  transition: opacity .2s ease, left .2s ease, top .2s ease, transform .2s ease;
}
.reticle[data-move="beacon"] .nose-glow { opacity: 1; animation: beacon-pulse 1.8s ease-out infinite; }
.reticle.is-boop .nose-glow { opacity: 1; animation: beacon-pulse .52s ease-out; }
@keyframes beacon-pulse { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(2.0); opacity: 0; } }
.nose-btn {
  position: absolute; left: var(--nose-x); top: var(--nose-y); width: 18%; aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; border: 0; padding: 0; background: transparent; cursor: pointer; z-index: 3;
  transition: left .2s ease, top .2s ease;
}
.nose-btn:focus-visible { outline: 3px dashed var(--beacon-hot); outline-offset: 2px; }
.hero-fx { position: absolute; left: var(--nose-x); top: var(--nose-y); width: 0; height: 0; z-index: 4; pointer-events: none; }
.hero-fx i {
  position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--beacon-hot); border: 2px solid var(--edge);
  animation: spark .7s cubic-bezier(.2, .8, .3, 1) forwards;
}
.hero-fx i:nth-child(even) { background: var(--brass); width: 8px; height: 8px; }
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) scale(.3); opacity: 0; } }

/* hairline segmented glass switcher */
.pose-tabs {
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 6px;
  border: var(--ink-line); border-radius: 999px;
  background: var(--surface-solid); box-shadow: var(--print-sm);
}
.pose-tab {
  min-height: 40px; padding: 0 15px; border: 2px solid transparent; border-radius: 999px; background: transparent;
  font: 700 .86rem/1 var(--body); color: var(--ink-2); cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.pose-tab:hover { color: var(--ink); border-color: var(--edge-soft); }
.pose-tab[aria-pressed="true"] { background: var(--beacon); border-color: var(--edge); color: #fff; }
/* inked speech bubble with a tail pointing down at Rudolph */
.speech {
  position: relative; z-index: 3; margin: 0 0 -6px; max-width: min(100%, 34ch); min-height: 3.2em;
  display: grid; place-items: center; padding: 10px 18px; border-radius: 22px;
  border: var(--ink-line); background: var(--surface-solid); box-shadow: var(--print-sm);
  font: 600 .98rem/1.35 var(--body); color: var(--ink); text-align: center;
}
.speech::after {
  content: ""; position: absolute; left: 50%; bottom: -12px; width: 20px; height: 20px; translate: -50% 0; rotate: 45deg;
  background: var(--surface-solid); border-right: var(--ink-line); border-bottom: var(--ink-line);
}
.speech.pop { animation: bubble-pop .34s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bubble-pop { 0% { transform: scale(.86); } 100% { transform: none; } }

/* ---------- beacon ticker strip ---------- */
.marquee {
  position: relative; z-index: 2; overflow: hidden; white-space: nowrap;
  background: var(--marquee-bg); color: var(--marquee-ink);
  border-block: var(--ink-line); padding: 12px 0;
}
.marquee-track { display: inline-flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { font: 400 1.12rem/1 var(--stamp); letter-spacing: .04em; padding-inline: 18px; display: inline-flex; align-items: center; gap: 36px; }
.marquee-track span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .observatory { order: -1; }
  .reticle { width: min(84vw, 350px); }
}

/* ---------- editorial section rhythm ---------- */
.section { position: relative; z-index: 2; padding-block: clamp(40px, 6vw, 76px); }
.chapter-tag {
  font: 500 .72rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 1rem;
  padding: 7px 14px 7px 10px; border: 2px solid var(--edge); border-radius: 6px 999px 999px 6px; background: var(--surface-solid);
  box-shadow: 2px 2px 0 var(--pop-ink); rotate: -1.5deg;
}
.chapter-tag::before { content: ""; width: 24px; height: 18px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 18'%3E%3Cpath d='M11 9C8 4 3 3 1 5c2 0 2 2 1 3 2 0 2 2 1 3 3 1 6 0 8-2z' fill='%23217a46' stroke='%231b1613' stroke-width='1.2' stroke-linejoin='round'/%3E%3Cpath d='M13 9c3-5 8-6 10-4-2 0-2 2-1 3-2 0-2 2-1 3-3 1-6 0-8-2z' fill='%232e9a5a' stroke='%231b1613' stroke-width='1.2' stroke-linejoin='round'/%3E%3Ccircle cx='10' cy='11.6' r='2.6' fill='%23d42a35' stroke='%231b1613' stroke-width='1.1'/%3E%3Ccircle cx='14' cy='11.6' r='2.6' fill='%23e63946' stroke='%231b1613' stroke-width='1.1'/%3E%3Ccircle cx='12' cy='8.3' r='2.6' fill='%23c9242e' stroke='%231b1613' stroke-width='1.1'/%3E%3C/svg%3E") center / contain no-repeat; }

/* 01 · Archive Log (asymmetric editorial spread + vertical hairline timeline) */
.editorial-split { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.chapter-sticky { position: sticky; top: 96px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 30px; border-left: 2.5px dashed var(--edge-soft); display: grid; gap: 20px; }
.timeline li {
  position: relative; padding: clamp(18px, 2.6vw, 24px); border: var(--ink-line); border-radius: var(--r-md);
  background: var(--surface); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--print-sm);
}
.timeline li::before {
  content: ""; position: absolute; left: -42px; top: 24px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--surface-solid); border: var(--ink-line);
}
.timeline li.active { box-shadow: 6px 6px 0 var(--pop); }
.timeline li.active::before { background: var(--beacon-hot); box-shadow: 0 0 calc(14px * var(--beacon-on)) var(--beacon-hot); }
.timeline time { display: block; font: 500 .76rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.timeline h3 { font-size: 1.48rem; margin-bottom: .35em; }
.timeline p { margin: 0; color: var(--ink-2); max-width: 54ch; }
@media (max-width: 860px) {
  .editorial-split { grid-template-columns: minmax(0, 1fr); }
  .chapter-sticky { position: static; }
}

.footnote { margin-top: 16px; font-size: .88rem; color: var(--ink-3); max-width: 72ch; }

.net-desk {
  margin-top: 34px; padding: clamp(20px, 3.2vw, 32px);
  border: var(--ink-line); border-radius: var(--r-lg);
  background: var(--surface); backdrop-filter: blur(14px); box-shadow: var(--print);
}
.net-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.net-details { margin-top: 18px; padding-top: 16px; border-top: 2px dashed var(--edge-soft); }
.net-details summary { cursor: pointer; font-weight: 700; font-size: .95rem; min-height: 44px; display: flex; align-items: center; color: var(--ink); }
.net-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; margin-top: 12px; }
.net-item {
  padding: 13px 15px; border: 2px solid var(--edge-soft); border-radius: var(--r-md);
  background: var(--surface-solid); display: grid; gap: 6px; min-width: 0;
}
.net-item dt { font: 500 .68rem/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); }
.net-item dd { margin: 0; font: 400 .84rem/1.4 var(--mono); overflow-wrap: anywhere; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.copy-pill {
  min-height: 36px; padding: 0 13px; border-radius: 999px;
  border: 2px solid var(--edge); background: var(--surface-2); box-shadow: 2px 2px 0 var(--pop-ink);
  font: 600 .78rem/1 var(--body); cursor: pointer; transition: transform .14s var(--ease), box-shadow .14s var(--ease);
}
.copy-pill:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--pop-ink); }
.copy-pill:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--pop-ink); }

.advisory {
  margin-top: 28px; padding: 16px 20px 16px 22px; border: var(--ink-line); border-left-width: 8px; border-left-color: var(--beacon);
  background: var(--surface-solid); border-radius: var(--r-md); box-shadow: var(--print-sm);
  font-size: .94rem; color: var(--ink);
}

/* 04 · Nose Studio & Brand Cinema Showcase */
.showcase {
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(24px, 4.5vw, 52px); align-items: center;
  padding: clamp(24px, 4vw, 44px); border: var(--ink-line); border-radius: var(--r-lg);
  background: var(--surface); backdrop-filter: blur(14px); box-shadow: var(--print-hot);
}
.showcase figure img { border-radius: var(--r-md); border: var(--ink-line); width: 100%; height: auto; box-shadow: var(--print-sm); }
@media (max-width: 860px) { .showcase { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Sleigh Dispatch homepage: paper props on the Christmas-Eve sky ----------
   Boarding pass hero, split-flap departures board, perforated story stamps, a flight manifest
   with a rubber stamp, luggage tags hung on the flight route, and a postcard. .paper follows
   the theme: cream paper and ink by day, night-navy paper and moonlight ink after dark. */
.paper { background: var(--paper); color: var(--ink); }

.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; margin-bottom: 36px; }
.section-head h2 { margin: 0; }

/* boarding pass */
.hero-copy.pass {
  padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 190px);
  border: var(--ink-line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--print-hot);
  --pad: clamp(20px, 3.4vw, 36px);
}
.pass-main { padding: 0 var(--pad) var(--pad); min-width: 0; container-type: inline-size; }
.pass .hero-title .ticker-tag { font-size: min(5.4rem, 16.5cqi); }
.pass-head {
  margin: 0 calc(-1 * var(--pad)) 22px; padding: 12px var(--pad);
  display: flex; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap;
  background: var(--beacon); color: #fff; border-bottom: var(--ink-line);
  font: 400 .98rem/1.1 var(--stamp); letter-spacing: .08em; text-transform: uppercase;
}
.pass-stub {
  position: relative; display: grid; align-content: space-between; gap: 20px;
  padding: 24px 18px 20px; border-left: 2.5px dashed var(--edge-soft); background: var(--surface-2);
}
.pass-stub::before, .pass-stub::after {
  content: ""; position: absolute; left: -16px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--notch); border: var(--ink-line);
}
.pass-stub::before { top: -17px; }
.pass-stub::after { bottom: -17px; }
.stub-list { margin: 0; display: grid; gap: 16px; }
.stub-list dt { font: 500 .66rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 5px; }
.stub-list dd { margin: 0; font: 400 1.3rem/1.1 var(--stamp); letter-spacing: .02em; }
.stub-list small { font: 500 .72rem/1 var(--mono); color: var(--ink-2); margin-left: 3px; letter-spacing: 0; }
.stub-status { color: var(--beacon); }
.pass-barcode {
  height: 56px; border-radius: 3px; opacity: .85;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 7px, transparent 7px 9px, var(--ink) 9px 10px, transparent 10px 13px, var(--ink) 13px 16px, transparent 16px 17px);
}
@media (max-width: 640px) {
  .hero-copy.pass { grid-template-columns: minmax(0, 1fr); }
  .pass-stub { border-left: 0; border-top: 2.5px dashed var(--edge-soft); grid-template-columns: minmax(0, 1fr) 96px; align-items: end; }
  .stub-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .pass-stub::before { top: -16px; left: -17px; }
  .pass-stub::after { top: -16px; bottom: auto; left: auto; right: -17px; }
}

/* split-flap departures board */
.flapboard { --marquee-bg: #0e121b; --marquee-ink: #e6dac0; padding: 10px 0; }
.flapboard .marquee-track span {
  margin-inline: 7px; padding: 9px 13px; border-radius: 6px; border: 1.5px solid #000; gap: 0;
  font: 500 .95rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase;
  background: linear-gradient(180deg, #232938 0 calc(50% - 1px), #05070b calc(50% - 1px) calc(50% + 1px), #1a1f2b calc(50% + 1px));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.flapboard .marquee-track span::after { display: none; }

/* story stamps: perforated edges via mask, hard print shadow via drop-shadow on the wrapper */
.stamps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 30px); }
.stamp { filter: drop-shadow(4px 5px 0 var(--pop-ink)); rotate: var(--tilt, -1.5deg); transition: rotate .3s var(--ease), translate .3s var(--ease); }
.stamp:nth-child(2) { --tilt: 1.2deg; }
.stamp:nth-child(3) { --tilt: -.6deg; }
.stamp:nth-child(4) { --tilt: 1.8deg; }
.stamp:hover { rotate: 0deg; translate: 0 -4px; }
.stamp-face {
  position: relative; height: 100%; padding: 16px 16px 18px;
  border: 12px solid transparent; background: var(--paper) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, radial-gradient(6px, #0000 97%, #000) -6px -6px / 16px 16px round border-box;
  mask: linear-gradient(#000 0 0) padding-box, radial-gradient(6px, #0000 97%, #000) -6px -6px / 16px 16px round border-box;
}
.stamp-face::before { content: ""; position: absolute; inset: 0; background: var(--stamp-bg, var(--stamp-1)); border: 2px solid var(--edge); }
.stamp:nth-child(2) .stamp-face { --stamp-bg: var(--stamp-2); }
.stamp:nth-child(3) .stamp-face { --stamp-bg: var(--stamp-3); }
.stamp-face { color: var(--ink); }
.stamp.active .stamp-face { --stamp-bg: #c9242e; --ink: #fff; --ink-2: #ffe3e3; color: #fff; }
.stamp-face > * { position: relative; }
.stamp-face h3 { font-size: 1.28rem; margin: 6px 0 .4em; }
.stamp-face p { margin: 0; font-size: .92rem; color: var(--ink-2); }
.postmark {
  float: right; margin: -4px -4px 8px 10px; width: 70px; height: 70px; border-radius: 50%;
  border: 2px dashed currentColor; display: grid; place-content: center; text-align: center; rotate: -14deg;
  font: 500 .6rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; opacity: .85;
}
.postmark b { display: block; font: 400 1rem/1 var(--stamp); letter-spacing: .02em; }
@media (max-width: 900px) { .stamps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .stamps { grid-template-columns: minmax(0, 1fr); } }

/* flight manifest */
.manifest {
  position: relative; border: var(--ink-line); border-radius: 8px; box-shadow: var(--print); overflow: hidden;
  background: repeating-linear-gradient(180deg, transparent 0 47px, rgba(27, 22, 19, .06) 47px 48px), var(--paper);
}
.manifest-head {
  margin: 0; padding: 13px 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px;
  border-bottom: var(--ink-line); background: var(--surface-2);
  font: 400 1rem/1.1 var(--stamp); letter-spacing: .08em; text-transform: uppercase;
}
.manifest-rows { margin: 0; padding: 8px 24px 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 44px; }
.manifest-rows div { display: flex; align-items: baseline; gap: 12px; padding: 15px 0; border-bottom: 1.5px dashed var(--edge-soft); min-width: 0; }
.manifest-rows dt { flex: none; font: 500 .7rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.manifest-rows dd { margin: 0 0 0 auto; text-align: right; min-width: 0; overflow-wrap: anywhere; font: 600 1.18rem/1.25 var(--display); }
.manifest-rows dd small { display: block; font: 500 .78rem/1.4 var(--body); }
.rubber {
  position: absolute; left: 50%; top: 5px; translate: -50% 0; rotate: -6deg; pointer-events: none; background: color-mix(in srgb, var(--paper) 70%, transparent);
  padding: 3px 14px; border: 3px solid var(--beacon); border-radius: 8px; color: var(--beacon);
  font: 400 1.3rem/1 var(--stamp); letter-spacing: .1em; text-transform: uppercase;
  opacity: .85;
}
:root[data-theme="day"] .rubber { opacity: .72; mix-blend-mode: multiply; }
@media (max-width: 680px) {
  .manifest-rows { grid-template-columns: minmax(0, 1fr); }
  .rubber { left: auto; right: 12px; translate: none; top: 8px; font-size: 1rem; }
  .manifest-head span:last-child { display: none; }
}

/* luggage tags hung on the flight route */
.route {
  list-style: none; margin: 0; padding: 40px 0 0; position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px;
}
.route::before { content: ""; position: absolute; left: 0; right: 10px; top: 10px; border-top: 3px dashed var(--edge-soft); }
.route::after {
  content: ""; position: absolute; right: 2px; top: 4px; width: 13px; height: 13px; rotate: 45deg;
  border-top: 3px solid var(--edge-soft); border-right: 3px solid var(--edge-soft);
}
.tag {
  position: relative; padding: 38px 20px 20px; min-width: 0;
  border: var(--ink-line); border-radius: 10px 10px 18px 18px; box-shadow: var(--print-sm);
  rotate: var(--sway, -1.2deg); transform-origin: 50% -30px; transition: rotate .45s cubic-bezier(.3, 1.6, .5, 1);
}
.tag:nth-child(even) { --sway: 1.4deg; }
.tag:hover { rotate: 0deg; }
.tag::before { content: ""; position: absolute; left: 50%; top: -32px; height: 48px; border-left: 2px solid var(--edge); }
.tag::after {
  content: ""; position: absolute; left: 50%; top: 10px; width: 16px; height: 16px; translate: -50% 0; border-radius: 50%;
  border: var(--ink-line); background: var(--notch);
}
.tag .num {
  display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 12px;
  font: 400 1.2rem/1 var(--stamp); color: #fff; background: var(--beacon);
  border: var(--ink-line); border-radius: 50%;
}
.tag h3 { font-size: 1.2rem; margin-bottom: .4em; }
.tag p { margin: 0; color: var(--ink-2); font-size: .95rem; }
@media (max-width: 900px) {
  .route { grid-template-columns: minmax(0, 1fr); padding: 0 0 0 30px; gap: 18px; }
  .route::before { left: 9px; right: auto; top: 0; bottom: 10px; border-top: 0; border-left: 3px dashed var(--edge-soft); }
  .route::after { left: 4px; right: auto; top: auto; bottom: 2px; rotate: 135deg; }
  .tag { padding: 20px 20px 20px 48px; transform-origin: -22px 50%; border-radius: 18px 10px 10px 18px; }
  .tag::before { left: -21px; top: 28px; height: 0; width: 40px; border-left: 0; border-top: 2px solid var(--edge); }
  .tag::after { left: 14px; top: 22px; translate: none; }
  .tag .num { width: 36px; height: 36px; font-size: 1rem; }
}

/* postcard */
.showcase.postcard { position: relative; border-radius: 10px; rotate: -.5deg; }
.postcard figure img { rotate: 1deg; }
.post-stamp { position: absolute; top: -20px; right: 26px; z-index: 2; rotate: 7deg; filter: drop-shadow(3px 3px 0 var(--pop-ink)); }
.post-stamp img {
  box-sizing: content-box; width: 58px; height: 58px; padding: 3px; display: block;
  border: 8px solid transparent; background: var(--paper) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, radial-gradient(4px, #0000 97%, #000) -4px -4px / 11px 11px round border-box;
  mask: linear-gradient(#000 0 0) padding-box, radial-gradient(4px, #0000 97%, #000) -4px -4px / 11px 11px round border-box;
}

/* ---------- architectural footer ---------- */
.foot { position: relative; z-index: 2; padding: 52px 0 calc(44px + env(safe-area-inset-bottom)); background: var(--bg-2); border-top: var(--ink-line); font-size: .9rem; color: var(--ink-2); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 1fr)); gap: 28px; align-items: start; }
.foot-brand { display: grid; gap: 10px; }
.foot-col h3 { font: 500 .7rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--ink-3); margin: 0 0 12px; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.foot-col a { font-weight: 500; color: var(--ink-2); text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; }
.foot-col a:hover { color: var(--ink); text-decoration: underline; }
.foot-base {
  margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line);
  display: grid; gap: 6px; font-size: .84rem; color: var(--ink-3);
}
.socials { display: flex; gap: 8px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; border: var(--ink-line); display: grid; place-items: center; background: var(--surface-solid); color: var(--ink); box-shadow: 3px 3px 0 var(--pop-ink); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
@media (max-width: 780px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- boot: premium title card (R04, first visit per session only) ----------
   A quiet lockup: an iris opens on a deep night (or ivory) field with two depths of snow, a gold
   ring draws itself while Rudolph leaps in on one arc and settles, the wordmark rises out of a
   blur while he roams the ring (hop, turn, bound, hop home), a gilt rule draws beneath it, and three glass baubles light as the real load stages
   finish. When everything is ready the letters catch a gold glint, his nose warms, and the card
   iris-closes onto it. Click, tap, Esc, Enter or Space skips; the skip button stays invisible
   until it receives keyboard focus. */
.boot {
  --gild: #c8a45c; --snow-dot: rgba(255, 255, 255, .78); --bauble-off: #263049;
  position: fixed; inset: 0; z-index: 95; display: none; place-items: center; overflow: hidden; padding: 24px;
  background: radial-gradient(ellipse 80% 70% at 50% 40%, #13203d 0%, #0a1222 55%, #050914 100%);
  clip-path: circle(150vmax at var(--ix, 50%) var(--iy, 50%));
  animation: boot-iris-open .9s cubic-bezier(.22, .8, .24, 1) backwards;
}
:root[data-theme="day"] .boot {
  --gild: #a8832f; --snow-dot: rgba(120, 145, 185, .5); --bauble-off: #d8cfbe;
  background: radial-gradient(ellipse 80% 70% at 50% 40%, #fffdf8 0%, #f6f0e4 55%, #e9e0cf 100%);
}
.first-visit .boot { display: grid; }
.boot.closing { clip-path: circle(0 at var(--ix, 50%) var(--iy, 50%)); transition: clip-path .75s cubic-bezier(.65, 0, .35, 1); }
.boot.fading { opacity: 0; transition: opacity .35s ease; }
@keyframes boot-iris-open { from { clip-path: circle(0 at 50% 42%); } to { clip-path: circle(150vmax at 50% 42%); } }
.boot::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .28) 100%);
}
:root[data-theme="day"] .boot::after { background: radial-gradient(ellipse at center, transparent 60%, rgba(90, 70, 40, .12) 100%); }

/* two depths of snow: a soft out-of-focus back layer and a crisp front layer */
.boot-snow, .boot-snow::after {
  position: absolute; inset: -20px; pointer-events: none;
  background-image:
    radial-gradient(circle at 20px 30px, var(--snow-dot) 0 2px, transparent 2.6px),
    radial-gradient(circle at 130px 80px, var(--snow-dot) 0 1.3px, transparent 1.9px),
    radial-gradient(circle at 70px 150px, var(--snow-dot) 0 1.8px, transparent 2.4px),
    radial-gradient(circle at 175px 175px, var(--snow-dot) 0 1.1px, transparent 1.7px);
  background-size: 200px 200px;
  animation: boot-snowfall 9s linear infinite;
}
.boot-snow { filter: blur(2.2px); opacity: .55; background-size: 340px 340px; animation-duration: 16s; }
.boot-snow::after { content: ""; inset: 0; filter: blur(0); opacity: 1; animation-duration: 9s; }
@keyframes boot-snowfall { to { background-position: 50px 340px; } }

.boot-card { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; width: min(100%, 640px); }

/* emblem: gold ring that draws itself, warm bloom, Rudolph */
.boot-emblem { position: relative; width: clamp(150px, 30vw, 210px); aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 6px; }
.boot-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: boot-ring-turn 24s linear infinite; }
.boot-ring circle { fill: none; stroke: var(--gild); }
.boot-ring .outer { stroke-width: 1.4; stroke-dasharray: 604; stroke-dashoffset: 604; animation: boot-draw 1.4s cubic-bezier(.65, 0, .35, 1) .25s forwards; }
.boot-ring .inner { stroke-width: .8; stroke-dasharray: 2 6; opacity: 0; animation: boot-fade-in .8s ease 1s forwards; }
@keyframes boot-draw { to { stroke-dashoffset: 0; } }
@keyframes boot-ring-turn { to { rotate: 360deg; } }
@keyframes boot-fade-in { to { opacity: .55; } }
.boot-bloom {
  position: absolute; inset: 12%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(214, 150, 90, .32) 0%, rgba(214, 150, 90, 0) 70%);
  opacity: 0; animation: boot-fade-in-full .9s ease 2.2s forwards;
}
@keyframes boot-fade-in-full { to { opacity: 1; } }
.boot-hopper { position: relative; z-index: 1; width: 74%; height: 74%; transform-origin: 50% 100%; animation: boot-leap .75s cubic-bezier(.22, .8, .24, 1) .45s both, boot-roam 1.4s ease-in-out 1.2s forwards, boot-breathe 3.2s ease-in-out 2.7s infinite; }
.boot-hopper img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .3)); }
@keyframes boot-leap {
  0% { transform: translate(-46vw, -16vh) rotate(-16deg) scale(.82); opacity: 0; }
  12% { opacity: 1; }
  72% { transform: translate(0, -10px) rotate(3deg) scale(1); }
  86% { transform: scale(1.04, .96); }
  100% { transform: none; opacity: 1; }
}
/* he roams: turn, hop right, turn, bound left, turn, hop home; each turn is a quick paper flip */
@keyframes boot-roam {
  0% { transform: none; }
  8% { transform: scale(-1, 1); }
  22% { transform: translate(22%, -20%) scale(-1, 1) rotate(-6deg); }
  34% { transform: translate(44%, 0) scale(-1.08, .9); }
  42% { transform: translate(44%, 0) scale(1, 1); }
  58% { transform: translate(0, -26%) scale(1, 1) rotate(-6deg); }
  72% { transform: translate(-44%, 0) scale(1.08, .9); }
  80% { transform: translate(-44%, 0) scale(-1, 1); }
  91% { transform: translate(-8%, -12%) scale(-1, 1); }
  96% { transform: translate(0, 0) scale(-1.06, .94); }
  100% { transform: none; }
}
@keyframes boot-breathe { 50% { transform: translateY(-3px) scale(1.012); } }
.boot-nose {
  position: absolute; left: 26.8%; top: 30.3%; width: 24%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 110, 96, .8) 0%, rgba(207, 58, 67, 0) 70%); mix-blend-mode: screen;
  opacity: 0; animation: boot-nose-on 1s ease-out 2.5s both;
}
.boot.ready .boot-nose { animation: boot-nose-on 1s ease-out 2.5s both, boot-nose-warm .5s ease-out forwards; }
@keyframes boot-nose-on { 0% { opacity: 0; transform: scale(.4); } 45% { opacity: 1; transform: scale(1.5); } 100% { opacity: .8; transform: scale(1.1); } }
@keyframes boot-nose-warm { to { opacity: 1; transform: scale(2.4); } }

/* wordmark rises out of a blur; a gold glint passes across when ready */
.boot-word {
  margin: 0; display: flex; justify-content: center; letter-spacing: .03em;
  font: 400 clamp(2.8rem, 1.4rem + 6.4vw, 5.6rem)/1 var(--stamp); color: var(--ink);
  text-shadow: 0 12px 28px rgba(0, 0, 0, .28);
}
:root[data-theme="day"] .boot-word { text-shadow: 0 10px 24px rgba(90, 70, 40, .16); }
.boot-word span { display: inline-block; animation: boot-rise .8s cubic-bezier(.2, .8, .2, 1) calc(.6s + var(--i) * .055s) both; transition: color .6s ease; }
@keyframes boot-rise { from { transform: translateY(.45em); opacity: 0; filter: blur(8px); } to { transform: none; opacity: 1; filter: blur(0); } }
.boot.ready .boot-word span { animation: boot-rise .8s cubic-bezier(.2, .8, .2, 1) calc(.6s + var(--i) * .055s) both, boot-glint .55s ease calc(var(--i) * .045s); }
.boot.ready .boot-word .boot-o { color: var(--beacon); }
@keyframes boot-glint { 45% { color: var(--gild); transform: translateY(-2px); } }

.boot-rule {
  position: relative; display: block; width: clamp(160px, 34vw, 280px); height: 1.5px; margin: 16px 0 4px;
  background: linear-gradient(90deg, transparent, var(--gild) 18%, var(--gild) 82%, transparent);
  transform: scaleX(0); animation: boot-rule .9s cubic-bezier(.65, 0, .35, 1) 1.1s forwards;
}
.boot-rule::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; translate: -50% -50%; rotate: 45deg;
  background: var(--gild); opacity: 0; animation: boot-fade-in-full .4s ease 1.7s forwards;
}
@keyframes boot-rule { to { transform: scaleX(1); } }

/* glass baubles on threads: one per real load stage */
.boot-lights { display: flex; align-items: flex-start; justify-content: center; gap: clamp(26px, 6vw, 40px); height: 58px; animation: boot-fade-in-full .5s ease .9s both; opacity: 0; }
.bulb {
  --bauble: #9e2b35; --thread: 14px; position: relative; width: 15px; height: 15px; margin-top: var(--thread); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .35), transparent 45%), var(--bauble-off);
  box-shadow: inset 0 -2px 3px rgba(0, 0, 0, .25); transform-origin: 50% calc(-1 * var(--thread));
  animation: bauble-sway 3.2s ease-in-out infinite alternate;
  transition: background .5s ease, box-shadow .6s ease;
}
.bulb::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 1px; height: var(--thread); background: var(--gild); opacity: .7; }
.bulb::after { content: ""; position: absolute; left: 50%; top: -3px; width: 6px; height: 4px; translate: -50% 0; border-radius: 1px; background: var(--gild); }
.bulb:nth-child(2) { --bauble: #2f5d46; --thread: 26px; animation-delay: -1.1s; }
.bulb:nth-child(3) { --bauble: #b8913f; --thread: 18px; animation-delay: -2.2s; }
.bulb[data-s="done"] {
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .55), transparent 45%), var(--bauble);
  box-shadow: inset 0 -2px 3px rgba(0, 0, 0, .28), 0 0 12px 1px color-mix(in srgb, var(--bauble) 45%, transparent);
}
.bulb[data-s="fail"] { background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .35), transparent 45%), color-mix(in srgb, var(--bauble) 40%, var(--bauble-off)); }
@keyframes bauble-sway { from { rotate: -5deg; } to { rotate: 5deg; } }

/* skip: invisible, but click/tap anywhere or Esc/Enter/Space works, and keyboard focus reveals it */
.boot .skip-load {
  position: absolute; left: 50%; bottom: calc(-1 * clamp(48px, 10vh, 90px)); translate: -50% 0;
  min-height: 44px; padding: 0 18px; border-radius: 999px; opacity: 0; pointer-events: none;
  border: 1.5px solid var(--gild); background: transparent; color: var(--ink); font: 600 .84rem/1 var(--body);
}
.boot .skip-load:focus-visible { opacity: 1; pointer-events: auto; }

/* ---------- subpage headers ---------- */
.page-intro { padding-block: clamp(18px, 3.5vw, 40px) 12px; }
.page-intro .wrap {
  padding: clamp(22px, 4vw, 40px); border: var(--ink-line); border-radius: var(--r-lg);
  background: var(--surface); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--print-hot);
}
.page-intro h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem); }
.page-intro .lede:last-child { margin-bottom: 0; }

/* ---------- docs ---------- */
.docs { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(24px, 4.5vw, 60px); padding-block: 36px 88px; }
.docs aside nav {
  position: sticky; top: 104px; display: grid; gap: 2px; padding: 10px;
  border: var(--ink-line); border-radius: var(--r-md); background: var(--surface); backdrop-filter: blur(14px); box-shadow: var(--print-sm);
}
.docs aside a { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--ink-2); min-height: 42px; display: flex; align-items: center; white-space: nowrap; }
.docs aside a:hover { background: var(--beacon-soft); color: var(--ink); }
.docs article {
  max-width: 72ch; min-width: 0; padding: clamp(24px, 4vw, 42px);
  border: var(--ink-line); border-radius: var(--r-lg);
  background: var(--surface); backdrop-filter: blur(14px); box-shadow: var(--print);
}
.docs article h2 { font-size: 1.75rem; margin-top: 2em; padding-top: 1.2em; border-top: 2px dashed var(--edge-soft); scroll-margin-top: 104px; }
.docs article h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.docs code { font-family: var(--mono); font-size: .84em; background: var(--surface-2); border: 1px solid var(--line); padding: 2px 6px; border-radius: 5px; overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; max-width: 100%; }
.docs table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.docs th, .docs td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.docs th { font: 500 .78rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); width: 28%; }
@media (max-width: 820px) { .docs { grid-template-columns: minmax(0, 1fr); } .docs aside nav { position: static; grid-auto-flow: column; overflow-x: auto; border-radius: 999px; padding: 6px; } }

/* docs subpages: field-guide chrome (crumbs, badge, on-page links, logbook index, pager) */
.doc-intro .wrap { display: grid; gap: 4px; }
.doc-intro h1 { margin: 0; }
.crumbs { margin: 0 0 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 500 .74rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.doc-title { display: flex; align-items: center; gap: 16px; }
.doc-intro h1 { margin: 0; }
.doc-title h1 { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .doc-badge { width: 46px; height: 46px; border-radius: 13px; } .doc-badge .doc-ico { width: 24px; height: 24px; } .doc-title { gap: 12px; } .page-intro h1 { font-size: clamp(1.7rem, 1.1rem + 3vw, 2.2rem); } }
.doc-badge {
  flex: none; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 16px;
  background: var(--beacon); color: #fff; border: var(--ink-line); box-shadow: 3px 3px 0 var(--pop-ink); rotate: -4deg;
}
.doc-ico, .side-ico, .idx-ico { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.doc-badge .doc-ico { width: 30px; height: 30px; }
.doc-intro .lede { margin: 14px 0 0; max-width: 60ch; }
.doc-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.doc-toc a {
  text-decoration: none; min-height: 38px; display: inline-flex; align-items: center; padding: 0 14px;
  border: 2px solid var(--edge-soft); border-radius: 999px; font-weight: 600; font-size: .86rem; color: var(--ink-2);
}
.doc-toc a:hover { border-color: var(--edge); color: var(--ink); }

.docs aside a { gap: 10px; }
.side-ico { width: 18px; height: 18px; flex: none; opacity: .75; }
.docs aside a[aria-current="page"] { background: var(--beacon); color: #fff; }
.docs aside a[aria-current="page"] .side-ico { opacity: 1; }

.docs article ul, .docs article ol { padding-left: 1.2em; }
.docs article li { margin-bottom: .45em; }
.docs article .timeline { padding-left: 30px; margin-bottom: 1.5em; }
.steps { list-style: none; counter-reset: step; padding: 0 !important; display: grid; gap: 12px; margin: 0 0 1.4em; }
.steps li {
  counter-increment: step; position: relative; margin: 0 !important; padding: 14px 16px 14px 58px;
  border: 2px solid var(--edge-soft); border-radius: var(--r-md); background: var(--surface-solid);
}
.steps li::before {
  content: counter(step); position: absolute; left: 14px; top: 12px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--beacon); color: #fff; border: 2px solid var(--edge);
  font: 400 .95rem/1 var(--stamp);
}
.steps b { display: block; margin-bottom: 2px; }
.checks { list-style: none; padding: 0 !important; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: .3em; width: 16px; height: 9px;
  border-left: 3px solid var(--beacon); border-bottom: 3px solid var(--beacon); rotate: -45deg;
}
.callout {
  margin: 1.2em 0 1.4em; padding: 14px 18px; border: var(--ink-line); border-left-width: 8px; border-left-color: var(--brass);
  border-radius: var(--r-md); background: var(--surface-solid); box-shadow: var(--print-sm);
}
.callout.warn { border-left-color: var(--beacon); }
.callout b { display: block; margin-bottom: 2px; }
.doc-action { display: grid; justify-items: start; gap: 8px; margin: 18px 0; }
.docs .kv td:last-child { width: 1%; white-space: nowrap; text-align: right; }

.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding-bottom: 80px; }
.pager a {
  display: grid; gap: 4px; padding: 18px 22px; text-decoration: none;
  border: var(--ink-line); border-radius: var(--r-md); background: var(--surface-solid); box-shadow: var(--print-sm);
  transition: transform .14s var(--ease), box-shadow .14s var(--ease);
}
.pager a:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--pop-ink); }
.pager small { font: 500 .7rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.pager b { font: 600 1.08rem/1.3 var(--display); }
.pager-next { text-align: right; }
@media (max-width: 560px) { .pager { grid-template-columns: minmax(0, 1fr); } .pager-next { text-align: left; } }

/* docs hub: a logbook contents page with dotted leaders */
.logbook { margin: 12px 0 88px; border: var(--ink-line); border-radius: 8px; box-shadow: var(--print-hot); overflow: hidden; }
.logbook-head {
  margin: 0; padding: 13px 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px;
  background: var(--beacon); color: #fff; border-bottom: var(--ink-line);
  font: 400 1rem/1.1 var(--stamp); letter-spacing: .08em; text-transform: uppercase;
}
.log-index { list-style: none; margin: 0; padding: 10px clamp(12px, 3vw, 28px) 18px; }
.log-index li + li { border-top: 1.5px dashed var(--edge-soft); }
.log-index a {
  display: grid; grid-template-columns: auto auto minmax(0, max-content) minmax(24px, 1fr) auto; align-items: center; gap: 14px;
  padding: 16px 10px; text-decoration: none; border-radius: 10px; transition: background .15s ease;
}
.log-index a:hover, .log-index a:focus-visible { background: var(--beacon-soft); }
.idx-num { font: 400 1.5rem/1 var(--stamp); color: var(--beacon-hot); min-width: 2ch; }
:root[data-theme="day"] .idx-num { color: var(--beacon); }
.idx-ico { width: 24px; height: 24px; color: var(--ink-2); }
.idx-title { display: grid; gap: 3px; min-width: 0; }
.idx-title b { font: 600 1.2rem/1.2 var(--display); }
.idx-title small { color: var(--ink-2); font-size: .9rem; }
.idx-dots { align-self: end; margin-bottom: 9px; border-bottom: 2.5px dotted var(--edge-soft); }
.idx-tag { font: 500 .72rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.log-index a:hover .idx-tag { color: var(--ink); }
@media (max-width: 640px) {
  .log-index a { grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; }
  .idx-ico, .idx-dots, .idx-tag { display: none; }
}

/* ---------- studio ---------- */
.studio { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(20px, 3.5vw, 36px); padding-block: 32px 84px; align-items: start; }
.stage { border: var(--ink-line); border-radius: var(--r-lg); background: var(--surface); backdrop-filter: blur(14px); padding: 14px; position: sticky; top: 104px; min-width: 0; box-shadow: var(--print-hot); }
.stage canvas { width: 100%; height: auto; aspect-ratio: 1; border-radius: var(--r-md); touch-action: none; background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface-solid) 0 50%) 0 0 / 24px 24px; cursor: grab; border: 2px solid var(--edge-soft); }
.stage canvas:active { cursor: grabbing; }
.stage .hint { font: 400 .74rem/1.5 var(--mono); color: var(--ink-3); margin: 12px 2px 0; }
.tools { display: grid; gap: 16px; min-width: 0; }
.tool { border: var(--ink-line); border-radius: var(--r-lg); background: var(--surface); backdrop-filter: blur(14px); padding: 20px; min-width: 0; box-shadow: var(--print-sm); }
.tool h2 { font-size: 1.25rem; margin-bottom: .75em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 15px; border-radius: 999px;
  border: 2px solid var(--edge); background: var(--surface-solid); box-shadow: 2px 2px 0 var(--pop-ink);
  font-weight: 700; font-size: .86rem; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  transition: transform .14s var(--ease), box-shadow .14s var(--ease), background .15s, color .15s;
}
.chip:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--pop-ink); }
.chip:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--pop-ink); }
.chip[aria-pressed="true"] { background: var(--beacon); color: #fff; }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field label { font: 500 .7rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.field input[type="text"], .field select { min-height: 44px; border-radius: var(--r-sm); border: 2px solid var(--edge); background: var(--surface-solid); padding: 0 12px; max-width: 100%; }
.field input[type="range"] { accent-color: var(--beacon); min-height: 36px; width: 100%; }
.drop { display: grid; place-items: center; text-align: center; gap: 6px; min-height: 112px; border: 2.5px dashed var(--edge-soft); border-radius: var(--r-md); padding: 16px; cursor: pointer; background: var(--surface-solid); }
.drop[data-over="true"] { background: var(--beacon-soft); border-color: var(--beacon); }
.status { font: 400 .78rem/1.45 var(--mono); color: var(--ink-2); min-height: 1.4em; margin-top: 8px; }
@media (max-width: 900px) { .studio { grid-template-columns: minmax(0, 1fr); } .stage { position: static; } }

/* ---------- brand archive ---------- */
.kit { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr)); gap: 20px; margin-top: 28px; }
.kit-item { margin: 0; border: var(--ink-line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; display: grid; grid-template-rows: 230px auto; box-shadow: var(--print); }
.kit-item img { width: 100%; height: 100%; object-fit: contain; background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface-solid) 0 50%) 0 0 / 20px 20px; padding: 12px; }
.kit-item figcaption { display: grid; gap: 6px; padding: 18px; border-top: var(--ink-line); background: var(--surface-solid); }
.kit-item .btn { justify-self: start; margin-top: 6px; }

.specimen {
  margin-top: 32px; padding: clamp(22px, 3.5vw, 34px); border: var(--ink-line); box-shadow: var(--print);
  border-radius: var(--r-lg); background: var(--surface); backdrop-filter: blur(14px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
}
.specimen-col { min-width: 0; border-right: 1px solid var(--line); padding-right: 18px; }
.specimen-col:last-child { border-right: 0; padding-right: 0; }
.specimen-sample { font-size: 2rem; line-height: 1.1; margin: 10px 0 8px; }
@media (max-width: 780px) { .specimen { grid-template-columns: minmax(0, 1fr); } .specimen-col { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 18px; } .specimen-col:last-child { border-bottom: 0; padding-bottom: 0; } }

.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 175px), 1fr)); gap: 14px; margin-top: 24px; }
.swatch { border: var(--ink-line); border-radius: var(--r-md); background: var(--surface-solid); overflow: hidden; display: grid; box-shadow: var(--print-sm); }
.swatch-chip { height: 82px; border-bottom: var(--ink-line); }
.swatch-meta { padding: 13px; display: grid; gap: 6px; }
.swatch-meta b { font-size: .92rem; }
.art-retry { margin: 12px auto 0; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 110;
  transform: translate(-50%, 18px); opacity: 0; pointer-events: none;
  padding: 10px 18px; border-radius: 999px; border: var(--ink-line);
  background: var(--surface-solid); color: var(--ink); font: 500 .84rem/1.3 var(--mono);
  box-shadow: 4px 4px 0 var(--pop); max-width: min(92vw, 480px); text-align: center;
  transition: opacity .18s ease, transform .18s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- holiday cursor and candy-cane scrollbar ---------- */
html {
  cursor: url("/img/cursor-cane.png") 3 2, auto;
  cursor: -webkit-image-set(url("/img/cursor-cane.png") 1x, url("/img/cursor-cane-2x.png") 2x) 3 2, auto;
  cursor: image-set(url("/img/cursor-cane.png") 1x, url("/img/cursor-cane-2x.png") 2x) 3 2, auto;
}
a, button, summary, select, label, [role="switch"], .reticle, .drop, .chip, .boot {
  cursor: url("/img/cursor-nose.png") 16 16, pointer;
  cursor: -webkit-image-set(url("/img/cursor-nose.png") 1x, url("/img/cursor-nose-2x.png") 2x) 16 16, pointer;
  cursor: image-set(url("/img/cursor-nose.png") 1x, url("/img/cursor-nose-2x.png") 2x) 16 16, pointer;
}
button:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; }
input[type="text"], textarea { cursor: text; }

::-webkit-scrollbar { width: 14px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb {
  border: 3px solid var(--bg-2); border-radius: 999px;
  background: repeating-linear-gradient(45deg, #d42a35 0 7px, #fffdf7 7px 14px);
}
::-webkit-scrollbar-thumb:hover { background: repeating-linear-gradient(45deg, #e63946 0 7px, #fff 7px 14px); }
::-webkit-scrollbar-corner { background: var(--bg-2); }
@supports (-moz-appearance: none) { html { scrollbar-color: #d42a35 var(--bg-2); } }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .page-backdrop, .reticle { transform: none !important; }
  .marquee { white-space: normal; }
  .marquee-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; row-gap: 10px; }
  .marquee-track [aria-hidden="true"] { display: none; }
}
