/* ============================================
   PECULIEX — Prismatic Editorial V2
   Award-Winning Animation System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@800;900&family=Inter:wght@400;500;600&family=Manrope:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  --color-primary: #8B2CF5;
  --color-primary-deep: #6F00D2;
  --color-primary-fixed: #EDDCFF;
  --color-primary-fixed-dim: #D8B9FF;
  --color-on-primary: #FFFFFF;
  --color-secondary: #A33800;
  --color-secondary-container: #CD4800;
  --color-secondary-fixed: #FFDBCE;
  --color-secondary-fixed-dim: #FFB59A;
  --color-on-secondary: #FFFFFF;
  --color-tertiary: #415700;
  --color-tertiary-container: #567100;
  --color-tertiary-fixed: #BDF500;
  --color-tertiary-fixed-dim: #A6D700;
  --color-on-tertiary-fixed: #151F00;
  --color-background: #F8F9FA;
  --color-on-background: #191C1D;
  --color-surface: #F8F9FA;
  --color-surface-container: #EDEEEF;
  --color-surface-container-low: #F3F4F5;
  --color-surface-container-high: #E7E8E9;
  --color-surface-container-lowest: #FFFFFF;
  --color-surface-variant: #E1E3E4;
  --color-on-surface: #191C1D;
  --color-on-surface-variant: #4C4355;
  --color-inverse-surface: #2E3132;
  --color-inverse-on-surface: #F0F1F2;
  --color-outline: #7D7387;
  --color-outline-variant: #CEC2D8;
  --color-error: #BA1A1A;
  --gradient-prismatic: linear-gradient(135deg, #6F00D2 0%, #CD4800 100%);
  --gradient-prismatic-wide: linear-gradient(135deg, #6F00D2 0%, #A33800 50%, #415700 100%);
  --font-headline: 'Archivo', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --font-label: 'Manrope', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --space-gutter: 32px;
  --space-stack-md: 64px;
  --space-stack-lg: 120px;
  --margin-desktop: 80px;
  --margin-mobile: 24px;
  --container-max: 1920px;
  --radius-sm: 4px;
  --radius-default: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 40px;
  --radius-full: 9999px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-on-background);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  cursor: none;
}
@media (max-width: 768px) { body { cursor: auto; overflow-x: clip; } }
::selection { background: rgba(139, 44, 245, 0.2); color: var(--color-primary-deep); }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

/* ---------- Typography ---------- */
.display-xl {
  font-family: var(--font-headline);
  font-size: clamp(36px, 6.5vw, 95px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

/* Pro GSAP Hero Line Reveal */
.hero-line {
  overflow: hidden;
  display: block;
}
.hero-line-inner {
  display: block;
  transform-origin: left top;
}
.headline-lg {
  font-family: var(--font-headline);
  font-size: clamp(28px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.headline-md {
  font-family: var(--font-headline);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.25;
}
.body-lg {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 400;
  line-height: 1.6;
}
.body-md {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}
.label-caps {
  font-family: var(--font-label);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.43;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Color Utilities ---------- */
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-tertiary { color: var(--color-tertiary); }
.text-muted { color: var(--color-on-surface-variant); }
.text-on-primary { color: var(--color-on-primary); }

.prismatic-text {
  background: var(--gradient-prismatic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.prismatic-text-wide {
  background: var(--gradient-prismatic-wide);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--margin-mobile);
  padding-right: var(--margin-mobile);
}
@media (min-width: 768px) {
  .container {
    padding-left: var(--margin-desktop);
    padding-right: var(--margin-desktop);
  }
}
.section-spacing {
  padding-top: var(--space-stack-lg);
  padding-bottom: var(--space-stack-lg);
}

/* ---------- Glassmorphism ---------- */
.glass-card {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(139, 44, 245, 0.08);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo), border-color 0.4s ease;
}
.glass-card:hover {
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.1);
  border-color: rgba(139, 44, 245, 0.2);
}

/* ---------- Custom Cursor ---------- */
.custom-cursor {
  width: 16px;
  height: 16px;
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width 0.4s var(--ease-out-expo),
              height 0.4s var(--ease-out-expo),
              background 0.3s ease,
              border-color 0.3s ease;
}
.custom-cursor.hovering {
  width: 56px;
  height: 56px;
  background: rgba(139, 44, 245, 0.12);
  border-color: var(--color-secondary-container);
}
@media (max-width: 768px) { .custom-cursor { display: none; } }

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(139, 44, 245, 0.08);
  transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.08);
}
.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px var(--margin-mobile);
  max-width: var(--container-max);
  margin: 0 auto;
}
@media (min-width: 768px) { .navbar-inner { padding: 20px var(--margin-desktop); } }

.navbar-logo {
  font-family: var(--font-headline);
  font-size: 32px;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}
.navbar-logo:hover { color: var(--color-secondary-container); }

.navbar-links {
  display: none;
  align-items: center;
  gap: var(--space-gutter);
}
@media (min-width: 768px) { .navbar-links { display: flex; } }

/* ★ DZINR-style underline grow on hover */
.navbar-links a {
  font-family: var(--font-label);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-on-surface);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}
.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.4s var(--ease-out-expo);
}
.navbar-links a:hover::after,
.navbar-links a.active::after {
  width: 100%;
}
.navbar-links a.active { color: var(--color-primary); }
.navbar-links a:hover { color: var(--color-secondary-container); }

/* ★ DZINR-style wave-fill CTA button */
.navbar-cta {
  display: none;
  position: relative;
  overflow: hidden;
  font-family: var(--font-label);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-on-primary);
  background: var(--color-on-background);
  padding: 14px 32px;
  border-radius: 0;
  transition: color 0.6s ease;
}
@media (min-width: 768px) { .navbar-cta { display: inline-flex; align-items: center; gap: 8px; } }
.navbar-cta .wave-svg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 160%;
  height: 160%;
  transform: translate(-50%, 120%);
  transition: transform 0.9s ease-out;
  pointer-events: none;
}
.navbar-cta:hover .wave-svg { transform: translate(-50%, -66%); }
.navbar-cta:hover { color: #fff; }
.navbar-cta span { position: relative; z-index: 2; }

/* Mobile Menu */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
@media (min-width: 768px) { .menu-toggle { display: none; } }
@media (max-width: 767px) { .navbar-cta { display: none !important; } }
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.4s var(--ease-out-expo), opacity 0.3s ease;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(248, 249, 250, 0.96);
  backdrop-filter: blur(40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(16px, 4vh, 32px);
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out-expo);
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-family: var(--font-headline);
  font-size: clamp(28px, 6vh, 40px);
  font-weight: 700;
  color: var(--color-on-surface);
  opacity: 0.3;
  transition: color 0.3s ease, opacity 0.3s ease, transform 0.3s var(--ease-out-expo);
}
.mobile-menu a:hover,
.mobile-menu a.active { color: var(--color-primary); opacity: 1; transform: translateX(10px); }

/* ========== TEXT REVEAL ANIMATION (DZINR-style) ========== */
.split-line {
  overflow: hidden;
  display: block;
}
.split-line-inner {
  display: block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out-expo);
}
.split-line.revealed .split-line-inner {
  transform: translateY(0);
}

/* Stagger children */
.split-line.revealed .split-line-inner { transition-delay: 0s; }
.stagger-2.revealed .split-line-inner { transition-delay: 0.08s; }
.stagger-3.revealed .split-line-inner { transition-delay: 0.16s; }
.stagger-4.revealed .split-line-inner { transition-delay: 0.24s; }
.stagger-5.revealed .split-line-inner { transition-delay: 0.32s; }

/* Standard reveal */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ========== MARQUEE (DZINR "Stand Out" band) ========== */
.marquee-section {
  background: var(--color-on-background);
  color: var(--color-background);
  overflow: hidden;
  display: flex;
  align-items: center;
  height: 100vh;
  position: relative;
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  will-change: transform;
}
.marquee-track span {
  font-family: var(--font-headline);
  font-size: clamp(60px, 18vw, 220px);
  font-weight: 900;
  letter-spacing: -0.05em;
  padding: 0 clamp(40px, 5vw, 80px);
  line-height: 0.9;
  text-transform: uppercase;
}
.marquee-track .accent { -webkit-text-stroke: 2px var(--color-primary); -webkit-text-fill-color: transparent; }
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========== HORIZONTAL SCROLL (DZINR project scroll) ========== */
.horizontal-scroll-wrapper {
  position: relative;
  width: 100%;
}
.horizontal-scroll-container {
  display: flex;
  flex-wrap: nowrap;
  will-change: transform;
}
.horizontal-panel {
  flex: 0 0 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========== STICKY CARD STACK (mobile projects) ========== */
.sticky-card-stack {
  position: relative;
}
.sticky-card {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

/* ========== LINK UNDERLINE GROW ========== */
.link-underline {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: color 0.3s ease;
}
.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.5s var(--ease-out-expo);
}
.link-underline:hover::after { width: 100%; }
.link-underline:hover { color: var(--color-primary); }

/* ★ Arrow rotation on hover (DZINR-style) */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.arrow-link .material-symbols-outlined {
  transform: rotate(-45deg);
  transition: transform 0.4s var(--ease-out-expo);
}
.arrow-link:hover .material-symbols-outlined { transform: rotate(0deg); }

/* ========== WAVE BUTTON (DZINR-style) ========== */
.btn-wave {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-label);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-background);
  background: var(--color-on-background);
  padding: 20px 48px;
  overflow: hidden;
  cursor: pointer;
  transition: color 0.7s ease;
}
.btn-wave .wave-svg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 160%;
  height: 160%;
  transform: translate(-50%, 120%);
  transition: transform 0.9s ease-out;
  pointer-events: none;
}
.btn-wave:hover .wave-svg { transform: translate(-50%, -66%); }
.btn-wave:hover { color: #fff; }
.btn-wave span { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 12px; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-label);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-on-primary);
  background: var(--gradient-prismatic);
  padding: 20px 44px;
  border-radius: var(--radius-full);
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo);
  box-shadow: 0 4px 24px rgba(111, 0, 210, 0.2);
}
.btn-primary:hover {
  transform: scale(1.04);
  box-shadow: 0 0 40px rgba(111, 0, 210, 0.35);
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-label);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-on-primary);
  padding: 20px 48px;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.5s ease, transform 0.3s var(--ease-out-expo);
}
.btn-white:hover { box-shadow: 0 8px 60px rgba(139, 44, 245, 0.35); transform: scale(1.03); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-label);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-on-surface);
  border: 1px solid var(--color-outline-variant);
  padding: 18px 40px;
  border-radius: var(--radius-full);
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); background: rgba(139,44,245,0.04); }

/* ========== TAGS ========== */
.tag-acid {
  display: inline-flex;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--color-tertiary-fixed);
  color: var(--color-on-tertiary-fixed);
  padding: 8px 18px;
  border-radius: var(--radius-full);
}
.tag-glass {
  display: inline-flex;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  color: var(--color-on-primary);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ========== FLOATING CARD ========== */
.floating-card { transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s var(--ease-out-expo); }
.floating-card:hover { transform: translateY(-12px); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.1); }

/* ========== MAGNETIC ========== */
.magnetic { display: inline-flex; transition: transform 0.3s var(--ease-out-expo); }
.magnetic:hover { transition: none; }

/* ========== 3D TILT ========== */
.tilt-card { perspective: 1000px; }
.tilt-card-inner { transition: transform 0.4s var(--ease-out-quad); will-change: transform; transform-style: preserve-3d; }

/* ========== PARALLAX ========== */
.parallax-container { overflow: hidden; border-radius: var(--radius-lg); }
.parallax-img { will-change: transform; transition: transform 0.1s linear; }

/* ---- Filter Bar (Work Page) ---- */
.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
  justify-content: center;
}
.filter-btn {
  padding: 10px 24px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: var(--color-on-background);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}
.filter-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
}
.filter-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-on-primary);
}

.project-grid {
  display: grid;
  grid-template-rows: 1fr 1fr;
  grid-auto-flow: column;
  gap: 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--margin-desktop);
  padding: 0 var(--margin-desktop) var(--space-stack-lg) var(--margin-desktop);
  /* Hide scrollbar */
  scrollbar-width: none;
}
.project-grid::-webkit-scrollbar {
  display: none;
}
.project-item {
  width: 70vw;
  max-width: 800px;
  scroll-snap-align: start;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
@media (max-width: 768px) {
  .project-grid {
    grid-template-rows: auto;
    grid-auto-flow: row;
    overflow-x: visible;
    padding: 0 var(--margin-mobile);
  }
  .project-item { width: 100%; max-width: none; }
}

.project-item.hidden {
  display: none !important;
}

/* ========== ACID IMAGE ========== */
.acid-img { filter: saturate(1.2) contrast(1.05); }

/* ========== BACKGROUND BLOBS ========== */
@keyframes float-blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.12; }
  50% { opacity: 0.22; }
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: -1;
}
.blob-primary { background: var(--gradient-prismatic); animation: float-blob 8s ease-in-out infinite, pulse-glow 6s ease-in-out infinite; }
.blob-tertiary { background: var(--color-tertiary-fixed); animation: float-blob 10s ease-in-out infinite reverse, pulse-glow 8s ease-in-out infinite; }
.blob-secondary { background: var(--color-secondary-fixed); animation: float-blob 12s ease-in-out infinite, pulse-glow 7s ease-in-out infinite; }

/* ========== SCROLL PROGRESS BAR ========== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-prismatic);
  z-index: 10001;
  transform-origin: left;
  transform: scaleX(0);
  transition: none;
  width: 100%;
}

/* ========== SMOOTH DIVIDER LINE (DZINR-style) ========== */
.divider {
  height: 1px;
  background: rgba(0,0,0,0.08);
  width: 0;
  transition: width 1.2s var(--ease-out-expo);
}
.divider.revealed { width: 100%; }

/* ========== CINEMATIC STATS SECTION — AWARD LEVEL ========== */
.stats-cinematic {
  position: relative;
  overflow: hidden;
  padding: 140px 0 160px;
  background: #000000;
  color: #fff;
}

/* Animated mesh gradient orbs */
.stats-mesh-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.stats-mesh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  will-change: transform;
}
.stats-orb-1 {
  width: 500px; height: 500px;
  background: rgba(139, 44, 245, 0.35);
  top: -20%; left: -10%;
  animation: statsOrbFloat1 14s ease-in-out infinite;
}
.stats-orb-2 {
  width: 400px; height: 400px;
  background: rgba(205, 72, 0, 0.25);
  bottom: -15%; right: -5%;
  animation: statsOrbFloat2 18s ease-in-out infinite;
}
.stats-orb-3 {
  width: 300px; height: 300px;
  background: rgba(65, 87, 0, 0.2);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: statsOrbFloat3 12s ease-in-out infinite;
}
@keyframes statsOrbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, 40px) scale(1.15); }
  66% { transform: translate(-30px, -20px) scale(0.9); }
}
@keyframes statsOrbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, -30px) scale(1.2); }
}
@keyframes statsOrbFloat3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-40%, -60%) scale(1.1); }
}

/* Grain noise overlay */
.stats-noise-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
}

/* Horizontal glowing line */
.stats-horizon-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(139, 44, 245, 0.3) 30%, rgba(205, 72, 0, 0.3) 70%, transparent 100%);
  z-index: 1;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: opacity 1s, transform 1.5s var(--ease-out-expo);
}
.stats-cinematic.in-view .stats-horizon-line {
  opacity: 1;
  transform: scaleX(1);
}

/* Micro label */
.stats-micro-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 64px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s, transform 0.8s var(--ease-out-expo);
}
.stats-cinematic.in-view .stats-micro-label {
  opacity: 1;
  transform: translateY(0);
}
.stats-micro-label span:first-of-type {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
/* Highlighted heading */
.stats-heading {
  font-family: var(--font-headline);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 64px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s 0.15s, transform 0.8s 0.15s var(--ease-out-expo);
}
.stats-cinematic.in-view .stats-heading {
  opacity: 1;
  transform: translateY(0);
}
.stats-micro-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 12px rgba(139, 44, 245, 0.8);
  animation: statsDotPulse 2s ease-in-out infinite;
}
@keyframes statsDotPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(139, 44, 245, 0.8); transform: scale(1); }
  50% { box-shadow: 0 0 24px rgba(139, 44, 245, 1); transform: scale(1.2); }
}

/* Grid */
.stats-cinematic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}

/* Individual card */
.stat-cinematic-card {
  position: relative;
  border-radius: 24px;
  padding: 2px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(60px) scale(0.95);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.stat-cinematic-card.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.stat-cinematic-card[data-stat-index="1"] { transition-delay: 0.1s; }
.stat-cinematic-card[data-stat-index="2"] { transition-delay: 0.2s; }
.stat-cinematic-card[data-stat-index="3"] { transition-delay: 0.3s; }

/* Animated gradient border */
.stat-card-border-glow {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: conic-gradient(from var(--stat-border-angle, 0deg),
    transparent 0%,
    rgba(139, 44, 245, 0.6) 10%,
    rgba(205, 72, 0, 0.4) 20%,
    transparent 30%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.6s;
  animation: statBorderRotate 4s linear infinite;
}
.stat-cinematic-card:hover .stat-card-border-glow {
  opacity: 1;
}
@property --stat-border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes statBorderRotate {
  to { --stat-border-angle: 360deg; }
}

/* Card inner */
.stat-card-inner {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  padding: 40px 32px 36px;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.5s, background 0.5s, box-shadow 0.5s;
  overflow: hidden;
}
.stat-cinematic-card:hover .stat-card-inner {
  border-color: rgba(139, 44, 245, 0.2);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Mouse-follow spotlight */
.stat-card-spotlight {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 44, 245, 0.15) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s;
  z-index: 1;
}
.stat-cinematic-card:hover .stat-card-spotlight {
  opacity: 1;
}

/* Icon ring */
.stat-icon-ring {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(139, 44, 245, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s var(--ease-out-expo), background 0.5s, border-color 0.5s;
}
.stat-icon-ring svg {
  width: 24px;
  height: 24px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.4s;
}
.stat-cinematic-card:hover .stat-icon-ring {
  transform: scale(1.1) rotate(-5deg);
  background: rgba(139, 44, 245, 0.15);
  border-color: rgba(139, 44, 245, 0.3);
}
.stat-cinematic-card:hover .stat-icon-ring svg {
  color: #fff;
}

/* Number */
.stat-value-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat-cinematic-number {
  font-family: var(--font-headline);
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-variant-numeric: tabular-nums;
}
.stat-cinematic-plus {
  font-family: var(--font-headline);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 900;
  background: var(--gradient-prismatic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.5s 0.3s, transform 0.5s 0.3s var(--ease-out-expo);
}
.stat-cinematic-card.counted .stat-cinematic-plus {
  opacity: 1;
  transform: translateX(0);
}

/* Label */
.stat-cinematic-label {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.4s;
}
.stat-cinematic-card:hover .stat-cinematic-label {
  color: rgba(255, 255, 255, 0.6);
}

/* Mini progress bar */
.stat-progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}
.stat-progress-fill {
  width: 0%;
  height: 100%;
  background: var(--gradient-prismatic);
  border-radius: 2px;
  transition: width 1.8s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 8px rgba(139, 44, 245, 0.4);
}
.stat-cinematic-card.counted .stat-progress-fill {
  width: var(--stat-bar-width, 80%);
}

/* Responsive */
@media (max-width: 1023px) {
  .stats-cinematic-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
@media (max-width: 767px) {
  .stats-cinematic {
    padding: 80px 0 100px;
  }
  .stats-cinematic-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .stat-card-inner {
    padding: 28px 20px 24px;
    gap: 14px;
  }
  .stat-icon-ring {
    width: 40px; height: 40px; border-radius: 10px;
  }
  .stat-icon-ring svg { width: 18px; height: 18px; }
  .stats-micro-label { margin-bottom: 40px; }
}
@media (max-width: 480px) {
  .stats-cinematic { padding: 60px 0 80px; }
  .stats-cinematic-grid { gap: 12px; }
  .stat-card-inner { padding: 24px 16px 20px; gap: 12px; }
  .stat-cinematic-number { font-size: clamp(32px, 10vw, 48px); }
  .stat-cinematic-plus { font-size: clamp(20px, 6vw, 30px); }
}

/* ========== SERVICE CARD (DZINR-style rounded card with hover border) ========== */
.service-card {
  background: rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s var(--ease-out-expo);
  backdrop-filter: blur(6px);
}
.service-card:hover {
  border-color: var(--color-on-background);
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
  transform: translateY(-4px);
}
.service-card h3 {
  font-family: var(--font-headline);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 8px 0;
}
.service-card p { opacity: 0.5; line-height: 1.6; }

/* ========== FOOTER ========== */
/* ========== CREATIVE FOOTER ========== */
.footer-creative {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(139, 44, 245, 0.1);
  padding: var(--space-stack-lg) 0 var(--space-stack-md);
  overflow: hidden;
  position: relative;
}

.footer-creative-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-stack-lg);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--margin-mobile);
}
@media (min-width: 768px) {
  .footer-creative-inner { padding: 0 var(--margin-desktop); }
}

.footer-cta {
  text-align: center;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 48px;
  border-top: 1px solid var(--color-surface-variant);
  padding-top: 48px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-col-brand {
  grid-column: span 1;
}
@media (min-width: 1024px) {
  .footer-col-brand { grid-column: span 2; }
}

.footer-heading {
  font-family: var(--font-headline);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-outline);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.footer-link {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--color-on-surface-variant);
  transition: color 0.3s ease, transform 0.3s ease;
  width: fit-content;
}
.footer-link:hover {
  color: var(--color-primary);
  transform: translateX(8px);
}

/* ========== FOOTER SOCIAL ICONS ========== */
.footer-social-icons {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--color-surface, #ffffff);
  color: var(--color-on-surface, #1e1e1e);
  transition: all 0.4s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .social-icon {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.social-icon:hover {
  transform: translateY(-4px) scale(1.05);
  background: var(--color-primary, #8b2cf5);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(139, 44, 245, 0.25);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--color-surface-variant);
  padding-top: 24px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-outline);
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; }
}

.footer-logo {
  font-family: var(--font-headline);
  font-size: 32px;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -1px;
}

/* ========== LOADING SCREEN — FUTURISTIC WHITE ========== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: var(--color-background);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
/* Exit: scale up + blur out */
.loader.exit-glow {
  pointer-events: none;
}
.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.6s 0.4s, visibility 0.6s 0.4s;
}

.loader-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* --- Brand name --- */
.loader-brand {
  font-family: var(--font-headline);
  font-size: clamp(44px, 8vw, 88px);
  font-weight: 900;
  color: var(--color-on-background);
  letter-spacing: 0.06em;
  margin: 0 0 20px 0;
  text-transform: none;
  perspective: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 3D Flip animation — each letter flips from top like a flip-clock */
.loader-letter {
  display: inline-block;
  transform-style: preserve-3d;
  transform-origin: center bottom;
  transform: rotateX(-90deg);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1),
              opacity 0.4s ease;
  backface-visibility: hidden;
}
.loader-letter.visible {
  opacity: 1;
  transform: rotateX(0deg);
}
/* Slight bounce overshoot for premium feel */
.loader-letter.visible {
  animation: letterFlipIn 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
@keyframes letterFlipIn {
  0%   { transform: rotateX(-90deg); opacity: 0; }
  40%  { opacity: 1; }
  70%  { transform: rotateX(8deg); }
  100% { transform: rotateX(0deg); opacity: 1; }
}

/* On exit-glow, letters flip OUT upward */
.loader.exit-glow .loader-letter {
  animation: letterFlipOut 0.5s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}
@keyframes letterFlipOut {
  0%   { transform: rotateX(0deg); opacity: 1; }
  100% { transform: rotateX(90deg) scale(0.9); opacity: 0; }
}

/* --- Subtext --- */
.loader-subtext {
  font-family: var(--font-label);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-on-background);
  opacity: 0;
  margin: 0;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transition: opacity 0.8s ease;
}
.loader-subtext.visible {
  opacity: 0.9;
}
.loader.exit-glow .loader-subtext {
  opacity: 0;
  transition: opacity 0.3s;
}

/* --- Full-screen glow flash overlay (pure white) --- */
.loader-glow-flash {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 50%,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.98) 40%,
    rgba(255, 255, 255, 1) 100%
  );
  transform: scale(0);
  transition: opacity 0.6s, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.loader.exit-glow .loader-glow-flash {
  opacity: 1;
  transform: scale(3);
}

/* --- Progress bar --- */
.loader-bar {
  width: 230px;
  height: 3px;
  margin: 30px auto 0;
  border-radius: 99px;
  background: rgba(25, 28, 29, 0.08);
  overflow: hidden;
}
.loader-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--color-primary), #c264ff, var(--color-primary));
}
.loader-pct {
  margin-top: 12px;
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--color-on-background);
  opacity: 0.9;
}
.loader.exit-glow .loader-bar,
.loader.exit-glow .loader-pct {
  opacity: 0;
  transition: opacity 0.3s;
}

/* --- Orbiting icon ring --- */
.loader-orbit {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.loader-orbit .l-ico {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(139, 44, 245, 0.22);
  /* Purple glow — like the reference loader */
  box-shadow: 0 0 24px rgba(139, 44, 245, 0.38), 0 10px 30px rgba(139, 44, 245, 0.18);
  opacity: 0;
  animation: lIcoGlow 2.6s ease-in-out infinite;
}
.loader-orbit .l-ico svg { width: 28px; height: 28px; }
@keyframes lIcoGlow {
  0%, 100% { box-shadow: 0 0 18px rgba(139, 44, 245, 0.30), 0 10px 30px rgba(139, 44, 245, 0.14); }
  50%      { box-shadow: 0 0 34px rgba(139, 44, 245, 0.60), 0 10px 34px rgba(139, 44, 245, 0.26); }
}
/* Dark mode: deeper violet glow on a dark tile */
[data-theme="dark"] .loader-orbit .l-ico {
  background: #16121f;
  border-color: rgba(166, 107, 255, 0.4);
}

/* Responsive — smaller glyphs + tighter text so the orbit never overlaps the brand */
@media (max-width: 768px) {
  .loader-orbit .l-ico {
    width: 46px; height: 46px; margin: -23px 0 0 -23px;
    border-radius: 13px;
  }
  .loader-orbit .l-ico svg { width: 22px; height: 22px; }
  .loader-brand { font-size: clamp(34px, 9vw, 54px); letter-spacing: 0.03em; margin-bottom: 16px; }
  .loader-subtext { font-size: 11px; letter-spacing: 0.16em; }
  .loader-bar { width: 170px; }
}
@media (max-width: 480px) {
  .loader-orbit .l-ico {
    width: 40px; height: 40px; margin: -20px 0 0 -20px;
    border-radius: 11px;
  }
  .loader-orbit .l-ico svg { width: 19px; height: 19px; }
  .loader-brand { font-size: clamp(28px, 9vw, 44px); }
  .loader-subtext { font-size: 9.5px; letter-spacing: 0.12em; }
  .loader-bar { width: 140px; }
}

/* ========== ABOUT MANIFESTO SECTION ========== */
/* ========== ABOUT MANIFESTO — AWARD-LEVEL ========== */
.about-manifesto-section {
  padding: var(--space-stack-lg) 0;
  background: var(--color-background);
  position: relative;
  overflow: hidden;
}

/* Ambient floating orbs */
.manifesto-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.5s ease;
  will-change: transform;
}
.about-manifesto-section.orbs-active .manifesto-orb { opacity: 1; }
.manifesto-orb-1 {
  width: 400px; height: 400px;
  background: rgba(139, 44, 245, 0.08);
  top: -10%; right: -5%;
  animation: orbFloat1 12s ease-in-out infinite;
}
.manifesto-orb-2 {
  width: 300px; height: 300px;
  background: rgba(205, 72, 0, 0.06);
  bottom: 10%; left: -8%;
  animation: orbFloat2 15s ease-in-out infinite;
}
.manifesto-orb-3 {
  width: 200px; height: 200px;
  background: rgba(65, 87, 0, 0.05);
  top: 40%; left: 50%;
  animation: orbFloat3 10s ease-in-out infinite;
}
@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 30px) scale(1.1); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.15); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, -30px) scale(0.9); }
}

.about-manifesto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
}
@media (min-width: 768px) {
  .about-manifesto-grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
  }
}

/* Left column */
.about-manifesto-left {
  position: relative;
}
@media (min-width: 768px) {
  .about-manifesto-left {
    position: sticky;
    top: 120px;
  }
}

.about-manifesto-heading {
  font-family: var(--font-headline);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--color-on-background);
  margin-bottom: 28px;
}

/* Clip-reveal heading lines */
.manifesto-line {
  display: block;
  overflow: hidden;
  position: relative;
}
.manifesto-line-inner {
  display: block;
  background: var(--gradient-prismatic-wide);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform: translateY(110%);
  will-change: transform;
}

.about-manifesto-typewriter {
  font-family: var(--font-body);
  font-size: clamp(16px, 2.5vw, 20px);
  line-height: 1.6;
  color: var(--color-on-background);
  opacity: 0.7;
  min-height: 80px;
}
@keyframes aboutCursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.about-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--color-primary);
  vertical-align: middle;
  margin-left: 2px;
  animation: aboutCursorBlink 1s step-end infinite;
}

/* Right column – timeline cards */
.about-manifesto-right {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 40px;
}

/* Vertical timeline line — scroll-driven fill */
.about-timeline-line {
  position: absolute;
  left: 11px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: var(--color-surface-variant);
  z-index: 0;
  overflow: hidden;
}
.about-timeline-line-fill {
  width: 100%;
  height: 0%;
  background: var(--gradient-prismatic);
  border-radius: 1px;
  will-change: height;
  box-shadow: 0 0 12px rgba(139, 44, 245, 0.4);
}

/* Timeline item */
.about-timeline-item {
  position: relative;
  padding-bottom: 40px;
  will-change: transform, opacity;
}
.about-timeline-item:last-child { padding-bottom: 0; }

/* Pulse dot on the timeline */
.about-timeline-dot {
  position: absolute;
  left: -40px;
  top: 28px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.about-timeline-dot::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-surface-variant);
  position: relative;
  z-index: 2;
  transition: background 0.6s, box-shadow 0.6s;
}
.about-timeline-item.active .about-timeline-dot::after {
  background: var(--color-primary);
  box-shadow: 0 0 0 5px rgba(139, 44, 245, 0.15), 0 0 25px rgba(139, 44, 245, 0.3);
}

/* Ping ripple — fires when card becomes active */
.about-timeline-ping {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(139, 44, 245, 0.3);
  z-index: 1;
  opacity: 0;
  transform: scale(0);
}
.about-timeline-item.active .about-timeline-ping {
  animation: timelinePing 1.2s cubic-bezier(0, 0, 0.2, 1) forwards;
}
@keyframes timelinePing {
  0% { transform: scale(0.5); opacity: 0.7; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* Card styles */
.about-value-card {
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--color-surface-container-low);
  border: 1px solid var(--color-surface-variant);
  transition: border-color 0.5s, box-shadow 0.5s;
  position: relative;
  overflow: hidden;
  will-change: transform;
}
.about-timeline-item.active .about-value-card {
  border-color: rgba(139, 44, 245, 0.25);
  box-shadow: 0 24px 80px rgba(139, 44, 245, 0.08), 0 4px 20px rgba(0,0,0,0.04);
}

/* Mouse-follow glow inside card */
.about-card-glow {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 44, 245, 0.08) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  z-index: 0;
}
.about-value-card:hover .about-card-glow {
  opacity: 1;
}

/* Icon */
.about-value-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--gradient-prismatic);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  opacity: 0.85;
  transition: transform 0.4s var(--ease-out-expo);
}
.about-value-icon .material-symbols-outlined {
  font-size: 24px;
  color: #fff;
}
.about-value-card:hover .about-value-icon {
  transform: scale(1.1) rotate(-5deg);
}

.about-value-number {
  font-family: var(--font-headline);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.about-value-title {
  font-family: var(--font-headline);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 800;
  color: var(--color-on-background);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.about-value-desc {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-on-background);
  opacity: 0.65;
  position: relative;
  z-index: 1;
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .about-manifesto-right {
    padding-left: 32px;
  }
  .about-timeline-dot {
    left: -32px;
  }
  .about-timeline-line {
    left: 7px;
  }
  .manifesto-orb { display: none; }
}

/* Stats strip */
.about-stats-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--color-surface-variant);
}
@media (min-width: 640px) {
  .about-stats-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

.about-stat {
  font-family: var(--font-headline);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  color: var(--color-on-background);
  letter-spacing: -0.04em;
  line-height: 1;
}
.about-stat-num {
  font-variant-numeric: tabular-nums;
}
.about-stat-label {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.5;
  margin-top: 8px;
}

/* Footer link */
.about-manifesto-footer {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--color-surface-variant);
}
.about-manifesto-footer p {
  font-family: var(--font-body);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
  color: var(--color-on-background);
  opacity: 0.7;
}
.manifesto-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}
.manifesto-link:hover {
  opacity: 0.7;
}

/* ========== PAGE TRANSITION ========== */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: #ffffff;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.page-transition.pt-show { opacity: 1; pointer-events: auto; }
.page-transition .pt-cat { width: min(300px, 62vw); height: min(300px, 62vw); }

/* ========== MATERIAL ICONS ========== */
.material-symbols-outlined { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; vertical-align: middle; }

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-outline-variant); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-primary); }

/* ========== UTILITY ========== */
.max-w-2xl { max-width: 672px; }
.max-w-3xl { max-width: 768px; }
.max-w-4xl { max-width: 896px; }

/* ============================================
   COMPREHENSIVE RESPONSIVE SYSTEM
   ============================================ */

/* ----- Extra-small phones (≤ 480px, e.g. iPhone SE) ----- */
@media (max-width: 480px) {
  :root {
    --space-stack-lg: 56px;
    --space-stack-md: 36px;
    --space-gutter: 16px;
    --margin-mobile: 16px;
  }

  .section-spacing {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .navbar-logo { font-size: 24px; }
  .navbar-inner { padding: 14px var(--margin-mobile); }

  .mobile-menu a { font-size: 28px; }
  .mobile-menu { gap: 24px; }

  .btn-wave { padding: 16px 28px; font-size: 12px; }
  .btn-primary { padding: 16px 28px; font-size: 12px; }
  .btn-white { padding: 16px 28px; font-size: 12px; }
  .btn-outline { padding: 14px 28px; font-size: 12px; }

  .marquee-section { height: 35vh; }
  .marquee-track span { padding: 0 16px; }

  .stat-number { font-size: clamp(32px, 10vw, 48px); }

  .service-card { padding: 24px; min-height: 260px; }
  .service-card h3 { font-size: clamp(20px, 5vw, 26px); }

  .tag-acid, .tag-glass { font-size: 10px; padding: 6px 12px; }

  .footer-creative-inner { gap: 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-cta h2 { font-size: clamp(48px, 14vw, 80px) !important; }
  .footer-cta a { font-size: clamp(18px, 4vw, 32px) !important; }
  .footer-bottom { text-align: center; }

  .loader-counter { font-size: clamp(48px, 14vw, 80px); }
}

/* ----- Small phones / large phones (481px – 767px) ----- */
@media (min-width: 481px) and (max-width: 767px) {
  :root {
    --space-stack-lg: 72px;
    --space-stack-md: 44px;
    --space-gutter: 20px;
  }

  .section-spacing {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .marquee-section { height: 50vh; }

  .btn-wave { padding: 18px 36px; }
  .btn-primary { padding: 18px 36px; }
  .btn-white { padding: 18px 36px; }
}

/* ----- All mobile (≤ 767px) shared ----- */
@media (max-width: 767px) {
  .footer-creative-inner { gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-col-brand { grid-column: span 2; }

  .method-card h3 { font-size: 22px; }
  .method-card p { font-size: 15px; }
  .method-icon { width: 52px; height: 52px; font-size: 24px; margin-bottom: 20px; }
  .method-card { padding: 28px; }
}

/* ----- Tablets (768px – 1023px) ----- */
@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --space-stack-lg: 88px;
    --margin-desktop: 40px;
  }

  .section-spacing {
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .navbar-links { gap: 16px; }
  .navbar-links a { font-size: 12px; letter-spacing: 0.06em; }
  .navbar-cta { padding: 12px 24px; font-size: 12px; }

  .marquee-section { height: 60vh; }

  .method-card h3 { font-size: 24px; }
  .method-card p { font-size: 15px; }
}

/* ========== CINEMATIC 3D METHODOLOGY SECTION ========== */
.methodology-cinematic-wrapper {
  position: relative;
  overflow: hidden;
  background: var(--color-surface-container-lowest);
  padding: 120px 0;
  color: var(--color-on-surface);
}
#methodology-canvas-container {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}
.method-cinematic-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.method-glow-text {
  background: linear-gradient(135deg, #191C1D 0%, #4a4a5a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--color-on-surface);
}
/* dark mode: light gradient so the heading is white/visible on the dark section */
[data-theme="dark"] .method-glow-text {
  background: linear-gradient(135deg, #ffffff 0%, #c9c9d6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.method-timeline-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;
}
.method-timeline-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 100px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}
.timeline-path-bg {
  fill: none;
  stroke: rgba(0, 0, 0, 0.08);
  stroke-width: 2;
  stroke-dasharray: 8 8;
}
.timeline-path-glow {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 3;
  filter: drop-shadow(0 0 10px var(--color-primary));
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}
.method-timeline-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 40px;
  position: relative;
  z-index: 2;
}
@media (max-width: 1023px) {
  .method-timeline-grid {
    flex-direction: column;
    align-items: center;
  }
  .method-timeline-line { display: none; }
}

.method-3d-panel-container {
  perspective: 1200px;
  flex: 1;
  max-width: 360px;
}
.cinematic-3d-panel {
  position: relative;
  transform-style: preserve-3d;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 24px;
  padding: 40px 32px;
  height: 100%;
  transition: box-shadow 0.6s var(--ease-out-expo), border-color 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
  will-change: transform;
}
.cinematic-3d-panel.is-active {
  border-color: rgba(0,0,0,0.1);
  transform: translateY(-10px);
}
/* Purple Glow for Card 1 */
.method-3d-panel-container:nth-child(1) .cinematic-3d-panel.is-active {
  box-shadow: 0 40px 80px rgba(0,0,0,0.1), 0 0 100px rgba(185, 117, 255, 0.5), inset 0 0 30px rgba(185, 117, 255, 0.1);
  border-color: rgba(185, 117, 255, 0.4);
}
/* Orange Glow for Card 2 */
.method-3d-panel-container:nth-child(2) .cinematic-3d-panel.is-active {
  box-shadow: 0 40px 80px rgba(0,0,0,0.1), 0 0 100px rgba(255, 155, 94, 0.5), inset 0 0 30px rgba(255, 155, 94, 0.1);
  border-color: rgba(255, 155, 94, 0.4);
}
/* Green Glow for Card 3 */
.method-3d-panel-container:nth-child(3) .cinematic-3d-panel.is-active {
  box-shadow: 0 40px 80px rgba(0,0,0,0.1), 0 0 100px rgba(94, 255, 168, 0.5), inset 0 0 30px rgba(94, 255, 168, 0.1);
  border-color: rgba(94, 255, 168, 0.4);
}
/* Ensure the description text is visible */
.panel-desc {
  color: var(--color-on-surface-variant);
}
.panel-content {
  transform: translateZ(30px);
}
.holographic-icon-wrapper {
  position: relative;
  width: 80px; height: 80px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  transform-style: preserve-3d;
}
.holo-ring {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0.3;
}
.holo-ring-1 {
  animation: rotateSlowly 10s linear infinite;
  border-style: dashed;
}
.holo-ring-2 {
  animation: rotateSlowlyReverse 15s linear infinite;
  transform: scale(1.1);
  opacity: 0.1;
}
@keyframes rotateSlowly { 100% { transform: rotate(360deg); } }
@keyframes rotateSlowlyReverse { 100% { transform: scale(1.1) rotate(-360deg); } }

.icon-3d {
  font-size: 32px;
  transform: translateZ(20px);
  text-shadow: 0 0 20px currentColor;
}
.holographic-icon-wrapper.purple { color: #b975ff; }
.holographic-icon-wrapper.orange { color: #ff9b5e; }
.holographic-icon-wrapper.green { color: #5effa8; }

.step-number {
  position: absolute;
  top: 24px; right: 24px;
  font-size: 48px;
  font-weight: 800;
  opacity: 0.18;
  color: #191C1D;                 /* solid faint number — panels are always white */
  -webkit-text-fill-color: #191C1D;
  background: none;
  font-family: var(--font-headline);
}
.panel-title {
  font-family: var(--font-headline);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #191C1D;
}
.panel-desc {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: #4b4b55; /* panels are always white, so keep the text dark in both themes */
  opacity: 0.95;
}

/* ----- Horizontal Scroll Section ----- */
.horizontal-scroll-section {
  position: relative;
  height: 300vh; /* Will be overwritten by JS based on track width */
  overflow: clip; /* Prevent sticky bug on iOS */
  background: var(--color-surface-container-lowest);
}
.horizontal-scroll-sticky {
  position: sticky;
  top: 90px;
  height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.horizontal-scroll-track {
  display: flex;
  gap: var(--space-gutter);
  padding: 0 var(--margin-desktop);
  will-change: transform;
}
.horizontal-scroll-card {
  width: 70vw;
  max-width: 900px;
  flex-shrink: 0;
  will-change: transform;
}
@media (max-width: 768px) {
  .horizontal-scroll-card { width: 100%; max-width: none; }
}

/* Selected Works cards = true 16:9 frame so 16:9 images show fully (no crop) */
.horizontal-scroll-card .work-card { height: auto !important; max-height: none !important; }
.horizontal-scroll-card .tilt-card-inner { aspect-ratio: 16 / 9; height: auto !important; }

/* Arrow Button inside work cards */
.work-card-arrow {
  position: absolute;
  bottom: clamp(24px, 3vw, 48px);
  right: clamp(24px, 3vw, 48px);
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.4s, background 0.4s;
  z-index: 3;
  color: #fff;
  text-decoration: none;
  pointer-events: auto; /* enable clicks */
}
.work-card-arrow .material-symbols-outlined {
  font-size: 20px;
  transform: rotate(-45deg);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), color 0.3s;
}
.horizontal-scroll-card:hover .work-card-arrow {
  border-color: var(--color-primary);
  background: var(--color-primary);
}
.horizontal-scroll-card:hover .work-card-arrow .material-symbols-outlined {
  transform: rotate(0deg) translateX(2px);
  color: #fff;
}

@media (max-width: 768px) {
  .horizontal-scroll-section { height: auto !important; min-height: 0 !important; padding-bottom: 20px; overflow: visible !important; }
  .horizontal-scroll-sticky { position: relative; height: auto !important; min-height: 0 !important; display: block; overflow: visible !important; }
  /* 6 work cards as a 2-column × 3-row square grid; intro spans full width */
  .horizontal-scroll-track {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 16px;
    padding: var(--space-stack-md) var(--margin-mobile) 80px;
    transform: none !important;
    width: 100%;
  }
  .horizontal-scroll-card { width: auto; max-width: none; }
  .horizontal-scroll-card:first-child { grid-column: 1 / -1; margin-bottom: 8px; }
  /* square cards — aspect-ratio on the grid item itself (reliable row height),
     inner fills 100% so every row is an equal square (no half-height bug) */
  .horizontal-scroll-card:not(:first-child) { aspect-ratio: 2 / 3; }
  .horizontal-scroll-card .work-card { height: 100% !important; max-height: none !important; }
  .horizontal-scroll-card .tilt-card-inner { aspect-ratio: auto !important; height: 100% !important; }
  .horizontal-scroll-card .work-card h3 {
    font-size: clamp(13.5px, 4.2vw, 19px) !important;
    line-height: 1.12;
    text-shadow: 0 2px 12px rgba(0,0,0,0.65);
    padding-right: 34px; /* clear the hover arrow */
  }
  .horizontal-scroll-card .work-tags .tag-acid {
    font-size: clamp(8px, 2.5vw, 10.5px);
    padding: 5px 11px;
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1.05;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  }
  .horizontal-scroll-card .work-card-arrow { width: 34px; height: 34px; bottom: 12px; right: 12px; }
  /* gentle floating effect while scrolling */
  .horizontal-scroll-card:not(:first-child) { animation: wcFloat 4.6s ease-in-out infinite; will-change: transform; }
  .horizontal-scroll-card:nth-child(2) { animation-delay: 0s; }
  .horizontal-scroll-card:nth-child(3) { animation-delay: .8s; }
  .horizontal-scroll-card:nth-child(4) { animation-delay: 1.5s; }
  .horizontal-scroll-card:nth-child(5) { animation-delay: .4s; }
  .horizontal-scroll-card:nth-child(6) { animation-delay: 1.1s; }
  .horizontal-scroll-card:nth-child(7) { animation-delay: .6s; }
}
@keyframes wcFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@media (prefers-reduced-motion: reduce) {
  .horizontal-scroll-card { animation: none !important; }
}

/* ----- Methodology Individual Reveal ----- */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.reveal-up.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Floating Action Buttons ----- */
.floating-actions {
  position: fixed;
  bottom: 32px;
  right: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 99;
}
.fab {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(25, 28, 29, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-out-quad);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.fab.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.fab:hover {
  background: var(--color-primary);
  transform: translateY(-4px) scale(1.05);
}
@media (max-width: 768px) {
  .floating-actions { bottom: 20px; right: 20px; }
  .fab { width: 44px; height: 44px; }
}


/* ----- Equalizer Icon ----- */
.equalizer-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  height: 20px;
}
.equalizer-icon .bar {
  width: 4px;
  height: 4px;
  background-color: #fff;
  border-radius: 2px;
  transition: height 0.2s ease;
}
.fab.playing {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
.fab.playing .equalizer-icon .bar {
  animation: equalize 1s infinite alternate ease-in-out;
}
.fab.playing .equalizer-icon .bar:nth-child(1) { animation-delay: -0.4s; }
.fab.playing .equalizer-icon .bar:nth-child(2) { animation-delay: -0.2s; }
.fab.playing .equalizer-icon .bar:nth-child(3) { animation-delay: -0.6s; }
.fab.playing .equalizer-icon .bar:nth-child(4) { animation-delay: 0s; }

@keyframes equalize {
  0% { height: 4px; }
  100% { height: 20px; }
}

/* ----- Touch-device hover guards ----- */
@media (hover: none) {
  body { cursor: auto; }
  .custom-cursor { display: none !important; }

  .floating-card:hover {
    transform: none;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
  }

  .service-card:hover {
    transform: none;
    border-color: rgba(0, 0, 0, 0.06);
  }

  .btn-wave:hover .wave-svg,
  .navbar-cta:hover .wave-svg {
    transform: translate(-50%, 120%);
  }
  .btn-wave:hover { color: var(--color-background); }
  .navbar-cta:hover { color: var(--color-on-primary); }

  .glass-card:hover {
    box-shadow: none;
    border-color: rgba(139, 44, 245, 0.08);
  }
}

/* Ensure horizontal scroll works for marquee on mobile */
@media (max-width: 768px) {
  .horizontal-scroll-section.mobile-hscroll .horizontal-scroll-sticky {
    position: sticky !important;
    height: 100vh !important;
    display: flex !important;
  }
  .horizontal-scroll-section.mobile-hscroll .marquee-track-horizontal {
    flex-direction: row !important;
  }
}


/* ========== LENIS SMOOTH SCROLL REQUIRED CSS ========== */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/* ==========================================================================
   OUR CLIENTS — PREMIUM FULLSCREEN SCROLL
   ========================================================================== */
.oc-section {
  position: relative;
  background: #0a0a0a;
  color: #fff;
}
.oc-scroll-track {
  height: 500vh;
  position: relative;
}
.oc-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

/* Fullscreen background images */
.oc-bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.oc-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1),
              transform 6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}
.oc-bg.active {
  opacity: 1;
  transform: scale(1);
}

/* Dark cinematic overlay */
.oc-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.5) 40%,
    rgba(0,0,0,0.6) 100%
  );
  pointer-events: none;
}

/* Micro label — above heading */
.oc-label {
  position: absolute;
  top: 40px;
  left: 48px;
  z-index: 10;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s, transform 0.8s var(--ease-out-expo);
}
.oc-section.in-view .oc-label {
  opacity: 1;
  transform: translateY(0);
}

/* Centered client list */
.oc-list-wrapper {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 48px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 700px;
  width: calc(100% - 140px);
}

/* Individual row — visible by default, no hidden entrance */
.oc-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 0;
  cursor: default;
  position: relative;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.5s var(--ease-out-expo);
}

/* Active glow sweep behind row */
.oc-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(139,44,245,0.1) 0%, transparent 80%);
  opacity: 0;
  transition: opacity 0.6s;
}
.oc-row.active::before { opacity: 1; }

/* Number */
.oc-num {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.12);
  min-width: 24px;
  transition: color 0.5s;
  position: relative;
  z-index: 1;
}
.oc-row.active .oc-num {
  color: rgba(255,255,255,0.5);
}

/* Glow dot — only on active */
.oc-row.active .oc-num::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 10px rgba(139,44,245,0.9), 0 0 30px rgba(139,44,245,0.4);
  animation: ocDotPulse 2s ease-in-out infinite;
}
@keyframes ocDotPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(139,44,245,0.9), 0 0 30px rgba(139,44,245,0.4); }
  50% { box-shadow: 0 0 18px rgba(139,44,245,1), 0 0 40px rgba(139,44,245,0.6); }
}

/* Client name */
.oc-name {
  font-family: var(--font-headline);
  font-size: clamp(16px, 2.8vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.18);
  transition: color 0.5s, transform 0.5s var(--ease-out-expo), text-shadow 0.5s;
  position: relative;
  z-index: 1;
}
.oc-row.active .oc-name {
  color: #fff;
  font-weight: 700;
  transform: translateX(6px);
  text-shadow: 0 0 40px rgba(255,255,255,0.15);
}

/* Right counter + progress */
.oc-right {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.8s 0.3s;
}
.oc-section.in-view .oc-right { opacity: 1; }

.oc-counter-current {
  font-family: var(--font-headline);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
  transition: transform 0.3s var(--ease-out-expo);
}
.oc-counter-divider {
  width: 20px;
  height: 1px;
  background: rgba(255,255,255,0.2);
}
.oc-counter-total {
  font-family: var(--font-label);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
}

.oc-progress-track {
  width: 2px;
  height: 18vh;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 8px;
}
.oc-progress-fill {
  width: 100%;
  height: 0%;
  background: var(--gradient-prismatic);
  border-radius: 2px;
  transition: height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 0 8px rgba(139,44,245,0.5);
}

/* Scroll hint at bottom center */
.oc-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.8s 0.6s;
}
.oc-section.in-view .oc-scroll-hint { opacity: 1; }
.oc-scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  position: relative;
  overflow: hidden;
}
.oc-scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(180deg, transparent, var(--color-primary));
  animation: ocScrollPulse 2s ease-in-out infinite;
}
@keyframes ocScrollPulse {
  0% { top: -50%; }
  100% { top: 100%; }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .oc-label { top: 28px; left: 24px; }
  .oc-list-wrapper {
    left: 24px;
    width: calc(100% - 90px);
  }
  .oc-row { gap: 14px; padding: 7px 0; }
  .oc-name { font-size: clamp(14px, 4vw, 20px); }
  .oc-right { right: 16px; gap: 8px; }
  .oc-counter-current { font-size: 22px; }
  .oc-progress-track { height: 12vh; }
  .oc-scroll-hint { bottom: 20px; }
}
@media (max-width: 480px) {
  .oc-label { top: 20px; left: 16px; font-size: 10px; }
  .oc-list-wrapper { left: 16px; width: calc(100% - 70px); }
  .oc-row { gap: 10px; padding: 5px 0; }
  .oc-num { font-size: 10px; min-width: 18px; }
  .oc-name { font-size: clamp(12px, 3.5vw, 16px); }
  .oc-right { right: 12px; }
  .oc-counter-current { font-size: 18px; }
}

/* =========================================================
   DARK / LIGHT THEME SYSTEM
   Toggle lives in the navbar (injected by main.js).
   [data-theme="dark"] flips the neutral palette; brand
   accents are lightened for contrast. Targeted overrides
   keep hardcoded-white panels readable in both modes.
   ========================================================= */

/* Smooth color transitions when switching themes */
html { transition: background-color 0.5s ease; }
body,
.navbar, .navbar.scrolled, .footer-creative, .mobile-menu,
.sv-stack-card, .ab-process-card, .ab-stat-card,
.cd-card-face, .nf-panel {
  transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}

[data-theme="dark"] {
  --color-primary: #A66BFF;
  --color-primary-deep: #C9A0FF;
  --color-primary-fixed: #2A1147;
  --color-primary-fixed-dim: #3D1A66;
  --color-on-primary: #FFFFFF;

  --color-background: #0E0F12;
  --color-on-background: #ECEDEF;
  --color-surface: #0E0F12;
  --color-surface-container: #1A1C20;
  --color-surface-container-low: #141519;
  --color-surface-container-high: #232629;
  --color-surface-container-lowest: #16181C;
  --color-surface-variant: #2A2D32;
  --color-on-surface: #ECEDEF;
  --color-on-surface-variant: #B7BCC4;
  --color-inverse-surface: #ECEDEF;
  --color-inverse-on-surface: #1A1C20;
  --color-outline: #9099A3;
  --color-outline-variant: #3A3E44;
}

/* ----- Glass surfaces that hardcode light backgrounds ----- */
[data-theme="dark"] .navbar { background: rgba(14, 15, 18, 0.72); }
[data-theme="dark"] .navbar.scrolled {
  background: rgba(14, 15, 18, 0.92);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .mobile-menu { background: rgba(14, 15, 18, 0.96); }
[data-theme="dark"] .footer-creative {
  background: rgba(18, 19, 23, 0.85);
  border-top-color: rgba(166, 107, 255, 0.16);
}
[data-theme="dark"] ::selection {
  background: rgba(166, 107, 255, 0.3);
  color: #fff;
}

/* ----- Intentional dark "contrast bands" stay dark in dark mode ----- */
[data-theme="dark"] .marquee-section,
[data-theme="dark"] .are-you-ready-section,
[data-theme="dark"] .stand-out-section {
  background: #08090B !important;
  color: #fff !important;
}

/* ----- Inverted CTA panels that hardcode white text ----- */
[data-theme="dark"] .ab-cta { background: #16181C !important; }
[data-theme="dark"] .navbar-cta { color: var(--color-background); }

/* ----- About: word-reveal faint colour must be light on dark ----- */
[data-theme="dark"] .ab-word { color: rgba(255, 255, 255, 0.16); }

/* ----- White "glass" chips/cards keep DARK text in dark mode -----
   (their surfaces stay white by design, so their text must not flip) */
[data-theme="dark"] .sc-title,
[data-theme="dark"] .cd-card-name   { color: #191C1D; }
[data-theme="dark"] .sc-sub         { color: #4C4355; }
[data-theme="dark"] .cd-card-sector { color: #7D7387; }

/* ----- Services "Explore Methodology": white text on a now-light btn ----- */
[data-theme="dark"] .sv-method-btn  { color: #0E0F12; }
[data-theme="dark"] .sv-method-btn:hover { color: #fff; }

/* =========================================================
   THEME TOGGLE PILL  (navbar) — "art mode" style capsule
   ========================================================= */
.theme-toggle {
  position: relative;
  width: 60px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 100px;
  background: var(--color-surface-container-high);
  border: 1px solid var(--color-outline-variant);
  cursor: pointer;
  padding: 0;
  margin-right: 6px;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
@media (min-width: 768px) { .theme-toggle { margin-right: 14px; } }
.theme-toggle .tt-ico {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  line-height: 1;
  z-index: 1;
  transition: opacity 0.4s ease, color 0.4s ease;
  pointer-events: none;
}
.theme-toggle .tt-sun  { left: 8px;  color: #F5A623; opacity: 1; }
.theme-toggle .tt-moon { right: 8px; color: #9099A3; opacity: 0.5; }
.theme-toggle .tt-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  z-index: 2;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), background 0.4s ease, box-shadow 0.4s ease;
}
.theme-toggle:hover { border-color: var(--color-primary); }

/* Dark state: knob slides right, neon "art mode" glow */
[data-theme="dark"] .theme-toggle {
  background: #1A1C20;
  box-shadow: inset 0 0 0 1px rgba(166, 107, 255, 0.25), 0 0 14px rgba(166, 107, 255, 0.35);
}
[data-theme="dark"] .theme-toggle .tt-knob {
  transform: translateX(30px);
  background: #C9A0FF;
  box-shadow: 0 0 12px rgba(166, 107, 255, 0.9);
}
[data-theme="dark"] .theme-toggle .tt-sun  { opacity: 0.4; }
[data-theme="dark"] .theme-toggle .tt-moon { opacity: 1; color: #C9A0FF; }


/* ===== Smooth section background crossfade ===== */
:root { --band-bg: #191C1D; }
[data-theme="dark"] { --band-bg: #08090B; }
.bg-fader {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-color: var(--color-background);
  transition: background-color 0.85s cubic-bezier(.4,0,.2,1);
}

/* ===== TRUSTED BY BUSINESSES (client logos cluster) ===== */
.trusted-section { min-height: 100vh; display: flex; align-items: center; padding: clamp(24px, 4vw, 56px); }
.trusted-inner {
  position: relative;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  min-height: min(90vh, 860px);
  display: flex; align-items: center; justify-content: center;
  background: var(--color-surface-container-lowest);
  border: 1px solid var(--color-surface-variant);
  border-radius: 44px;
  padding: clamp(30px, 4vw, 60px);
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(17,17,26,0.06);
}
/* cluster overlays the whole panel; logos frame the centred text */
.trusted-cluster { position: absolute; inset: 0; z-index: 1; }
.tc-logo {
  position: absolute;
  width: clamp(84px, 8.6vw, 122px);
  height: clamp(84px, 8.6vw, 122px);
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--color-surface-variant);
  box-shadow: 0 18px 42px rgba(17,17,26,0.14);
  display: grid; place-items: center;
  padding: clamp(8px, 0.8vw, 12px);
  /* individual transform props so the float animation doesn't fight position/rotation */
  translate: -50% -50%;
  rotate: var(--r, 0deg);
  transition: scale 0.35s cubic-bezier(.22,1,.36,1), rotate 0.35s ease, box-shadow 0.35s ease;
  animation: tcFloat 5s ease-in-out infinite;
}
.tc-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.tc-logo:hover { scale: 1.1; rotate: 0deg; box-shadow: 0 28px 58px rgba(17,17,26,0.22); z-index: 5; animation-play-state: paused; }
/* gentle in-place float (bobs each card on the spot, keeps its -50% anchor) */
@keyframes tcFloat {
  0%, 100% { translate: -50% -50%; }
  50%      { translate: -50% calc(-50% - 9px); }
}
.tc-logo:nth-child(1) { animation-delay: 0s; }
.tc-logo:nth-child(2) { animation-delay: .9s; }
.tc-logo:nth-child(3) { animation-delay: 1.7s; }
.tc-logo:nth-child(4) { animation-delay: .5s; }
.tc-logo:nth-child(5) { animation-delay: 2.1s; }
.tc-logo:nth-child(6) { animation-delay: 1.2s; }
.tc-logo:nth-child(7) { animation-delay: .3s; }
.tc-logo:nth-child(8) { animation-delay: 1.9s; }
.tc-logo:nth-child(9) { animation-delay: .7s; }
.tc-logo:nth-child(10){ animation-delay: 1.4s; }
/* dark mode: soft white glow instead of a dark shadow */
[data-theme="dark"] .tc-logo { box-shadow: 0 18px 42px rgba(255,255,255,0.12), 0 0 0 1px rgba(255,255,255,0.06); }
[data-theme="dark"] .tc-logo:hover { box-shadow: 0 28px 58px rgba(255,255,255,0.20), 0 0 0 1px rgba(255,255,255,0.1); }

.trusted-content { position: relative; z-index: 2; text-align: center; max-width: 560px; margin: 0 auto; padding: 0 12px; }
.trusted-content .tag-acid { margin-bottom: 16px !important; }
.trusted-title {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: clamp(26px, 3.9vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--color-on-background);
  margin-bottom: 14px;
}
.trusted-title span { color: var(--color-on-surface-variant); }
.trusted-sub {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.4vw, 16.5px);
  line-height: 1.55;
  color: var(--color-on-surface-variant);
  max-width: 420px;
  margin: 0 auto clamp(22px, 2.6vw, 32px);
}
.trusted-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--color-on-background);
  color: var(--color-background);
  padding: 16px 30px;
  border-radius: 999px;
  font-family: var(--font-label);
  font-weight: 700; font-size: 14px; letter-spacing: 0.02em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.trusted-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(17,17,26,0.22); }
.trusted-btn .material-symbols-outlined { font-size: 18px; }

.trusted-more {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-headline);
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 500;
  color: var(--color-on-surface-variant);
  font-style: italic;
  letter-spacing: 0.5px;
  opacity: 0.8;
  z-index: 2;
}

/* Mobile: heading first, then logos in a clean 2-column square grid below */
@media (max-width: 768px) {
  .trusted-section { min-height: 0; }
  .trusted-inner {
    min-height: 0;
    flex-direction: column;
    padding: clamp(40px, 9vw, 64px) clamp(18px, 5vw, 32px);
  }
  .trusted-content { order: -1; margin-bottom: clamp(28px, 6vw, 40px); max-width: 100%; }
  .trusted-btn {
    padding: 12px 20px;
    font-size: 13px;
    white-space: nowrap;
  }
  .trusted-cluster {
    position: relative; inset: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(12px, 3.5vw, 18px);
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
  }
  .tc-logo {
    position: static;
    translate: 0 0;
    rotate: 0deg;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    padding: clamp(16px, 5vw, 26px);
    animation: tcFloatM 5s ease-in-out infinite;
  }
  .tc-logo:hover { scale: 1.04; rotate: 0deg; }
  .trusted-more {
    position: static;
    transform: none;
    margin-top: clamp(20px, 5vw, 32px);
    text-align: center;
  }
}
/* in-place float for the mobile grid (no -50% anchor) */
@keyframes tcFloatM {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -7px; }
}
@media (prefers-reduced-motion: reduce) {
  .tc-logo { animation: none !important; }
}

/* ===== WhatsApp floating button (left side, site-wide) ===== */
.wa-fab {
  position: fixed;
  left: clamp(16px, 3vw, 28px);
  bottom: clamp(18px, 3vw, 30px);
  z-index: 9999;
  width: 58px; height: 58px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(37,211,102,0.45);
  animation: waPulse 2.4s ease-in-out infinite;
  transition: transform 0.3s cubic-bezier(.22,1,.36,1), box-shadow 0.3s ease;
}
.wa-fab:hover { transform: scale(1.1); box-shadow: 0 16px 40px rgba(37,211,102,0.6); }
.wa-fab svg { width: 30px; height: 30px; position: relative; z-index: 2; }
/* expanding signal ring */
.wa-fab::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.55);
  animation: waRing 2.4s ease-out infinite;
  pointer-events: none;
}
/* brand-tinted outer glow that matches the site theme */
.wa-fab::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  box-shadow: 0 0 22px 4px var(--color-primary);
  opacity: 0.28; pointer-events: none; z-index: 0;
}
.wa-label {
  position: absolute; left: 70px; white-space: nowrap;
  background: var(--color-on-background); color: var(--color-background);
  padding: 8px 14px; border-radius: 10px;
  font-family: var(--font-label); font-size: 13px; font-weight: 600;
  opacity: 0; transform: translateX(-8px); transition: opacity .3s ease, transform .3s ease;
  pointer-events: none; box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}
.wa-fab:hover .wa-label { opacity: 1; transform: translateX(0); }
@keyframes waPulse { 0%,100% { box-shadow: 0 12px 30px rgba(37,211,102,0.42); } 50% { box-shadow: 0 14px 38px rgba(37,211,102,0.68); } }
@keyframes waRing { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.85); opacity: 0; } }
@media (max-width: 768px) {
  .wa-fab { width: 52px; height: 52px; left: 16px; bottom: 16px; }
  .wa-fab svg { width: 27px; height: 27px; }
  .wa-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-fab, .wa-fab::before { animation: none; }
}
