:root {
  --bg: #0a0a0c;
  --bg-2: #08080a;
  --fg: #f4ede0;
  --fg-dim: rgba(244, 237, 224, 0.55);
  --fg-faint: rgba(244, 237, 224, 0.25);
  --fg-mute: rgba(244, 237, 224, 0.12);
  --amber: #d9a86c;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Cormorant Garamond', serif;
  cursor: none;
}

html {
  /* scroll-behavior managed by scroll-snap.js */
}

body {
  overflow-x: hidden;
  background: #050405;
}

body.locked {
  overflow: hidden;
  height: 100vh;
}

/* ============================================================
   MESH GRADIENT BACKGROUND
   Quiet, dark, animated. Warms up (more red) as user scrolls
   into Section 1 via --mesh-heat: 0..1.
   Slight mouse parallax via --mesh-mx / --mesh-my.
   ============================================================ */
#mesh-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  --mesh-heat: 0;
  --mesh-mx: 50%;
  --mesh-my: 50%;
  background:
    radial-gradient(ellipse 60% 45% at var(--mesh-mx) var(--mesh-my),
      rgba(220, 70, 40, calc(0.05 + var(--mesh-heat) * 0.18)) 0%,
      transparent 55%),
    radial-gradient(ellipse 50% 50% at 18% 28%, rgba(180, 50, 30, calc(0.10 + var(--mesh-heat) * 0.18)) 0%, transparent 55%),
    radial-gradient(ellipse 55% 50% at 82% 70%, rgba(160, 40, 30, calc(0.12 + var(--mesh-heat) * 0.20)) 0%, transparent 55%),
    radial-gradient(ellipse 45% 40% at 70% 18%, rgba(120, 30, 60, calc(0.10 + var(--mesh-heat) * 0.10)) 0%, transparent 60%),
    radial-gradient(ellipse 80% 55% at 50% 100%, rgba(70, 18, 12, calc(0.45 + var(--mesh-heat) * 0.25)) 0%, transparent 60%),
    linear-gradient(180deg, #0a0507 0%, #060304 100%);
  filter: saturate(1.05);
  transition: filter 1s ease;
}

#mesh-layer::before {
  /* slow drifting bloom layer */
  content: '';
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 28% 28% at 30% 40%, rgba(255, 100, 50, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse 24% 28% at 70% 60%, rgba(200, 60, 30, 0.10) 0%, transparent 50%);
  filter: blur(40px);
  animation: mesh-drift 22s ease-in-out infinite;
  opacity: calc(0.5 + var(--mesh-heat) * 0.5);
}

#mesh-layer::after {
  /* film grain */
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  opacity: 0.10;
  mix-blend-mode: overlay;
  pointer-events: none;
}

@keyframes mesh-drift {

  0%,
  100% {
    transform: translate(0, 0);
  }

  33% {
    transform: translate(-30px, 18px);
  }

  66% {
    transform: translate(20px, -22px);
  }
}

/* Editorial frame markers — subtle frame around the viewport */
#editorial-frame {
  position: fixed;
  inset: 28px;
  z-index: 1;
  pointer-events: none;
  border: 1px solid rgba(246, 241, 234, 0.05);
}

#editorial-frame::before,
#editorial-frame::after {
  content: '';
  position: absolute;
  background: rgba(246, 241, 234, 0.18);
}

#editorial-frame::before {
  top: 0;
  left: 50%;
  width: 1px;
  height: 10px;
}

#editorial-frame::after {
  bottom: 0;
  left: 50%;
  width: 1px;
  height: 10px;
}

#scene {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

#scene canvas {
  display: block;
}

#cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(244, 237, 224, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 200;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

#cursor::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 2px;
  height: 2px;
  background: var(--fg);
  border-radius: 50%;
}

/* Loader chrome */
.loader-hud {
  position: fixed;
  z-index: 50;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.loader-hud.hidden {
  opacity: 0;
}

.loader-hud--tl {
  top: 32px;
  left: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.loader-hud--tr {
  top: 32px;
  right: 32px;
}

.loader-hud .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }
}

.progress {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: min(420px, 60vw);
  z-index: 50;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.progress.hidden {
  opacity: 0;
}

.progress__track {
  height: 1px;
  background: var(--fg-mute);
  position: relative;
  overflow: hidden;
}

.progress__bar {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, transparent, var(--fg-dim), var(--fg));
  transition: width 0.1s linear;
}

.progress__meta {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

/* Hero */
.hero {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease 0.1s;
  --hero-fade: 1;
  --hero-scale: 1;
  --hero-blur: 0px;
  --hero-text-ty: 0px;
  --hero-photo-ty: 0px;
}

.hero.visible {
  opacity: 1;
}

/* Hero translates up + fades as you scroll past it (driven by JS) */
.hero.scrolling {
  opacity: var(--hero-fade);
  transform: scale(var(--hero-scale));
  filter: blur(var(--hero-blur));
  transition: none;
}

.hero.scrolling .hero__left {
  transform: translateY(var(--hero-text-ty));
}

.hero.scrolling .hero__right {
  transform: translateY(var(--hero-photo-ty));
}

.corner {
  position: fixed;
  z-index: 40;
  width: 22px;
  height: 22px;
  border-color: var(--fg-faint);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.6s ease 0.4s;
}

.corner.visible {
  opacity: 1;
}

.corner--tl {
  top: 24px;
  left: 24px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.corner--tr {
  top: 24px;
  right: 24px;
  border-top: 1px solid;
  border-right: 1px solid;
}

.corner--bl {
  bottom: 24px;
  left: 24px;
  border-bottom: 1px solid;
  border-left: 1px solid;
}

.corner--br {
  bottom: 24px;
  right: 24px;
  border-bottom: 1px solid;
  border-right: 1px solid;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 32px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease 0.5s;
}

.topbar.visible {
  opacity: 1;
}

.topbar>* {
  pointer-events: auto;
}

.topbar__brand {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar__brand .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
}

.topbar__nav {
  display: flex;
  gap: 32px;
}

.topbar__nav a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 4px;
}

.topbar__nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--amber);
  transition: width 0.3s ease;
}

.topbar__nav a:hover {
  color: var(--fg);
}

.topbar__nav a:hover::after {
  width: 100%;
}

.hero__grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  padding: 0 96px;
  gap: 80px;
}

.hero__left {
  position: relative;
  padding-top: 40px;
}

/* The real <h1> sits exactly where the particles will land.
   It's invisible during the loader; once particles arrive we
   cross-fade: text in, particles out. */
.hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(64px, 8vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: 0 0 28px;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero__title.visible {
  opacity: 1;
}

.hero__role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 18px;
  opacity: 0;
  transition: opacity 1s ease 0.3s;
}

.hero.visible .hero__role {
  opacity: 1;
}

.hero__divider {
  width: 48px;
  height: 1px;
  background: var(--fg-faint);
  margin-bottom: 18px;
  opacity: 0;
  transition: opacity 1s ease 0.4s;
}

.hero.visible .hero__divider {
  opacity: 1;
}

.hero__lede {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  line-height: 1.45;
  color: var(--fg-dim);
  max-width: 460px;
  margin-bottom: 36px;
  opacity: 0;
  transition: opacity 1s ease 0.5s;
}

.hero.visible .hero__lede {
  opacity: 1;
}

.hero__meta {
  display: flex;
  gap: 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-faint);
  opacity: 0;
  transition: opacity 1s ease 0.7s;
}

.hero.visible .hero__meta {
  opacity: 1;
}

.hero__meta span strong {
  display: block;
  color: var(--fg-dim);
  font-weight: 400;
  margin-bottom: 4px;
}

.hero__right {
  position: relative;
  height: min(560px, 70vh);
  align-self: center;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.4s ease 0.4s, transform 1.4s ease 0.4s;
}

.hero.visible .hero__right {
  opacity: 1;
  transform: translateY(0);
}

.photo {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.photo__inner {
  position: absolute;
  inset: 0;
  background:
    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 0.96  0 0 0 0 0.93  0 0 0 0 0.88  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.2'/></svg>"),
    radial-gradient(ellipse at 35% 30%, rgba(217, 168, 108, 0.18) 0%, transparent 55%),
    linear-gradient(160deg, #1c1a18 0%, #131214 50%, #0c0c0e 100%);
  background-size: 240px 240px, 100% 100%, 100% 100%;
}

.photo__subject {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.photo__subject svg {
  width: 76%;
  height: auto;
  margin-bottom: -4%;
  opacity: 0.85;
}

.photo__dust {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.85;
}

.photo__frame {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(244, 237, 224, 0.08);
  pointer-events: none;
}

.photo__caption {
  position: absolute;
  bottom: -32px;
  left: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

.photo__index {
  position: absolute;
  top: -28px;
  right: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--fg-faint);
  z-index: 3;
}

.photo__hint {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 16px;
  background: linear-gradient(0deg, rgba(10, 10, 12, 0.85), transparent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--fg-faint);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.scroll-cue {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease 0.9s;
}

.scroll-cue.visible {
  opacity: 1;
}

.scroll-cue__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

.scroll-cue__line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--fg-faint), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-cue__line::after {
  content: '';
  position: absolute;
  top: -24px;
  left: 0;
  width: 1px;
  height: 24px;
  background: linear-gradient(to bottom, transparent, var(--fg));
  animation: scroll-pulse 2.2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0% {
    top: -24px;
  }

  100% {
    top: 36px;
  }
}

/* ============================================================
   Page scaffold: hero is fixed; sections scroll on top of scene
   ============================================================ */
.page {
  position: relative;
  z-index: 20;
}

.spacer-hero {
  height: 180vh;
  pointer-events: none;
}

.section {
  position: relative;
  z-index: 25;
  min-height: 100vh;
  padding: 140px 96px 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section__index {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 14px;
  display: flex;
  gap: 18px;
  align-items: center;
}

.section__index::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--fg-faint);
}

.section__eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(230, 57, 70, 0.85);
  margin-bottom: 22px;
}

.section__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(48px, 6vw, 96px);
  line-height: 1.0;
  letter-spacing: -0.015em;
  margin: 0 0 32px;
  max-width: 880px;
  color: var(--fg);
}

.section__title em {
  font-style: italic;
  color: rgba(230, 57, 70, 0.9);
}

.section__lede {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  line-height: 1.5;
  color: var(--fg-dim);
  max-width: 560px;
  margin-bottom: 64px;
}

/* Section 1 — Telangana, with the fist photo as centerpiece (editorial).
   Slides up into view as user scrolls (controlled via --sec-reveal: 0..1) */
.section--telangana {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 80px;
  align-items: center;
  /* Lock to exactly one viewport — prevents sec2 from bleeding in below */
  height: 100vh;
  overflow: hidden;
  /* Reduce padding so fist-stage + padding always fits in 100vh */
  padding: 100px 96px 80px;
  --sec-reveal: 0;
  --sec-scale: 0.95;
  opacity: var(--sec-reveal);
  transition: none;
}

.section--telangana .section__copy,
.section--telangana .fist-stage {
  transform: translateY(calc((1 - var(--sec-reveal)) * 120px)) scale(var(--sec-scale));
  filter: blur(calc((1 - var(--sec-reveal)) * 12px));
  will-change: transform, filter;
}

.section--telangana .section__copy {
  padding-right: 40px;
}

/* Editorial fist photo composition */
.section--telangana .fist-stage {
  position: relative;
  /* Cap height so fist + section padding (180px total) always fits in 100vh */
  height: calc(100vh - 200px);
  max-height: 72vh;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1500px;
}

/* Outer frame — editorial photo plate */
.fist-plate {
  position: relative;
  width: min(560px, 100%);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  transform-style: preserve-3d;
}

/* Plate corner ticks */
.fist-plate__corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(246, 241, 234, 0.22);
}

.fist-plate__corner.tl {
  top: 0;
  left: 0;
  border-top: 1px solid;
  border-left: 1px solid;
}

.fist-plate__corner.tr {
  top: 0;
  right: 0;
  border-top: 1px solid;
  border-right: 1px solid;
}

.fist-plate__corner.bl {
  bottom: 0;
  left: 0;
  border-bottom: 1px solid;
  border-left: 1px solid;
}

.fist-plate__corner.br {
  bottom: 0;
  right: 0;
  border-bottom: 1px solid;
  border-right: 1px solid;
}

/* Frame metadata strips */
.fist-plate__meta {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(246, 241, 234, 0.42);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.fist-plate__meta.tl {
  top: -28px;
  left: 0;
}

.fist-plate__meta.tr {
  top: -28px;
  right: 0;
}

.fist-plate__meta.bl {
  bottom: -28px;
  left: 0;
}

.fist-plate__meta.br {
  bottom: -28px;
  right: 0;
}

.fist-plate__meta .pip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(230, 57, 70, 0.85);
  box-shadow: 0 0 10px rgba(230, 57, 70, 0.6);
}

/* The actual fist image */
#fist-photo {
  width: 100%;
  max-width: 480px;
  height: auto;
  position: relative;
  z-index: 3;
  filter:
    drop-shadow(0 0 60px rgba(255, 100, 30, 0.35)) drop-shadow(0 0 140px rgba(255, 60, 20, 0.22)) contrast(1.05) saturate(1.05);
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

/* Soft warm glow behind the fist (separate so it can pulse) */
#fist-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 80%;
  height: 80%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 50% 55%, rgba(255, 120, 40, 0.55) 0%, rgba(220, 60, 20, 0.25) 30%, transparent 65%);
  filter: blur(36px);
  z-index: 1;
  pointer-events: none;
  animation: glow-pulse 4.5s ease-in-out infinite;
}

@keyframes glow-pulse {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.85;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.06);
    opacity: 1;
  }
}

/* Crosshair behind subject */
.fist-plate__cross {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 60px;
  background: rgba(246, 241, 234, 0.12);
  transform: translate(-50%, -50%);
  z-index: 2;
}

.fist-plate__cross::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
  width: 1px;
  height: 60px;
  background: rgba(246, 241, 234, 0.12);
}

.fist-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
  margin-top: 48px;
  max-width: 560px;
}

.fist-meta__item {
  border-top: 1px solid var(--fg-mute);
  padding-top: 14px;
}

.fist-meta__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 8px;
}

.fist-meta__value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--fg);
  letter-spacing: -0.005em;
}

.fist-meta__value em {
  font-style: italic;
  color: rgba(230, 57, 70, 0.9);
}

@media (max-width: 1100px) {
  .section--telangana {
    grid-template-columns: 1fr;
    /* Still exactly one viewport — stacked layout, overflow:hidden already set */
    padding: 80px 96px 60px;
  }

  .section--telangana .fist-stage {
    height: 44vh;
    min-height: 300px;
  }
}

@media (max-width: 900px) {
  .section {
    padding: 100px 32px 80px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    padding: 100px 32px 60px;
    gap: 32px;
    align-content: start;
  }

  .hero__right {
    height: 50vh;
  }

  .hero__meta {
    flex-wrap: wrap;
    gap: 14px 22px;
  }

  .topbar {
    padding: 24px 32px;
  }

  .topbar__nav {
    gap: 18px;
  }
}

/* ============================================================
   TOUCH DEVICE — restore system cursor
   ============================================================ */
@media (hover: none) and (pointer: coarse) {

  html,
  body {
    cursor: auto;
  }

  #cursor {
    display: none;
  }
}

/* ============================================================
   MOBILE NAV — hamburger button
   ============================================================ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  pointer-events: auto;
}

.nav-hamburger span {
  display: block;
  height: 1px;
  background: var(--fg-dim);
  transform-origin: center;
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.28s ease,
    width 0.3s ease;
}

.nav-hamburger span:nth-child(1) {
  width: 22px;
}

.nav-hamburger span:nth-child(2) {
  width: 16px;
}

.nav-hamburger span:nth-child(3) {
  width: 22px;
}

.nav-hamburger.open span:nth-child(1) {
  width: 22px;
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.nav-hamburger.open span:nth-child(3) {
  width: 22px;
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   MOBILE NAV — full-screen overlay
   ============================================================ */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(5, 4, 5, 0.97);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.nav-overlay__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.nav-overlay__item {
  overflow: hidden;
}

.nav-overlay__link {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(52px, 14vw, 80px);
  line-height: 1.15;
  color: var(--fg-dim);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: block;
  transform: translateY(110%);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.3s ease;
}

.nav-overlay.open .nav-overlay__link {
  transform: translateY(0);
}

/* Items are now direct children 1-4 (no interleaved divider elements) */
.nav-overlay__item:nth-child(1) .nav-overlay__link {
  transition-delay: 0.05s;
}

.nav-overlay__item:nth-child(2) .nav-overlay__link {
  transition-delay: 0.12s;
}

.nav-overlay__item:nth-child(3) .nav-overlay__link {
  transition-delay: 0.19s;
}

.nav-overlay__item:nth-child(4) .nav-overlay__link {
  transition-delay: 0.26s;
}

.nav-overlay__link:hover {
  color: var(--fg);
}

/* CSS divider between items — replaces the HTML .nav-overlay__divider elements
   so nth-child(1-4) now correctly maps to Work/About/Process/Contact */
.nav-overlay__item:not(:last-child)::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--fg-faint), transparent);
  margin: 6px auto;
}

.nav-overlay__foot {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--fg-faint);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.4s ease 0.25s;
}

.nav-overlay.open .nav-overlay__foot {
  opacity: 1;
}

/* ============================================================
   RESPONSIVE — tablets / large phones (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  #editorial-frame {
    inset: 16px;
  }

  .corner--tl {
    top: 16px;
    left: 16px;
  }

  .corner--tr {
    top: 16px;
    right: 16px;
  }

  .corner--bl {
    bottom: 16px;
    left: 16px;
  }

  .corner--br {
    bottom: 16px;
    right: 16px;
  }

  .loader-hud--tl {
    top: 20px;
    left: 20px;
  }

  .loader-hud--tr {
    top: 20px;
    right: 20px;
    font-size: 9px;
  }

  .progress {
    width: min(340px, 78vw);
    bottom: 18px;
  }

  .scroll-cue {
    bottom: 18px;
  }

  .topbar {
    padding: 20px 24px;
  }

  .topbar__nav {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero__grid {
    display: flex;
    flex-direction: column;
    padding: 78px 24px 28px;
    gap: 24px;
    height: 100%;
    overflow: hidden;
  }

  /* prevent invisible h1 or long text from widening the grid column */
  .hero__left {
    padding-top: 18vh;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  .hero__left>* {
    order: 1;
  }

  .hero__title {
    order: 2;
    font-size: clamp(52px, 14vw, 90px);
    margin: auto 0;
    line-height: 0.93;
  }

  .hero__role {
    font-size: 10px;
    letter-spacing: 0.25em;
    /* reduce letter-spacing so text wraps less aggressively */
  }

  .hero__lede {
    font-size: 18px;
    max-width: 100%;
    margin-bottom: 20px;
  }

  .hero__meta {
    display: none;
  }

  .hero__right {
    flex: 1;
    min-height: 0;
    width: 100%;
  }
}

/* ============================================================
   LANDSCAPE MOBILE — switch back to 2-col when height is short
   ============================================================ */
@media (max-height: 500px) and (orientation: landscape) {
  .hero__grid {
    grid-template-columns: 1.15fr 1fr;
    padding: 58px 28px 14px;
    gap: 24px;
    align-items: start;
    align-content: start;
    overflow: hidden;
  }

  .hero__left {
    min-width: 0;
    overflow: hidden;
    padding-top: 4px;
  }

  .hero__title {
    font-size: clamp(34px, 6vw, 56px);
    margin-bottom: 8px;
  }

  .hero__role {
    font-size: 9px;
    letter-spacing: 0.2em;
    margin-bottom: 8px;
  }

  .hero__divider {
    margin-bottom: 8px;
  }

  .hero__lede {
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero__meta {
    display: none;
  }

  .hero__right {
    height: calc(100vh - 80px);
  }

  .topbar {
    padding: 14px 24px;
  }

  .topbar__nav {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  #editorial-frame {
    inset: 10px;
  }

  .corner--tl {
    top: 10px;
    left: 10px;
  }

  .corner--tr {
    top: 10px;
    right: 10px;
  }

  .corner--bl {
    bottom: 10px;
    left: 10px;
  }

  .corner--br {
    bottom: 10px;
    right: 10px;
  }
}

/* ============================================================
   RESPONSIVE — phones (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  #editorial-frame {
    inset: 12px;
  }

  .corner--tl {
    top: 12px;
    left: 12px;
  }

  .corner--tr {
    top: 12px;
    right: 12px;
  }

  .corner--bl {
    bottom: 12px;
    left: 12px;
  }

  .corner--br {
    bottom: 12px;
    right: 12px;
  }

  .topbar {
    padding: 16px 18px;
  }

  .hero__grid {
    padding: 64px 18px 24px;
    gap: 12px;
    overflow: hidden;
  }

  .hero__left {
    padding-top: 15vh;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  .hero__left>* {
    order: 1;
  }

  .hero__title {
    order: 2;
    margin: auto 0;
    font-size: clamp(44px, 12vw, 68px);
  }

  .hero__role {
    font-size: 9px;
    letter-spacing: 0.28em;
    margin-bottom: 12px;
  }

  .hero__divider {
    margin-bottom: 12px;
  }

  .hero__lede {
    font-size: 15px;
    margin-bottom: 14px;
    line-height: 1.55;
  }

  .hero__meta {
    gap: 10px 14px;
    font-size: 9px;
    letter-spacing: 0.14em;
    margin-bottom: 16px;
  }

  .hero__right {
    flex: 1;
    min-height: 0;
    height: auto;
  }

  .section {
    padding: 60px 18px 48px;
  }

  .section--telangana {
    gap: 30px;
    padding: 60px 18px 48px;
  }

  .section--telangana .section__copy {
    padding-right: 0;
  }

  .section--telangana .fist-stage {
    height: clamp(260px, 46vh, 400px);
    min-height: 260px;
  }

  .section__index {
    font-size: 10px;
  }

  .section__title {
    font-size: clamp(32px, 9vw, 56px);
  }

  .section__lede {
    font-size: 15px;
    max-width: 100%;
    margin-bottom: 32px;
  }

  .fist-plate__meta {
    font-size: 8px;
    letter-spacing: 0.16em;
  }

  .fist-plate__meta.tl {
    top: -18px;
  }

  .fist-plate__meta.bl {
    bottom: -18px;
  }

  .fist-plate__meta.tr,
  .fist-plate__meta.br {
    display: none;
  }

  .fist-meta {
    gap: 14px 18px;
    margin-top: 24px;
  }

  .fist-meta__value {
    font-size: 17px;
  }

  .progress {
    width: min(270px, 82vw);
    bottom: 16px;
  }

  .scroll-cue {
    bottom: 16px;
  }
}

/* ============================================================
   RESPONSIVE — very small phones (≤ 360px)
   ============================================================ */
@media (max-width: 360px) {
  .topbar {
    padding: 14px 16px;
  }

  .hero__grid {
    padding: 58px 16px 20px;
  }

  .hero__title {
    font-size: 40px;
  }

  .hero__lede {
    font-size: 14px;
  }

  .nav-overlay__link {
    font-size: 46px;
  }
}

/* ============================================================
   SECTION 2 — VENTURES (Full-Viewport Horizontal Parallax)
   One card per viewport width. The section is pinned while
   the ventures-track slides left card by card on scroll.
   ============================================================ */
.section--ventures {
  padding: 0;
  overflow: hidden;
  display: block;
  /* Solid dark base: covers the fixed mesh-layer / smoke shader beneath */
  background: #050405;
  position: relative;
  /* No z-index fight — sits naturally in page flow at z-index 25 */
}

/* Starts invisible; GSAP fades it in as Section 1 exits */
#ventures-viewport {
  opacity: 0;
}

/* The pinned viewport window */
.ventures-viewport {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 25;
  /* same level as sections — covers mesh-layer */
}

/* The horizontal strip: 4 panels × 100vw */
.ventures-track {
  display: flex;
  flex-wrap: nowrap;
  height: 100vh;
  will-change: transform;
}

/* Each panel is exactly one viewport wide */
.venture-panel {
  position: relative;
  flex: 0 0 100vw;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* ── Per-panel unique backgrounds (deep dark, no red) ── */
.venture-panel[data-venture="it"] {
  background: linear-gradient(135deg, #050d18 0%, #091525 40%, #060e1c 100%);
}

.venture-panel[data-venture="civil"] {
  background: linear-gradient(135deg, #0d0f0a 0%, #131509 40%, #0a0c07 100%);
}

.venture-panel[data-venture="hospitality"] {
  background: linear-gradient(135deg, #120d08 0%, #1c1208 40%, #130d07 100%);
}

.venture-panel[data-venture="media"] {
  background: linear-gradient(135deg, #0d0814 0%, #130a1e 40%, #0a0611 100%);
}

/* ── Two-column inner layout ── */
.venture-panel__inner {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 100%;
  height: 100%;
  gap: 0;
}

/* Full-panel background pattern layer */
.venture-panel__pattern {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.07;
}

/* IT Pattern — fine dot grid */
.venture-panel[data-venture="it"] .venture-panel__pattern {
  background-image: radial-gradient(rgba(244, 237, 224, 0.8) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Civil Works — architect blueprint grid */
.venture-panel[data-venture="civil"] .venture-panel__pattern {
  background-image:
    linear-gradient(rgba(244, 237, 224, 0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 237, 224, 0.6) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.06;
}

/* Hospitality — warm amber diagonal weave */
.venture-panel[data-venture="hospitality"] .venture-panel__pattern {
  background-image:
    linear-gradient(45deg, rgba(217, 168, 108, 0.5) 1px, transparent 1px),
    linear-gradient(-45deg, rgba(217, 168, 108, 0.5) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.1;
}

/* Media — bold diagonal lines */
.venture-panel[data-venture="media"] .venture-panel__pattern {
  background: repeating-linear-gradient(-60deg,
      transparent,
      transparent 24px,
      rgba(244, 237, 224, 0.08) 24px,
      rgba(244, 237, 224, 0.08) 25px);
  opacity: 1;
}

/* Ambient color bloom behind each panel */
.venture-panel__bloom {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.venture-panel[data-venture="it"] .venture-panel__bloom {
  background: radial-gradient(ellipse 60% 60% at 80% 50%,
      rgba(100, 200, 255, 0.06) 0%, transparent 70%);
}

.venture-panel[data-venture="civil"] .venture-panel__bloom {
  background: radial-gradient(ellipse 60% 60% at 20% 60%,
      rgba(200, 180, 140, 0.07) 0%, transparent 70%);
}

.venture-panel[data-venture="hospitality"] .venture-panel__bloom {
  background: radial-gradient(ellipse 70% 60% at 75% 40%,
      rgba(217, 168, 108, 0.1) 0%, transparent 70%);
}

.venture-panel[data-venture="media"] .venture-panel__bloom {
  background: radial-gradient(ellipse 60% 60% at 30% 55%,
      rgba(180, 80, 160, 0.07) 0%, transparent 70%);
}

/* Giant decorative background number — parallax moves slower */
.venture-panel__bg-num {
  position: absolute;
  right: -0.05em;
  bottom: -0.2em;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(200px, 28vw, 380px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 237, 224, 0.05);
  text-stroke: 1px rgba(244, 237, 224, 0.05);
  pointer-events: none;
  user-select: none;
  z-index: 3;
  will-change: transform;
}

/* Left content column */
.venture-panel__content {
  position: relative;
  z-index: 10;
  padding: 0 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  will-change: transform;
}

/* Right visual column */
.venture-panel__visual {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 80px 48px 0;
  will-change: transform;
}

.venture-panel__img-frame {
  position: relative;
  width: 100%;
  height: 75vh;
  overflow: hidden;
  border: 1px solid rgba(244, 237, 224, 0.08);
}

.venture-panel__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 8s ease;
  filter: saturate(0.7) brightness(0.85);
}

.venture-panel__img-frame:hover .venture-panel__img {
  transform: scale(1.04);
}

/* Gradient overlay on image — blends edge into panel bg */
.venture-panel__img-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.venture-panel[data-venture="it"] .venture-panel__img-overlay {
  background: linear-gradient(to right, #050d18 0%, transparent 30%), linear-gradient(to top, #050d18 0%, transparent 25%);
}

.venture-panel[data-venture="civil"] .venture-panel__img-overlay {
  background: linear-gradient(to right, #0d0f0a 0%, transparent 30%), linear-gradient(to top, #0d0f0a 0%, transparent 25%);
}

.venture-panel[data-venture="hospitality"] .venture-panel__img-overlay {
  background: linear-gradient(to right, #120d08 0%, transparent 30%), linear-gradient(to top, #120d08 0%, transparent 25%);
}

.venture-panel[data-venture="media"] .venture-panel__img-overlay {
  background: linear-gradient(to right, #0d0814 0%, transparent 30%), linear-gradient(to top, #0d0814 0%, transparent 25%);
}

/* Image caption strip */
.venture-panel__img-caption {
  position: absolute;
  bottom: 16px;
  right: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(244, 237, 224, 0.3);
  pointer-events: none;
}

/* Breadcrumb progress */
.venture-panel__eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  will-change: transform;
}

.venture-panel__eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--amber);
  flex-shrink: 0;
}

.venture-panel__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--amber);
  margin-bottom: 28px;
  opacity: 0.7;
  will-change: transform;
}

/* Main heading — parallax at a different speed */
.venture-panel__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(60px, 8.5vw, 130px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin: 0 0 36px;
  will-change: transform;
}

.venture-panel__title em {
  font-style: italic;
  color: var(--amber);
}

.venture-panel__divider {
  width: 48px;
  height: 1px;
  background: var(--fg-mute);
  margin-bottom: 28px;
}

.venture-panel__desc {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 20px;
  line-height: 1.55;
  color: var(--fg-dim);
  max-width: 440px;
  margin-bottom: 32px;
  will-change: transform;
}

/* Service tag pills */
.venture-panel__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  will-change: transform;
}

.venture-panel__tags li {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-faint);
  border: 1px solid rgba(244, 237, 224, 0.1);
  padding: 6px 14px;
  border-radius: 1px;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.venture-panel__tags li:hover {
  border-color: var(--amber);
  color: var(--amber);
}

/* Vertical progress dots — fixed in panel */
.ventures-progress {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ventures-progress__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--fg-faint);
  transition: background 0.3s ease, transform 0.3s ease;
}

.ventures-progress__dot.active {
  background: var(--amber);
  transform: scale(1.8);
  box-shadow: 0 0 8px var(--amber);
}

/* Horizontal scroll hint */
.ventures-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 96px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--fg-faint);
  opacity: 1;
  transition: opacity 0.4s ease;
}

.ventures-scroll-hint__arrow {
  display: flex;
  gap: 3px;
  align-items: center;
}

.ventures-scroll-hint__arrow span {
  display: block;
  width: 5px;
  height: 1px;
  background: var(--fg-faint);
  animation: hint-slide 1.8s ease-in-out infinite;
}

.ventures-scroll-hint__arrow span:nth-child(2) {
  animation-delay: 0.15s;
}

.ventures-scroll-hint__arrow span:nth-child(3) {
  animation-delay: 0.30s;
}

@keyframes hint-slide {

  0%,
  100% {
    opacity: 0.2;
    transform: translateX(0);
  }

  50% {
    opacity: 1;
    transform: translateX(4px);
  }
}

/* ---- Mobile: vertical stacked layout ---- */
@media (max-width: 900px) {
  .venture-panel__inner {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    overflow: hidden;
  }

  .venture-panel__content {
    padding: 80px 32px 24px;
  }

  .venture-panel__visual {
    padding: 0 32px 40px;
    height: 40vh;
  }

  .venture-panel__img-frame {
    height: 100%;
  }

  .venture-panel__title {
    font-size: clamp(48px, 12vw, 80px);
  }

  .venture-panel__desc {
    font-size: 17px;
    max-width: 100%;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  /* Horizontal carousel layout is preserved on mobile — GSAP drives it.
     Only content-level spacing is adjusted below. */

  /* Specificity fix: base rule uses #id selector (0,1,0,0); class selector
     below would lose. Use #id here so opacity:1 wins before GSAP fires. */
  #ventures-viewport {
    opacity: 1;
  }

  .venture-panel__inner {
    grid-template-columns: 1fr;
    height: 100%;
  }

  .venture-panel__content {
    padding: 80px 24px 20px;
  }

  .venture-panel__visual {
    padding: 0 24px 48px;
    height: 38vh;
    min-height: 220px;
  }

  .venture-panel__img-frame {
    height: 100%;
  }

  .venture-panel__title {
    font-size: clamp(44px, 14vw, 72px);
  }

  .venture-panel__tags {
    display: none;
  }

  .ventures-progress {
    right: 20px;
  }

  .ventures-scroll-hint {
    left: 24px;
    bottom: 24px;
  }
}