/* ========================================
   DIGITAL ROAR — Design System v2
   Seamless Single-Flow Scrolling Page
======================================== */

/* --- CSS Variables --- */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #0e0e0e;
  --bg-card: #141414;
  --text-primary: #f5f5f5;
  --text-secondary: #888888;
  --text-muted: #444444;
  --accent: #00e5c8;
  --accent-dim: rgba(0, 229, 200, 0.08);
  --border: #1a1a1a;
  --border-light: #262626;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  scroll-behavior: auto;
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  cursor: none;
}

/* ===== FILM GRAIN OVERLAY ===== */
.film-grain {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  animation: grainShift 0.5s steps(8) infinite;
}

@keyframes grainShift {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-2%, -3%); }
  20% { transform: translate(3%, 1%); }
  30% { transform: translate(-1%, 3%); }
  40% { transform: translate(2%, -2%); }
  50% { transform: translate(-3%, 1%); }
  60% { transform: translate(1%, -1%); }
  70% { transform: translate(-2%, 2%); }
  80% { transform: translate(3%, -3%); }
  90% { transform: translate(-1%, -2%); }
}

/* ===== HERO GRADIENT BLOBS ===== */
.hero-gradient-blobs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: blobFloat 20s ease-in-out infinite;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  top: -10%;
  right: -5%;
  animation-duration: 18s;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #00b4d8, transparent 70%);
  bottom: -15%;
  left: -10%;
  animation-duration: 22s;
  animation-delay: -5s;
}

.blob-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #7b2ff7, transparent 70%);
  top: 40%;
  left: 50%;
  animation-duration: 25s;
  animation-delay: -10s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(40px, -30px) scale(1.1); }
  50% { transform: translate(-20px, 40px) scale(0.95); }
  75% { transform: translate(30px, 20px) scale(1.05); }
}




/* ===== SOUND TOGGLE ===== */
.sound-toggle {
  position: fixed;
  bottom: 60px;
  right: 24px;
  z-index: 999;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(8px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.sound-toggle:hover {
  border-color: var(--accent);
  background: rgba(0, 229, 200, 0.1);
}

.sound-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.sound-bar {
  width: 2px;
  background: var(--text-muted);
  border-radius: 1px;
  transition: height 0.3s ease, background 0.3s ease;
}

.sound-toggle.active .sound-bar {
  background: var(--accent);
  animation: soundWave 0.8s ease-in-out infinite alternate;
}

.sound-bar:nth-child(1) { height: 4px; animation-delay: 0s; }
.sound-bar:nth-child(2) { height: 8px; animation-delay: 0.1s; }
.sound-bar:nth-child(3) { height: 12px; animation-delay: 0.2s; }
.sound-bar:nth-child(4) { height: 6px; animation-delay: 0.3s; }
.sound-bar:nth-child(5) { height: 10px; animation-delay: 0.15s; }

@keyframes soundWave {
  from { height: 3px; }
  to { height: 14px; }
}

/* ===== FULL-SCREEN WIPE CURTAIN ===== */
.page-wipe {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  z-index: 10000;
  transform: scaleY(0);
  transform-origin: bottom;
  pointer-events: none;
}

/* ===== PAGE EXIT ===== */
.page-exiting {
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), 
              opacity 0.5s ease,
              filter 0.5s ease !important;
  transform: scale(0.92) !important;
  opacity: 0.3 !important;
  filter: blur(4px) !important;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 110px;
  right: 24px;
  z-index: 999;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(8px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.back-to-top:hover {
  border-color: var(--accent);
  background: rgba(0, 229, 200, 0.1);
  transform: translateY(-4px);
}

.back-to-top:hover .rocket {
  animation: rocketLaunch 0.4s ease forwards;
}

@keyframes rocketLaunch {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(-2px); }
}

/* Particle canvas sits above body bg, below content */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* All content sections sit above the canvas */
.hero, .about, .link-bar, .stats, .capabilities, .projects,
.case-study, .testimonials, .blog, .faq, .contact, .footer,
.flow-divider, .nav, .marquee, .brands {
  position: relative;
  z-index: 2;
}

/* Morphing blob sits between bg and canvas */
#morphBlob {
  z-index: 0 !important;
}

/* Scroll progress above everything */
#scrollProgress {
  z-index: 10001 !important;
}

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

button {
  border: none;
  background: none;
  color: inherit;
  font-family: inherit;
  cursor: none;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
}

/* --- Custom Cursor --- */
.cursor {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99999;
  mix-blend-mode: difference;
  transition: transform 0.15s var(--ease-out);
}

.cursor-follower {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 229, 200, 0.4);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99998;
  transition: transform 0.3s var(--ease-out), width 0.3s, height 0.3s;
}

.cursor.hovering {
  transform: scale(3);
}

.cursor-follower.hovering {
  width: 60px;
  height: 60px;
  border-color: var(--accent);
}

/* --- Loader --- */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease-out), visibility 0.8s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  text-align: center;
}

.loader-greeting {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0;
  animation: greetFade 0.8s ease 0.3s forwards;
}

@keyframes greetFade {
  to { opacity: 1; }
}

.loader-text {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: 0.2em;
  margin-bottom: 32px;
  perspective: 600px;
  overflow: visible;
}

.loader-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(120px) rotateX(-90deg) scale(0.3);
  filter: blur(12px);
  animation: staggeredReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity, filter;
}

@keyframes staggeredReveal {
  0% {
    opacity: 0;
    transform: translateY(120px) rotateX(-90deg) scale(0.3);
    filter: blur(12px);
  }
  50% {
    opacity: 0.7;
    filter: blur(3px);
  }
  80% {
    transform: translateY(-8px) rotateX(5deg) scale(1.05);
    filter: blur(0px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0deg) scale(1);
    filter: blur(0px);
  }
}

.loader-bar {
  width: 200px;
  height: 2px;
  background: var(--border);
  margin: 0 auto;
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--accent);
  animation: barFill 1.8s var(--ease-in-out) 0.6s forwards;
}

@keyframes barFill {
  to { width: 100%; }
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  transition: padding 0.4s var(--ease-out), background 0.4s;
}

.nav.scrolled {
  padding: 14px 48px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  animation: logoBreathe 4s ease-in-out infinite;
}

@keyframes logoBreathe {
  0%, 100% { 
    letter-spacing: 0.1em; 
    text-shadow: 0 0 0px transparent;
  }
  50% { 
    letter-spacing: 0.18em; 
    text-shadow: 0 0 12px rgba(0, 229, 200, 0.3), 0 0 40px rgba(0, 229, 200, 0.08);
  }
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.3s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-menu-btn {
  width: 32px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: none;
  z-index: 1001;
}

.menu-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
  transform-origin: center;
}

.nav-menu-btn.active .menu-line:first-child {
  transform: translateY(9px) rotate(45deg);
}

.nav-menu-btn.active .menu-line:last-child {
  transform: translateY(-9px) rotate(-45deg);
}

.nav-cta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bg-primary);
  background: var(--accent);
  padding: 10px 24px;
  border-radius: 100px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.nav-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(0, 229, 200, 0.3);
}

/* --- Full-Screen Menu Overlay --- */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  pointer-events: none;
  visibility: hidden;
}

.menu-overlay.active {
  pointer-events: all;
  visibility: visible;
}

.menu-overlay-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.6s var(--ease-out);
}

.menu-overlay.active .menu-overlay-bg {
  transform: scaleY(1);
}

.menu-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 48px;
  z-index: 1;
}

.menu-links {
  width: 100%;
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.menu-overlay.active .menu-link {
  opacity: 1;
  transform: translateY(0);
}

.menu-link-index {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
  min-width: 40px;
}

.menu-link-text-wrap {
  overflow: hidden;
}

.menu-link-text {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  text-transform: lowercase;
  display: block;
  transition: transform 0.4s var(--ease-out), color 0.3s;
}

.menu-link:hover .menu-link-text {
  transform: translateX(20px);
  color: var(--accent);
}

/* --- Marquee Ticker --- */
.marquee {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 0;
  z-index: 998;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.3s ease;
}

.marquee:hover {
  background: rgba(10, 10, 10, 0.95);
}

.marquee-track {
  display: flex;
  gap: 48px;
  animation: marqueeScroll 20s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.marquee-item {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  flex-shrink: 0;
  transition: color 0.3s ease;
}

.marquee:hover .marquee-item {
  color: var(--accent);
}

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

/* =============================================
   SEAMLESS FLOW — No section boundaries
   Everything lives on one continuous bg
============================================= */

/* --- Section Transition Base --- */
.hero, .brands, .about, .link-bar, .stats,
.capabilities, .projects, .case-study,
.testimonials, .blog, .faq, .contact {
  will-change: transform, opacity, filter;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 48px 100px;
  position: relative;
  overflow: hidden;
}

/* Floating Dev Elements */
.hero-floaters { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.floater { position: absolute; opacity: 0.07; animation: floatDrift linear infinite; }
.floater-code {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 13px; color: var(--accent); white-space: nowrap;
  padding: 8px 16px; border: 1px solid rgba(0,229,200,0.15);
  border-radius: 6px; background: rgba(0,229,200,0.03);
}
.floater-tag {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
  padding: 6px 14px; border: 1px solid rgba(0,229,200,0.2); border-radius: 100px;
}
.floater-bracket { font-family: 'SF Mono', monospace; font-size: 60px; font-weight: 200; color: var(--accent); opacity: 0.04; }
.floater-wireframe {
  padding: 10px; border: 1px solid rgba(0,229,200,0.12);
  border-radius: 8px; background: rgba(0,229,200,0.02); width: 120px;
}
.wire-bar { height: 6px; background: rgba(0,229,200,0.15); border-radius: 2px; margin-bottom: 8px; }
.wire-body { display: flex; gap: 6px; }
.wire-sidebar { width: 20px; height: 50px; background: rgba(0,229,200,0.08); border-radius: 3px; }
.wire-content { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.wire-line { height: 5px; background: rgba(0,229,200,0.12); border-radius: 2px; }
.wire-line.short { width: 60%; }
.wire-circle { width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(0,229,200,0.15); margin: 0 auto 8px; }
.wire-btn { height: 8px; width: 50%; margin: 6px auto 0; background: rgba(0,229,200,0.15); border-radius: 4px; }

.f1  { top: 12%; left: 5%; animation-duration: 25s; }
.f2  { top: 70%; right: 8%; animation-duration: 30s; animation-delay: -5s; }
.f3  { bottom: 20%; left: 12%; animation-duration: 28s; animation-delay: -10s; }
.f4  { top: 18%; right: 15%; animation-duration: 20s; animation-delay: -3s; }
.f5  { top: 55%; left: 8%; animation-duration: 22s; animation-delay: -8s; }
.f6  { bottom: 25%; right: 20%; animation-duration: 24s; animation-delay: -12s; }
.f7  { top: 40%; right: 5%; animation-duration: 26s; animation-delay: -7s; }
.f8  { top: 25%; right: 6%; animation-duration: 35s; animation-delay: -2s; }
.f9  { bottom: 15%; left: 6%; animation-duration: 32s; animation-delay: -15s; }
.f10 { bottom: 35%; right: 12%; animation-duration: 27s; animation-delay: -9s; }
.f11 { top: 8%; left: 45%; animation-duration: 40s; animation-delay: -6s; }
.f12 { bottom: 10%; right: 40%; animation-duration: 38s; animation-delay: -20s; }

@keyframes floatDrift {
  0%   { transform: translateY(0) rotate(0deg); }
  25%  { transform: translateY(-30px) rotate(2deg); }
  50%  { transform: translateY(-15px) rotate(-1deg); }
  75%  { transform: translateY(-40px) rotate(3deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

.hero-spotlight {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 200, 0.06) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: left 0.3s ease-out, top 0.3s ease-out;
  z-index: 0;
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% { 
    opacity: 0; 
    transform: translateY(0) scale(0); 
  }
  10% { 
    opacity: 0.6; 
    transform: translateY(-20px) scale(1); 
  }
  90% { 
    opacity: 0.2; 
  }
  100% { 
    opacity: 0; 
    transform: translateY(-200px) scale(0.5); 
  }
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin: 48px 0;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 2.4s forwards;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stat-number {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.hero-stat-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-eyebrow-line {
  width: 40px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  animation: lineGrow 0.6s ease 2.4s forwards;
}

.hero-eyebrow-text {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0;
  animation: textSlideIn 0.6s ease 2.7s forwards;
}

@keyframes lineGrow {
  to { transform: scaleX(1); }
}

@keyframes textSlideIn {
  from { opacity: 0; transform: translateX(10px); letter-spacing: 0.3em; }
  to { opacity: 1; transform: translateX(0); letter-spacing: 0.12em; }
}
/* --- Hero Title --- */
.hero-title {
  margin-bottom: 60px;
  position: relative;
}

.hero-title-line {
  overflow: visible;
}

.hero-word {
  font-family: var(--font-display);
  font-size: clamp(48px, 10vw, 140px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  animation: wordReveal 0.8s var(--ease-out) forwards;
}

.hero-accent {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  position: relative;
  display: inline-block;
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    #00ffd5 40%,
    #a78bfa 60%,
    var(--accent) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: wordReveal 0.8s var(--ease-out) forwards, shimmer 4s linear 3.5s infinite;
  letter-spacing: 0.02em;
}

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

.hero-cursor {
  color: var(--accent);
  font-weight: 300;
  margin-left: 2px;
}

/* --- TrueFocus --- */
.focus-container {
  position: relative;
  display: flex;
  gap: 0.3em;
  align-items: center;
  user-select: none;
}

.focus-word {
  cursor: pointer;
  transition: filter 0.5s ease;
}

.focus-word.blurred {
  filter: blur(5px);
}

.focus-frame {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  box-sizing: content-box;
  opacity: 0;
}

.corner {
  position: absolute;
  width: 1rem;
  height: 1rem;
  border: 3px solid var(--accent);
  filter: drop-shadow(0 0 6px rgba(0, 229, 200, 0.6));
  border-radius: 3px;
}

.top-left {
  top: -10px;
  left: -10px;
  border-right: none;
  border-bottom: none;
}

.top-right {
  top: -10px;
  right: -10px;
  border-left: none;
  border-bottom: none;
}

.bottom-left {
  bottom: -10px;
  left: -10px;
  border-right: none;
  border-top: none;
}

.bottom-right {
  bottom: -10px;
  right: -10px;
  border-left: none;
  border-top: none;
}

.tp-char {
  font-family: 'Compressa VF', var(--font-display), sans-serif;
  font-size: clamp(48px, 10vw, 140px);
  font-weight: 100;
  color: var(--text-primary);
  display: inline-block;
  text-transform: uppercase;
  will-change: font-variation-settings;
  transition: font-variation-settings 0.1s ease-out;
}

.tp-space {
  width: 0.3em;
}

.tp-accent {
  color: var(--accent);
}

.tp-char-type {
  font-family: 'Compressa VF', var(--font-display), sans-serif;
  font-size: clamp(48px, 10vw, 140px);
  font-weight: 100;
  color: var(--text-primary);
  text-transform: uppercase;
  line-height: 1;
}

.tp-cursor {
  font-family: 'Compressa VF', var(--font-display), sans-serif;
  font-size: clamp(48px, 10vw, 140px);
  font-weight: 100;
  color: var(--accent);
  line-height: 1;
  margin-left: 4px;
}

@keyframes wordReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 60px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 2.8s forwards;
}

.hero-description {
  max-width: 480px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  min-height: 52px;
}

.decrypt-char {
  transition: color 0.3s ease;
}

.decrypt-char.encrypted {
  color: rgba(0, 229, 200, 0.3);
}

/* --- Shiny Text --- */
.shiny-text {
  background-image: linear-gradient(
    120deg,
    rgba(180, 180, 180, 0.6) 0%,
    rgba(180, 180, 180, 0.6) 35%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(180, 180, 180, 0.6) 65%,
    rgba(180, 180, 180, 0.6) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shinyTextSweep 3s linear infinite;
}

@keyframes shinyTextSweep {
  0% { background-position: 150% center; }
  100% { background-position: -50% center; }
}

.text-type {
  display: inline;
  white-space: pre-wrap;
}

.text-type__cursor {
  display: inline-block;
  margin-left: 2px;
  color: var(--accent);
  font-weight: 300;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 16px 32px;
  border: 1px solid var(--border-light);
  border-radius: 100px;
  transition: all 0.4s var(--ease-out);
}

.hero-cta:hover {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
  transform: scale(1.05);
}

.hero-cta .cta-arrow {
  transition: transform 0.3s var(--ease-out);
}

.hero-cta:hover .cta-arrow {
  transform: translateX(4px);
}

.hero-scroll-indicator {
  position: absolute;
  right: 48px;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 3s forwards;
}

.scroll-text {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  writing-mode: vertical-lr;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: var(--border-light);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollLine 2s var(--ease-in-out) infinite;
}

@keyframes scrollLine {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}

/* --- Flowing Divider (replaces hard section boundaries) --- */
.flow-divider {
  width: 1px;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--border-light), transparent);
  margin: 0 auto;
}

/* --- GridMotion / Hero Background --- */.gridmotion-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.35;
  z-index: 0;
}

.gridmotion-container {
  gap: 1rem;
  flex: none;
  position: relative;
  width: 150vw;
  height: 150vh;
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  grid-template-columns: 100%;
  transform: rotate(-15deg);
  transform-origin: center center;
  z-index: 2;
}

.gm-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(7, 1fr);
  will-change: transform;
}

.gm-item {
  position: relative;
}

.gm-item-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 10px;
  background-color: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  min-height: 120px;
}

.gm-text {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-align: center;
  padding: 1rem;
}

.gm-img {
  background-size: cover;
  background-position: center top;
}

.gridmotion-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, transparent 30%, var(--bg-primary) 80%);
  pointer-events: none;
  z-index: 3;
}

/* --- About Section — seamless flow --- */
.about {
  padding: 80px 0 60px;
  overflow: hidden;
  height: 100vh;
  width: 100%;
  background: #050505;
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

/* Ensure about pin-spacer stays above capabilities */
.about.pin-spacer-target,
.pin-spacer:has(.about) {
  z-index: 10 !important;
  position: relative !important;
}

.about-text-reveal {
  margin-bottom: 60px;
}

.about-large-text {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.about-large-text .word {
  display: inline-block;
  margin-right: 0.25em;
  color: rgba(255, 255, 255, 0.06);
  transition: color 0.5s ease, text-shadow 0.5s ease;
}

.about-large-text .word.revealed {
  color: var(--text-primary);
  text-shadow: 0 0 30px rgba(0, 229, 200, 0.15);
}

.about-large-text .word.word-accent.revealed {
  color: var(--accent);
  text-shadow: 0 0 20px rgba(0, 229, 200, 0.3);
}

.about-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 32px;
  border: 1px solid var(--border-light);
  border-radius: 100px;
  transition: all 0.4s var(--ease-out);
}

.about-cta:hover {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
}

/* --- Link Bar — thin subtle divider, not a separate section --- */
.link-bar {
  padding: 0;
  margin: 80px auto;
  max-width: 1400px;
  padding-left: 48px;
  padding-right: 48px;
}

.link-bar-items {
  display: flex;
  justify-content: center;
  gap: 0;
}

.link-bar-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 36px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: all 0.4s var(--ease-out);
  position: relative;
}

.link-bar-item::after {
  content: '·';
  position: absolute;
  right: -3px;
  color: var(--border-light);
  font-size: 18px;
}

.link-bar-item:last-child::after {
  display: none;
}

.link-bar-item:hover {
  color: var(--accent);
}

.link-bar-arrow {
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.3s var(--ease-out);
}

.link-bar-item:hover .link-bar-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* --- Light Rays Background --- */
.light-rays-wrap {
  position: relative;
}

.light-rays-container {
  position: absolute;
  top: -150px;
  left: -50px;
  right: -50px;
  bottom: -100px;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.85;
  will-change: transform, opacity;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 80%);
}

.light-rays-container canvas {
  display: block;
}

/* --- Stats Section --- */
.stats {
  padding: 80px 0;
  background: transparent;
  position: relative;
  z-index: 1;
}

.stats-header {
  margin-bottom: 48px;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-card {
  padding: 48px 24px;
  text-align: center;
  position: relative;
}

/* Subtle vertical separators between stats */
.stat-card + .stat-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border-light), transparent);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 80px);
  font-weight: 800;
  color: var(--accent);
  display: inline;
  line-height: 1;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  color: var(--accent);
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
  letter-spacing: 0.04em;
}

/* --- Section Shared --- */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-header {
  margin-bottom: 60px;
}

.section-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 32px;
  border: 1px solid var(--border-light);
  border-radius: 100px;
  margin-top: 48px;
  transition: all 0.4s var(--ease-out);
}

.section-cta:hover {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
}

/* --- Combined FX Mega Wrap (Beams + Prismatic) --- */
.fx-mega-wrap {
  position: relative;
}

.fx-mega-wrap .beams-container,
.fx-mega-wrap .prismatic-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  will-change: transform, opacity;
  -webkit-mask-image: radial-gradient(ellipse 95% 85% at 50% 50%, black 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 95% 85% at 50% 50%, black 20%, transparent 80%);
}

.fx-mega-wrap .beams-container {
  opacity: 0.5;
}

.fx-mega-wrap .prismatic-container {
  opacity: 0.55;
}

/* --- Capabilities Section --- */
.capabilities {
  padding: 100px 0;
  background: transparent;
  position: relative;
  z-index: 1;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.capability-card {
  padding: 48px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease-out);
}

.capability-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-dim), transparent);
  opacity: 0;
  transition: opacity 0.5s;
}

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

.capability-card:hover {
  border-color: rgba(0, 229, 200, 0.3);
  transform: translateY(-4px);
}

.capability-index {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
  position: relative;
}

.capability-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
}

.capability-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 24px;
  position: relative;
}

.capability-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
}

.tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid var(--border-light);
  border-radius: 100px;
  color: var(--text-muted);
  transition: all 0.3s;
}

.capability-card:hover .tag {
  border-color: rgba(0, 229, 200, 0.3);
  color: var(--text-secondary);
}

/* --- Scroll Velocity Marquee --- */
.scroll-marquee {
  overflow: hidden;
  padding: 40px 0;
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.scroll-marquee::before,
.scroll-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.scroll-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-primary), transparent);
}

.scroll-marquee::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-primary), transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
  will-change: transform;
  animation: marqueeScroll 20s linear infinite;
}

.marquee-item {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.08);
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.15);
  text-transform: uppercase;
  transition: color 0.3s;
}

.marquee-item:hover {
  color: var(--accent);
  -webkit-text-stroke-color: var(--accent);
}

.marquee-dot {
  font-size: 16px;
  color: var(--accent);
  opacity: 0.5;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Projects Section --- */
.projects {
  padding: 100px 0;
  background: transparent;
  position: relative;
  z-index: 1;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.projects-horizontal {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 40px;
  overflow: visible;
  grid-template-columns: unset !important;
}

/* Horizontal layout override */
.projects-horizontal .project-card {
  min-width: 60vw;
  flex-shrink: 0;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 3/2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.project-card:hover {
  border-color: rgba(0, 229, 200, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 229, 200, 0.05);
}

.project-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 1s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 1s cubic-bezier(0.23, 1, 0.32, 1), filter 0.6s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.08);
  filter: brightness(0.7);
}

.project-info {
  position: relative;
  z-index: 1;
  padding: 36px 40px;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: translateY(10px);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-card:hover .project-info {
  transform: translateY(0);
}

.project-category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.8;
}

.project-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  transition: text-shadow 0.5s ease;
}

.project-card:hover .project-title {
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.project-arrow {
  font-size: 24px;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-card:hover .project-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* --- Case Study Highlight --- */
.case-study {
  padding: 140px 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-primary) 0%, #0c100f 40%, #0c100f 60%, var(--bg-primary) 100%);
}

.case-study::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 229, 200, 0.03), transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.case-study-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.case-study-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 40px;
}

.case-study-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 32px;
  background: var(--accent);
  color: var(--bg-primary);
  border-radius: 100px;
  transition: all 0.4s var(--ease-out);
}

.case-study-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(0, 229, 200, 0.25);
}

/* --- Testimonials --- */
.testimonials {
  padding: 100px 0;
  overflow: hidden;
  background: #0e0e0e;
  position: relative;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, var(--bg-primary), #0e0e0e);
  pointer-events: none;
}

.testimonials::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, var(--bg-primary), #0e0e0e);
  pointer-events: none;
}

.testimonials-drag-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 40px;
}

.testimonials-track {
  display: flex;
  gap: 20px;
  cursor: grab;
  user-select: none;
  padding: 0 48px;
}

.testimonials-track:active {
  cursor: grabbing;
}

.testimonial-card {
  min-width: 420px;
  max-width: 420px;
  padding: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex-shrink: 0;
  transition: border-color 0.4s, transform 0.4s var(--ease-out);
}

.testimonial-card:hover {
  border-color: rgba(0, 229, 200, 0.3);
  transform: translateY(-4px);
}

.testimonial-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 229, 200, 0.2);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.testimonial-name {
  font-weight: 600;
  font-size: 14px;
  display: block;
}

.testimonial-role {
  font-size: 12px;
  color: var(--text-muted);
}

.testimonial-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  transition: opacity 0.3s;
}

.testimonial-link:hover {
  opacity: 0.7;
}

/* --- Blog Section --- */
.blog {
  padding: 100px 0;
  background: var(--bg-primary);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.blog-card {
  padding: 36px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.blog-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.blog-card:hover::after {
  transform: scaleX(1);
}

.blog-card:hover {
  border-color: rgba(0, 229, 200, 0.2);
  transform: translateY(-4px);
}

.blog-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 12px;
  border: 1px solid rgba(0, 229, 200, 0.3);
  border-radius: 100px;
  display: inline-block;
  align-self: flex-start;
}

.blog-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  flex: 1;
}

.blog-arrow {
  font-size: 20px;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s var(--ease-out);
  align-self: flex-end;
}

.blog-card:hover .blog-arrow {
  opacity: 1;
  transform: translateX(0);
}

.blog-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-date {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.blog-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  flex: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-read-time {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* --- FAQ Section --- */
.faq {
  padding: 80px 0;
}

.faq-list {
  max-width: 800px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  text-align: left;
  color: var(--text-primary);
  cursor: none;
  transition: color 0.3s;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-icon {
  font-size: 24px;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.4s var(--ease-out);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out), padding 0.5s;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 28px;
}

.faq-answer p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* --- Contact Section --- */
.contact {
  padding: 140px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-primary) 0%, #060808 50%, #080808 100%);
}

.contact::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(0, 229, 200, 0.03), transparent 60%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  position: relative;
  align-items: start;
}

.contact-info {
  position: sticky;
  top: 120px;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.contact-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-detail-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--accent);
}

.contact-detail-value {
  font-size: 15px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

a.contact-detail-value:hover {
  color: var(--accent);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--text-primary);
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
  -webkit-appearance: none;
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group select option {
  background: #1a1a1a;
  color: var(--text-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 229, 200, 0.1);
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 18px 48px;
  background: var(--accent);
  color: var(--bg-primary);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
  font-family: 'Inter', sans-serif;
  width: 100%;
}

.contact-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 0 60px rgba(0, 229, 200, 0.25);
}

.contact-btn-arrow {
  transition: transform 0.3s var(--ease-out);
}

.contact-btn:hover .contact-btn-arrow {
  transform: translateX(4px);
}

.form-success {
  text-align: center;
  color: var(--accent);
  font-size: 15px;
  font-weight: 500;
  margin-top: 8px;
}

/* --- Footer --- */
.footer {
  padding: 60px 0 100px;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 60px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 80px;
}

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

.footer-col a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.3s;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.footer-bottom a {
  transition: color 0.3s;
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* ===========================
   Ambient Background Effects
   (connect sections visually)
=========================== */

/* Floating ambient glow that moves as you scroll */
body::before {
  content: '';
  position: fixed;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 229, 200, 0.015), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

body::after {
  content: '';
  position: fixed;
  bottom: -200px;
  left: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 229, 200, 0.01), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Noise texture overlay for premium feel */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9990;
  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='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  .nav { padding: 16px 32px; }
  .nav-links { display: none; }
  .hero { padding: 120px 32px 80px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .capabilities-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .link-bar-items { flex-wrap: wrap; }
  .footer-links { gap: 40px; }
  .testimonial-card { min-width: 340px; max-width: 340px; }
  .link-bar { padding-left: 32px; padding-right: 32px; }
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav { padding: 14px 20px; }
  .nav-cta { display: none; }
  .hero { padding: 100px 20px 60px; }
  .hero-bottom { flex-direction: column; gap: 32px; align-items: flex-start; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { padding: 32px 16px; }
  .stat-card + .stat-card::before { display: none; }
  .capability-card { padding: 28px; }
  .link-bar-items { flex-direction: column; align-items: center; }
  .link-bar-item::after { display: none; }
  .footer-top { flex-direction: column; gap: 40px; }
  .footer-links { gap: 32px; }
  .testimonial-card { min-width: 300px; max-width: 300px; padding: 28px; }
  .hero-scroll-indicator { display: none; }
  .menu-content { padding: 0 20px; }
  .link-bar { padding-left: 20px; padding-right: 20px; }
  .flow-divider { height: 80px; }
  
  /* Hide custom cursor on mobile/touch */
  .cursor, .cursor-follower { display: none; }
  body { cursor: auto; }
  button, a { cursor: pointer; }
  .faq-question { cursor: pointer; }
}

/* ============================
   SCROLL REVEAL — .in-view transitions
   Elements start hidden, transition in when
   IntersectionObserver adds .in-view class
   ============================ */

/* --- Base hidden states --- */
.capability-card,
.project-card,
.blog-card,
.stat-card,
.faq-item,
.testimonial-card,
.link-bar-item {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.section-header {
  opacity: 0;
  transform: translateY(40px);
  clip-path: inset(0 0 100% 0);
  transition: opacity 0.6s ease, transform 0.6s ease, clip-path 0.6s ease;
}

.case-study-content,
.contact-content {
  opacity: 0;
  transform: translateY(60px) scale(0.95);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.flow-divider {
  opacity: 0;
  transform: scaleX(0);
  transition: opacity 0.5s ease, transform 0.6s ease;
}

.brands-grid {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.footer {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* --- Revealed states --- */
.capability-card.in-view,
.project-card.in-view,
.blog-card.in-view,
.stat-card.in-view,
.faq-item.in-view,
.testimonial-card.in-view,
.link-bar-item.in-view,
.section-header.in-view,
.case-study-content.in-view,
.contact-content.in-view,
.brands-grid.in-view,
.footer.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
  clip-path: inset(0 0 0% 0);
}

.flow-divider.in-view {
  opacity: 1;
  transform: scaleX(1);
}

/* --- Stagger delays for grouped items --- */
.capability-card:nth-child(2) { transition-delay: 0.1s; }
.capability-card:nth-child(3) { transition-delay: 0.2s; }
.capability-card:nth-child(4) { transition-delay: 0.3s; }
.capability-card:nth-child(5) { transition-delay: 0.4s; }
.capability-card:nth-child(6) { transition-delay: 0.5s; }

.stat-card:nth-child(2) { transition-delay: 0.12s; }
.stat-card:nth-child(3) { transition-delay: 0.24s; }
.stat-card:nth-child(4) { transition-delay: 0.36s; }

/* --- Blog cards alternate directions --- */
.blog-card:nth-child(odd) { transform: translateX(-60px) translateY(30px); }
.blog-card:nth-child(even) { transform: translateX(60px) translateY(30px); }
.blog-card.in-view { transform: translateX(0) translateY(0); }

/* ============================
   GLITCH TEXT EFFECT
   ============================ */
.glitch {
  color: #fff;
  white-space: nowrap;
  font-weight: 900;
  position: relative;
  user-select: none;
  cursor: pointer;
  display: inline-block;
  font-size: inherit;
  font-family: inherit;
  line-height: 1;
}

.glitch::after,
.glitch::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  color: #fff;
  background-color: transparent;
  overflow: hidden;
  clip-path: inset(0 0 0 0);
}

.glitch:not(.enable-on-hover)::after {
  left: 3px;
  text-shadow: -5px 0 #ff0040;
  animation: animate-glitch 3s infinite linear alternate-reverse;
}
.glitch:not(.enable-on-hover)::before {
  left: -3px;
  text-shadow: 5px 0 #00e5c8;
  animation: animate-glitch 2s infinite linear alternate-reverse;
}

.glitch.enable-on-hover::after,
.glitch.enable-on-hover::before {
  content: '';
  opacity: 0;
  animation: none;
}

.glitch.enable-on-hover:hover::after {
  content: attr(data-text);
  opacity: 1;
  left: 3px;
  text-shadow: -5px 0 #ff0040;
  animation: animate-glitch 2s infinite linear alternate-reverse;
}
.glitch.enable-on-hover:hover::before {
  content: attr(data-text);
  opacity: 1;
  left: -3px;
  text-shadow: 5px 0 #00e5c8;
  animation: animate-glitch 1.5s infinite linear alternate-reverse;
}

@keyframes animate-glitch {
  0% { clip-path: inset(20% 0 50% 0); }
  5% { clip-path: inset(10% 0 60% 0); }
  10% { clip-path: inset(15% 0 55% 0); }
  15% { clip-path: inset(25% 0 35% 0); }
  20% { clip-path: inset(30% 0 40% 0); }
  25% { clip-path: inset(40% 0 20% 0); }
  30% { clip-path: inset(10% 0 60% 0); }
  35% { clip-path: inset(15% 0 55% 0); }
  40% { clip-path: inset(25% 0 35% 0); }
  45% { clip-path: inset(30% 0 40% 0); }
  50% { clip-path: inset(20% 0 50% 0); }
  55% { clip-path: inset(10% 0 60% 0); }
  60% { clip-path: inset(15% 0 55% 0); }
  65% { clip-path: inset(25% 0 35% 0); }
  70% { clip-path: inset(30% 0 40% 0); }
  75% { clip-path: inset(40% 0 20% 0); }
  80% { clip-path: inset(20% 0 50% 0); }
  85% { clip-path: inset(10% 0 60% 0); }
  90% { clip-path: inset(15% 0 55% 0); }
  95% { clip-path: inset(25% 0 35% 0); }
  100% { clip-path: inset(30% 0 40% 0); }
}

/* ============================
   BLUR TEXT REVEAL
   ============================ */
[data-blur-text] {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

[data-blur-text] .blur-word {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(-15px);
  transition: opacity 0.4s ease, filter 0.4s ease, transform 0.4s ease;
  will-change: transform, filter, opacity;
}

[data-blur-text].blur-in .blur-word {
  opacity: 1;
  filter: blur(0px);
  transform: translateY(0);
}






