/* Compact shell: let its native header, sections and footer share the same breakpoint. */
@media (max-width: 1100px) {
  body.mobile-mode .m-menu { height: 100dvh; overflow-y: auto; overscroll-behavior: contain; }
  body.mobile-mode .m-menu__head, body.mobile-mode .m-menu__bottom { flex-shrink: 0; }
  body.mobile-mode .m-footer__bottom { font-size: 12px; flex-wrap: wrap; gap: 12px; }
  body.mobile-mode .m-footer__links a { min-height: 44px; }
  body.mobile-mode .who-hero-frame { height: auto; overflow: visible; }
  body.mobile-mode .faq-page-canvas { --u: 1px; width: 100%; height: auto; transform: none; }
  body.mobile-mode .faq-page-canvas .faq { padding: calc(var(--m-header, 60px) + 32px) var(--m-gutter, 20px) 60px; }
  body.mobile-mode .faq .faq-inner { width: 100%; margin: 0; grid-template-columns: minmax(0, 1fr); display: grid; gap: 24px; }
  body.mobile-mode .faq .faq-inner h1 { width: auto; max-width: 100%; height: auto; margin: 0; }
  body.mobile-mode .faq .accordion { min-width: 0; width: 100%; margin: 0; }
  body.mobile-mode .faq .question { white-space: normal; }
  body.mobile-mode .subpage .subpage-inner { min-width: 0; }
  body.mobile-mode .m-footer__contact, body.mobile-mode .m-footer__company { overflow-wrap: anywhere; }
}
@media (min-width: 601px) and (max-width: 1100px) {
  :root { --m-gutter: clamp(30px, 5vw, 56px); }
  .m-menu nav { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
  .m-menu__group a { min-height: 42px; }
  .m-hero { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); align-items: center; gap: 20px;
    min-height: min(720px,85svh); padding-top: calc(var(--m-header) + 32px); padding-bottom: 40px; }
  .m-hero__copy { padding: 0; }
  .m-hero__media { align-self: stretch; min-height: 260px; margin: 0; border: 0; }
  .m-hero__media .m-compare__layer img { max-height: none; }
  .m-hero__actions { flex-wrap: wrap; }
  .m-world { min-height: min(720px,86svh); }
  .m-footer__links { grid-template-columns: repeat(3, minmax(0,1fr)); }
  body.mobile-mode .who-canvas { min-height: auto; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    padding: calc(var(--m-header,60px) + 52px) var(--m-gutter) 52px; align-items: center; gap: 28px; }
  body.mobile-mode .who-statement, body.mobile-mode .who-intro, body.mobile-mode .who-intro__copy { width: 100%; max-width: 100%; }
  body.mobile-mode .who-canvas .who-equation { font-size: clamp(33px,4.6vw,52px); }
  body.mobile-mode .who-film { width: 100%; height: auto; aspect-ratio: 4/3; margin: 0; }
  body.mobile-mode .who-scroll { grid-column: 1 / -1; margin: 0; }
  body.mobile-mode .faq .faq-inner { grid-template-columns: minmax(180px,.48fr) minmax(0,1fr); align-items:start; gap: 36px; }
  body.mobile-mode .faq h1 { font-size: clamp(32px,4vw,42px); line-height: 1.12; }
  body.mobile-mode .subpage { padding-inline: var(--m-gutter); }
}
@media (min-width: 701px) and (max-width: 1100px) {
  body.mobile-mode .subpage.is-story-view .stories-index.video-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px 24px; }
}
@media (max-height: 540px) and (max-width: 1100px) {
  .m-hero { min-height: auto; }
  .m-menu nav { padding-top: 10px; }
  .m-menu__group a { padding-block: 8px; }
  .m-menu__bottom { padding-top: 12px; }
  .m-hero__media { min-height: 220px; }
}
@media (min-width: 1101px) and (max-width: 1919px) {
  /* Keep the desktop footer in document flow: scaling the artboard also shrank link text and tap targets. */
  html .footer-viewport, html .footer-scale, html .footer { width: 100%; height: auto; transform: none; }
  .footer { --footer-gutter: clamp(40px,calc(30vw - 297px),280px); }
  .footer .footer-main {
    position: static; height: auto; min-height: 280px; margin-inline: var(--footer-gutter);
    padding-block: clamp(40px,4vw,68px) 24px; display: grid;
    grid-template-columns: minmax(225px,1.75fr) repeat(3,minmax(140px,1fr)); gap: 24px;
  }
  .footer .footer-brand,.footer .footer-column,.footer .socials { position: static; width: auto; height: auto; min-width: 0; }
  .footer .footer-brand { position: relative; top: auto; left: auto; min-height: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
  .footer .footer-brand .brand { height: auto; width: auto; }
  .footer .brand-tagline { margin-top: 5px; line-height: 18px; }
  .footer .footer-column h2 { font-size: 16px; }
  .footer .footer-column a { display: inline-block; font-size: 16px; line-height: 1.45; padding-block: 4px; white-space: normal; }
  .footer .footer-column li { height: auto; }
  .footer .footer-company-details { position: static; top: auto; left: auto; max-width: 100%; width: auto; margin-top: 16px; white-space: normal; }
  .footer .socials { grid-column: 1/-1; justify-self: end; display: flex; }
  .footer .footer-bottom { width: auto; height: auto; min-height: 60px; margin: 0 var(--footer-gutter);
    grid-template-columns: 1fr auto auto; gap: 24px; font-size: 14px; }
  .footer .footer-bottom p { width: auto; }
}
@media (min-width:1101px) and (max-width:1599px) {
  .design-canvas { --legible: calc(1px / var(--page-scale,1)); }
  .design-canvas .quality { font-size: max(16px,calc(14 * var(--legible))); line-height: 1.25; }
  .design-canvas .hero-actions .button,.design-canvas .about-copy .button,.design-canvas .cta .button {
    width: max-content; min-height: calc(40 * var(--legible)); height: auto;
    padding: 6px calc(15 * var(--legible)); font-size: calc(14 * var(--legible)); line-height: 1.25; }
  .design-canvas .hero-start { width: max-content; height: auto; }
  .design-canvas .hero-start small,.design-canvas .hero-start span { font-size: max(14px,calc(12 * var(--legible))); }
  .design-canvas .about-copy { top: 50%; transform: translateY(-50%); }
  .design-canvas .about-copy>p { position: static; font-size: max(16px,calc(15 * var(--legible))); line-height: 1.45; }
  .design-canvas .about-copy>.button { position: static; margin-top: 20px; }
  .design-canvas .how-intro>p,.design-canvas .how-protection p,.design-canvas .cta-copy>p { font-size: max(16px,calc(15 * var(--legible))); line-height: 1.45; }
  .design-canvas .how-metric dt,.design-canvas .how-step__details { font-size: max(16px,calc(14 * var(--legible))); line-height: 1.4; }
  .design-canvas .how-intro,.design-canvas .how-steps,.design-canvas .how-protection,.design-canvas .how-metrics dl { margin-left: auto; margin-right: auto; }
  .design-canvas .how-steps { grid-template-columns: repeat(3,max-content); justify-content: space-between; column-gap: 32px; row-gap: 42px; }
  .design-canvas .how-step h3 { height: auto; }
  .design-canvas .carousel-card__summary { font-size: calc(14 * var(--legible)); line-height: 1.4; }
  .design-canvas .carousel-card__industry,.design-canvas .carousel-card__process { font-size: calc(12 * var(--legible)); line-height: 1.4; }
  .faq-viewport { width:100%; height:auto; overflow:visible; }
  .faq-page-canvas { width:auto; transform:none; }
  .faq-page-canvas .faq { padding: 120px clamp(48px,7vw,134px) 84px; }
  .faq .faq-inner { display:grid; width:100%; max-width:1360px; margin:0 auto; grid-template-columns:minmax(240px,.6fr) minmax(0,1fr); gap:48px; }
  .faq h1 { font-size:clamp(38px,3.6vw,48px); line-height:1.04; }
  .faq .question { font-size:20px; line-height:1.35; }
  .faq .answer-inner { font-size:16px; line-height:1.55; }
  .who-viewport .who-intro__copy { font-size: max(18px,calc(15px / var(--page-scale))); line-height: 1.45; }
  .who-viewport .who-contact { width:max-content; height:auto; min-height:calc(40px / var(--page-scale)); padding-inline:20px; font-size:calc(14px / var(--page-scale)); }
}
@media (min-width:1101px) and (max-height:700px) {
  .navigation-01 .nav-flyout__panel { max-height:min(var(--nav-max-height, 100dvh), calc(100dvh - var(--header-height,72px) - 20px)); }
}
/* Above the reference size, share the extra width between the outer margins. */
@media (min-width:1921px) {
  .design-canvas,.who-canvas,.faq-page-canvas,.footer-scale { margin-inline:auto; }
  .design-viewport { background:var(--surface,#f4f4f4); }
  .footer-viewport { background:var(--snow,#f9f9f9); }
  :root[data-page-theme=dark] .footer-viewport { background:#030303; }
}
@media (min-width:1101px) {
  /* A compact RFQ can stay mounted after rotation, retaining the user's draft. */
  #m-rfq { display: none; }
}
