/* JAS Motors website. Uses tokens.css and components.css from the design system. */
html { scroll-behavior: smooth; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.home section[id], #book, .svc[id], .volvo-list [id] { scroll-margin-top: 104px; }

/* Finder */
.finder { display: grid; gap: var(--space-6); }
.finder-options { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); margin: 0; padding: 0; border: 0; min-width: 0; }
.finder-option { position: relative; display: flex; align-items: center; min-height: 64px; padding: var(--space-3) var(--space-4); border: var(--border-rule) solid var(--line-strong); border-radius: var(--radius-sm); font-weight: 600; line-height: 1.25; cursor: pointer; transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.finder-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.finder-option:hover { border-color: var(--ink); background: var(--surface-alt); }
.finder-option:has(input:checked) { border-color: var(--blue); background: var(--blue); color: var(--on-blue); }
.finder-option:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 3px; }
.finder-answer { padding: clamp(24px, 4vw, 48px); background: var(--surface-inverse); color: var(--on-inverse); }
.finder-panel { display: none; }
.finder:has(#sx-light:checked) #panel-light, .finder:has(#sx-brakes:checked) #panel-brakes, .finder:has(#sx-hot:checked) #panel-hot, .finder:has(#sx-start:checked) #panel-start, .finder:has(#sx-leak:checked) #panel-leak, .finder:has(#sx-shift:checked) #panel-shift, .finder:has(#sx-shake:checked) #panel-shake, .finder:has(#sx-cold:checked) #panel-cold { display: block; }
.finder-title { margin: var(--space-4) 0 var(--space-3); font-family: var(--font-display); font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem); line-height: 0.98; font-weight: 700; text-transform: uppercase; text-wrap: balance; }
.finder-text { max-width: 36em; margin: 0; font-size: var(--fs-subhead); line-height: 1.45; }
.finder-checks-title { margin: var(--space-6) 0 var(--space-2); font-weight: 600; color: var(--on-inverse-muted); }
.finder-checks { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.finder-checks li { display: grid; grid-template-columns: 20px 1fr; gap: var(--space-3); align-items: start; }
.finder-checks .jas-icon { margin-top: 4px; color: var(--yellow); }
.finder-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.finder-actions .jas-btn { flex: 1 1 180px; }
@media (min-width: 900px) { .finder { grid-template-columns: 5fr 6fr; gap: var(--space-8); align-items: stretch; } .finder-options { grid-auto-rows: 1fr; } .finder-answer { min-height: 500px; display: grid; align-content: center; } .finder-actions .jas-btn { flex: 0 0 auto; } }

/* Services */
.svc-grid { display: grid; border-top: var(--border-rule) solid var(--ink); }
.svc { padding: var(--space-6) 0; border-bottom: var(--border-hair) solid var(--line); }
.svc-name { margin: 0 0 var(--space-1); font-family: var(--font-display); font-size: var(--fs-title); line-height: 1.08; font-weight: 700; letter-spacing: 0.01em; text-transform: uppercase; }
.svc-text { margin: 0; max-width: 40ch; }
@media (min-width: 700px) { .svc-grid { grid-template-columns: 1fr 1fr; column-gap: var(--space-12); } }
@media (min-width: 1040px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } .svc { padding-block: var(--space-8); } }
.makes { margin-top: clamp(32px, 4vw, 56px); }
.makes-title { margin: 0 0 var(--space-4); font-size: 1.25rem; }
.makes-list { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.makes-list li { padding: 6px 14px; border: var(--border-hair) solid var(--line-strong); background: var(--surface); font-weight: 600; }

/* Report */
.report-grid { display: grid; gap: var(--space-8); align-items: start; }
.report-points { display: grid; gap: var(--space-3); margin: var(--space-6) 0 0; padding: 0; list-style: none; font-weight: 600; }
.report-points li { display: grid; grid-template-columns: 24px 1fr; gap: var(--space-3); }
.report-points .jas-icon { margin-top: 3px; color: var(--status-good); }
.report-sheet { padding: clamp(16px, 3vw, 32px); border: var(--border-hair) solid var(--line-strong); }
.report-label { margin: 0 0 var(--space-3); font-weight: 600; }
@media (min-width: 900px) { .report-grid { grid-template-columns: 5fr 7fr; gap: var(--space-16); } }

/* Rating */
.rating { padding-block: var(--space-8); border-block: var(--border-rule) solid var(--ink); background: var(--surface); }
.rating-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-8); }
.rating-text { margin: 0; font-family: var(--font-display); font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem); line-height: 1.05; text-transform: uppercase; }
.rating-link { display: inline-flex; align-items: center; min-height: var(--tap); }

/* Volvo */
.volvo-grid { display: grid; gap: var(--space-8); }
.volvo-lead { max-width: 24em; margin: 0; font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.75rem); line-height: 1.35; font-weight: 500; text-wrap: pretty; }
.volvo-note { margin: var(--space-4) 0 0; color: var(--on-inverse-muted); }
.volvo-list { margin: 0; padding: 0; border-top: var(--border-rule) solid var(--on-inverse); list-style: none; }
.volvo-list li { display: grid; gap: 2px; padding: var(--space-4) 0; border-bottom: var(--border-hair) solid var(--blue); }
.volvo-list strong { font-size: 1.25rem; line-height: 1.3; }
.volvo-list span { color: var(--on-inverse-muted); }
@media (min-width: 900px) { .volvo-grid { grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: start; } }
@media (max-width: 599px) { .volvo-grid .jas-btn { width: 100%; } }

/* Visit */
.visit-title { margin: 0 0 var(--space-3); padding-bottom: var(--space-3); border-bottom: var(--border-rule) solid var(--ink); font-family: var(--font-display); font-size: var(--fs-title); line-height: 1.08; font-weight: 700; text-transform: uppercase; }
.visit-title:not(:first-child) { margin-top: var(--space-12); }
.visit-address { margin: 0 0 var(--space-4); font-size: 1.25rem; line-height: 1.5; font-weight: 600; }
.visit-address .jas-muted { font-size: var(--fs-body); font-weight: 400; }
.visit-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.visit-actions .jas-btn { flex: 1 1 190px; padding-inline: var(--space-4); }
.form-trap { position: absolute; left: -9999px; }
#form-message:empty { display: none; }
#form-message:focus { outline: none; }

/* One set of lane dashes per page, so the footer uses a plain line here */
.home .jas-footer .jas-dashes { height: 1px; background: var(--line-inverse); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 359px) { .home .jas-btn { white-space: normal; padding-inline: var(--space-3); } .finder-option { padding-inline: var(--space-3); overflow-wrap: anywhere; } .finder-actions .jas-btn { flex-basis: 100%; } }
/* tiny */ @media (max-width: 359px) { .home .finder, .home .finder > *, .home .finder-options > *, .home .jas-callbar > * { min-width: 0; } .home .finder-options { grid-template-columns: 1fr; } .home .jas-callbar .jas-icon { display: none; } .home .visit-actions .jas-btn { flex-basis: 100%; } .home .report-sheet { padding: var(--space-3); } .home .jas-faq summary { gap: var(--space-3); } }

/* Site header. One black row. Logo stays 122px wide or more. Yellow is for Book a visit and the line under the current item. */
.hd { --hd-h: 86px; position: sticky; top: 0; z-index: 20; background: var(--surface-inverse); color: var(--on-inverse); font-family: var(--font-sans); transition: transform 220ms var(--ease); }
.hd a { color: inherit; text-decoration: none; }
.hd a.jas-btn-on-dark { color: var(--on-yellow); }
.hd :is(a, button, summary):focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; }
.hd ul { margin: 0; padding: 0; list-style: none; }
.hd-bar { display: flex; align-items: center; gap: var(--space-4); min-height: var(--hd-h); }
.hd-logo { flex: none; display: block; }
.hd-logo img { display: block; width: 122px; height: 62px; }
.hd-end { display: flex; align-items: center; gap: var(--space-6); margin-left: auto; }
.hd-nav, .hd-call, .hd-book { display: none; }

/* Open or closed. Filled square is open, empty square is closed. The words always say it too. */
.hd-status { color: var(--on-inverse-muted); font-size: 0.9375rem; line-height: 1.3; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hd-status-a { color: var(--on-inverse); font-weight: 600; }
.hd-mark { display: none; width: 10px; height: 10px; margin-right: 7px; border: 2px solid currentColor; }
.hd-status[data-state] .hd-mark { display: inline-block; }
.hd-status[data-state="open"] .hd-mark { border-color: var(--on-inverse); background: var(--on-inverse); }
.hd-status-phone { display: none; text-align: right; }
.hd-status-phone .hd-status-b { display: block; }

/* Menu button and full menu: phones and tablets */
.hd-menu > summary { display: inline-grid; align-items: center; min-height: 52px; padding: 0 14px; border: 2px solid var(--line-inverse-strong); border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; list-style: none; user-select: none; transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.hd summary::-webkit-details-marker { display: none; }
.hd-menu-open, .hd-menu-close { grid-area: 1 / 1; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); }
.hd-menu .hd-menu-close, .hd-menu[open] .hd-menu-open { visibility: hidden; }
.hd-menu[open] .hd-menu-close { visibility: visible; }
.hd-menu[open] > summary { border-color: var(--on-inverse); background: var(--on-inverse); color: var(--ink); }
.hd-panel { position: absolute; left: 0; right: 0; top: 100%; height: calc(100vh - var(--hd-h)); height: calc(100dvh - var(--hd-h)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; border-top: 1px solid var(--line-inverse); background: var(--surface-inverse); }
.hd-panel::-webkit-scrollbar { display: none; }
.hd-panel-in { display: flex; flex-direction: column; min-height: 100%; }
.hd-fold { border-bottom: 1px solid var(--line-inverse); }
.hd-fold > summary, .hd-fold-link { display: flex; align-items: center; justify-content: space-between; min-height: 68px; font-family: var(--font-display); font-size: 2rem; line-height: 1; font-weight: 700; text-transform: uppercase; cursor: pointer; list-style: none; }
.hd-fold-link { border-bottom: 1px solid var(--line-inverse); }
.hd-fold > summary .jas-icon { transition: transform 180ms var(--ease); }
.hd-fold[open] > summary .jas-icon { transform: rotate(180deg); }
.hd-fold[open] { padding-bottom: var(--space-4); }
.hd-fold .hd-links a, .hd-fold-all { display: flex; align-items: center; min-height: 48px; font-size: 1.1875rem; font-weight: 500; }
.hd-fold-all { font-weight: 600; }
.hd-fold-link[aria-current="page"] { color: var(--yellow); }
.hd-panel-info { display: grid; gap: var(--space-6); margin-block: var(--space-8); }
.hd-place { display: inline-grid; grid-template-columns: 24px auto; justify-content: start; gap: var(--space-3); min-height: 48px; font-weight: 600; line-height: 1.5; }
.hd-place span { text-decoration: underline; text-decoration-color: var(--line-inverse-strong); text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.hd-place:hover span { text-decoration-color: var(--yellow); }
.hd-hours { width: 100%; max-width: 25rem; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hd-hours :is(th, td) { padding: 5px 0; color: var(--on-inverse-muted); font-weight: 400; line-height: 1.4; text-align: left; }
.hd-hours td { text-align: right; white-space: nowrap; }
.hd-hours tr[data-today] :is(th, td) { color: var(--on-inverse); font-weight: 600; }
.hd-panel-act { position: sticky; bottom: 0; display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--space-2); margin: auto calc(-1 * var(--gutter)) 0; padding: var(--space-3) var(--gutter) calc(var(--space-3) + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-inverse); background: var(--surface-inverse); }
.hd-panel-act .jas-btn { padding-inline: var(--space-2); white-space: nowrap; }
html.hd-lock { overflow: hidden; }

@media (max-width: 719px) { .hd-bar { gap: var(--space-2); } .hd-end { gap: 10px; } .hd-status-phone { font-size: 0.875rem; } }
@media (min-width: 384px) and (max-width: 719px), (hover: none) and (min-width: 375px) and (max-width: 719px) { .hd-status-phone { display: block; } }
@media (max-width: 719px) { .hd[data-away] { transform: translateY(-100%); } }
@media (min-width: 720px) {
  .hd-call { display: inline-flex; align-items: center; gap: var(--space-3); min-height: 52px; }
  .hd-call > .jas-icon { flex: none; }
  .hd-call > span { display: grid; width: 13.25rem; }
  .hd-number { font-size: 1.25rem; line-height: 1.25; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; transition: color var(--dur) var(--ease); }
  .hd-call:hover .hd-number { color: var(--yellow); }
  .hd-book { display: inline-flex; min-height: 52px; white-space: nowrap; }
  .hd-panel { height: auto; max-height: calc(100vh - var(--hd-h)); max-height: calc(100dvh - var(--hd-h)); }
  .hd-panel-act { display: none; }
  .hd-panel-in { display: grid; grid-template-columns: 1fr minmax(0, 22rem); gap: clamp(32px, 6vw, 80px); align-content: start; min-height: 0; padding-block: var(--space-4) var(--space-12); }
  .hd-panel-info { margin-block: var(--space-4) 0; align-content: start; }
}
@media (min-width: 720px) and (max-width: 839px) { .hd-end { gap: var(--space-3); } .hd-call > .jas-icon { display: none; } }
@media (min-width: 1180px) {
  .hd-menu { display: none; }
  .hd-bar { gap: clamp(24px, 3vw, 48px); }
  .hd-nav { display: block; }
  .hd-nav > ul { display: flex; gap: clamp(20px, 2.2vw, 36px); }
  .hd-top { position: relative; display: inline-flex; align-items: center; gap: 4px; height: var(--hd-h); padding: 0; border: 0; background: none; color: inherit; font: 600 1.125rem/1 var(--font-sans); cursor: pointer; }
  .hd-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 18px; height: 3px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform 180ms var(--ease); }
  .hd-top:hover::after, .hd-top[aria-expanded="true"]::after, .hd-top[aria-current="page"]::after, .hd-top[data-current="true"]::after { transform: scaleX(1); }
  .hd-top .jas-icon { transition: transform 180ms var(--ease); }
  .hd-top[aria-expanded="true"] .jas-icon { transform: rotate(180deg); }
  .hd-drop { position: absolute; left: 0; right: 0; top: 100%; visibility: hidden; max-height: calc(100dvh - var(--hd-h)); overflow-y: auto; border-top: 1px solid var(--line-inverse); background: var(--surface-inverse); opacity: 0; transform: translateY(-8px); transition: opacity 130ms var(--ease), transform 180ms var(--ease), visibility 0s 180ms; }
  .hd-item[data-open] .hd-drop { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .hd[data-swap] .hd-drop { transition: none; }
  html:not(.js) .hd-item:is(:hover, :focus-within) .hd-drop { visibility: visible; opacity: 1; transform: none; }
  .hd-drop-grid { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: clamp(40px, 5vw, 80px); padding-block: var(--space-8) var(--space-12); }
  .hd-all { display: inline-flex; align-items: center; gap: var(--space-3); min-height: 48px; margin-bottom: var(--space-3); font-family: var(--font-display); font-size: 2rem; line-height: 1; font-weight: 700; text-transform: uppercase; }
  .hd-all .jas-icon, .hd-side-link .jas-icon { color: var(--yellow); transition: transform 180ms var(--ease); }
  .hd-all:hover .jas-icon, .hd-side-link:hover .jas-icon { transform: translateX(6px); }
  .hd-drop .hd-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--space-8); }
  .hd-drop[data-menu="volvo"] .hd-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hd-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-8); align-items: start; padding-top: 10px; }
  .hd-drop .hd-split .hd-links { display: block; }
  .hd-split .hd-links li:first-child a { min-height: 40px; padding-bottom: 12px; border-top-color: transparent; }
  .hd-find { display: grid; justify-items: start; padding-left: clamp(16px, 2vw, 32px); }
  .hd-find .hd-side-link { margin-top: var(--space-2); }
  .hd-find .hd-place, .hd-side .hd-hours { margin-top: var(--space-3); }
  .hd-drop .hd-links a { display: flex; align-items: center; min-height: 56px; border-top: 1px solid var(--line-inverse); font-size: 1.125rem; line-height: 1.25; font-weight: 500; transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease); }
  .hd-drop .hd-links a:hover { border-top-color: var(--yellow); color: var(--yellow); }
  .hd-drop .hd-links a:focus-visible { outline-offset: -2px; }
  .hd-side { align-self: start; padding-top: 10px; padding-left: clamp(24px, 3vw, 40px); border-left: 1px solid var(--line-inverse); }
  .hd-side-title { margin: 0; font-family: var(--font-display); font-size: 1.75rem; line-height: 1.05; font-weight: 700; text-transform: uppercase; text-wrap: balance; }
  .hd-side-text { margin: var(--space-3) 0 var(--space-2); color: var(--on-inverse-muted); line-height: 1.5; text-wrap: pretty; }
  .hd-side-link { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 48px; font-weight: 600; }
}
@media (prefers-reduced-motion: reduce) { .hd, .hd *, .hd *::after { transition: none !important; } }
@media print { .hd { display: none; } }

/* Home page hero. The scene fills the space under the header; words sit on the dark wall at the left. */
.hero { position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: max(560px, calc(100svh - 86px)); overflow: hidden; background: #000; color: var(--on-inverse); }
.hero-still, .hero-video, .hero::before { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-still { z-index: -3; }
.hero-still img, .hero-video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 70% 60%; }
.hero-video { z-index: -2; opacity: 0; }
.hero[data-on] .hero-video { opacity: 1; }
.hero::before { content: ""; z-index: -1; background: linear-gradient(90deg, rgb(0 0 0 / 0.72) 0%, rgb(0 0 0 / 0.55) 34%, rgb(0 0 0 / 0) 56%); }
.hero p { margin: 0; text-wrap: pretty; }
.hero-in { flex: 1; display: grid; align-content: start; padding-top: clamp(32px, 4.6vw, 70px); }
.hero-text { max-width: 40rem; }
.hero-fit { container-type: inline-size; }
.hero h1 { margin: 0; font-family: var(--font-display); font-size: min(calc(100cqw / 4.75), 8.25rem); line-height: 0.86; font-weight: 800; letter-spacing: -0.005em; text-transform: uppercase; }
.hero h1 span { display: block; white-space: nowrap; }
.hero .hero-lead { margin-top: clamp(14px, 1.6vw, 24px); font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem); line-height: 1.2; font-weight: 600; }
.hero-lead span { display: inline-block; }
.hero .hero-state { margin-top: 10px; font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); line-height: 1.45; }
.hero-act { display: none; flex-wrap: wrap; gap: var(--space-4); margin-top: clamp(20px, 2.2vw, 32px); }
.hero-act .jas-btn { white-space: nowrap; }
.hero-act a[href^="tel:"] { word-spacing: 0.1em; }
.hero .jas-btn-on-dark-secondary { border-color: #fff; background: rgb(0 0 0 / 0.35); }
.hero .jas-btn-on-dark-secondary:hover { background: #fff; }
.hero-ctl { display: flex; justify-content: flex-end; min-height: 52px; }
.hero-btn { min-height: 44px; margin-bottom: 8px; padding: 0 16px; border: 2px solid rgb(255 255 255 / 0.75); border-radius: var(--radius-sm); background: rgb(0 0 0 / 0.6); color: #fff; font: 600 1rem/1 var(--font-sans); cursor: pointer; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.hero-btn[hidden] { display: none; }
.hero-btn:hover { background: #fff; color: var(--ink); }
.hero-facts { background: #000; }
.hero-facts .jas-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 var(--space-8); padding-block: 10px; }
.hero-fact { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 48px; color: inherit; line-height: 1.35; text-decoration: none; font-variant-numeric: tabular-nums; }
.hero-fact .jas-icon { flex: none; }
.hero-place span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.22em; text-decoration-color: rgb(255 255 255 / 0.5); }
.hero-place:hover span { text-decoration-color: currentColor; }
.hero-rating:hover span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.22em; }
.hero a:focus-visible, .hero-btn:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; }
@media (min-width: 720px) { .hero-act { display: flex; } }
@media (max-width: 719px) {
  .hero { min-height: calc(100svh - 86px - 65px); }
  .hero::before { background: none; }
  .hero-still, .hero-video { top: auto; bottom: 68px; height: 78%; -webkit-mask-image: linear-gradient(transparent, #000 40%); mask-image: linear-gradient(transparent, #000 40%); }
  .hero-still img, .hero-video { object-position: 52% 100%; }
  .hero-in { padding-top: 28px; padding-bottom: 250px; }
  .hero-place, .hero-open { display: none; }
}
@media print { .hero-still, .hero-video, .hero-ctl { display: none; } .hero { min-height: 0; background: none; color: #000; } }

/* "What do you drive?" Words and arrows look painted on the road. */
.drive { position: relative; overflow: hidden; background: #000; color: #fff; }
.drive a { color: inherit; text-decoration: none; }
.drive h2 { margin: 0; padding: clamp(34px, 4.4vw, 68px) 20px clamp(22px, 2.6vw, 40px); font-family: var(--font-display); font-size: clamp(3.25rem, 1.6rem + 6vw, 7rem); line-height: 0.9; font-weight: 800; text-align: center; text-transform: uppercase; text-wrap: balance; }
.drive-road { position: relative; padding-block: 2.15cqw; background: #555 url(../media/drive/road.webp) 50% 50% / cover; container-type: inline-size; }
.drive-road::before { content: ""; position: absolute; inset: 0; background: rgb(10 12 18 / 0.22); }
.drive-lane { position: relative; display: block; height: clamp(190px, 20.6cqw, 420px); }
.drive-car { position: absolute; left: 3cqw; top: 50%; width: min(27.5cqw, 590px); transform: translate(0, -50%); transition: transform 900ms cubic-bezier(0.3, 0.7, 0.2, 1); }
.drive-car img { display: block; width: 100%; height: auto; }
.drive[data-wait] .drive-car { transform: translate(-46cqw, -50%); }
.drive[data-arrive] .drive-car { transition-duration: 1500ms; }
.drive[data-arrive] .drive-lane:nth-child(2) .drive-car { transition-delay: 160ms; }
.drive-box { position: absolute; left: 37cqw; right: 3cqw; top: 50%; display: flex; align-items: center; gap: 3cqw; transform: translateY(-50%); }
.drive-word, .drive-arrow { -webkit-mask: url(../media/drive/paint.webp) 0 0 / 620px; mask: url(../media/drive/paint.webp) 0 0 / 620px; }
.drive-word { font-family: var(--font-display); font-size: 8.6cqw; line-height: 0.86; font-weight: 800; white-space: nowrap; text-transform: uppercase; color: #f4f2ea; }
.drive-lane:nth-child(2) .drive-word { font-size: 7.2cqw; }
.drive-word > span { display: inline-block; }
.drive-arrow { flex: none; display: block; width: 12.5cqw; height: auto; fill: var(--yellow); transition: transform 500ms cubic-bezier(0.3, 0.7, 0.2, 1); }
.drive-lane:focus-visible { outline: 3px solid var(--yellow); outline-offset: -8px; }
.drive-lane:focus-visible .drive-arrow { transform: translateX(1.6cqw); }
@media (hover: hover) {
  .drive:not([data-wait]) .drive-lane:is(:hover, :focus-visible) .drive-car { transform: translate(6cqw, -50%); }
  .drive-lane:hover .drive-arrow { transform: translateX(1.6cqw); }
}
@media (max-width: 559px) {
  .drive-road { padding-block: 12px; background-image: url(../media/drive/road-phone.webp); background-size: auto 112%; }
  .drive-lane { height: 206px; }
  .drive-car { left: -6cqw; width: 50cqw; }
  .drive-box { left: 47.5cqw; right: 14px; display: grid; gap: 14px; justify-items: start; }
  .drive-word { font-size: 14cqw; }
  .drive-lane:nth-child(2) .drive-word { font-size: 11.2cqw; white-space: normal; }
  .drive-lane:nth-child(2) .drive-word > span { display: block; }
  .drive-arrow { width: 36cqw; }
}
@media (prefers-reduced-motion: reduce) { .drive-car, .drive-arrow { transition: none; } }
@media print { .drive-road { background: none; } .drive, .drive-word { color: #000; background: none; } .drive-car { display: none; } }
