/* ═══════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════ */
:root {
  --navy: #070b12;
  --midnight: #0a0e17;
  --charcoal: #111111;
  --ivory: #f5f1e8;
  --muted: rgba(245, 241, 232, 0.64);
  --quiet: rgba(245, 241, 232, 0.38);
  --gold: #d4a44d;
  --gold-soft: rgba(212, 164, 77, 0.34);

  /* Cursor reveal (driven by JS) */
  --mask-x: 50vw;
  --mask-y: 50vh;
  --mask-size: 0px;
  --mask-inner: 0px;
  --mask-mid: 0px;
  --mask-outer: 0px;
  --mask-opacity: 0;
  --aura-size: 0px;

  /* Portrait parallax (driven by JS) */
  --parallax-x: 0px;
  --parallax-y: 0px;

  /* Learner → Builder transition (driven by JS) */
  --title-progress: 0;

  /* Chapter I scroll transition (driven by JS) */
  --ch1-fade: 1;
  --ch1-scale: 1;
  --ch1-arc-opacity: 0.3;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--navy);
  color: var(--ivory);
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--navy);
  color: var(--ivory);
  font-family: Inter, Arial, sans-serif;
}

button,
a {
  color: inherit;
  font: inherit;
}

/* ═══════════════════════════════════════════
   ENTRY / LOAD ANIMATION
   ═══════════════════════════════════════════ */
[data-loading] .anim-entry {
  opacity: 0;
  transform: translateY(18px);
}

.anim-entry {
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ═══════════════════════════════════════════
   PARTICLE CANVAS
   ═══════════════════════════════════════════ */
#particles {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

/* ═══════════════════════════════════════════
   EXPERIENCE WRAPPER
   ═══════════════════════════════════════════ */
.experience {
  background:
    radial-gradient(circle at 50% 40%, rgba(20, 34, 58, 0.5), transparent 38%),
    linear-gradient(180deg, #05070b 0%, var(--midnight) 58%, #070707 100%);
}

/* ═══════════════════════════════════════════
   CHAPTER I : THE LEARNER — HERO
   ═══════════════════════════════════════════ */
/* Chapter I Wrapper providing the 200vh scroll height */
.ch1-wrapper {
  position: relative;
  height: 140vh;
}

.hero {
  position: sticky;
  top: 0;
  height: 100svh;
  z-index: 1;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  place-items: center;
  padding: clamp(24px, 3vw, 46px);
  background:
    radial-gradient(circle at var(--eye-x, 50%) var(--eye-y, 33%), var(--ch1-ambient-glow, rgba(20, 34, 58, 0.5)), transparent 45%),
    rgba(5, 7, 11, var(--ch1-bg-fade, 0));
  transition: background 0.1s ease;
}

/* Scroll-driven UI elements fading */
.topline,
.name-art,
.chapter-mark,
.side-index,
.scroll-cue {
  opacity: var(--ch1-ui-fade, 1);
  pointer-events: var(--ch1-ui-pe, auto);
}

/* ── Film grain ── */
.grain,
.grain::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.grain {
  z-index: 7;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 42px 42px;
}

.grain::before {
  content: "";
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

/* ── Ambient glow orbs ── */
.ambient {
  position: absolute;
  width: 58vw;
  height: 58vw;
  border-radius: 999px;
  filter: blur(70px);
  opacity: calc(0.32 * var(--ch1-ui-fade, 1));
  pointer-events: none;
  z-index: -2;
  /* GPU Acceleration */
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: opacity;
}

.ambient-left {
  left: -28vw;
  top: 18vh;
  background: #0c2d4c;
}

.ambient-right {
  right: -28vw;
  top: 9vh;
  background: rgba(212, 164, 77, 0.22);
}

/* ── Top bar ── */
.topline {
  position: absolute;
  inset: clamp(22px, 3vw, 42px) clamp(24px, 3vw, 48px) auto;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 20px;
}

/* ── Menu button ── */
.menu-button {
  width: 68px;
  height: 34px;
  border: 0;
  padding: 0;
  background: transparent;
  display: grid;
  grid-template-columns: 18px auto;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  transition: color 0.3s ease;
}

.menu-button:hover {
  color: var(--ivory);
}

.menu-button span {
  grid-column: 1;
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: transform 0.3s ease;
}

.menu-button:hover span:first-child {
  transform: scaleX(0.7);
}

.menu-button:hover span:nth-child(3) {
  transform: scaleX(0.7);
}

.menu-button b {
  grid-column: 2;
  grid-row: 1 / 4;
  font-weight: 500;
}

/* ── Name art with drift ── */
.name-art {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(32px, 6vw, 140px);
  /* Keeps elements beautifully flanking the central portrait */
}

.name-left-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(12px, 2vh, 24px);
  transform: translateY(-5vh) translate3d(0, 0, 0);
  animation: driftLeft 14s ease-in-out infinite;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

.name-left,
.name-right {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(48px, 6.8vw, 108px);
  /* A refined size that doesn't dominate/block the central face */
  font-weight: 600;
  line-height: 0.75;
  letter-spacing: -0.01em;
  color: rgba(245, 241, 232, 0.9);
  text-transform: uppercase;
  text-shadow: 0 16px 58px rgba(0, 0, 0, 0.64);
  backface-visibility: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

.name-right {
  transform: translateY(14vh) translate3d(0, 0, 0);
  animation: driftRight 16s ease-in-out infinite;
}

/* ── Left-aligned Manifesto ── */
.manifesto-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: 320px;
}

.manifesto-sub {
  font-family: Inter, Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.manifesto-body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.manifesto-body span {
  color: var(--quiet);
}

@keyframes driftLeft {

  0%,
  100% {
    transform: translateY(-5vh) translate(0, 0);
  }

  25% {
    transform: translateY(-5vh) translate(3px, -2px);
  }

  50% {
    transform: translateY(-5vh) translate(-1px, 3px);
  }

  75% {
    transform: translateY(-5vh) translate(2px, 1px);
  }
}

@keyframes driftRight {

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

  33% {
    transform: translateY(14vh) translate(-2px, 2px);
  }

  66% {
    transform: translateY(14vh) translate(3px, -1px);
  }
}

/* ── Portrait stage ── */
.portrait-stage {
  position: absolute;
  top: -5vh;
  bottom: -3vh;
  left: -2vw;
  right: -2vw;
  /* Balanced overscan that maintains composition aspect ratio */
  z-index: 4;
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: crosshair;
  /* GPU Acceleration */
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  transform-style: preserve-3d;
  will-change: opacity;
  opacity: var(--ch1-portrait-fade, 1);
  pointer-events: var(--ch1-portrait-pe, auto);
}

.portrait-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 7, 11, 0.88), transparent 22%, transparent 76%, rgba(5, 7, 11, 0.9)),
    linear-gradient(180deg, rgba(5, 7, 11, 0.72), transparent 19%, transparent 68%, rgba(5, 7, 11, 0.86));
}

/* ── Golden arc ── */
.golden-arc {
  position: absolute;
  left: 50%;
  top: 45%;
  width: min(53vw, 720px);
  aspect-ratio: 1;
  /* Subtle celestial crescent/partial eclipse motif rotated by 45deg */
  border: clamp(1px, 0.12vw, 2px) solid rgba(212, 164, 77, 0.24);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  /* Parallax/Scroll-driven scale + GPU Acceleration */
  transform: translate(-50%, -50%) scale(var(--ch1-scale, 1)) rotate(45deg) translateZ(0);
  transform-origin: 50% 33%;
  /* Centered precisely on the eyes */
  box-shadow: 0 0 16px rgba(212, 164, 77, 0.04);
  opacity: var(--ch1-arc-opacity);
  z-index: 1;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

/* ── Portraits ── */
.portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
  /* GPU Acceleration + Parallax + Scroll-driven Zoom locked exactly between base and reveal layers */
  transform: translate(var(--parallax-x), var(--parallax-y)) scale(calc(1.05 * var(--ch1-scale, 1)));
  transform-origin: var(--eye-x, 50%) var(--eye-y, 33%);
  /* Dynamically centers on the eyes */
  backface-visibility: hidden;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.portrait-base {
  z-index: 2;
  filter: contrast(1.04) saturate(0.92);
}

.portrait-reveal {
  z-index: 3;
  opacity: calc(0.96 * var(--mask-opacity, 0));
  filter: saturate(1.03) contrast(1.07);
  -webkit-mask-image: radial-gradient(ellipse at var(--mask-x) var(--mask-y),
      #000 0 var(--mask-inner),
      rgba(0, 0, 0, 0.94) var(--mask-inner),
      rgba(0, 0, 0, 0.54) var(--mask-mid),
      transparent var(--mask-outer));
  mask-image: radial-gradient(ellipse at var(--mask-x) var(--mask-y),
      #000 0 var(--mask-inner),
      rgba(0, 0, 0, 0.94) var(--mask-inner),
      rgba(0, 0, 0, 0.54) var(--mask-mid),
      transparent var(--mask-outer));
}

/* ── Reveal aura (gold glow at cursor) ── */
.reveal-aura {
  position: absolute;
  left: var(--mask-x);
  top: var(--mask-y);
  z-index: 4;
  width: var(--aura-size);
  aspect-ratio: 1;
  border-radius: 49% 51% 46% 54% / 53% 45% 55% 47%;
  opacity: var(--mask-opacity);
  transform: translate(-50%, -50%) rotate(8deg);
  pointer-events: none;
  background: radial-gradient(circle, rgba(212, 164, 77, 0.18), transparent 64%);
  filter: blur(16px);
  mix-blend-mode: screen;
}

/* --- Chapter I Golden Spark --- */
.ch1-spark {
  position: absolute;
  left: var(--eye-x, 50%);
  top: var(--eye-y, 33%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 16px var(--gold), 0 0 8px var(--gold);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
}

.ch1-spark.visible {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  animation: sparkPulse 2s ease-in-out infinite;
}

@keyframes sparkPulse {

  0%,
  100% {
    box-shadow: 0 0 12px var(--gold), 0 0 6px var(--gold);
  }

  50% {
    box-shadow: 0 0 24px var(--gold), 0 0 12px var(--gold);
  }
}

/* ── Chapter mark with title transition ── */
.chapter-mark {
  position: absolute;
  left: 50%;
  bottom: clamp(62px, 8vh, 88px);
  z-index: 8;
  transform: translateX(-50%);
  text-align: center;
  text-transform: uppercase;
}

.chapter-mark p {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.34em;
}

.chapter-mark h1 {
  margin: 0;
  color: var(--ivory);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(24px, 3.2vw, 46px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0.08em;
  position: relative;
}

/* Dual title: Learner fades out, Builder fades in */
.title-learner,
.title-builder {
  display: block;
  transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease;
}

.title-learner {
  opacity: calc(1 - var(--title-progress));
  transform: translateY(calc(var(--title-progress) * -8px));
  filter: blur(calc(var(--title-progress) * 3px));
}

.title-builder {
  position: absolute;
  inset: 0;
  opacity: var(--title-progress);
  transform: translateY(calc((1 - var(--title-progress)) * 8px));
  filter: blur(calc((1 - var(--title-progress)) * 3px));
  color: var(--gold);
}

/* ── Side index ── */
.side-index {
  position: absolute;
  left: clamp(22px, 3vw, 42px);
  top: 50%;
  z-index: 9;
  transform: translateY(-50%);
  display: grid;
  justify-items: center;
  gap: 13px;
  color: var(--quiet);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.side-index i {
  width: 1px;
  height: 92px;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
}

/* ── Scroll cue ── */
.scroll-cue {
  position: absolute;
  left: clamp(24px, 3vw, 48px);
  bottom: clamp(24px, 3vw, 42px);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.13em;
  transition: color 0.3s ease;
}

.scroll-cue:hover {
  color: var(--ivory);
}

.scroll-cue i {
  width: 42px;
  height: 1px;
  background: var(--gold);
  transform-origin: left center;
  animation: breatheLine 2.8s ease-in-out infinite;
}

/* ═══════════════════════════════════════════
   CINEMATIC TRANSITION BRIDGE
   ═══════════════════════════════════════════ */
.cinematic-bridge {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  display: grid;
  place-items: center;
  z-index: 6;
  pointer-events: none;
}

.bridge-text {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(28px, 4.5vw, 56px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
  color: var(--gold);
  max-width: 900px;
  padding-inline: 40px;
  opacity: var(--bridge-fade, 0);
  transform: translateY(var(--bridge-y, 30px)) translateZ(0);
  backface-visibility: hidden;
  will-change: transform, opacity;
}

/* ═══════════════════════════════════════════
   CHAPTER II : THE WINDING NIGHT JOURNEY
   ═══════════════════════════════════════════ */
.ch2-wrapper-outer {
  position: relative;
  height: 200vh;
  /* scroll track length */
  background: #000;
  z-index: 2;
}

.ch2-container {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: #000;
}

.ch2-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 26, 0.40);
  pointer-events: none;
  z-index: 1;
}

.ch2-topo-bg {
  position: absolute;
  inset: -100px;
  background-image: url("assets/images/bg-chapter2-journey-dark.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
  /* Hardware Acceleration */
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: transform;
  transition: opacity 1s ease;
}

.ch2-topo-far {
  opacity: 0.3;
}

.ch2-topo-near {
  display: none;
}

/* --- Atmospheric Aurora Glows --- */
.ch2-ambient-aurora {
  position: absolute;
  width: 65vw;
  height: 65vw;
  border-radius: 50%;
  filter: blur(140px);
  -webkit-filter: blur(140px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.8;
  /* Subtle baseline opacity */
  animation-duration: 25s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  /* Hardware acceleration */
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: transform;
}

.ch2-aurora-blue {
  background: radial-gradient(circle, rgba(12, 45, 76, 0.42) 0%, transparent 70%);
  left: -15vw;
  top: 5vh;
  animation-name: auroraDrift1;
}

.ch2-aurora-amber {
  background: radial-gradient(circle, rgba(212, 164, 77, 0.14) 0%, transparent 70%);
  right: -15vw;
  bottom: 5vh;
  animation-name: auroraDrift2;
  animation-duration: 30s;
}

@keyframes auroraDrift1 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.65;
  }

  50% {
    transform: translate3d(8vw, -6vh, 0) scale(1.1);
    opacity: 0.85;
  }

  100% {
    transform: translate3d(-4vw, 8vh, 0) scale(0.95);
    opacity: 0.55;
  }
}

@keyframes auroraDrift2 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.55;
  }

  50% {
    transform: translate3d(-6vw, 4vh, 0) scale(0.9);
    opacity: 0.8;
  }

  100% {
    transform: translate3d(8vw, -8vh, 0) scale(1.15);
    opacity: 0.45;
  }
}

/* --- Reveal/Fade transition system --- */
.ch2-intro-scene {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  filter: blur(12px);
  transform: scale(1.05);
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, filter, transform;
}

.ch2-intro-scene.active {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

.ch2-intro-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ch2-floater {
  position: absolute;
  transform: translate(-50%, -50%) scale(calc(1 / var(--ch2-map-scale, 0.55)));
  transform-origin: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  text-align: center;
  opacity: 0;
  filter: blur(8px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 3;
  white-space: nowrap;
  will-change: opacity, filter, transform;
}

.ch2-question {
  color: rgba(245, 241, 232, 0.76);
  font-size: clamp(22px, 2.5vw, 34px);
  text-shadow: 0 0 24px rgba(245, 241, 232, 0.24);
}

.ch2-theme {
  color: var(--gold);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 500;
  text-shadow: 0 0 12px rgba(212, 164, 77, 0.25);
}

.ch2-floater.visible {
  opacity: 1;
  filter: blur(0);
}

.ch2-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.ch2-path-scene {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}

.ch2-path-scene.active {
  opacity: 1;
  pointer-events: auto;
}

.ch2-path-scroll-wrapper {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1000px;
  height: 1000px;
  transform: translate(-50%, -50%) scale(0.55);
  transform-origin: center;
  will-change: transform;
}

.ch2-svg-path {
  position: absolute;
  inset: 0;
  width: 1000px;
  height: 1000px;
  pointer-events: none;
  overflow: visible;
}

/* SVG Node and Line styles */
.ch2-node-dot {
  fill: #000;
  stroke: var(--gold);
  stroke-width: 2;
  opacity: 0.25;
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), fill 0.8s, stroke-width 0.8s, r 0.8s;
}

.ch2-node-dot.revealed {
  opacity: 0.75;
  fill: none;
  stroke-width: 2.5;
}

/* Milestone destination pulse ring */
.ch2-node-dot.active {
  opacity: 1;
  fill: var(--gold);
  stroke-width: 3.5;
  r: 8.5;
  filter: drop-shadow(0 0 8px var(--gold));
  animation: nodeActivePulse 1.8s ease-in-out infinite;
}

@keyframes nodeActivePulse {
  0%, 100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}



/* Glowing Lead Node anim */
#glowing-node {
  transform-origin: center;
  transition: r 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.destination-node {
  transition: r 1s, fill 1s, opacity 1s, filter 1s;
}

.destination-node.active {
  r: 16;
  fill: var(--gold);
  filter: url(#organic-glow);
  opacity: 1;
}

/* Climax and Exit overlays */
.ch2-climax-overlay,
.ch2-exit-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  box-sizing: border-box;
  opacity: 0;
  filter: blur(12px);
  transform: scale(0.96);
  transition: opacity 1.6s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, filter, transform;
  pointer-events: none;
  z-index: 4;
}

.ch2-climax-overlay.revealed {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
  pointer-events: auto;
}

.ch2-exit-overlay {
  z-index: 5;
  transform: translateY(24px);
}

.ch2-exit-overlay.revealed {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  pointer-events: auto;
}

.climax-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Typography elements */
.font-massive {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(56px, 9vw, 130px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.font-large {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(34px, 6vw, 98px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.font-medium {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(20px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.45;
  color: var(--muted);
}

.font-small {
  font-family: Inter, Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.font-tiny {
  font-family: Inter, Arial, sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--quiet);
}

.highlight-gold {
  color: var(--gold);
}

.text-white {
  color: var(--ivory);
}

.turning-line-consume {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(32px, 5.5vw, 68px);
  font-weight: 500;
  color: var(--ivory);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 12px;
}

.turning-line-build {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(48px, 8vw, 108px);
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  text-shadow: 0 0 58px rgba(212, 164, 77, 0.28);
}

.clickable-portal {
  cursor: pointer;
  transition: color 0.4s ease, text-shadow 0.4s ease, transform 0.4s ease;
}

.clickable-portal:hover {
  color: #fff;
  text-shadow: 0 0 42px rgba(212, 164, 77, 0.6);
  transform: scale(1.02);
}



/* ═══════════════════════════════════════════
   MENU OVERLAY
   ═══════════════════════════════════════════ */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(7, 11, 18, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.5s;
}

.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.menu-close {
  position: absolute;
  top: clamp(22px, 3vw, 42px);
  right: clamp(24px, 3vw, 48px);
  width: 42px;
  height: 42px;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.menu-close span {
  position: absolute;
  width: 24px;
  height: 1px;
  background: var(--ivory);
  transition: transform 0.3s ease;
}

.menu-close span:first-child {
  transform: rotate(45deg);
}

.menu-close span:last-child {
  transform: rotate(-45deg);
}

.menu-close:hover span:first-child {
  transform: rotate(45deg) scaleX(0.7);
}

.menu-close:hover span:last-child {
  transform: rotate(-45deg) scaleX(0.7);
}

.menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}

.menu-chapters {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.menu-link {
  display: flex;
  align-items: baseline;
  gap: 20px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: color 0.3s ease, transform 0.3s ease;
  transform: translateX(0);
}

.menu-link:hover {
  color: var(--gold);
  transform: translateX(8px);
}

.menu-num {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--quiet);
  min-width: 28px;
}

.menu-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 600;
  line-height: 1;
}

.menu-social {
  display: flex;
  gap: 32px;
}

.menu-social a {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--quiet);
  text-decoration: none;
  transition: color 0.3s ease;
}

.menu-social a:hover {
  color: var(--gold);
}

/* Staggered menu link entrance */
.menu-overlay.is-open .menu-link {
  animation: menuFadeIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.menu-overlay.is-open .menu-link:nth-child(1) {
  animation-delay: 0.05s;
}

.menu-overlay.is-open .menu-link:nth-child(2) {
  animation-delay: 0.1s;
}

.menu-overlay.is-open .menu-link:nth-child(3) {
  animation-delay: 0.15s;
}

.menu-overlay.is-open .menu-link:nth-child(4) {
  animation-delay: 0.2s;
}

.menu-overlay.is-open .menu-link:nth-child(5) {
  animation-delay: 0.25s;
}

.menu-overlay.is-open .menu-social {
  animation: menuFadeIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

@keyframes menuFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes breatheLine {

  0%,
  100% {
    transform: scaleX(0.64);
    opacity: 0.42;
  }

  50% {
    transform: scaleX(1);
    opacity: 0.92;
  }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — TABLET
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero {
    min-height: 100svh;
    padding: 22px;
  }

  .topline {
    inset: 22px 20px auto;
  }

  .name-art {
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 0 28px 12vh;
    gap: clamp(12px, 2vh, 20px);
  }

  .name-left-col {
    transform: translateY(-8vh) translate3d(0, 0, 0);
    animation-name: driftLeftMobile;
    gap: 8px;
  }

  .name-left,
  .name-right {
    font-size: clamp(38px, 8vw, 68px);
  }

  .name-right {
    transform: translateY(2vh) translate3d(0, 0, 0);
    animation-name: driftRightMobile;
    align-self: flex-end;
  }

  .manifesto-left {
    max-width: 280px;
    margin-top: 4px;
  }

  .manifesto-sub {
    font-size: 10px;
    margin-bottom: 6px;
  }

  .manifesto-body {
    font-size: 12px;
    line-height: 1.6;
  }

  @keyframes driftLeftMobile {

    0%,
    100% {
      transform: translateY(-8vh) translate(0, 0);
    }

    25% {
      transform: translateY(-8vh) translate(2px, -1px);
    }

    50% {
      transform: translateY(-8vh) translate(-1px, 2px);
    }

    75% {
      transform: translateY(-8vh) translate(1px, 1px);
    }
  }

  @keyframes driftRightMobile {

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

    33% {
      transform: translateY(2vh) translate(-2px, 1px);
    }

    66% {
      transform: translateY(2vh) translate(2px, -1px);
    }
  }

  .portrait-stage {
    inset: -5vh -5vw -3vh;
    /* Maintain portrait composition aspect ratio on tablet */
  }

  .golden-arc {
    width: min(96vw, 520px);
    top: 45%;
    transform-origin: 50% 33%;
  }

  .side-index {
    display: none;
  }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — MOBILE
   ═══════════════════════════════════════════ */
@media (max-width: 620px) {
  .name-art {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 0 22px 14vh;
    gap: 12px;
  }

  .name-left-col {
    transform: translateY(-8vh) translate3d(0, 0, 0);
    animation-name: driftLeftMobile;
    gap: 6px;
  }

  .name-left,
  .name-right {
    position: static;
    display: block;
    font-size: clamp(32px, 10vw, 52px);
  }

  .name-right {
    transform: translateY(2vh) translate3d(0, 0, 0);
    animation-name: driftRightMobile;
    align-self: flex-end;
  }

  .manifesto-left {
    max-width: 100%;
    margin-top: 2px;
  }

  .manifesto-sub {
    font-size: 9.5px;
    margin-bottom: 4px;
    letter-spacing: 0.18em;
  }

  .manifesto-body {
    font-size: 11.5px;
    line-height: 1.55;
  }

  .portrait-stage {
    inset: -5vh -5vw -3vh;
    /* Maintain portrait composition aspect ratio on mobile */
  }

  .chapter-mark {
    bottom: 84px;
  }

  .scroll-cue span {
    max-width: 110px;
  }
}

/* ═══════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scroll-cue i {
    animation: none;
  }

  .name-left,
  .name-right {
    animation: none;
  }

  .anim-entry {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ═══════════════════════════════════════════
   IMAGE REGISTRATION TEST OVERRIDES
   ═══════════════════════════════════════════ */
[data-test-registration] .portrait-stage {
  cursor: default !important;
}

[data-test-registration] .portrait-base,
[data-test-registration] .portrait-reveal {
  opacity: 0.5 !important;
  transform: none !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  transition: none !important;
}

[data-test-registration] .reveal-aura,
[data-test-registration] .golden-arc {
  display: none !important;
}

/* ═══════════════════════════════════════════
   CHAPTER III : THE BUILDER (EDITORIAL INDEX & SHOWCASE)
   ═══════════════════════════════════════════ */
.ch3-wrapper {
  position: relative;
  background: #05070b;
  padding: 120px 0;
  z-index: 3;
  overflow: hidden;
}

.ch3-wrapper .grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
  z-index: 1;
}

.ch3-layout-grid {
  display: grid;
  grid-template-columns: minmax(320px, 28%) 1fr;
  gap: 64px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
  align-items: start;
}

/* --- Left Panel Index --- */
.ch3-left-panel {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: calc(100vh - 180px);
  min-height: 540px;
  z-index: 5;
}

.ch3-header-editorial {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 40px;
}

.ch3-header-editorial .font-large {
  margin: 6px 0;
}

.ch3-index-nav {
  position: relative;
  padding-left: 24px;
  flex-grow: 1;
  margin-bottom: 32px;
}

.ch3-timeline-line {
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(212, 164, 77, 0.12);
}

.ch3-active-glow-node {
  position: absolute;
  left: -4px;
  top: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold), 0 0 6px var(--gold);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ch3-project-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.ch3-index-header {
  font-family: Inter, Arial, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.55;
  margin-top: 24px;
  margin-bottom: 8px;
  user-select: none;
  list-style: none;
}

.ch3-index-header:first-child {
  margin-top: 0;
}

.ch3-index-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  cursor: pointer;
  opacity: 0.35;
  transition: opacity 0.3s ease, color 0.3s ease;
  padding: 6px 0;
  user-select: none;
}

/* Flagship specific indexing */
.ch3-index-item.flagship-project {
  opacity: 0.45;
}

.ch3-index-item.flagship-project:hover {
  opacity: 0.9;
}

.ch3-index-item.flagship-project.active {
  opacity: 1;
  color: var(--gold);
}

/* Supporting projects styling in index to create hierarchy */
.ch3-index-item.supporting-project {
  opacity: 0.22;
}

.ch3-index-item.supporting-project .index-num {
  font-size: 19px;
  width: 28px;
  margin-top: 1px;
}

.ch3-index-item.supporting-project .index-title {
  font-size: 14.5px;
}

.ch3-index-item.supporting-project .index-cat {
  font-size: 10px;
}

.ch3-index-item.supporting-project:hover {
  opacity: 0.75;
}

.ch3-index-item.supporting-project.active {
  opacity: 1;
  color: var(--gold);
}

.ch3-index-item.supporting-project.locked {
  opacity: 1;
  color: var(--gold);
  font-weight: 500;
}

.ch3-index-item.locked {
  opacity: 1;
  color: var(--gold);
  font-weight: 600;
}

.ch3-index-item.locked .index-title::after {
  content: " ✦";
  color: var(--gold);
  font-size: 10px;
  vertical-align: middle;
  margin-left: 6px;
  display: inline-block;
  animation: ch3PulseGlow 2.5s infinite ease-in-out;
}

@keyframes ch3PulseGlow {

  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.9);
  }

  50% {
    opacity: 1;
    transform: scale(1.15);
    filter: drop-shadow(0 0 3px var(--gold));
  }
}

.index-num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  color: inherit;
  width: 28px;
  text-align: right;
}

.index-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.index-title {
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}

.index-cat {
  font-family: Inter, Arial, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--quiet);
}

.ch3-left-footer {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px dashed rgba(245, 241, 232, 0.05);
}

.ch3-footer-spark {
  color: var(--gold);
  font-size: 14px;
  line-height: 1;
  margin-top: 2px;
}

.ch3-footer-content p {
  margin: 4px 0 0 0;
  font-size: 11px;
  color: var(--quiet);
  line-height: 1.4;
}

/* --- Right Panel Showcase --- */
.ch3-right-panel {
  position: relative;
  min-height: 720px;
}

.ch3-showcase-container {
  background: transparent;
  border-left: 1px solid rgba(212, 164, 77, 0.04);
  border-top: none;
  border-right: none;
  border-bottom: none;
  border-radius: 0;
  padding: 12px 0 12px 48px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(0);
  opacity: 1;
  will-change: transform, opacity;
}

.ch3-showcase-container.transitioning {
  opacity: 0;
  transform: translateY(12px);
}

.showcase-top-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: stretch;
  width: 100%;
}

.showcase-statement-area {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.showcase-middle-row {
  border-top: 1px dashed rgba(122, 108, 81, 0.12);
  border-bottom: 1px dashed rgba(212, 164, 77, 0.12);
  padding: 16px 0;
  width: 100%;
}

.showcase-bottom-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: start;
  width: 100%;
}

.showcase-bottom-left {
  width: 100%;
}

.showcase-bottom-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.showcase-subtitle {
  font-family: Inter, Arial, sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 10px;
  margin-bottom: 0;
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.showcase-middle-row.has-metrics {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  width: 100%;
}

.showcase-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
}

.metric-card {
  background: rgba(212, 164, 77, 0.02);
  border: 1px solid rgba(212, 164, 77, 0.08);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  animation: metricCardSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.metric-card:hover {
  border-color: rgba(212, 164, 77, 0.2);
  transform: translateY(-2px);
}

.metric-value {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}

.metric-label {
  font-family: Inter, Arial, sans-serif;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.showcase-highlights.as-insight-cards {
  width: 100%;
}

.insight-cards-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
}

.insight-card {
  background: rgba(245, 241, 232, 0.02);
  border: 1px solid rgba(245, 241, 232, 0.06);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: Inter, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-sizing: border-box;
  animation: insightCardFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.insight-value {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 2px;
}

.insight-text-content {
  font-family: Inter, Arial, sans-serif;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted);
}

.insight-card::before {
  display: none;
}

.insight-card:hover {
  background: rgba(212, 164, 77, 0.03);
  border-color: rgba(212, 164, 77, 0.15);
  color: var(--ivory);
  transform: translateY(-2px);
}

.rotating-showcase-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.showcase-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  pointer-events: none;
}

.showcase-slide.active {
  opacity: 1;
  pointer-events: auto;
}

@keyframes metricCardSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes insightCardFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes chartFadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.showcase-visual-area {
  animation: chartFadeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.metric-card:nth-child(1) {
  animation-delay: 0.05s;
}

.metric-card:nth-child(2) {
  animation-delay: 0.12s;
}

.metric-card:nth-child(3) {
  animation-delay: 0.19s;
}

.metric-card:nth-child(4) {
  animation-delay: 0.26s;
}

.insight-card:nth-child(1) {
  animation-delay: 0.15s;
}

.insight-card:nth-child(2) {
  animation-delay: 0.22s;
}

.insight-card:nth-child(3) {
  animation-delay: 0.29s;
}

.insight-card:nth-child(4) {
  animation-delay: 0.36s;
}

.showcase-badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 100px;
  background: rgba(212, 164, 77, 0.06);
  border: 1px solid rgba(212, 164, 77, 0.12);
  font-family: Inter, Arial, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
}

.showcase-statement {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(32px, 3.8vw, 44px);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ivory);
  margin: 0;
  white-space: pre-line;
  /* Support \n in statements */
}

.showcase-desc {
  font-family: Inter, Arial, sans-serif;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.showcase-tech {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-pill {
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(245, 241, 232, 0.03);
  border: 1px solid rgba(245, 241, 232, 0.06);
  font-family: Inter, Arial, sans-serif;
  font-size: 11px;
  color: var(--muted);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.tech-pill:hover {
  border-color: rgba(212, 164, 77, 0.22);
  color: var(--ivory);
}

.showcase-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-gold,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
  box-sizing: border-box;
}

.btn-gold {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  box-shadow: 0 0 12px rgba(212, 164, 77, 0.08);
}

.btn-gold:hover {
  background: var(--gold);
  color: #000;
  box-shadow: 0 0 20px rgba(212, 164, 77, 0.3);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(245, 241, 232, 0.15);
  color: var(--ivory);
}

.btn-outline:hover {
  border-color: var(--ivory);
  background: rgba(245, 241, 232, 0.03);
}

/* Removed showcase-right wrapper rules */

.showcase-visual-area {
  width: 100%;
  aspect-ratio: 1.6;
  max-height: 200px;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 auto;
}

/* --- InternHunt Map Illustration Mockup --- */
.mockup-window {
  width: 90%;
  height: 90%;
  background: #07090e;
  border: 1px solid rgba(212, 164, 77, 0.08);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  display: flex;
  overflow: hidden;
}

.mockup-sidebar {
  width: 32px;
  border-right: 1px solid rgba(212, 164, 77, 0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 0;
  align-items: center;
  background: #040508;
}

.mockup-icon {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(212, 164, 77, 0.2);
}

.mockup-icon.active {
  background: var(--gold);
  box-shadow: 0 0 6px var(--gold);
}

.mockup-main {
  flex-grow: 1;
  position: relative;
  padding: 16px;
  box-sizing: border-box;
  background: radial-gradient(circle at center, rgba(12, 45, 76, 0.15), transparent 80%);
}

.mockup-search {
  width: 100%;
  height: 16px;
  border-radius: 4px;
  background: rgba(245, 241, 232, 0.03);
  border: 1px solid rgba(245, 241, 232, 0.05);
  margin-bottom: 12px;
}

.mockup-map-nodes {
  position: absolute;
  inset: 24px;
}

.mockup-node {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

.mockup-card {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 140px;
  background: #0b0f19;
  border: 1px solid rgba(212, 164, 77, 0.2);
  border-radius: 6px;
  padding: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mockup-card-title {
  font-size: 9px;
  font-weight: 600;
  color: var(--gold);
}

.mockup-card-sub {
  font-size: 7px;
  color: var(--quiet);
}

.mockup-card-match {
  font-size: 8px;
  font-weight: 500;
  color: var(--ivory);
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
}

.mockup-progress-bar {
  width: 100%;
  height: 2px;
  background: rgba(245, 241, 232, 0.1);
  border-radius: 1px;
  overflow: hidden;
}

.mockup-progress-fill {
  height: 100%;
  background: var(--gold);
  width: 98%;
}

.showcase-highlights {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 0;
  border-top: none;
}

.highlight-title {
  font-family: Inter, Arial, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.highlight-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
}

.highlight-list-item {
  font-family: Inter, Arial, sans-serif;
  font-size: 12px;
  color: var(--quiet);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

.highlight-list-item::before {
  content: "✦";
  color: var(--gold);
  font-size: 8px;
}

/* --- Responsive Layout for Chapter III --- */
@media (max-width: 1024px) {
  .ch3-layout-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 24px;
  }

  .ch3-left-panel {
    position: static;
    height: auto;
    min-height: auto;
    gap: 24px;
  }

  .ch3-index-nav {
    padding-left: 0;
    margin-bottom: 0;
  }

  .ch3-timeline-line {
    display: none;
  }

  .ch3-index-header {
    display: none;
  }

  .ch3-project-list {
    flex-direction: column;
    overflow-x: hidden;
    padding-bottom: 12px;
    gap: 12px;
    margin: 0;
    padding: 0;
  }

  .ch3-project-list::-webkit-scrollbar {
    display: none;
  }

  .ch3-index-item {
    padding: 12px 20px;
    flex-shrink: 0;
    flex-direction: row;
    align-items: center;
    background: rgba(245, 241, 232, 0.02);
    border: 1px solid rgba(245, 241, 232, 0.05);
    border-radius: 8px;
    width: 100%;
  }

  .ch3-index-item.active {
    border-color: rgba(212, 164, 77, 0.25);
    background: rgba(212, 164, 77, 0.04);
  }

  .ch3-showcase-container {
    padding: 32px 0 0 0 !important;
    gap: 32px;
    min-height: auto;
    border-left: none !important;
    border-top: 1px dashed rgba(212, 164, 77, 0.15) !important;
    box-shadow: none !important;
  }

  .showcase-top-row,
  .showcase-bottom-row {
    grid-template-columns: 1fr !important;
    gap: 32px;
  }

  .showcase-middle-row.has-metrics {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }

  .insight-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .ch3-left-footer {
    display: none;
  }
}

@media (max-width: 620px) {
  .showcase-metrics-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ═══════════════════════════════════════════
   CHAPTER IV : THE THINKER
   ═══════════════════════════════════════════ */

.ch4-section {
  position: relative;
  padding: clamp(180px, 20vw, 260px) clamp(24px, 6vw, 120px) clamp(100px, 12vw, 180px);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(212, 164, 77, 0.03), transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(20, 34, 58, 0.06), transparent 50%),
    var(--navy);
  overflow: hidden;
  min-height: 100vh;
}

/* Ambient atmospheric glows */
.ch4-ambient {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
}

.ch4-ambient-left {
  left: -180px;
  top: 15%;
  background: radial-gradient(circle, rgba(212, 164, 77, 0.06), transparent 70%);
}

.ch4-ambient-right {
  right: -180px;
  bottom: 20%;
  background: radial-gradient(circle, rgba(20, 34, 58, 0.08), transparent 70%);
}

/* ── Section Header ── */

.ch4-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(80px, 10vw, 140px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.ch4-rule {
  width: 42px;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
  margin: 20px 0 32px;
}

.ch4-headline {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 16px;
}

.ch4-headline-plain {
  color: var(--ivory);
}

.ch4-headline-gold {
  color: var(--gold);
  text-shadow: 0 0 48px rgba(212, 164, 77, 0.18);
}

.ch4-diamond {
  color: var(--gold);
  font-size: 14px;
  opacity: 0.6;
  margin: 8px 0 28px;
}

.ch4-intro {
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(13px, 1.2vw, 15px);
  line-height: 1.85;
  color: var(--muted);
  text-align: center;
  margin: 0;
  max-width: 720px;
}

/* ── Capability Domains ── */

.ch4-domains {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 6vw, 80px);
  max-width: 920px;
  margin: 0 auto;
}

.ch4-domain {
  position: relative;
  display: flex;
  align-items: stretch;
  background: rgba(245, 241, 232, 0.01);
  border: 1px solid rgba(245, 241, 232, 0.02);
  border-radius: 16px;
  padding: clamp(32px, 4vw, 52px);
  transition: border-color 0.8s ease, background 0.8s ease;
  overflow: hidden;
}

.ch4-domain:hover {
  border-color: rgba(212, 164, 77, 0.08);
  background: rgba(245, 241, 232, 0.015);
}

/* Alternating alignment */
.ch4-domain-left {
  margin-left: 0;
  margin-right: auto;
  width: 80%;
  max-width: 800px;
}

.ch4-domain-right {
  margin-left: 12%;
  margin-right: auto;
  width: 80%;
  max-width: 800px;
}

.ch4-domain-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  z-index: 1;
  width: 100%;
}

.ch4-domain-header {
  display: flex;
  align-items: center;
  position: relative;
}

.ch4-domain-num {
  position: absolute;
  top: -65px;
  left: -24px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(120px, 14vw, 180px);
  font-weight: 500;
  color: rgba(212, 164, 77, 0.035);
  line-height: 1;
  letter-spacing: -0.05em;
  z-index: -1;
  pointer-events: none;
  transition: color 0.8s ease, transform 0.8s ease;
}

.ch4-domain:hover .ch4-domain-num {
  color: rgba(212, 164, 77, 0.06);
  transform: translateY(-8px);
}

.ch4-domain-title {
  position: relative;
  z-index: 2;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  color: var(--ivory);
  margin: 0;
  line-height: 1.1;
}

/* Premium pill tags */
.ch4-domain-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ch4-tag {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 100px;
  background: rgba(245, 241, 232, 0.03);
  border: 1px solid rgba(245, 241, 232, 0.06);
  font-family: Inter, Arial, sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
  cursor: default;
}

.ch4-tag:hover {
  border-color: rgba(212, 164, 77, 0.25);
  color: var(--gold);
  background: rgba(212, 164, 77, 0.04);
}

.ch4-domain-desc {
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.75;
  color: var(--quiet);
  margin: 4px 0 0;
  max-width: 520px;
}

/* Accent edge glow lines */
.ch4-domain-accent {
  position: absolute;
  width: 3px;
  top: 20%;
  bottom: 20%;
  border-radius: 3px;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.ch4-domain:hover .ch4-domain-accent {
  opacity: 1;
}

.ch4-domain-left .ch4-domain-accent {
  left: 0;
}

.ch4-domain-right .ch4-domain-accent {
  right: 0;
}

.ch4-accent-01 {
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
}

.ch4-accent-02 {
  background: linear-gradient(180deg, transparent, rgba(245, 241, 232, 0.4), transparent);
}

.ch4-accent-03 {
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
}

/* ── The Toolbox ── */

.ch4-toolbox {
  margin-top: clamp(100px, 12vw, 180px);
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.ch4-toolbox-header {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.ch4-toolbox-subtitle {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(24px, 3.5vw, 42px);
  font-weight: 500;
  color: var(--ivory);
  margin: 0;
  line-height: 1.2;
}

.ch4-toolbox-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 5vw, 60px);
  padding-top: 40px;
  border-top: 1px solid rgba(212, 164, 77, 0.15);
}

.ch4-toolbox-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ch4-toolbox-group-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--ivory);
  margin: 0;
  line-height: 1.1;
  opacity: 0.9;
}

/* ── Currently Exploring ── */

.ch4-exploring {
  margin-top: clamp(100px, 12vw, 180px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ch4-exploring-label {
  font-family: Inter, Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--gold);
  opacity: 0.7;
  text-transform: uppercase;
}

.ch4-exploring-rule {
  width: 32px;
  height: 1px;
  background: var(--gold);
  opacity: 0.25;
  margin: 24px 0 48px;
}

.ch4-exploring-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ch4-exploring-item {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 500;
  color: rgba(245, 241, 232, 0.25);
  line-height: 1.3;
  letter-spacing: 0.01em;
  transition: color 0.5s ease, text-shadow 0.5s ease;
  cursor: default;
}

.ch4-exploring-item:hover {
  color: rgba(245, 241, 232, 0.7);
  text-shadow: 0 0 32px rgba(212, 164, 77, 0.15);
}

/* ── Scroll Reveal Animation ── */

.ch4-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.ch4-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for header elements */
.ch4-header .ch4-reveal:nth-child(1) { transition-delay: 0s; }
.ch4-header .ch4-reveal:nth-child(2) { transition-delay: 0.08s; }
.ch4-header .ch4-reveal:nth-child(3) { transition-delay: 0.16s; }
.ch4-header .ch4-reveal:nth-child(4) { transition-delay: 0.28s; }
.ch4-header .ch4-reveal:nth-child(5) { transition-delay: 0.36s; }

/* Stagger delays for the toolbox */
.ch4-toolbox .ch4-reveal:nth-child(1) { transition-delay: 0.05s; }
.ch4-toolbox .ch4-reveal:nth-child(2) { transition-delay: 0.12s; }
.ch4-toolbox-group:nth-child(1) { transition-delay: 0.2s; }
.ch4-toolbox-group:nth-child(2) { transition-delay: 0.28s; }
.ch4-toolbox-group:nth-child(3) { transition-delay: 0.36s; }

/* Stagger delays for exploring items */
.ch4-exploring-item:nth-child(1) { transition-delay: 0.05s; }
.ch4-exploring-item:nth-child(2) { transition-delay: 0.12s; }
.ch4-exploring-item:nth-child(3) { transition-delay: 0.19s; }
.ch4-exploring-item:nth-child(4) { transition-delay: 0.26s; }

/* ── Responsive ── */

@media (max-width: 900px) {
  .ch4-domain-left,
  .ch4-domain-right {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .ch4-intro br {
    display: none;
  }
}

@media (max-width: 768px) {
  .ch4-toolbox-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 620px) {
  .ch4-section {
    padding: 120px 20px 80px;
  }

  .ch4-domain {
    padding: 28px 22px;
  }

  .ch4-domain-num {
    font-size: 80px;
    top: -45px;
    left: -10px;
  }

  .ch4-domain-header {
    margin-top: 20px;
  }

  .ch4-exploring-item {
    font-size: 24px;
  }
}

/* ═══════════════════════════════════════════
   CHAPTER V : BEYOND THE PROJECTS
   ═══════════════════════════════════════════ */

.ch5-section {
  position: relative;
  padding: clamp(180px, 20vw, 260px) clamp(24px, 6vw, 120px) clamp(100px, 12vw, 180px);
  background: var(--midnight);
  overflow: hidden;
  min-height: 100vh;
}

/* ── Section Header ── */
.ch5-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(80px, 10vw, 140px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.ch5-rule {
  width: 42px;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
  margin: 20px 0 32px;
}

.ch5-headline {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 16px;
}

.ch5-headline-plain {
  color: var(--ivory);
}

.ch5-headline-gold {
  color: var(--gold);
  text-shadow: 0 0 48px rgba(212, 164, 77, 0.18);
}

.ch5-diamond {
  color: var(--gold);
  font-size: 14px;
  opacity: 0.6;
  margin: 8px 0 28px;
}

.ch5-intro {
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(13px, 1.2vw, 15px);
  line-height: 1.85;
  color: var(--muted);
  text-align: center;
  margin: 0;
  max-width: 620px;
}

/* ── Content Grid ── */
.ch5-content-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(30px, 4vw, 50px);
  max-width: 800px;
  margin: 0 auto;
}

/* ── Blocks ── */
.ch5-block {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.ch5-block-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ch5-block-num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  color: rgba(212, 164, 77, 0.25);
  line-height: 1;
  letter-spacing: -0.02em;
}

.ch5-block-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 500;
  color: var(--ivory);
  margin: 0;
  line-height: 1.1;
  border-bottom: 1px solid rgba(212, 164, 77, 0.15);
  padding-bottom: 16px;
}

.ch5-block-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ch5-p {
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
}

.ch5-muted {
  color: var(--quiet);
  font-size: 14px;
}

.ch5-quote {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
  font-style: italic;
  letter-spacing: 0.02em;
  padding-left: 16px;
  border-left: 2px solid var(--gold);
}

.ch5-tags-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.ch5-tag {
  font-family: Inter, Arial, sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid rgba(212, 164, 77, 0.2);
  border-radius: 100px;
  background: rgba(212, 164, 77, 0.02);
}

/* ── Experience Items ── */
.ch5-experience-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 16px;
}

.ch5-experience-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 20px;
  border-left: 1px solid rgba(245, 241, 232, 0.1);
  transition: border-color 0.4s ease;
}

.ch5-experience-item:hover {
  border-color: rgba(212, 164, 77, 0.4);
}

.ch5-exp-title {
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--ivory);
  margin: 0;
}

.ch5-exp-desc {
  font-family: Inter, Arial, sans-serif;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* Links */
.ch5-link-button {
  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  transition: opacity 0.3s ease;
}

.ch5-link-button span {
  transition: transform 0.3s ease;
}

.ch5-link-button:hover {
  opacity: 0.8;
}

.ch5-link-button:hover span {
  transform: translateX(4px);
}

.ch5-link-text {
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: rgba(245, 241, 232, 0.2);
  text-underline-offset: 4px;
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
  display: inline-block;
  margin-bottom: 8px;
}

.ch5-link-text:hover {
  color: var(--ivory);
  text-decoration-color: var(--gold);
}

.ch5-muted-text {
  color: var(--quiet);
  text-decoration: none;
}

.ch5-muted-text:hover {
  color: var(--quiet);
  text-decoration-color: transparent;
}

/* ── Articles ── */
.ch5-articles {
  gap: 32px;
}

.ch5-article-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ch5-article-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--ivory);
  margin: 0;
  line-height: 1.2;
}

.ch5-article-desc {
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* ── Certifications List ── */
.ch5-cert-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ch5-cert-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ch5-cert-title {
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--ivory);
  margin: 0;
}

.ch5-cert-org {
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  color: var(--gold);
  margin: 0;
  opacity: 0.8;
}

/* ── Details Drawer ── */
.ch5-details-drawer {
  margin-top: 8px;
}

.ch5-relative-body {
  position: relative;
}

.ch5-drawer-top-right {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-top: 0;
  z-index: 10;
}

.ch5-drawer-top-right .ch5-details-content {
  align-items: flex-end;
  padding-left: 0;
  border-left: none;
  padding-right: 16px;
  border-right: 1px solid rgba(212, 164, 77, 0.2);
  text-align: right;
  background: var(--midnight);
  padding-top: 8px;
  padding-bottom: 8px;
}

@media (max-width: 768px) {
  .ch5-drawer-top-right {
    position: relative;
    top: auto;
    right: auto;
    align-items: flex-start;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(245, 241, 232, 0.05);
  }
  .ch5-drawer-top-right .ch5-details-content {
    align-items: flex-start;
    padding-right: 0;
    border-right: none;
    padding-left: 16px;
    border-left: 1px solid rgba(212, 164, 77, 0.2);
    text-align: left;
    background: transparent;
    padding-top: 0;
    padding-bottom: 0;
  }
}

.ch5-details-summary {
  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
  cursor: pointer;
  list-style: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.ch5-details-summary:hover {
  opacity: 1;
}

.ch5-details-summary::-webkit-details-marker {
  display: none;
}

.ch5-details-content {
  margin-top: 16px;
  padding-left: 16px;
  border-left: 1px solid rgba(212, 164, 77, 0.2);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Footer ── */
.ch5-footer {
  margin-top: clamp(60px, 10vw, 120px);
  padding-top: 40px;
  border-top: 1px solid rgba(245, 241, 232, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.ch5-footer-link {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--ivory);
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.ch5-footer-link:hover {
  color: var(--gold);
  text-shadow: 0 0 16px rgba(212, 164, 77, 0.3);
}

.ch5-footer-sep {
  color: rgba(245, 241, 232, 0.2);
}

/* ── Scroll Reveal ── */
.ch5-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.ch5-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.ch5-header .ch5-reveal:nth-child(1) { transition-delay: 0s; }
.ch5-header .ch5-reveal:nth-child(2) { transition-delay: 0.08s; }
.ch5-header .ch5-reveal:nth-child(3) { transition-delay: 0.16s; }
.ch5-header .ch5-reveal:nth-child(4) { transition-delay: 0.28s; }
.ch5-header .ch5-reveal:nth-child(5) { transition-delay: 0.36s; }

/* ════════════════════════════════════════════════════════════
   CHAPTER 6 : THE FINAL PAGE
   ════════════════════════════════════════════════════════════ */

.ch6-section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  padding: 15vh 6vw 15vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  overflow: hidden;
  text-align: left;
}

/* ── Background & Overlay ── */
.ch6-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("assets/images/bg-final-chapter.webp");
  background-size: cover;
  background-position: center;
  /* background-attachment removed for custom JS parallax */
  height: 130vh; /* Decoupled from container height to prevent zoom */
  top: -15vh;
  z-index: 1;
}

.ch6-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 15, 26, 0.92); /* 92% opacity dark overlay */
  z-index: 2;
}

.ch6-container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 900px;
  margin-left: 8vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8vh; /* Tighter editorial pacing */
  padding-bottom: 15vh;
}

/* ── Common Stage Reveal ── */
.ch6-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ch6-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Stage 1: The Intro ── */
.ch6-stage-1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 50vh;
  gap: 24px;
}



/* ── Stage 2: The Journey Statement ── */
.ch6-stage-2 {
  display: flex;
  flex-direction: column;
  gap: 2vh;
  padding: 0;
}

.ch6-text-main {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4.5vw, 64px);
  color: var(--ivory);
  line-height: 1.15;
  margin: 0;
}

.ch6-arrow {
  font-family: 'Inter', sans-serif;
  font-size: clamp(40px, 5vw, 60px);
  color: var(--gold);
  opacity: 0.7;
  font-weight: 300;
  margin: 16px 0;
}

/* ── Stage 3: Reflection Block ── */
.ch6-stage-3 {
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.ch6-reflection-text {
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(18px, 2vw, 20px);
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
}

.ch6-highlight-text {
  color: var(--ivory);
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(24px, 3vw, 32px);
  margin-top: 24px;
}

/* ── Stage 4: Final Statement ── */
.ch6-stage-4 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.ch6-final-statement {
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(14px, 2vw, 18px);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin: 0;
}

.ch6-final-climax {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(48px, 8vw, 96px);
  color: var(--ivory);
  line-height: 1.1;
  margin: 0;
  text-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

/* ── Stage 5: Connection Section ── */
.ch6-stage-5 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 0;
}

.ch6-connect-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--ivory);
  margin: 0;
}

.ch6-action-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 16px;
  margin-top: 16px;
}

.ch6-glass-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ivory);
  text-decoration: none;
  background: rgba(212, 164, 77, 0.05);
  border: 1px solid rgba(212, 164, 77, 0.3);
  border-radius: 100px;
  transition: transform 0.4s ease, color 0.4s ease, border-color 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease;
}

.ch6-glass-btn:hover {
  background: rgba(212, 164, 77, 0.15);
  border-color: rgba(212, 164, 77, 0.8);
  box-shadow: 0 0 24px rgba(212, 164, 77, 0.2);
  transform: translateY(-2px);
  color: #fff;
}

.ch6-signature {
  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
  line-height: 2;
  color: rgba(245, 241, 232, 0.4);
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 80px;
}

.ch6-sig-name {
  display: block;
  margin-top: 24px;
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 18px;
  text-transform: none;
  letter-spacing: normal;
}

/* ═══════════════════════════════════════════
   GLOBAL RESPONSIVE OPTIMIZATION
   ═══════════════════════════════════════════ */

@media (max-width: 1024px) {
  /* Chapter I */
  .name-art {
    padding-inline: 4vw;
  }
  .portrait-stage {
    top: 5vh;
    bottom: -5vh;
    left: -15vw;
    right: -15vw;
    width: auto;
    height: auto;
    aspect-ratio: auto;
    transform: translate3d(0, 0, 0) !important;
  }
  /* Chapter III */
  .ch3-project-grid {
    grid-template-columns: 1fr;
  }
  .ch3-featured-project {
    flex-direction: column;
  }
  .ch3-featured-content, .ch3-featured-visual {
    width: 100%;
  }
}

@media (max-width: 768px) {
  body, html {
    overflow-x: hidden;
  }
  
  /* Chapter I */
  .name-art {
    flex-direction: column;
    justify-content: flex-start;
    top: 12vh !important;
    transform: none;
    gap: 0;
    z-index: 10;
  }
  .name-left-col {
    display: contents;
  }
  .name-left, .name-right {
    transform: none !important;
    align-items: center;
    text-align: center;
    animation: none !important;
    line-height: 0.9;
  }
  .name-left {
    order: 1;
  }
  .name-right {
    order: 2;
  }
  .manifesto-left {
    align-items: center;
    text-align: center;
    order: 3;
    margin-top: 24px;
    max-width: 90vw;
  }
  .portrait-stage {
    top: 15vh;
    bottom: -5vh;
    left: -25vw;
    right: -25vw;
    width: auto;
    height: auto;
    aspect-ratio: auto;
    transform: translate3d(0, 0, 0) !important;
    margin-top: 0;
    z-index: 1;
  }
  .chapter-mark, .scroll-cue {
    z-index: 10;
  }
  .hero-title {
    font-size: clamp(32px, 8vw, 48px) !important;
  }
  
  /* Chapter II */
  .ch2-wrapper-outer {
    height: 120vh;
  }
  .ch2-floater.ch2-question { 
    left: 50% !important; 
    text-align: center; 
    width: 600px; 
    font-size: 22px !important; 
    white-space: normal !important;
  }

  /* Chapter III */
  .ch3-layout-grid {
    gap: 16px;
    padding: 0 16px;
  }
  .ch3-left-panel {
    gap: 12px;
  }
  .ch3-showcase-container {
    padding: 16px 0 0 0 !important;
    gap: 24px !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .ch3-layout-grid {
    max-width: 100vw !important;
  }
  .ch3-left-panel,
  .ch3-right-panel {
    min-width: 0 !important;
    width: 100% !important;
  }
  .showcase-slide {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }
  .showcase-top-row,
  .showcase-middle-row,
  .showcase-bottom-row,
  .showcase-bottom-right {
    display: contents !important;
  }
  
  /* Progressive Mobile Information Hierarchy */
  .showcase-statement-area { order: 1; margin-bottom: -16px; }
  .showcase-statement { font-size: 24px !important; line-height: 1.2 !important; }
  .showcase-desc { order: 2; }
  .showcase-visual-area { 
    order: 3; 
    margin-top: 8px; 
    margin-bottom: 8px; 
    height: auto !important;
    width: 100%;
  }
  .showcase-metrics-grid { order: 4; }
  .showcase-bottom-left { order: 5; }
  .showcase-tech { order: 6; margin-top: 12px; }
  .showcase-buttons { order: 7; margin-top: 8px; flex-direction: column; width: 100%; }
  .showcase-buttons a { width: 100%; text-align: center; justify-content: center; }

  /* Chapter IV */
  .ch4-domains-wrapper {
    flex-direction: column;
  }
  .ch4-domain {
    width: 100%;
    transform: none !important;
    margin-bottom: 40px;
  }
  
  /* Chapter V */
  .ch5-section {
    padding: 120px 20px 60px;
  }
  .ch5-content-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  /* Chapter VI */
  .ch6-bg {
    background-image: url("assets/images/bg-final-chapter-mobile.webp");
  }
  .ch6-container {
    margin-left: 0 !important;
    padding: 0 5vw;
    align-items: center;
    text-align: center;
  }
  .ch6-stage-1, .ch6-stage-4, .ch6-stage-5 {
    align-items: center;
  }
  .ch6-signature {
    text-align: center;
  }
  .ch6-action-buttons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .name-left, .name-right {
    font-size: clamp(36px, 10vw, 48px) !important;
  }
  .portrait-stage {
    top: auto;
    bottom: 0;
    left: -60vw;
    right: -60vw;
    width: auto;
    height: 55vh;
    aspect-ratio: auto;
  }
  .name-art {
    top: 12vh;
    gap: 0;
  }
  
  .ch3-section, .ch4-section, .ch5-section, .ch6-section {
    padding-left: 20px;
    padding-right: 20px;
  }
}