:root {
  --bg: #17181b;        /* charcoal */
  --bg-deep: #0d0e10;   /* near-black charcoal, canvas fill */
  --ink: #f2f3f4;       /* off-white */
  --ink-dim: rgba(242, 243, 244, 0.62);
  --steel: #9aa3ad;     /* steel accent */
  --steel-bright: #c7ced6; /* brushed steel highlight */
  --steel-dim: #4b5158; /* dark steel / dividers */
  --line: rgba(255, 255, 255, 0.08);
}

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

html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  overflow-x: hidden;
}

/* ---------- Fixed minimal wordmark ---------- */
.hud {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 36px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 13px;
  letter-spacing: 0.32em;
  color: var(--ink);
  mix-blend-mode: difference;
}
.hud-brand { font-weight: 600; }
.hud-right { color: var(--steel); font-weight: 500; }

/* ---------- Cinematic scroll section ---------- */
.cinematic {
  position: relative;
  height: 480vh;
}
.sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--bg-deep);
}
.sticky canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 45%, rgba(0,0,0,0.65) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 25%, transparent 70%, rgba(0,0,0,0.75) 100%);
}

/* ---------- Overlay copy ---------- */
.overlay {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 24px;
}
.reveal-line {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: 90vw;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: clamp(1.9rem, 7vw, 5.6rem);
  letter-spacing: 0.06em;
  line-height: 1.05;
  opacity: 0;
  color: var(--ink);
  text-shadow: 0 2px 30px rgba(0,0,0,0.6);
  will-change: opacity, transform;
}
.reveal-line:last-child {
  color: var(--steel-bright);
}

/* ---------- Scroll reveals + counters ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Overview section ---------- */
.overview {
  max-width: 860px;
  margin: 0 auto;
  padding: 160px 32px;
  text-align: center;
}
.eyebrow {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 12px;
  letter-spacing: 0.4em;
  color: var(--steel);
  margin-bottom: 20px;
}
.overview h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 500;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 24px;
}
.lede {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-dim);
  font-weight: 300;
}

/* ---------- Specs ---------- */
.specs {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-deep);
}
.specs-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 90px 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 64px;
}
.spec { display: grid; gap: 8px; text-align: center; min-width: 140px; }
.spec-num {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  color: var(--steel-bright);
}
.spec-label {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--ink-dim);
}

/* ---------- Progress ---------- */
.progress {
  position: absolute;
  left: 32px; right: 32px; bottom: 48px;
  height: 1px;
  background: var(--line);
  z-index: 12;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--steel-bright);
}
.scroll-hint {
  position: absolute;
  bottom: 16px; left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 11px;
  letter-spacing: 0.5em;
  color: var(--ink-dim);
  animation: bob 1.8s ease-in-out infinite;
  transition: opacity 0.4s;
}
@keyframes bob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

/* ---------- Outro / CTA ---------- */
.outro {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: 20px;
  padding: 40px;
  background: radial-gradient(80% 60% at 50% 0%, rgba(154,163,173,0.08), transparent 60%), var(--bg);
}
.outro h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2rem, 6vw, 3.4rem);
  letter-spacing: 0.14em;
  color: var(--ink);
}
.outro p { color: var(--ink-dim); font-size: 1.05rem; line-height: 1.7; font-weight: 300; }
.outro .fine { font-size: 0.8rem; color: var(--steel-dim); margin-top: 12px; }

.cta-row { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.btn {
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.2em;
  font-size: 13px;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 2px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn-primary {
  background: var(--steel-bright);
  color: var(--bg-deep);
}
.btn-primary:hover { background: var(--ink); }
.btn-ghost {
  border: 1px solid var(--steel-dim);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--steel-bright); color: var(--steel-bright); }

/* ---------- Mobile polish ---------- */
@media (max-width: 600px) {
  .hud { padding: 18px 20px; font-size: 11px; letter-spacing: 0.2em; }
  .progress { left: 20px; right: 20px; }
  .specs-inner { gap: 36px; padding: 64px 24px; }
  .overview { padding: 110px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .cinematic { height: 100vh; }
  .sticky { position: relative; }
  .reveal-line:not(:first-child) { display: none; }
}

.preloader {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--bg-deep);
  transition: opacity 0.4s ease;
}
.preloader.done { opacity: 0; pointer-events: none; }
.preloader-bar { width: 220px; height: 1px; background: var(--line); }
.preloader-fill { height: 100%; width: 0%; background: var(--steel-bright); transition: width 0.15s linear; }
.preloader-text {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--ink-dim);
}
