:root {
  --ink: #14152b;
  --muted: #565a6e;
  --line: #e4e4ea;
  --mist: #f5f5f8;
  --red: #c8283f;
  --red-dark: #a81f33;
  --blush: #f3b3bd;
  --navy: #191a4d;
  --night: #07070b;
  --slant: 3.5vw;
}

@view-transition { navigation: auto; }

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font: 400 1.0625rem/1.65 Commissioner, system-ui, sans-serif; color: var(--ink); background: #fff; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
h1, h2, h3 { letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); font-weight: 700; line-height: 1.06; }
h2 { font-size: clamp(1.875rem, 3.6vw, 2.75rem); font-weight: 700; line-height: 1.14; }
h3 { font-size: 1.1875rem; font-weight: 600; line-height: 1.3; }
p { text-wrap: pretty; }

/* layout */
.wrap { width: min(74rem, 100% - 3rem); margin-inline: auto; }
.section { padding-block: clamp(4rem, 8vw, 6.5rem); }
.mist { background: var(--mist); }
.head { max-width: 42rem; margin-bottom: 2.5rem; }
.split { display: grid; gap: 2.5rem; align-items: center; }
.grid { display: grid; gap: 1rem; }
.lead { margin-top: 1rem; color: var(--muted); }
.kicker { display: flex; align-items: center; gap: .625rem; margin-bottom: .75rem; font-size: .9375rem; font-weight: 600; color: var(--red); }
.kicker::before { content: ""; width: 1.5rem; height: .5rem; background: currentColor; transform: skewX(-24deg); }

/* icons */
.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.tile { display: grid; flex: none; place-items: center; width: 3.25rem; height: 3rem; background: #c8283f14; color: var(--red); clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%); transition: background-color .2s, color .2s; }
.tile .i { width: 1.5rem; height: 1.5rem; }

/* buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .875rem 1.5rem; font-weight: 600; line-height: 1.3; text-decoration: none; background: var(--red); color: #fff; transition: background-color .15s, color .15s; }
.btn:hover { background: var(--red-dark); }
.btn-ghost { background: none; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-light { background: #fff; color: var(--red-dark); }
.btn-light:hover { background: var(--night); color: #fff; }
.more { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.5rem; font-weight: 600; color: var(--red); text-decoration: none; }
.more .i, .btn .arrow { transition: transform .2s; }
.more:hover .i, .btn:hover .arrow { transform: translateX(.25rem); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* header */
.topbar { display: none; background: var(--night); color: #c9cad6; font-size: .875rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 2rem; padding-block: .5rem; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar-info { display: flex; gap: 2rem; }

.site-header { position: sticky; top: 0; z-index: 10; background: #fffffff2; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: .75rem; padding-block: .75rem; }
.brand { margin-right: auto; }
.brand img { width: 7.5rem; }
.call { padding: .625rem .75rem; }
.call span { display: none; }
.menu-btn { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; background: none; color: inherit; font-size: 1.25rem; cursor: pointer; }

/* no popover support means no overlay on phones; the footer still has every link */
#menu { display: none; }
#menu:popover-open { display: flex; flex-direction: column; gap: 1.25rem; position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 5rem 1.5rem 1.5rem; border: 0; background: var(--night); color: #fff; font-size: 1.75rem; font-weight: 600; }
#menu a { position: relative; text-decoration: none; }
#menu a[aria-current] { color: var(--blush); }
.menu-close { position: absolute; top: .75rem; right: 1rem; color: #fff; }

/* home hero */
.hero { position: relative; overflow: hidden; background: var(--night); color: #fff; clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%); }
.hero-text { position: relative; z-index: 1; padding-block: 3rem 1.5rem; }
.hero .kicker { color: var(--blush); }
.hero-lead { max-width: 34rem; margin-top: 1.25rem; font-size: 1.1875rem; color: #d9d9e2; }
/* the car sits low in the frame, so on phones the photo goes under the text at a zoom */
.hero-img { width: 150%; max-width: none; margin-left: -32%; }

.facts { display: grid; gap: 1.25rem; margin-top: 2rem; padding: 0; list-style: none; }
.facts li { display: flex; align-items: center; gap: .875rem; line-height: 1.35; }
.facts strong { display: block; font-weight: 600; }
.facts span:not(.tile) { color: var(--muted); font-size: .9375rem; }

/* inner page hero */
.page-hero { position: relative; display: flex; align-items: flex-end; min-height: clamp(19rem, 36vw, 28rem); background: var(--night); color: #fff; clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%); }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: #07070bb8; }
.page-hero .wrap { position: relative; z-index: 1; padding-block: 3rem calc(3rem + var(--slant)); }
.page-hero .kicker { color: var(--blush); }
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
.page-hero h1 + p { max-width: 36rem; margin-top: .75rem; font-size: 1.1875rem; color: #e4e4ec; }

/* cards */
.card { display: block; padding: 1.75rem; background: #fff; border: 1px solid var(--line); text-decoration: none; }
.card h3 { margin-top: 1.25rem; }
.card p { margin-top: .375rem; font-size: 1rem; color: var(--muted); }
a.card { transition: border-color .2s, transform .2s; }
a.card:hover { border-color: var(--red); transform: translateY(-3px); }
a.card:hover .tile { background: var(--red); color: #fff; }
.mist .card { border-color: transparent; }

.logo-card { display: grid; place-items: center; height: 9rem; padding: 1rem; }
.logo-hyundai { width: 12rem; }
.logo-kia { width: 7.5rem; }
.logo-chevrolet { width: 9.5rem; }

.cat { display: flex; align-items: center; gap: .875rem; padding: 1.25rem; background: #fff; }
.cat h3 { font-size: 1.0625rem; }
.cat p { font-size: .9375rem; line-height: 1.4; color: var(--muted); }
.cats { padding: 0; list-style: none; }
.mist-cats .cat { background: var(--mist); }

.slanted { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; clip-path: polygon(7% 0, 100% 0, 93% 100%, 0 100%); }
.slanted.wide { aspect-ratio: 3 / 2; object-position: 59% 60%; }
.checks { display: grid; gap: .625rem; margin-top: 1.5rem; padding: 0; list-style: none; font-weight: 500; }
.checks li { display: flex; gap: .625rem; }
.checks .i { margin-top: .2em; color: var(--red); stroke-width: 2.5; }

.year { font-size: clamp(5.5rem, 17vw, 11.5rem); font-weight: 700; line-height: 1; letter-spacing: -.03em; color: var(--red); }
.year small { display: block; margin-top: .75rem; font-size: 1.125rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }

.steps { counter-reset: step; padding: 0; list-style: none; }
.step { counter-increment: step; padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.step::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: .75rem; font-size: 2.25rem; font-weight: 700; line-height: 1; color: var(--red); }
.step p { margin-top: .375rem; color: var(--muted); }

/* call to action band */
/* overlaps the section above so the slanted corner shows its colour, not the white page */
.cta { margin-top: calc(var(--slant) * -1); padding-block: calc(clamp(3rem, 6vw, 4.5rem) + var(--slant)) clamp(3rem, 6vw, 4.5rem); background: var(--red); color: #fff; clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%); }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta p { margin-top: .5rem; }
.cta .actions { margin-top: 0; }

/* contact */
.ready { padding: 2rem; background: var(--navy); color: #fff; }
.ready .kicker { color: var(--blush); }
.ready h2 { font-size: 1.625rem; }
.ready .checks .i { color: var(--blush); }
.contact-value { margin-top: .25rem; font-size: 1.125rem; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.card p.contact-value { font-size: 1.125rem; color: var(--ink); }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: .125rem 0; font-weight: inherit; text-align: left; }
.hours td { text-align: right; white-space: nowrap; }
.card .hours { margin-top: .375rem; font-size: .9375rem; color: var(--ink); }

.map iframe { display: block; width: 100%; height: clamp(22rem, 48vw, 34rem); border: 0; }
.map-frame { position: relative; }
/* shortcut: Google's phone embed draws no pin, so this one marks the map centre; it stays put if the map is panned, swap for the Maps JS API if that matters */
@media (pointer: coarse), (max-width: 59.99rem) {
  .map-frame::after { content: ""; position: absolute; left: calc(50% - .875rem); top: calc(50% - 2.11rem); width: 1.75rem; height: 1.75rem; background: var(--red); border: .1875rem solid #fff; border-radius: 50% 50% 50% 0; box-shadow: 0 1px 4px #0006; transform: rotate(-45deg); pointer-events: none; }
}
.map-card { padding: 1.75rem 0; }
.map-card h2 { font-size: 1.625rem; }
.map-card p { margin-top: .5rem; color: var(--muted); }

/* footer */
.site-footer { padding-top: 3.5rem; background: var(--night); color: #c9cad6; font-size: 1rem; }
.foot-grid { display: grid; gap: 2.5rem; }
.foot-brand img { width: 9rem; margin-bottom: 1rem; }
.site-footer h2 { margin-bottom: .75rem; font-size: 1rem; font-weight: 600; letter-spacing: 0; color: #fff; }
.site-footer ul { display: grid; gap: .5rem; padding: 0; list-style: none; }
.site-footer li { display: flex; gap: .625rem; }
.site-footer li .i { margin-top: .2em; color: var(--blush); }
.site-footer a { text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: .2em; }
.legal { margin-top: 3rem; padding-block: 1.25rem; border-top: 1px solid #ffffff1f; font-size: .9375rem; }

@media (min-width: 40rem) {
  .call span { display: inline; }
  .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
  .ready { padding: 2.5rem; }
}

@media (min-width: 60rem) {
  html { scroll-padding-top: 6rem; }
  .topbar { display: block; }
  .site-header .wrap { gap: 2rem; }
  .brand img { width: 9.5rem; }
  .menu-btn { display: none; }
  #menu { display: flex; gap: 1.75rem; position: static; inset: auto; width: auto; height: auto; margin: 0; padding: 0; border: 0; overflow: visible; background: none; color: inherit; font-size: 1rem; font-weight: 500; }
  #menu a { padding-block: .25rem; }
  #menu a[aria-current] { color: var(--red); }
  #menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.125rem; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
  #menu a:hover::after, #menu a[aria-current]::after { transform: scaleX(1); }

  .split { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .split.top { align-items: start; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .foot-grid { grid-template-columns: 1.3fr .8fr 1.3fr 1.3fr; gap: 3rem; }

  .hero { display: flex; align-items: center; min-height: min(calc(100vh - 7.5rem), 50rem); }
  .hero-text { padding-block: 5rem 8rem; }
  .hero-text h1 { max-width: 54rem; }
  .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; object-fit: cover; object-position: 70% 100%; }
  /* keeps the text readable over the lit towers on the left of the photo */
  .hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #07070be6 0, #07070b99 40%, #07070b00 70%); }

  /* the white bar sits over the hero's slanted edge */
  .facts { position: relative; z-index: 1; grid-template-columns: repeat(4, 1fr); margin-top: -4.5rem; padding: 1.75rem; background: #fff; border: 1px solid var(--line); }
  .page-hero::after { background: linear-gradient(90deg, #07070bf2 0, #07070bc7 45%, #07070b33 100%); }

  .map { position: relative; }
  .map iframe { height: 34rem; }
  .map-card { position: absolute; z-index: 1; right: max(1.5rem, calc(50% - 37rem)); top: 2rem; width: 21rem; margin: 0; padding: 1.75rem; background: #fff; border: 1px solid var(--line); }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-img { animation: settle 1.8s ease-out both; }
  .hero-text > * { animation: rise .7s ease-out both; }
  .hero-text > :nth-child(2) { animation-delay: .08s; }
  .hero-text > :nth-child(3) { animation-delay: .16s; }
  .hero-text > :nth-child(4) { animation-delay: .24s; }
  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 30%; }
  }
}

@keyframes rise { from { opacity: 0; transform: translateY(1.25rem); } }
@keyframes settle { from { transform: scale(1.05); } }
