/**
 * TimingTech elite reusable primitives (WEB-034, activation prompt Section
 * G). Ten component classes built entirely on the token layer in
 * style.css -- no page-specific one-off CSS duplicated here. WEB-035/036/037
 * compose pages FROM these classes rather than each shipping its own
 * <style> block of near-duplicate card/panel/CTA rules, which is the exact
 * "over-cardification" / "repeated layout" problem WEB-034's own audit
 * (see WEB-034_ELITE_VISUAL_BENCHMARK.md Section 1) found in the current
 * front-page.php / sitewide-content.css.
 *
 * Loaded sitewide (see inc/enqueue.php) since every remaining WEB-035/036/037
 * module uses at least a few of these. Motion hooks (data-tt-reveal,
 * data-tt-parallax, data-tt-tilt, etc.) are supplied by tt-motion.js; this
 * file only owns the visual/static state, never JS behavior.
 */

/* ==========================================================================
   0. Utilities: surfaces, texture, glass
   ========================================================================== */

.tt-surface-obsidian { background: var(--tt-color-obsidian); }
.tt-surface-charcoal { background: var(--tt-color-charcoal); }
.tt-surface-graphite { background: var(--tt-color-graphite); }
.tt-surface-gunmetal { background: var(--tt-color-bg-elevated-2); }

/* Subtle grain -- an inline SVG feTurbulence data-URI, not a downloaded
   texture file, so it costs no HTTP request and never needs a licensed
   asset. Applied as a low-opacity overlay, never a full background. */
.tt-noise-overlay {
	position: relative;
}
.tt-noise-overlay::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0.04;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
	background-size: 180px 180px;
}

.tt-glass {
	background: rgba(25, 28, 32, 0.72);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.tt-metallic-edge {
	position: relative;
}
.tt-metallic-edge::after {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 1px;
	background: var(--tt-gradient-metal-edge);
	pointer-events: none;
}

/* Numeric display -- tabular figures so stat values don't jitter width as
   count-up animation runs (data-tt-count-to in tt-motion.js). */
.tt-numeric {
	font-family: var(--tt-font-numeric);
	font-variant-numeric: tabular-nums;
	font-feature-settings: 'tnum' 1;
}

/* ==========================================================================
   0b. Sitewide layout/button/CTA primitives -- WEB-035: moved here from
   front-page.php's own inline <style> block (where they originated in
   WEBSITE-TRANCHE-004) so the new service-page templates
   (page-bmw-tuning.php etc.) reuse ONE definition instead of each carrying
   a near-duplicate copy -- the same "reusable layout primitive, not 12
   near-duplicate templates" discipline sitewide-content.css itself was
   built on.
   ========================================================================== */

.tt-container { max-width: 1200px; margin: 0 auto; padding: 0 var(--tt-space-5); }
.tt-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Independent-review finding, confirmed live: Blocksy's own combined-CSS
   bundle carries a `.button,.ct-button,...,[type=submit],...{min-height:
   var(--theme-button-min-height)}` rule (40px) at equal (0,1,0) specificity
   to this class selector, source-ordered AFTER it in the SiteGround
   Optimizer combine -- so on any `.tt-btn` that also happens to match
   `[type=submit]` (the configurator/intake wizard's own real submit
   buttons), Blocksy's rule won the tie and rendered a 40px button below the
   accessibility floor, on this round's own single biggest CTA. `!important`
   here, matching this codebase's own established fix pattern for exactly
   this class of Blocksy-combined-CSS specificity fight (see
   assets/css/sitewide-content.css's `.ct-header .sub-menu` rule). */
.tt-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: var(--tt-space-2); font-family: var(--tt-font-display); font-weight: 600; font-size: var(--tt-text-base);
	padding: var(--tt-space-3) var(--tt-space-5); min-height: 44px !important; box-sizing: border-box; border-radius: var(--tt-radius-sm); text-decoration: none; cursor: pointer; border: 1px solid transparent;
	transition: transform var(--tt-duration-fast) var(--tt-ease-standard), box-shadow var(--tt-duration-fast) var(--tt-ease-standard);
}
.tt-btn:hover { transform: translateY(-1px); }
.tt-btn-primary { background: var(--tt-color-accent); color: #0b0c0e; }
.tt-btn-primary:hover { box-shadow: var(--tt-shadow-glow-accent); }
.tt-btn-secondary { background: transparent; color: var(--tt-color-text); border-color: var(--tt-color-border-metallic); }
.tt-btn-text { color: var(--tt-color-accent); padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.tt-btn:focus-visible { outline: 2px solid var(--tt-color-accent); outline-offset: 2px; }
.tt-btn-block { display: flex; justify-content: center; text-align: center; margin-top: var(--tt-space-3); }
.tt-btn-row { display: flex; gap: var(--tt-space-3); flex-wrap: wrap; }

/* WEBSITE-TRANCHE-015 (owner video review, Section 3/6): was --tt-space-9
   (now 68px post-rescale, previously 96px) on every single one of the
   dozen-plus sections most pages stack -- the repeated section-padding
   doctrine the owner's own narrated recording flagged as the biggest single
   contributor to "browsing at excessive zoom." --tt-space-8 (56px) is still
   comfortably inside the prompt's own 48-68px normal-section-padding range,
   just no longer at its ceiling on every section. */
.tt-section { padding: var(--tt-space-8) 0; }
.tt-section.on-charcoal { background: var(--tt-color-charcoal); }
.tt-section.on-obsidian { background: var(--tt-color-obsidian); }
.tt-section.on-graphite { background: var(--tt-color-graphite); }

/* WEBSITE-TRANCHE-015 owner custom-build repair (Section 26): ~24%
   shorter (56px -> 44px vertical padding) and a tighter heading (24px ->
   16px margin-bottom) -- same real per-page copy/CTAs, no new duplicate
   band added anywhere that already has an identical CTA immediately
   above it. */
.tt-cta-band { position: relative; background: var(--tt-color-charcoal); border-top: 1px solid var(--tt-color-border); padding: var(--tt-space-7) 0; text-align: center; overflow: hidden; }
.tt-cta-band::before { content: ""; position: absolute; inset: 0; background: var(--tt-gradient-radial-glow); opacity: 0.6; }
.tt-cta-band.is-heat::before { background: var(--tt-gradient-radial-heat); }
.tt-cta-band .tt-container { position: relative; }
.tt-cta-band h2 { font-family: var(--tt-font-display); font-size: var(--tt-text-4xl); margin: 0 0 var(--tt-space-4); color: var(--tt-color-text); }

/* --- Service-page hero (WEB-035: BMW Tuning / MHD / Standalone ECU /
   Dealer File Service / Dealer Services). One shared hero shell, distinct
   mood per service via .is-heat / .is-violet, real title/copy passed in by
   each page-{slug}.php template -- never a rewritten headline. --- */
/* WEBSITE-TRANCHE-015 (owner video review, Section 3): was
   --tt-space-10/--tt-space-8 (80px/56px post-rescale, previously
   128px/64px) -- every service-page hero on the site paid this padding on
   top of its own already-large h1, before any real page content appeared. */
.tt-service-hero {
	position: relative;
	padding: var(--tt-space-8) 0 var(--tt-space-6);
	overflow: hidden;
	background: var(--tt-color-obsidian);
	border-bottom: 1px solid var(--tt-color-border);
}
.tt-service-hero::before {
	content: "";
	position: absolute; inset: 0;
	background: var(--tt-gradient-radial-glow);
}
.tt-service-hero.is-heat::before { background: var(--tt-gradient-radial-heat); }
.tt-service-hero.is-violet::before { background: radial-gradient(circle at 70% 25%, rgba(106, 92, 255, 0.16), transparent 60%); }
.tt-service-hero .tt-container { position: relative; z-index: var(--tt-z-raised); }
.tt-service-hero .tt-eyebrow { display: inline-block; margin-bottom: var(--tt-space-4); }
.tt-service-hero h1 {
	font-family: var(--tt-font-display);
	font-size: var(--tt-text-5xl);
	line-height: var(--tt-leading-tight);
	max-width: 20ch;
	margin: 0 0 var(--tt-space-4);
	color: var(--tt-color-text);
}
.tt-service-hero .tt-lead { color: var(--tt-color-text-muted); font-size: var(--tt-text-lg); max-width: 62ch; margin: 0 0 var(--tt-space-6); }
.tt-service-hero-media {
	position: absolute; inset: 0;
	z-index: var(--tt-z-base);
	opacity: 0.28;
}
.tt-service-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.tt-service-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,12,14,0.4) 0%, rgba(11,12,14,0.97) 85%); }

/* WEBSITE-TRANCHE-015 owner custom-build repair (Section 12): the BMW
   Tuning hub's decorative M-badge slot -- see page-bmw-tuning.php's own
   comment for why this renders nothing until a real, owner-approved asset
   URL is set on `--tt-bmw-m-badge-image` (inline style or a future
   owner-content field), never a fabricated/scraped placeholder image.
   Large but subtle, tilted to evoke the real mark's own slash geometry
   without drawing an imitation of it, positioned behind the hero content
   (z-index below `.tt-container`) so it never competes with the heading or
   platform rail. Decorative only -- aria-hidden, no accessible content. */
.tt-bmw-hub-hero-wrap {
	position: relative;
	overflow: hidden;
}
.tt-bmw-m-badge-slot {
	position: absolute;
	top: 0;
	right: 0;
	width: min(46vw, 620px);
	aspect-ratio: 1;
	z-index: var(--tt-z-base);
	background-image: var(--tt-bmw-m-badge-image, none);
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	opacity: 0.14;
	transform: rotate(-8deg);
	pointer-events: none;
}
@media (max-width: 960px) {
	.tt-bmw-m-badge-slot { width: min(70vw, 420px); }
}

@media (max-width: 640px) {
	.tt-service-hero h1 { font-size: var(--tt-text-3xl); }
	.tt-cta-band h2 { font-size: var(--tt-text-3xl); }
}

/* ==========================================================================
   1. Motion-aware image wrapper -- the base every photo/evidence asset sits
      in. Locks an aspect ratio (so real photos of very different native
      sizes -- see WEB-034_MEDIA_ART_DIRECTION_MAP.md -- present
      consistently), provides the mask target for data-tt-reveal="media",
      and the depth edge/gradient that turns a raw photo into a "treated"
      one without any new asset.
   ========================================================================== */

.tt-media-wrap {
	position: relative;
	overflow: hidden;
	border-radius: var(--tt-radius-lg);
	background: var(--tt-color-graphite);
	aspect-ratio: var(--tt-media-ratio, var(--tt-ratio-card));
	will-change: clip-path;
}
.tt-media-wrap img,
.tt-media-wrap video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.tt-media-wrap::after {
	/* depth edge -- a soft inner shadow so every photo reads as "placed",
	   not pasted flat on the page */
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 -40px 60px -20px rgba(0, 0, 0, 0.55);
	pointer-events: none;
}
.tt-media-wrap[data-tt-tilt] { transform-style: preserve-3d; }

/* Ratio modifiers -- set --tt-media-ratio per instance rather than adding a
   parallel class for every ratio in the token scale. */
.tt-media-wrap.is-hero { --tt-media-ratio: var(--tt-ratio-hero); }
.tt-media-wrap.is-wide { --tt-media-ratio: var(--tt-ratio-wide); }
.tt-media-wrap.is-portrait { --tt-media-ratio: var(--tt-ratio-portrait); }
.tt-media-wrap.is-square { --tt-media-ratio: var(--tt-ratio-square); }

/* ==========================================================================
   2. Full-panel link -- the entire visual panel IS the interactive element
      (activation prompt Section 13: "whole panels clickable" replacing
      repeated "Learn More" buttons). One reusable pattern for services,
      platforms, and any other "destination" card.
   ========================================================================== */

/* WEBSITE-TRANCHE-015 (owner video review, Section 3/5): was 320px --
   the shared card primitive behind the homepage's Core Services grid and
   every other "panel as destination" card sitewide, real measurement
   confirmed non-hero cards were each consuming a large fraction of a
   1440x900 viewport at this height. 220px keeps the media/scrim/body
   composition legible while letting Core Services read as "one compact
   row," per the prompt's own explicit instruction. */
.tt-panel-link {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 220px;
	border-radius: var(--tt-radius-lg);
	overflow: hidden;
	text-decoration: none;
	color: var(--tt-color-text);
	background: var(--tt-color-graphite);
	border: 1px solid var(--tt-color-border);
	padding: var(--tt-space-5);
	transition: transform var(--tt-duration-base) var(--tt-ease-standard), border-color var(--tt-duration-base) var(--tt-ease-standard), box-shadow var(--tt-duration-base) var(--tt-ease-standard);
}
.tt-panel-link:hover,
.tt-panel-link:focus-visible {
	transform: translateY(-4px);
	border-color: var(--tt-color-border-metallic);
	box-shadow: var(--tt-shadow-3);
}
.tt-panel-link:focus-visible {
	outline: 2px solid var(--tt-color-accent);
	outline-offset: 3px;
}
.tt-panel-link .tt-panel-media {
	position: absolute;
	inset: 0;
	z-index: var(--tt-z-base);
}
.tt-panel-link .tt-panel-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--tt-duration-slow) var(--tt-ease-decelerate);
}
.tt-panel-link:hover .tt-panel-media img { transform: scale(1.05); }

/* WEBSITE-TRANCHE-011 owner-control continuation: optional second "hover
   image" per card (inc/content-config.php `hover_image_id`). Both layers
   stack exactly on top of each other via position:absolute so the crossfade
   never causes layout shift; `.tt-panel-media-base` gets the same explicit
   absolute positioning as its hover sibling for the same reason, even
   though it previously relied on being the media div's only child. Desktop
   hover only (pointer:fine) -- touch keeps the base image, per the
   governing prompt's own instruction. */
.tt-panel-link .tt-panel-media-base,
.tt-panel-link .tt-panel-media-hover {
	position: absolute;
	inset: 0;
}
.tt-panel-link .tt-panel-media-hover {
	opacity: 0;
	transition: opacity var(--tt-duration-slow) var(--tt-ease-standard), transform var(--tt-duration-slow) var(--tt-ease-decelerate);
}
@media (hover: hover) and (pointer: fine) {
	.tt-panel-link.has-hover-media:hover .tt-panel-media-hover {
		opacity: 1;
	}
}
@media (prefers-reduced-motion: reduce) {
	.tt-panel-link .tt-panel-media-hover { transition: none; }
}
.tt-panel-link .tt-panel-scrim {
	position: absolute;
	inset: 0;
	z-index: var(--tt-z-base);
	background: linear-gradient(180deg, rgba(11,12,14,0.15) 0%, rgba(11,12,14,0.92) 100%);
}
.tt-panel-link .tt-panel-body {
	position: relative;
	z-index: var(--tt-z-raised);
}
.tt-panel-link .tt-panel-eyebrow {
	display: block;
	font-family: var(--tt-font-display);
	font-size: var(--tt-text-xs);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--tt-color-accent);
	margin-bottom: var(--tt-space-2);
}
.tt-panel-link h3 {
	font-family: var(--tt-font-display);
	font-size: var(--tt-text-2xl);
	margin: 0 0 var(--tt-space-2);
	color: var(--tt-color-text);
}
.tt-panel-link p {
	color: var(--tt-color-text-muted);
	margin: 0 0 var(--tt-space-3);
	max-width: 42ch;
}
.tt-panel-link .tt-panel-arrow {
	display: inline-flex;
	align-items: center;
	gap: var(--tt-space-2);
	font-family: var(--tt-font-display);
	font-weight: 600;
	font-size: var(--tt-text-sm);
	color: var(--tt-color-text);
}
.tt-panel-link .tt-panel-arrow svg { transition: transform var(--tt-duration-base) var(--tt-ease-standard); width: 16px; height: 16px; }
.tt-panel-link:hover .tt-panel-arrow svg { transform: translateX(4px); }

/* No-photo variant -- used where WEB-034_MEDIA_ART_DIRECTION_MAP.md confirms
   no real photo exists yet: a graduated gradient + noise stands in honestly
   instead of a missing/broken image. */
.tt-panel-link.is-graphic .tt-panel-media {
	background: var(--tt-gradient-radial-glow), var(--tt-color-charcoal);
}
.tt-panel-link.is-graphic.is-heat .tt-panel-media {
	background: var(--tt-gradient-radial-heat), var(--tt-color-charcoal);
}
.tt-panel-link.is-graphic.is-violet .tt-panel-media {
	background: radial-gradient(circle at 70% 25%, rgba(106, 92, 255, 0.18), transparent 60%), var(--tt-color-charcoal);
}

/* ==========================================================================
   3. Platform panel -- tt-panel-link specialization for the BMW platform
      rail (B48/B58/S55/S58/S63-S68). Adds a fixed-width rail item shape and
      a one-line tuner-insight slot.
   ========================================================================== */

/* WEBSITE-TRANCHE-015 (owner video review, Section 6): compressed from
   280x380 -- the BMW platform rail is the site's primary "product entry"
   surface (bmw-platform-rail.php's own header comment) and needs to stay
   substantial, but at the previous size six of these plus their surrounding
   section padding alone approached a full 1440x900 viewport. */
.tt-platform-panel {
	min-width: 240px;
	min-height: 280px;
	scroll-snap-align: start;
}
.tt-platform-panel .tt-platform-code {
	font-family: var(--tt-font-display);
	font-size: var(--tt-text-4xl);
	font-weight: 700;
	line-height: 1;
	margin: 0 0 var(--tt-space-3);
}
.tt-platform-panel .tt-tuner-insight {
	font-size: var(--tt-text-sm);
	color: var(--tt-color-text-muted);
	border-left: 2px solid var(--tt-color-accent);
	padding-left: var(--tt-space-3);
	margin: var(--tt-space-3) 0 0;
}

.tt-platform-rail {
	display: flex;
	gap: var(--tt-space-4);
	overflow-x: auto;
	scroll-snap-type: x proximity;
	padding-bottom: var(--tt-space-3);
	scrollbar-width: thin;
	scrollbar-color: var(--tt-color-border-metallic) transparent;
}
.tt-platform-rail:focus-within,
.tt-platform-rail { scroll-padding-left: var(--tt-space-5); }

/* ==========================================================================
   3b. Compact horizontal process bar -- WEBSITE-TRANCHE-015 owner-directed
       recomposition (Section 7.3/9.7): replaces a tall vertical numbered-
       step block with one real-time-progressing horizontal bar, shared by
       the BMW Tuning hub and Standalone/Motorsport pages
       (inc/process-bar.php + assets/js/process-bar.js). The active step
       advances slowly on its own to demonstrate the real workflow; reduced-
       motion gets a fully static bar (no step ever highlights) per the
       governing prompt's own explicit instruction.
   ========================================================================== */

.tt-process-bar-wrap { display: flex; flex-direction: column; align-items: center; gap: var(--tt-space-5); }
.tt-process-bar {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 0;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
	width: 100%;
}
.tt-process-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--tt-space-2);
	flex: 1 1 0;
	min-width: 110px;
	max-width: 180px;
	text-align: center;
	position: relative;
	padding: 0 var(--tt-space-2);
}
.tt-process-step:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 17px;
	left: calc(50% + 24px);
	right: calc(-50% + 24px);
	height: 1px;
	background: var(--tt-color-border-metallic);
}
.tt-process-step-num {
	width: 34px; height: 34px;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	border: 1px solid var(--tt-color-border-metallic);
	background: var(--tt-color-graphite);
	font-family: var(--tt-font-display);
	font-weight: 700;
	font-size: var(--tt-text-sm);
	color: var(--tt-color-text-muted);
	position: relative;
	z-index: 1;
	transition: background var(--tt-duration-base) var(--tt-ease-standard), border-color var(--tt-duration-base) var(--tt-ease-standard), color var(--tt-duration-base) var(--tt-ease-standard);
}
.tt-process-step-label {
	font-size: var(--tt-text-sm);
	color: var(--tt-color-text-muted);
	transition: color var(--tt-duration-base) var(--tt-ease-standard);
}
.tt-process-step.is-done .tt-process-step-num { border-color: var(--tt-color-accent); color: var(--tt-color-accent); }
.tt-process-step.is-active .tt-process-step-num { background: var(--tt-color-accent); border-color: var(--tt-color-accent); color: #0b0c0e; }
.tt-process-step.is-active .tt-process-step-label { color: var(--tt-color-text); font-weight: 600; }
.tt-process-bar-cta { flex-shrink: 0; }

@media (max-width: 720px) {
	.tt-process-bar { justify-content: flex-start; overflow-x: auto; }
	.tt-process-step { min-width: 90px; }
}

/* ==========================================================================
   4. Editorial quote / tuner note
   ========================================================================== */

.tt-quote {
	position: relative;
	max-width: 62ch;
	margin: 0 auto;
	padding: 0 0 0 var(--tt-space-6);
}
.tt-quote::before {
	content: "\201C";
	position: absolute;
	left: 0;
	top: -0.2em;
	font-family: var(--tt-font-display);
	font-size: var(--tt-text-6xl);
	line-height: 1;
	color: var(--tt-color-accent);
	opacity: 0.5;
}
.tt-quote blockquote {
	margin: 0;
	font-family: var(--tt-font-display);
	font-size: var(--tt-text-2xl);
	line-height: var(--tt-leading-snug);
	color: var(--tt-color-text-warm);
}
.tt-quote cite {
	display: block;
	margin-top: var(--tt-space-4);
	font-style: normal;
	font-size: var(--tt-text-sm);
	color: var(--tt-color-text-faint);
}

.tt-tuner-note {
	background: var(--tt-color-graphite);
	border-left: 3px solid var(--tt-color-accent);
	border-radius: 0 var(--tt-radius-md) var(--tt-radius-md) 0;
	padding: var(--tt-space-4) var(--tt-space-5);
}
.tt-tuner-note .tt-tuner-note-label {
	display: block;
	font-family: var(--tt-font-display);
	font-size: var(--tt-text-xs);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--tt-color-accent);
	margin-bottom: var(--tt-space-2);
}
.tt-tuner-note p { margin: 0; color: var(--tt-color-text-muted); }
.tt-tuner-note.is-heat { border-left-color: var(--tt-color-accent-heat); }
.tt-tuner-note.is-heat .tt-tuner-note-label { color: var(--tt-color-accent-heat); }

/* ==========================================================================
   5. Performance stat
   ========================================================================== */

.tt-stat-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: var(--tt-space-5);
}
.tt-stat {
	text-align: left;
}
.tt-stat .tt-stat-value {
	font-family: var(--tt-font-numeric);
	font-variant-numeric: tabular-nums;
	font-size: var(--tt-text-4xl);
	font-weight: 700;
	color: var(--tt-color-text);
	line-height: 1;
}
.tt-stat .tt-stat-value .tt-stat-unit {
	font-size: var(--tt-text-lg);
	color: var(--tt-color-accent);
	font-weight: 600;
	margin-left: var(--tt-space-1);
}
.tt-stat .tt-stat-label {
	display: block;
	margin-top: var(--tt-space-2);
	font-size: var(--tt-text-sm);
	color: var(--tt-color-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* ==========================================================================
   6. Immersive section header
   ========================================================================== */

.tt-section-header {
	max-width: 62ch;
	/* WEBSITE-TRANCHE-015 (owner video review, Section 3): was --tt-space-7
	   (44px post-rescale, previously 48px) -- tightened further to
	   --tt-space-6 (32px), inside the prompt's 16-28px-ish header-to-content
	   gap intent; every section on the site opens with one of these. */
	margin: 0 0 var(--tt-space-6);
}
.tt-section-header .tt-eyebrow {
	display: inline-block;
	font-family: var(--tt-font-display);
	font-size: var(--tt-text-xs);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--tt-color-accent);
	margin-bottom: var(--tt-space-3);
}
.tt-section-header h2 {
	font-family: var(--tt-font-display);
	font-size: var(--tt-text-4xl);
	line-height: var(--tt-leading-tight);
	margin: 0 0 var(--tt-space-3);
	color: var(--tt-color-text);
}
.tt-section-header p {
	color: var(--tt-color-text-muted);
	font-size: var(--tt-text-lg);
	margin: 0;
}
.tt-section-header.is-split {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: var(--tt-space-5);
	max-width: none;
	flex-wrap: wrap;
}
.tt-section-header .tt-section-link {
	color: var(--tt-color-accent);
	text-decoration: none;
	font-weight: 600;
	font-size: var(--tt-text-sm);
	white-space: nowrap;
}
.tt-section-header .tt-section-link:hover { text-decoration: underline; }

/* ==========================================================================
   7. Evidence strip -- premium treatment for the real dyno/datalog/Dragy
      library (see WEB-034_MEDIA_ART_DIRECTION_MAP.md). Replaces the plain
      .tt-evidence-grid card pattern audited as "zero art direction."
   ========================================================================== */

/* WEBSITE-TRANCHE-015 owner-directed recomposition (Section 6.6): the owner
   asked for the Real Results block's overall visual height reduced ~20-25%
   without removing the block or its evidence. This class is homepage-only
   (the Results/BMW hub/MHD evidence sections all use the separate
   .tt-evidence-grid component, inc/evidence-grid-lightbox.php), so this
   change is fully scoped to the homepage.

   Independent-review finding, confirmed by direct measurement: the first
   attempt at this (shrinking the grid's own minmax minimum from 260px to
   200px) was a real no-op -- `.tt-evidence-strip` sits inside
   `.tt-evidence-quote-row`'s own ~570px column (a 1.1fr/1fr split with the
   editorial quote beside it), where `auto-fill` already produces exactly 2
   columns at both 260px and 200px, and `1fr` stretches each card to fill
   the row regardless of the stated minimum -- the measured card actually
   got very slightly WIDER, not narrower, and the section height dropped a
   measured ~1.8%, nowhere near the requested 20-25%. The minmax value here
   is restored to the original 260px (its actual, real effect is
   negligible either way) and the real lever is below: the image itself is
   forced to a shorter aspect ratio than the sitewide default `.is-square`,
   which is what was actually driving this card's height. */
.tt-evidence-strip {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: var(--tt-space-3);
}
/* The real height lever: 3:2 instead of the sitewide default 1:1 square
   (front-page.php assigns `.is-square` to every non-Dragy evidence item) --
   a real, measurable ~33% shorter image at any given rendered width, the
   dominant component of this card's total height. Scoped to this one
   homepage-only strip; every other page's evidence cards (BMW hub/MHD/
   Results, all through the separate .tt-evidence-grid component) keep
   their own existing square/portrait ratios untouched. */
.tt-evidence-strip .tt-media-wrap.is-square { aspect-ratio: 3 / 2; }
.tt-evidence-item {
	position: relative;
	border-radius: var(--tt-radius-lg);
	overflow: hidden;
	background: var(--tt-color-graphite);
	border: 1px solid var(--tt-color-border);
}
.tt-evidence-item .tt-media-wrap { border-radius: 0; }
.tt-evidence-item .tt-evidence-type {
	position: absolute;
	top: var(--tt-space-3);
	left: var(--tt-space-3);
	z-index: var(--tt-z-raised);
	background: rgba(11, 12, 14, 0.75);
	backdrop-filter: blur(4px);
	color: var(--tt-color-accent);
	font-family: var(--tt-font-display);
	font-size: var(--tt-text-xs);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 700;
	padding: var(--tt-space-1) var(--tt-space-2);
	border-radius: var(--tt-radius-sm);
}
.tt-evidence-item .tt-evidence-body { padding: var(--tt-space-3); }
.tt-evidence-item .tt-evidence-platform {
	font-family: var(--tt-font-display);
	font-weight: 700;
	color: var(--tt-color-text);
	margin: 0 0 var(--tt-space-1);
}
.tt-evidence-item .tt-evidence-caption {
	color: var(--tt-color-text-muted);
	font-size: var(--tt-text-sm);
	margin: 0;
}

/* ==========================================================================
   7a. Evidence-media frame -- WEBSITE-TRANCHE-007 correction round 3.
       Reusable box for real dyno graphs / datalog screenshots wherever they
       appear in the_content() (not template-rendered PHP, so it can't reuse
       wp_get_attachment_image()/.tt-media-wrap's cover-crop directly -- these
       are hand-authored `wp:html` blocks built by
       tools/wordpress/build_tranche007_correction3_content.py).

       Root cause this replaces: BMW Tuning's "Proven Across the Platform
       Range" gallery used plain `wp:image` blocks at the "thumbnail" size
       inside `wp:columns`; live inspection showed two of the five images
       (S58, S63/S68) rendering with a wildly incorrect natural size (traced
       to a lazy-load/thumbnail-generation inconsistency for those two
       specific attachments, not something fixable by re-cropping). The S58
       platform page's own two-datalog block had the same underlying
       class of bug independently -- a lazy-load script reserving an
       incorrect placeholder height for one of the two images, with nothing
       resetting it once the real image loaded, stretching its sibling
       column via the SAME flex cross-axis stretch mechanism already fixed
       once narrowly for `.size-thumbnail` in sitewide-content.css (that
       fix does not cover `.size-large`, where this second instance lived).

       This frame sidesteps both root causes entirely rather than patching
       either one: the box's own `aspect-ratio` is a fixed CSS property that
       does not depend on the image's real, lazy-loaded, or plugin-mangled
       intrinsic dimensions, explicit `width`/`height` attributes are always
       written on the `<img>` (starves the lazy-load placeholder-guessing
       bug of the ambiguity that produced the huge reserved box in the first
       place), and the grid parent uses `align-items: start` (not the
       flex/grid default `stretch`) so a taller sibling frame -- e.g. a
       longer figcaption -- can never impose its height onto this one.
       `object-fit: contain` (not `cover`, unlike `.tt-media-wrap`'s
       default): these are dyno graphs and datalog screenshots -- real data
       -- so nothing may be cropped away for a tidier crop, per this
       correction round's explicit instruction.
   ========================================================================== */

.tt-evidence-media-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--tt-space-4);
	align-items: start;
}
@media (max-width: 820px) {
	.tt-evidence-media-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
	.tt-evidence-media-grid { grid-template-columns: repeat(2, 1fr); gap: var(--tt-space-3); }
}
.tt-evidence-media-grid.is-two-up { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) {
	.tt-evidence-media-grid.is-two-up { grid-template-columns: 1fr; }
}
.tt-evidence-media { margin: 0; }
.tt-evidence-media-frame {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	background: #0B0C0E;
	border: 1px solid var(--tt-color-border);
	border-radius: var(--tt-radius-lg);
	padding: var(--tt-space-3);
	overflow: hidden;
	transition: border-color var(--tt-duration-base) var(--tt-ease-standard);
}
.tt-evidence-media-frame:hover,
.tt-evidence-media-frame:focus-visible {
	border-color: var(--tt-color-accent);
}
.tt-evidence-media-frame:focus-visible {
	outline: 2px solid var(--tt-color-accent);
	outline-offset: 2px;
}
.tt-evidence-media-frame img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}
.tt-evidence-media-caption {
	display: block;
	text-align: center;
	color: var(--tt-color-text-muted);
	font-size: var(--tt-text-sm);
	margin-top: var(--tt-space-2);
}

/* ==========================================================================
   8. Project-story card (Journal)
   ========================================================================== */

.tt-project-card {
	display: flex;
	flex-direction: column;
	border-radius: var(--tt-radius-lg);
	overflow: hidden;
	background: var(--tt-color-graphite);
	border: 1px solid var(--tt-color-border);
	text-decoration: none;
	color: inherit;
	transition: transform var(--tt-duration-base) var(--tt-ease-standard), box-shadow var(--tt-duration-base) var(--tt-ease-standard);
}
.tt-project-card:hover,
.tt-project-card:focus-visible {
	transform: translateY(-4px);
	box-shadow: var(--tt-shadow-3);
}
.tt-project-card:focus-visible { outline: 2px solid var(--tt-color-accent); outline-offset: 2px; }
.tt-project-card .tt-media-wrap { border-radius: 0; }
.tt-project-card .tt-project-body { padding: var(--tt-space-5); flex-grow: 1; display: flex; flex-direction: column; }
.tt-project-card .tt-project-category {
	font-family: var(--tt-font-display);
	font-size: var(--tt-text-xs);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--tt-color-accent);
	margin-bottom: var(--tt-space-2);
}
.tt-project-card h3 {
	font-family: var(--tt-font-display);
	font-size: var(--tt-text-xl);
	margin: 0 0 var(--tt-space-2);
	color: var(--tt-color-text);
}
.tt-project-card p {
	color: var(--tt-color-text-muted);
	font-size: var(--tt-text-sm);
	margin: 0;
	flex-grow: 1;
}
.tt-project-card .tt-project-meta {
	margin-top: var(--tt-space-4);
	font-size: var(--tt-text-xs);
	color: var(--tt-color-text-faint);
}

/* ==========================================================================
   9. Elite footer band (WEB-035, inc/elite-footer.php)
   ========================================================================== */

/* WEBSITE-TRANCHE-015 owner-directed recomposition (Section 7.8/8.3): the
   owner asked for this one real shared "Services / BMW Platforms / Company"
   footer band compacted ~20-30% on both the BMW Tuning and BMW MHD pages --
   since this component is genuinely shared sitewide (inc/elite-footer.php),
   compacting it here is the one real edit that satisfies both call sites at
   once, not a per-page override. Pure spacing reduction, same 3-column
   content/links, nothing removed. */
/* WEBSITE-TRANCHE-015 owner custom-build repair (Section 25): a further
   real ~25% reduction in this footer's own vertical padding/gaps on top of
   the prior compaction round (44px -> 32px top padding, 32px -> 24px grid
   gap/bottom-padding, 16px -> 12px bottom-bar padding) plus a slightly
   narrower content column (1200px -> 1120px) -- same 3-column real
   destinations, nothing removed, no giant headings. */
/* WEBSITE-TRANCHE-015 real-tuner repair (Section 14): another real ~20%
   vertical reduction on top of the prior two compaction rounds -- each
   token stepped down exactly one step on the shared 4px spacing scale
   (style.css), not an arbitrary new value: top padding 32px -> 24px,
   bottom padding 12px -> 8px, grid gap 16px -> 12px, grid bottom-padding
   24px -> 16px, brand-wordmark/heading margins 12px/8px -> 8px/4px,
   bottom-bar gap/padding-top 12px -> 8px. Links, policy links, and
   copyright text are untouched -- only spacing shrinks. */
.tt-elite-footer {
	background: var(--tt-color-charcoal);
	border-top: 1px solid var(--tt-color-border);
	padding: var(--tt-space-5) 0 var(--tt-space-2);
}
.tt-elite-footer .tt-container { max-width: 1120px; margin: 0 auto; padding: 0 var(--tt-space-5); }
.tt-elite-footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: var(--tt-space-3);
	padding-bottom: var(--tt-space-4);
}
.tt-elite-footer-brand .tt-elite-footer-wordmark {
	font-family: var(--tt-font-display);
	font-weight: 700;
	font-size: var(--tt-text-lg);
	color: var(--tt-color-text);
	margin: 0 0 var(--tt-space-2);
}
.tt-elite-footer-brand p { color: var(--tt-color-text-muted); font-size: var(--tt-text-sm); max-width: 34ch; margin: 0; }
.tt-elite-footer-heading {
	display: block;
	font-family: var(--tt-font-display);
	font-size: var(--tt-text-xs);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--tt-color-accent);
	margin-bottom: var(--tt-space-1);
}
/* Independent-review finding: the first compaction pass on this footer
   (padding/gap token step-downs above) measured as a real but modest
   reduction once actually rendered -- this second pass adds the list's own
   line-gap as a further real, if small, lever. */
.tt-elite-footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--tt-space-1); }
.tt-elite-footer-col a { color: var(--tt-color-text-muted); text-decoration: none; font-size: var(--tt-text-sm); transition: color var(--tt-duration-fast) var(--tt-ease-standard); }
.tt-elite-footer-col a:hover { color: var(--tt-color-text); }
.tt-elite-footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--tt-space-2);
	padding-top: var(--tt-space-2);
	border-top: 1px solid var(--tt-color-border);
	color: var(--tt-color-text-faint);
	font-size: var(--tt-text-sm);
}
/* Section 24: real policy links, merged into this same compact bottom bar
   rather than a fourth nav column or a second footer band. */
.tt-elite-footer-policy-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--tt-space-1) var(--tt-space-3);
	list-style: none;
	margin: 0;
	padding: 0;
}
.tt-elite-footer-policy-links a {
	color: var(--tt-color-text-faint);
	text-decoration: none;
	font-size: var(--tt-text-xs);
}
.tt-elite-footer-policy-links a:hover { color: var(--tt-color-text-muted); }

@media (max-width: 900px) {
	.tt-elite-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	/* WEBSITE-TRANCHE-009: was a full single-column stack (brand block +
	   3 full-width nav lists) -- real measurement found this the tallest
	   single element on most pages (~1000px+). The 3 nav columns compress
	   fine to 2-up; only the brand block (has its own longer sentence, not
	   a short list) stays full-width. WEBSITE-TRANCHE-015 owner-directed
	   recomposition: compacted a further ~20-25% on top of that T009 pass. */
	.tt-elite-footer { padding: var(--tt-space-5) 0 var(--tt-space-3) !important; }
	.tt-elite-footer-grid { grid-template-columns: 1fr 1fr !important; gap: var(--tt-space-4) !important; padding-bottom: var(--tt-space-4) !important; }
	.tt-elite-footer-brand { grid-column: 1 / -1; }
}

/* ==========================================================================
   10. Technical/calibration components (WEBSITE-TRANCHE-011) -- a small,
   reusable "precision engineering" visual vocabulary (Section 5): a mono
   numeric treatment for metrics, a metric-label/value chip, a technical
   section divider, and the stock/Stage 1 comparison bar used by the
   homepage finder's interactive performance-proof panel (front-page.php).
   Built entirely on the existing token layer; --tt-font-mono is a system
   stack, not a new webfont, so this adds no new dependency (Section 5's own
   "if a new dependency is unnecessary, do not add it"). Intended for reuse
   anywhere real per-vehicle/per-platform figures are shown, not just the
   homepage, per Section 5's "can appear across homepage, BMW sections,
   Results and selected support pages" instruction.
   ========================================================================== */

.tt-numeric-mono {
	font-family: var(--tt-font-mono);
	font-variant-numeric: tabular-nums;
	font-feature-settings: 'tnum' 1;
}
.tt-numeric-mono.is-accent { color: var(--tt-color-accent); font-weight: 600; }

.tt-metric-chip {
	display: inline-flex;
	align-items: center;
	gap: var(--tt-space-2);
	font-family: var(--tt-font-mono);
	font-size: var(--tt-text-xs);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--tt-color-text-muted);
	background: var(--tt-color-bg-elevated-2);
	border: 1px solid var(--tt-color-border-metallic);
	border-radius: var(--tt-radius-sm);
	padding: var(--tt-space-1) var(--tt-space-3);
}
.tt-metric-chip.is-accent { color: var(--tt-color-accent); border-color: var(--tt-color-accent); }

/* A hairline with two corner tick marks -- reads as a calibration-sheet
   ruler edge, not a decorative flourish. Pure CSS, no image asset. */
.tt-calibration-divider {
	position: relative;
	height: 1px;
	margin: var(--tt-space-8) 0;
	background: linear-gradient(90deg, transparent 0%, var(--tt-color-border-metallic) 12%, var(--tt-color-border-metallic) 88%, transparent 100%);
}
.tt-calibration-divider::before,
.tt-calibration-divider::after {
	content: "";
	position: absolute;
	top: -3px;
	width: 1px;
	height: 7px;
	background: var(--tt-color-border-metallic);
}
.tt-calibration-divider::before { left: 12%; }
.tt-calibration-divider::after { right: 12%; }

/* Stock -> Stage 1 comparison bar. Two stacked tracks (stock, then Stage 1)
   rather than one overlapping track, so which figure is which never depends
   on reading a legend. Width is always set inline from real fetched vehicle
   data by the component using this markup -- never a fixed/decorative
   value baked into this stylesheet. */
.tt-proof-bar { display: flex; flex-direction: column; gap: 4px; margin-top: var(--tt-space-3); }
.tt-proof-bar-track { height: 8px; border-radius: 999px; background: var(--tt-color-bg-elevated-2); overflow: hidden; }
.tt-proof-bar-fill { height: 100%; border-radius: inherit; }
.tt-proof-bar-fill.is-stock { background: var(--tt-color-text-faint); opacity: 0.6; }
.tt-proof-bar-fill.is-stage1 {
	background: linear-gradient(90deg, var(--tt-color-accent), var(--tt-color-depth-violet));
	transition: width var(--tt-duration-slow) var(--tt-ease-decelerate);
}

/* Real Stock -> Stage 1 comparison panel box model -- originally the
   homepage finder's own inline styles (WEBSITE-TRANCHE-011), moved here
   WEBSITE-TRANCHE-015 so the BMW platform pages' "exact vehicle + Stage"
   selector (inc/bmw-platform-selector.php) reuses one real definition
   instead of a second copy. `.is-static` removes the dashed top border a
   plain (non-finder) usage doesn't need a visual "continues from above"
   cue for. */
.tt-proof-panel { margin-top: var(--tt-space-4); padding-top: var(--tt-space-4); border-top: 1px dashed var(--tt-color-border-metallic); }
.tt-proof-panel.is-static { border-top: none; margin-top: var(--tt-space-6); padding-top: 0; }
.tt-proof-panel-head { display: flex; align-items: center; justify-content: space-between; gap: var(--tt-space-3); flex-wrap: wrap; margin-bottom: var(--tt-space-3); }
.tt-proof-provenance { font-size: var(--tt-text-xs); color: var(--tt-color-text-faint); text-transform: capitalize; }
.tt-proof-metric { margin-bottom: var(--tt-space-4); }
.tt-proof-metric-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--tt-space-3); flex-wrap: wrap; }
.tt-proof-metric-label { font-size: var(--tt-text-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--tt-color-text-muted); }
.tt-proof-metric-values { display: flex; align-items: baseline; gap: var(--tt-space-2); font-size: var(--tt-text-lg); }
.tt-proof-gain-pill { color: var(--tt-color-accent); font-weight: 700; font-size: var(--tt-text-sm); }
.tt-proof-disclaimer { font-size: var(--tt-text-xs); color: var(--tt-color-text-faint); margin: var(--tt-space-2) 0 0; }

/* ==========================================================================
   WEBSITE-TRANCHE-015 -- BMW platform-page "exact vehicle + Stage 1/2 +
   result + hardware" selector (inc/bmw-platform-selector.php, Section 7/8).
   ========================================================================== */
/* ==========================================================================
   WEBSITE-TRANCHE-015 (Shopify Product UX recomposition) -- compact BMW
   product hero + two-column Shopify-style product stage (Sections 4-6, 12).
   ========================================================================== */

/* Compact hero: less height, a localized bottom-anchored scrim instead of
   the sitewide `.tt-service-hero-media::after`'s near-black top-to-bottom
   gradient (0.4 -> 0.97), so the real platform photo stays visible while
   the heading text over it stays readable -- Section 6's explicit
   "localized gradients for text readability rather than blanket opacity"
   instruction. Flows straight into `.tt-product-stage` below with no gap. */
.tt-product-hero {
	padding: var(--tt-space-6) 0 var(--tt-space-5);
}
.tt-product-hero h1 { margin-bottom: var(--tt-space-3); }
@media (max-width: 640px) {
	.tt-product-hero { padding: var(--tt-space-5) 0 var(--tt-space-4); }
}

/* WEBSITE-TRANCHE-015 real-tuner repair (Section 5/6): BMW platform-page
   dual-layer hero. Supersedes the prior single `.tt-service-hero-media`
   layer + transparent-mask treatment on these six pages specifically (that
   sitewide component/its `.tt-product-hero .tt-service-hero-media` override
   is untouched and still used by generic service-page heroes elsewhere,
   inc/service-page-hero.php) -- the owner reported that single-layer
   `contain` treatment as reading like "a small centered icon/strip" against
   a large empty dark field. Each slide is two stacked layers: a full-bleed
   `cover` background, heavily blurred and dimmed, filling the entire band
   (including the side space a `contain` image alone would leave empty);
   and a sharp `contain` foreground on top showing the real, un-cropped
   subject, its own edges fading into the background layer via a
   feathering mask -- "the real image reads as a background/hero... only
   modest zoom/crop... fill the horizontal hero visually" per the governing
   prompt. Only the `.is-active` slide is visible; multi-slide crossfade is
   a plain opacity transition driven by Alpine (assets/js/platform-hero.js),
   not a JS-computed animation, so it stays smooth under heavy load and
   degrades to "just show slide 1" if the script fails to load at all. */
.tt-platform-hero {
	min-height: 320px;
}
.tt-platform-hero-slide {
	position: absolute;
	inset: 0;
	z-index: var(--tt-z-base);
	opacity: 0;
	transition: opacity 0.9s ease;
}
.tt-platform-hero-slide.is-active {
	opacity: 1;
}
.tt-platform-hero-bg,
.tt-platform-hero-fg {
	position: absolute;
	inset: 0;
}
.tt-platform-hero-bg {
	opacity: 0.55;
	filter: blur(22px) brightness(0.6) saturate(1.05);
	transform: scale(1.15); /* hides the blur's own soft edge past the viewport bounds */
}
.tt-platform-hero-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.tt-platform-hero-fg {
	opacity: 0.92;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
.tt-platform-hero-fg img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.tt-platform-hero::after {
	content: "";
	position: absolute; inset: 0;
	z-index: var(--tt-z-base);
	background: linear-gradient(180deg, rgba(11,12,14,0.1) 0%, rgba(11,12,14,0.3) 55%, rgba(11,12,14,0.85) 100%);
	pointer-events: none;
}
.tt-platform-hero-controls {
	position: absolute;
	left: 0; right: 0; bottom: var(--tt-space-3);
	z-index: var(--tt-z-raised);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--tt-space-3);
}
.tt-platform-hero-nav,
.tt-platform-hero-playtoggle {
	min-width: 44px;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(11,12,14,0.55);
	border: 1px solid rgba(245,246,247,0.2);
	border-radius: var(--tt-radius-pill);
	color: var(--tt-color-text);
	cursor: pointer;
	font-size: var(--tt-text-lg);
	line-height: 1;
	backdrop-filter: blur(4px);
}
.tt-platform-hero-playtoggle {
	min-width: auto;
	padding: 0 var(--tt-space-4);
	font-size: var(--tt-text-xs);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}
.tt-platform-hero-nav:hover,
.tt-platform-hero-nav:focus-visible,
.tt-platform-hero-playtoggle:hover,
.tt-platform-hero-playtoggle:focus-visible {
	border-color: var(--tt-color-accent, #00D9FF);
}
.tt-platform-hero-dots {
	display: flex;
	align-items: center;
	gap: var(--tt-space-2);
}
.tt-platform-hero-dot {
	width: 32px;
	min-height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
}
.tt-platform-hero-dot::before {
	content: "";
	display: block;
	width: 100%;
	height: 3px;
	border-radius: var(--tt-radius-pill);
	background: rgba(245,246,247,0.35);
	transition: background-color 0.2s ease;
}
.tt-platform-hero-dot.is-active::before {
	background: var(--tt-color-accent, #00D9FF);
}
@media (max-width: 640px) {
	.tt-platform-hero { min-height: 220px; }
	.tt-platform-hero-controls { bottom: var(--tt-space-2); gap: var(--tt-space-2); }
}
@media (prefers-reduced-motion: reduce) {
	.tt-platform-hero-slide { transition: none; }
}

/* WEBSITE-TRANCHE-018 Phase B (Section 3): the reported empty-void bug was
   this grid's own left column having far LESS real content than the right
   (the gallery alone) while every other section -- What's Included, Build
   Paths, the real product description -- ran full-width below both columns,
   so the shorter gallery column visibly ended long before the taller
   configurator column did. The fix is that the left column
   (`.tt-product-media`) now contains that same content in normal document
   flow (moved here from templates/parts/platform-page.php, not duplicated),
   so it is routinely as tall as or taller than the right column on every
   real platform page -- `align-items: start` here was already correct for
   two independently-sized tracks, and needed no change once the content
   itself moved. No absolute positioning, no negative margins: this is still
   a plain two-track CSS Grid with each column in normal flow. */
.tt-product-stage {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: var(--tt-space-7);
	align-items: start;
	padding: var(--tt-space-6) 0;
}
@media (max-width: 960px) {
	.tt-product-stage {
		grid-template-columns: 1fr;
		gap: var(--tt-space-5);
		padding: var(--tt-space-5) 0;
	}
}

.tt-product-media {
	display: flex;
	flex-direction: column;
	gap: var(--tt-space-4);
	min-width: 0;
}
/* WEBSITE-TRANCHE-018 Phase B: the What's Included / Build Paths blocks
   moved into this column reuse the same section-header/list/eyebrow
   typography every other full-width `.tt-section` on this site already
   uses -- no new visual language, just narrower measure since this column
   is ~1.6fr instead of the full page width. */
.tt-product-media-section {
	padding-top: var(--tt-space-2);
}
.tt-product-media-section .tt-eyebrow {
	display: block;
	margin-bottom: var(--tt-space-2);
}
.tt-product-media-section h2 {
	margin: 0 0 var(--tt-space-3);
	font-size: var(--tt-text-xl);
}
.tt-product-media-description {
	padding-top: var(--tt-space-2);
}
.tt-product-guide-link {
	padding-top: var(--tt-space-1);
}

.tt-product-panel {
	background: var(--tt-color-bg-elevated, #16181B);
	border: 1px solid var(--tt-color-border, #2A2D31);
	border-radius: var(--tt-radius-lg);
	padding: var(--tt-space-5);
	min-width: 0;
}
/* WEBSITE-TRANCHE-015 real-tuner repair (Section 2): the prior
   `max-height: calc(100vh - var(--tt-space-8)); overflow-y: auto;` pairing
   gave the configurator panel its own internal scrollbar the instant its
   real content (Turbo/Fuel/Map fieldsets + price row + both textareas + CTA
   row) exceeded one screen's height -- which it reliably does at laptop
   heights (1366x768, 1440x900, 1536x864). Owner-rejected: "the entire
   configuration panel must NOT use overflow-y:auto/scroll... never solve
   panel height by nesting another vertical scroller." Sticky now only
   engages at genuinely tall viewports (min-height 1000px, comfortably above
   every listed laptop height) where the panel realistically fits alongside
   its own top offset without being clipped; below that it flows in normal
   document order like any other grid cell (`align-items:start` on
   `.tt-product-stage` already keeps it top-aligned), so the page's own
   scroll is the only vertical scroll anywhere in the product panel. */
@media (min-width: 961px) and (min-height: 1000px) {
	.tt-product-panel {
		position: sticky;
		top: var(--tt-space-5);
	}
}
.tt-product-panel-title {
	margin: 0 0 var(--tt-space-2);
	font-size: var(--tt-text-xl);
	/* WEBSITE-TRANCHE-017 independent-review finding: no color was declared
	   here, so this fell through to Blocksy's own default heading color
	   (~1.17:1 against this panel's dark background -- effectively
	   invisible). Real WCAG AA fix, not a redesign. */
	color: var(--tt-color-text, #F5F6F7);
}
.tt-product-panel-summary {
	margin: 0 0 var(--tt-space-5);
	color: var(--tt-color-text-muted);
	font-size: var(--tt-text-sm);
}
/* This component's own card chrome (max-width/margin/background/border/
   padding, meant for the standalone /bmw-tuning/request/ page where it
   renders alone in a plain container) is redundant once nested inside
   `.tt-product-panel`, which already supplies that treatment -- avoids a
   visible "card inside a card" double border. */
.tt-product-panel .tt-configurator {
	max-width: none;
	margin: 0;
	background: transparent;
	border: 0;
	padding: 0;
}

/* WEBSITE-TRANCHE-015 owner custom-build repair (Section 3): the compact
   power/torque result card that used to live here (`.tt-product-result-card`,
   a child of `.tt-product-media`) is removed sitewide -- platform-wide
   stock/tuned figures are not authoritative once exact-vehicle selection is
   gone. Performance proof now lives in the gallery/dyno evidence and the
   Vehicle Directory's real per-vehicle figures instead. The mobile
   `display: contents` reorder hack this card previously needed is removed
   with it -- `.tt-product-media` no longer needs special-casing on mobile. */

.tt-quote-state { font-size: var(--tt-text-sm); color: var(--tt-color-text-faint); margin: 0; }

/* ==========================================================================
   10b. "What's Included" / "Build Paths" -- WEBSITE-TRANCHE-015 HIGH-VALUE
   BMW + MOTORSPORT REPOSITIONING (Section 8): two new compact blocks on
   each of the six BMW platform pages (templates/parts/platform-page.php).
   Neither existed before this round. Kept deliberately plain -- a factual
   list and three short cards, not a new decorative component family.
   ========================================================================== */
.tt-whats-included-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--tt-space-3) var(--tt-space-5);
	max-width: 920px;
}
.tt-whats-included-list li {
	position: relative;
	padding-left: var(--tt-space-5);
	color: var(--tt-color-text-muted);
	font-size: var(--tt-text-sm);
	line-height: var(--tt-leading-normal, 1.5);
}
.tt-whats-included-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.5em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--tt-color-accent);
}
@media (max-width: 640px) {
	.tt-whats-included-list { grid-template-columns: 1fr; }
}

.tt-build-paths-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--tt-space-4);
}
.tt-build-path-card {
	background: var(--tt-color-bg-elevated, #16181B);
	border: 1px solid var(--tt-color-border, #2A2D31);
	border-radius: var(--tt-radius-lg);
	padding: var(--tt-space-4);
}
.tt-build-path-card .tt-build-path-step {
	display: inline-block;
	font-family: var(--tt-font-display);
	font-size: var(--tt-text-xs);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--tt-color-accent);
	margin-bottom: var(--tt-space-2);
}
.tt-build-path-card h3 {
	margin: 0 0 var(--tt-space-2);
	font-size: var(--tt-text-base);
	/* WEBSITE-TRANCHE-017 independent-review finding: same missing-color
	   WCAG AA fix as .tt-product-panel-title above. */
	color: var(--tt-color-text, #F5F6F7);
}
.tt-build-path-card p {
	margin: 0;
	color: var(--tt-color-text-muted);
	font-size: var(--tt-text-sm);
}
@media (max-width: 900px) {
	.tt-build-paths-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   11. Tuner-content accordion -- WEBSITE-TRANCHE-015 (owner video review,
   Section 9): the BMW platform pages' real long-form tuner article content
   (Platform Overview / Calibration Focus Areas / Common Build Paths /
   Proof, Not Promises / etc, all real the_content() copy, never rewritten)
   no longer renders as one long scroll of expanded sections ahead of the
   real product configurator above it. inc/t15-density-content-filters.php
   wraps each existing <h2> section in one of these via a `the_content`
   filter -- native <details>/<summary>, not a JS-dependent tab widget, so
   it is keyboard/screen-reader operable with zero new script and degrades
   to fully-readable plain content if JS never loads. Only the first section
   opens by default; every other section is one click/tap away, on both
   desktop and mobile alike (the prompt's own "on mobile these should open
   only when requested" instruction, satisfied identically on desktop too
   since <details> has no separate breakpoint behavior to diverge from).
   ========================================================================== */
.tt-tuner-accordion {
	background: var(--tt-color-bg-elevated);
	border: 1px solid var(--tt-color-border);
	border-radius: var(--tt-radius-md);
	margin-bottom: var(--tt-space-3);
	overflow: hidden;
}
.tt-tuner-accordion summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--tt-space-3);
	padding: var(--tt-space-4) var(--tt-space-5);
}
.tt-tuner-accordion summary::-webkit-details-marker { display: none; }
.tt-tuner-accordion summary h2 {
	margin: 0 !important;
	font-size: var(--tt-text-lg) !important;
}
.tt-tuner-accordion summary::after {
	content: "+";
	flex-shrink: 0;
	font-family: var(--tt-font-display);
	font-size: var(--tt-text-xl);
	color: var(--tt-color-accent);
	line-height: 1;
}
.tt-tuner-accordion[open] summary::after { content: "\2212"; }
.tt-tuner-accordion summary:focus-visible {
	outline: 2px solid var(--tt-color-accent);
	outline-offset: -2px;
}
.tt-tuner-accordion-body {
	padding: 0 var(--tt-space-5) var(--tt-space-5);
}
.tt-tuner-accordion-body > *:first-child { margin-top: 0; }

/* ==========================================================================
   Reduced-motion safety net -- belt-and-suspenders alongside tt-motion.js's
   own JS-level check: if CSS alone renders before JS runs, nothing here
   depends on animation to reach a legible final state.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	.tt-panel-link:hover .tt-panel-media img { transform: none; }
	.tt-panel-link, .tt-project-card { transition: none; }
	/* WEBSITE-TRANCHE-011: Alpine's x-transition (tt-proof-panel) and the
	   comparison bar's width transition both set an inline `transition`
	   style via JS -- a plain CSS declaration here cannot win a specificity
	   fight against an inline style unless it is !important, which CSS
	   `!important` legitimately can do even against inline styles. */
	.tt-proof-panel, .tt-proof-bar-fill { transition: none !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
	.tt-stat-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	/* WEBSITE-TRANCHE-009 mobile compression pass: real measurement (Playwright
	   per-section bounding-box heights against live staging, 390px viewport)
	   found the homepage alone at 12324px total -- section padding and
	   min-heights tuned for desktop breathing room, unchanged on mobile,
	   were the single largest contributor across every stacked-card section
	   sitewide (services grid, evidence strip, journal grid, platform rail,
	   CTA bands). These are shared primitives, so tightening them here
	   compresses every page that uses them, not just the homepage.
	   `!important` throughout: SiteGround Optimizer's CSS-combiner bundles
	   every enqueued + inline stylesheet into one file and was confirmed
	   (real Playwright cascade trace against live staging) to sometimes lose
	   an equal-specificity rule despite correct source order during that
	   combine step -- same fix pattern already established in
	   assets/css/sitewide-content.css's `.ct-header .sub-menu` rule. */
	/* Independent-review finding, confirmed live: both measured slightly
	   above the governing prompt's own mobile targets -- section padding at
	   --tt-space-7 (44px post-rescale) vs. a 28-42px target, and this h2 at
	   --tt-text-3xl (34px) vs. a 26-32px target (--tt-text-3xl is shared
	   with mobile H1 sizing elsewhere, which DOES need to stay at 34px --
	   this h2 rule needed its own value, not another token reuse). */
	.tt-section { padding: var(--tt-space-6) 0 !important; }
	.tt-section-header { margin-bottom: var(--tt-space-5) !important; }
	.tt-section-header h2 { font-size: 1.75rem !important; }
	.tt-panel-link { min-height: 180px !important; padding: var(--tt-space-5) !important; }
	/* WEBSITE-TRANCHE-010: real sitewide-sweep-found defect -- a Blocksy
	   parent-theme default `overflow-wrap: break-word` (never overridden by
	   this child theme) forces individual WORDS to split mid-character once
	   a card's 2-column-grid width can't fit one, e.g. "BMW Custom Tuning"
	   rendering as "BMW / Custo / m / Tunin / g" and "Standalone ECU /
	   Motorsport" as "Standalo / ne ECU / Motorsp / ort" at 320-390px --
	   confirmed via real screenshots on Core Services and other
	   .tt-panel-link card grids.
	   `overflow-wrap: normal` alone (this rule's first attempt) stopped the
	   mid-character garbling but traded it for a different real defect,
	   caught by this tranche's own required final independent review: a
	   single word alone (e.g. "Standalone", "Motorsport") can still be
	   wider than the card's available content width at this breakpoint, and
	   with nowhere valid to break, `.tt-panel-link`'s own `overflow:hidden`
	   (needed for its rounded-corner media crop, not something to remove)
	   then silently clips letters off the word entirely -- worse than the
	   original bug, not better.
	   `hyphens: auto` is the correct fix, not another band-aid: combined
	   with `overflow-wrap: break-word` as its fallback (for the rare word/
	   browser hyphenation can't handle), the browser inserts a real
	   dictionary hyphenation point ("Stand-alone") when a word doesn't fit,
	   and only falls back to a raw character split as a last resort instead
	   of always defaulting to one. Requires `lang` on `<html>` to know which
	   dictionary to hyphenate against -- Blocksy's own header.php already
	   outputs this via core's language_attributes(), confirmed via this
	   site's own JSON-LD `inLanguage: en-US` sitewide. Applied to both the
	   heading and the sibling eyebrow label (`.tt-panel-eyebrow`, e.g.
	   "MOTORSPORT ENGINEERING" / "Platform Calibration"), which the first
	   attempt never covered and the review confirmed has the identical
	   defect for the identical reason. */
	.tt-panel-link h3 { font-size: var(--tt-text-xl) !important; overflow-wrap: break-word; word-break: normal; hyphens: auto; }
	.tt-panel-link .tt-panel-eyebrow { overflow-wrap: break-word; word-break: normal; hyphens: auto; }
	.tt-platform-panel { min-width: 220px !important; min-height: 260px !important; }
	.tt-stat-row { grid-template-columns: 1fr 1fr !important; gap: var(--tt-space-3) !important; }
	.tt-quote blockquote { font-size: var(--tt-text-xl) !important; }
	.tt-cta-band { padding: var(--tt-space-5) 0 !important; }
	.tt-cta-band h2 { margin-bottom: var(--tt-space-3) !important; }
	.tt-service-hero { padding: var(--tt-space-7) 0 var(--tt-space-5) !important; }
	.tt-project-card .tt-project-body { padding: var(--tt-space-4) !important; }
}

/**
 * WEBSITE-TRANCHE-013 continuation -- shared evidence-grid + filter +
 * lightbox component (inc/evidence-grid-lightbox.php). Previously defined
 * ONLY inline in page-results-case-studies.php's own <style> block; moved
 * here (loaded sitewide) so the BMW Tuning hub and BMW MHD Custom Tuning
 * pages' own evidence sections can use the exact same interactive
 * treatment instead of each maintaining a separate, plainer, non-
 * interactive `.tt-evidence-strip` -- the consolidation this continuation
 * was asked to do. Byte-for-byte the same rules that already shipped and
 * were already visually accepted on the Results page; moving their
 * location does not change their values.
 */
.tt-filter-bar { display: flex; gap: var(--tt-space-2); flex-wrap: wrap; justify-content: center; margin: var(--tt-space-6) 0; }
.tt-filter-chip {
	background: var(--tt-color-bg-elevated); border: 1px solid var(--tt-color-border); color: var(--tt-color-text-muted);
	border-radius: 999px; padding: var(--tt-space-2) var(--tt-space-5); font-weight: 600; cursor: pointer; font-family: var(--tt-font-body);
}
.tt-filter-chip[aria-pressed="true"] { background: var(--tt-color-accent); color: #0b0c0e; border-color: var(--tt-color-accent); }
.tt-filter-chip:focus-visible { outline: 2px solid var(--tt-color-accent); outline-offset: 2px; }

/* Independent-review CONCERN #11 (v0.14.0): `.tt-results-hero`/
   `.tt-results-container` (page-results-case-studies.php) had never
   received any theme-specific CSS anywhere in the codebase, so the page's
   own <h1> fell back to Blocksy's default heading size (measured live at
   34px), below the governing prompt's 46-56px desktop H1 target and
   inconsistent with every other page's hero h1 (48px). Same pattern as
   .tt-service-hero h1 / .tt-catalogue-hero h1 above -- container
   width/padding intentionally left untouched (Section 15: density tokens
   only on this page, not a layout redesign). */
.tt-results-hero h1 {
	font-family: var(--tt-font-display);
	font-size: var(--tt-text-5xl);
	line-height: var(--tt-leading-tight);
	margin: 0 0 var(--tt-space-3);
}
@media (max-width: 640px) {
	.tt-results-hero h1 { font-size: var(--tt-text-3xl); }
}

.tt-evidence-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--tt-space-4); }
/* WEBSITE-TRANCHE-015 owner-directed recomposition (Section 7.7/8.2/11.3):
   "one horizontal row... swipe/scroll" evidence presentation, reusing this
   same grid+lightbox component instead of a parallel rail-only one -- the
   BMW hub's Proven Results, BMW MHD's own independent results, and the
   Results page's larger Track/Motorsport rail all opt in via
   inc/evidence-grid-lightbox.php's `layout => 'rail'` arg. Same
   overflow-x:auto + scroll-snap convention `.tt-platform-rail` already
   uses -- native user-driven scroll only, never a `data-tt-marquee`
   programmatic auto-scroll, so this has no possible conflict with the
   scroll-snap-vs-auto-scroll bug fixed on `.tt-ecu-tile-grid`. */
.tt-evidence-grid.is-rail {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scroll-padding-left: var(--tt-space-5);
	gap: var(--tt-space-4);
	padding-bottom: var(--tt-space-3);
	scrollbar-width: thin;
	scrollbar-color: var(--tt-color-border-metallic) transparent;
}
.tt-evidence-grid.is-rail .tt-evidence-card { flex: 0 0 auto; width: 280px; scroll-snap-align: start; }
.tt-evidence-grid.is-rail .tt-evidence-card img { aspect-ratio: 4 / 3; }
/* Results page Track/Motorsport (Section 11.3): ~30-40% larger cards than
   the standard rail card above, real photo evidence given more room. */
.tt-evidence-grid.is-rail.is-large .tt-evidence-card { width: 380px; }
.tt-evidence-card { background: var(--tt-color-bg-elevated); border: 1px solid var(--tt-color-border); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.tt-evidence-card-trigger { display: block; width: 100%; text-align: left; cursor: pointer; padding: 0; background: transparent; border: none; color: inherit; font: inherit; }
.tt-evidence-card-trigger:focus-visible { outline: 2px solid var(--tt-color-accent); outline-offset: -2px; }
.tt-evidence-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.tt-evidence-card-body { padding: var(--tt-space-4); }
.tt-evidence-platform-link {
	display: block;
	padding: 0 var(--tt-space-4) var(--tt-space-4);
	margin-top: calc(-1 * var(--tt-space-2));
	color: var(--tt-color-accent);
	font-size: var(--tt-text-sm);
	font-weight: 600;
	text-decoration: none;
}
.tt-evidence-platform-link:hover { text-decoration: underline; }
.tt-evidence-platform-link:focus-visible { outline: 2px solid var(--tt-color-accent); outline-offset: 2px; }
.tt-evidence-label-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--tt-space-1); }
.tt-evidence-type { color: var(--tt-color-accent); font-size: var(--tt-text-xs); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.tt-evidence-platform { color: var(--tt-color-text-muted); font-size: var(--tt-text-xs); border: 1px solid var(--tt-color-border); border-radius: 4px; padding: 1px 6px; }
.tt-evidence-title { font-weight: 700; margin: var(--tt-space-1) 0; }
.tt-evidence-caption { color: var(--tt-color-text-muted); font-size: var(--tt-text-sm); margin: 0; }

.tt-lightbox-backdrop { position: fixed; inset: 0; background: rgba(11,12,14,0.92); z-index: 100; display: flex; align-items: center; justify-content: center; padding: var(--tt-space-5); overflow-y: auto; }
.tt-lightbox-content { max-width: 900px; width: 100%; }
.tt-lightbox-content img { max-width: 100%; max-height: 80vh; width: auto; height: auto; border-radius: 8px; display: block; margin: 0 auto; object-fit: contain; }
.tt-lightbox-caption { color: var(--tt-color-text-muted); margin-top: var(--tt-space-3); text-align: center; }
.tt-lightbox-close { position: absolute; top: var(--tt-space-5); right: var(--tt-space-5); background: transparent; border: 1px solid var(--tt-color-border); color: var(--tt-color-text); border-radius: 50%; width: 40px; height: 40px; cursor: pointer; font-size: var(--tt-text-lg); }
.tt-lightbox-close:focus-visible { outline: 2px solid var(--tt-color-accent); }

/* Same SiteGround Optimizer CSS-combiner reordering risk already documented
   sitewide (see front-page.php's own mobile-compression note) -- !important
   throughout this block for the same reason. */
@media (max-width: 900px) {
	.tt-evidence-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
	.tt-evidence-grid { grid-template-columns: 1fr !important; }
}

/* ==========================================================================
   WEBSITE-TRANCHE-015 owner custom-build repair (Section 15/18) -- shared
   seamless infinite-loop marquee scaffolding (assets/js/infinite-marquee.js).
   Sitewide since both the Standalone ECU rail (Section 15) and the Vehicle
   Directory make-logo rail (Section 18) use the exact same real component.
   ========================================================================== */
.tt-infinite-marquee {
	position: relative;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}
/* Reduced motion: a genuinely static/manual rail, no clones, native scroll. */
.tt-infinite-marquee.is-static {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	-webkit-mask-image: none;
	mask-image: none;
}
.tt-infinite-marquee-track {
	display: flex;
	align-items: stretch;
	gap: var(--tt-space-4);
	width: max-content;
	will-change: transform;
	cursor: grab;
	touch-action: pan-y;
}
.tt-infinite-marquee-track.is-dragging { cursor: grabbing; }
/* Clones are duplicated purely so the loop has real content to scroll into
   -- never a second set of tab stops or announced content (Section 29). */
.tt-infinite-marquee-track > [aria-hidden="true"] {
	pointer-events: none;
}

