/* ==========================================================
   Racesta.com — provider website
   Palette: turf green base, signal amber accent
   Type: Barlow Condensed (display) + Barlow (text)
   ========================================================== */

:root {
  --turf-900: #0b2b21;
  --turf-800: #0f3d2e;
  --turf-700: #154a38;
  --turf-600: #1f5c47;
  --turf-300: #6aa88f;
  --amber: #f2b31c;
  --amber-deep: #d4960a;
  --chalk: #f3f1ea;
  --chalk-70: rgba(243, 241, 234, 0.72);
  --chalk-40: rgba(243, 241, 234, 0.42);
  --chalk-12: rgba(243, 241, 234, 0.12);
  --chalk-06: rgba(243, 241, 234, 0.06);
  --ink: #12211b;
  --ink-60: rgba(18, 33, 27, 0.6);
  --track-red: #d8342c;
  --track-blue: #2a5bd7;
  --track-orange: #f26b1d;

  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-text: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --measure: 62ch;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.55;
  color: var(--chalk);
  background: var(--turf-800);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--amber); color: var(--ink); padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ---------- Type scale ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 0.98;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(46px, 8vw, 104px); font-weight: 700; }
h2 { font-size: clamp(34px, 5vw, 60px); }
h3 { font-size: clamp(24px, 2.6vw, 32px); }
h4 { font-size: 22px; }
p  { margin: 0 0 1em; max-width: var(--measure); }
.lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--chalk-70); }
.muted { color: var(--chalk-70); }
.small { font-size: 14px; }

/* ---------- Layout ---------- */
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section + .section { padding-top: 0; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 64px); }
.section-head p { max-width: 58ch; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid-3 { grid-template-columns: 1fr; } }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 19px; font-weight: 600;
  letter-spacing: 0.02em; text-decoration: none; text-transform: uppercase;
  padding: 13px 24px; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.btn-primary:hover { background: var(--amber-deep); border-color: var(--amber-deep); }
.btn-ghost { background: transparent; color: var(--chalk); border-color: var(--chalk-40); }
.btn-ghost:hover { border-color: var(--chalk); }
.btn-ink { background: var(--ink); color: var(--chalk); border-color: var(--ink); }
.btn-ink:hover { background: #1e3329; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 61, 46, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--chalk-12);
}
.header-bar { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand svg { height: 30px; width: auto; }
.brand-name { font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: 0.04em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--font-display); font-size: 19px; font-weight: 500; letter-spacing: 0.02em;
  text-decoration: none; padding: 8px 12px; border-radius: 4px; color: var(--chalk-70);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--chalk); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--amber); border-radius: 0; }

.has-menu { position: relative; }
.has-menu > a::after { content: ""; display: inline-block; margin-left: 6px; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.menu {
  position: absolute; top: 100%; left: 0; min-width: 300px; padding: 10px;
  background: var(--turf-900); border: 1px solid var(--chalk-12); border-radius: var(--radius);
  display: none; flex-direction: column; gap: 2px; box-shadow: 0 20px 40px rgba(0,0,0,.35);
}
.has-menu:hover .menu, .has-menu:focus-within .menu { display: flex; }
.menu a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; font-size: 18px; color: var(--chalk); }
.menu a small { font-family: var(--font-text); font-size: 13px; color: var(--chalk-40); letter-spacing: 0; }
.menu a:hover { background: var(--chalk-06); }

.lang { position: relative; }
.lang-btn {
  font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: .06em;
  background: transparent; color: var(--chalk); border: 1px solid var(--chalk-40); border-radius: 4px;
  padding: 7px 12px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center;
}
.lang-list {
  position: absolute; right: 0; top: calc(100% + 6px); background: var(--turf-900);
  border: 1px solid var(--chalk-12); border-radius: var(--radius); padding: 6px; min-width: 160px;
  display: none; flex-direction: column; z-index: 60;
}
.lang-list[data-open="true"] { display: flex; }
.lang-list a, .lang-list button { text-decoration: none; color: var(--chalk);
  all: unset; cursor: pointer; padding: 8px 10px; border-radius: 4px; font-size: 15px;
  display: flex; gap: 10px; align-items: center;
}
.lang-list a:hover, .lang-list button:hover { background: var(--chalk-06); }
.lang-list a[aria-current="true"] { color: var(--amber); }
.lang-list a b, .lang-list button b { font-family: var(--font-display); letter-spacing: .06em; width: 26px; }

.nav-toggle { display: none; background: none; border: 1px solid var(--chalk-40); color: var(--chalk); border-radius: 4px; width: 42px; height: 38px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: currentColor; margin: 4px auto; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch; background: var(--turf-900); border-bottom: 1px solid var(--chalk-12); padding: 12px var(--gutter) 20px; }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 12px 8px; font-size: 22px; }
  .menu { position: static; display: flex; background: transparent; border: 0; box-shadow: none; padding: 0 0 8px 12px; }
  .has-menu > a::after { display: none; }
  .menu a { font-size: 17px; padding: 8px; }
  .header-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 8vw, 110px) 0; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: end; }
.hero h1 { max-width: 12ch; text-transform: uppercase; }
.hero .lead { max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 20px; color: var(--chalk-40); font-size: 15px; }
.hero-aside { display: grid; gap: 10px; align-self: end; }
.hero-aside a {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center;
  text-decoration: none; padding: 12px 14px; border: 1px solid var(--chalk-12); border-radius: var(--radius);
}
.hero-aside a:hover { border-color: var(--amber); }
.hero-aside a span { font-family: var(--font-display); font-size: 21px; font-weight: 600; }
.hero-aside a small { color: var(--chalk-40); font-size: 14px; }
.hero-aside svg { width: 44px; height: 44px; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* The track: the one memorable, animated element */
.track { margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--chalk-12); background: var(--turf-900); }
.lanes { display: grid; }
.lane {
  display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 0;
  height: 64px; border-bottom: 1px dashed var(--chalk-12); position: relative;
}
.lane:last-child { border-bottom: 0; }
.lane-num {
  font-family: var(--font-display); font-weight: 700; font-size: 26px; height: 100%;
  display: grid; place-items: center; color: var(--ink);
}
.lane:nth-child(1) .lane-num { background: var(--track-red); }
.lane:nth-child(2) .lane-num { background: var(--track-blue); color: var(--chalk); }
.lane:nth-child(3) .lane-num { background: var(--chalk); }
.lane:nth-child(4) .lane-num { background: var(--ink); color: var(--chalk); }
.runner { position: relative; height: 100%; }
.runner svg {
  position: absolute; top: 50%; left: 0; height: 40px; width: 64px; fill: var(--chalk);
  transform: translate(0, -50%);
  animation: dash 1.6s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: var(--d, 0s);
}
.runner .label {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-size: 18px; letter-spacing: .04em; color: var(--chalk-40); padding-right: var(--gutter);
}
.finish {
  position: absolute; right: 0; top: 0; bottom: 0; width: 18px;
  background: repeating-conic-gradient(var(--chalk) 0 25%, var(--ink) 0 50%) 0 0 / 9px 9px;
  opacity: .9;
}
@keyframes dash {
  from { transform: translate(0, -50%); }
  to   { transform: translate(min(78vw, 900px), -50%); }
}
@media (prefers-reduced-motion: reduce) {
  .runner svg { animation: none; transform: translate(min(78vw, 900px), -50%); }
  html { scroll-behavior: auto; }
}

/* ---------- Product cards ---------- */
.products { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.product {
  display: flex; flex-direction: column; gap: 14px; text-decoration: none; padding: 26px 24px 24px;
  border: 1px solid var(--chalk-12); border-radius: var(--radius); min-height: 320px;
  background: var(--turf-700);
}
.product:hover { border-color: var(--amber); }
.product svg { width: 72px; height: 48px; fill: var(--amber); }
.product h3 { margin-top: auto; margin-bottom: 4px; }
.product p { color: var(--chalk-70); font-size: 15px; margin: 0; }
.product .link { font-family: var(--font-display); font-size: 18px; color: var(--amber); }

/* ---------- Stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border: 1px solid var(--chalk-12); border-radius: var(--radius); overflow: hidden; }
.stat { padding: 24px; border-right: 1px solid var(--chalk-12); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--font-display); font-size: 48px; font-weight: 700; line-height: 1; color: var(--amber); }
.stat span { display: block; margin-top: 6px; color: var(--chalk-70); font-size: 15px; }
@media (max-width: 760px) { .stat { border-right: 0; border-bottom: 1px solid var(--chalk-12); } .stat:last-child { border-bottom: 0; } }

/* ---------- Light band ---------- */
.band-light { background: var(--chalk); color: var(--ink); }
.band-light .lead, .band-light .muted, .band-light p { color: var(--ink-60); }
.band-light h2, .band-light h3, .band-light h4 { color: var(--ink); }
.band-light .feature { border-top: 2px solid var(--ink); padding-top: 18px; }
.band-light .feature p { font-size: 15px; }
.band-light .btn-ghost { color: var(--ink); border-color: var(--ink-60); }
.band-light .btn-ghost:hover { border-color: var(--ink); }

/* ---------- Steps (integration is a sequence) ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.step { position: relative; padding-top: 56px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--amber); color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 22px;
  display: grid; place-items: center;
}
.step p { font-size: 15px; }

/* ---------- Code sample ---------- */
.code {
  background: var(--turf-900); border: 1px solid var(--chalk-12); border-radius: var(--radius);
  padding: 20px 22px; font-family: "SF Mono", Consolas, "Liberation Mono", monospace; font-size: 13.5px; line-height: 1.6;
  overflow-x: auto; color: var(--chalk-70); white-space: pre;
}
.code b { color: var(--amber); font-weight: 500; }

/* ---------- CTA band ---------- */
.cta { background: var(--amber); color: var(--ink); }
.cta h2 { color: var(--ink); max-width: 16ch; }
.cta p { color: rgba(18,33,27,.75); }
.cta-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
@media (max-width: 760px) { .cta-grid { grid-template-columns: 1fr; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-block: clamp(56px, 8vw, 96px) clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--chalk-12); }
.page-hero h1 { font-size: clamp(42px, 6.5vw, 84px); text-transform: uppercase; max-width: 14ch; }
.crumbs { font-family: var(--font-display); font-size: 17px; letter-spacing: .04em; color: var(--chalk-40); margin-bottom: 16px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--chalk); }

/* ---------- Product detail ---------- */
.detail-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } }
.spec { border-top: 1px solid var(--chalk-12); }
.spec div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--chalk-12); font-size: 15px; }
.spec dt { color: var(--chalk-40); }
.spec dd { margin: 0; }
@media (max-width: 520px) { .spec div { grid-template-columns: 1fr; gap: 4px; } }

.race-card {
  border: 1px solid var(--chalk-12); border-radius: var(--radius); background: var(--turf-900); overflow: hidden;
}
.race-card header { display: flex; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--chalk-12); font-family: var(--font-display); font-size: 18px; letter-spacing: .04em; }
.race-card header span:last-child { color: var(--amber); }
.race-card ol { list-style: none; margin: 0; padding: 0; }
.race-card li { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 10px 18px; border-bottom: 1px solid var(--chalk-06); font-size: 15px; }
.race-card li:last-child { border-bottom: 0; }
.race-card .trap { font-family: var(--font-display); font-weight: 700; font-size: 18px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 3px; color: var(--ink); }
.race-card .odds { font-family: var(--font-display); font-size: 18px; color: var(--chalk); }
.t1 { background: var(--track-red); } .t2 { background: var(--track-blue); color: var(--chalk) !important; }
.t3 { background: var(--chalk); } .t4 { background: var(--ink); color: var(--chalk) !important; }
.t5 { background: var(--track-orange); } .t6 { background: repeating-linear-gradient(90deg, var(--ink) 0 4px, var(--chalk) 4px 8px); color: var(--chalk) !important; text-shadow: 0 0 2px var(--ink); }

/* ---------- Team / about ---------- */
.timeline { border-left: 2px solid var(--amber); padding-left: 24px; display: grid; gap: 28px; }
.timeline div { position: relative; }
.timeline div::before { content: ""; position: absolute; left: -31px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--amber); }
.timeline b { font-family: var(--font-display); font-size: 22px; display: block; }
.timeline p { font-size: 15px; margin: 4px 0 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
label { display: grid; gap: 6px; font-size: 14px; color: var(--chalk-70); }
input, select, textarea {
  font: inherit; font-size: 16px; color: var(--chalk); background: var(--turf-900);
  border: 1px solid var(--chalk-40); border-radius: 4px; padding: 11px 12px; width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--amber); outline: none; }
textarea { min-height: 140px; resize: vertical; }
select option { color: var(--ink); }
.form-note { font-size: 13px; color: var(--chalk-40); }
.form-status { display: none; padding: 12px 14px; border-radius: 4px; font-size: 15px; }
.form-status[data-state="ok"] { display: block; background: rgba(106,168,143,.2); border: 1px solid var(--turf-300); }
.form-status[data-state="error"] { display: block; background: rgba(216,52,44,.15); border: 1px solid var(--track-red); }
.contact-list { display: grid; gap: 20px; }
.contact-list b { font-family: var(--font-display); font-size: 21px; display: block; }
.contact-list a { text-decoration: none; color: var(--amber); }
.contact-list p { margin: 2px 0 0; font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--turf-900); border-top: 1px solid var(--chalk-12); padding-block: 56px 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-size: 20px; margin-bottom: 12px; letter-spacing: .04em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: var(--chalk-70); }
.site-footer a:hover { color: var(--chalk); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--chalk-12); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: var(--chalk-40); font-size: 14px; }
.footer-legal { max-width: 70ch; color: var(--chalk-40); font-size: 13px; margin-top: 12px; }

/* ---------- Per-product colour (--p is set inline per product) ---------- */
.product { --p: var(--amber); border-top: 3px solid var(--p); }
.product svg { fill: var(--p); }
.product .link { color: var(--p); }
.product:hover { border-color: var(--p); }
.hero-aside a { --p: var(--amber); }
.hero-aside a svg { fill: var(--p); }
.hero-aside a:hover { border-color: var(--p); }
.lane { --p: var(--amber); }
.lane .lane-num { background: var(--p) !important; color: var(--ink) !important; }
.lane .runner svg { fill: var(--p); }
.product-hero { border-bottom: 4px solid var(--p); }
.product-hero .crumbs span:last-child { color: var(--p); }
.race-card header span:last-child { color: var(--p); }
.race-card { border-top: 3px solid var(--p); }
.brand svg { height: 40px; width: auto; }

/* ---------- Schedule strip ---------- */
.schedule { display: grid; gap: 10px; border: 1px solid var(--chalk-12); border-radius: var(--radius); padding: 18px 20px; background: var(--turf-900); }
.srow { display: grid; grid-template-columns: 170px 1fr 90px; gap: 16px; align-items: center; font-family: var(--font-display); font-size: 18px; }
.srow small { font-family: var(--font-text); font-size: 13px; color: var(--chalk-40); text-align: right; }
.sbar { position: relative; height: 22px; background: var(--chalk-06); border-radius: 3px; }
.sbar i { position: absolute; top: 4px; bottom: 4px; width: 5px; border-radius: 2px; background: var(--p); }
@media (max-width: 640px) { .srow { grid-template-columns: 1fr; gap: 6px; } .srow small { text-align: left; } }

/* ---------- Channels ---------- */
.channels > div { border-top: 2px solid var(--amber); padding-top: 16px; }
.channels p { font-size: 15px; color: var(--chalk-70); }

/* ---------- Tick lists ---------- */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; font-size: 15px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--amber); }
.ticks li::after { content: ""; position: absolute; left: 4px; top: 7px; width: 5px; height: 3px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.ticks.big li { font-size: 17px; padding-top: 2px; }
.ticks.big li::before { top: 6px; } .ticks.big li::after { top: 9px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--chalk-12); padding: 4px 0; }
.faq:last-of-type { border-bottom: 1px solid var(--chalk-12); }
.faq summary { cursor: pointer; font-family: var(--font-display); font-size: 22px; padding: 14px 32px 14px 0; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 26px; color: var(--amber); }
.faq[open] summary::after { content: "–"; }
.faq p { padding-bottom: 14px; font-size: 15px; color: var(--chalk-70); }

/* ---------- Technology pipeline ---------- */
.pipeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.pipeline div { background: var(--turf-700); padding: 18px 16px 16px; border-radius: 3px; position: relative; }
.pipeline div:not(:last-child)::after { content: ""; position: absolute; right: -8px; top: 50%; width: 0; height: 0; border: 8px solid transparent; border-left-color: var(--amber); transform: translateY(-50%); z-index: 1; }
.pipeline b { display: block; font-family: var(--font-display); font-size: 26px; color: var(--amber); }
.pipeline span { font-size: 14px; color: var(--chalk-70); }
@media (max-width: 860px) { .pipeline { grid-template-columns: 1fr; } .pipeline div:not(:last-child)::after { right: auto; left: 20px; top: 100%; transform: none; border-left-color: transparent; border-top-color: var(--amber); } }
.tech-block { display: grid; grid-template-columns: 300px 1fr; gap: 32px; padding: 40px 0; border-top: 1px solid var(--chalk-12); }
.tech-block h2 { font-size: clamp(28px, 3vw, 40px); }
@media (max-width: 860px) { .tech-block { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- Demo modal ---------- */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(11, 43, 33, .85); }
.modal-box { position: relative; width: min(620px, 100%); max-height: 100%; overflow: auto; background: var(--turf-800); border: 1px solid var(--chalk-12); border-top: 4px solid var(--amber); border-radius: var(--radius); padding: 28px 28px 24px; box-shadow: 0 30px 60px rgba(0,0,0,.4); }
.modal-box h2 { font-size: 40px; padding-right: 40px; }
.modal-close { position: absolute; right: 14px; top: 10px; background: none; border: 0; color: var(--chalk-70); font-size: 34px; line-height: 1; cursor: pointer; padding: 6px; }
.modal-close:hover { color: var(--chalk); }
body.modal-open { overflow: hidden; }

/* ---------- Live schedule board (hero) ---------- */
.board-wrap { margin-top: clamp(40px, 6vw, 72px); background: var(--turf-900); border-top: 1px solid var(--chalk-12); padding-block: 28px 36px; }
.board { border: 1px solid var(--chalk-12); border-radius: var(--radius); overflow: hidden; background: var(--turf-800); }
.bhead { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; font-family: var(--font-display); font-size: 17px; letter-spacing: .06em; text-transform: uppercase; color: var(--chalk-70); background: var(--turf-900); border-bottom: 1px solid var(--chalk-12); }
.live { color: #4ed39a; display: flex; align-items: center; gap: 8px; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4ed39a; box-shadow: 0 0 0 0 rgba(78,211,154,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(78,211,154,0); } 100% { box-shadow: 0 0 0 0 rgba(78,211,154,0); } }
.brow { display: grid; grid-template-columns: 44px 1.2fr 1.4fr 1fr 90px 90px; gap: 18px; align-items: center; padding: 12px 18px; text-decoration: none; border-bottom: 1px solid var(--chalk-06); border-left: 4px solid var(--p); }
.brow:last-child { border-bottom: 0; }
.brow:hover { background: var(--chalk-06); }
.bchip svg { width: 32px; height: 32px; fill: var(--p); }
.bname { font-family: var(--font-display); font-size: 21px; font-weight: 600; }
.brace { font-family: var(--font-display); font-size: 18px; display: flex; flex-direction: column; line-height: 1.15; }
.brace small { font-family: var(--font-text); font-size: 13px; color: var(--chalk-40); }
.bodds { display: flex; gap: 6px; }
.bodds b { font-family: var(--font-display); font-weight: 600; font-size: 16px; padding: 3px 8px; border: 1px solid var(--chalk-12); border-radius: 3px; min-width: 44px; text-align: center; }
.bcd { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--p); font-variant-numeric: tabular-nums; text-align: right; }
.bstate { font-family: var(--font-display); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--chalk-40); text-align: right; }
@media (max-width: 900px) { .brow { grid-template-columns: 36px 1fr auto; } .brace, .bodds, .bstate { display: none; } }

/* ---------- Product illustrations ---------- */
.product.has-art { padding: 0 0 22px; overflow: hidden; }
.product.has-art img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; border-bottom: 1px solid var(--chalk-12); margin-bottom: 4px; }
.product.has-art h3, .product.has-art p, .product.has-art .link { padding-inline: 22px; }
.art { width: 100%; border: 1px solid var(--chalk-12); border-radius: var(--radius); }
.hero-aside a svg, .bchip svg, .product:not(.has-art) svg { width: 40px; height: 40px; }
.product:not(.has-art) svg { width: 48px; height: 48px; }

/* ---------- Image library ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; margin-top: 24px; }
.gallery figure { margin: 0; border: 1px solid var(--chalk-12); border-radius: var(--radius); overflow: hidden; background: var(--turf-900); }
.gallery img { width: 100%; }
.gallery.logos img { padding: 28px; }
.gallery figcaption { padding: 12px 16px; font-size: 14px; color: var(--chalk-70); border-top: 1px solid var(--chalk-12); }
.gallery figcaption b { font-family: var(--font-display); font-size: 18px; color: var(--amber); margin-right: 10px; }
.gallery .wide { grid-column: span 2; }
@media (max-width: 720px) { .gallery .wide { grid-column: span 1; } }
.gallery.icons { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.gallery.icons svg { width: 72px; height: 72px; margin: 32px auto; fill: var(--p); display: block; }

/* CTA band: equal padding regardless of preceding section, content vertically centred */
.section + .cta.section, .cta.section { padding-block: clamp(48px, 6vw, 80px); }
.cta-grid { align-items: center; }
.cta h2 { margin-bottom: 12px; }
.cta p { margin: 0; }

/* ---------- Spacing fixes ---------- */
.section + .band-light.section, .band-light.section { padding-block: clamp(64px, 8vw, 104px); }
.band-light .section-head { margin-bottom: clamp(24px, 4vw, 48px); }
.hero { padding-top: clamp(40px, 6vw, 80px); }
.hero-grid { align-items: center; }
.hero-aside { align-self: center; }
.hero h1 { margin-bottom: 0.35em; }

/* ---------- Hero entrance (one orchestrated moment) ---------- */
.hero-grid > div:first-child > *, .hero-aside a, .board .brow, .board .bhead {
  opacity: 0; transform: translateY(18px);
  animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero h1 { animation-delay: .05s; }
.hero .lead { animation-delay: .2s; }
.hero .hero-actions { animation-delay: .32s; }
.hero .hero-note { animation-delay: .42s; }
.hero-aside a:nth-child(1) { animation-delay: .35s; }
.hero-aside a:nth-child(2) { animation-delay: .45s; }
.hero-aside a:nth-child(3) { animation-delay: .55s; }
.hero-aside a:nth-child(4) { animation-delay: .65s; }
.board .bhead { animation-delay: .6s; }
.board .brow:nth-child(2) { animation-delay: .7s; }
.board .brow:nth-child(3) { animation-delay: .78s; }
.board .brow:nth-child(4) { animation-delay: .86s; }
.board .brow:nth-child(5) { animation-delay: .94s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Slow-drifting speed lines behind the hero, very low contrast */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: repeating-linear-gradient(-12deg, transparent 0 46px, rgba(243,241,234,.035) 46px 48px);
  background-size: 200% 100%;
  animation: drift 40s linear infinite;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.2), rgba(0,0,0,1) 60%, rgba(0,0,0,.6));
          mask-image: linear-gradient(90deg, rgba(0,0,0,.2), rgba(0,0,0,1) 60%, rgba(0,0,0,.6));
}
.hero > * { position: relative; z-index: 1; }
@keyframes drift { from { background-position: 0 0; } to { background-position: -400px 0; } }

/* Amber bar under the logo draws in on load */
.site-header .brand svg rect { transform-origin: left; transform: scaleX(0); animation: draw .6s .15s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes draw { to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  .hero-grid > div:first-child > *, .hero-aside a, .board .brow, .board .bhead { animation: none; opacity: 1; transform: none; }
  .hero::before { animation: none; }
  .site-header .brand svg rect { animation: none; transform: none; }
}
.brand img { height: 40px; width: auto; display: block; }
.site-footer .brand img { height: 34px; }
.legal-text .prose { color: var(--chalk-70); font-size: 16px; line-height: 1.7; }
.legal-text .prose p { max-width: none; margin: 0 0 1em; }
.legal-text .prose p.num { padding-left: 1.6em; text-indent: -1.6em; }
.legal-text .prose p.num b { color: var(--amber); font-family: var(--font-display); font-size: 18px; margin-right: .4em; }
.legal-text .prose h3 { font-size: 22px; color: var(--chalk); margin: 1.6em 0 .4em; }
.legal-text .prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal-text .prose li { margin-bottom: .5em; }
.legal-text h2 { scroll-margin-top: 90px; }
.legal-nav { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.legal-nav a { font-family: var(--font-display); font-size: 17px; letter-spacing: .04em; text-decoration: none; padding: 6px 12px; border: 1px solid var(--chalk-40); border-radius: 4px; color: var(--chalk-70); }
.legal-nav a:hover { border-color: var(--amber); color: var(--chalk); }
