:root {
  --ink: #f3f0e6;
  --ink-dim: rgba(243, 240, 230, 0.62);
  --bg: #0e0f0b;
  --panel: #14160f;
  --accent: #839e75;
  --accent-deep: #4c5c3d;
  --line: rgba(243, 240, 230, 0.14);
}

* { 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: "Jost", system-ui, sans-serif;
  overflow-x: hidden;
}

h1, h2, h3, .serif { font-family: "Cormorant Garamond", Georgia, serif; }

/* ---------- Nav ---------- */
.hud {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 40px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  mix-blend-mode: difference;
}
.brand {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  letter-spacing: 0.22em;
  font-weight: 500;
}
.brand-mark { position: relative; padding: 0 1px; }
.brand-mark::before, .brand-mark::after {
  content: "";
  position: absolute;
  left: 15%; right: 15%;
  height: 1px;
  background: var(--ink);
}
.brand-mark::before { top: -6px; }
.brand-mark::after { bottom: -6px; }
.hud-mid { font-size: 11px; letter-spacing: 0.3em; color: var(--accent); }

/* ---------- Cinematic / world sticky sections ---------- */
.cinematic, .world {
  position: relative;
  height: 380vh;
}
.cinematic.short { height: 260vh; }
.sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--bg);
}
.still { position: absolute; inset: 0; overflow: hidden; }
.still img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform-origin: center center;
  will-change: transform;
}
.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 40%, rgba(6, 7, 4, 0.62) 100%),
    linear-gradient(180deg, rgba(6,7,4,0.5) 0%, transparent 22%, transparent 68%, rgba(6,7,4,0.7) 100%);
}

/* ---------- Kicker + overlay copy ---------- */
.kicker {
  position: absolute;
  top: 110px; left: 40px;
  z-index: 11;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
}
.overlay {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 24px;
  width: 100%;
}
.reveal-line {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: 86vw;
  font-weight: 500;
  font-size: clamp(2rem, 6.2vw, 5.2rem);
  letter-spacing: 0.01em;
  line-height: 1.05;
  opacity: 0;
  will-change: opacity, transform;
}
.reveal-line .sub {
  display: block;
  font-family: "Jost", sans-serif;
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-top: 14px;
  font-weight: 400;
}

/* ---------- CTA (get-the-set) ---------- */
.cta-row { position: relative; z-index: 11; margin-top: 34px; display: flex; justify-content: center; }
.btn {
  display: inline-block;
  padding: 16px 40px;
  border: 1px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: background 0.35s ease, color 0.35s ease;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.feature-row {
  position: absolute;
  bottom: 90px; left: 0; right: 0;
  z-index: 11;
  display: flex;
  justify-content: center;
  gap: 44px;
  flex-wrap: wrap;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

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

/* ---------- Scroll hint ---------- */
.scroll-hint {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ink-dim);
  animation: bob 2s ease-in-out infinite;
  transition: opacity 0.4s;
}
@keyframes bob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

/* ---------- Intro / outro panels ---------- */
.panel {
  min-height: 70vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 20px;
  padding: 60px 24px;
  background: var(--bg);
}
.panel h2 { font-size: clamp(1.8rem, 4vw, 3rem); color: var(--ink); font-weight: 500; }
.panel p { color: var(--ink-dim); font-size: 1.05rem; line-height: 1.8; max-width: 620px; margin: 0 auto; }

.outro {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 14px;
  padding: 60px 24px;
  background: var(--panel);
  border-top: 1px solid var(--line);
}
.outro .brand { justify-content: center; font-size: 20px; }
.outro p { color: var(--ink-dim); font-size: 0.95rem; letter-spacing: 0.08em; }
.outro .fine { font-size: 0.78rem; color: rgba(243,240,230,0.35); margin-top: 18px; }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .hud { padding: 18px 20px; }
  .hud-mid { display: none; }
  .kicker { top: 84px; left: 20px; font-size: 10px; }
  .feature-row { bottom: 60px; gap: 22px; font-size: 10px; }
}

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