@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .section {
    animation: rise 260ms ease both;
  }
}

@keyframes rise {
  from {
    opacity: 0.98;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1040px) {
  .header-inner {
    grid-template-columns: auto 1fr auto auto;
  }

  .mobile-toggle {
    display: inline-grid;
    grid-column: 4;
    justify-self: end;
    place-items: center;
  }

  .theme-button {
    display: inline-grid;
    grid-column: 3;
    justify-self: end;
    place-items: center;
    width: 42px;
    min-height: 42px;
    padding: 0;
  }

  .theme-button__label {
    display: none;
  }

  .theme-button .icon {
    width: 18px;
    height: 18px;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    z-index: 90;
    display: grid;
    justify-content: stretch;
    gap: 4px;
    align-content: start;
    max-height: calc(100svh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
    padding: 12px max(28px, var(--gutter)) 28px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: var(--page);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.08);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity var(--motion-fast), transform var(--motion-fast);
    overflow: auto;
    -webkit-backdrop-filter: blur(26px) saturate(1.25);
    backdrop-filter: blur(26px) saturate(1.25);
  }

  body.nav-open .site-nav {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  body:not(.nav-open) .site-nav,
  body:not(.nav-open) .site-nav * {
    pointer-events: none;
  }

  .nav-link,
  .nav-group,
  .nav-link--button {
    width: 100%;
  }

  .nav-group::after {
    content: none;
  }

  .nav-link {
    justify-content: flex-start;
    min-height: 48px;
    padding: 0;
    border-radius: 0;
    font-size: 17px;
  }

  .nav-menu {
    position: static;
    min-width: 0;
    margin: 0 0 10px;
    padding: 0 0 4px 18px;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    background: transparent;
  }

  .nav-link--button[aria-expanded="true"] + .nav-menu,
  .nav-group.is-open .nav-menu,
  .nav-group:focus-within .nav-menu,
  .nav-group:hover .nav-menu {
    transform: none;
  }

  .nav-menu a {
    padding: 10px 0;
    border-radius: 0;
    color: var(--muted);
    font-size: 16px;
  }

  .hero,
  .split-section,
  .editorial-grid,
  .faq-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .editorial-split--argio .editorial-grid--argio {
    display: contents;
  }

  .editorial-split--argio .editorial-head {
    order: 1;
  }

  .editorial-split--argio .video-frame--argio {
    order: 2;
  }

  .editorial-split--argio .editorial-copy {
    order: 3;
  }

  .faq-list {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .topic-row,
  .quick-actions,
  .service-columns,
  .case-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-item:not(:last-child) {
    margin-bottom: calc(clamp(30px, 4.5vw, 84px) - 10px);
  }

  .privacy-panel {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .privacy-visual {
    justify-self: start;
    transform: none;
  }

  .contact-actions {
    justify-self: stretch;
    width: min(100%, 560px);
  }

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

  .footer__nav {
    padding-top: 0;
  }
}

@media (max-width: 1040px) and (hover: none) {
  .theme-button:hover,
  .nav-link--button:hover {
    color: var(--ink-soft);
  }

  .theme-button:active,
  .nav-link--button:active {
    color: var(--blue);
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 66px;
  }

  .section--first,
  .section,
  .topic-row,
  .brand-strip,
  .footer,
  .site-meta {
    width: min(calc(100% - 32px), var(--max));
  }

  .header-inner {
    width: min(calc(100% - 28px), var(--max));
    gap: 10px;
  }

  .brand-logo {
    height: 30px;
  }

  .hero {
    min-height: auto;
    padding-top: 64px;
    gap: 28px;
  }

  h1 {
    font-size: var(--type-hero);
    line-height: 1.18;
    letter-spacing: 0;
  }

  .lead,
  .section-head > p,
  .split-section p,
  .editorial-copy p,
  .privacy-panel p,
  .contact-section p {
    font-size: var(--type-lead);
  }

  .actions,
  .topic-row,
  .quick-actions,
  .service-columns,
  .case-grid,
  .pricing-grid,
  .pricing-calculator-actions,
  .footer,
  .site-meta {
    grid-template-columns: 1fr;
  }

  .actions {
    display: grid;
    width: min(100%, 460px);
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    gap: var(--action-stack-gap);
  }

  .actions > .button {
    width: 100%;
    min-width: 0;
  }

  .button {
    width: auto;
    min-width: 174px;
  }

  .actions > .text-link,
  .text-link {
    justify-self: center;
  }

  .privacy-visual {
    display: none;
  }

  .service-entry,
  .plan {
    min-height: auto;
  }

  .media-frame img {
    min-height: 260px;
  }

  .brand-strip__track {
    gap: 28px;
    padding-inline: 20px;
  }

  .brand-strip {
    width: 100%;
  }

  .contact-section {
    min-height: auto;
    padding: 30px 24px;
  }

  .contact-actions {
    width: 100%;
  }

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

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

  .site-meta {
    display: grid;
  }
}


@media (prefers-reduced-motion: reduce) {
  .brand-strip__track {
    animation: none;
    overflow-x: auto;
  }
}
