/* ============================================
   NOETICORA — STYLESHEET (v3)
   Aesthetic: Clean, modern, confident, minimal.
   Teal + Coral palette, editorial surfaces, geometric
   sans-serif, generous whitespace, flat surfaces,
   pill-shaped CTAs, large rounded panels.
   ============================================ */

/* --- DESIGN TOKENS --- */
:root {
  /* Colours — Transformative Teal + Sunset Coral (spark) */
  --color-mint: #DFE3E7;
  --color-mint-light: #F0F4F8;
  --color-mint-pale: #F6FAFE;
  --color-green-dark: #171C1F;
  --color-green-deep: #0D1114;
  --color-accent: #006492;
  --color-accent-hover: #005478;
  --color-coral: #AE2F34;
  --color-dark-section: #171C1F;
  --color-text: #171C1F;
  --color-text-muted: #3F4850;
  --color-text-dim: #6F7881;
  --color-bg: #F6FAFE;
  --color-bg-warm: #F0F4F8;
  --color-bg-mint: #DFE3E7;
  --color-surface: #FFFFFF;
  --color-border: #DFE3E7;
  --color-border-light: #E8ECF0;
  --color-tag-bg: #EDF1F5;
  --color-sage-glow: #2D9CDB;

  /* Typography — single geometric sans-serif family */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Outfit', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;
  --max-width: 1400px;
  --gutter: clamp(1.5rem, 4vw, 3rem);

  /* Surfaces */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-pill: 100px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* FIX: Audit finding — skip-to-content link for keyboard/screen reader users */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 10000;
  background: var(--color-accent);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}
.skip-to-content:focus {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: auto;
  overflow: visible;
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
section[id] { scroll-margin-top: 80px; }
body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  font-weight: 400;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

/* --- SHARED --- */
.section-container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }
.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #046591;
  margin-bottom: var(--space-md);
}
.section-title {
  font-size: clamp(2rem, 1.4rem + 3vw, 3.5rem);
  font-weight: 400;
  background: linear-gradient(to right, #b03333 0%, #046591 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  width: 100%;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  margin-bottom: var(--space-md);
  line-height: 1.15;
  padding-bottom: 0.1em;
}
.section-intro {
  max-width: 640px;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.65;
}
.section-header { margin-bottom: var(--space-2xl); }

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  will-change: transform;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
}
.btn::after {
  content: '›';
  font-size: 1.1rem;
  font-weight: 300;
  transition: transform 0.3s ease;
}
.btn:hover::after { transform: translateX(3px); }
.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-sage-glow));
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 100, 146, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-accent-hover), #1E8AC4);
  box-shadow: 0 4px 14px rgba(0, 100, 146, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 0 40px rgba(255, 255, 255, 0.1);
}
.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}
.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-green-dark);
}
.btn-full { width: 100%; }

/* --- NAV --- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  display: flex;
  justify-content: center;
  background: transparent;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
/* scrolled state no longer adds a background bar */

/* --- NAV CONTAINER (pill, starts expanded — desktop only) --- */
.nav-container {
  max-width: 940px;
  margin: 0 auto;
  padding: 0.55rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: var(--radius-pill);
  background: rgba(246, 250, 254, 0.88);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  box-shadow:
    0 2px 8px rgba(23, 28, 31, 0.06),
    0 8px 32px rgba(23, 28, 31, 0.08),
    inset 0 0.5px 0 rgba(255, 255, 255, 0.6);
  overflow: hidden;
  will-change: max-width, padding;
  /* No transition on max-width/padding — JS scrubs these directly.
     Transitions only apply in .nav-collapsed for hover expand. */
  transition: box-shadow 0.35s ease;
}

/* --- LOGO --- */
.nav-logo {
  display: flex; align-items: center; gap: 0.75rem;
  z-index: 10;
  position: relative;
  flex-shrink: 0;
  transition: gap 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.nav-logo-img {
  width: 52px; height: 52px; object-fit: contain;
  transition: transform 0.5s var(--ease-out);
}
/* (site-wordmark removed — now integrated into hero) */

/* --- NAV LINKS (shared base) --- */
.nav-links {
  display: flex; align-items: center;
  gap: clamp(1.2rem, 2.5vw, 2.25rem);
  overflow: hidden;
  width: 380px;
  will-change: width, opacity, padding;
  /* No transition — JS scrubs width/opacity directly.
     Transitions only apply in .nav-collapsed for hover expand. */
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color var(--transition), opacity 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--color-text); }

/* --- LINKS: visible by default, symmetric padding --- */
.nav-links-left,
.nav-links-right {
  opacity: 1;
  pointer-events: auto;
}
.nav-links-left { padding-right: 2rem; justify-content: flex-end; }
.nav-links-right { padding-left: 2rem; justify-content: flex-start; }

/* ============================================
   COLLAPSED STATE (on scroll) — pill shrinks
   ============================================ */
.site-header.nav-collapsed .nav-container {
  max-width: 72px;
  padding: 0.5rem 0.6rem;
  transition:
    max-width 0.55s cubic-bezier(0.25, 1, 0.5, 1),
    padding 0.55s cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow 0.35s ease;
}
.site-header.nav-collapsed .nav-links-left,
.site-header.nav-collapsed .nav-links-right {
  width: 0;
  opacity: 0;
  pointer-events: none;
  padding: 0;
  transition:
    width 0.55s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    padding 0.55s cubic-bezier(0.25, 1, 0.5, 1);
}
.site-header.nav-collapsed .nav-links-left a,
.site-header.nav-collapsed .nav-links-right a {
  opacity: 0;
}

/* ============================================
   COLLAPSED + HOVER: pill expands symmetrically
   ============================================ */
.site-header.nav-collapsed .nav-container:hover {
  max-width: 940px;
  padding: 0.55rem 2.5rem;
}
.site-header.nav-collapsed .nav-container:hover .nav-links-left,
.site-header.nav-collapsed .nav-container:hover .nav-links-right {
  width: 380px;
  opacity: 1;
  pointer-events: auto;
}
.site-header.nav-collapsed .nav-container:hover .nav-links-left {
  padding-right: 2rem;
}
.site-header.nav-collapsed .nav-container:hover .nav-links-right {
  padding-left: 2rem;
}

/* Staggered link fade-in on expand */
.site-header.nav-collapsed .nav-container:hover .nav-links-left a,
.site-header.nav-collapsed .nav-container:hover .nav-links-right a {
  opacity: 1;
}
.site-header.nav-collapsed .nav-container:hover .nav-links-left a:nth-child(3) { transition-delay: 0.08s; }
.site-header.nav-collapsed .nav-container:hover .nav-links-left a:nth-child(2) { transition-delay: 0.14s; }
.site-header.nav-collapsed .nav-container:hover .nav-links-left a:nth-child(1) { transition-delay: 0.2s; }
.site-header.nav-collapsed .nav-container:hover .nav-links-right a:nth-child(1) { transition-delay: 0.08s; }
.site-header.nav-collapsed .nav-container:hover .nav-links-right a:nth-child(2) { transition-delay: 0.14s; }
.site-header.nav-collapsed .nav-container:hover .nav-links-right a:nth-child(3) { transition-delay: 0.2s; }

/* Subtle logo pulse on hover */
.site-header.nav-collapsed .nav-container:hover .nav-logo-img {
  transform: scale(1.08);
}

/* --- CTA in nav: plain text, same as other links --- */
.nav-links .nav-cta {
  padding: 0;
  background: none;
  color: var(--color-text-muted);
  border-radius: 0;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  font-weight: 500;
  box-shadow: none;
}
.nav-links .nav-cta:hover {
  background: none;
  color: var(--color-text);
  box-shadow: none;
  transform: none;
}
.nav-links .nav-cta::after {
  display: none;
}

/* --- MOBILE NAV (hidden on desktop) --- */
.nav-links-mobile {
  display: none;
}

/* --- MOBILE NAV TOGGLE --- */
.nav-toggle {
  display: none; flex-direction: column; gap: 6px;
  background: none; border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm); cursor: pointer;
  padding: 10px 9px;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  z-index: 10;
}
.nav-toggle span {
  display: block; width: 18px; height: 1.5px;
  background: var(--color-text); transition: all var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }

/* --- MOBILE / TABLET OVERRIDES (pill disabled below 1024px) --- */
@media (max-width: 1024px) {
  .site-header {
    padding: 0.6rem var(--gutter);
    background: transparent;
    align-items: flex-start;
  }

  /* Hide the hamburger — logo pill is the trigger */
  .nav-toggle { display: none !important; }

  /* Nav container becomes the logo-only pill */
  .nav-container {
    max-width: none;
    width: auto;
    padding: 0.5rem 0.6rem;
    border-radius: var(--radius-pill);
    background: rgba(246, 250, 254, 0.92);
    backdrop-filter: saturate(180%) blur(24px);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    box-shadow:
      0 2px 8px rgba(23, 28, 31, 0.06),
      0 8px 32px rgba(23, 28, 31, 0.08),
      inset 0 0.5px 0 rgba(255, 255, 255, 0.6);
    overflow: visible;
    justify-content: center;
    will-change: auto;
    position: relative;
    cursor: pointer;
  }

  /* Prevent collapsed class from doing anything on mobile */
  .site-header.nav-collapsed .nav-container,
  .site-header.nav-collapsed .nav-container:hover {
    max-width: none;
    padding: 0.5rem 0.6rem;
    border-radius: var(--radius-pill);
    box-shadow:
      0 2px 8px rgba(23, 28, 31, 0.06),
      0 8px 32px rgba(23, 28, 31, 0.08),
      inset 0 0.5px 0 rgba(255, 255, 255, 0.6);
  }

  /* Hide desktop link groups entirely */
  .nav-links-left,
  .nav-links-right,
  .site-header.nav-collapsed .nav-links-left,
  .site-header.nav-collapsed .nav-links-right,
  .site-header.nav-collapsed .nav-container:hover .nav-links-left,
  .site-header.nav-collapsed .nav-container:hover .nav-links-right {
    display: none !important;
    width: 0 !important;
  }

  /* Logo — same size as collapsed desktop pill */
  .nav-logo-img {
    width: 52px; height: 52px;
    transition: transform 0.5s var(--ease-out);
  }
  /* Subtle pulse on hover to hint interactivity */
  .nav-container:hover .nav-logo-img {
    transform: scale(1.08);
  }

  /* ---- PILL DROPDOWN ---- */
  .nav-links-mobile {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 50%;
    min-width: 200px;
    width: max-content;
    padding: 0.5rem 0;
    border-radius: var(--radius-lg);
    background: rgba(246, 250, 254, 0.95);
    backdrop-filter: saturate(180%) blur(24px);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    box-shadow:
      0 4px 12px rgba(23, 28, 31, 0.08),
      0 12px 40px rgba(23, 28, 31, 0.12),
      inset 0 0.5px 0 rgba(255, 255, 255, 0.6);
    /* Closed state */
    opacity: 0;
    transform: translate(-50%, -8px) scale(0.96);
    transform-origin: top center;
    pointer-events: none;
    transition:
      opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
  }
  .nav-links-mobile.open {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
    pointer-events: auto;
  }
  .nav-links-mobile a {
    display: block;
    padding: 0.7rem 1.5rem;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    color: var(--color-text-muted);
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
    opacity: 1; transform: none; max-width: none; width: auto;
  }
  .nav-links-mobile a:hover {
    color: var(--color-text);
    background: rgba(0, 100, 146, 0.05);
  }
  .nav-links-mobile .nav-cta {
    padding: 0.7rem 1.5rem;
    background: none;
    color: var(--color-accent);
    border: none;
    border-radius: 0;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    box-shadow: none;
  }
  .nav-links-mobile .nav-cta::after {
    display: none;
  }
  .nav-links-mobile .nav-cta:hover {
    background: rgba(0, 100, 146, 0.05);
    color: var(--color-accent-hover);
    box-shadow: none;
    transform: none;
  }

  /* Staggered link fade-in when dropdown opens */
  .nav-links-mobile a {
    opacity: 0;
    transform: translateY(-6px);
    transition:
      opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
      color var(--transition),
      background var(--transition);
  }
  .nav-links-mobile.open a {
    opacity: 1;
    transform: translateY(0);
  }
  .nav-links-mobile.open a:nth-child(1) { transition-delay: 0.03s; }
  .nav-links-mobile.open a:nth-child(2) { transition-delay: 0.06s; }
  .nav-links-mobile.open a:nth-child(3) { transition-delay: 0.09s; }
  .nav-links-mobile.open a:nth-child(4) { transition-delay: 0.12s; }
  .nav-links-mobile.open a:nth-child(5) { transition-delay: 0.15s; }
  .nav-links-mobile.open a:nth-child(6) { transition-delay: 0.18s; }

  /* Backdrop (light touch — just catches clicks outside) */
  .nav-backdrop {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: transparent;
    z-index: 998;
    opacity: 0; pointer-events: none;
    transition: opacity var(--transition);
  }
  .nav-backdrop.open { opacity: 1; pointer-events: auto; }
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: min(100vh, 900px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-bg);
}

/* --- WEBGL SHADER CANVAS --- */
.hero-shader {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(to bottom,
    transparent 0%, rgba(0,0,0,0.05) 4%, rgba(0,0,0,0.15) 8%, rgba(0,0,0,0.4) 14%, rgba(0,0,0,0.7) 20%, black 28%,
    black 72%,
    rgba(0,0,0,0.7) 80%, rgba(0,0,0,0.4) 86%, rgba(0,0,0,0.15) 92%, rgba(0,0,0,0.05) 96%, transparent 100%);
  mask-image: linear-gradient(to bottom,
    transparent 0%, rgba(0,0,0,0.05) 4%, rgba(0,0,0,0.15) 8%, rgba(0,0,0,0.4) 14%, rgba(0,0,0,0.7) 20%, black 28%,
    black 72%,
    rgba(0,0,0,0.7) 80%, rgba(0,0,0,0.4) 86%, rgba(0,0,0,0.15) 92%, rgba(0,0,0,0.05) 96%, transparent 100%);
}
/* When shader is active, hide the CSS fallback orbs */
.hero.shader-active .hero-visual { opacity: 0; }

.hero-grain {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0.022; pointer-events: none; z-index: 3;
  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;
}

/* --- CURSOR GLOW (lerp follower) --- */
.hero-cursor-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,156,219,0.12) 0%, rgba(0,100,146,0.06) 40%, transparent 70%);
  pointer-events: none;
  z-index: 2;
  transform: translate(-50%, -50%);
  opacity: 0;
  will-change: transform, opacity;
  mix-blend-mode: screen;
}

.hero-layout {
  position: relative;
  z-index: 4;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-3xl) var(--gutter);
  padding-bottom: var(--space-xl);
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(100vh, 900px);
}
.hero-content { max-width: 720px; }

/* --- HERO TITLE — gradient text --- */
.hero-title {
  font-size: clamp(2.5rem, 1.5rem + 4.5vw, 4.5rem);
  font-weight: 400;
  margin-bottom: var(--space-lg);
  line-height: 1.15;
  padding-bottom: 0.05em;
  background: linear-gradient(to right, #b03333 0%, #046591 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hero-em {
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 400;
}

.hero-actions {
  display: flex; gap: var(--space-sm); flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}
.hero-sub {
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.15rem);
  color: var(--color-text-muted);
  max-width: 520px;
  font-weight: 300;
  line-height: 1.65;
}
/* --- HERO VISUAL: CSS FALLBACK ORBS (hidden when WebGL active) --- */
.hero-visual {
  position: absolute; top: 0; right: -5%; bottom: 0;
  width: 55%; z-index: 1; pointer-events: none;
  transition: opacity 0.5s ease;
}
.hero-orb {
  position: absolute;
  filter: blur(100px);
  will-change: transform;
  animation: morphBlob 14s ease-in-out infinite alternate;
}
.orb-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle at 30% 30%, #2D9CDB, var(--color-accent));
  opacity: 0.22; top: 5%; right: 0%;
  border-radius: 60% 40% 55% 45% / 55% 60% 40% 45%;
}
.orb-2 {
  width: 340px; height: 340px;
  background: radial-gradient(circle at 60% 40%, #D46A6E, #AE2F34);
  opacity: 0.10; top: 45%; right: 25%;
  border-radius: 45% 55% 40% 60% / 50% 45% 55% 50%;
  animation-duration: 18s;
  animation-direction: alternate-reverse;
}
.orb-3 {
  width: 240px; height: 240px;
  background: radial-gradient(circle at 50% 50%, #ffffff, #E0E8F0);
  opacity: 0.18; bottom: 12%; right: 8%;
  border-radius: 50% 60% 45% 55% / 55% 50% 60% 45%;
  animation-duration: 16s;
  animation-delay: -4s;
}
@keyframes morphBlob {
  0%   { border-radius: 60% 40% 55% 45% / 55% 60% 40% 45%; transform: translate(0, 0) scale(1); }
  25%  { border-radius: 45% 55% 50% 50% / 60% 40% 55% 45%; transform: translate(15px, -20px) scale(1.04); }
  50%  { border-radius: 50% 50% 40% 60% / 45% 55% 50% 50%; transform: translate(-10px, 15px) scale(0.97); }
  75%  { border-radius: 55% 45% 60% 40% / 50% 50% 45% 55%; transform: translate(8px, -8px) scale(1.02); }
  100% { border-radius: 40% 60% 50% 50% / 55% 45% 60% 40%; transform: translate(-5px, 10px) scale(1); }
}

/* --- NEURAL NET LINES --- */
.hero-net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}
.hero-net line {
  stroke-linecap: round;
}

/* --- FLOATING ACCENT SHAPES (parallax targets) --- */
.hero-shapes {
  position: absolute; inset: 0;
  z-index: 1; pointer-events: none;
  overflow: hidden;
}
.hero-shape {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
  pointer-events: auto;
  cursor: default;
  transition: box-shadow 0.4s ease;
}
/* Invisible hit area — makes tiny dots easier to hover */
.hero-shape::before {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
}
.hero-shape:hover {
  box-shadow: 0 0 20px rgba(0,100,146,0.3), 0 0 40px rgba(45,156,219,0.15);
}
/* No CSS animation on shapes — GSAP controls all transforms
   so hover scale doesn't conflict */
.shape-1  { width: 12px; height: 12px; background: var(--color-coral);    opacity: 0.35; top: 18%; left: 62%; }
.shape-2  { width: 8px;  height: 8px;  background: var(--color-accent);   opacity: 0.3;  top: 70%; left: 55%; }
.shape-3  { width: 18px; height: 18px; border: 2px solid rgba(45,156,219,0.25);  background: transparent; top: 30%; left: 78%; }
.shape-4  { width: 6px;  height: 6px;  background: var(--color-sage-glow); opacity: 0.4;  top: 55%; left: 72%; }
.shape-5  { width: 5px;  height: 5px;  background: var(--color-coral);    opacity: 0.25; top: 42%; left: 45%; }
.shape-6  { width: 10px; height: 10px; border: 1.5px solid rgba(0,100,146,0.2);  background: transparent; top: 12%; left: 50%; }
.shape-7  { width: 4px;  height: 4px;  background: var(--color-accent);   opacity: 0.3;  top: 82%; left: 65%; }
.shape-8  { width: 7px;  height: 7px;  background: var(--color-sage-glow); opacity: 0.2;  top: 25%; left: 88%; }
.shape-9  { width: 14px; height: 14px; border: 2px solid rgba(174,47,52,0.15);   background: transparent; top: 65%; left: 82%; }
.shape-10 { width: 5px;  height: 5px;  background: var(--color-coral);    opacity: 0.3;  top: 8%;  left: 72%; }
.shape-11 { width: 3px;  height: 3px;  background: var(--color-accent);   opacity: 0.35; top: 78%; left: 42%; }
.shape-12 { width: 8px;  height: 8px;  border: 1.5px solid rgba(45,156,219,0.2); background: transparent; top: 50%; left: 92%; }
.shape-13 { width: 6px;  height: 6px;  background: var(--color-coral);    opacity: 0.3;  top: 35%; left: 68%; }
.shape-14 { width: 4px;  height: 4px;  background: var(--color-accent);   opacity: 0.25; top: 15%; left: 40%; }
.shape-15 { width: 10px; height: 10px; border: 1.5px solid rgba(174,47,52,0.18); background: transparent; top: 88%; left: 55%; }
.shape-16 { width: 5px;  height: 5px;  background: var(--color-sage-glow); opacity: 0.3;  top: 60%; left: 38%; }
.shape-17 { width: 7px;  height: 7px;  background: var(--color-coral);    opacity: 0.2;  top: 22%; left: 92%; }
.shape-18 { width: 3px;  height: 3px;  background: var(--color-accent);   opacity: 0.35; top: 48%; left: 85%; }
.shape-19 { width: 12px; height: 12px; border: 2px solid rgba(0,100,146,0.15);   background: transparent; top: 75%; left: 78%; }
.shape-20 { width: 5px;  height: 5px;  background: var(--color-sage-glow); opacity: 0.25; top: 5%;  left: 58%; }

/* Hero buttons inherit the base .btn magnetic-friendly transition */

/* --- ACCESSIBILITY: Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .hero-orb, .hero-shape { animation: none !important; }
  .hero-shader { display: none; }
  .hero-cursor-glow { display: none; }
}

@media (max-width: 1024px) {
  .hero-shapes { display: none; }
  .hero-cursor-glow { display: none; }
}



/* --- SERVICES --- */
.services { padding: var(--space-3xl) 0; background: var(--color-bg); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--color-coral), var(--color-accent));
  opacity: 0; transition: opacity var(--transition);
}
.service-card:hover {
  border-color: var(--color-mint);
  transform: translateY(-3px);
}
.service-card:hover::before { opacity: 1; }
.service-number {
  font-family: var(--font-display);
  font-size: 0.72rem; font-weight: 500;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}
.service-image-slot { margin-bottom: var(--space-md); border-radius: var(--radius-md); overflow: hidden; }
.service-image-slot img, .work-image-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3/2;
}
.service-title {
  font-size: 1.25rem; font-weight: 400;
  color: var(--color-text); margin-bottom: var(--space-sm);
}
.service-desc {
  color: var(--color-text-muted);
  font-size: 0.95rem; font-weight: 300;
  line-height: 1.75;
}
@media (max-width: 1100px) { .services-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-md); } }
/* Mobile carousel shared pattern — applied via media query below */


/* --- PROCESS --- */
.process {
  padding: var(--space-3xl) 0;
  background: var(--color-mint-pale);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
  position: relative;
  overflow: hidden;
}
.process::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('Idea_Launch.png') center / cover no-repeat;
  opacity: 0.06;
  pointer-events: none;
}
.process > .section-container { position: relative; z-index: 1; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.process-step { padding: var(--space-lg) var(--space-md); position: relative; }
.step-marker { display: flex; flex-direction: column; align-items: center; margin-bottom: var(--space-md); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--color-accent);
  font-family: var(--font-display);
  font-size: 0.78rem; font-weight: 600;
  color: var(--color-green-deep);
  margin-bottom: var(--space-sm);
  transition: all var(--transition);
  background: var(--color-surface);
}
.process-step:hover .step-num {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
}
.step-line { width: 1px; height: 32px; background: var(--color-border); }
.step-content h3 {
  font-size: 1.1rem; font-weight: 400;
  color: var(--color-text); margin-bottom: var(--space-xs);
  text-align: center;
}
.step-content p {
  color: var(--color-text-muted);
  font-size: 0.9rem; font-weight: 300;
  text-align: center; line-height: 1.7;
}
@media (max-width: 1000px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Process mobile carousel handled in shared block below */

/* --- WHAT WE BUILD --- */
.work { padding: var(--space-3xl) 0; background: var(--color-bg); }
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}
.work-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  background: var(--color-bg);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.work-card:hover {
  border-color: var(--color-mint);
}
.work-image-slot { aspect-ratio: 3/2; overflow: hidden; }
.work-info { padding: var(--space-md) var(--space-lg); }
.work-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #046591;
  background: rgba(4, 101, 145, 0.08);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-xs);
}
.work-info h3 { font-size: 1.15rem; font-weight: 400; color: var(--color-text); margin-bottom: var(--space-xs); }
.work-info p { color: var(--color-text-muted); font-size: 0.9rem; font-weight: 300; line-height: 1.7; }
@media (max-width: 1100px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }

/* --- ABOUT --- */
.about {
  padding: var(--space-3xl) 0;
  background: var(--color-bg-warm);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}
.about-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--space-2xl); align-items: start; }
@media (max-width: 1000px) and (min-width: 801px) {
  .about-layout { grid-template-columns: 1fr 1.6fr; gap: var(--space-lg); }
}
.about-image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
}
.about-body p { color: var(--color-text-muted); font-weight: 300; margin-bottom: var(--space-sm); font-size: 1rem; line-height: 1.75; }
.about-body em { color: var(--color-accent); font-style: italic; }
.about-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md); margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}
.stat { text-align: center; }
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem; font-weight: 400;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
}
.stat-label {
  font-family: var(--font-display);
  font-size: 0.72rem; font-weight: 400;
  color: var(--color-text-dim);
  letter-spacing: 0.04em;
}
@media (max-width: 800px) {
  .about-layout { grid-template-columns: 1fr; gap: var(--space-xl); }
  .about-image-col { max-width: 100%; width: 100%; }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: var(--space-sm); }
}
@media (max-width: 480px) {
  .about-stats { grid-template-columns: 1fr; gap: var(--space-sm); }
  .stat { text-align: left; }
}

/* --- FAQ --- */
.faq { padding: var(--space-3xl) 0; background: var(--color-bg); }
.faq-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(var(--space-lg), 4vw, var(--space-2xl)); align-items: start; }
.faq-intro { color: var(--color-text-muted); font-size: 1rem; font-weight: 300; margin-top: var(--space-sm); }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item summary {
  padding: var(--space-md) 0; cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 400;
  color: var(--color-text);
  list-style: none;
  display: flex; align-items: center;
  justify-content: space-between; gap: var(--space-sm);
  transition: color var(--transition);
}
.faq-item summary:hover { color: var(--color-green-dark); }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem; font-weight: 300;
  color: var(--color-accent);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--color-coral); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-answer { padding-bottom: var(--space-md); }
.faq-answer p { color: var(--color-text-muted); font-size: 0.95rem; font-weight: 300; line-height: 1.8; }
@media (max-width: 800px) { .faq-layout { grid-template-columns: 1fr; gap: var(--space-xl); } }

/* --- CONTACT --- */
.contact {
  padding: var(--space-3xl) 0;
  background: var(--color-bg-warm);
  border-top: 1px solid var(--color-border-light);
}
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(var(--space-lg), 4vw, var(--space-2xl)); align-items: start; }
.contact-text p {
  color: var(--color-text-muted);
  font-weight: 300;
  margin-bottom: var(--space-lg);
  font-size: 1.05rem; line-height: 1.75;
}
.contact-email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 400;
  color: var(--color-green-dark);
  border-bottom: 1px solid var(--color-mint);
  padding-bottom: 2px;
  transition: all var(--transition);
}
.contact-email:hover { color: var(--color-coral); border-color: var(--color-coral); }
.contact-form { display: flex; flex-direction: column; gap: var(--space-md); }
.form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.form-group label {
  font-family: var(--font-display);
  font-size: 0.78rem; font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}
.form-group input, .form-group textarea {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem; font-weight: 300;
  padding: 0.9rem 1.1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none; resize: vertical;
}
/* FIX: Audit finding — styled select to match existing form inputs */
.form-group select {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236F7881' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-group select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(0, 100, 146, 0.15);
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(0, 100, 146, 0.15);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--color-text-dim); }
@media (max-width: 800px) { .contact-layout { grid-template-columns: 1fr; } }

/* --- FOOTER --- */
.site-footer {
  border-top: 1px solid var(--color-border-light);
  padding: var(--space-2xl) 0 var(--space-lg);
  background: var(--color-bg);
}
.footer-container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }
.footer-top {
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: var(--space-2xl); margin-bottom: var(--space-2xl);
}
.footer-wordmark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.footer-wordmark .logo-blue { color: #b03333; }
.footer-wordmark .accent { color: #046591; }
.footer-tagline {
  color: var(--color-text-dim);
  font-size: 0.9rem; font-weight: 300;
  margin-top: var(--space-sm); line-height: 1.6;
}
.footer-links { display: flex; gap: clamp(var(--space-lg), 4vw, var(--space-2xl)); flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--color-text-dim);
  margin-bottom: var(--space-xs);
}
.footer-col a {
  font-family: var(--font-display);
  font-size: 0.9rem; font-weight: 300;
  color: var(--color-text-muted);
}
.footer-col a:hover { color: var(--color-text); }
.footer-bottom {
  border-top: 1px solid var(--color-border-light);
  padding-top: var(--space-md);
}
.footer-bottom p {
  font-family: var(--font-display);
  font-size: 0.7rem; font-weight: 400;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-text-dim);
}
@media (max-width: 600px) { .footer-top { flex-direction: column; gap: var(--space-xl); } }


/* ============================================
   LEGAL PAGES (Privacy Policy, Terms)
   ============================================ */
.legal-page {
  padding: calc(var(--space-3xl) + 80px) 0 var(--space-3xl);
  background: var(--color-bg);
  min-height: 100vh;
}
.legal-header {
  margin-bottom: var(--space-xl);
}
.legal-updated {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--color-text-dim);
  margin-top: var(--space-sm);
}
.legal-body {
  max-width: 780px;
}
.legal-body h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-text);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}
.legal-body p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}
.legal-body a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-body a:hover {
  color: var(--color-accent-hover);
}
.legal-body strong {
  font-weight: 500;
  color: var(--color-text);
}
.legal-body code {
  font-size: 0.85em;
  background: var(--color-bg-warm);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-family: monospace;
}


/* ============================================
   MOBILE CAROUSELS — shared horizontal-scroll pattern
   ============================================ */
@media (max-width: 640px) {
  .services-grid,
  .work-grid,
  .process-grid,
  .service-process .process-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--space-md);
    padding-bottom: var(--space-md);
    scrollbar-width: none;
  }
  .services-grid::-webkit-scrollbar,
  .work-grid::-webkit-scrollbar,
  .process-grid::-webkit-scrollbar,
  .service-process .process-grid::-webkit-scrollbar {
    display: none;
  }
  .service-card,
  .work-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
  }
  .process-step,
  .service-process .process-step {
    flex: 0 0 80%;
    scroll-snap-align: center;
  }
  .process-grid,
  .service-process .process-grid {
    gap: 0;
  }
  .step-content h3, .step-content p { text-align: center; }
}
@media (max-width: 900px) {
  .highlights-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--space-md);
    padding-bottom: var(--space-md);
    scrollbar-width: none;
  }
  .highlights-grid::-webkit-scrollbar { display: none; }
  .highlight-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
  }
}

/* ============================================
   MOBILE CAROUSEL SCROLL INDICATORS
   ============================================ */
.scroll-dots {
  display: none;
}
@media (max-width: 640px) {
  .scroll-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding-top: var(--space-xs);
  }
  .scroll-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-border);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.25s, transform 0.25s;
  }
  .scroll-dot.is-active {
    background: var(--color-accent);
    transform: scale(1.25);
  }
}


/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--color-green-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-md) var(--gutter);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.cookie-banner.is-visible {
  transform: translateY(0);
}
.cookie-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.cookie-banner-text {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  flex: 1;
  min-width: 280px;
}
.cookie-banner-text a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner-text a:hover {
  color: #fff;
}
.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
.cookie-btn {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-pill, 50px);
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.cookie-btn-accept {
  background: var(--color-accent);
  color: #fff;
}
.cookie-btn-accept:hover {
  background: var(--color-accent-hover);
}
.cookie-btn-decline {
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.cookie-btn-decline:hover {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.3);
}
@media (max-width: 600px) {
  .cookie-banner-inner { flex-direction: column; text-align: center; }
  .cookie-banner-actions { width: 100%; justify-content: center; }
}


/* ============================================
   SCROLL-SCRUBBED ANIMATION SUPPORT
   JS directly sets transform/opacity every frame.
   NO CSS transitions on scrubbed elements — they
   would fight the JS and cause mushy lag.
   ============================================ */

/* --- SCROLL PROGRESS BAR --- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-coral));
  z-index: 10000;
  pointer-events: none;
  /* No transition — JS drives width directly */
}

/* --- NAV HIDE/SHOW (disabled — pill replaces this) --- */

/* --- NAV ACTIVE LINK INDICATOR --- */
.nav-links a.active {
  color: var(--color-text);
}
.nav-links a {
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 50%;
  width: 0; height: 1.5px;
  background: var(--color-accent);
  transition: width 0.3s var(--ease-out), left 0.3s var(--ease-out);
}
.nav-links a.active::after,
.nav-links a:hover::after {
  width: 100%; left: 0;
}
@media (max-width: 1024px) {
  .nav-links a::after { display: none; }
}

/* --- SCRUBBED ELEMENTS: will-change kept minimal ---
   Too many will-change layers hurts performance (each creates a
   GPU compositing layer). Only promote elements that animate
   continuously. Section headers, stats, etc. animate once on
   scroll-in and don't need permanent promotion. */
.hero-orb,
.service-card,
.process-step {
  will-change: transform, opacity;
}
.work-card {
  will-change: transform, opacity, filter;
}

/* --- INTERACTIVE ELEMENTS: always clickable even during scroll fade --- */
.hero-actions,
.btn,
.faq-item summary,
.contact-form button,
.contact-form input,
.contact-form textarea {
  pointer-events: auto !important;
}

/* Cards still need border-color transition for hover */
.service-card,
.work-card {
  transition: border-color var(--transition), transform 0.2s ease-out;
}

/* --- FAQ SMOOTH OPEN/CLOSE --- */
.faq-answer {
  animation: faqOpen 0.35s var(--ease-out);
}
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- PAGE HERO (text left, faded background image right) --- */
.page-hero {
  position: relative;
  padding: clamp(7rem, 14vw, 10rem) 0 clamp(4rem, 8vw, 6rem);
  background: var(--color-bg);
  overflow: hidden;
}
.page-hero .page-hero-bg {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 100%;
  z-index: 0;
  pointer-events: none;
}
.page-hero .page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  -webkit-mask-image: linear-gradient(to right, transparent 15%, rgba(0,0,0,0.08) 40%, rgba(0,0,0,0.18) 70%, rgba(0,0,0,0.22) 100%);
  mask-image: linear-gradient(to right, transparent 15%, rgba(0,0,0,0.08) 40%, rgba(0,0,0,0.18) 70%, rgba(0,0,0,0.22) 100%);
}
.page-hero .section-container {
  position: relative; z-index: 2;
  max-width: var(--max-width);
}
.page-hero-text {
  max-width: 560px;
}
.page-hero .section-label {
  margin-bottom: var(--space-md);
}
.page-hero .section-title {
  margin-bottom: var(--space-md);
  font-size: clamp(2.2rem, 1.4rem + 3.5vw, 3.8rem);
}
.page-hero .section-intro {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 520px;
  font-weight: 300;
  line-height: 1.7;
}
.page-hero .hero-actions {
  display: flex; gap: var(--space-sm); flex-wrap: wrap;
  margin-top: var(--space-lg);
}
@media (max-width: 800px) {
  .page-hero {
    padding: clamp(6rem, 10vw, 8rem) 0 clamp(3rem, 6vw, 4rem);
  }
  .page-hero .section-title {
    font-size: clamp(1.8rem, 1rem + 3vw, 2.8rem);
  }
  .page-hero .page-hero-bg img {
    -webkit-mask-image: linear-gradient(to bottom, transparent 10%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.15) 100%);
    mask-image: linear-gradient(to bottom, transparent 10%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.15) 100%);
  }
}


/* --- SERVICE HIGHLIGHTS (3-card grid, numbered) --- */
.service-highlights {
  padding: var(--space-3xl) 0;
  background: var(--color-bg);
}
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.highlight-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.highlight-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--color-coral), var(--color-accent));
  opacity: 0; transition: opacity var(--transition);
}
.highlight-card:hover {
  border-color: var(--color-mint);
  transform: translateY(-3px);
}
.highlight-card:hover::before { opacity: 1; }
.highlight-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; width: 100%;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.12;
  pointer-events: none;
  /* no directional fade — even coverage */
}
.highlight-card--responsive::after { background-image: url('IWD_Responsive.png'); }
.highlight-card--seo::after        { background-image: url('IWD_SEO.png'); }
.highlight-card--custom::after     { background-image: url('IWD_Custom.png'); }
.highlight-card--clean::after      { background-image: url('CAD_Clean.png'); }
.highlight-card--scalable::after   { background-image: url('CAD_Scalable.png'); }
.highlight-card--secure::after     { background-image: url('CAD_Secure.png'); }
.highlight-card--smart::after      { background-image: url('ML_Smart.png'); }
.highlight-card--flexible::after   { background-image: url('ML_Flexible.png'); }
.highlight-card--production::after { background-image: url('ML_Production.png'); }
.highlight-card > * { position: relative; z-index: 1; }
.highlight-number {
  font-family: var(--font-display);
  font-size: 0.72rem; font-weight: 500;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}
.highlight-card h3 {
  font-size: 1.2rem; font-weight: 400;
  color: var(--color-text); margin-bottom: var(--space-sm);
}
.highlight-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem; font-weight: 300;
  line-height: 1.75; margin: 0;
}
/* Highlights mobile carousel handled in shared block below */

/* --- SERVICE PROCESS (on service pages — alternating bg + background image) --- */
.service-process {
  padding: var(--space-3xl) 0;
  background: var(--color-mint-pale);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
  position: relative;
  overflow: hidden;
}
.service-process::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('Idea_Launch.png') center / cover no-repeat;
  opacity: 0.06;
  pointer-events: none;
}
.service-process > .section-container {
  position: relative;
  z-index: 1;
}

/* --- CTA SECTION (dark, immersive) --- */
.cta-section {
  padding: var(--space-3xl) 0;
  background: linear-gradient(160deg, #0D1114 0%, #171C1F 50%, #1E2A32 100%);
  position: relative;
  overflow: hidden;
}
.cta-section .cta-orb {
  position: absolute; border-radius: 50%; filter: blur(120px); pointer-events: none;
}
.cta-section .cta-orb-1 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #2D9CDB, var(--color-accent));
  opacity: 0.1; top: -20%; left: 10%;
}
.cta-section .cta-orb-2 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, #D46A6E, #AE2F34);
  opacity: 0.06; bottom: -10%; right: 15%;
}
.cta-content {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}
.cta-content h2 {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  margin-bottom: var(--space-md);
  background: linear-gradient(to right, #e8e8e8 0%, #ffffff 40%, #2D9CDB 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  width: 100%;
  padding-bottom: 0.1em;
}
.cta-content p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: var(--space-lg);
}
.cta-content .btn-outline {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
}
.cta-content .btn-outline:hover {
  border-color: var(--color-accent);
  color: #ffffff;
}

/* --- SERVICE PAGES RESPONSIVE --- */
@media (max-width: 1024px) {
  .service-process .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* Service page process mobile carousel handled in shared block below */


/* --- NAV CURRENT PAGE INDICATOR --- */
.nav-current {
  color: var(--color-accent) !important;
}
.nav-links-mobile .nav-current {
  color: var(--color-accent) !important;
}
