:root {
  --bg: #F6F6F4;
  --surface: #FFFFFF;
  --ink: #121212;
  --ink-muted: #8C8C88;
  --line: #E7E7E3;
  --on-ink: #FFFFFF;
  --warm-light: #F2C27B;
  --amber-hot: #FFB25A;
  --dusk-top: #1B2333;
  --dusk-low: #4A4F63;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.03em; }
p { margin: 0; }
.muted { color: var(--ink-muted); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Nav ---------- */
.nav { position: relative; z-index: 10; }
.nav--over {
  position: fixed; top: 0; left: 0; right: 0; color: #fff;
  border-bottom: 1px solid transparent;
  transition: background .35s, color .35s, border-color .35s;
}
.nav--over .badge, .nav--over .pill { transition: background .35s, color .35s, border-color .35s; }
/* Once the hero has scrolled away the bar turns into a frosted light strip */
.nav--over.is-solid {
  background: rgba(246, 246, 244, .86); color: var(--ink); border-color: var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.nav--over.is-solid .badge { background: var(--ink); color: var(--on-ink); }
.nav--over.is-solid .pill { background: var(--surface); border-color: var(--line); color: var(--ink); }
.nav--over .badge { background: #fff; color: var(--ink); }
.nav--over .pill {
  background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); color: #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.nav--over .pill:hover { border-color: #fff; }
.nav__inner { display: flex; align-items: center; gap: 40px; height: 76px; }
.logo { font-weight: 600; font-size: 13px; line-height: 1; letter-spacing: 0.02em; }
.logo--sm { font-size: 11px; }
.nav__links { display: flex; gap: 30px; font-size: 13px; }
.nav__links a { display: inline-flex; align-items: center; gap: 6px; transition: opacity .2s; }
.nav__links a:hover { opacity: .55; }
.chev { width: 9px; height: 6px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.badge {
  background: var(--ink); color: var(--on-ink);
  font-size: 9px; font-weight: 600; letter-spacing: .04em;
  padding: 2px 6px; border-radius: 3px; text-transform: uppercase;
}
.pill {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; padding: 9px 16px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--surface); transition: border-color .2s;
}
.pill:hover { border-color: var(--ink); }
.pill svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.3; }

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 600px;
  overflow: hidden; background: #2a2f36; color: #fff;
}
.hero__head {
  position: absolute; z-index: 3; top: clamp(104px, 14vh, 150px); left: 0; right: 0;
  display: grid; grid-template-columns: 1fr minmax(0, 340px); gap: 48px;
}
.hero__title {
  font-size: clamp(40px, 5.6vw, 80px); line-height: 1.02;
  text-shadow: 0 2px 30px rgba(10, 14, 22, .25);
}
.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line > span { display: inline-block; }
.hero__lede { color: rgba(255,255,255,.82); font-size: 15px; padding-top: 14px; }
.btn {
  display: inline-block; margin-top: 36px;
  background: var(--ink); color: var(--on-ink);
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 16px 26px; border-radius: 2px; transition: background .25s, transform .25s var(--ease-out);
}
.btn:hover { background: #333; transform: translateY(-1px); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--warm-light); }

.scene { position: absolute; inset: 0; overflow: hidden; }
/* 21:9 film cropped to fill the hero; biased left so the car's arrival stays in frame */
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 25% 100%;
}
/* Darkens the top and left so the overlaid title reads in both day and dusk */
.scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(12,15,22,.55) 0%, rgba(12,15,22,.18) 32%, transparent 52%),
    linear-gradient(90deg, rgba(12,15,22,.35) 0%, transparent 45%);
}

.replay {
  position: absolute; right: var(--gutter); bottom: 24px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 12px/1 "Inter Tight", sans-serif; color: #fff;
  padding: 9px 14px; border-radius: 999px; cursor: pointer;
  background: rgba(18, 18, 18, .35); border: 1px solid rgba(255,255,255,.25);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transition: background .2s;
}
.replay:hover { background: rgba(18, 18, 18, .6); }
.replay svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; }

/* ---------- Showcase ---------- */
.showcase { padding-top: clamp(72px, 9vw, 128px); }
.split {
  display: grid; grid-template-columns: 1fr minmax(0, 340px); gap: 48px;
  margin-bottom: clamp(36px, 4vw, 56px);
}
.split h2 { font-size: clamp(30px, 3.3vw, 44px); line-height: 1.12; }
.split p { font-size: 14px; padding-top: 6px; }

.stats {
  list-style: none; margin: 0 0 clamp(48px, 6vw, 88px); padding: 28px 0 0;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.stats strong { display: block; font-size: clamp(28px, 3vw, 40px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.stats span { font-size: 13px; color: var(--ink-muted); }

/* Full-bleed homes, one straight after another with a hairline gap */
.showcase__stage { display: grid; gap: 6px; }
.panel {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; color: #fff;
  display: flex; align-items: flex-end; background: #1b1f27;
}
/* Taller than the panel so it can drift for the parallax without showing edges */
.panel__media { position: absolute; inset: -14% 0; will-change: transform; }
.panel__media img, .panel__media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.panel__media video { opacity: 0; transition: opacity .8s var(--ease-out); }
.panel.is-playing .panel__media video { opacity: 1; }
.panel__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(10,12,18,.82) 0%, rgba(10,12,18,.35) 38%, transparent 62%),
    linear-gradient(90deg, rgba(10,12,18,.35) 0%, transparent 50%);
}
.panel__info { position: relative; width: 100%; padding-bottom: clamp(36px, 6vh, 72px); }
.panel__index { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.85); margin-bottom: 18px; }
.panel__index span { color: rgba(255,255,255,.5); }
.panel__name { font-size: clamp(44px, 7vw, 108px); line-height: .98; letter-spacing: -0.045em; }
.panel__loc { font-size: 15px; color: rgba(255,255,255,.75); margin-top: 12px; }
.panel__blurb { max-width: 46ch; font-size: 15px; color: rgba(255,255,255,.82); margin-top: 18px; }
.panel__row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px;
  margin-top: clamp(24px, 4vh, 40px); padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.22);
}
.panel__price { font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; letter-spacing: -0.02em; }
.panel__row .btn { margin: 0 0 0 auto; }

.meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12px; color: #55554f; }
.meta li { display: inline-flex; align-items: center; gap: 6px; }
.meta svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.1; }
.meta--light { color: rgba(255,255,255,.85); font-size: 13px; }

/* ---------- Collection ---------- */
.collection { padding: clamp(80px, 10vw, 140px) 0; }
.collection__inner { display: grid; grid-template-columns: 4fr 8fr; align-items: start; }
.collection__card {
  position: relative; z-index: 1; background: var(--surface);
  padding: clamp(28px, 3.4vw, 48px); margin-top: clamp(24px, 4vw, 64px); margin-right: -48px;
}
.collection__card h2 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; margin-bottom: 18px; }
.collection__card p { font-size: 13px; max-width: 30ch; }
.link { display: inline-flex; gap: 8px; margin-top: 30px; font-size: 13px; font-weight: 500; border-bottom: 1px solid var(--ink); padding-bottom: 3px; }
.link span { transition: transform .3s var(--ease-out); }
.link:hover span { transform: translateX(4px); }
.collection__img { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.collection__img img { width: 100%; height: 115%; object-fit: cover; }
.collection__video {
  position: absolute; inset: 0; width: 100%; object-fit: cover;
  opacity: 0; pointer-events: none; transition: opacity .6s var(--ease-out);
}
.is-playing > .collection__video { opacity: 1; }
.collection__img .collection__video { height: 115%; }

.footer { border-top: 1px solid var(--line); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; height: 88px; font-size: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav__links { display: none; }
}
@media (max-width: 860px) {
  .hero__head, .split { grid-template-columns: 1fr; gap: 20px; }
  .hero__lede { padding-top: 0; max-width: 46ch; }
  .btn { margin-top: 28px; }
  .hero__head { top: 96px; }
  .hero__video { object-position: 32% 100%; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .panel__row .btn { margin-left: 0; }
  .panel__blurb { display: none; }
  .collection__inner { grid-template-columns: 1fr; }
  .collection__card { margin: 0 16px -40px; order: 2; }
  .collection__img { order: 1; }
  .collection { padding-bottom: 96px; }
}

/* Hold the intro state until GSAP takes over, so nothing flashes */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__title .line > span { transform: translateY(105%); }
  .js [data-intro] { visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .link span, .panel__media video { transition: none; }
}
