/* ==========================================================================
   AMEY NARWADKAR â€” PORTFOLIO VERSION 3.0 (PROD EDITION)
   Interactive Scrollytelling Architecture Â· Minimal Text Â· High Interactivity
   ========================================================================== */

:root {
  /* Deep Space Cosmic Foundation & Surfaces */
  --bg-primary: #06050a;
  --bg-secondary: #0c0a14;
  --bg-elevated: #131020;

  /* Warm Celestial Typography System */
  --text-primary: #F5F0E8;
  --text-secondary: #A9A097;
  --text-muted: #706A64;

  /* Subtle Warm Orange (#ff694d) Borders */
  --border-subtle: rgba(255, 105, 77, 0.16);
  --border-default: rgba(255, 105, 77, 0.28);
  --border-active: rgba(255, 105, 77, 0.48);
  --border-warm: rgba(245, 240, 232, 0.08);

  /* Vibrant Orange (#ff694d) Accents */
  --accent-primary: #ff694d;
  --accent-bright: #ff856c;
  --accent-soft: #e5553a;
  --accent-dark: #b83a22;

  /* Luminous Stardust Glows */
  --accent-glow: rgba(255, 105, 77, 0.22);
  --accent-glow-subtle: rgba(255, 105, 77, 0.10);
  --accent-bg: rgba(255, 105, 77, 0.08);

  /* Legacy Variable Aliases mapped to new tokens */
  --bg-deep: var(--bg-primary);
  --bg-card: rgba(13, 10, 19, 0.72);
  --bg-card-hover: rgba(20, 16, 28, 0.88);

  --brand-orange: var(--accent-primary);
  --brand-orange-glow: var(--accent-glow);
  --brand-crimson: var(--accent-primary);
  --brand-crimson-glow: var(--accent-glow);
  --brand-cyan: var(--accent-bright);
  --brand-purple: var(--accent-soft);
  --brand-green: var(--accent-primary);

  /* Orange #ff694d Card Glow Spectrum */
  --glow-orange-1: #ff694d;
  --glow-orange-2: #8f2e1b;
  --glow-orange-3: #e5553a;
  --glow-orange-4: #54160a;
  --glow-orange-5: #bf4026;
  --glow-orange-6: #ff856c;

  --card-orange-glow: linear-gradient(
    135deg,
    var(--glow-orange-1),
    var(--glow-orange-3),
    var(--glow-orange-2),
    var(--glow-orange-5),
    var(--glow-orange-6),
    var(--glow-orange-4),
    var(--glow-orange-1)
  );
  --card-red-glow: var(--card-orange-glow);
  --rainbow: var(--card-orange-glow);

  --text-main: var(--text-primary);
  --text-dim: var(--text-muted);

  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-sub: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --hud-width: 240px;
}

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

html {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* Fallback smooth scroll when Lenis is not active */
html:not(.lenis) {
  scroll-behavior: smooth;
}

body.scrolly-body {
  position: relative;
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(42, 18, 75, 0.45), transparent 70%),
    radial-gradient(ellipse 65% 45% at 90% 55%, rgba(255, 105, 77, 0.05), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 40%, rgba(20, 26, 68, 0.32), transparent 60%),
    radial-gradient(ellipse 75% 60% at 50% 105%, rgba(32, 14, 58, 0.38), transparent 75%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: clip;
}

/* Lenis Smooth Scrolling Engine Integration */
html.lenis, html.lenis body {
  height: auto;
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis [data-lenis-prevent] {
  overscroll-behavior: contain;
}

/* Ambient Canvas â€” Deep Outer Space Canvas */
#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
}

/* ==========================================================================
   FLOATING TOP-RIGHT ACTION
   ========================================================================== */
.top-nav-action {
  position: fixed;
  top: 1.75rem;
  right: 2.5rem;
  z-index: 1000;
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .top-nav-action {
    top: 1.25rem;
    right: 1.25rem;
  }
}

/* ==========================================================================
   GET IN TOUCH: THEME ORANGE LUMINOUS INTERACTION
   ========================================================================== */
.btn-nav-contact {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  padding: 0.45rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  letter-spacing: 0.06em;
  box-shadow: 0 0 14px rgba(255, 105, 77, 0.08);
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  transition: border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.4s ease;
}

.btn-nav-contact .btn-nav-label {
  position: relative;
  z-index: 2;
  transition: color 0.4s ease, text-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Layer 1: Ambient undulating orange luminous glow pool */
.btn-nav-contact::before {
  content: "";
  position: absolute;
  inset: -80% -40%;
  background: radial-gradient(
    ellipse 65% 65% at 50% 50%,
    rgba(255, 105, 77, 0.38) 0%,
    rgba(255, 137, 104, 0.24) 36%,
    rgba(235, 87, 58, 0.14) 65%,
    transparent 100%
  );
  filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translate3d(0, 0, 0);
}

/* Layer 2: Moving orange light that fluidly sweeps across the button surface */
.btn-nav-contact::after {
  content: "";
  position: absolute;
  inset: -40% -120%;
  background: linear-gradient(
    108deg,
    transparent 20%,
    rgba(255, 105, 77, 0.14) 36%,
    rgba(255, 160, 130, 0.36) 50%,
    rgba(255, 105, 77, 0.20) 64%,
    transparent 80%
  );
  filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translate3d(-50%, 0, 0);
}

/* Hover & Focus States - 400-600ms ease, theme orange illumination & bloom */
.btn-nav-contact:hover,
.btn-nav-contact:focus-visible {
  border-color: rgba(255, 105, 77, 0.65);
  box-shadow: 0 0 20px rgba(255, 105, 77, 0.30),
              0 0 36px rgba(235, 87, 58, 0.18),
              inset 0 0 14px rgba(255, 105, 77, 0.22);
  color: #fff;
  outline: none;
}

.btn-nav-contact:hover .btn-nav-label,
.btn-nav-contact:focus-visible .btn-nav-label {
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 160, 130, 0.55);
}

.btn-nav-contact:hover::before,
.btn-nav-contact:focus-visible::before {
  opacity: 1;
  animation: ultraEffortAura 3.6s ease-in-out infinite alternate;
}

.btn-nav-contact:hover::after,
.btn-nav-contact:focus-visible::after {
  opacity: 1;
  animation: ultraEffortSweep 2.8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

@keyframes ultraEffortAura {
  0% {
    transform: translate3d(-12%, -8%, 0) scale(0.96);
    filter: blur(8px);
  }
  50% {
    transform: translate3d(12%, 8%, 0) scale(1.06);
    filter: blur(11px);
  }
  100% {
    transform: translate3d(-8%, 6%, 0) scale(1.0);
    filter: blur(9px);
  }
}

@keyframes ultraEffortSweep {
  0% {
    transform: translate3d(-60%, 0, 0);
  }
  100% {
    transform: translate3d(60%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-nav-contact,
  .btn-nav-contact .btn-nav-label,
  .btn-nav-contact::before,
  .btn-nav-contact::after {
    animation: none !important;
    transition: none !important;
  }
  .btn-nav-contact:hover::before,
  .btn-nav-contact:focus-visible::before {
    opacity: 0.65;
    transform: none !important;
  }
  .btn-nav-contact:hover::after,
  .btn-nav-contact:focus-visible::after {
    opacity: 0;
    transform: none !important;
  }
}

/* ==========================================================================
   PERSISTENT 6-CHAPTER VERTICAL HUD
   ========================================================================== */
.scrolly-hud {
  position: fixed;
  left: 2rem;
  top: 6rem;
  bottom: 3rem;
  width: var(--hud-width);
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.hud-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.hud-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: pulse-dot 2s infinite ease-in-out;
}

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

.hud-meter {
  display: flex;
  align-items: stretch;
  gap: 1.25rem;
  margin: auto 0;
  pointer-events: auto;
}

.hud-track {
  width: 2px;
  background: rgba(245, 240, 232, 0.08);
  border-radius: 2px;
  position: relative;
}

.hud-thumb {
  width: 2px;
  height: 0%;
  background: linear-gradient(to bottom, var(--accent-bright), var(--accent-primary));
  border-radius: 2px;
  transition: height 0.15s ease-out;
  box-shadow: 0 0 8px var(--accent-glow);
}

.hud-indices {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hud-idx {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-decoration: none;
  color: var(--text-muted);
  transition: all 0.25s ease;
  letter-spacing: 0.08em;
}

.hud-idx:hover {
  color: var(--text-primary);
  transform: translateX(4px);
}

.hud-idx.active {
  color: var(--text-primary);
  font-weight: 700;
}

.hud-idx.active .idx-num {
  color: var(--accent-primary);
}

.hud-idx.active .idx-name {
  color: var(--text-primary);
  text-shadow: 0 0 12px var(--accent-glow);
}

.hud-footer {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   MAIN SCROLLYTELLING CONTAINER
   ========================================================================== */
.scrolly-main {
  position: relative;
  z-index: 10;
  margin-left: calc(var(--hud-width) + 3rem);
  padding-right: 4vw;
  padding-top: 0;
}

@media (max-width: 1100px) {
  .scrolly-hud {
    display: none;
  }
  .scrolly-main {
    margin-left: 5vw;
    padding-right: 5vw;
    padding-top: 0;
  }
}

.chapter-screen {
  min-height: 100vh;
  min-height: 100dvh;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(4.5rem, 7vh, 6rem) 0 clamp(2rem, 3.5vh, 3.5rem) 0;
  border-bottom: 1px solid rgba(245, 240, 232, 0.04);
  box-sizing: border-box;
  position: relative;
}

.chapter-content {
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
}

/* Section Header Badges */
.section-lead {
  margin-bottom: clamp(1rem, 2vh, 1.8rem);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--accent-primary);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-tag .tag-num {
  padding: 0.2rem 0.45rem;
  background: var(--accent-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  font-weight: 700;
  color: var(--accent-primary);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.8vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text-primary);
}

.section-subtitle {
  font-family: var(--font-sub);
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 650px;
  margin-top: 0.6rem;
  line-height: 1.4;
}

/* ==========================================================================
   CHAPTER 01: WHO AM I? (HERO & 3D TILT CARD)
   ========================================================================== */
.chapter-hero {
  min-height: 100vh;
  min-height: 100dvh;
  height: auto;
  justify-content: center;
  padding: clamp(5rem, 8vh, 6.5rem) 0 clamp(2.5rem, 4vh, 4rem) 0;
  position: relative;
}

.chapter-hero .chapter-content {
  max-width: 1240px;
}

.chapter-hero .scroll-cue {
  margin-top: clamp(2rem, 4vh, 3.5rem);
  display: flex;
  justify-content: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(5.5rem, 8.5vw, 9rem);
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.8rem;
  background: var(--accent-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
}

.pulse-ring {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: pulse-dot 1.8s infinite;
}

.hero-name {
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.hero-name .name-first {
  display: block;
  color: var(--text-primary);
}

.hero-name .name-last {
  display: block;
  color: var(--accent-primary);
  text-shadow: 0 0 35px var(--accent-glow);
}

.hero-discipline {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1.5rem;
}

.discipline-tag {
  font-family: var(--font-sub);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.discipline-sub {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-soft);
  letter-spacing: 0.04em;
}

.hero-ethos {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-meta-strip {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.42rem 0.95rem;
  background: rgba(245, 240, 232, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.meta-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  padding-right: 0.55rem;
  border-right: 1px solid rgba(245, 240, 232, 0.12);
  line-height: 1;
}

.meta-val {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1;
}

.meta-val.highlight-green {
  color: var(--accent-bright);
  text-shadow: none;
}

.meta-divider {
  width: 1px;
  height: 14px;
  background: var(--border-subtle);
}

.hero-pill-cloud {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.hero-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.4rem 0.8rem;
  background: rgba(245, 240, 232, 0.03);
  border: 1px solid rgba(245, 240, 232, 0.08);
  border-radius: 6px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  transition: all 0.25s ease;
}

.hero-pill:hover {
  color: var(--text-primary);
  border-color: var(--border-default);
  background: var(--accent-bg);
  transform: translateY(-2px);
}

/* 3D Perspective Card Wrap & Behind-The-Scenes Glow System */
.card-3d-wrap {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

/* Card Glow radiating in all 360Â° directions â€” Multi-shade Terracotta halo */
.card-glow {
  position: absolute;
  inset: -30px;
  border-radius: 36px;
  background-image: var(--card-orange-glow);
  background-size: 240% 240%;
  filter: blur(36px);
  opacity: 0.26;
  pointer-events: none;
  z-index: 1;
  animation: card-orange-glow 7s infinite ease-in-out;
  transition: opacity 0.35s ease, filter 0.35s ease;
  will-change: transform, opacity, filter;
}

/* Dynamic chromatic flare that concentrates under the cursor in warm tones */
.card-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle 260px at var(--glow-x, 50%) var(--glow-y, 50%),
    rgba(255, 133, 108, 0.20) 0%,
    rgba(255, 105, 77, 0.07) 40%,
    transparent 70%
  );
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.card-3d-wrap:hover .card-glow {
  opacity: 0.42;
  filter: blur(40px);
  animation-duration: 4.5s;
}

.card-3d-wrap:hover .card-glow::after {
  opacity: 0.55;
}

.card-3d {
  position: relative;
  z-index: 2;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background-color: var(--bg-elevated);
  border: 1px solid rgba(245, 240, 232, 0.12);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8),
              0 0 20px -10px var(--accent-glow-subtle);
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow 0.3s ease, border-color 0.35s ease;
  cursor: pointer;
}

/* On hover: subtle warm border matching editorial terracotta aesthetic */
.card-3d-wrap:hover .card-3d {
  border-color: transparent;
  background-image: linear-gradient(var(--bg-elevated), var(--bg-elevated)), var(--card-orange-glow);
  background-size: 100% 100%, 240% 240%;
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 30px 75px -15px rgba(0, 0, 0, 0.9),
              0 0 24px -8px var(--accent-glow);
  animation: card-orange-glow 4.5s infinite ease-in-out;
}

@keyframes card-orange-glow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes card-red-glow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes card-rainbow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card-glow,
  .card-3d-wrap:hover .card-3d {
    animation: none;
  }
}

.card-media-shell {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  border-radius: inherit;
}

.hero-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(10%) contrast(108%);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.card-3d-wrap:hover .hero-avatar-img {
  transform: scale(1.04);
  filter: grayscale(0%) contrast(112%);
}

.card-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(245, 240, 232, 0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  mix-blend-mode: overlay;
}

.card-scanline {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.25) 51%);
  background-size: 100% 4px;
  opacity: 0.4;
}

.card-hud-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(10,9,8,0.6) 0%, transparent 35%, transparent 65%, rgba(10,9,8,0.85) 100%);
}

.card-chip-top {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  padding: 0.35rem 0.7rem;
  background: rgba(16, 14, 12, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent-bright);
  letter-spacing: 0.08em;
}

.chip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 6px var(--accent-glow);
}

.card-chip-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.8rem 1.2rem;
  background: rgba(16, 14, 12, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}

.chip-mono {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.chip-val {
  font-family: var(--font-sub);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

/* Scroll Cue */
.scroll-cue {
  display: flex;
  justify-content: center;
  margin-top: 4rem;
}

.cue-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.2rem;
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  background: rgba(245, 240, 232, 0.02);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  animation: float-cue 2.5s infinite ease-in-out;
}

@keyframes float-cue {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); color: var(--text-primary); border-color: var(--border-default); }
}

/* ==========================================================================
   CHAPTER 02: WHAT I DO? (INTEGRATED SYSTEM ARCHITECTURE PIPELINE)
   ========================================================================== */
#ch-what .chapter-content {
  max-width: 1480px;
  width: 95%;
}

.sys-lead {
  margin-bottom: clamp(1.2rem, 2vh, 1.8rem);
  text-align: left;
}

.sys-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.sys-badge-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: rgba(245, 240, 232, 0.08);
  border: 1px solid rgba(245, 240, 232, 0.15);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.78rem;
}

.sys-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.2vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  line-height: 1.1;
}

.sys-headline .accent-orange {
  color: var(--accent-primary);
}

.sys-headline .accent-purple {
  color: var(--accent-bright);
}

.sys-subtitle {
  font-size: clamp(1.02rem, 1.35vw, 1.22rem);
  color: var(--text-secondary);
}

.sys-architecture-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-warm);
  border-radius: 24px;
  padding: clamp(2rem, 3.2vh, 2.75rem) clamp(1.6rem, 2.2vw, 2.4rem) clamp(1.8rem, 2.6vh, 2.4rem);
  box-shadow: 0 25px 70px -15px rgba(0, 0, 0, 0.94), inset 0 1px 0 rgba(245, 240, 232, 0.04);
  backdrop-filter: blur(16px);
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
}

.pipeline-track {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: clamp(0.5rem, 0.8vw, 1rem);
  margin-bottom: 0;
}

/* Pipe Card (4 Lifecycle Stages: Discover, Build, Validate, Deploy) */
.pipe-card {
  flex: 1 1 0;
  min-width: 0;
  max-width: 285px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-warm);
  border-radius: 16px;
  padding: 1.35rem 1.05rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.pipe-card:hover, .pipe-card.active-stage {
  transform: translateY(-4px);
  border-color: rgba(255, 105, 77, 0.45);
  background: rgba(255, 105, 77, 0.035);
  box-shadow: 0 0 24px rgba(255, 105, 77, 0.10);
}

.card-header {
  margin-bottom: 0.65rem;
  text-align: left;
}

.step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  letter-spacing: 0.06em;
  color: var(--accent-soft);
  transition: color 0.25s ease;
}

.pipe-card:hover .step-num,
.pipe-card.active-stage .step-num {
  color: var(--accent-bright);
}

/* Unified step colors */
.step-orange, .step-blue, .step-purple, .step-cyan, .step-green, .step-indigo {
  color: var(--accent-soft);
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.step-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  min-height: 38px;
}

.text-cyan-accent {
  color: var(--accent-bright);
  opacity: 0.95;
}

/* Visual Container */
.card-visual {
  height: 215px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 10px;
  background: rgba(245, 240, 232, 0.015);
  border: 1px solid rgba(245, 240, 232, 0.035);
  padding: 0.45rem;
  overflow: hidden;
}

/* Unified Card Themes & Hover/Active Glows */
.card-discover, .card-data, .card-prototype, .card-build, .card-eval, .card-deploy {
  border-color: var(--border-warm);
  background: var(--bg-secondary);
}

.card-discover:hover, .card-discover.active-stage,
.card-data:hover, .card-data.active-stage,
.card-prototype:hover, .card-prototype.active-stage,
.card-build:hover, .card-build.active-stage,
.card-eval:hover, .card-eval.active-stage,
.card-deploy:hover, .card-deploy.active-stage {
  border-color: rgba(255, 105, 77, 0.45);
  background: rgba(255, 105, 77, 0.035);
  box-shadow: 0 0 24px rgba(255, 105, 77, 0.10);
}

/* ==========================================================================
   CARD 01: DISCOVER VISUAL (GLOWING BULB & SATELLITE PILLS)
   ========================================================================== */
.visual-discover {
  position: relative;
  width: 100%;
}

.bulb-glow {
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 105, 77, 0.22) 0%, rgba(255, 105, 77, 0.05) 50%, transparent 75%);
  top: 44%;
  left: 36%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: bulb-glow-pulse 3s infinite ease-in-out;
}

.bulb-center {
  position: absolute;
  top: 18px;
  left: 12px;
  width: 76px;
  height: 92px;
}

.bulb-svg {
  width: 100%;
  height: 100%;
}

.bulb-aura {
  fill: rgba(255, 105, 77, 0.12);
  filter: blur(5px);
}

.bulb-glass {
  stroke: var(--accent-dark);
  stroke-width: 1.5;
  fill: rgba(255, 105, 77, 0.04);
}

.bulb-filament {
  stroke: var(--accent-primary);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px var(--accent-glow));
  animation: filament-flicker 2.5s infinite ease-in-out;
}

.bulb-base {
  stroke: rgba(245, 240, 232, 0.45);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.discover-links {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.bulb-link {
  stroke: var(--border-subtle);
  stroke-width: 1;
  stroke-dasharray: 2 2;
  animation: link-dash-flow 3s infinite linear;
}

.bulb-link-dot {
  fill: var(--accent-primary);
  filter: drop-shadow(0 0 3px var(--accent-glow));
}

.sat-pill {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.28rem 0.5rem;
  background: rgba(16, 14, 12, 0.94);
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all 0.2s ease;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
}

.sat-pill:hover {
  border-color: var(--accent-primary);
  transform: scale(1.04);
  color: var(--text-primary);
}

.sat-needs {
  top: 10px;
  right: 4px;
}

.sat-constraints {
  top: 78px;
  right: 4px;
}

.sat-metrics {
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-orange {
  background: var(--accent-primary);
  box-shadow: 0 0 6px var(--accent-glow);
  animation: pill-dot-pulse 2.2s infinite ease-in-out;
}

/* ==========================================================================
   CARD 02: DATA & RESEARCH VISUAL (CHIPS + ISOMETRIC DATA SLABS)
   ========================================================================== */
.visual-data {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  padding: 0.4rem 0.25rem;
}

.data-chips-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.sub-chip {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.34rem 0.46rem;
  background: rgba(245, 240, 232, 0.025);
  border: 1px solid rgba(245, 240, 232, 0.07);
  border-radius: 7px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-secondary);
  line-height: 1.18;
  transition: all 0.2s ease;
}

.sub-chip:hover {
  border-color: var(--border-default);
  background: var(--accent-bg);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.chip-icon {
  width: 14px;
  height: 14px;
  stroke: var(--accent-soft);
  flex-shrink: 0;
  transition: stroke 0.2s ease;
}

.card-build .chip-icon { stroke: var(--accent-soft); }
.card-deploy .chip-icon { stroke: var(--accent-soft); }

.data-slabs-art {
  width: 78px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slabs-svg {
  width: 100%;
  height: auto;
  max-height: 165px;
}

.slab-layer {
  fill: rgba(255, 105, 77, 0.06);
  stroke: rgba(255, 105, 77, 0.45);
  stroke-width: 1.2;
}

.slab-top { animation: slab-float-1 3s infinite ease-in-out; }
.slab-mid { animation: slab-float-2 3s infinite ease-in-out 0.3s; }
.slab-bot { animation: slab-float-3 3s infinite ease-in-out 0.6s; }

.slab-edge {
  fill: rgba(255, 105, 77, 0.03);
  stroke: rgba(255, 105, 77, 0.25);
  stroke-width: 1;
}

.data-cube {
  fill: var(--accent-primary);
  stroke: var(--accent-bright);
  stroke-width: 0.8;
  filter: drop-shadow(0 0 3px var(--accent-glow));
}

.cube-1 { animation: cube-bob 2.4s infinite ease-in-out; }
.cube-2 { animation: cube-bob 2.8s infinite ease-in-out 0.4s; }
.cube-3 { animation: cube-bob 2.2s infinite ease-in-out 0.8s; }

/* ==========================================================================
   CARD 03: PROTOTYPE VISUAL (MINI-IDE MODAL)
   ========================================================================== */
.visual-prototype {
  padding: 0.25rem;
}

.ide-window {
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.ide-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.32rem 0.52rem;
  background: rgba(255, 105, 77, 0.05);
  border-bottom: 1px solid rgba(245, 240, 232, 0.05);
}

.ide-dots {
  display: flex;
  gap: 0.26rem;
  align-items: center;
}

.w-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(245, 240, 232, 0.25);
}

.dot-1 { background: rgba(255, 105, 77, 0.7); opacity: 0.85; }
.dot-2 { background: rgba(255, 133, 108, 0.5); opacity: 0.85; }
.dot-3 { background: rgba(169, 160, 151, 0.4); opacity: 0.85; }

.ide-ctrls {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: rgba(245, 240, 232, 0.3);
  display: flex;
  gap: 0.35rem;
}

.ide-body {
  padding: 0.45rem 0.55rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 0.38rem;
}

.ide-item {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.ide-item:hover {
  color: var(--text-primary);
  transform: translateX(2px);
}

.ide-icon {
  width: 14px;
  height: 14px;
  stroke: var(--accent-soft);
  flex-shrink: 0;
  filter: drop-shadow(0 0 3px var(--accent-glow));
}

/* ==========================================================================
   CARD 04: BUILD & INTEGRATE VISUAL (PILLS + SERVER COMPUTE CORE)
   ========================================================================== */
.visual-build {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 0.38rem;
  padding: 0.38rem 0.2rem;
}

.sub-chips-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.38rem;
  width: 100%;
}

.card-build .sub-chip {
  font-size: 0.65rem;
  padding: 0.28rem 0.36rem;
  gap: 0.28rem;
  min-width: 0;
}

.server-core-wrap {
  width: 100%;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.server-svg {
  width: 100px;
  height: 74px;
}

.srv-slab {
  fill: rgba(255, 105, 77, 0.06);
  stroke: rgba(255, 105, 77, 0.45);
  stroke-width: 1.2;
}

.srv-edge {
  fill: rgba(255, 105, 77, 0.03);
  stroke: rgba(255, 105, 77, 0.25);
  stroke-width: 1;
}

.cyan-core {
  fill: var(--accent-primary);
  filter: drop-shadow(0 0 6px var(--accent-glow));
  animation: core-glow-pulse 2.2s infinite ease-in-out;
}

.srv-wire {
  stroke: var(--accent-soft);
  stroke-width: 1.2;
  stroke-dasharray: 3 2;
  animation: link-dash-flow 2.5s infinite linear;
}

/* ==========================================================================
   CARD 05: EVALUATE & HARDEN VISUAL (5-ROW VERIFICATION CHECKLIST)
   ========================================================================== */
.visual-eval {
  padding: 0.4rem 0.35rem;
  justify-content: center;
}

.eval-list {
  display: flex;
  flex-direction: column;
  gap: 0.52rem;
  width: 100%;
}

.eval-row {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.eval-row:hover {
  color: var(--text-primary);
  transform: translateX(2px);
}

.eval-check {
  color: var(--accent-bright);
  font-weight: 800;
  font-size: 0.86rem;
  filter: drop-shadow(0 0 3px var(--accent-glow));
  animation: check-glow 2s infinite ease-in-out;
  flex-shrink: 0;
}

.eval-icon {
  width: 13px;
  height: 13px;
  stroke: var(--accent-soft);
  flex-shrink: 0;
  opacity: 0.85;
}

.eval-label {
  white-space: nowrap;
  letter-spacing: -0.015em;
  font-size: 0.66rem;
}

/* ==========================================================================
   CARD 06: DEPLOY & OPERATE VISUAL (PILLS + WIREFRAME CYBER GLOBE)
   ========================================================================== */
.visual-deploy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 0.38rem;
  padding: 0.38rem 0.2rem;
}

.card-deploy .sub-chips-row {
  grid-template-columns: 1.28fr 0.72fr;
  gap: 0.28rem;
}

.card-deploy .sub-chip {
  font-size: 0.62rem;
  padding: 0.26rem 0.34rem;
  line-height: 1.15;
  gap: 0.24rem;
  min-width: 0;
}

.card-deploy .chip-icon {
  width: 13px;
  height: 13px;
}

.globe-wrap {
  width: 100%;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.globe-svg {
  width: 114px;
  height: 88px;
}

.globe-halo {
  fill: rgba(255, 105, 77, 0.08);
  filter: blur(8px);
}

.globe-sphere {
  stroke: rgba(255, 105, 77, 0.45);
  stroke-width: 1.2;
}

.globe-lat, .globe-equator, .globe-long, .globe-axis {
  stroke: rgba(255, 105, 77, 0.25);
  stroke-width: 1;
}

.globe-node {
  fill: var(--accent-bright);
  filter: drop-shadow(0 0 3px var(--accent-glow));
}

.globe-orbit {
  stroke: var(--accent-soft);
  stroke-width: 1.2;
  stroke-dasharray: 4 2;
  animation: link-dash-flow 4s infinite linear;
}

.orbit-sat {
  fill: var(--accent-primary);
  filter: drop-shadow(0 0 4px var(--accent-glow));
  animation: sat-pulse 2.2s infinite ease-in-out;
}

/* ==========================================================================
   PIPE ARROW CONNECTORS
   ========================================================================== */
.pipe-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  width: 14px;
  flex-shrink: 0;
}

.arrow-track {
  width: 9px;
  height: 2px;
  background: rgba(245, 240, 232, 0.1);
  position: relative;
  overflow: hidden;
  border-radius: 1px;
}

.arrow-pulse {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent-primary), var(--accent-bright), transparent);
  animation: packet-travel 1.8s infinite linear;
}

.arrow-tip {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: rgba(245, 240, 232, 0.35);
  line-height: 1;
}

/* ==========================================================================
   BOTTOM PHASE BRACKETS RAIL (RATIO 2 : 2 : 1 : 1)
   ========================================================================== */
.phase-brackets-rail {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr 1fr;
  gap: 1.25rem;
  padding-top: 1.4rem;
  border-top: 1px dashed rgba(245, 240, 232, 0.08);
}

.phase-bracket {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.bracket-line {
  position: relative;
  width: 100%;
  height: 3px;
  margin-bottom: 0.65rem;
  border-radius: 1px;
  background: rgba(245, 240, 232, 0.16);
  opacity: 0.85;
  transition: all 0.3s ease;
}

.bracket-line::before,
.bracket-line::after {
  content: '';
  position: absolute;
  top: -6px;
  width: 3px;
  height: 9px;
  background: inherit;
  border-radius: 1px;
  box-shadow: inherit;
}

.bracket-line::before { left: 0; }
.bracket-line::after { right: 0; }

.bracket-explore .bracket-line,
.bracket-build .bracket-line,
.bracket-validate .bracket-line,
.bracket-deploy .bracket-line {
  background: rgba(245, 240, 232, 0.16);
  box-shadow: none;
}

.phase-bracket.active-bracket .bracket-line,
.phase-bracket:hover .bracket-line {
  height: 4px;
  opacity: 1;
  background: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-glow);
}

.phase-bracket:hover .bracket-title,
.phase-bracket.active-bracket .bracket-title {
  transform: translateY(-1px);
  color: var(--accent-primary);
}

.bracket-title {
  font-family: var(--font-mono);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  margin-bottom: 0.2rem;
  transition: all 0.2s ease;
  color: var(--text-secondary);
}

.bracket-explore .bracket-title,
.bracket-build .bracket-title,
.bracket-validate .bracket-title,
.bracket-deploy .bracket-title {
  color: var(--text-secondary);
}

.bracket-sub {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Keyframe Animations */
@keyframes packet-travel {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes pill-dot-pulse {
  0%, 100% { opacity: 0.45; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

@keyframes bulb-glow-pulse {
  0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(0.95); }
  50% { opacity: 0.85; transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes filament-flicker {
  0%, 100% { opacity: 0.85; filter: drop-shadow(0 0 4px var(--accent-glow)); }
  25% { opacity: 1; filter: drop-shadow(0 0 8px var(--accent-glow)); }
  60% { opacity: 0.75; filter: drop-shadow(0 0 3px var(--accent-glow)); }
  80% { opacity: 0.95; filter: drop-shadow(0 0 6px var(--accent-glow)); }
}

@keyframes link-dash-flow {
  to { stroke-dashoffset: -16; }
}

@keyframes slab-float-1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@keyframes slab-float-2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes slab-float-3 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1px); }
}

@keyframes cube-bob {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(-4px); opacity: 1; filter: drop-shadow(0 0 4px var(--accent-glow)); }
}

@keyframes core-glow-pulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 4px var(--accent-glow)); }
  50% { transform: scale(1.2); filter: drop-shadow(0 0 8px var(--accent-glow)); }
}

@keyframes check-glow {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); filter: drop-shadow(0 0 4px var(--accent-glow)); }
}

@keyframes sat-pulse {
  0%, 100% { opacity: 0.6; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.25); filter: drop-shadow(0 0 6px var(--accent-glow)); }
}

/* ==========================================================================
   CHAPTER 02: OPTION 1 — UNIFIED MASTER PIPELINE
   ========================================================================== */
.unified-pipeline-card {
  position: relative;
  background: rgba(14, 12, 19, 0.85);
  border: 1px solid rgba(255, 105, 77, 0.16);
  border-radius: 24px;
  padding: clamp(2rem, 3.2vh, 2.75rem) clamp(1.6rem, 2.4vw, 2.6rem);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 105, 77, 0.12);
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.unified-pipeline-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 105, 77, 0.5), transparent);
  pointer-events: none;
}

.unified-pipeline-grid,
.eng-stack-pipeline {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: space-between !important;
  gap: 0.65rem !important;
  margin-top: 0;
  width: 100%;
}

/* Stage Column */
.eng-stage-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.unified-stage-col {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  max-width: none !important;
  width: auto !important;
  background: rgba(18, 16, 24, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  padding: 1.35rem 1.15rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.unified-stage-col:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 105, 77, 0.35);
  background: rgba(255, 105, 77, 0.035);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 24px rgba(255, 105, 77, 0.1);
}

.stage-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.2rem 0 0.85rem 0;
}

.stage-micro-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent-primary);
  background: rgba(255, 105, 77, 0.08);
  border: 1px solid rgba(255, 105, 77, 0.22);
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.eng-stage-head {
  margin-bottom: 0.4rem;
}

.eng-stage-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: var(--accent-primary);
  margin-bottom: 0.25rem;
}

.eng-stage-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.35rem 0;
  line-height: 1.25;
}

.eng-stage-desc {
  font-family: var(--font-sub);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  min-height: 48px;
  margin: 0;
}

/* Isometric 3D Visual Pedestal */
.eng-stage-visual {
  position: relative;
  width: 100%;
  height: 135px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.4rem 0 0.85rem 0;
}

.eng-stage-visual::before {
  content: "";
  position: absolute;
  inset: 4px 6px;
  background: linear-gradient(180deg, rgba(255, 105, 77, 0.035) 0%, rgba(255, 105, 77, 0.008) 100%);
  clip-path: polygon(10% 0%, 90% 0%, 100% 100%, 0% 100%);
  border-top: 1px solid rgba(255, 105, 77, 0.15);
  pointer-events: none;
  border-radius: 4px;
}

.eng-iso-svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(255, 105, 77, 0.15));
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
}

.eng-stage-col:hover .eng-iso-svg {
  transform: translateY(-3px) scale(1.03);
  filter: drop-shadow(0 8px 24px rgba(255, 105, 77, 0.3));
}

/* ==========================================================================
   ISOMETRIC 3D POLYGON ANIMATIONS (CHAPTER 02 PIPELINE)
   Hardware-accelerated continuous floating, levitation & orbital motion
   ========================================================================== */

/* Ground Shadows */
.iso-shadow {
  transform-box: fill-box;
  transform-origin: center;
  animation: isoShadowBreath 3.6s ease-in-out infinite alternate;
}

@keyframes isoShadowBreath {
  0% { transform: scale(0.95); opacity: 0.3; }
  100% { transform: scale(1.04); opacity: 0.55; }
}

/* ==========================================================================
   CHAPTER 02: MINIMAL SINGLE HERO FIGURE 3D ISOMETRIC ANIMATIONS
   01 · ARCHITECT -> Stacked Layers / Exploded Cube
   02 · ENGINEER  -> Orbital Node / Latent Embedding Sphere
   03 · SCALE     -> Database Cylinder / Data Drum
   04 · DEPLOY    -> Wireframe Cube / Infra Box
   ========================================================================== */

/* Ground Shadow Breathing */
.hero-ground-shadow {
  transform-box: fill-box;
  transform-origin: center;
  animation: heroShadowBreath 3.6s ease-in-out infinite alternate;
}

@keyframes heroShadowBreath {
  0% { transform: scale(0.92); opacity: 0.35; }
  100% { transform: scale(1.08); opacity: 0.65; }
}

/* -------------------------------------------------------------
   HERO 01: STACKED LAYERS / ARCHITECTURAL BUILDING BLOCKS
   ------------------------------------------------------------- */
.iso-layer-1 {
  transform-box: fill-box;
  transform-origin: center;
  animation: layerBaseBreath 4.2s ease-in-out infinite alternate;
}

@keyframes layerBaseBreath {
  0% { transform: scale(0.985); opacity: 0.75; }
  100% { transform: scale(1.015); opacity: 1; }
}

.iso-layer-2 {
  transform-box: fill-box;
  transform-origin: center;
  animation: layerMidFloat 3.8s ease-in-out infinite alternate;
}

@keyframes layerMidFloat {
  0% { transform: translateY(0); opacity: 0.8; }
  100% { transform: translateY(-4px); opacity: 1; }
}

.iso-layer-3 {
  transform-box: fill-box;
  transform-origin: center;
  animation: layerTopFloat 3.2s ease-in-out infinite alternate;
}

@keyframes layerTopFloat {
  0% { transform: translateY(0); opacity: 0.85; }
  100% { transform: translateY(-8px); opacity: 1; filter: drop-shadow(0 4px 12px rgba(255, 105, 77, 0.4)); }
}

.iso-layer-diamond {
  transform-box: fill-box;
  transform-origin: center;
  animation: diamondLevitate 3.4s ease-in-out infinite alternate;
}

@keyframes diamondLevitate {
  0% {
    transform: translateY(-4px) rotate(0deg);
    filter: drop-shadow(0 0 6px rgba(255, 105, 77, 0.5));
  }
  50% {
    transform: translateY(2px) rotate(2deg);
    filter: drop-shadow(0 0 18px rgba(255, 133, 108, 0.9));
  }
  100% {
    transform: translateY(7px) rotate(-2deg);
    filter: drop-shadow(0 0 8px rgba(255, 105, 77, 0.6));
  }
}

.diamond-aura {
  transform-box: fill-box;
  transform-origin: center;
  animation: diamondAuraPulse 2.8s ease-in-out infinite alternate;
}

@keyframes diamondAuraPulse {
  0% { transform: scale(0.85); opacity: 0.35; }
  100% { transform: scale(1.2); opacity: 0.85; }
}

.iso-axis-stream {
  stroke-dasharray: 4 3;
  animation: axisStreamFlow 1.6s linear infinite;
}

@keyframes axisStreamFlow {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -14; }
}

.iso-spark-1 {
  transform-box: fill-box;
  transform-origin: center;
  animation: sparkOrbit1 4s ease-in-out infinite alternate;
}
.iso-spark-2 {
  transform-box: fill-box;
  transform-origin: center;
  animation: sparkOrbit2 3.4s ease-in-out infinite alternate;
}

@keyframes sparkOrbit1 {
  0% { transform: translate(0, 0) scale(0.8); opacity: 0.4; }
  50% { transform: translate(6px, -4px) scale(1.3); opacity: 1; }
  100% { transform: translate(-4px, 5px) scale(0.9); opacity: 0.6; }
}
@keyframes sparkOrbit2 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.8; }
  100% { transform: translate(-8px, -6px) scale(1.4); opacity: 0.3; }
}

/* -------------------------------------------------------------
   HERO 02: ORBITAL NODE / EMBEDDING SPHERE
   ------------------------------------------------------------- */
.iso-orbital-node-group {
  transform-box: fill-box;
  transform-origin: center;
  animation: orbitalNodeLevitate 4.2s ease-in-out infinite alternate;
}

@keyframes orbitalNodeLevitate {
  0% { transform: translateY(0); }
  100% { transform: translateY(-5px); }
}

.node-sphere-aura {
  transform-box: fill-box;
  transform-origin: center;
  animation: sphereAuraPulse 3s ease-in-out infinite alternate;
}

@keyframes sphereAuraPulse {
  0% { transform: scale(0.88); opacity: 0.4; }
  100% { transform: scale(1.18); opacity: 0.9; }
}

.node-core-sphere {
  transform-box: fill-box;
  transform-origin: center;
  animation: coreSphereBreath 2.6s ease-in-out infinite alternate;
}

@keyframes coreSphereBreath {
  0% { transform: scale(0.92); filter: drop-shadow(0 0 6px rgba(255, 105, 77, 0.5)); }
  100% { transform: scale(1.1); filter: drop-shadow(0 0 18px rgba(255, 133, 108, 0.95)); }
}

.iso-orbit-equator {
  transform-box: fill-box;
  transform-origin: center;
  animation: equatorSpin 5s ease-in-out infinite alternate;
}

@keyframes equatorSpin {
  0% { transform: rotate(-15deg) scaleY(1); opacity: 0.7; }
  50% { transform: rotate(-15deg) scaleY(0.25); opacity: 1; stroke: #ff856c; }
  100% { transform: rotate(-15deg) scaleY(-1); opacity: 0.7; }
}

.iso-orbit-polar {
  transform-box: fill-box;
  transform-origin: center;
  animation: polarSpin 6s linear infinite;
}

@keyframes polarSpin {
  0% { transform: rotate(25deg) scaleX(1); opacity: 0.75; }
  25% { transform: rotate(25deg) scaleX(0.2); opacity: 1; stroke: #ffa085; }
  50% { transform: rotate(25deg) scaleX(-1); opacity: 0.75; }
  75% { transform: rotate(25deg) scaleX(-0.2); opacity: 1; stroke: #ffa085; }
  100% { transform: rotate(25deg) scaleX(1); opacity: 0.75; }
}

.iso-orbit-diagonal {
  transform-box: fill-box;
  transform-origin: center;
  animation: diagonalOrbitBreath 4s ease-in-out infinite alternate;
}

@keyframes diagonalOrbitBreath {
  0% { transform: rotate(55deg) scale(0.94); opacity: 0.4; }
  100% { transform: rotate(55deg) scale(1.06); opacity: 0.8; }
}

.orbit-satellite-1 {
  transform-box: fill-box;
  transform-origin: center;
  animation: satOrbit1 4.5s ease-in-out infinite alternate;
}
.orbit-satellite-2 {
  transform-box: fill-box;
  transform-origin: center;
  animation: satOrbit2 3.8s ease-in-out infinite alternate;
}
.orbit-satellite-3 {
  transform-box: fill-box;
  transform-origin: center;
  animation: satOrbit3 5s ease-in-out infinite alternate;
}

@keyframes satOrbit1 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  50% { transform: translate(-12px, 8px) scale(1.4); opacity: 1; }
  100% { transform: translate(8px, -10px) scale(0.8); opacity: 0.4; }
}
@keyframes satOrbit2 {
  0% { transform: translate(0, 0) scale(0.9); opacity: 0.5; }
  50% { transform: translate(14px, -6px) scale(1.4); opacity: 1; }
  100% { transform: translate(-8px, 12px) scale(0.7); opacity: 0.5; }
}
@keyframes satOrbit3 {
  0% { transform: translate(0, 0); opacity: 0.4; }
  50% { transform: translate(-6px, -12px) scale(1.3); opacity: 1; }
  100% { transform: translate(10px, 6px) scale(0.8); opacity: 0.5; }
}

/* -------------------------------------------------------------
   HERO 03: DATABASE CYLINDER / DATA DRUM
   ------------------------------------------------------------- */
.iso-drum-group {
  transform-box: fill-box;
  transform-origin: center;
  animation: drumFloat 4.4s ease-in-out infinite alternate;
}

@keyframes drumFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-5px); }
}

.iso-drum-core {
  transform-box: fill-box;
  transform-origin: center;
  animation: drumCoreGlow 2.5s ease-in-out infinite alternate;
}

@keyframes drumCoreGlow {
  0% { transform: scale(0.85); opacity: 0.45; }
  100% { transform: scale(1.2); opacity: 0.95; }
}

.iso-drum-tier-1, .iso-drum-tier-2 {
  stroke-dasharray: 4 2;
  animation: drumTierPulse 3s linear infinite;
}

@keyframes drumTierPulse {
  0% { stroke-dashoffset: 0; opacity: 0.6; }
  50% { opacity: 1; stroke: #ffa085; }
  100% { stroke-dashoffset: -12; opacity: 0.6; }
}

.iso-data-stream {
  stroke-dasharray: 3 3;
  animation: dataStreamFlow 1.2s linear infinite;
}

@keyframes dataStreamFlow {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -12; }
}

.iso-packet-1 {
  animation: packetFall1 2.2s ease-in-out infinite;
}
.iso-packet-2 {
  animation: packetFall2 2.6s ease-in-out infinite 0.9s;
}

@keyframes packetFall1 {
  0% { transform: translateY(-16px); opacity: 0; }
  30% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(22px); opacity: 0; }
}
@keyframes packetFall2 {
  0% { transform: translateY(-14px); opacity: 0; }
  35% { opacity: 1; }
  75% { opacity: 1; }
  100% { transform: translateY(18px); opacity: 0; }
}

/* -------------------------------------------------------------
   HERO 04: WIREFRAME CUBE / INFRA BOX
   ------------------------------------------------------------- */
.iso-cube-group {
  transform-box: fill-box;
  transform-origin: center;
  animation: cubeBoxFloat 4s ease-in-out infinite alternate;
}

@keyframes cubeBoxFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

.iso-cube-top {
  transform-box: fill-box;
  transform-origin: center;
  animation: cubeTopBreath 3.6s ease-in-out infinite alternate;
}

@keyframes cubeTopBreath {
  0% { transform: scale(0.98) translateY(1px); opacity: 0.7; }
  100% { transform: scale(1.02) translateY(-2px); opacity: 1; }
}

.iso-cube-bottom {
  transform-box: fill-box;
  transform-origin: center;
  animation: cubeBottomBreath 3.6s ease-in-out infinite alternate;
}

@keyframes cubeBottomBreath {
  0% { opacity: 0.35; }
  100% { opacity: 0.85; }
}

.iso-inner-payload {
  transform-box: fill-box;
  transform-origin: center;
  animation: payloadFloat 3s ease-in-out infinite alternate;
}

@keyframes payloadFloat {
  0% { transform: translateY(3px) scale(0.95); }
  100% { transform: translateY(-4px) scale(1.05); filter: drop-shadow(0 0 10px rgba(255, 105, 77, 0.8)); }
}

.payload-aura {
  transform-box: fill-box;
  transform-origin: center;
  animation: payloadAuraPulse 2.4s ease-in-out infinite alternate;
}

@keyframes payloadAuraPulse {
  0% { transform: scale(0.8); opacity: 0.4; }
  100% { transform: scale(1.25); opacity: 0.95; }
}

.iso-satellite-1 {
  transform-box: fill-box;
  transform-origin: center;
  animation: satOrbit1 4.5s ease-in-out infinite alternate;
}
.iso-satellite-2 {
  transform-box: fill-box;
  transform-origin: center;
  animation: satOrbit2 3.8s ease-in-out infinite alternate;
}

/* -------------------------------------------------------------
   HOVER ACCELERATION & ENHANCED LIGHTING
   ------------------------------------------------------------- */
.unified-stage-col:hover .iso-layer-diamond {
  animation-duration: 1.8s;
  filter: drop-shadow(0 0 20px rgba(255, 105, 77, 0.95)) drop-shadow(0 0 35px rgba(255, 133, 108, 0.6));
}

.unified-stage-col:hover .iso-layer-3 {
  transform: translateY(-11px);
  filter: drop-shadow(0 4px 18px rgba(255, 105, 77, 0.6));
}

.unified-stage-col:hover .node-core-sphere {
  animation-duration: 1.2s;
  filter: drop-shadow(0 0 22px rgba(255, 133, 108, 1));
}

.unified-stage-col:hover .iso-orbit-equator {
  animation-duration: 2.5s;
}

.unified-stage-col:hover .iso-orbit-polar {
  animation-duration: 3s;
}

.unified-stage-col:hover .iso-drum-group {
  animation-duration: 2.2s;
}

.unified-stage-col:hover .iso-cube-group {
  animation-duration: 2s;
}

.unified-stage-col:hover .iso-inner-payload {
  animation-duration: 1.6s;
}

@media (prefers-reduced-motion: reduce) {
  .hero-ground-shadow,
  .iso-layer-1,
  .iso-layer-2,
  .iso-layer-3,
  .iso-layer-diamond,
  .diamond-aura,
  .iso-axis-stream,
  .iso-spark-1,
  .iso-spark-2,
  .iso-orbital-node-group,
  .node-sphere-aura,
  .node-core-sphere,
  .iso-orbit-equator,
  .iso-orbit-polar,
  .iso-orbit-diagonal,
  .orbit-satellite-1,
  .orbit-satellite-2,
  .orbit-satellite-3,
  .iso-drum-group,
  .iso-drum-core,
  .iso-drum-tier-1,
  .iso-drum-tier-2,
  .iso-data-stream,
  .iso-packet-1,
  .iso-packet-2,
  .iso-cube-group,
  .iso-cube-top,
  .iso-cube-bottom,
  .iso-inner-payload,
  .payload-aura,
  .iso-satellite-1,
  .iso-satellite-2,
  .flow-track-line,
  .flow-head-arrow {
    animation: none !important;
  }
}

/* -------------------------------------------------------------
   DIRECTIONAL FLOW CONNECTORS ANIMATIONS
   ------------------------------------------------------------- */
.eng-flow-arrow {
  flex: 0 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 9.8rem;
}

.eng-flow-arrow svg {
  width: 24px;
  height: 24px;
  animation: engArrowPulse 2.4s ease-in-out infinite alternate;
}

@keyframes engArrowPulse {
  0% { transform: translateX(-2px); opacity: 0.55; }
  100% { transform: translateX(2px); opacity: 1; filter: drop-shadow(0 0 6px var(--accent-glow)); }
}

.flow-track-line {
  stroke-dasharray: 4 3;
  animation: flowLineDash 1.2s linear infinite;
}

@keyframes flowLineDash {
  0% { stroke-dashoffset: 14; }
  100% { stroke-dashoffset: 0; }
}

.flow-head-arrow {
  animation: flowHeadNudge 1.6s ease-in-out infinite alternate;
}

@keyframes flowHeadNudge {
  0% { transform: translateX(0); }
  100% { transform: translateX(3px); }
}

/* -------------------------------------------------------------
   HOVER ACCELERATION & ENHANCED GLOW EFFECTS
   ------------------------------------------------------------- */
.unified-stage-col:hover .planner-prism {
  animation-duration: 2.5s;
}

.unified-stage-col:hover .iso-scanner-beam {
  animation-duration: 1.6s;
}

.unified-stage-col:hover .worker-ring {
  animation-duration: 1.5s;
}

.unified-stage-col:hover .ci-runner-spin {
  animation-duration: 1.8s;
}

.unified-stage-col:hover .telemetry-loop-track {
  animation-duration: 1s;
}

@media (prefers-reduced-motion: reduce) {
  .planner-prism,
  .planner-core,
  .agent-aura,
  .val-ring,
  .node-query-pulse,
  .agent-loop-track,
  .pkt-query,
  .pkt-tool,
  .pkt-rag,
  .pkt-val-loop,
  .pkt-out,
  .iso-embedding-space,
  .iso-scanner-beam,
  .iso-kg-subgraph circle,
  .vec-pt,
  .reranker-funnel,
  .pkt-gw-q,
  .worker-ring,
  .pkt-q-w1,
  .pkt-q-w2,
  .cache-box,
  .pkt-cache-hit,
  .db-cap,
  .db-ring-mid,
  .pkt-scale-out,
  .telemetry-loop-track,
  .telemetry-packet,
  .git-node-pulse,
  .ci-runner-spin,
  .docker-box,
  .cloud-beacon-wave,
  .deploy-release-packet,
  .flow-track-line,
  .flow-head-arrow {
    animation: none !important;
  }
}

/* Tool List Panel */
.eng-tools-panel {
  background: rgba(18, 16, 24, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.eng-stage-col:hover .eng-tools-panel {
  border-color: rgba(255, 105, 77, 0.25);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), 0 0 20px rgba(255, 105, 77, 0.08);
}

.eng-tool-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.2s ease;
  cursor: default;
}

.eng-tool-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(3px);
}

.eng-tool-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.eng-tool-item:hover .eng-tool-icon {
  transform: scale(1.12);
}

.eng-tool-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.eng-tool-name {
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.eng-tool-item:hover .eng-tool-name {
  color: #ffffff;
}

/* Responsive */
@media (max-width: 960px) {
  .unified-pipeline-grid,
  .eng-stack-pipeline {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem !important;
  }
  .eng-flow-arrow {
    display: none !important;
  }
}

@media (max-width: 600px) {
  .unified-pipeline-card,
  .eng-stack-card {
    padding: 1.35rem 0.95rem;
    border-radius: 18px;
  }
  .unified-pipeline-grid,
  .eng-stack-pipeline {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
  }
}

/* ==========================================================================
   CHAPTER 03: WHAT I'VE DONE? (HORIZONTAL PINNED SHOWCASE)
   ========================================================================== */
.projects-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: clamp(1rem, 2vh, 1.6rem);
}

.carousel-hud-controls {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.carousel-counter-pill {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--accent-primary);
  background: var(--accent-bg);
  border: 1px solid var(--border-subtle);
  padding: 0.42rem 0.95rem;
  border-radius: 9999px;
  font-weight: 700;
}

.carousel-nav-btns {
  display: inline-flex;
  gap: 0.6rem;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.15rem;
  transition: all 0.2s ease;
}

.carousel-btn:hover:not(:disabled) {
  border-color: var(--accent-primary);
  color: var(--text-primary);
  background: var(--accent-bg);
  box-shadow: 0 0 14px var(--accent-glow);
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.chapter-horizontal-screen {
  display: block !important;
  height: 320vh;
  min-height: 320vh;
  padding: 0 !important;
  position: relative;
  border-bottom: 1px solid rgba(245, 240, 232, 0.04);
  box-sizing: border-box;
}

.horizontal-pin-viewport {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  padding: clamp(4rem, 6vh, 5.5rem) 0 clamp(1.8rem, 3vh, 2.5rem) 0;
}

.horizontal-content-container {
  max-width: 1480px;
  width: 95%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
}

.minimal-lead {
  margin-bottom: 0;
}

.horizontal-track-window {
  width: 100%;
  overflow: visible;
  position: relative;
  padding: 0.5rem 0;
}

.horizontal-projects-track {
  display: flex;
  gap: clamp(2.5rem, 4vw, 4.5rem);
  will-change: transform;
  transition: transform 0.04s linear;
}

.horizontal-projects-track .project-card {
  flex: 0 0 clamp(880px, 75vw, 1220px);
  width: clamp(880px, 75vw, 1220px);
  max-width: 90vw;
  box-sizing: border-box;
  background: rgba(13, 10, 19, 0.85);
  border: 1px solid var(--border-warm);
  border-radius: 24px;
  padding: clamp(2.2rem, 3.6vh, 3.2rem) clamp(2.4rem, 3.2vw, 3.8rem);
  backdrop-filter: blur(16px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.4s ease,
              border-color 0.35s ease,
              box-shadow 0.35s ease;
  opacity: 0.45;
  transform: scale(0.96);
}

.horizontal-projects-track .project-card.active-card {
  opacity: 1;
  transform: scale(1);
  border-color: var(--border-active);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 24px rgba(255, 105, 77, 0.10);
}

/* Extra-large presentation specifically for Tracxo hero card */
.horizontal-projects-track .showcase-tracxo {
  flex: 0 0 clamp(980px, 84vw, 1380px);
  width: clamp(980px, 84vw, 1380px);
  padding: clamp(1.8rem, 2.6vh, 2.6rem) clamp(2.2rem, 2.8vw, 3.2rem);
}

/* Remove orange border and orange glow specifically for Tracxo */
.horizontal-projects-track .showcase-tracxo,
.horizontal-projects-track .showcase-tracxo.active-card {
  border-color: var(--border-warm);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
}

.showcase-tracxo .media-frame.frame-link:hover {
  border-color: rgba(245, 240, 232, 0.28);
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.85);
}

.showcase-tracxo .media-visit-badge {
  border: 1px solid rgba(245, 240, 232, 0.16);
}

.showcase-tracxo .media-frame.frame-link:hover .media-visit-badge {
  background: rgba(24, 22, 20, 0.95);
  border-color: rgba(245, 240, 232, 0.35);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  transform: translateY(-2px);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1.32fr 1fr;
  gap: clamp(2rem, 3.5vw, 4rem);
  align-items: center;
}

.showcase-grid.reverse {
  grid-template-columns: 1.32fr 1fr;
}

/* Give Tracxo visual column an expansive share of the card */
.showcase-tracxo .showcase-grid {
  grid-template-columns: 1.82fr 1fr;
  gap: clamp(1.8rem, 2.8vw, 3.2rem);
}

@media (max-width: 1000px) {
  .showcase-grid, .showcase-grid.reverse, .showcase-tracxo .showcase-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
}

.media-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(245, 240, 232, 0.12);
  background: var(--bg-primary);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  aspect-ratio: 16 / 10.5;
  max-height: clamp(330px, 45vh, 440px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tracxo image frame enlarged even more */
.showcase-tracxo .media-frame {
  aspect-ratio: 16 / 9.8;
  max-height: clamp(430px, 62vh, 600px);
  min-height: 380px;
  border-radius: 20px;
}

@media (max-width: 1000px) {
  .showcase-tracxo .media-frame {
    min-height: unset;
    max-height: 420px;
  }
}

.media-frame.frame-zoomable {
  cursor: zoom-in;
}

.media-frame.frame-link {
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.media-frame.frame-link:hover {
  border-color: rgba(255, 105, 77, 0.55);
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.8), 0 0 28px rgba(255, 105, 77, 0.16);
}

.showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.media-frame:hover .showcase-img {
  transform: scale(1.025);
}

.media-overlay-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  padding: 0.42rem 0.85rem;
  background: rgba(10, 9, 8, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-primary);
  letter-spacing: 0.1em;
}

/* Floating interactive visit badge for Tracxo frame */
.media-visit-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.9rem;
  background: rgba(16, 14, 12, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-default);
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.08em;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.media-frame.frame-link:hover .media-visit-badge {
  background: var(--accent-primary);
  border-color: var(--accent-bright);
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-2px);
}

.live-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.7);
  animation: live-dot-pulse 2s infinite ease-in-out;
}

@keyframes live-dot-pulse {
  0%, 100% { opacity: 0.6; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); box-shadow: 0 0 12px rgba(34, 197, 94, 0.9); }
}

.project-tag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.95rem;
}

.project-idx-num {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.project-site-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.8rem;
  background: rgba(255, 105, 77, 0.08);
  border: 1px solid var(--border-default);
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-bright);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: all 0.25s ease;
  cursor: pointer;
}

.project-site-link:hover {
  background: var(--accent-primary);
  border-color: var(--accent-bright);
  color: #fff;
  box-shadow: 0 0 16px var(--accent-glow);
  transform: translateY(-1px);
}

.site-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-bright);
  transition: background 0.25s ease;
}

.project-site-link:hover .site-dot {
  background: #fff;
}

.site-arrow {
  font-size: 0.82rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

.project-site-link:hover .site-arrow {
  transform: translate(2px, -2px);
}

.p-tag {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.32rem 0.72rem;
  border-radius: 5px;
  letter-spacing: 0.08em;
  background: rgba(245, 240, 232, 0.04);
  border: 1px solid rgba(245, 240, 232, 0.1);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.p-tag:hover {
  border-color: var(--border-default);
  color: var(--text-primary);
}

.p-tag.accent-orange {
  background: var(--accent-bg);
  border: 1px solid var(--border-subtle);
  color: var(--accent-primary);
}

.p-tag.accent-cyan,
.p-tag.accent-purple {
  background: rgba(245, 240, 232, 0.04);
  border: 1px solid rgba(245, 240, 232, 0.12);
  color: var(--text-secondary);
}

.p-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.project-headline {
  font-family: var(--font-sub);
  font-size: clamp(1.85rem, 2.5vw, 2.45rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
}

.project-headline .headline-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: color 0.25s ease;
}

.project-headline .headline-link:hover {
  color: var(--accent-bright);
}

.project-headline .ext-icon {
  font-size: 1.1rem;
  opacity: 0.45;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.project-headline .headline-link:hover .ext-icon {
  opacity: 1;
  transform: translate(3px, -3px);
}

.project-summary {
  font-size: clamp(1.0rem, 1.22vw, 1.14rem);
  color: var(--text-secondary);
  line-height: 1.62;
  margin-bottom: 0;
}

.project-divider {
  width: 100%;
  height: 1px;
  background: rgba(245, 240, 232, 0.08);
  margin: 1.3rem 0;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.m-card {
  padding: 0.7rem 1.05rem;
  background: rgba(245, 240, 232, 0.03);
  border: 1px solid var(--border-warm);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.m-val {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.m-lbl {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-footer-row {
  display: flex;
  align-items: center;
  margin-top: 1.25rem;
}

.project-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.95rem;
  background: rgba(245, 240, 232, 0.035);
  border: 1px solid var(--border-warm);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.role-icon {
  width: 14px;
  height: 14px;
  stroke: var(--text-muted);
}

/* Carousel Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: clamp(1.2rem, 2.2vh, 1.8rem);
}

.carousel-dot {
  width: 32px;
  height: 5px;
  border-radius: 3px;
  background: rgba(245, 240, 232, 0.15);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.carousel-dot.active {
  width: 62px;
  background: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-glow);
}

@media (max-width: 960px) {
  .chapter-horizontal-screen {
    height: auto;
    min-height: 100vh;
  }
  .horizontal-pin-viewport {
    position: relative;
    height: auto;
    padding: 5rem 0 3rem 0;
  }
  .horizontal-track-window {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .horizontal-track-window::-webkit-scrollbar {
    display: none;
  }
  .horizontal-projects-track .project-card {
    flex: 0 0 88vw;
    width: 88vw;
    opacity: 1;
    transform: none;
    scroll-snap-align: center;
  }
}

/* ==========================================================================
/* ==========================================================================
   CHAPTER 04: EXPERIENCE (CLEAN MINIMAL LIST WITH ORG LOGOS)
   ========================================================================== */
.chapter-experience-screen {
  justify-content: center;
  padding: clamp(5rem, 8vh, 7rem) 0;
}

.exp-lead {
  margin-bottom: clamp(2rem, 3.5vh, 2.8rem);
}

.exp-section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.exp-lead-divider {
  width: 52px;
  height: 2.5px;
  background: var(--accent-primary);
  border-radius: 2px;
  margin-top: 0.85rem;
  box-shadow: 0 0 10px var(--accent-glow);
}

.experience-minimal-list {
  display: flex;
  flex-direction: column;
  gap: clamp(4.5rem, 7.5vh, 6.5rem);
  max-width: 960px;
  width: 100%;
}

.exp-minimal-item {
  display: flex;
  gap: clamp(1.25rem, 2.5vw, 2.2rem);
  align-items: flex-start;
}

.exp-minimal-item + .exp-minimal-item {
  padding-top: clamp(2.8rem, 5vh, 4rem);
  border-top: 1px solid rgba(255, 105, 77, 0.14);
}

.exp-org-col {
  flex-shrink: 0;
  padding-top: 0.2rem;
}

.exp-logo-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 16px rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.exp-minimal-item:hover .exp-logo-wrap {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 105, 77, 0.25);
  border-color: var(--accent-bright);
}

.exp-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.soul-logo-wrap {
  background: #12101e;
}

.exp-content-col {
  flex: 1;
  min-width: 0;
}

.exp-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.exp-headline-group {
  display: flex;
  flex-direction: column;
}

.exp-company-name {
  font-family: var(--font-display);
  font-size: clamp(1.28rem, 2vw, 1.55rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.015em;
  margin: 0;
}

.exp-role-name {
  display: block;
  font-family: var(--font-sub);
  font-size: clamp(0.94rem, 1.25vw, 1.05rem);
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: 0.2rem;
  letter-spacing: 0.01em;
}

.exp-meta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  text-align: right;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.exp-date-range {
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 1vw, 0.86rem);
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.exp-duration-tag {
  color: var(--accent-primary);
  opacity: 0.88;
  font-weight: 500;
  margin-left: 0.15rem;
}

.exp-location {
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 0.9vw, 0.78rem);
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.loc-pin-icon {
  width: 11px;
  height: 11px;
  stroke: var(--accent-primary);
  opacity: 0.85;
  flex-shrink: 0;
}

.exp-bullet-list {
  list-style: none;
  padding: 0;
  margin: 1.15rem 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.exp-bullet-list li {
  position: relative;
  padding-left: 1.4rem;
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 1.1vw, 0.98rem);
  line-height: 1.62;
  color: rgba(245, 240, 232, 0.88);
  font-weight: 400;
}

.exp-bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a855f7;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
}

/* NEC Experience Photo Moments */
.exp-moments-block {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px dashed rgba(255, 105, 77, 0.22);
}

.exp-moments-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.moments-icon {
  font-size: 0.8rem;
  color: var(--accent-primary);
}

.exp-moments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.exp-moment-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: 0;
  cursor: pointer;
  text-align: left;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.exp-moment-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.exp-moment-thumb .moment-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 9, 8, 0) 35%, rgba(10, 9, 8, 0.88) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0.55rem 0.7rem;
  opacity: 0.92;
  transition: opacity 0.25s ease;
}

.moment-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #ffffff;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.moment-zoom-icon {
  font-size: 0.75rem;
  color: var(--accent-bright);
  font-weight: 600;
  transition: transform 0.25s ease, color 0.25s ease;
}

.exp-moment-thumb:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 105, 77, 0.45);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65), 0 0 20px rgba(255, 105, 77, 0.2);
}

.exp-moment-thumb:hover img {
  transform: scale(1.06);
}

.exp-moment-thumb:hover .moment-zoom-icon {
  transform: translate(2px, -2px);
  color: #ffffff;
}

.exp-moment-thumb:hover .moment-overlay {
  opacity: 1;
}

@media (max-width: 768px) {
  .exp-minimal-item {
    gap: 1rem;
  }
  .exp-logo-wrap {
    width: 46px;
    height: 46px;
  }
  .exp-item-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  .exp-meta-group {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
    text-align: left;
    margin-top: 0.2rem;
  }
  .exp-moments-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
  }
}

@media (max-width: 580px) {
  .exp-moments-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .exp-moment-thumb {
    aspect-ratio: 16 / 9;
  }
}

/* ==========================================================================
   CHAPTER 05: EDUCATION (OPTION 4 â€” SPLIT IMMERSIVE LAYOUT)
   ========================================================================== */
.edu-panel {
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  background: rgba(14, 11, 20, 0.78);
  border: 1px solid var(--border-warm);
  border-radius: 26px;
  padding: clamp(2rem, 3.8vh, 3rem) clamp(2.2rem, 3.6vw, 3.4rem);
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65), 0 0 40px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
}

.edu-panel-header {
  margin-bottom: clamp(1.8rem, 2.8vh, 2.4rem);
}

.edu-panel-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.2vw, 2.8rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.55rem;
}

.edu-panel-subtitle {
  font-family: var(--font-display);
  font-size: clamp(0.92rem, 1.15vw, 1.02rem);
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 680px;
  margin: 0;
}

.edu-split-list {
  display: flex;
  flex-direction: column;
  gap: clamp(1.2rem, 2vh, 1.6rem);
  width: 100%;
}

.edu-split-card {
  display: grid;
  grid-template-columns: 1.05fr 1.35fr;
  gap: clamp(1.6rem, 2.4vw, 2.4rem);
  background: rgba(19, 15, 27, 0.65);
  border: 1px solid rgba(245, 240, 232, 0.08);
  border-radius: 18px;
  padding: clamp(1.15rem, 1.8vw, 1.45rem);
  box-sizing: border-box;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease,
              background 0.3s ease;
}

.edu-split-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 105, 77, 0.28);
  background: rgba(24, 19, 34, 0.78);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55), 0 0 24px rgba(255, 105, 77, 0.06);
}

.edu-split-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9.6;
  min-height: 190px;
  border-radius: 12px;
  overflow: hidden;
  background: #09070f;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

.edu-split-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(104%) brightness(0.92);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.5s ease;
}

.edu-split-card:hover .edu-split-img {
  transform: scale(1.035);
  filter: contrast(106%) brightness(0.98);
}

.edu-loc-badge {
  position: absolute;
  bottom: 0.85rem;
  left: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.75rem;
  background: rgba(10, 8, 14, 0.78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(245, 240, 232, 0.14);
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.edu-split-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.35rem 0.25rem 0.35rem 0;
  box-sizing: border-box;
}

.edu-split-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.edu-split-years {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent-primary);
  letter-spacing: 0.04em;
}

.edu-split-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--accent-primary);
  text-decoration: none;
  transition: transform 0.25s ease, color 0.25s ease;
}

.edu-split-card:hover .edu-split-arrow,
.edu-split-arrow:hover {
  transform: translate(2.5px, -2.5px);
  color: var(--accent-bright);
}

.edu-split-institution {
  font-family: var(--font-display);
  font-size: clamp(1.28rem, 1.65vw, 1.5rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0.3rem 0 0.25rem 0;
}

.edu-split-degree {
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.35;
  margin: 0 0 0.45rem 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.edu-gpa-tag,
.edu-scholarship-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent-bright);
  background: rgba(255, 105, 77, 0.08);
  border: 1px solid rgba(255, 105, 77, 0.22);
  border-radius: 6px;
  padding: 0.15rem 0.5rem;
  vertical-align: middle;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.edu-split-desc {
  font-family: var(--font-display);
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.52;
  margin: 0 0 1rem 0;
}

.edu-split-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: auto;
}

.edu-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.85rem;
  background: rgba(245, 240, 232, 0.04);
  border: 1px solid rgba(245, 240, 232, 0.1);
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  cursor: default;
}

.edu-chip:hover {
  background: rgba(255, 105, 77, 0.08);
  border-color: rgba(255, 105, 77, 0.35);
  color: var(--text-primary);
}

@media (max-width: 900px) {
  .edu-split-card {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }
  .edu-split-visual {
    aspect-ratio: 16 / 9;
    min-height: unset;
    max-height: 260px;
  }
}

@media (max-width: 600px) {
  .edu-panel {
    padding: 1.6rem 1.15rem;
    border-radius: 20px;
  }
  .edu-split-card {
    padding: 1rem;
    border-radius: 15px;
  }
  .edu-panel-title {
    font-size: 1.85rem;
  }
}

/* ==========================================================================
   CHAPTER 06: LET'S COLLABORATE (COSMIC PLANET HORIZON SPLIT)
   ========================================================================== */
.chapter-contact {
  padding-bottom: clamp(3.5rem, 6vh, 5rem);
}

.collab-panel {
  position: relative;
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  border-radius: 28px;
  border: 1px solid rgba(255, 105, 77, 0.28);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 35px rgba(255, 105, 77, 0.08);
  background-color: #07050d;
  overflow: hidden;
  box-sizing: border-box;
}

/* Background Cosmic Planet Horizon Artwork */
.collab-bg-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  border-radius: 28px;
}

.collab-planet-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  opacity: 0.85;
  filter: contrast(110%) brightness(0.92);
}

.collab-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 20%, rgba(6, 4, 10, 0.4) 0%, rgba(6, 4, 10, 0.8) 100%),
              linear-gradient(180deg, rgba(6, 4, 10, 0.6) 0%, rgba(6, 4, 10, 0.15) 50%, rgba(6, 4, 10, 0.85) 100%);
}

/* 2-Column Split Grid */
.collab-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.9fr;
  align-items: stretch;
  min-height: 480px;
  padding: clamp(2.6rem, 4.5vh, 3.6rem) clamp(2.4rem, 4vw, 3.6rem) 2rem clamp(2.4rem, 4vw, 3.6rem);
}

/* Left Column */
.collab-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-right: clamp(2rem, 3.5vw, 3.5rem);
  border-right: 1px solid rgba(255, 105, 77, 0.22);
}

.collab-badge-row,
.collab-card-badge-row {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.collab-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 10px rgba(255, 105, 77, 0.85);
}

.collab-badge-txt {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.collab-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 4.8vw, 4.6rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 1.5rem 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.collab-flow-sub {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 0.9vw, 0.82rem);
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: auto;
  padding-top: 1rem;
}

.collab-arrow-flow {
  color: var(--accent-soft);
  font-weight: 700;
}

/* Right Column */
.collab-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-left: clamp(2rem, 3.5vw, 3.5rem);
  gap: 1.8rem;
}

/* Contact Card Box */
.collab-contact-box {
  width: 100%;
  max-width: 440px;
  background: rgba(16, 12, 22, 0.65);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 105, 77, 0.22);
  border-radius: 18px;
  padding: 1.5rem 1.6rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.collab-contact-box:hover {
  border-color: rgba(255, 105, 77, 0.38);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 105, 77, 0.08);
}

.collab-card-badge-row {
  margin-bottom: 1rem;
}

/* Email Pill Container */
.collab-email-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  background: rgba(10, 8, 14, 0.88);
  border: 1px solid rgba(255, 105, 77, 0.28);
  border-radius: 14px;
  padding: 0.55rem 0.6rem 0.55rem 1.15rem;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.collab-email-pill:hover,
.collab-email-pill:focus-within {
  border-color: rgba(255, 105, 77, 0.55);
  box-shadow: 0 0 20px rgba(255, 105, 77, 0.15), inset 0 2px 6px rgba(0, 0, 0, 0.5);
}

.collab-email-txt {
  font-family: var(--font-mono);
  font-size: clamp(0.86rem, 1.1vw, 0.98rem);
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.02em;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.collab-email-txt:hover {
  color: var(--accent-bright);
}

.collab-arrow-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: #0b0911;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(255, 105, 77, 0.45);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.25s ease,
              box-shadow 0.25s ease;
}

.collab-arrow-btn:hover {
  transform: scale(1.08) translateX(2px);
  background: var(--accent-bright);
  box-shadow: 0 0 22px rgba(255, 105, 77, 0.7);
}

.collab-arrow-btn:active {
  transform: scale(0.95);
}

.collab-sub-note {
  font-family: var(--font-display);
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 0.95rem;
  margin-bottom: 0;
  line-height: 1.45;
}

/* Social Icons */
.collab-socials-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.65rem;
}

.collab-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: transform 0.25s ease, color 0.25s ease, filter 0.25s ease;
}

.collab-social-link:hover {
  color: #ffffff;
  transform: translateY(-3px);
  filter: drop-shadow(0 0 8px rgba(255, 105, 77, 0.4));
}

/* Bottom Footer Bar */
.collab-footer-bar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem clamp(2.4rem, 4vw, 3.6rem);
  border-top: 1px solid rgba(255, 105, 77, 0.16);
  background: rgba(6, 4, 10, 0.6);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* Toast Notification */
.copy-toast {
  display: block;
  height: 0;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-bright);
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.25s ease;
  margin: 0;
}

.copy-toast.show {
  height: auto;
  opacity: 1;
  transform: translateY(0);
  margin-top: 0.65rem;
}

/* Return to top button */
.btn-return-top {
  padding: 0.35rem 0.9rem;
  background: transparent;
  border: 1px solid rgba(255, 105, 77, 0.2);
  border-radius: 9999px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  cursor: pointer;
  letter-spacing: 0.06em;
  transition: all 0.2s ease;
}

.btn-return-top:hover {
  border-color: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 105, 77, 0.2);
}

/* Responsive */
@media (max-width: 900px) {
  .collab-grid {
    grid-template-columns: 1fr;
    min-height: unset;
    gap: 2.2rem;
    padding: 2rem 1.6rem 1.5rem 1.6rem;
  }
  .collab-left {
    border-right: none;
    border-bottom: 1px solid rgba(255, 105, 77, 0.2);
    padding-right: 0;
    padding-bottom: 2rem;
  }
  .collab-right {
    padding-left: 0;
    width: 100%;
  }
  .collab-contact-box {
    max-width: 100%;
  }
  .collab-footer-bar {
    padding: 0.85rem 1.6rem;
    flex-direction: column;
    gap: 0.6rem;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .collab-panel {
    border-radius: 22px;
  }
  .collab-title {
    font-size: 2.6rem;
  }
  .collab-flow-sub {
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .collab-email-pill {
    padding: 0.45rem 0.5rem 0.45rem 0.85rem;
  }
  .collab-email-txt {
    font-size: 0.8rem;
  }
}
/* ==========================================================================
   RESEARCH LIGHTBOX MODAL
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 9, 8, 0.85);
  backdrop-filter: blur(10px);
}

.modal-dialog {
  position: relative;
  z-index: 10;
  max-width: 900px;
  width: 92vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 40px rgba(255, 105, 77, 0.12);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 1.5rem;
  background: rgba(245, 240, 232, 0.03);
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
  color: var(--text-primary);
  transform: scale(1.1);
}

.modal-body {
  padding: 1.25rem 1.5rem 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.modal-img-container {
  width: 100%;
  max-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #08070a;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-img {
  max-width: 100%;
  max-height: 65vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 6px;
  background: transparent;
}

.modal-caption {
  font-family: var(--font-display);
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-top: 1rem;
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */
@media (max-height: 650px), (max-width: 960px) {
  .chapter-screen {
    padding: 6rem 0 3rem 0;
  }
}
