/* Homepage header rules copied from index.html, including responsive overrides. */

    :root {
      --bg: #020617;
      --bg-2: #01040d;
      --panel: rgba(15, 23, 42, 0.72);
      --panel-strong: rgba(10, 19, 31, 0.92);
      --panel-soft: rgba(20, 35, 46, 0.58);
      --line: rgba(148, 163, 184, 0.17);
      --line-strong: rgba(52, 211, 153, 0.28);
      --text: #f8fafc;
      --muted: #a8b4c3;
      --dim: #667385;
      --accent: #34d399;
      --accent-2: #5eead4;
      --onboarding-primary-fill: rgba(52, 211, 153, 0.26);
      --onboarding-primary-fill-pressed: rgba(52, 211, 153, 0.29);
      --onboarding-secondary-fill: rgba(255, 255, 255, 0.09);
      --onboarding-secondary-fill-pressed: rgba(255, 255, 255, 0.12);
      --danger: #fb7185;
      --amber: #fbbf24;
      --radius: 24px;
      --max: 1120px;
      color-scheme: dark;
    }

    .site-header {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 80;
      padding: 10px 0 8px;
      background: transparent;
      border-bottom: 0;
    }

    .nav {
      width: min(1240px, calc(100% - 84px));
      min-height: 64px;
      margin: 0 auto;
      padding: 0 18px 0 22px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      border: 1px solid rgba(52, 211, 153, 0.16);
      border-radius: 22px;
      background: rgba(3, 18, 12, 0.88);
      box-shadow:
        0 22px 60px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
      backdrop-filter: blur(18px) saturate(120%);
      -webkit-backdrop-filter: blur(18px) saturate(120%);
    }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      flex: 0 1 auto;
      min-width: 0;
      text-decoration: none;
      font-weight: 600;
      letter-spacing: -0.01em;
      font-size: 20px;
    }

    .brand-mark {
      width: 34px;
      height: 34px;
      border-radius: 10px;
      display: block;
      flex: 0 0 auto;
      object-fit: contain;
      object-position: center;
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 22px;
      color: var(--muted);
      font-size: 13px;
      font-weight: 600;
    }

    .nav-links a {
      text-decoration: none;
      transition: color 160ms ease;
    }

    .nav-links a:not(.nav-cta) {
      color: inherit;
    }

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

    .button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      min-height: 38px;
      padding: 0 14px;
      border-radius: 999px;
      border: 1px solid rgba(52, 211, 153, 0.28);
      text-decoration: none;
      font-size: 14px;
      font-weight: 700;
      line-height: 1;
      color: var(--accent);
      background: rgba(52, 211, 153, 0.12);
      transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
      white-space: nowrap;
    }

    .button:hover {
      transform: translateY(-1px);
      border-color: rgba(52, 211, 153, 0.42);
      background: rgba(52, 211, 153, 0.17);
    }

    .button-primary {
      color: var(--accent);
    }

    .button svg {
      width: 14px;
      height: 14px;
      stroke: currentColor;
      stroke-width: 2.2;
      stroke-linecap: round;
      stroke-linejoin: round;
      fill: none;
    }

    .nav-cta {
      flex: 0 0 auto;
      min-height: 32px;
      padding: 0 12px;
      font-size: 12px;
    }

    @media (max-width: 720px) {

      .site-header {
        padding: 10px 14px 8px;
      }

      .nav {
        width: 100%;
        margin: 0;
        min-height: 62px;
        padding: 0 12px 0 14px;
        gap: 10px;
      }

      .nav-links {
        display: flex;
        flex: 0 0 auto;
        gap: 0;
        margin-left: auto;
        min-width: 0;
        width: auto;
      }

      .nav-links a:not(.nav-cta) {
        display: none;
      }

      .nav-cta {
        width: auto;
        min-height: 38px;
        padding: 0 13px;
        font-size: 13px;
      }

      .brand span {
        display: inline;
        overflow: hidden;
        color: var(--text);
        font-size: 20px;
        font-weight: 800;
        line-height: 1;
        letter-spacing: 0;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .brand {
        gap: 8px;
      }

      .brand-mark {
        width: 40px;
        height: 40px;
        border-radius: 12px;
      }

      .nav-cta svg {
        width: 15px;
        height: 15px;
      }
    }

    @media (max-width: 980px) {
      :root {
        --mobile-page-gutter: clamp(14px, 4.1vw, 18px);
        --mobile-nav-height: 58px;
        --mobile-nav-offset: calc(var(--mobile-nav-height) + max(8px, env(safe-area-inset-top)) + 22px);
        --mobile-section-gap: clamp(76px, 22vw, 94px);
        --mobile-stage-gap: clamp(64px, 18vw, 82px);
        --mobile-proof-to-journey-gap: clamp(58px, 16.5vw, 70px);
        --mobile-journey-to-principles-gap: clamp(50px, 14vw, 60px);
        /* Keep a real travel lane beside the stage cards at every mobile and
           intermediate width. This is deliberately proportional rather than
           capped, because the road and rider share it with the fluid cards. */
        --mobile-road-reserve: clamp(108px, 18vw, 160px);
        --mobile-rider-height: clamp(108px, 16vw, 134px);
        --mobile-journey-shift: 6px;
      }

      .site-header {
        padding: max(8px, env(safe-area-inset-top)) 8px 6px;
        background: linear-gradient(180deg, rgba(0, 3, 24, 0.98) 0%, rgba(0, 3, 24, 0.9) 76%, transparent 100%);
      }

      .nav {
        width: 100%;
        margin: 0;
        min-height: var(--mobile-nav-height);
        padding: 0 10px 0 12px;
        border-radius: 20px;
        border-color: rgba(52, 211, 153, 0.2);
        background: rgba(2, 15, 17, 0.94);
        box-shadow: 0 14px 42px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
      }

      .brand-mark {
        width: 36px;
        height: 36px;
      }

      .brand span {
        font-size: 19px;
      }

      .nav-cta {
        min-height: 38px;
        padding: 0 12px;
        border-color: rgba(52, 211, 153, 0.48);
        background: rgba(13, 88, 66, 0.24);
      }

    }

    @media (max-width: 340px) {
      :root {
        --mobile-page-gutter: 12px;
        --mobile-road-reserve: 108px;
        --mobile-section-gap: 70px;
        --mobile-stage-gap: 60px;
      }

      .nav {
        padding-left: 9px;
      }

      .brand {
        gap: 5px;
      }

      .brand-mark {
        width: 33px;
        height: 33px;
      }

      .brand span {
        font-size: 17px;
      }

      .nav-cta {
        padding: 0 10px;
        font-size: 12px;
      }
    }

    .nav-links a.nav-studios { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }

    .nav-links a.nav-studios:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 4px; border-radius: 4px; }

    @media (max-width: 980px) { .nav-links a.nav-studios { margin-right: 12px; font-size: 12px; } }

    @media (max-width: 359px) { .nav-links a.nav-studios { margin-right: 8px; font-size: 10px; } }

@media (max-width: 980px) {
  .nav-links a.nav-home { margin-right: 8px; width: 64px; white-space: normal; font-size: 11px; line-height: 1.2; }
}
@media (max-width: 359px) {
  .studio-page .nav { gap: 4px; }
  .studio-page .nav-links a.nav-home { margin-right: 4px; }
  .studio-page .nav-cta { padding-inline: 8px; }
  .studio-page .nav-cta svg { display: none; }
}
