/* Late Light · Free palette and type, written as the theme's roles · Designed using Design Lounge (https://www.designlounge.live) */
:root {
  /* Surfaces: the sky with the city lights off */
  --bg: #06070f;
  --surface: #0e1120;
  --surface-2: #171b30;
  --surface-3: #232848;
  --line: #1d2138;
  --line-strong: #4a4f7a;
  --ink: #eeeaff;
  --ink-2: #b4b0cc;
  --ink-3: #807c9e;

  /* Brand: the presenter's green laser, the sodium lamp, the moonlight */
  --primary: #9dff5f;
  --primary-ink: #0c0a14;
  --primary-soft: #1f3a1a;
  --secondary: #ffb04a;
  --secondary-ink: #141210;
  --secondary-soft: #42301b;
  --tertiary: #cfd9ff;
  --tertiary-ink: #141210;
  --tertiary-soft: #262b45;

  /* Feedback: live state only */
  --success: #7fd6a4; --success-ink: #0c0a14; --success-soft: #1b3328; --success-on-soft: #7fd6a4;
  --warning: #ffb04a; --warning-ink: #141210; --warning-soft: #42301b; --warning-on-soft: #ffb04a;
  --danger: #ff7b7b; --danger-ink: #141210; --danger-soft: #41201f; --danger-on-soft: #ff7b7b;
  --info: #8fd8ff; --info-ink: #141210; --info-soft: #243846; --info-on-soft: #8fd8ff;

  /* Chrome */
  --focus: #9dff5f;
  --link: #b9ff8a;
  --overlay: #04050a;
  --inverse: #eeeaff;
  --inverse-ink: #06070f;

  /* Scene, inside the canvas only */
  --scene-sky: #0f1538;
  --scene-moon: #cfd9ff;
  --scene-lamp: #ffb04a;
  --scene-ember: #ff9a3a;

  /* Type */
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-text: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Motion tokens · Designed using Design Lounge (https://www.designlounge.live) */
  --ease-standard: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-expo-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-ui: 200ms;
  --t-layout: 320ms;
  --t-sheet: 400ms;

  /* Family Lit */
  --radius: 999px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .6);
  --edge: 36px;
  --ctl: 44px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 300; line-height: 1; letter-spacing: -0.02em; }
p { margin: 0; }
button { font: inherit; color: inherit; }
.num, time, .ro b { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.vh, .sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 4px; }

/* ---------- Scene layers */
#space { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; background: var(--bg); }
.fx { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
.fx.vignette { background: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,0) 50%, rgba(0,0,0,.6) 100%); }
.fx.grain {
  inset: -50%;
  opacity: .07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); } 80% { transform: translate(3%, 1%); } 100% { transform: translate(0, 0); }
}

/* ---------- Header */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 4;
  display: flex; align-items: center; gap: 28px;
  padding: 22px var(--edge);
  background: linear-gradient(to bottom, rgba(6,7,15,.85), rgba(6,7,15,0));
  transition: background var(--t-layout) var(--ease-standard), box-shadow var(--t-layout) var(--ease-standard);
}
body.past .top { background: rgba(6,7,15,.92); box-shadow: 0 1px 0 var(--line); }
.mark, .logo { font-family: var(--font-display); font-size: 26px; line-height: 1; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; white-space: nowrap; }
.m2 { font-style: italic; color: var(--primary); }
.topnav { display: flex; gap: 22px; }
.topnav a, .meta {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; line-height: 1;
}
.topnav a { color: var(--ink-2); text-decoration: none; padding: 8px 0; position: relative; }
.topnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform var(--t-layout) var(--ease-standard); }
.topnav a:hover { color: var(--ink); }
.topnav a:hover::after { transform: scaleX(1); }
.now { margin-left: auto; display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--ink-2); white-space: nowrap; }
.now time { color: var(--ink); }
.now .sep { color: var(--ink-3); }

/* ---------- Readouts and index */
.hud {
  position: fixed; left: var(--edge); right: var(--edge); bottom: 26px; z-index: 3;
  display: flex; gap: 40px; pointer-events: none;
  transition: opacity var(--t-layout) var(--ease-standard), visibility 0s linear 0s;
}
.ro { display: grid; gap: 7px; }
.ro span { font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.ro b { font-weight: 400; font-size: 13px; letter-spacing: .04em; color: var(--ink); min-width: 17ch; }
.rail { position: fixed; right: var(--edge); top: 50%; transform: translateY(-50%); z-index: 3; transition: opacity var(--t-layout) var(--ease-standard); }
.rail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.rail button {
  width: 44px; height: 28px; margin: 0; padding: 0; border: 0; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: flex-end; position: relative;
}
.rail i { display: block; width: 14px; height: 1px; background: var(--ink-3); transition: width 500ms var(--ease-expo-out), background var(--t-ui) var(--ease-standard), box-shadow var(--t-ui) var(--ease-standard); }
.rail span {
  position: absolute; right: 48px; top: 50%; transform: translate(6px, -50%); opacity: 0; white-space: nowrap;
  font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2);
  transition: opacity var(--t-sheet) var(--ease-standard), transform var(--t-sheet) var(--ease-standard);
}
.rail button:hover span, .rail button:focus-visible span, .rail button[aria-current="true"] span { opacity: 1; transform: translate(0, -50%); }
.rail button[aria-current="true"] span { color: var(--ink); }
.rail button[aria-current="true"] i { width: 36px; background: var(--primary); box-shadow: 0 0 8px var(--primary); }
.rail button:focus-visible { outline-offset: -2px; }
body.past .hud, body.past .rail { opacity: 0; visibility: hidden; transition: opacity var(--t-layout) var(--ease-standard), visibility 0s linear var(--t-layout); }

/* ---------- Voyage */
main { position: relative; z-index: 2; }
.ch { position: relative; height: 200vh; height: 200dvh; }
.ch.hero { height: 100vh; height: 100dvh; min-height: 560px; }
.ch .in {
  position: sticky; top: 0; height: 100vh; height: 100dvh;
  display: flex; align-items: center; padding: 0 var(--edge);
}
.ch.right .in { justify-content: flex-end; padding-right: calc(var(--edge) + 76px); }
.ch.centre .in { justify-content: center; }
.ch .copy { max-width: min(600px, 46vw); position: relative; }
.ch.right .copy { text-align: right; }
.ch.centre .copy { text-align: center; }
.ch .in::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(55% 60% at 26% 50%, rgba(6,7,15,.6), transparent 72%);
}
.ch.right .in::before { background: radial-gradient(55% 60% at 74% 50%, rgba(6,7,15,.6), transparent 72%); }
.ch.centre .in::before { background: radial-gradient(55% 60% at 50% 50%, rgba(6,7,15,.6), transparent 72%); }
.ch.hero .in { align-items: flex-end; padding-bottom: 112px; }
.ch.hero .in::before { background: linear-gradient(to top, rgba(6,7,15,.6), transparent 42%); }
.ch.hero .copy { max-width: none; width: 100%; }

.meta { color: var(--ink-2); margin-bottom: 18px; }
.ch.hero .meta { color: var(--secondary); margin-bottom: 14px; }
h1 {
  font-size: clamp(88px, 17vw, 232px); line-height: .8; letter-spacing: -0.035em; font-weight: 300;
  display: flex; flex-direction: column; align-items: flex-start;
}
h1 .ln { display: block; }
h1 .l2 { margin-left: 18vw; margin-top: -.14em; }
h1 em { font-style: italic; color: var(--primary); }
h1 .w { display: inline-block; overflow: hidden; padding: .08em .1em .22em; margin: -.08em -.1em -.22em; }
h1 .lt { display: inline-block; transform: translateY(110%); animation: rise 1100ms var(--ease-expo-out) forwards; }
h1 .ln:first-of-type .lt:nth-child(1) { animation-delay: 80ms; }
h1 .ln:first-of-type .lt:nth-child(2) { animation-delay: 140ms; }
h1 .ln:first-of-type .lt:nth-child(3) { animation-delay: 200ms; }
h1 .ln:first-of-type .lt:nth-child(4) { animation-delay: 260ms; }
h1 .l2 .lt:nth-child(1) { animation-delay: 380ms; }
h1 .l2 .lt:nth-child(2) { animation-delay: 440ms; }
h1 .l2 .lt:nth-child(3) { animation-delay: 500ms; }
h1 .l2 .lt:nth-child(4) { animation-delay: 560ms; }
h1 .l2 .lt:nth-child(5) { animation-delay: 620ms; }
@keyframes rise { to { transform: none; } }
.lede { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 540px; margin-top: 26px; text-shadow: 0 2px 30px rgba(0,0,0,.7); }
.ch.hero .lede { margin-top: 44px; }
.ch.hero .lede { animation: fade 1200ms var(--ease-standard) 800ms both; }
@media (max-width: 760px) { .ch.hero .lede { margin-top: 30px; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.ch.hero .pill { margin-top: 26px; animation: fade 1200ms var(--ease-standard) 1000ms both; }
h2 { font-size: clamp(44px, 6.2vw, 96px); line-height: .94; letter-spacing: -0.012em; text-wrap: balance; text-shadow: 0 2px 30px rgba(0,0,0,.7); }
h2 em { font-style: italic; color: var(--primary); }
.body { font-size: 17px; line-height: 1.65; color: var(--ink-2); max-width: 470px; margin-top: 22px; text-shadow: 0 2px 30px rgba(0,0,0,.7); }
.ch.right .body { margin-left: auto; }
.ch.centre .body { margin-inline: auto; }
.facts { display: flex; flex-wrap: wrap; gap: 14px 34px; margin: 28px 0 0; }
.ch.right .facts { justify-content: flex-end; }
.ch.centre .facts { justify-content: center; }
.facts div { display: grid; gap: 6px; }
.facts dt { font-size: 13px; color: var(--ink-2); }
.facts dd { margin: 0; font-family: var(--font-display); font-size: 27px; line-height: 1; font-weight: 400; color: var(--ink); font-variant-numeric: tabular-nums; }
.ch .facts + .pill { margin-top: 32px; }

/* ---------- Pills (family Lit) */
.pill {
  display: inline-flex; align-items: center; gap: 12px;
  height: var(--ctl); padding: 0 8px 0 22px; border-radius: var(--radius);
  border: 1px solid rgba(238,234,255,.18); background: rgba(6,7,15,.55);
  color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer; line-height: 1;
  transition: border-color var(--t-ui) var(--ease-standard), background var(--t-ui) var(--ease-standard), transform var(--t-ui) var(--ease-standard);
}
.pill .ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; background: rgba(238,234,255,.1); transition: transform var(--t-ui) var(--ease-standard), background var(--t-ui) var(--ease-standard); }
.pill .ic svg { width: 16px; height: 16px; }
.pill:hover { border-color: var(--primary); }
.pill:hover .ic { transform: translate(2px, -2px) scale(1.06); background: var(--primary); color: var(--primary-ink); }
.pill:active { transform: scale(.98); }
.pill.small { padding: 0 22px; }

/* ---------- Departures board */
.board-sec { position: relative; z-index: 2; background: var(--bg); padding: 120px var(--edge) 110px; }
.wrap { max-width: 1120px; margin: 0 auto; }
.sec-head { max-width: 760px; margin-bottom: 56px; }
.sec-head h2 { font-size: clamp(40px, 5.6vw, 84px); text-shadow: none; }
.sec-head .lede { margin-top: 20px; max-width: 540px; text-shadow: none; }
.board { width: min(100%, 900px); }
.legend { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.legend span { font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.row { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 14px; }
.grp { display: flex; gap: 6px; }
.cell {
  width: 32px; height: 46px; border-radius: 2px; background: var(--surface-2); position: relative;
  display: grid; place-items: center; font-family: var(--font-mono); font-size: 24px; font-weight: 500; color: var(--ink); line-height: 1;
  transform-origin: 50% 50%;
}
.cell::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.45); }
.cell.sp { visibility: hidden; width: 12px; }
.cell.dot { color: var(--ink-3); }
.cell.flip { animation: flap 160ms var(--ease-standard); }
@keyframes flap { from { transform: perspective(300px) rotateX(-80deg); } to { transform: none; } }
#replay { margin-top: 18px; }

/* ---------- Take a seat (one large surface in the primary) */
.band {
  position: relative; z-index: 2; background: var(--primary); color: var(--primary-ink);
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; padding: 64px var(--edge);
}
.band .left { border-right: 1px solid rgba(12,10,20,.22); padding-right: 48px; }
.band h2 { font-size: clamp(56px, 7.6vw, 112px); line-height: .9; display: flex; flex-direction: column; text-shadow: none; color: var(--primary-ink); }
.band h2 em { color: var(--primary-ink); }
.band h2 span:nth-child(2) { margin-left: .9em; }
.band .note { margin-top: 28px; font-size: 15px; max-width: 34ch; opacity: .82; }
.band .right { align-self: end; }
.reason { font-size: 20px; line-height: 1.5; max-width: 34ch; }
.band form { margin-top: 28px; }
.band label { display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px; }
.row-f { display: flex; height: 56px; border: 1px solid rgba(12,10,20,.4); border-radius: var(--radius); padding: 3px; max-width: 520px; }
.row-f:focus-within { border-color: var(--primary-ink); border-width: 2px; padding: 2px; }
.row-f.bad { border-color: var(--primary-ink); border-width: 2px; padding: 2px; }
.row-f input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 20px; font: inherit; font-size: 17px; color: var(--primary-ink); }
.row-f input::placeholder { color: rgba(12,10,20,.5); }
.row-f input:focus { outline: none; }
.go {
  height: 48px; min-width: 128px; padding: 0 24px; border: 0; border-radius: var(--radius);
  background: var(--primary-ink); color: var(--primary); font-size: 14px; font-weight: 600; letter-spacing: .02em; cursor: pointer;
  transition: filter var(--t-ui) var(--ease-standard);
}
.go:hover:not(:disabled) { filter: brightness(1.25); }
.go:disabled { cursor: default; opacity: .7; }
.go:focus-visible { outline: 2px solid var(--primary); outline-offset: -5px; }
.row-f input:disabled { opacity: .7; }
.msg { min-height: 24px; margin-top: 12px; font-size: 15px; font-weight: 500; }
.fine { margin-top: 10px; font-size: 14px; opacity: .78; }

/* ---------- Footer, engraved */
footer { position: relative; z-index: 2; background: var(--surface); color: var(--ink); padding: 64px var(--edge) 0; overflow: hidden; }
.fgrid { display: grid; grid-template-columns: 1.45fr .85fr .85fr; gap: 36px 30px; max-width: 1120px; margin: 0 auto; }
.logo { font-size: 28px; }
.tag { margin-top: 14px; font-size: 16px; color: var(--ink-2); max-width: 30ch; }
.contact { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.contact li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); }
.contact svg { width: 18px; height: 18px; color: var(--tertiary); flex: none; }
.col h3 { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); padding-bottom: 12px; position: relative; }
.col h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 38px; height: 1px; background: var(--primary); }
.col ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.col a { color: var(--ink-2); text-decoration: none; font-size: 15px; display: inline-block; transition: color var(--t-ui) var(--ease-standard), transform 250ms var(--ease-standard); }
.col a:hover { color: var(--ink); transform: translateX(3px); }
.legal { max-width: 1120px; margin: 44px auto 0; padding: 20px 0 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.legal a { color: var(--ink-2); }
.legal a:hover { color: var(--ink); }
.art { display: block; width: 100%; height: 240px; min-height: 200px; color: var(--ink); }
.art .stars circle { fill: var(--ink); opacity: .5; }
.art .far .fill { fill: var(--surface-2); }
.art .far .hatchc { color: var(--line-strong); }
.art .mid .fill { fill: var(--surface-3); }
.art .mid .hatchc { color: var(--line-strong); }
.art .near .fill { fill: var(--surface-2); }
.art .dome .wall { fill: var(--surface); }
.art .dome .cap { fill: var(--surface); }
.art .dome .rim { stroke: var(--ink-2); stroke-width: 1.2; }
.art .dome .door { fill: var(--secondary); }
.art .path { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 4; }
.art .lamp { fill: var(--secondary); }
.art .near use { color: var(--ink-3); }
.art .walker { fill: var(--ink-2); stroke: var(--ink-2); stroke-width: 1.4; }
.art .tufts path { fill: none; stroke: var(--ink-3); stroke-width: 1; }

/* ---------- Responsive */
@media (max-width: 1100px) {
  .ch .copy { max-width: min(600px, 50vw); }
}
@media (max-width: 900px) {
  .rail { display: none; }
  .band { grid-template-columns: 1fr; gap: 36px; }
  .band .left { border-right: 0; border-bottom: 1px solid rgba(12,10,20,.22); padding-right: 0; padding-bottom: 28px; }
  .fgrid { grid-template-columns: 1fr 1fr; }
  .fgrid .brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  :root { --edge: 20px; }
  .top { padding: 18px var(--edge); gap: 18px; }
  .hud { bottom: 18px; gap: 22px; }
  .ro b { font-size: 11.5px; min-width: 0; }
  .ch .in { align-items: flex-end; padding-bottom: 18vh; }
  .ch .copy, .ch.right .copy, .ch.centre .copy { max-width: 100%; text-align: left; }
  .ch.right .in, .ch.centre .in { justify-content: flex-start; padding-right: var(--edge); }
  .ch.right .facts, .ch.centre .facts { justify-content: flex-start; }
  .ch.right .body, .ch.centre .body { margin-left: 0; margin-inline: 0; }
  .ch .in::before, .ch.right .in::before, .ch.centre .in::before { background: linear-gradient(to top, rgba(6,7,15,.72), transparent 60%); }
  h1 { font-size: clamp(72px, 25vw, 120px); }
  h2 { font-size: clamp(36px, 10.5vw, 56px); }
  .body { margin-top: 16px; }
  .facts { margin-top: 20px; }
  h1 .l2 { margin-left: 10vw; }
  .facts { gap: 12px 22px; }
  .facts dd { font-size: 21px; }
  .ch.hero .in { padding-bottom: 96px; }
  .board-sec { padding: 88px var(--edge) 80px; }
  .cell { width: 22px; height: 32px; font-size: 17px; }
  .cell.sp { width: 8px; }
  .grp { gap: 4px; }
  .row { margin-bottom: 12px; }
  .band { padding: 48px var(--edge); }
  .row-f { height: auto; flex-direction: column; border-radius: 28px; padding: 6px; }
  .row-f input { height: 44px; }
  .go { width: 100%; }
  .legal { flex-direction: column; gap: 8px; }
}
@media (max-width: 600px) {
  .fgrid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
}
@media (max-width: 560px) {
  .now { display: none; }
}
@media (max-height: 640px) {
  .ch.hero .in { padding-bottom: 86px; }
}

/* ---------- Reduced motion: every effect still */
@media (prefers-reduced-motion: reduce) {
  .fx.grain { animation: none; }
  h1 .lt { transform: none; animation: none; }
  .ch.hero .lede, .ch.hero .pill { animation: none; }
  .cell.flip { animation: none; }
  .topnav a::after, .rail i, .rail span, .pill, .pill .ic, .col a, .go, .hud, .rail { transition: none; }
}
