/* Tappet & Trim: a race-day programme for one restoration. Green ground, cream type, black roundel numerals,
   one cream-and-tan stripe pair. Barlow Condensed 800/500 and Barlow 400. */
@font-face { font-family: "Barlow Condensed"; src: url(/assets/fonts/specimen/barlow-condensed-800.woff2) format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(/assets/fonts/specimen/barlow-condensed-500.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(/assets/fonts/specimen/barlow-400.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

body.spec-tappet-and-trim { margin: 0; background: #276B44; }

.tt-page {
  --tt-green: #276B44; --tt-cream: #F4EEDC; --tt-ink2: #DBDECA; --tt-black: #0B0B0B; --tt-tan: #C8894A;
  --tt-hair: rgba(244, 238, 220, .24); --tt-dim: #A29E8F;
  --tt-bc: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --tt-b: Barlow, "Segoe UI", Roboto, Arial, sans-serif;
  --tt-ease: cubic-bezier(.2, .8, .2, 1);
  --tt-gut: clamp(16px, 2.8vw, 40px); --tt-max: 1360px;
  --tt-edge: max(var(--tt-gut), (100vw - var(--tt-max)) / 2);
  --tt-lane: 96px; --tt-drop: clamp(6rem, 16vh, 12rem);
  --tt-board-h: 56px; --tt-sec: clamp(4rem, 2rem + 6vw, 9rem);
  --tt-h1: clamp(2.75rem, 1.2rem + 7.1vw, 7rem);
  --tt-h2s: clamp(2.25rem, 1.4rem + 3.4vw, 4.25rem);
  --tt-h3s: clamp(1.375rem, 1.1rem + 1vw, 2rem);
  --tt-fx: 49%; --tt-fy: 49%;
  --tt-mask: url(/assets/work/tappet-and-trim/coupe-mask.webp);
  --tt-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='URL(%23n)'/%3E%3C/svg%3E");
  position: relative; color: var(--tt-cream); background: var(--tt-green) var(--tt-grain);
  font: 400 1rem/1.62 var(--tt-b); font-variant-numeric: tabular-nums lining-nums;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.tt-page *, .tt-page *::before, .tt-page *::after { box-sizing: border-box; }
.tt-page :where(h1, h2, h3, h4, p, ol, ul, dl, dd, figure, fieldset) { margin: 0; padding: 0; }
.tt-page :where(ol, ul) { list-style: none; }
.tt-page a { color: inherit; }
.tt-page img, .tt-page canvas { display: block; max-width: 100%; }
.tt-page :focus-visible { outline: 2px solid var(--tt-cream); outline-offset: 2px; box-shadow: 0 0 0 2px var(--tt-black); }
.tt-page :is(.tt-console, .tt-gauge, .tt-answers) :focus-visible { outline-color: var(--tt-tan); box-shadow: none; }
.tt-page :is(.tt-card, .tt-back) :focus-visible { outline-color: var(--tt-black); box-shadow: none; }
.tt-sr, .tt-light { background: #0B0B0B; color: #F4EEDC; position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tt-wrap { width: min(100% - 2 * var(--tt-gut), var(--tt-max)); margin-inline: auto; }
.tt-page :is(section, form) { scroll-margin-top: calc(var(--bar-h, 40px) + var(--tt-board-h) + 12px); }

/* type */
.tt-kick, .tt-lab { font: 500 .8125rem/1.2 var(--tt-bc); letter-spacing: .14em; text-transform: uppercase; }
.tt-h1 { font: 800 var(--tt-h1)/.86 var(--tt-bc); letter-spacing: -.012em; text-wrap: balance; }
.tt-h2 { font: 800 var(--tt-h2s)/.92 var(--tt-bc); letter-spacing: -.008em; text-wrap: balance; }
.tt-h3, .tt-strip-h, .tt-ans-h, .tt-pull { font: 800 var(--tt-h3s)/1 var(--tt-bc); }
.tt-stand { font-size: clamp(1.1875rem, 1.05rem + .45vw, 1.375rem); line-height: 1.4; color: var(--tt-cream); max-width: 38ch; text-wrap: pretty; }
.tt-page p { text-wrap: pretty; }
.tt-copy p:not(.tt-stand, .tt-note, .tt-pull), .tt-starts p { font-size: clamp(1rem, .95rem + .15vw, 1.0625rem); color: var(--tt-ink2); max-width: 52ch; }

/* roundels: cream discs, black numerals, always circles */
.tt-rd { --d: 28px; display: inline-grid; place-items: center; flex: none; width: var(--d); height: var(--d); border-radius: 50%; background: var(--tt-cream); color: var(--tt-black); font: 800 calc(var(--d) * .66)/1 var(--tt-bc); letter-spacing: -.01em; overflow: hidden; }
.tt-rd > .tt-rn { display: block; transform: translateY(-.04em); }
.tt-gridnav .tt-rd, .tt-colo-nav .tt-rd { padding-bottom: .08em; }
.tt-rd-pole { --d: clamp(56px, 2rem + 5.4vw, 112px); }
.tt-rd-slot { --d: clamp(56px, 2.5rem + 3.3vw, 88px); }
.tt-rd-s { --d: clamp(32px, 1.5rem + 1.1vw, 44px); }

/* the stripe pair beside the wordmark */
.tt-pair { display: block; width: 64px; height: 9px; background: linear-gradient(var(--tt-cream) 0 4px, transparent 4px 6px, var(--tt-tan) 6px 9px); }

/* ── the grid board ─────────────────────────────── */
.tt-board { position: sticky; top: var(--bar-h, 40px); z-index: 60; background: var(--tt-green) var(--tt-grain); border-bottom: 1px solid transparent; transition: border-color .18s; }
.tt-board.is-stuck { border-bottom-color: var(--tt-hair); }
.tt-board-in { height: var(--tt-board-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tt-mark { display: flex; align-items: center; gap: 12px; text-decoration: none; border-radius: 6px; }
.tt-plate { display: block; padding: 5px 10px 4px; border: 1.5px solid var(--tt-cream); border-radius: 6px; font: 800 20px/1 var(--tt-bc); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.tt-gridnav ol, .tt-colo-nav ol { display: flex; gap: 6px; }
.tt-gridnav a, .tt-colo-nav a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 8px; text-decoration: none; border-radius: 22px; }
.tt-gridnav .tt-rd, .tt-colo-nav .tt-rd { background: transparent; color: var(--tt-cream); box-shadow: inset 0 0 0 1.5px var(--tt-cream); transition: background-color .18s, color .18s; }
.tt-gridnav [aria-current] .tt-rd, .tt-gridnav .tt-nav-go .tt-rd, .tt-colo-nav a:hover .tt-rd, .tt-gridnav a:hover .tt-rd { background: var(--tt-cream); color: var(--tt-black); }
.tt-nl { font: 500 .875rem/1 var(--tt-bc); letter-spacing: .1em; text-transform: uppercase; }

/* ── on pole: the head ─────────────────────────── */
.tt-pole { position: relative; }
.tt-head { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; padding-top: 24px; }
.tt-rd-pole { grid-column: 1; grid-row: 2; align-self: start; margin-top: calc(var(--tt-h1) * .06); }
.tt-head-kick { grid-column: 2 / 10; grid-row: 1; margin-bottom: 14px; }
.tt-h1 { grid-column: 2 / 10; grid-row: 2; }
.tt-h1 > span { display: block; }
.tt-sub { grid-column: 10 / 13; grid-row: 1 / 3; align-self: end; padding-bottom: calc(var(--tt-h1) * .3); }
.tt-sub .tt-stand { max-width: 34ch; }
.tt-go { display: inline-block; margin-top: 12px; font: 500 .875rem/1 var(--tt-bc); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; padding: 8px 0 6px; border-bottom: 2px solid var(--tt-tan); }
.tt-go:hover { border-bottom-color: var(--tt-cream); }

/* ── the paint booth ───────────────────────────── */
.tt-run { position: relative; z-index: 1; margin-top: calc(var(--tt-h1) * -.25); }
.tt-stage { position: relative; width: min(100% - 2 * var(--tt-gut), var(--tt-max)); margin-inline: auto; }
.tt-booth { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "view" "gauge"; }
.tt-view { grid-area: view; height: clamp(420px, calc(100svh - var(--bar-h, 40px) - 381px), 620px); touch-action: pan-y; cursor: crosshair; }
.tt-car { position: relative; overflow: hidden; isolation: isolate; background: #1c1d1b; }
.tt-car img, .tt-poster, .tt-poster img { position: absolute; inset: 0; width: 100%; height: 100%; }
.tt-car img { object-fit: cover; object-position: var(--tt-fx) var(--tt-fy); }
.tt-car > :is(.tt-tint, .tt-tone, .tt-putty) { position: absolute; inset: 0; pointer-events: none;
  mask-image: var(--tt-mask); mask-mode: luminance; mask-size: cover; mask-position: var(--tt-fx) var(--tt-fy); mask-repeat: no-repeat; }
.tt-tint { background: var(--tt-paint, #276B44); mix-blend-mode: color; opacity: var(--tt-tint-a, 0); }
.tt-tone { background: var(--tt-tone-c, #0B0B0B); mix-blend-mode: var(--tt-tone-m, multiply); opacity: var(--tt-tone-a, 0); }
.tt-putty { opacity: 0; background:
  radial-gradient(7% 5% at 49% 57%, #CBBF9F 55%, transparent 100%),
  radial-gradient(9% 4.5% at 62% 64%, #CBBF9F 50%, transparent 100%),
  radial-gradient(6% 5% at 73% 54%, #CBBF9F 50%, transparent 100%),
  radial-gradient(8% 3.5% at 30% 63%, #CBBF9F 50%, transparent 100%); }
.tt-gl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.tt-drawn .tt-gl { opacity: 1; }
.tt-drawn .tt-view > :is(picture, .tt-tint, .tt-tone, .tt-putty) { visibility: hidden; }
.tt-view:has(.tt-light:focus-visible) { outline: 2px solid var(--tt-cream); outline-offset: -6px; }
.tt-keyhint { position: absolute; left: 16px; bottom: 14px; padding: 6px 10px; border-radius: 999px; background: var(--tt-black); color: var(--tt-cream); font: 500 .75rem/1 var(--tt-bc); letter-spacing: .12em; text-transform: uppercase; opacity: 0; transition: opacity .18s; }
.tt-view:has(.tt-light:focus-visible) .tt-keyhint { opacity: 1; }

/* paints for the CSS recolour (no WebGL, no JavaScript): set on the booth, read by every layer */
.tt-stage:has(#tt-sw-cream:checked) { --tt-paint: #EAE0C4; --tt-tint-a: 1; --tt-tone-c: #F4EEDC; --tt-tone-m: screen; --tt-tone-a: .45; }
.tt-stage:has(#tt-sw-black:checked) { --tt-paint: #141414; --tt-tint-a: 1; --tt-tone-a: .55; }
.tt-stage:has(#tt-sw-harbour:checked) { --tt-paint: #2E4A6B; --tt-tint-a: 1; --tt-tone-a: .08; }
.tt-stage:has(#tt-sw-mulberry:checked) { --tt-paint: #5A2438; --tt-tint-a: 1; --tt-tone-a: .12; }
.tt-stage:has(#tt-sw-silver:checked) { --tt-paint: #A7ABAD; --tt-tint-a: 1; --tt-tone-c: #F4EEDC; --tt-tone-m: screen; --tt-tone-a: .28; }
/* layer looks for the stills (and the booth, without WebGL): primer, filler on steel, bare steel */
.tt-car[data-k="1"], .tt-car[data-k="2"], .tt-car[data-k="3"] { --tt-tint-a: 1; --tt-tone-c: #9C9E99; --tt-tone-m: screen; }
.tt-car[data-k="1"] { --tt-paint: #8A8C88; --tt-tone-a: .5; }
.tt-car[data-k="2"], .tt-car[data-k="3"] { --tt-paint: #9AA3AA; --tt-tone-c: #B9C1C6; --tt-tone-a: .62; }
.tt-car[data-k="2"] .tt-putty { opacity: .9; }
.tt-still, .tt-card-pic { --tt-mask: url(/assets/work/tappet-and-trim/coupe-mask-sm.webp); --tt-fx: 50%; --tt-fy: 50%; aspect-ratio: 3 / 2; }

/* the gauge: four layers, stacked by thickness */
.tt-gauge { grid-area: gauge; container-type: inline-size; position: relative; z-index: 2; background: var(--tt-black); }
.tt-gauge-h { font: 500 .6875rem/1.2 var(--tt-bc); letter-spacing: .16em; text-transform: uppercase; color: var(--tt-tan); }
.tt-layers { display: grid; grid-template-columns: repeat(4, 1fr); height: 36px; }
.tt-ly { display: grid; place-items: center; color: var(--tt-dim); font: 800 .8125rem/1 var(--tt-bc); letter-spacing: .06em; text-transform: uppercase; }
.tt-ly > span { background: linear-gradient(var(--tt-cream), var(--tt-cream)) no-repeat 0 52% / 0 2px; transition: background-size .28s var(--tt-ease), color .18s; padding-inline: 2px; }
.tt-ly.is-on { color: var(--tt-cream); }
.tt-ly.is-off > span { color: transparent; -webkit-text-stroke: 1px var(--tt-cream); background-size: 100% 2px; }
.tt-ly-steel { background: var(--tt-hair); }
.tt-ly-steel.is-on { background: var(--tt-cream); color: var(--tt-black); }
.tt-gauge .tt-gauge-h, .tt-stripto .tt-lab { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.tt-stripto { position: absolute; inset: 0; }
.tt-stripto input { -webkit-appearance: none; appearance: none; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; background: transparent; cursor: ew-resize; }
.tt-stripto input::-webkit-slider-runnable-track { height: 100%; background: transparent; }
.tt-stripto input::-webkit-slider-thumb { -webkit-appearance: none; width: 25cqw; height: 36px; border: 2px solid var(--tt-cream); border-radius: 4px; background: transparent; }
.tt-stripto input::-moz-range-track { height: 100%; background: transparent; }
.tt-stripto input::-moz-range-thumb { width: 25cqw; height: 32px; border: 2px solid var(--tt-cream); border-radius: 4px; background: transparent; }
.tt-stripto input:focus-visible { outline-offset: -2px; }

/* the console */
.tt-console { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; min-height: 72px; padding: 12px 24px; background: var(--tt-black); color: var(--tt-cream); }
.tt-paints { display: flex; align-items: center; gap: 14px; border: 0; min-width: 0; }
.tt-paints legend { float: left; padding: 0; color: var(--tt-cream); }
.tt-sws { display: flex; gap: 10px; }
.tt-sw { --c: #276B44; position: relative; display: block; width: 36px; height: 36px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 0 var(--tt-black), 0 0 0 0 var(--tt-cream), inset 0 0 0 1px rgba(244, 238, 220, .28); transition: box-shadow .18s var(--tt-ease); }
.tt-sw input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; border-radius: 50%; }
.tt-sw:has(input:checked) { box-shadow: 0 0 0 2px var(--tt-black), 0 0 0 4px var(--tt-cream), inset 0 0 0 1px rgba(244, 238, 220, .28); }
.tt-sw:has(input:focus-visible) { outline: 2px solid var(--tt-tan); outline-offset: 6px; }
.tt-sw input:focus-visible { outline: none; }
.tt-c-cream { --c: #EAE0C4; } .tt-c-black { --c: #141414; } .tt-c-harbour { --c: #2E4A6B; } .tt-c-mulberry { --c: #5A2438; } .tt-c-silver { --c: #A7ABAD; }
.tt-sw-any { --c: var(--tt-own, var(--tt-black)); box-shadow: inset 0 0 0 1.5px var(--tt-cream); display: none; }
.tt-js .tt-sw-any { display: block; }
.tt-sw-any .tt-own { pointer-events: none; }
.tt-sw-any .tt-anyin { -webkit-appearance: none; appearance: none; padding: 0; border: 0; background: transparent; }
.tt-sw-any .tt-anyin::-webkit-color-swatch-wrapper { padding: 0; }
.tt-sw-any .tt-anyin::-webkit-color-swatch { border: 0; opacity: 0; }
.tt-sw-any:has(.tt-anyin:focus-visible) { outline: 2px solid var(--tt-tan); outline-offset: 6px; }
.tt-ico { position: absolute; inset: 10px; width: 16px; height: 16px; fill: none; stroke: var(--tt-cream); stroke-width: 2; stroke-linecap: square; pointer-events: none; mix-blend-mode: difference; }
.tt-check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; position: relative; }
.tt-check input { position: absolute; z-index: 1; width: 24px; height: 24px; margin: 0; opacity: 0; cursor: pointer; }
.tt-box { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border: 1.5px solid currentColor; border-radius: 3px; }
.tt-box svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; opacity: 0; transition: opacity .18s; }
.tt-box-r { border-radius: 50%; }
.tt-box-r::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; opacity: 0; transition: opacity .18s; }
.tt-check input:checked + .tt-box svg, .tt-check input:checked + .tt-box-r::after { opacity: 1; }
.tt-check:has(input:focus-visible) .tt-box { outline: 2px solid var(--tt-tan); outline-offset: 3px; }
.tt-card .tt-check:has(input:focus-visible) .tt-box { outline-color: var(--tt-black); }
.tt-flake-l { font: 500 .875rem/1 var(--tt-bc); letter-spacing: .1em; text-transform: uppercase; padding-left: 22px; border-left: 1px solid rgba(244, 238, 220, .28); min-height: 36px; }
.tt-readout { flex: 1 1 300px; font-size: 1rem; line-height: 1.4; color: var(--tt-ink2); background: linear-gradient(var(--tt-tan), var(--tt-tan)) no-repeat 0 100% / 0 1px; padding-bottom: 3px; }
.tt-readout.is-new { animation: tt-wipe .28s var(--tt-ease) both; }
@keyframes tt-wipe { from { background-size: 0 1px; } to { background-size: 100% 1px; } }
.tt-addwrap { display: grid; justify-items: end; gap: 4px; margin-left: auto; }
.tt-add, .tt-send { min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; font: 500 .9375rem/1 var(--tt-bc); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: transform .18s var(--tt-ease), background-color .18s; }
.tt-add { background: var(--tt-cream); color: var(--tt-black); }
.tt-add:hover { background: #fff; }
.tt-add:active, .tt-send:active { transform: translateY(1px); }
.tt-add-s { display: none; }
.tt-added { font-size: .8125rem; line-height: 1.2; color: var(--tt-tan); }
.tt-added:empty { display: none; }
.tt-page:not(.tt-js) :is(.tt-flake-l, .tt-readout, .tt-addwrap, .tt-stripto) { display: none; }
.tt-page:not(.tt-js) .tt-console { justify-content: flex-start; }

.tt-cap { display: grid; gap: 4px; padding: 14px 0 0; font-size: .875rem; line-height: 1.45; letter-spacing: .005em; }
.tt-how { color: var(--tt-cream); }
.tt-honest { color: var(--tt-ink2); }

/* the programme line: the strip-down notes (and, when nothing pins, four stills) */
.tt-strip { padding-top: 48px; }
.tt-strip-h { margin-bottom: 24px; text-wrap: balance; }
.tt-index { display: none; }
.tt-stops { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.tt-stop-h { font: 500 .8125rem/1.2 var(--tt-bc); letter-spacing: .14em; text-transform: uppercase; margin: 14px 0 6px; }
.tt-stop p { font-size: .9375rem; line-height: 1.5; color: var(--tt-ink2); max-width: 44ch; }
.tt-still-c { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.tt-still-c.is-drawn { opacity: 1; }
.tt-at { position: absolute; left: 0; width: 1px; height: 1px; pointer-events: none; top: calc(var(--p) * (100% - 100svh) + 50svh); }
#tt-at-topcoat { --p: 0; } #tt-at-primer { --p: .311; } #tt-at-filler { --p: .624; } #tt-at-steel { --p: .96; }

/* live: WebGL drew and motion is welcome — the stage pins and scroll strips the car */
.tt-live .tt-run { height: 320svh; }
.tt-live .tt-stage { position: sticky; top: calc(var(--bar-h, 40px) + var(--tt-board-h)); }
.tt-live .tt-strip { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: start; min-height: 96px; padding-top: 22px; }
.tt-live .tt-strip-h { grid-column: 1 / 4; margin: 0; }
.tt-live .tt-index { display: flex; gap: 20px; grid-column: 4 / 7; padding-top: 4px; }
.tt-live .tt-index li { font: 500 .8125rem/1 var(--tt-bc); letter-spacing: .12em; text-transform: uppercase; color: var(--tt-ink2); padding-bottom: 6px; border-bottom: 2px solid transparent; transition: border-color .18s, color .18s; }
.tt-live .tt-index li.is-on { color: var(--tt-cream); border-bottom-color: var(--tt-tan); }
.tt-live .tt-stops { display: block; grid-column: 7 / 13; }
.tt-live .tt-stop, .tt-live .tt-still { display: none; }
.tt-live .tt-stop.is-on { display: block; }
.tt-live .tt-stop-h { display: inline; margin: 0 8px 0 0; color: var(--tt-cream); }
.tt-live .tt-stop p { display: inline; font-size: 1rem; }

/* ── the order of work ─────────────────────────── */
.tt-order { position: relative; padding-block: var(--tt-sec); }
.tt-order-in { display: grid; grid-template-columns: minmax(0, 1fr) var(--tt-lane) minmax(0, 1fr); grid-template-rows: repeat(6, auto); row-gap: 48px; }
.tt-order-in > .tt-h2 { grid-column: 1 / -1; }
.tt-chart { grid-column: 1 / -1; grid-row: 2 / 5; display: grid; grid-template-columns: subgrid; grid-template-rows: subgrid; }
.tt-bx { position: relative; z-index: 1; }
.tt-bx-1 { grid-column: 1 / -1; grid-row: 1; }
.tt-bx-2 { grid-column: 1; grid-row: 2; } .tt-bx-3 { grid-column: 3; grid-row: 2; margin-top: 56px; }
.tt-bx-4 { grid-column: 1; grid-row: 3; } .tt-bx-5 { grid-column: 3; grid-row: 3; margin-top: 56px; }
.tt-bx a { position: relative; display: flex; align-items: center; gap: 18px; min-height: 112px; padding: 26px 20px 18px; text-decoration: none; }
.tt-bx a::before, .tt-slot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; border: 2px solid var(--tt-hair); border-bottom: 0; transition: border-color .18s; }
.tt-bx a:hover::before { border-color: var(--tt-cream); }
.tt-bx-t { display: grid; gap: 6px; }
.tt-bx-n { font: 800 var(--tt-h3s)/1 var(--tt-bc); }
.tt-bx-l { color: var(--tt-ink2); line-height: 1.35; }
.tt-turn { grid-column: 1 / 3; grid-row: 3 / -1; position: relative; margin: -36px 0 calc(-1 * var(--tt-sec)) calc(-1 * var(--tt-edge)); pointer-events: none; }
.tt-turn > * { position: absolute; left: 0; bottom: 0; border-style: solid; border-bottom: 0; border-left: 0; }
.tt-turn-t { top: 0; right: calc(var(--tt-lane) / 2 - 12px); border-width: 6px 6px 0 0; border-color: var(--tt-tan); border-top-right-radius: 66px; }
.tt-turn-c { top: 12px; right: calc(var(--tt-lane) / 2); border-width: 12px 12px 0 0; border-color: var(--tt-cream); border-top-right-radius: 54px; }
.tt-key { grid-column: 3; grid-row: 5; font-size: .875rem; line-height: 1.45; color: var(--tt-ink2); max-width: 46ch; }
.tt-starts { grid-column: 1; grid-row: 6; display: grid; gap: 16px; align-content: start; }
.tt-starts .tt-h3 { margin-bottom: 4px; }
.tt-shop { grid-column: 3; grid-row: 6; }
.tt-shop img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.tt-page figcaption:not(.tt-cap) { margin-top: 10px; font-size: .875rem; line-height: 1.45; color: var(--tt-ink2); }
/* wide: painted grid slots, each against the lane, the pole slot centred across it */
@media (min-width: 1024px) {
  .tt-order-in { row-gap: 32px; }
  .tt-order-in > .tt-h2 { margin-bottom: 16px; }
  .tt-starts, .tt-shop { margin-top: 24px; }
  .tt-bx { width: min(100%, 440px); }
  .tt-bx-1 { justify-self: center; }
  .tt-bx-2, .tt-bx-4 { justify-self: end; }
  .tt-bx-3, .tt-bx-5 { justify-self: start; }
  .tt-bx a::before { border-top-color: var(--tt-cream); }
  .tt-bx .tt-rd-s { --d: 56px; }
  .tt-bx-n { font-size: clamp(2rem, 1.4rem + 1.6vw, 3rem); }
  .tt-turn { margin-top: -34px; }
}

/* ── the stripe pair: one line through the grid ─── */
.tt-lane { position: absolute; top: 0; bottom: 0; left: calc(50% - 12px); width: 24px; pointer-events: none; }
.tt-ln-c, .tt-ln-t { position: absolute; top: 0; bottom: 0; }
.tt-ln-c { left: 0; width: 12px; background: var(--tt-cream); }
.tt-ln-t { left: 18px; width: 6px; background: var(--tt-tan); }
.tt-lane-end { bottom: auto; height: var(--tt-end, 38%); }
.tt-lane-end > * { border-radius: 0 0 99px 99px; }
/* from 760px the pair turns out of the lane and runs into the job card, ending at its punched hole:
   the tan line centred on the hole, the cream on the outside of the turn (it meets the card and becomes it) */
.tt-ret { display: none; }
@media (min-width: 760px) {
  .tt-js .tt-lane-end { height: calc(var(--tt-end) + 21px - 54px); }
  .tt-js .tt-lane-end > * { border-radius: 0; }
  .tt-js .tt-ret { display: block; position: absolute; z-index: 2; left: calc(50% - 12px); top: calc(var(--tt-end) + 21px - 54px); width: var(--tt-endw); height: 54px; pointer-events: none; }
  .tt-ret > * { position: absolute; top: 0; right: 0; border-style: solid; border-top: 0; border-right: 0; }
  .tt-ret > *::after { content: ""; position: absolute; border-radius: 50%; }
  .tt-ret-c { left: 0; bottom: 0; border-width: 0 0 12px 12px; border-color: var(--tt-cream); border-bottom-left-radius: 54px; }
  .tt-ret-c::after { right: -6px; bottom: -12px; width: 12px; height: 12px; background: var(--tt-cream); }
  .tt-ret-t { left: 18px; bottom: 18px; border-width: 0 0 6px 6px; border-color: var(--tt-tan); border-bottom-left-radius: 36px; }
  .tt-ret-t::after { right: -3px; bottom: -6px; width: 6px; height: 6px; background: var(--tt-tan); }
  .tt-js .tt-hole { z-index: 3; }
}

/* ── the slots ─────────────────────────────────── */
.tt-row { position: relative; padding-block: calc(var(--tt-sec) * .4) var(--tt-sec); }
.tt-row-in { display: grid; grid-template-columns: minmax(0, 1fr) var(--tt-lane) minmax(0, 1fr); align-items: start; }
.tt-slot { position: relative; padding-top: 34px; }
.tt-slot-l { grid-column: 1; } .tt-slot-r { grid-column: 3; margin-top: var(--tt-drop); }
.tt-slot-fig { position: relative; margin-bottom: 32px; }
.tt-slot-fig .tt-rd-slot { position: absolute; z-index: 2; top: calc(var(--d) * -.3); left: calc(var(--d) * -.3); }
.tt-ph { display: block; --tt-rx: calc(var(--d, 88px) * .2); --tt-ry: calc(var(--d, 88px) * .2); }
.tt-ph img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.tt-ph-metal img { object-position: 50% 60%; }
.tt-ph-trim img { object-position: 50% 35%; }
.tt-ph-engine img { aspect-ratio: 1; object-position: 50% 50%; }
.tt-pull { margin: 10px 0 12px; max-width: 24ch; text-wrap: balance; }
.tt-pull::before { content: ""; display: block; width: 48px; height: 2px; margin-bottom: 14px; background: var(--tt-tan); }
.tt-slot .tt-kick { margin-bottom: 14px; }
.tt-slot .tt-h2 { margin-bottom: 28px; }
.tt-copy { display: grid; gap: 20px; }
.tt-para { display: flex; flex-direction: column; gap: 14px; }
.tt-note { order: 2; margin-left: 16px; padding-left: 14px; border-left: 3px solid var(--tt-tan); font-size: .875rem; line-height: 1.45; color: var(--tt-ink2); max-width: 46ch; }
.tt-term { display: block; margin-bottom: 2px; font: 500 .75rem/1.2 var(--tt-bc); letter-spacing: .14em; text-transform: uppercase; color: var(--tt-cream); }

/* ── straight answers ──────────────────────────── */
.tt-answers { position: relative; background: var(--tt-black); color: var(--tt-cream); padding-block: var(--tt-sec); }
.tt-ans-in { display: grid; grid-template-columns: minmax(0, 1fr) var(--tt-lane) minmax(0, 1fr); row-gap: 48px; }
.tt-ans-h { grid-column: 1 / -1; color: var(--tt-tan); }
.tt-ans { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; row-gap: 48px; }
.tt-ans li { grid-column: 1; max-width: 30ch; }
.tt-ans li:nth-child(even) { grid-column: 3; margin-top: 56px; }
.tt-ans-s { font: 800 clamp(1.75rem, 1rem + 2.9vw, 3.5rem)/.95 var(--tt-bc); margin-bottom: 14px; text-wrap: balance; }
.tt-ans p:not(.tt-ans-s) { color: var(--tt-ink2); max-width: 44ch; }

/* ── the job card ──────────────────────────────── */
.tt-enq-head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.tt-enq-head .tt-kick { margin: 0; }
.tt-enq .tt-h2 { margin-bottom: 20px; }
.tt-card { position: relative; margin-top: 36px; padding: 32px; border-radius: 6px; background: var(--tt-cream); color: var(--tt-black); }
.tt-hole { position: absolute; top: 12px; left: 12px; width: 14px; height: 14px; border-radius: 50%; background: var(--tt-green); box-shadow: inset 0 0 0 1px var(--tt-black); }
.tt-card-note { margin: -8px 0 18px 12px; font-size: .875rem; line-height: 1.4; }
.tt-card-top { margin-bottom: 28px; }
.tt-card-pic canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tt-card-paint { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid rgba(11, 11, 11, .2); font: 500 1.0625rem/1.3 var(--tt-bc); letter-spacing: .04em; }
.tt-card .tt-lab { font-size: .75rem; letter-spacing: .16em; }
.tt-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.tt-f { grid-column: 1 / -1; display: grid; gap: 6px; border: 0; min-width: 0; }
.tt-f-half { grid-column: auto; }
.tt-f :is(input[type="text"], textarea) { width: 100%; min-height: 48px; padding: 10px 2px; border: 0; border-bottom: 1px solid var(--tt-black); border-radius: 0; background: transparent; color: var(--tt-black); font: 400 1.0625rem/1.4 var(--tt-b); }
.tt-f textarea { resize: vertical; background: repeating-linear-gradient(transparent 0 29px, rgba(11, 11, 11, .2) 29px 30px); line-height: 30px; padding-top: 6px; }
.tt-f ::placeholder { color: #5E5B52; opacity: 1; }
.tt-hint { font-size: .8125rem; line-height: 1.4; color: #3A3832; }
.tt-opts { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.tt-opts legend { float: left; width: 100%; margin-bottom: 10px; }
.tt-paintrow { display: flex; align-items: center; gap: 12px; }
.tt-chip { width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--tt-chip, transparent); box-shadow: inset 0 0 0 1.5px var(--tt-black); }
.tt-halfway { margin-top: 4px; }
.tt-send-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 30px; padding-top: 22px; border-top: 2px solid var(--tt-tan); }
.tt-send { background: var(--tt-black); color: var(--tt-cream); }
.tt-send:hover { background: #2a2a28; }
.tt-status { font-size: .9375rem; }

/* ── the back pages ────────────────────────────── */
.tt-back { background: var(--tt-cream); color: var(--tt-black); }
.tt-back .tt-h2 { color: var(--tt-green); }
.tt-ask { padding-block: var(--tt-sec) calc(var(--tt-sec) * .6); }
.tt-ask-in, .tt-words-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 40px; }
.tt-ask-in > .tt-h2, .tt-words-in > .tt-h2 { grid-column: 1 / -1; }
.tt-door { grid-column: 1 / 6; }
.tt-door .tt-h3 { margin-bottom: 24px; }
.tt-door-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.tt-door h4 { margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--tt-tan); }
.tt-door li { padding: 8px 0; border-bottom: 1px solid rgba(11, 11, 11, .2); line-height: 1.45; }
.tt-faq { grid-column: 7 / 13; border-top: 2px solid var(--tt-tan); }
.tt-q { border-bottom: 2px solid var(--tt-tan); }
.tt-q summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; font: 800 clamp(1.25rem, 1.05rem + .6vw, 1.625rem)/1.1 var(--tt-bc); }
.tt-q summary::-webkit-details-marker { display: none; }
.tt-pm { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--tt-black); stroke-width: 2; stroke-linecap: square; }
.tt-pm-v { transition: transform .18s var(--tt-ease); transform-origin: 8px 8px; }
.tt-q[open] .tt-pm-v { transform: scaleY(0); }
.tt-q p { padding: 0 0 22px; max-width: 56ch; line-height: 1.6; }
.tt-words { padding-block: calc(var(--tt-sec) * .6) var(--tt-sec); }
.tt-gloss { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(6, auto); grid-auto-flow: column; gap: 0 64px; }
.tt-g { padding: 18px 0 20px; border-top: 1px solid rgba(11, 11, 11, .2); }
.tt-g dt { font: 500 .875rem/1.2 var(--tt-bc); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
.tt-g dd { max-width: 58ch; line-height: 1.55; }
.tt-g a { color: var(--tt-green); font: 500 .8125rem/1 var(--tt-bc); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; margin-left: 6px; }
.tt-g-name dt { font: 800 1.5rem/1 var(--tt-bc); letter-spacing: .02em; color: var(--tt-green); }
.tt-g-name dd { font-size: 1.125rem; }

/* ── colophon ──────────────────────────────────── */
.tt-colo { padding-block: 72px 56px; }
.tt-colo-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 32px; align-items: center; }
.tt-colo-mark { grid-column: 1 / 7; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.tt-colo-mark p { color: var(--tt-ink2); font-size: .9375rem; line-height: 1.45; }
.tt-colo-nav { grid-column: 7 / 13; justify-self: end; }
.tt-colo-line { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--tt-hair); font-size: .875rem; line-height: 1.45; color: var(--tt-ink2); max-width: 80ch; }

/* ── wide: the gauge plate and caption sit on the photograph ── */
@media (min-width: 1420px) {
  .tt-booth { grid-template-areas: "view"; }
  .tt-view { height: clamp(420px, calc(100svh - var(--bar-h, 40px) - 345px), 620px); }
  .tt-gauge { grid-area: view; align-self: end; justify-self: end; width: 224px; margin: 20px; padding: 14px 16px 12px; border-radius: 6px; container-type: normal; }
  .tt-gauge .tt-gauge-h { position: static; width: auto; height: auto; clip-path: none; margin-bottom: 10px; }
  .tt-layers { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; height: auto; }
  .tt-ly { display: block; line-height: .9; letter-spacing: .02em; }
  .tt-ly[data-k="0"] { font-size: 18px; } .tt-ly[data-k="1"] { font-size: 26px; } .tt-ly[data-k="2"] { font-size: 40px; }
  .tt-ly-steel { align-self: stretch; font-size: 30px; padding: 5px 8px 3px; border-radius: 3px; background: rgba(244, 238, 220, .16); color: var(--tt-dim); }
  .tt-stripto { position: relative; display: flex; align-items: center; gap: 12px; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(244, 238, 220, .2); }
  .tt-stripto .tt-lab { position: static; width: auto; height: auto; clip-path: none; font-size: .6875rem; color: var(--tt-cream); white-space: nowrap; }
  .tt-stripto input { position: relative; inset: auto; height: 22px; flex: 1; }
  .tt-stripto input::-webkit-slider-runnable-track { height: 2px; background: radial-gradient(circle, var(--tt-cream) 2px, transparent 2.5px) 0 50% / calc((100% - 14px) / 3) 6px repeat-x, rgba(244, 238, 220, .35); background-origin: content-box; padding: 0 5px; }
  .tt-stripto input::-webkit-slider-thumb { width: 14px; height: 14px; margin-top: -6px; border: 0; border-radius: 50%; background: var(--tt-cream); box-shadow: 0 0 0 3px var(--tt-black); }
  .tt-stripto input::-moz-range-track { height: 2px; background: rgba(244, 238, 220, .35); }
  .tt-stripto input::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--tt-cream); }
  .tt-cap { position: absolute; top: 18px; right: 22px; z-index: 3; max-width: 310px; margin: 0; padding: 0; font-size: .8125rem; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
  .tt-view::after { content: ""; position: absolute; top: 0; right: 0; width: 44%; height: 34%; z-index: 1; pointer-events: none; background: radial-gradient(90% 100% at 100% 0, rgba(11, 11, 11, .62), transparent 72%); }
  .tt-drawn .tt-view::after { z-index: 1; }
}
@media (min-width: 1200px) {
  .tt-para { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 4fr); column-gap: 24px; align-items: start; }
  .tt-para > :not(.tt-note) { grid-column: 2; grid-row: 1 / span 3; }
  .tt-para > .tt-note { grid-column: 1; margin: 0; padding: 0; border: 0; }
  .tt-slot-r .tt-para { grid-template-columns: minmax(0, 4fr) minmax(0, 2fr); }
  .tt-slot-r .tt-para > :not(.tt-note) { grid-column: 1; }
  .tt-slot-r .tt-para > .tt-note { grid-column: 2; }
  .tt-note::before { content: ""; display: block; width: 24px; height: 1px; margin-bottom: 10px; background: var(--tt-tan); }
  .tt-para + .tt-para { margin-top: 2px; }
}

/* ── tablet and small laptop ───────────────────── */
@media (max-width: 1023px) {
  .tt-page { --tt-lane: 56px; }
  .tt-head { grid-template-columns: auto minmax(0, 1fr); column-gap: 20px; }
  .tt-rd-pole { grid-row: 1; margin: 0; align-self: center; }
  .tt-head-kick { grid-column: 2; grid-row: 1; margin: 0; align-self: center; }
  .tt-h1 { grid-column: 1 / -1; grid-row: 2; margin-top: 18px; }
  .tt-sub { grid-column: 1 / -1; grid-row: 3; padding: 20px 0 calc(var(--tt-h1) * .45); }
  .tt-sub .tt-stand { max-width: 40ch; }
  .tt-view { height: auto; aspect-ratio: 2 / 1; }
  .tt-live .tt-run { height: 260svh; }
  .tt-live .tt-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 24px; }
  .tt-live .tt-strip-h { grid-column: 1 / 3; }
  .tt-live .tt-index { display: none; }
  .tt-live .tt-stops { grid-column: 3 / 7; }
  .tt-ans li { max-width: none; }
  .tt-ask-in > *, .tt-door, .tt-faq, .tt-colo-mark, .tt-colo-nav { grid-column: 1 / -1; }
  .tt-colo-nav { justify-self: start; }
}

/* ── phones: the slots stack in grid order, the stripe keeps to the left edge ── */
@media (max-width: 759px) {
  .tt-page { --tt-board-h: 48px; --tt-lane: 16px; --tt-drop: 0px; }
  .tt-plate { font-size: 16px; padding: 5px 8px 4px; }
  .tt-board .tt-pair { display: none; }
  .tt-gridnav ol { gap: 0; }
  .tt-gridnav a { justify-content: center; width: 44px; padding: 0; }
  .tt-gridnav .tt-nl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .tt-head { column-gap: 14px; padding-top: 16px; }
  .tt-h1 { margin-top: 12px; }
  .tt-sub { padding: 16px 0; }
  .tt-sub .tt-stand { font-size: 1.0625rem; }
  .tt-run { margin-top: 0; }
  .tt-stage { width: 100%; }
  .tt-view { aspect-ratio: 4 / 3; max-height: 62svh; }
  .tt-console { padding: 14px 16px; gap: 14px 16px; justify-content: space-between; }
  .tt-paints { flex: 1 1 100%; }
  .tt-paints legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tt-sws { gap: 8px; width: 100%; justify-content: space-between; }
  .tt-sw { width: 40px; height: 40px; }
  .tt-ico { inset: 12px; }
  .tt-flake-l { padding-left: 0; border: 0; }
  .tt-readout { order: 5; flex-basis: 100%; font-size: .9375rem; }
  .tt-addwrap { margin: 0; }
  .tt-add-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .tt-add-s { display: inline; }
  .tt-cap { padding: 14px 16px 0; }
  .tt-strip { padding: 40px 16px 0; }
  .tt-stops { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .tt-stop p { font-size: .875rem; }
  .tt-live .tt-run { height: 220svh; }
  .tt-live .tt-strip { display: block; padding-top: 16px; min-height: 0; }
  .tt-live .tt-strip-h { font-size: 1.125rem; margin-bottom: 6px; }
  .tt-live .tt-stop p { font-size: .9375rem; line-height: 1.45; }
  .tt-order .tt-wrap, .tt-row .tt-wrap, .tt-answers .tt-wrap { width: auto; margin-left: 24px; margin-right: 16px; }
  .tt-order-in { row-gap: 32px; }
  .tt-chart { row-gap: 28px; }
  .tt-bx-3, .tt-bx-5 { margin-top: 40px; }
  .tt-bx a { flex-direction: column; align-items: flex-start; gap: 10px; min-height: 0; padding: 22px 10px 14px; }
  .tt-bx-1 a { flex-direction: row; align-items: center; }
  .tt-bx-n { font-size: 1.375rem; }
  .tt-bx-l { font-size: .875rem; }
  .tt-turn { grid-column: 1; margin: -20px 0 calc(-1 * var(--tt-sec)) -20px; width: 12px; }
  .tt-turn > * { border: 0; border-radius: 3px 3px 0 0; }
  .tt-turn-t { top: 0; left: 9px; right: auto; width: 3px; background: var(--tt-tan); }
  .tt-turn-c { top: 0; left: 0; right: auto; width: 6px; background: var(--tt-cream); }
  .tt-key, .tt-starts, .tt-shop { grid-column: 1 / -1; grid-row: auto; }
  .tt-key { grid-row: 5; }
  .tt-shop { margin-right: -16px; }
  .tt-shop img { aspect-ratio: 4 / 5; object-position: 40% 55%; }
  .tt-shop figcaption { margin-right: 16px; }
  .tt-lane { left: 4px; width: 12px; }
  .tt-ln-c { width: 6px; }
  .tt-ln-t { left: 9px; width: 3px; }
  .tt-row-in { grid-template-columns: minmax(0, 1fr); row-gap: 64px; }
  .tt-slot-l, .tt-slot-r { grid-column: 1; margin-top: 0; }
  .tt-slot { padding-top: 40px; }
  .tt-slot::before { display: none; }
  .tt-slot-fig { margin: 0 -16px 28px -8px; }
  .tt-slot-fig .tt-rd-slot { top: calc(var(--d) * -.4); left: 12px; }
  .tt-ph { --tt-rx: 40px; --tt-ry: 6px; }
  .tt-ph-metal img { object-position: 50% 62%; }
  .tt-ph-trim img { object-position: 50% 32%; }
  .tt-ph-engine img { aspect-ratio: 1; }
  .tt-ans li, .tt-ans li:nth-child(even) { grid-column: 1 / -1; margin-top: 0; }
  .tt-ans { row-gap: 36px; }
  .tt-ans-s { font-size: 1.75rem; }
  .tt-card { padding: 28px 16px 20px; }
  .tt-card-note { margin-left: 16px; }
  .tt-fields { grid-template-columns: 1fr; }
  .tt-f-half { grid-column: 1 / -1; }
  .tt-send { width: 100%; }
  .tt-door-cols, .tt-gloss { grid-template-columns: 1fr; }
  .tt-gloss { grid-template-rows: none; grid-auto-flow: row; }
  .tt-colo-nav a { padding: 0 4px; }
  .tt-colo-nav .tt-nl { display: none; }
}
/* the narrowest phones (under 390px): the plate and the five roundels share the board, so the targets narrow with
   the screen (44px tall always, 32px wide at the least) and the plate steps down a size */
@media (max-width: 389px) {
  .tt-board-in { gap: 10px; }
  .tt-plate { font-size: clamp(14px, 4.4vw, 16px); padding-inline: 7px; }
  .tt-gridnav a { width: clamp(32px, (100vw - 172px) / 5, 44px); }
  .tt-gridnav .tt-rd { --d: clamp(24px, (100vw - 172px) / 5 - 10px, 28px); }
}
/* the short phone: roundel in the headline's first line, the car, gauge and swatches all on the first screen */
@media (max-width: 700px) and (max-height: 640px) {
  .tt-pole { display: flex; flex-direction: column; }
  .tt-head { display: contents; }
  .tt-head-kick { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tt-rd-pole { --d: 40px; position: absolute; top: 12px; left: 16px; }
  .tt-h1 { order: 0; margin: 12px 16px; font-size: 2.5rem; text-indent: 50px; }
  .tt-h1 > span { display: inline; }
  .tt-sub { order: 2; padding: 20px 16px 0; }
  .tt-run { order: 1; }
  .tt-view { aspect-ratio: 3 / 2; max-height: none; }
  .tt-layers { height: 32px; }
  .tt-stripto input::-webkit-slider-thumb { height: 32px; }
  .tt-console { padding: 8px 16px; gap: 8px 16px; }
  .tt-flake-l, .tt-add { min-height: 36px; }
  .tt-live .tt-readout, .tt-live .tt-cap, .tt-live .tt-strip-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tt-live .tt-strip { padding-top: 10px; }
  .tt-live .tt-stop p { font-size: .875rem; }
  .tt-shop img { aspect-ratio: 3 / 2; }
  .tt-ph img { max-height: 46svh; }
  .tt-ph-engine img { object-position: 50% 40%; }
}
@media (max-width: 400px) and (max-height: 640px) { .tt-bx-l { display: none; } }
@media (max-width: 700px) { .tt-page { --tt-mask: url(/assets/work/tappet-and-trim/coupe-mask-sm.webp); } }

/* ── motion: jacked, not floated ───────────────── */
@media (prefers-reduced-motion: no-preference) {
  .tt-js .tt-rd:is(.tt-rd-slot, .tt-rd-s) { transform: scale(.92); transition: transform .32s var(--tt-ease); }
  .tt-js .tt-rd:is(.tt-rd-slot, .tt-rd-s) > .tt-rn { transform: translateY(80%); }
  .tt-js .tt-rd.tt-in { transform: none; }
  .tt-js .tt-rd.tt-in > .tt-rn { animation: tt-num .32s var(--tt-ease) both; }
  @keyframes tt-num { 0% { transform: translateY(80%); } 80% { transform: translateY(calc(-.04em - 2px)); } 100% { transform: translateY(-.04em); } }
  .tt-js .tt-io:not(.tt-in) { opacity: 0; transform: translateY(24px); }
  .tt-js .tt-io { transition: opacity .32s var(--tt-ease), transform .32s var(--tt-ease); }
  @supports (animation-timeline: view()) {
    .tt-ph { animation: tt-iris var(--tt-ease) both; animation-timeline: view(); animation-range: entry 10% cover 30%; }
    @keyframes tt-iris { from { clip-path: circle(0 at var(--tt-rx) var(--tt-ry)); } to { clip-path: circle(150% at var(--tt-rx) var(--tt-ry)); } }
    .tt-h2 .tt-hl { display: inline-block; animation: tt-rise var(--tt-ease) both; animation-timeline: view(); animation-range: entry 12% cover 26%; }
    .tt-h2 .tt-hl + .tt-hl { animation-range: entry 18% cover 30%; }
    @keyframes tt-rise { from { opacity: 0; transform: translateY(.3em); } to { opacity: 1; transform: none; } }
    .tt-note { animation: tt-fade linear both; animation-timeline: view(); animation-range: entry 20% cover 30%; }
    .tt-note::before { animation: tt-rule var(--tt-ease) both; animation-timeline: view(); animation-range: entry 24% cover 34%; }
    @keyframes tt-fade { from { opacity: 0; } to { opacity: 1; } }
    @keyframes tt-rule { from { width: 0; } to { width: 24px; } }
    .tt-bx { animation: tt-roll var(--tt-ease) both; animation-timeline: view(); animation-range: entry 5% cover 22%; }
    .tt-bx-2, .tt-bx-3 { animation-range: entry 10% cover 26%; }
    .tt-bx-4, .tt-bx-5 { animation-range: entry 15% cover 30%; }
    .tt-bx a::before { animation: tt-bracket var(--tt-ease) both; animation-timeline: view(); animation-range: entry 10% cover 28%; }
    @keyframes tt-roll { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
    @keyframes tt-bracket { from { clip-path: inset(0 50% 0 50%); } to { clip-path: inset(0); } }
    .tt-lane { view-timeline: --tt-ln block; }
    .tt-lane > * { animation: tt-draw linear both; animation-timeline: --tt-ln; animation-range: cover 30vh cover calc(100% - 70vh); }
    .tt-lane > .tt-ln-t { animation-range: cover calc(30vh + 24px) cover calc(100% - 70vh + 24px); }
    @keyframes tt-draw { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
    /* the return draws on at the same line as the lane: down through the turn, then across to the hole */
    .tt-ret { view-timeline: --tt-rt block; }
    .tt-ret > * { animation: tt-ret linear both; animation-timeline: --tt-rt; animation-range: cover 30vh cover calc(100% - 70vh + 40px); }
    @keyframes tt-ret { 0% { clip-path: inset(0 calc(100% - 30px) 100% -8px); } 55% { clip-path: inset(0 calc(100% - 30px) -14px -8px); } 100% { clip-path: inset(0 -8px -14px -8px); } }
    .tt-turn { view-timeline: --tt-tn block; }
    .tt-turn > * { animation: tt-turn linear both; animation-timeline: --tt-tn; animation-range: cover 22vh cover calc(100% - 70vh); }
    .tt-turn > .tt-turn-t { animation-range: cover calc(22vh + 24px) cover calc(100% - 70vh + 24px); }
    @keyframes tt-turn { 0% { clip-path: inset(0 100% calc(100% - 30px) 0); } 14% { clip-path: inset(0 0 calc(100% - 30px) 0); } 100% { clip-path: inset(0); } }
  }
}
/* narrow screens: everything in the ask, words and colophon sections already spans the row, so one
   column (twelve columns kept 352px of gaps, wider than a phone) */
@media (max-width: 1023px) { .tt-ask-in, .tt-words-in, .tt-colo-in { grid-template-columns: minmax(0, 1fr); } }
