
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }

}

@media (max-width: 1280px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(400px, 0.9fr);
    gap: 44px;
  }

  .hero-copy-column h1,
  .hero h1 {
    font-size: 4.05rem;
  }

  .header-search {
    width: 250px;
  }
}

@media (max-width: 1160px) {
  .site-header-inner {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  #primary-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 34px;
    right: 34px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 14px;
    border: 1px solid rgba(173, 178, 182, 0.18);
    border-radius: var(--o4-radius-lg);
    background: rgba(18, 19, 24, 0.98);
    box-shadow: var(--o4-shadow);
  }

  #primary-menu.is-open {
    display: flex;
  }

  .header-nav-link {
    justify-content: flex-start;
    width: 100%;
  }

  .hero-grid,
  .archive-header,
  .tool-hero,
  .collection-shell-header,
  .collection-spotlight,
  .page-shell-grid,
  .trust-contribute-grid,
  .section-trust-contribute .trust-contribute-grid,
  .archive-newsletter-panel,
  .footer-newsletter {
    grid-template-columns: 1fr;
  }

  .hero-copy-column {
    max-width: 820px;
  }

  .hero-copy-column h1,
  .hero h1 {
    max-width: 13ch;
  }

  .directory-shell {
    grid-template-columns: 1fr;
  }

  .filters,
  .directory-filters {
    position: static;
  }

  .home-path-grid,
  .home-feature-grid,
  .home-collection-grid,
  .footer-grid,
  .collection-picks-grid,
  .tool-hero-intel,
  .tool-hero-brief,
  .tool-section-grid,
  .tool-related-grid,
  .tool-disclosure-grid,
  .article-proof-grid {
    grid-template-columns: 1fr;
  }

  .home-path-grid {
    grid-template-areas:
      "primary"
      "secondary-a"
      "secondary-b";
  }

  .featured-tool-card.is-emphasis,
  .collection-card.is-emphasis {
    grid-row: auto;
  }
}

@media (max-width: 920px) {
  .container {
    padding-inline: 24px;
  }

  #primary-menu {
    left: 24px;
    right: 24px;
  }

  .header-search {
    display: none;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .section-head-inline,
  .hero-console-topbar,
  .article-card-topline {
    display: grid;
    justify-content: stretch;
  }

  .newsletter-form,
  .page-shell-pillars,
  .method-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 40px 0;
  }

  .site-header-inner {
    min-height: 72px;
    gap: 10px;
  }

  .site-brand-logo {
    height: 31px;
    max-width: min(220px, 46vw);
  }

  .header-submit-cta {
    min-width: 0;
    min-height: 44px;
    padding-inline: 12px;
    font-size: 0.78rem;
  }

  .hero-home {
    padding: 54px 0 40px;
  }

  .hero-copy-column h1,
  .hero h1 {
    max-width: none;
    font-size: 3.3rem;
  }

  .hero-intro {
    font-size: 1rem;
  }

  .quick-search,
  .hero-dossier-strip {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .article-footer,
  .comparison-empty-actions,
  .tool-hero-actions,
  .tool-card-footer,
  .article-card-footer,
  .collection-card-footer,
  .collection-tool-card-actions,
  .section-inline-actions {
    display: grid;
    width: 100%;
  }

  .hero-actions .button,
  .article-footer .button,
  .comparison-empty-actions .button,
  .tool-hero-actions .button,
  .tool-card-footer .button,
  .article-card-footer .button,
  .collection-card-footer .button,
  .collection-tool-card-actions .button,
  .section-inline-actions .button {
    width: 100%;
  }

  .home-section-shell,
  .card,
  .article-shell,
  .collection-shell,
  .page-shell,
  .archive-header,
  .archive-empty-state,
  .archive-intel-panels,
  .archive-newsletter-panel,
  .footer-newsletter,
  .hero-console,
  .tool-hero {
    padding: 20px;
  }

  .archive-header-copy h1,
  .tool-hero h1,
  .article-header h1,
  .collection-shell-header h1,
  .page-shell-header h1 {
    max-width: none;
    font-size: 2.65rem;
  }

  .section-head h2,
  .section-title h2 {
    font-size: 2.15rem;
  }

  .tool-jump-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .container {
    padding-inline: 18px;
  }

  .container > .article-shell,
  .container > .collection-shell,
  .container > .page-shell,
  .container > .form-shell {
    width: 100%;
    max-width: 100%;
  }

  #primary-menu {
    left: 18px;
    right: 18px;
  }

  .site-header-inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    min-height: 68px;
  }

  .site-brand-logo {
    height: 28px;
    max-width: min(170px, 42vw);
  }

  .nav-toggle {
    min-height: 40px;
    padding: 0 11px;
    font-size: 0.8rem;
  }

  .header-submit-cta {
    min-height: 40px;
    padding-inline: 10px;
    font-size: 0.74rem;
  }

  .hero-copy-column h1,
  .hero h1 {
    font-size: 2.8rem;
  }

  .hero-brand-lockup {
    letter-spacing: 0.14em;
  }

  .hero-console-header h2 {
    font-size: 1.9rem;
  }

  .tool-jump-nav {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 420px) {
  .site-brand-logo {
    max-width: min(145px, 38vw);
  }

  .header-submit-label-full {
    display: none;
  }

  .header-submit-label-short {
    display: inline;
  }

  .hero-copy-column h1,
  .hero h1 {
    font-size: 2.55rem;
  }
}
