/* ============================================
   PROMPTIFY — Clean Modern Landing Page
   Inspired by PvX Partners design language
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ---- Custom Properties ---- */
:root {
  /* OBSIDIAN TEAL PALETTE */
  --bg-surface: #1A1A1A;
  --surface-lowest: #080808;
  --surface-low: #111111;
  --surface-high: #1a1a1a;
  --surface-highest: #222222;

  /* ACCENTS */
  --primary: #00F2C3;
  --primary-dim: #004D3F;
  --primary-container: #004D3F;
  
  --primary-glow: rgba(0, 242, 195, 0.1);
  --primary-subtle: rgba(0, 242, 195, 0.05);

  /* TYPE & TEXT */
  --text-on-surface: #ffffff;
  --text-on-surface-variant: #aaaaaa;
  --text-on-primary: #000000;
  --text-dark: #0c0c0c;
  --text-muted-dark: #666666;

  /* BORDERS */
  --ghost-border: rgba(69, 69, 69, 0.15);

  /* TYPOGRAPHY */
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Manrope', sans-serif;

  /* METRICS */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --container-max: 1220px;
  --section-gap: clamp(80px, 10vw, 130px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 0.4s var(--ease);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--teal) var(--bg-light);
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  color: var(--text-on-surface-variant);
  background: var(--bg-surface);
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  cursor: none; /* Hide default cursor */
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor-dot {
  width: 5px;
  height: 5px;
  background-color: var(--primary);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10000;
  transition: width 0.3s var(--ease), height 0.3s var(--ease), background-color 0.3s var(--ease);
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 1px solid var(--primary);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  transition: width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.cursor-dot.active {
  width: 10px;
  height: 10px;
  background-color: #fff;
}

.cursor-outline.active {
  width: 60px;
  height: 60px;
  background-color: rgba(0, 242, 195, 0.1);
  border-color: #fff;
}

/* Hide custom cursor on mobile */
@media (max-width: 768px) {
  .cursor-dot, .cursor-outline {
    display: none;
  }
  body {
    cursor: auto;
  }
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 5px; }

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* ---- Section Utilities ---- */
.section-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.section-label i {
  font-size: 0.65rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-on-surface);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.section-title .accent {
  color: var(--text-on-surface-variant);
}

.section-desc {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  color: var(--text-on-surface-variant);
  max-width: 520px;
  line-height: 1.7;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dim));
  color: var(--text-on-primary);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dim), var(--primary));
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--primary-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-on-surface);
  border: 1px solid var(--ghost-border);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline-dark {
  background: transparent;
  color: var(--text-on-surface);
  border: 1px solid var(--ghost-border);
}
.btn-outline-dark:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn i { font-size: 0.85rem; transition: transform var(--transition); }
.btn:hover i { transform: translateX(3px); }

/* ============================================
   PRELOADER
   ============================================ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #080808;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: all;
}

/* Outer center wrapper */
.pl-center {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  height: 240px;
}

/* Spinning ring with text path */
.pl-spin-ring {
  position: absolute;
  inset: 0;
  animation: plSpin 8s linear infinite;
}

.pl-spin-svg {
  width: 100%;
  height: 100%;
}

.pl-spin-text {
  fill: rgba(255, 255, 255, 0.25);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@keyframes plSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Inner logo + AI label */
.pl-inner {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Logo — larger */
.pl-logo-wrap {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pl-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Progress bar — pinned to bottom edge */
.pl-bar-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}

.pl-bar {
  width: 100%;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.06);
}

.pl-bar-fill {
  height: 100%;
  width: 100%;
  background: var(--primary);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 24px;
  left: 20px;
  right: 20px;
  max-width: var(--container-max);
  margin: 0 auto;
  z-index: 1000;
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.03); /* Extremely transparent */
  backdrop-filter: blur(24px); /* High blur for premium glass feel */
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08); /* Sophisticated thin border */
  border-radius: var(--radius-full);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
  top: 16px;
  padding: 10px 0;
  background: rgba(10, 10, 10, 0.4); /* Slight darkening on scroll */
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.navbar-grid {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-brand-center {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--text-on-surface);
  white-space: nowrap;
  text-decoration: none;
}

/* white logo that dissolves in as the bar morphs into the circle.
   Positioned against the navbar (not the collapsing link) and centered. */
.navbar { /* ensure navbar is the positioning context for the white logo */ }
#nav-logo-white {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  max-width: none;
  object-fit: contain;
  display: block;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}


/* ============================================
   HERO — Framer Style Section
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  overflow-x: clip;
  overflow-y: visible;
  background: var(--surface-lowest);
  color: white;
  --hero-glow-rgb: 107, 251, 206;
  --hero-glow-opacity: 0.15;
  --hero-sweep-opacity: 0.2;
  --hero-divider-opacity: 0.05;
  --hero-dock-opacity: 0.15;
  --hero-dock-border-opacity: 0.5;
}

.hero.audio-mode {
  --hero-glow-rgb: 80, 135, 255;
  --hero-glow-opacity: 0.18;
  --hero-sweep-opacity: 0.22;
  --hero-divider-opacity: 0.08;
  --hero-dock-opacity: 0.16;
  --hero-dock-border-opacity: 0.55;
}

#spiral-canvas, #cards-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#spiral-canvas { z-index: 1; pointer-events: none; }
#cards-canvas { z-index: 3; pointer-events: none; } /* Scene setup handles interactions */

.bg-glow {
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(var(--hero-glow-rgb), var(--hero-glow-opacity)), transparent 60%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(120px);
  transition: background 0.45s ease;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: auto;
  padding-top: 120px;
}

.dual-pill-badge {
  display: inline-flex;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 24px;
}

.dual-pill-badge span {
  padding: 8px 20px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.badge-active {
  background: rgba(255,255,255,0.15);
  color: white;
}

.badge-inactive {
  color: rgba(255,255,255,0.5);
}

.badge-inactive:hover {
  color: white;
}

.content h1 {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 5.5vw, 84px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -2px;
  margin-top: 0;
}

.content h1 .text-muted {
  color: var(--text-on-surface-variant);
}

.content h1 .text-white {
  color: var(--text-on-surface);
}

.content p {
  color: var(--text-on-surface-variant);
  margin-top: 16px;
  font-size: 1.05rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.cta-solid {
  margin-top: 32px;
  padding: 16px 36px;
  border-radius: 999px;
  background: var(--primary);
  border: none;
  color: var(--bg-dark);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(107, 251, 206, 0.4);
  transition: all 0.3s ease;
}

.cta-solid:hover {
  box-shadow: 0 0 50px rgba(107, 251, 206, 0.6);
  transform: translateY(-2px);
}

/* ============================================
   MACOS STYLE DOCK
   ============================================ */
.dock-wrapper {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 5px;
}

.dock {
  display: flex;
  align-items: center;
  gap: 12px;
  /* Use radial gradient for the spotlight/edge light effect */
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
    rgba(var(--hero-glow-rgb), var(--hero-dock-opacity)) 0%, 
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0.02) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 18px;
  border-radius: 20px;
  transition: background 0.1s ease;
  position: relative;
  overflow: visible;
}

.dock::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  padding: 1px;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
    rgba(var(--hero-glow-rgb), var(--hero-dock-border-opacity)), 
    transparent 100px
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dock:hover::before {
  opacity: 1;
}

.dock-item {
  position: relative;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
  /* Premium easing for smooth magnification */
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
              margin 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  transform-origin: bottom center;
}

.dock-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.dock-item::after {
  content: attr(data-label);
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  white-space: nowrap;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.dock-item:hover {
  z-index: 10;
}

.dock-item:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.dock-item:active img {
  transform: scale(0.8);
}

@media (max-width: 768px) {
  .dock-wrapper { bottom: 20px; }
  .dock-item { width: 40px; height: 40px; }

  .content {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 100svh;
    margin: 0;
    padding: clamp(128px, 24svh, 168px) 20px 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
  }

  .dual-pill-badge {
    position: static;
    transform: none;
    margin: 0 0 14px;
    min-height: 44px;
    align-items: center;
  }

  .content h1 {
    position: static;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    font-size: clamp(1.5rem, 9.2vw, 3rem);
    line-height: 1.06;
    letter-spacing: 0;
    text-align: center;
  }

  .content h1 span {
    white-space: nowrap;
  }
}

.hero-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px; /* Slightly taller for more presence */
  background: linear-gradient(to bottom, 
    transparent 0%, 
    rgba(8, 8, 8, 0.4) 30%, 
    rgba(8, 8, 8, 0.8) 60%, 
    #080808 100%
  );
  box-shadow: 0 -20px 40px rgba(var(--hero-glow-rgb), var(--hero-divider-opacity));
  z-index: 5;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  width: 200%;
  height: 200px;
  bottom: 0;
  left: -50%;
  background: linear-gradient(90deg, transparent, rgba(var(--hero-glow-rgb), var(--hero-sweep-opacity)), transparent);
  filter: blur(40px);
  animation: wave 6s infinite linear;
  z-index: 1;
}

@keyframes wave {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}

/* ============================================
   ABOUT / MISSION — Clean Light Theme
   ============================================ */
.about-section {
  padding: var(--section-gap) 0;
  background: #ffffff;
  position: relative;
  z-index: 10;
  box-shadow: 0 -20px 80px rgba(0, 0, 0, 0.3);
  will-change: transform, border-radius;
}

.about-header {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 56px;
}

.about-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 1.1;
  color: #0c0c0c;
  letter-spacing: -0.03em;
  display: flex;
  flex-direction: column;
  gap: 0.1em;
}

.about-title .accent { color: #888888; }

/* Each line acts as a clip mask */
.about-line,
.comparison-line {
  display: block;
  overflow: hidden;
  line-height: 1.15;
}

/* The inner element slides up from below */
.about-line-inner,
.comparison-line-inner {
  display: block;
  will-change: transform, opacity;
}

/* Eyebrow label above heading */
.about-eyebrow,
.comparison-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 20px;
}

/* Subtitle below heading */
.about-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 600;
  color: var(--primary, #00F2C3);
  letter-spacing: 0.05em;
  margin-top: 28px;
  text-transform: uppercase;
}

.section-desc {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: #444444;
  max-width: 520px;
  line-height: 1.7;
}

/* Bento Grid — Light Variant */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}

.bento-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  transition: all 0.5s var(--ease);
  background: #fdfdfd; /* Off-white for visibility */
  border: 1px solid rgba(0, 0, 0, 0.08); /* More distinct border */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.bento-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
  background: #ffffff;
  border-color: var(--primary);
}

.bento-img {
  grid-column: span 4;
  min-height: 320px;
}

.bento-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bento-stat {
  grid-column: span 4;
  background: #ffffff;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 340px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.bento-stat .stat-label {
  font-size: 0.9rem;
  color: #666666;
  font-weight: 600;
  margin-bottom: 12px;
}

.bento-stat .stat-value {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  color: #000000;
  letter-spacing: -0.03em;
}

.bento-stat .stat-change {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #008f7a; /* Darker teal for light theme */
  background: rgba(0, 242, 195, 0.1);
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.bento-feature {
  grid-column: span 4;
  background: #000000; /* Contrast black feature card */
  color: #ffffff;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 340px;
}

.bento-feature .feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #000;
  margin-bottom: 24px;
}

.bento-feature h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.bento-feature p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

.bento-dashboard {
  grid-column: span 8;
  min-height: 320px;
  background: var(--surface-highest);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.bento-dashboard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bento-metrics {
  grid-column: span 4;
  background: var(--surface-low);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--ghost-border);
}

.metric-row:last-child { border-bottom: none; }

.metric-label {
  font-size: 0.85rem;
  color: var(--text-on-surface-variant);
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-on-surface);
}

.metric-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-subtle);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

/* ============================================
   EXPERIENCE SECTION — DARK ANIMATED BENTO
   ============================================ */
.experience-section {
  padding: var(--section-gap) 0;
  background: #080808; /* Back to Black for contrast */
  color: #fff;
  overflow: hidden;
}

.experience-header {
  margin-bottom: 60px;
  text-align: center;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: #fff;
}

.bento-grid-modern {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: 24px;
}

.bento-card-modern {
  background: #080808;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px; 
  min-height: 260px;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bento-card-modern:hover {
  border-color: rgba(0, 242, 195, 0.4);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(0, 242, 195, 0.1);
  transform: translateY(-6px);
}

.bento-nodes { grid-column: span 8; }
.bento-code { grid-column: span 4; }
.bento-audio { grid-column: span 4; }
.bento-global {
  grid-column: span 8;
  will-change: transform, border-radius, border-color;
  backface-visibility: hidden;
}

.card-info { position: relative; z-index: 5; }
.card-info h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; color: #fff; }
.card-info p { font-size: 0.95rem; color: rgba(255,255,255,0.6); line-height: 1.5; max-width: 400px; }


/* Full-cover Video Background */
.bento-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  z-index: 1;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #080808 10%, transparent 60%);
  z-index: 2;
  will-change: background;
}

/* Audio Wave Container */
.audio-wave-container {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#audio-wave-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 10px rgba(0, 242, 195, 0.3));
}

/* ============================================
   IMAGE COMPARISON SECTION
   ============================================ */
.comparison-wrapper {
  overflow: visible;
  background: transparent !important;
  will-change: opacity, transform;
  backface-visibility: hidden;
  isolation: isolate;
}

.comparisonSection {
  position: relative;
  height: 280vh;           /* sticky stage + ~180vh scroll runway → comfortable warp pacing */
  min-height: 1000px;
  padding-bottom: 0;
  overflow: visible;
  background: transparent;
}

.comparison-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: transparent;
  perspective: 1100px;
}

.comparisonImage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  will-change: opacity, clip-path;
}

.beforeImage {
  z-index: 1;
}

.afterImage {
  position: absolute;
  overflow: hidden;
  top: 0;
  inset: 0;
  z-index: 2;
  transform: none;
  clip-path: inset(0 100% 0 0);
}

.afterImage img {
  transform: none;
}

.comparisonImage img {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  object-fit: cover;
}

.comparison-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  background: #000000;
}

.comparison-title {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 800;
  text-align: center;
  max-width: 1200px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.accent-gradient {
  background: linear-gradient(
    to right, 
    var(--primary) 0%, 
    #ffffff 50%, 
    var(--primary) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shuntGradient 3s linear infinite;
}

@keyframes shuntGradient {
  0% { background-position: 200% center; }
  100% { background-position: 0% center; }
}

@media (max-width: 992px) {
  .bento-grid-modern { grid-template-rows: auto; grid-template-columns: 1fr; }
  .bento-nodes, .bento-code, .bento-audio, .bento-global { grid-column: span 1; min-height: 280px; }
}

/* ============================================
   WARP TRANSITION  (Section 3 Image 2 → Section 4)
   grid split → horizontal strips → glowing color
   lines → 3D bend/twist → travel into black
   ============================================ */
/* The warp lives inside .comparison-sticky (which already has perspective) and
   sits on top of the after-image. Hidden until the split phase begins. */
.warp-stage {
  position: absolute;
  inset: 0;
  z-index: 3;                 /* above before/after images */
  opacity: 0;                 /* revealed by the timeline at the split */
  background: #000;           /* black space behind the columns */
  transform-style: preserve-3d;
  pointer-events: none;
  will-change: transform, opacity;
}

/* --- The image floor: horizontal strips of Image 2 --- */
.warp-floor {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
}

/* vertical COLUMN slice of the after-image (Image 2).
   background-size / background-position are set by JS to emulate object-fit:cover
   continuously across every column (light — each strip paints only its slice). */
.warp-strip {
  position: absolute;
  top: 0;
  height: 100%;
  background-image: url('assets/img2.jpeg');
  background-repeat: no-repeat;
  transform-origin: center center;
  backface-visibility: hidden;
}

/* pure, flat COLOR strip (no glow) that replaces the image as it twists */
.warp-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: var(--glow, 0);
  background: var(--line-col);
}

/* --- Grid lines flashing during the split --- */
.warp-grid {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.85) 0 1.5px, transparent 1.5px calc(100% / 36));
  mix-blend-mode: screen;
  will-change: opacity;
}

/* --- Netflix-style radial glowing speed lines --- */
.warp-lines {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.6);
  transform-style: preserve-3d;
  pointer-events: none;
  will-change: transform, opacity;
}

.speed-line {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 70vmax;
  margin-left: -1px;
  transform-origin: 50% 0%;        /* rotate around the vanishing point */
  background: linear-gradient(to bottom,
    transparent 0%,
    var(--line-col) 18%,
    #ffffff 60%,
    var(--line-col) 100%);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--line-col), 0 0 22px var(--line-col);
}

/* --- White travel veil (strings dissolve into white space) --- */
.warp-veil {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

@media (prefers-reduced-motion: reduce) {
  .warp-transition { height: 100vh; }
}

/* ============================================
   SECTION 6 — 3D Glass Logo stage (Three.js)
   ============================================ */
.logo3d-section {
  position: relative;
  height: 100vh;
  background: #000;
  overflow: hidden;
  isolation: isolate;
  font-family: 'Arial Black', Impact, sans-serif;
}

.logo3d-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
}

.logo3d-card {
  position: absolute;
  top: 50%;
  width: clamp(260px, 24vw, 360px);
  padding: 26px 28px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  color: #fff;
  z-index: 3;
  opacity: 0;
  will-change: opacity, transform;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  font-family: 'Inter', system-ui, sans-serif;
}

.logo3d-card-left  { left:  4%; transform: translate(-40px, -50%); }
.logo3d-card-right { right: 4%; transform: translate( 40px, -50%); }

.lcc-tag {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: rgba(180, 230, 255, 0.7);
  margin-bottom: 14px;
}

.lcc-title {
  font-size: clamp(20px, 1.6vw, 26px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  color: #fff;
}

.lcc-body {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 16px;
}

.lcc-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.8);
  padding-top: 14px;
  border-top: 1px dashed rgba(255, 255, 255, 0.18);
}
.lcc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7af6ff;
  box-shadow: 0 0 8px #7af6ff;
}

/* ============================================
   SECTION 5 — Scroll-scrubbed frame sequence
   ============================================ */
.frames-section {
  position: relative;
  height: 100vh;
  background: #fff;
  margin-top: -100vh;          /* overlap Section 4 → cross-fade reveal */
  z-index: 13;                 /* sits BELOW audio-section, revealed as it fades */
  overflow: hidden;
  isolation: isolate;
}

.frames-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

.frames-veil {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;                  /* hidden — cross-fade handled by audio-mark fade */
  z-index: 5;
  pointer-events: none;
  will-change: opacity;
  display: none;
}

/* === HUD call-outs (sci-fi targeting overlays) === */
.hud-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  color: #7af6ff;
}

.hud-callout {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.96);
  transform-origin: 50% 50%;
  transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.hud-callout.is-active { opacity: 1; transform: scale(1); }

/* the target — a crosshair + glowing dot at the point of interest */
.hud-target {
  position: absolute;
  left: var(--tx, 50%);
  top: var(--ty, 50%);
  width: 14px;
  height: 14px;
  margin-left: -7px;
  margin-top: -7px;
  border: 1.5px solid #7af6ff;
  background: rgba(122, 246, 255, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(122, 246, 255, 0.7), inset 0 0 6px rgba(122, 246, 255, 0.4);
}
.hud-target::before,
.hud-target::after {
  content: "";
  position: absolute;
  background: #7af6ff;
  box-shadow: 0 0 6px #7af6ff;
}
.hud-target::before { left: 50%; top: -10px; width: 1px; height: 30px; margin-left: -0.5px; }
.hud-target::after  { top: 50%; left: -10px; width: 30px; height: 1px; margin-top: -0.5px; }

/* pulsing ring around the target */
.hud-pulse {
  position: absolute;
  left: var(--tx, 50%);
  top: var(--ty, 50%);
  width: 14px;
  height: 14px;
  margin-left: -7px;
  margin-top: -7px;
  border: 1px solid rgba(122, 246, 255, 0.7);
  border-radius: 50%;
}
.hud-callout.is-active .hud-pulse {
  animation: hudPulse 1.6s ease-out infinite;
}
@keyframes hudPulse {
  0%   { transform: scale(1);   opacity: 0.9; }
  100% { transform: scale(4.5); opacity: 0;   }
}

/* leader line connecting target → box, drawn in like a scan */
.hud-line {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.hud-line line {
  stroke: #7af6ff;
  stroke-width: 1.2;
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
  filter: drop-shadow(0 0 3px #7af6ff);
  transition: stroke-dashoffset 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}
.hud-callout.is-active .hud-line line { stroke-dashoffset: 0; }

/* the readout box — clipped corners, scanline header, label/value */
.hud-box {
  position: absolute;
  left: var(--bx, 12%);
  top: var(--by, 18%);
  width: 280px;
  max-width: 32vw;
  background: rgba(2, 14, 22, 0.78);
  border: 1px solid rgba(122, 246, 255, 0.85);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  box-shadow: 0 0 22px rgba(122, 246, 255, 0.16);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.hud-bar {
  height: 22px;
  background: linear-gradient(90deg, rgba(122, 246, 255, 0.32), rgba(122, 246, 255, 0.04));
  border-bottom: 1px solid rgba(122, 246, 255, 0.55);
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 9px;
  letter-spacing: 0.24em;
  color: #d3fbff;
}
.hud-bar::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #7af6ff;
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 0 6px #7af6ff;
  animation: hudBlink 1.2s ease-in-out infinite;
}
@keyframes hudBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.25; }
}

.hud-content { padding: 10px 14px 14px; }

.hud-label {
  font-size: 9px;
  letter-spacing: 0.3em;
  color: rgba(200, 251, 255, 0.6);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.hud-value {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #e6fdff;
  text-shadow: 0 0 8px rgba(122, 246, 255, 0.5);
}

.hud-detail {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(122, 246, 255, 0.28);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11.5px;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: rgba(214, 247, 252, 0.78);
}

/* ============================================
   AI AUDIO ENGINE & VISUALIZER
   ============================================ */
.audio-section {
  min-height: 100vh;
  min-height: 100svh;
  padding: 0;
  background: #ffffff;
  color: #0b0a08;
  position: relative;
  z-index: 15;             /* stays BELOW the comparison so its white veil leads the handoff */
  margin-top: -82vh;       /* pull up into the warp's pure-white tail → seamless handoff */
  border-radius: 0;
  overflow: hidden;
  display: block;
}

.audio-section::before {
  content: none;
}

.audio-section::after {
  content: none;
}

/* white veil that carries over from the warp finale, then fades for the intro */
.audio-intro-veil {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 1;
  z-index: 30;
  pointer-events: none;
  will-change: opacity;
}

/* white veil for the OUTRO — the center bar flips/zooms into this */
.audio-outro-veil {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  z-index: 28;
  pointer-events: none;
  will-change: opacity;
}


/* needed for the 3D flip/zoom on the center bar */
.audio-mark { perspective: 1400px; perspective-origin: 50% 50%; }
.visualizer-bars { transform-style: preserve-3d; }
.v-bar { transform-style: preserve-3d; backface-visibility: hidden; }

/* the center bar's "back face" — pure white so the flip dissolves into the veil */
.v-bar.bar-6 {
  position: relative;
}
.v-bar.bar-6::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #ffffff;
  transform: rotateY(180deg);
  backface-visibility: hidden;
  z-index: 2;
}

.audio-mark {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  min-height: 100svh;
  perspective: 1200px;
  margin: 0 auto;
  padding: clamp(28px, 5vh, 48px) clamp(20px, 5vw, 70px) 34px;
  gap: clamp(18px, 3.2vh, 34px);
}

.visualizer-bars {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(12px, 1.45vw, 28px);
  height: min(60vh, 560px);
  width: min(76vw, 1280px);
  min-width: 320px;
  transform-style: preserve-3d;
}

.v-bar {
  width: clamp(58px, 5.6vw, 110px);
  background: rgba(246, 244, 237, 0.72);
  border-radius: 0;
  opacity: 1;
  visibility: visible;
  overflow: hidden;
  position: relative;
  transform-style: preserve-3d;
  will-change: opacity, transform;
  box-shadow:
    0 18px 34px rgba(86, 78, 61, 0.075),
    inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.v-bar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.22;
  --bw: 1;
  filter:
    grayscale(var(--bw))
    sepia(calc(0.16 * var(--bw)))
    brightness(calc(1 + 0.45 * var(--bw)))
    contrast(calc(1 - 0.28 * var(--bw)));
  mix-blend-mode: multiply;
}

.v-bar:hover img {
  opacity: 0.34;
  filter: grayscale(0.92) sepia(0.1) brightness(1.24) contrast(0.84);
}

/* Arch heights — tallest at center (bar-6), tapering to edges */
.bar-1  { height: 88%; margin-top: 0; }
.bar-2  { height: 88%; margin-top: 30px; }
.bar-3  { height: 88%; margin-top: 68px; }
.bar-4  { height: 88%; margin-top: 30px; }
.bar-5  { height: 70%; margin-top: 0; }
.bar-6  { height: 88%; margin-top: 68px; }
.bar-7  { height: 88%; margin-top: 30px; }
.bar-8  { height: 88%; margin-top: 0; }
.bar-9  { height: 88%; margin-top: 68px; }
.bar-10 { height: 88%; margin-top: 30px; }
.bar-11 { height: 88%; margin-top: 0; }

/* Heading below the gallery */
.audio-heading {
  text-align: center;
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.audio-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  font-style: normal;
  color: #0c0c0c;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
}

/* per-letter wrapper for the scroll-driven reveal */
.audio-title .letter {
  display: inline-block;
  will-change: transform, opacity;
}

.audio-subtitle {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1.05rem;
  color: #15110d;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.featured-footer {
  position: absolute;
  right: clamp(24px, 4vw, 56px);
  bottom: clamp(22px, 3.2vh, 42px);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #060504;
  opacity: 1;
  visibility: visible;
}

.featured-sound {
  font-size: 1.15rem;
}

.featured-link {
  justify-self: start;
}

.featured-switcher {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.featured-dot,
.featured-bars-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
  opacity: 0.55;
}

.featured-dot::before {
  content: "";
  width: 20px;
  height: 10px;
  border-radius: 6px;
  background: #080604;
}

.featured-bars-icon {
  border: 1px solid #080604;
  gap: 3px;
}

.featured-bars-icon i {
  width: 4px;
  height: 18px;
  border-radius: 4px;
  background: #080604;
  display: block;
}

.featured-dot:hover,
.featured-bars-icon:hover { opacity: 0.9; }

.featured-dot.is-active {
  background: rgba(16, 12, 8, 0.12);
  opacity: 1;
}

.featured-bars-icon.is-active {
  background: rgba(16, 12, 8, 0.06);
  opacity: 1;
}

/* === Slider arrows (shown when slider view is active) === */
.featured-arrow {
  position: absolute;
  top: 50%;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(12, 10, 8, 0.9);
  color: #fff;
  border: 0;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  transform: translateY(-50%);
}

.featured-arrow:hover { background: #000; }

/* arrow press: a pulse ring radiating outward */
@keyframes arrowPressPulse {
  0%   { box-shadow: 0 10px 28px rgba(0,0,0,0.18), 0 0 0 0   rgba(12,10,8,0.45); }
  100% { box-shadow: 0 10px 28px rgba(0,0,0,0.18), 0 0 0 22px rgba(12,10,8,0);   }
}
.featured-arrow.is-pressed {
  animation: arrowPressPulse 0.55s ease-out;
}

/* arrow icon flicks in the click direction */
.featured-arrow .fa-arrow-left,
.featured-arrow .fa-arrow-right { transition: transform 0.25s cubic-bezier(0.16,1,0.3,1); }
.featured-arrow-left.is-pressed .fa-arrow-left   { animation: iconNudgeLeft  0.45s ease-out; }
.featured-arrow-right.is-pressed .fa-arrow-right { animation: iconNudgeRight 0.45s ease-out; }
@keyframes iconNudgeLeft  { 0%{transform:translateX(0)} 35%{transform:translateX(-8px)} 100%{transform:translateX(0)} }
@keyframes iconNudgeRight { 0%{transform:translateX(0)} 35%{transform:translateX(8px)}  100%{transform:translateX(0)} }
.featured-arrow-left  { left: clamp(18px, 3vw, 42px);  --arrow-dir: -64px; }
.featured-arrow-right { right: clamp(18px, 3vw, 42px); --arrow-dir:  64px; }

/* INTRO: arrow flies in from off-section with a tiny pop */
@keyframes arrowIntro {
  0%   { opacity: 0; transform: translate(var(--arrow-dir), -50%) scale(0.6) rotate(-12deg); }
  60%  { opacity: 1; transform: translate(0, -50%) scale(1.08) rotate(2deg); }
  100% { opacity: 1; transform: translate(0, -50%) scale(1) rotate(0deg); }
}

/* OUTRO: arrow shrinks/flies back out */
@keyframes arrowOutro {
  0%   { opacity: 1; transform: translate(0, -50%) scale(1); }
  100% { opacity: 0; transform: translate(var(--arrow-dir), -50%) scale(0.5) rotate(8deg); }
}

#audio-engine.is-slider .featured-arrow {
  pointer-events: auto;
  animation: arrowIntro 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.28s both;
}

#audio-engine.is-leaving-slider .featured-arrow {
  pointer-events: none;
  animation: arrowOutro 0.32s cubic-bezier(0.7, 0, 0.84, 0) both;
}

/* === Section flash overlay used during the toggle transition === */
.audio-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 55%, rgba(255,255,255,0.0) 0%, rgba(255,255,255,0) 35%, rgba(255,255,255,0) 100%);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: screen;
  will-change: opacity, background;
}

/* per-bar glow accent that pulses during the swap */
.v-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.45) 50%, rgba(255,255,255,0) 100%);
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}

#audio-engine:target .v-bar {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

#audio-engine:target .audio-heading,
#audio-engine:target .featured-footer {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

/* Glowing tracks style when active */
.v-bar.active-cinematic {
  background: linear-gradient(to top, var(--primary) 0%, #ffffff 100%);
  box-shadow: 0 0 25px rgba(0, 242, 195, 0.4);
}

.v-bar.active-scifi {
  background: linear-gradient(to top, #00d2ff 0%, #0066ff 100%);
  box-shadow: 0 0 25px rgba(0, 210, 255, 0.4);
}

.v-bar.active-beats {
  background: linear-gradient(to top, #ff007f 0%, #ff7f00 100%);
  box-shadow: 0 0 25px rgba(255, 0, 127, 0.4);
}

.audio-controls-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.audio-tracks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.track-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 24px;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.track-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.track-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.track-card:hover::before {
  opacity: 1;
}

.track-card.active {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.track-card[data-track="cinematic"].active {
  border-color: var(--primary);
}

.track-card[data-track="scifi"].active {
  border-color: #00d2ff;
}

.track-card[data-track="beats"].active {
  border-color: #ff007f;
}

.track-card .track-icon {
  font-size: 1.5rem;
  margin-bottom: 16px;
  transition: color 0.4s ease;
}

.track-card[data-track="cinematic"] .track-icon { color: var(--primary); }
.track-card[data-track="scifi"] .track-icon { color: #00d2ff; }
.track-card[data-track="beats"] .track-icon { color: #ff007f; }

.track-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.track-card p {
  font-size: 0.85rem;
  color: var(--text-on-surface-variant);
  line-height: 1.5;
}

.player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  padding: 16px 32px;
  gap: 30px;
}

.play-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  flex-shrink: 0;
}

.play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

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

.slider-group {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

.slider-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-on-surface-variant);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 45px;
}

.audio-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
}

.audio-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.2s ease;
}

.audio-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

/* ============================================
   DATA / ANALYTICS SECTION
   ============================================ */

.data-header {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 56px;
}

.data-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.data-title .accent { color: var(--teal-dark); }

.data-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.data-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: none;
  background: var(--surface-low);
  transition: all 0.5s var(--ease);
}

.data-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}

.data-dark-card {
  grid-column: span 5;
  background: var(--surface-lowest);
  min-height: 300px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: none;
}

.data-dark-card .data-glow {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  opacity: 0.5;
  margin-bottom: 20px;
  filter: blur(20px);
}

.data-dark-card .data-label {
  font-size: 0.82rem;
  color: var(--text-on-surface-variant);
  margin-bottom: 8px;
}

.data-dark-card .data-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-on-surface);
}

.data-stat-card {
  grid-column: span 3;
  background: var(--surface-highest);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
}

.data-stat-card .ds-label {
  font-size: 0.82rem;
  color: var(--text-on-surface-variant);
  margin-bottom: 6px;
}

.data-stat-card .ds-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-on-surface);
}

.data-stat-card .ds-bar {
  width: 100%;
  height: 6px;
  background: var(--ghost-border);
  border-radius: 3px;
  margin-top: auto;
  overflow: hidden;
}

.data-stat-card .ds-bar span {
  display: block;
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
}

.data-photo-card {
  grid-column: span 4;
  min-height: 300px;
}

.data-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.data-insight-card {
  grid-column: span 5;
  background: var(--surface-high);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.data-insight-card p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-on-surface-variant);
}

.data-insight-card p .accent {
  color: var(--text-on-surface);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--primary);
  text-underline-offset: 3px;
}

.data-chart-card {
  grid-column: span 3;
  background: var(--surface-highest);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 100px;
  margin-top: auto;
}

.chart-bar {
  flex: 1;
  background: var(--surface-lowest);
  border-radius: 4px 4px 0 0;
  transition: background var(--transition);
  min-height: 10px;
}

.chart-bar.active {
  background: var(--primary);
}

/* ============================================
   CTA / VISION
   ============================================ */
.cta-section {
  padding: var(--section-gap) 0;
  background: var(--surface-highest);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 212, 168, 0.1) 0%, transparent 70%);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.cta-section .section-label { color: var(--primary); }

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-on-surface);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.cta-title .accent { color: var(--primary); }

.cta-desc {
  font-size: 1.05rem;
  color: var(--text-on-surface-variant);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.cta-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--ghost-border);
}

.cta-stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.cta-stat-label {
  font-size: 0.82rem;
  color: var(--text-on-surface-variant);
  margin-top: 4px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 56px 0 28px;
  background: var(--surface-lowest);
  border-top: 1px solid var(--ghost-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--ghost-border);
}

.footer-brand .f-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-brand .f-logo .logo-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-on-primary);
}

.footer-brand .f-logo span {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-on-surface);
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-on-surface-variant);
  line-height: 1.6;
  max-width: 260px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-on-surface);
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  font-size: 0.82rem;
  color: var(--text-on-surface-variant);
  padding: 5px 0;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-on-surface-variant);
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--ghost-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-on-surface-variant);
  transition: all var(--transition);
}

.footer-socials a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-on-primary);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin: 0 auto 36px; }
  .hero-buttons { justify-content: center; }
  .hero-visual { margin-top: 40px; }
  .hero-visual img { max-width: 400px; }
  .about-header { grid-template-columns: 1fr; }
  .data-header { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: repeat(8, 1fr); }
  .bento-img, .bento-stat, .bento-feature { grid-column: span 4; }
  .bento-dashboard { grid-column: span 8; }
  .bento-metrics { grid-column: span 8; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .testimonial-quote { grid-row: span 1; }
  .data-grid { grid-template-columns: repeat(8, 1fr); }
  .data-dark-card { grid-column: span 4; }
  .data-stat-card { grid-column: span 4; }
  .data-photo-card { grid-column: span 4; }
  .data-insight-card { grid-column: span 4; }
  .data-chart-card { grid-column: span 4; }

  .visualizer-bars {
    width: min(88vw, 920px);
    gap: clamp(10px, 1.2vw, 18px);
  }

  .audio-title {
    font-size: 4.2rem;
  }
}

@media (max-width: 768px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-img, .bento-stat, .bento-feature, .bento-dashboard, .bento-metrics { grid-column: span 1; }
  .how-steps { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .data-grid { grid-template-columns: 1fr; }
  .data-dark-card, .data-stat-card, .data-photo-card, .data-insight-card, .data-chart-card { grid-column: span 1; }
  .cta-stats { flex-direction: column; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }

  .audio-mark {
    padding: 28px 14px 28px;
    gap: 22px;
  }

  .visualizer-bars {
    width: 96vw;
    height: min(54vh, 430px);
    gap: 7px;
  }

  .v-bar {
    width: clamp(28px, 7vw, 48px);
  }

  .bar-1,
  .bar-5,
  .bar-8,
  .bar-11 { margin-top: 0; }

  .bar-2,
  .bar-4,
  .bar-7,
  .bar-10 { margin-top: 20px; }

  .bar-3,
  .bar-6,
  .bar-9 { margin-top: 42px; }

  .audio-title {
    font-size: 3.25rem;
  }

  .audio-subtitle {
    font-size: 0.96rem;
  }

  .featured-footer {
    left: auto;
    right: 18px;
    gap: 10px;
  }

  .featured-dot,
  .featured-bars-icon {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .service-card { flex-direction: column; }
}
