:root {
  --bg: #0a0c10;          /* near-black steel */
  --bg-2: #10131a;
  --ink: #f2f0ea;         /* warm white */
  --muted: rgba(242, 240, 234, 0.62);
  --faint: rgba(242, 240, 234, 0.38);
  --accent: #e2a13c;      /* dusk amber — lit windows */
  --accent-soft: rgba(226, 161, 60, 0.16);
  --steel: #8fa9c2;       /* dusk-sky steel blue */
  --hairline: rgba(242, 240, 234, 0.12);
}

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

h1, h2, h3, .nav, .eyebrow, .corner, .year, .stat-num, .cta {
  font-family: "Archivo", system-ui, sans-serif;
}

/* ---------- Loading gate ---------- */
html.locked, html.locked body { overflow: hidden; height: 100%; }
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-brand {
  font-family: "Archivo", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3em;
}
.loader-brand .dim { color: var(--accent); margin: 0 3px; }
.loader-track {
  width: min(320px, 60vw);
  height: 2px;
  background: var(--hairline);
  overflow: hidden;
}
#loader-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.25s ease;
}
#loader-pct {
  font-family: "Archivo", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: var(--faint);
}

/* ---------- Fixed nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: rgba(242, 240, 234, 0.85);
  mix-blend-mode: difference;
}
.nav-brand .dim { color: var(--accent); margin: 0 3px; }
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  color: rgba(242, 240, 234, 0.6);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.22em;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--accent); }

/* ---------- Cinematic scrub sections ---------- */
.cinematic { position: relative; height: 520vh; }
.sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
}
.cinematic 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 48%, rgba(4, 5, 8, 0.6) 100%),
    linear-gradient(180deg, rgba(4, 5, 8, 0.5) 0%, transparent 22%, transparent 72%, rgba(4, 5, 8, 0.72) 100%);
}

/* ---------- Scrub overlay copy ---------- */
.overlay { position: absolute; inset: 0; z-index: 10; }
.reveal-line {
  /* Full-bleed flex centering — the scrub engine overwrites `transform`
     each frame, so centering must not depend on translate(-50%,-50%).
     Flex column also clamps children to the container width, forcing
     long headlines to wrap instead of bleeding off-screen. */
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 7vw;
  opacity: 0;
  will-change: opacity, transform;
}
.reveal-line > * { max-width: 100%; }
.hero-line h1 {
  font-weight: 900;
  font-size: clamp(2.2rem, 7vw, 5.8rem);
  overflow-wrap: break-word;
  letter-spacing: 0.01em;
  line-height: 1.02;
  text-shadow: 0 4px 60px rgba(4, 5, 8, 0.9);
}
.hero-line .sub {
  margin-top: 18px;
  font-size: clamp(0.7rem, 1.4vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.42em;
  color: var(--muted);
}
.hero-line .kicker {
  margin-bottom: 16px;
  font-size: clamp(0.65rem, 1.2vw, 0.85rem);
  font-weight: 700;
  letter-spacing: 0.46em;
  color: var(--accent);
}
.hero-line.accent h1 { color: var(--accent); text-shadow: 0 4px 80px rgba(226, 161, 60, 0.25); }

/* ---------- Corners / hint ---------- */
.corner {
  position: absolute;
  z-index: 12;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--faint);
}
.bl { bottom: 40px; left: 32px; }
.br { bottom: 40px; right: 32px; }
.scroll-hint {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  font-family: "Archivo", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.42em;
  color: var(--accent);
  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); }
}

/* ---------- Shared section chrome ---------- */
section { position: relative; }
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.46em;
  color: var(--accent);
  margin-bottom: 26px;
}
h2 {
  font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 1.08;
  letter-spacing: 0.005em;
}
h2 span { color: var(--faint); }

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Manifesto ---------- */
.manifesto {
  padding: 22vh 8vw 16vh;
  max-width: 1100px;
}
.manifesto .body {
  margin-top: 34px;
  max-width: 620px;
  font-size: 1.12rem;
  line-height: 1.85;
  color: var(--muted);
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.stat {
  background: var(--bg);
  padding: 64px 24px;
  text-align: center;
  display: grid;
  gap: 14px;
}
.stat-num {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--faint);
}

/* ---------- Divisions ---------- */
.divisions { padding: 18vh 8vw; }
.division-grid {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.division {
  background: var(--bg);
  padding: 44px 36px 52px;
  transition: background 0.35s;
}
.division:hover { background: var(--bg-2); }
.division .num {
  font-family: "Archivo", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--accent);
}
.division h3 {
  margin: 20px 0 14px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.division p { font-size: 0.95rem; line-height: 1.75; color: var(--muted); }

/* ---------- Spec sheet ---------- */
.specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.spec {
  background: var(--bg);
  padding: 46px 32px;
  display: grid;
  gap: 12px;
}
.spec-k {
  font-family: "Archivo", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.34em;
  color: var(--accent);
}
.spec-v { font-size: 1rem; color: var(--muted); line-height: 1.6; }

/* ---------- Milestones ---------- */
.milestones { padding: 18vh 8vw; }
.timeline {
  margin-top: 30px;
  display: grid;
  gap: 0;
}
.milestone {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 34px;
  padding: 34px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
}
.milestone:first-of-type { border-top: 1px solid var(--hairline); }
.year {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 900;
  color: var(--accent);
}
.milestone p { color: var(--muted); line-height: 1.7; max-width: 640px; }

/* ---------- Outro / CTA ---------- */
.outro {
  min-height: 100vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 30px;
  padding: 60px 24px 120px;
  background:
    radial-gradient(90% 70% at 50% 100%, var(--accent-soft), transparent 65%),
    var(--bg);
}
.cta {
  justify-self: center;
  padding: 20px 44px;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.32em;
  transition: background 0.3s, color 0.3s;
}
.cta:hover { background: var(--accent); color: var(--bg); }
.outro footer {
  margin-top: 70px;
  display: flex;
  justify-content: center;
  gap: 48px;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--faint);
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .division-grid { grid-template-columns: 1fr; }
  .stats, .specs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .nav { padding: 16px 18px; font-size: 10px; letter-spacing: 0.18em; }
  .nav-links { display: none; }
  .corner { font-size: 9px; letter-spacing: 0.2em; }
  .bl { left: 18px; } .br { right: 18px; }
  .stats, .specs { grid-template-columns: 1fr; }
  .milestone { grid-template-columns: 80px 1fr; gap: 18px; }
}
