/* EJ Tire & Auto: the website's styles.
   Each section's styles sit under a banner with the same name as in index.html.
   The menu, dock, photo viewer, Prices, Good to know and the moving details are at the
   very end of this file under the "MENU, DOCK, PHOTO VIEWER AND MOVING DETAILS" banner.
   Fonts: Geist + Geist Mono.

   Section colors, top to bottom (brand red / black / cream in the big areas):
   company header: black · tire search: EJ red · brands: black · services: cream ·
   prices: black · wheels & rims: bronze · mobile service: black · coupons: EJ red ·
   reviews: cream · recent work: black · good to know: black · footer with the map: black.
   The red sections get drifting wave edges. */

:root {
  --ink: #0a0b0d;
  --light: #f5f5f7;
  --red: #d23624;
  --red-hi: #e8412d;
  --ember: #ff6a3d;
  --amber: #ffb347;
  --hot: linear-gradient(100deg, #ff5a36 0%, #ffb347 100%);
  --dim-l: #5b606a;
  --ok: #30d158;
  --r: 28px;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --cream: #f6f0e8;
  --red-bg: radial-gradient(90% 70% at 85% 10%, #ff6a3d 0%, rgba(255, 106, 61, 0) 60%), linear-gradient(160deg, #d23624 0%, #a3200f 100%);
  --on-red: linear-gradient(100deg, #ffd27a 0%, #fff3dc 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.5; color: var(--ink); background: var(--light); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.035em; line-height: 1.04; }
h2 { font-size: clamp(36px, 5.2vw, 76px); }
h2 em { font-style: normal; background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.eyebrow { font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 16px; }
.lede { font-size: clamp(17px, 1.5vw, 21px); color: var(--dim-l); max-width: 54ch; margin-top: 18px; }
.fine { font-size: 13px; color: var(--dim-l); margin-top: 18px; }
.head { margin-bottom: 60px; }

/* scroll reveals */
.js [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .14em 0; margin: 0 -.06em -.14em 0; }
.js [data-split] .w > span { display: inline-block; transform: translateY(108%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--wi, 0) * 60ms + 40ms); }
.js [data-split].is-in .w > span { transform: none; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ===================== Top bar ===================== */
.top { position: sticky; top: 0; z-index: 50; background: var(--ink); color: #fff; }
.top__in { display: flex; align-items: center; gap: 14px; height: 64px; }
.top__logo { margin-right: auto; }
.top__logo img { height: 30px; width: auto; }
.lang { display: flex; padding: 3px; border-radius: 99px; background: rgba(255, 255, 255, .1); }
.lang button { border: 0; background: none; cursor: pointer; padding: 6px 11px; border-radius: 99px; font: 600 13px/1 var(--sans); letter-spacing: .04em; color: rgba(255, 255, 255, .7); }
.lang button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.top__call { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 99px; background: var(--red); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; transition: background .2s; }
.top__call:hover { background: var(--red-hi); }
.top__call svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }

/* ===================== SECTION: Services tiles ===================== */
.svc { padding: 130px 0; background: var(--cream); }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: 16px; }
.tile { position: relative; overflow: hidden; border-radius: var(--r); background: #fff; color: var(--ink); text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; isolation: isolate; transition: transform .5s var(--spring), box-shadow .4s var(--ease); }
.js .tile[data-reveal] { transition: opacity 1s var(--ease), transform 1s var(--ease), box-shadow .4s var(--ease); }
.js .tile.is-done { transition: transform .5s var(--spring), box-shadow .4s var(--ease); }
a.tile:hover { transform: translateY(-6px) scale(1.012); box-shadow: 0 30px 60px rgba(10, 11, 13, .16); transition: transform .5s var(--spring), box-shadow .4s var(--ease); }
.tile--wide { grid-column: span 2; }
.tile__txt { position: relative; z-index: 2; font-size: 15px; line-height: 1.4; color: inherit; }
.tile__txt > span { opacity: .9; }
.tile__txt strong { display: block; font-size: 23px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 2px; }
.tile__fx { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chips b { font-weight: 600; font-size: 13.5px; padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .2); white-space: nowrap; }

/* --- tile--brakes: the disc spins, the caliper bites, the disc glows and stops --- */
.tile--brakes { background: #0d0f13; color: #fff; }
/* the drawing box leaves room for the caliper, so it can start just above the top edge */
.brk { position: absolute; top: -8px; right: 2px; width: 158px; height: 158px; overflow: visible; }
.brk__face { fill: #4a5059; stroke: #2c3036; stroke-width: 3; }
.brk__line { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 1.5; }
.brk__holes circle, .brk__bore { fill: #0d0f13; }
.brk__hat { fill: #2d3138; stroke: #5d646e; stroke-width: 2; }
.brk__lugs circle { fill: #17191e; }
.brk__cal path { fill: url(#g-cal); stroke: url(#g-cal); stroke-width: 10; stroke-linejoin: round; }
.brk__cal text { fill: #fff; font: 800 italic 17px var(--sans); text-anchor: middle; dominant-baseline: central; letter-spacing: -.02em; }
.brk__disc { animation: brk-spin 4.2s infinite; }
.brk__heat { opacity: 0; animation: brk-heat 4.2s infinite; }
.brk__cal { animation: brk-clamp 4.2s infinite; }
@keyframes brk-spin {
  0% { transform: rotate(0deg); animation-timing-function: linear; }
  30% { transform: rotate(540deg); animation-timing-function: cubic-bezier(.3, .4, .45, 1); }
  70%, 100% { transform: rotate(1080deg); }
}
@keyframes brk-heat { 0%, 30% { opacity: 0; } 62% { opacity: .95; } 80% { opacity: .55; } 100% { opacity: 0; } }
@keyframes brk-clamp { 0%, 28% { transform: none; } 33%, 70% { transform: translate(-3px, 3px); } 75%, 100% { transform: none; } }

/* --- tile--lathe: rotor resurfacing; a rusty rotor turns and comes out smooth --- */
.tile--lathe { background: linear-gradient(160deg, #dfe1e6, #b3b8c0); }
.lathe { --d: 118px; position: absolute; top: 14px; right: 48px; width: var(--d); height: var(--d); }
.lathe i { position: absolute; inset: 0; border-radius: 50%; }
.lathe__rust {
  background:
    conic-gradient(from 20deg, rgba(45, 22, 10, .5) 0 7%, transparent 7% 29%, rgba(45, 22, 10, .4) 29% 35%, transparent 35% 61%, rgba(45, 22, 10, .45) 61% 69%, transparent 69%),
    repeating-radial-gradient(circle, #7c4a2c 0 3px, #9b6440 3px 5px, #6a3d24 5px 6px);
  box-shadow: 0 12px 26px rgba(10, 11, 13, .28);
  animation: spin 1.1s linear infinite;
}
.lathe__cut {
  background:
    repeating-radial-gradient(circle, rgba(255, 255, 255, 0) 0 1px, rgba(0, 0, 0, .07) 1px 2px),
    conic-gradient(#f4f5f7, #9ea5ae 10%, #f8f9fa 22%, #aab0b8 36%, #eef0f2 50%, #959ca6 64%, #f6f7f8 78%, #b3b8bf 90%, #f4f5f7);
  animation: spin 1.1s linear infinite, lathe-cut 5s var(--ease) infinite;
}
.lathe .lathe__hub { inset: 31%; background: radial-gradient(circle, #15171b 0 24%, #555b64 25% 62%, #3a3f47 63%); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .25); }
.lathe .lathe__bit { inset: auto; left: calc(50% + 9px); top: calc(50% - 6px); width: 90px; height: 12px; border-radius: 0; background: #1a1d22; transform: translateX(calc(var(--d) * .2)); animation: lathe-bit 5s var(--ease) infinite; }
.lathe__bit::before { content: ""; position: absolute; left: -9px; top: 0; border-style: solid; border-width: 6px 9px 6px 0; border-color: transparent #1a1d22 transparent transparent; }
.lathe__bit::after { content: ""; position: absolute; left: -13px; top: 3px; width: 6px; height: 6px; border-radius: 50%; background: #ffd27a; box-shadow: 0 0 10px 4px rgba(255, 140, 40, .85); opacity: 0; animation: lathe-spark 5s infinite; }
@keyframes lathe-cut {
  0%, 8% { clip-path: circle(20% at 50% 50%); opacity: 1; }
  75%, 90% { clip-path: circle(50% at 50% 50%); opacity: 1; }
  100% { clip-path: circle(50% at 50% 50%); opacity: 0; }
}
@keyframes lathe-bit {
  0%, 8% { transform: translateX(calc(var(--d) * .2)); }
  75% { transform: translateX(calc(var(--d) * .5)); }
  88% { transform: translateX(calc(var(--d) * .64)); }
  100% { transform: translateX(calc(var(--d) * .2)); }
}
@keyframes lathe-spark { 0%, 8% { opacity: 0; } 11%, 73% { opacity: 1; } 76%, 100% { opacity: 0; } }

/* --- tile--align: two front wheels, crooked, then straight, then a check --- */
.tile--align { background: linear-gradient(160deg, #0b2447, #1f6fd8); color: #fff; }
.aln { position: absolute; top: 14px; right: 18px; width: 60%; height: auto; overflow: visible; }
.aln__guide { fill: none; stroke: #fff; stroke-width: 2; stroke-dasharray: 5 6; opacity: 0; animation: aln-guide 5s infinite, aln-flow 1s linear infinite; }
.aln__axle { stroke: rgba(255, 255, 255, .55); stroke-width: 3; stroke-linecap: round; }
.aln__tire rect { fill: #121214; }
.aln__tire path { stroke: rgba(255, 255, 255, .2); stroke-width: 2; }
.aln__tire { transform-box: fill-box; transform-origin: center; }
.aln__tire--l { animation: aln-l 5s var(--ease) infinite; }
.aln__tire--r { animation: aln-r 5s var(--ease) infinite; }
.aln__ok { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: aln-ok 5s var(--spring) infinite; }
.aln__ok circle { fill: #fff; }
.aln__ok path { fill: none; stroke: var(--red); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes aln-l { 0%, 18% { transform: rotate(-14deg); } 40%, 84% { transform: none; } 100% { transform: rotate(-14deg); } }
@keyframes aln-r { 0%, 18% { transform: rotate(14deg); } 40%, 84% { transform: none; } 100% { transform: rotate(14deg); } }
@keyframes aln-guide { 0%, 40% { opacity: 0; } 48%, 82% { opacity: .9; } 90%, 100% { opacity: 0; } }
@keyframes aln-flow { to { stroke-dashoffset: -22; } }
@keyframes aln-ok { 0%, 42% { transform: scale(0); } 50%, 84% { transform: scale(1); } 92%, 100% { transform: scale(0); } }

/* --- tile--lift: suspension & lift kits; a pickup drives along, then lifts on its springs --- */
.tile--lift { background: var(--red); color: #fff; }
.sus { position: absolute; top: 12px; right: 16px; width: 190px; height: auto; overflow: visible; }
.sus__road { stroke: rgba(255, 255, 255, .7); stroke-width: 3; stroke-dasharray: 18 14; animation: sus-road .7s linear infinite; }
.sus__spring { fill: none; stroke: #ffc61a; stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: 50% 100%; animation: sus-spring 6s var(--ease) infinite; }
.sus__body { animation: sus-lift 6s var(--ease) infinite; }
.sus__shell { fill: #fff; }
.sus__glass { fill: #1b1d22; }
.sus__seam { fill: none; stroke: rgba(10, 11, 13, .18); stroke-width: 2; stroke-linecap: round; }
.sus__bar { fill: #121214; }
.sus__bar-lit { stroke: #ffd34d; stroke-width: 3.5; stroke-linecap: round; }
.sus__tail { fill: #8f1d10; }
.sus__lamp { fill: #ffd34d; }
.sus__grille { stroke: #121214; stroke-width: 4; stroke-linecap: round; }
.sus__bumper { fill: #121214; }
.sus__wheel { transform-box: fill-box; transform-origin: center; animation: spin .9s linear infinite; }
.sus__tyre { fill: #121214; }
.sus__tread { fill: none; stroke: #121214; stroke-width: 6; stroke-dasharray: 6 4.4; transform-box: fill-box; transform-origin: center; transform: scale(1.06); }
.sus__rim { fill: #d9dce1; }
.sus__spoke { stroke: #8a9099; stroke-width: 4; stroke-linecap: round; }
@keyframes sus-road { to { stroke-dashoffset: 32; } }
@keyframes sus-lift {
  0%, 12% { transform: none; }
  6% { transform: translateY(1.5px); }
  22% { transform: translateY(-26px); }
  27% { transform: translateY(-22px); }
  31%, 72% { transform: translateY(-24px); }
  50% { transform: translateY(-22.5px); }
  86% { transform: translateY(1px); }
  92%, 100% { transform: none; }
}
@keyframes sus-spring {
  0%, 12% { transform: none; }
  6% { transform: scaleY(.946); }
  22% { transform: scaleY(1.929); }
  27% { transform: scaleY(1.786); }
  31%, 72% { transform: scaleY(1.857); }
  50% { transform: scaleY(1.804); }
  86% { transform: scaleY(.964); }
  92%, 100% { transform: none; }
}

/* --- tile--oil: gray above the oil (the Tune-up gray); the oil sloshes, and an oil can drips into it with a ripple where each drop lands --- */
.tile--oil { background: #d6d8de; color: #fff; }
.wave { position: absolute; z-index: 0; left: -75%; top: 46%; width: 250%; aspect-ratio: 1; border-radius: 43%; background: linear-gradient(180deg, #f6b23a, #e0930f); animation: spin 11s linear infinite; }
.wave--2 { top: 49%; border-radius: 41%; opacity: .55; animation-duration: 15s; animation-direction: reverse; z-index: -1; }
.wave--3 { top: 45%; border-radius: 45%; background: #ffd27a; opacity: .7; animation-duration: 7s; z-index: -1; }
.tile--oil:hover .wave { animation-duration: 4s; }
.oilcan { position: absolute; top: 14px; right: 16px; width: 100px; height: auto; overflow: visible; z-index: 1; }
.oilcan__spout { fill: #9aa1ab; }
.oilcan__body { fill: var(--red); }
.oilcan__band { fill: #a52714; }
.oilcan__cap, .oilcan__base { fill: #2b2f36; }
.oilcan__handle { fill: none; stroke: #2b2f36; stroke-width: 4; stroke-linecap: round; }
/* the drop starts at the spout tip; --fall is how far it drops to the oil */
.drop { --fall: 52px; position: absolute; z-index: 1; top: 57px; right: 104px; width: 9px; height: 9px; border-radius: 0 50% 50% 50%; transform: rotate(45deg); background: radial-gradient(circle at 35% 35%, #ffe2a3, #e0930f 70%); opacity: 0; animation: oil-drop 1.8s cubic-bezier(.55, 0, 1, .45) infinite; }
.ripple { position: absolute; z-index: 1; top: 108px; right: 92px; width: 34px; height: 8px; border-radius: 50%; border: 2px solid rgba(255, 238, 200, .9); opacity: 0; animation: oil-ripple 1.8s var(--ease) infinite; }
.tile--oil:hover .drop, .tile--oil:hover .ripple { animation-duration: .9s; }
@keyframes oil-drop {
  0% { opacity: 0; transform: translateY(0) rotate(45deg) scale(.3); }
  12% { opacity: 1; transform: translateY(0) rotate(45deg) scale(.6); }
  34% { opacity: 1; transform: translateY(2px) rotate(45deg) scale(1); }
  62% { opacity: 1; transform: translateY(var(--fall)) rotate(45deg) scale(1); }
  64%, 100% { opacity: 0; transform: translateY(var(--fall)) rotate(45deg) scale(1); }
}
@keyframes oil-ripple { 0%, 60% { opacity: 0; transform: scale(.2); } 64% { opacity: 1; transform: scale(.4); } 92%, 100% { opacity: 0; transform: scale(1.5); } }

/* --- tile--clim: AC & heater in one box; snow falls on the cold side, heat rises on the hot side --- */
.tile--clim { background: #0b2447; color: #fff; }
.clim__cold, .clim__hot { position: absolute; inset: 0; overflow: hidden; }
.clim__cold { background: linear-gradient(160deg, #0b2447, #1f6fd8); }
.clim__hot { background: linear-gradient(160deg, #4a0f06, #f05a24); clip-path: polygon(58% 0, 100% 0, 100% 100%, 42% 100%); }
.clim__cold i { position: absolute; top: -30px; font-style: normal; font-size: 22px; color: rgba(255, 255, 255, .8); animation: snow 5s linear infinite; }
.clim__cold i:nth-child(1) { left: 8%; animation-delay: -1s; }
.clim__cold i:nth-child(2) { left: 22%; animation-delay: -3.2s; font-size: 30px; }
.clim__cold i:nth-child(3) { left: 36%; animation-delay: -2s; font-size: 16px; }
.clim__cold i:nth-child(4) { left: 47%; animation-delay: -4.1s; font-size: 26px; }
.clim__cold i:nth-child(5) { left: 15%; animation-delay: -.4s; }
.clim__hot svg { position: absolute; top: 22px; right: 22px; width: 104px; height: 104px; overflow: visible; fill: none; stroke: #ffe0b8; stroke-width: 5; stroke-linecap: round; filter: drop-shadow(0 0 10px rgba(255, 170, 80, .55)); }
.clim__hot path { animation: heat-rise 2.4s ease-in-out infinite; }
.clim__hot path:nth-child(2) { animation-delay: -.8s; }
.clim__hot path:nth-child(3) { animation-delay: -1.6s; }
.tile--clim:hover .clim__cold i { animation-duration: 2.5s; }
.tile--clim:hover .clim__hot path { animation-duration: 1.2s; }
@keyframes snow { to { transform: translateY(290px) rotate(240deg); opacity: 0; } }
@keyframes heat-rise { 0% { transform: translateY(18px); opacity: 0; } 30%, 62% { opacity: 1; } 100% { transform: translateY(-18px); opacity: 0; } }

/* --- tile--diag: a pulse line --- */
.tile--diag { background: #0d0f13; color: #fff; }
.tile--diag .tile__fx svg { position: absolute; left: 0; right: 0; top: 34px; width: 100%; height: 90px; }
.tile--diag path { fill: none; stroke: var(--ember); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 520; stroke-dashoffset: 520; animation: pulse 1.5s var(--ease) infinite; }
@keyframes pulse { 0% { stroke-dashoffset: 520; } 70%, 100% { stroke-dashoffset: 0; } 100% { opacity: 0; } }

/* --- tile--eng: gears; black, so the gear holes are black too --- */
.tile--eng { background: #0d0f13; color: #fff; }
.gear { position: absolute; fill: #b9bcc6; }
.gear__hole { fill: #0d0f13; }
.gear--a { width: 100px; height: 100px; right: 22px; top: 12px; animation: spin 14s linear infinite; }
.gear--b { width: 60px; height: 60px; right: 108px; top: 34px; fill: var(--red); animation: spin 9.1s linear infinite reverse; }
.tile--eng:hover .gear--a { animation-duration: 4s; }
.tile--eng:hover .gear--b { animation-duration: 2.6s; }

/* --- tile--tpms: flat repair & TPMS; the pressure light blinks while PSI climbs, then goes green --- */
@property --psi { syntax: "<integer>"; inherits: true; initial-value: 35; }
.tile--tpms { background: #fff; }
.tpms { --psi: 35; position: absolute; top: 22px; right: 22px; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 18px; background: #0d0f13; color: #ffb000; box-shadow: 0 12px 26px rgba(10, 11, 13, .2); animation: tpms-col 5s infinite, tpms-psi 5s infinite; }
.tpms svg { width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; animation: tpms-blink 5s infinite; }
.tpms__psi { display: flex; flex-direction: column; align-items: flex-end; font: 700 30px/1 var(--mono); }
.tpms__psi b { font-weight: 700; min-width: 2ch; text-align: right; }
.tpms__psi b::after { content: counter(psi); counter-reset: psi var(--psi); }
.tpms__psi small { margin-top: 3px; font-size: 10px; letter-spacing: .14em; opacity: .75; }
@keyframes tpms-psi { 0%, 10% { --psi: 12; } 55%, 100% { --psi: 35; } }
@keyframes tpms-col { 0%, 56% { color: #ffb000; } 60%, 100% { color: #30d158; } }
@keyframes tpms-blink { 0%, 8%, 16%, 24%, 32%, 40%, 48%, 56%, 100% { opacity: 1; } 4%, 12%, 20%, 28%, 36%, 44%, 52% { opacity: .25; } }

/* --- tile--batt: charging --- */
.tile--batt { background: linear-gradient(160deg, #0f3020, #1a6b40); color: #fff; }
.tile--batt .tile__fx { inset: 26px 26px auto 26px; height: 74px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; padding: 8px; border: 3px solid rgba(255, 255, 255, .5); border-radius: 16px; }
.tile--batt .tile__fx::after { content: ""; position: absolute; right: -12px; top: 22px; width: 7px; height: 24px; border-radius: 0 5px 5px 0; background: rgba(255, 255, 255, .5); }
.tile--batt .tile__fx i { border-radius: 7px; background: var(--ok); opacity: .14; animation: charge 3.2s infinite; }
.tile--batt .tile__fx i:nth-child(2) { animation-delay: .5s; }
.tile--batt .tile__fx i:nth-child(3) { animation-delay: 1s; }
.tile--batt .tile__fx i:nth-child(4) { animation-delay: 1.5s; }
@keyframes charge { 0%, 10% { opacity: .14; } 25%, 80% { opacity: 1; } 100% { opacity: .14; } }

/* --- tile--rims: aftermarket wheels; a spinning rim that grows from 17″ to 22″ --- */
@property --inch { syntax: "<integer>"; inherits: true; initial-value: 22; }
.tile--rims { background: linear-gradient(160deg, #3d220e, #a8692a); color: #fff; }  /* bronze, like aftermarket bronze wheels */
.rim { position: absolute; top: 14px; right: 18px; width: 122px; height: 122px; transition: transform 1.8s var(--ease) .3s; }
.js .tile--rims:not(.is-in) .rim { transform: scale(.77); }
.rim__tyre { fill: #15171b; }
.rim__lip { fill: url(#g-rim); }
.rim__barrel { fill: #2b2f36; }
.rim__spokes path { fill: url(#g-rim); stroke: #6d747e; stroke-width: .6; }
.rim__hub { fill: #c9cdd3; }
.rim__lugs circle { fill: #5d646e; }
.rim__cap { fill: var(--red); }
.rim__spin { animation: spin 3.2s linear infinite; }
.tile--rims:hover .rim__spin { animation-duration: .9s; }
.rim__in { --inch: 22; position: absolute; top: 22px; left: 24px; font: 800 42px/1 var(--sans); letter-spacing: -.04em; color: #ffd9a8; transition: --inch 1.8s steps(5, end) .3s; }
.js .tile--rims:not(.is-in) .rim__in { --inch: 17; }
.rim__in::after { content: counter(inch) "″"; counter-reset: inch var(--inch); }
.rim__in small { display: block; margin-bottom: 4px; font: 600 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }

/* --- tile--tune: tune-up; four spark plugs firing in order 1-3-4-2 (plug colors live in index.html) --- */
.tile--tune { background: #d6d8de; color: var(--ink); }
.tune { position: absolute; top: 18px; right: 22px; width: 168px; height: auto; overflow: visible; }
.spark { opacity: 0; transform-box: fill-box; transform-origin: center; animation: spark 1.6s infinite; }
.spark path { fill: none; stroke: #c2410c; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.spark--1 { animation-delay: 0s; }
.spark--3 { animation-delay: .4s; }
.spark--4 { animation-delay: .8s; }
.spark--2 { animation-delay: 1.2s; }
.tile--tune:hover .spark { animation-duration: .8s; }
.tile--tune:hover .spark--3 { animation-delay: .2s; }
.tile--tune:hover .spark--4 { animation-delay: .4s; }
.tile--tune:hover .spark--2 { animation-delay: .6s; }
@keyframes spark { 0% { opacity: 1; transform: scale(1.2); } 7% { opacity: 1; } 20% { opacity: 0; transform: scale(.6); } 100% { opacity: 0; } }

/* --- tile--rotate: rotation & balance; top view, fronts go straight back, rears cross to the front --- */
.tile--rotate { background: var(--red); color: #fff; }
.rot { position: absolute; top: 14px; right: 18px; width: 128px; height: auto; overflow: visible; }
.rot__car { fill: rgba(0, 0, 0, .14); stroke: rgba(255, 255, 255, .55); stroke-width: 2; }
.rot__paths path { fill: none; stroke: #fff; stroke-width: 2; stroke-dasharray: 4 4; }
.rot__paths { opacity: 0; animation: rot-paths 5s infinite; }
.rot__tire rect { fill: #121214; }
.rot__tire path { stroke: rgba(255, 255, 255, .22); stroke-width: 1.6; }
.rot__tire--fl, .rot__tire--fr { animation: rot-back 5s var(--ease) infinite; }
.rot__tire--rl { animation: rot-rl 5s var(--ease) infinite; }
.rot__tire--rr { animation: rot-rr 5s var(--ease) infinite; }
@keyframes rot-paths { 0%, 6% { opacity: 0; } 14%, 44% { opacity: .9; } 54%, 100% { opacity: 0; } }
@keyframes rot-back { 0%, 22% { transform: none; } 52%, 100% { transform: translate(0, 54px); } }
@keyframes rot-rl { 0%, 22% { transform: none; } 52%, 100% { transform: translate(76px, -54px); } }
@keyframes rot-rr { 0%, 22% { transform: none; } 52%, 100% { transform: translate(-76px, -54px); } }

/* --- tile--rimfix: rim repair on a straightening machine.
   The rim turns and the dial needle swings (it's bent); it stops with the bend at the press,
   the press pushes it out, then the rim spins true, the needle holds still, and it sparkles. --- */
.tile--rimfix { background: #fff; color: var(--ink); }  /* white, like Flat repair & TPMS */
.rm { position: absolute; top: 6px; right: 12px; width: 164px; height: auto; overflow: visible; }
.rm__steel { fill: #8a9099; }
.rm__base { fill: #4a5059; }
.rm__lip { fill: url(#g-rim); }
.rm__barrel { fill: #2b2f36; }
.rm__spokes path { fill: url(#g-rim); stroke: #6d747e; stroke-width: .6; }
.rm__hub { fill: #c9cdd3; }
.rm__cap { fill: var(--red); }
.rm__dent { fill: #fff; animation: rm-dent 5s infinite; }
.rm__wheel { animation: rm-spin 5s infinite; }
.rm__rod { fill: #9aa1ab; animation: rm-press 5s var(--ease) infinite; }
.rm__ram { fill: #ffc61a; stroke: #b88a00; stroke-width: 1.5; }
.rm__probe { stroke: #8a9099; stroke-width: 2; stroke-linecap: round; }
.rm__gauge { fill: #f4f6f8; stroke: #2b2f36; stroke-width: 2; }
.rm__needle { stroke: var(--red); stroke-width: 2; stroke-linecap: round; transform-origin: 21px 30px; animation: rm-needle 5s infinite; }
.rm__pin { fill: #2b2f36; }
.rm__spark { fill: #f2a31b; opacity: 0; transform-box: fill-box; transform-origin: center; animation: rm-spark 5s infinite; }
.tile--rimfix:hover .rm__wheel, .tile--rimfix:hover .rm__dent, .tile--rimfix:hover .rm__rod,
.tile--rimfix:hover .rm__needle, .tile--rimfix:hover .rm__spark { animation-duration: 2.5s; }
@keyframes rm-spin {
  0% { transform: rotate(0deg); animation-timing-function: cubic-bezier(.3, .4, .45, 1); }
  30%, 64% { transform: rotate(720deg); animation-timing-function: cubic-bezier(.55, 0, .85, .6); }
  100% { transform: rotate(1080deg); }
}
@keyframes rm-press { 0%, 34% { transform: none; } 40%, 50% { transform: translateX(-8px); } 58%, 100% { transform: none; } }
@keyframes rm-dent { 0%, 40% { opacity: 1; } 52%, 90% { opacity: 0; } 100% { opacity: 1; } }
@keyframes rm-needle {
  0% { transform: rotate(-28deg); } 5% { transform: rotate(28deg); } 10% { transform: rotate(-28deg); }
  15% { transform: rotate(28deg); } 20% { transform: rotate(-26deg); } 25% { transform: rotate(24deg); }
  30%, 48% { transform: rotate(20deg); } 56%, 100% { transform: rotate(0deg); }
}
@keyframes rm-spark { 0%, 66% { opacity: 0; transform: scale(.2) rotate(0deg); } 74% { opacity: 1; transform: scale(1.15) rotate(45deg); } 84% { opacity: 1; transform: scale(.9) rotate(70deg); } 92%, 100% { opacity: 0; transform: scale(.2) rotate(90deg); } }

/* --- tile--ask: the catch-all; two boxes wide, words left and button right --- */
.tile--ask { background: var(--hot); flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 16px; }
.tile--ask .tile__txt { max-width: 60%; }
.tile__go { position: relative; z-index: 2; font-weight: 700; white-space: nowrap; padding: 12px 18px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 15px; }
/* ===================== END SECTION: Services tiles ===================== */

/* ================= Responsive ================= */
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  body { font-size: 16.5px; }
  .wrap { padding: 0 18px; }
  .head { margin-bottom: 40px; }
  h2 { font-size: 40px; }
  .top__in { height: 58px; gap: 10px; }
  .top__logo img { height: 24px; }
  .top__call { min-height: 40px; padding: 0 14px; }
  .top__num { display: none; }
  .svc { padding: 86px 0; }

  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 216px; gap: 10px; }
  .tile { padding: 16px; border-radius: 22px; }
  .tile__txt { font-size: 13.5px; }
  .tile__txt strong { font-size: 18px; }
  .tile--wide { grid-column: 1 / -1; }
  .tile--ask .tile__txt { font-size: 0; }
  .tile--ask .tile__txt strong { font-size: 18px; }
  .tile__go { padding: 9px 11px; font-size: 12.5px; }
  .chips { gap: 4px; margin-top: 6px; }
  .chips b { font-size: 12px; padding: 3px 8px; }

  .brk { top: -5px; right: 0; width: 108px; height: 108px; }
  .lathe { --d: 78px; top: 12px; right: 34px; }
  .lathe .lathe__bit { height: 9px; top: calc(50% - 4.5px); }
  .lathe__bit::before { left: -7px; border-width: 4.5px 7px 4.5px 0; }
  .lathe__bit::after { left: -10px; top: 2px; width: 5px; height: 5px; }
  .aln { top: 12px; right: 10px; width: 70%; }
  .sus { top: 10px; right: 12px; width: 120px; }
  .clim__cold i { font-size: 17px; }
  .clim__cold i:nth-child(2) { font-size: 22px; }
  .clim__hot svg { width: 62px; height: 62px; top: 14px; right: 14px; stroke-width: 6; }
  .tile--diag .tile__fx svg { top: 18px; height: 70px; }
  .gear--a { width: 84px; height: 84px; right: 8px; top: 8px; }
  .gear--b { width: 54px; height: 54px; right: 80px; top: 34px; }
  .tpms { top: 14px; right: 14px; gap: 8px; padding: 8px 10px 8px 8px; border-radius: 14px; }
  .tpms svg { width: 32px; height: 32px; }
  .tpms__psi { font-size: 20px; }
  .tpms__psi small { font-size: 8.5px; }
  .tile--batt .tile__fx { inset: 18px 22px auto 16px; height: 56px; }
  .tile--batt .tile__fx::after { top: 14px; }
  .rim { width: 76px; height: 76px; top: 12px; right: 10px; }
  .rim__in { top: 16px; left: 16px; font-size: 28px; }
  .rim__in small { font-size: 9px; }
  .tune { width: 112px; top: 12px; right: 12px; }
  .rot { width: 90px; top: 10px; right: 12px; }
  .rm { top: 4px; right: 6px; width: 100px; }
  .oilcan { top: 10px; right: 10px; width: 66px; }
  .drop { --fall: 58px; top: 38px; right: 68px; width: 7px; height: 7px; }
  .ripple { top: 96px; right: 58px; width: 26px; height: 6px; }
  .tile--ask .tile__txt { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .js [data-split] .w > span { transform: none; transition: none; }
  .tile__fx, .tile__fx * { animation: none !important; }
  .tile__fx *::before, .tile__fx *::after { animation: none !important; }
  .aln__ok { transform: none; }
  .aln__guide { opacity: .9; }
  .tpms { color: #30d158; }
  .tile--batt .tile__fx i { opacity: 1; }
  .tile--diag path { stroke-dashoffset: 0; }
  .js .tile--rims:not(.is-in) .rim { transform: none; }
  .spark--1 { opacity: 1; }
  .rot__paths { opacity: .9; }
  .rm__dent { opacity: 0; }
  .clim__cold i:nth-child(1) { top: 14%; } .clim__cold i:nth-child(2) { top: 34%; } .clim__cold i:nth-child(3) { top: 8%; } .clim__cold i:nth-child(4) { top: 22%; } .clim__cold i:nth-child(5) { top: 48%; }
}

/* =====================================================================================
   PAGE SECTIONS (company header, tire search, brands, mobile service, coupons, reviews,
   footer with the map).
   These come after the services styles on purpose: some rules here override them.
   ===================================================================================== */


/* ---- top bar: section links ---- */
.top__nav { display: flex; gap: 2px; margin-right: 6px; }
.top__nav a { padding: 8px 12px; border-radius: 99px; color: rgba(255, 255, 255, .75); font-weight: 600; font-size: 14px; text-decoration: none; transition: background .2s, color .2s; }
.top__nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* ---- wave edges on the red sections: one wave per screen width, drifting sideways ---- */
.edge { position: absolute; left: 0; z-index: 1; width: 200%; height: 70px; pointer-events: none; animation: edge-drift 24s linear infinite; }
.edge--top { top: -1px; }
.edge--bot { bottom: -1px; animation-duration: 30s; animation-direction: reverse; }
@keyframes edge-drift { to { transform: translateX(-50%); } }

/* the header and the tire search use a wider frame than the sections below */
.top .wrap, .intro .wrap, .tires .wrap { max-width: 1480px; }

/* ===================== SECTION: Company header ===================== */
.intro { position: relative; padding: 40px 0 64px; color: #fff;
  background: radial-gradient(55% 60% at 12% 35%, rgba(210, 54, 36, .3), transparent 70%), var(--ink); }
.intro__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; }
.intro__copy { display: flex; flex-direction: column; justify-content: center; padding: 24px 32px 24px 0; }
.intro__pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 99px; background: rgba(255, 255, 255, .07); font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .85); }
.pill b { color: #fff; }
.pill__stars { color: var(--amber); letter-spacing: 1px; font-size: 13px; }
.pill--open i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: open-pulse 2s ease-out infinite; }
.pill--open.is-closed i { background: #ff5a36; animation: none; }
@keyframes open-pulse { 0% { box-shadow: 0 0 0 0 rgba(48, 209, 88, .55); } 100% { box-shadow: 0 0 0 9px rgba(48, 209, 88, 0); } }
h1 { font-size: clamp(42px, 5.4vw, 80px); }
h1 em { font-style: normal; background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro__lede { max-width: 58ch; margin: 22px 0 0; font-size: clamp(17px, 1.4vw, 20px); color: rgba(255, 255, 255, .72); }
.intro__lede b { color: #fff; }
.intro__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.ibtn { display: inline-flex; align-items: center; gap: 9px; min-height: 56px; padding: 0 24px; border-radius: 99px; font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap; transition: transform .45s var(--spring), background .2s, color .2s, border-color .2s; }
.ibtn:hover { transform: translateY(-2px); }
.ibtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.ibtn--red { background: var(--red); color: #fff; box-shadow: 0 12px 30px rgba(210, 54, 36, .4); }
.ibtn--red:hover { background: var(--red-hi); }
.ibtn--white { background: #fff; color: var(--ink); }
.ibtn--ghost { border: 1.5px solid rgba(255, 255, 255, .32); color: #fff; }
.ibtn--ghost:hover { border-color: #fff; }
/* blue like the Pay over time tile: with the red Call and white Text buttons
   the header reads red, white and blue.
   The footer's Directions button uses it too. */
.ibtn--blue { background: linear-gradient(160deg, #0b2447, #1f6fd8); color: #fff; box-shadow: 0 12px 30px rgba(31, 111, 216, .35); }
.ibtn--blue:hover { background: linear-gradient(160deg, #10305c, #2f80ed); }
.ibtn--blue svg circle { fill: currentColor; stroke: none; }
.intro__hours { margin: 18px 0 0; font: 500 13px/1.4 var(--mono); letter-spacing: .04em; color: rgba(255, 255, 255, .5); }

/* the storefront photo: a tile that slowly settles in (its shape is set near the end, under "Header photo") */
.intro__photo { position: relative; overflow: hidden; min-height: 560px; margin: 0; border-radius: var(--r); background: #1a1d22; }
.intro__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; animation: intro-settle 16s var(--ease) both; }
@keyframes intro-settle { from { transform: scale(1.14); } to { transform: scale(1); } }
.intro__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 11, 13, .55) 0%, rgba(10, 11, 13, 0) 35%); pointer-events: none; }
.intro__badge { position: absolute; left: 14px; bottom: 14px; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 18px; background: rgba(10, 11, 13, .6); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 13px; line-height: 1.3; color: rgba(255, 255, 255, .75); }
.intro__badge img { position: static; width: 40px; height: 40px; animation: none; }
.intro__badge b { display: block; font-size: 14.5px; color: #fff; }

/* four fact tiles with moving icons (colors from the services) */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.fact { display: flex; align-items: center; gap: 16px; min-height: 112px; padding: 18px 22px; border: 0; border-radius: var(--r); color: #fff; font: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: transform .45s var(--spring), opacity 1s var(--ease); }
.js .fact[data-reveal].is-in:hover { transform: translateY(-4px); }
.fact svg { flex: none; width: 60px; height: 60px; overflow: visible; }
.fact b { display: block; font-size: 18px; letter-spacing: -.02em; line-height: 1.2; }
.fact b + span { display: block; margin-top: 2px; font-size: 14px; opacity: .78; }
.fact--red { background: var(--red); }
.fact--white { background: #fff; color: var(--ink); }
.fact--blue { background: linear-gradient(160deg, #0b2447, #1f6fd8); }
.fact--gold { background: linear-gradient(160deg, #f6b23a, #e0930f); color: var(--ink); }
.fact--gold b + span { opacity: .7; }
.ic-spin, .ic-wheel { transform-box: fill-box; transform-origin: center; }
.ic-spin { animation: ic-spin 3.2s linear infinite; }
.ic-wheel { animation: ic-spin .7s linear infinite; }
.ic-road { animation: ic-road .7s linear infinite; }
.ic-bob { animation: ic-bob .35s ease-in-out infinite alternate; }
.ic-card { animation: ic-card 3.2s var(--ease) infinite; }
.ic-pay { fill: #fff; fill-opacity: 0; stroke: #fff; stroke-width: 2; animation: ic-pay 3.2s var(--ease) infinite; }
.ic-say { fill: #fff; font: 800 13px var(--sans); animation: ic-say 4.4s var(--ease) infinite; }
.ic-say--b { animation-delay: -2.2s; }
@keyframes ic-spin { to { transform: rotate(360deg); } }
@keyframes ic-road { to { transform: translateX(-18px); } }
@keyframes ic-bob { to { transform: translateY(-1.2px); } }
@keyframes ic-card { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes ic-pay { 0%, 4% { fill-opacity: 0; } 14%, 78% { fill-opacity: 1; } 90%, 100% { fill-opacity: 0; } }
@keyframes ic-say { 0%, 40% { opacity: 1; } 50%, 90% { opacity: 0; } 100% { opacity: 1; } }
/* ===================== END SECTION: Company header ===================== */

/* ===================== SECTION: Tire search (on red) ===================== */
.tires { position: relative; overflow: clip; scroll-margin-top: -50px; padding: 110px 0 130px; background: var(--red-bg); color: #fff; }
.tires .eyebrow, .deals .eyebrow { color: rgba(255, 255, 255, .82); }
.tires h2 em, .deals h2 em { background: var(--on-red); -webkit-background-clip: text; background-clip: text; }
.tires .lede, .deals .lede { color: rgba(255, 255, 255, .85); }
.tires__head { margin-bottom: 28px; }
/* one-line headline and one-line intro, so the finder starts higher */
.tires__head h2 { font-size: clamp(34px, 4vw, 60px); }
.tires__head .lede { max-width: none; margin-top: 12px; }

.finder { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
@media (min-width: 1101px) {
  .finder { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .finder .tire3 { max-width: 400px; }
}

/* the tire tile (black, like Brakes and Engine) */
.finder__tire { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 54px 28px 28px; border-radius: var(--r); color: #fff;
  background: radial-gradient(58% 48% at 50% 42%, rgba(210, 54, 36, .42), transparent 72%), #0d0f13; box-shadow: 0 30px 60px rgba(60, 8, 0, .3); }
.finder__tag { position: absolute; top: 22px; left: 26px; font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.tire3 { display: block; width: 100%; max-width: 460px; height: auto; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .55)); }
.specs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.spec { min-width: 120px; padding: 12px 14px; border-radius: 18px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); text-align: center; }
.spec strong { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.spec span { font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }

/* the finder tile (white) */
.cfg { display: grid; gap: 12px; align-content: start; padding: 24px 26px; border-radius: var(--r); background: #fff; color: var(--ink); box-shadow: 0 30px 60px rgba(60, 8, 0, .25); }
.cfg__panel[hidden] { display: none; }
.cfg__label { font: 600 12px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim-l); }
.cfg__size { margin-top: 4px; font-weight: 800; font-size: clamp(40px, 3.8vw, 56px); letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cfg__size button { position: relative; display: inline-block; padding: 0; border: 0; border-radius: 8px; background: none; font: inherit; letter-spacing: inherit; color: var(--ink); cursor: pointer; }
.cfg__size button::after { content: ""; position: absolute; left: 4%; right: 4%; bottom: -2px; height: 3px; border-radius: 3px; background: var(--red); transform: scaleX(0); transition: transform .35s var(--ease); }
.cfg__size button:hover::after { transform: scaleX(.5); }
.cfg__size button[aria-pressed="true"] { color: var(--red); }
.cfg__size button[aria-pressed="true"]::after { transform: scaleX(1); }
.cfg__size .is-flip { animation: cfg-flip .45s var(--ease); }
@keyframes cfg-flip { 0% { transform: translateY(-40%); opacity: 0; } 100% { transform: none; opacity: 1; } }
.cfg__info { min-height: 42px; margin-top: 4px; font-size: 14.5px; color: var(--dim-l); }

/* flick wheels */
.picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
/* tablet and up: the spin wheels sit beside the size instead of under it */
@media (min-width: 701px) {
  .cfg__panel[data-panel="size"] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); grid-template-rows: auto auto auto 1fr auto; column-gap: 22px;
    grid-template-areas: "label picks" "size picks" "info picks" "chips picks" "type type"; }
  .cfg__panel[data-panel="size"] > .cfg__label { grid-area: label; }
  .cfg__panel[data-panel="size"] > .cfg__size { grid-area: size; }
  .cfg__panel[data-panel="size"] > .cfg__info { grid-area: info; }
  .cfg__panel[data-panel="size"] > .picks { grid-area: picks; margin-top: 0; }
  .cfg__panel[data-panel="size"] > .cfg__chips { grid-area: chips; align-self: start; margin-top: 6px; }
  .cfg__panel[data-panel="size"] > .cfg__type { grid-area: type; }
}
.picks.is-off .pick__wheel { opacity: .35; }
.pick__label { display: block; margin-bottom: 6px; text-align: center; font: 600 11.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim-l); }
.pick__box { position: relative; border-radius: 18px; background: #eef0f3; }
.pick__box::before { content: ""; position: absolute; left: 5px; right: 5px; top: 88px; height: 44px; border-radius: 12px; background: #fff; box-shadow: 0 2px 10px rgba(10, 11, 13, .1); pointer-events: none; }
.pick__wheel { position: relative; z-index: 1; height: 220px; padding: 88px 0; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; border-radius: 18px; outline-offset: 2px; transition: opacity .3s;
  -webkit-mask: linear-gradient(transparent 0%, #000 30%, #000 70%, transparent 100%); mask: linear-gradient(transparent 0%, #000 30%, #000 70%, transparent 100%); }
.pick__wheel::-webkit-scrollbar { display: none; }
.pick__item { height: 44px; display: grid; place-items: center; scroll-snap-align: center; font-weight: 700; font-size: 23px; letter-spacing: -.02em; color: #8a9099; cursor: pointer; user-select: none; -webkit-user-select: none; font-variant-numeric: tabular-nums; will-change: transform; }
.pick__item[aria-selected="true"] { color: var(--ink); }

.cfg__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 14px; font-size: 13px; color: var(--dim-l); }
.chip { padding: 6px 12px; border: 1px solid #dfe2e7; border-radius: 99px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .45s var(--spring); }
.chip:hover { border-color: #9aa1ab; }
.chip:active { transform: scale(.94); transition-duration: .08s; }
.chip[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
/* special sizes: label, box and button on one row */
.cfg__type { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.cfg__type label { flex: none; font-size: 13.5px; color: var(--dim-l); }
.cfg__type div { flex: 1; display: flex; gap: 8px; }
.cfg__type input { flex: 1; min-width: 0; height: 44px; padding: 0 16px; border: 1px solid #dfe2e7; border-radius: 99px; background: #f5f6f8; color: var(--ink); font-size: 15px; }
.cfg__type input::placeholder { color: #9aa1ab; }
.cfg__type input:focus { outline: none; border-color: var(--red); }
.cfg__use { height: 44px; padding: 0 18px; border: 1.5px solid var(--ink); border-radius: 99px; background: #fff; color: var(--ink); font-weight: 700; font-size: 14px; cursor: pointer; }
.cfg__use:hover { background: var(--ink); color: #fff; }

.cfg__veh { display: grid; grid-template-columns: 1fr 1.2fr 1.2fr; gap: 10px; margin-top: 10px; }
.cfg__veh label { display: grid; gap: 6px; font: 600 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim-l); }
.cfg__veh select, .cfg__veh input { width: 100%; height: 52px; padding: 0 14px; border: 1px solid #dfe2e7; border-radius: 14px; background: #f5f6f8; color: var(--ink); font: 600 17px var(--sans); text-transform: none; letter-spacing: 0; }
.cfg__veh select { appearance: none; -webkit-appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230a0b0d' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.cfg__veh select:focus, .cfg__veh input:focus { outline: none; border-color: var(--red); }
.cfg__note { margin-top: 12px; font-size: 14px; color: var(--dim-l); }
.cfg__note--big { font-size: 17px; line-height: 1.5; color: var(--ink); }

.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 99px; background: #eef0f3; }
.seg button { padding: 9px 14px; border: 0; border-radius: 99px; background: none; color: var(--dim-l); font-weight: 600; font-size: 14px; white-space: nowrap; cursor: pointer; transition: background .25s var(--ease), color .2s; }
.seg button:hover { color: var(--ink); }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.seg--tabs { justify-self: start; }
.cfg__opts { display: grid; grid-template-columns: 1.15fr 1fr; gap: 10px; }
.cfg__opts .seg { display: grid; }

.cfg__send { display: flex; align-items: center; justify-content: center; min-height: 58px; padding: 0 24px; border-radius: 99px; background: var(--red); color: #fff; font-weight: 700; font-size: 17px; text-decoration: none; box-shadow: 0 12px 30px rgba(210, 54, 36, .35); transition: transform .45s var(--spring), background .2s, box-shadow .3s; }
.cfg__send:hover { background: var(--red-hi); transform: translateY(-2px); }
.cfg__send[aria-disabled="true"] { background: #e6e7eb; color: #8a9099; box-shadow: none; transform: none; cursor: default; }
/* tapping the gray button gives the spot to fill in a little shake */
.is-nudge { animation: cfg-nudge .55s var(--ease); }
@keyframes cfg-nudge { 0%, 100% { transform: none; } 20% { transform: translateX(-7px); } 45% { transform: translateX(6px); } 70% { transform: translateX(-3px); } }
.cfg__alt { text-align: center; font-size: 13.5px; color: var(--dim-l); }
.cfg__alt a { color: var(--ink); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--red); }
/* ===================== END SECTION: Tire search ===================== */

/* ===================== SECTION: Brands (on black) ===================== */
.brands { overflow: clip; padding: 110px 0 120px; background: var(--ink); color: #fff; }
.brands .head { margin-bottom: 50px; }
.brands .lede { color: rgba(255, 255, 255, .62); }
.marquee { display: flex; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee + .marquee { margin-top: 4px; }
.marquee__track { display: flex; flex: none; align-items: center; animation: marquee 42s linear infinite; }
.marquee--rev .marquee__track { animation-direction: reverse; animation-duration: 48s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee a { flex: none; padding: 0 .28em; font-weight: 900; font-style: italic; font-size: clamp(44px, 7vw, 104px); letter-spacing: -.045em; line-height: 1.15; text-transform: uppercase; text-decoration: none; color: #fff; transition: color .25s, -webkit-text-stroke-color .25s; }
.marquee a::after { content: "●"; display: inline-block; margin-left: .9em; font-style: normal; font-size: .22em; vertical-align: .9em; color: var(--red); -webkit-text-stroke: 0; }
.marquee--outline a { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .45); }
.marquee a:hover { color: var(--ember); -webkit-text-stroke-color: var(--ember); }
@keyframes marquee { to { transform: translateX(-100%); } }
/* ===================== END SECTION: Brands ===================== */

/* ===================== SECTION: Coupons (on red) ===================== */
.deals { position: relative; overflow: clip; padding: 140px 0 160px; background: var(--red-bg); color: #fff; }
.deals .fine { color: rgba(255, 255, 255, .72); }
.cpns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* Each coupon (.flip) holds a card that turns over: the front is the ticket with
   the amount, the back explains the coupon. The fly-in, the hover lift and the turn
   happen on .flip and .flip__card; the two sides (.cpn) only hide when they face away.
   The notches and overflow stay on the sides: on the turning card they would flatten the 3D. */
.flip { position: relative; perspective: 1400px; opacity: 0; transform: translateY(36px);
  transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.flip.is-in { opacity: 1; transform: none; }
.flip.is-done { transition: transform .5s var(--spring); transition-delay: 0s; }
@media (hover: hover) {
  .flip.is-done:not(.is-flipped):hover { transform: translateY(-6px); }
}
.flip__card { display: grid; grid-template: 1fr / 1fr; height: 100%;
  -webkit-transform-style: preserve-3d; transform-style: preserve-3d;
  transition: transform .9s var(--spring); }
.flip.is-flipped .flip__card { transform: rotateY(180deg); }
/* both sides sit in the same spot; each hides when it faces away */
.flip .cpn { grid-area: 1 / 1; align-self: stretch; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.flip .cpn--back { transform: rotateY(180deg); }
/* a lift while it turns, and a one-time tilt that hints the coupons turn over */
.flip__card.is-turning { animation: cpn-lift .9s var(--ease); }
@keyframes cpn-lift { 0%, 100% { scale: 1; } 45% { scale: 1.05; } }
.flip.is-peek .flip__card { animation: cpn-peek 1.1s var(--ease) both; animation-delay: calc(var(--i, 0) * 160ms); }
@keyframes cpn-peek { 0%, 100% { transform: rotateY(0); } 40% { transform: rotateY(-26deg); } 72% { transform: rotateY(7deg); } }

/* ticket notches are cut out of each side, so the red behind shows through */
.cpn { --stub: 84px; position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; min-height: 300px; border-radius: var(--r); color: #fff; text-decoration: none;
  -webkit-mask: radial-gradient(circle 12px at 0 calc(100% - var(--stub)), transparent 96%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% calc(100% - var(--stub)), transparent 96%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 12px at 0 calc(100% - var(--stub)), transparent 96%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% calc(100% - var(--stub)), transparent 96%, #000) right / 51% 100% no-repeat; }
/* the front is one big button */
button.cpn { width: 100%; margin: 0; padding: 0; border: 0; font: inherit; text-align: left; cursor: pointer; -webkit-appearance: none; appearance: none; }
.cpn--front:focus-visible { outline: none; box-shadow: inset 0 0 0 3px currentColor; }
.cpn--back, .cpn--back a, .cpn--back button { cursor: pointer; }
.cpn--red { background: var(--red); }
.cpn--blue { background: linear-gradient(160deg, #0b2447, #1f6fd8); }
.cpn--black { background: #0d0f13; }
.cpn--bronze { background: linear-gradient(160deg, #3d220e, #a8692a); }
.cpn--white { background: #fff; color: var(--ink); }
.cpn__top { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; padding: 24px 24px 16px; }
.cpn__row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cpn__cat { font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.cpn__amt { display: flex; align-items: flex-start; margin: 12px 0 auto; font-weight: 800; font-size: 76px; line-height: .9; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.cpn__amt sup { margin: 6px 2px 0 0; font-size: .42em; letter-spacing: 0; }
.cpn__amt small { align-self: flex-end; margin: 0 0 6px 8px; font-size: .2em; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.cpn__title { display: block; margin-top: 14px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.cpn__note { font-size: 14px; color: rgba(255, 255, 255, .8); }
.cpn__stub { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; height: var(--stub); padding: 0 18px; border-top: 2px dashed rgba(255, 255, 255, .45); }
.cpn__code { font: 700 13px var(--mono); letter-spacing: .06em; white-space: nowrap; }
.cpn__go { flex: none; padding: 9px 14px; border-radius: 99px; background: #fff; color: var(--ink); font-weight: 700; font-size: 13.5px; white-space: nowrap; }
/* front: FREE / GRATIS shrinks a little on the narrowest coupons so GRATIS fits */
.cpn--front { container-type: inline-size; }
.cpn__amt.cpn__amt--free { font-size: min(64px, 21cqw); letter-spacing: -.04em; }
.cpn__free { display: inline-block; font-weight: 800; }
.flip.is-in:not(.is-done) .cpn__free { animation: cpn-stamp .7s var(--spring) both; animation-delay: calc(var(--i, 0) * 80ms + .45s); }
@keyframes cpn-stamp { from { opacity: 0; transform: scale(1.8); } to { opacity: 1; transform: none; } }
.cpn__pct { margin: 6px 0 0 2px; font-size: .42em; letter-spacing: 0; }
.cpn__go--flip { display: inline-flex; align-items: center; gap: 6px; }
.cpn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) {
  .cpn--front:hover .cpn__go--flip svg { transform: rotate(180deg); transition: transform .5s var(--spring); }
}
/* back: what it covers, Regular / You pay prices, the round flip-back arrow and Text it */
.cpn--back .cpn__top { padding: 22px 22px 14px; }
.cpn--back .cpn__code { font-size: 11.5px; opacity: .75; }
.cpn__btitle { display: block; margin: 12px 0 10px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.cpn__desc { margin: 0; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .85); }
.cpn__desc--small { margin-top: 8px; font-size: 13px; }
/* two checks to a row; a word too long for half the width (Spanish "Limpiaparabrisas")
   takes a row of its own instead of running off the coupon */
.cpn__checks { display: flex; flex-wrap: wrap; gap: 7px 10px; margin: 0 0 12px; padding: 0; list-style: none; font-size: 14.5px; font-weight: 700; }
.cpn__checks li { flex: 1 1 calc(50% - 5px); display: flex; align-items: center; gap: 6px; }
.cpn__checks svg { flex: none; width: 17px; height: 17px; padding: 2px; border-radius: 50%; background: rgba(255, 255, 255, .18); stroke-width: 3; }
/* one grid for all the rows, so the price columns line up and the name gets the rest */
.cpn__prices { display: grid; grid-template-columns: 1fr auto auto; column-gap: 12px; align-items: baseline; font-size: 14px; }
.cpn__price { display: contents; }
.cpn__price > * { padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, .2); }
.cpn__price > :nth-child(n+2) { text-align: right; white-space: nowrap; }
.cpn__price s { color: rgba(255, 255, 255, .6); }
.cpn__price b { font-size: 17px; font-weight: 800; }
.cpn__price--head > * { padding: 0 0 5px; border-top: 0; font: 600 10px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .65); }
.cpn--back .cpn__stub { padding: 0 14px 0 18px; }
/* narrow coupons (small phones, and 4 across on smaller computers): a bit tighter
   so "Pads + rotors" stays on one line */
.cpn--back { container-type: inline-size; }
@container (max-width: 270px) {
  .cpn--back .cpn__top { padding: 20px 18px 12px; }
  .cpn__prices { column-gap: 8px; font-size: 13px; }
  .cpn__price b { font-size: 16px; }
}
.cpn__flipback { display: grid; place-items: center; width: 42px; height: 42px; margin: 0; padding: 0; border: 1.5px solid rgba(255, 255, 255, .45); border-radius: 50%; background: none; color: inherit; transition: border-color .2s, transform .5s var(--spring); }
.cpn__flipback svg { width: 18px; height: 18px; }
.cpn__flipback:hover { border-color: currentColor; transform: rotate(-180deg); }
a.cpn__go { text-decoration: none; }
.cpn__flipback:focus-visible, a.cpn__go:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
/* the white coupon: dark words, red amount, black button */
.cpn--white .cpn__cat { color: var(--dim-l); }
.cpn--white .cpn__amt { color: var(--red); }
.cpn--white .cpn__note { color: var(--dim-l); }
.cpn--white .cpn__stub { border-top-color: rgba(10, 11, 13, .22); }
.cpn--white .cpn__go { background: var(--ink); color: #fff; }
.cpn--white .cpn__desc, .cpn--white .cpn__price s, .cpn--white .cpn__price--head > * { color: var(--dim-l); }
.cpn--white .cpn__price > * { border-top-color: rgba(10, 11, 13, .14); }
.cpn--white .cpn__price b { color: var(--red); }
.cpn--white .cpn__checks svg { background: rgba(210, 54, 36, .12); color: var(--red); }
.cpn--white .cpn__flipback { border-color: rgba(10, 11, 13, .3); }
/* a shine sweeps across each coupon now and then */
.cpn__shine { position: absolute; z-index: 1; top: -20%; bottom: -20%; left: 0; width: 38%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent); transform: translateX(-160%) skewX(-18deg); animation: cpn-shine 6s var(--ease) infinite; animation-delay: calc(var(--i, 0) * 1.3s + 1s); pointer-events: none; }
.cpn--white .cpn__shine { background: linear-gradient(90deg, transparent, rgba(210, 54, 36, .08), transparent); }
@keyframes cpn-shine { 0%, 72% { transform: translateX(-160%) skewX(-18deg); } 92%, 100% { transform: translateX(330%) skewX(-18deg); } }
.cpns__none { grid-column: 1 / -1; padding: 30px; border-radius: var(--r); background: #fff; text-align: center; color: var(--dim-l); }
/* ===================== END SECTION: Coupons ===================== */

/* ===================== SECTION: Mobile service (on black) ===================== */
.mob { position: relative; overflow: clip; padding: 120px 0 0; background: radial-gradient(50% 45% at 85% 30%, rgba(210, 54, 36, .22), transparent 70%), var(--ink); color: #fff; }
.mob .lede { color: rgba(255, 255, 255, .66); }
.mob .head { margin-bottom: 44px; }
.mob__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; }

/* the real truck */
.mob__photo { position: relative; overflow: hidden; margin: 0; border-radius: var(--r); background: #1a1d22; }
.mob__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 2.4s var(--ease); }
.js .mob__photo.is-in img { transform: none; }
.mob__badge { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: rgba(10, 11, 13, .62); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 13.5px; font-weight: 600; }
.mob__badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: open-pulse 2s ease-out infinite; }

/* the red "where are you?" tile, with faint streets and a pin that drops in */
.mob__call { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; border-radius: var(--r); background: var(--red-bg); }
.mob__map { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
/* the pin sits at the top right and pushes the words to the bottom, so they never overlap */
.mob__pin { flex: none; align-self: flex-end; width: 120px; height: 120px; margin: -14px -14px auto 0; overflow: visible; }
.mob__drop { animation: mob-drop 3.6s var(--ease) infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.mob__ring { fill: none; stroke: #fff; stroke-width: 2.5; opacity: 0; transform-box: fill-box; transform-origin: center; animation: mob-ring 3.6s ease-out infinite; }
.mob__ring--b { animation-delay: .5s; }
@keyframes mob-drop { 0% { transform: translateY(-34px); opacity: 0; } 14% { transform: translateY(0) scale(1.06, .92); opacity: 1; } 22%, 84% { transform: none; opacity: 1; } 100% { transform: translateY(-6px); opacity: 0; } }
@keyframes mob-ring { 0%, 12% { opacity: 0; transform: scale(.4); } 16% { opacity: .9; } 60%, 100% { opacity: 0; transform: scale(2.4); } }
.mob__body h3 { font-size: clamp(30px, 2.8vw, 40px); }
.mob__body > p { margin-top: 10px; font-size: 16px; color: rgba(255, 255, 255, .88); }
.mob__loc { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 58px; margin-top: 22px; padding: 0 22px; border: 0; border-radius: 99px; background: #fff; color: var(--ink); font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer; box-shadow: 0 14px 30px rgba(60, 8, 0, .3); transition: transform .45s var(--spring); }
.mob__loc:hover { transform: translateY(-2px); }
.mob__loc[hidden] { display: none; }
.mob__loc svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mob__loc.is-busy svg { animation: spin 1s linear infinite; }
.mob__send { background: var(--ink); color: #fff; }
.mob__body > .mob__status { margin-top: 10px; font-size: 13px; color: rgba(255, 255, 255, .78); }
.mob__body > .mob__or { margin-top: 16px; font-size: 15px; }
.mob__or a { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 2px solid rgba(255, 255, 255, .6); white-space: nowrap; }
.mob__body > .mob__area { margin-top: 6px; font-size: 13px; color: rgba(255, 255, 255, .72); }

/* three small tiles: same shape as the header's fact tiles */
.mob__tiles { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mi-flat { transform-box: fill-box; transform-origin: 50% 100%; animation: mi-flat 3s var(--ease) infinite; }
.mi-air { opacity: 0; animation: mi-air 3s var(--ease) infinite; }
@keyframes mi-flat { 0%, 8% { transform: scale(1.1, .74); } 30%, 86% { transform: none; } 100% { transform: scale(1.1, .74); } }
@keyframes mi-air { 0%, 14% { opacity: 0; } 22% { opacity: 1; } 40%, 100% { opacity: 0; } }
.mi-roll { transform-box: fill-box; transform-origin: center; animation: mi-roll 4s var(--ease) infinite; }
.mi-roll--b { animation-delay: -2s; }
@keyframes mi-roll { 0% { transform: translateX(-66px) rotate(-300deg); } 25%, 50% { transform: none; } 75%, 100% { transform: translateX(66px) rotate(300deg); } }
.mi-hop { animation: mi-hop 4.8s var(--ease) infinite; }
@keyframes mi-hop { 0%, 22% { transform: none; } 28% { transform: translate(10px, -9px); } 33%, 55% { transform: translate(20px, 0); } 61% { transform: translate(30px, -9px); } 66%, 88% { transform: translate(41px, 0); } 94% { transform: translate(20px, -14px); } 100% { transform: none; } }

/* the night road at the bottom */
.road { position: relative; height: 176px; margin-top: 70px; }
.road__scene { position: absolute; left: 0; top: 0; display: flex; width: 2880px; height: 120px; animation: road-by 36s linear infinite; }
.road__scene svg { flex: none; display: block; }
@keyframes road-by { to { transform: translateX(-1440px); } }
@keyframes road-by-sm { to { transform: translateX(-1080px); } }
.road__lane { position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: #16181c; border-top: 3px solid #23262c; }
.road__lane::after { content: ""; position: absolute; left: 0; right: -80px; top: 25px; height: 4px; background: repeating-linear-gradient(90deg, #ffb347 0 40px, transparent 40px 80px); opacity: .75; animation: road-lane .5s linear infinite; }
@keyframes road-lane { to { transform: translateX(-80px); } }
.road__truck { position: absolute; left: max(20px, calc(50% - 560px)); bottom: 10px; z-index: 1; width: 280px; height: auto; overflow: visible; }
.road__body { animation: ic-bob .3s ease-in-out infinite alternate; }
.road__wheel { transform-box: fill-box; transform-origin: center; animation: ic-spin .5s linear infinite; }
/* ===================== END SECTION: Mobile service ===================== */

/* ===================== SECTION: Reviews (on cream) ===================== */
.revs { padding: 130px 0 150px; background: var(--cream); }
.revs .head { margin-bottom: 44px; }
/* black score tile */
.rv-score { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; margin-bottom: 16px; padding: 30px 40px; border-radius: var(--r); background: radial-gradient(60% 120% at 0% 50%, rgba(210, 54, 36, .35), transparent 70%), #0d0f13; color: #fff; }
.rv-score__big { display: flex; align-items: center; gap: 22px; }
.rv-score__big > b { font-size: clamp(76px, 8vw, 120px); font-weight: 800; letter-spacing: -.06em; line-height: .9; font-variant-numeric: tabular-nums; background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rv-stars { position: relative; display: block; font-size: 30px; line-height: 1; letter-spacing: 4px; white-space: nowrap; }
.rv-stars::before { content: "★★★★★"; color: rgba(255, 255, 255, .18); }
.rv-stars i { position: absolute; left: 0; top: 0; overflow: hidden; width: 98%; }
.rv-stars i::before { content: "★★★★★"; color: var(--amber); }
.js .rv-stars i { width: 0; transition: width 1.6s var(--ease) .3s; }
.js .rv-score.is-in .rv-stars i { width: 98%; }
.rv-score__on { display: block; margin-top: 8px; font: 600 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.rv-score__stats { display: flex; gap: 40px; margin: 0 auto 0 0; padding: 0; list-style: none; }
.rv-score__stats b { display: block; font-size: 44px; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.rv-score__stats li > span { font: 600 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.rv-score .ibtn svg { stroke-linecap: round; }

/* review tiles */
.rvs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rv { position: relative; overflow: hidden; display: flex; flex-direction: column; margin: 0; padding: 28px; border-radius: var(--r); background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(10, 11, 13, .04), 0 12px 30px rgba(60, 30, 0, .06); }
.rv::after { content: "\201C"; position: absolute; right: 18px; top: -14px; font: 900 150px/1 var(--sans); color: rgba(10, 11, 13, .06); pointer-events: none; }
.rv--red { background: var(--red); color: #fff; }
.rv--black { background: #0d0f13; color: #fff; }
.rv--blue { background: linear-gradient(160deg, #0b2447, #1f6fd8); color: #fff; }
.rv--red::after, .rv--black::after, .rv--blue::after { color: rgba(255, 255, 255, .1); }
.rv__stars { display: inline-flex; gap: 3px; font-size: 20px; line-height: 1; }
.rv__stars i { display: inline-block; font-style: normal; color: var(--amber); }
.rv--red .rv__stars i { color: #ffd27a; }
.js .rv:not(.is-in) .rv__stars i { color: rgba(128, 128, 128, .3); transform: scale(.4); }
.js .rv .rv__stars i { transition: color .3s, transform .6s var(--spring); transition-delay: calc(var(--i, 0) * 80ms + 350ms + var(--s, 0) * 110ms); }
.rv__stars i:nth-child(2) { --s: 1; } .rv__stars i:nth-child(3) { --s: 2; } .rv__stars i:nth-child(4) { --s: 3; } .rv__stars i:nth-child(5) { --s: 4; }
.rv__lang { margin-left: auto; padding: 4px 10px; border-radius: 99px; background: rgba(128, 128, 128, .14); font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.rv__lang:empty { display: none; }
.rv blockquote { flex: 1; margin: 18px 0 0; font-size: 17px; line-height: 1.55; }
.rv figcaption { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: 13.5px; }
.rv figcaption b { display: block; font-size: 15.5px; }
.rv figcaption b + span { opacity: .7; }
.rv__av { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; font-size: 17px; }
.rv--red .rv__av { background: #fff; color: var(--red); }
.rv--blue .rv__av { background: #fff; color: #0b2447; }
/* ===================== END SECTION: Reviews ===================== */

/* ===================== SECTION: Footer with the map (on black) ===================== */
.ftr { background: var(--ink); color: rgba(255, 255, 255, .62); font-size: 14.5px; }
.visit { position: relative; overflow: clip; display: flex; align-items: center; min-height: 640px; padding: 110px 0 70px; }
/* the map, darkened to sit on black (colors flipped twice so roads stay readable) */
/* drawn 170px taller and pulled up, so Google's address box sits above the edge (hidden) */
.visit__map { position: absolute; left: 0; top: -170px; width: 100%; height: calc(100% + 170px); border: 0; filter: invert(.88) hue-rotate(180deg) saturate(.8) brightness(1.35) contrast(1.05); }
.visit .edge { z-index: 2; }
/* the cover over the map: the page scrolls past it; a click (or tap) unlocks the map */
.visit__shield { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; background: none; cursor: pointer; }
.visit.is-live .visit__shield { pointer-events: none; }
.visit__hint { position: absolute; left: 50%; top: calc(50% + 40px); transform: translateX(-50%); padding: 9px 16px; border-radius: 99px; background: rgba(10, 11, 13, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; font-size: 13.5px; font-weight: 600; white-space: nowrap; opacity: 0; transition: opacity .25s; pointer-events: none; }
.visit__shield:hover .visit__hint, .visit__shield:focus-visible .visit__hint { opacity: 1; }
.visit.is-live .visit__hint { opacity: 0; }
.visit__hint--touch { display: none; }
@media (hover: none) {
  .visit__hint { opacity: 1; }
  .visit__hint--mouse { display: none; }
  .visit__hint--touch { display: block; }
}
.visit__in { position: relative; z-index: 3; display: flex; justify-content: flex-start; pointer-events: none; }
/* computers: the card sits 100px from the left edge of the screen
   (64px felt too close, lining up with the logo at 148px+ was too far in).
   It is a bit narrower than on tablets, so it covers less of the map. */
@media (min-width: 1101px) {
  .visit__in { max-width: none; padding: 0 100px; }
  .visit .store { width: 400px; }
}
.store { pointer-events: auto; width: min(440px, 100%); padding: 30px; border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r); background: rgba(10, 11, 13, .8); -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%); color: #fff; box-shadow: 0 30px 70px rgba(0, 0, 0, .45); }
.store h2 { margin-top: 18px; font-size: 44px; }
.store h2 em { background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: normal; }
.store__addr { margin-top: 14px; font-size: 16px; color: rgba(255, 255, 255, .85); }
.store__addr b { color: #fff; }
.store__contact { margin-top: 10px; font-size: 15px; color: rgba(255, 255, 255, .7); }
.store__contact a { color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; }
.hours { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 14.5px; }
.hours td { padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .72); }
.hours td:last-child { text-align: right; white-space: nowrap; }
.hours .is-today td { color: #fff; font-weight: 700; }
.hours em { margin-left: 8px; padding: 2px 8px; border-radius: 99px; background: var(--red); font: 600 10.5px/1.4 var(--mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; vertical-align: 1px; }
/* the holiday hours sentence under the hours list */
.store__holiday { margin: 12px 0 0; font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, .62); }
.store__ctas { display: flex; gap: 8px; margin-top: 22px; }
.store__ctas .ibtn { flex: 1; justify-content: center; min-height: 50px; padding: 0 16px; font-size: 15px; }
.store__ctas .ibtn--blue { flex: 1.5; }
/* Call (red), Text (white), Directions (blue): the same red, white and blue order as
   the header. On small phones the three don't fit in one row (Spanish needs about
   400px), so like the header, Call takes the full row and Text + Directions share the next */
@media (max-width: 420px) {
  .store__ctas { flex-wrap: wrap; }
  .store__ctas .ibtn--red { flex: 1 1 100%; }
}

.ftr__in { padding: 56px 28px 50px; }
.ftr__big { margin-bottom: 64px; text-align: center; font-weight: 800; font-size: clamp(52px, 9.5vw, 150px); letter-spacing: -.055em; line-height: .92; color: #fff; }
.ftr__big em { font-style: normal; background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ftr__cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 32px; }
.ftr__brand img { width: auto; height: 32px; margin-bottom: 16px; }
.ftr__brand p { max-width: 34ch; }
.ftr__brand b { color: #fff; }
.ftr h3 { margin-bottom: 14px; font: 600 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.ftr__cols a { display: block; padding: 4px 0; text-decoration: none; transition: color .2s; }
.ftr__cols a:hover { color: #fff; }
.ftr__cols .nowrap { white-space: nowrap; }
.ftr__hrs { margin-top: 10px; font: 500 13px/1.6 var(--mono); color: rgba(255, 255, 255, .5); }
.ftr__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: rgba(255, 255, 255, .45); }
/* ===================== END SECTION: Footer ===================== */

/* ---- sizes ---- */
@media (max-width: 1100px) {
  /* map on top, card under it (side by side, the card would cover the shop pin) */
  .visit { flex-direction: column; align-items: stretch; min-height: 0; padding: 0 0 40px; }
  .visit__map { position: relative; top: auto; flex: none; height: calc(440px + 170px); margin-top: -170px; }
  .visit__shield { bottom: auto; height: 440px; }
  .visit__in { margin-top: 16px; justify-content: center; }
  /* stacked: the whole truck photo, then the red tile */
  .mob__grid { grid-template-columns: 1fr; }
  .mob__photo { aspect-ratio: 1255 / 847; }
  .mob__body { max-width: 560px; }
  .rvs { grid-template-columns: repeat(2, 1fr); }
  .ftr__cols { grid-template-columns: 1fr 1fr; }
  .ftr__brand { grid-column: 1 / -1; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .finder { grid-template-columns: 1fr; }
  /* stacked: the tire tile turns into a short strip (tire left, numbers right)
     so the size picker comes right after it */
  .finder__tire { flex-direction: row; gap: 32px; padding: 50px 28px 24px; }
  .tire3 { flex: none; width: 270px; }
  .specs { flex-direction: column; }
  .cpns { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .top__nav { display: none; }
  .intro__grid { grid-template-columns: 1fr; }
  .intro__copy { padding: 8px 0 12px; }
  .intro__photo { min-height: 0; aspect-ratio: 4 / 3; }
  .store { width: 100%; }
}
@media (max-width: 700px) {
  .edge { height: 40px; }
  .intro { padding: 28px 0 40px; }
  h1 { font-size: 40px; }
  .intro__pills { margin-bottom: 18px; }
  .pill { font-size: 13px; padding: 6px 11px; }
  .intro__ctas { margin-top: 24px; }
  .intro__ctas .ibtn--red { flex: 1 1 100%; justify-content: center; }
  .intro__ctas .ibtn:not(.ibtn--red) { flex: 1; justify-content: center; padding: 0 14px; }
  .intro__photo { aspect-ratio: 1 / 1; border-radius: 22px; }
  .intro__photo img { object-position: 50% 8%; }
  .facts { gap: 10px; margin-top: 10px; }
  .fact { flex-direction: column; align-items: flex-start; gap: 10px; min-height: 0; padding: 16px; border-radius: 22px; }
  .fact svg { width: 46px; height: 46px; }
  .fact b { font-size: 16px; }
  .fact b + span { font-size: 13px; }

  .tires { padding: 80px 0 100px; scroll-margin-top: 0; }
  .tires__head { margin-bottom: 26px; }
  .finder { gap: 10px; }
  .finder__tire { padding: 40px 14px 16px; border-radius: 22px; gap: 12px; }
  .finder__tag { top: 16px; left: 18px; font-size: 11px; }
  .tire3 { width: 56%; max-width: 210px; }
  .specs { flex: 1; gap: 6px; }
  .spec { min-width: 0; padding: 7px 6px; border-radius: 14px; }
  .spec strong { font-size: 19px; }
  .spec span { font-size: 9.5px; letter-spacing: .06em; }
  .cfg { padding: 18px; border-radius: 22px; }
  .cfg__size { font-size: 42px; }
  .seg button { padding: 9px 10px; font-size: 13.5px; }
  .cfg__opts { grid-template-columns: 1fr; }
  .cfg__veh { grid-template-columns: 1fr 1fr; }
  .cfg__veh label:first-child { grid-column: 1 / -1; }
  .cfg__type { flex-wrap: wrap; gap: 6px; }
  .cfg__type label { flex-basis: 100%; }

  .brands { padding: 80px 0 90px; }
  .brands .head { margin-bottom: 34px; }

  .deals { padding: 90px 0 110px; }
  /* coupons swipe sideways on phones */
  .cpns { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -18px; padding: 4px 18px 16px; scroll-padding-inline: 18px; scrollbar-width: none; }
  .cpns::-webkit-scrollbar { display: none; }
  .flip { flex: 0 0 86%; scroll-snap-align: start; }
  .cpn { min-height: 270px; border-radius: 22px; }
  .cpn__amt { font-size: 64px; }

  .mob { padding-top: 84px; }
  .mob .head { margin-bottom: 30px; }
  .mob__grid { gap: 10px; }
  .mob__photo { border-radius: 22px; }
  .mob__call { min-height: 0; padding: 22px 20px; border-radius: 22px; }
  .mob__pin { width: 80px; height: 80px; margin: -12px -8px -4px 0; }
  .mob__tiles { grid-template-columns: 1fr; gap: 10px; }
  /* small tiles stay in a row (drawing left, words right) */
  .mob__tiles .fact { flex-direction: row; align-items: center; gap: 14px; }
  .road { height: 132px; margin-top: 44px; }
  /* smaller scenery: 1080 wide per copy, so it slides by 1080 */
  .road__scene { top: 12px; width: 2160px; height: 90px; animation-name: road-by-sm; }
  .road__scene svg { width: 1080px; height: 90px; }
  .road__lane { height: 44px; }
  .road__lane::after { top: 19px; }
  .road__truck { left: 16px; bottom: 8px; width: 210px; }

  .revs { padding: 90px 0 110px; }
  .revs .head { margin-bottom: 30px; }
  .rv-score { gap: 18px 28px; padding: 24px 22px; border-radius: 22px; }
  .rv-score__big { gap: 16px; }
  .rv-stars { font-size: 24px; letter-spacing: 2px; }
  .rv-score__stats { gap: 28px; }
  .rv-score__stats b { font-size: 34px; }
  .rv-score .ibtn { width: 100%; justify-content: center; }
  /* reviews swipe sideways on phones, like the coupons */
  .rvs { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -18px; padding: 4px 18px 16px; scroll-padding-inline: 18px; scrollbar-width: none; }
  .rvs::-webkit-scrollbar { display: none; }
  .rv { flex: 0 0 86%; padding: 22px; border-radius: 22px; scroll-snap-align: start; }
  .rv blockquote { font-size: 16px; }

  .visit__map { height: calc(380px + 170px); }
  .visit__shield { height: 380px; }
  .visit__in { margin-top: 12px; }
  .store { padding: 22px 20px; border-radius: 22px; }
  .store h2 { font-size: 36px; }
  .ftr__in { padding: 30px 18px 110px; }
  .ftr__big { margin-bottom: 44px; font-size: 52px; }
  .ftr__cols { gap: 26px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .edge, .marquee__track, .intro__photo img, .road__scene, .road__lane::after, .road__body, .road__wheel, .mob__drop, .mob__ring, .mob__badge i, .mi-flat, .mi-air, .mi-roll, .mi-hop, .ic-spin, .ic-wheel, .ic-road, .ic-bob, .ic-card, .ic-pay, .ic-say, .pill--open i { animation: none; }
  .ic-pay { fill-opacity: 1; }
  .mob__ring, .mi-air, .mi-roll--b { opacity: 0; }
  .ic-say--b { opacity: 0; }
  .marquee { overflow-x: auto; }
  .cpn__shine { animation: none; display: none; }
  /* coupons: no fly-in and no turning; the two sides just swap */
  .flip { opacity: 1; transform: none; transition: none; }
  .flip__card { transition: none; }
  .flip.is-flipped .flip__card { transform: none; }
  .flip .cpn--back { transform: none; visibility: hidden; }
  .flip.is-flipped .cpn--back { visibility: visible; }
  .flip.is-flipped .cpn--front { visibility: hidden; }
}

/* =====================================================================================
   WHEELS & RIMS and RECENT WORK.
   Plus the top bar sizes.
   ===================================================================================== */

/* ===================== SECTION: Wheels & rims ===================== */
.whl { position: relative; overflow: clip; padding: 130px 0; color: #fff; }
/* bronze, like the Aftermarket wheels box in the services (dark at the top, warm at the bottom) */
.whl { background: radial-gradient(45% 60% at 22% 55%, rgba(255, 179, 71, .2), transparent 70%), linear-gradient(180deg, #3d220e 0%, #a8692a 100%); }
.whl .eyebrow { color: rgba(255, 255, 255, .82); }
.whl h2 em { background: var(--on-red); -webkit-background-clip: text; background-clip: text; }
.whl .lede { color: rgba(255, 255, 255, .85); }
/* the giant outlined 22″ drifts sideways as you scroll */
.whl__big { position: absolute; top: 50%; left: -2%; margin: 0; font-weight: 900; font-style: italic; font-size: clamp(260px, 40vw, 620px); line-height: .8; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .13); white-space: nowrap; transform: translate(var(--wx, 0px), -50%); pointer-events: none; user-select: none; }
.whl__in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.whl__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.whl__chips li { padding: 7px 14px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 99px; background: rgba(255, 255, 255, .1); font-size: 14px; font-weight: 600; }
.whl__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.whl__photo { position: relative; overflow: hidden; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--r); background: #1a1d22; box-shadow: 0 40px 80px rgba(30, 12, 0, .4); }
.whl__photo img { width: 100%; height: 118%; object-fit: cover; transform: translateY(var(--py, 0px)); }
/* cream 22″ badge, like the wheels box in the services */
.whl__badge { position: absolute; left: 14px; bottom: 14px; display: flex; align-items: center; gap: 10px; padding: 7px 16px 7px 7px; border-radius: 99px; background: rgba(10, 11, 13, .62); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 14px; font-weight: 600; color: #fff; }
.whl__badge b { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--cream); color: #3d220e; font-size: 15px; font-weight: 800; letter-spacing: -.03em; }
/* ===================== END SECTION: Wheels & rims ===================== */

/* ===================== SECTION: Recent work ===================== */
.work { position: relative; overflow-x: clip; }
.work { background: radial-gradient(40% 50% at 10% 20%, rgba(210, 54, 36, .22), transparent 70%), var(--ink); color: #fff; }
.work__pin { padding: 120px 0 110px; }
.work__head { margin-bottom: 40px; }
/* the photo row: swipe on phones and tablets; on computers it slides sideways while you scroll */
.work__track { --side: max(28px, calc((100% - 1240px) / 2 + 28px)); display: flex; gap: 16px; padding: 0 var(--side) 6px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--side); scrollbar-width: none; overscroll-behavior-x: contain; }
.work__track::-webkit-scrollbar { display: none; }
/* landscape cards (4:3, the same shape as the photos) so the whole photo shows, nothing cut off */
.work figure { position: relative; flex: none; width: min(560px, 84vw); margin: 0; overflow: hidden; border-radius: var(--r); background: #1a1d22; scroll-snap-align: start; }
.work img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 50%; transition: transform .8s var(--ease); }
.work figure:hover img { transform: scale(1.03); }
.work figcaption { position: absolute; left: 14px; bottom: 14px; padding: 8px 14px; border-radius: 99px; background: rgba(10, 11, 13, .6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; font-weight: 700; font-size: 14px; }
/* a thin bar that fills as you go through the photos */
.work__bar { height: 4px; margin-top: 26px; overflow: hidden; border-radius: 4px; background: rgba(128, 128, 128, .25); }
.work__bar i { display: block; height: 100%; background: var(--hot); transform: scaleX(0); transform-origin: 0 50%; }
.work.is-pinned .work__pin { position: sticky; top: 0; display: flex; flex-direction: column; justify-content: center; height: 100vh; height: 100svh; padding: 64px 0 0; overflow: hidden; }
.work.is-pinned .work__track { overflow: visible; scroll-snap-type: none; transform: translateX(var(--tx, 0px)); will-change: transform; }
/* as big as the screen height allows (up to 560 wide), keeping 4:3 */
.work.is-pinned figure { width: min(560px, calc((100vh - 400px) * 4 / 3)); width: min(560px, calc((100svh - 400px) * 4 / 3)); }
/* ===================== END SECTION: Recent work ===================== */

/* ---- top bar: the Call button's number hides first and the links
   tighten (below 1240), then the links hide (below 1060). These widths were measured
   for 8 links; "Final sizes" at the end of the file takes over for the 9 there are now. ---- */
.top__logo { flex: none; }
.top__nav a { white-space: nowrap; }
@media (max-width: 1240px) {
  .top__nav a { padding: 8px 9px; }
  .top__call .top__num { display: none; }
}
@media (max-width: 1060px) {
  .top__nav { display: none; }
}

/* ---- wheels & recent work sizes ---- */
@media (max-width: 1100px) {
  .whl__in { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 700px) {
  .whl { padding: 84px 0 90px; }
  .whl__big { font-size: 280px; }
  .whl__ctas .ibtn { flex: 1; justify-content: center; padding: 0 16px; }
  .whl__photo { border-radius: 22px; }
  .work__pin { padding: 84px 0 80px; }
  .work__head { margin-bottom: 28px; }
  .work__track { --side: 18px; gap: 10px; }
  .work figure { width: 86vw; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .whl__big { transform: translateY(-50%); }
  .whl__photo img { height: 100%; transform: none; }
  .work img { transition: none; }
}

/* =====================================================================================
   MENU, DOCK, PHOTO VIEWER AND MOVING DETAILS
   The styles for Prices and Good to know are here too.
   Same colors, type and tile shapes as the rest of the site.
   How the site works is written up in README.md (project folder).
   ===================================================================================== */

/* the top bar's height (64px, and 58px on phones); the menu sheet starts right under it */
:root { --bar: 64px; }
@media (max-width: 700px) { :root { --bar: 58px; } }

/* ---- skip link: keyboard users can jump past the top bar ---- */
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 12px 18px; border-radius: 99px; background: #fff; color: var(--ink); font-weight: 700; text-decoration: none; transition: top .2s; }
.skip:focus { top: 10px; }

/* ===================== Top bar ("you are here" + the rolling tire) ===================== */
/* the link of the section on screen lights up, with a short red-to-amber line under it */
.top__nav a { position: relative; }
.top__nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--hot); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease); }
.top__nav a.is-here { color: #fff; }
.top__nav a.is-here::after { transform: scaleX(1); }
/* a thin line along the bottom of the bar fills as you go down the page,
   and a little tire rolls along on top of it */
.top__in { position: relative; z-index: 1; }
.top__prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .07); pointer-events: none; }
.top__prog i { position: absolute; inset: 0; background: var(--hot); transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }
.top__tire { position: absolute; left: 0; bottom: 3px; width: 18px; height: 18px; will-change: transform; opacity: 0; transition: opacity .4s; }
.top.is-rolling .top__tire { opacity: 1; }

/* ===================== Recent work photo viewer ===================== */
/* tap a photo to see it big; arrows, swipe and the keyboard move through them */
.work figure a { display: block; cursor: zoom-in; }
/* pinned row: "clip" instead of "hidden", so tabbing to a photo off to the side can't shove the row sideways */
.work.is-pinned .work__pin { overflow: clip; }
.work figure a:focus-visible { outline-offset: -5px; border-radius: var(--r); }
.work__hint { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font: 500 13px/1.4 var(--mono); letter-spacing: .04em; color: rgba(255, 255, 255, .55); }
.work__hint svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.lb:not([open]) { display: none; }
.lb { width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: none; color: #fff; overflow: hidden; }
.lb::backdrop { background: rgba(10, 11, 13, .94); }
.lb[open] { display: grid; place-items: center; animation: lb-in .35s var(--ease); }
@keyframes lb-in { from { opacity: 0; } }
.lb__fig { position: relative; margin: 0; max-width: min(1280px, calc(100vw - 148px)); touch-action: pan-y pinch-zoom; }
.lb__fig img { display: block; width: min(1280px, calc(100vw - 148px), calc((100vh - 150px) * var(--ar, 1.3333))); width: min(1280px, calc(100vw - 148px), calc((100dvh - 150px) * var(--ar, 1.3333))); height: auto; aspect-ratio: var(--ar, 1.3333); object-fit: cover; border-radius: var(--r); background: #1a1d22; box-shadow: 0 40px 100px rgba(0, 0, 0, .6); transition: opacity .25s, transform .45s var(--ease); }
.lb.is-swap .lb__fig img { opacity: 0; transform: scale(.985); }
.lb__fig figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 14px; font-weight: 700; font-size: 17px; }
.lb__count { font: 500 13px var(--mono); letter-spacing: .08em; color: rgba(255, 255, 255, .6); font-variant-numeric: tabular-nums; }
.lb__btn { touch-action: manipulation; position: absolute; display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; transition: background .2s, transform .45s var(--spring); }
.lb__btn:hover { background: rgba(255, 255, 255, .22); transform: scale(1.06); }
.lb__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lb__prev { left: 14px; left: max(14px, env(safe-area-inset-left)); top: 50%; margin-top: -26px; }
.lb__next { right: 14px; right: max(14px, env(safe-area-inset-right)); top: 50%; margin-top: -26px; }
.lb__close { right: 14px; right: max(14px, env(safe-area-inset-right)); top: 14px; top: max(14px, env(safe-area-inset-top)); background: #fff; color: var(--ink); border-color: #fff; }
.lb__close:hover { background: #fff; }
@media (max-width: 700px) {
  .lb__fig { max-width: calc(100vw - 24px); }
  .lb__fig img { border-radius: 18px; width: min(calc(100vw - 24px), calc((100vh - 210px) * var(--ar, 1.3333))); width: min(calc(100vw - 24px), calc((100dvh - 210px) * var(--ar, 1.3333))); }
  /* arrows move under the photo, where thumbs are */
  .lb__prev, .lb__next { top: auto; bottom: 18px; bottom: max(18px, env(safe-area-inset-bottom)); margin-top: 0; }
  .lb__prev { left: calc(50% - 62px); }
  .lb__next { right: calc(50% - 62px); }
}
@media (prefers-reduced-motion: reduce) {
  .lb[open] { animation: none; }
  .lb__fig img, .top__nav a::after { transition: none; }
}

/* ===================== Menu for phones and tablets ===================== */
/* the round button in the top bar: two lines that cross into an X when the menu is open.
   It only shows where the section links don't fit (see "Final sizes" at the end). */
.top__menu { display: none; flex: none; position: relative; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); cursor: pointer; }
.top__menu i { position: absolute; left: 12px; right: 12px; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; background: #fff; transition: transform .45s var(--spring); }
.top__menu i:first-child { transform: translateY(-4px); }
.top__menu i:last-child { transform: translateY(4px); }
.top__menu[aria-expanded="true"] i:first-child { transform: rotate(45deg); }
.top__menu[aria-expanded="true"] i:last-child { transform: rotate(-45deg); }
/* the sheet: under the top bar (which stays on screen with EN/ES and the close button) */
.menu { position: fixed; z-index: 49; left: 0; right: 0; top: var(--bar); bottom: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background: radial-gradient(80% 50% at 15% 0%, rgba(210, 54, 36, .34), transparent 70%), var(--ink); color: #fff;
  opacity: 0; transform: translateY(-14px); transition: opacity .3s var(--ease), transform .45s var(--ease); }
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; transform: none; }
.menu__in { max-width: 640px; margin: 0 auto; padding: 22px max(18px, env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); }
.menu__ctas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.menu__ctas .ibtn { flex: 1; justify-content: center; min-height: 52px; padding: 0 14px; font-size: 15.5px; }
.menu__ctas .ibtn--red { flex: 1 1 100%; }
/* a red shortcut for someone stuck with a flat: straight to "share my location" */
.menu__flat { display: flex; align-items: center; gap: 14px; margin-top: 8px; padding: 12px 18px 12px 14px; border-radius: 22px; background: var(--red-bg); color: #fff; text-decoration: none; }
.menu__flat svg { flex: none; width: 46px; height: 46px; overflow: visible; }
.menu__flat b { display: block; font-size: 18px; letter-spacing: -.02em; line-height: 1.2; }
.menu__flat b + span { display: block; font-size: 14px; opacity: .88; }
.menu__links { margin-top: 10px; }
.menu__links a { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 13px 4px; border-bottom: 1px solid rgba(255, 255, 255, .1); color: #fff; text-decoration: none; }
.menu__links a:last-child { border-bottom: 0; }
.menu__links b { font-size: 26px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
.menu__links span { font-size: 14px; color: rgba(255, 255, 255, .55); text-align: right; }
.menu__links a.is-here b { background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* the rows come in one after another */
.menu__in > *, .menu__links a { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--k, 0) * 38ms + 60ms); }
.menu.is-open .menu__in > *, .menu.is-open .menu__links a { opacity: 1; transform: none; }

/* ===================== Dock for phones and tablets ===================== */
.dock { display: none; position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; gap: 8px;
  padding: 10px max(12px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: rgba(10, 11, 13, .96); border-top: 1px solid rgba(255, 255, 255, .1);
  transform: translateY(110%); visibility: hidden; transition: transform .5s var(--ease), visibility 0s .5s; }
.dock.is-up { transform: none; visibility: visible; transition: transform .5s var(--ease), visibility 0s; }
.dock__btn { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 10px; border-radius: 99px; font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; }
.dock__btn svg { flex: none; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.dock__btn--red { background: var(--red); color: #fff; }
.dock__btn--white { background: #fff; color: var(--ink); }
.dock__btn--blue { flex: 1.35; background: linear-gradient(160deg, #0b2447, #1f6fd8); color: #fff; }
.dock__btn--blue svg circle { fill: currentColor; stroke: none; }
/* tablets: three button-sized buttons in the middle, not three bars across the whole screen */
@media (min-width: 701px) {
  .dock { justify-content: center; }
  .dock__btn { flex: 0 1 210px; }
  .dock__btn--blue { flex: 0 1 240px; }
}

/* ===================== Call while open, Text while closed ===================== */
/* the shop prefers calls while it's open and texts while it's closed, so a soft ring
   pulses around that button (hero, menu, dock, map card). Order and colors don't change. */
.ibtn { position: relative; }
.js-call::after, .js-text::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--ring, #fff); border-radius: inherit; pointer-events: none; opacity: 0; }
[data-shop="open"] .js-call { --ring: #ff6a3d; }
[data-shop="closed"] .js-text { --ring: #fff; }
[data-shop="open"] .js-call::after, [data-shop="closed"] .js-text::after { animation: pref-ring 2.6s ease-out infinite; }
@keyframes pref-ring { 0% { opacity: .9; transform: none; } 70%, 100% { opacity: 0; transform: scale(1.09, 1.42); } }

/* ===================== SECTION: Prices (the flip board, on black) ===================== */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.prc { position: relative; padding: 130px 0; color: #fff; scroll-margin-top: -40px;
  background: radial-gradient(45% 55% at 90% 8%, rgba(210, 54, 36, .3), transparent 70%), var(--ink); }
.prc .lede { color: rgba(255, 255, 255, .72); }
.prc .fine { color: rgba(255, 255, 255, .5); }
.board { overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r); background: #0d0f13; box-shadow: 0 40px 90px rgba(0, 0, 0, .5); }
.board__plain { padding: 28px; }
/* top strip: open or closed right now (in small flaps), and the shop's name */
.board__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; padding: 12px 28px; border-bottom: 1px solid rgba(255, 255, 255, .08); background: #16191e; font: 600 12px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.board__live { flex: none; display: flex; align-items: center; gap: 10px; }
.board__live > i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); animation: open-pulse 2s ease-out infinite; }
[data-shop="closed"] .board__live > i { background: #ff5a36; animation: none; }
.board__live .flaps { gap: 2px; }
.board__live .fl { width: 15px; height: 22px; border-radius: 3px; font-size: 12px; font-weight: 600; }
.board__live .fl--gap { width: 6px; }
.board__pill { display: none; }
/* one row per job. Left: the name and a line about it. Right: the prices in flaps. */
.brow { display: grid; grid-template-columns: minmax(0, 1fr) auto 44px; align-items: center; gap: 12px 28px; padding: 20px 28px; border-bottom: 1px solid rgba(255, 255, 255, .08); color: #fff; text-decoration: none; transition: background .25s; }
.brow:hover { background: rgba(255, 255, 255, .045); }
.brow:focus-visible { outline-offset: -4px; }
.brow__name b { display: block; font-size: clamp(22px, 2.3vw, 30px); font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
.brow__name small { display: block; margin-top: 3px; font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, .58); }
.brow__prices { display: flex; align-items: flex-end; gap: 22px; }
.bp { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.bp > i { font: 600 11px/1.25 var(--mono); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
@media (min-width: 901px) {
  /* a label that is wider than its price (Spanish "Balatas y rotores") hangs over to the right
     instead of widening its column, so the last price of every row ends on the same line */
  .bp > i { width: 0; white-space: nowrap; }
}
/* Diagnostics: the note sits to the LEFT of its one price, so the price ends up on the right,
   in line with the last price of the rows above. */
.bp__note { align-self: flex-end; padding-bottom: 11px; font-size: 15px; color: rgba(255, 255, 255, .72); }
.flaps { display: inline-flex; gap: 3px; perspective: 300px; }
/* a flap: a dark card split across the middle, like the real boards. On the prices, the numbers
   are EJ red and the $ in front (and the + after) stay dark. */
.fl { display: grid; place-items: center; width: 30px; height: 42px; border-radius: 6px; color: #fff; font: 700 24px/1 var(--mono); font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #30343c 0%, #262a31 48.5%, #07080a 48.5%, #07080a 51.5%, #1f2228 51.5%, #181a1f 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09); }
.bp .fl:not([data-c="$"]):not([data-c="+"]) { background: linear-gradient(180deg, #e8412d 0%, #d23624 48.5%, #7c1a0d 48.5%, #7c1a0d 51.5%, #c22f1e 51.5%, #b02a1a 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22); }
.fl[data-c="+"] { width: 22px; color: var(--amber); }
.fl--gap { width: 10px; background: none; box-shadow: none; }
/* the round arrow at the end of a row (it starts a text; the Tires row has a red button instead) */
.brow__go { display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid rgba(255, 255, 255, .25); border-radius: 50%; transition: background .25s, border-color .25s, transform .45s var(--spring); }
.brow__go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.brow:hover .brow__go { background: #fff; border-color: #fff; color: var(--ink); transform: scale(1.06); }
.brow__btn { grid-column: 2 / -1; justify-self: end; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 99px; background: var(--red); color: #fff; font-weight: 700; font-size: 15.5px; white-space: nowrap; box-shadow: 0 12px 30px rgba(210, 54, 36, .4); transition: background .2s, transform .45s var(--spring); }
.brow:hover .brow__btn { background: var(--red-hi); transform: translateY(-2px); }
.brow__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
/* bottom strip: what the coupons take off */
.board__cpn { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 18px 28px; background: var(--red-bg); color: #fff; text-decoration: none; font-size: 15px; }
.board__cpn > i { flex: none; padding: 4px 10px; border-radius: 99px; background: #fff; color: var(--red); font: 700 11px/1.3 var(--mono); font-style: normal; letter-spacing: .12em; text-transform: uppercase; }
.board__cpn > span { flex: 1 1 320px; }
.board__cpn > b { white-space: nowrap; font-weight: 700; }
.board__cpn:hover > b { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 980px) {
  .board__top > span:last-child { display: none; } /* the shop's name: no room beside the row of flaps */
}
@media (max-width: 900px) {
  /* stacked: the name on top, its prices under it */
  .brow { grid-template-columns: minmax(0, 1fr) 44px; }
  .brow__name { grid-column: 1; }
  .brow__go { grid-column: 2; grid-row: 1; }
  .brow__prices { grid-column: 1 / -1; }
  .brow__btn { grid-column: 1 / -1; justify-self: stretch; justify-content: center; }
  /* three equal columns, so every row's prices line up; the Diagnostics note takes the first two
     (two columns plus the gap between them, hence the 22px) and its price lands in the third */
  .bp { flex: 1 1 0; min-width: 0; }
  .bp__note { flex: 2 1 22px; min-width: 0; }
}
@media (max-width: 700px) {
  .prc { padding: 84px 0 90px; }
  .prc .head { margin-bottom: 30px; }
  .board { border-radius: 22px; }
  .board__top { min-height: 0; padding: 12px 18px; font-size: 11px; }
  /* phones: the usual open / closed pill instead of the long row of little flaps */
  .board__live { display: none; }
  .board__pill { display: inline-flex; font: 500 13px/1.3 var(--sans); letter-spacing: 0; text-transform: none; }
  .brow { gap: 10px 12px; padding: 16px 18px; }
  .brow__go { width: 38px; height: 38px; }
  .brow__prices { gap: 12px; }
  .bp__note { padding-bottom: 8px; flex-basis: 12px; } /* 12px = this size's gap between prices */
  .fl { width: 20px; height: 32px; border-radius: 4px; font-size: 18px; }
  .fl[data-c="+"] { width: 16px; }
  .flaps { gap: 2px; }
  .board__cpn { padding: 16px 18px; }
}

/* ===================== Tire search (the tire rolls in) ===================== */
/* when the tire search comes into view, the tire rolls into its tile from the left and
   settles (half a turn for the distance it covers, like a real one). Size and place don't change. */
.js .finder__tire .tire3 { transform: translateX(-130%) rotate(-190deg); transition: transform 1.6s cubic-bezier(.2, .85, .25, 1) .2s; }
.js .finder__tire.is-in .tire3 { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .finder__tire .tire3 { transform: none; transition: none; }
}

/* ===================== Wheels & rims (a drawn rim that turns as you scroll) ===================== */
/* outline only, the same faint white line as the big 22″. It sits behind the photo, centered
   on it, so its spokes and tire show all around the photo and turn as the page moves.
   The photo is the right column: 1.1 of 2.1 parts of the row, after a 56px gap. */
.whl__in > :not(.whl__rim) { position: relative; z-index: 1; }
.whl__rim { --d: clamp(560px, 58vw, 880px); position: absolute; z-index: 0; top: 50%; margin-top: calc(var(--d) / -2); width: var(--d); height: var(--d);
  right: calc(28px + (100% - 112px) * 1.1 / 2.1 / 2 - var(--d) / 2);
  fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 2; transform: rotate(var(--wr, 0deg)); pointer-events: none; }
.whl__rim * { vector-effect: non-scaling-stroke; }
@media (max-width: 1100px) {
  /* stacked: the photo is as wide as the page (4:3), so the rim centers on it from the bottom */
  .whl__rim { --d: clamp(420px, 118vw, 900px); top: auto; margin-top: 0; right: calc(50% - var(--d) / 2); bottom: calc(37.5vw - 21px - var(--d) / 2); }
}
@media (prefers-reduced-motion: reduce) {
  .whl__rim { transform: none; }
}

/* ===================== Header photo (one still photo, shown whole) ===================== */
/* The tile takes the photo's own shape (4:3) at every size, so nothing is cut off: both trucks,
   the sign on the building and the sign by the road all show. On computers the photo's column
   is a little wider than before and the photo sits level with the middle of the words. */
.intro__photo { min-height: 0; aspect-ratio: 4 / 3; }
.intro__photo > img { object-position: 50% 50%; }
@media (min-width: 861px) {
  .intro__grid { align-items: center; }
}
@media (max-width: 700px) {
  /* phones: a smaller address tag, tucked into the corner, so it covers less of the front truck */
  .intro__badge { left: 10px; bottom: 10px; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 14px; font-size: 11.5px; }
  .intro__badge img { width: 30px; height: 30px; }
  .intro__badge b { font-size: 12.5px; }
}
@media (min-width: 1200px) {
  /* as wide as the photo can go while "Tires & auto service" still fits on one line beside it */
  .intro__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
}

/* ===================== Recent work, bigger and in focus (computers) ===================== */
/* The cards are large (up to 760 wide, as tall as the screen allows), so they don't
   look small on big screens. The photos in the middle of the screen are full size and bright;
   the ones coming in or leaving at the sides are a little smaller and dimmer (--f, 0 to 1, is
   set by main.js as the row moves). */
.work.is-pinned figure { width: min(760px, 46vw, calc((100vh - 430px) * 4 / 3)); width: min(760px, 46vw, calc((100svh - 430px) * 4 / 3));
  transform: scale(calc(.92 + .08 * var(--f, 1))); opacity: calc(.45 + .55 * var(--f, 1)); transition: transform .4s var(--ease), opacity .4s var(--ease); }
.work.is-pinned figcaption { font-size: 15px; padding: 9px 16px; }
@media (prefers-reduced-motion: reduce) {
  .work.is-pinned figure { transform: none; opacity: 1; transition: none; }
}

/* ===================== SECTION: Good to know (question tiles, on black) ===================== */
/* The red glow sits behind the heading and fades out before the top edge: Recent work (also black)
   is right above, so the two run together with no line between them. The 1px overlap stops a
   hairline of the page's light background from showing where the two black sections meet. */
.qa { position: relative; margin-top: -1px; padding: 130px 0 170px; color: #fff;
  background: radial-gradient(45% 420px at 8% 330px, rgba(210, 54, 36, .28), transparent 70%), var(--ink); }
.qa .lede { color: rgba(255, 255, 255, .72); }
.qa__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
/* one tile per question: a moving drawing, the question, the answer, one action */
.qa__tile { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; min-height: 290px; padding: 28px; border-radius: var(--r); color: #fff; }
.js .qa__tile[data-reveal].is-in { transition: opacity 1s var(--ease), transform .5s var(--spring); }
@media (hover: hover) {
  .js .qa__tile[data-reveal].is-in:hover { transform: translateY(-6px); }
}
.qa__tile svg { flex: none; width: 64px; height: 64px; overflow: visible; margin-bottom: auto; }
.qa__tile h3 { margin-top: 26px; font-size: clamp(21px, 1.9vw, 26px); letter-spacing: -.025em; line-height: 1.12; }
.qa__tile p { margin-top: 10px; font-size: 16px; line-height: 1.45; opacity: .9; }
.qa__tile a { margin-top: 16px; padding: 9px 15px; border-radius: 99px; background: rgba(255, 255, 255, .18); color: inherit; font-weight: 700; font-size: 14.5px; text-decoration: none; white-space: nowrap; transition: background .2s, transform .45s var(--spring); }
.qa__tile a:hover { background: rgba(255, 255, 255, .3); transform: translateX(3px); }
.qa__tile--red { background: var(--red-bg); }
.qa__tile--white { background: #fff; color: var(--ink); }
.qa__tile--white a { background: var(--ink); color: #fff; }
.qa__tile--white a:hover { background: #2a2e36; }
.qa__tile--blue { background: linear-gradient(160deg, #0b2447, #1f6fd8); }
.qa__tile--black { background: #16191e; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.qa__tile--gold { background: linear-gradient(160deg, #f6b23a, #e0930f); color: var(--ink); }
.qa__tile--gold a { background: var(--ink); color: #fff; }
.qa__tile--gold a:hover { background: #2a2e36; }
.qa__tile--bronze { background: linear-gradient(160deg, #3d220e, #a8692a); }
/* the drawings: a heartbeat that draws itself, clock hands, a camera flash */
.qa-pulse { fill: none; stroke: #fff; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; animation: qa-pulse 2.6s var(--ease) infinite; }
@keyframes qa-pulse { 0% { stroke-dashoffset: 100; } 55%, 80% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.qa-hand { transform-box: view-box; transform-origin: 32px 32px; animation: ic-spin 6s linear infinite; }
.qa-hand--slow { animation-duration: 72s; }
.qa-flash { transform-box: fill-box; transform-origin: center; animation: qa-flash 2.8s var(--ease) infinite; }
@keyframes qa-flash { 0%, 62% { transform: scale(.5); opacity: .35; } 70% { transform: scale(2.6); opacity: 1; } 100% { transform: scale(.5); opacity: .35; } }
.qa :focus-visible { outline-color: var(--amber); }
.qa__tile--white :focus-visible, .qa__tile--gold :focus-visible { outline-color: var(--ink); }
@media (max-width: 1100px) {
  .qa__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .qa { padding: 84px 0 120px; }
  .qa .head { margin-bottom: 30px; }
  .qa__grid { grid-template-columns: 1fr; gap: 10px; }
  .qa__tile { min-height: 0; padding: 22px; border-radius: 22px; }
  .qa__tile svg { width: 54px; height: 54px; margin-bottom: 0; }
  .qa__tile h3 { margin-top: 18px; font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .qa-pulse, .qa-hand, .qa-flash { animation: none; }
  .qa-pulse { stroke-dashoffset: 0; }
}

/* ===================== Header (a big tire turning behind the headline) ===================== */
/* outline only, very faint, the same idea as the 22″ and the rim in Wheels. It sits behind the
   words on the left, half off the screen, and turns slowly all the time. */
.intro { overflow: clip; }
.intro > .wrap { position: relative; z-index: 1; }
.intro__tire { --d: clamp(620px, 66vw, 1120px); position: absolute; z-index: 0; left: calc(var(--d) * -.3); top: 44%; width: var(--d); height: var(--d); margin-top: calc(var(--d) / -2);
  fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 2; pointer-events: none; animation: spin 110s linear infinite; }
.intro__tire * { vector-effect: non-scaling-stroke; }
.intro__tread { stroke-width: 12; stroke-dasharray: 9 7; stroke: rgba(255, 255, 255, .05); }
@media (max-width: 860px) {
  .intro__tire { top: 300px; left: calc(var(--d) * -.45); }
}
@media (prefers-reduced-motion: reduce) {
  .intro__tire { animation: none; }
}

/* ===================== Tiles lean toward the mouse (computers) ===================== */
/* --rx / --ry are set by main.js while the pointer is over a tile. The lift on hover is set near the top
   of this file; this adds the lean. The quick transition makes it follow the mouse; it eases back when it leaves. */
@media (hover: hover) and (pointer: fine) {
  a.tile:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px) scale(1.012); transition: transform .16s ease-out, box-shadow .4s var(--ease); }
  .js .qa__tile[data-reveal].is-in:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px); transition: transform .16s ease-out; }
}

/* ===================== Final sizes =====================
   KEEP THIS BLOCK LAST in the file: it sets where the menu button, the dock and the other pieces above show.
   Top bar with 9 links (the rules further up were for 8, and switch at 1240 and 1060): the Call number hides
   and the links tighten at 1270 and below, and at 1090 and below the links make way for
   the menu button. Measured in Spanish, the widest: about 1245 needed with everything
   showing, about 1070 tightened. Re-measure if a link is added. */
#come-to-you { scroll-margin-top: 84px; }
@media (max-width: 1270px) {
  .top__nav a { padding: 8px 9px; }
  .top__nav a::after { left: 9px; right: 9px; }
  .top__call .top__num { display: none; }
}
@media (max-width: 1090px) {
  .top__nav { display: none; }
  .top__menu { display: block; }
  .dock { display: flex; }
  /* room at the very bottom so the dock never covers the last line of the page */
  .ftr__in { padding-bottom: 110px; }
}
@media (max-width: 480px) {
  /* small phones: the red Call button becomes a round one, so the menu button fits beside it */
  .top__in { gap: 8px; }
  .top__call { width: 42px; padding: 0; justify-content: center; }
  .top__call .top__word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* hidden from the eye only: screen readers still say "Call" */
}
@media (max-width: 350px) {
  /* the narrowest phones (320 wide): a smaller logo, and the dock drops its icons so Spanish fits */
  .top__logo img { height: 20px; }
  .lang button { padding: 6px 9px; }
  .dock { gap: 6px; }
  .dock__btn { padding: 0 6px; font-size: 14px; }
  .dock__btn svg { display: none; }
  /* price board: slightly smaller flaps, so "$100" and "$120" don't touch */
  .fl { width: 17px; font-size: 16px; }
  .fl[data-c="+"] { width: 13px; }
}
/* a phone held sideways: keep the words clear of the notch (needs viewport-fit=cover in index.html,
   which is also what makes the safe-area padding of the dock and menu work on iPhones) */
@media (orientation: landscape) and (max-height: 500px) {
  .wrap { padding-left: max(28px, env(safe-area-inset-left)); padding-right: max(28px, env(safe-area-inset-right)); }
}
/* the amber focus ring is hard to see on the white and cream areas: dark there */
.svc :focus-visible, .revs :focus-visible, .cfg :focus-visible, .skip:focus-visible { outline-color: var(--ink); }
.rv-score :focus-visible { outline-color: var(--amber); } /* the black score tile keeps the amber ring */
main:focus { outline: none; } /* "skip to content" lands here; no ring around the whole page */
@media (prefers-reduced-motion: reduce) {
  .menu, .menu__in > *, .menu__links a, .dock, .dock.is-up, .top__menu i { transition: none; }
  .board__live > i { animation: none; }
  .js-call::after, .js-text::after { animation: none !important; }
  [data-shop="open"] .js-call::after, [data-shop="closed"] .js-text::after { inset: -5px; opacity: .75; }
}
