/* Colours are sampled from the Example Mine scene (assets/3d): amber is the trucks' paint,
   teal the data beacon, navy the night the mine stands in. The landing is always dark;
   document pages follow the reader's light/dark preference. */
:root {
  --night: #0a1020;
  --night-2: #0d1527;
  --night-3: #131d33;
  --edge: #ffffff14;
  --edge-2: #ffffff24;
  --on-ink: #e8edf5;
  --on-ink-muted: #94a1b6;
  --amber: #f2b234;
  --amber-2: #ffc95c;
  --copper: #d9861f;
  --teal: #2fe8ce;
  --blue: #3f8cf2;

  --bg: #faf8f4;
  --bg-alt: #f2eee6;
  --card: #ffffff;
  --fg: #1a1e23;
  --muted: #5c6470;
  --line: #e4ded3;
  --link: #a14f10;
  --code: #efe9de;

  /* Geologica, Inter and IBM Plex Mono all carry the Kazakh letters ә ғ қ ң ө ұ ү һ і. */
  --display: "Geologica", system-ui, sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1322;
    --bg-alt: #111a2c;
    --card: #141e33;
    --fg: #e8edf5;
    --muted: #9aa6b9;
    --line: #233049;
    --link: #f5bf5f;
    --code: #1a2640;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 var(--text); }
a { color: var(--link); text-underline-offset: 3px; }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.015em; }

/* ---------- header ---------- */
.top { background: color-mix(in srgb, var(--night) 82%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); color: var(--on-ink); position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--edge); }
.bar { max-width: 1200px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-ink); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 15px; white-space: nowrap; }
.brand svg { width: 28px; height: 28px; flex-shrink: 0; }
.top nav { display: flex; gap: 20px; margin-left: auto; font-size: 14px; overflow-x: auto; scrollbar-width: none; }
.top nav::-webkit-scrollbar { display: none; }
.top nav a { color: var(--on-ink-muted); text-decoration: none; white-space: nowrap; padding: 4px 0; }
.top nav a:hover { color: var(--on-ink); }
.top nav a[aria-current="page"] { color: var(--amber); }
.actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.lang { color: var(--on-ink-muted); font: 500 12px var(--mono); letter-spacing: .06em; text-decoration: none; border: 1px solid var(--edge-2); border-radius: 6px; padding: 5px 8px; }
.lang:hover { color: var(--on-ink); border-color: #ffffff60; }
.actions .btn { margin-left: 6px; }

.btn {
  display: inline-block; padding: 9px 16px; border-radius: 10px; font-weight: 600; font-size: 15px;
  background: var(--amber); color: #1a1206; text-decoration: none; white-space: nowrap;
  box-shadow: 0 1px 0 #ffffff59 inset, 0 8px 28px -10px #f2b234b0; transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { background: var(--amber-2); transform: translateY(-1px); box-shadow: 0 1px 0 #ffffff59 inset, 0 12px 34px -10px #f2b234d0; }
.btn-lg { font-size: 17px; padding: 15px 26px; border-radius: 12px; }
.btn-dark { background: var(--night); color: var(--on-ink); box-shadow: 0 10px 30px -12px #0a1020; }
.btn-dark:hover { background: var(--night-3); box-shadow: 0 14px 34px -12px #0a1020; }
.btn-ghost { color: var(--on-ink); text-decoration: none; font-weight: 500; padding: 14px 6px; }
.btn-ghost:hover { color: var(--amber-2); }

/* ---------- landing ---------- */
main.landing { background: var(--night); color: var(--on-ink); }
main.landing a { color: var(--amber-2); }
main.landing code { background: #ffffff10; color: var(--on-ink); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* live mine stages (canvas + pinned labels); the poster shows until WebGL draws */
.mine-stage { position: relative; }
.no-webgl .mine-stage { background: url("assets/3d/mine-poster.jpg") center / contain no-repeat; }
.mine-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s ease; cursor: grab; touch-action: pan-y; }
.mine-canvas:active { cursor: grabbing; }
.mine-canvas.is-live { opacity: 1; }
.mine-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.mine-label {
  position: absolute; left: 0; top: 0; translate: -50% calc(-100% - 8px);
  display: flex; align-items: center; gap: 7px; padding: 4px 9px 4px 7px; border-radius: 6px;
  font: 500 11.5px/1.3 var(--mono); color: var(--on-ink); white-space: nowrap;
  background: #0a1020c4; border: 1px solid #2fe8ce59; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.mine-label i, .live { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 #2fe8ce99; animation: live 2s ease-out infinite; flex-shrink: 0; }
@keyframes live { 0% { box-shadow: 0 0 0 0 #2fe8ce99; } 70%, 100% { box-shadow: 0 0 0 7px #2fe8ce00; } }

/* hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(900px 600px at 72% 40%, #16264a 0%, transparent 70%), var(--night); }
.hero::after { /* film grain, as in the videos */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-stage {
  position: absolute; top: 0; right: 0; bottom: 0; width: 60%; background-color: transparent;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%), linear-gradient(180deg, #000 72%, transparent 96%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 16%), linear-gradient(180deg, #000 72%, transparent 96%); mask-composite: intersect;
}
.hero-inner { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 48px 24px 32px; min-height: min(calc(100svh - 230px), 720px); display: flex; align-items: center; pointer-events: none; }
.hero-text { max-width: 560px; pointer-events: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-ink); border: 1px solid var(--edge-2); background: #ffffff08; border-radius: 999px; padding: 7px 14px 7px 12px; }
.hero h1 { font-size: clamp(40px, 6.2vw, 78px); font-weight: 700; line-height: .98; letter-spacing: -0.03em; margin: 0 0 24px; text-wrap: balance; }
.lead { font-size: 19px; color: var(--on-ink-muted); max-width: 30em; margin: 0 0 30px; }
.prize { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 0 0 30px; }
.prize-sum { font-family: var(--display); font-weight: 700; font-size: clamp(38px, 4.8vw, 58px); letter-spacing: -0.02em; line-height: 1; background: linear-gradient(95deg, #ffe08f, var(--amber) 45%, var(--copper)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 30px #f2b23440); }
.prize-note { color: var(--on-ink-muted); font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
main.landing .btn { color: #1a1206; }
main.landing .btn-ghost { color: var(--on-ink); }
main.landing .btn-ghost:hover { color: var(--amber-2); }
.countdown { display: flex; align-items: center; gap: 10px; margin: 28px 0 0; font: 13px var(--mono); letter-spacing: .02em; color: var(--on-ink-muted); font-variant-numeric: tabular-nums; min-height: 1.6em; }
.countdown:not(:empty)::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px var(--amber); }
.countdown b { color: var(--on-ink); font-weight: 500; }
.hero-caption { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 0 24px 18px; text-align: right; font: 12px var(--mono); color: var(--on-ink-muted); letter-spacing: .02em; }

.facts { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 0 24px 48px; display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { display: flex; flex-direction: column; gap: 4px; padding: 22px 24px 0; border-top: 1px solid var(--edge-2); }
.fact + .fact { border-left: 1px solid var(--edge); }
.fact:first-child { padding-left: 0; }
.fact-k { font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--teal); }
.fact-v { font-family: var(--display); font-weight: 600; font-size: 26px; letter-spacing: -0.01em; }
.fact-n { font-size: 14px; color: var(--on-ink-muted); line-height: 1.45; }

/* bands */
.band { padding: 112px 0; position: relative; }
.kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.band h2, .final h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 700; line-height: 1.05; letter-spacing: -0.025em; margin: 0 0 18px; text-wrap: balance; }
.sub { font-size: 18px; color: var(--on-ink-muted); max-width: 44em; margin: 0 0 40px; }
.more { margin: 26px 0 0; font-weight: 500; }

/* Mine Map: Modules beside the live mine */
.band-map { background: linear-gradient(180deg, var(--night) 0, var(--night-2) 30%); border-top: 1px solid var(--edge); padding-bottom: 88px; }
.map-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 56px; align-items: start; }
.map-text .sub { margin-bottom: 32px; }
.modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.modules a { display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 12px 16px; border-radius: 12px; background: #ffffff05; border: 1px solid var(--edge); color: var(--on-ink) !important; text-decoration: none; font-weight: 500; font-size: 15.5px; line-height: 1.3; transition: border-color .2s, background .2s, transform .2s; }
.modules b { font: 500 12px var(--mono); color: var(--on-ink-muted); min-width: 18px; transition: color .2s; }
.modules a:hover, .modules a.is-on { border-color: #2fe8ce80; background: #2fe8ce12; }
.modules a.is-on b, .modules a:hover b { color: var(--teal); }
.modules a.own { border-style: dashed; }
/* Press and hold a tile to open its Mine Map section: the tile fills while it is held. */
.modules a { position: relative; overflow: hidden; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.modules a::after { content: ""; position: absolute; inset: 0; background: #2fe8ce2e; transform: scaleX(0); transform-origin: left; pointer-events: none; }
.modules a.is-holding::after { transform: scaleX(1); transition: transform .7s linear; }
.modules-hint { margin: 12px 0 0; font: 12.5px var(--mono); color: var(--on-ink-muted); }
.map-stage { position: sticky; top: 96px; height: min(76vh, 640px); border-radius: 24px; overflow: hidden; border: 1px solid var(--edge); background-color: var(--night); box-shadow: 0 40px 80px -40px #000, inset 0 1px 0 #ffffff0d; }
.map-now { position: absolute; left: 20px; bottom: 18px; right: 20px; margin: 0; display: flex; align-items: baseline; gap: 12px; font-family: var(--display); font-weight: 600; font-size: 20px; pointer-events: none; }
.map-now b { font: 500 12px var(--mono); color: var(--teal); border: 1px solid #2fe8ce66; border-radius: 6px; padding: 3px 7px; }
.map-now.in { animation: rise .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.mine-hud { position: absolute; top: 16px; right: 16px; width: 190px; padding: 10px 12px; border-radius: 10px; background: #0a1020c4; border: 1px solid #2fe8ce59; font: 500 11px var(--mono); color: var(--on-ink-muted); opacity: 0; transform: translateY(-6px); transition: opacity .4s, transform .4s; pointer-events: none; }
.mine-hud svg { display: block; width: 100%; height: 34px; margin-top: 6px; }
.mine-hud polyline { fill: none; stroke: var(--teal); stroke-width: 1.6; stroke-linejoin: round; filter: drop-shadow(0 0 4px #2fe8ce); }
.mine-hud ul { list-style: none; margin: 8px 0 0; padding: 8px 0 0; border-top: 1px solid var(--edge); display: grid; gap: 4px; color: var(--on-ink); }
.mine-hud li { display: flex; align-items: center; gap: 8px; }
.mine-hud li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px var(--teal); }
.mine-hud li::after { content: ""; margin-left: auto; width: 34px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--teal) var(--v, 60%), #ffffff14 0); }
.mine-hud li:nth-child(1) { --v: 82%; } .mine-hud li:nth-child(2) { --v: 45%; } .mine-hud li:nth-child(3) { --v: 91%; } .mine-hud li:nth-child(4) { --v: 67%; }
.map-stage[data-module="dashboards"] .mine-hud { opacity: 1; transform: none; }

/* steps */
.band-steps { background: var(--night-2); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: s; }
.steps li { position: relative; padding-top: 30px; border-top: 1px solid var(--edge-2); }
.steps li::before { content: ""; position: absolute; top: -1px; left: 0; width: 56px; height: 2px; background: var(--amber); box-shadow: 0 0 14px var(--amber); }
.step-n { display: block; font-family: var(--display); font-weight: 700; font-size: 76px; line-height: .9; color: transparent; -webkit-text-stroke: 1.8px var(--amber); text-shadow: 0 0 24px #f2b23440; }
.steps h3 { font-size: 21px; margin: 18px 0 10px; }
.steps p { margin: 0; color: var(--on-ink-muted); font-size: 16px; }
.callout { margin-top: 48px; padding: 20px 24px; border-radius: 14px; background: #f2b2340d; border: 1px solid #f2b2343d; border-left: 3px solid var(--amber); color: var(--on-ink); }

/* jury */
.band-jury { background: radial-gradient(800px 420px at 85% 0%, #2fe8ce14, transparent 70%), var(--night); border-top: 1px solid var(--edge); }
.band-jury .kicker { color: var(--teal); }
.flow { display: grid; grid-template-columns: 1fr 72px 1fr 72px 1fr; align-items: stretch; margin-bottom: 64px; }
.flow-step { background: var(--night-3); border: 1px solid var(--edge); border-radius: 16px; padding: 24px; }
.flow-n { font: 600 19px var(--display); color: var(--on-ink); display: flex; align-items: center; gap: 10px; }
.flow-n::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--teal); box-shadow: 0 0 12px var(--teal); }
.flow-step p { margin: 10px 0 0; color: var(--on-ink-muted); font-size: 16px; }
.flow-arrow { position: relative; align-self: center; height: 2px; margin: 0 8px; background: linear-gradient(90deg, var(--teal) 45%, transparent 0) 0 0 / 12px 2px repeat-x; animation: packets .9s linear infinite; opacity: .8; }
.flow-arrow::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left: 7px solid var(--teal); border-right: 0; }
@keyframes packets { to { background-position: 12px 0; } }
.rubric { display: grid; gap: 16px; max-width: 900px; }
.rb { display: grid; grid-template-columns: 320px 1fr 44px; gap: 18px; align-items: center; font-size: 16px; }
/* the track is 25 points wide: one tick per point */
.rb i { display: block; height: 12px; position: relative; background: #ffffff14;
  -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 calc(4% - 3px), transparent calc(4% - 3px) 4%); mask-image: repeating-linear-gradient(90deg, #000 0 calc(4% - 3px), transparent calc(4% - 3px) 4%); }
.rb i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--copper), var(--amber-2) 80%); clip-path: inset(0 calc(100% - var(--w)) 0 0); }
.rb b { font: 700 24px var(--display); text-align: right; }
.note { margin: 36px 0 0; font-size: 15px; color: var(--on-ink-muted); }

/* timeline: the haul road from now to the Final */
.band-time { background: var(--night-2); }
.timeline { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: linear-gradient(90deg, var(--teal), #f2b23466 30%, #ffffff1a 70%); }
.timeline li { position: relative; padding-top: 36px; display: flex; flex-direction: column; gap: 6px; }
.timeline li::before { content: ""; position: absolute; top: 2px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--night-2); border: 2px solid #f2b234b3; }
.timeline li.now::before { background: var(--teal); border-color: var(--teal); animation: live 2s ease-out infinite; }
.tl-d { font: 600 19px var(--display); }
.timeline li.now .tl-d { color: var(--teal); }
.tl-t { color: var(--on-ink-muted); font-size: 16px; }

/* preparation */
.band-prep { background: var(--night); border-top: 1px solid var(--edge); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.card { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 16px; background: linear-gradient(180deg, #ffffff08, #ffffff02); border: 1px solid var(--edge); color: var(--on-ink) !important; text-decoration: none; transition: border-color .2s, transform .2s; }
.card:hover { border-color: #f2b23480; transform: translateY(-3px); }
.card h3 { margin: 0; font-size: 19px; display: flex; justify-content: space-between; gap: 12px; }
.card h3::after { content: "→"; color: var(--amber); transition: transform .2s; }
.card:hover h3::after { transform: translateX(4px); }
.card p { margin: 0; color: var(--on-ink-muted); font-size: 15px; }
.star { margin: 32px 0 0; color: var(--on-ink-muted); }

.final { position: relative; overflow: hidden; background: radial-gradient(700px 300px at 50% 120%, #fff3, transparent), linear-gradient(120deg, #ffd476, var(--amber) 45%, var(--copper)); color: #1a1206; padding: 96px 0; text-align: center; }
.final h2 { font-size: clamp(36px, 5vw, 60px); }
.final p { max-width: 40em; margin: 0 auto 32px; font-size: 18px; }
main.landing .final a:not(.btn) { color: #1a1206; }
main.landing .final .btn-dark { color: var(--on-ink); }

/* ---------- document pages ---------- */
main.doc { max-width: 820px; margin: 0 auto; padding: 8px 16px 64px; }
.doc h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin: 40px 0 16px; }
.doc h2 { font-size: 22px; margin: 44px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.doc h3 { font-size: 18px; margin: 28px 0 8px; }
.doc li { margin: 4px 0; }
code { font: .86em var(--mono); background: var(--code); padding: 1px 6px; border-radius: 5px; overflow-wrap: anywhere; }
pre { background: var(--night); color: var(--on-ink); padding: 14px 16px; border-radius: 12px; overflow-x: auto; font-size: 14px; }
pre code { background: none; padding: 0; overflow-wrap: normal; color: inherit; }
hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
blockquote { margin: 16px 0; padding: 6px 18px; border-left: 4px solid var(--amber); background: var(--bg-alt); border-radius: 0 10px 10px 0; }
.table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { background: var(--bg-alt); font-weight: 600; }
/* Key-value tables are written with an empty header row in Markdown: hide it. */
thead:not(:has(th:not(:empty))) { display: none; }

/* ---------- footer ---------- */
footer { background: var(--night); color: var(--on-ink-muted); font-size: 14px; border-top: 1px solid var(--edge); }
footer .wrap { padding-top: 28px; padding-bottom: 36px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
footer p { margin: 0; }
footer a { color: var(--on-ink); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  /* one column: heading and text, then the mine, then the Modules under it */
  .map-grid { grid-template-columns: 1fr; gap: 0; }
  .map-text { display: contents; }
  .map-stage { position: relative; top: auto; order: 4; height: min(80vw, 560px); margin-bottom: 20px; }
  .map-text .kicker { order: 1; } .map-text h2 { order: 2; } .map-text .sub { order: 3; margin-bottom: 24px; }
  .modules { order: 5; } .more { order: 6; }
  .cards, .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n + 3) { margin-top: 20px; }
}
@media (max-width: 860px) {
  .hero { display: flex; flex-direction: column; }
  .hero-inner { order: 1; padding: 44px 16px 0; min-height: 0; }
  .hero-stage { order: 2; position: relative; width: auto; height: min(96vw, 560px); margin-top: -8px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 80%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 80%, transparent 100%); }
  .hero-caption { order: 3; text-align: center; margin-top: -28px; padding: 0 16px 20px; }
  .facts { order: 4; padding: 0 16px 40px; }
  .wrap, .bar { padding-left: 16px; padding-right: 16px; }
  .band { padding: 80px 0; }
  .bar { flex-wrap: wrap; row-gap: 8px; }
  .top nav { order: 3; width: 100%; margin-left: 0; }
  .actions { margin-left: auto; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { width: 2px; height: 40px; margin: 6px 0; justify-self: center; background: linear-gradient(180deg, var(--teal) 45%, transparent 0) 0 0 / 2px 12px repeat-y; animation-name: packets-v; }
  .flow-arrow::after { right: -4px; top: auto; bottom: -2px; border: 5px solid transparent; border-top: 7px solid var(--teal); border-bottom: 0; }
  .timeline { grid-template-columns: 1fr; gap: 26px; }
  .timeline::before { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--teal), #f2b23466 30%, #ffffff1a 70%); }
  .timeline li { padding: 0 0 0 36px; }
  .rb { grid-template-columns: 1fr 40px; row-gap: 8px; }
  .rb span { grid-column: 1 / -1; }
}
@keyframes packets-v { to { background-position: 0 12px; } }
@media (max-width: 520px) {
  body { font-size: 16px; }
  .band { padding: 64px 0; }
  .lead { font-size: 17px; }
  .cards { grid-template-columns: 1fr; }
  .fact { padding: 16px 14px 0; }
  .fact-v { font-size: 21px; }
  .modules a { font-size: 14.5px; padding: 10px 12px; gap: 10px; }
  .map-now { font-size: 16px; left: 14px; bottom: 12px; }
  .brand span { display: none; }
  .top nav { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 24px; }
  .actions .btn { padding: 8px 12px; font-size: 14px; }
  .step-n { font-size: 60px; }
  /* labels crowd a phone-sized mine: keep only the live truck */
  .mine-label { font-size: 10.5px; padding: 3px 7px 3px 6px; }
  .mine-label:not(:nth-child(2)) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
