/* =========================================================
   Accuminds — base, layout and shared components
   Tokens live in tokens.css. Section styles are appended per section.
   ========================================================= */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: var(--fw-regular);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: var(--fw-extrabold); letter-spacing: -0.02em; line-height: 1.12; color: var(--navy); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--gold-100); color: var(--navy-950); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Lenis (from lenis.css, plus native smooth-scroll off while Lenis runs) */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--gutter); top: 8px; z-index: 100;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--navy); color: #fff; font-weight: var(--fw-semibold); text-decoration: none;
  transform: translateY(-150%); transition: transform var(--dur-ui) var(--ease-out);
}
.skip-link:focus { transform: none; }

/* Gold underline that draws from the left on hover/focus */
.u-link {
  text-decoration: none;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  padding-bottom: 2px;
  transition: background-size 0.45s var(--ease-out), color var(--dur-ui) var(--ease-out);
}
.u-link:hover, .u-link:focus-visible, .u-link[aria-current="true"] { background-size: 100% 2px; }

/* ---------- Type helpers ---------- */
.eyebrow {
  margin: 0 0 14px;
  font-size: var(--fs-eyebrow); font-weight: var(--fw-extrabold);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--navy-600);
}
.on-dark .eyebrow, .eyebrow--light { color: var(--gold-300); }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-700); }
.on-dark .lead { color: rgba(255, 255, 255, 0.85); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 12px 22px;
  border: 1px solid transparent; border-radius: 10px;
  font-family: var(--font); font-size: 0.9375rem; font-weight: var(--fw-semibold); line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out),
              border-color var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out),
              translate var(--dur-ui) var(--ease-out);
  /* `transform` is reserved for the magnetic effect (GSAP); hover lift uses `translate`. */
}
.btn:hover { translate: 0 -1px; }
.btn:active { translate: 0 0; }
.btn-sm { min-height: 40px; padding: 10px 16px; font-size: 0.875rem; border-radius: var(--radius-sm); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-400); color: var(--navy-950); box-shadow: var(--shadow-gold); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-900); box-shadow: 0 12px 28px rgba(26, 46, 74, 0.25); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.32); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.10); }
.btn-block { width: 100%; }

/* ---------- Header: dark glass, fixed over the full-bleed hero ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  background: linear-gradient(to bottom, rgba(7, 15, 28, 0.72), rgba(7, 15, 28, 0.35));
  border-bottom: 1px solid transparent; color: #fff;
  transition: background-color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out);
}
/* Blur only once content scrolls underneath; at the top it would just re-blur
   the animating hero on every frame for no visible gain. */
.site-header.is-scrolled {
  background: rgba(7, 15, 28, 0.86);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; margin-right: auto; text-decoration: none; }
.brand img { width: auto; height: 32px; }
.wordmark {
  font-size: 1.25rem; font-weight: var(--fw-extrabold); letter-spacing: 0.04em;
  text-transform: uppercase; color: #fff;
}
.site-nav ul { display: flex; gap: 28px; list-style: none; }
.site-nav a { font-size: 0.9375rem; font-weight: var(--fw-semibold); color: rgba(255, 255, 255, 0.8); }
.site-nav a:hover, .site-nav a[aria-current="true"] { color: #fff; }
.nav-cta { display: none; }

.nav-toggle {
  display: none; position: relative;
  width: 44px; height: 44px; margin-right: -10px; padding: 0;
  background: none; border: 0; border-radius: var(--radius-sm); cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  position: absolute; left: 11px; width: 22px; height: 2px; border-radius: 2px;
  background: #fff; content: '';
  transition: transform 0.4s var(--ease-out), opacity 0.2s var(--ease-out);
}
.nav-toggle__bars { top: 21px; }
.nav-toggle__bars::before { left: 0; top: -7px; }
.nav-toggle__bars::after { left: 0; top: 7px; }
.menu-open .nav-toggle__bars { background: transparent; }
.menu-open .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.menu-open .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 899px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: var(--z-menu);
    display: flex; flex-direction: column; gap: 24px;
    padding: 24px var(--gutter) 32px;
    background: var(--navy-950); border-bottom: 1px solid rgba(255, 255, 255, 0.08); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), visibility 0s linear 0.4s;
  }
  .menu-open .site-nav {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), visibility 0s;
  }
  .site-nav ul { flex-direction: column; gap: 4px; }
  .site-nav ul a { display: inline-block; padding: 10px 0; font-size: 1.25rem; color: #fff; }
  .nav-cta { display: inline-flex; }
  html.menu-open { overflow: hidden; }
}
@media (max-width: 600px) {
  .header-cta { display: none; }
  .brand img { height: 28px; }
  .wordmark { font-size: 1.0625rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section--white { background: var(--surface); }
.section--dark { background: var(--surface-dark); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: var(--fs-h2); }
.section-head .lead { margin-top: 18px; }
@media (max-width: 600px) {
  .section-head { text-align: left; margin-bottom: 40px; }
}

/* ---------- Reveal (initial states only apply when motion is on) ---------- */
.js-motion [data-reveal],
.js-motion [data-reveal-stagger] > * { opacity: 0; }
.mask { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.mask__inner { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 56px 0 40px;
  background: var(--navy-950); color: var(--navy-300);
  border-top: 4px solid var(--gold);
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.footer-brand img { width: auto; height: 28px; }
.wordmark-light { font-size: 1rem; font-weight: var(--fw-extrabold); letter-spacing: 0.06em; text-transform: uppercase; color: #fff; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; list-style: none; }
.footer-nav a { color: #fff; font-size: var(--fs-small); font-weight: var(--fw-semibold); }
.footer-meta { max-width: 760px; font-size: var(--fs-small); line-height: 1.8; }
.footer-meta a { color: var(--gold-300); white-space: nowrap; }
@media (max-width: 600px) {
  .footer-brand { flex-direction: column; gap: 10px; }
}
.footer-legal { font-size: 0.8125rem; }
.footer-copy { font-size: 0.8125rem; color: var(--navy-300); }

/* ---------- TODO placeholders ----------
   [data-todo-slot]  whole block hidden in production; shown with ?todo
   [data-todo]       inline value still to be supplied                */
html:not(.show-todo) [data-todo-slot] { display: none !important; }
.show-todo [data-todo-slot] { outline: 2px dashed #D93025; outline-offset: 6px; }
.show-todo [data-todo] { outline: 1px dashed #D93025; outline-offset: 2px; background: rgba(217, 48, 37, 0.08); }
.show-todo body::after {
  content: 'TODO preview: dashed red = placeholder';
  position: fixed; left: 12px; bottom: 12px; z-index: 999;
  padding: 6px 10px; border-radius: 6px;
  background: #D93025; color: #fff; font: 600 12px/1.2 var(--font);
}

/* =========================================================
   HERO STORY: "chaos to clarity"
   Default (no JS / reduced motion): static hero, logo image + headline.
   .story-live (set in <head> when motion is allowed): tall scroll track,
   sticky full-screen stage, giant words, poster/3D canvas, captions.
   ========================================================= */
.icon { width: 18px; height: 18px; flex-shrink: 0; }

/* Navy gradient base, also used by 404.html */
.hero, .story {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background:
    radial-gradient(ellipse 70% 60% at 60% 45%, rgba(201, 151, 43, 0.16), transparent 60%),
    radial-gradient(ellipse 60% 70% at 25% 60%, rgba(45, 179, 166, 0.10), transparent 60%),
    linear-gradient(160deg, #13233c 0%, var(--navy-950) 55%, #070f1c 100%);
}

/* ---- Static layout (default) ---- */
.story { display: grid; justify-items: center; gap: 28px; padding: calc(var(--header-h) + 48px) var(--gutter) 88px; text-align: center; }
.story-static-mark { width: min(100%, 760px); height: auto; }
.word, .story-poster, .story-canvas, .cap, .story-hint, .story-progress { display: none; }
.story-final { max-width: 820px; }
.story-title { margin: 0 0 20px; font-size: var(--fs-hero); line-height: 1.05; color: #fff; }
.story-title .accent { color: var(--gold-300); }
.story-final .lead { max-width: 620px; margin: 0 auto 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 28px; }
.hero-trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px;
  list-style: none; font-size: var(--fs-small); color: rgba(255, 255, 255, 0.8);
}
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .icon { color: var(--gold-300); }

/* ---- Live story ---- */
.story-live .story-track { height: 320vh; }
.story-live .story {
  position: sticky; top: 0; display: block; height: 100vh; height: 100svh; padding: 0;
}
.story-live .story-static-mark { display: none; }
.story-live .word, .story-live .cap, .story-live .story-hint, .story-live .story-progress, .story-live .story-poster, .story-live .story-canvas { display: block; }

.story-canvas { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; opacity: 0; }
.story-poster { position: absolute; z-index: 2; height: auto; pointer-events: none; }

.word {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -54%);
  margin: 0; white-space: nowrap; pointer-events: none;
  font-size: clamp(4.5rem, 17vw, 17rem); font-weight: var(--fw-extrabold);
  line-height: 0.9; letter-spacing: -0.04em; text-transform: uppercase; color: #f2f4f7;
}
.word-mask { display: inline-block; overflow: hidden; padding-bottom: 0.04em; }
.word .ch { display: inline-block; }
.word--back { z-index: 1; }
.word--front { z-index: 3; }
.word--front .ch { visibility: hidden; }            /* only .is-front letters sit over the wire */
.word--front .ch.is-front { visibility: visible; }
.word--clarity { opacity: 0; }

.cap {
  position: absolute; z-index: 4; left: max(var(--gutter), 5vw); bottom: clamp(88px, 14vh, 140px);
  max-width: 32ch; margin: 0; text-align: left;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem); line-height: 1.5; color: rgba(255, 255, 255, 0.88);
}
.cap b { color: var(--gold-300); font-weight: var(--fw-extrabold); }
.cap--2 { opacity: 0; }
.story-hint {
  position: absolute; z-index: 4; right: max(var(--gutter), 5vw); bottom: clamp(88px, 14vh, 140px);
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy-300);
}
.story-progress { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.08); }
.story-progress span { display: block; height: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); }

.story-live .story-final {
  position: absolute; z-index: 4; left: 50%; bottom: clamp(56px, 8vh, 88px); transform: translateX(-50%);
  width: min(100% - 2 * var(--gutter), 820px); text-align: center; opacity: 0;
}
.story-live .story-title { font-size: clamp(1.75rem, 1.1rem + 2.4vw, 3rem); margin-bottom: 14px; }
.story-live .story-final .lead { margin-bottom: 22px; font-size: 1.0625rem; }
.story-live .hero-ctas { margin-bottom: 20px; }
.story-live .story-final .eyebrow { display: none; } /* the giant CLARITY already sets the scene */
/* Keyboard users tabbing to the CTAs before the story ends still see them */
.story-live .story-final:focus-within { opacity: 1 !important; }

.motion-toggle {
  position: absolute; z-index: 5; right: var(--gutter); bottom: 16px;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 8px 14px 8px 11px;
  background: rgba(11, 24, 43, 0.5); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px;
  color: var(--navy-300); font-size: 0.75rem; font-weight: var(--fw-semibold); cursor: pointer;
  transition: color var(--dur-ui) var(--ease-out), border-color var(--dur-ui) var(--ease-out);
}
.motion-toggle:hover { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.motion-toggle .icon { width: 14px; height: 14px; }
.motion-toggle .icon--play,
.motion-paused .motion-toggle .icon--pause { display: none; }
.motion-paused .motion-toggle .icon--play { display: block; }
html:not(.story-live) .motion-toggle { display: none; }

@media (max-height: 820px) {
  .story-live .hero-trust { display: none; }
}
/* Phones, tablets and other portrait screens: the ball is larger next to the
   word, so the whole word goes in front of it to stay readable. */
@media (max-width: 1023px), (max-aspect-ratio: 1/1) {
  .word--front .ch { visibility: visible; }
}
@media (max-width: 767px) {
  .story-live .story-track { height: 260vh; }
  .word { font-size: 17vw; top: 44%; }
  .cap { right: var(--gutter); bottom: 110px; }
  .story-hint { display: none !important; }
  .story-live .hero-trust { display: none; }
  .story-live .story-final .lead { font-size: 0.9375rem; }
  .story-live .hero-ctas .btn { flex: 1 1 100%; }
  .motion-toggle { top: calc(var(--header-h) + 12px); bottom: auto; }
}
@media (max-width: 600px) {
  .story { padding-block: calc(var(--header-h) + 32px) 72px; }
  .story-title { font-size: clamp(1.75rem, 8vw, 2.25rem); }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-trust { flex-direction: column; align-items: center; gap: 10px; }
}

/* =========================================================
   SERVICES: 5 pillar cards (3 + 2 centred on desktop)
   ========================================================= */
.svc-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.svc-card { grid-column: span 2; }
.svc-card:nth-child(4) { grid-column: 2 / span 2; }
@media (max-width: 1023px) {
  .svc-grid { grid-template-columns: repeat(4, 1fr); }
  .svc-card:nth-child(4) { grid-column: span 2; }
  .svc-card:nth-child(5) { grid-column: 2 / span 2; }
}
@media (max-width: 640px) {
  .svc-grid { grid-template-columns: 1fr; gap: 16px; }
  .svc-card:nth-child(n) { grid-column: auto; }
}

.svc-card {
  --icon-bg: var(--navy-050);
  --icon-fg: var(--navy);
  --icon-accent: var(--gold);
  --cta: var(--navy);
  --hover-border: var(--navy-200);
  display: flex; flex-direction: column; gap: 12px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--ink-200); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out),
              translate var(--dur-1) var(--ease-out);
}
.svc-card:hover { translate: 0 -3px; box-shadow: var(--shadow-md); border-color: var(--hover-border); }
.svc-card--gold { --icon-bg: var(--gold-100); --icon-fg: var(--gold-text); --icon-accent: var(--navy); --cta: var(--gold-text); --hover-border: var(--gold); }
.svc-card--teal { --icon-bg: var(--teal-100); --icon-fg: var(--teal-text); --icon-accent: var(--teal); --cta: var(--teal-text); --hover-border: var(--teal); }

.svc-icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; margin-bottom: 4px;
  border-radius: var(--radius); background: var(--icon-bg); color: var(--icon-fg);
}
.svc-icon svg {
  width: 30px; height: 30px; overflow: visible;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.svc-icon .accent { stroke: var(--icon-accent); }
.svc-icon .slice { stroke-width: 2.6; stroke-linecap: butt; }
.svc-icon .total { stroke-width: 1.2; }
.svc-icon .accent-fill { fill: var(--icon-accent); stroke: none; }
.svc-icon .draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
.svc-icon .bar { fill: currentColor; fill-opacity: 0.16; }
.svc-icon .vat-num { fill: currentColor; stroke: none; font: var(--fw-extrabold) 6.6px/1 var(--font); letter-spacing: -0.02em; }
.svc-icon .beam { opacity: 0; stroke-width: 1.2; }

.svc-card h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; color: var(--ink-900); }
.svc-card p { color: var(--ink-700); font-size: 0.9375rem; line-height: 1.55; }
.svc-points { display: grid; gap: 6px; margin: 2px 0 6px; list-style: none; font-size: var(--fs-small); color: var(--ink-600); }
.svc-points li { position: relative; padding-left: 18px; line-height: 1.45; }
.svc-points li::before {
  content: ''; position: absolute; left: 0; top: 0.62em;
  width: 8px; height: 2px; border-radius: 2px; background: var(--gold);
}
.svc-cta { align-self: flex-start; margin-top: auto; color: var(--cta); font-size: var(--fs-small); font-weight: var(--fw-semibold); }

/* =========================================================
   HOW WE WORK: 4-step timeline
   Desktop: horizontal row, line through the number circles.
   < 1024px: vertical rail on the left (length set by process.js).
   ========================================================= */
.process { position: relative; --num: 56px; --gap: 32px; }
.process-steps {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap);
  list-style: none;
}
.process-step { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.process-num {
  display: grid; place-items: center; flex-shrink: 0;
  width: var(--num); height: var(--num); border-radius: 50%;
  background: var(--gold); border: 2px solid var(--gold); color: var(--navy);
  font-size: 1rem; font-weight: var(--fw-extrabold); font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 8px var(--surface); /* masks the line behind the circle */
}
.process-body h3 { margin-bottom: 8px; font-size: 1.25rem; color: var(--ink-900); }
.process-body p { max-width: 30ch; margin-inline: auto; color: var(--ink-700); font-size: 0.9375rem; line-height: 1.6; }

/* Track sits between the first and last circle centres */
.process-track {
  position: absolute; z-index: 0;
  top: calc(var(--num) / 2 - 1px); height: 2px;
  left: calc((100% - 3 * var(--gap)) / 8);
  right: calc((100% - 3 * var(--gap)) / 8);
  background: var(--ink-200);
}
.process-line { position: absolute; inset: 0; background: var(--gold); transform-origin: 0 50%; }

/* Pinned layout (desktop with motion): fill the viewport while pinned */
.process-section.is-pinned {
  display: flex; align-items: center; min-height: 100vh;
  padding-block: calc(var(--header-h) + 24px) 48px;
  scroll-margin-top: 0; /* nav links land exactly where the pin starts */
}
.process-section.is-pinned > .container { width: 100%; }

@media (max-width: 1023px) {
  .process { max-width: 620px; margin-inline: auto; --gap: 36px; }
  .process-steps { grid-template-columns: 1fr; }
  .process-step { display: grid; grid-template-columns: var(--num) 1fr; align-items: start; column-gap: 20px; text-align: left; }
  .process-body { padding-top: 12px; }
  .process-body p { max-width: none; margin-inline: 0; }
  .process-track {
    top: var(--track-top, calc(var(--num) / 2)); bottom: auto; right: auto;
    left: calc(var(--num) / 2 - 1px); width: 2px;
    height: var(--track-len, calc(100% - 140px));
  }
  .process-line { transform-origin: 50% 0; }
}
@media (max-width: 600px) {
  .process { --num: 48px; --gap: 28px; }
  .process-step { column-gap: 16px; }
  .process-body { padding-top: 10px; }
  .process-body h3 { font-size: 1.125rem; }
}

/* =========================================================
   AUTOMATION SHOWCASE: workbook → dashboard
   Static (default): before + after side by side, each captioned.
   Animated (.is-animated, set by showcase.js): panels stacked in one stage.
   ========================================================= */
.showcase { max-width: 1040px; margin-inline: auto; }
.showcase-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.showcase-panel { margin: 0; }
.showcase-label { margin-bottom: 10px; font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--ink-700); }
.showcase-bar { display: none; }
.showcase-note { margin-top: 16px; text-align: center; font-size: 0.8125rem; color: var(--ink-600); }

.showcase.is-animated { max-width: 880px; }
.showcase.is-animated .showcase-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px;
}
.showcase.is-animated .showcase-stage { grid-template-columns: 1fr; }
.showcase.is-animated .showcase-panel { grid-area: 1 / 1; }
.showcase.is-animated .showcase-label {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.showcase-tabs { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.showcase-tab {
  position: relative; padding-bottom: 6px;
  font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--ink-600);
  transition: color var(--dur-1) var(--ease-out);
}
.showcase-tab::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform var(--dur-1) var(--ease-out);
}
.showcase-tab.is-active { color: var(--navy); }
.showcase-tab.is-active::after { transform: none; }
.showcase-replay {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px 6px 10px;
  background: var(--surface); border: 1px solid var(--ink-200); border-radius: 999px;
  font-size: 0.8125rem; font-weight: var(--fw-semibold); color: var(--navy); cursor: pointer;
  transition: border-color var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out);
}
.showcase-replay:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.showcase-replay .icon { width: 15px; height: 15px; }

/* ---- Scene (shared SVG styles) ---- */
.scene { width: 100%; height: auto; border-radius: 14px; box-shadow: var(--shadow-lg); font-family: var(--font); }
.scene text { font-family: var(--font); font-variant-numeric: tabular-nums; }
.scene .frame { fill: var(--surface); stroke: var(--ink-200); }
.scene .chrome { fill: var(--navy-050); }
.scene .dot-r { fill: #E8A49C; } .scene .dot-y { fill: #EBCB8B; } .scene .dot-g { fill: #A8CFA0; }
.scene .chrome-title { font-size: 12px; font-weight: var(--fw-semibold); fill: var(--ink-600); }

.scene .headcell { fill: var(--navy-050); stroke: var(--ink-200); }
.scene .head { font-size: 12px; font-weight: var(--fw-extrabold); fill: var(--ink-700); }
.scene .gridcell { fill: none; stroke: var(--ink-200); }
.scene .cell { font-size: 13px; fill: var(--ink-900); }
.scene .cell.clean { opacity: 0; }
.scene .is-error { fill: #B42318; font-weight: var(--fw-semibold); }
.scene .is-formula { fill: var(--ink-600); font-size: 11.5px; }
.scene .is-bold { font-weight: var(--fw-extrabold); }
.scene .is-highlight { fill: var(--ink-900); paint-order: stroke; stroke: #FFF2A8; stroke-width: 7px; stroke-linejoin: round; }
.scene .problem-fill { fill: rgba(180, 35, 24, 0.07); }
.scene .dup-fill { fill: rgba(201, 151, 43, 0.12); }
.scene .flag { fill: #D93025; }
.scene .flag--dup { fill: var(--gold); }
.scene .tick { fill: none; stroke: var(--teal); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.scene .tabbar { fill: var(--navy-050); }
.scene .tabtext { font-size: 11.5px; fill: var(--ink-600); }
.scene .tabtext.is-active { font-weight: var(--fw-extrabold); fill: var(--ink-900); }

.scene .chip rect { fill: var(--teal-100); }
.scene .chip path { fill: none; stroke: var(--teal-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.scene .chip text { font-size: 11px; font-weight: var(--fw-extrabold); fill: var(--teal-text); }
.scene .panel { fill: var(--surface); stroke: var(--ink-200); }
.scene .kpi-label, .scene .panel-title { font-size: 12px; font-weight: var(--fw-semibold); fill: var(--ink-600); }
.scene .kpi-value { font-size: 22px; font-weight: var(--fw-extrabold); fill: var(--navy); letter-spacing: -0.01em; }
.scene .axis { stroke: var(--ink-200); stroke-width: 1.5; }
.scene .axis-label { font-size: 11px; fill: var(--ink-600); }
.scene .m-bar { fill: var(--navy-200); }
.scene .m-bar.is-current { fill: var(--gold); }
.scene .sup-label { font-size: 12px; fill: var(--ink-900); }
.scene .sup-value { font-size: 12px; font-weight: var(--fw-semibold); fill: var(--ink-700); }
.scene .s-track { fill: var(--navy-050); }
.scene .s-bar { fill: var(--teal); }

@media (max-width: 860px) {
  .showcase-stage { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .tab-detail { display: none; }
  .scene { border-radius: 10px; }
}

/* =========================================================
   NUMBERS: count-up stats (hidden in production until filled)
   ========================================================= */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; }
.stat { position: relative; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.stat::before {
  content: ''; position: absolute; top: -1px; left: 0;
  width: 40px; height: 2px; background: var(--gold);
}
.stat-figure {
  display: flex; align-items: baseline; gap: 2px;
  font-size: clamp(2.5rem, 1.8rem + 2.4vw, 3.5rem); font-weight: var(--fw-extrabold);
  line-height: 1; letter-spacing: -0.02em; color: #fff;
  font-variant-numeric: tabular-nums; /* digits keep their width while counting */
}
.stat-suffix { color: var(--gold-300); }
.stat-label { max-width: 22ch; margin-top: 12px; font-size: 0.9375rem; line-height: 1.5; color: var(--navy-300); }
.show-todo .stat-num[data-todo]:not([data-demo-shown]) { font-size: 0.6em; letter-spacing: 0; }
@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
}

/* =========================================================
   ABOUT: v3 copy + fact tiles, trust placeholders
   ========================================================= */
.about-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: start; }
.about-copy h2 { margin-bottom: 24px; font-size: var(--fs-h2); }
.about-text { display: grid; gap: 16px; }
.about-text p { max-width: 56ch; color: var(--ink-700); line-height: 1.65; }
.about-text .lead { font-size: 1.25rem; line-height: 1.5; color: var(--ink-900); }
.about-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 36px; list-style: none; }
.fact {
  display: flex; flex-direction: column; gap: 6px; padding: 22px;
  background: var(--bg); border: 1px solid var(--ink-200); border-radius: 14px;
  transition: border-color var(--dur-1) var(--ease-out), translate var(--dur-1) var(--ease-out),
              box-shadow var(--dur-1) var(--ease-out);
}
.fact:hover { border-color: var(--gold); translate: 0 -2px; box-shadow: var(--shadow-sm); }
.fact-n { font-size: 1.625rem; font-weight: var(--fw-extrabold); letter-spacing: -0.01em; line-height: 1.1; color: var(--navy); }
.fact-l { font-size: var(--fs-small); line-height: 1.4; color: var(--ink-700); }

.trust { display: grid; gap: 32px; margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--ink-200); }
.trust-title { margin-bottom: 14px; font-size: var(--fs-eyebrow); font-weight: var(--fw-extrabold); letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy-600); }
.trust-logos { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; }
.trust-logos li {
  display: grid; place-items: center; min-width: 150px; min-height: 64px; padding: 12px 16px;
  border: 1px dashed var(--ink-300); border-radius: 10px;
  font-size: 0.8125rem; color: var(--ink-600); text-align: center;
}
.testimonial { max-width: 720px; margin: 0; padding-left: 20px; border-left: 3px solid var(--gold); }
.testimonial blockquote { margin: 0 0 10px; font-size: 1.125rem; line-height: 1.55; color: var(--ink-900); }
.testimonial figcaption { font-size: var(--fs-small); color: var(--ink-600); }

@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-facts { margin-top: 0; }
}
@media (max-width: 600px) {
  .about-facts { grid-template-columns: 1fr; }
  .about-text .lead { font-size: 1.125rem; }
  .trust-logos li { flex: 1 1 calc(50% - 6px); min-width: 0; }
}

/* =========================================================
   CONTACT: WhatsApp + email CTAs, contact list, form
   ========================================================= */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-copy h2 { margin-bottom: 20px; font-size: var(--fs-h2); }
.p-light { font-size: 1.0625rem; line-height: 1.6; color: rgba(255, 255, 255, 0.85); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
/* Teal for WhatsApp: on-brand, and white text passes AA (6:1) */
.btn-whatsapp { background: var(--teal-text); color: #fff; }
.btn-whatsapp:hover { background: var(--teal); box-shadow: 0 12px 28px rgba(13, 138, 127, 0.3); }
.contact-list { display: flex; flex-direction: column; gap: 14px; margin-top: 32px; list-style: none; font-size: 1rem; color: rgba(255, 255, 255, 0.9); }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.contact-list .icon { width: 20px; height: 20px; color: var(--gold-300); }
.contact-list a { color: inherit; }

.contact-form {
  display: flex; flex-direction: column;
  padding: 32px; border-radius: var(--radius-xl);
  background: var(--surface); color: var(--ink-900); box-shadow: var(--shadow-lg);
}
.form-body { display: flex; flex-direction: column; gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.8125rem; font-weight: var(--fw-semibold); color: var(--ink-900); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; min-height: 44px; padding: 10px 12px;
  font: inherit; font-size: 0.9375rem; font-weight: var(--fw-regular); color: var(--ink-900);
  background: var(--surface); border: 1px solid var(--ink-300); border-radius: var(--radius-sm);
  transition: border-color var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out);
}
.contact-form ::placeholder { color: var(--ink-600); opacity: 0.75; }
.contact-form input:focus-visible, .contact-form select:focus-visible, .contact-form textarea:focus-visible {
  outline: none; border-color: var(--navy); box-shadow: var(--ring);
}
.contact-form textarea { min-height: 88px; resize: vertical; }
.contact-form .hp { display: none; }
.form-submit { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 4px; }
.contact-form [aria-busy="true"] .btn-label { opacity: 0.7; }
.form-error { font-size: var(--fs-small); color: var(--error); }
.form-error a { color: inherit; }

.sent { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 36px 12px; text-align: center; }
.sent[hidden] { display: none; }
.sent-icon { width: 56px; height: 56px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sent-ring { stroke: var(--teal-100); stroke-width: 3; }
.sent-tick { stroke: var(--teal); stroke-width: 3.5; stroke-dasharray: 1; stroke-dashoffset: 0; }
.sent-title { font-size: 1.25rem; color: var(--ink-900); }
.sent-title:focus { outline: none; }
.sent-text { max-width: 36ch; color: var(--ink-600); }
.sent-text a { color: var(--navy); }
.sent-again { margin-top: 6px; padding: 0; background: none; border: 0; font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--navy); cursor: pointer; }

/* Floating WhatsApp shortcut (small screens; contact.js toggles .is-visible) */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: var(--z-float);
  display: none; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--teal-text); color: #fff; box-shadow: var(--shadow-lg);
  opacity: 0; translate: 0 12px; pointer-events: none;
  transition: opacity var(--dur-1) var(--ease-out), translate var(--dur-1) var(--ease-out);
}
.wa-float .icon { width: 26px; height: 26px; }
.wa-float.is-visible { opacity: 1; translate: 0 0; pointer-events: auto; }
@media (max-width: 767px) { .wa-float { display: grid; } }
html:not(.js) .wa-float { display: none; }

@media (max-width: 900px) {
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  .contact-form { padding: 24px 20px; }
  .contact-actions .btn { flex: 1 1 100%; }
  .form-submit .btn { width: 100%; }
  .contact-list li { align-items: flex-start; }
}

/* =========================================================
   V2 DARK EDITORIAL THEME
   One layer over everything above: remaps the colour tokens for a dark page
   and restyles components to match the 3D hero. Two places stay light on
   purpose and restore the original tokens: the contact form card (inputs read
   best dark-on-white) and the showcase "app screens" (.scene).
   Contrast (AA) on #070F1C / #0C1829: heading 17:1, body 12:1, muted 8:1,
   gold-300 11:1, teal-300 7:1.
   ========================================================= */
:root {
  --bg: #070F1C;
  --surface: #0C1829;
  --card: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.09);
  --heading: #F2F4F7;
  --ink-900: #F2F4F7;
  --ink-700: #C9D2E0;
  --ink-600: #9AA8BF;
  --ink-300: rgba(255, 255, 255, 0.24);
  --ink-200: rgba(255, 255, 255, 0.1);
  --gold-text: var(--gold-300);
  --teal-text: var(--teal-300);
  --surface-dark: #0A1424;
}
.contact-form, .scene {
  --surface: #FFFFFF;
  --ink-900: #0A1628;
  --ink-700: #2C3A54;
  --ink-600: #4A5670;
  --ink-300: #C5CCDB;
  --ink-200: #E1E5EE;
  --gold-text: #8A6518;
  --teal-text: #0A7067;
}

body { background: var(--bg); color: var(--ink-700); }
h1, h2, h3, h4 { color: var(--heading); }
::selection { background: rgba(201, 151, 43, 0.35); color: #fff; }
.eyebrow { color: var(--gold-300); }
.lead { color: var(--ink-700); }

/* ---- Sections: alternating depth, hairline seams ---- */
.section { background: var(--bg); }
.section--white { background: var(--surface); }
.section--dark { background: var(--surface-dark); }
.section + .section { border-top: 1px solid var(--line); }

/* ---- Editorial section heads: numbered, left-aligned, oversized ---- */
main { counter-reset: chapter; }
.section-head {
  counter-increment: chapter;
  max-width: none; margin: 0 0 clamp(48px, 6vw, 80px); text-align: left;
  display: grid; grid-template-columns: minmax(160px, 0.28fr) 1fr; column-gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.section-head .eyebrow {
  grid-column: 1; grid-row: 1 / span 2;
  display: flex; flex-direction: column; gap: 10px; margin: 6px 0 0;
  padding-top: 14px; border-top: 1px solid rgba(201, 151, 43, 0.6);
}
.section-head .eyebrow::before {
  content: counter(chapter, decimal-leading-zero);
  font-size: 0.875rem; letter-spacing: 0.08em; color: var(--ink-600);
}
.section-head h2 {
  grid-column: 2;
  max-width: 17ch;
  font-size: clamp(2.25rem, 1.2rem + 4vw, 4.75rem); line-height: 1.02; letter-spacing: -0.035em;
}
.section-head .lead { grid-column: 2; max-width: 54ch; margin-top: 22px; }
@media (max-width: 760px) {
  .section-head { grid-template-columns: 1fr; }
  .section-head .eyebrow, .section-head h2, .section-head .lead { grid-column: 1; grid-row: auto; }
  .section-head .eyebrow { flex-direction: row; align-items: baseline; gap: 12px; margin-bottom: 18px; }
}

/* ---- Services: dark glass cards, numbered ---- */
.svc-grid { counter-reset: pillar; }
.svc-card {
  counter-increment: pillar; position: relative;
  --icon-bg: rgba(255, 255, 255, 0.06); --icon-fg: #E6EAF1; --icon-accent: var(--gold);
  --cta: #FFFFFF; --hover-border: rgba(201, 151, 43, 0.55);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border-color: var(--line); box-shadow: none;
}
.svc-card::after {
  content: counter(pillar, decimal-leading-zero);
  position: absolute; top: 26px; right: 28px;
  font-size: 0.8125rem; font-weight: var(--fw-semibold); letter-spacing: 0.08em; color: var(--ink-600);
}
.svc-card:hover { box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(201, 151, 43, 0.25); }
.svc-card--gold { --icon-bg: rgba(201, 151, 43, 0.14); --icon-fg: var(--gold-300); --icon-accent: #F2F4F7; --cta: var(--gold-300); }
.svc-card--teal { --icon-bg: rgba(45, 179, 166, 0.14); --icon-fg: var(--teal-300); --icon-accent: var(--gold-300); --cta: var(--teal-300); }
.svc-icon .bar { fill-opacity: 0.22; }

/* ---- How we work ---- */
.process-num { box-shadow: 0 0 0 8px var(--surface); }
.process-section.is-pinned { background: var(--surface); }
.process-track { background: rgba(255, 255, 255, 0.12); }

/* ---- Automation showcase: light app screens floating on dark ---- */
.showcase-tab { color: var(--ink-600); }
.showcase-tab.is-active { color: #fff; }
.showcase-label { color: var(--ink-700); }
.showcase-replay { background: rgba(255, 255, 255, 0.06); border-color: var(--line); color: #fff; }
.showcase-replay:hover { border-color: var(--gold); }
.scene { box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.showcase-note { color: var(--ink-600); }

/* About and Contact continue the chapter numbering and the editorial scale */
.about-copy > .eyebrow, .contact-copy > .eyebrow {
  counter-increment: chapter;
  display: flex; align-items: baseline; gap: 12px;
  width: min(100%, 220px); padding-top: 14px; border-top: 1px solid rgba(201, 151, 43, 0.6);
}
.about-copy > .eyebrow::before, .contact-copy > .eyebrow::before {
  content: counter(chapter, decimal-leading-zero);
  font-size: 0.875rem; letter-spacing: 0.08em; color: var(--ink-600);
}
.about-copy h2, .contact-copy h2 {
  max-width: 15ch; font-size: clamp(2.1rem, 1.1rem + 3vw, 3.6rem); line-height: 1.04; letter-spacing: -0.03em;
}

/* ---- About ---- */
.about-text .lead { color: var(--heading); }
.fact { background: var(--card); border-color: var(--line); }
.fact:hover { box-shadow: none; }
.fact-n { color: var(--gold-300); }
.trust { border-top-color: var(--line); }
.trust-logos li { border-color: var(--ink-300); }

/* ---- Contact (form card stays white) ---- */
.btn-whatsapp { background: #0A7067; color: #fff; }        /* white on #0A7067 = 6:1 */
.btn-whatsapp:hover { background: var(--teal); }
.wa-float { background: #0A7067; }
.contact-form { box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45); }

/* ---- Footer ---- */
.site-footer { background: #050B15; }

/* =========================================================
   SERVICE PAGES (services/*, generated by tools/build_pages.py)
   ========================================================= */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  padding: calc(var(--header-h) + clamp(40px, 6vw, 88px)) 0 clamp(64px, 8vw, 112px);
  background:
    radial-gradient(ellipse 70% 60% at 75% 30%, rgba(201, 151, 43, 0.14), transparent 60%),
    radial-gradient(ellipse 60% 70% at 15% 80%, rgba(45, 179, 166, 0.08), transparent 60%),
    linear-gradient(160deg, #13233c 0%, var(--navy-950) 55%, #070f1c 100%);
}
.page-hero h1 {
  max-width: 18ch; margin: 0 0 20px;
  font-size: clamp(2.4rem, 1.3rem + 4.2vw, 4.75rem); line-height: 1.03; letter-spacing: -0.035em;
}
.page-hero .lead { max-width: 60ch; margin-bottom: 32px; }
.page-hero .hero-ctas { justify-content: flex-start; margin-bottom: 0; }

.breadcrumbs { margin-bottom: clamp(28px, 4vw, 48px); font-size: 0.8125rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; list-style: none; color: var(--ink-600); }
.breadcrumbs li + li::before { content: '/'; margin-right: 10px; color: var(--ink-300); }
.breadcrumbs a { color: var(--ink-700); }
.breadcrumbs [aria-current] { color: var(--ink-700); }

.incl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; list-style: none; }
.incl {
  padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}
.incl h3 { margin-bottom: 8px; font-size: 1.125rem; letter-spacing: -0.01em; }
.incl p { font-size: 0.9375rem; line-height: 1.55; color: var(--ink-700); }

.who-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; list-style: none; max-width: 980px; }
.who-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.0625rem; line-height: 1.5; color: var(--heading); }
.who-list .icon { width: 22px; height: 22px; margin-top: 2px; color: var(--gold-300); }

.facts-list { margin: 0; max-width: 1040px; }
.fact-row {
  display: grid; grid-template-columns: minmax(180px, 0.3fr) 1fr; gap: 8px 32px;
  padding: 22px 0; border-top: 1px solid var(--line);
}
.fact-row:last-child { border-bottom: 1px solid var(--line); }
.fact-row dt { font-weight: var(--fw-extrabold); color: var(--gold-300); }
.fact-row dd { margin: 0; line-height: 1.6; color: var(--heading); }
.fact-src { display: block; width: fit-content; margin-top: 8px; font-size: 0.8125rem; color: var(--ink-600); }

.faq-list { max-width: 980px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 44px; padding: 22px 0; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem); letter-spacing: -0.01em; }
.faq-item summary .icon { width: 22px; height: 22px; color: var(--gold-300); transition: rotate var(--dur-1) var(--ease-out); }
.faq-item[open] summary .icon { rotate: 45deg; }
.faq-item p { max-width: 70ch; padding: 0 0 24px; line-height: 1.65; color: var(--ink-700); }

.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.related-card {
  position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 100%;
  padding: 26px 26px 52px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  text-decoration: none; color: inherit;
  transition: border-color var(--dur-1) var(--ease-out), translate var(--dur-1) var(--ease-out);
}
.related-card:hover { border-color: rgba(201, 151, 43, 0.55); translate: 0 -3px; }
.related-pillar { font-size: var(--fs-eyebrow); font-weight: var(--fw-extrabold); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-300); }
.related-name { font-size: 1.25rem; font-weight: var(--fw-extrabold); letter-spacing: -0.01em; color: var(--heading); }
.related-desc { font-size: 0.9375rem; line-height: 1.55; color: var(--ink-700); }
.related-go { position: absolute; left: 26px; bottom: 20px; color: var(--gold-300); transition: translate var(--dur-1) var(--ease-out); }
.related-card:hover .related-go { translate: 6px 0; }

.cta-band { text-align: center; }
.cta-inner { display: grid; justify-items: center; gap: 18px; }
.cta-band h2 { max-width: 20ch; font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem); line-height: 1.05; letter-spacing: -0.03em; }
.cta-band .lead { margin: 0 0 8px; }
.cta-band .hero-ctas { margin-bottom: 0; }

/* Home service cards: "Discuss this" + "Learn more" */
.svc-actions { display: grid; gap: 10px; margin-top: auto; padding-top: 6px; }
.svc-actions .svc-cta { margin-top: 0; }
.svc-more-row { font-size: var(--fs-small); color: var(--ink-600); }
.svc-more { color: var(--gold-300); font-weight: var(--fw-semibold); }
.svc-more-label { color: var(--ink-600); }

.footer-services a { color: var(--navy-300); font-weight: var(--fw-regular); }

@media (max-width: 760px) {
  .who-list { grid-template-columns: 1fr; }
  .fact-row { grid-template-columns: 1fr; }
  .page-hero .hero-ctas .btn { flex: 1 1 100%; }
}

/* ---------- Reduced motion: no transitions, no smooth scroll ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
}
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; }
