/* ---------------------------------------------
   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;
}


.lab-screen {
  background: #0f172a;
  border-radius: 16px;
  padding: 20px;
  overflow: hidden;
}

.lab-chart {
  width: 100%;
  height: 300px;
}

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

.grid line {
  stroke: #1f2937;
  stroke-width: 1;
}

/* line animation */
polyline {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 1.4s ease;
}

polyline.animate {
  stroke-dashoffset: 0;
}

/* ✅ responsive */
@media (max-width: 768px) {
  .lab-chart {
    height: 220px;
  }

  .lab-header {
    flex-direction: column;
    gap: 10px;
  }

  .lab-footer {
    grid-template-columns: repeat(3, 1fr);
    font-size: 14px;
  }
}

.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) {
  .navbar .container {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  nav {
    width: 100%;
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
  }

  .nav-links li {
    flex: 1 1 45%;
  }

  .nav-links li a {
    display: block;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hero-content,
  .video-grid,
  .interactive-projects .projects-grid,
  .impact-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: clamp(1.6rem, 6vw, 2.6rem);
  }

  .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;
  }

  .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));
  }

  .interactive-projects .projects-grid {
    gap: clamp(1.6rem, 6vw, 2.8rem);
  }

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

  .portfolio-timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline-card {
    grid-template-columns: 1fr;
    padding: clamp(1.3rem, 5vw, 1.8rem);
    text-align: left;
  }

  .timeline-meta {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
  }

  .timeline-body header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .portfolio-detail {
    margin-top: clamp(2rem, 6vw, 2.8rem);
  }

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

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

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

  .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;
  }

  .footer-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: clamp(1.6rem, 5vw, 2.4rem);
  }
}

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

  .floating-particles {
    display: none;
  }

  .hero {
    padding-top: clamp(5rem, 12vw, 8rem);
  }

  .hero-text h1 {
    font-size: clamp(2.4rem, 8vw, 3.2rem);
  }

  .hero-text .subtitle {
    font-size: 0.95rem;
  }

  .hero-visual {
    margin-inline: auto;
    max-width: clamp(260px, 60vw, 340px);
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .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);
  }

  .nav-links li {
    flex: 1 1 100%;
  }

  .nav-links li a {
    width: 100%;
  }

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

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

  .hero-text h1 {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .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;
  }
}


/* =========================
   CONTACT FINAL FIX
========================= */

/* Improve layout balance */
.contact-shell {
  align-items: center;
}

/* Fix left spacing issue */
.contact-copy {
  max-width: 560px;
}

/* Buttons better alignment */
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* =========================
   TABLET FIX
========================= */
@media (max-width: 992px) {

  .contact-shell {
    text-align: center;
    gap: 30px;
  }

  .contact-copy {
    margin: 0 auto;
  }

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

  .contact-actions .btn {
    min-width: 180px;
  }

  /* Scene center */
  .contact-scene {
    margin: 0 auto;
    max-width: 600px;
  }

}

/* =========================
   MOBILE FIX (IMPORTANT)
========================= */
@media (max-width: 640px) {

  .contact-lunar {
    padding-block: 60px;
  }

  .contact-copy {
    text-align: center;
  }

  .contact-copy h2 {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
    line-height: 1.2;
  }

  .contact-copy p {
    font-size: 14px;
    line-height: 1.7;
  }

  /* Buttons full width */
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .contact-actions .btn {
    width: 100%;
  }

  /* Scene height control */
  .contact-scene {
    min-height: 260px;
  }

  /* Moon reposition (IMPORTANT FIX) */
  .contact-moon {
    width: 140px;
    height: 140px;
    bottom: 28%;
  }

}

/* =========================
   EXTRA SMALL DEVICES
========================= */
@media (max-width: 420px) {

  .contact-copy h2 {
    font-size: 1.6rem;
  }

  .contact-copy p {
    font-size: 13px;
  }

  .contact-scene {
    min-height: 220px;
  }

  .contact-moon {
    width: 120px;
    height: 120px;
  }

}
@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;
  }
}
/* =====================================================
   FINAL RESPONSIVE PATCH — MOBILE & TABLET FIXES
   Add at very bottom of CSS
===================================================== */

/* Prevent accidental horizontal scroll */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* ---------- Container hard safety ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
}

/* ---------- Navbar tighter mobile ---------- */
@media (max-width: 768px) {
  .navbar .container {
    padding-block: 0.8rem;
  }

  .logo img {
    height: 40px;
  }

  .nav-links {
    gap: 8px;
  }

  .nav-links li a {
    font-size: 13px;
    padding: 10px 12px;
  }
}

/* ---------- Hero visual control ---------- */
@media (max-width: 900px) {
  .hero-visual {
    max-width: 420px;
    margin-inline: auto;
  }

  .hero-sphere {
    width: 220px;
    height: 220px;
  }

  .floating-card {
    min-width: unset;
    width: 100%;
    max-width: 260px;
  }
}

/* ---------- Experience Lab graph/video ---------- */
.lab-chart,
.lab-screen {
  width: 100%;
}

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

@media (max-width: 600px) {
  .lab-player {
    border-radius: 20px;
    padding: 16px;
  }

  .lab-stat {
    width: 100%;
  }

  .lab-stat .value {
    font-size: 18px;
  }
}

/* ---------- Toggle pills wrap nicely ---------- */
@media (max-width: 520px) {
  .lab-toggle {
    width: 100%;
  }

  .toggle-pill {
    flex: 1;
    padding: 10px 0;
  }
}

/* ---------- Project window frame mobile ---------- */
@media (max-width: 768px) {
  .window-frame {
    border-radius: 20px;
  }

  .finder {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .window-footer {
    grid-template-columns: 1fr;
  }

  .finder-item {
    font-size: 14px;
  }
}

/* ---------- Project tabs tap size ---------- */
@media (max-width: 768px) {
  .project-tab {
    padding: 16px;
  }

  .project-tab span {
    font-size: 18px;
  }
}

/* ---------- Timeline mobile alignment ---------- */
@media (max-width: 768px) {
  .portfolio-timeline::before {
    display: none;
  }

  .timeline-card,
  .timeline-card.active,
  .timeline-card:hover {
    transform: none;
  }
}

/* ---------- Testimonials swipe-friendly ---------- */
@media (max-width: 768px) {
  .testimonial-track {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
  }

  .testimonial-card {
    position: relative;
    min-width: 85%;
    opacity: 1;
    transform: none;
    scroll-snap-align: start;
  }
}

/* ---------- Impact metrics tighter ---------- */
@media (max-width: 600px) {
  .stat-card {
    padding: 18px;
  }

  .stat-value {
    font-size: 32px;
  }
}

/* ---------- Tools marquee smaller logos ---------- */
@media (max-width: 600px) {
  .marquee li {
    width: 90px;
  }

  .stack-logo text {
    font-size: 12px;
  }
}

/* ---------- Buttons full width on small ---------- */
@media (max-width: 520px) {
  .btn {
    width: 100%;
  }

  .cta-group {
    width: 100%;
  }
}

/* ---------- Contact moon scene scale ---------- */
@media (max-width: 600px) {
  .contact-scene {
    transform: scale(0.9);
  }
}

/* ---------- Footer SVG & inline grid fix ---------- */
@media (max-width: 768px) {
  footer svg {
    max-width: 90px;
    height: auto;
  }

  footer div[style*="grid"] {
    grid-template-columns: 1fr !important;
  }
}



/* =========================
   Hamburger Menu
========================= */

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* button */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
  cursor: pointer;
  position: relative;
  z-index: 30;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 5px auto;
  transition: .3s;
}

/* animate to X */
.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Mobile Nav ---------- */

@media (max-width: 900px) {

  .nav-toggle {
    display: block;
  }

  #mainNav {
    position: fixed;
    inset: 70px 16px auto 16px;
    background: rgba(5,0,30,0.96);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 18px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);

    opacity: 0;
    transform: translateY(-10px) scale(.98);
    pointer-events: none;
    transition: .25s;
  }

  #mainNav.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .nav-links {
    flex-direction: column;
    padding: 14px;
    gap: 6px;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
  }
}
/* ===== Sticky Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 9999;
}
/* ===== Navbar Layout ===== */

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* hamburger button */
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
  cursor: pointer;
  z-index: 10000;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  margin: 5px auto;
  transition: .3s;
}

/* animate to X */
.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ===== FORCE HAMBURGER VISIBILITY ===== */

.nav-toggle {
  display: none;
}

/* mobile */
@media (max-width: 900px) {

  .nav-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  /* hide desktop nav */
  #mainNav {
    display: none;
  }

  #mainNav.open {
    display: block;
  }

}


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

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}



/* ===== FIX HAMBURGER POSITION RIGHT ===== */

@media (max-width: 992px) {

  .navbar .container {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .nav-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
  }

}
/* ===== FORCE HAMBURGER LINES VISIBLE ===== */

.nav-toggle {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.nav-toggle span {
  display: block !important;
  width: 24px !important;
  height: 3px !important;
  background: #ffffff !important;
  margin: 4px 0 !important;
  border-radius: 2px;
  opacity: 1 !important;
  visibility: visible !important;
}



/* =========================
   FINAL HAMBURGER VISIBILITY FIX
========================= */

/* default = desktop pe hide */
.nav-toggle {
  display: none !important;
}

/* mobile only */
@media (max-width: 900px) {

  .nav-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
  }

  .nav-toggle span {
    display: block !important;
    width: 22px;
    height: 3px;
    background: #ffffff;
    margin: 4px 0;
    border-radius: 2px;
  }

}


/* ===== Experience Lab Stats — Optimized ===== */

.lab-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 10px;
}

.lab-stat {
  padding: 18px 16px;
  border-radius: 16px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.08),
    rgba(255,255,255,0.02)
  );
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(12px);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;

  transition: .25s;
}

.lab-stat:hover {
  transform: translateY(-4px);
  border-color: rgba(163,132,255,0.6);
  box-shadow: 0 12px 30px rgba(95,0,255,0.25);
}

.lab-stat .label {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.lab-stat .value {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
}

/* highlight positive/negative */
.lab-stat[data-stat="throughput"] .value {
  color: #4ade80;
}

.lab-stat[data-stat="handoffs"] .value {
  color: #fb7185;
}

.lab-stat[data-stat="resolution"] .value {
  color: #60a5fa;
}


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

  .lab-stat {
    padding: 16px;
  }

  .lab-stat .value {
    font-size: 22px;
  }
}


/* ===== Services Internal Scroll ===== */

.scroll-services {
  max-height: 520px;
  overflow-y: auto;
  padding-right: 6px;
}

/* custom scrollbar */
.scroll-services::-webkit-scrollbar {
  width: 6px;
}

.scroll-services::-webkit-scrollbar-thumb {
  background: rgba(163,132,255,0.6);
  border-radius: 10px;
}

.scroll-services::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.06);
}


/* services list scroll */
.project-list {
  max-height: 520px;
  overflow-y: auto;
  padding-right: 6px;
}

.project-list::-webkit-scrollbar {
  width: 6px;
}

.project-list::-webkit-scrollbar-thumb {
  background: rgba(160,130,255,.6);
  border-radius: 8px;
}


/* ===== APP DESKTOP PREVIEW ===== */

.app-window{
  background:#070022;
  border:1px solid rgba(255,255,255,.15);
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 30px 70px rgba(0,0,0,.5);
}

.app-topbar{
  display:flex;
  align-items:center;
  gap:8px;
  padding:12px 14px;
  background:linear-gradient(90deg,#14004a,#0b0030);
}

.app-topbar span{
  width:12px;
  height:12px;
  border-radius:50%;
  background:#ff5f57;
}
.app-topbar span:nth-child(2){background:#febc2e}
.app-topbar span:nth-child(3){background:#28c840}

.app-title{
  margin-left:12px;
  font-size:13px;
  opacity:.8;
}

.app-body{
  display:grid;
  grid-template-columns:180px 1fr;
  min-height:320px;
}

.app-sidebar{
  background:rgba(255,255,255,.04);
  border-right:1px solid rgba(255,255,255,.08);
  padding:14px;
  display:grid;
  gap:10px;
  font-size:13px;
  opacity:.8;
}

.app-content{
  padding:16px;
  display:grid;
  gap:14px;
}

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

.widget{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  padding:18px;
  font-size:14px;
  backdrop-filter:blur(10px);
}

.widget.big{
  grid-column:span 2;
  min-height:120px;
}

/* ===== RESPONSIVE ===== */

@media (max-width:900px){
  .app-body{
    grid-template-columns:1fr;
  }
  .app-sidebar{
    display:flex;
    overflow-x:auto;
  }
}

@media (max-width:600px){
  .grid-2,.grid-3{
    grid-template-columns:1fr;
  }
  .widget.big{
    grid-column:span 1;
  }
}
/* ===== MAC WINDOW ===== */

.mac-window{
background:#0f0f14;
border-radius:18px;
overflow:hidden;
border:1px solid rgba(255,255,255,.18);
box-shadow:0 40px 90px rgba(0,0,0,.65);
}

/* top bar */

.mac-bar{
display:flex;
align-items:center;
gap:12px;
padding:12px 16px;
background:#1c1c22;
border-bottom:1px solid rgba(255,255,255,.12);
}

.mac-dots span{
width:12px;height:12px;border-radius:50%;
display:inline-block;
}
.mac-dots .red{background:#ff5f57}
.mac-dots .yellow{background:#febc2e}
.mac-dots .green{background:#28c840}

.mac-title{
font-size:13px;
opacity:.85;
}

/* layout */

.mac-body{
display:grid;
grid-template-columns:180px 1fr;
min-height:320px;
}

.mac-side{
background:#14141b;
border-right:1px solid rgba(255,255,255,.08);
padding:14px;
display:grid;
gap:10px;
font-size:13px;
opacity:.75;
}

.mac-main{
padding:18px;
display:grid;
gap:14px;
}

/* grids */

.grid2{grid-template-columns:repeat(2,1fr);}
.grid3{grid-template-columns:repeat(3,1fr);}

/* cards */

.mac-card{
background:#181822;
border:1px solid rgba(255,255,255,.12);
border-radius:14px;
padding:16px;
font-size:14px;
}

.mac-card.big{
grid-column:span 2;
min-height:120px;
}

.metric strong{
font-size:26px;
display:block;
}

/* flow */

.flow{
display:flex;
gap:12px;
}
.flow div{
flex:1;
background:#1e1e29;
padding:16px;
border-radius:12px;
text-align:center;
}

/* chat */

.chat{
display:grid;
gap:10px;
}

.msg{
padding:10px 14px;
border-radius:14px;
max-width:70%;
font-size:13px;
}

.msg.ai{
background:#1c1c2a;
border:1px solid rgba(255,255,255,.15);
}

.msg.user{
background:#0f5132;
margin-left:auto;
}

/* responsive */

@media(max-width:900px){
.mac-body{grid-template-columns:1fr;}
.mac-side{display:flex;overflow:auto;}
.grid2,.grid3{grid-template-columns:1fr;}
.flow{flex-direction:column;}
}


.projects{display:grid;grid-template-columns:260px 1fr;gap:40px;}
.tabs{display:flex;flex-direction:column;gap:12px;}
.tab{padding:12px 16px;background:rgba(255,255,255,0.05);border-radius:10px;border:1px solid rgba(255,255,255,0.1);color:#fff;cursor:pointer;}
.tab.active{background:linear-gradient(90deg,#6366f1,#06b6d4);}
.desktop{display:none;}
.desktop.active{display:block;}
.mac{background:rgba(20,20,30,0.85);backdrop-filter:blur(20px);border-radius:18px;border:1px solid rgba(255,255,255,0.08);overflow:hidden;}
.mac-bar{display:flex;justify-content:space-between;padding:14px 20px;background:rgba(255,255,255,0.05);}
.dots span{width:12px;height:12px;border-radius:50%;display:inline-block;margin-right:6px;}
.dots span:nth-child(1){background:#ff5f57;}
.dots span:nth-child(2){background:#febc2e;}
.dots span:nth-child(3){background:#28c840;}
.mac-body{padding:25px;}
.top-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;}
.stat{background:rgba(255,255,255,0.05);padding:20px;border-radius:14px;}
.trend.up{color:#22c55e;}
.trend.stable{color:#3b82f6;}
.main-grid{display:grid;grid-template-columns:2fr 1fr;gap:20px;margin-top:20px;}
.panel{background:rgba(255,255,255,0.05);padding:20px;border-radius:14px;}
.chart-placeholder{height:150px;background:linear-gradient(180deg,#6366f1,transparent);border-radius:10px;}
.agent-grid{display:flex;gap:20px;}
.agent-card{flex:1;background:rgba(255,255,255,0.05);padding:20px;border-radius:14px;}
.progress{height:6px;background:#222;border-radius:10px;margin-top:10px;}
.progress span{display:block;height:100%;background:#6366f1;border-radius:10px;}
.studio-layout{display:grid;grid-template-columns:200px 1fr;gap:20px;}
.studio-sidebar div{padding:8px;background:rgba(255,255,255,0.05);border-radius:8px;margin-bottom:8px;}
.canvas-box{background:rgba(255,255,255,0.05);border-radius:12px;}
.large{height:120px;margin-bottom:10px;}
.small{height:60px;}
.canvas-row{display:flex;gap:10px;}
.pipeline{display:flex;gap:10px;}
.step{flex:1;padding:15px;text-align:center;background:rgba(255,255,255,0.05);border-radius:10px;}
.step.active{background:#6366f1;}
.mobile-layout{display:flex;gap:30px;align-items:center;}
.phone{width:140px;height:280px;background:rgba(255,255,255,0.05);border-radius:30px;}
.lead-grid{display:flex;gap:20px;}
.lead{flex:1;padding:30px;border-radius:12px;text-align:center;}
.hot{background:#ef4444;}
.warm{background:#f59e0b;}
.cold{background:#3b82f6;}
.chat{display:flex;flex-direction:column;gap:12px;}
.bubble{padding:10px 14px;border-radius:12px;max-width:70%;}
.ai{background:rgba(255,255,255,0.1);}
.user{background:#6366f1;align-self:flex-end;}
/* =========================================
   EXPERIENCE LAB — WORKFLOW STRIP
========================================= */
.lab-workflow {
  margin-top: 1.2rem;
  padding: 1.15rem 1.15rem 1.05rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 18px 40px rgba(6, 0, 34, 0.28);
  backdrop-filter: blur(14px);
}

.lab-workflow-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
}

.workflow-kicker {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.workflow-status {
  font-size: 0.78rem;
  font-weight: 600;
  color: #7ef7b8;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(103, 255, 176, 0.12);
  border: 1px solid rgba(103, 255, 176, 0.28);
}

.lab-workflow-track {
  display: grid;
  gap: 0.85rem;
}

.workflow-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.workflow-step:hover {
  transform: translateX(4px);
  border-color: rgba(163, 132, 255, 0.24);
  background: rgba(255, 255, 255, 0.05);
}

.workflow-step strong {
  display: block;
  font-size: 0.96rem;
  color: #ffffff;
  margin-bottom: 0.15rem;
}

.workflow-step p {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.55;
}

.step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 0.35rem;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.03);
}

.workflow-step.active .step-dot {
  background: #7ef7b8;
  box-shadow: 0 0 0 6px rgba(103, 255, 176, 0.08), 0 0 16px rgba(103, 255, 176, 0.4);
}

.workflow-step::after {
  content: "";
  position: absolute;
  left: 1.35rem;
  top: 100%;
  width: 2px;
  height: 0.85rem;
  background: linear-gradient(180deg, rgba(163, 132, 255, 0.4), rgba(255, 255, 255, 0));
}

.workflow-step:last-child::after {
  display: none;
}

@media (max-width: 768px) {
  .lab-workflow {
    padding: 1rem;
    border-radius: 18px;
  }

  .lab-workflow-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .workflow-step {
    padding: 0.85rem 0.9rem;
  }

  .workflow-step strong {
    font-size: 0.92rem;
  }

  .workflow-step p {
    font-size: 0.8rem;
  }
}