/* =====================================================================
   Meritable Solutions — Design System
   Brand palette (per brand guidelines):
   BLACK backgrounds & outlines · PURPLE (#100B32) sparingly for title
   backgrounds · WHITE for soft contrast · RED (#d90000) for highlights
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Base surfaces (dark / brand) — lifted off pure black for legibility */
  --bg-deep:      #0a0b0f;
  --bg:           #101218;   /* dark slate page (was near-black) */
  --bg-soft:      #171823;   /* raised slate */
  --surface:      #1b1c26;   /* card */
  --surface-2:    #22232f;   /* raised / inputs */
  --purple:       #181734;   /* brand purple — title backgrounds, sparingly */
  --border:       rgba(255, 255, 255, 0.16);
  --border-soft:  rgba(255, 255, 255, 0.09);

  /* Brand accents — kept under the original names so existing markup follows.
     #d90000 is the brand RED; the lighter stop is used only for gradients. */
  --blue:         #d90000;   /* DOMINANT brand red (deep) */
  --blue-bright:  #d90000;   /* lighter accent for hover / gradient tops */
  /* #d90000 only hits ~3:1 on the dark page — too low for small text.
     Use this lifted red whenever brand red carries actual words. */
  --brand-text:   #ff5f54;
  /* Shared square-ish corner so nothing reads as a lozenge */
  --radius-rect:  4px;
  --violet:       #d90000;   /* deep brand red */
  --cyan:         #8a93a3;   /* slate neutral (lightened for dark bg) */
  --amber:        #d90000;
  --amber-bright: #d90000;

  /* Solution / success accent (per flyer: red = problem, green = solution) */
  --green:        #2fd47a;   /* bright success green */
  --green-deep:   #17a35a;
  --green-soft:   rgba(47, 212, 122, 0.10);
  --green-line:   rgba(47, 212, 122, 0.45);

  /* Text */
  --text:         #ffffff;
  --text-soft:    #dcdce2;
  --text-muted:   #b0b0ba;

  /* Gradients */
  --grad-brand:   linear-gradient(120deg, #d90000 0%, #d90000 100%);
  --grad-flame:   linear-gradient(120deg, #d90000 0%, #d90000 100%);
  --grad-cool:    linear-gradient(120deg, #8a93a3 0%, #d90000 100%);

  /* Effects */
  --shadow-card:  0 22px 48px -26px rgba(0, 0, 0, 0.7);
  --glow-blue:    0 0 0 1px rgba(217, 0, 0, 0.25), 0 18px 50px -20px rgba(217, 0, 0, 0.3);
  --radius:       18px;
  --radius-sm:    12px;
  --maxw:         1180px;
  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family:var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family:var(--font-heading);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; padding: 0; }

/* ---------- Background wash (dark, brand purple + red glows) ---------- */
.starfield {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 640px at 82% -10%, rgba(217, 0, 0, 0.16), transparent 60%),
    radial-gradient(1000px 700px at 8% 0%, rgba(16, 11, 50, 0.85), transparent 60%),
    radial-gradient(900px 700px at 50% 115%, rgba(217, 0, 0, 0.10), transparent 60%),
    var(--bg);
}
/* Twinkling star layers (two parallax planes) */
.starfield::before, .starfield::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.starfield::before {
  background-image:
    radial-gradient(1.5px 1.5px at 25px 35px, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1px 1px at 120px 90px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 200px 160px, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 90px 220px, rgba(217, 0, 0, 0.6), transparent),
    radial-gradient(1px 1px at 230px 50px, rgba(255, 255, 255, 0.6), transparent);
  background-size: 260px 260px;
  background-repeat: repeat;
  animation: twinkle 5s ease-in-out infinite alternate;
}
.starfield::after {
  background-image:
    radial-gradient(1px 1px at 60px 80px, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 180px 200px, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 300px 120px, rgba(138, 147, 163, 0.6), transparent),
    radial-gradient(1px 1px at 340px 280px, rgba(217, 0, 0, 0.45), transparent);
  background-size: 360px 360px;
  background-repeat: repeat;
  opacity: 0.6;
  animation: twinkle 7s ease-in-out infinite alternate-reverse, star-drift 90s linear infinite;
}
@keyframes twinkle { from { opacity: 0.35; } to { opacity: 0.9; } }
@keyframes star-drift { from { transform: translateY(0); } to { transform: translateY(-360px); } }
@media (prefers-reduced-motion: reduce) {
  .starfield::before, .starfield::after { animation: none; }
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 116px 0; }
.section--tight { padding: 72px 0; }
.center { text-align: center; }

/* Section rhythm — gentle alternating bands + hairline dividers so sections read as distinct */
main > section { position: relative; }
main > section:nth-of-type(even) { background: rgba(255, 255, 255, 0.016); }
main > section + section::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(1080px, 86%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.09), transparent);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family:var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  /* lifted red: #d90000 on this background is ~3:1 and unreadable at 13px */
  color: var(--brand-text);
  padding: 9px 16px;
  border: 1px solid rgba(217, 0, 0, 0.55);
  border-radius: var(--radius-rect);
  background: rgba(217, 0, 0, 0.1);
  position: relative;
  margin-bottom: 28px;
}
/* orbit marker — a body with a satellite tracking around it, instead of a dot */
.eyebrow .dot {
  display: block;
  flex: 0 0 auto;
  position: relative;
  width: 15px; height: 15px;
  /* the body */
  background: radial-gradient(circle at 50% 50%, var(--brand-text) 0 2.4px, transparent 2.6px);
}
/* the orbital path */
.eyebrow .dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(255, 95, 84, 0.45);
  border-radius: 50%;
}
/* the satellite riding it */
.eyebrow .dot::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 3.4px; height: 3.4px;
  margin: -1.7px 0 0 -1.7px;
  border-radius: 50%;
  background: var(--brand-text);
  box-shadow: 0 0 6px rgba(255, 95, 84, 0.95);
  animation: eyebrow-orbit 3.6s linear infinite;
}
@keyframes eyebrow-orbit {
  from { transform: rotate(0deg) translateX(6px); }
  to   { transform: rotate(360deg) translateX(6px); }
}
@media (prefers-reduced-motion: reduce) {
  .eyebrow .dot::after { animation: none; transform: translateX(6px); }
}
/* .dot is styled above — it is the live tick, not hidden */

.section-head { max-width: 740px; margin: 0 auto 64px; }
.section-head.center { text-align: center; }
.section-title { font-size: clamp(32px, 4.8vw, 54px); line-height: 1.02; letter-spacing: -0.025em; margin: 20px 0 18px; }
.section-sub { color: var(--text-soft); font-size: 18.5px; line-height: 1.6; }

.gradient-text { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.flame-text   { background: var(--grad-flame); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family:var(--font-heading);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: 0.01em;
  padding: 14px 28px;
  border-radius: var(--radius-rect);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }

/* Solid, restrained, slightly soft corners. The weight does the work —
   no notches, no sheen sweep. */
.btn--primary, .btn--go, .btn--ghost { border-radius: 6px; }

/* Hover shifts background-color directly. An overlay pseudo-element would paint
   over bare-text labels, which are not matched by `> *`. */
.btn--primary {
  position: relative;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.16) inset, 0 10px 22px -14px rgba(217, 0, 0, 0.95);
}
.btn--primary:hover {
  background: #ff1a1a;
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 16px 30px -14px rgba(217, 0, 0, 1);
}
.btn--primary:active { transform: translateY(0); }
.btn--primary svg { transition: transform .3s var(--ease); }
.btn--primary:hover svg { transform: translateX(2px); }

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--text);
  transform: translateY(-2px);
}
/* Hero-scale CTAs: confident weight without the bloated padding */
.btn--lg {
  padding: 15px 26px;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: 0.015em;
}
.btn--lg svg { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) {
  .btn--primary:hover, .btn--ghost:hover { transform: none; }
  .btn--primary::before { transition: none; }
}

/* ---------- Positioning + key numbers band ---------- */
.intro-stats .lede {
  font-size: clamp(19px, 2.1vw, 25px);
  line-height: 1.5;
  color: var(--text-soft);
  max-width: 780px;
  margin: 0 auto 40px;
  text-align: center;
}
.intro-stats .lede strong { color: var(--text); font-weight: 700; }
.intro-stats .hero-meta { margin-top: 0; }

/* ---------- Header / Nav ---------- */
/* No backdrop-filter here. The hero video sits directly beneath the header, so a
   translucent blurred bar forces the browser to re-blur this strip on every
   decoded frame — a continuous repaint that reads as scroll stutter. An opaque
   bar composites once and is more legible over footage anyway. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, #08080c 0%, #08080c 62%, rgba(8, 8, 12, 0.94) 100%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
/* Condensed state once the page scrolls */
.site-header.scrolled {
  border-bottom-color: var(--border-soft);
  box-shadow: 0 12px 40px -28px rgba(0, 0, 0, 0.9);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; transition: height 0.3s var(--ease); }
.site-header.scrolled .nav { height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; font-family:var(--font-heading); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.brand .mark { width: 34px; height: 34px; flex: 0 0 auto; }
.brand-logo { height: 22px; width: auto; display: block; transition: height 0.3s var(--ease); }
.site-header.scrolled .brand-logo { height: 19px; }
.site-footer .brand-logo { height: 26px; }
@media (max-width: 940px) { .brand-logo { height: 19px; } }
.brand span b { font-weight: 600; }
.brand .sub { color: var(--text-muted); font-weight: 400; }

/* Indexed nav — reads like a console channel list rather than a button bar */
.nav-links {
  display: flex;
  align-items: stretch;
  gap: 4px;
  position: relative;
  counter-reset: navidx;
}
.nav-links a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 500;
  font-family:var(--font-heading);
  letter-spacing: 0.03em;
  color: var(--text-muted);
  padding: 10px 14px;
  white-space: nowrap;
  transition: color .28s var(--ease);
}
/* channel index — 01, 02, 03… straight from a counter, no markup needed */
.nav-links a::before {
  counter-increment: navidx;
  content: "0" counter(navidx);
  font-family:var(--font-body);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.26);
  transition: color .28s var(--ease);
}
/* underline wipes in from the left — brand red, glow keeps it legible on black */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--blue);
  box-shadow: 0 0 9px rgba(217, 0, 0, 0.9);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .38s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::before { color: var(--blue); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-links a.active { color: var(--text); }
.nav-links a.active::before { color: var(--blue); }
.nav-links a.active::after { transform: scaleX(1); }

.nav-indicator { display: none; }
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* hairline scroll-progress rail pinned to the header's bottom edge.
   will-change keeps it on its own compositor layer so per-frame scaling
   never repaints the header behind it. */
.nav-progress {
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(var(--scroll, 0));
  transform-origin: left;
  will-change: transform;
  background: linear-gradient(90deg, var(--blue), var(--brand-text) 60%, var(--green));
  pointer-events: none;
  z-index: 2;
}

/* LinkedIn / social icon in the header */
.nav-social {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: var(--radius-rect);
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}
.nav-social:hover { color: #fff; border-color: var(--blue); background: var(--blue); transform: translateY(-2px); }
.nav-social svg { width: 18px; height: 18px; }

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 42px; height: 42px;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 940px) {
  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 16px 20px 24px;
    border-radius: 0;
    background: rgba(8, 7, 16, 0.98);
    backdrop-filter: blur(16px);
    border: none;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 20px 40px -24px rgba(0,0,0,0.7);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s, transform 0.22s;
  }
  .nav-links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links a { padding: 13px 14px; font-size: 16px; border-radius: var(--radius-rect); }
  .nav-links a::after { left: 14px; right: auto; width: 22px; bottom: 8px; }
  .nav-links a.active { background: rgba(217, 0, 0, 0.1); color: var(--text); }
  .nav-indicator { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-launch-text { display: none; }
}

/* ---------- Hero ---------- */
/* padding-bottom reserves the strip the pinned client marquee sits in;
   the larger top padding drops the centred copy further down the frame */
.hero { position: relative; min-height: calc(100vh - 72px); display: grid; align-content: center; padding: 150px 0 150px; overflow: hidden; }
@media (max-width: 900px) { .hero { padding: 70px 0 56px; } }
/* Hero opts out of the page starfield — the footage supplies the stars.
   Keeps the brand glows, drops the twinkling dot layers behind it. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(1100px 640px at 82% -10%, rgba(217, 0, 0, 0.16), transparent 60%),
    radial-gradient(1000px 700px at 8% 0%, rgba(16, 11, 50, 0.85), transparent 60%),
    var(--bg);
}
/* Hero embed sits opposite the copy, scaling on the source 800x500 ratio.
   No frame or fill — it floats over the hero footage. */
.hero-embed {
  /* Bleed right only — the copy sits to the left, so growing that way is the
     one direction with room. Ratio stays 800/500: KeyCAD fits its camera to
     the frame, so any other ratio just crops the model on the short axis. */
  width: calc(100% + 140px);
  margin-right: -140px;
  aspect-ratio: 800 / 500;
  background: transparent;
}
/* The KeyCAD embed already renders on a transparent background, so the hero
   footage shows through on its own — no blend mode needed. (screen blending
   here erased the model entirely, since it is darker than the plate behind it.) */
.hero-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: transparent;
}
@media (max-width: 900px) {
  /* single column on mobile — no room to bleed */
  .hero-embed { margin-top: 32px; width: 100%; margin-right: 0; }
}

.hero-grid h1 { max-width: none; margin-bottom: 0; }
.hero-grid .hero-actions { margin-top: 30px; }

/* Only the homepage headline is hand-broken with <br>s. nowrap must stay
   scoped to it — applied to every .hero-grid h1 it stops other pages' headings
   wrapping at all, and they overflow their column. */
.hero-h1--fixed {
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.18;
  text-wrap: nowrap;
}
@media (max-width: 900px) {
  /* keep the <br>s — hiding them butts the segments together with no space
     ("missionsthat"), since the markup has no whitespace around the breaks */
  .hero-h1--fixed { text-wrap: wrap; font-size: clamp(24px, 5.6vw, 34px); }
}
/* kept for any page that still runs a single-column hero */
.hero-grid--solo { grid-template-columns: 1fr; }
/* Ambient hero footage — full-bleed atmosphere, not a second planet next to the
   globe. Kept low and feathered so it reads as depth behind the copy. */
.hero-film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 70%;
  z-index: -1;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0;   /* main.js fades this from the video's own clock, so the loop
                   seam always lands while the frame is fully black */
  /* feather every edge so it melts into the page rather than sitting in a box */
  -webkit-mask-image:
    linear-gradient(90deg, transparent, #000 22%, #000 70%, transparent),
    linear-gradient(180deg, transparent, #000 24%, #000 72%, transparent);
  mask-image:
    linear-gradient(90deg, transparent, #000 22%, #000 70%, transparent),
    linear-gradient(180deg, transparent, #000 24%, #000 72%, transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
@media (prefers-reduced-motion: reduce) { .hero-film { display: none; } }
@media (max-width: 900px) { .hero-film { display: none; } }
@media (max-width: 900px) { .hero { min-height: 0; display: block; padding: 70px 0 56px; } }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(32px, 3.7vw, 52px); line-height: 1.05; letter-spacing: -0.025em; margin: 0 0 16px; }
.hero p.lede { font-size: 17px; color: var(--text-soft); max-width: 500px; margin-bottom: 22px; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* ===== Hero stat strip — instrument-panel readouts ===== */
.hero-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 30px; background: var(--border-soft); border: 1px solid var(--border-soft); }
.hero-meta .stat {
  --accent: #d90000;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 15px;
  text-align: left;
  position: relative;
  overflow: hidden;
  background: #0e0d13;
  isolation: isolate;
  transition: background .4s var(--ease);
}
/* top rail: dim by default, races across on hover */
.hero-meta .stat::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0.999);
  transform-origin: left;
  opacity: 0.28;
  transition: opacity .4s var(--ease);
}
/* light sweep that crosses the tile on hover */
.hero-meta .stat::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 35%, color-mix(in srgb, var(--accent) 22%, transparent) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform .85s var(--ease);
  pointer-events: none;
}
.hero-meta .stat:hover { background: #131119; }
.hero-meta .stat:hover::before { opacity: 1; }
.hero-meta .stat:hover::after { transform: translateX(120%); }

.stat-icon {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.hero-meta .stat:hover .stat-icon { background: color-mix(in srgb, var(--accent) 22%, transparent); box-shadow: 0 0 16px -4px var(--accent); }
.stat-icon svg { width: 17px; height: 17px; stroke-linecap: round; stroke-linejoin: round; }
.stat-body { min-width: 0; }

.hero-meta .stat.stat--timeline    { --accent: #2fd47a; }
.hero-meta .stat.stat--clients     { --accent: #e8e6ef; }
.hero-meta .stat.stat--reliability { --accent: #ff3b30; }

.hero-meta .stat .n {
  font-family:var(--font-heading);
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
  display: block;
  white-space: nowrap;
  color: var(--accent);
}
.hero-meta .stat .l {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.055em;
  text-transform: uppercase;
  line-height: 1.3;
  margin-top: 5px;
}
@media (max-width: 1150px) { .hero-meta .stat .n { font-size: 22px; } .hero-meta .stat .l { font-size: 10px; letter-spacing: 0.04em; } }
@media (max-width: 900px)  { .hero-meta { grid-template-columns: 1fr; } .hero-meta .stat .n { font-size: 25px; } }

.orbit-visual { position: relative; aspect-ratio: 1; max-width: min(400px, 40vh); margin: 0 auto; width: 100%; animation: float-bob 8s ease-in-out infinite; }
.orbit-visual svg { width: 100%; height: 100%; overflow: visible; }
/* Slowly rotating orbital system (rings + craft); planet core stays still */
.orbit-visual .spin-slow { transform-origin: 230px 230px; animation: spin-cw 52s linear infinite; }
.orbit-visual .spin-rev { transform-origin: 230px 230px; animation: spin-cw 70s linear infinite reverse; }
@keyframes float-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes spin-cw { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .orbit-visual, .orbit-visual .spin-slow, .orbit-visual .spin-rev { animation: none; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .orbit-visual { max-width: 360px; order: -1; }
}

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s, background 0.35s;
  overflow: hidden;
  box-shadow: 0 10px 30px -26px rgba(0, 0, 0, 0.8);
  cursor: pointer;
}
.card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--green);
  opacity: 0;
  transition: opacity 0.35s;
}
.card:hover { transform: translateY(-8px) scale(1.02); border-color: var(--green); box-shadow: 0 18px 48px -12px rgba(47,212,122,0.35), inset 0 0 24px rgba(47,212,122,0.08); background: rgba(255,255,255,0.015); }
.card:hover::after { opacity: 1; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 15.5px; }

/* Icon chip */
.icon-chip {
  width: 60px; height: 60px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: rgba(217, 0, 0, 0.08);
  border: 1px solid rgba(217, 0, 0, 0.18);
  position: relative;
}
.icon-chip svg { width: 32px; height: 32px; position: relative; z-index: 1; }
.icon-chip.flame { background: rgba(217, 0, 0, 0.08); border-color: rgba(217, 0, 0, 0.18); }
.icon-chip.cyan  { background: rgba(74, 84, 100, 0.08); border-color: rgba(74, 84, 100, 0.18); }
/* HUD corner ticks — a subtle mission-control detail */
.icon-chip::before, .icon-chip::after {
  content: ""; position: absolute; width: 9px; height: 9px;
  border: 1.5px solid rgba(217, 0, 0, 0.5); border-style: solid; pointer-events: none;
  transition: border-color 0.3s, width 0.3s, height 0.3s;
}
.icon-chip::before { top: 5px; left: 5px; border-width: 1.5px 0 0 1.5px; }
.icon-chip::after  { bottom: 5px; right: 5px; border-width: 0 1.5px 1.5px 0; }
.card:hover .icon-chip::before, .card:hover .icon-chip::after { border-color: var(--blue); width: 11px; height: 11px; }

/* Stroke-based icon styling */
.ico { fill: none; stroke: var(--blue); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ico--flame { stroke: var(--blue); }
.ico--cyan  { stroke: var(--cyan); }
.ico-accent { fill: var(--blue); stroke: none; }

/* ---------- Workflow / steps ---------- */
.workflow { position: relative; display: grid; gap: 22px; }
.workflow.steps-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1000px) { .workflow.steps-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .workflow.steps-5 { grid-template-columns: 1fr; } }

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 10px 30px -26px rgba(0, 0, 0, 0.8);
}
.step:hover { transform: translateY(-6px); border-color: rgba(217, 0, 0, 0.45); box-shadow: var(--shadow-card); }
.step-num {
  position: absolute;
  top: 18px; right: 20px;
  font-family:var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--blue);
  opacity: 0.9;
}
.step .icon-orb {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: grid; place-items: center;
  margin-bottom: 22px;
  background: radial-gradient(circle at 30% 30%, rgba(217, 0, 0, 0.14), rgba(217, 0, 0, 0.04));
  border: 1px solid rgba(217, 0, 0, 0.2);
}
.step .icon-orb svg { width: 34px; height: 34px; }
.step h3 { font-size: 18px; margin-bottom: 10px; line-height: 1.25; }
.step p { color: var(--text-muted); font-size: 14.5px; }

.workflow.steps-5::before {
  content: "";
  position: absolute;
  top: 56px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(217, 0, 0, 0.45) 12%, rgba(217, 0, 0, 0.45) 88%, transparent);
  z-index: -1;
}
@media (max-width: 1000px) { .workflow.steps-5::before { display: none; } }

/* ---------- Immersive "Journey to Orbit" ---------- */
/* Energy pulse flowing along the trajectory line */
.workflow.steps-5::after {
  content: "";
  position: absolute;
  top: 56px; left: 8%; right: 8%;
  height: 2px;
  z-index: 0;
  background: linear-gradient(90deg, transparent, #d90000, rgba(217, 0, 0, 0.0));
  background-size: 26% 100%;
  background-repeat: no-repeat;
  filter: drop-shadow(0 0 6px rgba(217, 0, 0, 0.7));
  animation: journey-flow 5.6s linear infinite;
}
@keyframes journey-flow { from { background-position: -26% 0; } to { background-position: 126% 0; } }

/* Rocket riding the trajectory */
.workflow-rocket {
  position: absolute;
  top: 44px;
  left: 8%;
  width: 26px; height: 26px;
  z-index: 3;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 7px rgba(217, 0, 0, 0.85));
  animation: rocket-run 5.6s linear infinite;
}
.workflow-rocket svg { width: 100%; height: 100%; transform: rotate(90deg); }
@keyframes rocket-run {
  0%   { left: 8%;  opacity: 0; }
  6%   { opacity: 1; }
  94%  { opacity: 1; }
  100% { left: 92%; opacity: 0; }
}

/* Step orbs pulse in sequence, like staged ignition */
.workflow .step .icon-orb { animation: orb-pulse 3.4s ease-in-out infinite; }
.workflow .step:nth-child(2) .icon-orb { animation-delay: 0.35s; }
.workflow .step:nth-child(3) .icon-orb { animation-delay: 0.7s; }
.workflow .step:nth-child(4) .icon-orb { animation-delay: 1.05s; }
.workflow .step:nth-child(5) .icon-orb { animation-delay: 1.4s; }
@keyframes orb-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 0, 0, 0); }
  50% { box-shadow: 0 0 0 7px rgba(217, 0, 0, 0.08), 0 0 22px rgba(217, 0, 0, 0.25); }
}

/* Hover lifts the whole step and energizes its orb */
.workflow .step .icon-orb { transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s; }
.workflow .step:hover .icon-orb {
  transform: scale(1.08);
  border-color: rgba(217, 0, 0, 0.55);
  background: radial-gradient(circle at 30% 30%, rgba(217, 0, 0, 0.28), rgba(217, 0, 0, 0.08));
}

@media (max-width: 1000px) {
  .workflow.steps-5::after, .workflow-rocket { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .workflow.steps-5::after, .workflow-rocket, .workflow .step .icon-orb { animation: none; }
}

/* ---------- Feature list (checks) ---------- */
.check-list { display: grid; gap: 14px; }
.check-list li { display: flex; gap: 13px; align-items: flex-start; color: var(--text-soft); font-size: 16px; }
.check-list li .tick {
  flex: 0 0 auto;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(217, 0, 0, 0.1);
  display: grid; place-items: center;
  margin-top: 2px;
}
.check-list li .tick svg { width: 14px; height: 14px; }

/* ---------- Split feature row ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Logos / clients ---------- */
.logo-row { display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: center; align-items: center; }
.logo-pill {
  font-family:var(--font-heading);
  font-size: 15px;
  color: var(--text-soft);
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-rect);
  background: var(--surface);
  transition: color 0.2s, border-color 0.2s;
}
.logo-pill:hover { color: var(--brand-text); border-color: rgba(217, 0, 0, 0.4); }

/* ---------- Testimonials ---------- */
.quote {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.quote .mark { font-family:var(--font-heading); font-size: 44px; line-height: 0.6; color: var(--blue); opacity: 0.55; }
.quote p { color: var(--text-soft); font-size: 16.5px; margin-top: 10px; font-style: italic; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 64px 40px;
  text-align: center;
  background:
    radial-gradient(700px 340px at 50% -10%, rgba(217, 0, 0, 0.13), transparent 70%),
    radial-gradient(800px 420px at 50% 120%, rgba(217, 0, 0, 0.10), transparent 70%),
    linear-gradient(180deg, #1c1d28, #15161f);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.cta-band h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 14px; }
.cta-band p { color: var(--text-soft); font-size: 19px; max-width: 560px; margin: 0 auto 30px; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-card);
}
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 14px; color: var(--text-soft); margin-bottom: 8px; font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-size: 15.5px;
  padding: 13px 15px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  background: var(--surface-2);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(217, 0, 0, 0.16);
}
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.contact-aside { display: grid; gap: 18px; align-content: start; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item .icon-chip { margin-bottom: 0; width: 50px; height: 50px; }
.contact-item .icon-chip svg { width: 24px; height: 24px; }
.contact-item h4 { font-size: 16px; margin-bottom: 3px; }
.contact-item p { color: var(--text-muted); font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  margin-top: 40px;
  padding: 56px 0 36px;
  background: var(--surface-2);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h5 { font-family:var(--font-heading); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.footer-grid a { display: block; color: var(--text-soft); font-size: 15px; padding: 5px 0; transition: color 0.2s; }
.footer-grid a:hover { color: var(--blue); }
.footer-grid p { color: var(--text-muted); font-size: 15px; max-width: 320px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--border-soft); padding-top: 24px; color: var(--text-muted); font-size: 14px; }
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: 11px;
  display: grid; place-items: center;
  background: var(--surface);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.social-links a:hover { border-color: var(--blue); background: rgba(217, 0, 0, 0.08); transform: translateY(-2px); }
.social-links svg { width: 18px; height: 18px; }

/* ---------- Reveal on scroll ---------- */
/* Start partially visible so content is always legible, then settle in */
.reveal { opacity: 0.4; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding: 78px 0 40px; text-align: center; position: relative; }
/* Faint perspective tech grid behind the heading */
.page-hero::before, .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(217, 0, 0, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 0, 0, 0.06) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000, transparent 72%);
  mask-image: radial-gradient(circle at 50% 0%, #000, transparent 72%);
}
.hero::after { z-index: 0; opacity: 0.7; -webkit-mask-image: radial-gradient(120% 90% at 30% 0%, #000, transparent 70%); mask-image: radial-gradient(120% 90% at 30% 0%, #000, transparent 70%); }
.hero > .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(34px, 5vw, 56px); margin: 20px 0 18px; }
.page-hero p { color: var(--text-soft); font-size: 19px; max-width: 640px; margin: 0 auto; }

/* Photo-backed page hero (accelerator) */
.page-hero--photo {
  padding: 130px 0 110px;
  overflow: hidden;
  isolation: isolate;
}
.page-hero--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../img/hero/accelerator-hero.jpg");
  background-size: cover;
  background-position: 62% 42%;
  /* fade the plate out at the edges so it sits in the page rather than on it */
  -webkit-mask-image:
    linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent),
    linear-gradient(180deg, transparent, #000 26%, #000 62%, transparent);
  mask-image:
    linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent),
    linear-gradient(180deg, transparent, #000 26%, #000 62%, transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  opacity: 0.55;
}
/* scrim so the headline keeps its contrast over the brightest part of the plate */
.page-hero--photo::before {
  background:
    radial-gradient(120% 90% at 50% 50%, rgba(10, 10, 14, 0.86), rgba(10, 10, 14, 0.35) 60%, transparent),
    linear-gradient(rgba(217, 0, 0, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 0, 0, 0.06) 1px, transparent 1px);
  background-size: cover, 46px 46px, 46px 46px;
}
@media (max-width: 760px) { .page-hero--photo { padding: 90px 0 70px; } }

/* ---------- Media placeholder ---------- */
.media-frame {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(217, 0, 0, 0.12), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.015) 0 12px, transparent 12px 24px),
    var(--surface-2);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.media-frame--video { aspect-ratio: 16 / 9; }
.media-frame--wide { aspect-ratio: 21 / 9; }
/* Sweeping scanline so the placeholder feels alive */
.media-frame::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 38%;
  background: linear-gradient(180deg, transparent, rgba(217, 0, 0, 0.07), transparent);
  animation: media-scan 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes media-scan { 0% { transform: translateY(-100%); } 100% { transform: translateY(330%); } }
@media (prefers-reduced-motion: reduce) { .media-frame::after { animation: none; opacity: 0; } }
.media-frame .media-label {
  position: absolute;
  top: 14px; left: 14px;
  font-family:var(--font-heading);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-rect);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
}
.media-frame .media-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 12px;
}
.media-play {
  width: 74px; height: 74px;
  border-radius: 50%;
  border: 1px solid rgba(217, 0, 0, 0.4);
  background: rgba(217, 0, 0, 0.12);
  display: grid; place-items: center;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s, box-shadow 0.3s;
}
.media-play::before {
  content: "";
  position: absolute;
  width: 74px; height: 74px;
  border-radius: 50%;
  border: 1px solid rgba(217, 0, 0, 0.5);
  animation: pulse-ring 2.6s var(--ease) infinite;
}
@media (prefers-reduced-motion: reduce) { .media-play::before { animation: none; } }
@keyframes pulse-ring { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.8); opacity: 0; } }
.media-play svg { width: 28px; height: 28px; fill: var(--blue); stroke: none; margin-left: 4px; }
.media-play:hover { transform: scale(1.08); background: rgba(217, 0, 0, 0.2); box-shadow: 0 0 0 6px rgba(217, 0, 0, 0.08); }
.media-frame .media-caption { color: var(--text-muted); font-size: 14px; }

/* ---------- Interactive card pointer glow ---------- */
.card.glow-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(217, 0, 0, 0.14), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.card.glow-card:hover::before { opacity: 1; }
.card.glow-card > * { position: relative; z-index: 1; }

/* ---------- Count-up stat emphasis ---------- */
.hero-meta .stat .n[data-count] { font-variant-numeric: tabular-nums; }

/* ---------- Logo marquee (interactive trust row) ---------- */
.logo-marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logo-marquee .track { display: flex; gap: 30px; width: max-content; animation: marquee 34s linear infinite; }
.logo-marquee:hover .track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .logo-marquee .track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Telemetry ticker (home signature) ---------- */
/* Client marquee — pinned to the bottom edge of the first viewport.
   Sized generously so real logos can drop straight into these slots later. */
.clients-scroll {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding-bottom: 26px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.clients-tag {
  display: block; text-align: center; font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px;
}
.clients-track {
  display: flex; gap: 18px; width: max-content;
  animation: scroll-clients 45s linear infinite;
}
.clients-scroll:hover .clients-track { animation-play-state: paused; }
.client-logo {
  display: inline-flex; align-items: center; justify-content: center;
  white-space: nowrap; flex-shrink: 0;
  min-width: 168px; height: 62px;
  font-family:var(--font-body); font-size: 15px; font-weight: 600;
  color: var(--text-soft); letter-spacing: 0.01em; padding: 0 24px;
  border: 1px solid var(--border-soft); border-radius: var(--radius-rect);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color .25s var(--ease), color .25s, background .25s;
}
.client-logo:hover { color: var(--text); border-color: rgba(217, 0, 0, 0.45); background: rgba(217, 0, 0, 0.07); }
/* Logo art fills the slot when a file exists; main.js swaps in the name when
   it does not, so an empty assets/img/clients/ still reads correctly. */
.client-mark {
  max-height: 30px;
  max-width: 150px;
  width: auto;
  height: auto;
  object-fit: contain;
  /* The set mixes red, blue and multi-colour seals — knocking them back to a
     near-white monotone keeps the row cohesive instead of a colour clash.
     Full colour returns on hover. */
  filter: grayscale(1) brightness(2.4) contrast(0.85);
  opacity: 0.72;
  transition: opacity .25s var(--ease), filter .25s var(--ease);
}
.client-logo:hover .client-mark { opacity: 1; filter: none; }
.client-logo.has-mark .client-name { display: none; }
.client-logo:not(.has-mark) .client-mark { display: none; }
/* the track holds two identical sets; shifting by exactly half + one gap loops seamlessly */
@keyframes scroll-clients { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 9px)); } }
@media (prefers-reduced-motion: reduce) { .clients-track { animation: none; } }
@media (max-width: 900px) {
  .clients-scroll { position: static; padding-bottom: 0; margin-top: 40px; }
  .client-logo { min-width: 132px; height: 52px; font-size: 13.5px; }
}

/* white wordmark → solid dark so it's legible on light surfaces (header + footer) */
/* nav link text stays dark/brand on the light pill (white was unreadable) */

/* Custom dark-surface components → light */

/* utility */
.mt-s { margin-top: 18px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: 56px; }
.mb-m { margin-bottom: 32px; }
.muted { color: var(--text-muted); }
.tag-orbit { color: var(--brand-text); font-family:var(--font-heading); font-size: 14px; letter-spacing: 0.1em; }

/* ===== Flyer-aligned: red = problem, green = solution ===== */
.green-text { color: var(--green); }
.red-text   { color: var(--blue); }

/* Problem vs Solution panels (challenges = red, showcase outcome = green) */
.panel { border-radius: var(--radius); padding: 30px 34px; border: 1px solid var(--border); }
.panel h3 { font-size: clamp(20px, 2.6vw, 26px); letter-spacing: -0.01em; margin-bottom: 18px; text-transform: uppercase; font-family:var(--font-heading); }
.panel ul { display: grid; gap: 13px; }
.panel li { display: flex; gap: 12px; align-items: flex-start; font-size: 16.5px; line-height: 1.5; color: var(--text-soft); }
.panel li .mk { flex: 0 0 auto; margin-top: 3px; font-weight: 700; }
.panel--problem { background: radial-gradient(600px 300px at 12% 0%, rgba(217,0,0,0.14), transparent 70%), rgba(217,0,0,0.03); border-color: rgba(217,0,0,0.4); }
.panel--problem h3 { color: var(--blue); }
.panel--problem li .mk { color: var(--blue); }
.panel--solution { background: radial-gradient(600px 300px at 12% 0%, var(--green-soft), transparent 70%), rgba(47,212,122,0.02); border-color: var(--green-line); }
.panel--solution h3 { color: var(--green); }
.panel--solution li .mk { color: var(--green); }
.two-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 820px) { .two-panel { grid-template-columns: 1fr; } }

/* Green CTA button (per flyer "Get in touch") */
/* Primary green CTA — flat, saturated, high contrast rather than a soft gradient */
.btn--go {
  position: relative;
  background: var(--green);
  color: #04160c;
  font-weight: 700;
  box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 12px 26px -14px rgba(47,212,122,0.9);
}
.btn--go:hover {
  background: #4bef95;
  transform: translateY(-2px);
  color: #04160c;
  box-shadow: 0 1px 0 rgba(255,255,255,0.35) inset, 0 18px 34px -14px rgba(47,212,122,1);
}
.btn--go:active { transform: translateY(0); }
.btn--go svg { stroke: #04160c; transition: transform .3s var(--ease); }
.btn--go:hover svg { transform: translateX(2px); }
@media (prefers-reduced-motion: reduce) { .btn--go:hover { transform: none; } }

/* Media placeholders — ultra subtle, minimal */
/* Card thumbnail — stands in for mission footage until real stills land.
   Kept wide-and-short so all six capability cards clear one viewport. */
.media-ph {
  aspect-ratio: 3 / 1;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(217, 0, 0, 0.14), transparent 70%),
    linear-gradient(160deg, #17151d 0%, #0e0d13 100%);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
/* faint engineering grid so the frame reads as imagery, not an empty box */
.media-ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 45%, #000, transparent 100%);
  mask-image: radial-gradient(80% 70% at 50% 45%, #000, transparent 100%);
  pointer-events: none;
}
.card:hover .media-ph { border-color: rgba(217, 0, 0, 0.4); }

/* the themed line-art that fills the frame */
.media-ph .thumb-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  transition: opacity .35s var(--ease);
}
.card:hover .media-ph .thumb-art { opacity: 0.8; }
.media-ph .thumb-art .ta-line { fill: none; stroke: #d90000; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.media-ph .thumb-art .ta-soft { fill: none; stroke: rgba(255, 255, 255, 0.28); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.media-ph .thumb-art .ta-go   { fill: none; stroke: #2fd47a; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.media-ph .thumb-art .ta-dot { fill: #d90000; stroke: none; }
.media-ph .thumb-art .ta-dot--go { fill: #2fd47a; stroke: none; }

/* corner ticks — matches the icon-chip framing used elsewhere */
.media-ph .ph-corner { position: absolute; width: 12px; height: 12px; border-color: rgba(217, 0, 0, 0.5); border-style: solid; border-width: 0; }
.media-ph .ph-corner.tl { top: 8px; left: 8px; border-top-width: 1.5px; border-left-width: 1.5px; }
.media-ph .ph-corner.br { bottom: 8px; right: 8px; border-bottom-width: 1.5px; border-right-width: 1.5px; }

/* play affordance */
.media-ph .ph-play {
  position: relative;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(10, 9, 13, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(3px);
  transition: transform .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
.media-ph .ph-play svg { width: 15px; height: 15px; fill: #fff; stroke: none; margin-left: 2px; }
.card:hover .media-ph .ph-play { transform: scale(1.08); background: rgba(217, 0, 0, 0.85); border-color: rgba(255, 255, 255, 0.4); }

.media-ph .ph-label {
  position: absolute;
  left: 10px;
  bottom: 8px;
  z-index: 2;
  font-family:var(--font-body);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}
@media (prefers-reduced-motion: reduce) {
  .card:hover .media-ph .ph-play { transform: none; }
}


.analytics-notice { position:fixed; bottom:20px; left:20px; right:20px; max-width:540px; z-index:1000; padding:24px; background:var(--surface); border:1px solid var(--border); border-radius:12px; box-shadow:0 12px 40px #0008; }
.analytics-notice[hidden] { display:none; }.analytics-notice p { margin-bottom:16px; }.analytics-notice>div { display:flex; flex-wrap:wrap; gap:12px; }
