/* Layout: a dark paddock at night. One shared race simulation drives every screen on the page:
   the reel at the top plays them one at a time like a film, the grid below shows them all at once. */
:root {
  --page: #0E131C;
  --bar: #141B27;
  --raise: #1A2232;
  --line: #243049;
  --fg: #E6EBF3;
  --muted: #8A97AE;
  --accent: #6EA2FF;
  --lmk: #022164;
  --green: #2BC47A;
  --yellow: #FFC93C;
  --red: #FF5A5A;
  --amber: #FFB000;
  --display: "Barlow Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", Consolas, "Courier New", monospace;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; }
img, video { max-width: 100%; }
html { scroll-behavior: smooth; }
body { background: var(--page); color: var(--fg); font-family: var(--body); font-size: 16px; line-height: 1.6; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--page); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--page) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.logo { font-family: "Segoe UI", var(--body); font-size: 22px; font-weight: 400; text-decoration: none; white-space: nowrap; letter-spacing: -0.01em; }
.logo b { font-weight: 400; color: var(--accent); }
.logo small { font-size: 14px; color: var(--muted); margin-left: 4px; }
.nav { display: flex; gap: 22px; font-size: 14px; color: var(--muted); }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--fg); }
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 8px; padding: 10px 18px; font: 600 15px var(--body); text-decoration: none; border: 1px solid var(--line); background: var(--bar); color: var(--fg); cursor: pointer; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--lmk); }
.btn.primary:hover { background: #8DB6FF; }
@media (max-width: 760px) { .nav { display: none; } .top .btn { padding: 8px 12px; font-size: 14px; } }

/* Type */
.eyebrow { font: 600 13px var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; text-transform: uppercase; line-height: 0.98; margin: 0; text-wrap: balance; letter-spacing: 0.005em; }
h1 { font-size: clamp(44px, 8vw, 104px); font-style: italic; }
h2 { font-size: clamp(36px, 5vw, 64px); font-style: italic; }
h3 { font-size: 26px; }
.lead { color: var(--muted); font-size: clamp(17px, 1.6vw, 19px); max-width: 60ch; margin: 0; }
section { padding-block: clamp(64px, 9vw, 120px); }
.sec-head { display: grid; gap: 16px; margin-bottom: 40px; max-width: 820px; }

/* Hero */
.hero { padding-block: 0; }
.film { position: relative; overflow: hidden; background: #05070B; }
.film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.film video.on { opacity: 1; }
.film::after { content: ""; position: absolute; inset: 0; background: rgba(8, 11, 17, .62); pointer-events: none; }
.film > .wrap { position: relative; z-index: 1; }
.hero .film > .wrap { padding-block: clamp(72px, 11vw, 150px); }
.hero-text { display: grid; gap: 22px; }
.hero-text .lead { color: #C3CDDD; }
.reel-wrap { margin-top: clamp(-90px, -6vw, -40px); position: relative; z-index: 2; }
.hero .film > .wrap { padding-bottom: clamp(110px, 13vw, 190px); }
.band { min-height: clamp(320px, 42vw, 520px); display: grid; align-items: end; }
.band::after { background: rgba(8, 11, 17, .45); }
.band > .wrap { padding-block: 48px; width: 100%; }
.band h2 { font-size: clamp(40px, 7vw, 92px); max-width: 14ch; }
.credit { font-size: 12px; color: #8A97AE; margin-top: 14px; }
.vid-pair { position: relative; width: min(340px, 100%); justify-self: center; margin-bottom: 72px; }
.vid-tall { width: 78%; aspect-ratio: 9 / 16; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #05070B; }
.vid-tall video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vid-pair .phone { position: absolute; right: 0; bottom: -24px; width: 190px; aspect-ratio: auto; height: 380px; border-width: 7px; border-radius: 28px; padding: 14px 10px 10px; }
.hero h1 .hl { color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* The reel: the "video" */
.reel { position: relative; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #080B11; }
.stage { position: relative; aspect-ratio: 16 / 8; min-height: 380px; max-width: 100%; }
.scene { position: absolute; inset: 0; display: grid; place-items: center; padding: 28px; opacity: 0; transform: scale(1.03); transition: opacity .7s ease, transform 1.2s ease; pointer-events: none; }
.scene.on { opacity: 1; transform: none; pointer-events: auto; }
.scene-tag { position: absolute; left: 20px; top: 18px; display: flex; align-items: center; gap: 8px; font: 600 12px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rec { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.reel-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--bar); flex-wrap: wrap; }
.play { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--raise); color: var(--fg); cursor: pointer; display: grid; place-items: center; flex: none; }
.play:hover { border-color: var(--accent); }
.chips { display: flex; gap: 8px; flex: 1; min-width: 0; flex-wrap: wrap; }
.chip { flex: 1 1 120px; min-width: 0; text-align: left; background: none; border: 0; color: var(--muted); font: 500 13px var(--body); cursor: pointer; padding: 6px 2px 2px; }
.chip .track { display: block; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; margin-bottom: 6px; }
.chip .fill { display: block; height: 100%; width: 0; background: var(--accent); }
.chip.on { color: var(--fg); }
.chip.done .fill { width: 100%; background: #3C5A8F; }

/* Shared screen pieces */
.bezel { background: #05070B; border: 10px solid #1B2130; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.55); width: 100%; }
.tv-screen { background: var(--page); padding: 14px 16px; font-size: 14px; }
.tv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.club { display: flex; align-items: center; gap: 10px; min-width: 0; }
.club-badge { width: 34px; height: 34px; border-radius: 8px; background: var(--lmk); display: grid; place-items: center; font: 600 13px var(--display); color: #fff; flex: none; border: 1px solid #2A4A8C; }
.club-name { font: 600 18px var(--display); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.club-sub { font-size: 12px; color: var(--muted); }
.tv-clock { font: 700 22px var(--mono); font-variant-numeric: tabular-nums; }
.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tbl th { font: 600 11px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 6px 8px; }
.tbl td { padding: 6px 8px; border-top: 1px solid #1B2436; white-space: nowrap; }
.tbl .r { text-align: right; }
.tbl .pos { font: 700 15px var(--mono); width: 2.2em; }
.tbl .nr { font: 700 15px var(--mono); color: var(--accent); width: 3.4em; }
.tbl .nm { overflow: hidden; text-overflow: ellipsis; max-width: 1px; width: 100%; }
.tbl .t { font-family: var(--mono); color: var(--muted); }
.tbl tr.up td { animation: up 1.6s ease; }
@keyframes up { 0% { background: rgba(110,162,255,.28); } 100% { background: transparent; } }
.best { color: #C08CFF !important; }

.flagbar { height: 6px; border-radius: 3px; transition: background .4s; }
.flag-green { background: var(--green); }
.flag-yellow { background: var(--yellow); }
.flag-chequered { background: repeating-conic-gradient(#fff 0 25%, #111 0 50%) 0 0 / 12px 12px; }

.led-frame { background: #000; border: 10px solid #151515; border-radius: 6px; box-shadow: 0 30px 80px rgba(0,0,0,.6); width: 100%; }
.led-frame canvas { display: block; width: 100%; height: auto; }

.clock { display: grid; gap: 14px; justify-items: center; text-align: center; width: 100%; }
.clock-time { font: 700 clamp(72px, 13vw, 168px) var(--mono); font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: -.02em; }
.clock-flag { font: 600 clamp(18px, 2.4vw, 28px) var(--display); letter-spacing: .14em; text-transform: uppercase; padding: 6px 18px; border-radius: 6px; color: #08130D; transition: background .4s; }
.clock-flag.flag-yellow { color: #2A1E00; }
.clock-sub { color: var(--muted); font: 500 clamp(14px, 1.6vw, 18px) var(--body); }
.clock .flagbar { width: min(520px, 80%); height: 8px; }

.phone { width: 260px; max-width: 100%; aspect-ratio: 9 / 18.5; background: #05070B; border: 9px solid #1B2130; border-radius: 34px; padding: 18px 12px 12px; box-shadow: 0 30px 80px rgba(0,0,0,.55); display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.ph-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.ph-top .logo { font-size: 15px; }
.live { display: inline-flex; align-items: center; gap: 6px; font: 600 11px var(--body); letter-spacing: .1em; color: var(--red); }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: blink 1.4s infinite; }
.ph-class { background: var(--bar); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.ph-class b { font: 600 16px var(--display); text-transform: uppercase; letter-spacing: .03em; }
.ph-class span { font: 700 14px var(--mono); }
.ph-list { display: grid; gap: 6px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ph-row { display: grid; grid-template-columns: 18px 34px minmax(0,1fr) auto; gap: 6px; align-items: center; background: var(--bar); border-radius: 8px; padding: 7px 8px; }
.ph-row .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-row .p { font: 700 13px var(--mono); }
.ph-row .n { font: 700 13px var(--mono); color: var(--accent); }
.ph-row .g { font: 500 11.5px var(--mono); color: var(--muted); }
.ph-row.up { animation: up 1.6s ease; }

/* Scene sizes inside the reel */
.scene .bezel { max-width: 860px; }
.scene .led-frame { max-width: 760px; }
.scene .phone { width: 250px; }
.scene-phone { display: flex; gap: 40px; align-items: center; justify-content: center; width: 100%; }
.scene-phone .caption { max-width: 300px; display: grid; gap: 10px; }
.scene-phone .caption h3 { font-size: 40px; font-style: italic; }
@media (max-width: 700px) { .scene-phone .caption { display: none; } .scene { padding: 48px 12px 16px; } .tv-screen { font-size: 12px; padding: 10px; } .tbl td, .tbl th { padding: 5px 4px; } .tbl .hide-sm { display: none; } }

/* Ticker */
.ticker { border-block: 1px solid var(--line); background: var(--bar); overflow: hidden; white-space: nowrap; margin-top: clamp(48px, 7vw, 88px); }
.ticker-run { display: inline-flex; gap: 48px; padding-block: 14px; animation: run 40s linear infinite; font: 600 20px var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ticker-run span::before { content: "■"; color: var(--accent); margin-right: 14px; font-size: 12px; vertical-align: 3px; }
@keyframes run { to { transform: translateX(-50%); } }

/* Screens grid */
.screens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--bar); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: grid; gap: 18px; align-content: start; min-width: 0; }
.card .view { background: #080B11; border-radius: 10px; padding: 18px; display: grid; place-items: center; min-height: 290px; overflow: hidden; }
.card .view .bezel { border-width: 6px; }
.card .view .tv-screen { font-size: 12px; padding: 10px; }
.card .view .clock-time { font-size: clamp(56px, 7vw, 92px); }
.card .view .phone { width: 190px; border-width: 7px; border-radius: 26px; aspect-ratio: auto; height: 260px; padding: 14px 10px 10px; }
.card p { margin: 0; color: var(--muted); }
.card h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card h3 small { font: 500 13px var(--mono); color: var(--accent); text-transform: none; letter-spacing: 0; }
@media (max-width: 860px) { .screens { grid-template-columns: minmax(0, 1fr); } }

/* Flow */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1.3fr); align-items: center; gap: 14px; margin-bottom: 56px; }
.node { background: var(--bar); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: grid; gap: 4px; min-width: 0; }
.node b { font: 600 22px var(--display); text-transform: uppercase; letter-spacing: .02em; }
.node span { color: var(--muted); font-size: 14px; }
.node.core { border-color: var(--accent); background: #12203A; }
.outs { display: grid; gap: 10px; }
.outs .node { padding: 12px 16px; }
.wire { width: 56px; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 14px); background-size: 28px 2px; animation: wire 0.8s linear infinite; }
@keyframes wire { to { background-position: 28px 0; } }
@media (max-width: 860px) { .flow { grid-template-columns: minmax(0, 1fr); } .wire { width: 2px; height: 32px; justify-self: center; background: repeating-linear-gradient(180deg, var(--accent) 0 8px, transparent 8px 14px); background-size: 2px 28px; animation-name: wire-v; } @keyframes wire-v { to { background-position: 0 28px; } } }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.step { border-top: 2px solid var(--line); padding-top: 18px; display: grid; gap: 8px; }
.step::before { counter-increment: s; content: "0" counter(s); font: 700 15px var(--mono); color: var(--accent); }
.step p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Features */
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.feat { background: var(--page); padding: 26px; display: grid; gap: 10px; align-content: start; }
.feat svg { width: 28px; height: 28px; stroke: var(--accent); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { font-size: 24px; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .feats { grid-template-columns: minmax(0, 1fr); } }

/* Live on phones */
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.split .phone-wrap { display: flex; justify-content: center; }
.code { display: inline-flex; gap: 10px; align-items: center; background: var(--bar); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font: 700 18px var(--mono); letter-spacing: .06em; }
.code small { font: 500 12px var(--body); color: var(--muted); letter-spacing: 0; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; color: var(--muted); }
.ticks li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 4px; border-radius: 4px; background: repeating-conic-gradient(var(--fg) 0 25%, transparent 0 50%) 0 0 / 9px 9px; opacity: .8; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* CTA */
.cta { background: var(--lmk); border-radius: 20px; padding: clamp(32px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -40px; top: -40px; width: 320px; height: 320px; background: repeating-conic-gradient(rgba(255,255,255,.07) 0 25%, transparent 0 50%) 0 0 / 40px 40px; transform: rotate(12deg); pointer-events: none; }
.cta p { color: #C7D6F5; margin: 14px 0 0; max-width: 52ch; }
.mail { display: grid; gap: 10px; position: relative; z-index: 1; }
.mail-row { display: flex; gap: 8px; flex-wrap: wrap; }
.mail-addr { font: 600 20px var(--mono); background: rgba(0,0,0,.25); border-radius: 8px; padding: 10px 14px; user-select: all; word-break: break-all; }
.mail small { color: #C7D6F5; }
@media (max-width: 860px) { .cta { grid-template-columns: minmax(0, 1fr); } }

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 28px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-run, .wire, .rec, .live::before { animation: none; }
  .scene { transition: opacity .2s; transform: none; }
  .tbl tr.up td, .ph-row.up { animation: none; }
}
