/* ==========================================================================
   The 911 Den — design system
   "The shop logbook": warm paper for the stories, shop-floor black for the
   frame, and the roundel's yellow / red as racing accents.
   Per-vehicle pages set --paint to the car's colour (e.g. Mexico Blue).
   ========================================================================== */

:root {
  --ink: #161513;
  --ink-2: #23211e;
  --ink-3: #34312c;
  --paper: #f4efe5;
  --paper-2: #ebe4d6;
  --paper-3: #e0d7c5;
  --line: #d3c8b3;
  --muted: #6b645a;
  --muted-on-ink: #a9a196;
  --yellow: #f2d916;
  --red: #e1251b;
  --white: #fcfaf6;
  --paint: var(--red);
  --paint-ink: #fff;

  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 4px;
  --shadow: 0 1px 0 rgba(0,0,0,.04), 0 10px 30px -12px rgba(30,22,10,.35);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
::selection { background: var(--yellow); color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.75rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1.1em; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 68ch; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--yellow); color: var(--ink); padding: .5rem 1rem; }
.skip:focus { left: 1rem; }

/* Label: stamped mono caption used for eyebrows and section numbers */
.label {
  font: 600 .75rem/1.2 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: .6em;
}
.label::before { content: ""; width: 1.75rem; height: 3px; background: linear-gradient(90deg, var(--yellow) 0 50%, var(--red) 50%); }
.on-ink .label, .label.on-ink { color: var(--muted-on-ink); }

/* Racing stripe: the roundel's yellow / white / red */
.stripe { height: 6px; background: linear-gradient(90deg, var(--yellow) 0 33.3%, var(--white) 33.3% 66.6%, var(--red) 66.6%); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font: 700 .95rem/1 var(--font-display); font-stretch: 85%;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  padding: .95em 1.4em; border-radius: var(--radius);
  border: 2px solid currentColor; color: var(--ink); background: transparent;
  transition: background .15s, color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); color: var(--ink); background: var(--yellow); border-color: var(--yellow); }
.btn--solid { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.btn--solid:hover { background: var(--white); border-color: var(--white); }
.btn--light { color: var(--white); }
.btn svg { width: 1.1em; height: 1.1em; }

/* ---------- Header ---------- */
.site-header { background: var(--ink); color: var(--white); position: sticky; top: 0; z-index: 50; }
.site-header .bar { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--white); flex-shrink: 0; }
.brand img { width: 52px; height: 52px; transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.brand:hover img { transform: rotate(-12deg); }
.brand:hover { color: var(--white); }
.brand-name { font: 800 1.5rem/1 var(--font-display); font-stretch: 75%; text-transform: uppercase; letter-spacing: .01em; }
.brand-name small { display: block; font: 500 .65rem/1.4 var(--font-mono); letter-spacing: .16em; color: var(--muted-on-ink); }

.nav { margin-left: auto; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.nav li { position: relative; }
.nav-link {
  white-space: nowrap;
  display: flex; align-items: center; gap: .35em;
  font: 700 .9rem/1 var(--font-display); font-stretch: 85%; letter-spacing: .06em; text-transform: uppercase;
  color: var(--white); text-decoration: none; background: none; border: 0; cursor: pointer;
  padding: .8rem .75rem; border-radius: var(--radius);
}
.nav-link:hover, .nav li:focus-within > .nav-link, .nav li.is-open > .nav-link { color: var(--yellow); }
.nav-link[aria-current="true"] { box-shadow: inset 0 -3px 0 var(--red); }
.nav-link .caret { width: .6em; height: .6em; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.nav li.is-open .caret { transform: rotate(-135deg) translateY(-2px); }

.menu {
  list-style: none; margin: 0; padding: .5rem;
  position: absolute; top: 100%; left: 0; min-width: 300px;
  background: var(--ink-2); border-top: 3px solid var(--yellow);
  border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 20px 40px rgba(0,0,0,.4);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.nav li:hover > .menu, .nav li:focus-within > .menu, .nav li.is-open > .menu { opacity: 1; visibility: visible; transform: none; }
.menu.cols-2 { min-width: 560px; columns: 2; column-gap: .5rem; }
.menu.align-right { left: auto; right: 0; }
.menu li { break-inside: avoid; }
.menu a {
  display: grid; grid-template-columns: 3.2rem 1fr; align-items: baseline;
  padding: .5rem .6rem; border-radius: var(--radius);
  color: var(--white); text-decoration: none; font: 500 .95rem/1.3 var(--font-body);
}
.menu a:hover, .menu a:focus-visible { background: var(--ink-3); color: var(--white); }
.menu a:hover .yr { color: var(--yellow); }
.menu .yr { font: 600 .8rem/1 var(--font-mono); color: var(--muted-on-ink); }

.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: var(--white); padding: .6rem; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 26px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; }
.nav-toggle span::before { top: -8px; } .nav-toggle span::after { top: 8px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-8px) rotate(-45deg); }

.social { display: flex; gap: .25rem; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--muted-on-ink); }
.social a:hover { color: var(--ink); background: var(--yellow); }
.social svg { width: 18px; height: 18px; }

@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .site-header .social { display: none; }
  .nav {
    position: fixed; inset: 78px 0 0 0; background: var(--ink); overflow-y: auto;
    padding: 1rem var(--gutter) 3rem; display: none;
  }
  .nav-open .nav { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; }
  .nav > ul > li { border-bottom: 1px solid var(--ink-3); }
  .nav-link { width: 100%; justify-content: space-between; padding: 1.1rem 0; font-size: 1.1rem; }
  .menu, .menu.cols-2 { position: static; min-width: 0; columns: 1; box-shadow: none; border: 0; background: none; padding: 0 0 1rem; display: none; opacity: 1; visibility: visible; transform: none; }
  .nav li:hover > .menu, .nav li:focus-within > .menu { display: none; }
  .nav li.is-open > .menu { display: block; }
  .nav .social-mobile { display: flex; padding-top: 1.5rem; border: 0; }
}
@media (min-width: 1181px) { .nav .social-mobile { display: none; } }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; color: var(--white); background: var(--ink);
  min-height: min(88vh, 820px); display: grid; align-items: end; overflow: hidden; isolation: isolate;
}
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(22,21,19,.1) 30%, rgba(22,21,19,.85) 82%, var(--ink)),
              linear-gradient(90deg, rgba(22,21,19,.6), transparent 60%);
}
.hero-inner { padding-block: 8rem 3.5rem; }
.hero .label { color: #efe9dd; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.hero h1 { max-width: 12ch; margin-block: 1rem .35em; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero p.lede { font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 46ch; color: #e8e2d6; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-credit { position: absolute; right: var(--gutter); bottom: 1.25rem; font: 500 .7rem/1 var(--font-mono); letter-spacing: .1em; color: var(--muted-on-ink); text-transform: uppercase; }

/* Odometer-style tally */
.tally { background: var(--ink); color: var(--white); border-top: 1px solid var(--ink-3); }
.tally ul { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.tally li { padding: 1.5rem 1rem 1.6rem; border-left: 1px solid var(--ink-3); display: flex; align-items: center; gap: 1rem; }
.tally li:first-child { border-left: 0; padding-left: 0; }
.odo { display: inline-flex; gap: 2px; }
.odo b {
  font: 700 1.6rem/1 var(--font-mono); color: var(--white);
  background: linear-gradient(180deg, #0c0b0a, #2c2925 50%, #0c0b0a); padding: .35rem .3rem; border-radius: 2px; min-width: 1.4ch; text-align: center;
}
.odo b:last-child { background: linear-gradient(180deg, #f6f2ea, #fff 50%, #d9d2c4); color: var(--ink); }
.tally span { font: 600 .75rem/1.3 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-on-ink); }
@media (max-width: 760px) {
  .tally ul { grid-template-columns: 1fr 1fr; }
  .tally li { border-left: 0; padding-left: 0; border-bottom: 1px solid var(--ink-3); }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section--paper2 { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--white); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.5rem; }
.section-head h2 { margin: .6rem 0 0; }
.section-head p { max-width: 44ch; margin: 0; color: var(--muted); }
.section--ink .section-head p { color: var(--muted-on-ink); }

/* Filter chips */
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 2rem; }
.chip {
  font: 600 .78rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
  padding: .65rem .9rem; border-radius: 999px; border: 1.5px solid var(--line);
  background: transparent; color: var(--ink); cursor: pointer;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--yellow); }
.chip sup { color: var(--muted); margin-left: .2em; }

/* ---------- Vehicle cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.card {
  position: relative; background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 22px 40px -16px rgba(30,22,10,.5); color: var(--ink); }
.card-photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-3); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; filter: saturate(.92); }
.card:hover .card-photo img { transform: scale(1.05); filter: none; }
.card-body { padding: 1.4rem 1.25rem 1.2rem; display: flex; flex-direction: column; gap: .2rem; flex: 1; border-top: 4px solid var(--card-paint, var(--red)); }
.card-make { font: 600 .72rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.card-title { font: 800 1.45rem/1.05 var(--font-display); font-stretch: 75%; text-transform: uppercase; margin: .15rem 0 0; }
.card-note { font-size: .95rem; color: var(--muted); margin: .35rem 0 0; font-style: italic; }
.card-go { margin-top: auto; padding-top: 1rem; font: 700 .78rem/1 var(--font-display); font-stretch: 85%; letter-spacing: .1em; text-transform: uppercase; }
.card-go::after { content: " →"; transition: margin .2s; }
.card:hover .card-go { color: var(--red); }

/* Race number: the year, painted on like a door roundel */
.racenum {
  position: absolute; top: .9rem; left: .9rem; width: 58px; height: 58px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--ink); display: grid; place-items: center;
  font: 800 1.35rem/1 var(--font-display); font-stretch: 75%; color: var(--ink);
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.card[hidden] { display: none; }

/* ---------- Story ---------- */
.story { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.story-text h2 + p, .prose .label + p { font-size: 1.3rem; line-height: 1.6; }
.story-aside { position: sticky; top: 100px; display: grid; gap: 1.5rem; }
.photo-print { background: var(--white); padding: .7rem .7rem 0; box-shadow: var(--shadow); transform: rotate(1.2deg); }
.photo-print figcaption { font: 500 .8rem/1.4 var(--font-mono); color: var(--muted); padding: .7rem .2rem .9rem; }
.pullquote {
  margin: 0; padding: 1.5rem 0 0; border-top: 3px solid var(--ink);
  font: 800 clamp(1.6rem, 3vw, 2.2rem)/1.05 var(--font-display); font-stretch: 75%; text-transform: uppercase;
}
.pullquote cite { display: block; margin-top: .8rem; font: 500 .8rem/1 var(--font-mono); letter-spacing: .1em; color: var(--muted); font-style: normal; }
.signoff { font: italic 400 1.4rem/1.2 var(--font-body); margin-top: 1.5rem; }
.timeline { list-style: none; margin: 2.5rem 0 0; padding: 0; border-left: 2px dashed var(--line); }
.timeline li { position: relative; padding: 0 0 1.2rem 1.5rem; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 3px solid var(--red); }
.timeline b { font: 700 .78rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; display: block; color: var(--muted); }
@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; }
  .story-aside { position: static; }
}

/* ---------- Video ---------- */
.video {
  position: relative; display: block; aspect-ratio: 16 / 9; width: 100%; border: 0; padding: 0;
  background: #000 center / 100% auto no-repeat; /* hqdefault is 4:3 letterboxed: this crops the bars */ cursor: pointer; border-radius: var(--radius); overflow: hidden;
}
.video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.6)); transition: background .2s; }
.video:hover::after { background: rgba(0,0,0,.15); }
.video .play {
  position: absolute; z-index: 1; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px;
  border-radius: 50%; background: var(--yellow); display: grid; place-items: center; transition: transform .2s;
}
.video:hover .play { transform: scale(1.1); }
.video .play::before { content: ""; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent var(--ink); margin-left: 5px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }
.video-title { position: absolute; z-index: 1; left: 1rem; bottom: .9rem; right: 1rem; color: var(--white); text-align: left; font: 700 1rem/1.1 var(--font-display); font-stretch: 85%; text-transform: uppercase; letter-spacing: .04em; }
.video--sm .play { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
.video--sm .play::before { border-width: 9px 0 9px 15px; }
.videos { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.5rem; align-items: start; }
.videos-side { display: grid; gap: 1rem; }
.videos-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1rem; }
@media (max-width: 900px) { .videos { grid-template-columns: 1fr; } .videos-row { grid-template-columns: 1fr 1fr; } }

/* ---------- Bulletin board (news / honours) ---------- */
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.note {
  background: var(--white); padding: 1.75rem 1.5rem 1.5rem; box-shadow: var(--shadow); position: relative;
  border-radius: 2px; text-decoration: none; color: var(--ink); display: block;
}
.note:nth-child(1) { transform: rotate(-.8deg); } .note:nth-child(2) { transform: rotate(.6deg); } .note:nth-child(3) { transform: rotate(-.4deg); }
.note::before { content: ""; position: absolute; top: -10px; left: 50%; width: 90px; height: 22px; margin-left: -45px; background: rgba(242,217,22,.75); transform: rotate(-2deg); }
.note h3 { font-size: 1.6rem; margin: .7rem 0 .4rem; }
.note p { font-size: 1rem; color: var(--muted); margin: 0; }
.note:hover { color: var(--ink); } .note:hover h3 { color: var(--red); }
@media (max-width: 860px) { .board { grid-template-columns: 1fr; } }

/* ---------- Full-bleed photo band ---------- */
.band { position: relative; color: var(--white); background: var(--ink); overflow: hidden; isolation: isolate; }
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .55; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--ink) 15%, transparent 75%); }
.band .wrap { padding-block: clamp(5rem, 12vw, 9rem); }
.band h2 { max-width: 14ch; }
.band p { max-width: 42ch; color: #e3ddd1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-on-ink); font-size: 1rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; padding-block: 4rem 3rem; }
.site-footer h4 { color: var(--white); font-size: .95rem; font-stretch: 85%; letter-spacing: .08em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer a { color: var(--muted-on-ink); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer .brand { margin-bottom: 1rem; }
.site-footer .fine { border-top: 1px solid var(--ink-3); padding-block: 1.25rem 2rem; font: 500 .72rem/1.6 var(--font-mono); letter-spacing: .04em; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .site-footer .cols > :first-child { grid-column: 1 / -1; } }

/* ==========================================================================
   Vehicle pages
   ========================================================================== */
.v-hero { position: relative; background: var(--ink); color: var(--white); overflow: hidden; isolation: isolate; }
.v-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.v-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(22,21,19,.05) 20%, rgba(22,21,19,.9) 88%); }
.v-hero .wrap { min-height: min(70vh, 640px); display: flex; flex-direction: column; justify-content: flex-end; padding-block: 6rem 2.5rem; }
.v-hero h1 { margin: .8rem 0 .4em; max-width: 16ch; }
.v-hero--compact .wrap { min-height: 340px; }
.crumbs { font: 600 .75rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: #efe9dd; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.crumbs a { color: #efe9dd; text-decoration: none; } .crumbs a:hover { color: var(--yellow); }
.crumbs span { margin: 0 .5em; opacity: .5; }

.paint-chip { display: inline-flex; align-items: center; gap: .7rem; font: 600 .78rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: #e8e2d6; }
.paint-chip i { width: 34px; height: 22px; border-radius: 3px; background: var(--paint); box-shadow: inset 0 -6px 10px rgba(0,0,0,.2), inset 0 4px 6px rgba(255,255,255,.35), 0 0 0 2px rgba(255,255,255,.2); }

/* Tabs: Story / Photos / Video / Build */
.v-tabs { background: var(--ink-2); position: sticky; top: 72px; z-index: 40; border-bottom: 3px solid var(--paint); }
.v-tabs ul { list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; scrollbar-width: none; }
.v-tabs a {
  display: block; padding: 1.05rem 1.3rem; white-space: nowrap; text-decoration: none; color: var(--muted-on-ink);
  font: 700 .88rem/1 var(--font-display); font-stretch: 85%; letter-spacing: .08em; text-transform: uppercase;
}
.v-tabs a:hover { color: var(--white); }
.v-tabs a[aria-current="page"] { color: var(--paint-ink); background: var(--paint); }

.v-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.v-body aside { position: sticky; top: 150px; display: grid; gap: 1.5rem; }
.prose h2 { font-size: 2rem; margin-top: 2.5rem; }
.prose blockquote { margin: 2rem 0; padding: 0 0 0 1.25rem; border-left: 5px solid var(--paint); font: 700 1.6rem/1.15 var(--font-display); font-stretch: 80%; text-transform: uppercase; }
@media (max-width: 960px) { .v-body { grid-template-columns: 1fr; } .v-body aside { position: static; } }

/* Data plate: stamped aluminium spec tag */
.plate {
  position: relative; border-radius: 6px; padding: 1.6rem 1.6rem 1.3rem;
  background: linear-gradient(135deg, #e7e5e0, #c9c6bf 45%, #dedbd4 60%, #b9b5ad);
  color: #26241f; box-shadow: inset 0 1px 0 rgba(255,255,255,.8), inset 0 -2px 0 rgba(0,0,0,.12), var(--shadow);
  font-family: var(--font-mono);
}
.plate::before, .plate::after, .plate .rivets::before, .plate .rivets::after {
  content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #8d8980 70%); box-shadow: 0 1px 1px rgba(0,0,0,.35);
}
.plate::before { top: 9px; left: 9px; } .plate::after { top: 9px; right: 9px; }
.plate .rivets::before { bottom: 9px; left: 9px; } .plate .rivets::after { bottom: 9px; right: 9px; }
.plate h3 { font: 700 .78rem/1 var(--font-mono); letter-spacing: .18em; margin: 0 0 1rem; padding-bottom: .7rem; border-bottom: 1.5px solid rgba(0,0,0,.25); text-align: center; }
.plate dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; font-size: .82rem; line-height: 1.35; }
.plate dt { text-transform: uppercase; letter-spacing: .08em; color: #5d5950; font-size: .68rem; padding-top: .15rem; }
.plate dd { margin: 0; font-weight: 600; text-shadow: 0 1px 0 rgba(255,255,255,.55); }
.plate ul { list-style: none; margin: 0; padding: 0; font-size: .88rem; }
.plate ul li { padding: .5rem 0; border-bottom: 1px dashed rgba(0,0,0,.2); font-weight: 600; text-shadow: 0 1px 0 rgba(255,255,255,.55); }
.plate ul li:last-child { border-bottom: 0; }
.plate ul li::before { content: "▸ "; color: #8d8980; }
.plates { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }

/* Sibling vehicle nav */
.v-next { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--ink-3); }
.v-next a { background: var(--ink); color: var(--white); text-decoration: none; padding: 2rem var(--gutter); display: block; }
.v-next a:hover { background: var(--ink-2); color: var(--yellow); }
.v-next a:last-child { text-align: right; }
.v-next small { display: block; font: 600 .72rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-on-ink); margin-bottom: .6rem; }
.v-next b { font: 800 1.6rem/1 var(--font-display); font-stretch: 75%; text-transform: uppercase; }

/* ---------- Gallery ---------- */
.gallery { columns: 3 280px; column-gap: 1.25rem; }
.gallery figure { margin: 0 0 1.25rem; break-inside: avoid; background: var(--white); padding: .55rem .55rem 0; box-shadow: var(--shadow); }
.gallery a { display: block; overflow: hidden; cursor: zoom-in; }
.gallery img { width: 100%; transition: transform .5s; }
.gallery a:hover img { transform: scale(1.03); }
.gallery figcaption { font: 500 .8rem/1.4 var(--font-mono); color: var(--muted); padding: .6rem .15rem .7rem; }
.gallery figure:not(:has(figcaption)) { padding-bottom: .55rem; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; color: var(--white); }
.lightbox::backdrop { background: rgba(12,11,10,.94); }
.lightbox-inner { height: 100%; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 3.5rem 4.5rem 1rem; }
.lightbox img { max-height: calc(100vh - 8rem); max-width: 100%; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lightbox p { font: 500 .85rem/1.4 var(--font-mono); color: var(--muted-on-ink); margin: 1rem 0 0; text-align: center; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--white); cursor: pointer; font: 300 2.6rem/1 var(--font-display); padding: .6rem 1rem; }
.lightbox button:hover { color: var(--yellow); }
.lb-close { top: .5rem; right: .5rem; }
.lb-prev { left: .25rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .25rem; top: 50%; transform: translateY(-50%); }

/* Instagram embeds */
.embeds { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; justify-items: center; }
.embeds .instagram-media { margin: 0 !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Vehicle page additions (used across all converted vehicles) ---------- */
.v-year { display: block; font: 600 .8rem/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--paint); margin-top: 1rem; filter: brightness(1.25); }
.v-hero h1 .paint, .v-hero h1 span.paint { color: var(--paint); }
.v-hero h1 { margin-top: .5rem; }
/* Split hero: for vehicles whose photos are too small to run full-bleed */
.v-hero--split { background: radial-gradient(ellipse at 80% 40%, var(--ink-3), var(--ink) 70%); }
.v-hero--split::after { display: none; }
.v-hero--split .wrap { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: 3.5rem; }
.v-hero--split .photo-print { margin: 0; padding: .6rem; transform: rotate(1.5deg); background: var(--white); }
.v-hero--split .photo-print img { position: static; width: 100%; max-height: 420px; object-fit: cover; }
.v-hero--split h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); }
@media (max-width: 800px) { .v-hero--split .wrap { grid-template-columns: 1fr; } }

.v-tabs sup { font: 600 .65rem/1 var(--font-mono); opacity: .7; margin-left: .2em; }

.inline-photo { margin: 2rem 0; background: var(--white); padding: .55rem; box-shadow: var(--shadow); }
.inline-photo a { display: block; cursor: zoom-in; }
.inline-photo img { width: 100%; }
.prose .video { margin: 2rem 0; }
.prose .instagram-media { margin: 2rem 0 !important; }
.coming-soon { font-style: italic; color: var(--muted); border-left: 4px solid var(--paint); padding-left: 1rem; }

.thumb-strip { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.thumb-strip a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 2px; background: var(--paper-3); }
.thumb-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.thumb-strip a:hover img { transform: scale(1.06); }
.aside-links { display: flex; flex-wrap: wrap; gap: .6rem; }

.gallery-head { font-size: 1.6rem; margin: 2.5rem 0 1.25rem; padding-top: 1.5rem; border-top: 3px solid var(--ink); }
.gallery-note { max-width: 68ch; color: var(--muted); }

.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; margin-bottom: 2.5rem; }
.empty-state { text-align: center; max-width: 40ch; margin: 1rem auto 2rem; padding: 3rem 2rem; border: 2px dashed var(--line); border-radius: var(--radius); }
.empty-state .racenum { position: static; margin: 0 auto 1.25rem; }
.empty-state h3 { font-size: 1.8rem; }
.empty-state p { color: var(--muted); margin: 0; }
.build-notes { margin-bottom: 2.5rem; }
.inline-photo { width: fit-content; max-width: 100%; }
.inline-photo img { width: auto; max-height: 620px; }
.plates { align-items: start; }

/* ---------- Simple pages (contact, sponsors, services) ---------- */
.page-hero { background: var(--ink); color: var(--white); padding-block: clamp(4rem, 9vw, 6.5rem) clamp(3rem, 6vw, 4.5rem); border-bottom: 3px solid var(--red); }
.page-hero h1 { margin: 1rem 0 .3em; max-width: 18ch; }
.page-hero .lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: #e3ddd1; max-width: 52ch; margin: 0; }

.contact { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-aside { display: grid; gap: 1.5rem; }
.plate a { text-decoration-color: rgba(0,0,0,.35); }
.form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: .45rem; }
.field label { font: 600 .75rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--white);
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: .85rem 1rem; width: 100%;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--yellow); }
.form .btn { justify-self: start; cursor: pointer; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

.sponsors { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.sponsor { display: flex; flex-direction: column; background: var(--white); box-shadow: var(--shadow); border-radius: var(--radius); text-decoration: none; color: var(--ink); overflow: hidden; transition: transform .25s; border-top: 4px solid var(--yellow); }
.sponsor:hover { transform: translateY(-4px); color: var(--ink); }
.sponsor-logo { display: grid; place-items: center; height: 180px; padding: 1.5rem; background: #fff; border-bottom: 1px solid var(--paper-2); }
.sponsor-logo img { max-height: 130px; width: auto; object-fit: contain; }
.sponsor-text { padding: 1.1rem 1.25rem 1.3rem; font-size: 1rem; }
