@font-face { font-family: "Adventor"; src: url("fonts/adventor-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Adventor"; src: url("fonts/adventor-bold.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0b0b0c;
  --text: #f3f3f1;
  --muted: #a4a4aa;
  --line: rgb(255 255 255 / 0.14);
  --red: #912c2c;
  --red-hi: #a33434;
  --red-ink: #c75a5a;
  --pad: clamp(16px, 2.8vw, 40px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --rail-h: 72px;
  --font: "Adventor", "Century Gothic", "Avenir Next", sans-serif;
}

* { box-sizing: border-box; margin: 0; }
html { background: var(--bg); color: var(--text); font-family: var(--font); -webkit-text-size-adjust: 100%; scrollbar-color: #3a3a3e var(--bg); }
body { min-height: 100svh; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; padding: 0; }
img { display: block; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--ink, #fff); outline-offset: 3px; border-radius: 2px; }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: var(--pad); top: 12px; z-index: 30; padding: 10px 16px; background: #fff; color: #000; border-radius: 999px; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* the font's digits are all one width, which leaves holes around a "1": tuck it in so REV12 and REV11 keep their rhythm */
.one { margin: 0 -0.1em 0 -0.07em; }

/* ---------- header ---------- */
.top { position: absolute; inset: 0 0 auto; z-index: 10; height: 72px; padding: 0 var(--pad); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; color: var(--ink, var(--text)); transition: color 0.2s; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; justify-self: start; white-space: nowrap; }
.brand img { width: 44px; height: auto; }
.links { display: flex; gap: 32px; font-size: 15px; }
.links a { padding: 8px 0; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.links a:hover { text-decoration-line: underline; }
.acts { display: flex; gap: 10px; justify-self: end; }
.btn { min-height: 44px; padding: 0 20px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; white-space: nowrap; border: 1px solid currentColor; background: rgb(11 11 12 / 0.28); transition: background 0.15s, color 0.15s, border-color 0.15s; }
.btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn--red, .btn--red:hover { color: #fff; border-color: var(--red); background: var(--red); }
.btn--red:hover { background: var(--red-hi); border-color: var(--red-hi); }

.menu { display: none; justify-self: end; }
.menu summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; font-size: 15px; }
.menu summary::-webkit-details-marker { display: none; }
.menu__sheet { position: absolute; left: 0; right: 0; top: 60px; z-index: 20; padding: 8px var(--pad) 24px; background: var(--bg); color: var(--text); display: grid; gap: 10px; border-bottom: 1px solid var(--line); }
.menu__sheet nav { display: grid; margin-bottom: 8px; }
.menu__sheet nav a { padding: 12px 0; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; border-bottom: 1px solid var(--line); }

/* ---------- the lineage ---------- */
.hero { position: relative; height: 100svh; min-height: 600px; max-height: 1200px; overflow: hidden; background: var(--bg); }
.stage { position: absolute; inset: 0; background: var(--bg); touch-action: pan-y; }
.hero[data-tone="light"] .stage { background: #fff; }
.stage picture { position: absolute; inset: 0; display: block; background: inherit; }
.live { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s; }
.live.on { opacity: 1; }
.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: inherit; }
.shot.fit { object-fit: contain; }
/* a short veil for the giant name that clears well before the car; the fact text carries its own (see .about) */
.stage::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; transition: opacity 0.2s;
  background: linear-gradient(180deg, rgb(11 11 12 / calc(0.8 * var(--scrim, 1))) 0, rgb(11 11 12 / calc(0.46 * var(--scrim, 1))) 30%, rgb(11 11 12 / 0) 46%); }

.plate { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); top: 84px; display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; color: var(--ink, var(--text)); transition: color 0.2s; pointer-events: none; }
.plate a { pointer-events: auto; }
.name { view-transition-name: car-name; font-weight: 700; font-size: min(17.4vw, 33svh); line-height: 0.86; letter-spacing: -0.04em; margin-left: -0.03em; }
.about { position: relative; flex: 0 0 min(30vw, 420px); padding-top: 12px; }
.about::before { content: ""; position: absolute; z-index: -1; inset: -40px -64px -56px -72px; pointer-events: none; transition: opacity 0.2s;
  background: radial-gradient(farthest-side, rgb(11 11 12 / 0.6) 30%, rgb(11 11 12 / 0)); }
.fact { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.25; letter-spacing: -0.01em; text-wrap: pretty; min-height: 3.75em; }
.more { display: inline-flex; align-items: center; gap: 14px; margin-top: 12px; min-height: 44px; font-size: 15px; font-weight: 700; }
.more span:first-child { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.more:hover span:first-child { text-decoration-thickness: 2px; }
.season { font-weight: 400; font-variant-numeric: tabular-nums; opacity: 0.84; }

.rail { view-transition-name: rail; position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: var(--rail-h); background: var(--bg); border-top: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail ol { position: relative; z-index: 1; height: 100%; min-width: 100%; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(84px, 1fr); }
.rail li { border-right: 1px solid rgb(255 255 255 / 0.09); }
.rail li:last-child { border-right: 0; }
.rail a { height: 100%; padding: 0 0 0 clamp(10px, 1.1vw, 16px); display: flex; flex-direction: column; justify-content: center; gap: 2px; font-size: 13px; color: var(--muted); }
.rail a > span { color: var(--muted); font-variant-numeric: tabular-nums; }
.rail a b { font-size: clamp(15px, 1.25vw, 18px); color: #d6d6d8; letter-spacing: -0.01em; }
.rail a:hover b { color: #fff; }
/* without script (and on car pages) the current cell paints itself; the home page rail hands this to the sliding block */
.rail a[aria-current] { background: var(--red); }
.js .rail a[aria-current] { background: none; }
.js .block { display: block; }
.rail a[aria-current] b { color: #fff; }
.rail a[aria-current] > span { color: #f7e3e3; }
.rail a:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.block { display: none; position: absolute; left: 0; top: 0; height: 100%; width: 84px; background: var(--red); transition: transform 0.34s var(--ease); pointer-events: none; }

/* REV6 exists only as a CAD render on white, so the whole screen turns to meet it. Phones keep the text on dark:
   there it sits on its own plate above the photo band, so only the band needs to turn white. */
@media (min-width: 800px) {
  .hero[data-tone="light"] { --ink: #0b0b0c; }
  .hero[data-tone="light"] .stage::after, .hero[data-tone="light"] .about::before { opacity: 0; }
  body:has(.hero[data-tone="light"]) .top { --ink: #0b0b0c; }
  body:has(.hero[data-tone="light"]) .brand img { filter: invert(1); }
  body:has(.hero[data-tone="light"]) .top .btn:not(.btn--red) { background: transparent; }
  body:has(.hero[data-tone="light"]) .top .btn:not(.btn--red):hover { background: #0b0b0c; color: #fff; border-color: #0b0b0c; }
  .shot.fit { padding: 15vh 0 0 24vw; }
  /* a photo with lettering where the fact usually sits can pull the text in next to the name ("about": "inner") */
  .hero[data-about="inner"] .plate { gap: 28px; }
  .hero[data-about="inner"] .about { flex-basis: min(16vw, 270px); margin-right: auto; }
}

/* ---------- close ---------- */
.close { padding: clamp(72px, 11vw, 160px) var(--pad) clamp(40px, 6vw, 80px); }
.statement { max-width: 17em; font-size: clamp(36px, 5.6vw, 88px); line-height: 1; letter-spacing: -0.04em; text-wrap: balance; margin-bottom: clamp(56px, 8vw, 112px); }
.routes { border-top: 1px solid var(--line); }
.routes li { border-bottom: 1px solid var(--line); }
.routes a { display: grid; grid-template-columns: 1fr minmax(0, 30vw) 40px; align-items: center; gap: 24px; padding: clamp(18px, 2.4vw, 32px) 0; transition: color 0.15s, padding 0.34s var(--ease); }
.routes b { font-size: clamp(30px, 4.2vw, 64px); line-height: 1.04; letter-spacing: -0.035em; }
.routes a > span { color: var(--muted); font-size: clamp(15px, 1.2vw, 17px); line-height: 1.35; transition: color 0.15s; }
.routes svg { width: 32px; height: 32px; justify-self: end; transition: color 0.15s; }
.routes a:hover { padding-left: 16px; color: #fff; }
.routes a:hover > span { color: var(--text); }
.routes a:hover svg { color: var(--red-ink); }

/* ---------- footer ---------- */
.foot { padding: 32px var(--pad) calc(32px + env(safe-area-inset-bottom)); display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; font-size: 15px; line-height: 1.5; color: var(--muted); }
.foot a { color: var(--text); text-underline-offset: 4px; }
.foot a:hover { text-decoration: underline; }
.foot nav { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }

/* ---------- phones and small tablets: the photo gets its own band so the car is never cropped away ---------- */
@media (max-width: 799px) {
  :root { --rail-h: 64px; }
  .top { grid-template-columns: 1fr auto auto; gap: 12px; height: 60px; position: relative; background: var(--bg); }
  .links, .acts .btn:not(.btn--red) { display: none; }
  .brand { gap: 6px; font-size: 15px; }
  .brand img { width: 28px; }
  .btn { padding: 0 14px; font-size: 14px; }
  .menu { display: block; }
  .menu__sheet .btn { min-height: 48px; font-size: 15px; }
  .hero { height: calc(100svh - 60px); min-height: 560px; display: flex; flex-direction: column; }
  .plate { position: static; order: 1; display: block; padding: 8px var(--pad) 16px; }
  .name { font-size: min(27vw, 150px); }
  .about { padding-top: 14px; }
  .about::before { display: none; }
  .fact { font-size: 18px; min-height: 3.75em; }
  .more { margin-top: 2px; }
  .stage { position: relative; inset: auto; order: 2; flex: 1 1 auto; min-height: 180px; }
  .stage::after { display: none; }
  .rail { position: relative; order: 3; flex: 0 0 var(--rail-h); }
  .routes a { grid-template-columns: 1fr 28px; gap: 4px 12px; }
  .routes a > span { grid-row: 2; grid-column: 1; }
  .routes svg { grid-row: 1 / 3; grid-column: 2; width: 26px; height: 26px; }
}

/* the smallest phones can't fit the mark, the name, Back REV12, and Menu on one line, so the mark gives way */
@media (max-width: 374px) {
  .brand img { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ---------- pages beyond the home page ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.18s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

.top--flat { position: relative; }
.links a[aria-current="page"] { text-decoration-line: underline; }
h1.name { font-size: min(17.4vw, 33svh); }
.page { padding: clamp(24px, 4vw, 56px) var(--pad) clamp(64px, 9vw, 120px); }
.page h1 { font-size: clamp(56px, 11vw, 168px); line-height: 0.9; letter-spacing: -0.04em; margin-bottom: clamp(24px, 3vw, 40px); }
.lede { max-width: 26em; font-size: clamp(20px, 2.2vw, 32px); line-height: 1.2; letter-spacing: -0.015em; text-wrap: pretty; }
.band { margin-top: clamp(64px, 9vw, 128px); }
.band > h2 { font-size: clamp(32px, 4.6vw, 64px); line-height: 1; letter-spacing: -0.035em; margin-bottom: clamp(20px, 2.6vw, 36px); scroll-margin-top: 24px; }
.muted { color: var(--muted); }
.prose { overflow-wrap: anywhere; max-width: 68ch; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.55; }
.prose p + p, .prose p + h2, .prose h2 + p { margin-top: 1em; }
.prose h2 { font-size: 1.3em; line-height: 1.25; letter-spacing: -0.01em; }
.prose a, .link { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.prose a:hover, .link:hover { text-decoration-thickness: 2px; }
.prose img { width: 100%; height: auto; margin-top: 1.4em; }

/* the car list */
.lineup { border-top: 1px solid var(--line); }
.lineup li { border-bottom: 1px solid var(--line); }
.lineup a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) clamp(180px, 24vw, 360px); align-items: center; gap: clamp(16px, 2.4vw, 40px); padding: 12px 0; transition: padding 0.34s var(--ease); }
.lineup a:hover { padding-left: 16px; }
.lineup b { display: block; font-size: clamp(36px, 5.4vw, 84px); line-height: 1; letter-spacing: -0.04em; }
.lineup i { font-style: normal; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lineup a > span { font-size: clamp(15px, 1.25vw, 18px); line-height: 1.35; color: var(--muted); text-wrap: pretty; }
.lineup a:hover > span { color: var(--text); }
.lineup img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #161618; }
.pills { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.3; }
.pills li { max-width: 18em; }
.before li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 8px 32px; padding: 20px 0; border-top: 1px solid var(--line); }
.before b { display: block; font-size: clamp(24px, 2.6vw, 36px); letter-spacing: -0.025em; }

/* a car's page */
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(32px, 4vw, 56px) clamp(32px, 5vw, 72px); }
.specs h3 { font-size: 20px; letter-spacing: -0.01em; margin-bottom: 8px; }
.specs div div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.35; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-variant-numeric: tabular-nums; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 8px; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: #161618; }
.pager { display: flex; justify-content: space-between; gap: 24px; margin-top: clamp(64px, 9vw, 128px); padding-top: 20px; border-top: 1px solid var(--line); }
.pager a { font-size: clamp(24px, 3.4vw, 48px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; max-width: 48%; }
.pager a:hover { color: #fff; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.pager a:last-child { margin-left: auto; text-align: right; }
.pager .lab { display: block; font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--muted); margin-bottom: 4px; }

/* the team */
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 190px), 1fr)); gap: 28px 16px; }
.people img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: #161618; }
.people .plain { padding-top: 10px; }
.people .plain b { display: block; font-size: 17px; line-height: 1.2; letter-spacing: -0.01em; }
.people .plain span { display: block; margin-top: 2px; font-size: 14px; line-height: 1.3; color: var(--muted); }
.people summary { list-style: none; cursor: pointer; padding-top: 10px; }
.people summary::-webkit-details-marker { display: none; }
.people summary b { display: block; font-size: 17px; line-height: 1.2; letter-spacing: -0.01em; }
.people summary span { display: block; margin-top: 2px; font-size: 14px; line-height: 1.3; color: var(--muted); }
.people summary:hover b { text-decoration: underline; text-underline-offset: 3px; }
.people details p { margin-top: 8px; font-size: 14px; line-height: 1.45; color: var(--text); }
.people details a { display: inline-block; margin-top: 6px; font-size: 14px; }
.archive > details { border-top: 1px solid var(--line); }
.archive > details:last-child { border-bottom: 1px solid var(--line); }
.archive > details > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; font-size: clamp(22px, 2.6vw, 36px); font-weight: 700; letter-spacing: -0.025em; }
.archive > details > summary::-webkit-details-marker { display: none; }
.archive > details > summary span { font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.archive > details > summary:hover { color: #fff; }
.archive .people { padding: 8px 0 32px; }

/* news */
.posts { border-top: 1px solid var(--line); }
.posts li { border-bottom: 1px solid var(--line); }
.posts a { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 8px 24px; align-items: baseline; padding: clamp(14px, 1.8vw, 24px) 0; transition: padding 0.34s var(--ease); }
.posts a:hover { padding-left: 16px; }
.posts time { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.posts b { font-size: clamp(22px, 2.6vw, 38px); line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
.post h1 { max-width: 16em; font-size: clamp(40px, 6.6vw, 104px); line-height: 0.96; text-wrap: balance; }
.post time { display: block; margin-bottom: clamp(24px, 3vw, 40px); color: var(--muted); }

/* small pages */
.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px 40px; }
.events b { display: block; font-size: 21px; letter-spacing: -0.015em; margin-bottom: 4px; }
.events p { font-size: 16px; line-height: 1.4; color: var(--muted); }
.cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 32px 48px; font-size: 18px; line-height: 1.4; }
.cols h3 { font-size: 15px; font-weight: 400; color: var(--muted); margin-bottom: 6px; }
.steps { padding-left: 1.2em; list-style: decimal; }
.steps li + li { margin-top: 8px; }

@media (max-width: 799px) {
  .lineup a { grid-template-columns: minmax(0, 1fr) 36vw; gap: 6px 14px; }
  .lineup a > span { grid-column: 1 / -1; grid-row: 2; }
  .lineup img { grid-column: 2; grid-row: 1; }
  .before li { grid-template-columns: 1fr; }
  .posts a { grid-template-columns: 1fr; gap: 4px; }
  .specs div div { grid-template-columns: 8.5em minmax(0, 1fr); }
  .top--flat { background: var(--bg); }
}

.insta { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 326px), 1fr)); gap: 16px; }
.insta iframe { width: 100%; height: 660px; border: 0; border-radius: 4px; background: #161618; }
.insta--live { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 799px) { .insta--live { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.insta--live a { display: block; overflow: hidden; background: #161618; }
.insta--live img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 0.34s var(--ease); }
.insta--live img.wide { object-fit: contain; }
.insta--live a:hover img { transform: scale(1.03); }
#not-pictured li { padding: 3px 0; font-size: 16px; }
