:root {
  color-scheme: light dark;
  --ink: #0b0b0d;
  --ink-soft: #45454c;
  --paper: #f5f5f7;
  --paper-2: #ececef;
  --dark: #09090b;
  --dark-2: #161619;
  --white: #fff;
  --red: #c91832;
  --red-bright: #ff3b57;
  --line-light: rgba(0, 0, 0, .09);
  --line-dark: rgba(255, 255, 255, .16);
  --glass-light: rgba(255, 255, 255, .62);
  --glass-dark: rgba(20, 20, 23, .58);
  --max: 1180px;
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --shadow-soft: 0 24px 80px rgba(0, 0, 0, .13);
  --shadow-glass: 0 18px 55px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--dark); }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::selection { color: var(--white); background: var(--red); }
img { display: block; max-width: 100%; }
button, a { font: inherit; }
a { color: inherit; }
.shell { width: min(calc(100% - 44px), var(--max)); margin-inline: auto; }
.narrow { max-width: 930px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; z-index: 1000; top: 12px; left: 12px;
  padding: 12px 18px; border-radius: 999px;
  color: var(--ink); background: var(--white); transform: translateY(-180%);
}
.skip-link:focus { transform: none; }

/* Liquid Glass belongs to the functional layer. */
.site-header {
  position: fixed; z-index: 100; top: 14px; left: 0; right: 0;
  pointer-events: none;
}
.nav {
  height: 58px; padding: 0 12px 0 18px;
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(45, 45, 49, .72), rgba(12, 12, 14, .44));
  box-shadow: var(--shadow-glass);
  -webkit-backdrop-filter: blur(32px) saturate(150%);
  backdrop-filter: blur(32px) saturate(150%);
  pointer-events: auto;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 650; letter-spacing: -.025em; }
.brand b { color: #ff6277; }
.brand-mark { width: 26px; height: 15px; border-radius: 10px 12px 6px 6px; background: var(--red-bright); position: relative; }
.brand-mark::before, .brand-mark::after {
  content: ""; position: absolute; bottom: -4px; width: 7px; height: 7px;
  border: 2px solid #242427; border-radius: 50%; background: #d8d8dd;
}
.brand-mark::before { left: 3px; }
.brand-mark::after { right: 3px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 14px; border-radius: 999px;
  color: rgba(255, 255, 255, .78); text-decoration: none; font-size: 13px; font-weight: 520;
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 12px; color: #fff; border: 0; background: transparent; }

.hero {
  position: relative; min-height: 100svh; padding: 130px 0 32px;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; isolation: isolate; color: #fff; background: var(--dark);
}
.hero-car { position: absolute; z-index: -3; inset: 0; }
.hero-car img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; filter: saturate(.88) contrast(1.04); }
.hero-photo-credit {
  position: absolute; z-index: 4; top: 88px; right: 24px;
  color: rgba(255, 255, 255, .72); font-size: 11px; letter-spacing: .02em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .85);
}
.hero-glow {
  position: absolute; z-index: -2; inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .22) 0%, rgba(0, 0, 0, .08) 34%, rgba(0, 0, 0, .83) 86%, rgba(0, 0, 0, .95) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, .72), transparent 72%);
}
.hero-copy { position: relative; z-index: 2; margin-bottom: 42px; text-align: left; }
.eyebrow {
  margin: 0 0 18px; color: rgba(255, 255, 255, .7);
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow.red { color: #bd1831; }
.hero h1, .section h2, .technical h2, .closing h2 { margin: 0; letter-spacing: -.062em; line-height: .95; }
.hero h1 { max-width: 990px; font-size: clamp(58px, 9.4vw, 134px); text-wrap: balance; }
.hero h1 span { color: rgba(255, 255, 255, .62); }
.hero-lead {
  max-width: 650px; margin: 27px 0 0; color: rgba(255, 255, 255, .8);
  font-size: clamp(18px, 2vw, 24px); line-height: 1.42; letter-spacing: -.025em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.button {
  min-height: 50px; padding: 0 21px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  color: #fff; text-decoration: none; font-size: 14px; font-weight: 620;
  background: rgba(22, 22, 25, .48); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 12px 32px rgba(0, 0, 0, .2);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  transition: transform .22s ease, background .22s ease;
}
.button:hover { transform: translateY(-2px); background: rgba(40, 40, 44, .65); }
.button.primary { border-color: rgba(255, 124, 143, .48); background: rgba(199, 20, 47, .8); }
.button.primary:hover { background: rgba(224, 28, 57, .9); }
.hero-facts {
  position: relative; z-index: 2; margin-bottom: 0; padding: 14px;
  display: grid; grid-template-columns: repeat(4, 1fr); list-style: none;
  border: 1px solid rgba(255, 255, 255, .2); border-radius: 25px;
  background: rgba(26, 26, 29, .5); box-shadow: var(--shadow-glass);
  -webkit-backdrop-filter: blur(28px) saturate(145%); backdrop-filter: blur(28px) saturate(145%);
}
.hero-facts li { padding: 10px 20px; display: flex; flex-direction: column; gap: 5px; border-right: 1px solid rgba(255, 255, 255, .14); }
.hero-facts li:last-child { border: 0; }
.hero-facts strong { font-size: 20px; letter-spacing: -.035em; }
.hero-facts span { color: rgba(255, 255, 255, .6); font-size: 12px; }

.section { padding: 135px 0; }
.section h2, .technical h2, .closing h2 { font-size: clamp(45px, 6.2vw, 86px); }
.story { color: var(--ink); background: var(--paper); }
.intro { max-width: 900px; margin: 36px 0 0; color: #64646b; font-size: clamp(20px, 2.5vw, 30px); line-height: 1.42; letter-spacing: -.028em; }
.timeline { margin-top: 72px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; list-style: none; }
.timeline-card {
  min-height: 280px; padding: 27px; border: 1px solid var(--line-light); border-radius: var(--radius-lg);
  color: var(--ink); background: #fff; box-shadow: 0 14px 35px rgba(0, 0, 0, .045);
}
.timeline-card > span { color: #86868c; font-size: 12px; font-weight: 700; }
.timeline-card h3 { margin: 34px 0 10px; font-size: 24px; letter-spacing: -.035em; }
.timeline-card p { margin: 0; color: #67676d; line-height: 1.55; }
.timeline-card.featured { color: #fff; border-color: transparent; background: linear-gradient(145deg, #db203c, #8e0d22); box-shadow: 0 24px 48px rgba(159, 13, 35, .2); transform: translateY(-18px); }
.timeline-card.featured > span, .timeline-card.featured p { color: rgba(255, 255, 255, .74); }

.design { color: #fff; background: #0b0b0d; }
.design-grid { display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 76px; }
.design-visual { position: relative; min-height: 610px; overflow: hidden; border-radius: var(--radius-xl); background: #1b1b1e; box-shadow: 0 35px 90px rgba(0, 0, 0, .42); }
.design-visual > img { width: 100%; height: 610px; object-fit: cover; object-position: 50% 50%; }
.design-visual::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13); border-radius: inherit; }
.swatches {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  margin: 0; padding: 9px; display: flex; gap: 8px; list-style: none;
  border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; background: rgba(18, 18, 21, .48);
  box-shadow: var(--shadow-glass); -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%);
}
.swatches li { width: 32px; height: 32px; position: relative; border: 2px solid rgba(255, 255, 255, .82); border-radius: 50%; background: var(--swatch); }
.swatches i { position: absolute; left: 50%; bottom: 43px; padding: 6px 9px; border-radius: 9px; transform: translateX(-50%); opacity: 0; pointer-events: none; color: #fff; background: rgba(0, 0, 0, .72); font-size: 10px; font-style: normal; white-space: nowrap; transition: opacity .2s; }
.swatches li:hover i { opacity: 1; }
.design-copy h2 { font-size: clamp(43px, 5.2vw, 74px); }
.design-copy > p:not(.eyebrow) { color: #aaaab1; font-size: 19px; line-height: 1.58; }
.feature-list { margin: 34px 0 0; padding: 0; list-style: none; }
.feature-list li { padding: 21px 0; display: grid; gap: 7px; border-top: 1px solid rgba(255, 255, 255, .13); }
.feature-list b { font-size: 17px; }
.feature-list span { color: #97979f; line-height: 1.5; }

.technical { padding: 125px 0; color: var(--ink); background: var(--paper-2); }
.section-head { margin-bottom: 52px; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.section-head > p { max-width: 300px; margin: 0; color: #6c6c72; line-height: 1.52; }
.technical-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.technical-card, .engine-card {
  border: 1px solid var(--line-light); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .86);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .045);
}
.technical-card { min-height: 220px; padding: 29px; }
.technical-card > span, .engine-card > span { color: #a8172d; font-size: 11px; font-weight: 720; letter-spacing: .1em; text-transform: uppercase; }
.technical-card h3 { margin: 27px 0 10px; font-size: 27px; letter-spacing: -.038em; }
.technical-card p { margin: 0; color: #696970; line-height: 1.55; }

.dav-edition { color: #fff; background: radial-gradient(circle at 75% 20%, #5b1521 0, transparent 36%), linear-gradient(145deg, #151519, #070709 70%); }
.edition-head { text-align: center; }
.edition-head h2 span { color: #ff6077; }
.spec-bento { margin-top: 68px; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 12px; }
.spec-card { min-height: 210px; padding: 29px; border: 1px solid rgba(255, 255, 255, .13); border-radius: var(--radius-lg); background: #1b1b1f; }
.spec-card.hero-spec { min-height: 432px; grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(150deg, #313137, #111114); }
.spec-card.red-card { color: #fff; background: linear-gradient(145deg, #df203c, #9d1026); }
.spec-card.wide { grid-column: span 2; }
.spec-label { display: block; margin-bottom: auto; color: #a8a8af; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.red-card .spec-label { color: rgba(255, 255, 255, .68); }
.spec-card strong { font-size: clamp(54px, 6vw, 84px); line-height: 1; letter-spacing: -.065em; }
.spec-card strong small { font-size: .27em; letter-spacing: -.02em; }
.spec-card h3 { margin: 20px 0; font-size: 30px; letter-spacing: -.035em; }
.spec-card p { margin: 15px 0 0; color: #babac1; line-height: 1.5; }
.red-card p { color: rgba(255, 255, 255, .76); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chips span { padding: 9px 12px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 999px; color: #d4d4da; background: #28282d; font-size: 12px; }

.engines { color: var(--ink); background: var(--paper); }
.segmented {
  display: flex; padding: 4px; border: 1px solid rgba(255, 255, 255, .62); border-radius: 999px;
  background: rgba(255, 255, 255, .54); box-shadow: 0 12px 30px rgba(0, 0, 0, .1), inset 0 1px 0 #fff;
  -webkit-backdrop-filter: blur(20px) saturate(145%); backdrop-filter: blur(20px) saturate(145%);
}
.segmented button { min-height: 42px; padding: 0 17px; border: 0; border-radius: 999px; color: #66666c; background: transparent; cursor: pointer; }
.segmented button.active { color: #fff; background: rgba(20, 20, 23, .88); box-shadow: 0 5px 16px rgba(0, 0, 0, .18); }
.engine-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.engine-card { min-height: 250px; padding: 27px; transition: transform .25s ease, box-shadow .25s ease; }
.engine-card:hover { transform: translateY(-4px); box-shadow: 0 24px 55px rgba(0, 0, 0, .09); }
.engine-card[hidden] { display: none; }
.engine-card h3 { margin: 31px 0 5px; font-size: 34px; letter-spacing: -.045em; }
.engine-card strong { color: var(--red); font-size: 19px; }
.engine-card p { color: #696970; line-height: 1.5; }
.engine-card.selected { color: #fff; border-color: transparent; background: #17171a; box-shadow: 0 24px 50px rgba(0, 0, 0, .14); }
.engine-card.selected > span { color: #ff6a7f; }
.engine-card.selected p { color: #b5b5bc; }

.gallery { color: #fff; background: #09090b; }
.gallery .section-head > p { color: #aaaab1; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; gap: 10px; }
.gallery-item { position: relative; overflow: hidden; padding: 0; border: 0; border-radius: var(--radius-lg); color: #fff; background: #1b1b1e; cursor: zoom-in; }
.gallery-item.large { grid-column: span 2; grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2, .7, .2, 1), filter .3s; }
.gallery-item::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .82)); }
.gallery-item span { position: absolute; z-index: 2; left: 20px; bottom: 18px; font-weight: 620; letter-spacing: -.015em; }
.gallery-item:hover img { transform: scale(1.035); }

.closing {
  position: relative; isolation: isolate; overflow: hidden; padding: 180px 0; color: #fff; text-align: center; background: #111;
}
.closing::before { content: ""; position: absolute; z-index: -2; inset: 0; background: url("assets/photos/side.jpg") center 54% / cover no-repeat; }
.closing::after { content: ""; position: absolute; z-index: -1; inset: 0; background: rgba(0, 0, 0, .7); }
.closing h2 { margin-bottom: 42px; text-shadow: 0 4px 35px rgba(0, 0, 0, .45); }

.lightbox, .credits {
  padding: 0; color: #fff; border: 1px solid rgba(255, 255, 255, .2); border-radius: 28px;
  background: rgba(20, 20, 23, .72); box-shadow: var(--shadow-glass);
  -webkit-backdrop-filter: blur(36px) saturate(145%); backdrop-filter: blur(36px) saturate(145%);
}
.lightbox::backdrop, .credits::backdrop { background: rgba(0, 0, 0, .72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.lightbox { width: min(1000px, 92vw); max-height: 90vh; }
.lightbox img { width: 100%; max-height: 76vh; object-fit: contain; }
.lightbox p { margin: 0; padding: 15px 24px 22px; color: #c5c5cb; font-size: 12px; }
.lightbox-close, .dialog-close {
  position: absolute; z-index: 2; top: 12px; right: 12px; width: 44px; height: 44px;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%; color: #fff; background: rgba(24, 24, 27, .56);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); cursor: pointer;
}
.credits { width: min(660px, 92vw); padding: 36px; }
.credits h2 { margin: 0 50px 20px 0; font-size: 34px; letter-spacing: -.04em; }
.credits p, .credits li { color: #c6c6cc; line-height: 1.6; }
.credits a { color: #ff7185; }
footer { padding: 30px 0; color: #929299; border-top: 1px solid #27272b; background: #0a0a0c; font-size: 12px; }
footer .shell { display: flex; justify-content: space-between; gap: 20px; }
footer p { margin: 0; }
footer button { padding: 0; color: #d8d8dd; border: 0; background: none; text-decoration: underline; cursor: pointer; }

.reveal { opacity: 1; transform: none; transition: opacity .8s ease, transform .8s ease; }
.reveal-ready .reveal:not(.visible) { opacity: 0; transform: translateY(22px); }
.reveal.visible { opacity: 1; transform: none; }
:focus-visible { outline: 3px solid #ff5a72; outline-offset: 4px; }

@media (max-width: 920px) {
  .design-grid { grid-template-columns: 1fr; gap: 50px; }
  .design-visual, .design-visual > img { min-height: 520px; height: 520px; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline-card.featured { transform: none; }
  .technical-grid, .engine-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-bento { grid-template-columns: 1fr 1fr; }
  .spec-card.hero-spec { grid-row: auto; min-height: 280px; }
  .spec-card.wide { grid-column: span 2; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .site-header { top: 8px; }
  .nav { height: 56px; padding-left: 15px; }
  .nav-toggle { display: block; }
  .nav-toggle span:not(.sr-only) { display: block; height: 1px; margin: 6px; background: #fff; }
  .nav-links {
    position: absolute; top: 66px; left: 14px; right: 14px; padding: 10px;
    display: none; flex-direction: column; align-items: stretch; gap: 2px;
    border: 1px solid rgba(255, 255, 255, .18); border-radius: 24px;
    background: rgba(20, 20, 23, .72); box-shadow: var(--shadow-glass);
    -webkit-backdrop-filter: blur(32px) saturate(145%); backdrop-filter: blur(32px) saturate(145%);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 16px; }
  .hero { min-height: 920px; padding: 110px 0 20px; }
  .hero-car img { object-position: 56% 50%; }
  .hero-copy { margin-bottom: 28px; }
  .hero h1 { font-size: clamp(52px, 16vw, 76px); }
  .hero-lead { font-size: 18px; }
  .hero-facts { grid-template-columns: 1fr 1fr; gap: 0; padding: 8px; border-radius: 22px; }
  .hero-facts li { padding: 12px; }
  .hero-facts li:nth-child(2) { border-right: 0; }
  .hero-facts li:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .13); }
  .hero-photo-credit { top: 74px; right: 16px; bottom: auto; font-size: 11px; }
  .section, .technical { padding: 90px 0; }
  .section-head { align-items: stretch; flex-direction: column; }
  .timeline, .technical-grid, .engine-grid, .spec-bento { grid-template-columns: 1fr; }
  .spec-card, .spec-card.wide { grid-column: auto; }
  .segmented { align-self: flex-start; }
  .design-visual, .design-visual > img { min-height: 440px; height: 440px; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 270px; }
  .gallery-item.large, .gallery-item.wide { grid-column: auto; grid-row: auto; }
  .gallery-item.large { height: 360px; }
  .closing { padding: 130px 0; }
  footer .shell { flex-direction: column; }
}

@media (prefers-reduced-transparency: reduce) {
  .nav, .button, .hero-facts, .segmented, .swatches, .lightbox, .credits, .nav-links { background: rgba(22, 22, 25, .96); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal, .reveal-ready .reveal:not(.visible) { opacity: 1; transform: none; }
}
