/* ═══════════════════════════════════════════════════════════════
   THE CIRCUIT — EEST Circuit flagship page (GOAL-V3 §G2, Batch B)
   Reference implementation of the V3 canonical system.
   Built on tokens.css / layout.css / components.css ONLY — no new dialects.
   Silverstone / F1.com circuit-page register on the plum "Race to Victory" base.
═══════════════════════════════════════════════════════════════ */

/* ── Width Normalization — Match Header (1400px) — HOUSE-RULES §9 (MANDATORY) ── */
.page-the-circuit .container.container--wide {
  padding-left: 32px;
  padding-right: 32px;
}

/* ── Section rhythm ── */
.page-the-circuit .tc-section {
  padding: var(--section-pad) 0;
  position: relative;
}
.page-the-circuit .tc-section--tight { padding: var(--space-7) 0; }

/* Shared media label — used for AI/concept media (none on this page — real assets only) */
.tc-concept-label {
  position: absolute;
  left: var(--space-4);
  bottom: var(--space-4);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(0,0,0,0.62);
  -webkit-backdrop-filter: blur(var(--blur-chip));
  backdrop-filter: blur(var(--blur-chip));
  border: 1px solid rgba(255,255,255,0.18);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-white-80);
}

/* Real-document credibility tag (green-signal, for the engineering survey) */
.tc-real-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(46,125,70,0.16);
  border: 1px solid rgba(46,125,70,0.5);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #5FBF83; /* lighter signal-green for AA on dark plum (derived from --signal-green) */
}
.tc-real-tag svg { width: 14px; height: 14px; }

/* ═══════════════════════════════════════════════════════════════
   1. HERO
═══════════════════════════════════════════════════════════════ */
.tc-hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + var(--space-8)) 0 var(--space-8);
  overflow: hidden;
  isolation: isolate;
}
/* The hero is a flexbox; its container is a flex item that shrinks to content
   max-width below 1024 (measured 624px, content-left 104 vs header 32 — R2 N3c).
   width:100% makes it span the full width up to its own 1400px, matching the header. */
.tc-hero > .container.container--wide { width: 100%; }
.tc-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;   /* the render's track ribbon sits in the upper 2/3 */
  z-index: -3;
}
/* Flyover loop: same layer as the still — the later sibling paints above it,
   the scrim (-2) stays on top of both. */
.tc-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  z-index: -3;
}
@media (prefers-reduced-motion: reduce) {
  .tc-hero__video { display: none; }
}
/* Cinematic plum grade. 2026-08-24 (Option A): right side lightened so the
   golden-hour 3D render reads as imagery, not tint — the copy column keeps
   its full-strength left scrim for AA contrast. */
.tc-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(100deg, rgba(21,0,16,0.94) 0%, rgba(42,0,24,0.72) 42%, rgba(42,0,24,0.12) 100%),
    linear-gradient(180deg, rgba(21,0,16,0.45) 0%, rgba(21,0,16,0) 30%, rgba(21,0,16,0.70) 100%);
}
/* Concept-render provenance tag (GOAL-V3 fact-pack: 3D imagery must carry
   concept-render + target-2027 labeling). */
.tc-hero__render-tag {
  position: absolute;
  right: var(--space-5);
  bottom: var(--space-4);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(21,0,16,0.60);
  border: 1px solid rgba(255,255,255,0.16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--font-heading);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-white-80);
}
.tc-hero__render-tag svg { width: 14px; height: 14px; flex: 0 0 auto; opacity: 0.8; }
.tc-hero__orb {
  position: absolute;
  width: 460px; height: 460px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -2;
  pointer-events: none;
}
.tc-hero__orb--gold   { background: rgba(255,215,0,0.10); top: -120px; right: 8%; }
.tc-hero__orb--magenta{ background: rgba(212,0,121,0.14); bottom: -160px; right: 30%; }

.tc-hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-8);
  align-items: center;
  width: 100%;
}
.tc-hero__copy { max-width: 640px; }

/* Breadcrumb (canonical treatment — matches sitewide hero breadcrumbs) */
.tc-breadcrumb {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-5);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.tc-breadcrumb a { color: rgba(255,215,0,0.85); }
.tc-breadcrumb a:hover { color: var(--gold); }
.tc-breadcrumb__sep { color: var(--text-white-60); }
.tc-breadcrumb__current { color: var(--text-white-60); }

.tc-hero__eyebrow {
  display: block;               /* own line, dropped below the breadcrumb (was inline with it) */
  width: fit-content;
  margin-top: var(--space-4);
  margin-bottom: var(--space-4);
}
/* Drop the leading dash so the kicker text sits flush-left with the title. */
.tc-hero__eyebrow::before { display: none; }

.tc-hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.98;
  font-size: var(--text-display-xl);
  color: var(--text-white);
  margin-bottom: var(--space-4);
  text-shadow: 0 6px 30px rgba(0,0,0,0.5);
}
.tc-hero__title .tc-accent {
  background: var(--magenta-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* Horizontal clip fix (companion to the leading fix below, which solved the
     BASELINE cut). This span is italic, so the final "T" leans past its own advance
     width — but an inline element's background box stops AT that advance. With
     background-clip:text the overhanging ink therefore gets no gradient and the
     letter reads as sliced down its right side. Padding widens the background box
     far enough to cover the lean; the matching negative margin gives the width
     straight back, so wrapping, centring and the 640px copy column are untouched. */
  padding-right: 0.12em;
  margin-right: -0.12em;
}
/* Clip fix: `html[lang] h1` applies --lh-display (EN 1.10), whose line-box does not
   fully contain the italic display glyphs, so the background-clip:text accent
   ("Circuit") is cut at the baseline. This (0,2,1) rule beats that (0,1,1) rule and
   gives the leading enough room. Title is Latin-only, so it's safe in both languages
   and unaffected by the Thai display ink-box floor. */
html[lang] .tc-hero__title { line-height: 1.24; }

.tc-hero__lede {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.7;
  color: var(--text-white-80);
  margin-bottom: var(--space-5);
  max-width: 34em;
}

.tc-chiprow {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.tc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Hero circuit emblem (right column). V4 op-directive: was the survey raster;
   now an inline vector of the same surveyed layout — no image request, no CLS,
   and every stroke is a brand token. 2026-08-24 op-directive: frameless — no
   card box, no caption; the bare ribbon + site boundary float on the hero. */
.tc-hero__showcase {
  position: relative;
  transform: rotate(-1.2deg);
}
.tc-hero__showcase-plate {
  position: relative;
  aspect-ratio: 1055 / 1184;   /* reserves the box before paint — no layout shift */
}
.tc-emblem { width: 100%; height: 100%; display: block; overflow: visible; }
.tc-emblem__site {
  fill: rgba(255,255,255,0.022);
  stroke: rgba(255,255,255,0.16);
  stroke-width: 2.4;
  stroke-dasharray: 12 9;
}
.tc-emblem__apron  { fill: none; stroke: rgba(255,215,0,0.09); stroke-width: 58; stroke-linejoin: round; }
.tc-emblem__ribbon { fill: rgba(255,255,255,0.13); stroke: rgba(255,215,0,0.45); stroke-width: 2; }
.tc-emblem__straight { fill: none; stroke: var(--gold); stroke-width: 56; }
.tc-emblem__sf { fill: url(#tc-geo-chequer); }

/* ═══════════════════════════════════════════════════════════════
   2. SPEC HUD STRIP
═══════════════════════════════════════════════════════════════ */
.tc-hud {
  background: var(--black-deep);
  border-top: 1px solid rgba(255,215,0,0.14);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.tc-hud__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
}
.tc-hud__cell {
  background: var(--black-deep);
  padding: var(--space-6) var(--space-5);
  text-align: center;
}
.tc-hud__value {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
  color: var(--gold);
  letter-spacing: 0.01em;
}
.tc-hud__value .tc-hud__unit {
  font-size: 0.45em;
  font-style: normal;
  font-weight: 700;
  color: var(--text-white-60);
  margin-left: 4px;
}
.tc-hud__label {
  margin-top: var(--space-3);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-white-60);
  line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════════════
   3. TRACK MAP
═══════════════════════════════════════════════════════════════ */
.tc-map { background: var(--bg-gradient-v); }
/* V4 §G8: the 1.35fr/1fr split measured 917px against 593px — the spec ledger was
   squeezed while the plate had room to spare. Balanced to 1.1/1 and top-aligned
   so both columns start on the same line. */
.tc-map__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--space-8);
  align-items: start;
}

/* ═══════════════════════════════════════════════════════════════
   THE CIRCUIT MAP — a vector instrument (V4 operator directive)
   Geometry lives in the shared <defs> at the top of <main>; every colour here
   resolves to a tokens.css value or an opacity ramp derived from one.
═══════════════════════════════════════════════════════════════ */
.tc-geo { position: absolute; width: 0; height: 0; overflow: hidden; }

.tc-cmap { margin: 0; }
.tc-cmap__frame {
  position: relative;
  aspect-ratio: 1055 / 1184;     /* the SVG fills this exactly — no CLS, and the
                                    scale bar below can be sized as a % of it */
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  border-bottom: 0;
  box-shadow: var(--shadow-elevated);
  background:
    radial-gradient(ellipse 76% 54% at 50% 44%, rgba(212,0,121,0.16), transparent 74%),
    linear-gradient(170deg, var(--black-card), var(--black-deep));
}
.tc-cmap__svg { width: 100%; height: 100%; display: block; }

/* ── layers ── */
.tc-cmap__site {
  fill: rgba(255,255,255,0.022);
  stroke: rgba(255,255,255,0.2);
  stroke-width: 2.6;
  stroke-dasharray: 12 9;
}
.tc-cmap__apron  { fill: none; stroke: rgba(255,215,0,0.085); stroke-width: 62; stroke-linejoin: round; }
.tc-cmap__ribbon { fill: rgba(255,255,255,0.11); stroke: rgba(255,255,255,0.32); stroke-width: 1.6; }
.tc-cmap__straight { fill: none; stroke: var(--gold); stroke-width: 56; opacity: 0.92; }
.tc-cmap__chev { fill: none; stroke: var(--racing-plum); stroke-width: 5.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0.55; }
.tc-cmap__sf { fill: url(#tc-geo-chequer); }
.tc-cmap__pit {
  fill: none;
  stroke: var(--magenta-300);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 17 13;
  opacity: 0;
  transition: opacity var(--dur-reveal) var(--ease-out) 1.55s;
}
.tc-cmap.is-visible .tc-cmap__pit { opacity: 0.9; }

/* ── turn markers ── */
.tc-cmap__turn { cursor: pointer; }
.tc-cmap__leader { stroke: rgba(255,215,0,0.45); stroke-width: 2; }
.tc-cmap__apex   { fill: var(--gold); }
.tc-cmap__halo   { fill: none; stroke: var(--gold); stroke-width: 3; opacity: 0; }
.tc-cmap__badge  { fill: var(--black-card); stroke: rgba(255,215,0,0.5); stroke-width: 2.2; }
.tc-cmap__num {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 700;
  fill: var(--gold);
  pointer-events: none;
}
.tc-cmap__leader, .tc-cmap__badge, .tc-cmap__num, .tc-cmap__halo, .tc-cmap__apex {
  transition: fill var(--dur-fast) var(--ease-out),
              stroke var(--dur-fast) var(--ease-out),
              opacity var(--dur-base) var(--ease-out);
}
.tc-cmap__turn:hover .tc-cmap__badge,
.tc-cmap__turn.is-active .tc-cmap__badge { fill: var(--gold); stroke: var(--gold); }
.tc-cmap__turn:hover .tc-cmap__num,
.tc-cmap__turn.is-active .tc-cmap__num { fill: var(--racing-plum); }
.tc-cmap__turn:hover .tc-cmap__leader,
.tc-cmap__turn.is-active .tc-cmap__leader { stroke: var(--gold); }
.tc-cmap__turn.is-active .tc-cmap__halo { opacity: 0.75; }

/* ── the draw-on reveal: a 60-unit-wide stroke of the centre line wipes the
      ribbon in. `.reveal`/`.is-visible` is navigation.js's existing observer,
      which already force-shows under reduced motion and if the observer dies. ── */
.tc-cmap__wipe {
  fill: none;
  stroke: #fff;
  stroke-width: 64;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 6390;
  stroke-dashoffset: 6390;
  transition: stroke-dashoffset 2.3s cubic-bezier(0.22, 0.61, 0.36, 1) 0.12s;
}
.tc-cmap.is-visible .tc-cmap__wipe { stroke-dashoffset: 0; }
.tc-cmap__turns { opacity: 0; transition: opacity var(--dur-reveal) var(--ease-out) 1.75s; }
.tc-cmap.is-visible .tc-cmap__turns { opacity: 1; }

/* ── compact-viewport corner zoom stage ── */
.tc-cmap__stage {
  transform-box: view-box;
  transform-origin: 0 0;
  transition: transform 0.5s var(--ease-out);
}

/* ── scale bar (100 m = 23% of the frame width at this map's derived scale) ── */
.tc-cmap__scale {
  position: absolute;
  left: var(--space-4);
  bottom: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: var(--font-heading);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-white-60);
  transition: opacity var(--dur-base) var(--ease-out);
}
.tc-cmap__scale-bar {
  width: 22.99%;
  min-width: 64px;
  height: 8px;
  border: 1px solid var(--text-white-60);
  border-top: 0;
}
.tc-cmap.is-zoomed .tc-cmap__scale { opacity: 0; }

/* ── legend ── */
.tc-cmap__legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  padding: var(--space-4);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: var(--black-card);
}
.tc-cmap__key {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-white-60);
}
.tc-cmap__sw { flex: 0 0 auto; display: inline-block; }
.tc-cmap__sw--straight { width: 22px; height: 8px; border-radius: 2px; background: var(--gold); }
.tc-cmap__sw--pit { width: 22px; height: 0; border-top: 3px dashed var(--magenta-300); }
.tc-cmap__sw--site { width: 22px; height: 0; border-top: 2px dashed var(--text-white-60); }
.tc-cmap__sw--turn {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,215,0,0.5);
  background: var(--black-deep);
  color: var(--gold);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
}

/* ── right rail: lede + corner picker + spec ledger + provenance ──
   min-width:0 all the way down: the compact chip rail is `flex-wrap:nowrap`, and
   without this its min-content width inflates the grid column and pushes the whole
   section past a 360px viewport. ── */
.tc-map__rail { display: flex; flex-direction: column; gap: var(--space-5); min-width: 0; }
.tc-map__rail > * { min-width: 0; }
.tc-cmap { min-width: 0; }
.tc-map__lede {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.75;
  color: var(--text-white-80);
}
.tc-cmap__picker {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: var(--surface-border);
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(var(--blur-card));
  backdrop-filter: blur(var(--blur-card));
}
.tc-cmap__picker-head {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-white-60);
  margin-bottom: var(--space-3);
}
.tc-cmap__index { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.tc-cmap__chip {
  min-width: 44px;
  padding: 8px 10px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-white-80);
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.tc-cmap__chip:hover { border-color: rgba(255,215,0,0.5); color: var(--gold); }
.tc-cmap__chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.tc-cmap__chip.is-active { background: var(--gold); border-color: var(--gold); color: var(--racing-plum); }
.tc-cmap__chip--all { flex: 1 0 auto; min-width: 96px; }
.tc-cmap__readout {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255,255,255,0.1);
  min-height: 34px;
}
.tc-cmap__readout-t {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 22px;
  line-height: var(--lh-value);
  color: var(--gold);
}
.tc-cmap__readout-t:empty { display: none; }
.tc-cmap__readout-d {
  font-family: var(--font-body);
  font-size: var(--text-small);
  line-height: 1.5;
  color: var(--text-white-80);
}

.tc-cmap__source {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
  padding: var(--space-3);
  text-align: left;
  border-radius: var(--radius-md);
  border: var(--surface-border);
  background: var(--surface-glass);
  transition: border-color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.tc-cmap__source:hover { border-color: rgba(255,215,0,0.4); background: rgba(255,215,0,0.06); }
.tc-cmap__source:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.tc-cmap__source img {
  width: 62px;
  height: 73px;
  flex: 0 0 auto;
  object-fit: cover;
  object-position: 50% 34%;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.16);
}
.tc-cmap__source-body { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; }
.tc-cmap__source-k {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-white-60);
}
.tc-cmap__source-v {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-white);
}
.tc-cmap__source-a {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--gold);
}
.tc-cmap__source .tc-real-tag { flex: 0 0 auto; }

.tc-map__spec {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.tc-map__spec li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.tc-map__spec-k {
  font-family: var(--font-body);
  font-size: var(--text-small);
  color: var(--text-white-60);
}
.tc-map__spec-v {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text-white);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.tc-map__spec-v em {
  font-style: normal;
  color: var(--gold);
}

/* ═══════════════════════════════════════════════════════════════
   4. CONSTRUCTION STATUS
═══════════════════════════════════════════════════════════════ */
.tc-build { background: var(--bg-dark); }
.tc-build__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}
.tc-build__figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: var(--shadow-elevated);
  aspect-ratio: 16 / 11;
}
.tc-build__figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}
/* ── Fade carousel: slides stack in the figure's aspect-ratio box and
      crossfade on a shared 15s cycle (5s per slide, 1s overlap). ── */
.tc-build__figure--carousel .tc-build__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: tc-build-fade 15s linear infinite;
}
.tc-build__figure--carousel .tc-build__slide:nth-child(2) { animation-delay: 5s; }
.tc-build__figure--carousel .tc-build__slide:nth-child(3) { animation-delay: 10s; }
@keyframes tc-build-fade {
  0%      { opacity: 0; }
  6.67%   { opacity: 1; }
  33.33%  { opacity: 1; }
  40%     { opacity: 0; }
  100%    { opacity: 0; }
}
.tc-build__figure-cap {
  position: absolute;
  left: var(--space-4); bottom: var(--space-4);
  z-index: 2;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(0,0,0,0.6);
  -webkit-backdrop-filter: blur(var(--blur-chip));
  backdrop-filter: blur(var(--blur-chip));
  border: 1px solid rgba(255,255,255,0.16);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-white-80);
}
.tc-build__status {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  margin: var(--space-4) 0 var(--space-5);
  padding-left: var(--space-4);
  border-left: 3px solid #F0B429;
}
.tc-build__status-lg {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(20px, 2.4vw, 30px);
  color: #F0B429;
  line-height: 1.05;
}
.tc-build__status-sm {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-white-80);
}
.tc-build__copy {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.75;
  color: var(--text-white-80);
  margin-bottom: var(--space-6);
  max-width: 40em;
}

/* Roadmap timeline (qualitative phases — no invented dates/percentages) */
.tc-timeline {
  list-style: none;
  display: grid;
  gap: 0;
}
.tc-timeline li {
  position: relative;
  padding: 0 0 var(--space-5) var(--space-6);
  border-left: 2px solid rgba(255,255,255,0.12);
}
.tc-timeline li:last-child { padding-bottom: 0; }
.tc-timeline li::before {
  content: '';
  position: absolute;
  left: -8px; top: 2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--black-card);
  border: 2px solid var(--racing-grey);
}
.tc-timeline li[data-state="done"]::before {
  background: var(--signal-green);
  border-color: var(--signal-green);
}
.tc-timeline li[data-state="active"] {
  border-left-color: rgba(240,180,41,0.5);
}
.tc-timeline li[data-state="active"]::before {
  background: #F0B429;
  border-color: #F0B429;
  box-shadow: 0 0 0 4px rgba(240,180,41,0.15);
}
.tc-timeline__phase {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.tc-timeline__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-white);
}
.tc-timeline__badge {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}
.tc-timeline__badge[data-b="done"]   { color: #5FBF83; background: rgba(46,125,70,0.16); border: 1px solid rgba(46,125,70,0.45); }
.tc-timeline__badge[data-b="active"] { color: #F0B429; background: rgba(212,148,10,0.14); border: 1px solid rgba(212,148,10,0.5); }
.tc-timeline__badge[data-b="next"]   { color: var(--text-white-60); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); }
.tc-timeline__badge[data-b="target"] { color: var(--gold); background: var(--gold-dim); border: 1px solid rgba(255,215,0,0.35); }
.tc-timeline__note {
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: var(--text-small);
  color: var(--text-white-60);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════
   5. ONE COMPLEX — RACE · STAY · DINE
═══════════════════════════════════════════════════════════════ */
.tc-complex { background: var(--bg-gradient-v); }
.tc-complex__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}
.tc-xcard {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-feature);
  -webkit-backdrop-filter: blur(var(--blur-card));
  backdrop-filter: blur(var(--blur-card));
  border: 1px solid rgba(255,215,0,0.15);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.tc-xcard:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255,215,0,0.4);
}
.tc-xcard__media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.tc-xcard__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-reveal) var(--ease-out);
}
.tc-xcard:hover .tc-xcard__media img { transform: scale(1.05); }
.tc-xcard__kind {
  position: absolute;
  top: var(--space-3); left: var(--space-3);
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  color: #000;
  background: var(--btn-primary-bg);
}
.tc-xcard__open {
  position: absolute;
  bottom: var(--space-3); left: var(--space-3);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: rgba(0,0,0,0.62);
  -webkit-backdrop-filter: blur(var(--blur-chip));
  backdrop-filter: blur(var(--blur-chip));
  border: 1px solid rgba(255,255,255,0.16);
  color: var(--text-white-80);
}
/* Live "open" indicator dot (green, static — distinct from the amber pulsing status dot) */
.tc-dot-live {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--signal-green);
  flex-shrink: 0;
}

.tc-xcard__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--space-5);
}
.tc-xcard__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-h3);
  color: var(--text-white);
  margin-bottom: var(--space-2);
}
.tc-xcard__desc {
  font-family: var(--font-body);
  font-size: var(--text-small);
  line-height: 1.6;
  color: var(--text-white-80);
  margin-bottom: var(--space-4);
  flex: 1;
}
.tc-xcard__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: auto;
}
.tc-xcard__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--gold);
}
.tc-xcard__link svg { width: 16px; height: 16px; transition: transform var(--dur-base) var(--ease-out); }
.tc-xcard__link:hover svg { transform: translateX(4px); }
.tc-xcard__link:hover { color: var(--text-white); }
.tc-xcard__meta {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-white-60);
}

.tc-complex__where {
  margin-top: var(--space-6);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-white-60);
}
.tc-complex__where svg { width: 18px; height: 18px; color: var(--gold); }

/* ═══════════════════════════════════════════════════════════════
   6. STANDARDS LINE
═══════════════════════════════════════════════════════════════ */
.tc-standards { background: var(--bg-dark); }
.tc-standards__band {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-7);
  border-radius: var(--radius-lg);
  background: var(--surface-feature);
  border: 1px solid rgba(255,215,0,0.2);
}
.tc-standards__icon {
  flex-shrink: 0;
  width: 64px; height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1px solid rgba(255,215,0,0.35);
}
.tc-standards__icon svg { width: 30px; height: 30px; color: var(--gold); }
.tc-standards__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(19px, 2.2vw, 26px);
  color: var(--text-white);
  line-height: 1.35;
  margin-bottom: var(--space-2);
}
.tc-standards__title strong { color: var(--gold); font-weight: 800; }
.tc-standards__sub {
  font-family: var(--font-body);
  font-size: var(--text-small);
  color: var(--text-white-60);
  line-height: 1.6;
  max-width: 60ch;
}

/* ═══════════════════════════════════════════════════════════════
   7. SPONSOR TEASER
═══════════════════════════════════════════════════════════════ */
.tc-sponsor { background: var(--bg-gradient-v); }
.tc-sponsor__band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-7);
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(212,0,121,0.28), transparent 55%),
    var(--black-card);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.tc-sponsor__lede { max-width: 60ch; }
.tc-sponsor__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(22px, 2.8vw, 34px);
  color: var(--text-white);
  line-height: 1.2;      /* Thai wrapped-heading floor (LESSONS #2) */
  margin-bottom: var(--space-3);
}
.tc-sponsor__text {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--text-white-80);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   8. INTENT-CAPTURE CTA
═══════════════════════════════════════════════════════════════ */
.tc-cta {
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
  text-align: center;
}
.tc-cta__orb {
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  filter: blur(140px);
  background: rgba(255,215,0,0.08);
  top: -220px; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.tc-cta__inner { position: relative; max-width: 720px; margin: 0 auto; }
.tc-cta__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.2;      /* Thai wrapped-heading floor (LESSONS #2) */
  color: var(--text-white);
  margin-bottom: var(--space-4);
}
.tc-cta__copy {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--text-white-80);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}
.tc-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-bottom: var(--space-4);
}
.tc-cta__note {
  font-family: var(--font-body);
  font-size: var(--text-small);
  color: var(--text-white-60); /* ~7:1 on --bg-dark — AA (was --text-white-40 ≈3.65:1, failed) */
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .tc-hero__inner { grid-template-columns: 1fr; gap: var(--space-7); }
  .tc-hero__showcase { max-width: 560px; transform: rotate(0deg); }
  .tc-map__layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .tc-cmap { max-width: 620px; }
  .tc-build__layout { grid-template-columns: 1fr; gap: var(--space-6); }
  .tc-complex__grid { grid-template-columns: repeat(2, 1fr); }
}
/* ── Compact viewports: 21 legible labels do not fit on a 296px-wide map.
      The numbers are hidden and the picker zooms the stage to the chosen corner
      instead — progressive disclosure rather than unreadable 6px type. ── */
@media (max-width: 899px) {
  .tc-cmap__turn .tc-cmap__leader,
  .tc-cmap__turn .tc-cmap__badge,
  .tc-cmap__turn .tc-cmap__num { opacity: 0; }
  .tc-cmap__turn.is-active .tc-cmap__leader,
  .tc-cmap__turn.is-active .tc-cmap__badge,
  .tc-cmap__turn.is-active .tc-cmap__num { opacity: 1; }
  .tc-cmap__index { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
  .tc-cmap__chip { flex: 0 0 auto; }
  .tc-cmap__chip--all { order: -1; min-width: 88px; }
  .tc-cmap__legend { gap: var(--space-2) var(--space-4); }
}
@media (max-width: 768px) {
  .tc-hero { min-height: 0; padding-top: calc(var(--header-h) + var(--space-6)); }
  .page-the-circuit .tc-section { padding: var(--section-pad-mob) 0; }
  .tc-hud__grid { grid-template-columns: repeat(2, 1fr); }
  .tc-complex__grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .tc-standards__band { flex-direction: column; text-align: center; gap: var(--space-4); }
  .tc-standards__sub { max-width: none; }
  .tc-sponsor__band { flex-direction: column; text-align: center; align-items: flex-start; }
}
@media (max-width: 560px) {
  /* Source card: thumbnail + label keep the first row, the credibility tag drops
     to its own row rather than crushing the label to two words per line. */
  .tc-cmap__source { flex-wrap: wrap; }
  .tc-cmap__source-body { flex: 1 1 130px; }
  .tc-cmap__source .tc-real-tag { order: 3; }
}
@media (max-width: 480px) {
  .tc-hud__grid { grid-template-columns: 1fr; }
  .tc-hero__actions .btn-cta,
  .tc-cta__actions .btn-cta { width: 100%; justify-content: center; }
  .tc-hero__actions, .tc-cta__actions { width: 100%; }
}

/* ── Reduced motion — honor sitewide (HOUSE-RULES §10/§11) ── */
@media (prefers-reduced-motion: reduce) {
  /* Map: no wipe, no stage tween, no marker fade — the finished state, instantly. */
  .tc-cmap__wipe { transition: none; stroke-dashoffset: 0; }
  .tc-cmap__turns { transition: none; opacity: 1; }
  .tc-cmap__pit { transition: none; opacity: 0.9; }
  .tc-cmap__stage { transition: none; }
  .tc-cmap__leader, .tc-cmap__badge, .tc-cmap__num, .tc-cmap__halo, .tc-cmap__apex,
  .tc-cmap__chip, .tc-cmap__source, .tc-cmap__scale { transition: none; }
  .tc-xcard, .tc-xcard__media img { transition: none; }
  .tc-xcard:hover { transform: none; }
  .tc-xcard:hover .tc-xcard__media img { transform: none; }
  /* Build carousel: no crossfade — hold the first slide. */
  .tc-build__figure--carousel .tc-build__slide { animation: none; }
  .tc-build__figure--carousel .tc-build__slide:first-child { opacity: 1; }
}
