/* ==========================================================================
   WEB HAVEN — Design System
   Palette derived from the Web Haven logo (electric blue -> deep navy).
   Typography: Space Grotesk (headings) + DM Sans (body).
   Motion: transform/opacity only, compositor-friendly, reduced-motion aware.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand — sampled from the logo gradient */
  --brand-300: #7CC6FF;
  --brand-400: #4FB3FF;
  --brand-500: #2E8BFF;
  --brand-600: #1463E6;
  --brand-700: #0B47AE;

  /* Surfaces */
  --bg:        #070C18;
  --bg-2:      #0A1224;
  --bg-3:      #0E1A31;
  --surface:   rgba(255, 255, 255, 0.030);
  --surface-2: rgba(255, 255, 255, 0.055);
  --line:      rgba(140, 175, 235, 0.14);
  --line-2:    rgba(140, 175, 235, 0.26);

  /* Ink — all pairings verified >= 4.5:1 on --bg */
  --ink:       #EAF1FF;
  --ink-2:     #B9C7E4;
  --muted:     #93A4C4;
  --on-brand:  #04101F;

  /* Feedback */
  --danger:    #FF8080;
  --success:   #3DDC97;

  /* Spacing scale */
  --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; --s-10: 128px;

  /* Radii */
  --r-sm: 10px; --r-md: 16px; --r-lg: 22px; --r-xl: 30px; --r-full: 999px;

  /* Layout */
  --maxw: 1200px;
  --header-h: 74px;
  --gutter: clamp(20px, 5vw, 48px);

  /* Motion */
  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io:   cubic-bezier(0.65, 0, 0.35, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 160ms;
  --t-base: 260ms;
  --t-slow: 560ms;

  /* Elevation */
  --shadow-1: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  --shadow-3: 0 40px 80px -30px rgba(4, 20, 50, 0.9);

  color-scheme: dark;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* WCAG 2.2 (2.4.11) — keep focus clear of the sticky header */
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6.4vw, 4.75rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h3 { font-size: clamp(1.25rem, 2.1vw, 1.6rem); }
h4 { font-size: 1.0625rem; letter-spacing: -0.01em; }

p { margin: 0 0 var(--s-4); color: var(--ink-2); text-wrap: pretty; }
p.lead { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); max-width: 62ch; }

a { color: var(--brand-400); text-decoration: none; }
a:hover { color: var(--brand-300); }

img, svg, video { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 var(--s-4); padding-left: 1.15em; color: var(--ink-2); }
li { margin-bottom: var(--s-2); }
strong { color: var(--ink); font-weight: 600; }

::selection { background: var(--brand-500); color: var(--on-brand); }

/* Visible focus on every operable control */
:focus-visible {
  outline: 2px solid var(--brand-400);
  outline-offset: 3px;
  border-radius: 6px;
}
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 400;
  background: var(--brand-500); color: var(--on-brand);
  padding: 12px 20px; border-radius: var(--r-sm); font-weight: 600;
  transition: top var(--t-base) var(--ease-out);
}
.skip-link:focus { top: var(--s-4); color: var(--on-brand); }

.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;
}

/* ---------- 3. Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(72px, 11vw, 140px); }
.section--tight { padding-block: clamp(56px, 7vw, 88px); }
.section > .wrap { position: relative; z-index: 2; }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 68px); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--brand-300);
  margin-bottom: var(--s-4);
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; flex: none;
  background: linear-gradient(90deg, transparent, var(--brand-400));
}
.section-head--center .eyebrow::before { display: none; }

/* Gradient stops stay above 3:1 on --bg across the whole ramp, so large display
   text remains legible at the dark end too. */
.grad-text {
  background: linear-gradient(103deg, var(--brand-300) 0%, var(--brand-400) 42%, var(--brand-500) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.grid { display: grid; gap: clamp(16px, 2vw, 26px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- 4. Ambient background ---------- */
.aurora {
  position: absolute; inset: -25% -10% auto; height: 980px;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(46% 42% at 18% 22%, rgba(46, 139, 255, 0.28), transparent 62%),
    radial-gradient(40% 38% at 82% 12%, rgba(11, 71, 174, 0.34), transparent 66%),
    radial-gradient(34% 34% at 52% 46%, rgba(124, 198, 255, 0.12), transparent 68%);
  animation: drift 24s var(--ease-io) infinite alternate;
  will-change: transform;
}
@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.09); }
}

.gridlines {
  position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0.55;
  background-image:
    linear-gradient(to right, rgba(140, 175, 235, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(140, 175, 235, 0.07) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 34%, #000 0%, transparent 78%);
          mask-image: radial-gradient(70% 60% at 50% 34%, #000 0%, transparent 78%);
}

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

/* ---------- 5. Motion system ----------
   Every hidden-until-animated state is scoped to `.js`, which an inline script in
   <head> sets before first paint. If scripting is off, blocked, or throws before
   that point, the page renders complete and readable instead of blank. */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity var(--t-slow) var(--ease-out) var(--d, 0ms),
    transform var(--t-slow) var(--ease-out) var(--d, 0ms);
  will-change: transform, opacity;
}
.js [data-reveal="left"]  { transform: translate3d(-26px, 0, 0); }
.js [data-reveal="right"] { transform: translate3d(26px, 0, 0); }
.js [data-reveal="scale"] { transform: translate3d(0, 16px, 0) scale(0.965); }
.js [data-reveal="fade"]  { transform: none; }

.js [data-reveal].is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  will-change: auto;
}

/* Word-by-word headline mask reveal */
.reveal-line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.js .reveal-word {
  display: inline-block;
  transform: translate3d(0, 110%, 0) rotate(3deg);
  opacity: 0;
  transition:
    transform 780ms var(--ease-out) var(--d, 0ms),
    opacity 620ms var(--ease-out) var(--d, 0ms);
}
.js .is-in .reveal-word { transform: translate3d(0, 0, 0) rotate(0); opacity: 1; }

/* Page enter / exit curtain.
   Hidden by default and only shown once JS is confirmed running — a curtain that
   needs JS to lift would otherwise leave an opaque panel over the whole page. */
.curtain { display: none; }
.js .curtain {
  display: block;
  position: fixed; inset: 0; z-index: 300; pointer-events: none;
  background: var(--bg);
  transform: translate3d(0, 0, 0);
  transition: transform 560ms var(--ease-io);
}
.curtain::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(50% 50% at 50% 50%, rgba(46, 139, 255, 0.20), transparent 70%);
}
body.is-ready .curtain { transform: translate3d(0, -101%, 0); }
body.is-leaving .curtain { transform: translate3d(0, 0, 0); transition-duration: 360ms; }

/* Scroll progress */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--brand-600), var(--brand-300));
  will-change: transform;
}

/* ---------- 6. Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 13px 26px;
  font-family: "Space Grotesk", sans-serif; font-size: 0.9375rem; font-weight: 600;
  letter-spacing: -0.01em; border-radius: var(--r-full);
  border: 1px solid transparent; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              background-color var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out),
              color var(--t-base) var(--ease-out);
  will-change: transform;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand-300), var(--brand-500) 58%, var(--brand-600));
  color: var(--on-brand);
  box-shadow: 0 10px 30px -12px rgba(46, 139, 255, 0.8);
}
.btn-primary:hover {
  color: var(--on-brand);
  transform: translateY(-2px);
  box-shadow: 0 18px 44px -14px rgba(46, 139, 255, 0.95);
}

.btn-ghost {
  background: var(--surface); color: var(--ink);
  border-color: var(--line-2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  color: var(--ink);
  background: var(--surface-2); border-color: var(--brand-500);
  transform: translateY(-2px);
}

.btn-lg { min-height: 56px; padding: 17px 34px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn .ico-arrow { transition: transform var(--t-base) var(--ease-out); flex: none; }
.btn:hover .ico-arrow { transform: translateX(4px); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* Text link with animated rule */
.link-line {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--brand-300); position: relative;
}
.link-line::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform 420ms var(--ease-out);
}
.link-line:hover::after { transform: scaleX(1); transform-origin: 0 50%; }

/* ---------- 7. Header & navigation ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 110;
  height: var(--header-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: height var(--t-base) var(--ease-out),
              background-color var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out);
}
.header.is-stuck {
  height: 64px;
  background: rgba(7, 12, 24, 0.74);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); }

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { width: 38px; height: 38px; flex: none; transition: transform 620ms var(--ease-back); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.06); }
.brand__name {
  font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: 1.0625rem; letter-spacing: 0.02em; line-height: 1;
}
.brand__tag {
  display: block; font-size: 0.5625rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted); margin-top: 4px; font-weight: 500;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 9px 14px; border-radius: var(--r-full);
  font-size: 0.9375rem; font-weight: 500; color: var(--ink-2);
  transition: color var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out);
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1.5px;
  background: var(--brand-400); border-radius: 2px;
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 380ms var(--ease-out);
}
.nav a:hover { color: var(--ink); background: var(--surface); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); }

.burger {
  display: none; width: 46px; height: 46px; flex: none;
  flex-direction: column; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r-sm); cursor: pointer; position: relative; z-index: 111;
  transition: background-color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}
.burger:hover { background: var(--surface-2); border-color: var(--brand-500); }
.burger span {
  display: block; width: 19px; height: 1.5px; background: var(--ink); border-radius: 2px;
  transition: transform 340ms var(--ease-back), opacity 200ms linear;
}
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0.2); }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 109;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 24px) var(--gutter) var(--s-8);
  background: rgba(7, 12, 24, 0.97);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  opacity: 0; visibility: hidden;
  clip-path: circle(0% at calc(100% - 46px) 40px);
  transition: clip-path 620ms var(--ease-io), opacity 260ms linear, visibility 0s 620ms;
  overflow-y: auto;
}
.drawer.is-open {
  opacity: 1; visibility: visible;
  clip-path: circle(150% at calc(100% - 46px) 40px);
  transition: clip-path 620ms var(--ease-io), opacity 200ms linear, visibility 0s 0s;
}
.drawer a.drawer__link {
  display: block; padding: 14px 0;
  font-family: "Space Grotesk", sans-serif; font-size: clamp(1.6rem, 7.5vw, 2.4rem);
  font-weight: 700; letter-spacing: -0.03em; color: var(--ink);
  border-bottom: 1px solid var(--line);
  opacity: 0; transform: translate3d(0, 26px, 0);
  transition: opacity 460ms var(--ease-out), transform 460ms var(--ease-out), color var(--t-fast) linear;
}
.drawer.is-open a.drawer__link { opacity: 1; transform: none; }
.drawer a.drawer__link:hover, .drawer a.drawer__link[aria-current="page"] { color: var(--brand-400); }
.drawer__foot {
  margin-top: var(--s-7); opacity: 0; transform: translate3d(0, 20px, 0);
  transition: opacity 460ms var(--ease-out) 340ms, transform 460ms var(--ease-out) 340ms;
}
.drawer.is-open .drawer__foot { opacity: 1; transform: none; }

/* ---------- 8. Cards & surfaces ---------- */
.card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.6vw, 34px);
  transition: transform var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out);
  will-change: transform;
}
/* Pointer-tracked highlight (set by JS via --mx/--my) */
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%),
              rgba(79, 179, 255, 0.16), transparent 62%);
  opacity: 0; transition: opacity var(--t-base) linear;
}
.card:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: var(--shadow-2); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }

.card__icon {
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 14px; margin-bottom: var(--s-5);
  background: linear-gradient(140deg, rgba(79,179,255,0.20), rgba(11,71,174,0.16));
  border: 1px solid rgba(79, 179, 255, 0.26);
  color: var(--brand-300);
  transition: transform 520ms var(--ease-back), background-color var(--t-base) linear;
}
.card:hover .card__icon { transform: translateY(-3px) rotate(-6deg) scale(1.06); }
.card h3 { margin-bottom: var(--s-3); }
.card p:last-child { margin-bottom: 0; }

.card__num {
  font-family: "Space Grotesk", sans-serif; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.18em; color: var(--muted);
}

/* Feature list */
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li {
  display: flex; gap: 11px; align-items: flex-start;
  margin-bottom: var(--s-3); color: var(--ink-2); font-size: 0.9375rem;
}
.ticks svg { flex: none; margin-top: 4px; color: var(--brand-400); }

/* Tag / pill */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: var(--r-full);
  background: var(--surface); border: 1px solid var(--line);
  font-size: 0.8125rem; font-weight: 500; color: var(--ink-2);
  white-space: nowrap;
  transition: border-color var(--t-fast) linear, color var(--t-fast) linear,
              background-color var(--t-fast) linear;
}
.pill:hover { border-color: var(--brand-500); color: var(--ink); background: var(--surface-2); }

/* ---------- 9. Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(56px, 9vw, 108px));
  padding-bottom: clamp(64px, 9vw, 120px);
  overflow: hidden;
}
.hero__inner {
  position: relative; z-index: 2;
  display: grid; gap: clamp(40px, 5vw, 72px);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
}
.hero--center .hero__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 8px; margin-bottom: var(--s-5);
  border-radius: var(--r-full);
  background: var(--surface); border: 1px solid var(--line-2);
  font-size: 0.8125rem; color: var(--ink-2);
}
.hero__badge b { color: var(--ink); font-weight: 600; }
.dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--success); flex: none;
  box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.6);
  animation: ping 2.4s var(--ease-out) infinite;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(61, 220, 151, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); }
}
.badge-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 11px; border-radius: var(--r-full);
  background: rgba(46, 139, 255, 0.16); border: 1px solid rgba(79, 179, 255, 0.3);
  color: var(--brand-300); font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
}

.hero p.lead { margin-bottom: var(--s-6); }
.hero--center p.lead { margin-inline: auto; }

.hero__meta {
  display: flex; flex-wrap: wrap; gap: var(--s-5) var(--s-7);
  margin-top: var(--s-8); padding-top: var(--s-6);
  border-top: 1px solid var(--line);
}
.hero--center .hero__meta { justify-content: center; }
.hero__meta div { min-width: 96px; }
.hero__meta b {
  display: block; font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; line-height: 1.1;
  color: var(--ink); letter-spacing: -0.02em;
}
.hero__meta span { font-size: 0.8125rem; color: var(--muted); }

/* Floating browser mockup */
.mock {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
  background: linear-gradient(165deg, var(--bg-3), var(--bg-2) 55%, var(--bg));
  box-shadow: var(--shadow-3);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 420ms var(--ease-out);
}
.mock__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 13px 16px; border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}
.mock__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); flex: none; }
.mock__bar i:first-child { background: rgba(255, 128, 128, 0.55); }
.mock__bar i:nth-child(2) { background: rgba(255, 205, 128, 0.55); }
.mock__bar i:nth-child(3) { background: rgba(61, 220, 151, 0.45); }
.mock__url {
  flex: 1; margin-left: 8px; height: 22px; border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.05);
  display: flex; align-items: center; padding: 0 12px;
  font-size: 0.6875rem; color: var(--muted); letter-spacing: 0.02em;
}
.mock__body { padding: 22px; display: grid; gap: 14px; }
.skel { height: 11px; border-radius: var(--r-full); background: rgba(255,255,255,0.07); }
.skel--lg { height: 30px; width: 72%; background: linear-gradient(90deg, rgba(79,179,255,0.45), rgba(46,139,255,0.14)); }
.skel--md { width: 92%; }
.skel--sm { width: 58%; }
.mock__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 6px; }
.mock__tile {
  height: 64px; border-radius: 12px;
  background: linear-gradient(150deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
}
.mock__cta {
  height: 34px; width: 128px; border-radius: var(--r-full); margin-top: 8px;
  background: linear-gradient(135deg, var(--brand-300), var(--brand-600));
}

/* Floating stat chips around the mockup */
.float-chip {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 9px;
  padding: 11px 15px; border-radius: 14px;
  background: rgba(10, 18, 36, 0.86);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-2);
  font-size: 0.8125rem; color: var(--ink);
  animation: bob 6s var(--ease-io) infinite alternate;
}
.float-chip b { font-family: "Space Grotesk", sans-serif; font-weight: 700; }
.float-chip small { display: block; color: var(--muted); font-size: 0.6875rem; line-height: 1.3; }
.float-chip--a { top: 12%; left: -6%; }
.float-chip--b { bottom: 10%; right: -5%; animation-delay: -3s; }
@keyframes bob {
  from { transform: translate3d(0, -7px, 0); }
  to   { transform: translate3d(0, 7px, 0); }
}

.mock-wrap { position: relative; perspective: 1200px; }

/* Scroll cue */
.scroll-cue {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: var(--s-7); font-size: 0.75rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
}
.scroll-cue i {
  width: 1px; height: 34px; display: block; position: relative; overflow: hidden;
  background: var(--line-2);
}
.scroll-cue i::after {
  content: ""; position: absolute; inset: 0; background: var(--brand-400);
  animation: cue 1.9s var(--ease-io) infinite;
}
@keyframes cue {
  0%   { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

/* ---------- 10. Marquee ---------- */
.marquee {
  position: relative; overflow: hidden; padding-block: var(--s-5);
  border-block: 1px solid var(--line);
  -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; width: max-content; animation: slide 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: clamp(32px, 5vw, 68px); padding-right: clamp(32px, 5vw, 68px); }
.marquee__item {
  font-family: "Space Grotesk", sans-serif; font-weight: 600;
  font-size: clamp(0.95rem, 1.5vw, 1.15rem); letter-spacing: 0.02em;
  color: var(--muted); white-space: nowrap;
  transition: color var(--t-base) linear;
}
.marquee__item:hover { color: var(--ink); }
@keyframes slide { to { transform: translate3d(-50%, 0, 0); } }

.marquee--slow .marquee__track { animation-duration: 52s; }
.marquee--rev .marquee__track { animation-direction: reverse; }

/* ---------- 11. Process timeline ---------- */
.steps { position: relative; display: grid; gap: clamp(20px, 2.4vw, 28px); }
.steps::before {
  content: ""; position: absolute; left: 27px; top: 34px; bottom: 34px; width: 2px;
  background: var(--line); border-radius: 2px;
}
.steps__fill {
  position: absolute; left: 27px; top: 34px; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--brand-300), var(--brand-600));
  transform-origin: 50% 0; transform: scaleY(0);
  will-change: transform;
}
.step { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--s-5); align-items: start; }
.step__dot {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.0625rem;
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--muted);
  position: relative; z-index: 2;
  transition: color var(--t-base) linear, border-color var(--t-base) linear,
              background-color var(--t-base) linear, transform 480ms var(--ease-back),
              box-shadow var(--t-base) linear;
}
.step.is-in .step__dot {
  color: var(--on-brand); border-color: transparent; transform: scale(1.04);
  background: linear-gradient(140deg, var(--brand-300), var(--brand-600));
  box-shadow: 0 8px 26px -10px rgba(46, 139, 255, 0.9);
}
.step__body { padding-top: 6px; }
.step h3 { margin-bottom: var(--s-2); }
.step p { margin-bottom: 0; font-size: 0.9375rem; }
.step__meta { margin-top: var(--s-3); font-size: 0.8125rem; color: var(--muted); }

/* ---------- 12. Work / case cards ---------- */
.work-card {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background: var(--bg-2); color: inherit;
  transition: transform var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out);
}
.work-card:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: var(--shadow-3); color: inherit; }
.work-card__vis {
  position: relative; aspect-ratio: 16 / 11; overflow: hidden;
  background: linear-gradient(150deg, var(--bg-3), var(--bg));
}
.work-card__vis::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 55% at 50% 8%, rgba(46,139,255,0.30), transparent 70%);
  opacity: 0.75; transition: opacity var(--t-slow) linear;
}
.work-card:hover .work-card__vis::after { opacity: 1; }
.work-card__art {
  position: absolute; inset: 14% 12% auto; border-radius: 12px;
  border: 1px solid var(--line-2); background: rgba(10,18,36,0.86);
  box-shadow: var(--shadow-2); padding: 14px; display: grid; gap: 9px;
  transition: transform 620ms var(--ease-out);
  z-index: 1;
}
.work-card:hover .work-card__art { transform: translateY(-9px) scale(1.03); }
.work-card__body { padding: clamp(20px, 2.4vw, 28px); position: relative; z-index: 2; }
.work-card__body h3 { margin-bottom: var(--s-2); }
.work-card__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: var(--s-4); }
.work-card__tags span {
  font-size: 0.75rem; color: var(--muted); padding: 4px 10px;
  border: 1px solid var(--line); border-radius: var(--r-full);
}
.work-card__go {
  display: inline-flex; align-items: center; gap: 8px; margin-top: var(--s-4);
  font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 0.875rem;
  color: var(--brand-300);
}
.work-card__go svg { transition: transform var(--t-base) var(--ease-out); }
.work-card:hover .work-card__go svg { transform: translateX(5px); }

/* Filter bar */
.filters { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-7); }
.filters button {
  min-height: 44px; padding: 10px 20px; border-radius: var(--r-full);
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink-2); font-family: "DM Sans", sans-serif; font-size: 0.9375rem;
  font-weight: 500; cursor: pointer;
  transition: background-color var(--t-fast) linear, color var(--t-fast) linear,
              border-color var(--t-fast) linear, transform var(--t-fast) var(--ease-out);
}
.filters button:hover { color: var(--ink); border-color: var(--line-2); transform: translateY(-1px); }
.filters button[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--brand-300), var(--brand-600));
  color: var(--on-brand); border-color: transparent; font-weight: 600;
}
/* Containing block for filtered-out cards, so they can't stretch the page */
[data-work-grid] { position: relative; }
.work-item {
  transition: opacity 380ms var(--ease-out), transform 380ms var(--ease-out);
}
.work-item.is-hidden {
  opacity: 0; transform: scale(0.94) translateY(10px);
  position: absolute; pointer-events: none; visibility: hidden;
}

/* ---------- 13. Stats ---------- */
.stat {
  text-align: center; padding: clamp(20px, 2.4vw, 30px) var(--s-4);
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  transition: border-color var(--t-base) linear, transform var(--t-base) var(--ease-out);
}
.stat:hover { border-color: var(--line-2); transform: translateY(-4px); }
.stat b {
  display: block; font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1; letter-spacing: -0.03em;
  margin-bottom: var(--s-2);
}
.stat span { font-size: 0.875rem; color: var(--muted); }

/* ---------- 14. Testimonials ---------- */
.quote {
  display: flex; flex-direction: column; height: 100%;
  padding: clamp(24px, 2.8vw, 34px);
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012));
  transition: transform var(--t-base) var(--ease-out), border-color var(--t-base) linear;
}
.quote:hover { transform: translateY(-5px); border-color: var(--line-2); }
.quote__mark { color: var(--brand-500); opacity: 0.5; margin-bottom: var(--s-4); }
.quote blockquote { margin: 0 0 var(--s-5); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 0.875rem;
  color: var(--on-brand); background: linear-gradient(140deg, var(--brand-300), var(--brand-600));
}
.quote figcaption b { display: block; font-size: 0.9375rem; color: var(--ink); }
.quote figcaption span { font-size: 0.8125rem; color: var(--muted); }

/* ---------- 15. Pricing ---------- */
.price-card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  padding: clamp(26px, 3vw, 38px);
  border-radius: var(--r-xl); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.012));
  transition: transform var(--t-base) var(--ease-out), border-color var(--t-base) linear,
              box-shadow var(--t-base) linear;
}
.price-card:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: var(--shadow-2); }
.price-card--feature {
  border-color: rgba(79, 179, 255, 0.42);
  background: linear-gradient(180deg, rgba(46,139,255,0.13), rgba(255,255,255,0.015));
  box-shadow: 0 30px 70px -34px rgba(46, 139, 255, 0.65);
}
.price-card__flag {
  position: absolute; top: 18px; right: 18px;
}
.price-card h3 { margin-bottom: var(--s-2); }
.price-card__desc { font-size: 0.9375rem; color: var(--muted); margin-bottom: var(--s-5); }
.price-card__amt {
  display: flex; align-items: baseline; gap: 6px; margin-bottom: var(--s-2);
  font-family: "Space Grotesk", sans-serif; letter-spacing: -0.03em;
}
.price-card__amt b { font-size: clamp(2.25rem, 4vw, 3rem); font-weight: 700; line-height: 1; }
.price-card__amt i { font-style: normal; font-size: 0.9375rem; color: var(--muted); font-family: "DM Sans", sans-serif; }
.price-card__note { font-size: 0.8125rem; color: var(--muted); margin-bottom: var(--s-6); }
.price-card .ticks { margin-bottom: var(--s-6); }
.price-card .btn { margin-top: auto; }

/* Comparison table */
.table-scroll { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); }
table.compare { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 0.9375rem; }
table.compare th, table.compare td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); }
table.compare thead th {
  font-family: "Space Grotesk", sans-serif; font-size: 0.8125rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); background: rgba(255,255,255,0.025);
  position: sticky; top: 0;
}
table.compare tbody th { font-weight: 500; color: var(--ink-2); }
table.compare td { color: var(--ink-2); }
table.compare tbody tr { transition: background-color var(--t-fast) linear; }
table.compare tbody tr:hover { background: rgba(255,255,255,0.03); }
table.compare tbody tr:last-child th, table.compare tbody tr:last-child td { border-bottom: none; }
.tick-y { color: var(--brand-300); }
.tick-n { color: var(--muted); opacity: 0.55; }

/* ---------- 16. Accordion (FAQ) ---------- */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: 22px 4px; min-height: 60px;
  background: none; border: 0; cursor: pointer; text-align: left;
  font-family: "Space Grotesk", sans-serif; font-size: clamp(1rem, 1.6vw, 1.125rem);
  font-weight: 600; color: var(--ink); letter-spacing: -0.01em;
  transition: color var(--t-fast) linear;
}
.acc__btn:hover { color: var(--brand-300); }
.acc__ico {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-2); color: var(--brand-300);
  transition: transform 420ms var(--ease-back), background-color var(--t-base) linear,
              border-color var(--t-base) linear;
}
.acc__btn[aria-expanded="true"] .acc__ico {
  transform: rotate(135deg); background: rgba(46,139,255,0.18); border-color: var(--brand-500);
}
.acc__panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 460ms var(--ease-io);
}
/* Keyed off the item, not a button->panel sibling relationship: the button is
   wrapped in a heading for document structure, so it has no panel sibling. */
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__inner {
  overflow: hidden; visibility: hidden;
  transition: visibility 0s 460ms;
}
.acc__item.is-open .acc__inner { visibility: visible; transition-delay: 0s; }
.acc__inner p { padding: 0 44px 24px 4px; margin: 0; font-size: 0.9375rem; }

/* ---------- 17. Forms ---------- */
.form-grid { display: grid; gap: var(--s-5); }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.field label .req { color: var(--brand-300); }
.field .hint { font-size: 0.8125rem; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 13px 16px;
  font-family: "DM Sans", sans-serif; font-size: 1rem; color: var(--ink);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  transition: border-color var(--t-fast) linear, background-color var(--t-fast) linear,
              box-shadow var(--t-fast) linear;
}
.field textarea { min-height: 148px; resize: vertical; line-height: 1.6; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%2393A4C4' stroke-width='2'%3E%3Cpath d='M2 5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(147, 164, 196, 0.68); }
.field input:hover, .field textarea:hover, .field select:hover { border-color: rgba(140, 175, 235, 0.4); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand-500);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 0 0 3px rgba(46, 139, 255, 0.22);
}
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: none; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(255, 128, 128, 0.22); }
.err {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.8125rem; color: var(--danger); min-height: 0;
}
.err:empty { display: none; }

.form-note { font-size: 0.8125rem; color: var(--muted); }

.error-summary {
  border: 1px solid var(--danger); border-radius: var(--r-md);
  background: rgba(255, 128, 128, 0.09);
  padding: var(--s-5); margin-bottom: var(--s-5);
}
.error-summary h3 { font-size: 1rem; margin-bottom: var(--s-2); color: var(--danger); }
.error-summary ul { margin: 0; padding-left: 1.15em; }
.error-summary a { color: var(--danger); text-decoration: underline; }
.error-summary[hidden] { display: none; }

.form-success {
  border: 1px solid rgba(61, 220, 151, 0.4); border-radius: var(--r-lg);
  background: rgba(61, 220, 151, 0.08); padding: clamp(24px, 3vw, 36px);
  text-align: center;
}
.form-success h3 { color: var(--success); }
.form-success[hidden] { display: none; }

/* Chip radio group */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chips label {
  position: relative; display: inline-flex; align-items: center;
  min-height: 44px; padding: 11px 18px; border-radius: var(--r-full);
  background: var(--surface); border: 1px solid var(--line);
  font-size: 0.9375rem; font-weight: 500; color: var(--ink-2); cursor: pointer;
  transition: background-color var(--t-fast) linear, color var(--t-fast) linear,
              border-color var(--t-fast) linear, transform var(--t-fast) var(--ease-out);
}
.chips label:hover { color: var(--ink); border-color: var(--line-2); transform: translateY(-1px); }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips input:checked + span { color: var(--on-brand); }
.chips label:has(input:checked) {
  background: linear-gradient(135deg, var(--brand-300), var(--brand-600));
  border-color: transparent; color: var(--on-brand); font-weight: 600;
}
.chips input:focus-visible + span { outline: 2px solid var(--brand-400); outline-offset: 6px; border-radius: 4px; }

/* ---------- 18. CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl); border: 1px solid rgba(79, 179, 255, 0.28);
  padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 64px);
  background:
    radial-gradient(90% 130% at 50% 0%, rgba(46, 139, 255, 0.30), transparent 62%),
    linear-gradient(180deg, var(--bg-3), var(--bg-2));
  text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0.4;
  background-image:
    linear-gradient(to right, rgba(140,175,235,0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(140,175,235,0.08) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(60% 70% at 50% 40%, #000, transparent 75%);
          mask-image: radial-gradient(60% 70% at 50% 40%, #000, transparent 75%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band p { max-width: 54ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: var(--s-6); }

/* ---------- 19. Footer ---------- */
.footer {
  position: relative; margin-top: clamp(60px, 8vw, 110px);
  border-top: 1px solid var(--line); background: var(--bg-2);
}
.footer__top {
  display: grid; gap: clamp(32px, 4vw, 56px);
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  padding-block: clamp(48px, 6vw, 76px);
}
.footer h4 {
  font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: var(--s-4);
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 11px; }
.footer ul a {
  color: var(--ink-2); font-size: 0.9375rem; position: relative;
  display: inline-block;
  transition: color var(--t-fast) linear, transform var(--t-fast) var(--ease-out);
}
.footer ul a:hover { color: var(--brand-300); transform: translateX(3px); }
.footer__blurb { color: var(--muted); font-size: 0.9375rem; max-width: 34ch; margin-block: var(--s-4) var(--s-5); }
.social { display: flex; gap: var(--s-2); }
.social a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--ink-2); background: var(--surface);
  transition: transform var(--t-base) var(--ease-back), color var(--t-fast) linear,
              border-color var(--t-fast) linear, background-color var(--t-fast) linear;
}
.social a:hover {
  transform: translateY(-3px); color: var(--brand-300);
  border-color: var(--brand-500); background: rgba(46, 139, 255, 0.12);
}
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; justify-content: space-between;
  padding-block: var(--s-5); border-top: 1px solid var(--line);
  font-size: 0.875rem; color: var(--muted);
}
.footer__bottom a { color: var(--muted); }
.footer__bottom a:hover { color: var(--brand-300); }
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--s-5); }

/* ---------- 20. Page header (inner pages) ---------- */
.page-head {
  position: relative; overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(52px, 7vw, 88px));
  padding-bottom: clamp(40px, 6vw, 72px);
}
.page-head__inner { position: relative; z-index: 2; max-width: 800px; }
.crumb {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  font-size: 0.8125rem; color: var(--muted); margin-bottom: var(--s-4);
}
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--brand-300); }

/* Alternating detail rows */
.split {
  display: grid; gap: clamp(32px, 5vw, 64px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}
.split--flip .split__vis { order: -1; }
.split--form { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); align-items: start; }
.split__vis {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); aspect-ratio: 4 / 3;
  background: linear-gradient(150deg, var(--bg-3), var(--bg));
  display: grid; place-items: center; padding: clamp(20px, 3vw, 40px);
}
.split__vis::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 60% at 50% 0%, rgba(46,139,255,0.26), transparent 70%);
}
.split__vis > * { position: relative; z-index: 1; width: 100%; }

/* Team */
.person { text-align: center; }
.person__ph {
  aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; margin-bottom: var(--s-4);
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line);
  font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem); color: var(--brand-400);
  transition: transform var(--t-base) var(--ease-out), border-color var(--t-base) linear;
}
.person:hover .person__ph { transform: translateY(-5px) scale(1.02); border-color: var(--brand-500); }
.person b { display: block; font-family: "Space Grotesk", sans-serif; font-size: 1.0625rem; }
.person span { font-size: 0.875rem; color: var(--muted); }

/* Contact detail rows */
.contact-row {
  display: flex; gap: var(--s-4); align-items: flex-start;
  padding: var(--s-5) 0; border-bottom: 1px solid var(--line);
}
.contact-row:last-child { border-bottom: none; }
.contact-row__ico {
  width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: rgba(46, 139, 255, 0.14); border: 1px solid rgba(79, 179, 255, 0.26);
  color: var(--brand-300);
}
.contact-row b { display: block; font-size: 0.9375rem; }
.contact-row span, .contact-row a { font-size: 0.9375rem; color: var(--ink-2); }

/* ---------- 21. Responsive ---------- */
@media (max-width: 1080px) {
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .nav, .header__cta { display: none; }
  .burger { display: flex; }
  .hero__inner { grid-template-columns: 1fr; }
  .mock-wrap { order: -1; max-width: 560px; margin-inline: auto; width: 100%; }
  .float-chip--a { left: 0; }
  .float-chip--b { right: 0; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split--form { grid-template-columns: 1fr; }
  .split--flip .split__vis { order: 0; }
}

@media (max-width: 720px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero__meta { gap: var(--s-4) var(--s-5); }
  .float-chip { display: none; }
  .steps::before, .steps__fill { left: 21px; }
  .step { grid-template-columns: 44px minmax(0, 1fr); gap: var(--s-4); }
  .step__dot { width: 44px; height: 44px; font-size: 0.9375rem; }
  .acc__inner p { padding-right: 8px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
  .brand__tag { display: none; }
}

/* Coarse pointers: no hover-only affordances, no pointer glow */
@media (hover: none) {
  .card::before { display: none; }
  .card:hover, .work-card:hover, .quote:hover, .price-card:hover, .stat:hover { transform: none; }
}

/* ---------- 22. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  /* Present the final readable state, never the pre-animation one */
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .reveal-word { opacity: 1 !important; transform: none !important; }
  /* !important because `.js .curtain` outranks a bare `.curtain` selector */
  .curtain { display: none !important; }
  .marquee__track { animation: none; transform: none; }
  .aurora { animation: none; }
  .float-chip { animation: none; }
  .scroll-cue i::after { animation: none; transform: none; }
  .steps__fill { transform: scaleY(1); }
}

/* ---------- 23. Print ---------- */
@media print {
  .header, .drawer, .curtain, .progress, .noise, .aurora, .gridlines, .scroll-cue { display: none !important; }
  body { background: #fff; color: #000; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
