/* Phone and tablet adjustments load after each page's own styles. */
.software-detail-body .os-section-nav nav,
.engineering-body .eng-section-nav nav,
.company-body .company-section-nav nav {
  width: min(100%, 1200px);
  margin-inline: auto;
  padding-inline: max(24px, env(safe-area-inset-left, 0px)) max(24px, env(safe-area-inset-right, 0px));
  scroll-padding-inline: 24px;
}
@media (max-width: 700px) {
  .software-detail-body .os-section-nav nav,
  .engineering-body .eng-section-nav nav,
  .company-body .company-section-nav nav {
    padding-inline: max(18px, env(safe-area-inset-left, 0px)) max(18px, env(safe-area-inset-right, 0px));
    scroll-padding-inline: 18px;
  }
}
@media (max-width: 850px) {
  :root { --site-header-height: calc(82px + env(safe-area-inset-top, 0px)); }
  .site-header { height: var(--site-header-height); padding-top: env(safe-area-inset-top, 0px); }
  .site-header #site-nav { top: calc(var(--site-header-height) - 1px); max-height: calc(100dvh - var(--site-header-height)); overflow-y: auto; }
  .site-header #site-nav a { min-height: 48px; font-size: 13px; }
  .os-workflow { grid-template-columns: minmax(0, 1fr); }
  .os-workflow article { max-width: none; }
  .eng-review-points { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .eng-section-nav, .os-section-nav { top: var(--site-header-height); }
  .engineering-body .eng-section-nav nav,
  .software-detail-body .os-section-nav nav {
    display: flex; flex-direction: row; flex-wrap: nowrap; gap: 24px;
    overflow-x: auto; overscroll-behavior-x: contain; min-height: 56px;
    padding-block: 6px; scrollbar-width: none;
  }
  .eng-section-nav nav::-webkit-scrollbar, .os-section-nav nav::-webkit-scrollbar { display: none; }
  .eng-section-nav a, .os-section-nav a { flex: 0 0 auto; min-height: 44px; font-size: 12px; white-space: nowrap; }
  .eng-flow, .eng-precision, .eng-films, .eng-vtol-study, .eng-film,
  .software-detail-page .os-section, #ai-pilot-demo { scroll-margin-top: calc(var(--site-header-height) + 76px); }
}
@media (max-width: 600px) {
  :root { --site-header-height: calc(70px + env(safe-area-inset-top, 0px)); }
  html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--site-header-height); }
  main, section, article, figure, aside, .header-actions, .model-card-copy { min-width: 0; }
  h1, h2, h3, p, figcaption, .cart-message, .legal-back { overflow-wrap: break-word; }
  video { max-width: 100%; }
  input:not([type="checkbox"]):not([type="radio"]), select, textarea { font-size: 16px; max-width: 100%; }
  button, a { -webkit-tap-highlight-color: rgba(142, 17, 24, .15); }
  .site-header { padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(10px, env(safe-area-inset-right)); gap: 8px; }
  .site-header .brand { width: clamp(120px, 37vw, 146px); }
  .site-header .menu-button { font-size: 13px; }
  .site-header #site-nav { padding-inline: max(18px, env(safe-area-inset-left)); }
  .legal-header, .account-body .legal-header { height: var(--site-header-height); padding: env(safe-area-inset-top, 0px) 18px 0; gap: 12px; }
  .legal-header .brand, .account-body .legal-header .brand { width: clamp(108px, 34vw, 126px); }
  .legal-back { display: inline-flex; align-items: center; justify-content: flex-end; min-height: 44px; max-width: 56%; font-size: 11px; line-height: 1.5; text-align: right; }
  .button { min-height: 48px; font-size: 12px; line-height: 1.5; padding-block: 12px; letter-spacing: .03em; }
  .home-cinematic .home-hero { min-height: min(680px, calc(100svh - var(--site-header-height))); }
  .home-cinematic .home-hero-content { padding-top: 40px; padding-bottom: 28px; }
  .home-cinematic .home-hero h1 { font-size: clamp(38px, 10.5vw, 56px); }
  .home-hero-actions, .home-software-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .home-cinematic .home-link-button { min-height: 48px; font-size: 13px; }
  .home-cinematic .home-hero-footer { position: relative; left: auto; bottom: auto; transform: none; padding-block: 0 20px; }
  .home-hero-footer > p { font-size: 10px; }
  .home-hero-footer a { font-size: 12px; }
  .home-paths small, .home-cinematic .home-kicker, .eyebrow { font-size: 11px; }
  .home-paths a { font-size: 13px; }
  .home-software-capabilities { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .home-system-copy p:not(.home-kicker), .home-engineering-copy > p:not(.home-kicker),
  .home-software-copy > p:not(.home-kicker), .model-card-copy > p:not(.model-status) { font-size: 15px; line-height: 1.75; }
  .model-status, .model-spec-label, .model-spec span, .detail-metrics .model-spec span { font-size: 11px; line-height: 1.5; }
  .model-spec strong, .aircraft-page .detail-metrics .model-spec strong { font-size: clamp(20px, 6vw, 25px); }
  .model-card-actions { gap: 12px; }
  .model-add, .model-open { min-height: 48px; font-size: 12px; }
  .aircraft-gallery-thumbnails { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; gap: 8px; }
  .aircraft-gallery-thumb { width: 100%; min-width: 0; min-height: 48px; }
  .aircraft-gallery-pagination { width: 100%; justify-content: flex-end; }
  .aircraft-gallery-count { margin-right: auto; }
  .aircraft-breadcrumb, .aircraft-summary .eyebrow { font-size: 11px; }
  .aircraft-lead, .aircraft-section-content > p { font-size: 15px; line-height: 1.75; }
  .aircraft-body .aircraft-page-nav { display: flex; position: static; inset: auto; flex-direction: column; gap: 8px; padding: 20px 0 0; border: 0; background: transparent; }
  .aircraft-page-nav a, .detail-links a, .manual-link { min-height: 44px; }
  .technical-detail summary > span, .diagram-panel figcaption, .table-note { font-size: 11px; line-height: 1.6; }
  .eng-workspace h1 { font-size: clamp(36px, 10vw, 56px); }
  .eng-workspace-intro, .eng-section-heading > p, .eng-stage-copy > p,
  .eng-vtol-copy > p:not(.eng-kicker), .eng-film-caption p, .eng-camera-principles p { font-size: 15px; line-height: 1.75; }
  .eng-workspace-actions, .os-hero-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .eng-workspace-button, .eng-workspace-film-link, .os-hero-demo-link { font-size: 13px; min-height: 48px; }
  .eng-desk-heading, .eng-desk-figure figcaption, .eng-workspace-footer,
  .eng-process-figure figcaption, .eng-vtol-visual figcaption, .eng-film-caption .eng-kicker { font-size: 11px; line-height: 1.6; }
  .eng-desk-heading, .eng-workspace-footer { flex-wrap: wrap; gap: 8px 14px; }
  .eng-workspace-footer > span { max-width: none; }
  .eng-view-tabs button { min-height: 48px; padding: 12px 10px; font-size: 12px; }
  .eng-stage { min-height: 112px; }
  .eng-stage strong { font-size: 13px; }
  .eng-stage small { font-size: 11px; line-height: 1.5; }
  .eng-review-points { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .os-workspace .os-lead, .os-heading > p:not(.eyebrow), .os-workflow p { font-size: 15px; line-height: 1.75; }
  .os-workspace .eyebrow { font-size: 11px; }
  .os-workspace .button-primary, .os-download-card .button { font-size: 12px; }
  .os-download-card-top .eyebrow, .os-download-badge { font-size: 11px; }
  .os-download-specs dt, .os-download-specs dd, .os-download-note { font-size: 13px; line-height: 1.6; }
  .os-download-account p, .os-download-platform, .os-plan-note { font-size: 14px; }
  .os-workspace figcaption, .os-workspace-footer, .os-breadcrumb { font-size: 11px; }
  .os-workspace-footer > span { overflow-wrap: anywhere; }
  .os-hero-actions .button { width: 100%; }
  .software-ai-film figcaption div > span { font-size: 11px; }
  .cart-drawer { height: 100dvh; bottom: auto; padding-top: max(22px, env(safe-area-inset-top)); padding-bottom: max(24px, env(safe-area-inset-bottom)); }
  .cart-head { position: sticky; top: -22px; z-index: 1; padding-bottom: 16px; background: var(--bone); }
  .cart-items { flex: 1 0 auto; min-width: 0; }
  .cart-checkout { width: 100%; min-height: 48px; }
  .cart-item strong { overflow-wrap: anywhere; }
  .cart-remove { min-height: 44px; min-width: 60px; font-size: 13px; }
  .account-page input[type="email"], .account-page input[type="text"], .account-page input[type="password"] { font-size: 16px; }
  .account-page button, .account-code-actions button, .account-refresh { min-height: 44px; }
  .account-auth-modes button { min-width: 0; font-size: 14px; }
  .profile-navigation button { font-size: 14px; }
  .direct-contact-form label, .contact-form label { font-size: 13px; }
  .contact-status, .contact-note { font-size: 13px; line-height: 1.6; }
  .site-footer, .legal-footer { padding-bottom: calc(34px + env(safe-area-inset-bottom)); }
  body:has(.cart-action.is-visible) > .site-footer,
  body:has(.cart-action.is-visible) > .legal-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .site-footer .legal-links, .legal-footer .legal-links { gap: 4px 20px; }
  .site-footer .legal-links a, .legal-footer .legal-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; }
  .site-footer .footer-connect { flex-direction: column; align-items: flex-start; gap: 8px; }
  .site-footer .footer-email { font-size: 14px; }
  .footer-follow-label { font-size: 11px; }
  .site-footer .footer-tagline { font-size: 13px; }
  .home-engineering-figure figcaption, .home-software-figure figcaption { font-size: 11px; flex-wrap: wrap; }
}
@media (max-width: 360px) {
  .eng-stage-list { grid-template-columns: minmax(0, 1fr); }
  .home-cinematic .home-hero h1, .os-workspace .os-hero h1 { font-size: 36px; }
  .home-paths a { padding-inline: 8px; }
}
