:root {
  --bg: #0a1420;
  --surface: #101c2c;
  --accent: #4a7fb5;
  --steel: #c8ccd1;
  --ink: #e8eaed;
  --ink-dim: rgba(232, 234, 237, 0.62);
  --ink-faint: rgba(232, 234, 237, 0.52);
}

* { 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;
}

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

/* ---------- Fixed HUD ---------- */
.hud {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 32px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  mix-blend-mode: difference;
}
.hud-brand { font-family: "Cormorant Garamond", serif; font-size: 15px; letter-spacing: 0.3em; color: var(--ink); }
.hud-mid { color: var(--accent); }

/* ---------- Real-time WebGL section ---------- */
.world {
  position: relative;
  height: 380vh;
}
.world .sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--bg);
}
.world .sticky canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.world .vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 40%, rgba(6, 10, 16, 0.6) 100%),
    linear-gradient(180deg, rgba(6, 10, 16, 0.5) 0%, transparent 22%, transparent 72%, rgba(6, 10, 16, 0.6) 100%);
}

/* ---------- Overlay copy ---------- */
.overlay {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 24px;
  width: 100%;
  height: 100%;
}
.reveal-line {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: 88vw;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2rem, 6.4vw, 4.6rem);
  letter-spacing: 0.01em;
  line-height: 1.15;
  opacity: 0;
  will-change: opacity, transform;
}
.reveal-line .accent { color: var(--accent); font-style: italic; }
.reveal-line.small {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* Callout labels for the design-details section — off-center anchors */
.reveal-line.callout {
  left: auto; top: auto; transform: none;
  width: min(280px, 60vw);
  text-align: left;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: var(--ink);
}
.reveal-line.callout .num {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.callout-bezel { top: 14%; right: 8%; text-align: right; }
.callout-crown { top: 50%; right: 6%; transform: translateY(-50%); text-align: right; }
.callout-dial  { bottom: 12%; left: 50%; transform: translateX(-50%); text-align: center; }

/* CTA button that appears and holds (no data-out) */
.reveal-btn {
  position: absolute;
  left: 50%; bottom: 14%;
  transform: translate(-50%, 0);
  opacity: 0;
  pointer-events: none;
  z-index: 11;
}
.btn {
  display: inline-block;
  padding: 15px 38px;
  border: 1px solid var(--accent);
  color: var(--ink);
  background: rgba(74, 127, 181, 0.1);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.btn:hover { background: rgba(74, 127, 181, 0.22); border-color: var(--steel); }

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

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

/* ---------- Section eyebrow (top-left label per section) ---------- */
.eyebrow {
  position: absolute;
  top: 90px; left: 32px;
  z-index: 11;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- Outro / footer ---------- */
.outro {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 22px;
  padding: 60px 24px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
}
.outro .mark {
  font-family: "Cormorant Garamond", serif;
  font-size: 13px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--accent);
}
.outro h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--ink);
}
.outro p { color: var(--ink-dim); font-size: 1rem; line-height: 1.7; max-width: 480px; margin: 0 auto; }
.outro .fine { font-size: 11px; letter-spacing: 0.1em; color: var(--ink-faint); }

/* ---------- Mobile polish ---------- */
@media (max-width: 600px) {
  .hud { padding: 16px 18px; font-size: 9px; letter-spacing: 0.16em; }
  .hud-mid { display: none; }
  .eyebrow { top: 64px; left: 18px; font-size: 9px; }
  .reveal-line.callout { width: 66vw; }
  .callout-bezel, .callout-crown { right: 6%; }
}

@media (prefers-reduced-motion: reduce) {
  .world { height: 100vh; }
  .world .sticky { position: relative; }
}
