@font-face {
  font-family: "Funnel Display";
  src: url("assets/funnel-display.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}
@font-face {
  font-family: Geist;
  src: url("assets/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #100b1b;
  --panel: #181024;
  --paper: #f7f1ff;
  --muted: #beb3cc;
  --purple: #b584ff;
  --cyan: #5ef6f0;
  --acid: #dbff70;
  --border: #38264c;
  --display: "Funnel Display", Impact, "Arial Narrow", "Liberation Sans Narrow", sans-serif;
  --body: Geist, system-ui, sans-serif;
  --mono: ui-monospace, "Courier New", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--body); }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 5px; }
p, h1, h2, figure, dl, dd { margin: 0; }
.shell { width: min(100% - 7rem, 82.5rem); margin-inline: auto; }
.skip-link { position: fixed; top: 1rem; left: 1rem; transform: translateY(-200%); z-index: 5; background: var(--cyan); color: var(--ink); padding: .75rem 1rem; }
.skip-link:focus { transform: none; }

.header { position: relative; z-index: 1; border-bottom: 1px solid var(--border); background: #100a1b; }
.navbar { min-height: 4.8rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { flex-shrink: 0; display: inline-flex; align-items: center; gap: .72rem; color: var(--paper); font: italic 900 1.28rem/.8 var(--display); letter-spacing: .035em; }
.brand em { color: var(--purple); display: block; font: inherit; font-size: .7em; margin-top: .3rem; }
.brand-mark { position: relative; display: grid; place-items: center; width: 2.5rem; aspect-ratio: 1; overflow: hidden; background: var(--purple); color: #120921; font-size: 1.75rem; transform: skew(-9deg); }
.brand-mark span { position: absolute; inset: auto 0 0; height: .21rem; background: var(--cyan); }
.navbar nav { display: flex; gap: clamp(1.5rem, 4vw, 3.7rem); }
.navbar nav a, .lights-button, .back-to-top { font: 600 .84rem/1 var(--mono); letter-spacing: .055em; text-transform: uppercase; }
.navbar nav a { color: #e4d9f2; padding-block: .75rem; }
.navbar nav a:hover, .back-to-top:hover { color: var(--cyan); }
.lights-button { background: #1b1129; border: 1px solid #624583; padding: .67rem .9rem; min-height: 2.65rem; display: inline-flex; align-items: center; gap: .55rem; cursor: pointer; white-space: nowrap; }
.lights-button b { font-weight: 600; }
.lights-button > span { width: .48rem; aspect-ratio: 1; border-radius: 50%; background: #9575ad; }
.lights-button:hover { border-color: var(--cyan); }
.lights-button[aria-pressed="true"] > span { background: var(--cyan); box-shadow: 0 0 .7rem var(--cyan); }

.hero { position: relative; isolation: isolate; overflow: hidden; background: #140921; }
.hero-art, .hero-shading { position: absolute; pointer-events: none; height: 100%; }
.hero-art { inset: 0 0 0 auto; width: min(85%, 91rem); object-fit: cover; object-position: 55% 58%; transition: filter .35s ease; }
.hero-shading { inset: 0; background: linear-gradient(90deg, #12091d 1%, #12091df7 13%, #13091bb5 29%, #13091b2a 49%, transparent 68%), linear-gradient(0deg, #10091ce8 0%, #10091c00 28%, #10091c00 83%, #10091c55 100%); }
.hero-inner { min-height: clamp(38rem, 48vw, 47rem); position: relative; display: flex; align-items: center; }
.hero-copy { position: relative; z-index: 1; padding-block: 3rem 5rem; }
.eyebrow { display: flex; align-items: center; gap: .72rem; font: 600 .84rem/1.35 var(--mono); letter-spacing: .11em; color: var(--purple); text-transform: uppercase; }
.line { flex: 0 0 1.7rem; height: 2px; background: currentColor; }
.hero h1 { margin: .7rem 0 1.25rem; font: italic 900 clamp(5.2rem, 9.8vw, 10.15rem)/.74 var(--display); letter-spacing: -.025em; text-transform: uppercase; transform: scaleX(.84); transform-origin: left center; }
.hero h1 span, .hero h1 strong { display: block; }
.hero h1 span { color: #f0e2ff; text-shadow: .04em .045em 0 #352050; }
.hero h1 strong { margin-top: .10em; color: var(--purple); font: inherit; text-shadow: .048em .052em 0 #412371; }
.hero-description { color: #e5d9ee; max-width: 19rem; font-size: 1.03rem; line-height: 1.55; }
.button { display: inline-flex; align-items: center; gap: .7rem; margin-top: 1.65rem; padding: .9rem 1.13rem; background: var(--cyan); color: #130e1f; border: 1px solid #a8fffa; font: 700 .86rem/1.15 var(--mono); text-transform: uppercase; letter-spacing: .035em; box-shadow: 4px 4px 0 #5ef6f04d; transition: box-shadow .2s, transform .2s; }
.button:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #5ef6f064; }
.play-icon { width: 0; height: 0; border-block: .34rem solid transparent; border-left: .49rem solid currentColor; }
.decal { position: absolute; right: 1rem; top: 13%; width: clamp(5rem, 9vw, 7.5rem); aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(9deg); border-radius: 50%; border: 1px dashed var(--acid); outline: 1px solid #daff7075; outline-offset: 4px; color: var(--acid); background: #171421cf; font: 600 clamp(.56rem, 1.1vw, .76rem)/1.1 var(--mono); letter-spacing: .13em; }
.decal strong { font: italic 900 clamp(1.9rem, 4vw, 3.05rem)/.91 var(--display); letter-spacing: -.02em; }
.frame-caption { position: absolute; right: 0; bottom: 1.85rem; display: flex; align-items: center; gap: .68rem; font: 600 .78rem/1 var(--mono); letter-spacing: .13em; color: #e2d4f3; }
.reticle { color: var(--cyan); font-size: 1.15rem; }
.caption-divider { color: var(--purple); }
.neon-on .hero-art { filter: saturate(1.65) brightness(1.14) contrast(1.05); }
.neon-on .hero { box-shadow: inset 0 -1px 20px #c56fff80; }
.neon-on .hero h1 strong { text-shadow: .048em .052em 0 #412371, 0 0 .34em #9e4aff; }
.neon-on .spec-strip { border-top-color: var(--cyan); box-shadow: 0 -5px 20px #b584ff52; position: relative; }

.spec-strip { background: #1b102b; border-block: 1px solid #503272; }
.specs { display: grid; grid-template-columns: repeat(4, 1fr); }
.specs > div { display: grid; gap: .47rem; padding: 1.21rem 1.4rem 1.3rem; border-right: 1px solid var(--border); }
.specs > div:first-child { padding-left: 0; }
.specs > div:last-child { border-right: 0; }
.specs dt { color: var(--purple); font: 600 .75rem/1.1 var(--mono); text-transform: uppercase; letter-spacing: .14em; }
.specs dd { display: flex; gap: .55rem; align-items: center; font-size: clamp(1rem, 2vw, 1.4rem); font-weight: 700; line-height: 1.1; }
.silver-swatch { width: .82rem; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(140deg, #fff, #878596 65%, #e4e4e4); }

.section { padding-block: 5.25rem; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; margin-bottom: 1.65rem; }
.section-heading h2 { margin-top: .4rem; text-transform: uppercase; font: italic 900 clamp(3.25rem, 6.5vw, 6rem)/.87 var(--display); }
.section-heading h2 span { color: var(--purple); }
.section-heading > p { color: var(--muted); font-size: 1rem; line-height: 1.5; max-width: 20rem; }
.garage { display: grid; grid-template-columns: minmax(16rem, .78fr) minmax(0, 1.22fr); gap: .75rem; }
.mod-picker { display: grid; gap: .75rem; align-content: start; }
.mod { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .9rem; width: 100%; text-align: left; border: 1px solid var(--border); background: var(--panel); padding: 1.15rem; cursor: pointer; }
.mod:hover { border-color: var(--purple); }
.mod[aria-pressed="true"] { border-color: var(--cyan); background: #221438; }
.mod-icon { display: grid; place-items: center; width: 2.8rem; aspect-ratio: 1; border: 1px solid #583975; color: var(--purple); font-size: 1.5rem; }
.mod[aria-pressed="true"] .mod-icon, .mod[aria-pressed="true"] .mod-indicator { color: var(--cyan); }
.mod strong, .mod small { display: block; }
.mod strong { font-size: 1.05rem; }
.mod small { margin-top: .25rem; color: var(--muted); font-size: .875rem; }
.mod-indicator { color: var(--purple); font: 600 1.2rem/1 var(--mono); }
.mod[aria-pressed="true"] .mod-indicator { transform: rotate(45deg); }
.mod-preview { position: relative; min-height: 21rem; overflow: hidden; isolation: isolate; border: 1px solid #583975; background: #1a102a; }
.mod-preview .detail-frame { position: absolute; inset: 0; }
.mod-preview::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #10091d 5%, transparent 72%); }
.mod-preview > figcaption { position: absolute; right: 0; bottom: 0; left: 0; padding: 1.35rem; display: grid; gap: .25rem; background: linear-gradient(0deg, #0c0718, #0c0718ce 60%, transparent); }
.mod-preview strong { font: italic 900 2.15rem/1 var(--display); text-transform: uppercase; }
.mod-preview figcaption > span:last-child { color: #e4d6f0; font-size: .93rem; }

.gallery-section { border-top: 1px solid var(--border); background: #150d21; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.shot { appearance: none; display: block; min-width: 0; border: 1px solid var(--border); background: #1a1029; width: 100%; text-align: left; padding: 0; cursor: pointer; overflow: hidden; }
.shot:hover { border-color: var(--purple); }
.shot:hover .shot-image { filter: brightness(1.15); }
.shot-image { display: block; min-width: 0; aspect-ratio: 4 / 3; transition: filter .2s; }
.shot-image, .detail-frame { background-color: #241234; background-position: center; background-size: cover; }
.front { background-image: url("assets/silver-mk4.jpg"); background-position: 64% 60%; }
.wheel { background-image: url("assets/wheel.jpg"); background-position: 50% 58%; }
.rear { background-image: url("assets/rear.jpg"); background-position: 50% 64%; }
.trunk { background-image: url("assets/trunk.jpg"); background-position: 50% 54%; }
.shot-label { display: flex; justify-content: space-between; gap: .5rem; align-items: center; padding: .85rem; font-size: .95rem; font-weight: 600; }
.shot-label span { color: var(--cyan); font-size: 1.2rem; }
footer { border-top: 1px solid var(--border); }
.footer-inner { min-height: 6.2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.footer-inner p { color: var(--muted); font-size: .95rem; }

dialog { width: min(90vw, 55rem); max-height: 90dvh; border: 1px solid #704b99; color: var(--paper); background: #1b1029; padding: 0; }
dialog::backdrop { background: #08040ee6; }
.dialog-bar { display: flex; align-items: center; justify-content: space-between; padding: .6rem 1rem; }
.dialog-bar h2 { font-size: 1.15rem; }
.dialog-bar button { width: 2.5rem; min-height: 2.5rem; padding: 0; border: 1px solid var(--border); background: #241336; cursor: pointer; font-size: 1.5rem; }
.dialog-bar button:hover { border-color: var(--cyan); }
.dialog-image { aspect-ratio: 3 / 2; max-height: calc(90dvh - 3.75rem); background-size: contain; background-repeat: no-repeat; }

@media (max-width: 64rem) {
  .shell { width: calc(100% - 4rem); }
}
@media (max-width: 50rem) {
  .shell { width: calc(100% - 2.8rem); }
  .hero-inner { min-height: 36rem; }
  .hero h1 { font-size: clamp(4.5rem, 12vw, 7.2rem); }
  .hero-art { width: 100%; object-position: 60% 55%; }
  .hero-shading { background: linear-gradient(90deg, #12091df5, #13091bd3 19%, #13091b28 80%), linear-gradient(0deg, #10091de8, transparent 31%); }
  .section { padding-block: 4rem; }
}
@media (max-width: 37.5rem) {
  .shell { width: calc(100% - 2rem); }
  .navbar { min-height: auto; display: grid; grid-template-columns: 1fr auto; gap: .6rem; padding-block: .7rem .3rem; }
  .navbar nav { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; gap: .7rem; border-top: 1px solid var(--border); }
  .navbar nav a { padding-block: .73rem; }
  .lights-button { grid-row: 1; grid-column: 2; }
  .hero-inner { min-height: 37rem; align-items: flex-start; }
  .hero-copy { padding-top: 2rem; padding-bottom: 1rem; }
  .hero h1 { font-size: clamp(4.1rem, 15vw, 5.7rem); margin-block: .75rem 1rem; }
  .hero-description { max-width: 17rem; font-size: .98rem; }
  .hero-art { top: auto; bottom: 0; width: 100%; height: auto; object-position: center; }
  .hero-shading { background: linear-gradient(180deg, #12091d 29%, #12091dbc 43%, transparent 70%, #10091de8); }
  .button { margin-top: 1rem; }
  .decal { top: auto; bottom: 36%; right: .3rem; width: 4.4rem; }
  .frame-caption { bottom: 1rem; }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .specs > div { border-bottom: 1px solid var(--border); padding: .82rem; }
  .specs > div:nth-child(2n) { border-right: 0; }
  .specs > div:nth-child(3) { padding-left: 0; }
  .specs > div:nth-last-child(-n+2) { border-bottom: 0; }
  .section { padding-block: 3.4rem; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .garage { grid-template-columns: 1fr; }
  .mod { padding: .7rem; }
  .mod-preview { min-height: 17rem; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery .shot:first-child { grid-column: 1 / -1; }
  .gallery .shot:first-child .shot-image { aspect-ratio: 16 / 9; }
  .footer-inner { flex-wrap: wrap; justify-content: space-between; padding-block: 1.2rem; }
  .footer-inner p { order: 1; width: 100%; }
}
@media (max-width: 23rem) {
  .hero h1 { font-size: clamp(3.5rem, 14.5vw, 4.1rem); }
  .hero .eyebrow { font-size: .68rem; }
  .button { padding-inline: .7rem; }
  .decal { bottom: 32%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
