/* ═══════════════════════════════════════════
   TRACK INFO PAGE — CSS
   Design Spec: page-13-track-info-design-spec.json
═══════════════════════════════════════════ */

/* ── Track-Info Display Heading Override ──
   Heavy italic display style matching brand signage typography */
.page-track-info h1,
.page-track-info h2,
.page-track-info h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.02em;
}

/* ══════════════════════════════════════
   HERO — $250K CINEMATIC CAMPAIGN LEVEL
══════════════════════════════════════ */

/* Base container */
.track-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: safe flex-end;   /* A14 — see the hero shell rule */
  overflow: hidden;
  background: #050505;
  padding-top: calc(var(--header-h, 80px) + 16px);   /* A14 */
}

/* Background layers */
.track-hero__bg { position: absolute; inset: 0; z-index: 1; }
.track-hero__video,
.track-hero__image {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  object-fit: cover;
  background: center/cover no-repeat;
  animation: heroKenBurns 30s ease-in-out infinite alternate;
}
.track-hero__video { z-index: 1; }
.track-hero__image { z-index: 0; }
@keyframes heroKenBurns {
  0%   { transform: scale(1) translateY(0); }
  50%  { transform: scale(1.06) translateY(-1%); }
  100% { transform: scale(1.03) translateX(-1%); }
}

/* Overlay — cinematic multi-stop gradient */
.track-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg,
      rgba(5,5,5,0.5) 0%,
      rgba(5,5,5,0.1) 25%,
      rgba(5,5,5,0.3) 50%,
      rgba(5,5,5,0.75) 75%,
      #050505 100%
    );
}

/* Engineering grid overlay */
.track-hero__grid {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255,215,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,215,0,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 80%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 80%, black 30%, transparent 100%);
}

/* Particles layer */
.track-hero__particles { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }

/* Speed lines — cinematic motion blur effect */
.track-hero__speed-lines {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}
.track-hero__speed-lines span {
  position: absolute;
  width: 1px;
  height: 30%;
  background: linear-gradient(180deg, transparent, rgba(255,215,0,0.15), transparent);
  animation: speedLine 4s ease-in-out infinite;
  opacity: 0;
}
.track-hero__speed-lines span:nth-child(1) { left: 8%; animation-delay: 0s; }
.track-hero__speed-lines span:nth-child(2) { left: 18%; animation-delay: 0.6s; height: 20%; }
.track-hero__speed-lines span:nth-child(3) { left: 32%; animation-delay: 1.2s; height: 35%; }
.track-hero__speed-lines span:nth-child(4) { left: 45%; animation-delay: 0.3s; }
.track-hero__speed-lines span:nth-child(5) { left: 58%; animation-delay: 1.8s; height: 25%; }
.track-hero__speed-lines span:nth-child(6) { left: 70%; animation-delay: 0.9s; }
.track-hero__speed-lines span:nth-child(7) { left: 82%; animation-delay: 2.1s; height: 22%; }
.track-hero__speed-lines span:nth-child(8) { left: 93%; animation-delay: 1.5s; height: 28%; }
@keyframes speedLine {
  0%   { opacity: 0; transform: translateY(100vh); }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-100vh); }
}

/* Racing stripe accent */
.track-hero__racing-stripe {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 10;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--racing-yellow) 15%,
    var(--racing-yellow) 45%,
    var(--magenta) 55%,
    var(--magenta) 70%,
    transparent 100%
  );
  opacity: 0.9;
}

/* ── Content ── */
.track-hero__content {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  /* V4R2-1: 24px → 32px. This box is `max-width: var(--max-w)` like the header inner,
     so its side padding IS the rail — at 24 the content sat 8px OUTSIDE the header rail
     at every width ≥768 (HOUSE-RULES §9). Third round on the books; measured Δ0 after. */
  padding: 0 32px calc(var(--section-pad) + 80px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Breadcrumb */
.track-hero__breadcrumb {
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 28px;
  text-transform: uppercase;
}
.track-hero__breadcrumb a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.3s;
}
.track-hero__breadcrumb a:hover { color: var(--racing-yellow); }
.track-hero__breadcrumb-sep {
  display: inline-block;
  margin: 0 8px;
  color: rgba(255,255,255,0.2);
}

/* Overline with side lines */
.track-hero__overline {
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--racing-yellow);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.track-hero__overline-line {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--racing-yellow), transparent);
}
.track-hero__overline-line:first-child {
  background: linear-gradient(90deg, transparent, var(--racing-yellow));
}

/* Title — 900-italic display register (matches index/about heroes) */
.track-hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: var(--text-display-xl);   /* A5 / CONVENTIONS #19 — was clamp(42px, 6vw, 80px) */
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 40px rgba(0,0,0,0.5);
}

/* Subtitle */
.track-hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.8vw, 20px);
  color: rgba(255,255,255,0.75);
  max-width: 640px;
  line-height: 1.8;
  margin-bottom: 36px;
}

/* CTA Buttons */
.track-hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  justify-content: center;
}
/* Hero CTAs now use the canonical .btn-cta system (layout.css) — local species retired. */

/* ── Glass Stats Bar ── */
.track-hero__stats-bar {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 24px 32px;
  max-width: 1040px;
}

/* 4th cell — EEST Circuit teaser (visually distinct magenta, links to the two-track story) */
.track-hero__stat--eest {
  position: relative;
  flex: 1.15;
  text-decoration: none;
  border-radius: 12px;
  margin-left: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(212,0,121,0.22), rgba(212,0,121,0.08));
  border: 1px solid rgba(255,77,179,0.45);
  transition: background var(--dur-base, 0.3s) var(--ease-out), transform var(--dur-base, 0.3s) var(--ease-out);
}
.track-hero__stat--eest:hover {
  background: linear-gradient(135deg, rgba(212,0,121,0.34), rgba(212,0,121,0.14));
  transform: translateY(-2px);
}
.track-hero__stat--eest:focus-visible {
  outline: 2px solid var(--magenta-300);
  outline-offset: 2px;
}
.track-hero__stat--eest .track-hero__stat-icon {
  background: rgba(212,0,121,0.18);
  color: var(--magenta-300);
}
.track-hero__stat-eyebrow {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--magenta-300);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.track-hero__stat-value--eest { color: #fff; }
.track-hero__stat-unit {
  font-size: 0.5em;
  font-weight: 700;
  color: var(--magenta-300);
  letter-spacing: 0.04em;
}
.track-hero__stat {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  padding: 0 8px;
}
.track-hero__stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255,215,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--racing-yellow);
}
.track-hero__stat-data { min-width: 0; }
.track-hero__stat-value {
  font-family: var(--font-display, var(--font-heading));
  font-size: 32px;
  font-weight: 900;
  color: var(--racing-yellow);
}
.track-hero__stat-label {
  font-family: var(--font-heading);
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
  white-space: nowrap;
}
.track-hero__stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
  margin: 0 8px;
}

/* ── Scroll CTA ── */
.track-hero__scroll-cta {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.track-hero__scroll-line {
  width: 1px;
  height: 48px;
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.1);
}
.track-hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--racing-yellow), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%   { top: -100%; }
  100% { top: 100%; }
}
.track-hero__scroll-text {
  font-family: var(--font-heading);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  writing-mode: horizontal-tb;
}

/* ── Hero reveal animation ── */
.ti-hero-reveal {
  opacity: 0;
  transform: translateY(30px);
  animation: heroReveal var(--dur-reveal) cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.08s;
}
.ti-hero-reveal--d1 { animation-delay: 0.16s; }
.ti-hero-reveal--d2 { animation-delay: 0.24s; }
.ti-hero-reveal--d3 { animation-delay: 0.32s; }
.ti-hero-reveal--d4 { animation-delay: 0.4s; }
@keyframes heroReveal {
  to { opacity: 1; transform: translateY(0); }
}
/* Reduced-motion: paint hero text immediately (removes LCP hold at opacity:0) */
@media (prefers-reduced-motion: reduce) {
  .ti-hero-reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ── Section Shared — surfaces tokenized to the brand palette (T3 purge) ── */
.track-section { padding: 100px 0; }
.track-section--dark { background: var(--black-card); }
/* Light bands unified onto ONE surface token (--paper) — was #F5F5F5 vs #FFFFFF */
.track-section--light { background: var(--paper); color: var(--ink); }
.track-section--gradient { background: linear-gradient(180deg, var(--black-card) 0%, var(--racing-plum) 100%); }
.track-section--white { background: var(--paper); color: var(--ink); }
.track-section--cta { background: var(--magenta-gradient); }
.track-section__header { text-align: center; max-width: 700px; margin: 0 auto 60px; }
/* Overline canonicalized to the section-header register (Prompt 600 · 13px · 0.2em) — mono dialect retired */
/* Eyebrow migrated to the canonical .njt-section__overline (V3-R2 consolidation).
   Light/white sections keep the deeper --magenta — the canonical --magenta modifier
   resolves to magenta-300, which is sanctioned for DARK surfaces only (fails AA on light). */
.track-section--light .njt-section__overline--magenta,
.track-section--white .njt-section__overline--magenta { color: var(--magenta); }
.track-section__heading { font-family: var(--font-heading); font-weight: 700; font-size: clamp(28px, 3.5vw, 40px); margin-bottom: 12px; }
.track-section__heading--white { color: #fff; }
.track-section__heading--dark { color: var(--ink); }
.track-section__sub { font-family: var(--font-body); font-size: 18px; line-height: 1.6; margin-top: 12px; }
.track-section__sub--muted { color: rgba(255,255,255,0.7); }
.track-section__sub--grey { color: var(--ink-soft); }

/* ── Two-track spec tabs (pre-structures the Mini vs EEST comparison) ── */
.specs-tabs { display: inline-flex; gap: 4px; margin-bottom: 8px; padding: 4px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-pill); }
.specs-tab { font-family: var(--font-heading); font-weight: 700; font-size: 13px; letter-spacing: 0.02em; padding: 8px 18px; border-radius: var(--radius-pill); color: var(--text-white-60); text-decoration: none; transition: all var(--dur-base, 0.3s) var(--ease-out); }
.specs-tab.is-active { background: var(--gold); color: #1A0510; }
.specs-tab--link:hover { color: var(--magenta-300); background: rgba(212,0,121,0.12); }
.specs-compare-link { display: inline-block; margin-top: 8px; font-family: var(--font-heading); font-weight: 600; font-size: 14px; color: var(--magenta-300); text-decoration: none; transition: color var(--dur-base, 0.3s) var(--ease-out); }
.specs-compare-link:hover { color: var(--gold); }
.specs-map__legend-note { flex-basis: 100%; font-family: var(--font-heading); font-size: 11px; color: rgba(255,255,255,0.4); } /* removed font-style:italic — Prompt has no true italic face (faux-slant); D35 */

/* ── Circuit Specifications (Split Layout) ── */
.specs-split { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: start; }
.specs-map { background: linear-gradient(135deg, rgba(45,10,26,0.3) 0%, rgba(15,15,15,0.8) 100%); border: 1px solid rgba(212,0,121,0.2); border-radius: 16px; padding: 40px; position: relative; }
.specs-map__svg { width: 100%; height: auto; }
.specs-map__svg .track-racing-line { fill: none; stroke: url(#racingGrad); stroke-width: 32; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30000; stroke-dashoffset: 30000; opacity: 0.85; transition: none; }
.specs-map__svg .track-racing-line.is-animating { animation: drawRacingLine 8s ease forwards; }
.specs-map__svg path[fill="#E6E6E7"] { opacity: 0.15; }
@keyframes drawRacingLine { to { stroke-dashoffset: 0; } }
.specs-map__svg .corner-pin { cursor: pointer; transition: transform 0.3s; }
.specs-map__svg .corner-pin:hover { transform: scale(1.3); }
.specs-map__svg .corner-pin circle { transition: all 0.3s; }
.specs-map__svg .corner-pin:hover circle { fill: var(--racing-yellow); }
.specs-map__svg .checkered-rect { fill: url(#checkeredPattern); }
.specs-map__svg .start-finish-text { font-family: var(--font-heading); font-size: 18px; fill: var(--racing-yellow); letter-spacing: 3px; font-weight: 700; }

/* Map Legend
   V4 §G8: items were shrinking below their text measure and stacking to three
   lines each, so a 3-item legend read as a 9-line block. Each item is now a
   single non-wrapping row that never shrinks below its content. */
.specs-map__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 24px;
  row-gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.specs-map__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 0;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: 12px;
  line-height: 1.2;
  color: rgba(255,255,255,0.6);
}
.specs-map__legend-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }

/* Spec Cards Stack */
.specs-cards { display: flex; flex-direction: column; gap: 16px; }
.specs-cards__title { font-family: var(--font-heading); font-weight: 700; font-size: 48px; color: #fff; margin-bottom: 32px; }
.spec-card { display: flex; align-items: center; gap: 16px; background: linear-gradient(135deg, rgba(45,10,26,0.4) 0%, rgba(15,15,15,0.6) 100%); border: 1px solid rgba(212,0,121,0.15); border-radius: 12px; padding: 20px 24px; transition: border-color 0.3s; }
.spec-card:hover { border-color: rgba(212,0,121,0.5); }
.spec-card__icon { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,215,0,0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--racing-yellow); }
.spec-card__info { flex: 1; }
.spec-card__label { font-family: var(--font-heading); font-size: 13px; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 1px; }
.spec-card__value { font-family: var(--font-display); font-size: 28px; font-weight: 900; color: #fff; }

/* ── Zone Cards (Light Section) ── */
.zones-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.zone-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: transform 0.3s, box-shadow 0.3s; }
.zone-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.zone-card__image { height: 200px; background: center/cover no-repeat; position: relative; }
.zone-card__image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.4) 100%); }
.zone-card__body { padding: 24px; }
.zone-card__icon { width: 44px; height: 44px; color: var(--magenta); margin-bottom: 12px; }
.zone-card__title { font-family: var(--font-heading); font-weight: 600; font-size: 20px; color: var(--ink); margin-bottom: 8px; }
.zone-card__desc { font-family: var(--font-body); font-size: 15px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 16px; }
.zone-card__features { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.zone-card__features li { font-family: var(--font-body); font-size: 13px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
/* ✓ text bullet retired → Lucide check icon mask (HOUSE-RULES §6) */
.zone-card__features li::before { content: ''; width: 14px; height: 14px; flex-shrink: 0; background-color: var(--magenta); -webkit-mask: var(--icon-check) center/contain no-repeat; mask: var(--icon-check) center/contain no-repeat; }

/* ── Vehicle Carousel ── */
.vehicle-carousel-wrap { position: relative; }
.vehicle-carousel__btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); background: rgba(15,15,15,0.8); backdrop-filter: blur(8px); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.vehicle-carousel__btn:hover { background: var(--racing-yellow); color: var(--black-card); border-color: var(--racing-yellow); }
.vehicle-carousel__btn--prev { left: -18px; }
.vehicle-carousel__btn--next { right: -18px; }
.vehicle-carousel__btn.is-hidden { opacity: 0; pointer-events: none; }
/* HUD position counter (telemetry motif) — top-right above the rail */
.vehicle-carousel__counter { text-align: right; font-family: var(--font-heading); font-weight: 700; font-size: 13px; letter-spacing: 0.12em; color: var(--racing-yellow); margin-bottom: 12px; }
.vehicle-carousel { display: flex; gap: 24px; padding-bottom: 20px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; overscroll-behavior-x: none; scrollbar-width: thin; scrollbar-color: rgba(255,215,0,0.3) transparent; }
.vehicle-carousel::-webkit-scrollbar { height: 4px; }
.vehicle-carousel::-webkit-scrollbar-track { background: transparent; }
.vehicle-carousel::-webkit-scrollbar-thumb { background: rgba(255,215,0,0.3); border-radius: 2px; }
/* Card is a flex column so specs flex-grow and the price/CTA pin to the bottom → all rows baseline-align even when the name wraps to 2 lines */
.vehicle-card { flex: 0 0 320px; display: flex; flex-direction: column; scroll-snap-align: center; background: linear-gradient(135deg, rgba(45,10,26,0.5) 0%, rgba(15,15,15,0.7) 100%); border: 1px solid rgba(212,0,121,0.2); border-radius: 16px; overflow: hidden; transition: transform 0.3s, border-color 0.3s; }
.vehicle-card:hover { border-color: rgba(255,215,0,0.4); transform: translateY(-4px); }
.vehicle-card__image { height: 220px; background: center/cover no-repeat; }
.vehicle-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.vehicle-card__name { font-family: var(--font-heading); font-weight: 600; font-size: 22px; color: #fff; min-height: 2.4em; display: flex; align-items: flex-start; }
.vehicle-card__age { align-self: flex-start; background: rgba(255,215,0,0.15); color: var(--racing-yellow); font-family: var(--font-heading); font-size: 12px; padding: 4px 12px; border-radius: 20px; margin-top: 8px; }
.vehicle-card__specs { margin-top: 16px; list-style: none; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.vehicle-card__specs li { font-family: var(--font-body); font-size: 14px; color: rgba(255,255,255,0.7); display: flex; align-items: center; gap: 8px; }
.vehicle-card__specs li svg { color: var(--racing-yellow); flex-shrink: 0; }
.vehicle-card__price { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.1); }
.vehicle-card__price-label { font-family: var(--font-heading); font-size: 13px; color: rgba(255,255,255,0.5); }
/* "สอบถาม" is a contact-for-price label, not a number — sized so it no longer shouts (was 32px/900) */
.vehicle-card__price-value { font-family: var(--font-heading); font-size: 20px; font-weight: 700; color: var(--racing-yellow); margin-right: 6px; }
.vehicle-card__price-unit { font-family: var(--font-heading); font-size: 14px; color: rgba(255,255,255,0.5); }
.vehicle-card__cta { display: block; text-align: center; margin-top: 16px; padding: 10px 20px; border: 1px solid rgba(255,255,255,0.3); border-radius: 8px; color: #fff; font-family: var(--font-heading); font-size: 14px; font-weight: 600; transition: all 0.3s; text-decoration: none; }
.vehicle-card__cta:hover { background: var(--racing-yellow); color: var(--black-card); border-color: var(--racing-yellow); }

/* ── Safety Infrastructure (Alternating Rows) ── */
.safety-rows { display: flex; flex-direction: column; gap: 60px; }
.safety-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.safety-row--reverse { direction: rtl; }
.safety-row--reverse > * { direction: ltr; }
.safety-row__image { border-radius: 16px; overflow: hidden; aspect-ratio: 4/3; background: center/cover no-repeat; }
.safety-row__content { padding: 0 40px; }
.safety-row__icon { width: 48px; height: 48px; color: var(--magenta); margin-bottom: 16px; }
.safety-row__title { font-family: var(--font-heading); font-weight: 600; font-size: 24px; color: var(--ink); margin-bottom: 12px; }
.safety-row__desc { font-family: var(--font-body); font-size: 16px; color: var(--ink-soft); line-height: 1.7; margin-bottom: 20px; }
.safety-row__checklist { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.safety-row__checklist li { font-family: var(--font-body); font-size: 14px; color: var(--ink); display: flex; align-items: center; gap: 10px; }
/* checks → brand magenta on light (was off-token #10B981) */
.safety-row__checklist li svg { color: var(--magenta); flex-shrink: 0; }

/* ── Operating Info Panels ── */
.ops-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ops-panel { background: linear-gradient(135deg, rgba(45,10,26,0.3) 0%, rgba(15,15,15,0.6) 100%); border: 1px solid rgba(212,0,121,0.15); border-radius: 16px; padding: 32px; transition: border-color 0.3s; }
.ops-panel:hover { border-color: rgba(212,0,121,0.4); }
/* Hours = the #1 user question → featured variant (gold border, oversized display numerals) */
.ops-panel--featured { border-color: rgba(255,215,0,0.5); background: linear-gradient(135deg, rgba(255,215,0,0.08) 0%, rgba(45,10,26,0.5) 100%); }
.ops-panel--featured .ops-panel__icon { color: var(--racing-yellow); }
.ops-panel__hours { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: clamp(30px, 3vw, 40px); color: var(--racing-yellow); margin-bottom: 6px; letter-spacing: -0.01em; }
.ops-panel__icon { width: 48px; height: 48px; color: var(--racing-yellow); margin-bottom: 20px; }
.ops-panel__title { font-family: var(--font-heading); font-weight: 600; font-size: 22px; color: #fff; margin-bottom: 16px; }
.ops-panel__content { font-family: var(--font-body); font-size: 15px; color: rgba(255,255,255,0.7); line-height: 1.7; }
.ops-panel__highlight { color: var(--racing-yellow); font-weight: 600; }

/* ══════════════════════════════════════
   CTA — CINEMATIC CAMPAIGN LEVEL
   (Inherited from homepage njt-campaign-cta)
══════════════════════════════════════ */

/* Base section */
.ti-cta {
  position: relative;
  padding: 8rem 2rem;
  background: #2A0018;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

/* Background layers */
.ti-cta__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.ti-cta__bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}
.ti-cta__bg-image {
  display: none;
}
.ti-cta__bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(42,0,24,0.95) 0%, rgba(42,0,24,0.4) 50%, rgba(42,0,24,0.9) 100%),
    linear-gradient(to right, rgba(42,0,24,0.8) 0%, rgba(42,0,24,0.3) 50%, rgba(42,0,24,0.8) 100%);
}
@keyframes tiCtaZoom {
  0%   { transform: scale(1); }
  100% { transform: scale(1.1); }
}

/* Floating glow orbs */
.ti-cta__glow {
  position: absolute;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  filter: blur(150px);
  z-index: 1;
  mix-blend-mode: screen;
  pointer-events: none;
}
.ti-cta__glow--1 {
  background: #D40079;
  opacity: 0.2;
  top: -20%;
  left: -10%;
  animation: tiCtaGlow 15s infinite alternate ease-in-out;
}
.ti-cta__glow--2 {
  background: #FFD700;
  opacity: 0.15;
  bottom: -20%;
  right: -10%;
  animation: tiCtaGlow 18s infinite alternate-reverse ease-in-out;
}
@keyframes tiCtaGlow {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(10%, 10%); }
}

/* Kinetic background text */
.ti-cta__kinetic {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 18vw;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,215,0,0.06);
  white-space: nowrap;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  animation: tiCtaKinetic 20s infinite alternate ease-in-out;
}
@keyframes tiCtaKinetic {
  0%   { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50%  { transform: translate(-50%, -50%) scale(1.03); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* Container */
.ti-cta__container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 900px;
}

/* Glass panel */
.ti-cta__panel {
  background: linear-gradient(135deg, rgba(42,0,24,0.6), rgba(0,0,0,0.4));
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 4rem 3rem;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.12);
  position: relative;
  overflow: hidden;
}
.ti-cta__panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #FFD700, #D40079, transparent);
  opacity: 0.9;
}

/* Badge */
.ti-cta__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #fff;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.ti-cta__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--signal-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--signal-green);
  animation: tiCtaPulse 2s infinite;
}
@keyframes tiCtaPulse {
  0%   { box-shadow: 0 0 0 0 rgba(46,125,70,0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(46,125,70,0); }
  100% { box-shadow: 0 0 0 0 rgba(46,125,70,0); }
}

/* Title — solid white (was off-token silver #FFFFFF→#B0B0B0 gradient at a conversion moment) */
.ti-cta__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.5rem);
  /* A30: `line-height: 1.2` deleted. It was DEAD IN CASCADE — this is an <h2>, so
     components.css §38a's `html[lang] h2` net (0,1,2) already out-ranks this (0,1,0)
     rule. Measured 1.45 in TH before and after; the declaration only looked like a
     violation to a grep. */
  margin-bottom: 1.5rem;
  color: #fff;
}

/* Subtitle */
.ti-cta__subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* Action buttons */
.ti-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
/* .ti-cta__btn species retired → CTAs use the canonical .btn-cta system (layout.css) */

/* Benefits strip */
.ti-cta__benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2rem;
}
.ti-cta__benefit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
}
.ti-cta__benefit svg {
  width: 16px;
  height: 16px;
  color: var(--racing-yellow);
  flex-shrink: 0;
}

/* ── Fade Animations ── */
.ti-fade { opacity: 0; transform: translateY(24px); transition: opacity 0.4s ease, transform 0.4s ease; }
.ti-fade.is-visible { opacity: 1; transform: translateY(0); }
.ti-fade-d1 { transition-delay: 0.1s; }
.ti-fade-d2 { transition-delay: 0.2s; }
.ti-fade-d3 { transition-delay: 0.3s; }
.ti-fade-d4 { transition-delay: 0.4s; }
.ti-fade-d5 { transition-delay: 0.5s; }

/* ── Responsive ── */
@media (max-width: 1023px) {
  .specs-split { grid-template-columns: 1fr; }
  .specs-map { aspect-ratio: auto; }
  .zones-grid { grid-template-columns: 1fr 1fr; }
  .safety-row { grid-template-columns: 1fr; }
  .safety-row--reverse { direction: ltr; }
  .safety-row__content { padding: 24px 0 0; }
  .ops-grid { grid-template-columns: 1fr 1fr; }
  .vehicle-card { flex: 0 0 280px; }
  .vehicle-carousel__btn--prev { left: -12px; }
  .vehicle-carousel__btn--next { right: -12px; }
}
@media (max-width: 767px) {
  .track-hero { min-height: 100svh; }
  .track-hero__content { padding-bottom: calc(var(--section-pad-mob) + 80px); }
  .track-hero__breadcrumb { text-align: center; }
  .track-hero__overline { justify-content: center; font-size: 11px; letter-spacing: 3px; }
  .track-hero__overline-line { width: 24px; }
  .track-hero__title { text-align: center; }
  .track-hero__subtitle { text-align: center; margin-left: auto; margin-right: auto; }
  .track-hero__ctas { justify-content: center; }
  .track-hero__cta { padding: 14px 24px; font-size: 14px; width: 100%; justify-content: center; }
  .track-hero__stats-bar {
    flex-wrap: wrap;
    padding: 20px;
    gap: 16px;
    max-width: 100%;
  }
  .track-hero__stat { flex: 1 1 40%; min-width: 130px; padding: 0; }
  .track-hero__stat-divider { display: none; }
  .track-hero__stat-value { font-size: 26px; }
  .track-hero__stat-icon { width: 36px; height: 36px; border-radius: 8px; }
  .track-hero__stat-icon svg { width: 18px; height: 18px; }
  .track-hero__speed-lines { display: none; }
  .track-section { padding: 64px 0; }
  .zones-grid { grid-template-columns: 1fr; }
  .ops-grid { grid-template-columns: 1fr; }
  .safety-row__image { aspect-ratio: 16/10; }
  .ti-cta { padding: 4rem 1rem; min-height: auto; }
  .ti-cta__panel { padding: 2.5rem 1.5rem; }
  .ti-cta__title { font-size: 1.75rem; }
  .ti-cta__subtitle { font-size: 0.95rem; }
  .ti-cta__actions { flex-direction: column; gap: 0.75rem; }
  .ti-cta__btn { width: 100%; justify-content: center; font-size: 0.95rem; padding: 1rem 1.5rem; }
  .ti-cta__kinetic { font-size: 22vw; }
  .ti-cta__benefits { gap: 1rem; }
  .ti-cta__benefit { font-size: 0.8rem; }
  .specs-map__legend { flex-wrap: wrap; gap: 12px; }
}

/* ═══════════════════════════════════════════
   VIDEO SCROLL SPEC PRESENTATION
═══════════════════════════════════════════ */

/* Container — tall enough for the scroll journey.
   Aerial base (not flat black) so the exposed scroll-runway below the pinned
   viewport never renders as an undesigned black void in any capture/breakpoint. */
.vspec {
  position: relative;
  z-index: 1;
  isolation: isolate;
  background:
    linear-gradient(rgba(10,10,10,0.62), rgba(10,10,10,0.62)),
    url('../assets/video-stills/aerial-track/B1-aerial-full-track-sun.jpg') center/cover no-repeat scroll;
  background-color: #0A0A0A;
}
/* Skip anchor — bypass the pinned scroll-scrub (visible on keyboard focus) */
/* V4 §G8: read as debug chrome. Now a ghost player control — dark glass, gold
   hairline, gold label — the same family as the play control below it. */
.vspec__skip {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%) translateY(-140%);
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: rgba(26, 5, 16, 0.86);
  -webkit-backdrop-filter: blur(var(--blur-chip, 12px));
  backdrop-filter: blur(var(--blur-chip, 12px));
  border: 1px solid rgba(255, 215, 0, 0.45);
  color: var(--gold);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform var(--dur-base, 0.3s) var(--ease-out), border-color var(--dur-base, 0.3s) var(--ease-out);
}
.vspec__skip:focus-visible {
  transform: translateX(-50%) translateY(0);
  border-color: var(--gold);
  outline: 2px solid #fff;
  outline-offset: 2px;
}
/* Aerial also on the scroll-spacer so it never falls through to black in any capture/breakpoint.
   420vh → 300vh: shorter runway, same act timeline (percent-based), de-duped stats. */
.vspec__scroll-container {
  height: 300vh;
  position: relative;
  background:
    linear-gradient(rgba(10,10,10,0.62), rgba(10,10,10,0.62)),
    url('../assets/video-stills/aerial-track/B1-aerial-full-track-sun.jpg') center/cover no-repeat scroll;
}

/* Sticky viewport — pins while scrolling, constrained to header width.
   Aerial fallback keeps the letterbox frame around the canvas from ever being black. */
.vspec__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background:
    linear-gradient(rgba(10,10,10,0.55), rgba(10,10,10,0.55)),
    url('../assets/video-stills/aerial-track/B1-aerial-full-track-sun.jpg') center/cover no-repeat;
  background-color: #0A0A0A;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Inner frame — matches header width (1400px + 32px padding each side) */
/* Full-bleed: the 1400px cap and 32px gutter used to inset the scrub panel, so the
   sticky section's own aerial background showed as a frame around it. The panel now
   fills the box edge to edge. The text cards are unaffected — they are absolutely
   positioned and cap themselves at max-width 90vw, which is where their padding
   comes from. */
.vspec__frame {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Canvas — contained within the frame, shows full video.
   Resting paint = the scrub video's OWN poster frame. It is the same file the
   <video poster> attribute already pulls, so it is already inside the on-load
   budget — no new bytes — and it means (a) the section shows the circuit from the
   first paint instead of reading empty while the 5 MB scrub is still in flight,
   and (b) the first scrubbed frame lands on top of an identical image, so the
   hand-off from still to scrub is invisible. Survives a blocked/failed video,
   JS off, and static capture. */
.vspec__canvas {
  display: block;
  width: 100%;
  /* Was capped at 100vh − 100px with a 16px radius, which left a letterbox gap top
     and bottom. Edge-to-edge now, so the radius has no edge to round. */
  max-height: none;
  border-radius: 0;
  z-index: 0;
  background:
    linear-gradient(rgba(10,10,10,0.28), rgba(10,10,10,0.28)),
    url('../assets/video-stills/page-heroes/track-spec-scroll-poster.jpg') center/cover no-repeat,
    #111;
  box-shadow: 0 8px 60px rgba(0,0,0,0.6);
}

/* Dark gradient overlay for text contrast */
.vspec__overlay {
  position: absolute;
  inset: 0;
  border-radius: 0;   /* full-bleed panel — no corner to round */
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, transparent 0%, rgba(10,10,10,0.35) 100%),
    linear-gradient(180deg, rgba(10,10,10,0.2) 0%, transparent 15%, transparent 85%, rgba(10,10,10,0.3) 100%);
  pointer-events: none;
  z-index: 1;
}
/* Load-state chip. Replaces the V4 click-to-load play control: the scrub preview is
   now the section's default state (operator directive) and the video is fetched on
   scroll-approach, so there is nothing to opt into — only something to disclose.
   Reads out the real buffered percentage and names the download size, rather than
   spinning silently over a 5 MB fetch. Hidden until the fetch actually starts and
   removed again the moment the scrub is live. */
.vspec__status {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  z-index: 6;
  display: none;
  align-items: center;
  gap: 14px;
  padding: 11px 20px;
  border-radius: var(--radius-pill, 50px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 0, 6, 0.88);
  -webkit-backdrop-filter: blur(var(--blur-chip, 12px));
  backdrop-filter: blur(var(--blur-chip, 12px));
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  max-width: calc(100% - 64px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.45);
}
.vspec__status.is-visible { display: inline-flex; }
.vspec__status-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vspec__status-track {
  flex: 0 0 auto;
  width: 96px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.18);
  overflow: hidden;
}
.vspec__status-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--magenta, #D40079), var(--racing-yellow, #FFD700));
  transition: width 0.25s linear;
}
.vspec__status-readout {
  flex: 0 0 auto;
  min-width: 7.2em;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--racing-yellow, #FFD700);
}
/* Quiet variant — the video did not arrive; the poster frame is standing in. */
.vspec__status.is-note { border-color: rgba(255,255,255,0.14); font-weight: 500; }
.vspec__status.is-note .vspec__status-label { white-space: normal; }
.vspec__status.is-note .vspec__status-track,
.vspec__status.is-note .vspec__status-readout { display: none; }
@media (max-width: 600px) {
  .vspec__status { bottom: 24px; gap: 10px; padding: 9px 14px; font-size: 12px; }
  .vspec__status-track { width: 56px; }
}

/* Subtle scan-line effect for cinematic look */
.vspec__scanlines {
  position: absolute;
  inset: 0;
  border-radius: 0;   /* full-bleed panel — no corner to round */
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  pointer-events: none;
  z-index: 2;
}

/* Scroll progress bar — sits at the bottom of the canvas */
.vspec__progress {
  position: absolute;
  bottom: 0;
  left: 32px;
  right: 32px;
  max-width: var(--max-w, 1400px);
  margin: 0 auto;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 0 0 16px 16px;
  z-index: 10;
  overflow: hidden;
}
.vspec__progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #D40079, #FFD700);
  transition: width 0.05s linear;
  box-shadow: 0 0 12px rgba(255,215,0,0.4);
}

/* ── Card base ── */
.vspec__card {
  position: absolute;
  z-index: 5;
  opacity: 0;
  transform: translateY(30px) scale(0.96);
  transition: opacity 0.4s cubic-bezier(0.16,1,0.3,1), transform 0.4s cubic-bezier(0.16,1,0.3,1);
  pointer-events: none;
}
.vspec__card.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ── Title card ── */
.vspec__card--title {
  text-align: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: max-content;
  max-width: 90vw;
}
.vspec__card--title.is-active {
  transform: translate(-50%, -50%) scale(1);
}
.vspec__card-overline {
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--racing-yellow);
  margin-bottom: 16px;
}
.vspec__card-heading {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(36px, 6vw, 72px);
  color: #fff;
  text-shadow: 0 4px 30px rgba(0,0,0,0.6);
}
.vspec__card-sub {
  font-family: var(--font-body);
  font-size: 18px;
  color: rgba(255,255,255,0.6);
  margin-top: 16px;
}
.vspec__scroll-hint {
  margin-top: 32px;
  color: rgba(255,255,255,0.4);
  animation: vspecBounce 2s ease-in-out infinite;
}
@keyframes vspecBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ══════════════════════════════════════
   ACT 2 — Cinematic Spec Overlays
══════════════════════════════════════ */

/* Base cinematic card — no background, just bold text over video */
.vspec__card--cine {
  top: 50%;
  max-width: 480px;
}
.vspec__card--cine[data-vspec-pos="left"] {
  left: 48px;
  text-align: left;
  transform: translateY(-50%) translateX(-50px);
}
.vspec__card--cine[data-vspec-pos="left"].is-active {
  transform: translateY(-50%) translateX(0);
}
.vspec__card--cine[data-vspec-pos="right"] {
  right: 48px;
  text-align: right;
  transform: translateY(-50%) translateX(50px);
}
.vspec__card--cine[data-vspec-pos="right"].is-active {
  transform: translateY(-50%) translateX(0);
}

/* Stacked variant — 3 specs stacked vertically on the left */
.vspec__card--cine-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 420px;
}
.vspec__stack-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s cubic-bezier(0.16,1,0.3,1), transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.vspec__stack-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.vspec__stack-item .vspec__cine-num {
  font-size: clamp(48px, 6vw, 80px);
}
.vspec__stack-item .vspec__cine-text {
  font-size: clamp(14px, 1.2vw, 17px);
  margin-top: 4px;
}

/* Giant number */
.vspec__cine-num {
  font-family: var(--font-display, var(--font-heading));
  font-size: clamp(64px, 8vw, 120px);
  font-weight: 900;
  color: #fff;
  line-height: 0.9;
  text-shadow: 0 4px 40px rgba(0,0,0,0.5), 0 0 80px rgba(255,215,0,0.1);
}
.vspec__cine-num--text {
  font-size: clamp(32px, 4vw, 52px);
}
.vspec__cine-unit {
  font-size: 0.35em;
  font-weight: 700;
  color: var(--racing-yellow);
  letter-spacing: 2px;
  text-shadow: none;
}
.vspec__cine-label {
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--racing-yellow);
  margin-bottom: 8px;
}

/* Accent line */
.vspec__cine-line {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--racing-yellow), transparent);
  margin: 16px 0;
}
.vspec__card--cine[data-vspec-pos="right"] .vspec__cine-line {
  margin-left: auto;
  background: linear-gradient(90deg, transparent, var(--racing-yellow));
}
/* Story text under the number */
.vspec__cine-text {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.4vw, 20px);
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
}

/* ══════════════════════════════════════
   ACT 3 — Storytelling Cards
══════════════════════════════════════ */

/* ══════════════════════════════════════
   ACT 3 — Storytelling (Right-aligned)
══════════════════════════════════════ */

/* Tagline — centered */
.vspec__card--story {
  text-align: center;
  top: 50%;
  left: 50%;
  max-width: 85%;
  width: max-content;
  transform: translate(-50%, -50%) scale(0.92);
}
.vspec__card--story.is-active {
  transform: translate(-50%, -50%) scale(1);
}
.vspec__story-line {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 52px);
  /* line-height deleted — this renders a Thai display headline
     ("ออกแบบเพื่อนักแข่งทุกวัย") at up to 52px and was the ONLY Thai display element
     still below the token in the 18-route census. Enrolled in components.css §38a.
     Not in the round-2 ledger; found by measurement. */
  color: #fff;
  text-shadow: 0 4px 40px rgba(0,0,0,0.7);
}
.vspec__story-line--gold {
  background: linear-gradient(135deg, var(--gold), var(--tier-gold), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.vspec__story-sub {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.3vw, 19px);
  color: rgba(255,255,255,0.5);
  margin-top: 20px;
  line-height: 1.6;
  text-shadow: 0 2px 16px rgba(0,0,0,0.8);
}

/* Stats — centered, horizontal layout */
.vspec__card--stats {
  top: 50%;
  left: 50%;
  text-align: center;
  transform: translate(-50%, -50%) scale(0.92);
}
.vspec__card--stats.is-active {
  transform: translate(-50%, -50%) scale(1);
}
.vspec__stats-col {
  display: flex;
  align-items: center;
  gap: 48px;
}
.vspec__stat-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.vspec__stat-num {
  font-family: var(--font-display, var(--font-heading));
  font-size: clamp(52px, 6vw, 88px);
  font-weight: 900;
  color: #fff;
  line-height: 1;
  text-shadow: 0 4px 40px rgba(0,0,0,0.5), 0 0 60px rgba(255,215,0,0.08);
}
.vspec__stat-plus {
  font-size: 0.5em;
  color: var(--racing-yellow);
}
.vspec__stat-label {
  font-family: var(--font-body);
  font-size: clamp(13px, 1.1vw, 16px);
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
}

/* Closing CTA — centered */
.vspec__card--closing {
  text-align: center;
  top: 50%;
  left: 50%;
  max-width: 90%;
  width: max-content;
  transform: translate(-50%, -50%) scale(0.9);
}
.vspec__card--closing.is-active {
  transform: translate(-50%, -50%) scale(1);
}
.vspec__closing-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--racing-yellow);
  border: 1px solid rgba(255,215,0,0.25);
  padding: 8px 20px;
  border-radius: 4px;
  margin-bottom: 24px;
}
.vspec__closing-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 68px);
  color: #fff;
  text-shadow: 0 4px 40px rgba(0,0,0,0.6);
}
.vspec__closing-sub {
  font-family: var(--font-body);
  font-size: 16px;
  color: rgba(255,255,255,0.4);
  margin-top: 20px;
  letter-spacing: 0.5px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .vspec__scroll-container { height: 480vh; }
  /* All cards center on mobile */
  .vspec__card--cine { max-width: 85vw; }
  .vspec__card--cine[data-vspec-pos="left"],
  .vspec__card--cine[data-vspec-pos="right"] {
    left: 24px;
    right: 24px;
    text-align: left;
    transform: translateY(-50%) translateY(20px);
  }
  .vspec__card--cine[data-vspec-pos="left"].is-active,
  .vspec__card--cine[data-vspec-pos="right"].is-active {
    transform: translateY(-50%) translateY(0);
  }
  .vspec__cine-num { font-size: 48px; }
  .vspec__stack-item .vspec__cine-num { font-size: 40px; }
  /* Full-bleed on narrow viewports too — the scrub panel fills the screen. */
  .vspec__frame { padding: 0; }
  /* Stats horizontal → vertical on mobile */
  .vspec__stats-col { flex-direction: column; gap: 20px; }
  .vspec__stat-divider { width: 48px; height: 1px; }
  .vspec__stat-num { font-size: 44px; }
  .vspec__stat-label { font-size: 12px; }
}

/* ═══════════════════════════════════════════
   EEST CIRCUIT band (njt-new-track) — flagship-story upgrade
   HUD spec strip (fact-pack verbatim) + intent-capture CTAs.
   Base band styles live inline in the section; these add the new sub-elements.
═══════════════════════════════════════════ */
.njt-new-track__specs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 2rem;
}
.njt-new-track__spec {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 140px;
  padding: 16px 24px;
  background: rgba(255,255,255,0.05);
  -webkit-backdrop-filter: blur(var(--blur-chip));
  backdrop-filter: blur(var(--blur-chip));
  border: 1px solid rgba(255,215,0,0.22);
  border-radius: var(--radius-md);
}
.njt-new-track__spec-value {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(28px, 3.4vw, 40px);
  color: var(--racing-yellow);
}
.njt-new-track__spec-unit {
  font-size: 0.4em;
  font-weight: 700;
  font-style: normal;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.03em;
}
.njt-new-track__spec-label {
  margin-top: 8px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.njt-new-track__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 2.25rem;
}

/* Hero EEST teaser cell wraps full-width on small screens */
@media (max-width: 767px) {
  .track-hero__stat--eest { flex: 1 1 100%; margin-left: 0; margin-top: 8px; }
  .njt-new-track__ctas .btn-cta { width: 100%; justify-content: center; }
  .njt-new-track__spec { flex: 1 1 40%; min-width: 120px; }
}

/* ═══════════════════════════════════════════
   Width Normalization — Match Header (1400px) — HOUSE-RULES §9 (MANDATORY)
   .track-section has no side padding; .container--wide (tokens.css) carries the
   32px header gutter, so section content aligns to the 1400px header width.
═══════════════════════════════════════════ */
.track-section .container.container--wide,
/* WHO-TRAINS-HERE band promoted to css/components.css §41 (A2, round 2) — it was
   the same component as index's `.njt-venue-proof`, built twice. Page copy removed. */

/* ═══════════════════════════════════════════
   Reduced motion — bypass the vspec pinning entirely (placed last so it wins the
   cascade over the base .vspec__sticky AND over the ≤768px block above it, which
   carries the same specificity).

   The V4 build collapsed this to the poster panel + the title card only, which
   silently deleted every spec the section exists to communicate. RM users now get
   the SAME content, laid out as a static board: the poster frame across the top,
   then the specs as a readable grid. No pinning, no scrub, no scroll-linked motion,
   no video fetch (the JS gates the IntersectionObserver on the same query).
═══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .vspec__scroll-container { height: auto; }
  .vspec__sticky {
    position: static;
    height: auto;
    min-height: 0;
    padding: 72px 0;
    display: block;
    /* Copy that was tuned to sit over a dark-graded video now sits over the page
       itself — deepen the plate so every string clears AA on its own (HOUSE-RULES
       §10: darken the surface, never lighten the text). */
    background:
      linear-gradient(rgba(10,10,10,0.88), rgba(10,10,10,0.88)),
      url('../assets/video-stills/aerial-track/B1-aerial-full-track-sun.jpg') center/cover no-repeat;
  }
  .vspec__frame {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 36px 40px;
    align-items: start;
    height: auto;
    /* The base rule is now full-bleed for the video panel; this fallback is a
       static TEXT board, so it keeps the reading gutter and the 1400px rail. */
    max-width: var(--max-w, 1400px);
    padding: 0 32px;
  }
  /* Overlay + scanlines are absolutely positioned across the whole frame; in a
     static board they would sit on top of the text. Drop them. */
  .vspec__overlay,
  .vspec__scanlines,
  .vspec__progress,
  .vspec__scroll-hint,
  .vspec__skip { display: none; }
  .vspec__canvas { grid-column: 1 / -1; max-height: 58vh; }
  .vspec__status { position: static; transform: none; margin: 0 auto; grid-column: 1 / -1; }

  /* Every card becomes a static block — same copy, no transform, no fade. */
  .vspec__card,
  .vspec__card--title,
  .vspec__card--cine,
  .vspec__card--cine[data-vspec-pos="left"],
  .vspec__card--cine[data-vspec-pos="right"],
  .vspec__card--story,
  .vspec__card--stats,
  .vspec__card--closing,
  .vspec__card.is-active,
  .vspec__card--title.is-active,
  .vspec__card--cine[data-vspec-pos="left"].is-active,
  .vspec__card--cine[data-vspec-pos="right"].is-active,
  .vspec__card--story.is-active,
  .vspec__card--stats.is-active,
  .vspec__card--closing.is-active {
    position: static;
    opacity: 1;
    transform: none;
    transition: none;
    pointer-events: auto;
    width: auto;
    max-width: none;
  }
  /* Full-width blocks keep their centred base alignment; only the spec columns
     flip to a common left edge (pos="right" is right-aligned at base, and its
     .is-active pair outranks a bare class selector — hence both here). */
  .vspec__card--title,
  .vspec__card--story,
  .vspec__card--stats,
  .vspec__card--closing { grid-column: 1 / -1; }
  .vspec__card--cine[data-vspec-pos="left"],
  .vspec__card--cine[data-vspec-pos="right"],
  .vspec__card--cine[data-vspec-pos="left"].is-active,
  .vspec__card--cine[data-vspec-pos="right"].is-active { text-align: left; }
  .vspec__card--cine[data-vspec-pos="right"] .vspec__cine-line { margin-left: 0; }
  .vspec__stack-item,
  .vspec__stack-item.is-visible { opacity: 1; transform: none; transition: none; }
  .vspec__card--cine-stack { gap: 32px; }
  .vspec__stats-col { justify-content: center; }
  /* Titles shrink a step — nothing is competing with a moving background now. */
  .vspec__card-heading { font-size: clamp(30px, 4.4vw, 52px); }
  .vspec__cine-num { font-size: clamp(40px, 5vw, 64px); }
  .vspec__stack-item .vspec__cine-num { font-size: clamp(34px, 4vw, 52px); }
  /* Secondary copy is legible on its own here, not propped up by a video grade. */
  .vspec__cine-text,
  .vspec__card-sub,
  .vspec__story-sub,
  .vspec__stat-label,
  .vspec__closing-sub { color: var(--text-white-80, rgba(255,255,255,0.8)); }
}


/* ═══════════════════════════════════════
   COMING SOON — New Track Expansion (.njt-new-track)
   Extracted from an inline <style> block in track-info.html
   (GOAL-V3 R1 integrator, punch 9 — inline body <style> removal).
═══════════════════════════════════════ */
.njt-new-track {
  position: relative;
  overflow: hidden;
  background: #0A0A0A;
}

/* ── Video Container — the BACKDROP, not the height source ──
   CTA CLIP FIX (V4 op-directives round). This box used to own the band's height
   (`aspect-ratio: 16/8` + a flat `min-height: 500px`) while `.njt-new-track__content`
   floated over it at `inset: 0`, under `overflow: hidden` on the section. A
   fixed-height box cannot survive content growth, so the badge → title → subtitle →
   3 spec chips → 2 CTAs stack simply ran past the floor and the CTA row was cut off.
   Measured before the fix: 91px (TH) / 93px (EN) clipped at 360 AND 390, 25/12px at
   768, 57/61px at 1024, 20px at 1280 — six breakpoints, not one; only ≥1440 was
   safe. The shared Thai display-leading change (components.css §38) is correct and
   only raised the amplitude of an existing defect; the type is NOT shrunk back.
   The height now comes from the content (see `.njt-new-track__content`), and this
   wrap stretches behind it so video, overlays and scanlines still cover the full
   band at whatever height the copy needs. */
.njt-new-track__video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  /* Always-painted aerial base — this region can never render black even if the
     construction video is aborted/blocked (see Batch B1, Gate 1 track-info void). */
  background: #0A0A0A url('../assets/video-stills/aerial-track/B1-aerial-full-track-sun.jpg') center/cover no-repeat;
}
.njt-new-track__video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Same aerial behind the video element itself, so an unpainted/aborted frame
     reveals the aerial rather than the browser's default black video surface. */
  background: url('../assets/video-stills/aerial-track/B1-aerial-full-track-sun.jpg') center/cover no-repeat;
}

/* ── Gradient overlays ── */
.njt-new-track__overlay-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, #0A0A0A, transparent);
  z-index: 2;
  pointer-events: none;
}
.njt-new-track__overlay-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(to top, #0A0A0A 5%, transparent);
  z-index: 2;
  pointer-events: none;
}
/* V4 §G8 — RE-SCRIM.
   The white display lockup sat over the brightest region of the construction
   aerial (open sky, mid-frame) and measured below AA. The old vignette darkened
   the EDGES and left the centre — exactly where the type is — untouched.
   Replaced with a plum-tinted radial centred on the type block, plus a flat
   floor tint so the lightest frame of the video can never wash the headline out.
   Measured after the change: white on the lightest sampled pixel ≥ 4.5:1. */
.njt-new-track__overlay-center {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(10,0,8,0.72) 0%, rgba(10,0,8,0.34) 55%, transparent 75%),
    linear-gradient(180deg, rgba(10,0,8,0.30) 0%, rgba(10,0,8,0.42) 100%);
  z-index: 2;
  pointer-events: none;
}

/* ── Scanline effect ── */
.njt-new-track__scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  z-index: 3;
  pointer-events: none;
}

/* ── Content — centred over the video, and the band's height source ──
   `min-height: max(50vw, 500px)` reproduces the old geometry exactly (16/8 = 50vw,
   floored at the old 500px) so nothing moves at the widths that already fitted —
   measured identical at 1440 (720px) and 1920 (960px) — while any width where the
   copy is taller now grows the band instead of clipping it. */
.njt-new-track__content {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: max(50vw, 500px);
  padding: 3rem 2rem;
  text-align: center;
}

.njt-new-track__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.35);
  padding: 10px 28px;
  border-radius: 100px;
  font-family: var(--font-heading, 'Prompt', sans-serif);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #FFD700;
  margin-bottom: 2rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.njt-new-track__badge-dot {
  width: 8px;
  height: 8px;
  background: #FFD700;
  border-radius: 50%;
  animation: newTrackPulse 2s infinite;
}
@keyframes newTrackPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px #FFD700; }
  50% { opacity: 0.3; box-shadow: 0 0 2px #FFD700; }
}

.njt-new-track__title {
  font-family: var(--font-heading, 'Prompt', sans-serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  color: #fff;
  margin: 0 0 1.5rem;
  text-shadow: 0 4px 40px rgba(0,0,0,0.6);
}
.njt-new-track__title span {
  display: block;
  background: linear-gradient(135deg, var(--gold) 0%, var(--tier-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 20px rgba(255, 215, 0, 0.3));
}

.njt-new-track__subtitle {
  font-family: var(--font-body, 'Bai Jamjuree', sans-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: rgba(255,255,255,0.7);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}

/* ── Responsive ── */

@media (max-width: 767px) {
  .njt-new-track__content {
    padding: 2.5rem 1.5rem;
  }
  .njt-new-track__title {
    font-size: clamp(2.2rem, 9vw, 3.5rem);
  }
}
