/* ============================================================
   Siren Agents — shared.css
   The shared layer for every page: font, reset, design tokens,
   base styles, container, header/nav, theme toggle, buttons,
   eyebrow, footer, and the logo line-draw animation.
   Page-specific styles stay inline in each page.
   Extracted from index.html on 2026-07-19.
   ============================================================ */
    @font-face {
      font-family: 'Inter';
      font-style: normal;
      font-weight: 100 900;
      font-display: swap;
      src: url('fonts/InterVariable.woff2') format('woff2');
    }

    *, *::before, *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    :root {
      color-scheme: light;
      --sa-font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
      /* Semantic type roles. Page-specific compositions may tune leading only. */
      --font-weight-regular: 400;
      --font-weight-medium: 500;
      --font-weight-semibold: 600;
      --font-weight-bold: 700;
      --font-weight-black: 800;
      --type-page-hero-size: clamp(38px, 5.2vw, 64px);
      --type-page-hero-weight: var(--font-weight-bold);
      --type-section-heading-size: clamp(32px, 4.4vw, 52px);
      --type-section-heading-weight: var(--font-weight-bold);
      --type-artifact-title-size: clamp(25px, 2.4vw, 34px);
      --type-artifact-title-weight: var(--font-weight-bold);
      --type-body-size: 16px;
      --type-body-weight: var(--font-weight-regular);
      --type-body-leading: 1.7;
      --line-height-base: 1.5;
      --type-ui-label-size: 12px;
      --type-ui-label-weight: var(--font-weight-semibold);
      --type-eyebrow-size: 13px;
      --type-eyebrow-weight: var(--font-weight-semibold);
      --type-eyebrow-tracking: 0.16em;
      --sa-heading-weight: var(--font-weight-bold);
      --sa-heading-tracking: 0;
      --sa-hero-title-size: var(--type-page-hero-size);
      --sa-section-title-size: var(--type-section-heading-size);
      --sa-closing-cta-size: clamp(24px, 3vw, 36px);
      /* Spacing tiers: compact UI through full section rhythm. */
      --space-1: 4px;
      --space-2: 8px;
      --space-3: 12px;
      --space-4: 16px;
      --space-5: 24px;
      --space-6: 32px;
      --space-7: 48px;
      --space-8: 64px;
      --space-9: 88px;
      --space-10: 112px;
      --space-section: var(--space-9);
      --space-section-compact: var(--space-8);
      /* Radius tiers. Illustration geometry may remain bespoke. */
      --radius-small: 6px;
      --radius-medium: 12px;
      --radius-large: 18px;
      --radius-panel: 22px;
      --radius-pill: 999px;
      --radius-circle: 50%;
      --motion-ease: cubic-bezier(0.16, 1, 0.3, 1);
      --motion-ease-linear: linear;
      --motion-short: 180ms;
      --motion-medium: 360ms;
      --motion-long: 720ms;
      --motion-sequence: 1200ms;
      --motion-stagger: 120ms;
      /* Ember ramp: ordered progression only, never body text or UI chrome.
         Theme-independent, so it sits here rather than in either theme block.
         Stops are picked in ascending order and the light selection sits one
         stop deeper than dark. Stop 4 is --sa-accent. */
      --sa-ember-1: #6E3310;
      --sa-ember-2: #8A4214;
      --sa-ember-3: #A84E16;
      --sa-ember-4: #C95C1A;
      --sa-ember-5: #DB6E26;
      --sa-ember-6: #E88234;
      --sa-ember-7: #F5963F;
    }

    :root[data-theme="dark"] {
      color-scheme: dark;
      --sa-bg: #1A1008;
      --sa-surface: #2C1E10;
      --sa-surface-2: #3D2814;
      --sa-accent: #C95C1A;
      --sa-accent-dim: #8C3D10;
      --sa-functional-accent: #E27A3C;
      --sa-cta-bg: #963F0B;
      --sa-cta-border: #E27A3C;
      --sa-cta-text: #F0E8D8;
      --sa-money: #7FBF97;
      --sa-confirm: #6B8C3D;
      --sa-text: #F0E8D8;
      --sa-muted: #9A8778;
      --sa-border: #3D2814;
      --bg-band: #211509;
      --bg-card: #342314;
      --bg-card-soft: #2A1B0F;
      --border-soft: rgba(154, 135, 120, 0.22);
      --border-faint: rgba(154, 135, 120, 0.16);
      --text-soft: rgba(240, 232, 216, 0.78);
      --muted-soft: rgba(154, 135, 120, 0.88);
      --sa-nav-bg: rgba(26, 16, 8, 0.9);
      --sa-body-glow: rgba(201, 92, 26, 0.12);
      --sa-grain-opacity: 0.025;
      --sa-logo-middle: #F0E8D8;
      --sa-logo-muted: #9A8778;
      --sa-logo-on-bg-muted: #9A8778;
      --sa-logo-on-bg-middle: #F0E8D8;
      --sa-button-text: #F0E8D8;
      --sa-focus-ring: #F08A48;
      --hero-ray-muted: var(--sa-logo-muted);
      --hero-ray-middle: var(--sa-logo-middle);
      --workflow-spine: rgba(201, 92, 26, 0.16);
      --workflow-spine-active: rgba(201, 92, 26, 0.34);
      --workflow-active-shadow: 0 0 0 6px rgba(201, 92, 26, 0.12), 0 0 18px rgba(201, 92, 26, 0.36);
      --workflow-decision-shadow: 0 0 0 5px rgba(232, 130, 52, 0.14), 0 0 18px rgba(232, 130, 52, 0.36);
      --workflow-pulse-start: 0 0 0 5px rgba(201, 92, 26, 0.08), 0 0 14px rgba(201, 92, 26, 0.24);
      --workflow-pulse-mid: 0 0 0 8px rgba(201, 92, 26, 0.16), 0 0 22px rgba(201, 92, 26, 0.42);
      --service-card-border: rgba(154, 135, 120, 0.16);
      --service-card-border-hover: rgba(201, 92, 26, 0.26);
      --service-glow: rgba(201, 92, 26, 0.055);
      --about-photo-ring: rgba(201, 92, 26, 0.06);
      --text-link-border: rgba(201, 92, 26, 0.55);
      --input-bg: rgba(26, 16, 8, 0.54);
      --input-border: rgba(154, 135, 120, 0.25);
      --input-placeholder: rgba(154, 135, 120, 0.72);
      --input-focus-shadow: rgba(201, 92, 26, 0.12);
      --hp-shell: #241508;
      --hp-bezel: #6B5040;
      --hp-shadow: inset 0 0 0 1px rgba(240, 232, 216, 0.16), 0 8px 18px rgba(0, 0, 0, 0.34), 0 30px 70px rgba(0, 0, 0, 0.5);
      --hp-glass-bezel: #090706;
      --hp-glass: rgba(44, 30, 16, 0.72);
      --hp-glass-border: rgba(240, 232, 216, 0.18);
      --hp-glass-shadow: rgba(0, 0, 0, 0.24);
      --hp-home: rgba(240, 232, 216, 0.78);
      --hp-soft-bg: rgba(240, 232, 216, 0.04);
      --hp-email-text: rgba(240, 232, 216, 0.7);
      --about-divider: rgba(154, 135, 120, 0.18);
      --about-proof-border: rgba(154, 135, 120, 0.16);
      --about-proof-border-soft: rgba(154, 135, 120, 0.14);
    }

    :root:not([data-theme]),
    :root[data-theme="light"] {
      --sa-bg: #F0E8D8;
      --sa-surface: #E3D3BC;
      --sa-surface-2: #D2BA9C;
      --sa-accent: #C95C1A;
      --sa-accent-dim: #8C3D10;
      --sa-functional-accent: #80380E;
      --sa-cta-bg: #963F0B;
      --sa-cta-border: #963F0B;
      --sa-cta-text: #F0E8D8;
      --sa-money: #2E6B4F;
      --sa-confirm: #4F6D2D;
      --sa-text: #1A1008;
      --sa-muted: #6B5040;
      --sa-border: #D2BA9C;
      --bg-band: #E8DAC6;
      --bg-card: #F7EFDF;
      --bg-card-soft: #EFE2CD;
      --border-soft: rgba(107, 80, 64, 0.22);
      --border-faint: rgba(107, 80, 64, 0.14);
      --text-soft: rgba(26, 16, 8, 0.74);
      --muted-soft: rgba(107, 80, 64, 0.82);
      --sa-nav-bg: rgba(240, 232, 216, 0.88);
      --sa-body-glow: rgba(201, 92, 26, 0.1);
      --sa-grain-opacity: 0.018;
      --sa-logo-middle: rgba(26, 16, 8, 0.3);
      --sa-logo-muted: #6B5040;
      --sa-logo-on-bg-muted: #6B5040;
      --sa-logo-on-bg-middle: rgba(26, 16, 8, 0.3);
      --sa-button-text: #F0E8D8;
      --sa-focus-ring: #80380E;
      --hero-ray-muted: var(--sa-logo-muted);
      --hero-ray-middle: var(--sa-logo-middle);
      --workflow-spine: rgba(201, 92, 26, 0.2);
      --workflow-spine-active: rgba(201, 92, 26, 0.42);
      --workflow-active-shadow: 0 0 0 6px rgba(201, 92, 26, 0.14), 0 0 18px rgba(201, 92, 26, 0.28);
      --workflow-decision-shadow: 0 0 0 5px rgba(232, 130, 52, 0.16), 0 0 18px rgba(232, 130, 52, 0.28);
      --workflow-pulse-start: 0 0 0 5px rgba(201, 92, 26, 0.08), 0 0 14px rgba(201, 92, 26, 0.18);
      --workflow-pulse-mid: 0 0 0 8px rgba(201, 92, 26, 0.14), 0 0 22px rgba(201, 92, 26, 0.3);
      --service-card-border: rgba(107, 80, 64, 0.16);
      --service-card-border-hover: rgba(201, 92, 26, 0.34);
      --service-glow: rgba(201, 92, 26, 0.055);
      --about-photo-ring: rgba(201, 92, 26, 0.12);
      --text-link-border: rgba(201, 92, 26, 0.55);
      --input-bg: rgba(255, 250, 240, 0.68);
      --input-border: rgba(107, 80, 64, 0.24);
      --input-placeholder: rgba(107, 80, 64, 0.58);
      --input-focus-shadow: rgba(201, 92, 26, 0.14);
      --hp-shell: #CDB390;
      --hp-bezel: #6B5040;
      --hp-shadow: inset 0 0 0 1px rgba(255, 250, 240, 0.28), 0 8px 18px rgba(70, 42, 18, 0.18), 0 28px 55px rgba(70, 42, 18, 0.24);
      --hp-glass-bezel: #1A1008;
      --hp-glass: rgba(247, 239, 223, 0.72);
      --hp-glass-border: rgba(255, 250, 240, 0.58);
      --hp-glass-shadow: rgba(70, 42, 18, 0.14);
      --hp-home: rgba(26, 16, 8, 0.78);
      --hp-soft-bg: rgba(26, 16, 8, 0.04);
      --hp-email-text: rgba(26, 16, 8, 0.7);
      --about-divider: rgba(107, 80, 64, 0.18);
      --about-proof-border: rgba(107, 80, 64, 0.16);
      --about-proof-border-soft: rgba(107, 80, 64, 0.14);
    }

    html {
      scroll-behavior: smooth;
    }

    section[id] {
      scroll-margin-top: 104px;
    }

    body {
      background:
        radial-gradient(circle at 50% -10%, var(--sa-body-glow), transparent 36rem),
        var(--sa-bg);
      color: var(--sa-text);
      font-family: var(--sa-font);
      font-size: var(--type-body-size);
      font-weight: var(--type-body-weight);
      line-height: var(--line-height-base);
      -webkit-font-smoothing: antialiased;
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      z-index: 999;
      pointer-events: none;
      opacity: var(--sa-grain-opacity);
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23grain)'/%3E%3C/svg%3E");
      background-size: 256px 256px;
    }

    /* Canonical heading treatment, sourced from the home page. */
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
      font-family: var(--sa-font);
      font-weight: var(--sa-heading-weight);
      letter-spacing: var(--sa-heading-tracking);
    }

    .hero h1 {
      font-size: var(--type-page-hero-size);
      font-weight: var(--type-page-hero-weight);
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    :where(a, button, input, textarea, select, [tabindex]):focus-visible {
      outline: 3px solid var(--sa-focus-ring) !important;
      outline-offset: 4px !important;
      box-shadow: none !important;
    }

    /* Content is visible unless JS explicitly arms reveal motion. */
    html:not(.reveal-ready) .reveal,
    html:not(.reveal-ready) .reveal-stagger > * {
      opacity: 1 !important;
      transform: none !important;
    }

    .container {
      width: min(1120px, calc(100% - 48px));
      margin: 0 auto;
    }

    .site-nav {
      position: sticky;
      top: 0;
      z-index: 50;
      background: var(--sa-nav-bg);
      border-bottom: 1px solid var(--border-faint);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
    }

    .nav-inner {
      height: 76px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }

    .logo {
      display: inline-flex;
      align-items: center;
      width: 200px;
      height: 76px;
      flex: 0 0 auto;
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 28px;
    }

    .mobile-nav-links {
      display: none;
    }

    .btn-label-mobile {
      display: none;
    }

    .nav-actions {
      display: flex;
      align-items: center;
      gap: 12px;
      flex: 0 0 auto;
    }

    .nav-link {
      color: var(--sa-muted);
      font-size: 13px;
      font-weight: 500;
    }

    .nav-link:hover {
      color: var(--sa-text);
    }

    .theme-toggle {
      width: 38px;
      height: 38px;
      border: 1px solid var(--border-soft);
      border-radius: var(--radius-circle);
      background: transparent;
      color: var(--sa-text);
      display: inline-grid;
      place-items: center;
      flex: 0 0 auto;
      cursor: pointer;
      transition: border-color var(--motion-short) var(--motion-ease), background var(--motion-short) var(--motion-ease), color var(--motion-short) var(--motion-ease);
    }

    .theme-toggle:hover {
      border-color: rgba(240, 232, 216, 0.38);
      background: rgba(240, 232, 216, 0.04);
    }

    :root[data-theme="light"] .theme-toggle:hover {
      border-color: rgba(107, 80, 64, 0.34);
      background: rgba(107, 80, 64, 0.06);
    }

    .theme-toggle:focus-visible {
      outline: 0;
      box-shadow: 0 0 0 3px var(--sa-focus-ring);
    }

    .theme-toggle svg {
      width: 17px;
      height: 17px;
      stroke: currentColor;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
      fill: none;
    }

    .theme-icon-sun {
      display: none;
    }

    :root[data-theme="light"] .theme-icon-moon {
      display: none;
    }

    :root[data-theme="light"] .theme-icon-sun {
      display: block;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 44px;
      padding: 12px 24px;
      border-radius: var(--radius-pill);
      border: 1px solid transparent;
      font-family: var(--sa-font);
      font-size: 14px;
      font-weight: var(--type-ui-label-weight);
      letter-spacing: 0;
      line-height: 1;
      transition: opacity var(--motion-short) var(--motion-ease), border-color var(--motion-short) var(--motion-ease), background var(--motion-short) var(--motion-ease);
    }

    .btn:hover {
      color: inherit;
      opacity: 0.84;
    }

    .btn-primary {
      background: var(--sa-cta-bg);
      border-color: var(--sa-cta-border);
      color: var(--sa-cta-text);
    }

    .btn-outline {
      background: transparent;
      color: var(--sa-text);
      border-color: var(--border-soft);
    }

    .btn-outline:hover {
      border-color: rgba(240, 232, 216, 0.38);
      opacity: 1;
    }

    .btn-small {
      min-height: 38px;
      padding: 10px 18px;
      font-size: 12px;
    }

    .eyebrow {
      color: var(--sa-functional-accent);
      font-size: var(--type-eyebrow-size);
      font-weight: var(--type-eyebrow-weight);
      letter-spacing: var(--type-eyebrow-tracking);
      line-height: 1.4;
      text-transform: uppercase;
      margin-bottom: 16px;
    }

    /* ---- Shared questions / FAQ section ---- */
    section.questions-section {
      padding: 88px 0;
      border-top: 0;
      background: transparent;
    }

    .questions-section .questions-heading {
      display: block;
      max-width: 760px;
      margin: 0 auto 42px;
      text-align: center;
    }

    .questions-section .questions-heading h2 {
      max-width: none;
      margin-top: 0;
      font-size: var(--type-section-heading-size);
      font-weight: var(--type-section-heading-weight);
      line-height: 1.08;
      letter-spacing: 0;
    }

    .questions-section .questions-intro {
      max-width: 700px;
      margin: 16px auto 0;
      padding-bottom: 0;
      color: var(--text-soft);
      font-size: 17px;
      line-height: 1.7;
    }

    .questions-section .faq-list {
      max-width: 860px;
      margin: 0 auto;
      border-top: 1px solid var(--border-soft);
    }

    .questions-section .faq-item {
      border-bottom: 1px solid var(--border-soft);
      overflow: hidden;
      transition: border-color var(--motion-short) var(--motion-ease);
    }

    .questions-section .faq-item:hover,
    .questions-section .faq-item.is-open {
      border-color: var(--sa-accent);
    }

    .questions-section .faq-question {
      appearance: none;
      cursor: pointer;
      width: 100%;
      padding: 26px 0;
      border: 0;
      background: transparent;
      color: var(--sa-text);
      font: inherit;
      font-size: clamp(17px, 2vw, 20px);
      font-weight: 600;
      text-align: left;
      transition: color var(--motion-short) var(--motion-ease);
    }

    .questions-section .faq-question:hover,
    .questions-section .faq-item.is-open .faq-question {
      color: var(--sa-functional-accent);
    }

    .questions-section .faq-question:focus-visible {
      outline: 2px solid var(--sa-focus-ring);
      outline-offset: 6px;
    }

    .questions-section .faq-answer {
      max-height: none;
      opacity: 1;
      overflow: visible;
      transition: max-height var(--motion-medium) var(--motion-ease), opacity var(--motion-medium) var(--motion-ease);
    }

    .faq-ready .questions-section .faq-answer {
      max-height: 0;
      opacity: 0;
      overflow: hidden;
    }

    .faq-ready .questions-section .faq-item.is-open .faq-answer {
      max-height: 480px;
      opacity: 1;
    }

    .questions-section .faq-answer p {
      max-width: 720px;
      margin: 0;
      padding: 0 0 28px;
      color: var(--text-soft);
      font-size: 16px;
      line-height: 1.7;
    }

    .questions-section .questions-heading.reveal,
    .questions-section .faq-list.reveal {
      opacity: 0;
      transform: translateY(38px) scale(0.98);
      transition: opacity var(--motion-long) var(--motion-ease), transform var(--motion-long) var(--motion-ease);
      will-change: opacity, transform;
    }

    .questions-section .questions-heading.reveal.is-visible,
    .questions-section .faq-list.reveal.is-visible {
      opacity: 1;
      transform: translateY(0) scale(1);
    }

    @media (max-width: 760px) {
      section.questions-section {
        padding: 64px 0;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .questions-section .questions-heading.reveal,
      .questions-section .faq-list.reveal,
      .questions-section .faq-answer {
        transition: none;
      }

      .questions-section .questions-heading.reveal,
      .questions-section .faq-list.reveal {
        opacity: 1;
        transform: none;
      }
    }

    /* ---- Footer ---- */
    .site-footer {
      border-top: 1px solid var(--border-faint);
      padding: 32px 0;
      color: var(--sa-muted);
      font-size: 13px;
    }

    .site-footer {
      --sa-text: #F0E8D8;
      --sa-muted: #9A8778;
      --sa-border: #3D2814;
      --text-soft: rgba(240, 232, 216, 0.78);
      --muted-soft: rgba(154, 135, 120, 0.88);
      --border-soft: rgba(154, 135, 120, 0.22);
      --border-faint: rgba(154, 135, 120, 0.16);
      --input-bg: rgba(26, 16, 8, 0.54);
      --input-border: rgba(154, 135, 120, 0.25);
      --input-placeholder: #9A8778;
      --input-focus-shadow: rgba(201, 92, 26, 0.12);
      --sa-logo-middle: #F0E8D8;
      --sa-logo-muted: #9A8778;
      --sa-functional-accent: #E27A3C;
      --sa-cta-border: #E27A3C;
      --sa-focus-ring: #F08A48;
      background: linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.12)), #1A1008;
      color: var(--sa-text);
    }

    .site-footer {
      border-top: 0;
    }

    .footer-inner {
      display: flex;
      justify-content: space-between;
      gap: 24px;
      flex-wrap: wrap;
    }

    @media (max-width: 760px) {
      .container {
        width: min(100% - 32px, 1120px);
      }

      .nav-inner {
        height: auto;
        padding: 14px 0;
        align-items: flex-start;
        gap: 12px;
      }

      .logo {
        width: 154px;
        height: 58px;
      }

      .nav-links {
        display: none;
      }

      .nav-actions {
        gap: 8px;
      }

      .theme-toggle {
        width: 34px;
        height: 34px;
      }

      .btn-small {
        min-height: 34px;
        padding: 9px 12px;
        font-size: 11px;
      }

      .nav-cta .btn-label-desktop {
        display: none;
      }

      .nav-cta .btn-label-mobile {
        display: inline;
      }
    }

    /* ── Logo line-draw "active icon" (from v2) ── */
    .logo-line-1 {
      stroke: var(--sa-logo-muted);
    }

    .logo-line-2 {
      stroke: var(--sa-logo-middle);
    }

    .logo-line-3 {
      stroke: var(--sa-accent);
    }

    .logo-dot,
    .logo-word {
      fill: var(--sa-accent);
    }

    .logo-subword {
      fill: var(--sa-logo-muted);
    }

    /* upper diagonal — draws first */
    #logoLink .logo-line-1,
    .logo-replay .logo-line-1 {
      stroke-dasharray: 52;
      stroke-dashoffset: 52;
      animation: lineDrawShort var(--motion-medium) var(--motion-short) var(--motion-ease) forwards;
    }
    /* lower diagonal — fires after upper finishes */
    #logoLink .logo-line-3,
    .logo-replay .logo-line-3 {
      stroke-dasharray: 52;
      stroke-dashoffset: 52;
      animation: lineDrawShort var(--motion-medium) 0.85s var(--motion-ease) forwards;
    }
    /* horizontal — brief pause, then shoots */
    #logoLink .logo-line-2,
    .logo-replay .logo-line-2 {
      stroke-dasharray: 128;
      stroke-dashoffset: 128;
      animation: lineDrawLong var(--motion-sequence) 1.55s var(--motion-ease) forwards;
    }
    @keyframes lineDrawShort {
      to { stroke-dashoffset: 0; }
    }
    @keyframes lineDrawLong {
      to { stroke-dashoffset: 0; }
    }

    .footer-brand {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .footer-copy-logo {
      color: var(--sa-muted);
    }

    .footer-meta {
      display: flex;
      flex-direction: column;
      gap: 6px;
      align-items: flex-end;
      text-align: right;
    }

    .footer-tagline {
      color: var(--sa-muted);
      font-size: 13px;
      line-height: 1.5;
      max-width: 320px;
    }

    .footer-inner {
      display: grid;
      grid-template-columns: 1.3fr 0.9fr 1.2fr;
      gap: 36px;
      align-items: start;
    }

    .footer-nav {
      display: flex;
      flex-direction: column;
      gap: 11px;
    }

    .footer-nav a {
      color: var(--sa-muted);
      font-size: 13.5px;
      transition: color var(--motion-short) var(--motion-ease);
    }

    .footer-nav a:hover {
      color: var(--sa-text);
    }

    .footer-cta {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      margin-top: 4px;
      color: var(--sa-functional-accent);
      font-size: 13.5px;
      font-weight: var(--type-ui-label-weight);
      border-bottom: 1px solid var(--text-link-border);
      padding-bottom: 1px;
      width: fit-content;
      align-self: flex-end;
      transition: opacity var(--motion-short) var(--motion-ease);
    }

    .footer-cta:hover {
      opacity: 0.82;
    }

    @media (max-width: 980px) {
      .footer-inner {
        grid-template-columns: 1fr 1fr;
      }

      .footer-meta {
        align-items: flex-start;
        text-align: left;
      }

      .footer-cta {
        align-self: flex-start;
      }
    }

    @media (max-width: 600px) {
      .footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
      }
    }

    /* ---- Nav: scroll progress + scrolled state + active link ---- */
    .scroll-progress {
      position: absolute;
      left: 0;
      bottom: -1px;
      height: 2px;
      width: 100%;
      transform: scaleX(0);
      transform-origin: 0 50%;
      background: linear-gradient(90deg, var(--sa-accent-dim), var(--sa-accent));
      z-index: 51;
      will-change: transform;
    }
    .site-nav {
      transition: box-shadow var(--motion-medium) var(--motion-ease), background var(--motion-medium) var(--motion-ease);
    }
    .site-nav.is-scrolled {
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    }
    .nav-link {
      position: relative;
      transition: color var(--motion-short) var(--motion-ease);
      padding-bottom: 2px;
    }
    .nav-link::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -2px;
      height: 1.5px;
      width: 100%;
      background: var(--sa-accent);
      transform: scaleX(0);
      transform-origin: 0 50%;
      transition: transform var(--motion-medium) var(--motion-ease);
    }
    .nav-link:hover::after,
    .nav-link.is-active::after { transform: scaleX(1); }
    .nav-link.is-active { color: var(--sa-text); }

    /* ---- Primary button: subtle lift + sheen ---- */
    .btn-primary {
      position: relative;
      overflow: hidden;
      transition: opacity var(--motion-short) var(--motion-ease), transform var(--motion-short) var(--motion-ease), box-shadow var(--motion-short) var(--motion-ease);
    }
    .btn-primary:hover {
      opacity: 1;
      transform: translateY(-1px);
      box-shadow: 0 10px 24px rgba(201, 92, 26, 0.28);
    }
    .btn-primary::after {
      content: "";
      position: absolute;
      top: 0;
      left: -120%;
      width: 60%;
      height: 100%;
      background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.22), transparent);
      transform: skewX(-18deg);
      transition: left var(--motion-long) var(--motion-ease);
      pointer-events: none;
    }
    .btn-primary:hover::after { left: 130%; }

    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
      }
      .logo-line {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        stroke-dashoffset: 0 !important;
      }
      .btn-primary::after { display: none; }
      .scroll-progress { transition: none; }
    }

    @media (max-width: 920px) {
      .nav-inner {
        height: auto;
        min-height: 64px;
        padding: 8px 0;
        gap: 10px;
      }

      .logo {
        width: 122px;
        height: 48px;
      }

      .nav-links {
        display: none;
      }

      .nav-actions {
        gap: 7px;
      }

      .btn-small {
        min-height: 34px;
        padding: 9px 12px;
        font-size: 11px;
      }

      .mobile-nav-links {
        display: flex;
        gap: 22px;
        width: 100%;
        overflow-x: auto;
        padding: 0 max(16px, calc((100vw - 1120px) / 2)) 10px;
        color: var(--sa-muted);
        font-size: 12px;
        font-weight: 600;
        white-space: nowrap;
        scrollbar-width: none;
      }

      .mobile-nav-links::-webkit-scrollbar {
        display: none;
      }

      .mobile-nav-links a {
        position: relative;
        flex: 0 0 auto;
        padding-bottom: 4px;
      }

      .mobile-nav-links a[aria-current="page"] {
        color: var(--sa-text);
      }

      .mobile-nav-links a[aria-current="page"]::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        height: 2px;
        background: var(--sa-accent);
      }

      .mobile-nav-links::after {
        content: "";
        position: sticky;
        right: 0;
        width: 18px;
        flex: 0 0 18px;
        margin-left: -18px;
        background: linear-gradient(90deg, transparent, var(--sa-nav-bg));
        pointer-events: none;
      }
    }

    @media (max-width: 380px) {
      .container {
        width: calc(100% - 32px);
      }

      .logo {
        width: 106px;
      }

      .theme-toggle {
        width: 32px;
        height: 32px;
      }

      .btn-small {
        padding-inline: 10px;
      }
    }
