/* Portfolio — Narra Suryakoushik Reddy · premium, cinematic */
html { scroll-behavior: smooth; }
:root {
  --bg: #07070a;
  --bg-2: #0e0e13;
  --bg-3: #16161d;
  --ink: #ecedf2;
  --ink-2: #a8aab5;
  --ink-3: #5b5d69;
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.14);
  --accent: #ff7a45;
  --accent-2: #8b5cf6;
  --accent-3: #06b6d4;
  --panel: rgba(255,255,255,.03);
}
html.light {
  --bg: #f6f4ee;
  --bg-2: #ecead9;
  --bg-3: #ffffff;
  --ink: #12121a;
  --ink-2: #55565f;
  --ink-3: #a9aab3;
  --line: rgba(0,0,0,.08);
  --line-2: rgba(0,0,0,.14);
  --accent: #d94f1f;
  --panel: rgba(0,0,0,.03);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: 'Comic Neue', 'Comic Sans MS', 'Chalkboard SE', cursive, system-ui, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: white; }

/* scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }

.mono-sm { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.muted { color: var(--ink-3); }

/* ───────── NAV ───────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  transition: opacity .4s, transform .4s, background .4s, padding .4s, border-color .4s;
}
.nav:not(.nav-scrolled) { opacity: 0; pointer-events: none; transform: translateY(-16px); }
  padding: 22px 40px;
  transition: all .5s cubic-bezier(.2,.7,.2,1);
}
.nav-scrolled {
  padding: 14px 40px;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 8px; font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 14px; letter-spacing: .12em; }
.logo-mark { color: var(--accent); animation: spin 6s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-2);
  transition: color .2s, transform .3s cubic-bezier(.2,.7,.2,1);
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; gap: 14px; align-items: center; }
.theme-btn { width: 36px; height: 36px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); border-radius: 50%; cursor: pointer; font-size: 14px; transition: all .3s; }
.theme-btn:hover { background: var(--panel); transform: rotate(180deg); }
.nav-cta {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 100px;
  transition: all .3s cubic-bezier(.2,.7,.2,1);
}
.nav-cta:hover { background: var(--accent); color: white; border-color: var(--accent); }

@media (max-width: 900px) {
  .nav { padding: 16px 20px; }
  .nav-links { display: none; }
}

/* ───────── HERO ───────── */
.hero {
  position: relative; min-height: 100vh; width: 100%;
  display: flex; flex-direction: column; justify-content: center; padding: 0 40px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; will-change: transform; }
.hero-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 30%, var(--bg) 90%),
    linear-gradient(to bottom, transparent 60%, var(--bg) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; width: 100%;
  will-change: transform, opacity;
}
.hero-eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--ink-2); display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 100px;
  background: color-mix(in oklab, var(--bg) 60%, transparent); backdrop-filter: blur(8px);
}
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.hero-title {
  font-family: 'Comic Neue', 'Comic Sans MS', cursive;
  font-size: clamp(52px, 9vw, 140px);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.03em;
  margin: 28px 0 24px;
}
.hero-sub {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.55; color: var(--ink-2); max-width: 620px; margin: 0;
}
.hero-ctas { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px; border-radius: 100px;
  font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: .06em;
  transition: all .4s cubic-bezier(.2,.7,.2,1);
  border: 1px solid var(--line-2);
}
.btn-primary { background: var(--accent); color: white; border-color: var(--accent); }
.btn-primary:hover { background: transparent; color: var(--accent); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,122,69,.3); }
.btn-ghost:hover { background: var(--panel); transform: translateY(-2px); }
.btn .arr { transition: transform .3s; }
.btn:hover .arr { transform: translateX(4px); }

.hero-meta-tl, .hero-meta-tr, .hero-meta-bl, .hero-meta-br {
  position: absolute; z-index: 2; font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: .1em; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px;
}
.hero-meta-tl { top: 100px; left: 40px; }
.hero-meta-tr { top: 100px; right: 40px; text-align: right; }
.hero-meta-bl { bottom: 40px; left: 40px; }
.hero-meta-br { bottom: 40px; right: 40px; }
.scroll-hint { display: flex; align-items: center; gap: 10px; }
.scroll-bar { width: 30px; height: 1px; background: var(--line-2); position: relative; overflow: hidden; }
.scroll-dot { position: absolute; left: 0; top: -1px; width: 6px; height: 3px; background: var(--accent); animation: scroll-line 2s infinite; }
@keyframes scroll-line { 0% { transform: translateX(-6px); } 100% { transform: translateX(30px); } }

/* ───────── HERO V2 ─────────
   Playful, experimental take: canvas with running figurines,
   floating chips, outlined word, live "now running" ticker. */

.hero-v2 { min-height: 100vh; padding: 140px 48px 80px; justify-content: flex-start; display: flex; flex-direction: column; justify-content: center; }

/* V3 — bottom-left anchored text + right portrait (overrides v2, must win cascade) */
.hero-v3.hero-v2 { justify-content: flex-end; padding-bottom: 110px; }

.hero-v3 .hero-content-v3 {
  max-width: 720px;
  margin: 0;
  margin-right: auto;
}
.hero-v3 .hero-title-v3 { font-size: clamp(48px, 6.6vw, 104px); margin: 24px 0 16px; }
.hero-v3 .hero-content-v3 .hero-eyebrow-v2 { margin-bottom: 0; }
.hero-v3 .hero-content-v3 .hero-sub-v2 { max-width: 520px; font-size: 15px; }
.hero-v3 .hero-content-v3 .hero-ctas { margin-top: 28px; }

/* Ghibli portrait frame — right side */
.hero-portrait {
  position: absolute;
  top: 50%; right: 64px;
  transform-origin: center right;
  z-index: 2;
  width: clamp(280px, 28vw, 420px);
  margin-top: -60px;
  transform: translateY(-50%);
  will-change: transform;
}
.portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: #1a1020;
  box-shadow:
    0 40px 80px -20px rgba(0,0,0,.55),
    0 0 0 1px color-mix(in oklab, var(--accent) 14%, transparent),
    0 0 60px -20px color-mix(in oklab, var(--accent) 50%, transparent);
  animation: portrait-float 8s ease-in-out infinite;
}
@keyframes portrait-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.portrait-placeholder { position: absolute; inset: 0; }
.portrait-svg { width: 100%; height: 100%; display: block; }
.portrait-svg .leaf-grp circle { animation: leaf-drift 6s ease-in-out infinite; }
.portrait-svg .leaf-grp circle:nth-child(2) { animation-delay: -2s; }
.portrait-svg .leaf-grp circle:nth-child(3) { animation-delay: -4s; }
@keyframes leaf-drift {
  0%, 100% { transform: translate(0, 0); opacity: .8; }
  50% { transform: translate(-8px, -14px); opacity: .4; }
}
.portrait-scan {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,.06) 50%, transparent 100%);
  height: 40%;
  animation: scan-move 4s linear infinite;
  pointer-events: none;
}
@keyframes scan-move {
  0% { transform: translateY(-50%); }
  100% { transform: translateY(250%); }
}
.portrait-badge {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: .16em;
  padding: 7px 10px; border-radius: 100px;
  background: rgba(10,6,16,.75); backdrop-filter: blur(8px);
  color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid rgba(255,255,255,.08);
  text-transform: uppercase;
}
.portrait-corners .pc {
  position: absolute; width: 18px; height: 18px; border: 1.5px solid var(--accent);
  pointer-events: none; opacity: .85;
}
.pc-tl { top: -4px; left: -4px; border-right: 0; border-bottom: 0; }
.pc-tr { top: -4px; right: -4px; border-left: 0; border-bottom: 0; }
.pc-bl { bottom: -4px; left: -4px; border-right: 0; border-top: 0; }
.pc-br { bottom: -4px; right: -4px; border-left: 0; border-top: 0; }
.portrait-caption {
  margin-top: 16px;
  display: flex; align-items: baseline; justify-content: space-between;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .22em;
}
.cap-k { color: var(--ink-2); }
.cap-v { color: var(--ink); letter-spacing: .12em; }

/* film-grain noise over the bg for premium feel */
.hero-noise {
  position: absolute; inset: 0; pointer-events: none; opacity: .35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.25 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* floating chips — right side, below the meta-tr block */
.hero-chips {
  position: absolute; top: 180px; right: 48px; z-index: 3;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
  pointer-events: none;
}
.chip {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .12em;
  padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 100px;
  background: color-mix(in oklab, var(--bg) 55%, transparent);
  backdrop-filter: blur(10px);
  color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 8px;
  opacity: 0; transform: translateY(-8px);
  animation: chip-in .9s cubic-bezier(.2,.7,.2,1) forwards;
}
.chip-1 { animation-delay: 1.4s; }
.chip-2 { animation-delay: 1.6s; }
.chip-3 { animation-delay: 1.8s; }
@keyframes chip-in { to { opacity: 1; transform: translateY(0); } }
.chip-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: pulse 1.6s infinite;
}
.chip-num { color: var(--ink); font-weight: 500; }
.chip:hover { transform: translateY(-2px); transition: transform .4s; }

/* hero content tilt anchor */
.hero-content-v2 {
  transform-style: preserve-3d;
  max-width: 1240px;
}

/* eyebrow */
.hero-eyebrow-v2 {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 16px; flex-wrap: wrap;
  font-size: 11px; letter-spacing: .22em;
}
.eyebrow-badge {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink); font-weight: 500;
}
.eyebrow-sep { color: var(--line-2); }

/* title */
.hero-title-v2 {
  font-size: clamp(56px, 10vw, 168px);
  line-height: .9;
  margin: 32px 0 20px;
  display: flex; flex-direction: column; gap: 0.02em;
}
.hero-line { display: block; }
.word-outline {
  -webkit-text-stroke: 2px var(--ink);
  color: transparent;
  font-style: italic;
}
.word-accent { color: var(--accent); font-style: italic; }

/* now-running ticker row */
.hero-underline-row {
  display: flex; align-items: center; gap: 20px;
  margin: 8px 0 28px;
}
.hero-running {
  display: inline-flex; align-items: baseline; gap: 14px;
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  padding: 10px 16px;
  border: 1px dashed var(--line-2); border-radius: 100px;
  background: color-mix(in oklab, var(--bg) 50%, transparent);
  backdrop-filter: blur(8px);
  max-width: 100%;
}
.running-label {
  color: var(--ink-2); letter-spacing: .16em; text-transform: uppercase; font-size: 10px;
}
.running-phrase {
  color: var(--ink); font-family: 'Comic Neue', 'Comic Sans MS', cursive; font-size: 18px; font-style: italic;
  animation: phrase-swap .55s cubic-bezier(.2,.7,.2,1);
}
@keyframes phrase-swap {
  0% { opacity: 0; transform: translateY(8px) skewX(-4deg); filter: blur(6px); }
  100% { opacity: 1; transform: translateY(0) skewX(0); filter: blur(0); }
}

.hero-sub-v2 { max-width: 560px; }

/* corner meta — cinema HUD */
.hero-meta-tl .meta-k, .hero-meta-tr .meta-k, .hero-meta-bl .meta-k, .hero-meta-br .meta-k {
  font-size: 9.5px; letter-spacing: .28em; color: var(--ink-2); opacity: .7;
}
.hero-meta-tl .meta-v, .hero-meta-tr .meta-v, .hero-meta-bl .meta-v {
  font-size: 12px; color: var(--ink); letter-spacing: .1em;
}
.meta-dim { color: var(--ink-2); }

/* mobile tuning for v2 — also handles tablet/mid-range for the 2-col hero */
@media (max-width: 1100px) {
  .hero-v2 { padding: 120px 24px 80px; }
  .hero-portrait {
    position: relative; right: auto; top: auto;
    transform: none !important;
    width: min(60%, 280px); margin: 0 0 32px;
  }
  .hero-v3.hero-v2 { justify-content: center; padding-bottom: 80px; }
  .hero-v3 .hero-content-v3 { max-width: 100%; }
  .portrait-caption { display: none; }
  .hero-v3 .hero-meta-tl,
  .hero-v3 .hero-meta-tr,
  .hero-v3 .hero-meta-br { display: none; }
}
@media (max-width: 900px) {
  .hero-v2 { padding: 120px 20px 80px; }
  .hero-portrait {
    width: min(60%, 240px);
  }
  .hero-chips { display: none; }
  .hero-title-v2 { font-size: clamp(44px, 13vw, 72px); }
  .hero-underline-row { flex-wrap: wrap; }
  .hero-running { font-size: 11px; padding: 8px 12px; }
  .running-phrase { font-size: 15px; }
  .hero-eyebrow-v2 { font-size: 10px; gap: 8px; padding: 8px 12px; }
}

/* ═══════════════════════════════════════════════
   HERO V4 — City-Punks / Ghibli full-bleed
   ═══════════════════════════════════════════════ */

.hero-v4 {
  position: relative;
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
  display: block;
}

/* Full-bleed Ghibli background — character anchored to right */
.hero-ghibli-bg {
  position: absolute; inset: 0; z-index: 0;
  will-change: transform;
  overflow: hidden;
}
.hero-ghibli-bg .ghibli-sky-wash {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 40%, #ffc48a 0%, #d97757 30%, #5a2e5e 65%, #1a1033 100%);
  z-index: 0;
}
.hero-ghibli-bg .ghibli-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

.hero-avatar-layer {
  position: absolute;
  right: 4vw;
  bottom: 0;
  width: min(46vw, 620px);
  height: min(82vh, 820px);
  z-index: 2;
  pointer-events: none;
  will-change: transform;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero-avatar-img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 24px;
  background: transparent;
  mix-blend-mode: normal;
  -webkit-mask-image: radial-gradient(ellipse 75% 80% at 50% 45%, #000 55%, transparent 100%);
          mask-image: radial-gradient(ellipse 75% 80% at 50% 45%, #000 55%, transparent 100%);
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.5)) saturate(1.05) contrast(1.02);
  animation: avatar-breathe 6s ease-in-out infinite;
  transform-origin: center bottom;
}
@keyframes avatar-breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.004); }
}
.hero-avatar-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 35%, rgba(255,192,120,.35) 0%, transparent 55%);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: avatar-glow 5s ease-in-out infinite;
}
@keyframes avatar-glow {
  0%, 100% { opacity: .6; }
  50% { opacity: 1; }
}
.hero-ghibli-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 65% 45%, transparent 30%, rgba(10,6,20,.2) 80%, rgba(10,6,20,.55) 100%),
    linear-gradient(180deg, transparent 55%, rgba(10,6,20,.45) 100%),
    linear-gradient(90deg, rgba(10,6,20,.35) 0%, transparent 42%);
}
/* re-use .hero-noise from v2 */
.hero-v4 .hero-noise { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

/* Dim the existing canvas glyphs and layer them between bg and content */
.hero-canvas-dim {
  position: absolute; inset: 0; z-index: 1;
  opacity: .12; mix-blend-mode: screen;
  pointer-events: none;
}
.hero-canvas-dim canvas { filter: blur(.3px); }

/* LEFT NAV RAIL */
.hero-rail {
  position: absolute; z-index: 5;
  top: 48px; left: 48px;
  display: flex; align-items: center; gap: 48px;
}
.rail-logo { display: flex; align-items: center; gap: 10px; }
.rail-mark { color: var(--accent); font-size: 18px; }
.rail-wordmark {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700; font-size: 18px; letter-spacing: .16em;
  color: var(--ink);
  text-shadow: 0 1px 10px rgba(0,0,0,.6);
}
.rail-links {
  display: flex; gap: 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: .2em; color: var(--ink);
  text-shadow: 0 1px 8px rgba(0,0,0,.7);
}
.rail-links a {
  position: relative; padding: 4px 0;
  opacity: .88; transition: opacity .3s;
}
.rail-links a::after {
  content: ''; position: absolute;
  left: 0; right: 100%; bottom: -4px; height: 1.5px;
  background: var(--accent); transition: right .35s cubic-bezier(.2,.7,.2,1);
}
.rail-links a:hover { opacity: 1; color: var(--accent); }
.rail-links a:hover::after { right: 0; }

/* TOP-RIGHT PLAY-REEL CTA */
.hero-reel {
  position: absolute; z-index: 5;
  top: 40px; right: 48px;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 20px 12px 14px;
  border-radius: 100px;
  background: var(--accent);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: .22em; font-weight: 700;
  box-shadow:
    0 12px 34px -8px rgba(217,79,31,.55),
    0 0 0 1px rgba(255,255,255,.06) inset;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s;
}
.hero-reel:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 44px -8px rgba(217,79,31,.7);
}
.reel-icon {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,255,255,.18);
  display: grid; place-items: center;
}
.reel-play {
  width: 0; height: 0;
  border-left: 7px solid #fff;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  margin-left: 2px;
}

/* TOP-LEFT NOTICE (like "includes paid promotion" on reference) */
.hero-notice {
  position: absolute; z-index: 4;
  top: 108px; left: 48px;
  padding: 6px 12px; border-radius: 100px;
  background: rgba(0,0,0,.45); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.08);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.82);
  display: inline-flex; align-items: center; gap: 8px;
}
.notice-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 8px #22c55e;
  animation: pulse 1.8s infinite;
}

/* BOTTOM CONTENT — huge block sans */
.hero-v4 .hero-content-v4 {
  position: absolute; z-index: 4;
  left: 48px; right: 48px; bottom: 100px; top: auto;
  max-width: 900px;
  transform-origin: bottom left;
}
.hero-eyebrow-v4 {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; border-radius: 100px;
  background: rgba(217,79,31,.15);
  border: 1px solid rgba(217,79,31,.35);
  color: #ffc8a8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: .2em; font-weight: 600;
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
}
.hero-eyebrow-v4 .chip-dot { background: #ff7a45; box-shadow: 0 0 10px #ff7a45; }

.hero-title-v4 {
  font-family: 'Comic Neue', 'Comic Sans MS', cursive;
  font-weight: 700;
  font-size: clamp(64px, 11vw, 168px);
  line-height: .88;
  letter-spacing: -.02em;
  margin: 0 0 28px;
  color: #fff;
  text-shadow: 0 4px 30px rgba(0,0,0,.55);
  text-transform: none;
}
.hero-line-v4 { display: block; width: 100%; }
.line-accent { color: var(--accent); }

.hero-sub-v4 {
  font-family: 'Comic Neue', 'Comic Sans MS', cursive;
  font-size: 16px; line-height: 1.5;
  max-width: 500px;
  color: rgba(255,255,255,.85);
  margin: 0 0 32px;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}

.hero-ctas-v4 { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-v4 {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: .16em; font-weight: 700;
  transition: all .4s cubic-bezier(.2,.7,.2,1);
  border: 1.5px solid transparent;
}
.btn-v4-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 14px 34px -10px rgba(217,79,31,.65);
}
.btn-v4-primary:hover {
  background: #fff; color: var(--accent);
  transform: translateY(-2px);
}
.btn-v4-ghost {
  color: #fff; border-color: rgba(255,255,255,.3);
  background: rgba(0,0,0,.35); backdrop-filter: blur(8px);
}
.btn-v4-ghost:hover { border-color: #fff; transform: translateY(-2px); }
.btn-v4 .arr { transition: transform .3s; }
.btn-v4:hover .arr { transform: translateX(4px); }

/* BOTTOM-RIGHT HUD */
.hero-hud-br {
  position: absolute; z-index: 4;
  right: 48px; bottom: 40px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  color: rgba(255,255,255,.88);
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
}
.hud-running {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 16px; border-radius: 100px;
  background: rgba(0,0,0,.45); backdrop-filter: blur(10px);
  border: 1px dashed rgba(255,255,255,.25);
  max-width: 380px;
}
.hud-running .running-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px; letter-spacing: .22em; color: rgba(255,255,255,.65);
  text-transform: uppercase;
}
.hud-running .running-phrase {
  font-family: 'Comic Neue', 'Comic Sans MS', cursive;
  font-style: italic; font-size: 14px;
  color: #fff;
  animation: phrase-swap .55s cubic-bezier(.2,.7,.2,1);
}
.hud-time { color: rgba(255,255,255,.65); }

.ghibli-svg .gs-sun-core {
  animation: gs-sun-pulse 5s ease-in-out infinite;
  transform-origin: 1080px 420px;
}
@keyframes gs-sun-pulse {
  0%, 100% { opacity: .85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}
.ghibli-svg .gs-grass-blade {
  animation: gs-sway 3.5s ease-in-out infinite;
}
@keyframes gs-sway {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}
.ghibli-svg .gs-leaves ellipse {
  animation: gs-leaf-drift 12s linear infinite;
  transform-origin: center;
}
@keyframes gs-leaf-drift {
  0% { transform: translate(0, -40px) rotate(0); opacity: 0; }
  10% { opacity: .7; }
  100% { transform: translate(-80px, 520px) rotate(180deg); opacity: 0; }
}
.ghibli-svg .gs-dust circle {
  animation: gs-dust-float 14s linear infinite;
}
@keyframes gs-dust-float {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: .6; }
  90% { opacity: .4; }
  100% { transform: translate(40px, -260px); opacity: 0; }
}
.ghibli-svg .gs-rays {
  animation: gs-rays-breathe 9s ease-in-out infinite;
}
@keyframes gs-rays-breathe {
  0%, 100% { opacity: .3; }
  50% { opacity: .6; }
}

/* ── Ghibli character per-layer animations ── */
.ghibli-svg .ghibli-sun {
  animation: ghibli-sun-glow 5s ease-in-out infinite;
  transform-origin: center;
}
@keyframes ghibli-sun-glow {
  0%, 100% { opacity: .9; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

.ghibli-svg .ghibli-birds {
  animation: ghibli-birds-drift 16s linear infinite;
}
@keyframes ghibli-birds-drift {
  0% { transform: translateX(-40px); opacity: 0; }
  10% { opacity: .7; }
  90% { opacity: .6; }
  100% { transform: translateX(540px); opacity: 0; }
}

.ghibli-svg .ghibli-leaves circle {
  animation: ghibli-leaf-fall 8s ease-in-out infinite;
  transform-origin: center;
}
@keyframes ghibli-leaf-fall {
  0% { transform: translate(0,-30px) rotate(0); opacity: 0; }
  15% { opacity: .85; }
  60% { opacity: .6; }
  100% { transform: translate(-40px, 380px) rotate(180deg); opacity: 0; }
}

.ghibli-svg .ghibli-char {
  animation: ghibli-breathe 4.5s ease-in-out infinite;
  transform-origin: center bottom;
}
@keyframes ghibli-breathe {
  0%, 100% { transform: translate(240px, 500px) scale(1); }
  50% { transform: translate(240px, 498px) scale(1.005); }
}

.ghibli-svg .ghibli-head {
  animation: ghibli-head-sway 7s ease-in-out infinite;
  transform-origin: 0 -110px;
}
@keyframes ghibli-head-sway {
  0%, 100% { transform: rotate(-1deg); }
  50% { transform: rotate(1.5deg); }
}

.ghibli-svg .ghibli-eye {
  animation: ghibli-blink 5s ease-in-out infinite;
  transform-origin: -8px -140px;
}
@keyframes ghibli-blink {
  0%, 94%, 100% { transform: scaleY(1); }
  96%, 98% { transform: scaleY(.1); }
}

.ghibli-svg .ghibli-hair-strand {
  animation: ghibli-wind 3.2s ease-in-out infinite;
  transform-origin: 0 -170px;
}
.ghibli-svg .ghibli-hair-wisp {
  animation: ghibli-wind 3.2s ease-in-out infinite;
  transform-origin: -18px -154px;
  animation-delay: -.6s;
}
.ghibli-svg .ghibli-scarf-tail {
  animation: ghibli-wind 3.2s ease-in-out infinite;
  transform-origin: 30px -72px;
  animation-delay: -.3s;
}
@keyframes ghibli-wind {
  0%, 100% { transform: rotate(-2deg) skewX(-2deg); }
  50% { transform: rotate(3deg) skewX(3deg); }
}

.ghibli-svg .ghibli-phones-led {
  animation: led-blink 1.8s ease-in-out infinite;
}
@keyframes led-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

.ghibli-svg .ghibli-dust circle {
  animation: ghibli-dust-float 10s linear infinite;
}
@keyframes ghibli-dust-float {
  0% { transform: translate(0,0); opacity: 0; }
  10% { opacity: .7; }
  90% { opacity: .6; }
  100% { transform: translate(-80px,-220px); opacity: 0; }
}

/* V4 RESPONSIVE */
@media (max-width: 1100px) {
  .hero-v4 .hero-rail { gap: 24px; top: 32px; left: 24px; }
  .hero-v4 .rail-links { gap: 16px; font-size: 10px; }
  .hero-v4 .hero-reel { right: 24px; top: 28px; padding: 10px 16px 10px 12px; font-size: 10px; }
  .hero-v4 .hero-notice { top: 86px; left: 24px; font-size: 9px; }
  .hero-v4 .hero-content-v4 { left: 24px; right: 24px; bottom: 130px; top: auto; }
  .hero-v4 .hero-title-v4 { font-size: clamp(56px, 12vw, 112px); }
  .hero-v4 .hero-hud-br { right: 24px; bottom: 24px; }
  .hero-v4 .hud-running { max-width: 280px; }
}
@media (max-width: 760px) {
  .hero-v4 .rail-links { display: none; }
  .hero-v4 .hero-reel .reel-label { display: none; }
  .hero-v4 .hero-reel { padding: 10px; }
  .hero-v4 .reel-icon { width: 22px; height: 22px; }
  .hero-v4 .hero-content-v4 { bottom: 110px; top: auto; max-width: 100%; }
  .hero-v4 .hero-title-v4 { font-size: clamp(44px, 14vw, 72px); line-height: .92; }
  .hero-v4 .hero-sub-v4 { font-size: 14px; }
  .hero-v4 .hero-hud-br { left: 24px; right: 24px; bottom: 20px; align-items: flex-start; }
  .hero-v4 .hud-running { max-width: 100%; }
  .hero-v4 .hud-time { align-self: flex-end; }
}

/* ═══════════════════════════════════════════════
   HERO V5 — type-driven, no portrait, code-rain bg
   ═══════════════════════════════════════════════ */
.hero-v5 {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #07070a;
  color: #fff;
  isolation: isolate;
}

/* BACKDROP */
.hero-v5 .hero-v5-bg {
  position: absolute; inset: 0; z-index: 0;
  will-change: transform, opacity;
}
.hero-v5 .v5-grid {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 90% at 30% 110%, rgba(255,122,69,.18), transparent 60%),
    radial-gradient(ellipse 70% 60% at 90% 0%, rgba(139,92,246,.12), transparent 70%),
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 80px 80px,
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 80px 80px,
    #07070a;
}
.hero-v5 .v5-rain { position: absolute; inset: 0; overflow: hidden; opacity: .35; }
.hero-v5 .rain-cols { position: absolute; inset: 0; }
.hero-v5 .rain-col {
  position: absolute; top: -40%;
  display: flex; flex-direction: column; gap: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px; line-height: 1; color: #ff7a45;
  text-shadow: 0 0 8px rgba(255,122,69,.45);
  animation: v5-rain-fall linear infinite;
  white-space: nowrap;
}
.hero-v5 .rain-col span { display: block; }
@keyframes v5-rain-fall {
  0%   { transform: translateY(0); }
  100% { transform: translateY(180vh); }
}
.hero-v5 .v5-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 50% 60%, transparent 30%, rgba(7,7,10,.85) 90%),
    linear-gradient(to top, #07070a 0%, transparent 25%),
    linear-gradient(to bottom, rgba(7,7,10,.6) 0%, transparent 30%);
}
.hero-v5 .v5-noise {
  position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
  mix-blend-mode: overlay;
}

/* TOP META */
.hero-v5 .v5-meta-tl {
  position: absolute; z-index: 5; top: 40px; left: 48px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.hero-v5 .v5-dot { width: 7px; height: 7px; border-radius: 50%; background: #6ee7b7; box-shadow: 0 0 10px #6ee7b7; animation: pulse 2s infinite; }
.hero-v5 .v5-sep { color: rgba(255,255,255,.25); }
.hero-v5 .v5-meta-tr {
  position: absolute; z-index: 5; top: 36px; right: 48px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.35); backdrop-filter: blur(8px);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: #fff; transition: all .3s cubic-bezier(.2,.7,.2,1);
}
.hero-v5 .v5-meta-tr:hover { background: #ff7a45; border-color: #ff7a45; transform: translateY(-2px); }
.hero-v5 .v5-arrow { display: inline-block; transition: transform .3s; }
.hero-v5 .v5-meta-tr:hover .v5-arrow { transform: translate(2px, -2px); }

/* TERMINAL PROMPT (oversized accent) */
.hero-v5 .v5-prompt {
  position: absolute; z-index: 3;
  top: 16vh; left: 48px; right: 48px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(14px, 1.3vw, 18px);
  letter-spacing: .08em;
  color: rgba(255,255,255,.55);
  will-change: transform;
}
.hero-v5 .v5-prompt-pre { color: rgba(255,255,255,.4); }
.hero-v5 .v5-prompt-arrow { color: #ff7a45; font-size: 1.1em; }
.hero-v5 .v5-prompt-cmd { color: #fff; }
.hero-v5 .v5-caret {
  display: inline-block; width: 10px; height: 1.2em;
  background: #ff7a45; box-shadow: 0 0 10px #ff7a45;
  vertical-align: middle;
  animation: v5-caret 1s steps(1) infinite;
}
@keyframes v5-caret { 50% { opacity: 0; } }

/* MAIN CONTENT */
.hero-v5 .v5-content {
  position: absolute; z-index: 4;
  left: 48px; right: 48px; bottom: 110px; top: auto;
  max-width: 1500px;
  will-change: transform, opacity;
}
.hero-v5 .v5-title {
  font-family: 'Comic Neue', 'Comic Sans MS', cursive;
  font-weight: 700;
  font-size: clamp(56px, 9.5vw, 168px);
  line-height: .92;
  letter-spacing: -.025em;
  margin: 0 0 56px;
  color: #fff;
  text-wrap: balance;
}
.hero-v5 .v5-line { display: block; }
.hero-v5 .v5-line-italic { color: #ff7a45; font-style: italic; }
.hero-v5 .v5-line-outline {
  -webkit-text-stroke: 2px #fff;
  color: transparent;
  font-style: italic;
  letter-spacing: -.01em;
}

/* META ROW — 4 cols */
.hero-v5 .v5-meta-row {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,.14);
  border-bottom: 1px solid rgba(255,255,255,.14);
  margin-bottom: 32px;
  max-width: 900px;
}
.hero-v5 .v5-meta-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hero-v5 .v5-meta-key {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px; letter-spacing: .28em; text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.hero-v5 .v5-meta-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: .04em;
  color: #fff;
  overflow: hidden; text-overflow: ellipsis;
}

/* CTAs */
.hero-v5 .v5-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-v5 .v5-cta {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px; border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600;
  border: 1.5px solid transparent;
  transition: all .3s cubic-bezier(.2,.7,.2,1);
}
.hero-v5 .v5-cta-primary {
  background: #ff7a45; color: #07070a;
  box-shadow: 0 14px 40px -10px rgba(255,122,69,.7);
}
.hero-v5 .v5-cta-primary:hover {
  background: #fff; color: #07070a;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 50px -8px rgba(255,255,255,.4);
}
.hero-v5 .v5-cta-arrow { transition: transform .3s; }
.hero-v5 .v5-cta-primary:hover .v5-cta-arrow { transform: translateX(4px); }
.hero-v5 .v5-cta-ghost {
  color: #fff; border-color: rgba(255,255,255,.25);
  background: rgba(0,0,0,.3); backdrop-filter: blur(8px);
}
.hero-v5 .v5-cta-ghost:hover { border-color: #fff; transform: translateY(-2px); }
.hero-v5 .v5-cta-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #ff7a45; box-shadow: 0 0 10px #ff7a45;
  animation: pulse 2s infinite;
}

/* WORD STRIP */
.hero-v5 .v5-strip {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.1);
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  padding: 18px 0;
}
.hero-v5 .v5-strip-track {
  display: flex; gap: 36px; white-space: nowrap;
  animation: v5-strip-slide 38s linear infinite;
  font-family: 'Comic Neue', 'Comic Sans MS', cursive;
  font-style: italic;
  font-weight: 700;
  font-size: 22px; letter-spacing: -.01em;
  color: rgba(255,255,255,.85);
}
@keyframes v5-strip-slide { to { transform: translateX(-50%); } }
.hero-v5 .v5-strip-item { display: inline-flex; align-items: center; gap: 16px; }
.hero-v5 .v5-strip-mark { color: #ff7a45; font-size: 16px; }

/* HUD bottom-right */
.hero-v5 .v5-hud {
  position: absolute; z-index: 5;
  right: 48px; bottom: 90px;
  display: flex; flex-direction: column; gap: 12px; align-items: flex-end;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
}
.hero-v5 .v5-hud-row { display: inline-flex; align-items: center; gap: 10px; }
.hero-v5 .v5-hud-key { color: rgba(255,255,255,.45); }
.hero-v5 .v5-hud-val {
  color: #fff;
  font-family: 'Comic Neue', 'Comic Sans MS', cursive;
  font-style: italic;
  text-transform: none;
  font-size: 14px; letter-spacing: 0;
  max-width: 280px;
  animation: phrase-swap .55s cubic-bezier(.2,.7,.2,1);
}
.hero-v5 .v5-hud-bar {
  position: relative; display: inline-block;
  width: 4px; height: 60px;
  background: rgba(255,255,255,.12);
  border-radius: 2px; overflow: hidden;
}
.hero-v5 .v5-hud-bar-fill {
  position: absolute; left: 0; right: 0; top: 0;
  background: #ff7a45; box-shadow: 0 0 8px #ff7a45;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .hero-v5 .v5-meta-tl { top: 28px; left: 24px; font-size: 10px; }
  .hero-v5 .v5-meta-tr { top: 24px; right: 24px; padding: 8px 14px; font-size: 10px; }
  .hero-v5 .v5-prompt { left: 24px; right: 24px; top: 11vh; }
  .hero-v5 .v5-content { left: 24px; right: 24px; bottom: 130px; }
  .hero-v5 .v5-title { font-size: clamp(48px, 11vw, 110px); margin-bottom: 36px; }
  .hero-v5 .v5-meta-row { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .hero-v5 .v5-hud { right: 24px; bottom: 100px; }
  .hero-v5 .v5-hud-bar { height: 40px; }
}
@media (max-width: 760px) {
  .hero-v5 .v5-meta-tl { font-size: 9px; }
  .hero-v5 .v5-prompt { font-size: 12px; gap: 10px; top: 9vh; }
  .hero-v5 .v5-content { bottom: 140px; }
  .hero-v5 .v5-title { font-size: clamp(40px, 13vw, 72px); line-height: .94; margin-bottom: 24px; }
  .hero-v5 .v5-meta-row { grid-template-columns: 1fr 1fr; gap: 16px; padding: 16px 0; margin-bottom: 24px; }
  .hero-v5 .v5-cta { padding: 14px 20px; font-size: 11px; }
  .hero-v5 .v5-strip-track { font-size: 18px; gap: 24px; }
  .hero-v5 .v5-hud { display: none; }
}

/* ───────── MARQUEE ───────── */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 20px 0; overflow: hidden; background: var(--bg-2);
}
.marquee-track {
  display: flex; gap: 48px; white-space: nowrap;
  animation: marquee 45s linear infinite;
  font-family: 'JetBrains Mono', monospace; font-size: 14px; letter-spacing: .1em;
  color: var(--ink-2); text-transform: uppercase;
}
@keyframes marquee { to { transform: translateX(-33.33%); } }
.marquee-item { display: inline-flex; align-items: center; gap: 8px; }
.marquee-dot { color: var(--accent); font-size: 8px; }

/* ───────── SECTIONS BASE ───────── */
.section { padding: 140px 40px; max-width: 1400px; margin: 0 auto; position: relative; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 72px; }
.section-label { display: flex; align-items: center; gap: 16px; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.section-num { color: var(--accent); }
.section-bar { width: 40px; height: 1px; background: var(--line-2); }
.section-name { color: var(--ink); }
.section-link { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: all .3s; }
.section-link:hover { color: var(--accent); border-color: var(--accent); }

/* Reveal animations — class-based so first paint happens with opacity:0 BEFORE
   transition kicks in, ensuring the transition has a real start state. */
.rv-reveal {
  opacity: 0;
  transform: translate3d(0, var(--rv-y, 24px), 0);
  transition: opacity 800ms cubic-bezier(.22,.61,.36,1) var(--rv-delay, 0ms),
              transform 800ms cubic-bezier(.22,.61,.36,1) var(--rv-delay, 0ms);
  will-change: opacity, transform;
  backface-visibility: hidden;
}
.rv-reveal.is-shown {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.rv-word {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 800ms cubic-bezier(.22,.61,.36,1) var(--rv-delay, 0ms),
              transform 800ms cubic-bezier(.22,.61,.36,1) var(--rv-delay, 0ms);
  will-change: opacity, transform;
  backface-visibility: hidden;
}
.rv-word.is-shown {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Type-bleed labels above each section header (combo K) */
.section-bleed {
  margin: 0 0 28px;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}
.section-bleed-text {
  font-family: 'Archivo Black', 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 4.2vw, 56px);
  line-height: .9;
  letter-spacing: -.025em;
  margin: 0;
  white-space: nowrap;
  text-transform: uppercase;
}
.section-bleed.is-solid .section-bleed-text { color: var(--accent); }
.section-bleed.is-outline .section-bleed-text {
  color: transparent;
  -webkit-text-stroke: 1px var(--accent);
}
@media (max-width: 700px) {
  .section-bleed-text { font-size: clamp(24px, 7vw, 40px); }
  .section-bleed { margin-bottom: 16px; }
  .section-bleed.is-outline .section-bleed-text { -webkit-text-stroke-width: .8px; }
}

/* Rubber-stamp annotations (combo K) */
.rk-stamp {
  position: absolute;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 7px 12px;
  background: rgba(255, 237, 222, .55);
  z-index: 3;
  font-weight: 700;
  pointer-events: none;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .rk-stamp { font-size: 9px; padding: 5px 9px; }
}

.h-display { font-family: 'Comic Neue', 'Comic Sans MS', cursive; font-size: clamp(40px, 5vw, 72px); font-weight: 700; line-height: 1.05; letter-spacing: -.01em; margin: 0; }
.h-huge { font-family: 'Comic Neue', 'Comic Sans MS', cursive; font-size: clamp(60px, 10vw, 160px); font-weight: 700; line-height: .95; letter-spacing: -.02em; margin: 28px 0; }
.lead { font-size: 20px; line-height: 1.55; color: var(--ink); margin: 0 0 20px; }

/* ───────── ABOUT ───────── */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: start; }
.about-right p { color: var(--ink-2); line-height: 1.6; font-size: 16px; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; border-top: 1px solid var(--line); padding-top: 32px; }
.stat-n { font-family: 'Comic Neue', 'Comic Sans MS', cursive; font-size: 46px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.stat-l { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-top: 4px; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 48px; } .stats-row { grid-template-columns: repeat(2, 1fr); } }

/* ───────── FEATURED ───────── */
.featured-list { border-top: 1px solid var(--line); }
.proj-row {
  display: grid; grid-template-columns: 80px 1.6fr 1.4fr 60px;
  gap: 40px; align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  position: relative; cursor: pointer;
  transition: padding .5s cubic-bezier(.2,.7,.2,1);
}
.proj-row::before {
  content: ''; position: absolute; left: -40px; right: -40px; top: 0; bottom: 0;
  background: var(--panel); opacity: 0;
  transition: opacity .5s;
  pointer-events: none;
}
.proj-row:hover { padding: 40px 20px; }
.proj-row:hover::before { opacity: 1; }
.proj-row-index { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--ink-3); letter-spacing: .1em; }
.proj-period { color: var(--ink-3); margin-bottom: 6px; }
.proj-name { font-family: 'Comic Neue', 'Comic Sans MS', cursive; font-size: clamp(36px, 4vw, 56px); font-weight: 700; margin: 0; letter-spacing: -.01em; line-height: 1.05; transition: color .3s; }
.proj-row:hover .proj-name { color: var(--accent); }
.proj-tagline { color: var(--ink-2); margin-top: 8px; font-size: 15px; }
.proj-row-preview { position: relative; aspect-ratio: 16/9; overflow: hidden; border-radius: 6px; background: var(--bg-2); }
.proj-preview-inner { position: absolute; inset: 0; overflow: hidden; }
.artwork { width: 100%; height: 100%; display: block; }
.artwork-default { background: linear-gradient(135deg, var(--accent-2), var(--accent-3)); }
.proj-preview-overlay {
  position: absolute; bottom: 12px; left: 12px; right: 12px;
  padding: 8px 10px; background: rgba(0,0,0,.5); backdrop-filter: blur(8px);
  border-radius: 3px; color: white; opacity: 0;
  transform: translateY(10px); transition: all .4s;
}
.proj-row:hover .proj-preview-overlay { opacity: 1; transform: translateY(0); }
.proj-row-arrow { color: var(--ink-3); transition: all .4s cubic-bezier(.2,.7,.2,1); }
.proj-row:hover .proj-row-arrow { color: var(--accent); transform: translate(6px, -6px) rotate(-10deg); }
@media (max-width: 900px) {
  .proj-row { grid-template-columns: 1fr; gap: 16px; }
  .proj-row-index, .proj-row-arrow { display: none; }
}

/* ───────── GRID ───────── */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.proj-card {
  display: block; border-radius: 10px; overflow: hidden; background: var(--bg-2);
  border: 1px solid var(--line); transition: all .5s cubic-bezier(.2,.7,.2,1);
}
.proj-card:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: 0 20px 40px rgba(0,0,0,.2); }
.proj-card-art { aspect-ratio: 16/10; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.proj-card-art-svg { background: #0a0a0a; }
.proj-card-art-svg .artwork { width: 100%; height: 100%; display: block; }
.proj-card-art-svg::before { display: none; }
.proj-card-art::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(255,255,255,.25), transparent 60%);
  mix-blend-mode: overlay;
}
.proj-card-glyph { font-family: 'Comic Neue', 'Comic Sans MS', cursive; font-size: 90px; color: rgba(255,255,255,.9); font-style: italic; }
.proj-card-body { padding: 20px; }
.proj-card-title { font-family: 'Comic Neue', 'Comic Sans MS', cursive; font-size: 24px; margin: 6px 0 2px; font-weight: 700; letter-spacing: 0; }
.proj-card-tag { color: var(--ink-2); font-size: 14px; margin-bottom: 12px; }
.proj-card-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .05em; padding: 4px 8px; border: 1px solid var(--line-2); border-radius: 100px; color: var(--ink-2); }
@media (max-width: 900px) { .proj-grid { grid-template-columns: 1fr; } }

/* ───────── EXPERIENCE ───────── */
.exp-list { position: relative; }
.exp-item { display: grid; grid-template-columns: 180px 1px 1fr; gap: 40px; padding: 40px 0; border-top: 1px solid var(--line); }
.exp-item:last-child { border-bottom: 1px solid var(--line); }
.exp-period { color: var(--ink-2); padding-top: 4px; }
.exp-line { width: 1px; background: var(--line-2); position: relative; }
.exp-line::before { content: ''; position: absolute; left: -4px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.exp-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.exp-logo { width: 48px; height: 48px; border-radius: 8px; object-fit: contain; background: var(--bg-2, #f4f4f4); border: 1px solid var(--line); flex-shrink: 0; }
.exp-logo-fallback { display: flex; align-items: center; justify-content: center; font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 600; color: var(--accent); letter-spacing: 0.5px; }
.exp-head-text { display: flex; flex-direction: column; gap: 2px; }
.exp-co-name { font-family: 'Inter', sans-serif; font-size: 20px; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
.exp-meta { color: var(--ink-2); font-size: 12px; }
.exp-role { font-family: 'Comic Neue', 'Comic Sans MS', cursive; font-size: 28px; font-weight: 700; margin: 0 0 4px; letter-spacing: 0; }
.exp-role-period { color: var(--ink-2); margin-bottom: 10px; }
.exp-roles { list-style: none; padding: 0; margin: 0 0 16px; position: relative; }
.exp-roles::before { content: ''; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 1px; background: var(--line-2); }
.exp-role-item { display: grid; grid-template-columns: 14px 1fr; gap: 14px; padding: 10px 0; }
.exp-role-item:not(:last-child) { border-bottom: 1px dashed var(--line); }
.exp-role-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-top: 12px; box-shadow: 0 0 0 3px var(--bg, #fff); position: relative; z-index: 1; }
.exp-role-body { min-width: 0; }
.exp-hl { padding-left: 18px; margin: 0 0 16px; color: var(--ink-2); line-height: 1.7; font-size: 15px; }
.exp-hl li { margin: 6px 0; }
.exp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 900px) {
  .exp-item { grid-template-columns: 1fr; gap: 10px; }
  .exp-line { display: none; }
  .exp-role { font-size: 22px; }
  .exp-co-name { font-size: 18px; }
}

/* ───────── SKILLS ───────── */
.skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.skill-group-title { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 16px; }
.skill-items { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-pill {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  padding: 6px 11px; border: 1px solid var(--line-2); border-radius: 100px;
  color: var(--ink); transition: all .3s;
}
.skill-pill:hover { border-color: var(--accent); color: var(--accent); background: color-mix(in oklab, var(--accent) 10%, transparent); }
@media (max-width: 900px) { .skills-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; } }

/* ───────── WRITING ───────── */
.writing-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.post {
  display: block; padding: 32px; border: 1px solid var(--line); border-radius: 10px; position: relative;
  transition: all .5s cubic-bezier(.2,.7,.2,1);
  background: var(--bg-2);
}
.post:hover { border-color: var(--line-2); transform: translateY(-4px); background: var(--bg-3); }
.new-badge { position: absolute; top: 20px; right: 20px; background: var(--accent); color: white; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .1em; padding: 3px 8px; border-radius: 100px; }
.post-date { color: var(--ink-3); margin-bottom: 16px; }
.post-title { font-family: 'Comic Neue', 'Comic Sans MS', cursive; font-size: 28px; line-height: 1.2; letter-spacing: 0; margin-bottom: 12px; font-weight: 700; }
.post-excerpt { color: var(--ink-2); line-height: 1.55; margin-bottom: 20px; font-size: 15px; }
.post-more { color: var(--accent); }
@media (max-width: 900px) { .writing-list { grid-template-columns: 1fr; } }

/* ───────── EDU ───────── */
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.subhead { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .15em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.edu-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.edu-degree { font-family: 'Comic Neue', 'Comic Sans MS', cursive; font-size: 22px; margin: 4px 0 2px; letter-spacing: 0; font-weight: 700; }
.edu-school { color: var(--ink-2); font-size: 14px; }
.edu-note { color: var(--ink-3); font-size: 13px; margin-top: 4px; }
@media (max-width: 900px) { .edu-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ───────── CONTACT ───────── */
.contact { padding-top: 160px; padding-bottom: 60px; }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 80px; align-items: start; }
.contact-email { display: inline-flex; align-items: center; gap: 10px; font-family: 'JetBrains Mono', monospace; font-size: 16px; margin-top: 28px; padding-bottom: 4px; border-bottom: 1.5px solid var(--accent); transition: all .3s; }
.contact-email:hover { color: var(--accent); gap: 16px; }
.contact-right { margin-top: 32px; }
.social-link {
  display: grid; grid-template-columns: 100px 1fr 20px; gap: 20px; align-items: center;
  padding: 20px 0; border-top: 1px solid var(--line);
  transition: all .3s; color: var(--ink);
}
.social-link:last-child { border-bottom: 1px solid var(--line); }
.social-link:hover { color: var(--accent); padding: 20px 10px; }
.social-url { color: var(--ink-3); }
.social-link .arr { justify-self: end; transition: transform .3s; }
.social-link:hover .arr { transform: translate(4px, -4px); }
.footer { margin-top: 80px; display: flex; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ───────── TWEAKS PANEL ───────── */
.tweaks {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  background: var(--bg-3); border: 1px solid var(--line-2);
  padding: 14px 16px; border-radius: 10px; min-width: 220px;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
  display: none; font-family: 'JetBrains Mono', monospace; font-size: 12px;
}
.tweaks.show { display: block; }
.tweaks-title { font-size: 10px; letter-spacing: .2em; color: var(--ink-2); margin-bottom: 10px; }
.t-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; color: var(--ink); }
.t-toggle { width: 38px; height: 22px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; position: relative; cursor: pointer; padding: 0; }
.t-toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink-3); transition: all .3s; }
.t-toggle.on::after { transform: translateX(16px); background: var(--accent); }
.t-seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 100px; overflow: hidden; }
.t-seg button {
  background: transparent; border: none; padding: 5px 10px;
  font: inherit; color: var(--ink-2); cursor: pointer;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
}
.t-seg button.on { background: var(--accent); color: #fff; }

/* ═══════════════════════════════════════════════
   HERO V7 — Olivia / bold orange / oversized type
   ═══════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════
   HERO V7 — Olivia / bold orange / oversized type
   page-wide tokens: hero is its own orange island; rest of page follows light/dark
   ═══════════════════════════════════════════════ */
:root[data-hero="v7"].light,
:root[data-hero="v7"]:not(.dark) {
  --bg: #ffffff;
  --bg-2: #f6f5f1;
  --bg-3: #ffffff;
  --ink: #0e0e13;
  --ink-2: #5a5a66;
  --ink-3: #8a8a95;
  --line: rgba(0,0,0,.08);
  --line-2: rgba(0,0,0,.14);
  --accent: #FF6A1A;
  --panel: rgba(0,0,0,.03);
}
:root[data-hero="v7"].dark {
  --bg: #0a0a0d;
  --bg-2: #14141a;
  --bg-3: #1c1c24;
  --ink: #ecedf2;
  --ink-2: #a8aab5;
  --ink-3: #6e7180;
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.14);
  --accent: #FF6A1A;
  --panel: rgba(255,255,255,.03);
}
:root[data-hero="v7"] body { background: var(--bg); color: var(--ink); }
:root[data-hero="v7"] .nav { display: none; }

/* ── INTRO STAGED REVEAL ──
   stage 0  : everything hidden
   stage 1  : headline lifts in
   stage 2  : watermark blooms
   stage 3  : portrait slides up
   stage 4  : mono blocks + topbar + marquee fade in
*/
.hero-v7 .v7-headline,
.hero-v7 .v7-watermark,
.hero-v7 .v7-portrait,
.hero-v7 .v7-topbar,
.hero-v7 .v7-bio,
.hero-v7 .v7-tagline,
.hero-v7 .v7-marquee {
  will-change: transform, opacity;
}

/* defaults — all hidden */
.hero-v7 .v7-headline { opacity: 0; transition: opacity 1.1s cubic-bezier(.22,.61,.36,1); will-change: opacity; }
.hero-v7 .v7-watermark { opacity: 0; transition: opacity 1.2s cubic-bezier(.22,.61,.36,1); will-change: opacity; }
.hero-v7 .v7-portrait { opacity: 0; transition: opacity 1.1s cubic-bezier(.22,.61,.36,1); will-change: opacity; }
.hero-v7 .v7-topbar,
.hero-v7 .v7-bio,
.hero-v7 .v7-tagline,
.hero-v7 .v7-marquee { opacity: 0; transition: opacity 1s cubic-bezier(.22,.61,.36,1); will-change: opacity; }

/* stage 1+ : headline visible */
.hero-v7[data-stage="1"] .v7-headline,
.hero-v7[data-stage="2"] .v7-headline,
.hero-v7[data-stage="3"] .v7-headline,
.hero-v7[data-stage="4"] .v7-headline { opacity: 1; }

/* stage 2+ : watermark visible */
.hero-v7[data-stage="2"] .v7-watermark,
.hero-v7[data-stage="3"] .v7-watermark,
.hero-v7[data-stage="4"] .v7-watermark { opacity: 1; }

/* stage 3+ : portrait visible */
.hero-v7[data-stage="3"] .v7-portrait,
.hero-v7[data-stage="4"] .v7-portrait { opacity: 1; }

/* stage 4 : the mono frame elements + marquee fade in */
.hero-v7[data-stage="4"] .v7-topbar,
.hero-v7[data-stage="4"] .v7-bio,
.hero-v7[data-stage="4"] .v7-tagline,
.hero-v7[data-stage="4"] .v7-marquee { opacity: 1; }

.hero-v7[data-stage="4"] .v7-bio { transition-delay: .15s; }
.hero-v7[data-stage="4"] .v7-tagline { transition-delay: .25s; }
.hero-v7[data-stage="4"] .v7-marquee { transition-delay: .35s; }

/* SAFETY NET — once stage 4 is reached, force final state regardless of any
   stuck transition (some rendering contexts get transitions stuck at currentTime:0). */
.hero-v7[data-stage="4"] .v7-headline,
.hero-v7[data-stage="4"] .v7-watermark,
.hero-v7[data-stage="4"] .v7-topbar,
.hero-v7[data-stage="4"] .v7-bio,
.hero-v7[data-stage="4"] .v7-tagline,
.hero-v7[data-stage="4"] .v7-marquee {
  animation: v7-force-show .01s linear forwards;
  animation-delay: 1s;
}
.hero-v7[data-stage="4"] .v7-portrait {
  animation: v7-force-show-portrait .01s linear forwards;
  animation-delay: 1s;
}
@keyframes v7-force-show {
  to { opacity: 1; }
}
@keyframes v7-force-show-portrait {
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-v7 .v7-headline,
  .hero-v7 .v7-watermark,
  .hero-v7 .v7-portrait,
  .hero-v7 .v7-topbar,
  .hero-v7 .v7-bio,
  .hero-v7 .v7-tagline,
  .hero-v7 .v7-marquee { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-v7 .v7-watermark { transform: translateY(0) !important; }
  .hero-v7 .v7-portrait { transform: translateX(-50%) !important; }
}

.hero-v7 {
  position: relative;
  min-height: 100vh;
  background: #FF6A1A;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  font-family: 'JetBrains Mono', monospace;
}

/* TOP BAR */
.hero-v7 .v7-topbar {
  position: relative; z-index: 6;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px 36px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: #fff;
}
.hero-v7 .v7-brand { font-weight: 700; letter-spacing: .22em; }
.hero-v7 .v7-nav { display: flex; gap: 44px; justify-self: center; }
.hero-v7 .v7-nav a { color: #fff; opacity: .9; transition: opacity .2s; }
.hero-v7 .v7-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.hero-v7 .v7-hire {
  justify-self: end;
  display: inline-flex; align-items: center; gap: 10px;
  white-space: nowrap;
  color: #fff;
}
.hero-v7 .v7-hire-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; color: #FF6A1A;
  font-size: 11px;
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.hero-v7 .v7-hire:hover .v7-hire-circle { transform: rotate(45deg); }

/* WATERMARK — single REDDY word, stretched edge-to-edge */
.hero-v7 .v7-watermark {
  position: absolute;
  left: 0; right: 0; top: 36%;
  z-index: 1;
  display: flex; justify-content: center; align-items: center;
  pointer-events: none; user-select: none;
}
.hero-v7 .v7-watermark-word {
  display: block;
  font-family: 'Archivo Black', 'Anton', system-ui, sans-serif;
  font-weight: 900;
  font-size: clamp(180px, 32vw, 560px);
  line-height: .82;
  letter-spacing: -.045em;
  color: rgba(255,255,255,.32);
  white-space: nowrap;
  transform: scaleX(1.18) translateZ(0);
  transform-origin: center;
  will-change: transform;
  backface-visibility: hidden;
}

/* slow smooth shrink + 1s filled / 1s outline pulse */
.hero-v7[data-stage="4"] .v7-watermark-word {
  animation:
    v7-watermark-shrink 80s linear 1.2s forwards,
    v7-watermark-pulse 2s steps(2, jump-none) 1.2s infinite;
  will-change: transform;
}
.hero-v7[data-stage="4"] .v7-watermark {
  animation: v7-watermark-zorder 2s steps(2, jump-none) 1.2s infinite;
}
@keyframes v7-watermark-shrink {
  from { transform: scale(1) scaleX(1.18) translateY(0); }
  to   { transform: scale(.75) scaleX(1.18) translateY(-10%); }
}
@keyframes v7-watermark-pulse {
  0%   { color: rgba(255,255,255,.32); -webkit-text-stroke: 0 transparent; }
  100% { color: transparent;            -webkit-text-stroke: 2px rgba(255,255,255,.65); }
}
@keyframes v7-watermark-zorder {
  0%   { z-index: 1; }
  100% { z-index: 5; }
}

/* PORTRAIT */
.hero-v7 .v7-portrait {
  position: absolute;
  left: 50%; bottom: 60px; top: auto;
  transform: translateX(-50%);
  width: clamp(420px, 46vw, 720px);
  height: clamp(560px, 80vh, 880px);
  z-index: 2;
  pointer-events: none;
  display: flex; align-items: flex-end; justify-content: center;
  mix-blend-mode: normal;
}
.hero-v7 .v7-portrait::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,106,26,0) 65%, rgba(255,106,26,.3) 88%, rgba(255,106,26,.7) 100%);
  pointer-events: none;
  mix-blend-mode: multiply;
}
.hero-v7 .v7-avatar {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  filter:
    drop-shadow(0 0 80px rgba(255, 130, 50, .55))
    drop-shadow(0 30px 50px rgba(120, 30, 0, .25));
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 82%, rgba(0,0,0,.4) 94%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 82%, rgba(0,0,0,.4) 94%, transparent 100%);
}

/* GIANT HEADLINE — in front of portrait */
.hero-v7 .v7-headline {
  position: absolute;
  left: 0; right: 0;
  top: clamp(56px, 7vh, 96px);
  z-index: 4;
  margin: 0;
  text-align: center;
  font-family: 'Anton', 'Bebas Neue', 'Archivo Black', system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(96px, 19vw, 320px);
  line-height: .82;
  letter-spacing: -.02em;
  color: #fff;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 2px 0 rgba(0,0,0,.04);
  padding: 0 12px;
  transform: scaleX(1.04);
  transform-origin: center top;
}

/* RIGHT mono tagline */
.hero-v7 .v7-tagline {
  position: absolute;
  right: 4%;
  top: 44%;
  z-index: 5;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(11px, 1vw, 14px);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.7;
  text-align: left;
  text-shadow: 0 1px 8px rgba(180, 60, 0, .6);
}
.hero-v7 .v7-tagline-indent { padding-left: 26px; }

/* LEFT mono bio */
.hero-v7 .v7-bio {
  position: absolute;
  left: 4%;
  top: auto;
  bottom: 200px;
  z-index: 5;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(11px, 1vw, 14px);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.7;
  max-width: 460px;
  text-shadow: 0 1px 8px rgba(180, 60, 0, .6);
}
.hero-v7 .v7-bio-indent { padding-left: 32px; }

/* MARQUEE bottom */
.hero-v7 .v7-marquee {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 6;
  overflow: hidden;
  padding: 22px 0 26px;
  border-top: 1px solid rgba(255,255,255,.25);
  background: linear-gradient(to bottom, rgba(255,106,26,0), rgba(255,106,26,.1));
}
.hero-v7 .v7-marquee-track {
  display: flex; gap: 56px; white-space: nowrap;
  will-change: transform;
}
.hero-v7 .v7-marquee.boost .v7-marquee-track { /* boost no-op now; controlled by JS speed */ }
@keyframes v7-marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.hero-v7 .v7-marquee-item {
  font-family: 'Anton', 'Bebas Neue', system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(36px, 5.5vw, 84px);
  line-height: 1;
  letter-spacing: -.01em;
  color: #fff;
  text-transform: uppercase;
  position: relative;
  padding-left: 56px;
}
.hero-v7 .v7-marquee-item::before {
  content: '◆';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
}

/* hide the site-level NavBar when v7 hero is on (we have our own top bar) */
:root[data-hero="v7"] body > #root > nav.nav { display: none; }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .hero-v7 .v7-topbar { padding: 18px 22px; }
  .hero-v7 .v7-nav { gap: 24px; }
  .hero-v7 .v7-tagline { right: 5%; top: 50%; }
  .hero-v7 .v7-bio { left: 4%; top: auto; bottom: 220px; }
}
@media (max-width: 760px) {
  .hero-v7 .v7-topbar {
    grid-template-columns: 1fr auto;
    padding: 16px 20px;
  }
  .hero-v7 .v7-nav { display: none; }
  .hero-v7 .v7-headline { top: 90px; font-size: clamp(60px, 22vw, 120px); white-space: normal; line-height: .9; }
  .hero-v7 .v7-watermark { font-size: clamp(140px, 32vw, 260px); top: 28%; }
  .hero-v7 .v7-portrait { width: 90vw; height: 80vh; bottom: 60px; }
  .hero-v7 .v7-tagline { right: 6%; top: auto; bottom: 240px; font-size: 10px; }
  .hero-v7 .v7-bio { font-size: 9.5px; top: auto; bottom: 200px; max-width: 90%; }
  .hero-v7 .v7-marquee-item { font-size: 40px; padding-left: 36px; }
  .hero-v7 .v7-marquee-item::before { font-size: 14px; }
}

/* ═══════════════════════════════════════════════ */
:root[data-hero="v6"] body { background: #ffffff; color: #051A24; }

.hero-v6 {
  position: relative;
  min-height: 100vh;
  background: #ffffff;
  color: #051A24;
  overflow: hidden;
  padding: 96px 24px 0;
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  font-feature-settings: 'ss01', 'ss02';
}
.hero-v6 .v6-inner {
  max-width: 480px;
  margin: 40px auto 0;
  padding: 0 8px;
  text-align: left;
}

/* fade-in stagger */
@keyframes v6-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.v6-fade {
  opacity: 0;
  animation: v6-fade-up .9s cubic-bezier(.2,.7,.2,1) forwards;
}

.hero-v6 .v6-logo {
  font-family: 'PT Serif', 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -.02em;
  color: #051A24;
  margin-bottom: 20px;
  line-height: 1;
}

.hero-v6 .v6-tagline {
  font-family: 'IBM Plex Mono', 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0;
  color: #051A24;
  opacity: .8;
  margin-bottom: 14px;
}

.hero-v6 .v6-heading {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 46px);
  line-height: 1.08;
  letter-spacing: -.025em;
  color: #0D212C;
  margin: 0 0 24px;
  text-wrap: balance;
}
.hero-v6 .v6-line { display: block; }
.hero-v6 .v6-serif {
  font-family: 'PT Serif', 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
}

.hero-v6 .v6-body {
  display: flex; flex-direction: column; gap: 20px;
  margin: 24px 0 28px;
}
.hero-v6 .v6-body p {
  font-size: 15.5px;
  line-height: 1.55;
  color: #051A24;
  margin: 0;
  font-weight: 400;
}

.hero-v6 .v6-ctas {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.hero-v6 .v6-btn {
  display: inline-flex; align-items: center;
  padding: 13px 26px;
  border-radius: 100px;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: -.005em;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s;
  cursor: pointer;
  border: none;
}
.hero-v6 .v6-btn-primary {
  background: #051A24; color: #fff;
  box-shadow:
    0 1px 2px 0 rgba(5,26,36,.1),
    0 4px 4px 0 rgba(5,26,36,.09),
    0 9px 6px 0 rgba(5,26,36,.05),
    inset 0 2px 8px 0 rgba(255,255,255,.5);
}
.hero-v6 .v6-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -6px rgba(5,26,36,.35), inset 0 2px 8px 0 rgba(255,255,255,.5); }
.hero-v6 .v6-btn-secondary {
  background: #fff; color: #051A24;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.05), 0 4px 30px rgba(0,0,0,.08);
}
.hero-v6 .v6-btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 0 0 .5px rgba(0,0,0,.08), 0 8px 40px rgba(0,0,0,.14); }

.hero-v6 .v6-avail {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'IBM Plex Mono', 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: #051A24; opacity: .65;
  margin-top: 4px;
}
.hero-v6 .v6-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #00b261; box-shadow: 0 0 8px rgba(0,178,97,.6);
  animation: pulse 2s infinite;
}

/* MARQUEE */
.hero-v6 .v6-marquee {
  margin-top: 64px;
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.hero-v6 .v6-marquee-track {
  display: flex; gap: 18px;
  width: max-content;
  animation: v6-marquee 38s linear infinite;
  padding: 8px 0 24px;
}
@keyframes v6-marquee { to { transform: translateX(-50%); } }

.hero-v6 .v6-thumb {
  flex: 0 0 auto;
  width: 280px;
  border-radius: 18px;
  overflow: hidden;
  background: #f4f5f7;
  box-shadow: 0 12px 36px -10px rgba(5,26,36,.18), 0 2px 6px -2px rgba(5,26,36,.08);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.hero-v6 .v6-thumb:hover { transform: translateY(-4px) scale(1.02); }
.hero-v6 .v6-thumb-bg {
  position: relative; aspect-ratio: 4 / 3;
  background:
    radial-gradient(120% 90% at 30% 20%, oklch(70% .18 var(--hue)) 0%, oklch(45% .15 var(--hue)) 60%, oklch(22% .08 var(--hue)) 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-v6 .v6-thumb-glyph {
  position: relative; z-index: 1;
  font-size: 96px; font-family: 'PT Serif', serif;
  color: rgba(255,255,255,.92);
  text-shadow: 0 4px 24px rgba(0,0,0,.3);
  font-style: italic;
}
.hero-v6 .v6-thumb-grid {
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 24px 24px;
  mix-blend-mode: overlay;
}
.hero-v6 .v6-thumb-meta {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 16px 14px;
  background: #fff;
}
.hero-v6 .v6-thumb-title {
  font-family: 'PT Serif', Georgia, serif;
  font-style: italic;
  font-size: 16px;
  color: #0D212C;
  letter-spacing: -.01em;
}
.hero-v6 .v6-thumb-tags {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  color: #051A24; opacity: .55;
  letter-spacing: 0;
}

/* stat — bottom-left */
.hero-v6 .v6-stat {
  position: absolute; left: 5%; bottom: 18%;
  display: flex; flex-direction: column; gap: 4px;
  pointer-events: none;
  will-change: transform;
}
.hero-v6 .v6-stat-num {
  font-family: 'PT Serif', Georgia, serif;
  font-style: italic;
  font-size: 56px;
  color: #0D212C;
  line-height: 1;
}
.hero-v6 .v6-stat-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  color: #051A24; opacity: .55;
  text-transform: uppercase;
  letter-spacing: .08em;
  line-height: 1.4;
}
@media (max-width: 1100px) { .hero-v6 .v6-stat { display: none; } }

/* nav adjustments when v6 hero is on */
:root[data-hero="v6"] .nav { mix-blend-mode: normal; }
:root[data-hero="v6"] .nav .logo,
:root[data-hero="v6"] .nav .nav-links a,
:root[data-hero="v6"] .nav .theme-btn,
:root[data-hero="v6"] .nav .nav-cta { color: #051A24; border-color: rgba(5,26,36,.18); }
:root[data-hero="v6"] .nav .logo-mark { color: #051A24; }
:root[data-hero="v6"] .nav.nav-scrolled { background: rgba(255,255,255,.85); }
:root[data-hero="v6"] .nav .nav-cta:hover { background: #051A24; color: #fff; border-color: #051A24; }

@media (max-width: 760px) {
  .hero-v6 { padding: 80px 20px 0; }
  .hero-v6 .v6-inner { margin-top: 16px; }
  .hero-v6 .v6-heading { font-size: clamp(28px, 8vw, 36px); }
  .hero-v6 .v6-thumb { width: 220px; }
  .hero-v6 .v6-marquee-track { animation-duration: 22s; }
}

@media (max-width: 900px) {
  .section { padding: 80px 20px; }
  .hero { padding: 0 20px; }
  .hero-meta-tl, .hero-meta-tr { display: none; }
  .hero-meta-bl, .hero-meta-br { bottom: 20px; }
  .hero-meta-bl { left: 20px; }
  .hero-meta-br { right: 20px; }
  .nav-scrolled { padding: 12px 20px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 40px; }
}
