/* ============================================================
   929 HB COUPE — build site
   Palette: dark silver / silver two-tone on near-black
   ============================================================ */

:root {
  --bg:        #0c0d0f;
  --bg-2:      #111316;
  --panel:     #15171b;
  --ink:       #e8eaed;
  --ink-dim:   #9a9da3;
  --ink-faint: #5c5f65;
  --line:      #25282d;

  /* brushed silver */
  --silver:    #c9ccd1;
  --silver-hi: #f1f2f4;
  --silver-lo: #82858b;
  --dark-sil:  #4a4d52;

  --accent:    #d8dadd;
  --hot:       #ff5b2e;          /* single warm accent — sparing */
  --done:      #5ec98a;          /* installed / complete */

  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Barlow Condensed", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; line-height: 0.95; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--hot); color: #fff; }

/* film grain overlay */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ───────────────────────── NAV ───────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(18px, 4vw, 48px);
  background: linear-gradient(180deg, rgba(12,13,15,0.92), rgba(12,13,15,0));
  backdrop-filter: blur(2px);
  transition: background .3s var(--ease), padding .3s var(--ease);
}
.nav--solid {
  background: rgba(11,12,14,0.86);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--line);
  padding-top: 10px; padding-bottom: 10px;
}
.nav__badge { display: flex; flex-direction: column; line-height: 1; }
.nav__mark {
  font-family: "Archivo Black", sans-serif; font-size: 26px;
  letter-spacing: 1px;
  background: linear-gradient(180deg, var(--silver-hi), var(--silver-lo));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav__sub { font-size: 10px; letter-spacing: 4px; color: var(--ink-faint); margin-top: 2px; }

.nav__links { display: flex; gap: clamp(14px, 2vw, 30px); }
.nav__links a {
  font-size: 14px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--ink-dim); position: relative; padding: 4px 0;
  transition: color .2s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--hot); transition: width .25s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-active::after { width: 100%; }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { display: block; width: 26px; height: 2px; background: var(--silver); margin: 5px 0; transition: .25s var(--ease); }

/* ───────────────────────── HERO ───────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px clamp(18px, 4vw, 48px) 80px;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(180,186,194,0.10), transparent 60%),
    radial-gradient(80% 60% at 80% 110%, rgba(120,124,130,0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
.hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 50% 30%, #000 25%, transparent 78%);
  opacity: 0.4;
}
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 62% 42%;
  z-index: 0; filter: contrast(1.05) saturate(0.92);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(12,13,15,0.55), rgba(12,13,15,0.12) 34%, rgba(12,13,15,0.78) 82%, var(--bg) 100%),
    linear-gradient(90deg, rgba(12,13,15,0.88), rgba(12,13,15,0.25) 56%, transparent);
}
.hero__inner { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; width: 100%; }

.hero__kicker {
  font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: 5px;
  color: var(--ink-dim); margin: 0 0 18px; text-transform: uppercase;
}
.hero__title { display: flex; flex-direction: column; filter: drop-shadow(0 6px 26px rgba(0,0,0,0.65)); }
.hero__line {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(72px, 18vw, 230px); letter-spacing: -2px;
  background: linear-gradient(175deg, var(--silver-hi) 8%, var(--silver) 42%, var(--silver-lo) 70%, #3c3e42 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 1px 0 rgba(255,255,255,0.05);
}
.hero__line--ghost {
  -webkit-text-stroke: 1px var(--dark-sil);
  background: none; color: transparent;
  margin-top: -0.06em;
}
.hero__tagline { font-size: clamp(18px, 2.4vw, 26px); color: var(--ink); margin: 18px 0 0; max-width: 30ch; text-shadow: 0 2px 16px rgba(0,0,0,0.7); }
.hero__kicker { text-shadow: 0 2px 12px rgba(0,0,0,0.7); }

.hero__meta {
  display: flex; flex-wrap: wrap; gap: clamp(20px, 5vw, 64px);
  margin-top: 28px; border-top: 1px solid var(--line); padding-top: 22px;
  font-family: "JetBrains Mono", monospace; font-size: 15px; color: var(--ink);
}
.hero__metaLabel { display: block; font-size: 11px; letter-spacing: 3px; color: var(--ink-faint); text-transform: uppercase; margin-bottom: 4px; }

.hero__scroll {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 4px;
  color: var(--ink-faint); z-index: 1;
}
.hero__scroll::before {
  content: ""; display: block; width: 1px; height: 36px; margin: 0 auto 8px;
  background: linear-gradient(var(--silver), transparent);
  animation: drop 1.8s var(--ease) infinite;
}
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ───────────────────────── BLOCKS ───────────────────────── */
.block {
  position: relative;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(64px, 10vw, 130px) clamp(18px, 4vw, 48px);
}
.block--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); max-width: none; }
.block--alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }

.block__head { display: flex; align-items: baseline; gap: 22px; margin-bottom: 44px; }
.block__no {
  font-family: "JetBrains Mono", monospace; font-size: 14px; letter-spacing: 2px;
  color: var(--hot); padding-top: 8px;
}
.block__title {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(40px, 8vw, 92px); letter-spacing: -1px;
  background: linear-gradient(180deg, var(--silver-hi), var(--silver-lo) 75%, var(--dark-sil));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.block__head::after {
  content: ""; flex: 1; height: 1px; align-self: center;
  background: linear-gradient(90deg, var(--line), transparent);
}

.block__grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(30px, 5vw, 72px);
  align-items: start;
}

.prose { font-size: 18px; color: var(--ink-dim); }
.prose .lead { font-size: clamp(20px, 2.6vw, 28px); color: var(--ink); line-height: 1.35; margin: 0 0 18px; }
.prose p { margin: 0 0 16px; }

.bullets { list-style: none; padding: 0; margin: 24px 0 0; }
.bullets li {
  position: relative; padding: 12px 0 12px 26px; border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.bullets li::before {
  content: ""; position: absolute; left: 0; top: 19px; width: 10px; height: 10px;
  border: 1px solid var(--silver-lo); transform: rotate(45deg);
}
.bullets em { color: var(--ink-faint); font-style: normal; font-family: "JetBrains Mono", monospace; font-size: 13px; letter-spacing: 1px; }

/* spec panel */
.spec {
  margin: 0; padding: 6px 0;
  background: var(--panel); border: 1px solid var(--line);
  position: relative;
}
.spec::before {
  content: "SPEC"; position: absolute; top: -10px; left: 16px;
  font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 4px;
  color: var(--ink-faint); background: var(--bg); padding: 0 8px;
}
.block--alt .spec::before { background: var(--bg-2); }
.spec > div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 13px 20px; border-bottom: 1px solid var(--line);
}
.spec > div:last-child { border-bottom: 0; }
.spec dt { font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-faint); }
.spec dd {
  margin: 0; font-family: "JetBrains Mono", monospace; font-size: 14px;
  color: var(--silver-hi); text-align: right;
}

.tag {
  font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 2px;
  padding: 3px 8px; border: 1px solid var(--line); border-radius: 2px;
}
.tag--live { color: var(--hot); border-color: var(--hot); }

.muted { color: var(--ink-faint); font-size: 0.82em; }

/* stacked spec + driveline */
.specstack { display: flex; flex-direction: column; gap: 22px; }
.spec--drive::before { content: "DRIVELINE"; }

/* FE3 fact cards */
.facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.6vw, 18px); margin-top: clamp(28px, 4vw, 46px);
}
.fact { border: 1px solid var(--line); background: var(--panel); padding: 18px 18px 20px; }
.fact h5 {
  margin: 0 0 8px; font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--hot);
}
.fact p { margin: 0; font-size: 14.5px; color: var(--ink-dim); line-height: 1.45; }

/* ───────────────────────── PHOTOS ───────────────────────── */
.shot {
  position: relative; margin: 0 0 clamp(34px, 5vw, 56px);
  border: 1px solid var(--line); background: var(--panel);
  overflow: hidden; aspect-ratio: 16 / 8;
}
.shot img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: contrast(1.04) saturate(0.92);
  transition: transform .6s var(--ease), filter .6s var(--ease);
}
.shot:hover img { transform: scale(1.03); filter: contrast(1.08) saturate(1); }
.shot figcaption {
  position: absolute; left: 0; bottom: 0; right: 0;
  font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--silver-hi);
  padding: 26px 18px 12px;
  background: linear-gradient(0deg, rgba(8,9,10,0.85), transparent);
}
/* graceful empty state — no image present yet */
.shot--empty {
  display: flex; align-items: center; justify-content: center;
  border-style: dashed; border-color: var(--line);
  background:
    repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(255,255,255,0.012) 12px, rgba(255,255,255,0.012) 24px),
    var(--panel);
}
.shot--empty img, .shot--empty figcaption { display: none; }
.shot--empty::after {
  content: "⬡  drop  " attr(data-label);
  font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: 2px;
  color: var(--ink-faint); text-transform: lowercase;
}

/* gallery — masonry (mixed portrait / landscape) */
.gallery { column-count: 3; column-gap: clamp(12px, 1.6vw, 18px); }
.gallery .shot {
  margin: 0 0 clamp(12px, 1.6vw, 18px); aspect-ratio: auto;
  break-inside: avoid; width: 100%; display: inline-block;
}
.gallery .shot img { height: auto; max-height: 540px; object-fit: cover; }
@media (max-width: 1100px) { .gallery { column-count: 2; } }

/* ───────────────────────── FUEL FLOW ───────────────────────── */
.flow { margin-top: clamp(40px, 6vw, 70px); }
.flow__legend {
  display: flex; flex-wrap: wrap; gap: 22px; margin-bottom: 22px;
  font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--ink-dim);
}
.flow__legend span { display: flex; align-items: center; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot--done { background: var(--done); }
.dot--own { background: var(--silver-lo); }
.dot--order { background: var(--hot); }

.flow__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.6vw, 20px); align-items: start;
}
.flow__stage {
  background: var(--panel); border: 1px solid var(--line);
  padding: 18px 18px 20px;
}
.flow__title {
  font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--silver-hi);
  margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.flow__step {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px dashed var(--line);
}
.flow__step:last-of-type { border-bottom: 0; }
.flow__num {
  font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--ink-faint);
  min-width: 24px; text-align: center; border: 1px solid var(--line);
  border-radius: 3px; padding: 3px 0; flex-shrink: 0;
}
.flow__name { flex: 1; font-size: 14.5px; color: var(--ink); line-height: 1.3; }
.flow__part {
  display: inline-block; margin-left: 4px; font-style: normal;
  font-family: "JetBrains Mono", monospace; font-size: 10.5px;
  letter-spacing: 0.5px; color: var(--ink-faint);
}
.flow__mid {
  text-align: center; padding: 9px 0; font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 2px; color: var(--silver-lo);
  border-bottom: 1px dashed var(--line);
}
.flow__step--done { border-left: 2px solid var(--done); margin-left: -18px; padding-left: 16px; }
.flow__step--done .flow__num { color: var(--done); border-color: rgba(94,201,138,0.45); }
.chip {
  font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 1px;
  text-transform: uppercase; padding: 2px 7px; border-radius: 2px;
  border: 1px solid var(--line); color: var(--ink-faint); white-space: nowrap; flex-shrink: 0;
}
.chip--done  { color: var(--done); border-color: rgba(94,201,138,0.45); }
.chip--order { color: var(--hot);  border-color: rgba(255,91,46,0.45); }
.flow__note {
  margin-top: 14px; padding: 10px 12px; font-size: 13px; border-radius: 3px;
  border: 1px solid rgba(255,90,70,0.4); background: rgba(255,90,70,0.07); color: #ff9483;
}

/* ───────────────────────── TIMELINE ───────────────────────── */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline__item {
  display: grid; grid-template-columns: 140px 1fr; gap: 30px;
  padding: 26px 0; border-top: 1px solid var(--line); position: relative;
}
.timeline__item::before {
  content: ""; position: absolute; left: 140px; top: 30px;
  width: 9px; height: 9px; background: var(--silver); border-radius: 50%;
  transform: translateX(-50%); box-shadow: 0 0 0 4px var(--bg-2);
}
.timeline__date {
  font-family: "JetBrains Mono", monospace; font-size: 13px; letter-spacing: 2px;
  color: var(--ink-faint); text-transform: uppercase;
}
.timeline__body { padding-left: 22px; }
.timeline__body h3 { font-size: 24px; color: var(--ink); margin-bottom: 4px; letter-spacing: 0.5px; }
.timeline__body p { margin: 0; color: var(--ink-dim); }
.timeline__thumb { display: inline-block; vertical-align: top; margin: 14px 12px 0 0; max-width: 280px; width: 100%; border: 1px solid var(--line); overflow: hidden; }
@media (min-width: 560px) { .timeline__thumb { width: calc(50% - 8px); } }
.timeline__thumb img { width: 100%; height: auto; display: block; transition: transform .5s var(--ease); }
.timeline__thumb:hover img { transform: scale(1.04); }
.timeline__item--ghost { opacity: 0.5; }
.timeline__item--ghost::before { background: transparent; border: 1px solid var(--silver-lo); }

/* ───────────────────────── STORY ───────────────────────── */
.story {
  max-width: 860px; margin: 0 auto;
  padding: clamp(70px, 11vw, 150px) clamp(18px, 4vw, 48px) clamp(40px, 6vw, 70px);
}
.story__head { margin-bottom: clamp(30px, 5vw, 52px); }
.story__kicker {
  display: block; margin-bottom: 14px;
  font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: 5px;
  text-transform: uppercase; color: var(--hot);
}
.story__title {
  font-family: "Archivo Black", sans-serif; font-size: clamp(38px, 7.5vw, 84px);
  line-height: 0.98; letter-spacing: -1px;
  background: linear-gradient(180deg, var(--silver-hi), var(--silver-lo) 78%, var(--dark-sil));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.story__body { font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-dim); line-height: 1.7; }
.story__body p { margin: 0 0 22px; }
.story__body strong { color: var(--ink); font-weight: 600; }
.story__lead {
  font-size: clamp(21px, 2.6vw, 28px); line-height: 1.4; color: var(--ink);
  margin-bottom: 28px;
}
.story__quote {
  margin: clamp(34px, 5vw, 52px) 0; padding: 4px 0 4px 26px;
  border-left: 3px solid var(--hot);
  font-family: "Archivo Black", sans-serif; font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.1; letter-spacing: -0.5px; color: var(--silver-hi);
}
.story__fig {
  margin: clamp(28px, 4vw, 40px) 0; border: 1px solid var(--line);
  background: var(--panel); overflow: hidden;
}
.story__fig img { display: block; width: 100%; height: auto; }
/* tall portrait single figures: cap height, centre, don't blow up */
.story__fig:not(.story__fig--tile) img { width: auto; max-width: 100%; max-height: 72vh; margin: 0 auto; }
.story__fig figcaption {
  padding: 11px 14px; border-top: 1px solid var(--line); background: var(--bg-2);
  font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: 1px; color: var(--ink-dim);
}
.story__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: clamp(28px, 4vw, 40px) 0; }
.story__row .story__fig { margin: 0; }
.story__fig--tile img { aspect-ratio: 3 / 4; object-fit: cover; }
.story__close {
  margin-top: clamp(30px, 5vw, 46px);
  font-family: "Archivo Black", sans-serif; font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: -0.5px; color: var(--ink);
}
@media (max-width: 640px) { .story__row { grid-template-columns: 1fr; } }

/* ───────────────────────── FOOTER ───────────────────────── */
.foot {
  text-align: center; padding: 80px 24px 60px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg), #08090a);
}
.foot__mark {
  font-family: "Archivo Black", sans-serif; font-size: 40px; letter-spacing: 1px;
  background: linear-gradient(180deg, var(--silver-hi), var(--silver-lo));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.foot__mark span { font-size: 14px; letter-spacing: 6px; color: var(--ink-faint); -webkit-text-fill-color: var(--ink-faint); }
.foot__note { color: var(--ink-dim); margin: 12px 0 6px; }
.foot__small { color: var(--ink-faint); font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: 1px; }

/* ───────────────────────── REVEAL ───────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ───────────────────────── RESPONSIVE ───────────────────────── */
@media (max-width: 820px) {
  .block__grid { grid-template-columns: 1fr; }
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    flex-direction: column; justify-content: center; gap: 8px;
    background: rgba(10,11,13,0.97); backdrop-filter: blur(14px);
    padding: 40px; transform: translateX(100%); transition: transform .35s var(--ease);
    border-left: 1px solid var(--line);
  }
  .nav__links a { font-size: 20px; padding: 12px 0; }
  .nav.is-open .nav__links { transform: none; }
  .nav__toggle { display: block; z-index: 101; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .gallery { column-count: 1; }
  .flow__grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .timeline__item { grid-template-columns: 1fr; gap: 6px; }
  .timeline__item::before { display: none; }
  .timeline__body { padding-left: 0; }
}
