/* Responsive product layer: consistent touch controls, compact rhythm, and safe mobile layouts. */
html { overflow-x: clip; }
body { min-width: 320px; overflow-x: clip; }
img { max-width: 100%; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
.menu-toggle { min-width: 44px; min-height: 44px; border-radius: 8px; cursor: pointer; }
.menu-toggle:focus-visible, .nav-links a:focus-visible, .button:focus-visible { outline: 3px solid rgba(184, 209, 240, .8); outline-offset: 3px; }

@media (max-width: 960px) {
  .site-header { position: absolute; z-index: 50; }
  .site-header .menu-toggle { display: grid; place-content: center; margin-left: auto; }
  .site-header .menu-toggle span:not(.sr-only) { width: 22px; margin: 3px 0; transition: transform .2s ease, opacity .2s ease; }
  .site-header .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(2px) rotate(45deg); }
  .site-header .menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-2px) rotate(-45deg); }
  .site-header .nav-links { position: absolute; top: calc(100% + 10px); right: 0; left: 0; display: none; gap: .25rem; padding: .55rem; border: 1px solid rgba(7, 27, 59, .1); border-radius: 12px; background: rgba(255, 255, 255, .98); box-shadow: 0 18px 45px rgba(7, 27, 59, .18); backdrop-filter: blur(12px); }
  .site-header .nav-links.is-open { display: flex; flex-direction: column; align-items: stretch; }
  .site-header .nav-links a { min-height: 48px; padding: .8rem .9rem; border-radius: 7px; color: #071b3b; font-size: 15px; font-weight: 600; line-height: 1.2; }
  .site-header .nav-links a:hover, .site-header .nav-links a:focus-visible { background: #eef4fb; }
  .site-header .nav-links a::after { display: none; }
  .site-header .header-cta { display: none; }
  .inner-page .site-header, body.contact-page .site-header { position: relative; top: auto; right: auto; left: auto; width: 100%; height: 76px; padding-inline: 1.25rem; border-radius: 0; box-shadow: none; }
  .inner-page .site-header .nav-links, body.contact-page .site-header .nav-links { right: 1rem; left: 1rem; }
}

@media (max-width: 767px) {
  body.menu-open { overflow: hidden; }
  .site-header { top: max(12px, env(safe-area-inset-top)); left: 1rem; right: 1rem; height: 68px; padding: 0 1rem; }
  .brand-logo--navy { width: 150px; max-height: 44px; }
  .hero { min-height: 100svh; padding: 142px 1.25rem 52px; align-items: flex-end; }
  .hero-image { object-position: 62% center; }
  .hero-overlay { background: linear-gradient(180deg, rgba(4, 18, 44, .62) 0%, rgba(4, 18, 44, .72) 45%, rgba(4, 18, 44, .94) 100%); }
  .hero-content { width: 100%; }
  .trust-line { font-size: 12px; line-height: 1.45; }
  .hero h1 { max-width: 11ch; margin-top: .9rem; font-size: clamp(2.15rem, 9.5vw, 2.65rem); line-height: 1.08; }
  .hero-summary { max-width: 34ch; font-size: 16px; line-height: 1.58; }
  .hero-actions { width: 100%; gap: .7rem; margin-top: 1.7rem; }
  .hero-actions .button { width: 100%; min-height: 52px; }
  .impact-ticker { padding: 1.1rem 0; }
  .ticker-group { gap: 2rem; padding-right: 2rem; }
  .ticker-group span { font-size: 13px; }
  .ticker-group span::before { width: 18px; height: 18px; font-size: 11px; }
  .section { padding: 4.5rem 1.25rem; }
  .eyebrow { font-size: 12px; }
  .intro-grid { gap: 1.5rem; margin-top: .8rem; }
  .intro h2, .section-heading h2, .feature h2, .closing h2 { font-size: 26px; line-height: 1.18; }
  .intro-copy p, .section-heading > p:last-child, .feature-content > p:not(.eyebrow), .closing-copy > p:not(.eyebrow) { font-size: 16px; line-height: 1.65; }
  .text-link { min-height: 44px; margin-top: 1.15rem; padding-top: .45rem; }
  .service-grid { gap: .85rem; margin-top: 2rem; }
  .service-card { min-height: 260px; padding: 1.35rem; border-radius: 12px; }
  .service-card > span { font-size: 46px; }
  .service-card h3 { max-width: none; margin-top: 2.2rem; font-size: 20px; }
  .service-card p { max-width: 29ch; font-size: 15px; line-height: 1.58; }
  .service-card a { right: 1.1rem; bottom: 1.1rem; width: 44px; height: 44px; }
  .feature { display: flex; flex-direction: column; }
  .feature > img { min-height: 0; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
  .feature-content { padding: 3.5rem 1.25rem; }
  .steps { gap: 0; margin-top: 2rem; }
  .steps li { position: relative; padding: 1.4rem 0 1.4rem 1rem; border-bottom: 1px solid var(--line); }
  .steps li::before { position: absolute; top: 1.5rem; bottom: 1.5rem; left: 0; width: 3px; border-radius: 99px; content: ""; background: #b8d1f0; }
  .steps h3 { margin: .65rem 0; font-size: 20px; }
  .steps p { font-size: 15px; line-height: 1.6; }
  .closing { padding-top: 5rem; padding-bottom: 5rem; }
  .closing::after { right: -35vw; bottom: -22vw; width: 85vw; height: 85vw; }
  .closing .button { width: 100%; min-height: 52px; }
  .site-footer { padding-inline: 1.25rem; }
  .footer-main { padding-block: 2.75rem; }
  .footer-brand .brand-logo--light { width: 180px; }
  .footer-brand > p { font-size: 14px; }
  .footer-bottom { gap: 1rem; padding-block: 1.25rem max(1.25rem, env(safe-area-inset-bottom)); }
  .footer-legal { gap: .85rem 1rem; }
  .footer-bottom p, .footer-legal a { font-size: 11px; }

  .inner-page .site-header, body.contact-page .site-header { height: 68px; padding-inline: 1.25rem; }
  .inner-hero { min-height: 0; }
  .inner-hero > div { padding: 3.5rem 1.25rem; }
  .inner-hero > img { min-height: 0; height: auto; aspect-ratio: 4 / 3; }
  .inner-hero h1, .content-intro p, .service-overview p { font-size: 32px; line-height: 1.1; }
  .inner-hero > div > p:last-child, .content-intro span, .service-overview span { font-size: 16px; }
  .content-intro, .service-overview { gap: 1.5rem; padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .pillars, .purpose { gap: 2rem; padding-top: 4rem; padding-bottom: 4rem; }
  .pillar-list article { grid-template-columns: 34px 1fr; gap: .75rem; padding: 1.3rem 0; }
  .pillar-list h3 { font-size: 19px; }
  .pillar-list p, .purpose-copy { font-size: 16px; }
  .core-values { padding: 3.5rem 1.25rem; }
  .core-values > div { gap: .55rem; }
  .core-values span { padding: .7rem .8rem; font-size: 12px; }
  .service-detail-list article { gap: .75rem; padding-top: 2.75rem; padding-bottom: 2.75rem; }
  .service-detail-list h2 { font-size: 27px; line-height: 1.15; }
  .service-detail-list li { padding: .85rem 0; font-size: 16px; }
  .page-cta { padding: 4.5rem 1.25rem; }
  .page-cta h2 { font-size: 30px; line-height: 1.15; }
  .page-cta .primary-button { min-height: 52px; }
  .contact { min-height: 0; gap: 2.25rem; padding: 3.5rem 1.25rem 4.5rem; }
  .contact h2 { font-size: 34px; line-height: 1.08; }
  .contact-copy > a { min-height: 44px; padding-top: .55rem; font-size: 15px; word-break: break-word; }
  .contact-form { gap: 1.35rem; padding: 1.35rem; border-radius: 12px; }
  .contact-form label { gap: .5rem; font-size: 12px; }
  .contact-form input, .contact-form select, .contact-form textarea { min-height: 46px; font-size: 16px; }
  .contact-form textarea { min-height: 130px; padding-top: .7rem; }
  .contact-form .primary-button { width: 100%; min-height: 52px; }
}

@media (hover: none) {
  .service-card:hover { border-color: #d6e2ef; background: inherit; box-shadow: none; transform: none; }
  .service-card:hover::before { transform: scaleY(.18); }
  .service-card:hover::after { background: transparent; transform: none; }
  .service-card:hover > span { color: var(--card-accent); opacity: .18; transform: none; }
  .service-card:hover h3 { color: #071b3b; transform: none; }
  .service-card:hover p { color: #4d627d; transform: none; }
  .service-card:hover h3::after { width: 32px; border-color: var(--card-accent); }
  .service-card:hover a { background: var(--card-accent); color: #fff; transform: none; }
}

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