/* Dome After Dark · Free palette and type, written on DESIGN.md · Designed using Design Lounge (https://www.designlounge.live) */
:root {
  --bg: #070b16;
  --surface: #0e1424;
  --surface-2: #151c31;
  --surface-3: #1c2440;
  --line: rgba(236, 233, 246, .14);
  --line-strong: rgba(236, 233, 246, .3);
  --ink: #ece9f6;
  --ink-2: rgba(236, 233, 246, .74);
  --ink-3: rgba(236, 233, 246, .52);
  --primary: #c9b8ff;
  --primary-ink: #120b2a;
  --primary-soft: rgba(201, 184, 255, .16);
  --link: #d9ccff;
  --focus: #c9b8ff;
  --scene-house: #ff6a55;
  --scene-lamp: #c9b8ff;
  --scene-nebula: #ff8fa8;
  --scene-ring: #e9d2a0;
  --font-display: "Bodoni Moda", "Didot", "Bodoni 72", "Times New Roman", serif;
  --font-text: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 999px;
  --radius-card: 20px;
  --control: 44px;
  --gap: 24px;
  --pad: 20px;
  --edge: 36px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .6);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --expo: cubic-bezier(.16, 1, .3, 1);
  --t-fast: 160ms;
  --t-ui: 200ms;
  --t-layout: 320ms;
  --t-sheet: 400ms;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-text);
  overflow-x: clip;
}
h1, h2, h3, p, dl, dd, dt, ul, ol, figure { margin: 0; }
a { color: var(--link); }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

/* the world */
#space { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.fx { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
.house {
  opacity: 0;
  background: linear-gradient(to top, rgba(255, 106, 85, .62), rgba(255, 106, 85, .22) 30%, rgba(255, 106, 85, 0) 68%);
}
.vignette { background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, .62) 100%); }
.grain {
  inset: -50%;
  opacity: .07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  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); }
}

/* the interface floats: header, readouts, rail */
.hud { position: fixed; left: 0; right: 0; z-index: 10; display: flex; align-items: center; padding: 26px var(--edge); pointer-events: none; }
.hud > * { pointer-events: auto; }
.hud.top { top: 0; justify-content: space-between; }
.mark { font: 400 22px/1 var(--font-display); letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.mark em { font-style: italic; color: var(--primary); }
.hud.top nav { display: flex; gap: 22px; }
.hud.top nav a { font: 500 14px/1 var(--font-text); color: var(--ink-2); text-decoration: none; padding: 10px 0; transition: color var(--t-fast) var(--ease); }
.hud.top nav a:hover { color: var(--ink); }
.hud.bot { bottom: 0; gap: 36px; transition: opacity var(--t-layout) var(--ease); }
.ro span { display: block; font: 500 11px/1 var(--font-text); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 7px; }
.ro b { display: block; font: 400 14px/1 var(--font-text); letter-spacing: .02em; color: var(--ink); min-width: 17ch; }
body.past .hud, body.past .rail { opacity: 0; visibility: hidden; }
.hud.top { transition: opacity var(--t-layout) var(--ease); }

.rail { position: fixed; right: var(--edge); top: 50%; transform: translateY(-50%); z-index: 10; transition: opacity var(--t-layout) var(--ease); }
.rail ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; align-items: flex-end; }
.rail button {
  height: 28px; min-width: 44px; padding: 0; border: 0; background: none; color: var(--ink-3);
  display: flex; align-items: center; justify-content: flex-end; gap: 10px; cursor: pointer;
}
.rail button span { font: 500 10px/1 var(--font-text); letter-spacing: .16em; text-transform: uppercase; opacity: 0; transform: translateX(6px); transition: opacity var(--t-sheet) var(--ease), transform var(--t-sheet) var(--ease); white-space: nowrap; }
.rail button i { display: block; width: 14px; height: 1px; background: var(--ink-3); transition: width 500ms var(--expo), background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.rail button:hover span, .rail button:focus-visible span, .rail button[aria-current="true"] span { opacity: 1; transform: none; }
.rail button[aria-current="true"] { color: var(--ink); }
.rail button[aria-current="true"] i { width: 36px; background: var(--primary); box-shadow: 0 0 8px var(--primary); }

/* buttons */
.btn {
  height: var(--control); padding: 0 6px 0 20px; border-radius: var(--radius);
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink);
  font: 500 14px/1 var(--font-text); text-decoration: none;
  display: inline-flex; align-items: center; gap: 12px; cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.btn i { width: 30px; height: 30px; border-radius: 999px; background: rgba(236, 233, 246, .12); display: grid; place-items: center; transition: transform var(--t-fast) var(--ease); }
.btn i svg { width: 15px; height: 15px; }
.btn:hover { border-color: var(--ink); }
.btn:hover i { transform: translate(2px, -2px) scale(1.08); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: var(--primary-ink); border-color: transparent; }
.btn-primary i { background: rgba(18, 11, 42, .14); }
.btn-primary:hover { border-color: transparent; }

/* the voyage */
main { position: relative; z-index: 2; }
.ch { height: 200vh; position: relative; }
.ch.hero { height: 100vh; }
.ch .in {
  position: sticky; top: 0; height: 100vh; isolation: isolate;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 0 var(--edge);
}
.ch.right .in { align-items: flex-end; text-align: right; }
@media (min-width: 901px) { .ch.right .in { padding-right: calc(var(--edge) + 160px); } }
.ch .in::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(55% 60% at 26% 50%, rgba(7, 11, 22, .62), transparent 72%);
}
.ch.right .in::before { background: radial-gradient(55% 60% at 74% 50%, rgba(7, 11, 22, .62), transparent 72%); }
.copy { max-width: min(620px, 48vw); display: flex; flex-direction: column; align-items: inherit; gap: 18px; text-shadow: 0 2px 30px rgba(0, 0, 0, .7); }
.meta { font: 500 11px/1 var(--font-text); letter-spacing: .18em; text-transform: uppercase; color: var(--accent, var(--primary)); }
.ch h2 { font: 400 clamp(40px, 6.2vw, 92px)/.94 var(--font-display); letter-spacing: -.012em; text-wrap: balance; color: var(--ink); }
.ch h2 em { font-style: italic; color: var(--accent, var(--primary)); }
.copy > p:not(.meta) { font-size: 17px; line-height: 1.65; color: var(--ink-2); max-width: 470px; }
.facts { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 4px; }
.facts dt { font: 400 13px/1 var(--font-text); color: var(--ink-2); margin-bottom: 8px; }
.facts dd { font: 400 27px/1 var(--font-display); color: var(--ink); }
.copy .btn { margin-top: 8px; }

/* the dome: first screen */
.ch.hero .in { align-items: center; text-align: center; justify-content: center; padding-bottom: 22vh; }
.ch.hero .in::before { background: radial-gradient(50% 45% at 50% 42%, rgba(7, 11, 22, .5), transparent 75%); }
.kicker { font: 500 11px/1 var(--font-text); letter-spacing: .22em; text-transform: uppercase; color: var(--primary); }
.ch.hero h1 { font: 400 clamp(64px, 14.5vw, 196px)/.82 var(--font-display); letter-spacing: -.03em; margin: 22px 0 6px; color: var(--ink); }
.ch.hero h1 span, .ch.hero h1 em { display: inline-block; opacity: 0; transform: translateY(.3em); filter: blur(16px); animation: rise 1400ms var(--expo) forwards; }
.ch.hero h1 em {
  font-style: italic; padding-right: .08em; animation-delay: 180ms;
  background: linear-gradient(100deg, #f6f3ff 0%, #c9b8ff 48%, #9a86f0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@keyframes rise { to { opacity: 1; transform: none; filter: blur(0); } }
.ch.hero .lede { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 540px; margin: 18px auto 28px; text-shadow: 0 2px 30px rgba(0, 0, 0, .7); }

/* still sections */
.still { position: relative; z-index: 2; background: var(--bg); }
.route { padding: 96px 48px 72px; }
.route-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-bottom: 28px; }
.route h2, .tonight h2 { font: 400 clamp(34px, 4vw, 52px)/1.05 var(--font-display); letter-spacing: -.01em; }
.route .lede { font-size: 18px; line-height: 1.5; color: var(--ink-2); max-width: 34ch; text-align: right; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(216px, auto); gap: 16px; grid-auto-flow: dense; }
.cell {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: var(--pad); display: flex; flex-direction: column; gap: 8px; min-width: 0;
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.cell:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.cell h3 { font: 400 24px/1.1 var(--font-display); letter-spacing: -.01em; padding-right: 9ch; }
.cell p { font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 40ch; }
.cell .art { position: relative; flex: 1; min-height: 120px; margin-top: 8px; }
.cell .art canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cell .tag { position: absolute; top: 18px; right: 18px; height: 22px; padding: 0 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font: 500 11px/22px var(--font-text); letter-spacing: .04em; white-space: nowrap; }
.cell.a { grid-column: 1 / 3; grid-row: 1 / 3; }
.cell.b { grid-column: 3 / 5; grid-row: 1; }
.cell.c { grid-column: 3; grid-row: 2; }
.cell.d { grid-column: 4; grid-row: 2; }
.cell.e { grid-column: 1 / 3; grid-row: 3; }
.cell.f { grid-column: 3 / 5; grid-row: 3; }
.cell.a .art { min-height: 300px; }
.scale { min-height: 120px; }
.scale .axis { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line-strong); }
.scale .tick { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 9px; height: 9px; border-radius: 999px; background: var(--primary); }
.scale .tick.start { transform: translate(0, -50%); }
.scale .tick.end { transform: translate(-100%, -50%); }
.scale .tick span { position: absolute; white-space: nowrap; font: 500 11px/1 var(--font-text); color: var(--ink-2); left: 50%; transform: translateX(-50%); }
.scale .tick.start span { left: 0; transform: none; }
.scale .tick.end span { left: auto; right: 0; transform: none; }
.scale .tick .v { bottom: 16px; font-size: 13px; color: var(--ink); }
.scale .tick .n { top: 16px; }
.scale .tick.up .v { bottom: 36px; }
.scale .tick.up .n { bottom: 16px; top: auto; }
.scale .tick.down .v { top: 16px; bottom: auto; }
.scale .tick.down .n { top: 36px; }

.tonight { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; padding: 96px 56px; align-items: start; border-top: 1px solid var(--line); }
.tonight .big { font: italic 400 clamp(40px, 5vw, 64px)/1.05 var(--font-display); letter-spacing: -.01em; margin: 18px 0 22px; color: var(--ink); }
.tonight .hint { font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 44ch; }
.tonight h2 { font-size: 28px; margin-bottom: 14px; }
.tonight table { width: 100%; border-collapse: collapse; }
.tonight th { text-align: left; font: 500 11px/1 var(--font-text); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding: 0 0 10px; border-bottom: 1px solid var(--line); }
.tonight th:last-child, .tonight td:last-child { text-align: right; }
.tonight td { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--ink); }
.slot { display: inline-block; min-width: 10ch; height: 32px; line-height: 30px; padding: 0 12px; border: 1px dashed var(--line-strong); border-radius: 999px; color: var(--ink-3); font-style: italic; font-size: 14px; text-align: center; }
.tonight .tz { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; color: var(--ink-3); }
.tonight .tz svg { width: 16px; height: 16px; flex: none; }

/* footer */
footer { position: relative; z-index: 2; background: var(--bg); display: flex; flex-direction: column; align-items: center; text-align: center; padding: 56px 32px 40px; border-top: 1px solid var(--line); }
footer .rule { display: block; width: 48px; height: 1px; background: var(--line-strong); margin-bottom: 28px; }
footer .fmark { font: italic 400 52px/1 var(--font-display); letter-spacing: -.01em; }
footer .issue { font: 500 13px/1 var(--font-text); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); margin: 16px 0 22px; }
footer .links { list-style: none; padding: 0; display: flex; gap: 28px; }
footer .links a { font-size: 14px; color: var(--ink-2); text-decoration: none; border-bottom: 1px solid transparent; transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
footer .links a:hover { color: var(--ink); border-color: var(--ink); }
footer .place { margin: 22px 0 18px; font-style: italic; font-size: 16px; color: var(--ink-3); }
footer .top { min-width: 40px; min-height: 40px; padding: 8px; border: 0; background: none; color: var(--ink-3); font: 500 11px/1 var(--font-text); letter-spacing: .14em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; transition: color var(--t-fast) var(--ease); }
footer .top svg { width: 18px; height: 18px; }
footer .top:hover { color: var(--primary); }
footer .credit { margin-top: 26px; font-size: 12px; color: var(--ink-3); }
footer .credit a { color: var(--ink-2); }

/* sizes */
@media (max-width: 1100px) {
  .route { padding: 80px 32px 56px; }
  .tonight { padding: 80px 32px; gap: 40px; }
}
@media (max-width: 1023px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .cell.a, .cell.b, .cell.e, .cell.f { grid-column: 1 / 3; grid-row: auto; }
  .cell.c { grid-column: 1; grid-row: auto; }
  .cell.d { grid-column: 2; grid-row: auto; }
  .cell .art { min-height: 160px; }
  .route-head { flex-direction: column; align-items: flex-start; }
  .route .lede { text-align: left; }
  .tonight { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .rail { display: none; }
}
@media (max-width: 760px) {
  :root { --edge: 20px; --control: 48px; }
  .hud { padding: 18px 20px; }
  .hud.bot { gap: 24px; }
  .ro:nth-child(3) { display: none; }
  .ro b { font-size: 13px; min-width: 15ch; }
  .ch .in, .ch.right .in { justify-content: flex-end; align-items: flex-start; text-align: left; padding: 0 22px 18vh; }
  .ch .in::before, .ch.right .in::before { background: radial-gradient(70% 60% at 30% 70%, rgba(7, 11, 22, .7), transparent 75%); }
  .copy { max-width: 100%; gap: 14px; }
  .ch h2 { font-size: clamp(36px, 10vw, 56px); }
  .facts { gap: 22px; }
  .facts dd { font-size: 21px; }
  .ch.hero .in { align-items: center; text-align: center; justify-content: center; padding: 0 20px 16vh; }
  .ch.hero h1 { font-size: clamp(56px, 24vw, 120px); margin-top: 16px; }
  .ch.hero .lede { font-size: 17px; margin: 14px auto 22px; }
}
@media (max-width: 639px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .cell.a, .cell.b, .cell.c, .cell.d, .cell.e, .cell.f { grid-column: 1; }
  .route { padding: 64px 20px 48px; }
  .tonight { padding: 64px 20px; }
  .cell h3 { padding-right: 0; padding-top: 30px; }
  footer { padding: 40px 20px 32px; }
  footer .fmark { font-size: 36px; }
  footer .links { flex-direction: column; gap: 12px; }
}

/* still frames */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ch.hero h1 span, .ch.hero h1 em { opacity: 1; transform: none; filter: none; }
  .house { opacity: 0 !important; }
}
