@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;1,9..144,400;1,9..144,500&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg: #000000;
  --text-primary: #F3E9D8;
  --text-muted: rgba(243, 233, 216, 0.65);
  --text-faint: rgba(243, 233, 216, 0.4);
  --accent-brass: #B08D57;
  --accent-brass-dim: #8A6F45;
  --overlay-dark: rgba(0, 0, 0, 0.9);
  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { background: var(--bg); overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

::selection { background: var(--accent-brass); color: #0a0a0a; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent-brass-dim); border: 2px solid var(--bg); background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-brass); background-clip: padding-box; }
html { scrollbar-color: var(--accent-brass-dim) var(--bg); scrollbar-width: thin; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-brass);
}

/* ===== Loader ===== */
#loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo { width: 56px; height: auto; opacity: 0.92; }
.loader-brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-primary);
}
#loader-bar-track {
  width: 220px;
  height: 1px;
  background: rgba(243, 233, 216, 0.15);
  position: relative;
}
#loader-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: var(--accent-brass);
  transition: width 0.2s ease;
}
#loader-percent {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem clamp(1.5rem, 4vw, 3.5rem);
  background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.9) 78%, transparent 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}
.site-header * { pointer-events: auto; }
.header-brand { display: flex; align-items: center; gap: 0.7rem; }
.header-logo { width: 34px; height: auto; flex-shrink: 0; }
.header-brand-text { display: flex; flex-direction: column; gap: 0.15rem; }
.header-wordmark {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-primary);
}
.header-subline {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.header-nav { display: flex; align-items: center; gap: 2.25rem; }
.header-nav a:not(.nav-cta) {
  position: relative;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s ease;
  padding-bottom: 0.3rem;
}
.header-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 50%; right: 50%; bottom: 0;
  height: 1px;
  background: var(--accent-brass);
  transition: left 0.35s ease, right 0.35s ease;
}
.header-nav a:not(.nav-cta):hover, .header-nav a:not(.nav-cta).is-active { color: var(--text-primary); }
.header-nav a:not(.nav-cta):hover::after, .header-nav a:not(.nav-cta).is-active::after { left: 0; right: 0; }
.header-nav .nav-cta {
  border: 1px solid var(--accent-brass);
  padding: 0.6rem 1.3rem;
  color: var(--text-primary);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.3s ease, color 0.3s ease;
}
.header-nav .nav-cta:hover { background: var(--accent-brass); color: #0a0a0a; }

@media (max-width: 768px) {
  .header-nav a:not(.nav-cta) { display: none; }
  .site-header { padding: 1.25rem 1.5rem; }
  .header-wordmark { font-size: 1.1rem; }
  .header-subline { font-size: 0.56rem; }
  .header-nav .nav-cta { padding: 0.55rem 1rem; font-size: 0.64rem; }
  .header-logo { width: 26px; }
}

/* ===== Hero ===== */
.hero-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 clamp(1.5rem, 6vw, 6vw);
  z-index: 10;
}
.hero-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.45) 42%, rgba(0,0,0,0.05) 68%);
  z-index: -1;
}
.hero-overlay .section-label { margin-bottom: 1.5rem; }
.hero-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.2rem, 12vw, 9.5rem);
  line-height: 0.98;
  color: var(--text-primary);
  max-width: 90vw;
}
.hero-heading .word {
  display: inline-block;
  overflow: hidden;
}
.hero-heading .word span { display: inline-block; }
.hero-tagline {
  margin-top: 2rem;
  max-width: 34ch;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
  font-weight: 300;
}
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: clamp(1.5rem, 6vw, 6vw);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-faint);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scroll-indicator .arrow {
  width: 1px;
  height: 28px;
  background: var(--accent-brass-dim);
  position: relative;
  overflow: hidden;
}
.scroll-indicator .arrow::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0; right: 0;
  height: 100%;
  background: var(--accent-brass);
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

/* ===== Canvas / Overlay / Marquee ===== */
.canvas-wrap {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: var(--bg);
  transform-origin: 50% 50%;
  will-change: transform;
}
#canvas { display: block; width: 100%; height: 100%; }

/* soft vignette so the footage's edges always dissolve into the page black */
.canvas-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, transparent 42%, rgba(0,0,0,0.55) 100%);
}

/* fine film-grain texture over the whole viewport for a richer, less "flat digital" surface */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

#dark-overlay {
  position: fixed;
  inset: 0;
  z-index: 3;
  background: var(--overlay-dark);
  opacity: 0;
  pointer-events: none;
}

.marquee-wrap {
  position: fixed;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 0.6s ease;
}
.marquee-text {
  display: inline-block;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 13vw;
  color: rgba(243, 233, 216, 0.08);
  letter-spacing: 0.02em;
}

/* ===== Scroll container & sections ===== */
#scroll-container {
  position: relative;
  height: 900vh;
  z-index: 4;
}
.scroll-section {
  position: absolute;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
}
.section-inner { max-width: 40vw; position: relative; }
.align-left { padding-left: clamp(1.5rem, 6vw, 6vw); padding-right: 55vw; }
.align-right { padding-left: 55vw; padding-right: clamp(1.5rem, 6vw, 6vw); display: flex; justify-content: flex-end; }
.align-right .section-inner { text-align: left; }

/* local scrim so text stays legible over busy macro footage */
.align-left::before, .align-right::before {
  content: '';
  position: absolute;
  top: -8vh; bottom: -8vh;
  width: 58vw;
  z-index: -1;
  pointer-events: none;
}
.align-left::before {
  left: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.5) 55%, transparent 100%);
}
.align-right::before {
  right: 0;
  background: linear-gradient(to left, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.5) 55%, transparent 100%);
}

.section-label { display: block; margin-bottom: 1.1rem; }
.section-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 1.08;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}
.section-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 36ch;
}

/* ===== Review sections ===== */
.review-mark {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  color: var(--accent-brass);
  font-size: 1.1rem;
  letter-spacing: 0.35em;
  margin-bottom: 0.4rem;
}
.review-mark-caption {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.review-rule {
  width: 48px;
  height: 1px;
  background: var(--accent-brass);
  margin-bottom: 1.6rem;
}
.review-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 2.5rem);
  line-height: 1.42;
  color: var(--text-primary);
  margin-bottom: 1.4rem;
}
.review-quote .quote-mark {
  color: var(--accent-brass);
  font-style: normal;
  font-size: 1.3em;
  line-height: 0;
  vertical-align: -0.32em;
  margin-right: 0.1rem;
}
.review-quote .quote-mark-close {
  margin-right: 0;
  margin-left: 0.15rem;
}
.review-attribution {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ===== Stats section ===== */
.section-stats {
  width: 100%;
}
.section-stats .section-inner { max-width: none; width: 100%; }
.stats-grid {
  display: flex;
  justify-content: center;
  gap: clamp(3rem, 8vw, 8rem);
  padding: 0 6vw;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1;
}
.stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  color: var(--text-primary);
}
.stat-label {
  display: block;
  margin-top: 0.9rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ===== CTA ===== */
.section-cta .section-body { margin-bottom: 2rem; }
.cta-button {
  display: inline-block;
  border: 1px solid var(--accent-brass);
  padding: 1rem 2.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-primary);
  transition: background 0.35s ease, color 0.35s ease;
}
.cta-button:hover { background: var(--accent-brass); color: #0a0a0a; }

/* ===== Footer ===== */
.site-footer {
  position: relative;
  z-index: 20;
  background: var(--bg);
  padding: 5rem clamp(1.5rem, 6vw, 6vw) 3rem;
  border-top: 1px solid rgba(243,233,216,0.1);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-logo { width: 44px; height: auto; flex-shrink: 0; opacity: 0.95; }
.footer-wordmark {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-tagline {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 32ch;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: flex-start;
}
.footer-contact-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.35rem;
}
.footer-contact a {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.footer-contact a:hover { color: var(--accent-brass); border-color: var(--accent-brass); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(243,233,216,0.08);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  text-transform: uppercase;
}

/* ===== Store page ===== */
.store-hero {
  padding: clamp(9rem, 16vh, 12rem) clamp(1.5rem, 6vw, 6vw) 3rem;
  max-width: 60ch;
}
.store-hero .section-heading { font-size: clamp(2.4rem, 5vw, 4rem); margin-top: 1rem; }
.store-hero .section-body { max-width: 46ch; margin-top: 1rem; }

.store-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgba(243,233,216,0.08);
  margin: 4rem clamp(1.5rem, 6vw, 6vw) 0;
}
.store-card {
  background: var(--bg);
  padding: 2.75rem 1.5rem 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  transition: background 0.4s ease;
}
.store-card:hover { background: rgba(176, 141, 87, 0.05); }
.store-card-glyph { width: 46px; height: 46px; transition: opacity 0.4s ease, transform 0.4s ease; opacity: 0.55; }
.store-card:hover .store-card-glyph { opacity: 1; transform: translateY(-2px); }
.store-card-glyph svg { width: 100%; height: 100%; }
.store-card-rule { width: 22px; height: 1px; background: var(--accent-brass-dim); }
.store-card-number {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.store-card-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-primary);
}

/* Real listing cards (data-driven, see data/inventory.json) */
.store-card--listing { cursor: pointer; }
.store-card-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  opacity: 0.9;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.store-card--listing:hover .store-card-photo { opacity: 1; transform: translateY(-2px); }
.store-card-brand {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-brass);
}
.store-card-model {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-top: -0.5rem;
}
.store-card-ref {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-top: -0.5rem;
}
.store-card-price {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.store-card-cta {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  border-top: 1px solid rgba(243,233,216,0.12);
  padding-top: 0.85rem;
  margin-top: 0.25rem;
  width: 100%;
  transition: color 0.3s ease;
}
.store-card--listing:hover .store-card-cta { color: var(--accent-brass); }
.store-card--listing.is-sold { cursor: default; }
.store-card--listing.is-sold .store-card-photo { opacity: 0.4; }
.store-card--listing.is-sold .store-card-price { color: var(--text-faint); }

.store-contact {
  margin: 6rem clamp(1.5rem, 6vw, 6vw) 5rem;
  text-align: center;
}
.store-contact .eyebrow { display: block; margin-bottom: 1rem; }
.store-contact-heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 2rem;
}
.store-contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 2.25rem;
}
.store-contact-links a {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 0.2rem;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.store-contact-links a:hover { color: var(--accent-brass); border-color: var(--accent-brass); }

@media (max-width: 1100px) {
  .store-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .store-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Review wall (recap) ===== */
.section-review-wall .section-inner { display: flex; flex-direction: column; gap: 1.75rem; }
.review-wall-item { padding-top: 1.5rem; border-top: 1px solid rgba(243,233,216,0.12); }
.review-wall-item:first-of-type { border-top: none; padding-top: 0; }
.review-wall-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.review-wall-attribution {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ===== Mobile: scroll sections collapse to centered ===== */
@media (max-width: 768px) {
  #scroll-container { height: 620vh; }
  .hero-heading { font-size: clamp(2.6rem, 13vw, 4.5rem); }
  .align-left, .align-right {
    padding-left: 6vw;
    padding-right: 6vw;
    display: block;
    text-align: center;
  }
  .section-inner { max-width: 100%; margin: 0 auto; }
  .align-left::before, .align-right::before {
    left: 0; right: 0; width: 100%;
    background: rgba(0,0,0,0.78);
  }
  .section-body { margin-left: auto; margin-right: auto; }
  .review-mark, .review-rule { margin-left: auto; margin-right: auto; }
  .marquee-text { font-size: 20vw; }
  .stats-grid { gap: 2.5rem; }
}
