/* Details of Cars: light, cool ground; red accent; condensed display type. */

:root {
  --ground: #eef1f5;
  --tint: #e2e7ee;
  --surface: #f8fafc;
  --ink: #12161c;
  --ink-2: #444d5a;
  --red: #d92b27;
  --red-dark: #b0201d;
  --red-ink: #bd211d;
  --dark: #1d2128;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --text: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 3vw, 40px);
  --frame: 1360px;
  --r: 18px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --d2: clamp(2.4rem, 5vw, 4.5rem);
  --d3: clamp(1.8rem, 3vw, 2.8rem);
  --d4: clamp(1.4rem, 2vw, 1.75rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
}
img, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; background: var(--ink); color: #fff; z-index: 100; }
.skip:focus { width: auto; height: auto; clip: auto; left: 12px; top: 12px; padding: 10px 16px; }

.wrap { width: 100%; max-width: calc(var(--frame) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: calc(860px + var(--gutter) * 2); }

/* Parallax targets: JS sets --py, CSS owns the rest of the transform. */
[data-speed] { transform: translate3d(0, var(--py, 0px), 0) rotate(var(--rot, 0deg)); will-change: transform; }

/* ---------- Buttons, inputs ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 26px;
  background: var(--red); color: #fff; border: 0; border-radius: 2px;
  font: 600 1.0625rem/1 var(--text); text-decoration: none; cursor: pointer;
  transition: background .2s, transform .15s var(--ease);
}
.btn:hover { background: var(--red-dark); }
.btn:active { transform: translateY(1px); }
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-ghost { background: var(--surface); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.text-link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; transition: color .2s; }
.text-link:hover { color: var(--red-ink); }

input[type="search"], .marque-filter input {
  width: 100%; height: 52px; padding: 0 18px;
  background: var(--surface); color: var(--ink); border: 0; border-radius: 2px;
  font: 500 1.0625rem/1 var(--text);
}
input::placeholder { color: #5d6674; opacity: 1; }
.search-form { display: flex; gap: 8px; max-width: 560px; }
.search-form input { flex: 1; min-width: 0; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ground); transition: background .25s; }
.site-header.is-stuck { background: var(--surface); }
.bar { display: flex; align-items: center; gap: 28px; min-height: 72px; flex-wrap: wrap; }
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font: 700 1.75rem/1 var(--display); text-transform: uppercase; letter-spacing: .01em; text-decoration: none;
}
.brand-mark { width: 26px; height: 14px; background: var(--red); transform: skewX(-24deg); }
.nav { display: flex; gap: clamp(18px, 3vw, 40px); margin-left: auto; }
.nav a { font-weight: 600; text-decoration: none; padding: 6px 0; transition: color .2s; }
.nav a:hover { color: var(--red-ink); }
.search-toggle { display: grid; place-items: center; width: 44px; height: 44px; background: transparent; border: 0; color: var(--ink); cursor: pointer; }
.search-toggle:hover { color: var(--red-ink); }
.menu-toggle { display: none; place-items: center; width: 44px; height: 44px; background: transparent; border: 0; color: var(--ink); cursor: pointer; }
.menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-bars { position: relative; }
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -7px; }
.menu-bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { top: 0; transform: rotate(-45deg); }
.header-search { padding-bottom: 18px; }
.header-search[hidden] { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 3.7fr) minmax(0, 8.3fr); align-items: center; gap: clamp(8px, 2vw, 32px); position: relative; }
.hero h1 {
  font: 700 clamp(3rem, 5.8vw, 6.4rem)/.9 var(--display);
  text-transform: uppercase; letter-spacing: -.005em;
}
.lede { margin-top: clamp(20px, 2.4vw, 36px); max-width: 30ch; font-size: 1.1875rem; line-height: 1.45; color: var(--ink); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; margin-top: clamp(20px, 2.4vw, 32px); }
.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  margin-top: clamp(12px, 2vw, 28px); position: relative;
  background: var(--surface); border-radius: var(--r); padding: clamp(18px, 2.4vw, 34px) clamp(18px, 3vw, 44px);
}
.profile { margin-top: clamp(12px, 2vw, 28px); background: var(--surface); border-radius: var(--r); padding: clamp(18px, 2.4vw, 34px) clamp(18px, 3vw, 44px); }
.profile-head { font: 600 var(--d4)/1.25 var(--display); text-transform: uppercase; color: var(--ink-2); }
.profile-head strong { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.profile-bars { list-style: none; margin: clamp(14px, 2vw, 22px) 0 0; padding: 0; display: grid; gap: 4px; }
.profile-bars a { display: grid; grid-template-columns: minmax(96px, 150px) 1fr auto; align-items: center; gap: 14px; padding: 8px 0; text-decoration: none; }
.pb-name { font-weight: 600; }
.pb-track { height: 10px; background: var(--tint); border-radius: 6px; overflow: hidden; }
.pb-fill { display: block; height: 100%; background: var(--red); border-radius: 6px; transform-origin: left; transition: transform .25s; }
.profile-bars a:hover .pb-name { color: var(--red-ink); }
.profile-bars a:hover .pb-fill { transform: scaleX(.96); }
.pb-num { font: 700 1.125rem/1 var(--display); font-variant-numeric: tabular-nums; min-width: 4ch; text-align: right; }
.profile-note { margin-top: 10px; font-size: .875rem; color: var(--ink-2); }
.stats div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stats dd { order: -1; }
.stats dd { font: 700 var(--d2)/1 var(--display); letter-spacing: -.005em; font-variant-numeric: tabular-nums; }
.stats dt { color: var(--ink-2); font-size: .9375rem; }


/* ---------- Hero: exploded view that assembles on scroll ---------- */
.hero-anatomy { height: auto; }
.anatomy-stage { position: relative; min-height: max(540px, calc(100vh - 72px)); display: flex; align-items: center; overflow: hidden; }
.anatomy-stage .hero-grid { width: 100%; }
.anatomy-art { margin-right: calc(var(--gutter) * -1); }
.js .anatomy-art { visibility: hidden; animation: dc-art-in 0s linear 1.5s forwards; }
.js .anatomy-art.is-ready { visibility: visible; animation: none; }
@keyframes dc-art-in { to { visibility: visible; } }
.scroll-hint { margin-top: 22px; color: var(--ink-2); font-size: .9375rem; transition: opacity .3s; }
.scroll-hint::after { content: ' \2193'; }
.anatomy-svg { --ink:#12161c; --red:#d92b27; width:100%; height:auto; display:block; overflow:visible; transform-origin: 52% 58%; }
.anatomy-svg .a-ink { stroke:var(--ink); stroke-width:2.2; stroke-linejoin:round; stroke-linecap:round; }
.anatomy-svg .a-open { fill:none; }
.anatomy-svg .a-seam { stroke-width:1.6; opacity:.55; }
.anatomy-svg .f-body { fill:#ffffff; }
.anatomy-svg .f-glass { fill:#cfd9e3; }
.anatomy-svg .f-metal { fill:#c9d2dc; }
.anatomy-svg .f-metal2 { fill:#aeb9c5; }
.anatomy-svg .f-light { fill:#eef2f6; }
.anatomy-svg .f-red { fill:var(--red); }
.anatomy-svg .f-tire { fill:#1d2128; }
.anatomy-svg .a-white { fill:none; stroke:#f4f6f9; stroke-width:9; }
.anatomy-svg .a-spokes line { stroke-width:5; }
.anatomy-svg .a-arm { stroke-width:5; }
.anatomy-svg .a-rim { stroke-width:3; }
.anatomy-svg .a-column { stroke-width:3.2; }
.anatomy-svg .a-hub { stroke-width:1.6; }
.anatomy-svg .a-drive { stroke:var(--ink); stroke-width:9; stroke-linecap:round; }
.anatomy-svg .a-pipe-o { fill:none; stroke:var(--ink); stroke-width:12; stroke-linecap:round; stroke-linejoin:round; }
.anatomy-svg .a-pipe-i { fill:none; stroke:#c1cad4; stroke-width:7; stroke-linecap:round; stroke-linejoin:round; }
.anatomy-svg .a-glass { fill:#cfd9e3; fill-opacity:.5; stroke:var(--ink); stroke-width:1.6; }
.anatomy-svg .a-big { font: 700 205px/1 'Barlow Condensed', 'Arial Narrow', sans-serif; fill: var(--ink); }
.anatomy-svg .a-big-f { font-size: 188px; }
.anatomy-svg .a-red { font: 700 40px/1 'Barlow Condensed', 'Arial Narrow', sans-serif; letter-spacing: .4px; fill: var(--red); stroke: #fff; stroke-width: 6; paint-order: stroke; stroke-linejoin: round; }
.anatomy-svg .a-red-lg { font-size: 54px; }
.anatomy-svg .a-shine { fill:#fff; opacity:.55; }
.anatomy-svg .a-shadow { fill:var(--ink); opacity:.1; }
.anatomy-svg .a-label text { font:600 20px/1 'Barlow', system-ui, sans-serif; fill:var(--ink); }
.anatomy-svg .a-label line { stroke:var(--ink); stroke-width:1.6; }
.anatomy-svg .a-label circle { fill:var(--red); }
.anatomy-svg .f-shade { fill:#dfe5ec; }
.anatomy-svg .f-light-band { fill:#f4f7fa; }
.anatomy-svg .f-chrome { fill:#f1f4f7; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 150px); }
.section-flush { padding-top: 0; }
.section-tint { background: var(--tint); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 56px); }
.section-head.split > div:first-child { flex: 1 1 360px; }
h2 { font: 700 var(--d2)/.95 var(--display); text-transform: uppercase; letter-spacing: -.005em; }
.section-head p { margin-top: 14px; max-width: 44ch; color: var(--ink-2); font-size: 1.0625rem; }
.section-head:not(.split) p { margin-top: 0; max-width: 40ch; }

/* ---------- Collections bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 18vw, 262px); gap: 14px; }
.tile { position: relative; display: flex; align-items: flex-end; overflow: hidden; border-radius: var(--r); background: var(--tint); color: #fff; text-decoration: none; isolation: isolate; }
.tile-exotic-cars { grid-column: 1 / 6; grid-row: 1 / 3; }
.tile-concept-cars { grid-column: 6 / 13; grid-row: 1; }
.tile-luxury-cars { grid-column: 6 / 13; grid-row: 2; }
.tile-muscle-cars { grid-column: 1 / 5; grid-row: 3; }
.tile-classic-cars { grid-column: 5 / 9; grid-row: 3; }
.tile-all { grid-column: 9 / 13; grid-row: 3; background: var(--red); justify-content: space-between; align-items: flex-end; }
.tile-media { position: absolute; inset: -9% 0; z-index: -2; }
.tile-media picture, .tile-media img { width: 100%; height: 100%; }
.tile-media img { object-fit: cover; transition: transform .9s var(--ease); }
.tile:hover .tile-media img { transform: scale(1.05); }
/* neutral scrim under white text on a photo: the one gradient allowed */
.tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(12, 15, 20, .72), rgba(12, 15, 20, 0) 62%); /* taste-skill-ignore */ }
.tile-all::after { display: none; }
.tile-body { display: flex; flex-direction: column; gap: 4px; padding: clamp(16px, 2vw, 28px); }
.tile-name { font: 700 var(--d4)/1 var(--display); text-transform: uppercase; }
.tile-exotic-cars .tile-name { font-size: var(--d3); }
.tile-meta { font-size: .9375rem; opacity: .95; }
.tile-arrow { display: grid; place-items: center; width: 48px; height: 48px; margin: clamp(16px, 2vw, 28px); background: #fff; color: var(--red-ink); border-radius: 50%; transition: transform .3s var(--ease); flex: none; }
.tile-all:hover .tile-arrow { transform: translateX(6px); }

/* ---------- Marques ---------- */
.marque-filter { flex: 1 1 340px; max-width: 520px; }
.marque-empty { margin-top: 12px; color: var(--ink-2); }
.marques { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(230px, 22vw, 275px), 1fr)); gap: 10px; }
.marques li[hidden] { display: none; }
.marques a {
  display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  height: 72px; padding: 0 18px; background: var(--surface); border-radius: 10px; text-decoration: none;
  transition: background .2s, color .2s, transform .25s var(--ease);
}
.m-logo { width: 54px; height: 34px; background: currentColor; -webkit-mask: var(--logo) left center / contain no-repeat; mask: var(--logo) left center / contain no-repeat; }
.m-lum { background: none; -webkit-mask: none; mask: none; overflow: hidden; }
.m-lum img { width: 100%; height: 100%; object-fit: contain; object-position: left center; filter: grayscale(1) contrast(1000%); mix-blend-mode: multiply; }
.marques a:hover .m-lum img { filter: grayscale(1) contrast(1000%) invert(1); mix-blend-mode: screen; }
.m-mono { width: 34px; display: grid; place-items: center; background: var(--tint); color: var(--ink-2); -webkit-mask: none; mask: none; border-radius: 50%; font: 700 1.2rem/1 var(--display); text-transform: uppercase; transition: background .2s, color .2s; }
.m-name { font: 600 var(--d4)/1.05 var(--display); text-transform: uppercase; overflow-wrap: normal; word-break: normal; hyphens: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.is-long .m-name { font-size: 1.1rem; }
.m-count { color: var(--ink-2); font-size: .9375rem; font-variant-numeric: tabular-nums; }
.marques a:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.marques a:hover .m-count { color: #cdd3dc; }
.marques a:hover .m-mono { background: #2f3640; color: #fff; }
.js .marques:not(.is-open) [data-extra] { display: none; }
.marques-more { margin-top: 24px; }

/* ---------- Guides ---------- */
.guides { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px) 24px; align-items: start; }
.guides-intro { grid-column: 1 / 5; position: sticky; top: 100px; }
.guides-intro p { margin-top: 16px; max-width: 28ch; color: var(--ink-2); font-size: 1.0625rem; }
.guides-body { grid-column: 5 / 13; display: grid; gap: 16px; }
.guide { display: grid; gap: 8px; text-decoration: none; color: inherit; }
.guide-lead { grid-template-columns: 1fr; gap: 12px; }
.guide-media { display: block; overflow: hidden; border-radius: var(--r); aspect-ratio: 16 / 9; background: var(--tint); margin-bottom: 8px; }
.guide-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
a.guide:hover .guide-media img { transform: scale(1.04); }
.guide-title { font: 700 var(--d3)/1 var(--display); text-transform: uppercase; }
.guide-dek { color: var(--ink-2); max-width: 52ch; }
.soon { justify-self: start; margin-top: 2px; color: var(--red-ink); font-size: .9375rem; font-weight: 600; }
.guide-list { display: grid; gap: 12px; }
.guide-list .guide { padding: clamp(18px, 2.2vw, 28px); background: var(--surface); border-radius: var(--r); }
.guide-list .guide-title { font-size: var(--d4); font-weight: 600; }
a.guide:hover .guide-title { color: var(--red-ink); }

/* ---------- Photo band ---------- */
.band { position: relative; overflow: hidden; height: clamp(320px, 56vw, 780px); background: var(--tint); }
.band-media { position: absolute; inset: -6% 0; }
.band-media picture, .band-media img { width: 100%; height: 100%; }
.band-media img { object-fit: cover; object-position: 50% 82%; }
.band-wrap { position: absolute; left: 0; right: 0; bottom: clamp(14px, 2vw, 28px); }
.band-caption { display: inline-block; max-width: 100%; padding: 10px 16px; background: rgba(18, 22, 28, .78); color: #fff; font-size: .9375rem; }
.band-caption a { color: #fff; font-weight: 600; text-underline-offset: 4px; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(220px, 22vw, 290px), 1fr)); gap: 34px 18px; }
.cards-4 { grid-template-columns: repeat(auto-fill, minmax(clamp(220px, 22vw, 290px), 1fr)); }
.card { display: grid; gap: 6px; text-decoration: none; align-content: start; }
.card-media { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 14px; background: var(--tint); margin-bottom: 6px; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-media.is-empty { display: grid; place-items: center; padding: 16px; }
.card-fallback { font: 700 var(--d4)/1 var(--display); text-transform: uppercase; text-align: center; color: #5a6472; }
.card-label { color: var(--red-ink); font-weight: 600; font-size: .9375rem; }
.card-title { font-weight: 600; font-size: 1.0625rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.card:hover .card-title { color: var(--red-ink); }

/* ---------- Closer and footer ---------- */
.closer { background: var(--dark); color: #fff; padding-block: clamp(72px, 9vw, 130px) clamp(32px, 4vw, 56px); }
.closer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px clamp(32px, 6vw, 96px); align-items: end; }
.closer h2 { color: #fff; }
.closer .search-form { max-width: none; }
.closer p { margin-top: 16px; max-width: 40ch; color: #c6ccd6; font-size: 1.0625rem; }
.site-footer { background: var(--dark); color: #fff; padding-bottom: 28px; }
.site-footer .wrap { container-type: inline-size; }
.foot-mark { font: 700 clamp(2rem, 13cqw, 15rem)/.82 var(--display); text-transform: uppercase; color: #2a3039; white-space: nowrap; overflow: hidden; margin-bottom: clamp(28px, 4vw, 56px); user-select: none; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.foot-col .foot-title { margin: 0 0 6px; font: 600 var(--d4)/1 var(--display); text-transform: uppercase; color: #fff; }
.foot-col a { color: #c6ccd6; text-decoration: none; }
.foot-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.foot-lead { gap: 18px; max-width: 460px; }
.foot-contact { display: flex; flex-direction: column; gap: 4px; font-style: normal; color: #c6ccd6; }
.foot-contact strong { color: #fff; font-weight: 600; }
.foot-contact a { color: #c6ccd6; text-decoration: none; }
.foot-contact a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.foot-lead p { color: #c6ccd6; }
.copy { margin-top: clamp(32px, 4vw, 56px); color: #98a1ae; font-size: .9375rem; }

/* ---------- Inner pages ---------- */
.page-head { padding-block: clamp(40px, 6vw, 88px) clamp(28px, 4vw, 48px); }
.page-head h1 { font: 700 var(--d2)/.95 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.page-sub { margin-top: 14px; color: var(--ink-2); font-size: 1.0625rem; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.page-desc { margin-top: 18px; max-width: 62ch; color: var(--ink-2); }
.crumbs { margin-bottom: 18px; font-size: .9375rem; color: var(--ink-2); }
.crumbs a { text-underline-offset: 3px; }
.chip { padding: 3px 12px; background: var(--tint); border-radius: 99px; font-size: .9375rem; font-weight: 600; text-decoration: none; transition: background .2s, color .2s; }
.chip:hover { background: var(--ink); color: #fff; }
.entry-hero { margin-bottom: clamp(28px, 4vw, 48px); }
.entry-hero img { width: 100%; border-radius: var(--r); }
.entry-content { padding-bottom: clamp(56px, 8vw, 110px); font-size: 1.1875rem; line-height: 1.7; overflow-wrap: anywhere; }
.entry-content > * + * { margin-top: 1.2em; }

/* Partner links (widget areas "After the article" and "Above the footer", see dc_partners()). */
.partners { margin-bottom: clamp(40px, 6vw, 72px); padding: 18px 22px; background: var(--tint); border-radius: 14px; font-size: .9375rem; line-height: 1.65; color: var(--ink-2); overflow-wrap: anywhere; }
.partners-above-footer { margin-top: clamp(40px, 6vw, 72px); }
.entry-content:has(+ .partners:not(.is-empty)) { padding-bottom: 32px; }
.partners a { color: var(--ink); text-underline-offset: 3px; }
.partners a:hover { color: var(--red-ink); }
.partners-label, .partners-title { margin: 0 0 6px; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.partners .widget, .partners .partner-widget + .partner-widget { margin: 0; }
.partners .partner-widget + .partner-widget:not(:empty) { margin-top: 8px; }
.partners.is-empty { margin: 0; padding: 0; background: none; }
.entry-content img { border-radius: 10px; margin-inline: auto; }
.entry-content img.is-broken { display: none; }
.entry-content a { color: var(--red-ink); text-underline-offset: 3px; }
.entry-content h2, .entry-content h3 { font-size: var(--d3); margin-top: 1.6em; }
.entry-content figure { max-width: 100%; }
.entry-content h2 { margin-top: 1.9em; }
.entry-content h3 { font: 600 var(--d4)/1.1 var(--display); text-transform: uppercase; margin-top: 1.5em; }
.entry-content ul { list-style: disc; padding-left: 1.3em; }
.entry-content ol { list-style: decimal; padding-left: 1.4em; }
.entry-content li { margin-top: .4em; }
.entry-content iframe { max-width: 100%; }
.entry-hero figcaption, .entry-figure figcaption { margin-top: 10px; color: var(--ink-2); font-size: .9375rem; line-height: 1.45; }
.entry-hero figcaption a, .entry-figure figcaption a { color: var(--ink-2); }
.entry-figure { margin: 2em 0; }
.entry-figure img { width: 100%; border-radius: var(--r); }
.entry-content table.spec-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--r); overflow: hidden; font-size: 1.0625rem; line-height: 1.4; }
.spec-table caption { caption-side: top; text-align: left; padding: 0 0 10px; font: 600 var(--d4)/1.1 var(--display); text-transform: uppercase; color: var(--ink); }
.spec-table th, .spec-table td { padding: 12px 18px; text-align: left; vertical-align: top; }
.spec-table thead th { background: var(--ink); color: #fff; font-weight: 600; }
.spec-table tbody tr:nth-child(even) { background: var(--tint); }
.spec-table tbody th { width: 34%; font-weight: 600; }
.table-note { color: var(--ink-2); font-size: .9375rem; }
.video-embed { aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--tint); }
.video-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.entry-content .sources { font-size: 1rem; }
.empty { padding-block: 32px 80px; }
.empty h2 { font-size: var(--d3); margin-bottom: 10px; }
.empty p { margin-bottom: 20px; color: var(--ink-2); }
.navigation.pagination { margin-top: clamp(40px, 5vw, 72px); }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 16px; background: var(--surface); border-radius: 2px; text-decoration: none; font-weight: 600; transition: background .2s, color .2s; }
a.page-numbers:hover { background: var(--ink); color: #fff; }
.page-numbers.current { background: var(--red); color: #fff; }
.page-numbers.dots { background: transparent; }

/* ---------- Motion ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease) var(--d, 0ms), transform .8s var(--ease) var(--d, 0ms); animation: dc-show 0s linear 3s forwards; }
.js [data-reveal].in { opacity: 1; transform: none; animation: none; }
@keyframes dc-show { to { opacity: 1; transform: none; } }

/* ---------- Hero 3D: the drawing comes alive (inc/hero-3d.php, assets/js/hero3d.js) ---------- */
/* The poster is the same first frame as the canvas, so the swap is invisible; it stays without WebGL or JS. */
.hero3d { position: relative; aspect-ratio: 16 / 10; margin-right: calc(var(--gutter) * -1); }
.hero3d-poster, .hero3d-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero3d-poster { object-fit: contain; transition: opacity .4s; }
.hero3d-canvas { opacity: 0; transition: opacity .4s; }
.hero3d.is-live .hero3d-canvas { opacity: 1; }
.hero3d.is-live .hero3d-poster { opacity: 0; }
.hero3d-credit { position: absolute; right: var(--gutter); bottom: 0; z-index: 1; margin: 0; font-size: .6875rem; line-height: 1.4; color: var(--ink-2); }
.hero3d-credit a { color: inherit; }
.hero3d-credit .hero3d-marque { color: var(--red-ink); font-weight: 600; }

.hero-copy > * { animation: dc-rise .9s var(--ease) both; }
.hero-copy .lede { animation-delay: .1s; }
.hero-copy .hero-actions { animation-delay: .2s; }
@keyframes dc-rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes dc-fade { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-speed] { transform: rotate(var(--rot, 0deg)); will-change: auto; }
  .anatomy-stage { position: static; height: auto; min-height: 0; max-height: none; padding-block: clamp(24px, 4vw, 48px); }
  .anatomy-svg { transform: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
      .hero h1 { font-size: clamp(3.6rem, 17vw, 7rem); }
    .bento { grid-auto-rows: clamp(150px, 30vw, 240px); }
  .tile-exotic-cars { grid-column: 1 / 13; grid-row: auto / span 2; }
  .tile-concept-cars { grid-column: 1 / 7; grid-row: auto / span 2; }
  .tile-luxury-cars { grid-column: 7 / 13; grid-row: auto / span 2; }
  .tile-muscle-cars { grid-column: 1 / 7; grid-row: auto; }
  .tile-classic-cars { grid-column: 7 / 13; grid-row: auto; }
  .tile-all { grid-column: 1 / 13; grid-row: auto; }
  .closer-grid { grid-template-columns: 1fr; }
  .guides-intro { grid-column: 1 / -1; position: static; }
  .guides-body { grid-column: 1 / -1; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-lead { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .bar { gap: 4px 16px; padding-block: 8px 0; }
  .brand { font-size: 1.55rem; }
  .bar { flex-wrap: nowrap; padding-block: 8px; }
  .menu-toggle { display: grid; }
  .search-toggle { margin-left: auto; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; margin: 0; padding: 4px var(--gutter) 16px; background: var(--surface); border-top: 1px solid var(--tint); box-shadow: 0 12px 24px rgba(0,0,0,.08); }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; font-size: 1.125rem; border-bottom: 1px solid var(--tint); }
  .nav a:last-child { border-bottom: 0; }
  .no-js .nav { display: flex; position: static; flex-direction: row; flex-wrap: wrap; gap: 4px 20px; box-shadow: none; padding: 0 0 8px; background: none; border: 0; }
  .no-js .nav a { padding: 6px 0; font-size: 1rem; border: 0; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .profile-bars a { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .pb-track { grid-column: 1 / -1; grid-row: 2; }
  .stats { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, 1fr); gap: 12px; padding: 16px; }
  .stats dd { font-size: 1.75rem; white-space: nowrap; }
  .stats dt { font-size: .9375rem; line-height: 1.25; }
  .bento { grid-auto-rows: 200px; gap: 10px; }
  .tile-exotic-cars, .tile-concept-cars, .tile-luxury-cars, .tile-muscle-cars, .tile-classic-cars, .tile-all { grid-column: 1 / -1; grid-row: auto; }
  .tile-exotic-cars { grid-row: auto / span 2; }
  .tile-all { min-height: 150px; }
  .marques { grid-template-columns: 1fr 1fr; }
  .marques a { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'logo logo' 'name count'; align-items: end; row-gap: 12px; height: 112px; padding: 14px 16px; }
  .m-logo { grid-area: logo; align-self: start; width: 64px; height: 32px; }
  .m-mono { width: 32px; }
  .m-name { grid-area: name; font-size: 1.1rem; }
  .is-long .m-name { font-size: 1rem; }
  .m-count { grid-area: count; }
  .spec-table th, .spec-table td { padding: 10px 12px; }
  .spec-table tbody th { width: 40%; }
  .search-form { flex-direction: column; }
  .search-form input { flex: none; }
  .search-form .btn { justify-content: center; }
  .cards { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .card-title { font-size: 1rem; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* ---------- Guides: long-form article components ---------- */
.entry-content .guide-dek { font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.45; color: var(--ink); font-weight: 500; }
.entry-content code { font: 600 .92em/1 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--tint); padding: .12em .4em; border-radius: 5px; letter-spacing: .02em; }
.callout { background: var(--surface); border-left: 5px solid var(--red); border-radius: 0 var(--r) var(--r) 0; padding: 18px 22px; }
.callout p { margin: 0; font-size: 1.0625rem; line-height: 1.55; }
.callout .callout-title { font: 700 var(--d4)/1 var(--display); text-transform: uppercase; margin-bottom: 8px; }
.pullquote { margin: 2em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--red); }
.pullquote p { font: 600 clamp(1.5rem, 3vw, 2.1rem)/1.2 var(--display); text-transform: none; color: var(--ink); }
.pullquote cite { display: block; margin-top: 10px; font-style: normal; font-size: .9375rem; color: var(--ink-2); }
.vin-diagram { --g-wmi: var(--red); --g-vds: var(--ink); --g-chk: #e8a317; --g-yr: #2f6f8f; --g-plant: #5b6573; --g-ser: #8f98a6; background: var(--surface); border-radius: var(--r); padding: clamp(14px, 3vw, 28px); }
.vin-strip { display: grid; grid-template-columns: repeat(17, minmax(0, 1fr)); gap: clamp(2px, .5vw, 6px); }
.vc { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.vc b { width: 100%; text-align: center; padding: clamp(6px, 1.6vw, 14px) 0; border-radius: 6px; font: 700 clamp(.8rem, 3.2vw, 1.9rem)/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: #fff; }
.vc i { font: 600 clamp(.55rem, 1.8vw, .8rem)/1 var(--display); color: var(--ink-2); font-style: normal; }
.vc-wmi b { background: var(--g-wmi); } .vc-vds b { background: var(--g-vds); } .vc-chk b { background: var(--g-chk); color: #1b1b1b; }
.vc-yr b { background: var(--g-yr); } .vc-plant b { background: var(--g-plant); } .vc-ser b { background: var(--g-ser); color: #11151b; }
.vin-legend { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 24px; }
.vin-legend li { display: flex; gap: 12px; margin: 0; align-items: flex-start; }
.vin-legend strong { display: block; font-size: 1rem; line-height: 1.3; }
.vin-legend span:not(.sw) { display: block; font-size: .9375rem; line-height: 1.4; color: var(--ink-2); }
.sw { flex: none; width: 14px; height: 14px; margin-top: 4px; border-radius: 4px; }
.sw-wmi { background: var(--g-wmi); } .sw-vds { background: var(--g-vds); } .sw-chk { background: var(--g-chk); }
.sw-yr { background: var(--g-yr); } .sw-plant { background: var(--g-plant); } .sw-ser { background: var(--g-ser); }
.year-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.yc { display: grid; justify-items: center; gap: 2px; padding: 10px 6px; background: var(--surface); border-radius: 10px; }
.yc b { font: 700 1.6rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--red-ink); }
.yc span { font-size: .875rem; line-height: 1.2; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.entry-content ol.steps { list-style: none; padding: 0; counter-reset: st; display: grid; gap: 12px; }
.entry-content ol.steps li { counter-increment: st; margin: 0; padding: 14px 18px 14px 62px; position: relative; background: var(--surface); border-radius: var(--r); }
.entry-content ol.steps li::before { content: counter(st); position: absolute; left: 16px; top: 12px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; font: 700 1.1rem/1 var(--display); }
.table-scroll { overflow-x: auto; }
.calc-table { min-width: 640px; font-size: .9375rem; text-align: center; }
.calc-table th, .calc-table td { padding: 8px 6px; text-align: center; font-variant-numeric: tabular-nums; }
.calc-table tbody th, .calc-table thead th:first-child { text-align: left; padding-left: 12px; }
.vin-calc { background: var(--surface); border-radius: var(--r); padding: 20px 22px; }
.vin-calc label { display: block; font-weight: 600; margin-bottom: 8px; }
.vin-calc-row { display: flex; gap: 10px; flex-wrap: wrap; }
.vin-calc input { flex: 1 1 240px; min-width: 0; font: 600 1.1rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .05em; padding: 14px 14px; border: 2px solid var(--tint); border-radius: 10px; background: #fff; color: var(--ink); text-transform: uppercase; }
.vin-calc button { padding: 14px 24px; border: 0; border-radius: 10px; background: var(--red); color: #fff; font: 700 1rem/1 var(--display); text-transform: uppercase; letter-spacing: .04em; cursor: pointer; }
.vin-calc-out { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.vin-calc-out li { margin: 0; padding-left: 22px; position: relative; font-size: 1rem; line-height: 1.45; }
.vin-calc-out li::before { content: "•"; position: absolute; left: 6px; color: var(--ink-2); }
.vin-calc-out li.good::before { content: "✓"; left: 2px; color: #1c7c3b; font-weight: 700; }
.vin-calc-out li.bad::before { content: "!"; left: 4px; color: var(--red-ink); font-weight: 700; }
.entry-content ol.timeline { list-style: none; padding: 0 0 0 22px; border-left: 3px solid var(--tint); display: grid; gap: 20px; }
.entry-content ol.timeline li { margin: 0; position: relative; }
.entry-content ol.timeline li::before { content: ""; position: absolute; left: -30px; top: .45em; width: 13px; height: 13px; border-radius: 50%; background: var(--red); }
.entry-content ol.timeline strong { display: block; font: 700 var(--d4)/1.1 var(--display); text-transform: uppercase; }
.entry-content ol.timeline span { display: block; font-size: 1.0625rem; line-height: 1.5; }
.fig-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: start; }
.fig-row .entry-figure { margin: 0; }
@media (max-width: 640px) { .fig-row { grid-template-columns: 1fr; } .vin-legend { grid-template-columns: 1fr; } }

/* ---------- Articles list ---------- */
.articles-sub { max-width: 46ch; font-size: 1.1875rem; color: var(--ink-2); }
.article-list { list-style: none; padding: 0; margin: 0 0 clamp(40px, 6vw, 80px); display: grid; gap: clamp(20px, 3vw, 36px); }
.article-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(18px, 3vw, 40px); align-items: center; text-decoration: none; background: var(--surface); border-radius: var(--r); padding: clamp(12px, 1.6vw, 20px); transition: background .2s; }
.article-row:hover { background: #fff; }
.article-row .card-media { aspect-ratio: 3 / 2; border-radius: calc(var(--r) - 4px); overflow: hidden; background: var(--tint); }
.article-row .card-media img { width: 100%; height: 100%; object-fit: cover; }
.article-text { display: grid; gap: 10px; }
.article-title { font: 700 var(--d3)/1 var(--display); text-transform: uppercase; color: var(--ink); }
.article-dek { font-size: 1.0625rem; line-height: 1.5; color: var(--ink-2); }
.article-more { font: 700 1rem/1 var(--display); text-transform: uppercase; letter-spacing: .04em; color: var(--red-ink); }
.article-row:hover .article-more { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 640px) { .article-row { grid-template-columns: 1fr; } }

/* ---------- Guides: bar charts and calculator extras ---------- */
.barchart { --c-sb: #2f6f8f; --c-bb: var(--red); --c-hm: var(--ink); display: grid; gap: 8px; background: var(--surface); border-radius: var(--r); padding: clamp(14px, 2.4vw, 24px); }
.bc-row { display: grid; grid-template-columns: minmax(120px, 230px) 1fr 76px; align-items: center; gap: 12px; font-size: .9375rem; line-height: 1.25; }
.bc-label { font-weight: 600; }
.bc-track { height: 14px; background: var(--tint); border-radius: 7px; overflow: hidden; }
.bc-fill { display: block; height: 100%; border-radius: 7px; background: var(--c-sb); }
.bc-fill.bb { background: var(--c-bb); } .bc-fill.hm { background: var(--c-hm); } .bc-fill.sb { background: var(--c-sb); }
.bc-fill.net { opacity: .45; }
.bc-val { text-align: right; font: 700 1rem/1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 640px) { .bc-row { grid-template-columns: 1fr auto; gap: 4px 10px; } .bc-track { grid-column: 1 / -1; grid-row: 2; } .bc-val { grid-column: 2; grid-row: 1; } }
.vin-calc select { flex: 1 1 200px; min-width: 0; font: 600 1rem/1 var(--sans, inherit); padding: 14px; border: 2px solid var(--tint); border-radius: 10px; background: #fff; color: var(--ink); }
.vin-calc input[type=number] { flex: 0 1 120px; text-transform: none; letter-spacing: 0; }
.calc-result { margin-top: 14px; font-size: 1.25rem; }

/* ---------- Guides: concept vs production compare ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 1.4em 0; }
.cmp-col { border-radius: var(--r); padding: 18px 20px; background: var(--surface); }
.cmp-b { background: var(--dark); color: #fff; }
.cmp-b li { color: #e6eaf0; }
.cmp-title { font: 700 var(--d4)/1 var(--display); text-transform: uppercase; margin-bottom: 10px; }
.cmp-b .cmp-title { color: #fff; }
.entry-content .cmp-col ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.entry-content .cmp-col li { margin: 0; padding-left: 18px; position: relative; font-size: 1rem; line-height: 1.45; }
.entry-content .cmp-col li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }
.entry-content ul.steps-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.entry-content ul.steps-list li { margin: 0; padding: 12px 16px; background: var(--surface); border-left: 4px solid var(--red); border-radius: 0 var(--r) var(--r) 0; }

/* ---------- Collection archives ---------- */
.page-desc { margin-top: 12px; max-width: 46ch; font-size: 1.1875rem; line-height: 1.45; color: var(--ink-2); }
.collection-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.collection-switch .chip { text-decoration: none; }
.collection-switch .chip.is-current { background: var(--ink); color: #fff; }

/* ---------- Guides: tick-off checklist ---------- */
.chk { background: var(--surface); border-radius: var(--r); padding: clamp(14px, 2.4vw, 24px); }
.chk-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; font-size: 1rem; }
.chk-bar { flex: 1; height: 10px; background: var(--tint); border-radius: 6px; overflow: hidden; }
.chk-bar span { display: block; height: 100%; width: 0; background: var(--red); transition: width .2s; }
.chk-head button { padding: 8px 14px; border: 2px solid var(--tint); border-radius: 8px; background: #fff; color: var(--ink); font-weight: 600; cursor: pointer; }
.chk-group { border: 0; padding: 0; margin: 18px 0 0; }
.chk-group legend { font: 700 var(--d4)/1 var(--display); text-transform: uppercase; margin-bottom: 8px; padding: 0; }
.chk-item { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; font-size: 1.0625rem; line-height: 1.4; cursor: pointer; }
.chk-item input { flex: none; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--red); }
.chk-item input:checked + span { color: var(--ink-2); text-decoration: line-through; }

/* ---------- Guides: face gallery and car-map diagram ---------- */
.face-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.face { margin: 0; background: var(--surface); border-radius: var(--r); overflow: hidden; }
.face img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 0; }
.face figcaption { display: grid; gap: 6px; padding: 14px 16px 16px; }
.face figcaption strong { font: 700 var(--d4)/1 var(--display); text-transform: uppercase; }
.face figcaption span { font-size: 1rem; line-height: 1.4; }
.face figcaption em { font-style: normal; font-size: .8125rem; line-height: 1.35; color: var(--ink-2); }
.face figcaption em a { color: var(--ink-2); }
@media (max-width: 640px) { .face-grid { grid-template-columns: 1fr; } }
.grille-map { margin: 1.4em 0; background: var(--surface); border-radius: var(--r); padding: clamp(12px, 2.4vw, 24px); }
.grille-map svg { display: block; width: 100%; height: auto; }
.gm-body { fill: var(--tint); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.gm-glass { fill: #fff; stroke: var(--ink); stroke-width: 2; }
.gm-wheel { fill: var(--ink); } .gm-hub { fill: var(--tint); }
.gm-pin circle { fill: var(--red); stroke: #fff; stroke-width: 3; }
.gm-pin text { fill: #fff; font: 700 15px/1 var(--display); }
.entry-content ol.gm-legend { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; counter-reset: gm; }
.entry-content ol.gm-legend li { counter-increment: gm; margin: 0; padding-left: 36px; position: relative; font-size: 1rem; line-height: 1.4; }
.entry-content ol.gm-legend li::before { content: counter(gm); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font: 700 .875rem/1 var(--display); }

/* ---------- Concept Cars: note under the picture ---------- */
.concept-note { margin-top: 1.4em; padding: 16px 20px; background: var(--surface); border-radius: var(--r); font-size: 1.0625rem; line-height: 1.6; }
.concept-note p + p { margin-top: .8em; }
.concept-more a { white-space: normal; }
/* The Concept Cars picture is a wide head-on sketch: keep the whole front (lights and grille) in the wide tile. */
.tile-concept-cars .tile-media img { object-position: 50% 64%; }
