:root {
  --core: #ff8a1e;
  --mid: #ff5c00;
  --deep: #e62e00;
  --edge: #a81f00;
  --bg-black: #170a04;
  --text-warm: #fff3e6;
  --text-muted: #ffd2ad;
  --glass: rgba(255,255,255,0.08);
  --glass-edge: rgba(255,210,160,0.35);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-black);
  color: var(--text-warm);
  font-family: 'Manrope', sans-serif;
  overflow-x: hidden;
}

/* ---------- Top bar ---------- */

.site-top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5vw;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand svg { color: var(--text-warm); }
.brand-word {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  color: var(--text-warm);
}

.top-login {
  font-family: 'Manrope', sans-serif;
  font-size: 0.85rem;
  color: var(--text-warm);
  text-decoration: none;
  padding: 9px 18px;
  border: 1px solid var(--glass-edge);
  border-radius: 100px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  transition: all 0.35s ease;
}
.top-login:hover {
  background: linear-gradient(135deg, var(--core), var(--deep));
  border-color: transparent;
  color: #1c0900;
}

/* ---------- Panels ---------- */

.panel {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10vh 6vw;
  text-align: center;
}

.hero {
  background:
    radial-gradient(65% 60% at 50% 38%, var(--core) 0%, var(--mid) 38%, var(--deep) 70%, var(--edge) 100%);
}

.quote-panel[data-tone="1"] { background: radial-gradient(70% 60% at 65% 30%, var(--mid) 0%, var(--deep) 55%, var(--bg-black) 100%); }
.quote-panel[data-tone="2"] { background: radial-gradient(65% 55% at 30% 70%, var(--core) 0%, var(--deep) 55%, var(--bg-black) 100%); }
.quote-panel[data-tone="3"] { background: radial-gradient(65% 60% at 70% 65%, var(--mid) 0%, var(--edge) 55%, var(--bg-black) 100%); }

.cta-panel {
  background: radial-gradient(75% 70% at 50% 50%, var(--core) 0%, var(--mid) 35%, var(--deep) 70%, var(--bg-black) 100%);
}

/* ---------- Crystal shards (ambient parallax) ---------- */

.crystal-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.shard {
  position: absolute;
  display: block;
  background: linear-gradient(135deg, rgba(255,255,255,0.35), rgba(255,255,255,0.04) 60%);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
  will-change: transform;
}

.s1 { width: 220px; height: 220px; top: 8%; left: 8%; clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%); opacity: 0.4; }
.s2 { width: 160px; height: 260px; top: 55%; left: 78%; clip-path: polygon(30% 0, 100% 20%, 80% 100%, 0% 75%); opacity: 0.35; }
.s3 { width: 300px; height: 180px; top: 20%; left: 65%; clip-path: polygon(0 20%, 60% 0, 100% 60%, 45% 100%); opacity: 0.3; }
.s4 { width: 140px; height: 140px; top: 70%; left: 15%; clip-path: polygon(50% 0%, 100% 100%, 0% 100%); opacity: 0.35; }
.s5 { width: 190px; height: 190px; top: 35%; left: 40%; clip-path: polygon(20% 0, 80% 10%, 100% 70%, 50% 100%, 0 60%); opacity: 0.25; }

/* ---------- Hero content ---------- */

.hero-content { position: relative; z-index: 2; max-width: 900px; }
.hero-logo { margin-bottom: 28px; color: #fff; filter: drop-shadow(0 6px 30px rgba(0,0,0,0.25)); }

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 18px;
}

.kinetic {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 6.5rem);
  line-height: 1.02;
  margin: 0;
  color: #fff;
  text-shadow: 0 8px 40px rgba(0,0,0,0.2);
}

.kinetic .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px) rotate(4deg);
  animation: rise 0.8s cubic-bezier(.2,.8,.2,1) forwards;
}

@keyframes rise {
  to { opacity: 1; transform: translateY(0) rotate(0deg); }
}

.hero-sub {
  margin-top: 26px;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.9);
  font-weight: 300;
}

.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scroll-cue span {
  width: 1px;
  height: 34px;
  background: linear-gradient(#fff, transparent);
  animation: scrollpulse 1.8s ease-in-out infinite;
}
@keyframes scrollpulse {
  0%,100% { opacity: 0.2; }
  50% { opacity: 1; }
}

/* ---------- Big quotes ---------- */

.big-quote {
  position: relative;
  z-index: 2;
  margin: 0;
  max-width: 850px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  line-height: 1.25;
  color: #fff;
  opacity: 0;
  transform: translateY(50px) scale(0.96);
  transition: opacity 1s ease, transform 1.1s cubic-bezier(.2,.8,.2,1);
}

.big-quote.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ---------- CTA panel ---------- */

.cta-content { position: relative; z-index: 2; }
.cta-content .kinetic { font-size: clamp(2rem, 6vw, 3.6rem); }
.cta-content p {
  color: rgba(255,255,255,0.9);
  margin: 14px 0 34px;
  font-size: 1rem;
}

.cta-btn {
  display: inline-block;
  padding: 16px 42px;
  border-radius: 100px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: #2b0f00;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 50px rgba(0,0,0,0.3);
}

/* ==================================================================
   BUILD REEL — signature scroll-scrubbed sequence
   Design -> Code -> Build -> Deliver, drawn/morphed by scroll position
   ================================================================== */

.reel {
  position: relative;
  height: 400vh;
  background: linear-gradient(180deg, var(--bg-black), #1f0d05 50%, var(--bg-black));
}

.reel-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.reel-inner {
  position: relative;
  width: min(90vw, 640px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.reel-caption {
  min-height: 34px;
  text-align: center;
}
.reel-caption span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.1rem, 3vw, 1.7rem);
  color: var(--text-warm);
  opacity: 0;
  transition: opacity 0.35s ease;
  white-space: nowrap;
}
.reel-caption span.active { opacity: 1; }

.reel-stage-label {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: -6px;
}

#reelSvg { width: 100%; height: auto; overflow: visible; }
#reelSvg .frame { fill: none; stroke: var(--text-warm); stroke-width: 2.5; }
#reelSvg .wire { fill: none; stroke: rgba(255,243,230,0.55); stroke-width: 2; }
#reelSvg .block { fill: var(--core); fill-opacity: 0; transition: fill-opacity 0.2s linear; }
#reelSvg .block.b2 { fill: var(--text-warm); }
#reelSvg .block.b3 { fill: var(--deep); }
#reelSvg .codeline { fill: var(--text-warm); opacity: 0; }
#reelSvg .codebracket { fill: none; stroke: var(--core); stroke-width: 4; opacity: 0; }
#reelSvg .cursor { fill: var(--core); opacity: 0; }
#reelSvg .cursor.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
#reelSvg .node { opacity: 0; transform-box: fill-box; transform-origin: center; }
#reelSvg .node circle { fill: var(--bg-black); stroke: var(--core); stroke-width: 2.5; }
#reelSvg .node text { fill: var(--text-warm); font-size: 11px; font-family: 'Manrope', sans-serif; }
#reelSvg .spoke { fill: none; stroke: rgba(255,138,30,0.6); stroke-width: 2; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .kinetic .char { animation: none; opacity: 1; transform: none; }
  .big-quote { transition: none; opacity: 1; transform: none; }
  .shard { transform: none !important; }
  .reel-sticky { position: relative; }
}

@media (max-width: 640px) {
  .site-top { padding: 16px 6vw; }
  .shard { transform: scale(0.6); }
  .reel { height: 320vh; }
}
