/* Shared mobile navigation and hero spacing across the marketing pages. */
@media (max-width: 960px) {
  :root { --mobile-header-height: calc(64px + env(safe-area-inset-top, 0px)); }
  html { scroll-padding-top: calc(var(--mobile-header-height) + 20px); }
  .site-header, .site-header.scrolled, .site-header.menu-visible {
    background: #0a182c;
    border-bottom: 1px solid rgba(190, 215, 230, .18);
  }
  .header-inner {
    height: var(--mobile-header-height);
    padding: env(safe-area-inset-top, 0px) 20px 0;
    gap: 16px;
  }
  .desktop-nav, .service-page .service-desktop-nav, .header-cta,
  .service-header-actions .service-nav-button { display: none; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: flex; flex: none; width: 44px; height: 44px; }
  .mobile-nav {
    display: flex;
    position: fixed;
    top: var(--mobile-header-height);
    left: 0;
    right: 0;
    height: calc(100dvh - var(--mobile-header-height));
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px 24px calc(28px + env(safe-area-inset-bottom, 0px));
    background: #0a182c;
    flex-direction: column;
  }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav a {
    flex: none;
    font: 700 clamp(22px, 4vw, 32px)/1.5 var(--en);
    letter-spacing: -.035em;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .mobile-nav a span {
    display: inline-block;
    width: 35px;
    font: 500 10px var(--mono);
    color: var(--lime);
    letter-spacing: 0;
  }
  main { padding-top: var(--mobile-header-height); }
  .hero-inner { padding-top: 46px; min-height: 0; }
  .hero-copy { padding-bottom: 0; }
  .hero-interface { margin-top: 40px; }
  .floating-command {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: none;
    margin-top: 16px;
    padding: 14px;
    transform: none;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .15);
  }
  .floating-command div > span { font-size: 11px; line-height: 1.7; }
  .floating-command small { font-size: 9px; }
  .service-hero { padding-top: 46px; }
  .about-hero, .legal-hero { padding-top: 48px; }
  [id] { scroll-margin-top: calc(var(--mobile-header-height) + 20px); }
}

@media (max-width: 680px) {
  .hero-inner { padding: 40px 20px 76px; }
  .hero-eyebrow { flex-wrap: wrap; font-size: 8px; white-space: normal; line-height: 1.8; gap: 7px; }
  .hero h1 { font-size: clamp(31px, 9.4vw, 60px); line-height: 1.4; margin: 24px 0 26px; }
  .hero-lead { font-size: 15px; line-height: 1.65; max-width: 24em; }
  .hero-description { font-size: 13px; line-height: 2; }
  .hero-buttons { margin-top: 26px; }
  .hero-interface { margin-top: 36px; }
  .hero-title-line { animation-duration: .5s; }
  .hero-lead, .hero-description, .hero-buttons { animation-duration: .45s; }
  .hero-lead { animation-delay: .35s; }
  .hero-description { animation-delay: .42s; }
  .hero-buttons { animation-delay: .5s; }
  .app-topbrand { font-size: 9px; }
  .app-main { padding: 18px 13px; }
  .dashboard-metrics { grid-template-columns: 1fr 1fr; }
  .signal-panel strong { white-space: normal; font-size: 10px; line-height: 1.7; }
  .service-hero { padding: 40px 0 70px; }
  .service-hero h1 { font-size: clamp(56px, 17vw, 103px); }
  .service-hero h2 { font-size: clamp(24px, 7.2vw, 42px); }
  .service-hero-copy > p:not(.service-family) { font-size: 13px; line-height: 2; }
  .service-hero-actions { flex-wrap: wrap; gap: 18px; }
  .service-hero-layout { gap: 38px; }
  .motion-stage { min-height: 0; }
  .motion-stage-top { font-size: 8px; }
  .motion-caption { font-size: 9px; }
  .revenue-composition, .talent-composition {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 18px;
    padding: 22px 16px;
  }
  .revenue-input, .revenue-output, .talent-role, .talent-match { grid-column: 1; }
  .revenue-engine, .talent-matcher {
    position: relative;
    inset: auto;
    width: 100%;
    height: 116px;
    opacity: 1;
  }
  .engine-beam { left: 0; width: 100%; }
  .signal-card { grid-template-columns: 24px 1fr 8px; padding: 0 12px; height: 42px; }
  .signal-card span { font-size: 9px; }
  .signal-card strong { font-size: 12px; }
  .revenue-card { min-height: 0; padding: 18px; }
  .revenue-monogram { width: 34px; height: 34px; font-size: 16px; }
  .revenue-card-head small, .revenue-fit > span { font-size: 9px; }
  .revenue-card-head strong { font-size: 13px; line-height: 1.5; }
  .revenue-card > p { font-size: 12px; min-height: 0; line-height: 1.8; }
  .revenue-action { padding: 10px; }
  .revenue-action span { font-size: 9px; }
  .revenue-action b { font-size: 12px; }
  .role-card { min-height: 0; padding: 18px; }
  .role-card > strong { font-size: 17px; margin: 20px 0 12px; }
  .role-card p { font-size: 12px; min-height: 0; line-height: 1.8; }
  .role-card small, .role-card div span { font-size: 9px; }
  .match-card { padding: 12px; gap: 10px; }
  .match-avatar { width: 28px; height: 28px; font-size: 10px; flex: none; }
  .match-info small { font-size: 8px; }
  .match-info strong { font-size: 12px; }
  .match-info > span { font-size: 10px; white-space: normal; }
  .match-reason { padding: 12px; }
  .match-reason small { font-size: 9px; }
  .match-reason p { font-size: 12px; line-height: 1.8; }
  .motion-stage-bottom { height: auto; min-height: 64px; flex-wrap: wrap; padding: 14px 0; gap: 12px; }
  .motion-phases { flex-wrap: wrap; gap: 8px; }
  .motion-phases span { font-size: 8px; }
  .motion-controls button { width: 32px; height: 32px; }
  .about-hero h1 { font-size: clamp(31px, 9vw, 60px); }
  .about-hero-meta { flex-wrap: wrap; gap: 12px; }
  .legal-hero h1 { font-size: clamp(32px, 9vw, 52px); }
  .legal-contact { padding: 24px; }
  .intel-headline-phrase { white-space: normal; }
  .belief-statement { font-size: clamp(28px, 8.5vw, 54px); }
  .setup-start h3 { font-size: clamp(19px, 5.8vw, 30px); }
  .service-outro #sponsor-next { font-size: clamp(23px, 6.8vw, 42px); }
  .contact-copy h2 { font-size: clamp(23px, 7.1vw, 45px); }
}
