/* Shared styles for the per-model pages (/cars/*). Same system as the home and gift pages. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/fonts/archivo.woff2) format("woff2-variations"), url(/fonts/archivo.woff2) format("woff2");
}

:root {
  --bg: #e5e4df;
  --surface: #d9d7d0;
  --surface-2: #c9c7c0;
  --ink: #141519;
  --ink-2: #3a3b43;
  --soft: #4a4b52;
  --mid: #8f8d87;
  --red: #d42a24;
  --red-deep: #a51d18;
  --on-red: #ffffff;
  --on-ink: #e5e4df;
  --on-ink-soft: #a9a7a1;

  --face: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --t-head: clamp(34px, 4.4vw, 68px);
  --t-body: clamp(17px, 0.2vw + 15.5px, 18px);
  --t-small: 15px;

  --m: clamp(16px, 2.2vw, 32px);
  --gap: 12px;
  --section: clamp(96px, 11vw, 180px);
  --bar: 64px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--face); font-size: var(--t-body); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, figure, figcaption { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
::selection { background: var(--red); color: #fff; }
section { scroll-margin-top: var(--bar); }
.wrap { padding-inline: max(var(--m), env(safe-area-inset-left, 0px)) max(var(--m), env(safe-area-inset-right, 0px)); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.head { font-size: var(--t-head); font-weight: 800; font-stretch: 100%; letter-spacing: -0.03em; line-height: 0.98; text-wrap: balance; }
.num { font-variant-numeric: tabular-nums; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 26px; background: var(--red); color: var(--on-red); font-weight: 800; font-size: 17px; letter-spacing: -0.01em; text-decoration: none; border: 0; cursor: pointer; transition: transform var(--t-press) var(--ease-out), background var(--t-hover) ease; }
.btn:hover { background: var(--red-deep); }
.btn:active { transform: scale(0.97); }

/* Bar */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; height: var(--bar); display: flex; align-items: center; gap: 24px; background: var(--bg); transition: background var(--t-ui) ease, color var(--t-ui) ease; }
.bar[data-on="ink"] { background: var(--ink); color: var(--on-ink); }
.bar[data-on="red"] { background: var(--red); color: var(--on-red); }
.bar .mark { font-weight: 900; font-stretch: 112%; text-transform: uppercase; letter-spacing: -0.02em; font-size: 22px; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.bar .mark i { width: 22px; height: 12px; background: currentColor; }
.bar nav { display: flex; gap: 22px; margin-left: auto; font-weight: 600; font-size: var(--t-small); }
.bar nav a { text-decoration: none; padding: 6px 0; }
.bar nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.bar .btn { min-height: 42px; padding: 0 18px; font-size: 15px; }
.bar[data-on="red"] .btn { background: var(--ink); color: var(--on-ink); }
@media (max-width: 820px) { .bar nav { display: none; } .bar .btn { margin-left: auto; } }

/* HERO: the card and the room. */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); padding: var(--gap); min-height: calc(100svh - var(--bar)); }
.hero .card { background: var(--surface); display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 clamp(20px, 3vw, 56px) 28px; position: relative; min-width: 0; }
.slats { display: flex; height: 44px; width: 100%; min-width: 0; overflow: hidden; }
.slats i { flex: 0 0 28px; height: 100%; background: var(--ink); }
.slats i:nth-child(even) { background: var(--surface); }
.hero .crumbs { margin-top: clamp(18px, 2vw, 26px); font-size: var(--t-small); font-weight: 600; color: var(--soft); }
.hero .crumbs a { text-decoration: none; }
.hero .crumbs a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero .crumbs span { margin: 0 6px; }
.hero .kicker { margin-top: clamp(22px, 2.4vw, 32px); font-size: var(--t-small); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; background: var(--ink); color: var(--on-ink); padding: 6px 12px; }
.hero .crumbs + .kicker { margin-top: 12px; }
.hero h1 { font-size: clamp(40px, 4.2vw, 62px); font-weight: 800; letter-spacing: -0.035em; line-height: 0.96; margin-top: clamp(14px, 1.6vw, 22px); }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero h1 .line span { display: block; }
.hero .sub { font-size: var(--t-body); max-width: 46ch; margin-top: 14px; line-height: 1.45; }
.hero .cta { margin-top: clamp(18px, 2vw, 26px); width: min(100%, 420px); }
.hero .reserve { margin-top: 8px; width: min(100%, 420px); min-height: 50px; background: var(--ink); color: var(--on-ink); }
.hero .reserve:hover { background: var(--ink-2); }
.hero .quiet { margin-top: 12px; font-size: var(--t-small); font-weight: 600; max-width: 42ch; }
.hero .quiet::before { content: ""; display: inline-block; width: 14px; height: 7px; margin-right: 10px; vertical-align: 0.15em; background: var(--red); }

.hero .room { position: sticky; top: calc(var(--bar) + var(--gap)); height: calc(100svh - var(--bar) - 2 * var(--gap)); background: var(--surface); display: grid; place-items: center; overflow: hidden; }
.scene { position: relative; aspect-ratio: 4 / 5; width: min(100%, calc((100svh - var(--bar) - 2 * var(--gap)) * 0.8)); }
.scene > img.wall { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene .hang { position: absolute; background: #0d0e11; padding: 3.6%; }
.scene .hang .pf { position: relative; width: 100%; height: 100%; background: #0d0e11; }
.scene .hang img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1600ms var(--ease-soft); }
.scene .hang img.on { opacity: 1; }
.hero .room .note { position: absolute; left: 12px; right: 12px; bottom: 12px; margin: 0 auto; width: max-content; max-width: calc(100% - 24px); background: var(--bg); color: var(--soft); font-size: 13px; font-weight: 600; text-align: center; padding: 8px 12px; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero .room { position: relative; top: 0; height: 52svh; order: -1; }
  .scene { width: min(100%, calc(52svh * 0.8)); }
  .hero .room .note { bottom: 36px; font-size: 12px; }
  .hero .card { margin-top: -24px; }
  .slats { height: 40px; }
  .slats i { flex-basis: 22px; }
  .hero h1 { font-size: 10vw; }
}

/* BAND: the race calendar. */
.band { background: var(--red); color: var(--on-red); height: clamp(110px, 20vh, 200px); display: flex; align-items: center; overflow: hidden; }
.track { display: flex; white-space: nowrap; will-change: transform; }
.track span { font-weight: 900; font-stretch: 112%; text-transform: uppercase; letter-spacing: -0.02em; font-size: clamp(40px, 6vw, 104px); line-height: 1; padding-right: 0.45em; display: inline-flex; align-items: center; gap: 0.45em; }
.track span::after { content: ""; width: 0.42em; height: 0.16em; background: currentColor; }
@media (prefers-reduced-motion: no-preference) { .js .track { animation: run 48s linear infinite; } }
@keyframes run { to { transform: translateX(-50%); } }

/* Section intros: heading left, line right. */
.intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
.intro h2 { grid-column: 1 / 7; }
.intro p { grid-column: 8 / 13; max-width: 48ch; }
@media (max-width: 900px) { .intro { display: block; } .intro p { margin-top: 16px; } }

/* MARKS: what carries over on this car. */
.marks { padding-block: var(--section); }
.marks .list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 56px; }
.marks .list li { background: var(--surface); padding: 28px; min-height: 220px; }
.marks .list li::before { content: ""; display: block; width: 28px; height: 10px; background: var(--red); margin-bottom: 18px; }
.marks .list li:nth-child(3n+2) { background: var(--ink); color: var(--on-ink); }
.marks .list h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.marks .list p { margin-top: 12px; max-width: 34ch; font-size: 17px; }
@media (max-width: 1000px) { .marks .list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .marks .list { margin-top: 32px; } }
@media (max-width: 600px) { .marks .list { grid-template-columns: 1fr; } .marks .list li { min-height: 0; } }

/* PAIR: the phone pic and the poster, on ink. */
.pair { background: var(--ink); color: var(--on-ink); padding-block: var(--section); }
.pair .intro a { color: var(--on-ink); }
.pair .two { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; margin-top: 56px; align-items: stretch; }
.pair figure { background: var(--ink-2); position: relative; }
.pair figure img { width: 100%; height: auto; }
.pair figure:first-child img { height: 100%; object-fit: cover; }
.pair figcaption { position: absolute; left: 0; top: 0; background: var(--bg); color: var(--ink); font-weight: 800; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 10px; }
.pair figure:last-child figcaption { background: var(--red); color: var(--on-red); }
.pair .tip { margin-top: 8px; background: var(--ink-2); padding: 28px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--gap); }
.pair .tip h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.pair .tip p { max-width: 60ch; }
@media (max-width: 900px) {
  .pair .two { grid-template-columns: 1fr; margin-top: 32px; }
  .pair figure:first-child img { height: auto; }
  .pair .tip { display: block; }
  .pair .tip p { margin-top: 10px; }
}

/* PRICES: sizes that step up, heights to scale. */
.prices { padding-block: var(--section) var(--section); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto auto; gap: 8px; align-items: end; }
.prices .top { grid-column: 1 / 3; grid-row: 1; padding: 0 24px 48px 0; align-self: start; }
.prices .top p { max-width: 44ch; margin-top: 20px; }
.tile.t1 { grid-column: 1; grid-row: 2; } .tile.t2 { grid-column: 2; grid-row: 2; }
.tile.t3 { grid-column: 3; grid-row: 1 / 3; align-self: end; } .tile.t4 { grid-column: 4; grid-row: 1 / 3; align-self: end; }
.tile { position: relative; display: flex; flex-direction: column; padding: 28px 28px 0; color: var(--ink); background: var(--surface); }
.tile.hero-size { background: var(--ink); color: var(--on-ink); }
.tile .sz { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.tile .pr { font-size: 56px; font-weight: 900; letter-spacing: -0.04em; line-height: 1; margin-top: 10px; }
.tile .ln { margin: 18px 0 28px; display: grid; gap: 6px; font-size: 17px; }
.tile .ln li { display: flex; gap: 10px; align-items: baseline; }
.tile .ln li::before { content: ""; flex: 0 0 14px; height: 7px; background: currentColor; position: relative; top: -3px; }
.tile .mini { margin-top: auto; align-self: center; width: 38%; background: #0d0e11; padding: 4px; line-height: 0; }
.tile .mini img { width: 100%; height: auto; display: block; }
.tile .strip { display: flex; align-items: center; height: 64px; margin: 0 -28px; padding: 0 28px; text-decoration: none; font-weight: 800; background: var(--surface-2); color: var(--ink); transition: background var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.tile .strip:hover { background: var(--mid); }
.tile .strip:active { transform: scale(0.98); }
.tile.hero-size .strip { background: var(--red); color: var(--on-red); }
.tile.hero-size .strip:hover { background: var(--red-deep); }
.tile .mini + .strip { margin-top: 24px; }
@media (max-width: 900px) {
  .tiles { grid-template-columns: 1fr; grid-template-rows: none; }
  .prices .top { grid-column: 1; grid-row: auto; padding: 0 0 24px; }
  .tile.t1, .tile.t2, .tile.t3, .tile.t4 { grid-column: 1; grid-row: auto; }
  .tile { min-height: 0 !important; }
  .tile .pr { font-size: 44px; }
  .tile .mini { display: none; }
}

/* FAQ: tabbed index cards. */
.faq { padding-block: 0 var(--section); }
.faq h2 { grid-column: 3 / 11; }
.cards { grid-column: 3 / 11; margin-top: 40px; display: grid; }
.card { position: relative; margin-top: -1px; }
.cards .card .tab { position: relative; height: 40px; width: 200px; display: flex; align-items: center; padding: 0 14px; font-size: 16px; font-weight: 700; margin-left: calc(var(--k) * 110px); }
.cards .card .face { padding: 0 24px; }
.cards .card summary { list-style: none; cursor: pointer; font-size: 20px; font-weight: 600; min-height: 96px; display: flex; align-items: center; padding: 16px 0; }
.cards .card summary::-webkit-details-marker { display: none; }
.cards .card .ans { max-width: 50ch; padding: 0 0 28px; font-size: 17px; }
.cards .card .ans a { font-weight: 700; }
.card.c1 .tab, .card.c1 .face { background: var(--surface); color: var(--ink); }
.card.c2 .tab, .card.c2 .face { background: var(--ink); color: var(--on-ink); }
.card.c3 .tab, .card.c3 .face { background: var(--surface-2); color: var(--ink); }
.card details[open] summary { font-weight: 800; }
@media (max-width: 900px) {
  .faq h2, .cards { grid-column: 1 / -1; }
  .cards .card .tab { width: 120px; margin-left: calc(var(--k) * 32px); font-size: 15px; }
  .cards .card summary { min-height: 88px; font-size: 18px; }
  .cards .card .face { padding: 0 20px; }
  .cards .card .ans { font-size: 16px; }
}

/* CTA: one word is the button. */
.go-band { display: block; position: relative; background: var(--red); color: var(--on-red); min-height: 60svh; text-decoration: none; overflow: hidden; }
.go-band:hover, .go-band:focus-visible { background: var(--ink); color: var(--on-ink); }
.go-band .say { position: absolute; left: var(--m); top: 28px; font-size: 20px; max-width: 34ch; font-weight: 600; line-height: 1.35; }
.go-band svg { position: absolute; right: var(--m); top: 28px; width: 48px; height: 48px; }
.go-band .word { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-weight: 900; font-stretch: 125%; letter-spacing: -0.04em; line-height: 0.76; font-size: 27vw; transform: translateY(0.05em); }
@media (max-width: 900px) { .go-band { min-height: 46svh; } .go-band .say { font-size: 17px; max-width: 24ch; } .go-band svg { width: 32px; height: 32px; } .go-band .word { font-size: 30vw; } }

/* MORE: related cars. */
.more { padding-block: 56px 72px; }
.more h2 { font-size: var(--t-small); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft); }
.more ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.more ul a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; background: var(--surface); text-decoration: none; font-weight: 700; }
.more ul a:hover { background: var(--ink); color: var(--on-ink); }
.more p { margin-top: 24px; max-width: 60ch; color: var(--soft); }
.more p a { color: var(--ink); font-weight: 700; }

/* MAKES: the index. */
.makes { padding-block: var(--section); }
.groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.group { background: var(--surface); padding: 24px 24px 12px; }
.group:nth-child(3n+2) { background: var(--ink); color: var(--on-ink); }
.group h2 { font-size: var(--t-small); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.75; }
.group ul { margin-top: 10px; }
.group li a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 0; text-decoration: none; border-top: 1px solid rgba(20, 21, 25, 0.12); }
.group:nth-child(3n+2) li a { border-top-color: rgba(229, 228, 223, 0.18); }
.group li:first-child a { border-top: 0; }
.group li b { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.group li span { font-size: var(--t-small); font-weight: 600; opacity: 0.75; text-align: right; }
.group li a:hover b { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--red); }
.makes .any { margin-top: 32px; max-width: 60ch; color: var(--soft); }
.makes .any a { color: var(--ink); font-weight: 700; }
@media (max-width: 900px) { .groups { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .groups { grid-template-columns: 1fr; } }

/* FOOTER */
.foot { background: var(--ink); color: var(--on-ink); padding-block: 48px 28px; }
.blocks { display: flex; gap: 4px; align-items: flex-end; height: 34svh; min-height: 180px; }
.blocks b { flex: 1 1 0; display: grid; place-items: center; font-weight: 900; font-stretch: 112%; text-transform: uppercase; font-size: clamp(36px, 7.6vw, 150px); line-height: 1; background: var(--bg); color: var(--ink); }
.blocks b:nth-child(2n) { background: var(--surface-2); }
.blocks b:nth-child(4n+1) { background: var(--red); color: var(--on-red); }
.foot .cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin-top: 56px; font-size: var(--t-small); }
.foot .links { grid-column: 1 / 9; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.foot .links a { text-decoration: none; font-weight: 600; }
.foot .links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot .contact { grid-column: 9 / 13; display: grid; gap: 10px; color: var(--on-ink-soft); }
.foot .contact a { color: var(--on-ink); font-weight: 600; text-decoration: none; }
.foot .last { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 40px; font-size: var(--t-small); color: var(--on-ink-soft); }
.foot .last .btn { min-height: 40px; padding: 0 16px; font-size: 15px; }
@media (max-width: 900px) {
  .blocks { height: 22svh; min-height: 120px; }
  .blocks b { font-size: 9vw; }
  .foot .links { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .foot .contact { grid-column: 1 / -1; margin-top: 20px; }
}

/* Motion: entrances once, transform and opacity only. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(18px); animation: rise var(--t-reveal) var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
  .js .hero h1 .line span { transform: translateY(105%); animation: line-up 900ms var(--ease-out) forwards; animation-delay: calc(var(--i) * 110ms + 150ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].in { opacity: 1; transform: none; }
  .js [data-grow] { transform: scaleY(0.6); transform-origin: bottom; opacity: 0; transition: transform 900ms var(--ease-out), opacity 600ms var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms); }
  .js [data-grow].in { transform: none; opacity: 1; }
  .js .blocks b { transform: translateY(40%); opacity: 0; transition: transform 800ms var(--ease-out), opacity 500ms var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
  .js .foot.in .blocks b { transform: none; opacity: 1; }
  .js .scene > img.wall { transform: scale(1.06); animation: settle 2400ms var(--ease-soft) forwards; }
  .js .cards .card { opacity: 0; transform: translateY(20px); transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: calc(var(--k) * 70ms); }
  .js .cards .card.in { opacity: 1; transform: none; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes line-up { to { transform: none; } }
@keyframes settle { to { transform: none; } }
