/* ============ TOKENS ============ */
:root {
  --bg: #04070d;
  --bg-alt: #070b14;
  --surface: #0b1120;
  --surface-2: #0f1729;
  --line: rgba(148, 163, 184, 0.12);
  --text: #e6edf7;
  --muted: #8b98ad;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --violet: #818cf8;
  --grad: linear-gradient(100deg, var(--cyan), var(--blue) 55%, var(--violet));
  --radius: 18px;
  --font-head: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-serif: "Instrument Serif", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.loading { overflow: hidden; }

::selection { background: rgba(34, 211, 238, 0.3); }

.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container { width: min(1200px, 92%); margin: 0 auto; position: relative; z-index: 2; }

h1, h2, h3, h4, h5 { font-family: var(--font-head); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
p { color: var(--muted); }

.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--grad); }
.center { text-align: center; }
.center .eyebrow::before { display: none; }

/* ============ PRELOADER ============ */
.preloader {
  position: fixed; inset: 0; z-index: 1000; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.preloader-inner { text-align: center; }
.preloader-mark { width: clamp(56px, 8vw, 84px); margin-bottom: 18px; }
.preloader-logo {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 12px;
}
.preloader-logo em { font-style: normal; font-weight: 400; color: var(--muted); }
.preloader-count {
  font-family: var(--font-head); font-size: 0.95rem; letter-spacing: 0.2em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ============ CUSTOM CURSOR ============ */
.cursor, .cursor-ring { display: none; }
@media (pointer: fine) {
  .cursor {
    display: block; position: fixed; z-index: 999; pointer-events: none;
    width: 8px; height: 8px; border-radius: 50%; background: var(--cyan);
    transform: translate(-50%, -50%); left: 0; top: 0;
  }
  .cursor-ring {
    display: block; position: fixed; z-index: 998; pointer-events: none;
    width: 36px; height: 36px; border-radius: 50%;
    border: 1.5px solid rgba(34, 211, 238, 0.45);
    transform: translate(-50%, -50%); left: 0; top: 0;
    transition: width 0.25s, height 0.25s, border-color 0.25s, background 0.25s;
  }
  .cursor-ring.hovering {
    width: 64px; height: 64px;
    border-color: rgba(129, 140, 248, 0.7);
    background: rgba(129, 140, 248, 0.08);
  }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 32px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
  text-decoration: none; cursor: pointer; border: none;
  position: relative; transition: transform 0.25s cubic-bezier(0.3, 0.8, 0.3, 1), box-shadow 0.3s;
  will-change: transform;
}
.btn span { position: relative; z-index: 1; }
.btn-primary {
  background: var(--grad); color: #04121a;
  box-shadow: 0 8px 30px rgba(34, 211, 238, 0.25);
}
.btn-primary:hover { box-shadow: 0 12px 44px rgba(59, 130, 246, 0.45); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04); color: var(--text);
  border: 1px solid var(--line); backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: rgba(34, 211, 238, 0.5); }
.btn-block { width: 100%; }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
/* blur lives on a pseudo-element: backdrop-filter on .nav itself would make it
   the containing block for the fixed mobile menu panel */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  opacity: 0; transition: opacity 0.35s;
}
.nav.scrolled {
  background: rgba(4, 7, 13, 0.75);
  border-bottom-color: var(--line);
}
.nav.scrolled::before { opacity: 1; }
.nav-inner {
  width: min(1200px, 92%); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 34px; height: 34px; display: block; flex-shrink: 0; }
.logo-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.logo-text { font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; letter-spacing: 0.05em; color: var(--text); }
.logo-text em { font-style: normal; font-weight: 400; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 500;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.nav-cta {
  color: #04121a; background: var(--grad); padding: 10px 22px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600;
}
.nav-toggle { display: none; }

/* ============ HERO ============ */
.hero {
  min-height: 100svh; display: flex; align-items: center; justify-content: center;
  position: relative; padding: 150px 0 90px; text-align: center; overflow: hidden;
}
#net-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; opacity: 0.55;
}
.orb-1 { width: 520px; height: 520px; background: rgba(59, 130, 246, 0.22); top: -160px; left: -120px; }
.orb-2 { width: 460px; height: 460px; background: rgba(34, 211, 238, 0.14); bottom: -140px; right: -100px; }
.orb-3 { width: 380px; height: 380px; background: rgba(129, 140, 248, 0.18); top: 30%; right: 12%; }

.hero-inner { position: relative; z-index: 3; width: min(980px, 94%); }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  font-size: 0.82rem; color: var(--muted); margin-bottom: 30px;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6); animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

.hero-title { font-size: clamp(2.7rem, 7vw, 5.6rem); font-weight: 700; margin-bottom: 28px; }
.hero-title .serif { font-size: 1.06em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-title .line > span { display: inline-block; }

.hero-sub { font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 640px; margin: 0 auto 42px; }

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 66px; }

.hero-stats { display: flex; justify-content: center; gap: clamp(24px, 5vw, 64px); flex-wrap: wrap; }
.hstat { display: flex; flex-direction: column; align-items: center; max-width: 170px; }
.hstat strong {
  font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hstat > span { font-size: 0.78rem; color: var(--muted); line-height: 1.4; }
.hstat strong span { font: inherit; }

.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 24px; height: 40px; border: 1.5px solid var(--line); border-radius: 14px;
}
.scroll-hint span {
  position: absolute; top: 7px; left: 50%; width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 3px; background: var(--cyan); animation: scrollhint 1.8s infinite;
}
@keyframes scrollhint {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ============ PAGE HERO (subpages) ============ */
.page-hero {
  padding: 175px 0 80px; position: relative; overflow: hidden;
}
.page-hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 700; margin-bottom: 20px;
}
.page-hero h1 .serif { font-size: 1.06em; }
.page-hero .lede { max-width: 660px; font-size: clamp(1rem, 1.5vw, 1.15rem); margin-bottom: 34px; }
.page-hero .hero-actions { justify-content: flex-start; margin-bottom: 0; }

.nav-links a.active { color: var(--text); }

/* ============ CTA BAND (subpage bottom) ============ */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { max-width: 560px; margin: 0 auto 32px; font-size: 1.05rem; }

/* ============ CASE TEASER (home) ============ */
.case-solo { width: auto; max-width: 900px; margin: 0 auto; }
.work-more { text-align: center; margin-top: 34px; }

/* ============ MARQUEE ============ */
.marquee-wrap {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-alt); position: relative; z-index: 2;
}
.marquee { overflow: hidden; padding: 20px 0; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 40px; width: max-content; animation: marquee 30s linear infinite; }
.marquee-track span { font-family: var(--font-head); font-size: 0.95rem; font-weight: 500; color: var(--muted); white-space: nowrap; }
.marquee-track i { color: var(--cyan); font-style: normal; font-size: 0.6rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ SECTIONS ============ */
.section { padding: clamp(84px, 10vw, 140px) 0; position: relative; z-index: 2; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: clamp(46px, 6vw, 76px); }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p { margin-top: 18px; font-size: 1.05rem; }

/* ============ CLIENTS STRIP ============ */
.clients-strip {
  padding: clamp(40px, 5vw, 64px) 0; position: relative; z-index: 2;
  border-bottom: 1px solid var(--line);
}
.clients-label {
  text-align: center; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 34px;
}
.clients-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.clients-track {
  display: flex; align-items: center; gap: clamp(44px, 6vw, 78px);
  width: max-content; animation: marquee 50s linear infinite;
}
.clients-marquee:hover .clients-track { animation-play-state: paused; }
.client-logo { display: flex; align-items: center; flex-shrink: 0; }
.client-logo img {
  width: auto; display: block;
  filter: brightness(0) invert(1); opacity: 0.6;
  transition: opacity 0.3s;
}
.client-logo:hover img { opacity: 1; }
.client-text {
  font-family: var(--font-head); font-weight: 700; font-size: 1.3rem;
  color: #fff; opacity: 0.6; letter-spacing: 0.01em; transition: opacity 0.3s;
}
.client-text:hover { opacity: 1; }

/* ============ PHOTOS (shared treatment) ============ */
.photo {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); display: block;
}
.photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(0.85) contrast(1.05);
}
.photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 7, 13, 0.05), rgba(4, 7, 13, 0.45));
}
.photo-caption {
  position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2;
  font-family: var(--font-head); font-size: 0.82rem; font-weight: 500; color: var(--text);
  text-shadow: 0 2px 10px rgba(4, 7, 13, 0.8);
}

/* ============ PILLARS ============ */
.pillars-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pillar {
  display: block; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  position: relative; overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.3, 0.8, 0.3, 1), border-color 0.4s, box-shadow 0.4s;
}
.pillar-photo { display: block; height: clamp(180px, 24vw, 250px); overflow: hidden; position: relative; }
.pillar-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4, 7, 13, 0.1), var(--surface));
}
.pillar-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(0.8) contrast(1.05);
  transition: transform 0.6s cubic-bezier(0.3, 0.8, 0.3, 1);
}
.pillar:hover .pillar-photo img { transform: scale(1.05); }
.pillar-body { display: block; padding: clamp(26px, 3vw, 40px) clamp(28px, 4vw, 52px) clamp(32px, 4vw, 52px); }
.pillar::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(500px circle at 30% 0%, rgba(34, 211, 238, 0.1), transparent 60%);
}
.pillar:hover { transform: translateY(-8px); border-color: rgba(34, 211, 238, 0.4); box-shadow: 0 30px 70px rgba(2, 8, 20, 0.65); }
.pillar:hover::before { opacity: 1; }
.pillar-num {
  font-family: var(--font-head); font-weight: 700; font-size: 3.2rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; margin-bottom: 18px; opacity: 0.9;
}
.pillar h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 14px; }
.pillar p { margin-bottom: 24px; }
.pillar-link { font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; color: var(--cyan); }

/* ============ SPLIT LAYOUT (RECRUITMENT) ============ */
.split-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 5vw, 80px); align-items: start; }
.split-sticky { position: sticky; top: 110px; }
.split-sticky p { margin: 18px 0 28px; font-size: 1.05rem; }
.mini-stats { display: flex; gap: 28px; margin-bottom: 32px; flex-wrap: wrap; }
.mini-stats strong {
  display: block; font-family: var(--font-head); font-size: 1.6rem; font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mini-stats span { font-size: 0.8rem; color: var(--muted); }
.split-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.split-photo { margin-top: 30px; height: 230px; }

/* ============ OPS BANNER ============ */
.ops-banner { height: clamp(200px, 28vw, 320px); margin-bottom: clamp(36px, 5vw, 56px); }

/* ============ PEOPLE STRIP ============ */
.people-strip {
  display: grid; grid-template-columns: 1.25fr 0.85fr 1.25fr; gap: 20px;
  margin-bottom: clamp(44px, 6vw, 64px); align-items: stretch;
}
.people-strip .photo { height: clamp(200px, 24vw, 300px); }
.people-strip .photo:nth-child(2) { height: clamp(240px, 28vw, 350px); margin-top: -20px; }

.svc-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; position: relative; overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.3, 0.8, 0.3, 1), border-color 0.35s, box-shadow 0.35s;
}
.svc-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(34, 211, 238, 0.08), transparent 55%);
  transition: opacity 0.35s; pointer-events: none;
}
.svc-card:hover { transform: translateY(-6px); border-color: rgba(34, 211, 238, 0.35); box-shadow: 0 24px 60px rgba(2, 8, 20, 0.6); }
.svc-card:hover::before { opacity: 1; }
.svc-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.svc-card p { font-size: 0.9rem; margin-bottom: 18px; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-tags span {
  font-size: 0.7rem; font-weight: 500; color: var(--muted);
  padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02); white-space: nowrap;
}

/* ============ OPS INDEX ============ */
.ops-index { border-top: 1px solid var(--line); }
.ops-row { border-bottom: 1px solid var(--line); }
.ops-row-head {
  display: flex; align-items: center; gap: clamp(16px, 3vw, 36px);
  padding: 26px 8px; cursor: pointer; transition: padding 0.35s;
}
.ops-num {
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  flex-shrink: 0;
}
.ops-row-head h3 { font-size: clamp(1.15rem, 2.4vw, 1.7rem); font-weight: 600; flex: 1; transition: color 0.3s; }
.ops-plus {
  font-family: var(--font-head); font-size: 1.5rem; color: var(--muted);
  transition: transform 0.35s, color 0.35s; flex-shrink: 0;
}
.ops-row-body {
  display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s cubic-bezier(0.3, 0.8, 0.3, 1);
}
.ops-row-body > p, .ops-row-body > .svc-tags { overflow: hidden; }
.ops-row-body { overflow: hidden; }
.ops-row-body p { max-width: 720px; margin-left: clamp(32px, 6vw, 68px); }
.ops-row-body .svc-tags { margin: 0 0 0 clamp(32px, 6vw, 68px); }
.ops-row.active .ops-row-body, .ops-row:hover .ops-row-body { grid-template-rows: 1fr; }
.ops-row.active .ops-row-body { padding-bottom: 28px; }
.ops-row:hover .ops-row-body { padding-bottom: 28px; }
.ops-row:hover .ops-row-head h3 { color: var(--cyan); }
.ops-row:hover .ops-plus { transform: rotate(45deg); color: var(--cyan); }
.ops-row-body .svc-tags { padding-top: 16px; }

/* ============ STATS BAND ============ */
.stats-band {
  padding: clamp(64px, 8vw, 110px) 0; position: relative; z-index: 2;
  background:
    radial-gradient(600px 300px at 20% 50%, rgba(34, 211, 238, 0.07), transparent),
    radial-gradient(600px 300px at 80% 50%, rgba(129, 140, 248, 0.07), transparent);
}
.stats-lede {
  font-family: var(--font-head); font-size: clamp(1.2rem, 2.4vw, 1.7rem); font-weight: 500;
  color: var(--text); max-width: 820px; margin: 0 auto clamp(44px, 6vw, 64px); text-align: center; line-height: 1.45;
}
.stats-lede .serif { font-size: 1.1em; }
.stats-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; text-align: center; }
.stat strong {
  display: block; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat > span { font-size: 0.85rem; color: var(--muted); }
.stat strong span { font: inherit; }

/* ============ WORK (HORIZONTAL SCROLL) ============ */
.work { position: relative; z-index: 2; background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.work-pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 60px 0; }
.work-head { margin-bottom: 40px; }
.work-note { font-size: 0.85rem; margin-top: 10px; opacity: 0.8; }
.work-track {
  display: flex; gap: 26px; padding-left: max(calc((100vw - 1200px) / 2), 4vw);
  width: max-content; will-change: transform;
}
.case-card {
  width: min(560px, 84vw); flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(28px, 3.4vw, 44px);
  display: flex; flex-direction: column; gap: 18px;
}
.case-tag {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cyan);
}
.case-card h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.25; }
.case-block h5 {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--violet); margin-bottom: 6px;
}
.case-block p { font-size: 0.92rem; }
.case-metrics { display: flex; gap: 28px; margin-top: auto; padding-top: 8px; flex-wrap: wrap; }
.case-metrics strong {
  display: block; font-family: var(--font-head); font-size: 1.5rem; font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.case-metrics span { font-size: 0.75rem; color: var(--muted); }
.case-card-cta { justify-content: center; align-items: flex-start; gap: 28px; background: linear-gradient(140deg, rgba(34, 211, 238, 0.08), rgba(129, 140, 248, 0.08)), var(--surface); }
.case-card-cta h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }

/* ============ TESTIMONIALS ============ */
.testimonials { overflow: hidden; }
.testi-marquee {
  overflow: hidden; padding: 12px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.testi-track { display: flex; gap: 24px; width: max-content; animation: marquee 55s linear infinite; }
.testi-marquee.reverse .testi-track { animation-direction: reverse; }
.testi-marquee:hover .testi-track { animation-play-state: paused; }
.testi-card {
  width: 420px; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
}
.testi-card p { font-size: 0.98rem; color: var(--text); margin-bottom: 18px; line-height: 1.55; }
.testi-card footer { display: flex; flex-direction: column; gap: 2px; }
.testi-card footer strong { font-family: var(--font-head); font-size: 0.9rem; }
.testi-card footer span { font-size: 0.8rem; color: var(--muted); }

/* ============ PROMISES ============ */
.promises-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.promise {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.35s cubic-bezier(0.3, 0.8, 0.3, 1), border-color 0.35s;
}
.promise:hover { transform: translateY(-6px); border-color: rgba(34, 211, 238, 0.35); }
.promise-num {
  display: block; font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 16px;
}
.promise h4 { font-size: 1.15rem; margin-bottom: 12px; line-height: 1.3; }
.promise p { font-size: 0.92rem; }

/* ============ OFFICES ============ */
.offices-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.office-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.35s cubic-bezier(0.3, 0.8, 0.3, 1), border-color 0.35s;
}
.office-card:hover { transform: translateY(-6px); border-color: rgba(34, 211, 238, 0.35); }
.office-flag { font-size: 1.7rem; display: block; margin-bottom: 14px; }
.office-card h4 { font-size: 1.1rem; margin-bottom: 10px; }
.office-card p { font-size: 0.86rem; line-height: 1.55; }
.office-second { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }

/* ============ FAQ ============ */
.faq-index .ops-row-body p { max-width: 780px; }

/* ============ FORM TRUST NOTE ============ */
.form-trust { font-size: 0.8rem; color: var(--muted); text-align: center; margin-top: -6px; }

/* ============ PROCESS ============ */
.process-row { display: flex; align-items: stretch; gap: 14px; }
.proc-step {
  flex: 1; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 24px; text-align: center;
  transition: transform 0.35s cubic-bezier(0.3, 0.8, 0.3, 1), border-color 0.35s;
}
.proc-step:hover { transform: translateY(-6px); border-color: rgba(34, 211, 238, 0.35); }
.proc-dot {
  width: 44px; height: 44px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; color: #04121a;
  background: var(--grad); box-shadow: 0 6px 22px rgba(34, 211, 238, 0.35);
}
.proc-step h4 { margin-bottom: 10px; }
.proc-step p { font-size: 0.88rem; }
.proc-line {
  align-self: center; width: 40px; height: 1.5px; flex-shrink: 0;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.5), rgba(129, 140, 248, 0.5));
}

/* ============ PRODUCTS ============ */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.prod-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform 0.35s cubic-bezier(0.3, 0.8, 0.3, 1), border-color 0.35s;
  position: relative; overflow: hidden;
}
.prod-card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.3, 0.8, 0.3, 1);
}
.prod-card:hover { transform: translateY(-6px); border-color: rgba(129, 140, 248, 0.4); }
.prod-card:hover::after { transform: scaleX(1); }
.prod-tag {
  display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--violet); margin-bottom: 14px;
}
.prod-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.prod-card p { font-size: 0.9rem; }

/* ============ CONTACT ============ */
.contact {
  background:
    radial-gradient(700px 400px at 85% 20%, rgba(59, 130, 246, 0.1), transparent),
    var(--bg-alt);
  border-top: 1px solid var(--line);
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact-copy p { margin: 18px 0 26px; font-size: 1.05rem; }
.contact-points { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.contact-points li { display: flex; align-items: center; gap: 12px; color: var(--text); font-size: 0.95rem; }
.contact-points li::before {
  content: "✓"; display: grid; place-items: center; width: 22px; height: 22px;
  border-radius: 50%; font-size: 0.7rem; font-weight: 700; color: #04121a;
  background: var(--grad); flex-shrink: 0;
}
.contact-form {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(26px, 4vw, 40px); display: flex; flex-direction: column; gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 0.82rem; font-weight: 500; color: var(--muted);
}
.contact-form input, .contact-form select, .contact-form textarea {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 16px; color: var(--text); font-family: var(--font-body);
  font-size: 1rem; /* >=16px so iOS Safari doesn't zoom on focus */
  outline: none; transition: border-color 0.25s, box-shadow 0.25s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}
.contact-form textarea { resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--cyan); text-align: center; min-height: 1.2em; }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--line); padding: 60px 0 30px; position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 44px; }
.footer-logo { margin-bottom: 12px; display: inline-flex; }
.footer p { font-size: 0.88rem; max-width: 280px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h5 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text); margin-bottom: 6px; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: 0.9rem; transition: color 0.25s; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 24px;
  font-size: 0.82rem; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}

/* ============ REVEAL DEFAULTS (JS overrides) ============ */
[data-reveal], [data-card] { opacity: 0; }
.no-js [data-reveal], .no-js [data-card] { opacity: 1; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .split-layout { grid-template-columns: 1fr; }
  .split-sticky { position: static; }
}
@media (max-width: 980px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .people-strip { grid-template-columns: 1fr 1fr; }
  .people-strip .photo:nth-child(2) { margin-top: 0; }
  .people-strip .photo:nth-child(3) { display: none; }
  .promises-grid { grid-template-columns: 1fr; }
  .offices-grid { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .process-row { flex-direction: column; }
  .proc-line { width: 1.5px; height: 32px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .testi-card { width: 340px; }
}
@media (max-width: 860px) {
  /* work section stacks vertically (JS switches the track); cards go full width */
  .case-card { width: 100%; }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed; inset: 0; top: 64px; z-index: 99;
    background: rgba(4, 7, 13, 0.97); backdrop-filter: blur(20px);
    flex-direction: column; justify-content: center; gap: 30px;
    transform: translateY(-110%); transition: transform 0.4s cubic-bezier(0.3, 0.8, 0.3, 1);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { font-size: 1.2rem; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; padding: 6px;
  }
  .nav-toggle span { width: 26px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
  .nav-toggle.open span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle.open span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .split-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .offices-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .hero-stats { gap: 22px; }
  .hstat { max-width: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  [data-reveal], [data-card] { opacity: 1 !important; }
  .preloader { display: none !important; }
}
