/* ---------------------------------------------
   Global Styles & Tokens
---------------------------------------------- */
:root {
  --gradient-primary: linear-gradient(
    180deg,
    #080052 0%,
    #4300b2 30%,
    #6d15ff 60%,
    #b999ff 85%,
    #ffffff 100%
  );
  --gradient-border: linear-gradient(90deg, #5f00ff, #a384ff, #5f00ff);
  --color-text-primary: #ffffff;
  --color-text-secondary: #cccccc;
  --color-card: rgba(255, 255, 255, 0.05);
  --color-card-outline: rgba(255, 255, 255, 0.2);
  --stack-next-bg: #000000;
  --stack-next-core: #ffffff;
  --stack-react-bg: #20232a;
  --stack-react-core: #61dafb;
  --stack-tailwind-bg: #0f172a;
  --stack-tailwind-core: #38bdf8;
  --stack-node-bg: #1b1a17;
  --stack-node-core: #83cd29;
  --stack-python-bg: #1b2a4a;
  --stack-python-yellow: #ffd43b;
  --stack-python-blue: #3776ab;
  --stack-aws-bg: #232f3e;
  --stack-aws-accent: #ff9900;
  --stack-figma-bg: #1f1b24;
  --stack-typescript-bg: #3178c6;
  --stack-typescript-text: #ffffff;
  --stack-graphql-bg: #311c5f;
  --stack-graphql-core: #e10098;
  --stack-docker-bg: #0a2540;
  --stack-docker-core: #0db7ed;
  --stack-firebase-bg: #1f1a10;
  --stack-firebase-core: #ffca28;
  --stack-firebase-accent: #ffa000;
  --stack-vercel-bg: #000000;
  --stack-vercel-core: #ffffff;
  --marquee-speed: 20s;
  --font-heading: "Clash Display", "Poppins", sans-serif;
  --font-body: "Inter", "Manrope", sans-serif;
  --max-width: 1200px;
  --side-padding-desktop: 80px;
  --side-padding-mobile: 20px;
  --transition: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------------------------------------
   Contact: Lunar Outpost
---------------------------------------------- */
.contact-lunar {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #020615 0%, #040a1f 40%, #010207 100%);
  padding-block: clamp(5rem, 9vw, 8rem);
}

.contact-lunar::before,
.contact-lunar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.contact-lunar::before {
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.28) 1px, transparent 1.2px),
    radial-gradient(circle, rgba(255, 255, 255, 0.18) 0.8px, transparent 1.1px);
  background-size: 180px 180px, 260px 260px;
  background-position: 0 0, 90px 60px;
  opacity: 0.45;
}

.contact-lunar::after {
  background:
    radial-gradient(circle at 78% 12%, rgba(117, 146, 255, 0.35), transparent 55%),
    radial-gradient(circle at 18% 20%, rgba(140, 170, 255, 0.24), transparent 60%);
  mix-blend-mode: screen;
  opacity: 0.32;
}

.contact-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(2.6rem, 6vw, 4.5rem);
  align-items: center;
}

.contact-copy {
  grid-column: span 6;
  display: grid;
  gap: clamp(1.2rem, 3vw, 2rem);
}

.contact-tag {
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
}

.contact-copy h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.7rem);
  line-height: 1.12;
}

.contact-copy p {
  max-width: 560px;
  color: var(--color-text-secondary);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.contact-scene {
  grid-column: span 6;
  position: relative;
  min-height: clamp(300px, 40vw, 440px);
}

.contact-stars,
.contact-glow,
.contact-horizon {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.contact-stars {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.45) 0.7px, transparent 1.1px);
  background-size: 140px 140px;
  opacity: 0.45;
}

.contact-glow {
  background: radial-gradient(circle at 50% 15%, rgba(120, 150, 255, 0.24), transparent 60%);
  mix-blend-mode: screen;
}

.contact-horizon {
  bottom: -22%;
  inset-inline: -12%;
  height: 62%;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(240, 242, 255, 0.85) 0%, rgba(206, 212, 240, 0.54) 35%, rgba(44, 50, 88, 0.42) 62%, transparent 78%),
    radial-gradient(ellipse at 50% 12%, rgba(210, 214, 236, 0.42), rgba(210, 214, 236, 0.16) 55%, transparent 76%);
  filter: blur(1.3px);
}

.contact-moon {
  position: absolute;
  left: 50%;
  bottom: 32%;
  width: clamp(200px, 30vw, 280px);
  height: clamp(200px, 30vw, 280px);
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.96), rgba(229, 232, 250, 0.82) 40%, rgba(194, 200, 232, 0.58) 68%, rgba(52, 58, 96, 0.45) 88%);
  box-shadow: inset -18px -22px 44px rgba(0, 0, 0, 0.35), 0 50px 140px rgba(86, 110, 160, 0.32);
  overflow: hidden;
}

.contact-crater {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(22, 26, 60, 0.55), rgba(200, 204, 236, 0.4) 55%, rgba(210, 214, 246, 0.18) 78%, transparent 85%);
  box-shadow: inset 10px 10px 18px rgba(255, 255, 255, 0.18);
}

.crater-large {
  width: clamp(64px, 9vw, 90px);
  height: clamp(64px, 9vw, 90px);
  top: 42%;
  left: 18%;
}

.crater-mid {
  width: clamp(52px, 8vw, 76px);
  height: clamp(52px, 8vw, 76px);
  top: 30%;
  right: 20%;
}

.crater-small {
  width: clamp(42px, 6vw, 62px);
  height: clamp(42px, 6vw, 62px);
  top: 62%;
  left: 46%;
}

@media (max-width: 992px) {
  .contact-shell {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    text-align: center;
  }

  .contact-copy,
  .contact-scene {
    grid-column: span 12;
  }

  .contact-copy {
    justify-items: center;
  }

  .contact-actions {
    justify-content: center;
  }

  .contact-scene {
    min-height: clamp(260px, 52vw, 380px);
  }
}

@media (max-width: 768px) {
  .contact-lunar {
    padding-block: clamp(3.5rem, 12vw, 5.5rem);
  }

  .contact-copy h2 {
    font-size: clamp(2.2rem, 7vw, 3rem);
  }

  .contact-actions {
    flex-direction: column;
    gap: 0.85rem;
  }
}

@media (max-width: 600px) {
  .contact-tag {
    font-size: 0.7rem;
  }

  .contact-copy p {
    font-size: 0.95rem;
  }

  .contact-scene {
    min-height: clamp(220px, 60vw, 320px);
  }

  .contact-moon {
    width: clamp(170px, 46vw, 220px);
    height: clamp(170px, 46vw, 220px);
  }
}

@media (max-width: 992px) {
  .lab-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .lab-player,
  .lab-narrative {
    grid-column: span 1;
  }

  .lab-footer {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@media (max-width: 768px) {
  .experience-lab {
    padding-bottom: clamp(3rem, 10vw, 4.5rem);
  }

  .lab-player {
    padding: clamp(1.4rem, 6vw, 2rem);
  }

  .lab-footer {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .lab-insight-tab {
    flex: 1 1 calc(33% - 0.65rem);
    text-align: center;
  }
}

@media (max-width: 600px) {
  .lab-footer {
    grid-template-columns: 1fr;
  }

  .lab-insight-tab {
    flex: 1 1 100%;
  }
}

@keyframes track-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
  }
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--color-text-primary);
  background: #060022;
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.section {
  position: relative;
  padding: clamp(4rem, 10vw, 8rem) 0;
  min-height: min(100vh, 800px);
}

.container {
  width: min(var(--max-width), 100%);
  margin: 0 auto;
  padding: 0 clamp(var(--side-padding-mobile), 6vw, var(--side-padding-desktop));
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(3rem, 6vw, 5rem);
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--color-text-secondary);
  margin-top: 1rem;
}

/* ---------------------------------------------
   Background Layers & Cursor
---------------------------------------------- */
.background-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.bg-gradient {
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0.8;
}

.bg-stars {
  position: absolute;
  inset: 0;
  width: 120%;
  height: 120%;
  object-fit: cover;
  animation: slow-pan 60s linear infinite;
  filter: brightness(1.1);
}

.bg-particles {
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
  mix-blend-mode: screen;
  opacity: 0.2;
}

.bg-particles span {
  position: absolute;
  width: clamp(2px, 0.4vw, 4px);
  height: clamp(2px, 0.4vw, 4px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0.4;
  animation: float 12s ease-in-out infinite;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  pointer-events: none;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 25px rgba(95, 0, 255, 0.6);
  transform: translate(-50%, -50%);
  transition: transform 150ms var(--transition), opacity 200ms ease;
  z-index: 10;
}

.cursor.is-hovering {
  transform: translate(-50%, -50%) scale(1.35);
  box-shadow: 0 0 30px rgba(95, 0, 255, 0.75);
}

.cursor.is-clicking {
  transform: translate(-50%, -50%) scale(0.85);
}

@media (hover: none) {
  .cursor {
    display: none;
  }
}

/* ---------------------------------------------
   Navbar
---------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 20;
  background: #000000;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.navbar.scrolled {
  background: #000000;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.15rem 0;
}

.logo img {
  display: block;
  height: clamp(42px, 5vw, 58px);
  width: auto;
}

.nav-links {
  display: flex;
  gap: clamp(1rem, 2vw, 2.5rem);
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

.nav-links a {
  position: relative;
  padding-bottom: 4px;
  transition: color 200ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.6);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 250ms var(--transition);
}

.nav-links li a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ---------------------------------------------
   Buttons
---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-border);
  color: #1a003d;
  box-shadow: 0 0 25px rgba(95, 0, 255, 0.35);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(95, 0, 255, 0.6);
}

.btn-outline {
  background: rgba(6, 0, 34, 0.6);
  color: var(--color-text-primary);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
}

/* ---------------------------------------------
   Hero Section
---------------------------------------------- */
.hero {
  display: grid;
  align-items: center;
  min-height: 100vh;
  padding-top: clamp(6rem, 10vw, 10rem);
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
}

.hero-text {
  grid-column: span 7;
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 3vw, 1.8rem);
  --parallaxX: 0px;
  --parallaxY: 0px;
  transform: translate3d(var(--parallaxX), calc(30px + var(--parallaxY)), 0);
  opacity: 0;
}

.hero-text.active {
  transform: translate3d(var(--parallaxX), var(--parallaxY), 0);
  opacity: 1;
  transition: transform 700ms var(--transition), opacity 700ms ease;
}

.hero-text .eyebrow {
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.hero-text h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 8vw, 5rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.hero-text .subtitle {
  max-width: 540px;
  color: var(--color-text-secondary);
}

.hero-text .cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-visual {
  grid-column: span 5;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 1.5rem 2rem;
  min-width: 220px;
  border-radius: 20px;
  background: var(--color-card);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: center;
  box-shadow: 0 20px 45px rgba(14, 0, 45, 0.45);
}

.floating-card:first-of-type {
  transform: translate(-130%, -80%) rotate(-6deg);
}

.floating-card:last-of-type {
  transform: translate(30%, 40%) rotate(5deg);
}

.floating-card span {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
}

.hero-sphere {
  position: absolute;
  top: 45%;
  left: 52%;
  transform: translate(-50%, -50%);
  width: clamp(220px, 28vw, 320px);
  height: clamp(220px, 28vw, 320px);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.7), rgba(95, 0, 255, 0.2));
  filter: blur(0.5px);
  animation: pulse 6s ease-in-out infinite;
  opacity: 0.6;
}

.floating-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.floating-particles span {
  position: absolute;
  width: clamp(8px, 1vw, 16px);
  height: clamp(8px, 1vw, 16px);
  background: rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
  animation: float 12s ease-in-out infinite;
}

.floating-particles span:nth-child(2) {
  top: 20%;
  left: 30%;
  animation-delay: -2s;
}

.floating-particles span:nth-child(3) {
  top: 65%;
  left: 70%;
  animation-delay: -4s;
}

.floating-particles span:nth-child(4) {
  top: 45%;
  left: 10%;
  animation-delay: -6s;
}

.floating-particles span:nth-child(5) {
  top: 15%;
  left: 80%;
  animation-delay: -8s;
}

.hero-stats {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 1.8rem);
  justify-content: center;
}

.stat-pill {
  flex: 1 1 clamp(220px, 28%, 280px);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.35rem 1.6rem;
  border-radius: 18px;
  background: rgba(5, 0, 40, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 30px rgba(10, 0, 30, 0.45);
}

.stat-pill .label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}

.stat-pill .value {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 4vw, 1.9rem);
}

.hero-partners {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: clamp(1.8rem, 5vw, 3rem);
  align-items: center;
  text-align: center;
}

.partners-label {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.partners-logos {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  justify-content: center;
}

.partners-logos li {
  flex: 0 0 auto;
  opacity: 0.75;
  transition: opacity 200ms ease;
}

.partners-logos li:hover {
  opacity: 1;
}

.partners-logos img {
  max-height: clamp(24px, 4vw, 36px);
  filter: grayscale(100%);
}

.scroll-indicator {
  position: absolute;
  bottom: clamp(3rem, 6vw, 5rem);
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(6, 0, 34, 0.45);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 6px 0;
  cursor: pointer;
}

.scroll-indicator span {
  width: 6px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  animation: scroll-pulse 1.8s ease-in-out infinite;
}

/* ---------------------------------------------
   Experience Lab Section
---------------------------------------------- */
.experience-lab {
  position: relative;
  min-height: auto;
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.lab-player {
  grid-column: span 6;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(1.2rem, 3vw, 2rem);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  border-radius: 28px;
  background: rgba(6, 0, 34, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 60px rgba(6, 0, 34, 0.45);
  overflow: hidden;
}

.lab-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.lab-tag {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(163, 132, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.lab-toggle {
  display: inline-flex;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(9, 0, 45, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  gap: 0.35rem;
}

.toggle-pill {
  padding: 0.45rem 1.15rem;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 220ms ease, color 220ms ease;
}

.toggle-pill.active {
  background: linear-gradient(90deg, rgba(95, 0, 255, 0.45), rgba(163, 132, 255, 0.45));
  color: var(--color-text-primary);
  box-shadow: 0 10px 25px rgba(95, 0, 255, 0.35);
}

.toggle-pill:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

.lab-screen {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 0, 40, 0.6);
  aspect-ratio: 16 / 9;
}

.lab-screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lab-track {
  position: absolute;
  bottom: 1.2rem;
  left: 1.4rem;
  display: flex;
  gap: 0.45rem;
}

.lab-track span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  animation: track-pulse 1.4s ease-in-out infinite;
}

.lab-track span:nth-child(2) {
  animation-delay: -0.2s;
}

.lab-track span:nth-child(3) {
  animation-delay: -0.4s;
}

.lab-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 1.6rem);
  justify-items: center;
}

.lab-stat {
  padding: 1rem 1.2rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 0.4rem;
  text-align: center;
}

.lab-stat .label {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.lab-stat .value {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
}

.lab-narrative {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.lab-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
}

.lab-narrative h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
}

.lab-list {
  list-style: disc;
  padding-left: 1.4rem;
  display: grid;
  gap: 0.55rem;
  color: var(--color-text-secondary);
}

.lab-insights {
  display: grid;
  gap: 1.4rem;
}

.lab-insight-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.lab-insight-tab {
  padding: 0.45rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(9, 0, 45, 0.6);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, border 200ms ease;
}

.lab-insight-tab.active {
  background: linear-gradient(90deg, rgba(95, 0, 255, 0.35), rgba(163, 132, 255, 0.35));
  color: var(--color-text-primary);
  border-color: rgba(163, 132, 255, 0.4);
}

.lab-insight-panels {
  display: grid;
  gap: 1rem;
}

.lab-insight-panel {
  display: none;
  padding: clamp(1.2rem, 3vw, 1.8rem);
  border-radius: 20px;
  background: rgba(6, 0, 34, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 32px rgba(9, 0, 45, 0.35);
  gap: 0.75rem;
}

.lab-insight-panel.active {
  display: grid;
}

.lab-insight-metric {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
}

.lab-insight-metric .badge {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(103, 255, 176, 0.2);
  border: 1px solid rgba(103, 255, 176, 0.5);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(103, 255, 176, 0.9);
}

.lab-insight-body {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
}

/* ---------------------------------------------
   Tools Marquee
---------------------------------------------- */
.tools-marquee {
  --marquee-speed: 20s;
  min-height: auto;
  padding-block: clamp(3rem, 6vw, 5rem);
  background: rgba(6, 0, 34, 0.7);
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}

.marquee-container {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}

.marquee {
  display: flex;
  width: max-content;
  gap: clamp(4rem, 8vw, 6rem);
  animation: marquee-scroll var(--marquee-speed) linear infinite;
  will-change: transform;
}

.showcase-panels {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  margin-top: clamp(1.8rem, 4vw, 2.8rem);
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1rem, 3vw, 1.8rem);
}

.panel-card {
  position: relative;
  padding: clamp(1.3rem, 3.5vw, 1.8rem);
  border-radius: 20px;
  background: rgba(6, 0, 34, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 36px rgba(9, 0, 45, 0.35);
  display: grid;
  gap: 0.8rem;
  transition: transform 250ms var(--transition), border 250ms ease;
}

.panel-card:hover {
  transform: translateY(-6px);
  border-color: rgba(163, 132, 255, 0.35);
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.6);
}

.panel-icon {
  font-size: 1.1rem;
}

.panel-value {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.panel-meta {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.panel-footnote {
  font-size: 0.8rem;
  color: rgba(103, 255, 176, 0.8);
}

.panel-progress {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.panel-progress span {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #5f00ff, #a384ff);
}

.panel-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  list-style: none;
}

.panel-tags li {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.panel-sparkline {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
}

.panel-sparkline span {
  flex: 1;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.1));
  animation: pulse 2.2s ease-in-out infinite alternate;
}

.panel-sparkline span:nth-child(2) {
  height: 18px;
  animation-delay: -0.25s;
}

.panel-sparkline span:nth-child(3) {
  height: 24px;
  animation-delay: -0.5s;
}

.panel-sparkline span:nth-child(4) {
  height: 20px;
  animation-delay: -0.75s;
}

.panel-sparkline span:nth-child(5) {
  height: 28px;
  animation-delay: -1s;
}

.showcase-deck {
  background: rgba(6, 0, 34, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: clamp(1.5rem, 4vw, 2.3rem);
  display: grid;
  gap: 1.5rem;
}

.deck-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.deck-tab {
  padding: 0.55rem 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(9, 0, 45, 0.6);
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 200ms ease, color 200ms ease, border 200ms ease;
}

.deck-tab:hover,
.deck-tab:focus-visible {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--color-text-primary);
}

.deck-tab.active {
  background: linear-gradient(90deg, rgba(95, 0, 255, 0.35), rgba(163, 132, 255, 0.35));
  color: var(--color-text-primary);
  border-color: rgba(163, 132, 255, 0.4);
}

.deck-panels {
  display: grid;
  gap: 1.25rem;
}

.deck-panel {
  display: none;
  gap: 1rem;
}

.deck-panel.active {
  display: grid;
}

.deck-panel h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
}

.deck-panel p {
  color: var(--color-text-secondary);
}

.deck-panel ul {
  list-style: disc;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------------------------------------------
   Tools Marquee
---------------------------------------------- */
.tools-marquee {
  --marquee-speed: 20s;
  min-height: auto;
  padding-block: clamp(3rem, 6vw, 5rem);
  background: rgba(6, 0, 34, 0.7);
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}

.marquee-container {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}

.marquee {
  display: flex;
  gap: clamp(4rem, 8vw, 6rem);
  animation: marquee var(--marquee-speed) linear infinite;
}

.marquee li {
  flex: 0 0 auto;
  width: clamp(100px, 10vw, 140px);
  opacity: 0.9;
  transition: opacity 200ms ease, transform 200ms ease;
}

.stack-logo {
  width: 100%;
  height: auto;
  display: block;
  padding: 0.35rem 0.5rem;
  border-radius: 16px;
  box-shadow: 0 14px 28px rgba(6, 0, 34, 0.35);
}

.stack-logo text {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  fill: rgba(255, 255, 255, 0.82);
}

.stack-logo--aws text {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
}

.marquee li:hover {
  opacity: 1;
  transform: translateY(-4px);
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ---------------------------------------------
   Interactive Projects
---------------------------------------------- */
.interactive-projects .projects-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.project-list {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.project-tab {
  text-align: left;
  padding: clamp(1.4rem, 3vw, 1.8rem);
  border-radius: 24px;
  background: rgba(8, 0, 40, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: border 250ms ease, transform 250ms ease, color 250ms ease, background 250ms ease;
  position: relative;
}

.project-tab span {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--color-text-primary);
}

.project-tab.active {
  border-image: var(--gradient-border) 1;
  color: var(--color-text-primary);
  transform: translateX(10px);
  background: rgba(8, 0, 40, 0.78);
  box-shadow: 0 20px 45px rgba(8, 0, 40, 0.45);
}

.project-tab:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(8, 0, 40, 0.72);
}

.project-display {
  grid-column: span 7;
  position: relative;
  perspective: 1200px;
  min-height: clamp(320px, 45vw, 520px);
}

.display-card {
  position: absolute;
  inset: 0;
  border-radius: 32px;
  overflow: hidden;
  opacity: 0;
  transform: rotateY(10deg) translateZ(-100px);
  transition: opacity 500ms ease, transform 600ms var(--transition);
  box-shadow: 0 40px 80px rgba(4, 0, 28, 0.55);
}

.display-card.active {
  opacity: 1;
  transform: rotateY(0deg) translateZ(0);
  z-index: 2;
}

.window-frame {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 28px;
  background: rgba(9, 0, 45, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1.1rem;
  background: linear-gradient(90deg, rgba(20, 0, 60, 0.95), rgba(9, 0, 45, 0.8));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.window-title {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.72);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-flex;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
}

.dot-close {
  background: linear-gradient(145deg, #ff5f57, #d9413a);
}

.dot-minimize {
  background: linear-gradient(145deg, #febc2e, #e5a725);
}

.dot-full {
  background: linear-gradient(145deg, #28c840, #1fa435);
}

.window-body {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 0 0 28px 28px;
}

.finder {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.1rem, 3vw, 2.2rem);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  flex: 1 1 auto;
  color: var(--color-text-secondary);
  background: radial-gradient(circle at 20% 20%, rgba(95, 0, 255, 0.14), transparent 60%);
}

.finder-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.finder-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.6);
}

.finder-list {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  min-width: 0;
}

.finder-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.95rem;
  transition: transform 200ms ease, border 200ms ease;
}

.finder-item span {
  pointer-events: none;
}

.finder-item .meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
}

.finder-item:hover {
  transform: translateX(4px);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.finder-item.folder span:first-child::before {
  content: "📁";
  margin-right: 0.6rem;
}

.finder-item.file span:first-child::before {
  content: "📄";
  margin-right: 0.6rem;
}

.finder-item.file.html span:first-child::before {
  content: "</>";
}

.finder-item.file.css span:first-child::before {
  content: "#";
}

.finder-item.file.js span:first-child::before {
  content: "{}";
}

.finder-item.file.jsx span:first-child::before {
  content: "⚛";
}

.finder-item.file.scss span:first-child::before {
  content: "∑";
}

.finder-item.file.json span:first-child::before {
  content: "{ }";
}

.finder-item.file.md span:first-child::before {
  content: "✍";
}

.finder-item.file.py span:first-child::before {
  content: "🐍";
}

.finder-item.file.yaml span:first-child::before {
  content: "Y";
}

.finder-item.file.ts span:first-child::before {
  content: "TS";
}

.finder-item.file.sql span:first-child::before {
  content: "SQL";
}

.finder-item.file.fig span:first-child::before {
  content: "🎨";
}

.finder-item.file.pdf span:first-child::before {
  content: "📚";
}

.window-footer {
  display: grid;
  gap: clamp(1rem, 3vw, 1.6rem);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  padding: clamp(1rem, 3vw, 1.4rem);
  background: radial-gradient(circle at 10% -20%, rgba(163, 132, 255, 0.22), transparent 55%),
    rgba(8, 0, 40, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.footer-label {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.footer-value {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.6vw, 1.3rem);
  color: var(--color-text-primary);
  overflow-wrap: anywhere;
}

.footer-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-tags li {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.78);
}

/* ---------------------------------------------
   Portfolio Grid
---------------------------------------------- */
.portfolio {
  position: relative;
  background: rgba(6, 0, 34, 0.55);
  border-block: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.portfolio::before {
  content: "";
  position: absolute;
  inset: 15% -40% -10% 30%;
  background: radial-gradient(circle, rgba(95, 0, 255, 0.25), transparent 55%);
  opacity: 0.6;
  pointer-events: none;
}

.portfolio-timeline {
  position: relative;
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.2rem);
  padding-bottom: clamp(2rem, 5vw, 3rem);
}

.portfolio-timeline::before {
  content: "";
  position: absolute;
  left: clamp(0.5rem, 2vw, 1.5rem);
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
}

.timeline-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1rem, 2vw, 1.6rem);
  padding: clamp(1.4rem, 4vw, 2rem);
  border-radius: 24px;
  background: rgba(8, 0, 40, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 60px rgba(7, 0, 30, 0.45);
  transform: translateX(0);
  opacity: 0.85;
  transition: transform 300ms var(--transition), opacity 300ms ease, border 300ms ease;
}

.timeline-card.active {
  transform: translateX(12px);
  opacity: 1;
  border-color: rgba(163, 132, 255, 0.35);
}

.timeline-card:hover {
  transform: translateX(16px);
  opacity: 1;
}

.timeline-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  min-width: 60px;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(145deg, #5f00ff, #a384ff);
  box-shadow: 0 0 20px rgba(163, 132, 255, 0.6);
}

.timeline-date {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.55);
}

.timeline-body header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.timeline-body h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}

.timeline-body .badge {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.timeline-body p {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.8rem;
}

.timeline-tags {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.65);
}

.timeline-tags li {
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.timeline-link {
  margin-top: 1rem;
  border: none;
  background: transparent;
  color: rgba(163, 132, 255, 0.85);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.timeline-link::after {
  content: "→";
  font-size: 0.85rem;
  transition: transform 200ms ease;
}

.timeline-link:hover::after {
  transform: translateX(4px);
}

.portfolio-detail {
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  padding: clamp(1.8rem, 4vw, 2.5rem);
  border-radius: 28px;
  background: rgba(5, 0, 34, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 80px rgba(5, 0, 34, 0.5);
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.2rem);
}

.detail-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.detail-close {
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  font-size: 1.2rem;
  line-height: 0;
  cursor: pointer;
}

.detail-badge {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

#detailTitle {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.detail-body {
  display: grid;
  gap: clamp(1.4rem, 4vw, 2rem);
}

.detail-body video {
  width: 100%;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 0, 40, 0.6);
  aspect-ratio: 16 / 9;
}

.detail-grid {
  display: grid;
  gap: clamp(1rem, 3vw, 1.6rem);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.detail-block {
  display: grid;
  gap: 0.45rem;
}

.detail-block .label {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.detail-block p,
.detail-block ul {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}

.detail-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
}

.detail-tags li {
  padding: 0.3rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
}

.detail-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.testimonials {
  backdrop-filter: blur(14px);
}

.testimonial-carousel {
  display: grid;
  gap: 2rem;
}

.testimonial-track {
  position: relative;
  min-height: clamp(320px, 40vw, 380px);
  display: grid;
  place-items: center;
}

.testimonial-card {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(100%, 640px);
  max-width: 640px;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: var(--color-card);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
  transition: opacity 600ms ease, transform 600ms var(--transition);
}

.testimonial-card.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  z-index: 2;
}

.testimonial-card .avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.45);
}

.testimonial-card blockquote {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--color-text-secondary);
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: transform 200ms ease, background 200ms ease;
}

.indicator.active {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.4);
}

.impact {
  overflow: hidden;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.impact-copy {
  grid-column: span 5;
}

.impact-copy h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.impact-copy p {
  margin-top: 1rem;
  color: var(--color-text-secondary);
}

.impact-stats {
  grid-column: span 7;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.stat-card {
  padding: 2.2rem;
  border-radius: 24px;
  background: rgba(6, 0, 34, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: transform 600ms var(--transition), opacity 600ms ease;
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  background: var(--gradient-border);
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 250ms ease;
}

.stat-card:hover::after {
  opacity: 0.35;
}

.stat-card.active {
  opacity: 1;
  transform: translateY(0);
}

.stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 3.8rem);
}

.impact-lines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.05) 0px,
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px,
      transparent 80px
    ),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.03) 0px,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 120px
    );
  opacity: 0.35;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: diagonal-move 30s linear infinite;
}

.finale-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 7vw, 4.8rem);
}

.finale-content p {
  max-width: 540px;
  color: var(--color-text-secondary);
}

.finale-content .symbol {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  color: rgba(255, 255, 255, 0.8);
  animation: pulse 2.5s ease-in-out infinite;
}

#contactButton:hover {
  animation: shake 600ms ease;
}

/* ---------------------------------------------
   Footer
---------------------------------------------- */
.footer {
  padding: 2rem 0 3rem;
  background: rgba(6, 0, 34, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 4vw, 3rem);
  justify-content: space-between;
  align-items: flex-start;
  color: var(--color-text-secondary);
}

.footer-brand {
  flex: 1 1 260px;
  max-width: 360px;
  display: grid;
  gap: 0.6rem;
}

.footer-links {
  display: flex;
  flex: 1 1 380px;
  gap: clamp(2rem, 5vw, 3.5rem);
}

.footer-column {
  min-width: 160px;
  display: grid;
  gap: 0.9rem;
}

.footer-column h3 {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.footer-column a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.68);
  transition: color 200ms ease;
}

.footer-column a:hover,
.footer-column a:focus-visible {
  color: #ffffff;
}

/* ---------------------------------------------
   Utilities & States
---------------------------------------------- */
[data-parallax] {
  will-change: transform;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
  transition: transform 700ms var(--transition), opacity 700ms ease;
}

.hidden-mobile {
  display: none;
}

/* ---------------------------------------------
   Responsive Adjustments
---------------------------------------------- */
@media (max-width: 1200px) {
  .hero-content,
  .video-grid,
  .interactive-projects .projects-grid,
  .impact-grid {
    gap: clamp(1.5rem, 4vw, 3rem);
  }
}

@media (max-width: 992px) {
  .nav-links {
    display: none;
  }

  .hero-content,
  .video-grid,
  .interactive-projects .projects-grid,
  .impact-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .hero-text,
  .hero-visual,
  .video-wrapper,
  .video-copy,
  .project-list,
  .project-display,
  .impact-copy,
  .impact-stats {
    grid-column: span 1;
  }

  .hero {
    text-align: center;
  }

  .hero-text .cta-group {
    justify-content: center;
  }

  .floating-card:first-of-type,
  .floating-card:last-of-type {
    position: relative;
    transform: none;
    margin: 1rem auto;
  }

  .project-display {
    position: relative;
    min-height: 320px;
  }

  .testimonial-track {
    display: flex;
    overflow: hidden;
  }

  .video-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .showcase-panels {
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  .section {
    min-height: auto;
    padding: clamp(3rem, 12vw, 4rem) 0;
  }

  .floating-particles {
    display: none;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .impact-stats {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    min-width: 280px;
    width: min(90vw, 360px);
    inset: auto;
  }

  .hero-stats {
    justify-content: center;
  }

  .stat-pill {
    flex: 1 1 calc(50% - 1rem);
    text-align: left;
  }

  .hero-partners {
    margin-top: 2rem;
  }

  .scroll-indicator {
    bottom: 2rem;
  }

  .video-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .deck-tabs {
    gap: 0.5rem;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 0.95rem;
  }

  .container {
    padding: 0 var(--side-padding-mobile);
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .floating-card {
    min-width: 200px;
  }

  .footer-grid {
    flex-direction: column;
    text-align: center;
  }

  .stat-pill {
    flex: 1 1 100%;
    text-align: center;
  }

  .partners-logos {
    gap: 1.2rem;
  }

  .video-metrics {
    grid-template-columns: 1fr;
  }

  .panel-grid {
    grid-template-columns: 1fr;
  }

  .panel-card {
    text-align: left;
  }

  .deck-tab {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
