/* APEXTECH GLOBAL — shared site styles (index + legal pages). */
/* ═══════════════════════════════════════════════════════════
   DESIGN TOKENS
   Brand: Apex navy (#2E4D8F, from the logo) → cobalt → cyan.
   Dark is the signature look; light follows the OS or the toggle.
═══════════════════════════════════════════════════════════ */
:root {
  --bg:            #07090F;
  --bg-elev:       #0A0E17;
  --surface:       #0F1420;
  --surface-2:     #141B2B;
  --input-bg:      #0B101B;
  --border:        rgba(148,163,184,.14);
  --border-strong: rgba(148,163,184,.26);
  --text:          #E7EBF3;
  --text-2:        #A9B3C7;
  --text-3:        #8591A8;
  --heading:       #F5F7FB;
  --brand:         #7C9BFF;
  --brand-strong:  #3D5FE0;
  --brand-hover:   #4A6CF0;
  --brand-soft:    rgba(91,127,255,.12);
  --accent:        #22D3EE;
  --success:       #34D399;
  --warn:          #FBBF24;
  --danger:        #F87171;
  --grad-text:     linear-gradient(100deg, #A9BCFF 0%, #7C9BFF 40%, #22D3EE 100%);
  --grad-brand:    linear-gradient(135deg, #2E4D8F 0%, #3D5FE0 50%, #22D3EE 120%);
  --glow:          rgba(61,95,224,.38);
  --grid-line:     rgba(148,163,184,.07);
  --shadow-sm:     0 1px 2px rgba(0,0,0,.4);
  --shadow-md:     0 1px 0 rgba(255,255,255,.04) inset, 0 12px 32px -12px rgba(0,0,0,.65);
  --shadow-lg:     0 1px 0 rgba(255,255,255,.05) inset, 0 30px 80px -24px rgba(0,0,0,.8);
  --nav-bg:        rgba(7,9,15,.72);
  --logo-tile:     #FFFFFF;

  /* Type scale (fluid) */
  --font-sans:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono:  'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --fs-xs:   .75rem;
  --fs-sm:   .875rem;
  --fs-base: 1rem;
  --fs-lg:   1.125rem;
  --fs-xl:   1.25rem;
  --fs-h3:   1.125rem;
  --fs-h2:   clamp(1.9rem, 1.2rem + 2.6vw, 3rem);
  --fs-hero: clamp(2.5rem, 1.3rem + 5vw, 4.75rem);

  /* Spacing (4px base) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --section-y: clamp(72px, 9vw, 128px);
  --gutter: clamp(16px, 4vw, 32px);

  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-pill: 999px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --dur: .25s;
}
:root[data-theme="light"] {
  --bg:#FFFFFF; --bg-elev:#F6F8FB; --surface:#FFFFFF; --surface-2:#F3F5F9; --input-bg:#FFFFFF;
  --border:#E4E8F0; --border-strong:#CDD5E1;
  --text:#1A2333; --text-2:#475467; --text-3:#5D6B82; --heading:#0B1220;
  --brand:#2E55C4; --brand-strong:#2E55C4; --brand-hover:#2549B0; --brand-soft:rgba(46,85,196,.08);
  --accent:#0E7490; --success:#047857; --warn:#B45309; --danger:#B91C1C;
  --grad-text: linear-gradient(100deg, #2E4D8F 0%, #2E55C4 45%, #0E7490 100%);
  --glow: rgba(46,85,196,.18); --grid-line: rgba(15,23,42,.06);
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06);
  --shadow-md: 0 1px 2px rgba(15,23,42,.05), 0 12px 32px -16px rgba(15,23,42,.18);
  --shadow-lg: 0 1px 2px rgba(15,23,42,.06), 0 30px 70px -30px rgba(15,23,42,.3);
  --nav-bg: rgba(255,255,255,.78);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg:#FFFFFF; --bg-elev:#F6F8FB; --surface:#FFFFFF; --surface-2:#F3F5F9; --input-bg:#FFFFFF;
    --border:#E4E8F0; --border-strong:#CDD5E1;
    --text:#1A2333; --text-2:#475467; --text-3:#5D6B82; --heading:#0B1220;
    --brand:#2E55C4; --brand-strong:#2E55C4; --brand-hover:#2549B0; --brand-soft:rgba(46,85,196,.08);
    --accent:#0E7490; --success:#047857; --warn:#B45309; --danger:#B91C1C;
    --grad-text: linear-gradient(100deg, #2E4D8F 0%, #2E55C4 45%, #0E7490 100%);
    --glow: rgba(46,85,196,.18); --grid-line: rgba(15,23,42,.06);
    --shadow-sm: 0 1px 2px rgba(15,23,42,.06);
    --shadow-md: 0 1px 2px rgba(15,23,42,.05), 0 12px 32px -16px rgba(15,23,42,.18);
    --shadow-lg: 0 1px 2px rgba(15,23,42,.06), 0 30px 70px -30px rgba(15,23,42,.3);
    --nav-bg: rgba(255,255,255,.78);
  }
}

/* ─── RESET / BASE ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans); font-size: var(--fs-base); line-height: 1.65;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: hidden;
  font-feature-settings: 'cv11', 'ss01';
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { color: var(--heading); font-weight: 650; letter-spacing: -.025em; line-height: 1.15; }
::selection { background: var(--brand-strong); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 2000; background: var(--brand-strong); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; transition: top var(--dur) var(--ease); }
.skip-link:focus { top: 12px; }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ─── LAYOUT ───────────────────────────────────────────── */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--alt { background: var(--bg-elev); border-block: 1px solid var(--border); }
.section-head { max-width: 680px; margin: 0 auto var(--s-8); text-align: center; }
.section-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-5); text-align: left; flex-wrap: wrap; }
.section-head--row > div { max-width: 760px; }
.badge {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand); margin-bottom: var(--s-4);
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px var(--brand-soft); }
.section-title { font-size: var(--fs-h2); letter-spacing: -.035em; line-height: 1.1; margin-bottom: var(--s-4); }
.section-title span, .gradient-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-desc { font-size: var(--fs-lg); color: var(--text-2); line-height: 1.65; }
.section-head .section-desc { margin-inline: auto; }

/* ─── BUTTONS ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  height: 44px; padding: 0 var(--s-5); border-radius: var(--r-md);
  font-size: .95rem; font-weight: 550; letter-spacing: -.005em; white-space: nowrap;
  border: 1px solid transparent; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), color var(--dur);
}
.btn-sm { height: 36px; padding: 0 14px; font-size: var(--fs-sm); border-radius: 10px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--brand-strong); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 8px 24px -8px var(--glow);
}
.btn-primary:hover { background: var(--brand-hover); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 12px 30px -8px var(--glow); }
.btn-primary:disabled { opacity: .7; cursor: progress; transform: none; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--brand); color: var(--heading); }
.btn .arr { transition: transform var(--dur) var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 10px; color: var(--text-2); border: 1px solid var(--border); background: transparent; transition: color var(--dur), border-color var(--dur), background var(--dur); }
.icon-btn:hover { color: var(--heading); border-color: var(--border-strong); background: var(--surface); }

/* ─── NAV ──────────────────────────────────────────────── */
#nav { position: fixed; inset: 0 0 auto 0; z-index: 1000; transition: background var(--dur), border-color var(--dur), backdrop-filter var(--dur); border-bottom: 1px solid transparent; }
#nav.scrolled { background: var(--nav-bg); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom-color: var(--border); }
.nav-inner { height: 68px; display: flex; align-items: center; gap: var(--s-6); }
.nav-logo { display: flex; align-items: center; gap: var(--s-3); flex: none; }
.logo-tile { width: 36px; height: 36px; border-radius: 10px; background: var(--logo-tile); display: grid; place-items: center; overflow: hidden; box-shadow: 0 0 0 1px var(--border), var(--shadow-sm); }
.logo-tile img { width: 44px; height: 44px; object-fit: cover; }
.nav-logo-text { font-weight: 650; font-size: 1rem; color: var(--heading); letter-spacing: -.02em; line-height: 1.1; }
.nav-logo-text span { display: block; font-family: var(--font-mono); font-size: .64rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-top: 2px; }
.nav-links { display: flex; gap: var(--s-1); margin-inline: auto; }
.nav-links a { display: block; padding: 8px 12px; border-radius: var(--r-sm); font-size: .9rem; font-weight: 500; color: var(--text-2); transition: color var(--dur), background var(--dur); }
.nav-links a:hover { color: var(--heading); background: var(--brand-soft); }
.nav-links a.active { color: var(--heading); }
.nav-cta { display: flex; align-items: center; gap: var(--s-2); }
.theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="dark"]) .theme-toggle .moon { display: none; }
}
.hamburger { display: none; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 1100; background: var(--bg); padding: 84px var(--gutter) var(--s-6);
  display: flex; flex-direction: column; gap: var(--s-1);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mobile-menu a { font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; color: var(--heading); padding: 12px 4px; border-bottom: 1px solid var(--border); }
.mobile-menu .btn { margin-top: var(--s-5); font-size: 1rem; border-bottom: 0; }
.mobile-close { position: absolute; top: 16px; right: var(--gutter); }

/* ─── HERO ─────────────────────────────────────────────── */
#hero { position: relative; padding: 148px 0 var(--s-9); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::before { /* engineering grid, faded at the edges */
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
}
.hero-bg::after { /* brand glow */
  content: ''; position: absolute; left: 50%; top: -260px; width: 1100px; height: 640px; transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
  filter: blur(10px);
}
.hero-inner { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: var(--s-8); align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2); padding: 5px 12px 5px 6px; margin-bottom: var(--s-5);
  border: 1px solid var(--border-strong); border-radius: var(--r-pill); background: var(--surface);
  font-size: var(--fs-sm); color: var(--text-2); box-shadow: var(--shadow-sm);
}
.hero-eyebrow-dot { width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 20%, transparent); }
.hero-eyebrow { padding-left: 8px; }
.hero-eyebrow-pill { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--brand-strong); padding: 3px 8px; border-radius: var(--r-pill); }
.hero-title { font-size: var(--fs-hero); font-weight: 700; letter-spacing: -.045em; line-height: 1.02; margin-bottom: var(--s-5); }
.hero-title .accent { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-typewriter { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--text-3); margin-bottom: var(--s-5); min-height: 1.6em; }
.tw-word { color: var(--accent); }
.tw-cursor { display: inline-block; width: 2px; height: 1em; background: var(--accent); margin-left: 2px; vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-desc { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--text-2); max-width: 560px; margin-bottom: var(--s-6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-7); }
.hero-stats { display: flex; flex-wrap: wrap; gap: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--border); max-width: 560px; }
.hero-stat-num { font-size: 1.75rem; font-weight: 650; letter-spacing: -.03em; color: var(--heading); font-variant-numeric: tabular-nums; line-height: 1.1; }
.hero-stat-label { font-size: var(--fs-sm); color: var(--text-3); margin-top: 4px; }

/* Product visual */
.hero-visual { position: relative; }
.hero-ui { position: relative; padding: 72px var(--s-5) var(--s-8) var(--s-6); }
.hero-card-main {
  position: relative; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.02); overflow: hidden;
}
.hero-card-main::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, var(--brand), transparent); opacity: .6; }
.hc-header { display: flex; align-items: center; gap: var(--s-3); padding: 12px var(--s-4); border-bottom: 1px solid var(--border); background: var(--surface-2); }
.hc-dots { display: flex; gap: 6px; }
.hc-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.hc-title { font-family: var(--font-mono); font-size: .74rem; color: var(--text-3); }
.hc-live { margin-left: var(--s-2); display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .08em; color: var(--success); }
.hc-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 25%, transparent); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.hc-body { padding: var(--s-5) var(--s-5) var(--s-5); }
.progress-row { margin-bottom: var(--s-4); }
.pr-top { display: flex; justify-content: space-between; font-size: var(--fs-sm); margin-bottom: 8px; }
.pr-label { color: var(--text-2); }
.pr-pct { font-family: var(--font-mono); font-size: .78rem; color: var(--heading); }
.pr-track { height: 6px; border-radius: var(--r-pill); background: var(--surface-2); overflow: hidden; }
.pr-fill { height: 100%; border-radius: inherit; background: var(--grad-brand); transform-origin: left; animation: grow 1.4s var(--ease) both .3s; }
@keyframes grow { from { transform: scaleX(0); } }
.hc-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s-3); margin-top: var(--s-5); }
.hc-metric { padding: var(--s-3); border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-2); }
.hcm-val { font-size: 1.25rem; font-weight: 650; color: var(--heading); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hcm-lab { font-size: var(--fs-xs); color: var(--text-3); }
.hero-float {
  position: absolute; z-index: 2; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-md);
  padding: var(--s-3) var(--s-4); box-shadow: var(--shadow-lg); animation: float 7s ease-in-out infinite;
}
.hero-float-1 { top: 0; right: 0; }
.hero-float-2 { bottom: 8px; left: 0; animation-delay: -3.5s; }
@keyframes float { 50% { transform: translateY(-8px); } }
.hf-label { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.hf-val { font-size: 1.35rem; font-weight: 650; color: var(--heading); letter-spacing: -.02em; }
.hf-trend { font-size: var(--fs-xs); color: var(--success); font-weight: 600; }
.hf-row { display: flex; align-items: center; gap: var(--s-3); }
.hf-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); }
.hf-text { font-size: var(--fs-sm); font-weight: 600; color: var(--heading); }
.hf-sub { font-size: var(--fs-xs); color: var(--text-3); font-family: var(--font-mono); }

/* ─── LOGO STRIP ───────────────────────────────────────── */
.marquee-section { padding: var(--s-6) 0 var(--s-7); border-bottom: 1px solid var(--border); }
.marquee-label { text-align: center; font-size: var(--fs-sm); color: var(--text-3); margin-bottom: var(--s-5); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: var(--s-8); width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { font-size: 1.15rem; font-weight: 650; letter-spacing: -.02em; color: var(--text-3); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ─── CARDS (shared) ───────────────────────────────────── */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.chip { display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: .7rem; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); padding: 2px 8px; border-radius: var(--r-pill); }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--s-4); }
.service-card { padding: var(--s-5); display: flex; flex-direction: column; }
.service-icon { width: 44px; height: 44px; border-radius: var(--r-md); display: grid; place-items: center; font-size: 1.35rem; margin-bottom: var(--s-4); border: 1px solid var(--border); }
.service-title { font-size: var(--fs-h3); margin-bottom: var(--s-2); }
.service-desc { font-size: .93rem; color: var(--text-2); margin-bottom: var(--s-4); flex: 1; }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.service-arrow { position: absolute; top: var(--s-5); right: var(--s-5); color: var(--text-3); transition: color var(--dur), transform var(--dur) var(--ease); }
.service-card:hover .service-arrow { color: var(--brand); transform: translate(2px,-2px); }

/* Stats */
.stats-section { padding-block: var(--s-8); border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { padding: var(--s-4) var(--s-5); border-left: 1px solid var(--border); }
.stat-item:first-child { border-left: 0; }
.stat-number { font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem); font-weight: 700; letter-spacing: -.045em; line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; margin-bottom: var(--s-3); }
.stat-title { font-weight: 600; color: var(--heading); }
.stat-desc { font-size: var(--fs-sm); color: var(--text-3); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: center; }
.about-visual { position: relative; }
.about-grid-visual { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.avc { padding: var(--s-5); border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); }
.avc-num { font-size: 2.25rem; font-weight: 700; letter-spacing: -.04em; color: var(--heading); line-height: 1.1; }
.avc--blue .avc-num { color: var(--brand); }
.avc--cyan .avc-num { color: var(--accent); }
.avc--green .avc-num { color: var(--success); }
.avc-label { font-size: var(--fs-sm); color: var(--text-3); margin-top: 4px; }
.avc--span2 { grid-column: span 2; display: flex; gap: var(--s-4); align-items: flex-start; background: linear-gradient(135deg, var(--brand-soft), transparent 70%), var(--surface); }
.avc-icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: var(--r-md); background: var(--brand-soft); color: var(--brand); }
.avc-title { font-weight: 600; color: var(--heading); margin-bottom: 4px; }
.avc-desc { font-size: var(--fs-sm); color: var(--text-2); }
.about-float-badge { position: absolute; right: -12px; bottom: -20px; display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--brand-strong); color: #fff; box-shadow: 0 16px 40px -12px var(--glow); }
.afb-num { font-size: 1.6rem; font-weight: 700; letter-spacing: -.03em; }
.afb-text { font-size: var(--fs-xs); line-height: 1.35; font-weight: 500; }
.about-features { display: grid; gap: var(--s-5); margin-top: var(--s-6); }
.about-feature { display: flex; gap: var(--s-4); }
.about-feature-icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: var(--r-md); background: var(--brand-soft); color: var(--brand); border: 1px solid var(--border); }
.about-feature-title { font-weight: 600; color: var(--heading); margin-bottom: 2px; }
.about-feature-desc { font-size: .93rem; color: var(--text-2); }

/* Tech */
.tech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s-3); }
.tech-card { display: flex; align-items: center; gap: var(--s-3); padding: 14px var(--s-4); border-radius: var(--r-md); }
.tech-icon { font-size: 1.2rem; width: 28px; text-align: center; }
.tech-name { font-size: .93rem; font-weight: 550; color: var(--heading); }

/* Portfolio */
.portfolio-filter { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }
.filter-btn { height: 34px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: var(--fs-sm); font-weight: 500; transition: all var(--dur) var(--ease); }
.filter-btn:hover { color: var(--heading); border-color: var(--border-strong); }
.filter-btn.active { background: var(--heading); color: var(--bg); border-color: var(--heading); }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--s-5); }
.portfolio-card { overflow: hidden; display: flex; flex-direction: column; }
.portfolio-img { position: relative; height: 176px; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--border); }
.portfolio-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portfolio-emoji { font-size: 3.25rem; position: relative; z-index: 1; filter: drop-shadow(0 8px 16px rgba(0,0,0,.35)); transition: transform .5s var(--ease); }
.portfolio-card:hover .portfolio-emoji { transform: scale(1.08); }
.portfolio-img::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 24px 24px; }
.portfolio-body { padding: var(--s-5); display: flex; flex-direction: column; flex: 1; }
.portfolio-category { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin-bottom: var(--s-2); }
.portfolio-title { font-size: var(--fs-h3); margin-bottom: var(--s-2); }
.portfolio-desc { font-size: .92rem; color: var(--text-2); margin-bottom: var(--s-4); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.portfolio-meta { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-3); }
.portfolio-tech-list { display: flex; flex-wrap: wrap; gap: 6px; }
.portfolio-link { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); color: var(--text-2); transition: all var(--dur); }
.portfolio-link:hover { color: var(--brand); border-color: var(--brand); }
.portfolio-empty { grid-column: 1/-1; text-align: center; color: var(--text-3); padding: var(--s-7) 0; }

/* Process */
.process-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-5); position: relative; counter-reset: step; }
.process-steps::before { content: ''; position: absolute; top: 20px; left: 10%; right: 10%; height: 1px; background: linear-gradient(90deg, transparent, var(--border-strong) 10%, var(--border-strong) 90%, transparent); }
.process-step { position: relative; text-align: center; padding: 0 var(--s-2); }
.step-num { width: 40px; height: 40px; margin: 0 auto var(--s-4); display: grid; place-items: center; border-radius: 50%; background: var(--bg); border: 1px solid var(--border-strong); font-family: var(--font-mono); font-size: .78rem; color: var(--brand); position: relative; box-shadow: 0 0 0 6px var(--bg); }
.step-title { font-size: 1rem; margin-bottom: var(--s-2); }
.step-desc { font-size: var(--fs-sm); color: var(--text-2); }

/* Why */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.why-card { padding: var(--s-5); }
.why-num { font-family: var(--font-mono); font-size: .78rem; color: var(--brand); margin-bottom: var(--s-5); }
.why-title { font-size: 1.05rem; font-weight: 600; color: var(--heading); letter-spacing: -.015em; margin-bottom: var(--s-2); }
.why-desc { font-size: .92rem; color: var(--text-2); }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--s-4); }
.team-card { padding: var(--s-5); display: flex; flex-direction: column; }
.team-head { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); }
.avatar { width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; overflow: hidden; font-weight: 650; font-size: 1rem; color: #fff; letter-spacing: .02em; box-shadow: 0 0 0 1px var(--border-strong); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--sm { width: 40px; height: 40px; font-size: .85rem; }
.team-name { font-weight: 600; color: var(--heading); line-height: 1.3; }
.team-role { font-size: var(--fs-sm); color: var(--brand); }
.team-bio { font-size: .9rem; color: var(--text-2); flex: 1; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.team-socials { display: flex; gap: var(--s-2); margin-top: var(--s-4); }
.team-social { width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--border); color: var(--text-2); font-size: .8rem; font-weight: 600; transition: all var(--dur); }
.team-social:hover { color: var(--brand); border-color: var(--brand); }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--s-4); }
.testimonial-card { padding: var(--s-5); display: flex; flex-direction: column; }
.stars { color: var(--warn); letter-spacing: 2px; font-size: .95rem; margin-bottom: var(--s-3); }
.testimonial-text { color: var(--text); font-size: .98rem; line-height: 1.7; flex: 1; margin-bottom: var(--s-5); }
.testimonial-author { display: flex; align-items: center; gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--border); }
.testimonial-name { font-weight: 600; color: var(--heading); font-size: .93rem; }
.testimonial-company { font-size: var(--fs-sm); color: var(--text-3); }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s-5); }
.blog-card { overflow: hidden; display: flex; flex-direction: column; }
.blog-img { position: relative; height: 168px; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--border); }
.blog-img-bg { position: absolute; inset: 0; }
.blog-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.blog-img-emoji { position: relative; font-size: 2.75rem; transition: transform .5s var(--ease); }
.blog-card:hover .blog-img-emoji { transform: scale(1.08) rotate(-3deg); }
.blog-body { padding: var(--s-5); display: flex; flex-direction: column; flex: 1; }
.blog-category { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin-bottom: var(--s-2); }
.blog-title { font-size: 1.08rem; margin-bottom: var(--s-2); }
.blog-excerpt { font-size: .92rem; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: var(--s-4); flex: 1; }
.blog-meta { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--border); }
.blog-author { font-size: var(--fs-sm); font-weight: 600; color: var(--heading); }
.blog-date { font-size: var(--fs-xs); color: var(--text-3); }
.blog-read-more { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 600; color: var(--brand); white-space: nowrap; }
.blog-read-more .arr { transition: transform var(--dur) var(--ease); }
.blog-read-more:hover .arr { transform: translateX(3px); }
.blog-read-more::after { content: ''; position: absolute; inset: 0; } /* whole card is clickable */

/* Skeletons while API data loads */
.skeleton { border-radius: var(--r-lg); border: 1px solid var(--border); min-height: 220px; background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%) 0 0 / 300% 100%; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }

/* CTA */
.cta-section { padding-block: var(--section-y); }
.cta-panel {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  padding: clamp(48px, 7vw, 88px) var(--gutter); border-radius: var(--r-xl);
  border: 1px solid var(--border-strong); background: var(--surface);
}
.cta-panel::before { content: ''; position: absolute; inset: -40% -10% auto; height: 120%; z-index: -1; background: radial-gradient(closest-side, var(--glow), transparent 70%); }
.cta-panel::after { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 70%); mask-image: radial-gradient(ellipse at center, #000, transparent 70%); }
.cta-title { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.5rem); font-weight: 700; letter-spacing: -.045em; line-height: 1.05; margin-bottom: var(--s-4); }
.cta-desc { font-size: var(--fs-lg); color: var(--text-2); max-width: 600px; margin: 0 auto var(--s-6); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); margin-bottom: var(--s-6); }
.cta-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3) var(--s-6); }
.cta-trust-item { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); color: var(--text-2); }
.cta-trust-item .icon { color: var(--success); width: 16px; height: 16px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: var(--s-7); align-items: start; }
.contact-info { display: grid; gap: var(--s-3); }
.contact-item { display: flex; gap: var(--s-4); padding: var(--s-4); border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); }
.contact-icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: var(--r-md); background: var(--brand-soft); color: var(--brand); }
.contact-item-title { font-size: var(--fs-sm); font-weight: 600; color: var(--heading); }
.contact-item-val { font-size: .92rem; color: var(--text-2); overflow-wrap: anywhere; }
.contact-link { color: var(--heading); font-weight: 550; text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.contact-link:hover { color: var(--brand); text-decoration-color: currentColor; }
.contact-follow { margin-top: var(--s-3); }
.contact-follow-label { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: var(--s-3); }
.contact-form { padding: clamp(20px, 3vw, 36px); border-radius: var(--r-xl); border: 1px solid var(--border-strong); background: var(--surface); box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.form-group { margin-bottom: var(--s-4); }
.form-label { display: block; font-size: var(--fs-sm); font-weight: 550; color: var(--heading); margin-bottom: 6px; }
.form-label .req { color: var(--brand); }
.form-input, .form-select, .form-textarea {
  width: 100%; height: 46px; padding: 0 14px; border-radius: var(--r-md);
  background: var(--input-bg); border: 1px solid var(--border-strong); color: var(--text);
  transition: border-color var(--dur), box-shadow var(--dur);
}
.form-textarea { height: auto; min-height: 140px; padding: 12px 14px; resize: vertical; line-height: 1.6; }
.form-select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238591A8' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.form-select option { background: var(--surface); color: var(--text); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-3); opacity: .85; }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.form-note { font-size: var(--fs-xs); color: var(--text-3); margin-top: var(--s-3); text-align: center; }
.form-status { min-height: 1.5em; font-size: var(--fs-sm); margin-top: var(--s-3); text-align: center; font-weight: 500; }
.form-status.ok { color: var(--success); }
.form-status.err { color: var(--danger); }

/* Footer */
footer { border-top: 1px solid var(--border); padding: var(--s-8) 0 var(--s-6); background: var(--bg-elev); }
.footer-main { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--s-7); margin-bottom: var(--s-7); }
.footer-logo { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); }
.footer-logo-text { font-weight: 650; color: var(--heading); letter-spacing: -.02em; }
.footer-brand-desc { font-size: .92rem; color: var(--text-2); max-width: 340px; margin-bottom: var(--s-5); }
.footer-socials { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.footer-contact { display: grid; gap: var(--s-2); margin-bottom: var(--s-5); }
.footer-contact li { display: flex; align-items: center; gap: var(--s-2); font-size: .9rem; color: var(--text-2); overflow-wrap: anywhere; }
.footer-contact .icon { width: 15px; height: 15px; color: var(--text-3); }
.footer-contact a:hover { color: var(--heading); }
.footer-social { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); color: var(--text-2); transition: all var(--dur); }
.footer-social:hover { color: var(--heading); border-color: var(--border-strong); background: var(--surface); }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }
.footer-col-title { font-size: var(--fs-sm); font-weight: 600; color: var(--heading); margin-bottom: var(--s-4); }
.footer-links { display: grid; gap: 10px; }
.footer-links a { font-size: .9rem; color: var(--text-2); transition: color var(--dur); }
.footer-links a:hover { color: var(--heading); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-4); padding-top: var(--s-5); border-top: 1px solid var(--border); }
.footer-bottom-text { font-size: var(--fs-sm); color: var(--text-3); }
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: var(--s-5); }
.footer-bottom-links a { font-size: var(--fs-sm); color: var(--text-3); }
.footer-bottom-links a:hover { color: var(--heading); }

/* Back to top */
#btt { position: fixed; right: 20px; bottom: 20px; z-index: 900; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--heading); border: 1px solid var(--border-strong); box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all var(--dur) var(--ease); }
#btt.visible { opacity: 1; visibility: visible; transform: none; }
#btt:hover { border-color: var(--brand); color: var(--brand); }

/* ─── Blog reader modal ───────────────────────────────── */
.post-modal { position: fixed; inset: 0; z-index: 10000; display: none; align-items: flex-start; justify-content: center; padding: 6vh 16px; background: rgba(2,4,10,.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); overflow-y: auto; }
.post-modal.open { display: flex; animation: fadeIn .2s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } }
.post-modal-box { position: relative; width: 100%; max-width: 720px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-xl); padding: clamp(28px, 5vw, 48px); box-shadow: var(--shadow-lg); color: var(--text); animation: rise .3s var(--ease); }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } }
.post-modal-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); color: var(--text-2); font-size: 1rem; }
.post-modal-close:hover { color: var(--heading); border-color: var(--border-strong); }
.post-modal-cat { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: var(--s-3); }
.post-modal-title { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.35rem); letter-spacing: -.035em; line-height: 1.15; margin-bottom: var(--s-3); }
.post-modal-meta { font-size: var(--fs-sm); color: var(--text-3); padding-bottom: var(--s-5); margin-bottom: var(--s-5); border-bottom: 1px solid var(--border); }
.post-modal-body { line-height: 1.8; font-size: 1.04rem; color: var(--text); }
.post-modal-body p, .post-modal-body ul, .post-modal-body ol, .post-modal-body blockquote, .post-modal-body pre { margin-bottom: 1.15em; }
.post-modal-body h2, .post-modal-body h3, .post-modal-body h4 { margin: 1.6em 0 .6em; }
.post-modal-body h2 { font-size: 1.4rem; } .post-modal-body h3 { font-size: 1.18rem; }
.post-modal-body ul, .post-modal-body ol { padding-left: 1.4em; }
.post-modal-body ul { list-style: disc; } .post-modal-body ol { list-style: decimal; }
.post-modal-body li { margin-bottom: .35em; }
.post-modal-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.post-modal-body img { max-width: 100%; height: auto; border-radius: var(--r-md); }
.post-modal-body blockquote { border-left: 3px solid var(--brand); padding-left: 16px; color: var(--text-2); }
.post-modal-body pre, .post-modal-body code { font-family: var(--font-mono); font-size: .88em; background: var(--surface-2); border-radius: 6px; }
.post-modal-body code { padding: 1px 5px; }
.post-modal-body pre { padding: 14px; overflow-x: auto; }
.post-modal-body strong { color: var(--heading); }

/* ─── REVEAL (only when JS runs) ───────────────────────── */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.visible { opacity: 1; transform: none; }

/* ─── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1080px) {
  .nav-call { display: none; }
  .process-steps { grid-template-columns: repeat(3, 1fr); row-gap: var(--s-7); }
  .process-steps::before { display: none; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr 1fr; }
  .footer-main > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-cta { margin-left: auto; }
  .hamburger { display: inline-grid; }
  #hero { padding-top: 120px; }
  .hero-inner { grid-template-columns: 1fr; gap: var(--s-7); }
  .hero-visual { max-width: 560px; width: 100%; margin-inline: auto; }
  .about-grid { grid-template-columns: 1fr; gap: var(--s-7); }
  .about-visual { order: 2; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: var(--s-5); }
  .stat-item:nth-child(3) { border-left: 0; }
}
@media (max-width: 640px) {
  .section-head { margin-bottom: var(--s-7); text-align: left; }
  .section-head .section-desc { margin-inline: 0; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: var(--s-4); }
  .hero-stat-num { font-size: 1.5rem; }
  .hero-ui { padding: 64px 0 56px; }
  .hero-float-1 { right: -4px; top: -6px; }
  .hero-float-2 { left: -4px; }
  .hc-body { padding: var(--s-4); }
  .services-grid, .portfolio-grid, .blog-grid, .testimonials-grid, .team-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: 1fr; row-gap: var(--s-5); }
  .process-step { display: grid; grid-template-columns: 40px 1fr; column-gap: var(--s-4); text-align: left; }
  .step-num { margin: 0; grid-row: span 2; }
  .why-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
  .about-float-badge { right: 8px; bottom: -16px; }
  .stat-item { padding: var(--s-3) var(--s-4); }
  .marquee-track { gap: var(--s-7); }
}
@media (max-width: 380px) {
  .nav-logo-text span { display: none; }
  .footer-main { grid-template-columns: 1fr; }
}

/* ─── MOTION PREFERENCES ───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; row-gap: var(--s-3); }
  .marquee-track [aria-hidden="true"] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}

/* ─── Admin-editable content additions ───────────────────── */
.section-title .plain { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: inherit; }
.tech-cat { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); margin-top: 2px; }
@media (min-width: 1081px) { .process-steps { grid-template-columns: repeat(var(--steps, 5), 1fr); } }
@media (min-width: 1081px) { .footer-main { grid-template-columns: 1.6fr repeat(var(--footer-cols, 3), 1fr); } }
.marquee-item { display: inline-flex; align-items: center; }
a.marquee-item:hover { color: var(--heading); }
.marquee-item img { height: 32px; width: auto; max-width: 140px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: opacity var(--dur), filter var(--dur); }
.marquee-item:hover img { filter: none; opacity: 1; }
.marquee--static .marquee { -webkit-mask-image: none; mask-image: none; }
.marquee--static .marquee-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; row-gap: var(--s-4); margin-inline: auto; padding-inline: var(--gutter); }
[hidden] { display: none !important; }

/* ─── Legal pages (/privacy, /terms) ─────────────────────── */
.legal-nav { position: sticky; top: 0; z-index: 100; background: var(--nav-bg); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--border); }
.legal-main { padding: clamp(40px, 7vw, 88px) 0 var(--s-9); }
.legal-wrap { max-width: 760px; margin-inline: auto; }
.legal-title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); letter-spacing: -.04em; margin-bottom: var(--s-3); }
.legal-meta { font-size: var(--fs-sm); color: var(--text-3); padding-bottom: var(--s-5); margin-bottom: var(--s-6); border-bottom: 1px solid var(--border); }
.legal-body { line-height: 1.8; font-size: 1.02rem; color: var(--text); }
.legal-body p, .legal-body ul, .legal-body ol, .legal-body blockquote, .legal-body table { margin-bottom: 1.1em; }
.legal-body h2 { font-size: 1.35rem; margin: 2em 0 .6em; scroll-margin-top: 90px; }
.legal-body h3 { font-size: 1.12rem; margin: 1.5em 0 .5em; scroll-margin-top: 90px; }
.legal-body ul { list-style: disc; padding-left: 1.4em; } .legal-body ol { list-style: decimal; padding-left: 1.4em; }
.legal-body li { margin-bottom: .35em; }
.legal-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-body strong { color: var(--heading); }
.legal-body blockquote { border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); background: color-mix(in srgb, var(--warn) 9%, transparent); border-radius: var(--r-md); padding: var(--s-4) var(--s-5); color: var(--text); }
.legal-body table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.legal-body th, .legal-body td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
.legal-footer { border-top: 1px solid var(--border); padding: var(--s-6) 0; background: var(--bg-elev); }
.legal-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-4); }
