/* v74: the opening navigation shares the compact floating bar's geometry.
   Desktop composition, hero artwork and the second chapter's scenes stay intact. */
@media (max-width: 1050px) {
  .hero .site-header.shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: calc(100% - 24px);
    height: 56px;
    min-height: 56px;
    flex: 0 0 56px;
    margin: max(10px, env(safe-area-inset-top)) 12px 0;
    padding: 0 6px 0 20px;
    border: 1px solid #f0e5cf1f;
    border-radius: 99px;
    background: #030a17e8;
    -webkit-backdrop-filter: blur(18px) saturate(1.5);
    backdrop-filter: blur(18px) saturate(1.5);
    box-shadow: 0 18px 50px -24px #000000b3;
  }
  .hero .site-header::after { content: none; }
  .hero .site-header .wordmark {
    margin: 0;
    color: #f0e5cf;
    font: 400 26px/1 var(--font-serif);
    letter-spacing: -.01em;
    white-space: nowrap;
  }
  .hero .mobile-nav { margin-left: auto; }
  .hero .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 44px;
    min-height: 44px;
    padding: 0 4px 0 16px;
    border: 1px solid #f0e5cf33;
    border-radius: 99px;
    background: transparent;
    color: #f0e5cf;
    font: 500 14px/1 var(--font-sans);
    letter-spacing: normal;
    text-transform: none;
  }
  .hero .mobile-nav-toggle i {
    position: relative;
    display: block;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5bf00;
  }
  .hero .mobile-nav-toggle i::before,
  .hero .mobile-nav-toggle i::after {
    content: '';
    position: absolute;
    left: 11px;
    right: 11px;
    top: calc(50% - .75px);
    height: 1.5px;
    background: #030a17;
  }
  .hero .mobile-nav-toggle i::before { transform: translateY(-3px); }
  .hero .mobile-nav-toggle i::after { transform: translateY(3px); }
  .v70-bar-menu i::before, .v70-bar-menu i::after { top: calc(50% - .75px); }
}

/* The secondary action occupies the dark space beneath the main phone CTA. */
@media (max-width: 720px) {
  .hero .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .hero .hero-actions .primary-cta {
    min-height: 48px;
    padding: 13px 24px;
    font-size: 14px;
  }
  .hero .hero-actions .hero-cases-link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: 44px;
    padding-block: 10px;
    font-size: 14px;
  }
}
@media (max-width: 720px) and (max-height: 700px) {
  .hero-copy.shell { padding-block: 18px 8px; }
  .hero .hero-actions { margin-top: 18px; gap: 4px; }
}

/* A centered introduction balances the centered team photograph on compact screens. */
@media (max-width: 900px) {
  .why-head { justify-items: center; text-align: center; }
  .why-head .why-kicker { justify-self: center; }
  .why-head .why-title { width: 100%; max-width: 640px; justify-self: center; }
  .why-head .why-intro { max-width: min(32ch, 100%); margin-inline: auto; text-align: center; }
  .why-metrics > div { align-items: center; padding: 18px 8px 0; text-align: center; }
  .why-metrics dt, .why-metrics dd { text-align: center; }
}
