:root {
  --bg: #000;
  --fg: #fff;
  --muted: #8b9099;
  --dim: #5d626b;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.22);
  --gutter: 40px;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--sans); font-weight: 300; letter-spacing: 0; color: #a9adb5; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.stuck {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: 1254px; margin: 0 auto; padding: 0 var(--gutter);
  height: 96px; display: flex; align-items: center; justify-content: space-between;
  position: relative;
}
.brand { display: flex; align-items: center; gap: 13px; color: #c9ccd1; }
.brand span { font-weight: 700; font-size: 15px; letter-spacing: 0.3em; color: #fff; }
.links {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; gap: 24px; font-size: 14.5px; color: #9a9ea6;
}
.links a { display: inline-flex; align-items: center; gap: 8px; transition: color 0.2s; }
.links a:hover { color: #fff; }
.btn-solid {
  display: inline-flex; align-items: center; gap: 14px;
  background: #fff; color: #000; height: 40px; padding: 0 20px;
  font-size: 13.5px; font-weight: 500; letter-spacing: -0.01em;
  transition: background 0.2s;
}
.btn-solid:hover { background: #d9dde3; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; min-height: 640px; overflow: hidden; background: #020304; }
#liquid { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.grid-lines {
  position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(to right, rgba(255,255,255,0.035) 0 1px, transparent 1px 10%),
    repeating-linear-gradient(to bottom, transparent 0 calc(25% - 1px), rgba(255,255,255,0.035) calc(25% - 1px) 25%);
  background-position: var(--gutter) 0, 0 0;
}
.hero-fade {
  position: absolute; inset: auto 0 0 0; height: 34%; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.75) 60%, #000);
}
.hero-copy {
  position: absolute; left: var(--gutter); right: var(--gutter);
  top: 50%; transform: translateY(-52%);
}
h1, h2 { font-weight: 400; text-transform: uppercase; }
h1 { font-size: clamp(54px, 8.15vw, 168px); line-height: 0.8; }
.thin, .heavy { display: block; }
.thin { font-weight: 200; letter-spacing: -0.045em; }
.heavy { font-weight: 800; letter-spacing: -0.06em; margin-left: -0.02em; }
.lede {
  margin-top: clamp(44px, 5.4vh, 72px);
  font-size: 18px; line-height: 1.6; color: #a9adb5; font-weight: 300;
}
.btn-line {
  margin-top: clamp(32px, 4.2vh, 52px);
  display: inline-flex; align-items: center; gap: 16px;
  height: 50px; padding: 0 28px;
  border: 1px solid var(--line-strong); background: rgba(0,0,0,0.25); color: #fff;
  font-family: var(--sans); font-size: 16px; font-weight: 300;
  letter-spacing: 0; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-line:hover { background: #fff; color: #000; border-color: #fff; }

/* ---------- Content bands ---------- */
.band {
  position: relative; border-top: 1px solid var(--line);
  padding: clamp(80px, 11vw, 150px) 0;
  background:
    repeating-linear-gradient(to right, rgba(255,255,255,0.03) 0 1px, transparent 1px 10%) var(--gutter) 0,
    #000;
}
.wrap { padding: 0 var(--gutter); }
.tag.mono { font-family: var(--sans); font-size: 18px; font-weight: 300; color: #a9adb5; margin-bottom: 32px; letter-spacing: 0; text-transform: none; }
h2 { font-size: clamp(40px, 5.6vw, 104px); line-height: 0.84; }
h2.big { font-size: clamp(54px, 8.15vw, 168px); line-height: 0.8; }
.body { font-size: 18px; line-height: 1.6; color: #a9adb5; font-weight: 300; }
.two-col {
  margin-top: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  max-width: 1180px;
}

.stats {
  margin-top: 88px; display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
}
.stats > div { padding: 32px 24px 0 0; }
.stats > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.stats dt { font-size: clamp(44px, 5vw, 84px); font-weight: 200; letter-spacing: -0.05em; line-height: 1; }
.stats dt small { font-size: 0.3em; font-weight: 300; letter-spacing: 0; margin-left: 8px; color: #a9adb5; }
.stats dd { margin-top: 20px; font-size: 16px; line-height: 1.5; }

/* 3D route */
.route-scroll { position: relative; height: 620vh; margin-top: 64px; }
.route-pin {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
#route3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.route-pin::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 75% 70% at 50% 55%, transparent 40%, rgba(0,0,0,0.85) 100%),
    linear-gradient(to top, rgba(0,0,0,0.9), transparent 38%);
}
.route-info { position: absolute; z-index: 2; left: var(--gutter); bottom: 48px; width: min(440px, calc(100% - 2 * var(--gutter))); }
.route-info .count, .route-hint { font-size: 16px; font-weight: 300; color: #a9adb5; }
.route-info h3 { margin-top: 12px; font-size: clamp(30px, 3.2vw, 52px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.05; }
.route-info .note { margin-top: 12px; font-size: 18px; line-height: 1.6; font-weight: 300; color: #a9adb5; min-height: 3.2em; }
.route-info .bar { margin-top: 24px; height: 1px; background: var(--line-strong); }
.route-info .bar i { display: block; height: 1px; width: 0; background: #fff; box-shadow: 0 0 8px rgba(255,255,255,0.6); }
.route-hint { position: absolute; z-index: 2; right: var(--gutter); bottom: 48px; transition: opacity 0.4s; }

.stages { list-style: none; margin-top: 72px; border-top: 1px solid var(--line-strong); }
.stages li {
  display: grid; grid-template-columns: 10% 30% 1fr 30%; align-items: baseline;
  padding: 34px 0; border-bottom: 1px solid var(--line);
  transition: background 0.25s;
}
.stages li:hover { background: rgba(255,255,255,0.03); }
.stages .num { font-size: 16px; }
.stages h3 { font-size: clamp(20px, 2vw, 30px); font-weight: 500; letter-spacing: -0.03em; padding-right: 24px; }
.stages p { font-size: 18px; line-height: 1.6; color: #a9adb5; font-weight: 300; padding-right: 40px; }
.stages .dist { font-size: 16px; text-align: right; line-height: 1.6; }

/* Cards */
.cards {
  margin-top: 72px; display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line);
}
.cards article {
  padding: 32px 32px 44px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: #000; transition: background 0.25s;
}
.cards article:hover { background: #0a0c0f; }
.cards span { font-size: 16px; }
.cards h3 { margin-top: 56px; font-size: 26px; font-weight: 500; letter-spacing: -0.03em; }
.cards p { margin-top: 14px; font-size: 18px; line-height: 1.6; color: #a9adb5; font-weight: 300; }

.share-link {
  display: block; margin-top: 16px; width: min(100%, 520px); height: 44px; padding: 0 16px;
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  font-size: 15px; outline: none;
}
.share-link[hidden] { display: none; }
.share-link:focus { border-color: var(--line-strong); color: #fff; }
.finale {padding-bottom: clamp(100px, 13vw, 180px); }

.foot { border-top: 1px solid var(--line); background: #000; }
.foot .wrap { display: flex; justify-content: space-between; gap: 24px; padding-top: 28px; padding-bottom: 28px; font-size: 11px; color: var(--dim); }
.foot .mono { font-family: var(--sans); font-size: 15px; font-weight: 300; letter-spacing: 0; text-transform: none; color: #a9adb5; }
.foot a:hover { color: #fff; }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  :root { --gutter: 20px; }
  .links { display: none; }
  .nav-inner { height: 72px; }
  .lede br { display: none; }
  .lede { font-size: 16px; }
  .two-col { grid-template-columns: 1fr; gap: 24px; margin-top: 40px; }
  .stats { grid-template-columns: 1fr 1fr; margin-top: 56px; }
  .stats > div { padding: 24px 12px 24px 0; }
  .stats > div + div { padding-left: 0; border-left: 0; }
  .stats > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .route-hint { display: none; }
  .route-info { bottom: 28px; }
  .stages li { grid-template-columns: 40px 1fr; row-gap: 10px; padding: 26px 0; }
  .stages p, .stages .dist { grid-column: 2; padding-right: 0; text-align: left; }
  .cards { grid-template-columns: 1fr; margin-top: 48px; }
  .cards h3 { margin-top: 28px; }
  .foot .wrap { flex-direction: column; gap: 10px; }
}
@media (max-width: 480px) {
  .btn-solid { height: 36px; padding: 0 14px; font-size: 12.5px; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
