/* ═══════════════════════════════════════════════════════════════
   TrancePixel Marketing — Premium Stylesheet v2
   Theme: Psychedelic High-Performance Agency
   ═══════════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:        #02000A;
  --bg-2:      #030111;
  --bg-card:   rgba(255,255,255,0.015);
  --bg-card-h: rgba(255,255,255,0.035);
  --glass:     rgba(10, 10, 20, 0.45);

  /* Brand — lifted from logo SVG */
  --pink:      #FF3D8F;
  --pink-2:    #FC4A9C;
  --lime:      #BCFF4D;
  --lime-2:    #9DC422;
  --cyan:      #3DEFF5;
  --cyan-2:    #48E9F5;
  --purple:    #6B0FBD;
  --purple-2:  #4B0082;
  --blue:      #2080F0;

  /* Glows */
  --glow-pink:   rgba(255,61,143,0.28);
  --glow-lime:   rgba(188,255,77,0.22);
  --glow-cyan:   rgba(61,239,245,0.22);
  --glow-purple: rgba(107,15,189,0.38);

  /* Text */
  --white:   #FFFFFF;
  --muted:   rgba(255,255,255,0.78);
  --subtle:  rgba(255,255,255,0.52);
  --faint:   rgba(255,255,255,0.12);
  --hairline:rgba(255,255,255,0.07);

  /* Fonts */
  --f-h: 'Bricolage Grotesque', sans-serif;  /* editorial headings */
  --f-b: 'DM Sans', sans-serif;              /* clean body + good numerals */
  --f-d: 'Bebas Neue', sans-serif;           /* display: huge numbers & stats */

  /* Spacing */
  --sv: clamp(100px, 11vw, 160px);
  --px: clamp(24px, 4vw, 80px);
  --max: 1360px;

  /* Easing */
  --out:  cubic-bezier(0.16, 1, 0.3, 1);
  --back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; overflow-x: hidden; } /* Lenis handles smooth scroll */
body {
  font-family: var(--f-b);
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: none; border: none; background: none; }
input, textarea, select { cursor: none; }
img, svg { display: block; max-width: 100%; }

/* ── UTILITY CLASSES ────────────────────────────────────────── */
section:not(#framework):not(#portfolio):not(#hero):not(#social-proof):not(#clients-ticker) {
  padding-top: 15vh;
  margin-bottom: 20vh;
}

.gradient-text {
  background: linear-gradient(110deg, var(--pink) 0%, var(--cyan) 60%, var(--lime) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--pink); /* Fallback */
}
/* Ensure SplitType children inherit the background clip properly */
.gradient-text .char, .gradient-text .word {
  background: inherit;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.accent-text { color: var(--lime); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 24px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--pink);
  opacity: 0.7;
}

.section-h2 {
  font-family: var(--f-h);
  font-size: clamp(2.4rem, 5.5vw, 5.5rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  perspective: 1000px;
}
.section-h2 .word {
  display: inline-block;
  padding-bottom: 5px;
  margin-right: 0.15em;
  white-space: nowrap;
}
.section-h2 .char {
  display: inline-block;
  will-change: transform, opacity;
}

/* ── LOGO CANVAS (fixed, full-page assembly) ────────────────── */
#logo-canvas {
  position: fixed;
  inset: 0;
  z-index: 100;          /* above all content (z-index 10) but below nav (1000) */
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  mix-blend-mode: screen; /* dark SVG bg → transparent; neon colors → additive glow */
  opacity: 0;             /* JS fades this in after preloader */
  overflow: hidden;
}

#logo-canvas svg {
  width: min(72vw, 72vh);
  height: auto;
  overflow: visible;
  flex-shrink: 0;
}

/* ── CUSTOM CURSOR ──────────────────────────────────────────── */
.cursor-dot, .cursor-ring {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999999;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 5px; height: 5px;
  background: var(--pink);
  top: 0; left: 0;
  will-change: left, top;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,61,143,0.45);
  top: 0; left: 0;
  transition: width 0.3s var(--out), height 0.3s var(--out),
              border-color 0.3s, background 0.3s;
  will-change: left, top;
}
.cursor-ring.hovered {
  width: 58px; height: 58px;
  border-color: var(--pink);
  background: rgba(255,61,143,0.08);
}

/* ── PRELOADER ──────────────────────────────────────────────── */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader-inner {
  width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
  padding: 0 24px;
}
#preloader-logo {
  width: min(85vw, 600px);
  height: auto;
  position: relative;
  animation: logo-glitch 2.5s infinite;
}
#preloader-logo svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

@keyframes logo-glitch {
  0% { filter: drop-shadow(0 0 0 rgba(255,61,143,1)); transform: translate(0, 0) scale(1.0); }
  2% { filter: drop-shadow(6px 0 0 rgba(61,239,245,1)) drop-shadow(-6px 0 0 rgba(255,61,143,1)); transform: translate(-3px, 3px) scale(1.01); }
  4% { filter: drop-shadow(-6px 0 0 rgba(61,239,245,1)) drop-shadow(6px 0 0 rgba(255,61,143,1)); transform: translate(3px, -3px) scale(0.99); }
  6% { filter: drop-shadow(0 0 0 rgba(255,61,143,1)); transform: translate(0, 0) scale(1.0); }
  100% { filter: drop-shadow(0 0 0 rgba(255,61,143,1)); transform: translate(0, 0) scale(1.0); }
}
.preloader-bottom {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}
.preloader-progress-wrap {
  flex: 1;
  height: 1px;
  background: var(--hairline);
  border-radius: 1px;
  overflow: hidden;
}
.preloader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--pink), var(--cyan));
  transition: width 0.08s linear;
}
.preloader-count {
  font-family: var(--f-h);
  font-size: 28px;
  font-weight: 900;
  color: var(--white);
  min-width: 44px;
  text-align: right;
  letter-spacing: 0.05em;
  text-shadow: 0 0 16px rgba(255, 61, 143, 0.5);
}

/* ── NAVIGATION ─────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--px);
  transition: padding 0.5s var(--out), background 0.5s, backdrop-filter 0.5s;
}
#nav.scrolled {
  padding: 16px var(--px);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
}
.nav-logo { transition: transform 0.5s var(--out), opacity 0.4s var(--out); }
#nav.scrolled .nav-logo { transform: scale(0.85); transform-origin: left center; opacity: 0; pointer-events: none; }
.nav-logo img {
  height: 90px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  transition: opacity 0.4s var(--out), transform 0.4s var(--out);
}
#nav.scrolled .nav-links {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}
.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.03em;
  transition: color 0.2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--pink);
  transition: width 0.3s var(--out);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { width: 100%; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: var(--pink);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  border-radius: 100px;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.2s var(--out), box-shadow 0.3s;
}
.nav-cta:hover {
  background: #ff5ca8;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px var(--glow-pink);
}
.nav-cta svg { transition: transform 0.2s; }
.nav-cta:hover svg { transform: translateX(3px); }

.nav-burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(20px);
  transition: opacity 0.4s var(--out), transform 0.4s var(--out);
  position: absolute;
  right: var(--px);
  top: 50%;
  margin-top: -12px;
  background: rgba(3,0,13,0.8);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  backdrop-filter: blur(10px);
}
#nav.scrolled .nav-burger {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
@media (max-width: 900px) {
  .nav-links { display: none !important; }
  .nav-burger { opacity: 1; pointer-events: auto; transform: translateX(0); position: static; margin-top: 0; }
}
.nav-burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(3px) rotate(45deg);
}
.nav-burger[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg-2);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transform: translateX(100%);
  transition: transform 0.5s var(--out);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-link {
  font-family: var(--f-h);
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 700;
  color: var(--muted);
  transition: color 0.2s;
}
.mobile-link:hover, .mobile-link--cta { color: var(--white); }
.mobile-link--cta { color: var(--pink) !important; }

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-b);
  font-size: 15px;
  font-weight: 700;
  border-radius: 100px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: transform 0.2s var(--out), box-shadow 0.3s, background 0.2s;
}
.btn--primary {
  padding: 16px 34px;
  background: var(--pink);
  color: var(--white);
}
.btn--primary:hover {
  background: #ff5ca8;
  transform: translateY(-3px);
  box-shadow: 0 14px 44px var(--glow-pink);
}
.btn--success { background: #22c55e !important; box-shadow: 0 14px 44px rgba(34,197,94,0.4) !important; }
.btn--ghost {
  padding: 15px 32px;
  border: 1px solid var(--faint);
  color: var(--muted);
}
.btn--ghost:hover {
  border-color: rgba(255,255,255,0.28);
  color: var(--white);
  transform: translateY(-2px);
}
.btn--large { padding: 20px 48px; font-size: 17px; }
.btn-icon { display: flex; align-items: center; }

/* ── AMBIENT BACKGROUND ORBS ────────────────────────────────── */
.orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}
.orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(107,15,189,0.6) 0%, transparent 70%);
  top: -200px; left: -150px;
  animation: o1 22s ease-in-out infinite;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,61,143,0.4) 0%, transparent 70%);
  top: 25%; right: -80px;
  animation: o2 28s ease-in-out infinite;
}
.orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(61,239,245,0.35) 0%, transparent 70%);
  bottom: 15%; left: 35%;
  animation: o3 18s ease-in-out infinite;
}
.orb-4 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(188,255,77,0.3) 0%, transparent 70%);
  top: 55%; right: 15%;
  animation: o4 24s ease-in-out infinite;
  opacity: 0.55;
}
@keyframes o1 {
  0%,100% { transform: translate(0,0) scale(1); }
  40% { transform: translate(60px,-80px) scale(1.1); }
  70% { transform: translate(-30px,50px) scale(0.92); }
}
@keyframes o2 {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(-70px,80px) scale(1.08); }
}
@keyframes o3 {
  0%,100% { transform: translate(0,0); }
  33% { transform: translate(80px,40px); }
  66% { transform: translate(-50px,-60px); }
}
@keyframes o4 {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(50px,-50px) scale(1.18); }
}

/* Noise grain */
.noise {
  position: absolute;
  inset: -100%;
  width: 300%;
  height: 300%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' 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");
  opacity: 0.032;
  pointer-events: none;
  animation: grain 7s steps(1) infinite;
}
@keyframes grain {
  0%  { transform: translate(0,0); }
  14% { transform: translate(-2%,-3%); }
  28% { transform: translate(3%,1%); }
  42% { transform: translate(-1%,4%); }
  57% { transform: translate(2%,-2%); }
  71% { transform: translate(-3%,2%); }
  85% { transform: translate(1%,-1%); }
  100%{ transform: translate(0,0); }
}

/* Grid */
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 50%, black, transparent);
}

/* ── HERO ───────────────────────────────────────────────────── */
/* Override sticky — hero is now single-column centered with fixed canvas doing the logo */
#hero {
  position: relative;
  min-height: 100vh;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-sticky {
  position: static !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 150px var(--px) 120px;
  width: 100%;
  will-change: auto;
  gap: 0;
}

/* Hide the old inline hero logo — canvas handles it */
.hero-logo-wrap { display: none !important; }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  width: 100%;
}

.hero-eyebrow,
.hero-h1,
.hero-sub,
.hero-actions,
.scroll-hint {
  visibility: hidden;
  opacity: 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 36px;
  padding: 8px 18px;
  border: 1px solid var(--hairline);
  border-radius: 100px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(12px);
}
.eyebrow-dot {
  width: 5px; height: 5px;
  background: var(--pink);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--pink);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.5); }
}

.hero-h1 {
  font-family: var(--f-h);
  font-size: clamp(2.5rem, 7.5vw, 9.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 0.05em;
  perspective: 1200px;
}
.hero-h1 .line { 
  display: block; 
  overflow: visible; 
  white-space: nowrap;
}
.hero-h1 .char { display: inline-block; will-change: transform, opacity; }

.hero-sub {
  font-size: clamp(15px, 1.5vw, 19px);
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 52px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
}
.scroll-hint-line {
  width: 1px; height: 54px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  transform-origin: top;
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0% { transform: scaleY(0); opacity: 1; }
  65% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}
.scroll-hint span {
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--subtle);
  writing-mode: vertical-lr;
}

/* ── SOCIAL PROOF MARQUEE ───────────────────────────────────── */
#social-proof {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: linear-gradient(90deg, rgba(107,15,189,0.12), rgba(255,61,143,0.08), rgba(61,239,245,0.06));
  overflow: hidden;
}
.marquee-track {
  padding: 22px 0;
  overflow: hidden;
  position: relative;
}
.marquee-track::before,
.marquee-track::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.marquee-track::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.marquee-track::after  { right: 0; background: linear-gradient(to left, var(--bg), transparent); }

.marquee-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: marquee 25s linear infinite;
}
.marquee-inner:hover { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
}
.marquee-num {
  font-family: var(--f-h);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 900;
  background: linear-gradient(110deg, var(--pink), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.marquee-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--subtle);
  letter-spacing: 0.04em;
}
.marquee-sep {
  font-size: 10px;
  color: var(--pink);
  opacity: 0.4;
}

/* ── PROBLEM ────────────────────────────────────────────────── */
/* ═══════════════════════════════════════════════
   PROBLEM SECTION
═══════════════════════════════════════════════ */
#problem {
  position: relative;
  z-index: 10;
  background: var(--bg);
  padding: var(--sv) var(--px) calc(var(--sv) * 1.6);
}
.prob-inner {
  max-width: var(--max);
  margin: 0 auto;
}

/* ── Headline block ── */
.prob-headline-wrap {
  margin-bottom: clamp(48px, 6vw, 96px);
}
.prob-eyebrow {
  font-family: var(--f-h);
  font-size: clamp(1rem, 2vw, 1.6rem);
  font-weight: 500;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.01em;
  margin: 12px 0 0;
  line-height: 1.3;
}
.prob-fail-word {
  font-family: var(--f-h);
  font-size: clamp(5.5rem, 17vw, 20rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.05em;
  margin: 0;
  background: linear-gradient(125deg, #FC4A9C 0%, #FF1060 55%, #c0003a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* Neon glow */
  filter: drop-shadow(0 0 28px rgba(252,74,156,0.35)) drop-shadow(0 0 60px rgba(252,74,156,0.15));
}

/* ── Problem rows ── */
.prob-items {
  display: flex;
  flex-direction: column;
  margin-bottom: clamp(60px, 8vw, 110px);
}
.prob-row {
  display: grid;
  grid-template-columns: auto clamp(72px, 8vw, 120px) 1fr;
  align-items: center;
  gap: 0 clamp(20px, 4vw, 52px);
  padding: clamp(28px, 4vw, 52px) 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
  cursor: default;
}
/* Glowing underline on hover */
.prob-row::after {
  content: '';
  position: absolute;
  left: 0; bottom: -1px; right: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--pink), var(--cyan), var(--lime));
  transition: right 0.55s cubic-bezier(0.25, 1, 0.5, 1);
}
.prob-row:hover::after { right: 0; }

/* Left accent bar (animated in via GSAP) */
.prob-row-bar {
  width: 2px;
  height: 100%;
  position: absolute;
  left: 0; top: 0;
  background: linear-gradient(to bottom, var(--pink), var(--cyan));
  transform-origin: top;
  transform: scaleY(0);
  border-radius: 2px;
  pointer-events: none;
}

.prob-num {
  font-family: var(--f-d);
  font-size: clamp(4rem, 8vw, 10rem);
  line-height: 1;
  color: rgba(255,61,143,0.10);
  flex-shrink: 0;
  letter-spacing: -0.03em;
  transition: color 0.4s ease;
  user-select: none;
}
.prob-row:hover .prob-num {
  color: rgba(255,61,143,0.22);
}

.prob-row-body { flex: 1; min-width: 0; }
.prob-row-title {
  display: block;
  font-family: var(--f-h);
  font-size: clamp(1.6rem, 3.6vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 10px;
  color: #fff;
  transition: color 0.3s ease;
}
.prob-row:hover .prob-row-title {
  color: rgba(255,255,255,0.9);
}
.prob-row-desc {
  font-size: clamp(13px, 1.05vw, 15px);
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
  transition: color 0.3s ease;
}
.prob-row:hover .prob-row-desc {
  color: rgba(255,255,255,0.55);
}


/* ── Fix statement ── */
.fix-statement {
  font-family: var(--f-h);
  font-size: clamp(3rem, 7vw, 8rem);
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 0.25em;
  letter-spacing: -0.04em;
  line-height: 1;
  position: relative;
}
.fix-we {
  position: relative;
  z-index: 2;
}

/* Keep logo-frag base style for other uses */
.logo-frag {
  width: 200px; height: 200px;
  margin-top: 40px;
  pointer-events: none;
}
.logo-frag svg { width: 100%; height: 100%; overflow: visible; }


/* ═══════════════════════════════════════════════
   FRAMEWORK SECTION
═══════════════════════════════════════════════ */
#framework {
  position: relative;
  z-index: 10;
  background: var(--bg);
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── Header bar ── */
.fw-top {
  flex-shrink: 0;
  padding: clamp(88px, 9vw, 112px) var(--px) clamp(24px, 3vw, 40px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--hairline);
}
.fw-heading { font-size: clamp(1.6rem, 3vw, 2.6rem); margin-top: 10px; }

.fw-step-counter { display: flex; align-items: baseline; gap: 4px; flex-shrink: 0; }
.fw-counter-current {
  font-family: var(--f-d);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  color: var(--white);
  transition: color 0.4s ease;
}
.fw-counter-sep, .fw-counter-total {
  font-family: var(--f-d);
  font-size: 1.4rem;
  color: var(--subtle);
  line-height: 1;
}

/* ── Panels container ── */
.fw-panels-outer { flex: 1; overflow: hidden; position: relative; }
.fw-panels       { display: block; height: 100%; position: relative; }

/* ── Individual step: stacked, JS toggles active ── */
.fw-step {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 44% 1fr;
  align-items: center;
  padding: clamp(32px, 5vw, 60px) var(--px);
  gap: clamp(40px, 6vw, 100px);
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}
.fw-step.is-active { opacity: 1; pointer-events: auto; }

/* Per-step accent color */
.fw-step[data-d="1"] { --pc: var(--pink);   --pc-glow: var(--glow-pink); }
.fw-step[data-d="2"] { --pc: var(--cyan);   --pc-glow: var(--glow-cyan); }
.fw-step[data-d="3"] { --pc: var(--lime);   --pc-glow: var(--glow-lime); }
.fw-step[data-d="4"] { --pc: #9B6BFF;       --pc-glow: rgba(155,107,255,0.4); }

/* ── LEFT column ── */
.fw-step-left {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  overflow: hidden;
}

/* Ghost number — massive ambient background */
.fw-step-num {
  font-family: var(--f-d);
  font-size: clamp(14rem, 24vw, 36rem);
  line-height: 0.82;
  letter-spacing: -0.04em;
  position: absolute;
  left: -4%;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(160deg, rgba(255,255,255,0.055) 0%, rgba(255,255,255,0) 65%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

/* Phase word — the big D ── */
.fw-step-word {
  position: relative;
  z-index: 1;
  font-family: var(--f-h);
  font-size: clamp(3.2rem, 6.5vw, 8.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.88;
  color: var(--pc);
  text-transform: uppercase;
  filter: drop-shadow(0 0 24px var(--pc-glow)) drop-shadow(0 0 60px var(--pc-glow));
}

/* ── RIGHT column — clean, no glassmorphism ── */
.fw-step-right {
  position: relative;
  z-index: 2;
  border-left: 2px solid var(--pc);
  padding-left: clamp(28px, 3.5vw, 52px);
  max-width: 600px;
}

/* Small phase label */
.fw-step-phase {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pc);
  margin-bottom: clamp(16px, 2vw, 28px);
  opacity: 0.85;
}

.fw-step-body {
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: clamp(28px, 3vw, 44px);
}

.fw-step-list { display: flex; flex-direction: column; gap: 14px; }
.fw-step-list li {
  font-size: 13px;
  color: var(--subtle);
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
  transition: color 0.3s;
}
.fw-step-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--pc);
  font-size: 11px;
}
.fw-step-list li:hover { color: var(--white); }

/* ── Bottom: named 4D nav + progress ── */
.fw-foot {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hairline);
}

.fw-4d-nav {
  display: flex;
}
.fw-4d-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px var(--px) 12px;
  background: none;
  border: none;
  border-top: 2px solid transparent;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.35s ease, background 0.35s ease;
  position: relative;
}
.fw-4d-btn:not(.active):hover {
  border-top-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.02);
}
.fw-4d-btn.active { border-top-color: var(--fw-btn-color, var(--pink)); }

.fw-4d-num {
  font-family: var(--f-d);
  font-size: clamp(1rem, 1.4vw, 1.3rem);
  color: rgba(255,255,255,0.2);
  line-height: 1;
  transition: color 0.35s ease;
}
.fw-4d-btn.active .fw-4d-num { color: rgba(255,255,255,0.85); }

.fw-4d-label {
  font-family: var(--f-h);
  font-size: clamp(10px, 1vw, 12px);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  transition: color 0.35s ease;
}
.fw-4d-btn.active .fw-4d-label { color: var(--fw-btn-color, var(--pink)); }

.fw-progress-track {
  height: 2px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.fw-progress-fill {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--pink), var(--cyan), var(--lime));
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── RESULTS ────────────────────────────────────────────────── */
#results {
  position: relative;
  z-index: 10;
  background: #020008;
  padding: var(--sv) var(--px);
  overflow: hidden;
}
/* Star-field backdrop */
#results::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.4) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.09;
  pointer-events: none;
}
/* Deep nebula glow */
#results::after {
  content: '';
  position: absolute;
  top: 20%; left: 50%;
  transform: translate(-50%, -50%);
  width: 70vw; height: 50vw;
  background: radial-gradient(ellipse, rgba(72,233,245,0.06) 0%, rgba(252,74,156,0.04) 40%, transparent 70%);
  pointer-events: none;
}
.results-wrap {
  max-width: var(--max);
  margin: 0 auto;
}
.results-header { margin-bottom: clamp(48px, 7vw, 96px); }

/* ── Stat grid ── */
.results-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-bottom: clamp(80px, 10vw, 140px);
}

.stat-card {
  padding: clamp(32px, 4vw, 56px) clamp(16px, 2.5vw, 36px) clamp(32px, 4vw, 56px) 0;
  border-right: 1px solid rgba(255,255,255,0.07);
  position: relative;
  cursor: default;
  transition: background 0.4s ease;
}
.stat-card:last-child { border-right: none; }
.stat-card:hover { background: rgba(255,255,255,0.015); }

/* Top accent bar — draws in via JS class toggle */
.stat-card-bar {
  position: absolute;
  top: -1px; left: 0;
  height: 2px;
  width: 0;
  border-radius: 2px;
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.stat-card[data-color="pink"]   .stat-card-bar { background: var(--pink);  box-shadow: 0 0 10px rgba(252,74,156,0.6); }
.stat-card[data-color="cyan"]   .stat-card-bar { background: var(--cyan);  box-shadow: 0 0 10px rgba(72,233,245,0.6); }
.stat-card[data-color="lime"]   .stat-card-bar { background: var(--lime);  box-shadow: 0 0 10px rgba(177,241,76,0.6); }
.stat-card[data-color="purple"] .stat-card-bar { background: #9B6BFF;      box-shadow: 0 0 10px rgba(155,107,255,0.6); }
.stat-card.revealed .stat-card-bar { width: 100%; }

/* Big number */
.stat-num {
  font-family: var(--f-d);
  font-size: clamp(3rem, 5.5vw, 7rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.stat-card[data-color="pink"]   .stat-num { color: var(--pink);  text-shadow: 0 0 30px rgba(252,74,156,0.3); }
.stat-card[data-color="cyan"]   .stat-num { color: var(--cyan);  text-shadow: 0 0 30px rgba(72,233,245,0.3); }
.stat-card[data-color="lime"]   .stat-num { color: var(--lime);  text-shadow: 0 0 30px rgba(177,241,76,0.3); }
.stat-card[data-color="purple"] .stat-num { color: #9B6BFF;      text-shadow: 0 0 30px rgba(155,107,255,0.3); }

.stat-label {
  font-family: var(--f-h);
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  margin-bottom: 6px;
  line-height: 1.3;
}
.stat-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.04em;
}

/* Case Study */
.case-study-header { margin-bottom: 44px; }
.case-study-header h3 {
  font-family: var(--f-h);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700;
  margin-top: 12px;
  line-height: 1.3;
  max-width: 580px;
}

.case-study-cards-outer {
  overflow: hidden;
  margin: 0 calc(-1 * var(--px));
}
.case-study-cards {
  display: flex;
  gap: 16px;
  padding: 16px var(--px);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}
.case-study-cards::-webkit-scrollbar { display: none; }
.case-study-cards.grabbing { cursor: grabbing; }

.cs-card {
  flex-shrink: 0;
  width: 300px;
  padding: 36px 32px;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  transition: border-color 0.35s, transform 0.35s var(--out);
}
.cs-card--wide { width: 360px; }
.cs-card:hover {
  border-color: var(--faint);
  transform: translateY(-6px);
}
.cs-card--result {
  width: 400px;
  background: linear-gradient(135deg, rgba(255,61,143,0.06), rgba(61,239,245,0.04));
  border-color: rgba(255,61,143,0.2);
}
.cs-card-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 16px;
}
.cs-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 24px;
}
.cs-card-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--hairline);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--subtle);
  text-transform: uppercase;
}
.cs-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.cs-result-item { display: flex; flex-direction: column; gap: 4px; }
.cs-result-num {
  font-family: var(--f-h);
  font-size: 1.75rem;
  font-weight: 900;
  background: linear-gradient(110deg, var(--pink), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cs-result-label { font-size: 11px; color: var(--subtle); letter-spacing: 0.05em; }

/* ── PHILOSOPHY ─────────────────────────────────────────────── */
#philosophy {
  position: relative;
  z-index: 10;
  background: var(--bg);
  background-image: linear-gradient(135deg, rgba(107,15,189,0.14), transparent 60%);
  padding: var(--sv) var(--px);
}
.philosophy-header {
  max-width: var(--max);
  margin: 0 auto 72px;
}
.logo-frag--philosophy {
  position: absolute;
  top: 8%; right: 3%;
  width: 280px; height: 280px;
  opacity: 0;
  pointer-events: none;
}
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  max-width: var(--max);
  margin: 0 auto;
}
.ph-item {
  padding: 40px 28px;
  background: var(--glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.04);
  box-shadow: inset 0 0 20px rgba(255,255,255,0.01), 0 20px 40px rgba(0,0,0,0.4);
  border-radius: 22px;
  transition: border-color 0.4s, background 0.4s, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
}
.ph-item:hover {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.03);
  transform: translateY(-8px) scale(1.02);
  box-shadow: inset 0 0 30px rgba(255,255,255,0.03), 0 30px 60px rgba(0,0,0,0.6);
}
.ph-num {
  font-family: var(--f-h);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--pink);
  margin-bottom: 22px;
}
.ph-item h3 {
  font-family: var(--f-h);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}
.ph-item p { font-size: 13px; color: var(--subtle); line-height: 1.7; }

/* ── SERVICES ───────────────────────────────────────────────── */
#services {
  position: relative;
  z-index: 10;
  background: var(--bg);
  padding: var(--sv) var(--px);
}
.services-wrap {
  max-width: var(--max);
  margin: 0 auto;
}
.services-header { margin-bottom: 72px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.service-card {
  display: flex;
  flex-direction: column;
  padding: 48px 40px;
  background: var(--glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(255,255,255,0.01), 0 20px 50px rgba(0,0,0,0.4);
  transition: border-color 0.4s, background 0.4s, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
}
.service-card:hover {
  border-color: rgba(255,61,143,0.25);
  background: rgba(255,61,143,0.03);
  transform: translateY(-10px) scale(1.02);
  box-shadow: inset 0 0 40px rgba(255,61,143,0.05), 0 40px 80px rgba(0,0,0,0.6);
}
.service-card--accent {
  background: linear-gradient(135deg, rgba(255,61,143,0.04), rgba(61,239,245,0.02)), var(--glass);
  border-color: rgba(255,61,143,0.14);
}
.service-card--cta {
  background: linear-gradient(135deg, rgba(107,15,189,0.2), rgba(255,61,143,0.12));
  border-color: rgba(255,61,143,0.22);
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 28px;
}
.sc-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--hairline);
  border: 1px solid var(--faint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--subtle);
  margin-bottom: 28px;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.service-card:hover .sc-icon {
  background: rgba(255,61,143,0.12);
  border-color: rgba(255,61,143,0.4);
  color: var(--pink);
}
.service-card h3 {
  font-family: var(--f-h);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 12px;
  transition: color 0.3s;
  letter-spacing: -0.01em;
}
.service-card:hover h3 { color: var(--pink); }
.service-card p {
  font-size: 14px;
  color: var(--subtle);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 28px;
}
.sc-arrow {
  font-size: 18px;
  color: var(--subtle);
  transition: color 0.3s, transform 0.3s;
}
.service-card:hover .sc-arrow { color: var(--pink); transform: translateX(6px); }
.sc-glow {
  position: absolute;
  bottom: -100px; right: -100px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, var(--pink) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.service-card:hover .sc-glow { opacity: 0.06; }
.sc-cta-text {
  display: flex;
  flex-direction: column;
  font-family: var(--f-h);
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.sc-cta-arrow { color: var(--pink); transition: transform 0.3s; }
.service-card--cta:hover .sc-cta-arrow { transform: translateX(8px); }

/* ── TEAM / ABOUT ───────────────────────────────────────────── */
#about {
  position: relative;
  z-index: 10;
  background: var(--bg-2);
  padding: var(--sv) var(--px);
}
.team-inner {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}

/* Role badge pill */
.team-role-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(252,74,156,0.35);
  color: var(--pink);
  margin-bottom: 16px;
}
.team-role-badge--cyan  { color: var(--cyan); border-color: rgba(72,233,245,0.35); }
.team-role-badge--lime  { color: var(--lime); border-color: rgba(177,241,76,0.35); }

/* ── CEO featured card ── */
.team-ceo-card {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
  margin-top: clamp(48px, 6vw, 80px);
  margin-bottom: clamp(64px, 8vw, 120px);
  padding: clamp(40px, 5vw, 64px);
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: 28px;
  position: relative;
  overflow: hidden;
}
.team-ceo-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--pink), var(--cyan), transparent);
  opacity: 0.5;
}
.team-ceo-photo-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 3/4;
}
.team-ceo-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.team-ceo-photo-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,0,16,0.7) 0%, transparent 50%);
}
.team-ceo-name {
  font-family: var(--f-h);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 10px;
  background: linear-gradient(110deg, var(--pink), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.team-edu {
  font-size: 12px;
  color: var(--subtle);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.team-ceo-bio p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 14px;
}
.team-ceo-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 32px 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  overflow: hidden;
}
.tcs-item {
  flex: 1;
  padding: 20px 24px;
  text-align: center;
}
.tcs-num {
  display: block;
  font-family: var(--f-h);
  font-size: 1.6rem;
  font-weight: 900;
  background: linear-gradient(110deg, var(--pink), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}
.tcs-lbl { font-size: 10px; color: var(--subtle); letter-spacing: 0.1em; text-transform: uppercase; }
.tcs-divider { width: 1px; background: var(--hairline); align-self: stretch; }
.team-ceo-quote {
  margin: 0;
  padding: 20px 24px;
  border-left: 2px solid var(--pink);
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
  background: rgba(252,74,156,0.04);
  border-radius: 0 12px 12px 0;
}

/* ── Team member cards ── */
.team-members-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 32px);
}
.team-member-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: clamp(24px, 3vw, 36px);
  align-items: start;
  padding: clamp(28px, 4vw, 40px);
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  transition: border-color 0.4s, background 0.4s;
}
.team-member-card:hover {
  border-color: var(--faint);
  background: var(--bg-card-h);
}
.tmc-photo-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 3/4;
}
.tmc-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.tmc-photo-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,0,16,0.6) 0%, transparent 55%);
}
.tmc-header {
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.tmc-name {
  font-family: var(--f-h);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: var(--white);
}
.tmc-bio {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 0;
}

.logo-frag--about {
  position: absolute;
  bottom: -10px; right: -10px;
  width: 140px; height: 140px;
  opacity: 0;
  pointer-events: none;
}

/* ── WHO WE'RE FOR ──────────────────────────────────────────── */
#who {
  position: relative;
  z-index: 10;
  background: var(--bg);
  padding: var(--sv) var(--px);
}
.who-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.who-sub { font-size: 18px; color: var(--muted); margin: 18px 0 56px; }
.who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  text-align: left;
}
.who-card {
  padding: 40px;
  border-radius: 24px;
  background: var(--glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: inset 0 0 40px rgba(255,255,255,0.01), 0 30px 60px rgba(0,0,0,0.5);
  transition: transform 0.4s var(--out), border-color 0.4s;
}
.who-card:hover {
  transform: translateY(-8px);
}
.who-card--yes {
  background: linear-gradient(135deg, rgba(188,255,77,0.03), rgba(61,239,245,0.02)), var(--glass);
  border-color: rgba(188,255,77,0.12);
}
.who-card--no { background: var(--glass); border-color: rgba(255,61,143,0.1); }
.wc-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.wc-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(188,255,77,0.12);
  border: 1px solid var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--lime);
  flex-shrink: 0;
}
.wc-icon--no {
  background: rgba(255,61,143,0.1);
  border-color: var(--pink);
  color: var(--pink);
}
.who-card ul { display: flex; flex-direction: column; gap: 12px; }
.who-card li {
  font-size: 15px;
  color: var(--muted);
  padding-left: 20px;
  position: relative;
}
.who-card--yes li::before { content: '✓'; position: absolute; left: 0; color: var(--lime); font-size: 12px; top: 2px; }
.who-card--no  li::before { content: '✕'; position: absolute; left: 0; color: var(--pink); font-size: 12px; top: 2px; }

/* ── FINAL CTA ──────────────────────────────────────────────── */
#contact {
  position: relative;
  z-index: 10;
  background: var(--bg);
  padding: var(--sv) var(--px);
  text-align: center;
  border-top: 1px solid var(--hairline);
  overflow: hidden;
}
#contact .orbs { z-index: 0; }
.cta-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}
.cta-headline {
  font-family: var(--f-h);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}
.cta-sub {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto 48px;
}
.cta-note { margin-top: 20px; font-size: 12px; color: var(--subtle); letter-spacing: 0.08em; }

.orb-cta-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(107,15,189,0.5) 0%, transparent 65%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: orb-pulse 7s ease-in-out infinite;
}
.orb-cta-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(255,61,143,0.35) 0%, transparent 65%);
  top: 10%; right: 5%;
  animation: o2 14s ease-in-out infinite;
}
@keyframes orb-pulse {
  0%,100% { transform: translate(-50%,-50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%,-50%) scale(1.18); opacity: 0.75; }
}
.logo-frag--cta {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 500px;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

/* ── LEAD CAPTURE ───────────────────────────────────────────── */
#lead-capture {
  position: relative;
  z-index: 10;
  background: var(--bg-2);
  padding: var(--sv) var(--px);
  border-top: 1px solid var(--hairline);
}

/* ── LEAD CAPTURE MODAL ─────────────────────────────────────── */
#lc-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
}
#lc-modal.is-open {
  display: flex;
}
.lcm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5,0,16,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
}
.lcm-panel {
  position: relative;
  z-index: 2;
  width: min(860px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-2);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: clamp(32px, 5vw, 56px);
  scrollbar-width: thin;
  scrollbar-color: rgba(252,74,156,0.3) transparent;
  animation: lcm-in 0.4s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes lcm-in {
  from { opacity: 0; transform: translateY(32px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.lcm-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--subtle);
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.2s, border-color 0.2s;
}
.lcm-close:hover { color: var(--white); border-color: rgba(255,255,255,0.3); }
.lcm-header { margin-bottom: 32px; }
.lcm-title {
  font-family: var(--f-h);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 8px 0 12px;
}
.lcm-sub { font-size: 15px; color: var(--muted); }
.lc-inner {
  max-width: 820px;
  margin: 0 auto;
}
.lc-header { margin-bottom: clamp(36px, 5vw, 56px); }
.lc-sub { font-size: 16px; color: var(--muted); margin-top: 12px; }
.lc-form { display: flex; flex-direction: column; gap: 20px; }
.lc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lc-field { display: flex; flex-direction: column; gap: 8px; }
.lc-field--full { grid-column: 1 / -1; }
.lc-field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--subtle);
}
.lc-field input,
.lc-field select,
.lc-field textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--white);
  font-family: var(--f-b);
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
  width: 100%;
  box-sizing: border-box;
}
.lc-field select option { background: var(--bg-2); color: var(--white); }
.lc-field input::placeholder,
.lc-field textarea::placeholder { color: rgba(255,255,255,0.22); }
.lc-field input:focus,
.lc-field select:focus,
.lc-field textarea:focus {
  border-color: rgba(252,74,156,0.5);
  background: rgba(252,74,156,0.04);
}
.lc-field textarea { resize: vertical; min-height: 120px; }
.lc-submit { align-self: flex-start; margin-top: 8px; }

@media (max-width: 640px) {
  .lc-row { grid-template-columns: 1fr; }
}

/* ── FOOTER ─────────────────────────────────────────────────── */
#footer {
  position: relative;
  z-index: 110;
  background: var(--bg-2);
  padding: 80px var(--px) 44px;
  margin-top: 160px;
  border-top: 1px solid var(--hairline);
  overflow: hidden;
}
.footer-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 72px;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}
.footer-logo img {
  height: 52px;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.6fr;
  gap: 40px;
}
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col-title {
  font-family: var(--f-h);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 6px;
}
.footer-col a { font-size: 14px; color: var(--subtle); transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }

/* Contact column */
.footer-col--contact { gap: 16px; }
.footer-contact-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-contact-region {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pink);
}
.footer-contact-block span:not(.footer-contact-region) {
  font-size: 12px;
  color: var(--subtle);
  line-height: 1.6;
}
.footer-contact-link {
  font-size: 13px;
  color: var(--subtle);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-contact-link:hover { color: var(--white); }
.footer-map-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pink);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
  margin-top: 2px;
}
.footer-map-link:hover { opacity: 1; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 36px;
  border-top: 1px solid var(--hairline);
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.footer-copy { font-size: 12px; color: var(--subtle); }
.footer-legal { display: flex; gap: 22px; }
.footer-legal a { font-size: 12px; color: var(--subtle); transition: color 0.2s; }
.footer-legal a:hover { color: var(--white); }

.footer-wordmark {
  position: absolute;
  bottom: -30px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-h);
  font-size: clamp(80px, 14vw, 200px);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.05);
  letter-spacing: -0.06em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* ── MAGNETIC ───────────────────────────────────────────────── */
.magnetic { position: relative; will-change: transform; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .results-stats { grid-template-columns: repeat(2, 1fr); }
  .stat-card:nth-child(2) { border-right: none; }
  .stat-card:nth-child(3) { border-top: 1px solid rgba(255,255,255,0.07); }
  .stat-card:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.07); }
  .philosophy-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  #nav { padding: 20px 24px; }
  #nav.scrolled { padding: 14px 24px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }

  #hero { height: auto; min-height: 100vh; }
  .hero-sticky { padding: 110px 24px 90px; }
  .hero-h1 { font-size: clamp(3rem, 10vw, 7rem); }

  .problem-sticky-wrap { grid-template-columns: 1fr; gap: 56px; }
  .problem-left { position: static; }

  /* Framework — single column on mobile */
  #framework { height: auto; overflow: visible; }
  .fw-panels-outer { overflow: visible; }
  .fw-panels { position: static; }
  .fw-step {
    position: static;
    grid-template-columns: 1fr;
    min-height: 100svh;
    padding: 60px var(--px) 40px;
    gap: 32px;
    opacity: 1 !important;
    pointer-events: auto !important;
    border-bottom: 1px solid var(--hairline);
  }
  .fw-step-num { font-size: clamp(8rem, 28vw, 14rem); position: relative; left: 0; top: 0; transform: none; }
  .fw-step-word { font-size: clamp(3rem, 10vw, 5.5rem); }
  .fw-step-right { border-left: none; border-top: 2px solid var(--pc); padding-left: 0; padding-top: 24px; }
  .fw-top { flex-direction: column; align-items: flex-start; }
  .fw-foot { display: none; }

  .team-ceo-card { grid-template-columns: 1fr; }
  .team-ceo-photo-wrap { aspect-ratio: 4/3; max-height: 360px; }
  .team-members-grid { grid-template-columns: 1fr; }
  .team-member-card { grid-template-columns: 140px 1fr; }
  .who-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 44px; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
  .footer-col--contact { grid-column: 1 / -1; }

  #logo-canvas svg { width: min(90vw, 90vh); }
}

@media (max-width: 600px) {
  :root { --sv: 80px; --px: 20px; }
  .hero-h1 { font-size: clamp(2.8rem, 12vw, 5rem); }
  .results-stats { grid-template-columns: 1fr 1fr; }
  .stat-card { padding-right: clamp(12px, 3vw, 20px); }
  .philosophy-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr; }
  .footer-wordmark { font-size: 60px; }
  .about-stats { grid-template-columns: 1fr; }
  .cs-card, .cs-card--wide, .cs-card--result { width: 280px; }
}

/* ══════════════════════════════════════════════════════════════
   PORTFOLIO / CLIENT SHOWCASE
══════════════════════════════════════════════════════════════ */
#portfolio {
  position: relative;
  z-index: 200; /* above logo-canvas (100) so videos are never covered */
  background: var(--bg);
  height: 100vh;
  overflow: hidden;
}

.ptf-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  transform-origin: center top;
}

/* ── Header ── */
.ptf-header {
  flex-shrink: 0;
  padding: clamp(20px, 3vw, 32px) var(--px) 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--hairline);
}
.ptf-heading { font-size: clamp(1.2rem, 2vw, 1.8rem); margin-top: 4px; }
.ptf-header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.ptf-counter {
  font-family: var(--f-d);
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1;
}
.ptf-cur { color: var(--lime); }
.ptf-sep { color: var(--subtle); font-size: 0.55em; }
.ptf-tot { color: var(--subtle); font-size: 0.65em; }
.ptf-progress-track { width: 140px; height: 2px; background: var(--hairline); border-radius: 1px; }
.ptf-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--lime), var(--cyan));
  border-radius: 1px;
  transition: width 0.15s ease;
}

/* ── Stage ── */
.ptf-stage { flex: 1; position: relative; overflow: hidden; }
.ptf-panel { position: absolute; inset: 0; }

/* Ghost number watermark */
.ptf-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 3vw;
  font-family: var(--f-d);
  font-size: clamp(220px, 38vw, 520px);
  color: var(--white);
  opacity: 0.025;
  pointer-events: none;
  line-height: 1;
  user-select: none;
}

.ptf-panel-inner {
  display: grid;
  grid-template-columns: 44% 56%;
  width: 100%;
  height: 100%;
}

/* ── Left col — client info ── */
.ptf-left {
  padding: clamp(28px, 3.5vw, 48px) clamp(20px, 3vw, 44px) clamp(28px, 3.5vw, 48px) var(--px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(14px, 1.8vw, 22px);
  overflow-y: auto;
  max-height: 100vh;
  scrollbar-width: thin;
  scrollbar-color: rgba(252,74,156,0.35) transparent;
}
.ptf-left::-webkit-scrollbar { width: 3px; }
.ptf-left::-webkit-scrollbar-track { background: transparent; }
.ptf-left::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--pink), var(--cyan));
  border-radius: 3px;
}
.ptf-logo-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 100px;
  font-family: var(--f-h);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  width: fit-content;
}
.ptf-meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}
.ptf-name {
  font-family: var(--f-h);
  font-size: clamp(1.3rem, 2.2vw, 2.2rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin: 0;
}
.ptf-cat {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--pink);
}
.ptf-desc {
  color: rgba(255,255,255,0.55);
  font-size: clamp(0.82rem, 1vw, 0.94rem);
  line-height: 1.8;
}
.ptf-stats { display: flex; gap: clamp(20px, 2.5vw, 36px); }
.ptf-stat-num {
  display: block;
  font-family: var(--f-d);
  font-size: clamp(1.6rem, 2.2vw, 2.6rem);
  color: var(--lime);
  line-height: 1;
}
.ptf-stat-lbl {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--subtle);
  margin-top: 5px;
}
.ptf-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ptf-tag {
  padding: 5px 13px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}

/* ── Right col — videos ── */
.ptf-right {
  padding: clamp(20px, 2.5vw, 36px) var(--px) clamp(20px, 2.5vw, 36px) 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.ptf-videos {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  justify-content: center;
  height: 100%;
  flex: 1 1 0;
  min-height: 0;
  position: relative;
  z-index: 110;
  perspective: 700px;
}
.ptf-vid {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #0a0018;
  border: 1px solid rgba(255,255,255,0.07);
  cursor: pointer;
  transition: border-color 0.4s, transform 0.4s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.4s, opacity 0.4s;
  flex: 0 0 auto;
  width: 28%;
  aspect-ratio: 9 / 16;
  max-height: 96%;
}
/* Side videos recede slightly for 3D depth */
.ptf-vid:nth-child(1) { transform: rotateY(5deg) translateX(4px); opacity: 0.78; }
.ptf-vid:nth-child(3) { transform: rotateY(-5deg) translateX(-4px); opacity: 0.78; }
/* Center/featured video */
.ptf-vid:nth-child(2) {
  width: 32%;
  border-color: rgba(252,74,156,0.22);
  box-shadow: 0 0 35px rgba(252,74,156,0.14), 0 20px 50px rgba(0,0,0,0.5);
  z-index: 2;
}
.ptf-vid:hover {
  border-color: rgba(252,74,156,0.35) !important;
  box-shadow: 0 0 50px rgba(252,74,156,0.22), 0 24px 60px rgba(0,0,0,0.6) !important;
  opacity: 1 !important;
  transform: rotateY(0deg) translateX(0) translateY(-4px) scale(1.02) !important;
}
/* Hide 4th+ slots and empty placeholders */
.ptf-vid:nth-child(n+4) { display: none !important; }
.ptf-vid--empty { display: none !important; }
.ptf-vid video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Placeholder glow */
.ptf-vid::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 70%, rgba(252,74,156,0.1) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}
.ptf-vid-ui {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.3s;
}
.ptf-vid:hover .ptf-vid-ui { background: rgba(0,0,0,0.15); }
.ptf-play {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--white);
  padding-left: 3px;
  transition: background 0.3s, transform 0.3s;
}
.ptf-vid:hover .ptf-play { background: var(--pink); transform: scale(1.12); }
.ptf-vid-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* ── Logo image ── */
.ptf-logo-wrap { margin-bottom: 0; flex-shrink: 0; }
.ptf-logo-img {
  max-height: 80px;
  max-width: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.ptf-logo-img--invert { filter: brightness(0) invert(1); }

/* ── Dots ── */
.ptf-dots {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px var(--px);
  border-top: 1px solid var(--hairline);
}
.ptf-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transition: all 0.35s;
  cursor: pointer;
}
.ptf-dot.active { width: 28px; border-radius: 3px; background: var(--lime); }

@media (max-width: 900px) {
  #portfolio { height: auto; }
  .ptf-panel { position: static; }
  .ptf-stage { overflow: visible; }
  .ptf-panel-inner { grid-template-columns: 1fr; }
  .ptf-right { padding-left: var(--px); padding-top: 0; }
  .ptf-watermark { display: none; }
  .ptf-videos { height: 260px; gap: 8px; }
  .ptf-vid { width: 36%; max-height: 100%; }
  .ptf-vid:nth-child(2) { width: 42%; }
  .ptf-vid:nth-child(1) { transform: none; opacity: 1; }
  .ptf-vid:nth-child(3) { transform: none; opacity: 1; }
}

/* ══════════════════════════════════════════════════════════════
   VIDEO FULLSCREEN MODAL
══════════════════════════════════════════════════════════════ */
#vid-modal {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0);
  pointer-events: none;
  transition: background 0.35s;
}
#vid-modal.open {
  background: rgba(0,0,0,0.93);
  pointer-events: all;
}
#vid-modal-inner {
  position: relative;
  width: min(86vw, calc(90vh * 9 / 16));
  max-width: 400px;
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  overflow: hidden;
  transform: scale(0.82) translateY(28px);
  opacity: 0;
  transition: transform 0.44s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s;
  box-shadow: 0 40px 100px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.07), 0 0 60px rgba(252,74,156,0.15);
}
#vid-modal.open #vid-modal-inner {
  transform: scale(1) translateY(0);
  opacity: 1;
}
#vid-modal video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#vid-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  font-size: 15px;
  z-index: 2;
  transition: background 0.3s, transform 0.3s;
}
#vid-modal-close:hover {
  background: var(--pink);
  transform: scale(1.12);
}

/* ══════════════════════════════════════════════════════════════
   CLIENT LOGO TICKER
══════════════════════════════════════════════════════════════ */
#clients-ticker {
  position: relative;
  z-index: 999999;
  background: var(--bg);
  padding: 56px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
}
.ticker-inner { display: flex; flex-direction: column; gap: 28px; }
.ticker-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--subtle);
  text-align: center;
}
.ticker-track-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: ticker-scroll 36s linear infinite;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 40px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: rgba(255,255,255,0.02);
  flex-shrink: 0;
  transition: border-color 0.4s, background 0.4s, filter 0.4s;
  cursor: default;
}
.ticker-logo img {
  height: 60px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  filter: opacity(0.75);
  transition: filter 0.4s;
  display: block;
  user-select: none;
  pointer-events: none;
}
.ticker-logo:hover {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
}
.ticker-logo:hover img {
  filter: opacity(1);
}

/* ── UTILITY ────────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ══════════════════════════════════════════════════════════════
   SCROLL JOURNEY LINE
   Fixed right-edge progress indicator — draws from top to
   bottom as the user scrolls through the entire page.
══════════════════════════════════════════════════════════════ */
/* SVG wavy line — fills top→bottom on scroll */
#journey-line {
  position: fixed;
  right: clamp(12px, 1.8vw, 22px);
  top: 110px;
  bottom: 110px;
  width: 20px;
  z-index: 500;
  pointer-events: none;
  overflow: visible;
}
#journey-fill {
  stroke-dasharray: 1300;
  stroke-dashoffset: 1300;
}
.j-node {
  filter: drop-shadow(0 0 3px rgba(255,255,255,0.4));
}
#j-dot {
  filter: drop-shadow(0 0 5px #FC4A9C) drop-shadow(0 0 12px rgba(252,74,156,0.5));
}
/* Hide on small screens */
@media (max-width: 900px) { #journey-line { display: none; } }

/* Removed entirely */

/* ══════════════════════════════════════════════════════════════
   AWWWARDS UPGRADE — NEW INTERACTIVE SYSTEMS
══════════════════════════════════════════════════════════════ */

/* ── Ambient Particle Field Canvas ── */
#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;           /* behind all content, just above bare body */
  pointer-events: none;
  opacity: 0.85;
}

/* ── Cursor Neon Trail Canvas ── */
#cursor-trail {
  position: fixed;
  inset: 0;
  z-index: 9999;        /* just below the cursor dots */
  pointer-events: none;
}

/* ── Preloader: Cinematic Scan Line ── */
.preloader-scan-line {
  position: absolute;
  left: -10%;
  width: 120%;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(61,239,245,0.9) 30%,
    rgba(255,61,143,1)   50%,
    rgba(61,239,245,0.9) 70%,
    transparent 100%
  );
  box-shadow:
    0 0 12px rgba(61,239,245,0.8),
    0 0 32px rgba(255,61,143,0.6),
    0 0 60px rgba(61,239,245,0.4);
  top: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
}

/* ── Hero RGB Split Distortion (hover) ── */
@keyframes rgb-split {
  0%, 100% { filter: none; }
  20% { filter: drop-shadow(3px 0 rgba(61,239,245,0.7)) drop-shadow(-3px 0 rgba(255,61,143,0.7)); }
  45% { filter: drop-shadow(-4px 0 rgba(61,239,245,0.5)) drop-shadow(4px 0 rgba(255,61,143,0.5)) blur(0.4px); }
  70% { filter: drop-shadow(2px 0 rgba(188,255,77,0.6)) drop-shadow(-2px 0 rgba(255,61,143,0.5)); }
}
.hero-h1:hover .line {
  animation: rgb-split 0.65s ease-in-out;
  animation-fill-mode: forwards;
}

/* ── Section Color Morphing: body background transitions smoothly via JS ── */
body { transition: background-color 0s; } /* JS drives this, not CSS transitions */

/* ── Orb velocity response: base scale reset ── */
.orb { transform-origin: center center; }

/* ── Preloader upgrade: wider logo container so scatter has room ── */
#preloader-logo svg {
  overflow: visible;
}

/* ── Parallax depth layers ── */
.hero-bg-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  will-change: transform;
}

/* ── Magnetic button enhanced glow on hover ── */
.magnetic:hover {
  filter: drop-shadow(0 0 20px rgba(255,61,143,0.35));
}
.btn--primary.magnetic:hover {
  box-shadow: 0 0 40px rgba(255,61,143,0.4), 0 14px 44px rgba(255,61,143,0.3);
}

/* ── Logo breathing: handled entirely by GSAP, no CSS needed ── */

/* ── Scroll velocity ripple: a fixed radial burst that flashes on fast scroll ── */
.scroll-burst {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  background: radial-gradient(circle at 50% 50%,
    rgba(107,15,189,0.06) 0%,
    transparent 65%
  );
  opacity: 0;
}

/* ── 3D Elements ── */
.css-3d-scene {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  perspective: 1200px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.15;
}

.css-3d-cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(45deg) rotateY(45deg) rotateZ(0deg);
  will-change: transform;
}

.cube-face {
  position: absolute;
  width: 250px;
  height: 250px;
  left: 25px;
  top: 25px;
  border: 1px solid rgba(61, 239, 245, 0.5);
  background: rgba(255, 61, 143, 0.05);
  box-shadow: inset 0 0 40px rgba(61, 239, 245, 0.2);
  backdrop-filter: blur(1px);
}

.cube-face.front  { transform: translateZ(125px); }
.cube-face.back   { transform: rotateY(180deg) translateZ(125px); }
.cube-face.right  { transform: rotateY(90deg) translateZ(125px); }
.cube-face.left   { transform: rotateY(-90deg) translateZ(125px); }
.cube-face.top    { transform: rotateX(90deg) translateZ(125px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(125px); }

/* ══════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — COMPREHENSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Hide custom cursor on touch */
  .cursor-dot, .cursor-ring { display: none; }
  * { cursor: auto !important; }

  /* ── Global ── */
  :root { --sv: 72px; --px: 20px; }
  body { cursor: auto; }

  /* ── Nav ── */
  #nav { padding: 16px 20px; }
  .nav-logo img { height: 36px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }

  /* ── Hero ── */
  #hero { height: auto; min-height: 100svh; padding: 0; }
  .hero-sticky { padding: 100px 20px 60px; }
  .hero-h1 { font-size: clamp(2.6rem, 11vw, 4.5rem); letter-spacing: -0.03em; }
  .hero-sub { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-scroll-hint { display: none; }

  /* ── Social Proof Marquee ── */
  #social-proof { padding: 40px 0; }
  .marquee-item { gap: 10px; }
  .marquee-num { font-size: clamp(1.6rem, 7vw, 2.5rem); }
  .marquee-label { font-size: 11px; }

  /* ── Problem Section ── */
  .prob-fail-word { font-size: clamp(4rem, 18vw, 8rem); }
  .prob-row { padding: 20px 0 20px 20px; }
  .prob-num { font-size: clamp(2rem, 8vw, 3.5rem); }

  /* ── Framework ── */
  #framework { height: auto !important; }
  .fw-step { grid-template-columns: 1fr; gap: 24px; padding: 48px 20px 40px; }
  .fw-step-word { font-size: clamp(3rem, 13vw, 5rem); }
  .fw-step-right { border-left: none; border-top: 2px solid var(--pc); padding-left: 0; padding-top: 20px; max-width: 100%; }
  .fw-4d-nav { gap: 8px; flex-wrap: wrap; }
  .fw-4d-btn { font-size: 11px; padding: 8px 14px; }
  .fw-top { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* ── Portfolio / Client Showcase ── */
  #portfolio { height: auto; overflow: visible; }
  .ptf-stage { overflow: visible; }
  .ptf-panel { position: static; }
  .ptf-panel-inner { grid-template-columns: 1fr; }
  .ptf-left {
    max-height: none;
    overflow-y: visible;
    padding: 24px 20px;
  }
  .ptf-right { padding: 0 20px 24px; }
  .ptf-name { font-size: clamp(1.3rem, 6vw, 2rem); }
  .ptf-videos { height: 220px; gap: 8px; }
  .ptf-vid { width: 36%; }
  .ptf-vid:nth-child(2) { width: 44%; }
  .ptf-vid:nth-child(1),
  .ptf-vid:nth-child(3) { transform: none; opacity: 1; }
  .ptf-watermark { display: none; }
  .ptf-stats { grid-template-columns: repeat(2, 1fr); }
  .ptf-meta { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ptf-logo-img { max-height: 44px; }

  /* ── Results / Numbers ── */
  .results-stats { grid-template-columns: 1fr 1fr; }
  .stat-card { padding: 24px 16px; }
  .stat-num { font-size: clamp(2rem, 9vw, 3.5rem); }

  /* ── About / Team ── */
  .team-ceo-card {
    grid-template-columns: 1fr;
    padding: 28px 20px;
    gap: 28px;
  }
  .team-ceo-photo-wrap { aspect-ratio: 3/2; max-height: 280px; }
  .team-ceo-name { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .team-ceo-stats { flex-direction: column; gap: 0; }
  .tcs-divider { width: 100%; height: 1px; }
  .team-members-grid { grid-template-columns: 1fr; gap: 16px; }
  .team-member-card {
    grid-template-columns: 110px 1fr;
    gap: 16px;
    padding: 20px;
  }
  .tmc-header { min-height: 60px; }
  .tmc-name { font-size: 1.05rem; }
  .tmc-bio { font-size: 13px; }

  /* ── Services ── */
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 28px 24px; }

  /* ── Who we're for ── */
  .who-grid { grid-template-columns: 1fr; gap: 16px; }

  /* ── Philosophy ── */
  .philosophy-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ph-card { padding: 24px 18px; }

  /* ── Results ── */
  .results-stats { grid-template-columns: 1fr 1fr; }
  .stat-card:nth-child(2) { border-right: none; }
  .stat-card:nth-child(3) { border-top: 1px solid rgba(255,255,255,0.07); }
  .stat-card:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.07); }

  /* ── CTA / Contact ── */
  .cta-headline { font-size: clamp(2rem, 8vw, 3.5rem); }
  .cta-sub { font-size: 15px; }
  .btn--large { padding: 16px 28px; font-size: 14px; }

  /* ── Lead Capture Modal ── */
  .lcm-panel { padding: 28px 20px; border-radius: 16px; }
  .lcm-title { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .lc-row { grid-template-columns: 1fr; gap: 14px; }
  .lc-field--full { grid-column: 1; }

  /* ── Footer ── */
  #footer { padding: 56px 20px 40px; margin-top: 80px; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; margin-bottom: 48px; }
  .footer-nav { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-col--contact { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-wordmark { font-size: 48px; }

  /* ── Clients Ticker ── */
  .ticker-logo { padding: 14px 24px; }
  .ticker-logo img { height: 44px; }

  /* ── Misc ── */
  .section-h2 { font-size: clamp(1.8rem, 7vw, 3rem); }
  #logo-canvas { display: none; }
  .logo-frag { display: none; }
}

@media (max-width: 480px) {
  :root { --px: 16px; }
  .hero-h1 { font-size: clamp(2.2rem, 12vw, 3.5rem); }
  .philosophy-grid { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr; }
  .team-member-card { grid-template-columns: 90px 1fr; gap: 14px; }
  .tmc-photo-wrap { border-radius: 10px; }
  .results-stats { grid-template-columns: 1fr; }
  .stat-card { border-right: none !important; border-top: 1px solid rgba(255,255,255,0.07) !important; }
  .stat-card:first-child { border-top: none !important; }
  .ptf-videos { height: 180px; }
  .ptf-vid { width: 40%; }
  .ptf-vid:nth-child(2) { width: 52%; }
  .lcm-panel { border-radius: 12px 12px 0 0; align-self: flex-end; width: 100%; max-height: 92svh; }
  #lc-modal { align-items: flex-end; }
}
