/* ==========================================================================
   THE GRAPHIC NOVEL MEMOIR — CORE DESIGN SYSTEM
   Ligne Claire Comic Aesthetics · Pinned Master Stage · Editorial Color Shifts
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* Dynamic Stage Themes (morphed by GSAP scroll) */
  --stage-bg: #FAF7F0; /* Warm Newsprint Parchment */
  --ink: #18171C;       /* Heavy Comic Ink */
  --ink-soft: #4A4853;  /* Secondary Ink */
  --paper: #FAF7F0;     /* Newsprint Base */
  --paper-card: #FFFFFF;
  --border-width: 2.5px;
  
  /* Chapter Theme Colors */
  --c-blueprint: #243B53;  /* Hook & First Principles */
  --c-chisel: #1A2634;     /* Carving Paths */
  --c-pipeline: #2E4057;   /* Systems & Pipelines */
  --c-origin: #3A2E39;     /* 2 Years In */
  --c-works: #233142;      /* Project Showcase */
  --c-kanpur: #322F20;     /* Kanpur & The Ganga */
  --c-contact: #1E293B;    /* Signal & Handover */

  /* Accents */
  --accent-gold: #E8A838;
  --accent-terracotta: #D95338;
  --accent-teal: #14B8A6;
  --accent-violet: #8B5CF6;
  --accent-green: #22C55E;
  
  /* Comic Shadows & Borders */
  --comic-shadow: 4px 4px 0px rgba(24, 23, 28, 0.95);
  --comic-shadow-sm: 2px 2px 0px rgba(24, 23, 28, 0.95);
  --comic-shadow-lg: 6px 6px 0px rgba(24, 23, 28, 0.95);
  
  /* Fonts */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --pad: clamp(16px, 3.5vw, 42px);
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  background: #111014;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Lenis Smooth Scroll Support */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

/* Virtual Scroll Space Track (Controls overall scrub length) */
.scroll-space {
  position: relative;
  width: 100%;
  height: 2200vh;
  pointer-events: none;
  visibility: hidden;
}

/* Pinned Stage Frame */
.stage-frame {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  padding: clamp(10px, 1.8vw, 24px);
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
}

.stage {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--stage-bg);
  border: var(--border-width) solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), var(--comic-shadow-lg);
  pointer-events: auto;
  transition: background 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Halftone Texture Overlay */
.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(24, 23, 28, 0.04) 1px, transparent 1px);
  background-size: 8px 8px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.85;
}

/* Canvas Floating Dust */
.dust-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

/* ==========================================================================
   TOP BAR / HEADER
   ========================================================================== */
.top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 50;
  border-bottom: 2px solid rgba(24, 23, 28, 0.12);
  background: rgba(250, 247, 240, 0.65);
  backdrop-filter: blur(10px);
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(15px, 1.3vw, 18px);
  letter-spacing: -0.02em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-title .comic-pen {
  font-size: 1.1em;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  border: 1.5px solid var(--ink);
  background: #FFF;
  color: var(--ink);
  box-shadow: var(--comic-shadow-sm);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-comic {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 8px;
  border: 2px solid var(--ink);
  background: #FFF;
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--comic-shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-comic:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--comic-shadow);
  background: #FDF9EE;
}

.btn-comic:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px rgba(24, 23, 28, 0.95);
}

.btn-comic.solid {
  background: var(--ink);
  color: #FFF;
}
.btn-comic.solid:hover {
  background: #2A2832;
  color: #FFF;
}

/* Sound Toggle with Animated EQ Bars */
.sound-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sound-bars {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
}

.sound-bars i {
  width: 2.5px;
  height: 4px;
  background: var(--ink);
  border-radius: 1px;
  transition: height 0.2s ease;
}

.sound-btn.playing .sound-bars i:nth-child(1) { animation: sound-bounce 0.8s infinite 0.1s; }
.sound-btn.playing .sound-bars i:nth-child(2) { animation: sound-bounce 0.8s infinite 0.3s; }
.sound-btn.playing .sound-bars i:nth-child(3) { animation: sound-bounce 0.8s infinite 0.2s; }
.sound-btn.playing .sound-bars i:nth-child(4) { animation: sound-bounce 0.8s infinite 0.4s; }

@keyframes sound-bounce {
  0%, 100% { height: 4px; }
  50% { height: 14px; }
}

/* ==========================================================================
   SCENES CONTAINER & COMMON STYLES
   ========================================================================== */
.scenes-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 10;
}

.scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 80px var(--pad) 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.scene.active {
  pointer-events: auto;
}

/* Comic Caption Box (Narrator Panel) */
.comic-box {
  background: #FFFFFF;
  border: var(--border-width) solid var(--ink);
  border-radius: 12px;
  box-shadow: var(--comic-shadow);
  padding: clamp(14px, 2vw, 24px) clamp(18px, 2.5vw, 32px);
  position: relative;
  z-index: 20;
}

.comic-box.dark {
  background: #1C1B22;
  color: #FAF7F0;
  border-color: #FAF7F0;
  box-shadow: 4px 4px 0px #FAF7F0;
}

.comic-kicker {
  font-family: var(--font-mono);
  font-size: clamp(11px, 0.9vw, 13px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-terracotta);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.comic-box.dark .comic-kicker {
  color: var(--accent-gold);
}

.comic-headline {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.8vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.comic-box.dark .comic-headline {
  color: #FFFFFF;
}

.comic-p {
  font-size: clamp(15px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--ink-soft);
  margin-top: 12px;
  max-width: 58ch;
}

.comic-box.dark .comic-p {
  color: #D6D3E2;
}

/* ==========================================================================
   SCENE 1: THE OPENING HOOK (The Drafting Table)
   ========================================================================== */
#scene-hero {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  justify-content: flex-end;
  padding-bottom: 40px;
}

.hero-layout {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.hero-text-wrap {
  text-align: center;
  margin-top: 20px;
  position: relative;
  z-index: 20;
}

.hero-hook-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--ink);
  color: #FFF;
  padding: 4px 14px;
  border-radius: 6px;
  margin-bottom: 12px;
  box-shadow: 2px 2px 0px rgba(0,0,0,0.2);
}

.hero-title-box {
  position: relative;
  display: inline-block;
  padding: 8px 16px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 6.5vw, 92px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
}

/* Simulated Vector Selection Marquee */
.sel-box {
  position: absolute;
  inset: -6px -12px;
  border: 2px solid #0A6FC2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sel-box span {
  position: absolute;
  width: 9px;
  height: 9px;
  background: #FFF;
  border: 2px solid #0A6FC2;
}
.sel-box span:nth-child(1) { top: -5px; left: -5px; }
.sel-box span:nth-child(2) { top: -5px; right: -5px; }
.sel-box span:nth-child(3) { bottom: -5px; left: -5px; }
.sel-box span:nth-child(4) { bottom: -5px; right: -5px; }

.dim-tag {
  position: absolute;
  right: -12px;
  bottom: -24px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  background: #0A6FC2;
  color: #FFF;
  padding: 1px 6px;
  border-radius: 3px;
  white-space: nowrap;
  opacity: 0;
}

.hero-role {
  font-family: var(--font-display);
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 700;
  color: var(--accent-terracotta);
  margin-top: 10px;
  letter-spacing: -0.01em;
}

.hero-tagline {
  font-size: clamp(15px, 1.3vw, 19px);
  color: var(--ink-soft);
  margin-top: 4px;
  font-weight: 500;
}

/* Character & Drafting Desk SVG Container */
.drafting-desk-container {
  position: relative;
  width: min(85vw, 680px);
  height: min(48vh, 380px);
  margin-bottom: -15px;
  z-index: 10;
}

.drafting-desk-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.scroll-hint-corner {
  position: absolute;
  bottom: 58px;
  right: var(--pad);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  z-index: 35;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.scroll-hint-corner:hover {
  opacity: 1;
}

.hint-arrow {
  display: inline-block;
  font-size: 13px;
  color: var(--accent-terracotta);
  animation: hint-bounce 1.6s infinite ease-in-out;
}

@keyframes hint-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3.5px); }
}

/* Terminal Cursor Blink */
#terminalCursor {
  animation: cursor-blink 1s infinite steps(2, start);
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Autonomous / Interactive Pen Cursor */
.comic-cursor {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translate(-50%, -50%);
  opacity: 0;
}

.cursor-arrow svg {
  width: 22px;
  height: 24px;
  filter: drop-shadow(2px 2px 0px rgba(0,0,0,0.4));
}

.cursor-name-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  background: #0A6FC2;
  color: #FFF;
  padding: 3px 8px;
  border-radius: 4px;
  box-shadow: 2px 2px 0px rgba(0,0,0,0.3);
  white-space: nowrap;
}

/* ==========================================================================
   SCENE 2: THE PORTAL & CONCENTRIC TUNNEL
   ========================================================================== */
.tunnel-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
}

.tunnel-ring {
  position: absolute;
  border: 3px solid rgba(24, 23, 28, 0.7);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* ==========================================================================
   SCENE 3: THE BELIEF STATEMENT (Carving Paths)
   ========================================================================== */
#scene-belief {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 var(--pad);
  text-align: center;
}

.belief-wrap {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#scene-belief .comic-box {
  padding: clamp(20px, 3vh, 32px) clamp(22px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 2vh, 22px);
  text-align: center;
  max-height: calc(100vh - 150px);
  box-sizing: border-box;
}

.belief-lead {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #FAF7F0;
  margin: 0;
}

.carve-highlight {
  position: relative;
  display: inline-block;
  color: var(--accent-gold);
}

.carve-highlight .chisel-strike {
  position: absolute;
  left: -4%;
  bottom: 8%;
  width: 108%;
  height: 5px;
  background: var(--accent-terracotta);
  border-radius: 4px;
  transform-origin: left center;
  transform: scaleX(0);
}

.belief-body {
  font-size: clamp(15px, 1.4vw, 20px);
  line-height: 1.55;
  color: #D2CFDF;
  max-width: 54ch;
  text-wrap: pretty;
  margin: 0;
}

.belief-punchline {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.8vw, 26px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-gold);
  border-top: 1.5px dashed rgba(250, 247, 240, 0.25);
  padding-top: clamp(10px, 1.5vh, 16px);
  margin: 0;
  width: 100%;
}

/* ==========================================================================
   SCENE 4: WHAT I ACTUALLY DO (The Automation Pipeline)
   ========================================================================== */
.craft-layout {
  width: 100%;
  max-width: 1040px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.craft-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.craft-schematic {
  position: relative;
  background: #FFF;
  border: var(--border-width) solid var(--ink);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--comic-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pipeline-node {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: #F8F7FA;
  box-shadow: var(--comic-shadow-sm);
  transition: transform 0.2s ease;
}

.pipeline-node .node-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1.5px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: #FFF;
}

.pipeline-node:nth-child(1) .node-icon { background: #FEF3C7; }
.pipeline-node:nth-child(2) .node-icon { background: #E0E7FF; }
.pipeline-node:nth-child(3) .node-icon { background: #D1FAE5; }

.pipeline-node h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.pipeline-node p {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 2px;
}

/* ==========================================================================
   SCENE 5: THE ORIGIN (~2 Years In / 3-Panel Comic Strip)
   ========================================================================== */
.origin-layout {
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.comic-strip-3panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
}

.comic-strip-4panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  width: 100%;
}

.comic-panel {
  background: #FFF;
  border: var(--border-width) solid var(--ink);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--comic-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 230px;
  position: relative;
  overflow: hidden;
}

.panel-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-terracotta);
  text-transform: uppercase;
}

.panel-art {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  margin: 12px 0;
}

.panel-caption {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.panel-resolution {
  font-size: 12px;
  color: var(--accent-teal);
  font-weight: 700;
  margin-top: 6px;
  text-transform: uppercase;
}

.panel-detail {
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 5px;
  line-height: 1.35;
  font-weight: 500;
}

/* Technical Dossier Modal Styles */
.dossier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.dossier-card {
  background: #FFF;
  border: var(--border-width) solid var(--ink);
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 2.5px 2.5px 0px var(--ink);
}

.dossier-card h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-terracotta);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dossier-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.dossier-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  background: var(--paper-warm);
  color: var(--ink);
  border: 1px solid rgba(24, 23, 28, 0.4);
  border-radius: 4px;
  padding: 2px 7px;
}

.edu-item, .cert-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1.5px dashed rgba(24, 23, 28, 0.15);
}

.edu-item:last-child, .cert-item:last-child {
  border-bottom: none;
}

/* ==========================================================================
   SCENE 5: THE WORK (Nesil Noble Scroll-Scrubbed Horizontal Film Strip)
   ========================================================================== */
#scene-works {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.track {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(36px, 4vw, 64px);
  padding-left: clamp(48px, 6vw, 110px);
  padding-right: clamp(120px, 14vw, 240px);
  will-change: transform;
  width: max-content;
  height: 100%;
  box-sizing: border-box;
  transform: translate3d(0, 0, 0);
}

.work-head {
  flex: 0 0 auto;
  width: clamp(300px, 28vw, 420px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #FFFFFF;
  margin: 0;
}

.work-head .comic-kicker {
  color: var(--accent-gold);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.work-head .comic-headline {
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.05;
  color: #FFFFFF;
  font-weight: 900;
}

.work-desc {
  font-size: 15.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.works-meta-box {
  background: rgba(24, 23, 28, 0.4);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-family: var(--font-mono);
}

.meta-label {
  color: rgba(255, 255, 255, 0.6);
}

.meta-val {
  color: var(--accent-gold);
  font-weight: 700;
}

.works-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tab-btn {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 99px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  color: #FFF;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.tab-btn.active {
  background: var(--accent-gold);
  color: var(--ink);
  border-color: var(--accent-gold);
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(232, 168, 56, 0.4);
}

.scroll-track-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-gold);
  font-weight: 700;
  margin-top: 6px;
}

.track-indicator-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-gold);
  animation: pulse-glow 1.5s infinite;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.5; }
}

/* Track Cards Container */
.track-cards-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(28px, 3.5vw, 52px);
  height: 100%;
}

/* Individual Project Card in the Track */
.project-card {
  flex: 0 0 auto;
  width: clamp(350px, 32vw, 440px);
  height: clamp(500px, 68vh, 580px);
  max-height: calc(100vh - 130px);
  background: #FFFFFF;
  border: var(--border-width) solid var(--ink);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--comic-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.project-card > div:first-child {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.project-card-bottom {
  margin-top: auto;
  flex-shrink: 0;
}

.project-card:hover {
  transform: translateY(-8px) rotate(-0.5deg);
  box-shadow: var(--comic-shadow-lg);
}

.project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-title-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--ink-soft);
  opacity: 0.7;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #FFF;
  background: var(--ink);
  padding: 3px 8px;
  border-radius: 4px;
}

.project-status {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-green);
  display: flex;
  align-items: center;
  gap: 4px;
}

.project-cover-art {
  position: relative;
  width: 100%;
  height: 120px;
  border-radius: 10px;
  background: #18171C;
  border: 2px solid var(--ink);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 16px;
  color: #FFF;
}

.cover-schematic-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 14px 14px;
  pointer-events: none;
}

.cover-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.cover-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cover-lead-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
  color: #FFFFFF;
}

.cover-lead-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}

.project-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.project-before-quote {
  font-style: italic;
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 6px;
  padding-left: 10px;
  border-left: 3px solid var(--accent-terracotta);
}

.project-after-quote {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink);
  margin-top: 6px;
  padding-left: 10px;
  border-left: 3px solid var(--accent-teal);
}

.project-summary {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ink-soft);
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-stack {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.stack-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  background: #F3F1F8;
  border: 1px solid var(--ink);
  padding: 2px 7px;
  border-radius: 4px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1.5px dashed rgba(24, 23, 28, 0.15);
}

.open-case-btn {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.project-card:hover .open-case-btn {
  color: var(--accent-terracotta);
  transform: translateX(4px);
}

/* ==========================================================================
   SCENE 7: PHILOSOPHY (Powerful vs Approachable)
   ========================================================================== */
#scene-philosophy {
  text-align: center;
}

.philosophy-wrap {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.balance-scale-svg {
  width: min(70vw, 420px);
  height: 120px;
  overflow: visible;
}

/* ==========================================================================
   SCENE 8: BASED IN KANPUR (The Human Anchor & The Ride)
   ========================================================================== */
#scene-kanpur {
  justify-content: flex-end;
  padding-bottom: 50px;
}

.kanpur-layout {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.kanpur-header {
  max-width: 620px;
  z-index: 20;
}

.kanpur-panorama {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: visible;
}

.kanpur-skyline-svg {
  position: absolute;
  bottom: 60px;
  left: 0;
  width: 100%;
  height: 160px;
  overflow: visible;
}

.road-strip {
  position: absolute;
  bottom: 55px;
  left: -5%;
  width: 110%;
  height: 8px;
  background: var(--ink);
  border-radius: 4px;
}

/* Kanpur Animated Tempo / Vikram Auto-Rickshaw */
.kanpur-auto-wrap {
  position: absolute;
  bottom: 55px;
  left: -200px;
  width: 220px;
  height: 140px;
  z-index: 15;
}

.auto-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.auto-wheel {
  transform-origin: center;
}

/* Honk Interaction Bubble */
.honk-bubble {
  position: absolute;
  top: -20px;
  right: -10px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  background: var(--accent-gold);
  border: 1.5px solid var(--ink);
  padding: 2px 7px;
  border-radius: 99px;
  box-shadow: 2px 2px 0px rgba(0,0,0,0.5);
  cursor: pointer;
  animation: honk-wiggle 1.5s infinite ease-in-out;
}

@keyframes honk-wiggle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.1) rotate(-6deg); }
  75% { transform: scale(1.1) rotate(6deg); }
}

/* ==========================================================================
   SCENE 9: THE SIGNAL / CONTACT (Handover)
   ========================================================================== */
#scene-contact {
  text-align: center;
}

.contact-wrap {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
}

.copy-mail-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFF;
  border: var(--border-width) solid var(--ink);
  border-radius: 10px;
  padding: 8px 16px;
  box-shadow: var(--comic-shadow);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-mail-wrap:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--comic-shadow-lg);
  background: #FEFCE8;
}

.social-links-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

/* ==========================================================================
   BOTTOM NAVIGATION RULER
   ========================================================================== */
.bottom-ruler {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(250, 247, 240, 0.85);
  backdrop-filter: blur(10px);
  border-top: 2px solid rgba(24, 23, 28, 0.12);
  z-index: 40;
}

.ruler-track {
  position: relative;
  width: 100%;
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px 12px);
  opacity: 0.35;
}

.ruler-progress-head {
  position: absolute;
  top: -6px;
  left: 0%;
  width: 3px;
  height: 20px;
  background: var(--accent-terracotta);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(217, 83, 56, 0.6);
  pointer-events: none;
  transition: left 0.1s linear;
}

.ruler-markers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ruler-marker-btn {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
  background: #FFF;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  padding: 2px 7px;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 1.5px 1.5px 0px rgba(0,0,0,0.8);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.ruler-marker-btn:first-child {
  transform: translateY(-50%);
}

.ruler-marker-btn:last-child {
  transform: translate(-100%, -50%);
}

.ruler-marker-btn:hover {
  transform: translate(-50%, calc(-50% - 2px));
  background: var(--accent-gold);
}

.ruler-marker-btn:first-child:hover {
  transform: translateY(calc(-50% - 2px));
}

.ruler-marker-btn:last-child:hover {
  transform: translate(-100%, calc(-50% - 2px));
}

.ruler-marker-btn.active {
  background: var(--accent-gold);
  color: var(--ink);
  border-color: var(--ink);
  font-weight: 800;
  transform: translate(-50%, calc(-50% - 2px));
  box-shadow: 2px 2px 0px rgba(0,0,0,0.9);
}

.ruler-marker-btn:first-child.active {
  transform: translateY(calc(-50% - 2px));
}

.ruler-marker-btn:last-child.active {
  transform: translate(-100%, calc(-50% - 2px));
}

/* ==========================================================================
   IN-SITU CASE STUDY DRAWER MODAL
   ========================================================================== */
.case-drawer {
  position: fixed;
  inset: 0;
  background: rgba(18, 17, 22, 0.65);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.case-drawer.open {
  opacity: 1;
  visibility: visible;
}

.drawer-panel {
  width: min(92vw, 680px);
  height: 100%;
  background: #FAF7F0;
  border-left: 3px solid var(--ink);
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  padding: clamp(24px, 4vw, 44px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.case-drawer.open .drawer-panel {
  transform: translateX(0);
}

.drawer-close-btn {
  align-self: flex-start;
  flex-shrink: 0;
}

#drawerContent {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-right: 8px;
}

/* ==========================================================================
   RESPONSIVE QUERIES
   ========================================================================== */
@media (max-width: 900px) {
  .craft-layout {
    grid-template-columns: 1fr;
  }
  .comic-strip-3panel, .comic-strip-4panel {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-card {
    flex: 0 0 min(82vw, 320px);
    width: min(82vw, 320px);
  }
  .ruler-marker-btn:nth-child(even) {
    display: none;
  }
}

@media (max-width: 600px) {
  .comic-strip-3panel, .comic-strip-4panel {
    grid-template-columns: 1fr;
  }
}
