/* V2 "Subota, 21:00": one Saturday night service at a busy counter, told moment by moment.
 * Skill: high-end-visual-design. Vibe archetype: Ethereal Glass (OLED black, ambient light, white
 * hairlines, wide grotesk). Layout archetype: Editorial Split, broken on purpose at the climax
 * (21:00 goes full width) and mixed with a Z-axis cascade (19:42) and an asymmetric bento (21:00).
 * No words in this file; every visible string comes from a copy slot. */

/* ------------------------------------------------------------------ tokens */

:root {
  color-scheme: dark;

  --bg: #050505;
  --core-top: #111113;
  --core-bottom: #0b0b0c;
  --ink: #f2eee7;
  --ink-2: #b5afa6;
  --ink-3: #928c84;
  --line: rgba(242, 238, 231, 0.08);
  --line-2: rgba(242, 238, 231, 0.14);
  --line-3: rgba(242, 238, 231, 0.24);
  --glass: rgba(12, 12, 13, 0.72);

  --amber: #f4b451;
  --amber-ink: #f7c472;
  --amber-soft: rgba(244, 180, 81, 0.12);
  --amber-line: rgba(244, 180, 81, 0.38);
  --ice: #9cc8f0;
  --ice-soft: rgba(156, 200, 240, 0.12);
  --ice-line: rgba(156, 200, 240, 0.38);

  /* The accent follows the state of the night: amber while online, ice while offline. */
  --accent: var(--amber);
  --accent-ink: var(--amber-ink);
  --accent-soft: var(--amber-soft);
  --accent-line: var(--amber-line);

  --font-display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Skill 5: spring-like curves only, never linear or ease-in-out. */
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);

  /* Skill 4C: macro-whitespace, py-24 to py-40. */
  --gutter: clamp(16px, 5vw, 64px);
  --section-y: clamp(6rem, 11vw, 10rem);

  /* Skill 4A: double bezel with concentric radii. */
  --r-shell: 2rem;
  --pad-shell: 0.375rem;
  --r-core: calc(var(--r-shell) - var(--pad-shell) - 1px);

  /* Room for the clock on the right edge, only where it is a vertical rail. */
  --clock-lane: 0px;
}

@media (min-width: 1200px) {
  :root { --clock-lane: 11rem; }
}

/* ------------------------------------------------------------------ base */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html.menu-open { overflow: hidden; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, h3, h4, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

[id] { scroll-margin-top: 6rem; }

h1, h2, h3, h4, p, li { overflow-wrap: break-word; hyphens: auto; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  z-index: 50;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--amber);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  translate: 0 -200%;
  transition: translate 0.5s var(--ease);
}

.skip:focus-visible { translate: 0 0; }

.wrap {
  position: relative;
  width: min(72rem, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* ------------------------------------------------------------------ ambient light */
/* Skill 3A Ethereal Glass mesh glow, kept on fixed pointer-events-none layers (skill 6). Each moment
 * names its light; script.js sets body[data-light] and the layers cross-fade by opacity only. */

.lights {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.light {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.8s var(--ease-soft);
}

.light--hero {
  background:
    radial-gradient(42% 38% at 82% 14%, rgba(156, 200, 240, 0.11), transparent 70%),
    radial-gradient(38% 34% at 8% 92%, rgba(244, 180, 81, 0.08), transparent 70%);
}

.light--dusk {
  background:
    radial-gradient(55% 40% at 50% -6%, rgba(244, 180, 81, 0.12), transparent 72%),
    radial-gradient(30% 30% at 96% 70%, rgba(196, 110, 52, 0.06), transparent 70%);
}

.light--warm {
  background:
    radial-gradient(44% 40% at 84% 18%, rgba(244, 180, 81, 0.17), transparent 70%),
    radial-gradient(36% 34% at 6% 86%, rgba(204, 104, 46, 0.11), transparent 70%);
}

.light--cold {
  background:
    radial-gradient(46% 42% at 16% 12%, rgba(120, 170, 230, 0.15), transparent 70%),
    radial-gradient(34% 32% at 92% 88%, rgba(84, 116, 186, 0.1), transparent 70%);
}

.light--night {
  background: radial-gradient(60% 40% at 50% 110%, rgba(242, 238, 231, 0.05), transparent 72%);
}

.light--end {
  background:
    radial-gradient(52% 44% at 50% 100%, rgba(244, 180, 81, 0.13), transparent 72%),
    radial-gradient(30% 30% at 10% 10%, rgba(156, 200, 240, 0.05), transparent 70%);
}

body[data-light="hero"] .light--hero,
body[data-light="dusk"] .light--dusk,
body[data-light="warm"] .light--warm,
body[data-light="cold"] .light--cold,
body[data-light="night"] .light--night,
body[data-light="end"] .light--end { opacity: 1; }

main,
.footer { position: relative; }

/* ------------------------------------------------------------------ type */

.display {
  font-family: var(--font-display);
  font-weight: 760;
  font-stretch: 118%;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.lead {
  max-width: 34rem;
  margin-top: 1.5rem;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.25rem);
  line-height: 1.6;
}

.lead--center { margin-inline: auto; text-align: center; }

/* Skill 4C: microscopic pill eyebrow before every major heading. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  max-width: 100%;
  padding: 0.4375rem 0.875rem;
  border: 1px solid var(--line-2);
  border-radius: 0.9375rem;
  background: rgba(242, 238, 231, 0.03);
  color: var(--ink-2);
  font: 500 0.6875rem/1.35 var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow__led,
.clock__led {
  flex: none;
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0.75rem rgba(244, 180, 81, 0.55);
}

.status {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 0.375rem 0.625rem;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font: 500 0.625rem/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag {
  display: inline-flex;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  font: 500 0.6875rem/1.2 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Dashed means "optional" or "later" everywhere on the page. */
.tag--optional {
  border: 1px dashed var(--line-3);
  color: var(--ink-2);
}

/* ------------------------------------------------------------------ buttons */
/* Skill 4B + 5B: pill, button-in-button orb, press scale, orb drifts diagonally on hover.
 * Rule 3 forbids icons, so the orb holds a single LED dot instead of an arrow glyph. */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  min-height: 3rem;
  padding: 0.375rem 0.375rem 0.375rem 1.5rem;
  border-radius: 999px;
  font: 500 0.9375rem/1.2 var(--font-body);
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.6s var(--ease),
    background-color 0.6s var(--ease),
    border-color 0.6s var(--ease),
    color 0.6s var(--ease);
}

.btn:active { transform: scale(0.98); }

.btn__orb {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  transition: transform 0.7s var(--ease), background-color 0.6s var(--ease);
}

.btn__dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: currentColor;
  transition: transform 0.7s var(--ease);
}

.btn:hover .btn__orb,
.btn:focus-visible .btn__orb { transform: translate(0.25rem, -1px) scale(1.05); }

.btn:hover .btn__dot,
.btn:focus-visible .btn__dot { transform: scale(1.7); }

.btn--amber {
  background: var(--amber);
  color: var(--bg);
}

.btn--amber .btn__orb { background: rgba(5, 5, 5, 0.12); }
.btn--amber:hover { background: var(--amber-ink); }

.btn--ghost {
  border: 1px solid var(--line-2);
  background: rgba(242, 238, 231, 0.03);
  color: var(--ink);
}

.btn--ghost .btn__orb { background: rgba(242, 238, 231, 0.08); }
.btn--ghost:hover { border-color: var(--line-3); background: rgba(242, 238, 231, 0.06); }

.btn--sm {
  min-height: 2.75rem;
  gap: 0.625rem;
  padding: 0.25rem 0.25rem 0.25rem 1.125rem;
  font-size: 0.8125rem;
}

.btn--sm .btn__orb { width: 2rem; height: 2rem; }

.btn--lg {
  min-height: 3.5rem;
  padding-left: 1.75rem;
  font-size: 1rem;
}

.btn--lg .btn__orb { width: 2.75rem; height: 2.75rem; }

/* ------------------------------------------------------------------ island nav */
/* Skill 5A: a floating glass pill detached from the top, never an edge-to-edge bar. */

.island-wrap {
  position: fixed;
  z-index: 30;
  top: max(1rem, env(safe-area-inset-top));
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding-inline: 16px;
  pointer-events: none;
}

.island {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
  max-width: 100%;
  padding: 0.3125rem 0.3125rem 0.3125rem 1.25rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  pointer-events: auto;
  position: relative;
  z-index: 2;
}

.island__brand {
  min-width: 0;
  padding: 0.625rem 0.75rem 0.625rem 0;
  overflow: hidden;
  font: 700 0.9375rem/1 var(--font-display);
  font-stretch: 112%;
  letter-spacing: -0.01em;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.island__links { display: none; }

.island__links a {
  display: block;
  padding: 0.75rem 0.875rem;
  border-radius: 999px;
  color: var(--ink-2);
  font: 500 0.8125rem/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.5s var(--ease), background-color 0.5s var(--ease);
}

.island__links a:hover { color: var(--ink); background: rgba(242, 238, 231, 0.06); }

.island__cta { display: none; flex: none; }

.island__menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  gap: 0.625rem;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.875rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(242, 238, 231, 0.04);
  font: 500 0.8125rem/1 var(--font-body);
  cursor: pointer;
  transition: background-color 0.5s var(--ease), transform 0.5s var(--ease);
}

.island__menu:hover { background: rgba(242, 238, 231, 0.08); }
.island__menu:active { transform: scale(0.97); }

.island__menu-label {
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Skill 5A hamburger morph: two lines rotate into an X, transform only. */
.burger {
  position: relative;
  flex: none;
  width: 1.125rem;
  height: 0.75rem;
}

.burger span {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1.5px;
  margin-top: -0.75px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.6s var(--ease);
}

.burger span:first-child { transform: translateY(-3.5px); }
.burger span:last-child { transform: translateY(3.5px); }

.island__menu[aria-expanded="true"] .burger span:first-child { transform: rotate(45deg); }
.island__menu[aria-expanded="true"] .burger span:last-child { transform: rotate(-45deg); }

@media (max-width: 479px) {
  .island__menu { padding: 0; }
  .island__menu-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}

@media (min-width: 768px) {
  .island__cta { display: inline-flex; margin-left: 0.25rem; }
}

@media (min-width: 1240px) {
  .island__links { display: flex; gap: 0.125rem; padding-inline: 0.5rem; }
  .island__menu { display: none; }
}

/* Without JavaScript the menu cannot open: show the CTA instead of the button. */
html:not(.js) .island__menu { display: none; }
html:not(.js) .island__cta { display: inline-flex; }

/* Skill 5A modal expansion: a screen-filling heavy glass overlay with a staggered mask reveal. */
.menu {
  position: fixed;
  z-index: 1;
  inset: 0;
  overflow-y: auto;
  background: rgba(5, 5, 5, 0.84);
  -webkit-backdrop-filter: blur(40px);
  backdrop-filter: blur(40px);
  opacity: 0;
  visibility: hidden;
  pointer-events: auto;
  transition: opacity 0.6s var(--ease), visibility 0s 0.6s;
}

html:not(.js) .menu { display: none; }

.menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s var(--ease), visibility 0s 0s;
}

.menu__nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.5rem;
  min-height: 100dvh;
  padding: 7rem var(--gutter) 3rem;
}

.menu__list { display: grid; gap: 0.25rem; }

.menu__list li {
  overflow: hidden;
  padding: 0.25rem;
}

.menu__list a,
.menu__foot {
  translate: 0 3rem;
  opacity: 0;
  transition:
    translate 0.9s var(--ease) calc(100ms + var(--d, 0) * 50ms),
    opacity 0.9s var(--ease) calc(100ms + var(--d, 0) * 50ms);
}

.menu.is-open .menu__list a,
.menu.is-open .menu__foot {
  translate: 0 0;
  opacity: 1;
}

.menu__list a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.25rem 0;
  font: 700 clamp(1.875rem, 7vw + 0.5rem, 3.5rem)/1.08 var(--font-display);
  font-stretch: 112%;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.menu__list a:focus-visible { outline-offset: 0; }

.menu__num {
  flex: none;
  color: var(--ink-3);
  font: 400 0.75rem/1 var(--font-mono);
  letter-spacing: 0.04em;
}

@media (min-width: 1240px) {
  .menu { display: none; }
}

/* ------------------------------------------------------------------ reveal */
/* Skill 5C: heavy fade-up on entry via IntersectionObserver. The blur from 5C is left out on purpose:
 * skill 6 forbids blur filters on scrolling content. Uses the individual `translate` property so it
 * never fights the cascade's own transform. Only active with JavaScript. */

html.js [data-reveal] {
  opacity: 0;
  translate: 0 3rem;
  transition:
    opacity 0.9s var(--ease) calc(var(--d, 0) * 90ms),
    translate 1.1s var(--ease) calc(var(--d, 0) * 90ms);
}

html.js [data-reveal].is-in {
  opacity: 1;
  translate: 0 0;
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 8rem 0 clamp(4rem, 8vw, 7rem);
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-3), transparent);
}

/* The cold open: an outlined 21:00 behind everything, its colon pulsing like a clock display. */
.hero__clock {
  position: absolute;
  z-index: -1;
  top: clamp(4.5rem, 11vh, 7.5rem);
  right: -0.03em;
  color: transparent;
  font: 400 clamp(7rem, 31vw, 30rem)/0.78 var(--font-mono);
  letter-spacing: -0.08em;
  white-space: nowrap;
  -webkit-text-stroke: 1px rgba(242, 238, 231, 0.15);
  user-select: none;
}

.hero__colon {
  -webkit-text-stroke-color: var(--amber);
  animation: blink 2.4s var(--ease-soft) infinite;
}

.hero__inner {
  display: grid;
  justify-items: start;
  gap: 1.5rem;
}

.hero__title {
  max-width: 12em;
  font-size: clamp(2rem, 5.4vw + 0.4rem, 5.75rem);
}

.hero__lead {
  max-width: 36rem;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 0.45vw + 1rem, 1.3125rem);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.hero__note {
  max-width: 34rem;
  color: var(--ink-3);
  font-size: 0.875rem;
  line-height: 1.55;
}

@media (max-width: 599px) {
  .hero__title { font-stretch: 106%; }
}

/* ------------------------------------------------------------------ story + clock */

@media (min-width: 1200px) {
  .story { padding-right: var(--clock-lane); }
}

/* Small screens: a floating pill at the bottom. Large screens: a vertical rail on the right edge. */
.clock {
  position: fixed;
  z-index: 20;
  left: 0;
  right: 0;
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  width: max-content;
  max-width: calc(100% - 32px);
  margin-inline: auto;
  padding: 0.5rem 1.125rem 0.5rem 1rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  opacity: 0;
  visibility: hidden;
  translate: 0 1.5rem;
  transition:
    opacity 0.7s var(--ease),
    translate 0.9s var(--ease),
    visibility 0s 0.7s;
}

html:not(.js) .clock { display: none; }

.clock.is-on {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
  transition:
    opacity 0.7s var(--ease),
    translate 0.9s var(--ease),
    visibility 0s 0s;
}

.clock[data-net="off"] {
  --accent: var(--ice);
  --accent-soft: var(--ice-soft);
  --accent-line: var(--ice-line);
}

.clock__face {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  min-width: 0;
}

.clock__time {
  display: inline-block;
  color: var(--ink);
  font: 500 1.125rem/1 var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.clock__time.is-tick { animation: tick 0.8s var(--ease); }

.clock__meta,
.clock__net {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  min-width: 0;
  color: var(--ink-3);
  font: 500 0.625rem/1.2 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.clock__net { color: var(--ink-2); }

.clock__led { transition: background-color 0.6s var(--ease), box-shadow 0.6s var(--ease); }

.clock[data-net="off"] .clock__led {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--ice);
}

.clock__rail { display: none; }

@media (max-width: 419px) {
  .clock__meta { display: none; }
}

@media (min-width: 1200px) {
  .clock {
    left: auto;
    right: 1.5rem;
    top: 50%;
    bottom: auto;
    display: grid;
    margin: 0;
    gap: 1rem;
    width: 9rem;
    padding: 1.25rem 0.75rem 0.875rem;
    border-radius: 1.75rem;
    translate: 1.5rem -50%;
  }

  .clock.is-on { translate: 0 -50%; }

  .clock__face {
    display: grid;
    justify-items: center;
    gap: 0.5rem;
    text-align: center;
  }

  .clock__time { font-size: 1.75rem; letter-spacing: -0.04em; }

  .clock__meta,
  .clock__net { white-space: normal; justify-content: center; }

  .clock__rail {
    display: grid;
    gap: 0.125rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
  }

  .clock__rail a {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-height: 1.75rem;
    padding: 0 0.5rem;
    border-radius: 0.5rem;
    color: var(--ink-3);
    font: 400 0.75rem/1 var(--font-mono);
    font-variant-numeric: tabular-nums;
    text-decoration: none;
    transition: color 0.5s var(--ease), background-color 0.5s var(--ease);
  }

  .clock__rail a::before {
    content: "";
    flex: none;
    width: 1.25rem;
    height: 1px;
    background: currentColor;
    transform: scaleX(0.45);
    transform-origin: left center;
    transition: transform 0.7s var(--ease), background-color 0.6s var(--ease);
  }

  .clock__rail a:hover { color: var(--ink); background: rgba(242, 238, 231, 0.05); }

  .clock__rail a[aria-current] { color: var(--ink); }

  .clock__rail a[aria-current]::before {
    transform: scaleX(1);
    background: var(--accent);
  }
}

/* ------------------------------------------------------------------ prologue */

.prologue {
  display: grid;
  justify-items: center;
  gap: 1.75rem;
  padding-block: var(--section-y) calc(var(--section-y) * 0.4);
  text-align: center;
}

.prologue__text {
  max-width: 24em;
  font: 500 clamp(1.375rem, 1.5vw + 1rem, 2.5rem)/1.3 var(--font-body);
  letter-spacing: -0.022em;
  text-wrap: balance;
}

/* ------------------------------------------------------------------ moments */

.moment {
  position: relative;
  padding-block: var(--section-y);
}

.moment + .moment::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(72rem, 100% - 2 * var(--gutter));
  height: 1px;
  translate: -50% 0;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.moment--cold {
  --accent: var(--ice);
  --accent-ink: var(--ice);
  --accent-soft: var(--ice-soft);
  --accent-line: var(--ice-line);
}

.moment__grid {
  display: grid;
  gap: 3.5rem;
}

.moment__head { display: grid; justify-items: start; }

.moment__time {
  margin-bottom: 1.75rem;
  color: var(--ink);
  font: 400 clamp(4rem, 8vw + 1.5rem, 8.5rem)/0.84 var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.065em;
}

.moment__time time { display: inline-block; }

.colon { color: var(--accent); }

.moment.is-active .colon { animation: blink 2.4s var(--ease-soft) infinite; }

.moment__title {
  max-width: 17em;
  margin-top: 1.125rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.6vw + 1.2rem, 2.75rem);
  font-weight: 660;
  font-stretch: 104%;
  line-height: 1.05;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.moment__body {
  max-width: 34rem;
  margin-top: 1.25rem;
  color: var(--ink-2);
  font-size: clamp(1rem, 0.3vw + 0.95rem, 1.1875rem);
  line-height: 1.65;
}

.moment__detail {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
}

@media (min-width: 1024px) {
  .moment--split .moment__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: start;
    gap: clamp(3rem, 6vw, 6rem);
  }

  /* The time and the words stay pinned while the evidence scrolls past: a held shot. */
  .moment--split .moment__head {
    position: sticky;
    top: 7.5rem;
  }

  .moment--reverse .moment__head { order: 2; }

  .moment__detail--low { padding-top: clamp(6rem, 14vw, 12rem); }
}

/* ------------------------------------------------------------------ double bezel */
/* Skill 4A: outer tray with a hairline, inner plate with its own highlight and a concentric radius. */

.bezel {
  position: relative;
  padding: var(--pad-shell);
  border: 1px solid var(--line);
  border-radius: var(--r-shell);
  background: rgba(242, 238, 231, 0.025);
}

.bezel__core {
  border-radius: var(--r-core);
  background: linear-gradient(180deg, var(--core-top) 0%, var(--core-bottom) 100%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.07);
}

.bezel--accent { border-color: var(--accent-line); }

.bezel--accent .bezel__core {
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.07),
    0 0 4rem -1.5rem var(--accent-soft);
}

/* Dashed tray = later. */
.bezel--later {
  border-style: dashed;
  border-color: var(--line-3);
  background: transparent;
}

.bezel--later .bezel__core { background: rgba(17, 17, 19, 0.55); }

.card {
  display: grid;
  align-content: start;
  gap: 0.875rem;
  padding: clamp(1.5rem, 2.4vw, 2.25rem);
}

.card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.card__label {
  font: 640 1.25rem/1.2 var(--font-display);
  font-stretch: 106%;
  letter-spacing: -0.012em;
}

.card__body {
  max-width: 40rem;
  color: var(--ink-2);
  line-height: 1.6;
}

.card__kicker {
  color: var(--ink-2);
  font: 500 0.6875rem/1.35 var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.card__num {
  color: var(--accent);
  font: 400 0.8125rem/1 var(--font-mono);
  letter-spacing: 0.04em;
}

.rows { display: grid; margin-top: 1rem; }

.rows li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 0.875rem;
  padding: 0.9375rem 0;
  border-top: 1px solid var(--line);
  line-height: 1.5;
}

.rows__num {
  padding-top: 0.2rem;
  color: var(--ink-3);
  font: 400 0.75rem/1.4 var(--font-mono);
  letter-spacing: 0.04em;
}

.rows--lg li { padding: 1.125rem 0; font-size: 1.0625rem; }

/* ------------------------------------------------------------------ 19:42 cascade + route */
/* Skill 3B Z-axis cascade: tickets stacked like physical cards with small rotations. Below 768 px
 * every rotation and overlap is removed (skill mobile collapse). */

.cascade { display: grid; gap: 1.25rem; }

@media (min-width: 768px) {
  .cascade { gap: 0; }

  .cascade__item {
    width: 88%;
    transform: translateX(var(--x, 0)) rotate(var(--r, 0deg));
    transition: transform 0.9s var(--ease);
  }

  html.js .cascade__item[data-reveal] {
    transition:
      transform 0.9s var(--ease),
      opacity 0.9s var(--ease) calc(var(--d, 0) * 90ms),
      translate 1.1s var(--ease) calc(var(--d, 0) * 90ms);
  }

  .cascade__item + .cascade__item { margin-top: -1.25rem; }
  .cascade__item .card { padding-bottom: 2.75rem; }

  .cascade__item:hover { transform: translateX(var(--x, 0)) rotate(0deg) translateY(-0.25rem); }
}

.route {
  display: grid;
  grid-template-columns: auto minmax(2.5rem, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.route__node {
  display: inline-flex;
  align-items: center;
  height: 2.5rem;
  padding: 0 1rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(242, 238, 231, 0.03);
  font: 500 0.875rem/1 var(--font-body);
  white-space: nowrap;
}

.route__node--from {
  border-color: var(--amber-line);
  background: var(--amber-soft);
  color: var(--amber-ink);
}

.route__ends {
  display: grid;
  justify-items: start;
  gap: 1.25rem;
}

.route__fork {
  position: relative;
  align-self: stretch;
}

.route__fork::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 40%;
  height: 1px;
  background: var(--line-3);
}

.route__branch {
  position: absolute;
  left: 40%;
  right: 0;
  border: 0 solid var(--line-3);
}

.route__branch--up {
  top: 1.25rem;
  bottom: 50%;
  border-top-width: 1px;
  border-left-width: 1px;
  border-top-left-radius: 0.875rem;
}

.route__branch--down {
  top: 50%;
  bottom: 1.25rem;
  border-bottom-width: 1px;
  border-left-width: 1px;
  border-bottom-left-radius: 0.875rem;
}

/* A short light travels along each branch: a ticket leaving the counter. Transform only. */
.route__pulse {
  position: absolute;
  left: 0.875rem;
  right: 0;
  height: 1px;
  overflow: hidden;
}

.route__branch--up .route__pulse { top: -1px; }
.route__branch--down .route__pulse { bottom: -1px; }

.route__pulse::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  transform: translateX(-100%);
  animation: travel 2.6s var(--ease-soft) infinite;
  animation-play-state: paused;
}

.route__branch--down .route__pulse::after { animation-delay: 1.3s; }

.moment.is-active .route__pulse::after { animation-play-state: running; }

.route__note {
  max-width: 34rem;
  margin-top: 0.5rem;
  color: var(--ink-3);
  font-size: 0.9375rem;
  line-height: 1.55;
}

@media (max-width: 479px) {
  .route { gap: 0.5rem; }
  .route__node { padding: 0 0.75rem; font-size: 0.8125rem; }
}

/* ------------------------------------------------------------------ 20:18 optional aside */

.moment--aside { padding-block: calc(var(--section-y) * 0.7); }

.aside {
  max-width: 56rem;
  margin-left: auto;
  padding: var(--pad-shell);
  border: 1px dashed var(--line-3);
  border-radius: var(--r-shell);
}

.aside__core {
  display: grid;
  gap: 1.75rem;
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  border-radius: var(--r-core);
  background: rgba(17, 17, 19, 0.6);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.06);
}

.aside__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.moment__time--sm {
  width: 100%;
  margin-bottom: 0.25rem;
  font-size: clamp(2.75rem, 3vw + 1.25rem, 3.75rem);
}

.moment__title--sm { margin-top: 0; font-size: clamp(1.5rem, 1vw + 1.1rem, 2.125rem); }

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.steps li {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  max-width: 100%;
  padding: 0.5rem 0.9375rem 0.5rem 0.75rem;
  border: 1px solid var(--line-2);
  border-radius: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.35;
}

.steps__num {
  flex: none;
  color: var(--ink-3);
  font: 400 0.6875rem/1 var(--font-mono);
}

.aside__note {
  margin-top: 1.25rem;
  color: var(--ink-3);
  font-size: 0.875rem;
  line-height: 1.55;
}

@media (min-width: 768px) {
  .aside__core { grid-template-columns: 11rem minmax(0, 1fr); gap: 2.5rem; }
  .aside__meta { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; }
}

/* ------------------------------------------------------------------ 21:00 full-width climax */

.moment--full { padding-block: calc(var(--section-y) * 1.2) var(--section-y); }

.moment__head--center {
  justify-items: center;
  text-align: center;
}

.moment__time--xl {
  margin-bottom: 1.5rem;
  font-size: clamp(5.5rem, 21vw, 17rem);
  line-height: 0.8;
  letter-spacing: -0.07em;
}

.moment__time--xl time {
  background: linear-gradient(180deg, var(--ink) 35%, rgba(156, 200, 240, 0.32) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.moment__time--xl .colon { color: var(--ice); -webkit-text-fill-color: var(--ice); }

.moment__title--xl {
  max-width: 15em;
  font-size: clamp(2rem, 3vw + 1rem, 4.25rem);
  font-weight: 740;
  font-stretch: 114%;
  line-height: 1;
  letter-spacing: -0.035em;
}

.moment__body--center { margin-inline: auto; }

/* Skill 3B asymmetrical bento; single column below 768 px. */
.bento {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(3.5rem, 7vw, 6rem);
}

.card--case { height: 100%; gap: 1.5rem; }

.card__stack { display: grid; gap: 0.75rem; }

@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; }
  .bento__item--1 { grid-column: span 7; grid-row: span 2; }
  .bento__item--2,
  .bento__item--3 { grid-column: span 5; }
  .bento__item--4 { grid-column: span 12; }

  .bento__item--1 .card--case { align-content: space-between; min-height: 22rem; }
  .bento__item--1 .card__num { font-size: 3rem; letter-spacing: -0.04em; }
  .bento__item--1 .card__label { font-size: clamp(1.5rem, 1.2vw + 1rem, 2rem); }

  .card--row {
    grid-template-columns: 4rem minmax(0, 18rem) minmax(0, 1fr);
    align-items: baseline;
    gap: 1.5rem;
  }
}

/* ------------------------------------------------------------------ 21:37 ledger */

.ledger { margin-top: clamp(4rem, 8vw, 7rem); }

.ledger__core { padding: clamp(1.5rem, 4vw, 3.5rem); }

.ledger__head {
  display: grid;
  gap: 1rem;
  max-width: 46rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
}

.ledger__title {
  font: 720 clamp(1.75rem, 2vw + 1rem, 3rem)/1.02 var(--font-display);
  font-stretch: 112%;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.ledger__lead {
  color: var(--ink-2);
  font-size: clamp(1rem, 0.3vw + 0.95rem, 1.125rem);
  line-height: 1.6;
}

.rule {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.75rem 1rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}

.rule__num {
  padding-top: 0.3rem;
  color: var(--ink-3);
  font: 400 0.8125rem/1 var(--font-mono);
}

.rule.is-now .rule__num { color: var(--accent); }

.rule__title {
  font: 640 1.1875rem/1.25 var(--font-display);
  font-stretch: 104%;
  letter-spacing: -0.01em;
}

.rule__body {
  max-width: 42rem;
  margin-top: 0.5rem;
  color: var(--ink-2);
  line-height: 1.6;
}

.rule__side {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem 0.875rem;
}

.rule__src {
  color: var(--ink-3);
  font: 400 0.75rem/1.45 var(--font-mono);
  letter-spacing: 0.02em;
}

@media (min-width: 900px) {
  .rule { grid-template-columns: 4rem minmax(0, 1fr) 14rem; gap: 1rem 2rem; }
  .rule__side {
    grid-column: 3;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
  }
}

/* ------------------------------------------------------------------ 22:48 meter */

.meter {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.meter__label {
  color: var(--ink-2);
  font: 500 0.6875rem/1.4 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.meter__track {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.375rem;
}

.meter__seg {
  position: relative;
  height: 3rem;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 0.5rem;
}

/* Queued receipts are hollow; delivered ones fill in, one after another. */
.meter__seg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--amber);
  opacity: 0.88;
  transform-origin: center bottom;
  transition: transform 0.8s var(--ease) calc(250ms + var(--i, 0) * 80ms);
}

html.js .meter__seg::after { transform: scaleY(0); }
html.js .is-in .meter__seg::after { transform: scaleY(1); }

.meter__ends {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink-3);
  font: 400 0.75rem/1.4 var(--font-mono);
}

.meter__ends span:last-child { text-align: right; }

/* ------------------------------------------------------------------ 01:15 close */

.close-grid { display: grid; gap: 1.25rem; }

@media (min-width: 768px) {
  .close-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .close-grid__wide { grid-column: 1 / -1; }
  .close-grid > :nth-child(2) { margin-top: 3rem; }
}

/* ------------------------------------------------------------------ B8 first version */

.mvp {
  position: relative;
  padding-block: var(--section-y);
  border-top: 1px solid var(--line);
}

.mvp__grid { display: grid; gap: 3.5rem; }

.mvp__title { font-size: clamp(2.25rem, 3.4vw + 1rem, 4.75rem); }

.mvp__lists { display: grid; gap: 1.25rem; }

.list { padding: clamp(1.5rem, 3vw, 2.5rem); }

.list--later .rows li { color: var(--ink-2); }

@media (min-width: 1024px) {
  .mvp__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
    gap: clamp(3rem, 6vw, 6rem);
  }

  .mvp__head { position: sticky; top: 7.5rem; }

  .bezel--later { margin-left: 8%; }
}

/* ------------------------------------------------------------------ B10 pilot */

.pilot { padding-block: var(--section-y); }

.bezel--hero { --r-shell: 2.5rem; --pad-shell: 0.5rem; }

.pilot__core {
  display: grid;
  justify-items: center;
  gap: 1.5rem;
  padding: clamp(2.5rem, 7vw, 6.5rem) clamp(1.25rem, 5vw, 5rem);
  text-align: center;
  background:
    radial-gradient(60% 70% at 50% 0%, rgba(244, 180, 81, 0.1), transparent 72%),
    linear-gradient(180deg, var(--core-top) 0%, var(--core-bottom) 100%);
}

.pilot__title {
  max-width: 13em;
  font-size: clamp(2.25rem, 4.6vw + 0.75rem, 5.5rem);
}

.pilot__core .lead { margin-top: 0; }

.pilot__who {
  width: min(40rem, 100%);
  margin: 0.75rem 0 1rem;
  text-align: left;
}

.pilot__who li:last-child { border-bottom: 1px solid var(--line); }

.pilot__contact {
  max-width: 34rem;
  color: var(--ink-2);
  font: 400 0.875rem/1.5 var(--font-mono);
}

/* ------------------------------------------------------------------ footer */

.footer {
  padding: clamp(3.5rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 6rem);
  border-top: 1px solid var(--line);
}

.footer__grid { display: grid; gap: 2rem; }

.footer__brand {
  font: 720 clamp(1.5rem, 1.5vw + 1rem, 2.25rem)/1.05 var(--font-display);
  font-stretch: 116%;
  letter-spacing: -0.03em;
}

.footer__by { margin-top: 0.625rem; color: var(--ink-2); }

.footer__legal { color: var(--ink-2); font-size: 0.875rem; line-height: 1.6; }

.footer__note {
  margin-top: 0.75rem;
  color: var(--ink-3);
  font-size: 0.8125rem;
  line-height: 1.55;
}

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
}

/* ------------------------------------------------------------------ keyframes */

@keyframes blink {
  0%, 55% { opacity: 1; }
  70%, 90% { opacity: 0.22; }
  100% { opacity: 1; }
}

@keyframes tick {
  from { opacity: 0; transform: translateY(0.45em); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes travel {
  from { transform: translateX(-100%); }
  to { transform: translateX(260%); }
}

/* ------------------------------------------------------------------ reduced motion */
/* Fully static: no reveals, no pulses, no blinking colon, no smooth scroll, instant state changes. */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html.js [data-reveal] { opacity: 1; translate: none; }
  html.js .meter__seg::after { transform: none; }
  .route__pulse { display: none; }
  .menu__list a,
  .menu__foot { translate: none; opacity: 1; }
}
