/* ═══════════════════════════════════════════════════════════════════════════
   Service Safe Ltd — Cinematic GSAP Snap Scroll
   styles.css — Design tokens + layer system + components
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Fonts ─────────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Design Tokens ─────────────────────────────────────────────────────────── */
:root {
  /* Colors */
  --c-bg:          #0a1628;
  --c-bg-glass:    rgba(5, 11, 24, 0.85);
  --c-primary:     #3B82F6;
  --c-deep:        #2563EB;
  --c-gold:        #FFD700;
  --c-lime:        #84ff5c;
  --c-white:       #ffffff;
  --c-muted:       rgba(255, 255, 255, 0.6);

  /* Glass */
  --glass-bg:      rgba(5, 11, 24, 0.82);
  --glass-border:  rgba(59, 130, 246, 0.28);
  --glass-border-gold: rgba(255, 215, 0, 0.4);
  --glass-blur:    18px;
  --glass-radius:  12px;

  /* Typography */
  --font-display:  'Space Grotesk', sans-serif;
  --font-body:     'Space Grotesk', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;

  /* Font sizes */
  --fs-2xl: clamp(2.5rem, 6vw, 5rem);
  --fs-xl:  clamp(1.8rem, 4vw, 3rem);
  --fs-lg:  clamp(1.2rem, 2.5vw, 1.8rem);
  --fs-md:  clamp(1rem, 1.8vw, 1.2rem);
  --fs-sm:  0.875rem;
  --fs-xs:  0.75rem;

  /* Spacing (8px unit) */
  --u:  8px;
  --sp-1: calc(var(--u) * 1);
  --sp-2: calc(var(--u) * 2);
  --sp-3: calc(var(--u) * 3);
  --sp-4: calc(var(--u) * 4);
  --sp-6: calc(var(--u) * 6);
  --sp-8: calc(var(--u) * 8);
  --sp-12: calc(var(--u) * 12);
  --sp-16: calc(var(--u) * 16);

  /* Animation */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:    0.2s;
  --dur-mid:     0.5s;
  --dur-slow:    0.9s;

  /* Layout */
  --section-h: 100vh;
  --header-h:  72px;
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: auto; }
body {
  background: var(--c-bg);
  color: var(--c-white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* ── Skip link ─────────────────────────────────────────────────────────────── */
.skip-link { display: none; }

/* ── Scroller (snap container) ─────────────────────────────────────────────── */
#scroller {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}
#scroller::-webkit-scrollbar { display: none; }

/* ── Scene (snap panel) ─────────────────────────────────────────────────────── */
.scene {
  position: relative;
  height: var(--section-h);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  contain: layout style paint;
  isolation: isolate;
}

/* ── Layer system ──────────────────────────────────────────────────────────── */
.layer--bg,
.layer--mid,
.layer--fg,
.layer--overlay {
  position: absolute;
  inset: 0;
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.layer--bg      { z-index: 1; }
.layer--mid     { z-index: 2; pointer-events: none; }
.layer--fg      { z-index: 3; overflow: hidden auto; }
.layer--overlay { z-index: 4; pointer-events: none; }

/* Background image base */
.layer--bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.layer--bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 22, 40, 0.55) 0%,
    rgba(10, 22, 40, 0.3) 40%,
    rgba(10, 22, 40, 0.5) 100%
  );
}

/* Mid layer default */
.layer--mid {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: var(--sp-4);
}

/* Scanline overlay */
.layer--overlay {
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255,255,255,0.015) 2px,
    rgba(255,255,255,0.015) 4px
  );
}

/* ── Header ────────────────────────────────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(32px, 5vw, 72px) 0;
  background: transparent;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(5, 11, 24, 0.88);
  border: 1px solid rgba(59, 130, 246, 0.45);
  border-radius: 999px;
  padding: var(--sp-1) var(--sp-4) var(--sp-1) var(--sp-1);
  backdrop-filter: blur(16px);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.brand:hover { border-color: rgba(59,130,246,0.85); background: rgba(8,16,34,0.95); }
.brand:active { transform: scale(0.98); }
.brand__mark {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 50%;
}
.brand__name {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.brand__tagline {
  font-size: var(--fs-xs);
  color: var(--c-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
}

.header-nav {
  display: flex;
  gap: clamp(28px, 4vw, 52px);
  background: rgba(5, 11, 24, 0.82);
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 999px;
  padding: var(--sp-2) clamp(32px, 4vw, 56px);
  backdrop-filter: blur(16px);
}
.header-nav__link {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  transition: color var(--dur-fast);
  letter-spacing: 0.04em;
}
.header-nav__link:hover { color: var(--c-white); }

/* ── Services Dropdown ──────────────────────────────────────────────────────── */
.nav-dropdown { position: relative; }
.nav-dropdown__toggle {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color var(--dur-fast);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}
.nav-dropdown__toggle:hover { color: var(--c-white); }
.nav-dropdown__arrow {
  font-size: 0.65em;
  transition: transform 0.2s ease;
  display: inline-block;
}
.nav-dropdown.open .nav-dropdown__arrow { transform: rotate(180deg); }

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  background: rgba(5, 11, 24, 0.96);
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  min-width: 290px;
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 200;
  pointer-events: none;
}
.nav-dropdown.open .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--c-white);
  transition: background 0.18s;
  cursor: pointer;
  font-size: var(--fs-sm);
}
.dropdown-item:hover { background: rgba(59, 130, 246, 0.12); }
.dropdown-item__icon {
  font-size: 1.1rem;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 9px;
  flex-shrink: 0;
  color: #60a5fa;
}
.dropdown-item__icon svg {
  width: 20px;
  height: 20px;
  display: block;
}
.dropdown-item__text strong {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
}
.dropdown-item__text small {
  display: block;
  font-size: var(--fs-xs);
  color: var(--c-muted);
  margin-top: 2px;
}
.dropdown-item--view-all {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: 6px;
  padding-top: 14px;
  color: var(--c-primary);
  font-weight: 600;
  justify-content: center;
  letter-spacing: 0.02em;
}

/* ── Dot navigation ─────────────────────────────────────────────────────────── */
.dot-nav { display: none; }

/* ── Scroll hint ────────────────────────────────────────────────────────────── */
.scroll-hint { display: none; }

/* ── Loader ─────────────────────────────────────────────────────────────────── */
/* loader removed */

/* ── FG layout helper ───────────────────────────────────────────────────────── */
.fg-center {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + var(--sp-4)) var(--sp-8) var(--sp-4);
  text-align: center;
}
.fg-left {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + var(--sp-8)) var(--sp-12) var(--sp-8);
  max-width: 700px;
}

/* Hero-specific left-aligned layout */
.fg-hero {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + var(--sp-4)) var(--sp-8) var(--sp-4);
  padding-left: clamp(80px, 14vw, 200px);
  max-width: 860px;
}

/* hero badge removed */

/* Hero heading gradient on AI & IT */
.accent-gradient {
  background: linear-gradient(90deg, #4fc3f7 0%, #FFD700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero stats — full-width bottom edge bar (sits behind the CTA buttons) */
.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 5vw, 72px);
  padding: 14px clamp(24px, 5vw, 64px);
  border-top: 1px solid rgba(255,255,255,0.07);
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.15) 70%, transparent 100%);
  backdrop-filter: blur(4px);
  pointer-events: none;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.hero-stat__label {
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  font-weight: 600;
}
.hero-stat__value {
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.hero-stat__divider {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
  margin: 0 0;
}

/* Lift the hero buttons above the stats bar so they don't visually collide */
#s1-hero .btn-row { position: relative; z-index: 5; }

/* ── Section labels ─────────────────────────────────────────────────────────── */
.section-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-lime);
  margin-bottom: var(--sp-3);
}

/* ── Headings ───────────────────────────────────────────────────────────────── */
.heading-xl {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-top: var(--sp-2);
}
.heading-lg {
  font-size: var(--fs-xl);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.heading-xl .accent-gold { color: var(--c-gold); }
.heading-xl .accent-blue { color: var(--c-primary); }
.heading-xl .accent-lime { color: var(--c-lime); }

.subheading {
  font-size: var(--fs-md);
  color: var(--c-muted);
  max-width: 560px;
  margin-top: var(--sp-2);
  line-height: 1.6;
}

/* ── HUD counters ────────────────────────────────────────────────────────────── */
.hud-row {
  display: flex;
  gap: var(--sp-8);
  margin-top: var(--sp-8);
  flex-wrap: wrap;
  justify-content: center;
}
.hud-counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1);
}
.hud-counter__value {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--c-lime);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.hud-counter__unit {
  font-size: var(--fs-sm);
  color: var(--c-lime);
}
.hud-counter__label {
  font-size: var(--fs-xs);
  color: var(--c-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background var(--dur-fast), transform var(--dur-fast), box-shadow var(--dur-fast);
  cursor: pointer;
}
/* Primary = solid white pill (high-contrast CTA) */
.btn--primary {
  background: #ffffff;
  color: #0a1f2e;
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.btn--primary:hover {
  background: #e8fff8;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 24px rgba(0,200,160,0.35);
}
/* Outline = glass teal pill */
.btn--outline {
  background: rgba(0, 200, 160, 0.15);
  border: 1.5px solid rgba(0, 220, 180, 0.50);
  color: #c8fff0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--outline:hover {
  background: rgba(0, 200, 160, 0.28);
  border-color: rgba(0, 240, 200, 0.70);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0,200,160,0.30);
}
/* Ghost = glass teal pill (same visual language as outline, no padding shift) */
.btn--ghost {
  background: rgba(0, 200, 160, 0.13);
  border: 1.5px solid rgba(0, 220, 180, 0.42);
  color: #c8fff0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--ghost:hover {
  background: rgba(0, 200, 160, 0.25);
  border-color: rgba(0, 240, 200, 0.65);
  color: #fff;
  transform: translateY(-2px);
}
.btn-row {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
  flex-wrap: wrap;
}

/* ── Beams canvas — background animation for non-hero sections ──────────────── */
.beams-canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none;
  z-index: 0;
  filter: blur(12px);
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: auto;
}

/* ── S1 Hero ─────────────────────────────────────────────────────────────────── */
#s1-hero {
  background: #000;
}
/* Hide hero animated items before JS runs — prevents flash of unstyled content */
/* CSS fallback: items fade in even if GSAP fails or is delayed.
   GSAP overrides this via inline styles when it runs. */
#s1-hero [data-anim] {
  opacity: 0;
  animation: heroItemFallback 0.6s ease-out 0.4s forwards;
}
@keyframes heroItemFallback {
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  #s1-hero [data-anim] { opacity: 1; animation: none; }
}
#hero-shader {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 50%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
#hero-shader canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}
/* Soft fade where shader meets the dark left half */
#hero-shader::before {
  content: '';
  position: absolute;
  inset: 0;
  left: 0;
  width: 30%;
  background: linear-gradient(to right, #000 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

/* Circuit SVG */
.circuit-svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  opacity: 0.25;
  pointer-events: none;
}
.circuit-path {
  stroke: var(--c-lime);
  stroke-width: 1.5;
  fill: none;
}

/* ── S2 Services ─────────────────────────────────────────────────────────────── */
#s2-services {
  background: #08091a;
}
#s2-services .layer--bg,
#s2-services .layer--mid { display: none; }

/* Services section layout — left-aligned header + full-width grid */
#s2-services .layer--fg {
  display: flex;
  flex-direction: column;
}

.services-layout {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + var(--sp-3)) var(--sp-8) var(--sp-3);
}

.services-overline {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-lime);
  margin-bottom: var(--sp-1);
}

.services-heading {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--c-white);
  margin-bottom: var(--sp-2);
}
.services-heading em {
  font-style: italic;
  color: #4fc3f7;
  font-weight: 700;
}

.services-sub {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.62);
  max-width: 620px;
  line-height: 1.6;
  margin-bottom: var(--sp-3);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
  width: 100%;
}

/* Glass cards — semi-transparent, bg bleeds through */
.card {
  position: relative;
  background: rgba(5, 11, 24, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: var(--sp-3);
  transition: border-color var(--dur-mid), transform var(--dur-mid), box-shadow var(--dur-mid);
  text-align: left;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  animation-delay: calc(var(--i, 0) * 80ms);
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(80, 160, 255, 0.5);
  box-shadow: 0 12px 32px rgba(59,130,246,0.15), 0 0 0 1px rgba(80,160,255,0.08);
}
.card--featured {
  border-color: rgba(255, 215, 0, 0.35);
  background: rgba(5, 11, 24, 0.68);
}
.card--featured:hover { border-color: rgba(255,215,0,0.6); box-shadow: 0 8px 24px rgba(255,215,0,0.12); }

.card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-2);
  color: rgba(150, 190, 220, 0.75);
  filter: drop-shadow(0 0 5px rgba(130, 180, 230, 0.35));
  transition: color 0.35s, filter 0.35s, transform 0.45s cubic-bezier(0.34,1.56,0.64,1);
  flex-shrink: 0;
}
.card__icon svg {
  width: 28px;
  height: 28px;
}
.card:hover .card__icon {
  color: rgba(200, 235, 255, 0.95);
  filter: drop-shadow(0 0 12px rgba(120, 200, 255, 0.7));
  transform: translateY(-4px) scale(1.08);
}
.card__title {
  font-size: var(--fs-sm);
  font-weight: 700;
  margin-bottom: var(--sp-1);
  transition: color 0.25s;
}
.card--featured .card__title { color: var(--c-gold); }
.card__body {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.58);
  line-height: 1.6;
  flex: 1;
}
.card__arrow {
  display: block;
  margin-top: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: rgba(100, 180, 240, 0.6);
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s, transform 0.3s, color 0.3s;
}
.card:hover .card__arrow {
  opacity: 1;
  transform: translateX(0);
  color: rgba(120, 200, 255, 0.9);
}
.card--featured .card__arrow { color: rgba(255, 215, 0, 0.55); }
.card--featured:hover .card__arrow { color: rgba(255, 215, 0, 0.95); }

/* ── S3 About ─────────────────────────────────────────────────────────────────── */
#s3-about {
  background: #040810;
}
#s3-about .layer--bg,
#s3-about .layer--mid { display: none; }

/* Warp shader canvas (WebGL progressive enhancement, hidden by default) */
.warp-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.6s;
}
.warp-canvas.warp-ready { opacity: 0.9; }

/* ── CSS Warp background — animated teal/mint blobs + warped grid ── */
.about-warp-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: #021c2a;
}

/* Animated gradient blobs — teal / mint palette matching the Warp shader */
.awb__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  will-change: transform;
}
.awb__blob--1 {
  width: 80vw; height: 80vw;
  background: radial-gradient(circle, rgba(0,190,155,0.80) 0%, transparent 60%);
  top: -25%; left: -15%;
  animation: warp-drift-1 18s ease-in-out infinite alternate;
}
.awb__blob--2 {
  width: 65vw; height: 65vw;
  background: radial-gradient(circle, rgba(20,210,165,0.70) 0%, transparent 60%);
  bottom: -20%; right: -10%;
  animation: warp-drift-2 22s ease-in-out infinite alternate;
}
.awb__blob--3 {
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(0,130,210,0.55) 0%, transparent 60%);
  top: 25%; left: 35%;
  animation: warp-drift-3 15s ease-in-out infinite alternate;
}
.awb__blob--4 {
  width: 40vw; height: 40vw;
  background: radial-gradient(circle, rgba(80,255,200,0.50) 0%, transparent 60%);
  top: 5%; right: 15%;
  animation: warp-drift-4 25s ease-in-out infinite alternate;
}

/* Warped grid overlay — thin teal lines add the "checks/pattern" texture */
.awb__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,220,180,0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,220,180,0.13) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: warp-grid-skew 20s ease-in-out infinite alternate;
}

@keyframes warp-drift-1 {
  from { transform: translate(0%,   0%)   scale(1.0) rotate(0deg); }
  to   { transform: translate(12%, 18%)   scale(1.2) rotate(15deg); }
}
@keyframes warp-drift-2 {
  from { transform: translate(0%,    0%)   scale(1.0) rotate(0deg); }
  to   { transform: translate(-14%, -12%) scale(1.15) rotate(-20deg); }
}
@keyframes warp-drift-3 {
  from { transform: translate(0%,   0%)  scale(1.0); }
  to   { transform: translate(-18%, 10%) scale(1.3); }
}
@keyframes warp-drift-4 {
  from { transform: translate(0%,  0%)  scale(1.0); opacity: 0.55; }
  to   { transform: translate(10%, 20%) scale(1.2); opacity: 0.85; }
}
@keyframes warp-grid-skew {
  0%   { transform: perspective(900px) rotateX(0deg)  skewX(0deg); }
  50%  { transform: perspective(900px) rotateX(4deg)  skewX(2deg); }
  100% { transform: perspective(900px) rotateX(-3deg) skewX(-3deg); }
}

/* Pill buttons (About section + any pill-row) */
.pill-row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 4px;
}
.pill-glass {
  display: inline-flex;
  align-items: center;
  padding: 14px 30px;
  background: rgba(0, 200, 160, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(0, 220, 180, 0.55);
  border-radius: 9999px;
  color: #c8fff0;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 0.3s, border-color 0.3s, transform 0.25s, box-shadow 0.25s;
}
.pill-glass:hover {
  background: rgba(0, 200, 160, 0.30);
  border-color: rgba(0, 240, 200, 0.75);
  transform: scale(1.04);
  box-shadow: 0 0 24px rgba(0,200,160,0.35);
}
.pill-solid {
  display: inline-flex;
  align-items: center;
  padding: 14px 30px;
  background: #ffffff;
  border-radius: 9999px;
  color: #0a1f2e;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.pill-solid:hover {
  transform: scale(1.04);
  background: #e8fffa;
  box-shadow: 0 4px 28px rgba(0,200,160,0.4);
}

/* About section — full-width 3-col */
#s3-about .layer--fg {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr 0.9fr;
  gap: clamp(24px, 3vw, 56px);
  width: 100%;
  max-width: 1440px;
  align-items: center;
  padding: calc(var(--header-h) + var(--sp-4)) clamp(32px, 4vw, 72px) var(--sp-4);
}

/* Col 2 — heading + body */
.about-body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

/* Text shadow for S3 — dark halo makes white copy readable over bright warp */
#s3-about .about-body .section-label,
#s3-about .about-body h2,
#s3-about .about-body .heading-lg,
#s3-about .about-body p,
#s3-about .about-body .subheading,
#s3-about .about-body .pill-glass,
#s3-about .about-body .pill-solid,
#s3-about .about-body .accent-lime {
  text-shadow:
    0 0 28px rgba(0,0,0,1),
    0 2px 32px rgba(0,0,0,0.98),
    0 4px 12px rgba(0,0,0,0.95),
    0 1px 4px  rgba(0,0,0,1);
}
.about-cta { align-self: flex-start; margin-top: var(--sp-1); }

/* Col 3 — 2×2 metric tiles */
.about-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.about-metric {
  background: rgba(5, 11, 24, 0.72);
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 18px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.22s, transform 0.22s, box-shadow 0.22s;
}
.about-metric:hover {
  border-color: rgba(59, 130, 246, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(59,130,246,0.12);
}
.about-metric__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.about-metric__icon { font-size: 1.25rem; }
.about-metric__pct {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--c-white);
  letter-spacing: -0.02em;
}
.about-metric__label {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  line-height: 1.3;
}
.about-metric__bar {
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-top: auto;
}
.about-metric__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--c-primary), var(--c-lime));
  border-radius: 2px;
}

.code-panel {
  background: rgba(2, 6, 14, 0.92);
  border: 1px solid rgba(132, 255, 92, 0.25);
  border-radius: var(--glass-radius);
  overflow: hidden;
}
.code-panel__bar {
  display: flex;
  gap: var(--sp-1);
  padding: var(--sp-2) var(--sp-3);
  background: rgba(0,0,0,0.4);
  border-bottom: 1px solid rgba(132,255,92,0.1);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot--red   { background: #ff5f57; }
.dot--amber { background: #febc2e; }
.dot--green { background: #28c840; }
.code-panel__body {
  padding: var(--sp-4);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--c-lime);
  min-height: 160px;
  white-space: pre;
  overflow: hidden;
}

.stack-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}
.stack-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.stack-item__icon { font-size: 1.2rem; }
.stack-item__bar {
  margin-left: auto;
  height: 4px;
  width: 60px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}
.stack-item__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--c-primary), var(--c-lime));
  border-radius: 2px;
}

/* ── Testimonials ───────────────────────────────────────────────────────────── */
#s-testimonials {
  background: #060d18;
}
.testi-section {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + var(--sp-3)) clamp(24px, 4vw, 56px) var(--sp-4);
  width: 100%;
}
.testi-sub {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.2vw, 30px);
  width: 100%;
  flex: 1;
  text-align: left;
}
.testi-card {
  background: rgba(0, 200, 160, 0.05);
  border: 1px solid rgba(0, 220, 180, 0.18);
  border-radius: 16px;
  padding: clamp(22px, 2.5vw, 34px) clamp(20px, 2vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: clamp(240px, 28vh, 320px);
  position: relative;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
  backdrop-filter: blur(10px);
}
.testi-card:hover {
  border-color: rgba(0, 220, 180, 0.38);
  background: rgba(0, 200, 160, 0.09);
  transform: translateY(-3px);
}
.testi-card::before {
  content: '';
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(to bottom, #00c8a0, #00dcb4);
}
.testi-card__stars {
  color: #ffd700;
  font-size: 1rem;
  letter-spacing: 2px;
  line-height: 1;
}
.testi-card__quote {
  font-size: clamp(0.84rem, 1.2vw, 0.95rem);
  line-height: 1.7;
  color: #c8fff0;
  font-style: normal;
  margin: 0;
  flex: 1;
}
.testi-card__footer {
  display: flex;
  align-items: center;
  gap: 10px;
}
.testi-card__initials {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,200,160,0.35), rgba(0,130,110,0.5));
  border: 1.5px solid rgba(0, 220, 180, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #c8fff0;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}
.testi-card__meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.testi-card__name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  font-style: normal;
}

/* Testimonials row: logo | cards | logo */
.testi-row {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  width: 100%;
  margin-top: clamp(24px, 3vw, 40px);
}
.testi-side-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.52;
  filter: grayscale(1) brightness(1.8);
  transition: opacity 0.25s, filter 0.25s;
  width: clamp(110px, 13vw, 180px);
}
.testi-side-logo:hover {
  opacity: 0.88;
  filter: grayscale(0.15) brightness(1.25);
}
.testi-side-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .testi-grid { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid .testi-card:last-child {
    grid-column: 1 / -1;
    max-width: 420px;
    margin: 0 auto;
  }
}

/* ── S4 Pricing ─────────────────────────────────────────────────────────────── */
#s4-offers {
  background: #05060f;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 920px;
  margin-top: var(--sp-4);
  align-items: center;
}

/* ── Card base ── */
.pricing-card {
  position: relative;
  background: linear-gradient(135deg, rgba(255,255,255,0.09) 0%, rgba(255,255,255,0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 24px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: left;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(59,130,246,0.12);
  border-color: rgba(59,130,246,0.3);
}

/* ── Popular variant ── */
.pricing-card--popular {
  background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.09) 100%);
  border-color: rgba(34,211,238,0.35);
  box-shadow: 0 0 0 1.5px rgba(34,211,238,0.18), 0 16px 40px rgba(34,211,238,0.12);
  transform: scale(1.03);
  z-index: 2;
}
.pricing-card--popular:hover {
  transform: scale(1.03) translateY(-4px);
  box-shadow: 0 0 0 2px rgba(34,211,238,0.35), 0 24px 56px rgba(34,211,238,0.2);
}

/* ── "Most Popular" badge ── */
.pc-badge {
  position: absolute;
  top: -14px;
  right: 22px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgb(34,211,238);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Plan name ── */
.pc-name {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--c-white);
  line-height: 1;
  margin-bottom: 6px;
}

/* ── Description ── */
.pc-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
  margin-bottom: 14px;
}

/* ── Price block ── */
.pc-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 14px;
}
.pc-currency {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  align-self: flex-start;
  margin-top: 6px;
}
.pc-amount {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 300;
  color: var(--c-white);
  letter-spacing: -0.04em;
  line-height: 1;
}
.pc-period {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  margin-left: 2px;
}
.pc-from {
  font-size: 0.7rem;
  font-weight: 400;
  color: rgba(255,255,255,0.45);
  align-self: flex-start;
  margin-top: 10px;
  letter-spacing: 0.03em;
}
.pc-amount sup {
  font-size: 0.55em;
  vertical-align: super;
  color: rgba(255,255,255,0.55);
}
.pc-delivery {
  font-size: 0.75rem;
  color: rgba(0, 220, 180, 0.75);
  font-weight: 500;
  margin-top: -8px;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}
.pc-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  margin-bottom: 6px;
}

/* ── Gradient divider ── */
.pc-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.08) 20%,
    rgba(255,255,255,0.22) 50%,
    rgba(255,255,255,0.08) 80%,
    transparent 100%
  );
  margin-bottom: 14px;
}

/* ── Features list ── */
.pc-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  margin-bottom: 18px;
}
.pc-features li {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.82);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pc-features li svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: rgb(34,211,238);
}
.pricing-card--popular .pc-features li svg { color: rgb(34,211,238); }

/* ── Buttons ── */
.pc-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 0;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.22s, color 0.22s, transform 0.18s, box-shadow 0.22s, border-color 0.22s;
  margin-top: auto;
  text-decoration: none;
}
.pc-btn:hover { transform: translateY(-2px); }

/* Popular card gets solid white pill */
.pc-btn--primary {
  background: #ffffff;
  color: #0a1f2e;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.pc-btn--primary:hover {
  background: #e8fff8;
  box-shadow: 0 6px 22px rgba(0,200,160,0.35);
}

/* Other cards get glass teal pill */
.pc-btn--ghost {
  background: rgba(0, 200, 160, 0.12);
  color: #a8ffe8;
  border: 1.5px solid rgba(0, 220, 180, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.pc-btn--ghost:hover {
  background: rgba(0, 200, 160, 0.24);
  border-color: rgba(0, 240, 200, 0.65);
  color: #fff;
  box-shadow: 0 0 18px rgba(0,200,160,0.28);
}

/* ── Pricing footnote ───────────────────────────────────────────────────────── */
.pricing-footnote {
  margin-top: 28px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
  letter-spacing: 0.01em;
}
.pricing-footnote__link {
  display: inline-block;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid rgba(0, 220, 180, 0.7);
  padding-bottom: 1px;
  transition: color 0.18s, border-color 0.18s;
}
.pricing-footnote__link:hover {
  color: #00f0c8;
  border-color: #00f0c8;
}

/* ── Page-exit veil ─────────────────────────────────────────────────────────── */
#page-veil {
  position: fixed;
  inset: 0;
  background: #05060f;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.28s ease;
}
#page-veil.active {
  opacity: 1;
  pointer-events: all;
}

/* ── S5 Contact ───────────────────────────────────────────────────────────────── */
#s5-contact {
  background: #060812;
}
#s5-contact .layer--bg { display: none; }

/* Light rays */
.light-rays {
  position: absolute;
  inset: 0;
  background: conic-gradient(
    from 0deg at 60% 20%,
    transparent 0deg,
    rgba(59,130,246,0.06) 10deg,
    transparent 20deg,
    rgba(255,215,0,0.04) 35deg,
    transparent 45deg
  );
  animation: rayRotate 20s linear infinite;
}
@keyframes rayRotate { to { transform: rotate(360deg); } }

/* Geo shape — kept for reduced-motion fallback */
.geo-shape { display: none; }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  gap: clamp(24px, 3vw, 48px);
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  align-items: center;
  padding: calc(var(--header-h) + var(--sp-3)) clamp(32px, 5vw, 72px) var(--sp-3);
}

/* ── Contact globe ── */
.contact-globe-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  order: 3;
  padding-left: clamp(12px, 2vw, 32px);
}

.contact-globe-ring {
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg,
    rgba(59,130,246,0.55) 0%,
    rgba(132,255,92,0.35) 40%,
    rgba(59,130,246,0.2) 70%,
    rgba(132,255,92,0.45) 100%
  );
  box-shadow:
    0 0 28px rgba(59,130,246,0.25),
    0 0 60px rgba(59,130,246,0.1);
}

.contact-globe-ring::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: linear-gradient(135deg,
    rgba(59,130,246,0.3),
    rgba(132,255,92,0.2),
    rgba(59,130,246,0.3)
  );
  animation: globeRingPulse 4s ease-in-out infinite;
  z-index: -1;
}
@keyframes globeRingPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.03); }
}

.contact-globe-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 40% 35%,
    rgba(20,40,110,0.85) 0%,
    rgba(8,14,45,0.92) 65%
  );
}

#contact-globe {
  width: 100%;
  height: 100%;
  cursor: grab;
  opacity: 0;
  transition: opacity 1.2s ease;
  border-radius: 50%;
  touch-action: none;
  display: block;
}

.contact-globe-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  text-align: center;
}

.contact-info { display: flex; flex-direction: column; gap: var(--sp-4); align-self: flex-start; padding-top: var(--sp-2); }
.contact-detail {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  font-size: var(--fs-sm);
  color: var(--c-muted);
}
.contact-detail strong { color: var(--c-white); display: block; font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 2px; }

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
/* Submit button fills the form column and centres its label */
.contact-form .btn {
  width: 100%;
  justify-content: center;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.form-label {
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.form-input,
.form-select,
.form-textarea {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: var(--sp-3) var(--sp-4);
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  transition: border-color var(--dur-fast);
  outline: none;
  width: 100%;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-color: var(--c-primary); }
.form-select { appearance: none; }
.form-textarea { resize: vertical; min-height: 100px; }

/* ── Tech Marquee + Progressive Blur ────────────────────────────────────────── */
.tech-marquee {
  width: 100%;
  padding: 32px 0 20px;
  margin-top: auto;
}
.tech-marquee__label {
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 20px;
}
.tech-marquee__stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 68px;
}

/* Infinite scrolling track */
.tech-marquee__track {
  display: flex;
  align-items: center;
  gap: 20px;
  width: max-content;
  will-change: transform;
  transform: translate3d(0,0,0);
  -webkit-transform: translate3d(0,0,0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  animation: marquee-scroll 32s linear infinite;
  -webkit-animation: marquee-scroll 32s linear infinite;
}
.tech-marquee__track:hover { animation-play-state: paused; }

/* legacy slide wrapper — no longer used, kept for safety */
.tech-marquee__slide {
  display: contents;
}

@keyframes marquee-scroll {
  from { transform: translate3d(0,0,0); -webkit-transform: translate3d(0,0,0); }
  to   { transform: translate3d(-25%,0,0); -webkit-transform: translate3d(-25%,0,0); }
}
@-webkit-keyframes marquee-scroll {
  from { -webkit-transform: translate3d(0,0,0); }
  to   { -webkit-transform: translate3d(-25%,0,0); }
}

/* Individual logo pill */
.tech-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 9999px;
  background: rgba(255,255,255,0.04);
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s;
  cursor: default;
}
.tech-logo:hover {
  border-color: rgba(59,130,246,0.4);
  background: rgba(59,130,246,0.08);
}
.tech-logo img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0.85);
  transition: filter 0.2s;
}
.tech-logo:hover img { filter: brightness(1.1); }
.tech-logo span {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.tech-logo:hover span { color: rgba(255,255,255,0.9); }

/* ── Progressive Blur layers ──────────────────────────────── */
/* Each edge has 8 stacked divs; each div covers the full stage
   but is masked to a specific band, then blurred progressively. */
.pblur {
  pointer-events: none;
  position: absolute;
  top: 0;
  bottom: 0;
  width: 180px;
  z-index: 2;
}
.pblur--left  { left: 0; }
.pblur--right { right: 0; }

.pblur__l {
  position: absolute;
  inset: 0;
  /* blur increases with index */
  backdrop-filter: blur(calc(var(--i) * 0.5px));
  -webkit-backdrop-filter: blur(calc(var(--i) * 0.5px));
}

/* Left edge: each layer's mask covers a different horizontal band,
   fading from opaque at the edge to transparent toward center */
.pblur--left .pblur__l {
  --seg: calc(100% / 9);
  --s0:  calc(var(--i)       * var(--seg));
  --s1:  calc((var(--i) + 1) * var(--seg));
  --s2:  calc((var(--i) + 2) * var(--seg));
  --s3:  calc((var(--i) + 3) * var(--seg));
  -webkit-mask-image: linear-gradient(
    to right,
    rgba(255,255,255,0)   var(--s0),
    rgba(255,255,255,1)   var(--s1),
    rgba(255,255,255,1)   var(--s2),
    rgba(255,255,255,0)   var(--s3)
  );
  mask-image: linear-gradient(
    to right,
    rgba(255,255,255,0)   var(--s0),
    rgba(255,255,255,1)   var(--s1),
    rgba(255,255,255,1)   var(--s2),
    rgba(255,255,255,0)   var(--s3)
  );
}

/* Right edge: same but mirrored */
.pblur--right .pblur__l {
  --seg: calc(100% / 9);
  --s0:  calc(var(--i)       * var(--seg));
  --s1:  calc((var(--i) + 1) * var(--seg));
  --s2:  calc((var(--i) + 2) * var(--seg));
  --s3:  calc((var(--i) + 3) * var(--seg));
  -webkit-mask-image: linear-gradient(
    to left,
    rgba(255,255,255,0)   var(--s0),
    rgba(255,255,255,1)   var(--s1),
    rgba(255,255,255,1)   var(--s2),
    rgba(255,255,255,0)   var(--s3)
  );
  mask-image: linear-gradient(
    to left,
    rgba(255,255,255,0)   var(--s0),
    rgba(255,255,255,1)   var(--s1),
    rgba(255,255,255,1)   var(--s2),
    rgba(255,255,255,0)   var(--s3)
  );
}

/* ── Full site footer ────────────────────────────────────────────────────────── */
.site-footer {
  width: 100%;
  padding: 40px 48px 0;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 48px;
}

.footer-top {
  display: flex;
  flex-direction: row;
  gap: 48px;
  align-items: flex-start;
  padding-bottom: 32px;
}

/* Brand column */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 0 0 280px;
  max-width: 280px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-white);
  letter-spacing: 0.02em;
}
.footer-logo img { width: 28px; height: 28px; object-fit: contain; }
.footer-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}
.footer-social {
  list-style: none;
  display: flex;
  gap: 18px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.footer-social a svg { width: 15px; height: 15px; }
.footer-social a:hover {
  color: var(--c-white);
  border-color: rgba(59,130,246,0.6);
  background: rgba(59,130,246,0.1);
}

/* Link columns */
.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 56px;
  flex: 0 0 auto;
  margin-left: auto;
}
.footer-col h3 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-white);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col li a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  transition: color 0.18s;
}
.footer-col li a:hover { color: var(--c-white); }

/* Bottom bar */
.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  gap: 16px;
}
.footer-bottom .footer-copy {
  text-align: center;
}
.footer-bottom .footer-legal {
  justify-self: end;
}
.footer-copy {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
}
.footer-legal {
  list-style: none;
  display: flex;
  gap: 20px;
}
.footer-legal a {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  transition: color 0.18s;
}
.footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* ── Reduce Motion ───────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  #scroller { scroll-snap-type: none; }
  .scroll-hint__arrow { animation: none; }
  .loader__mark { animation: none; }
  .light-rays { animation: none; }
  .geo-shape, .geo-shape::before { animation: none; }
  .beams-canvas { display: none; }
  .layer--mid { animation: none !important; transform: none !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Nav active state (set by JS IntersectionObserver) ───────────────────── */
.header-nav__link--active {
  color: var(--c-white) !important;
  opacity: 1 !important;
}
.header-nav__link--active::after {
  width: 100% !important;
  opacity: 1 !important;
}

/* ── Mobile Toggle (Hamburger) ───────────────────────────────────────────── */
.mobile-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.mobile-toggle span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  background: var(--c-white);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease, top .25s ease;
}
.mobile-toggle span:nth-child(1) { top: 14px; }
.mobile-toggle span:nth-child(2) { top: 21px; }
.mobile-toggle span:nth-child(3) { top: 28px; }
.mobile-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.mobile-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ── Mobile Drawer ───────────────────────────────────────────────────────── */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.mobile-drawer.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(86%, 360px);
  height: 100%;
  background: linear-gradient(180deg, rgba(15,18,28,0.98), rgba(8,10,16,0.98));
  border-left: 1px solid rgba(56,189,248,0.12);
  box-shadow: -20px 0 60px rgba(0,0,0,0.5);
  padding: calc(var(--header-h) + 24px) 28px 32px;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-drawer.open .mobile-drawer__panel { transform: translateX(0); }

.mobile-drawer__group {
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-drawer__group:last-child { border-bottom: none; }
.mobile-drawer__label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-cyan, #38bdf8);
  margin-bottom: 14px;
  font-weight: 600;
}
.mobile-drawer__sublink,
.mobile-drawer__link {
  display: block;
  padding: 14px 0;
  color: var(--c-white);
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: color .2s ease, padding-left .2s ease;
}
.mobile-drawer__link {
  font-size: 1.2rem;
  font-weight: 600;
}
.mobile-drawer__sublink:hover,
.mobile-drawer__sublink:active,
.mobile-drawer__link:hover,
.mobile-drawer__link:active {
  color: var(--c-cyan, #38bdf8);
  padding-left: 6px;
}

body.menu-open { overflow: hidden; }
body.menu-open #scroller { overflow: hidden !important; touch-action: none; overscroll-behavior: contain; }

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 900px), (hover: none) {
  /* One smooth, continuous scroll on mobile — no snap, no forced 100vh sections */
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
  }
  #scroller {
    scroll-snap-type: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: auto;
    overflow-x: hidden;
    max-width: 100vw;
  }
  .scene {
    height: auto;
    min-height: auto;
    scroll-snap-align: none;
    overflow-x: hidden;
    overflow-y: visible;
    contain: none;
    max-width: 100vw;
  }
  .layer--bg, .layer--mid, .layer--overlay { position: absolute; max-width: 100%; }
  .layer--fg { position: relative; overflow: visible; max-width: 100%; }

  .dot-nav,
  .scroll-hint,
  .header-nav { display: none; }

  .mobile-toggle { display: block; }

  .services-grid  { grid-template-columns: repeat(2, 1fr); }
  .offers-grid    { grid-template-columns: 1fr; }
  .about-layout   { grid-template-columns: 1fr; gap: var(--sp-6); text-align: center; justify-items: center; }
  .about-layout .about-body { text-align: center; align-items: center; display: flex; flex-direction: column; }
  .about-layout .pill-row, .about-layout .stat-grid { justify-content: center; margin-left: auto; margin-right: auto; }
  .contact-layout { grid-template-columns: 1fr; gap: var(--sp-6); text-align: center; justify-items: center; }
  .contact-globe-wrap {
    display: flex;
    order: 0;
    padding-left: 0;
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
  }
  .contact-globe-ring { max-width: 220px; }
  .contact-info { align-self: center; align-items: center; text-align: center; width: 100%; max-width: 420px; }
  .contact-detail { justify-content: center; }
  .contact-form { width: 100%; max-width: 460px; text-align: left; }

  .layer--mid { opacity: 0.4; }

  .fg-center, .fg-left {
    padding: calc(var(--header-h) + var(--sp-6)) var(--sp-4) var(--sp-6);
  }
  .about-layout,
  .contact-layout {
    padding: calc(var(--header-h) + var(--sp-4)) var(--sp-4) var(--sp-6);
  }
  .testi-section {
    padding: calc(var(--header-h) + var(--sp-4)) var(--sp-4) var(--sp-6);
    height: auto;
    justify-content: flex-start;
  }

  /* Hero stats: 2x2 grid centered under the CTAs (4 stats — Founded, Experience, Delivery, Support) */
  .hero-stats {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    margin: 28px auto 0 !important;
    padding: 14px 0 !important;
    width: 280px !important;
    max-width: calc(100vw - 32px) !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-auto-flow: row !important;
    row-gap: 16px !important;
    column-gap: 0 !important;
    justify-items: center !important;
    align-items: center !important;
    align-self: center !important;
    border-top: 1px solid rgba(255,255,255,0.07) !important;
    background: transparent !important;
    backdrop-filter: none !important;
    text-align: center !important;
    pointer-events: auto !important;
    overflow: visible !important;
  }
  .hero-stat {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
    width: 100% !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    text-align: center !important;
  }
  .hero-stat__value { font-size: 1rem !important; letter-spacing: 0 !important; white-space: nowrap !important; }
  .hero-stat__label { font-size: 0.5rem !important; letter-spacing: 0.16em !important; }
  .hero-stat__divider { display: none !important; }

  /* Tech marquee — iOS-friendly: kill the progressive blur (backdrop-filter+mask
     causes track distortion on iOS Safari) and use a simple gradient fade. */
  .pblur { display: none !important; }
  .tech-marquee__stage {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
  }
  .tech-marquee__track {
    animation-duration: 40s;
    -webkit-animation-duration: 40s;
  }
  /* Center the entire hero column on mobile */
  #s1-hero .fg-center { text-align: center; align-items: center; }
  #s1-hero .heading-xl, #s1-hero .subheading { text-align: center; }
  #s1-hero .btn-row { justify-content: center; align-self: center; }

  /* Testimonials: cards stacked vertically, both logos in a centered row at the bottom */
  .testi-row {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "cards"
      "logos";
    gap: 24px;
    margin-top: 24px;
    width: 100%;
  }
  .testi-row > .testi-grid { grid-area: cards; }
  .testi-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
    gap: 14px;
    flex: none;
    width: 100%;
  }
  .testi-card { min-height: auto; }
  /* Both side logos collapse into a single horizontal row beneath the cards */
  .testi-row > .testi-side-logo {
    grid-area: logos;
    width: 110px;
    opacity: 0.75;
    margin: 0;
    justify-self: center;
  }
  .testi-row > .testi-side-logo:first-of-type { justify-self: end; padding-right: 12px; }
  .testi-row > .testi-side-logo:last-of-type  { justify-self: start; padding-left: 12px; }
  .testi-row {
    grid-template-areas:
      "cards cards"
      "logoA logoB";
    grid-template-columns: 1fr 1fr;
  }
  .testi-row > .testi-grid { grid-column: 1 / -1; }
  .testi-row > .testi-side-logo:first-of-type { grid-area: logoA; }
  .testi-row > .testi-side-logo:last-of-type  { grid-area: logoB; }

  /* Pricing: stack vertically at natural size, centered */
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: var(--sp-4) auto 0;
    gap: 18px;
  }
  .pricing-card,
  .pricing-card--popular { transform: none; }
  .pricing-card--popular:hover { transform: translateY(-4px); }

  /* Touch-friendly tap targets */
  .btn, .pricing-card, .card, .footer-col li a { -webkit-tap-highlight-color: transparent; }
  /* Prevent iOS zoom on input focus */
  input, textarea, select { font-size: 16px; }

  /* Footer: everything centered, Services + Company side-by-side, socials in middle */
  .site-footer { padding: 40px 24px 0; }
  .footer-top {
    flex-direction: column;
    gap: 36px;
    align-items: center;
    text-align: center;
    padding-bottom: 36px;
  }
  .footer-brand {
    flex: 1 1 auto;
    max-width: 100%;
    align-items: center;
    text-align: center;
    gap: 22px;
  }
  .footer-logo { justify-content: center; }
  .footer-desc { margin-bottom: 6px; }
  .footer-social {
    justify-content: center;
    margin: 14px auto 6px;
    gap: 22px;
  }
  .footer-cols {
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    justify-items: center;
    text-align: center;
    gap: 20px 56px;
    margin: 16px auto 0;
  }
  .footer-col { text-align: center; }
  .footer-col ul { align-items: center; }
  .footer-bottom { grid-template-columns: 1fr; text-align: center; gap: var(--sp-3); }
  .footer-bottom .footer-legal { justify-self: center; }

  /* Center the text inside hero buttons even when it wraps to two lines */
  .btn { text-align: center; }
  .btn-row .btn { justify-content: center; text-align: center; }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .hud-row { gap: var(--sp-4); flex-wrap: wrap; }
  .geo-shape { display: none; }

  /* Tighter hero on small phones */
  :root {
    --fs-2xl: clamp(2rem, 9vw, 3rem);
    --fs-xl:  clamp(1.5rem, 6vw, 2.2rem);
    --fs-lg:  clamp(1.1rem, 4vw, 1.4rem);
  }
  .footer-cols { grid-template-columns: repeat(2, auto); }
  /* Stack hero CTAs */
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; justify-content: center; }
}
