/* ==========================================================================
   PITLANE — SITE STYLES
   Depends on brand.css for all tokens.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. RESET + BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.68;
  color: var(--pl-pitwall);
  background: var(--pl-tarmac);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100svh;
}

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

a { color: var(--pl-teal); text-decoration: none; transition: color var(--t-fast) var(--ease-out); }
a:hover { color: var(--pl-cyan); }

button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--pl-teal); color: var(--pl-tarmac); }

:focus-visible {
  outline: 2px solid var(--pl-cyan);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

/* Scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--pl-tarmac); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--pl-velocity), var(--pl-lane));
  border-radius: var(--r-pill);
  border: 3px solid var(--pl-tarmac);
}
::-webkit-scrollbar-thumb:hover { background: var(--pl-teal); }

/* --------------------------------------------------------------------------
   2. AMBIENT BACKGROUND — teal light-wells, telemetry grid, film grain
   -------------------------------------------------------------------------- */
.bg-field {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-field::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(58rem 42rem at 78% -8%,  rgba(0,242,195,.155), transparent 62%),
    radial-gradient(46rem 34rem at 4% 26%,   rgba(0,163,255,.115), transparent 60%),
    radial-gradient(52rem 40rem at 52% 108%, rgba(0,194,255,.085), transparent 64%);
}

/* Honeycomb lattice — pure CSS, no image request */
.bg-field::after {
  content: '';
  position: absolute; inset: -20%;
  opacity: .55;
  /* Telemetry grid: a data sheet, not a texture. Two hairline axes. */
  background-image:
    linear-gradient(rgba(0,242,195,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,242,195,.055) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(900px) rotateX(18deg);
  transform-origin: 50% 0;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 78%);
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 78%);
}

/* Film grain sits above the glow so glass edges stay crisp */
.grain {
  position: fixed; inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .038;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Everything real sits above the ambience */
.page { position: relative; z-index: 2; }

/* --------------------------------------------------------------------------
   3. LAYOUT
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(4.5rem, 9vw, var(--sp-11)); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, var(--sp-9)); }
.section--banded {
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.022) 22%, rgba(255,255,255,.022) 78%, transparent);
}

.rule {
  height: 1px; border: 0;
  background: linear-gradient(90deg, transparent, rgba(0,242,195,.34), transparent);
}

/* --------------------------------------------------------------------------
   4. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5,
.display, .h1, .h2, .h3, .h4 {
  font-family: var(--font-display);
  color: var(--pl-kerb);
  line-height: 1.04;
  letter-spacing: -0.012em;
  font-weight: 700;
  text-wrap: balance;
}

/* Guide §02: "Heavy weights set in italicized geometric sans-serif. Evokes
   momentum, forward velocity." Headlines lean; card titles (h3/h4) stay
   upright for scanning — an italic wall of small headings reads as noise. */
.display { font-size: var(--fs-display); font-weight: 900; font-style: italic; letter-spacing: -0.02em; line-height: .98; }
h1, .h1  { font-size: var(--fs-h1); font-weight: 900; font-style: italic; letter-spacing: -0.018em; }
h2, .h2  { font-size: var(--fs-h2); font-weight: 800; font-style: italic; }
h3, .h3  { font-size: var(--fs-h3); line-height: 1.18; font-weight: 700; }
h4, .h4  { font-size: var(--fs-h4); line-height: 1.3; font-weight: 700; letter-spacing: 0; }

p { text-wrap: pretty; }
.lead { font-size: var(--fs-lead); line-height: 1.62; color: var(--pl-pitwall); }
.small { font-size: var(--fs-sm); }
.muted { color: var(--pl-ash); }

/* Velocity gradient text — the signature move. One word per view, max. */
.accent-text {
  background: var(--pl-grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Fallback for engines without background-clip:text */
  -webkit-text-fill-color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .accent-text { color: var(--pl-teal); -webkit-text-fill-color: var(--pl-teal); }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--pl-teal);
  margin-bottom: var(--sp-4);
}
.eyebrow::before {
  content: '';
  width: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--pl-teal));
}
.eyebrow--center::after {
  content: '';
  width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--pl-teal), transparent);
}

.section-head { max-width: 680px; margin-bottom: clamp(2.5rem, 5vw, var(--sp-8)); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: var(--sp-4); }

/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  --btn-py: .92rem;
  --btn-px: 1.75rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: var(--btn-py) var(--btn-px);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 650;
  letter-spacing: .012em;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
  transition: transform var(--t-fast) var(--ease-out),
              box-shadow var(--t-mid) var(--ease-out),
              background-color var(--t-mid) var(--ease-out),
              border-color var(--t-mid) var(--ease-out),
              color var(--t-mid) var(--ease-out);
}
.btn:active { transform: translateY(1px) scale(.994); }

/* Primary — velocity gradient. One per screen region. */
.btn--primary {
  background: var(--pl-grad-text);
  background-size: 210% 210%;
  background-position: 0% 50%;
  color: var(--pl-tarmac);
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0,242,195,.22);
  transition: background-position .55s var(--ease-out),
              box-shadow var(--t-mid) var(--ease-out),
              transform var(--t-fast) var(--ease-out);
}
.btn--primary:hover {
  background-position: 100% 50%;
  color: var(--pl-tarmac);
  box-shadow: 0 16px 44px rgba(0,242,195,.36);
  transform: translateY(-2px);
}

/* Secondary — glass with a teal hairline */
.btn--glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-color: var(--glass-border);
  color: var(--pl-kerb);
  box-shadow: var(--glass-inner);
}
.btn--glass:hover {
  background: var(--glass-bg-strong);
  border-color: var(--glass-border-hi);
  color: var(--pl-white);
  transform: translateY(-2px);
}

/* Tertiary — text with an animated underline */
.btn--ghost {
  padding-inline: 0;
  background: none;
  color: var(--pl-teal);
  border-radius: 0;
}
.btn--ghost::after {
  content: '';
  position: absolute; left: 0; bottom: 2px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--t-mid) var(--ease-out);
}
.btn--ghost:hover::after { transform: scaleX(1); transform-origin: left; }
.btn--ghost:hover .btn-arrow { transform: translateX(4px); }

.btn--lg { --btn-py: 1.12rem; --btn-px: 2.3rem; font-size: var(--fs-body); }
.btn--sm { --btn-py: .68rem; --btn-px: 1.25rem; font-size: var(--fs-xs); }
.btn--block { width: 100%; }

.btn-arrow { transition: transform var(--t-mid) var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(3px); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; }
.btn-row--center { justify-content: center; }

/* --------------------------------------------------------------------------
   6. GLASS SURFACES
   -------------------------------------------------------------------------- */
.glass {
  position: relative;
  background: var(--glass-bg);
  background-image: var(--pl-grad-surface);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md), var(--glass-inner);
  overflow: hidden;
}

/* Light rake across the top edge — what sells the "glass" read */
.glass::before {
  content: '';
  position: absolute; top: 0; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
}

.glass--pad   { padding: clamp(1.5rem, 3vw, var(--sp-7)); }
.glass--flush { padding: 0; }

/* Interactive cards get a teal bloom that follows the pointer */
.glass--lift {
  transition: transform var(--t-mid) var(--ease-out),
              border-color var(--t-mid) var(--ease-out),
              box-shadow var(--t-mid) var(--ease-out);
}
.glass--lift::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(22rem 22rem at var(--mx, 50%) var(--my, 0%),
              rgba(0,242,195,.14), transparent 68%);
  opacity: 0;
  transition: opacity var(--t-mid) var(--ease-out);
  pointer-events: none;
}
.glass--lift:hover {
  transform: translateY(-5px);
  border-color: var(--glass-border-hi);
  box-shadow: var(--shadow-lg), var(--glass-inner), 0 0 46px rgba(0,242,195,.10);
}
.glass--lift:hover::after { opacity: 1; }

/* --------------------------------------------------------------------------
   7. HEADER + NAVIGATION
   -------------------------------------------------------------------------- */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color var(--t-mid) var(--ease-out),
              border-color var(--t-mid) var(--ease-out),
              backdrop-filter var(--t-mid) var(--ease-out),
              height var(--t-mid) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  height: 66px;
  background: rgba(14,19,24,.72);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  border-bottom-color: rgba(0,242,195,.14);
}

.header .container { display: flex; align-items: center; gap: var(--sp-5); }

/* --- Logo lockup: SVG mark + live type ---------------------------------
   Header uses the compact lockup (no subtitle). At header scale the
   subtitle renders around 7px and is unreadable; the guide permits
   omitting it. Footer carries the full lockup with subtitle. */
.logo { display: inline-flex; align-items: center; gap: .55rem; margin-right: auto; }
.logo__mark { width: 50px; height: 50px; flex: none; transition: transform var(--t-mid) var(--ease-out); }
.logo:hover .logo__mark { transform: translateX(3px); }
.logo__type { display: flex; flex-direction: column; line-height: 1; }
.logo__word {
  font-family: var(--font-display);
  font-size: 1.5rem; font-style: italic;
  letter-spacing: .03em;
  white-space: nowrap;
}
.logo__word b { font-weight: 900; color: var(--pl-kerb); letter-spacing: .02em; }
.logo__word i {
  font-style: italic; font-weight: 400; letter-spacing: .06em;
  margin-left: .22em;
  background: var(--pl-grad-velocity);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.logo__sub {
  font-family: var(--font-display);
  font-size: .6rem; font-weight: 700;
  letter-spacing: .34em;
  color: var(--pl-steel);
  text-transform: uppercase;
  margin-top: .3rem;
}

.nav { display: flex; align-items: center; gap: var(--sp-1); }
.nav a {
  position: relative;
  padding: .55rem .82rem;
  font-size: var(--fs-sm);
  font-weight: 520;
  color: var(--pl-pitwall);
  border-radius: var(--r-sm);
}
.nav a::after {
  content: '';
  position: absolute; left: .82rem; right: .82rem; bottom: .28rem;
  height: 1px;
  background: var(--pl-teal);
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--t-mid) var(--ease-out);
}
.nav a:hover { color: var(--pl-kerb); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current='page'] { color: var(--pl-teal); }
.nav a[aria-current='page']::after { transform: scaleX(1); }

.header__cta { margin-left: var(--sp-3); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block; position: relative;
  width: 18px; height: 1.5px;
  background: var(--pl-kerb);
  transition: background-color var(--t-fast) linear;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 0;
  width: 18px; height: 1.5px;
  background: var(--pl-kerb);
  transition: transform var(--t-mid) var(--ease-out);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded='true'] span { background: transparent; }
.nav-toggle[aria-expanded='true'] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   8. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(3.5rem, 8vw, 6.5rem));
  padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
}
.hero__inner { max-width: 900px; }
.hero__inner--center { margin-inline: auto; text-align: center; }
.hero .display { margin-bottom: var(--sp-5); }
.hero .lead { max-width: 58ch; margin-bottom: var(--sp-7); }
.hero__inner--center .lead { margin-inline: auto; }

/* Page hero (interior pages) */
.hero--page { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.hero--page h1 { margin-bottom: var(--sp-5); }

.hero__meta {
  display: flex; flex-wrap: wrap; gap: var(--sp-6);
  margin-top: clamp(3rem, 6vw, var(--sp-8));
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(0,242,195,.14);
}
.hero__meta div { min-width: 130px; }
.hero__meta b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: .35rem;
}
.hero__meta small { font-size: var(--fs-xs); color: var(--pl-ash); letter-spacing: .04em; }

/* Floating pill of proof over the hero */
.trust-pill {
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .48rem .5rem .48rem .5rem;
  margin-bottom: var(--sp-6);
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  color: var(--pl-pitwall);
  box-shadow: var(--glass-inner);
}
.trust-pill b {
  display: inline-block;
  padding: .28rem .7rem;
  background: var(--pl-grad-velocity);
  color: var(--pl-tarmac);
  font-weight: 700;
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
}
.trust-pill span { padding-right: .7rem; }

/* --------------------------------------------------------------------------
   9. GRIDS
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: clamp(1rem, 2vw, var(--sp-5)); }
/* Grid items default to min-width:auto, which lets wide children (tables, <pre>)
   blow the column open instead of scrolling inside it. */
.grid > * { min-width: 0; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--split { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, var(--sp-8)); align-items: center; }
.grid--sidebar { grid-template-columns: 1.25fr .85fr; gap: clamp(2rem, 4vw, var(--sp-7)); align-items: start; }

/* --------------------------------------------------------------------------
   10. CARDS
   -------------------------------------------------------------------------- */
.card { padding: clamp(1.5rem, 2.6vw, var(--sp-6)); height: 100%; display: flex; flex-direction: column; }
.card__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  margin-bottom: var(--sp-5);
  border-radius: var(--r-md);
  background: linear-gradient(150deg, rgba(0,242,195,.19), rgba(0,242,195,.045));
  border: 1px solid rgba(0,242,195,.24);
  color: var(--pl-teal);
  flex: none;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: var(--sp-3); }
.card p { font-size: var(--fs-sm); }
.card__foot { margin-top: auto; padding-top: var(--sp-5); }

/* Numbered card (process, methodology) */
.card--num { padding-top: var(--sp-7); }
.card__num {
  font-family: var(--font-display);
  font-size: 3.4rem; font-weight: 800;
  line-height: .8;
  letter-spacing: -.05em;
  margin-bottom: var(--sp-4);
  background: linear-gradient(180deg, rgba(0,242,195,.85), rgba(0,242,195,.08));
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

/* Feature list inside cards */
.ticks { list-style: none; padding: 0; display: grid; gap: .6rem; }
.ticks li {
  position: relative;
  padding-left: 1.65rem;
  font-size: var(--fs-sm);
}
.ticks li::before {
  content: '';
  position: absolute; left: 0; top: .58em;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--pl-grad-velocity);
  transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   11. STAT STRIP
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stats > div {
  padding: clamp(1.5rem, 3vw, var(--sp-6));
  text-align: center;
  border-right: 1px solid rgba(0,242,195,.12);
}
.stats > div:last-child { border-right: 0; }
.stats b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3.1rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  margin-bottom: .5rem;
}
.stats small {
  font-size: var(--fs-xs);
  color: var(--pl-ash);
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   12. PROCESS RAIL
   -------------------------------------------------------------------------- */
.rail { position: relative; display: grid; gap: var(--sp-5); }
.rail::before {
  content: '';
  position: absolute; left: 21px; top: 12px; bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(0,242,195,.42), rgba(0,242,195,.42), transparent);
}
.rail__step { position: relative; padding-left: 4.25rem; }
.rail__step > i {
  position: absolute; left: 0; top: -2px;
  width: 43px; height: 43px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--pl-asphalt);
  border: 1px solid rgba(0,242,195,.34);
  font-family: var(--font-display);
  font-size: .88rem; font-weight: 800; font-style: normal;
  color: var(--pl-teal);
}
.rail__step h4 { margin-bottom: .5rem; }
.rail__step p { font-size: var(--fs-sm); }

/* --------------------------------------------------------------------------
   13. SECTOR TILES
   -------------------------------------------------------------------------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(0,242,195,.12); border-radius: var(--r-lg); overflow: hidden; border: 1px solid rgba(0,242,195,.12); }
.tile {
  position: relative;
  padding: clamp(1.4rem, 2.4vw, var(--sp-6));
  background: rgba(14,19,24,.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background-color var(--t-mid) var(--ease-out);
  min-height: 168px;
  display: flex; flex-direction: column; gap: .6rem;
}
.tile:hover { background: rgba(0,242,195,.07); }
.tile svg { width: 26px; height: 26px; color: var(--pl-teal); }
.tile h4 { font-size: 1.02rem; }
.tile p { font-size: var(--fs-xs); color: var(--pl-ash); }

/* --------------------------------------------------------------------------
   14. QUOTE
   -------------------------------------------------------------------------- */
.quote { padding: clamp(2rem, 4vw, var(--sp-8)); text-align: center; }
.quote__mark {
  font-family: var(--font-display);
  font-size: 4.5rem; line-height: .6;
  color: rgba(0,242,195,.32);
  margin-bottom: var(--sp-4);
}
.quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.22rem, 1rem + 1.1vw, 1.85rem);
  line-height: 1.44;
  letter-spacing: -.022em;
  color: var(--pl-kerb);
  max-width: 34ch;
  margin: 0 auto var(--sp-6);
  text-wrap: balance;
}
.quote figcaption { font-size: var(--fs-sm); color: var(--pl-ash); }
.quote figcaption b { color: var(--pl-teal); font-weight: 620; }

/* --------------------------------------------------------------------------
   15. CTA BAND
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  padding: clamp(2.75rem, 6vw, var(--sp-9)) clamp(1.5rem, 4vw, var(--sp-8));
  text-align: center;
  border-radius: var(--r-xl);
}
.cta::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(40rem 20rem at 50% 0%, rgba(0,242,195,.15), transparent 70%);
  pointer-events: none;
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { margin-bottom: var(--sp-4); }
.cta p { max-width: 52ch; margin: 0 auto var(--sp-7); }

/* --------------------------------------------------------------------------
   16. FORMS
   -------------------------------------------------------------------------- */
.field { display: grid; gap: .5rem; margin-bottom: var(--sp-5); }
.field label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pl-pitwall);
}
.field label .req { color: var(--pl-teal); }

.input, .select, .textarea {
  width: 100%;
  padding: .92rem 1.1rem;
  background: rgba(255,255,255,.032);
  border: 1px solid var(--pl-carbon);
  border-radius: var(--r-sm);
  color: var(--pl-kerb);
  font-size: var(--fs-sm);
  transition: border-color var(--t-fast) var(--ease-out),
              background-color var(--t-fast) var(--ease-out),
              box-shadow var(--t-fast) var(--ease-out);
}
.input::placeholder, .textarea::placeholder { color: var(--pl-ash); }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(0,242,195,.32); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--pl-teal);
  background: rgba(255,255,255,.05);
  box-shadow: 0 0 0 3px rgba(0,242,195,.13);
}
.textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2300F2C3' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  padding-right: 2.6rem;
}
.select option { background: var(--pl-asphalt); color: var(--pl-kerb); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.form-note { font-size: var(--fs-xs); color: var(--pl-ash); margin-top: var(--sp-4); }

/* --------------------------------------------------------------------------
   17. ACCORDION / FAQ
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: var(--sp-3); }
.faq details {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t-mid) var(--ease-out);
}
.faq details[open] { border-color: var(--glass-border-hi); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.28rem 3.4rem 1.28rem 1.5rem;
  position: relative;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 620;
  letter-spacing: -.012em;
  color: var(--pl-kerb);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  position: absolute; right: 1.5rem; top: 50%;
  width: 12px; height: 12px;
  margin-top: -6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%2300F2C3' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform var(--t-mid) var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq .faq__body { padding: 0 1.5rem 1.4rem; font-size: var(--fs-sm); }

/* --------------------------------------------------------------------------
   18. TABLE
   -------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); }
table.hp {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
table.hp th, table.hp td {
  padding: 1.02rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid rgba(0,242,195,.11);
  vertical-align: top;
}
table.hp thead th {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pl-teal);
  background: rgba(0,242,195,.055);
  white-space: nowrap;
}
table.hp tbody tr:last-child td { border-bottom: 0; }
table.hp tbody tr { transition: background-color var(--t-fast) linear; }
table.hp tbody tr:hover { background: rgba(255,255,255,.026); }
table.hp td:first-child { color: var(--pl-kerb); font-weight: 560; }

/* --------------------------------------------------------------------------
   19. MARQUEE
   -------------------------------------------------------------------------- */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  padding-block: var(--sp-2);
}
.marquee__track { display: flex; gap: clamp(2rem, 5vw, 4.5rem); width: max-content; animation: pl-scroll 44s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span {
  font-family: var(--font-display);
  font-size: clamp(.92rem, .85rem + .3vw, 1.06rem);
  font-weight: 620;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(135,150,171,.5);
  white-space: nowrap;
}
@keyframes pl-scroll { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   20. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  margin-top: clamp(4rem, 8vw, var(--sp-9));
  padding-top: clamp(3rem, 6vw, var(--sp-8));
  border-top: 1px solid rgba(0,242,195,.15);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.55));
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: clamp(2rem, 4vw, var(--sp-7));
  padding-bottom: clamp(2.5rem, 5vw, var(--sp-8));
}
/* Footer: full lockup including subtitle. Dark mode (primary) is the
   guide's default digital footprint, so no mono swap here. */
.footer__logo { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: var(--sp-5); }
.footer__logo .logo__sub { color: var(--pl-ash); }
.footer__blurb { font-size: var(--fs-sm); max-width: 34ch; }

.footer h5 {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--pl-teal);
  margin-bottom: var(--sp-4);
}
.footer ul { list-style: none; padding: 0; display: grid; gap: .72rem; }
.footer ul a { font-size: var(--fs-sm); color: var(--pl-pitwall); }
.footer ul a:hover { color: var(--pl-teal); }

.footer__bar {
  display: flex; flex-wrap: wrap; gap: var(--sp-4);
  align-items: center; justify-content: space-between;
  padding-block: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: var(--fs-xs);
  color: var(--pl-ash);
}
.footer__bar nav { display: flex; flex-wrap: wrap; gap: var(--sp-5); }
.footer__bar a { color: var(--pl-ash); }
.footer__bar a:hover { color: var(--pl-teal); }

.social { display: flex; gap: .6rem; margin-top: var(--sp-5); }
.social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--pl-carbon);
  color: var(--pl-pitwall);
  transition: all var(--t-mid) var(--ease-out);
}
.social a:hover { border-color: var(--pl-teal); color: var(--pl-teal); transform: translateY(-2px); }
.social svg { width: 17px; height: 17px; }

/* --------------------------------------------------------------------------
   21. BRAND GUIDE PAGE
   -------------------------------------------------------------------------- */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: var(--sp-4); }
.swatch { border-radius: var(--r-md); overflow: hidden; border: 1px solid rgba(255,255,255,.09); }
.swatch__chip { height: 108px; }
.swatch__meta { padding: .9rem 1rem 1.05rem; background: rgba(255,255,255,.028); }
.swatch__meta b { display: block; font-family: var(--font-display); font-size: .92rem; color: var(--pl-kerb); margin-bottom: .3rem; }
.swatch__meta code {
  display: block;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--pl-teal);
  letter-spacing: .04em;
  margin-bottom: .2rem;
}
.swatch__meta small { font-size: .72rem; color: var(--pl-ash); line-height: 1.45; display: block; }

.logo-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--sp-4); }
.logo-cell {
  display: grid; place-items: center;
  min-height: 190px;
  padding: var(--sp-6);
  border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,.09);
}
.logo-cell img { width: 100%; max-width: 260px; }
.logo-cell--dark  { background: var(--pl-tarmac); }
.logo-cell--light { background: #FFFFFF; }
.logo-cell--accent { background: var(--pl-grad-velocity); }
.logo-cell--photo {
  background: linear-gradient(135deg, #24384A, #05090C), radial-gradient(circle at 30% 30%, rgba(0,242,195,.3), transparent);
}
.logo-cell + p { font-size: var(--fs-xs); }

.spec { display: grid; gap: var(--sp-2); font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--pl-pitwall); }
.spec b { color: var(--pl-teal); font-weight: 500; }

.do-dont { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.do-dont > div { padding: var(--sp-5); border-radius: var(--r-md); border: 1px solid; }
.do   { border-color: rgba(0,242,195,.3);  background: rgba(0,242,195,.05); }
.dont { border-color: rgba(255,51,102,.3);   background: rgba(255,51,102,.05); }
.do h4   { color: var(--pl-teal); margin-bottom: var(--sp-3); }
.dont h4 { color: var(--pl-delta);   margin-bottom: var(--sp-3); }
.do ul, .dont ul { list-style: none; padding: 0; display: grid; gap: .55rem; font-size: var(--fs-sm); }
.do li::before   { content: '✓ '; color: var(--pl-teal); font-weight: 700; }
.dont li::before { content: '✕ '; color: var(--pl-delta);   font-weight: 700; }

.type-spec { display: grid; gap: var(--sp-5); }
.type-spec > div { padding-bottom: var(--sp-5); border-bottom: 1px solid rgba(255,255,255,.07); }
.type-spec > div:last-child { border-bottom: 0; padding-bottom: 0; }
.type-spec p { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--pl-ash); margin-top: .6rem; }

/* --------------------------------------------------------------------------
   22. UTILITIES
   -------------------------------------------------------------------------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.mt-8 { margin-top: var(--sp-8); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-5 { margin-bottom: var(--sp-5); }
.mb-6 { margin-bottom: var(--sp-6); }
.max-60 { max-width: 60ch; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -60px; left: 1rem;
  z-index: 200;
  padding: .75rem 1.25rem;
  background: var(--pl-teal); color: var(--pl-tarmac);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-weight: 700; font-size: var(--fs-sm);
  transition: top var(--t-mid) var(--ease-out);
}
.skip-link:focus { top: 0; color: var(--pl-tarmac); }

/* --------------------------------------------------------------------------
   23. SCROLL REVEAL
   -------------------------------------------------------------------------- */
/* Gated on .js — set by an inline script in <head>. If that script never runs
   (JS off, CDN failure, parse error), content stays visible instead of blank. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .78s var(--ease-out), transform .78s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   24. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .grid--4, .tiles { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(2) { border-right: 0; }
  .stats > div:nth-child(-n+2) { border-bottom: 1px solid rgba(0,242,195,.12); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }

  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--sp-5) clamp(1.25rem, 4vw, 2.5rem) var(--sp-7);
    background: rgba(14,19,24,.94);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    backdrop-filter: blur(24px) saturate(150%);
    border-bottom: 1px solid rgba(0,242,195,.16);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-mid) var(--ease-out),
                transform var(--t-mid) var(--ease-out),
                visibility var(--t-mid);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: .95rem .25rem; font-size: 1.06rem; border-bottom: 1px solid rgba(255,255,255,.06); border-radius: 0; }
  .nav a::after { display: none; }

  .header__cta { display: none; }

  .grid--3, .grid--split, .grid--sidebar, .do-dont { grid-template-columns: 1fr; }
  .hero__meta { gap: var(--sp-5); }
}

@media (max-width: 620px) {
  .grid--2, .grid--4, .tiles, .field-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stats > div { border-right: 0; border-bottom: 1px solid rgba(0,242,195,.12); }
  .stats > div:last-child { border-bottom: 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bar { justify-content: flex-start; }
  .btn { width: 100%; }
  .btn--ghost { width: auto; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .logo__word { font-size: 1.28rem; }
  .logo__sub { font-size: .54rem; letter-spacing: .28em; }
  .logo__mark { width: 42px; height: 42px; }
}

/* --------------------------------------------------------------------------
   25. PREFERENCES
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* Backdrop-filter fallback — keep contrast if blur is unsupported */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass, .faq details, .tile { background: rgba(19,26,34,.92); }
  .header.is-stuck { background: rgba(14,19,24,.97); }
  .nav { background: rgba(14,19,24,.99); }
}

@media print {
  .bg-field, .grain, .header, .footer, .cta { display: none !important; }
  body { background: #fff; color: #000; }
  .glass { border: 1px solid #ccc; box-shadow: none; background: none; }
  h1, h2, h3, h4 { color: #000; }
}

/* --------------------------------------------------------------------------
   26. MOBILE / TOUCH
   Everything here is additive and scoped to touch or small screens, so the
   desktop layout above is untouched.
   -------------------------------------------------------------------------- */

/* 100vh includes mobile browser chrome: content hides under the URL bar and
   jumps as it collapses. svh is the stable "small viewport" height. */
.hero--full { min-height: 100vh; min-height: 100svh; }

/* iOS Safari force-zooms the page when a focused field is under 16px.
   Touch pointers only, so the desktop type scale keeps its tighter rhythm. */
@media (pointer: coarse) {
  .input, .select, .textarea { font-size: 16px; }
}

/* Branded tap flash instead of the default translucent black block */
a, button, summary, .btn, .input, .select, .textarea {
  -webkit-tap-highlight-color: rgba(0,242,195, .18);
}

/* Touch targets. Apple and Google both specify 44px; WCAG 2.5.8 asks 24px.
   Applied to standalone controls ONLY — links inline in a sentence are
   explicitly exempt from the rule, and padding them out would shred the
   body copy for no accessibility gain. */
@media (pointer: coarse) {
  .nav a,
  .footer ul a,
  .footer__bar nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .social a { flex: none; width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
  .logo, .footer__logo { min-height: 44px; }
  .btn { min-height: 44px; }
  .faq summary { min-height: 44px; }
  /* Stop the teal bloom sticking after a tap on touch devices */
  .glass--lift::after { display: none; }
}

/* Notch and home-indicator clearance on iPhone / modern Android */
@supports (padding: max(0px)) {
  .container {
    padding-left:  max(clamp(1.25rem, 4vw, 2.5rem), env(safe-area-inset-left));
    padding-right: max(clamp(1.25rem, 4vw, 2.5rem), env(safe-area-inset-right));
  }
  .footer__bar { padding-bottom: max(var(--sp-5), env(safe-area-inset-bottom)); }
}
/* Mobile drawer only. Unscoped, this padded the DESKTOP nav by 44px and
   pushed its links 22px above the logo and CTA. */
@media (max-width: 900px) {
  @supports (padding: max(0px)) {
    .nav { padding-bottom: max(var(--sp-7), env(safe-area-inset-bottom)); }
  }
}

/* An open mobile menu shouldn't scroll-chain to the page behind it */
.nav { overscroll-behavior: contain; }

/* backdrop-filter is the most expensive thing on the page. A column of
   blurred cards over the fixed ambient layer drops frames on mid-range
   phones, so halve the blur and drop the saturation pass on small screens. */
@media (max-width: 900px) {
  :root { --glass-blur: blur(10px); }
  .bg-field::after { opacity: .3; }
  .grain { opacity: .028; }
}

/* Momentum scrolling for the wide comparison tables */
@media (max-width: 760px) {
  .table-wrap { -webkit-overflow-scrolling: touch; }
}

/* Hint that a table scrolls sideways. Sits outside .table-wrap so it stays
   put while the table moves under it. */
.table-hint {
  display: none;
  align-items: center;
  gap: .4rem;
  margin-top: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--pl-ash);
}
@media (max-width: 760px) { .table-hint { display: flex; } }

/* ==========================================================================
   27. PITLANE COMPONENTS
   Telemetry UI drawn from the brand's own vocabulary: lap time, delta,
   sectors, crew sync. Delta Red is reserved for speed loss and the
   "Box, Box!" call, exactly as the guide assigns it.
   ========================================================================== */

/* ---- Hero: copy left, live telemetry right ----------------------------- */
.hero--split .container {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero--split .hero__inner { max-width: none; }

/* Speed streaks behind the hero: the logo's telemetry lanes, enlarged */
.streaks {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}
.streaks svg { position: absolute; right: -8%; top: 4%; width: min(1100px, 95vw); height: auto; opacity: .55; }
.streaks path { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: pl-draw 2.4s var(--ease-out) .2s forwards; }
.streaks path:nth-child(2) { animation-delay: .35s; }
.streaks path:nth-child(3) { animation-delay: .5s; }
@keyframes pl-draw { to { stroke-dashoffset: 0; } }

/* ---- Status pills -------------------------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .3rem .7rem;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: .7rem; font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.pill--teal  { color: var(--pl-teal);  background: rgba(0,242,195,.08); }
.pill--cyan  { color: var(--pl-cyan);  background: rgba(0,194,255,.08); }
.pill--delta { color: var(--pl-delta); background: rgba(255,51,102,.09); }
.pill--muted { color: var(--pl-ash);   background: rgba(135,150,171,.06); border-color: var(--pl-carbon); }
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor;
  animation: pl-pulse 1.6s ease-out infinite;
}
@keyframes pl-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,242,195,.55); }
  100% { box-shadow: 0 0 0 9px rgba(0,242,195,0); }
}

/* ---- Telemetry panel ---------------------------------------------------- */
.telemetry { padding: 0; font-family: var(--font-mono); }
.telemetry__bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  padding: .85rem 1.15rem;
  border-bottom: 1px solid rgba(0,242,195,.1);
  font-size: .72rem; letter-spacing: .08em; color: var(--pl-ash); text-transform: uppercase;
}
.telemetry__body { padding: 1.15rem; display: grid; gap: 1.1rem; }
.telemetry__label { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--pl-ash); }
.telemetry__session { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.15rem; color: var(--pl-kerb); }

.readouts { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: .75rem; }
.readout {
  padding: .8rem .9rem;
  border-radius: var(--r-md);
  background: rgba(14,19,24,.55);
  border: 1px solid var(--pl-carbon);
}
.readout b {
  display: block; margin-top: .3rem;
  font-family: var(--font-mono); font-weight: 600;
  font-size: clamp(1.15rem, .95rem + .9vw, 1.6rem);
  color: var(--pl-kerb);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.readout b.is-gain { color: var(--pl-teal); }
.readout b.is-loss { color: var(--pl-delta); }

/* Sector timing: teal = best, cyan = personal best, red = time lost */
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.sector { display: grid; gap: .35rem; font-size: .7rem; color: var(--pl-ash); }
.sector i { display: block; height: 6px; border-radius: 3px; background: var(--pl-carbon); position: relative; overflow: hidden; }
.sector i::after { content: ""; position: absolute; inset: 0; width: var(--fill, 60%); border-radius: inherit; background: var(--c, var(--pl-teal)); }
.sector span { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.sector--best { --c: var(--pl-teal); }
.sector--pb   { --c: var(--pl-cyan); }
.sector--loss { --c: var(--pl-delta); }

/* Speed trace */
.trace { width: 100%; height: 86px; display: block; }
.trace .trace__line { stroke-dasharray: 900; stroke-dashoffset: 900; animation: pl-draw 2.8s var(--ease-out) .6s forwards; }

/* Crew roster */
.crew { display: grid; gap: .45rem; }
.crew__row {
  display: grid; grid-template-columns: 1.6rem 1fr auto auto; align-items: center; gap: .65rem;
  padding: .5rem .65rem;
  border-radius: var(--r-sm);
  background: rgba(14,19,24,.4);
  font-size: .76rem; color: var(--pl-pitwall);
}
.crew__row em { font-style: normal; color: var(--pl-ash); font-size: .68rem; }
.crew__av {
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  display: grid; place-items: center;
  font-size: .62rem; font-weight: 600; color: var(--pl-tarmac);
  background: var(--pl-grad-velocity);
}
.crew__t { font-variant-numeric: tabular-nums; color: var(--pl-kerb); }

/* ---- "Box, Box!" alert: the only full-bleed use of Delta Red ----------- */
.boxbox {
  display: flex; align-items: center; gap: .8rem;
  padding: .75rem 1rem;
  border-radius: var(--r-md);
  border: 1px solid rgba(255,51,102,.45);
  background: linear-gradient(90deg, rgba(255,51,102,.16), rgba(255,51,102,.04));
  font-size: .78rem; color: var(--pl-kerb);
}
.boxbox strong {
  font-family: var(--font-display); font-style: italic; font-weight: 900;
  font-size: .95rem; letter-spacing: .04em; color: var(--pl-delta);
  white-space: nowrap;
}

/* ---- Kerb stripe: red/white racing kerb as a section accent ------------ */
.kerb {
  height: 6px; border: 0; border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--pl-delta) 0 28px, var(--pl-kerb) 28px 56px);
  opacity: .85;
  max-width: 168px;
  margin: 0 0 var(--sp-5);
}
.kerb--center { margin-inline: auto; }

/* ---- Phase cards: 01 / CALIBRATE ---------------------------------------- */
.phase__tag {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em;
  color: var(--pl-teal); text-transform: uppercase;
  margin-bottom: var(--sp-4);
}
.phase__tag b { color: var(--pl-kerb); font-weight: 600; }
.phase__meter { display: flex; gap: 4px; margin-top: auto; padding-top: var(--sp-5); }
.phase__meter i { flex: 1; height: 4px; border-radius: 2px; background: var(--pl-carbon); }
.phase__meter i.on { background: var(--pl-grad-velocity); }

/* ---- Drill cards -------------------------------------------------------- */
.drill__head { display: flex; justify-content: space-between; align-items: start; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.drill__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: var(--sp-5); }

/* ---- Slogan ------------------------------------------------------------- */
.slogan {
  font-family: var(--font-display); font-style: italic; font-weight: 900;
  font-size: clamp(1.7rem, 1rem + 3.2vw, 3.4rem);
  line-height: 1.06; letter-spacing: -.015em;
  color: var(--pl-kerb);
  text-wrap: balance;
}

/* ---- Nomenclature grid -------------------------------------------------- */
.term-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, var(--sp-5)); }
.term-grid > * { min-width: 0; }
.term__f1 { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--pl-cyan); margin-bottom: .4rem; }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 1080px) {
  .term-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .hero--split .container { grid-template-columns: 1fr; }
  .streaks svg { right: -40%; top: 0; width: 160vw; opacity: .35; }
}
@media (max-width: 620px) {
  .readouts { grid-template-columns: 1fr 1fr; }
  .readouts .readout:first-child { grid-column: 1 / -1; }
  .term-grid { grid-template-columns: 1fr; }
  /* 4 children (avatar, name, time, status) — a 3-column grid wrapped the
     status pill into the 24px avatar column and its text spilled out. */
  .crew__row { grid-template-columns: 1.6rem minmax(0, 1fr) auto auto; gap: .5rem; padding-inline: .55rem; }
  .crew__row .pill { padding-inline: .5rem; letter-spacing: .06em; }
  .crew__row em { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .streaks path, .trace .trace__line { stroke-dashoffset: 0; animation: none; }
  .live-dot { animation: none; }
}

/* Split hero: the headline shares the row with the telemetry panel, so it
   runs smaller than a full-width display line would. */
.hero--split .display { font-size: clamp(2.6rem, 1.35rem + 3.7vw, 4.6rem); }

/* --------------------------------------------------------------------------
   Mobile overflow fixes.
   .btn is `white-space: nowrap` + `overflow: hidden` (the hidden is what lets
   the gradient sweep stay inside the pill). On a phone a long label — an
   email address especially — ran past the button and was silently CLIPPED,
   not scrolled, so nothing looked broken to a page-width check. Let labels
   wrap once buttons go full-width.
   -------------------------------------------------------------------------- */
@media (max-width: 620px) {
  .btn {
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }
}

/* Long unbroken strings (email addresses, file names in <code>) inside
   narrow columns: break them rather than push past the card edge. */
.spec, .spec a, .faq__body, .footer ul a, .swatch__meta code, .form-note {
  overflow-wrap: anywhere;
}

/* Phone layout for the telemetry sectors and phase labels. Nothing here left
   its box, so a bounds check passes — but at 320-414px the sector name and
   time ran together ("S1 Detect0:41") and "S3 Recover" broke across lines,
   and phase tags split mid-phrase ("THE / CAR"). Stack them deliberately. */
.phase__tag { flex-wrap: wrap; row-gap: .25rem; }
.phase__tag b { white-space: nowrap; }
@media (max-width: 620px) {
  .sector span { display: grid; gap: .1rem; }
  .sector span b { white-space: nowrap; }
}

/* Email-address buttons: a long unbroken address wrapped with ".com" orphaned
   on its own line. Tighten just these on phones so the address stays whole;
   overflow-wrap above still catches the narrowest screens. */
@media (max-width: 620px) {
  a.btn[href^="mailto:"] { font-size: .8rem; letter-spacing: 0; --btn-px: 1rem; }
}
