/* Mobile-first refinements kept separate for easy maintenance. */
@media (max-width: 1100px) {
  .site-header {
    height: 70px;
  }

  .nav.container {
    width: min(calc(100% - 40px), var(--header-container));
    gap: 0.7rem;
  }

  .nav-links {
    display: none;
  }

  .nav-links.is-open {
    display: flex;
    position: absolute;
    top: calc(100% + 8px);
    left: 20px;
    right: 20px;
    z-index: 30;
    gap: 0;
    padding: 0.55rem;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.is-open a {
    padding: 0.8rem 0.9rem;
    border-radius: var(--radius-sm);
    color: var(--ink);
  }

  .nav-links.is-open a:hover,
  .nav-links.is-open a:focus-visible {
    background: var(--mist);
  }

  .mobile-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    flex: 0 0 44px;
    color: var(--ink);
    font-size: 1.5rem;
    line-height: 1;
  }
}

@media (max-width: 620px) {
  .site-header {
    height: 66px;
  }

  .nav.container {
    width: min(calc(100% - 28px), var(--header-container));
    gap: 0.35rem;
  }

  .brand {
    min-width: 0;
    gap: 0.45rem;
    font-size: 0.72rem;
    line-height: 1.02;
  }

  .brand-emblem {
    width: 36px;
    height: 38px;
    flex-basis: 36px;
  }

  .brand-emblem img {
    width: 60px;
    transform: translateX(-12px);
  }

  .brand small {
    margin-top: 2px;
    font-size: 0.5rem;
    letter-spacing: 0.055em;
  }

  .nav-actions {
    margin-left: auto;
  }

  .nav-actions .btn {
    min-height: 42px;
    padding: 0.55rem 0.78rem;
    font-size: 0.74rem;
    white-space: nowrap;
  }

  .mobile-toggle {
    width: 40px;
    height: 42px;
    flex-basis: 40px;
    font-size: 1.4rem;
  }

  .hero {
    padding: 2.8rem 0 3rem;
  }

  .feature-video-section {
    padding: 3rem 0;
  }

  .feature-video-heading {
    margin-bottom: 1.25rem;
    text-align: left;
  }

  .feature-video-heading .eyebrow {
    justify-content: flex-start;
  }

  .feature-video-heading h2 {
    font-size: clamp(1.7rem, 8vw, 2.35rem);
    line-height: 1.1;
  }

  .feature-video-frame {
    border-radius: var(--radius-md);
  }

  .announcement {
    max-width: 100%;
    gap: 0.55rem;
    padding: 0.4rem 0.65rem 0.4rem 0.45rem;
    font-size: 0.75rem;
    line-height: 1.35;
  }

  .announcement b {
    flex: 0 0 auto;
    padding: 0.25rem 0.5rem;
    white-space: nowrap;
  }

  .announcement-copy {
    min-width: 0;
    flex: 1 1 140px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 14vw, 3.5rem);
    line-height: 0.99;
  }

  .page-hero {
    padding: 2.8rem 0 2.5rem;
  }

  .page-hero h1 {
    font-size: clamp(2.25rem, 10vw, 3.1rem);
    line-height: 1;
  }

  h2 {
    font-size: clamp(1.9rem, 8.5vw, 2.65rem);
    line-height: 1.04;
  }

  .page-hero p {
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-copy {
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-actions {
    gap: 0.65rem;
  }

  .hero-actions .btn {
    flex: 1 1 140px;
    min-height: 52px;
  }

  .trust-row {
    margin-top: 1.4rem;
  }

  .hero-visual {
    margin-top: 0.25rem;
  }

  .section,
  .split-section,
  .progression {
    padding: 3.25rem 0;
  }

  .section-intro {
    margin-bottom: 1.7rem;
  }

  .pillars {
    border-radius: var(--radius-md);
  }

  .pillar {
    min-height: 184px;
  }

  .academy-content,
  .intakes-sidebar {
    padding: 1.7rem;
  }

  .academy-tabs {
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .academy-tabs button {
    flex: 0 0 auto;
  }

  .pathway {
    gap: 0.55rem;
  }

  .path-step p {
    font-size: 0.78rem;
  }

  .universal-cta {
    padding: 3rem 0;
  }

  .universal-cta .btn {
    width: 100%;
    min-height: 50px;
  }

  .footer {
    padding-top: 2.6rem;
  }

  .footer-logo-link {
    width: min(100%, 72px);
  }

  .footer-logo-image {
    max-width: 72px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid > div:first-child {
    grid-column: auto;
  }
}

@media (max-width: 390px) {
  .brand {
    font-size: 0.64rem;
  }

  .brand small {
    display: none;
  }

  .nav-actions .btn {
    padding-inline: 0.62rem;
    font-size: 0.7rem;
  }

  .hero-actions .btn {
    flex-basis: 100%;
  }

  .pillars {
    grid-template-columns: 1fr;
  }
}
