/* PLUMB's game page (bendigogames.com/plumb/). The page keeps the game's clock: the sky behind
   everything is DayInk's sky at the hour (apps/plumb/lib/ui/look.dart in flutter-shell), set by
   page.js on :root, and each section is a glass floor of the tower, tinted with the game's floor
   hues (192° cyan, across 148° and back, as hueOf() does), stacked as you scroll. The colours
   below are the app's look (Dusk) with its reasons; privacy and support keep plumb.css. */
@font-face { font-family: "Unbounded"; src: url("fonts/unbounded.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }

:root {
  /* Set by page.js from the hour; these are 19:00, the game's own default. */
  --sky-top: #2a1856; --sky-mid: #8a3a86; --sky-low: #ff8f5e; --city: #3a1d5a;
  --night: 0.4;          /* 0 by day, 1 at night: stars, lit windows */
  --lit: 0.18;           /* DayInk's lit fraction of the city's windows */
  --orb-x: 50%; --orb-y: 60%; --orb: #ff9a5a; --orb-glow: rgba(255, 154, 90, 0.5);

  --page: #120a24;       /* the night over the city (the app's page) */
  --deep: #0b0618;       /* toward space */
  --glass: #f6eefe;      /* text: the light through the glass */
  --muted: #cbbde6;      /* the same light, dimmed (lifted for the glass panels) */
  --accent: #51c9f6;     /* the first floor's cyan glass */
  --gold: #ffc86b;       /* the sun's warm top: what is earned */
  --perfect: #ffffff;
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; color: var(--glass); font: 17px/1.62 var(--text); background: var(--page); overflow-x: hidden; }
/* The sky at the hour, behind the whole page */
body::before { content: ""; position: fixed; inset: 0; z-index: -2;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 58%, var(--sky-low) 100%); }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, canvas:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 650; line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0; }
img, video, canvas { display: block; max-width: 100%; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--page); color: var(--glass); padding: 8px 12px; z-index: 50; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- The top line ---------- */
.top { position: absolute; z-index: 5; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; gap: 16px;
  padding: max(14px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 0 max(18px, env(safe-area-inset-left)); font-size: 0.9rem; }
.top a { color: #fff; text-decoration: none; opacity: 0.85; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35); }
.top a:hover { opacity: 1; text-decoration: underline; }
.top nav { display: flex; gap: 18px; }

/* ---------- The hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; touch-action: pan-y; cursor: grab; }
.hero.dragging { cursor: grabbing; -webkit-user-select: none; user-select: none; }
.sky { position: absolute; inset: 0; pointer-events: none; }
.stars { position: absolute; inset: 0 0 30% 0; opacity: calc(var(--night) * 0.9);
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 27% 8%, #fff 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 41% 26%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 58% 12%, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 71% 31%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 86% 16%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 93% 38%, #fff 50%, transparent 52%), radial-gradient(1.3px 1.3px at 6% 44%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 34% 47%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 64% 52%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 19% 61%, #fff 50%, transparent 52%), radial-gradient(1.1px 1.1px at 80% 58%, #fff 50%, transparent 52%);
  background-size: 520px 420px; }
.orb { position: absolute; z-index: 0; left: var(--orb-x); top: var(--orb-y); width: 0; height: 0; }
.orb i { position: absolute; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--orb);
  box-shadow: 0 0 40px 14px var(--orb-glow), 0 0 140px 60px var(--orb-glow); }
.orb.moon i { width: 46px; height: 46px; margin: -23px 0 0 -23px; background: transparent;
  box-shadow: inset -12px 4px 0 0 #f6eeff, 0 0 60px 18px rgba(246, 238, 255, 0.12); }
.skyline { position: absolute; left: 0; width: 100%; bottom: 0; }
.skyline.far { height: min(34%, 330px); }
.skyline.near { height: min(22%, 210px); }
.hero-in { position: relative; z-index: 2; width: min(1180px, 100%); margin: 0 auto; padding: 84px 22px 110px; display: grid; gap: 34px; align-items: center; }
@media (min-width: 900px) { .hero-in { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; padding-top: 96px; } }
.hero-words { cursor: auto; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 0.86rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 14px 6px 12px; border-radius: 999px; background: rgba(10, 6, 24, 0.42); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.35; } }

/* The wordmark: five floors that slide in and drop, the overhang sliced away (page.js adds .go) */
.wordmark { display: flex; gap: 0.02em; font-size: clamp(4.2rem, 17vw, 9.4rem); font-weight: 800; letter-spacing: 0.02em; margin: 22px 0 0; line-height: 0.9;
  text-shadow: 0 6px 40px rgba(10, 6, 30, 0.35); }
.wordmark span { display: inline-block; position: relative; }
.js .wordmark span { opacity: 0; }
.js .wordmark.go span { animation: letter 0.62s cubic-bezier(.2, .9, .25, 1) both; }
.wordmark.go span:nth-child(1) { animation-delay: 0.05s; --from: -60vw; }
.wordmark.go span:nth-child(2) { animation-delay: 0.32s; --from: 60vw; }
.wordmark.go span:nth-child(3) { animation-delay: 0.59s; --from: -60vw; }
.wordmark.go span:nth-child(4) { animation-delay: 0.86s; --from: 60vw; }
.wordmark.go span:nth-child(5) { animation-delay: 1.13s; --from: -60vw; }
@keyframes letter {
  0% { opacity: 1; transform: translate(var(--from), -0.12em); }
  78% { transform: translate(0, -0.12em); }
  100% { opacity: 1; transform: translate(0, 0); }
}
/* the slice that falls off each letter as it lands */
.wordmark .chip { position: absolute; top: 0; bottom: 0; width: 0.12em; background: currentColor; opacity: 0; pointer-events: none; }
.wordmark.go .chip { animation: chip 0.9s ease-in both; }
@keyframes chip {
  0% { opacity: 0.9; transform: translate(0, 0) rotate(0); }
  100% { opacity: 0; transform: translate(var(--cx, 0.4em), 1.6em) rotate(var(--cr, 24deg)); }
}
@media (min-width: 900px) { .wordmark { font-size: clamp(4rem, 8.6vw, 8.4rem); } }
.wordmark.small { font-size: clamp(3rem, 12vw, 5.6rem); justify-content: center; }
.stack-line { font-family: var(--display); font-size: clamp(1.4rem, 4.4vw, 2.2rem); font-weight: 500; color: var(--gold); margin-top: 10px; letter-spacing: 0.01em;
  text-shadow: 0 2px 20px rgba(10, 6, 30, 0.4); }
.lead { max-width: 34rem; margin-top: 18px; font-size: 1.1rem; text-shadow: 0 1px 14px rgba(10, 6, 30, 0.55); }

/* The clock: a strip of the day's skies with the sun on it */
.clock { margin-top: 26px; max-width: 30rem; padding: 14px 16px 12px; border-radius: 16px; background: rgba(10, 6, 24, 0.46); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.clock label, .hour-label { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--display); font-size: 0.86rem; letter-spacing: 0.05em; }
.clock output, .hour-label output { font-variant-numeric: tabular-nums; color: var(--gold); font-size: 1rem; }
.clock-note { margin-top: 8px; font-size: 0.8rem; color: var(--muted); line-height: 1.45; }
.hour { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; margin: 8px 0 0; background: transparent; cursor: pointer; touch-action: none; }
.hour::-webkit-slider-runnable-track { height: 12px; border-radius: 999px; background: var(--day-strip, linear-gradient(90deg, #070b1e, #ffb08a 25%, #3f7fd0 50%, #ff8f5e 79%, #0a0f27)); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18); }
.hour::-moz-range-track { height: 12px; border-radius: 999px; background: var(--day-strip, linear-gradient(90deg, #070b1e, #ffb08a 25%, #3f7fd0 50%, #ff8f5e 79%, #0a0f27)); }
.hour::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -8px; border-radius: 50%; background: var(--orb); border: 2px solid rgba(255,255,255,0.85); box-shadow: 0 0 18px var(--orb-glow); }
.hour::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--orb); border: 2px solid rgba(255,255,255,0.85); box-shadow: 0 0 18px var(--orb-glow); }

.get { margin-top: 24px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.soon { display: inline-block; font-family: var(--display); font-size: 0.95rem; padding: 12px 20px; border-radius: 999px; color: #170c2c; background: var(--glass);
  box-shadow: 0 8px 30px rgba(10, 6, 30, 0.3); }
.badge img { height: 54px; width: auto; }
.get [hidden] { display: none; } /* .soon sets its own display, which beat the hidden attribute */

/* The run */
.run { margin: 0; justify-self: center; text-align: center; cursor: auto; }
.run-frame { position: relative; width: min(340px, 72vw); aspect-ratio: 540 / 1168; border-radius: 30px; overflow: hidden; background: var(--page);
  box-shadow: 0 30px 80px rgba(8, 4, 24, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.14), 0 0 70px rgba(81, 201, 246, 0.16); transform: rotate(1.2deg); }
@media (min-width: 900px) { .run-frame { width: min(370px, 30vw); max-height: 78vh; height: auto; } }
.run-frame video { width: 100%; height: 100%; object-fit: cover; }
.play { position: absolute; inset: auto 0 18px 0; margin: 0 auto; width: max-content; font: 600 0.9rem var(--display); color: #170c2c; background: var(--glass); border: 0; border-radius: 999px; padding: 10px 18px; cursor: pointer; }
.run figcaption { margin-top: 14px; font-size: 0.8rem; color: var(--glass); opacity: 0.8; text-shadow: 0 1px 8px rgba(0,0,0,0.5); }

.down { position: absolute; z-index: 3; left: 50%; bottom: 22px; transform: translateX(-50%); color: #fff; text-decoration: none; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; text-align: center; }
.down::after { content: ""; display: block; width: 1px; height: 34px; margin: 8px auto 0; background: linear-gradient(#fff, transparent); animation: plumb 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes plumb { 0%, 100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }

/* ---------- The floors: each section a glass floor of the tower ---------- */
.floor { position: relative; padding: 70px 18px; }
.floor-in { --h: 192; position: relative; width: min(1100px, 100%); margin: 0 auto; padding: clamp(26px, 4vw, 48px);
  background:
    repeating-linear-gradient(90deg, transparent 0 54px, rgba(255, 255, 255, 0.045) 54px 55px),
    linear-gradient(115deg, transparent 18%, rgba(255, 255, 255, 0.07) 27%, transparent 38%, rgba(255, 255, 255, 0.035) 60%, transparent 70%),
    linear-gradient(180deg, hsla(var(--h), 62%, 20%, 0.86), hsla(var(--h), 70%, 11%, 0.9));
  border-top: 2px solid hsla(var(--h), 95%, 84%, 0.75);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25) inset, 0 40px 80px rgba(6, 3, 20, 0.35);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
/* the top face and the right side, as drawSlab draws them (slabDX 9, slabDY 7, scaled) */
.floor-in::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 14px; transform: skewX(-52deg); transform-origin: bottom left;
  background: linear-gradient(90deg, hsla(var(--h), 95%, 74%, 0.55), hsla(var(--h), 95%, 80%, 0.85)); }
.floor-in::after { content: ""; position: absolute; top: -16px; bottom: 0; right: -18px; width: 18px; transform: skewY(-38deg); transform-origin: top left;
  background: linear-gradient(180deg, hsla(var(--h), 70%, 26%, 0.9), hsla(var(--h), 70%, 14%, 0.9)); }
.drop .floor-in { --h: 196; }
.city .floor-in { --h: 222; }
.windows .floor-in { --h: 250; }
.pace .floor-in { --h: 300; }
.towers .floor-in { --h: 326; }
.split { display: grid; gap: 34px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } .split.reverse > :first-child { order: 2; } }
.floor h2 { font-size: clamp(2rem, 5.4vw, 3.4rem); }
.words p + p { margin-top: 14px; }
.words h2 + p, .words h2 + ol, .words h2 + ul { margin-top: 20px; }
.aside { margin-top: 18px; font-size: 0.88rem; color: var(--muted); }

/* A floor arrives the way a slab does: from the side, then a sliver of overhang falls away */
.js .floor-in.waiting { opacity: 0; transform: translateX(var(--from, -30vw)); }
.js .floor-in.landed { opacity: 1; transform: none; transition: transform 0.8s cubic-bezier(.2, .9, .25, 1), opacity 0.35s; }
.sliver { position: absolute; top: -2px; bottom: 0; width: 26px; pointer-events: none; z-index: 1;
  background: linear-gradient(180deg, hsla(var(--h), 90%, 64%, 0.9), hsla(var(--h), 85%, 36%, 0.9)); border-top: 2px solid hsla(var(--h), 95%, 84%, 0.9);
  animation: sliver 1.1s cubic-bezier(.5, 0, .9, .6) forwards; }
@keyframes sliver { to { transform: translate(var(--sx, 30px), 70vh) rotate(var(--sr, 28deg)); opacity: 0; } }

/* ---------- One tap ---------- */
.beats { list-style: none; padding: 0; margin: 0; counter-reset: b; display: grid; gap: 14px; }
.beats li { counter-increment: b; position: relative; padding-left: 52px; }
.beats li::before { content: counter(b); position: absolute; left: 0; top: 0; width: 36px; height: 36px; display: grid; place-items: center; font: 700 1rem var(--display);
  color: #120a24; background: var(--accent); clip-path: polygon(0 18%, 18% 0, 100% 0, 100% 82%, 82% 100%, 0 100%); }
.beats b { display: block; font-family: var(--display); font-weight: 600; }
.toy { position: relative; justify-self: center; width: min(380px, 100%); }
.toy canvas#toy { width: 100%; height: auto; aspect-ratio: 440 / 640; border-radius: 22px; touch-action: manipulation; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.14), 0 24px 60px rgba(6, 3, 20, 0.45); -webkit-tap-highlight-color: transparent; user-select: none; }
.toy-hud { position: absolute; left: 14px; right: 14px; top: 12px; display: flex; justify-content: space-between; gap: 10px; font-size: 0.78rem; pointer-events: none; text-shadow: 0 1px 6px rgba(0,0,0,0.6); }
.toy-hud span:first-child { font-family: var(--display); }
.toy-hud span:last-child { text-align: right; opacity: 0.9; }
.toy-over { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; border-radius: 22px;
  background: rgba(10, 6, 24, 0.62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); text-align: center; padding: 20px; }
.toy-over[hidden] { display: none; }
.toy-score { font-family: var(--display); font-size: 1.3rem; }
.toy-score small { display: block; font-family: var(--text); font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
.again { font: 600 0.95rem var(--display); color: #120a24; background: var(--accent); border: 0; padding: 10px 24px; border-radius: 999px; cursor: pointer; }

/* ---------- The city ---------- */
.hourframe { margin: 0; justify-self: center; text-align: center; }
.frame { width: min(360px, 78vw); aspect-ratio: 700 / 1516; border-radius: 24px; overflow: hidden; background: var(--page); box-shadow: 0 0 0 1px rgba(255,255,255,0.14), 0 24px 60px rgba(6, 3, 20, 0.45); }
.frame canvas, .frame img { width: 100%; height: 100%; }
.hourframe figcaption, .speed figcaption { margin-top: 12px; font-size: 0.8rem; color: var(--muted); }
.hour-label { margin-top: 24px; }
.weather { list-style: none; margin: 34px auto 0; padding: 0; width: min(1100px, 100%); display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 700px) { .weather { grid-template-columns: repeat(2, 1fr); } }
.weather li { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 4; box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 14px 34px rgba(6, 3, 20, 0.4); }
.weather img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform 6s ease-out; }
.weather li:hover img { transform: scale(1.08); }
.weather span { position: absolute; left: 10px; bottom: 9px; font: 600 0.82rem var(--display); text-shadow: 0 1px 8px rgba(0,0,0,0.8); }

/* ---------- The windows ---------- */
.windows .floor-in { text-align: center; }
.win-lead { max-width: 44rem; margin: 18px auto 0; }
.found { margin-top: 14px; font-size: 0.9rem; color: var(--gold); }
.facade { --cols: 6; position: relative; width: min(900px, calc(100% - 36px)); margin: 0 auto; padding: 26px clamp(14px, 3vw, 30px) 0;
  display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: clamp(8px, 1.6vw, 16px);
  background: linear-gradient(180deg, #1a1236, #0e0a20); border-left: 1px solid rgba(255,255,255,0.08); border-right: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 -2px 0 rgba(255, 220, 150, 0.15) inset; }
@media (min-width: 700px) { .facade { --cols: 8; } }
.facade::after { content: ""; grid-column: 1 / -1; height: 26px; }
.win { position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: 3px; overflow: hidden; cursor: pointer; background: #0a0716;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.06); transition: box-shadow 0.4s; }
.win img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.42) saturate(0.55) hue-rotate(-12deg); transition: filter 0.5s; }
.win::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0.10), transparent 40%); pointer-events: none; }
.win.on img, .win:hover img, .win:focus-visible img { filter: none; }
.win.on, .win:hover, .win:focus-visible { box-shadow: inset 0 0 0 2px rgba(255, 220, 150, 0.55), 0 0 22px rgba(255, 200, 120, 0.35); }
.win.rare img { filter: brightness(0.12) blur(5px); }
.win.rare:not(.seen)::before { content: "?"; position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; font: 700 1.2rem var(--display); color: rgba(255, 220, 150, 0.6); }
.win.rare.seen img, .win.rare:hover img, .win.rare:focus-visible img { filter: none; }
.win.seen { box-shadow: inset 0 0 0 2px rgba(255, 220, 150, 0.35); }
.win.rare.seen::before { content: ""; }
.plain-list { width: min(900px, 100%); margin: 0 auto; columns: 2; }
dialog#moment { width: min(420px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 22px; color: var(--glass); background: #140c2a;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255,255,255,0.12); overflow: hidden; }
dialog#moment::backdrop { background: rgba(6, 3, 18, 0.7); backdrop-filter: blur(3px); }
dialog#moment img { width: 100%; height: auto; aspect-ratio: 1; }
dialog#moment h3 { font-size: 1.15rem; padding: 18px 20px 0; }
dialog#moment .where { padding: 6px 20px 20px; color: var(--muted); font-size: 0.92rem; }
dialog#moment .where b { color: var(--gold); font-weight: 600; }
dialog#moment form { position: absolute; right: 10px; top: 10px; margin: 0; }
.close { width: 38px; height: 38px; border-radius: 50%; border: 0; font-size: 1.5rem; line-height: 1; color: #fff; background: rgba(10, 6, 24, 0.6); cursor: pointer; }

/* ---------- The climb ---------- */
.climb { position: relative; height: 760vh; margin-top: 70px;
  background: linear-gradient(180deg, transparent 0, #0a0f27 70vh, #070a1d 50%, #020309 100%); }
.climb-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; align-items: center; justify-items: center; gap: 24px; padding: 20px;
  background: var(--climb-bg, transparent); }
@media (min-width: 900px) { .climb-sticky { grid-template-columns: 1fr auto; padding: 40px max(40px, calc((100vw - 1100px) / 2)); } }
.climb-words { align-self: center; max-width: 30rem; }
.climb h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
.floor-count { margin-top: 22px; font-family: var(--display); line-height: 1; }
.floor-count small { display: block; font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.floor-count span { display: block; font-size: clamp(3.6rem, 10vw, 7rem); font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fff, hsl(var(--climb-h, 196), 90%, 72%)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.marks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 2px; font-size: 0.95rem; }
.marks li { color: rgba(246, 238, 254, 0.38); transition: color 0.3s, transform 0.3s; padding-left: 18px; position: relative; }
.marks li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 1px; background: currentColor; }
.marks li.past { color: rgba(246, 238, 254, 0.62); }
.marks li.on { color: var(--gold); transform: translateX(6px); font-weight: 600; }
.climb-note { margin-top: 18px; font-size: 0.8rem; color: var(--muted); }
.climb-frame { position: relative; height: min(84svh, 860px); aspect-ratio: 700 / 1516; border-radius: 26px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 30px 90px rgba(0, 0, 0, 0.55); }
.climb-frame canvas, .climb-frame img { width: 100%; height: 100%; }
@media (max-width: 899px) { .orb { opacity: 0.7; } }
@media (max-width: 899px) {
  .climb-sticky { grid-template-rows: 1fr; padding: 12px; }
  .climb-words, .climb-frame { grid-area: 1 / 1; }
  .climb-frame { height: min(92svh, 200vw); }
  .climb-words { z-index: 2; align-self: stretch; display: flex; flex-direction: column; justify-content: flex-start; width: min(100%, calc(92svh * 700 / 1516)); padding: 18px 16px 22px; pointer-events: none; }
  .climb h2 { font-size: 1.25rem; text-shadow: 0 1px 10px rgba(0,0,0,0.6); }
  .floor-count { margin-top: 8px; order: 2; text-shadow: none; }
  .floor-count small { font-size: 0.7rem; }
  .floor-count span { font-size: 2.6rem; }
  .marks { order: 3; margin-top: auto; }
  .marks li { display: none; }
  .marks li.on { display: block; transform: none; padding-left: 0; font-size: 1.05rem; text-shadow: 0 1px 10px rgba(0,0,0,0.8); }
  .marks li.on::before { display: none; }
  .climb-note { display: none; }
  .climb h2 { order: 1; }
}

/* ---------- The pace ---------- */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 14px; height: 6px; background: hsl(300, 90%, 70%); box-shadow: 0 -2px 0 hsl(300, 95%, 84%); }
.speed { margin: 0; text-align: center; }
.speed svg { width: 100%; height: auto; overflow: visible; }
.speed .axis { stroke: rgba(255,255,255,0.25); stroke-width: 1; }
.speed .line { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.speed .area { fill: url(#speedFill); }
.speed text { fill: var(--muted); font: 11px var(--text); }
.speed .big { fill: var(--glass); font: 600 13px var(--display); }
.speed .hold { stroke: rgba(255, 200, 107, 0.4); stroke-dasharray: 3 4; }

/* ---------- The towers ---------- */
.sils { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 26px; }
.sil { margin: 0; width: 130px; padding: 14px 10px 12px; border-radius: 14px; background: rgba(8, 4, 20, 0.45); text-align: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); }
.sil canvas { margin: 0 auto; width: 100px; height: 140px; }
.sil figcaption { margin-top: 8px; font-size: 0.78rem; color: var(--muted); line-height: 1.35; }
.sil figcaption b { display: block; font-family: var(--display); font-size: 0.95rem; color: var(--glass); }
.sil.yours { box-shadow: inset 0 0 0 2px var(--gold); }
.sil.yours figcaption b { color: var(--gold); }

/* ---------- The end ---------- */
.end { position: relative; padding: 110px 20px max(80px, env(safe-area-inset-bottom)); text-align: center; background: linear-gradient(180deg, transparent, rgba(6, 3, 18, 0.88) 30%); }
.end-in { max-width: 40rem; margin: 0 auto; }
.end .get { justify-content: center; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.facts li { padding: 6px 13px; border: 1px solid rgba(255,255,255,0.18); border-radius: 999px; font-size: 0.86rem; color: var(--muted); }
.privacy { margin-top: 26px; color: var(--muted); }
.links { margin-top: 18px; font-size: 0.92rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .wordmark span { opacity: 1; }
  .js .floor-in.waiting { opacity: 1; transform: none; }
  .sliver, .wordmark .chip { display: none; }
}

/* ---------- Phones: the run straight after the name, then the words ---------- */
@media (max-width: 899px) {
  .hero-in { gap: 0; padding-top: 70px; padding-bottom: 70px; }
  .hero-words { display: contents; }
  .kicker { order: 1; justify-self: start; }
  .wordmark { order: 2; }
  .stack-line { order: 3; }
  .run { order: 4; margin-top: 26px; }
  .lead { order: 5; margin-top: 26px; }
  .clock { order: 6; }
  .hero-in > .get, .hero-words > .get { order: 7; }
  .skyline.far { height: min(34%, 240px); }
  .skyline.near { height: min(22%, 150px); }
  .down { display: none; }
}
