/* ============================================================
 * Mana Solutions — Site styles (Website V2)
 * Single concatenated stylesheet. Cascade is made explicit via
 * @layer so motion-preferences and theme overrides can never
 * be subverted by source-order accidents.
 *
 * Layer order (last wins):
 *   reset → tokens → base → decoration →
 *   components → sections → utilities → overrides
 *
 * Section index:
 *    1. @layer declaration
 *    2. @font-face (self-hosted fonts)
 *    3. RESET                                  (layer: reset)
 *    4. COLOR + LAYOUT + TYPOGRAPHY TOKENS     (layer: tokens)
 *    5. TYPOGRAPHY RULES                       (layer: base)
 *    6. PAGE BACKGROUND / DECO                 (layer: decoration)
 *    7. BUTTONS                                (layer: components)
 *    8. TOP NAVIGATION                         (layer: components)
 *    9. SECTION HEAD                           (layer: components)
 *   10. FAQ ACCORDION                          (layer: components)
 *   11. FOOTER                                 (layer: components)
 *   12. STICKY MOBILE CTA                      (layer: components)
 *   13. HERO                                   (layer: sections)
 *   14. TRUST STRIP                            (layer: sections)
 *   15. PROBLEMS                               (layer: sections)
 *   16. SERVICES                               (layer: sections)
 *   17. AUDIT DELIVERABLE                      (layer: sections)
 *   18. PROCESS TIMELINE                       (layer: sections)
 *   19. WHY MANA (incl. compact layout)        (layer: sections)
 *   20. FINAL CTA                              (layer: sections)
 *   21. ANIMATIONS                             (layer: utilities)
 *   22. ACCESSIBILITY                          (layer: utilities)
 *   23. MOTION PREFERENCES                     (layer: overrides)
 * ============================================================ */

/* -----------------------------------------------------------
 * 1. @LAYER DECLARATION
 * --------------------------------------------------------- */
@layer reset, tokens, base, decoration, components, sections, utilities, overrides;

/* -----------------------------------------------------------
 * 2. SELF-HOSTED FONTS
 * Kept outside @layer so they're always available regardless
 * of layer state.
 * --------------------------------------------------------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo Black';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/archivo-black-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/lora-var.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-var.woff2') format('woff2');
}
/* TEMPORARY: 'Mana' face disabled. M.ttf will be replaced with the
   updated brand font later; when it lands, uncomment this @font-face
   block (and the matching <link rel="preload"> in index.html) to swap
   the display family back to Mana. Until then the cascade falls
   through to 'Archivo Black'.
@font-face {
  font-family: 'Mana';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/M.ttf') format('truetype');
}
*/

/* -----------------------------------------------------------
 * 3. RESET + BASE
 * --------------------------------------------------------- */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  html, body { margin: 0; padding: 0; }

  /* Hide the native scrollbar — page still scrolls, just invisibly. */
  html { scrollbar-width: none; -ms-overflow-style: none; }
  html::-webkit-scrollbar { width: 0; height: 0; display: none; }
  body::-webkit-scrollbar { width: 0; height: 0; display: none; }
  img, svg { display: block; max-width: 100%; }
  button { font: inherit; cursor: pointer; }
  a { color: inherit; text-decoration: none; }
}

/* -----------------------------------------------------------
 * 4. TOKENS — colors, layout primitives, typography scale
 *
 * Theme rule (symmetric): the global override on <html data-theme>
 * always wins over per-section [data-theme] markers. Both light→dark
 * and dark→light directions force.
 *
 * Canonical breakpoints (used in @media queries — no custom-property
 * shorthand exists for media queries without a build step):
 *   560px  single column
 *   720px  small tablet
 *   820px  audit/footer collapse
 *   920px  mobile nav threshold
 *   1080px services tablet → desktop
 * --------------------------------------------------------- */
@layer tokens {
  :root {
    color-scheme: dark;

    --c-bg:           #0B0F1A;
    --c-surface:      #141826;
    --c-surface-2:    #1A1F31;
    --c-ink:          #E8E6DD;
    --c-muted-strong: #B5B2A8;
    --c-muted:        #9B9890;
    --c-line:         #1F2335;
    --c-accent:       #C9A961;
    --c-accent-soft:  rgb(201 169 97 / 0.14);
    --c-accent-ink:   #0B0F1A;

    /* RGB component tokens — let one source of truth drive every
       rgba() alpha variant. Use as: rgb(var(--c-bg-rgb) / 0.25). */
    --c-bg-rgb:     11 15 26;
    --c-ink-rgb:    232 230 221;
    --c-accent-rgb: 201 169 97;

    /* Per-theme logo asset. */
    --logo-src: url('../img/logo-dark.svg');
  }

  [data-theme="light"],
  html[data-theme="light"],
  html[data-theme="light"] [data-theme="dark"] {
    color-scheme: light;

    --c-bg:           #F5F1E8;
    --c-surface:      #FFFFFF;
    --c-surface-2:    #FAF6EC;
    --c-ink:          #0A0A0A;
    --c-muted-strong: #3A3A38;
    --c-muted:        #6E6E68;
    --c-line:         #D9D3C4;
    --c-accent:       #0A0A0A;
    --c-accent-soft:  rgb(10 10 10 / 0.06);
    --c-accent-ink:   #F5F1E8;

    --c-bg-rgb:     245 241 232;
    --c-ink-rgb:    10 10 10;
    --c-accent-rgb: 10 10 10;

    --logo-src:       url('../img/logo.svg');
  }

  /* Global dark override forces dark on light-marked sections. The
     mirror rule above forces light on dark-marked sections; the user's
     <html data-theme> wins symmetrically. */
  html[data-theme="dark"] [data-theme="light"] {
    color-scheme: dark;

    --c-bg:           #0B0F1A;
    --c-surface:      #141826;
    --c-surface-2:    #1A1F31;
    --c-ink:          #E8E6DD;
    --c-muted-strong: #B5B2A8;
    --c-muted:        #9B9890;
    --c-line:         #1F2335;
    --c-accent:       #C9A961;
    --c-accent-soft:  rgb(201 169 97 / 0.14);
    --c-accent-ink:   #0B0F1A;

    --c-bg-rgb:     11 15 26;
    --c-ink-rgb:    232 230 221;
    --c-accent-rgb: 201 169 97;

    --logo-src:       url('../img/logo-dark.svg');
  }

  :root {
    /* Layout */
    --container-max: 1280px;
    --container-px: 32px;
    --zone-nav-py: 32px;
    /* Approx sticky-nav height: logo (124px) + 2× --zone-nav-py (64px) + 1px border. */
    --nav-h: 189px;
    --zone-body-py: clamp(96px, 12vw, 128px);
    --zone-detail-py: clamp(72px, 9vw, 96px);

    /* Radii */
    --r-sm: 6px;
    --r-md: 8px;
    --r-lg: 12px;
    --r-xl: 16px;
    --r-card: 14px;
    --r-btn: 8px;

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    --space-12: 48px;
    --space-16: 64px;

    /* Typography — families + scale */
    --font-display:     'Mana', 'Archivo Black', sans-serif;
    --font-body:        'Inter', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
    --font-mono:        'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;
    --font-brand-mark:  'Mana', 'Archivo Black', sans-serif;
    --font-brand-soft:  'Lora', Georgia, serif;

    --t-display-size: clamp(40px, 6vw, 76px);
    --t-h1-size:      clamp(36px, 5vw, 62px);
    --t-h2-size:      clamp(28px, 3.6vw, 40px);
    --t-h2-detail:    clamp(24px, 3vw, 34px);
    --t-h3-size:      22px;
    --t-h4-size:      18px;
    --t-lede-size:    19px;
    --t-body-size:    17px;
    --t-small-size:   14px;
    --t-eyebrow-size: 11px;
    --t-meta-size:    12px;
    --t-tag-size:     10px;
  }

  /* Layout primitives live in tokens because they're foundational. */
  .container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-px);
    padding-right: var(--container-px);
  }
  .container.narrow { max-width: 920px; }

  section {
    background: var(--c-bg);
    color: var(--c-ink);
    position: relative;
  }

  .zone-hero {
    /* Fits within the visible viewport area below the sticky nav, so the
       hero-strip lands inside the first screen without scrolling. */
    min-height: calc(100dvh - var(--nav-h));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 32px 0 48px;
  }
  @media (max-width: 920px) {
    .zone-hero {
      /* Mobile nav is slightly shorter: logo 100px + 64px padding + 1px border = 165px. */
      min-height: calc(100dvh - 165px);
    }
  }
  .zone-body   { padding: var(--zone-body-py) 0; }
  .zone-detail { padding: var(--zone-detail-py) 0; }
}

/* -----------------------------------------------------------
 * 5. TYPOGRAPHY RULES
 * --------------------------------------------------------- */
@layer base {
  body {
    background: var(--c-bg);
    color: var(--c-ink);
    font-family: var(--font-body);
    font-size: var(--t-body-size);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }

  h1, .t-display {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: var(--t-display-size);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0 0 22px;
  }
  h2 {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: var(--t-h2-size);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 18px;
  }
  h2.detail { font-size: var(--t-h2-detail); line-height: 1.2; }
  h3 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--t-h3-size);
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 12px;
  }
  h4 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--t-h4-size);
    line-height: 1.3;
    margin: 0 0 8px;
  }
  p { margin: 0 0 16px; }
  p.lede {
    font-size: var(--t-lede-size);
    line-height: 1.55;
    color: var(--c-muted-strong);
    font-weight: 400;
    max-width: 60ch;
  }
  p.small { font-size: var(--t-small-size); line-height: 1.55; }

  .t-eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: var(--t-eyebrow-size);
    line-height: 1.4;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--c-accent);
    margin-bottom: 18px;
  }
  .t-meta, code {
    font-family: var(--font-mono);
    font-size: var(--t-meta-size);
    line-height: 1.6;
    letter-spacing: 0.04em;
  }
}

/* -----------------------------------------------------------
 * 6. PAGE BACKGROUND / DECO LAYER
 * --------------------------------------------------------- */
@layer decoration {
  .page { position: relative; overflow-x: clip; }
  .deco { position: absolute; pointer-events: none; color: var(--c-ink); }
  .deco-hero { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
  .deco.compass-tr { top: 60px; right: -160px; width: 620px; height: 620px; opacity: 0.07; }
  .deco.compass-bl { bottom: -120px; left: -120px; width: 380px; height: 380px; opacity: 0.05; transform: rotate(45deg); }
}

/* -----------------------------------------------------------
 * 7. BUTTONS
 * --------------------------------------------------------- */
@layer components {
  .btn {
    display: inline-flex; align-items: center; gap: 8px;
    border-radius: var(--r-btn);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    border: 1px solid transparent;
    transition: transform .12s ease, box-shadow .2s ease, background-color .15s, color .15s;
    white-space: nowrap;
  }
  .btn:hover { transform: translateY(-1px); }
  .btn:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }

  .btn.primary { background: var(--c-accent); color: var(--c-accent-ink); border-color: var(--c-accent); }
  .btn.primary:hover { box-shadow: 0 16px 40px -12px rgb(var(--c-accent-rgb) / 0.45); }

  .btn.ghost { background: transparent; color: var(--c-ink); border-color: var(--c-line); }
  .btn.ghost:hover { border-color: var(--c-accent); color: var(--c-accent); }

  [data-theme="light"] .btn.ghost:hover { color: var(--c-ink); border-color: var(--c-ink); }

  .zone-hero   .btn { padding: 18px 28px; font-size: 14px; line-height: 1.4; }
  .zone-body   .btn { padding: 14px 22px; line-height: 1.4; }
  .zone-detail .btn { padding: 12px 18px; line-height: 1.4; }

  .btn .arrow { transition: transform .2s ease; }
  .btn:hover .arrow { transform: translateX(3px); }

  /* Magnetic-hover transition tuning. Shared with .nav-cta so the
     nav's primary CTA shares the same easing curve. JS adds
     will-change at hover-start to keep idle layers cheap. */
  .btn.primary, .nav-cta {
    transition: transform .25s cubic-bezier(0.2, 0.8, 0.2, 1),
                background-color .2s ease, color .2s ease,
                border-color .2s ease;
  }
}

/* -----------------------------------------------------------
 * 8. TOP NAVIGATION
 * --------------------------------------------------------- */
@layer components {
  .topnav-wrap {
    position: sticky; top: 0; z-index: 60;
    background: var(--c-bg); /* fallback */
    border-bottom: 1px solid var(--c-line);
    transition: transform 200ms ease, background 250ms ease;
  }
  @supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
    .topnav-wrap {
      background: rgb(var(--c-bg-rgb) / 0.80);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
    }
    .topnav-wrap.scrolled { background: rgb(var(--c-bg-rgb) / 0.95); }
  }
  .topnav-wrap.nav-hidden { transform: translateY(-100%); }

  .topnav {
    display: flex; align-items: center; justify-content: space-between;
    padding: var(--zone-nav-py) 0;
    gap: 24px;
  }
  .topnav-brand { display: flex; align-items: center; gap: 0; }

  /* LOGO — nav (desktop + mobile). Dark/light asset swapped via --logo-src token.
     Width controls header height (logo is the tallest nav element). */
  .topnav-logo {
    height: 124px;
    width: 124px;
    display: block;
    content: var(--logo-src);
    transition: opacity .25s ease;
  }
  @media (max-width: 920px) {
    .topnav-logo { height: 100px; width: 100px; }
  }

  .topnav-links {
    display: flex; gap: 24px; align-items: center;
    font-size: 13px; color: var(--c-muted); font-weight: 500;
  }
  .topnav-links > a:not(.nav-cta) {
    position: relative;
    transition: color .15s;
    padding-bottom: 3px;
  }
  .topnav-links > a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 100%; height: 1.5px;
    background: var(--c-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .22s ease;
  }
  .topnav-links > a:not(.nav-cta):hover::after,
  .topnav-links > a:not(.nav-cta):focus-visible::after { transform: scaleX(1); transform-origin: left; }
  .topnav-links > a:not(.nav-cta):hover,
  .topnav-links > a:not(.nav-cta):focus-visible { color: var(--c-ink); outline: none; }

  .lang-toggle {
    display: inline-flex; align-items: center; gap: 4px;
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--c-muted); background: transparent;
    border: 1px solid var(--c-line); padding: 6px 10px;
    border-radius: var(--r-sm);
    transition: border-color .15s, color .15s;
    position: relative;
  }
  .lang-toggle:hover, .lang-toggle:focus-visible { color: var(--c-ink); border-color: var(--c-accent); outline: none; }
  .lang-toggle [aria-current="true"] { color: var(--c-accent); }

  .theme-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 32px;
    color: var(--c-muted); background: transparent;
    border: 1px solid var(--c-line);
    border-radius: var(--r-sm);
    cursor: pointer;
    padding: 0;
    transition: border-color .15s, color .15s, background-color .15s;
  }
  .theme-toggle:hover, .theme-toggle:focus-visible {
    color: var(--c-ink); border-color: var(--c-accent); outline: none;
  }
  .theme-toggle svg { width: 16px; height: 16px; display: block; transition: transform .22s ease; }
  .theme-toggle:hover svg { transform: rotate(12deg); }
  .theme-toggle .ico-moon { display: none; }
  .theme-toggle .ico-sun  { display: block; }
  html[data-theme="light"] .theme-toggle .ico-sun  { display: none; }
  html[data-theme="light"] .theme-toggle .ico-moon { display: block; }

  .nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    background: var(--c-accent);
    color: var(--c-accent-ink);
    border-radius: var(--r-btn);
    border: 1px solid var(--c-accent);
  }
  .nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgb(var(--c-accent-rgb) / 0.45); }

  .mobile-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--c-line);
    color: var(--c-ink);
    width: 40px; height: 40px;
    border-radius: var(--r-sm);
    align-items: center; justify-content: center;
  }
  .mobile-toggle svg { width: 20px; height: 20px; }

  @media (max-width: 920px) {
    .topnav-links { display: none; }
    .topnav-links.open {
      display: flex;
      position: fixed;
      top: 64px;
      left: 0;
      right: 0;
      bottom: 0;
      width: 100vw;
      height: calc(100dvh - 64px);
      background: var(--c-bg);
      flex-direction: column;
      flex-wrap: nowrap;
      padding: 32px 24px;
      gap: 22px;
      align-items: flex-start;
      z-index: 55;
      overflow-y: auto;
      border-top: 1px solid var(--c-line);
    }
    .topnav-links.open a, .topnav-links.open .lang-toggle, .topnav-links.open .nav-cta { font-size: 18px; }
    .topnav-links.open .nav-cta { width: 100%; text-align: center; padding: 14px 22px; }
    .mobile-toggle { display: inline-flex; }
  }

  /* Skip link — keyboard-only shortcut to #main */
  .skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--c-accent); color: var(--c-accent-ink);
    padding: 10px 14px; border-radius: var(--r-sm);
    font-size: 14px; font-weight: 500;
    z-index: 100;
  }
  .skip-link:focus { left: 16px; top: 12px; outline: none; }
}

/* -----------------------------------------------------------
 * 9. SECTION HEAD (shared)
 * --------------------------------------------------------- */
@layer components {
  .section-head { max-width: 720px; margin-bottom: 56px; }
  .section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
  .section-head h2 { margin-bottom: 14px; }
  .section-head .lede { font-size: 18px; }
}

/* -----------------------------------------------------------
 * 10. FAQ ACCORDION
 * --------------------------------------------------------- */
@layer components {
  .faq-list { display: flex; flex-direction: column; gap: 0; margin-top: 24px; }
  .faq-item { border-top: 1px solid var(--c-line); }
  .faq-item:last-child { border-bottom: 1px solid var(--c-line); }
  /* Subtle tint when an item is open — :has() removes the need for JS class toggling. */
  .faq-item:has(.faq-trigger[aria-expanded="true"]) { background: var(--c-accent-soft); }
  .faq-trigger {
    width: 100%; text-align: left;
    background: transparent; border: 0; color: var(--c-ink);
    padding: 24px 48px 24px 16px;
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--font-body); font-size: 17px; font-weight: 500;
    position: relative;
  }
  .faq-trigger:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 4px; border-radius: 4px; }
  .faq-trigger .plus {
    width: 22px; height: 22px;
    flex: none; position: relative;
    color: var(--c-accent);
  }
  .faq-trigger .plus::before,
  .faq-trigger .plus::after {
    content: ''; position: absolute; background: currentColor;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
  }
  .faq-trigger .plus::before { width: 14px; height: 1.5px; }
  .faq-trigger .plus::after  { width: 1.5px; height: 14px; transition: transform .25s ease; }
  .faq-trigger[aria-expanded="true"] .plus::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
  .faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
  .faq-answer-inner {
    padding: 0 48px 28px 16px;
    font-size: 16px; color: var(--c-muted-strong); line-height: 1.65;
    max-width: 68ch;
  }
}

/* -----------------------------------------------------------
 * 11. FOOTER
 * --------------------------------------------------------- */
@layer components {
  .footer {
    background: var(--c-bg);
    color: var(--c-muted);
    padding: 64px 0 32px;
    border-top: 1px solid var(--c-line);
  }
  .footer .row {
    display: grid;
    grid-template-columns: 1.4fr repeat(2, 1fr);
    gap: 40px;
  }
  .footer .brandcol p {
    font-size: 13px; max-width: 32ch; margin: 12px 0 0;
    color: var(--c-muted);
  }

  /* LOGO — footer. 216 × 216. Dark/light asset swapped via --logo-src token. */
  .footer .footer-logo {
    height: 216px;
    width: 216px;
    margin-bottom: 14px;
    content: var(--logo-src);
    transition: opacity .25s ease;
  }
  .footer h5 {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--c-muted);
    margin: 0 0 16px; font-weight: 500;
  }
  .footer a {
    display: block; margin: 8px 0; font-size: 14px;
    color: var(--c-ink); font-weight: 400;
    transition: color .15s;
  }
  .footer a:hover { color: var(--c-accent); }
  .footer .legal {
    margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--c-line);
    font-size: 11px; color: var(--c-muted);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    letter-spacing: 0.04em;
  }
  @media (max-width: 820px) {
    .footer .row { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer .brandcol { grid-column: 1 / -1; }
  }
}

/* -----------------------------------------------------------
 * 12. STICKY MOBILE CTA
 * --------------------------------------------------------- */
@layer components {
  .mobile-cta {
    position: fixed; left: 16px; right: 16px; bottom: 16px;
    z-index: 70;
    display: none;
  }
  .mobile-cta .btn {
    width: 100%; justify-content: center; padding: 16px 24px;
    font-size: 15px;
    box-shadow: 0 20px 50px -12px rgb(0 0 0 / 0.6);
  }
  @media (max-width: 920px) {
    .mobile-cta { display: block; }
    body { padding-bottom: 72px; }
  }
}

/* -----------------------------------------------------------
 * 13. HERO
 * --------------------------------------------------------- */
@layer sections {
  /* Backdrop — gradients are token-driven so a theme rebrand
     repaints automatically. */
  .hero-photo {
    position: absolute; inset: 0; z-index: 0;
    background-image:
      radial-gradient(60% 50% at 50% 30%, rgb(var(--c-accent-rgb) / 0.10) 0%, rgb(var(--c-bg-rgb) / 0) 70%),
      linear-gradient(180deg, var(--c-bg) 0%, var(--c-surface) 60%, var(--c-bg) 100%);
  }
  .hero-photo::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgb(var(--c-bg-rgb) / 0.25) 0%, var(--c-bg) 100%);
  }
  .zone-hero > .container { position: relative; z-index: 2; }

  /* Content. Sizes tuned tighter than the global --t-display-size so the
     headline + lede + CTAs + strip fit in (100dvh - nav-h) without
     overflowing below the fold. */
  .hero-eyebrow { margin-bottom: 16px; }
  .zone-hero h1 {
    max-width: 18ch;
    font-size: clamp(32px, 4.4vw, 52px);
    margin-bottom: 14px;
  }
  .zone-hero .lede { margin-top: 4px; max-width: 56ch; }
  .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
  .hero-microcopy {
    margin-top: 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--c-muted);
    letter-spacing: 0.04em;
  }
  .hero-strip {
    margin-top: 28px;
    padding-top: 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    font-size: 13px;
    color: var(--c-muted-strong);
    border-top: 1px solid var(--c-line);
  }
  .hero-strip span { display: flex; align-items: center; gap: 10px; }
  .hero-strip .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--c-accent); flex: none; }
  @media (max-width: 720px) {
    .hero-strip { grid-template-columns: 1fr; gap: 12px; margin-top: 48px; }
  }
}

/* -----------------------------------------------------------
 * 14. TRUST STRIP
 * --------------------------------------------------------- */
@layer sections {
  .zone-trust {
    padding: clamp(72px, 9vw, 112px) 0;
    text-align: center;
    position: relative;
    background: var(--c-bg);
  }
  .trust-headline {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(26px, 3.8vw, 44px);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 auto 18px;
    max-width: 22ch;
    color: var(--c-ink);
  }
  .trust-body {
    color: var(--c-muted-strong);
    font-size: clamp(15px, 1.6vw, 17px);
    line-height: 1.6;
    max-width: 56ch;
    margin: 0 auto;
  }
}

/* -----------------------------------------------------------
 * 15. PROBLEMS
 * --------------------------------------------------------- */
@layer sections {
  .problems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  .problem-card {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--r-card);
    padding: 28px 26px;
    transition: border-color .2s ease, transform .2s ease;
  }
  .problem-card:hover { border-color: var(--c-accent); transform: translateY(-2px); }
  .problem-num {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-accent);
    margin-bottom: 12px;
  }
  .problem-card h3 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 17px;
    letter-spacing: -0.01em;
    margin: 0 0 8px;
    color: var(--c-ink);
  }
  .problem-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--c-muted-strong);
    margin: 0;
  }
  @media (max-width: 920px) { .problems-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 560px) { .problems-grid { grid-template-columns: 1fr; } }
}

/* -----------------------------------------------------------
 * 16. SERVICES
 *
 * Featured-card colors flow via custom properties on .service-card.
 * The .featured variant redefines the props rather than overriding
 * dozens of child selectors — keeps contrast safe even if rule order
 * is later refactored. (Audit H2.)
 * --------------------------------------------------------- */
@layer sections {
  .services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    align-items: stretch;
  }
  .service-card {
    /* Local color tokens — featured cards just redefine these. */
    --svc-bg:           var(--c-surface);
    --svc-border:       var(--c-line);
    --svc-accent:       var(--c-accent);
    --svc-text:         var(--c-ink);
    --svc-muted:        var(--c-muted-strong);

    background: var(--svc-bg);
    color: var(--svc-text);
    border: 1px solid var(--svc-border);
    border-radius: var(--r-card);
    padding: 28px 22px;
    display: flex; flex-direction: column;
    transition: transform .35s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow .25s ease, border-color .2s ease;
    transform-style: preserve-3d;
    position: relative;
    /* No overflow: hidden here — the .featured badge needs to pop above
       the card edge. The shimmer is contained by its own .svc-shimmer
       wrapper so we don't have to clip the whole card. */
  }
  .service-card.featured {
    --svc-bg:     var(--c-accent);
    --svc-border: var(--c-accent);
    --svc-accent: var(--c-accent-ink);
    --svc-text:   var(--c-accent-ink);
    --svc-muted:  var(--c-accent-ink);
  }
  .service-card.featured .svc-eyebrow { opacity: 0.8; }
  .service-card.featured .svc-desc { opacity: 0.9; }
  .service-card.featured .svc-list li::before { opacity: 0.7; }
  .service-card.featured .btn.primary {
    background: var(--c-accent-ink);
    color: var(--c-accent);
    border-color: var(--c-accent-ink);
  }
  .service-card.featured::before {
    content: attr(data-badge);
    position: absolute; top: -10px; left: 22px;
    font-family: var(--font-mono);
    font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
    background: var(--c-accent-ink); color: var(--c-accent);
    padding: 5px 10px; border-radius: 999px;
    white-space: nowrap;
  }
  .service-card:hover {
    transform: translateY(-3px);
    border-color: var(--c-accent);
    box-shadow: 0 16px 40px -24px rgb(0 0 0 / 0.55);
  }

  .svc-eyebrow {
    font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--svc-accent); margin-bottom: 10px;
  }
  .svc-title {
    font-family: var(--font-body); font-weight: 600;
    font-size: 18px; letter-spacing: -0.01em; line-height: 1.2;
    margin: 0 0 12px;
    color: var(--svc-text);
  }
  .svc-price { margin-bottom: 14px; }
  .svc-amount {
    font-family: var(--font-body); font-size: 18px; font-weight: 600;
    color: var(--svc-accent); letter-spacing: -0.01em;
  }
  .svc-desc { color: var(--svc-muted); margin: 0 0 16px; font-size: 14px; line-height: 1.55; }
  .svc-list {
    list-style: none; padding: 0; margin: 0 0 20px;
    display: flex; flex-direction: column; gap: 8px;
    flex: 1;
  }
  .svc-list li {
    font-size: 13px; line-height: 1.5; color: var(--svc-muted);
    position: relative; padding-left: 18px;
  }
  .svc-list li::before {
    content: ''; position: absolute; left: 0; top: 9px;
    width: 8px; height: 1px; background: var(--svc-accent);
  }
  .svc-cta { margin-top: auto; }
  .svc-cta .btn { width: 100%; justify-content: center; }

  /* Tablet: 2 columns */
  @media (max-width: 1080px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
    .service-card { padding: 32px 26px; }
    .svc-title, .svc-amount { font-size: 20px; }
  }
  /* Mobile: 1 column */
  @media (max-width: 560px) {
    .services-grid { grid-template-columns: 1fr; gap: 18px; }
    .service-card { padding: 28px 24px; }
  }

  /* Featured shimmer — lives in its own clipping wrapper so the card
     can keep overflow:visible for the badge pop. Finite (3 sweeps) so
     idle GPU stays cool. */
  .svc-shimmer {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    border-radius: inherit;
  }
  .svc-shimmer::after {
    content: '';
    position: absolute;
    inset: 0 -20% 0 -20%;
    background: linear-gradient(110deg,
                transparent 0%, transparent 35%,
                rgb(255 255 255 / 0.18) 50%,
                transparent 65%, transparent 100%);
    animation: featuredShimmer 10s ease-in-out 3;
    animation-delay: 4s;
  }
  @keyframes featuredShimmer {
    0%   { transform: translateX(-110%) skewX(-12deg); opacity: 0; }
    15%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { transform: translateX(110%) skewX(-12deg); opacity: 0; }
  }
}

/* -----------------------------------------------------------
 * 17. AUDIT DELIVERABLE
 * --------------------------------------------------------- */
@layer sections {
  .audit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 32px;
  }
  .audit-card {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--r-card);
    padding: 36px 32px;
    position: relative;
    overflow: hidden;
  }
  .audit-card .mock {
    margin-bottom: 28px;
    height: 180px;
    border-radius: var(--r-md);
    border: 1px solid var(--c-line);
    background: linear-gradient(135deg, var(--c-accent-soft) 0%, transparent 60%), var(--c-surface-2);
    position: relative;
    overflow: hidden;
  }
  .audit-card .mock-lines {
    position: absolute; left: 20px; right: 20px; top: 24px;
    display: flex; flex-direction: column; gap: 8px;
  }
  .audit-card .mock-lines span {
    display: block; height: 6px; border-radius: 3px;
    background: rgb(var(--c-ink-rgb) / 0.18);
  }
  .audit-card .mock-lines span:nth-child(1) { width: 40%; background: var(--c-accent); opacity: 0.6; }
  .audit-card .mock-lines span:nth-child(2) { width: 90%; }
  .audit-card .mock-lines span:nth-child(3) { width: 75%; }
  .audit-card .mock-lines span:nth-child(4) { width: 85%; }
  .audit-card .mock-lines span:nth-child(5) { width: 60%; }
  .audit-card .mock-lines span:nth-child(6) { width: 78%; }

  .audit-card.deck .mock { background: linear-gradient(135deg, var(--c-surface-2) 0%, var(--c-surface) 100%); }
  .audit-card.deck .mock-lines { top: 28px; }
  .audit-card.deck .mock-lines span:nth-child(1) { width: 30%; height: 10px; }
  .audit-card.deck .mock-lines span:nth-child(2) { width: 70%; height: 14px; background: rgb(var(--c-ink-rgb) / 0.25); }
  .audit-card.deck .mock-lines span:nth-child(3) { width: 55%; }

  .audit-card .label {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--c-accent);
    margin-bottom: 10px;
  }
  .audit-card h3 {
    font-family: var(--font-body); font-weight: 600;
    font-size: 20px; letter-spacing: -0.01em; line-height: 1.2;
    margin: 0 0 16px;
  }
  .audit-card ul {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 8px;
  }
  .audit-card ul li {
    font-size: 14px; color: var(--c-muted-strong);
    padding-left: 18px; position: relative;
  }
  .audit-card ul li::before {
    content: '·'; position: absolute; left: 0; top: -4px;
    color: var(--c-accent); font-weight: 700; font-size: 18px;
  }
  .audit-closing {
    margin-top: 40px;
    text-align: center;
    font-family: var(--font-display); font-weight: 900;
    font-size: clamp(20px, 2.4vw, 26px);
    letter-spacing: -0.02em; line-height: 1.3;
    max-width: 36ch; margin-left: auto; margin-right: auto;
    color: var(--c-ink);
  }
  @media (max-width: 820px) { .audit-grid { grid-template-columns: 1fr; } }
}

/* -----------------------------------------------------------
 * 18. PROCESS TIMELINE
 * --------------------------------------------------------- */
@layer sections {
  .process-timeline {
    position: relative;
    display: grid;
    gap: 32px;
    margin-top: 40px;
    list-style: none;
    padding: 0;
  }
  .process-timeline::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 12px;
    bottom: 12px;
    width: 1px;
    background: linear-gradient(180deg, var(--c-accent) 0%, var(--c-line) 100%);
    opacity: 0.4;
  }
  .process-step {
    position: relative;
    padding-left: 64px;
    min-height: 64px;
  }
  .process-step::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid var(--c-line);
    background: var(--c-bg);
    transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
  }
  .process-step.is-visible::before {
    background: var(--c-accent);
    border-color: var(--c-accent);
    box-shadow: 0 0 0 4px var(--c-accent-soft);
  }
  .process-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-accent);
    margin-bottom: 8px;
  }
  .process-step h3 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 22px;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin: 0 0 8px;
    color: var(--c-ink);
  }
  .process-step p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--c-muted-strong);
    margin: 0;
    max-width: 60ch;
  }

  @media (max-width: 720px) {
    .process-timeline { gap: 24px; }
    .process-step { padding-left: 52px; }
    .process-step::before { left: 4px; width: 18px; height: 18px; }
    .process-timeline::before { left: 13px; }
  }
}

/* -----------------------------------------------------------
 * 19. WHY MANA (+ compact layout via [data-layout="compact"])
 *
 * The compact layout is a reusable modifier — any section can opt
 * in by adding `data-layout="compact"`. The Why Mana section uses
 * it so the block fits within a single viewport on desktop.
 * --------------------------------------------------------- */
@layer sections {
  .caps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 56px;
  }
  .cap-card {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--r-card);
    padding: 28px;
    transition: border-color .2s ease, transform .2s ease;
  }
  .cap-card:hover,
  .cap-card:focus-within { border-color: var(--c-accent); transform: translateY(-2px); }
  .cap-icon { width: 40px; height: 40px; color: var(--c-accent); margin-bottom: 16px; }
  .cap-icon svg { width: 40px; height: 40px; }
  .cap-card h3 {
    font-size: 17px; font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0 0 10px;
    color: var(--c-ink);
  }
  .cap-card p { font-size: 14px; color: var(--c-muted-strong); line-height: 1.6; margin: 0; }

  @media (max-width: 920px) { .caps-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 560px) { .caps-grid { grid-template-columns: 1fr; } }

  .why-bottom {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 56px;
    align-items: start;
    margin-bottom: 40px;
  }
  .why-bullets { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
  .why-bullets li {
    font-size: 16px; line-height: 1.55; color: var(--c-ink);
    padding-left: 28px; position: relative;
  }
  .why-bullets li::before {
    content: ''; position: absolute; left: 0; top: 11px;
    width: 16px; height: 1px; background: var(--c-accent);
  }

  .tech-stack {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--r-card);
    padding: 28px;
  }
  .tech-label {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--c-accent); margin-bottom: 14px;
  }
  .tech-body { font-size: 15px; color: var(--c-muted-strong); margin: 0 0 18px; line-height: 1.6; }
  .tech-list { display: flex; flex-wrap: wrap; gap: 8px; }
  .tech-list span {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
    color: var(--c-muted-strong);
    padding: 6px 12px;
    border: 1px solid var(--c-line);
    border-radius: 999px;
    transition: border-color .15s, color .15s;
  }
  .tech-list span:hover { border-color: var(--c-accent); color: var(--c-ink); }

  .why-mini {
    margin-top: 0; padding-top: 32px;
    border-top: 1px solid var(--c-line);
    font-family: var(--font-display); font-weight: 900;
    font-size: clamp(20px, 2.4vw, 28px);
    letter-spacing: -0.02em; line-height: 1.3;
    max-width: 56ch;
  }
  @media (max-width: 920px) { .why-bottom { grid-template-columns: 1fr; gap: 32px; } }

  /* Compact layout modifier — opt in via data-layout="compact" on
     a section to shrink padding/font sizes so the block fits in
     one viewport. Reusable across sections. */
  [data-layout="compact"] { padding: 56px 0 64px; }
  [data-layout="compact"] h2 { margin-bottom: 8px; font-size: clamp(28px, 3.4vw, 38px); }
  [data-layout="compact"] .lede { margin-bottom: 20px; font-size: 15px; }
  [data-layout="compact"] .caps-grid { gap: 12px; margin-bottom: 20px; }
  [data-layout="compact"] .cap-card { padding: 14px 16px; }
  [data-layout="compact"] .cap-icon { width: 22px; height: 22px; margin-bottom: 8px; }
  [data-layout="compact"] .cap-icon svg { width: 22px; height: 22px; }
  [data-layout="compact"] .cap-card h3 { font-size: 14px; margin: 0 0 4px; }
  [data-layout="compact"] .cap-card p { font-size: 12px; line-height: 1.45; }
  [data-layout="compact"] .why-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 32px;
    align-items: center;
    margin-bottom: 20px;
  }
  [data-layout="compact"] .why-bullets { flex-direction: row; flex-wrap: wrap; gap: 6px 18px; flex: 1 1 380px; }
  [data-layout="compact"] .why-bullets li { font-size: 13px; padding-left: 18px; }
  [data-layout="compact"] .why-bullets li::before { width: 10px; top: 9px; }
  [data-layout="compact"] .tech-stack { padding: 12px 16px; flex: 1 1 280px; }
  [data-layout="compact"] .tech-label { font-size: 10px; letter-spacing: 0.14em; margin-bottom: 6px; }
  [data-layout="compact"] .tech-body { font-size: 12px; margin: 0 0 8px; line-height: 1.5; }
  [data-layout="compact"] .tech-list { gap: 6px; }
  [data-layout="compact"] .tech-list span { font-size: 10px; padding: 4px 9px; }
  [data-layout="compact"] .why-mini {
    padding-top: 18px;
    font-size: clamp(15px, 1.6vw, 18px);
    line-height: 1.4;
    margin: 0;
  }
  @media (max-width: 920px) {
    [data-layout="compact"] .why-bottom { flex-direction: column; align-items: stretch; gap: 18px; }
  }
}

/* -----------------------------------------------------------
 * 20. FINAL CTA
 * --------------------------------------------------------- */
@layer sections {
  .cta-final {
    text-align: center;
    padding: 144px 0 128px;
    position: relative;
    overflow: hidden;
    background:
      linear-gradient(180deg, transparent 0%, var(--c-accent-soft) 100%),
      var(--c-bg);
  }
  .cta-final .container { position: relative; z-index: 2; padding-top: 32px; }
  .cta-final h2 {
    font-size: clamp(32px, 4.8vw, 56px);
    max-width: 22ch; margin: 24px auto 18px;
    color: var(--c-ink); line-height: 1.1;
  }
  .cta-final .lede { color: var(--c-muted-strong); max-width: 56ch; margin: 0 auto 32px; font-size: 18px; }
  .cta-final .btn.primary { padding: 18px 32px; font-size: 15px; }
  .cta-final .micro {
    display: block; margin-top: 18px;
    font-family: var(--font-mono); font-size: 11px;
    color: var(--c-muted); letter-spacing: 0.06em;
  }
  .cta-final .deco {
    width: 480px; height: 480px;
    top: -120px; right: -160px;
    opacity: 0.05;
    color: var(--c-accent);
  }
}

/* -----------------------------------------------------------
 * 21. ANIMATIONS — scroll progress, reveals, view transitions
 * --------------------------------------------------------- */
@layer utilities {
  .scroll-progress {
    position: fixed; top: 0; left: 0; height: 2px;
    width: 0; background: var(--c-accent);
    z-index: 100; transition: width .12s ease;
  }
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
  .reveal.is-visible { opacity: 1; transform: translateY(0); }

  /* Staggered reveal delays — one entry per grid that uses .reveal */
  .services-grid .service-card.reveal:nth-child(1) { transition-delay: 0ms; }
  .services-grid .service-card.reveal:nth-child(2) { transition-delay: 80ms; }
  .services-grid .service-card.reveal:nth-child(3) { transition-delay: 160ms; }
  .services-grid .service-card.reveal:nth-child(4) { transition-delay: 240ms; }

  .caps-grid .cap-card.reveal:nth-child(1) { transition-delay: 0ms; }
  .caps-grid .cap-card.reveal:nth-child(2) { transition-delay: 60ms; }
  .caps-grid .cap-card.reveal:nth-child(3) { transition-delay: 120ms; }
  .caps-grid .cap-card.reveal:nth-child(4) { transition-delay: 180ms; }
  .caps-grid .cap-card.reveal:nth-child(5) { transition-delay: 240ms; }
  .caps-grid .cap-card.reveal:nth-child(6) { transition-delay: 300ms; }

  .problems-grid .problem-card.reveal:nth-child(1) { transition-delay: 0ms; }
  .problems-grid .problem-card.reveal:nth-child(2) { transition-delay: 60ms; }
  .problems-grid .problem-card.reveal:nth-child(3) { transition-delay: 120ms; }
  .problems-grid .problem-card.reveal:nth-child(4) { transition-delay: 180ms; }
  .problems-grid .problem-card.reveal:nth-child(5) { transition-delay: 240ms; }
  .problems-grid .problem-card.reveal:nth-child(6) { transition-delay: 300ms; }

  .process-timeline .process-step.reveal:nth-child(1) { transition-delay: 0ms; }
  .process-timeline .process-step.reveal:nth-child(2) { transition-delay: 90ms; }
  .process-timeline .process-step.reveal:nth-child(3) { transition-delay: 180ms; }
  .process-timeline .process-step.reveal:nth-child(4) { transition-delay: 270ms; }
  .process-timeline .process-step.reveal:nth-child(5) { transition-delay: 360ms; }

  /* View Transitions — used by the theme toggle for a radial wipe */
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
  }
  ::view-transition-old(root) { z-index: 1; }
  ::view-transition-new(root) { z-index: 2; }
}

/* -----------------------------------------------------------
 * 22. ACCESSIBILITY UTILITIES
 * --------------------------------------------------------- */
@layer utilities {
  .visually-hidden {
    position: absolute !important;
    width: 1px !important; height: 1px !important;
    padding: 0 !important; margin: -1px !important;
    overflow: hidden !important; clip: rect(0,0,0,0) !important;
    white-space: nowrap !important; border: 0 !important;
  }

  a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid var(--c-accent);
    outline-offset: 3px;
    border-radius: 4px;
  }

  .section-anchor { scroll-margin-top: 80px; }

  /* Live region for SR-only language status messages. */
  .sr-live {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
  }
}

/* -----------------------------------------------------------
 * 22b. SECTION HEADING PRE-SCRAMBLE GUARD
 * Hide section h2s until JS pre-scrambles them, so real text never
 * flashes before the resolve-to-real animation runs. Only applies
 * when JS is enabled AND motion is allowed.
 * --------------------------------------------------------- */
@layer utilities {
  @media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
    section h2[data-i18n]:not(.is-scramble-ready) { visibility: hidden; }
  }
}

/* -----------------------------------------------------------
 * 23. MOTION PREFERENCES (prefers-reduced-motion)
 * Last layer — overrides all motion regardless of source order.
 * --------------------------------------------------------- */
@layer overrides {
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .btn:hover, .service-card:hover, .cap-card:hover, .problem-card:hover { transform: none; }
    .topnav-wrap { transition: background 250ms ease; }
    .topnav-wrap.nav-hidden { transform: none; }
    .faq-answer { transition: none; }
    .process-step::before { transition: none; }
    .svc-shimmer::after { animation: none; opacity: 0; }
    .btn.primary, .nav-cta, .service-card { transition: none; }
  }
}
