/* ===========================================================
   Atomic North - phone and tablet pass, site-wide

   Loaded last in the head, after touch.css. Only spacing and a few
   minimum sizes change here; no content, order or desktop layout.
   Page-level <style> blocks that print later in the body still win
   where they set the same property on the same element.
   =========================================================== */

/* ---------- vertical rhythm ----------
   The section paddings were set for desktop (96px to 112px top and
   bottom) and never scaled down, so on a phone every section had about
   200px of empty dark band around it and a page read as mostly gaps. */
/* The home page's two scroll stages keep a 146px to 150px top padding on
   subnav pages (chrome.css). That clears the fixed header while the stage is
   pinned on desktop; below 1040px the stage is not pinned, so on a phone it
   was just a 150px empty band above "Four gaps" and "Practices". */
@media (max-width: 1040px) {
  body.has-subnav .gap-in, body.has-subnav .fam-in { padding-top: 56px }
}
@media (max-width: 900px) {
  .sec   { padding: 72px 0 }
  .light { padding: 72px 0 }
  .stmt  { padding: 76px 0 }
  .cta   { padding: 80px 0 }
  .sec-head { margin-bottom: 36px }
}
@media (max-width: 600px) {
  .sec   { padding: 56px 0 }
  .light { padding: 56px 0 }
  .stmt  { padding: 60px 0 }
  .cta   { padding: 64px 0 }
  .sec-head { margin-bottom: 28px }
  .famstrip { padding-bottom: 24px }
}

/* ---------- minimum type on phones ----------
   The small uppercase kickers and card categories were 10.5px to 11px,
   under what reads comfortably on a phone held at arm's length. */
@media (max-width: 600px) {
  .nw-kicker, .post-cat, .hblog-cat, .bl-svc-fam, .nsl-cap, .art-media-cap,
  .nw-facts dt, .qrot-label, .eco-name, .sm-group h3, .legal-tbl th,
  .pf-fact span, .pf-qr, .pf-dock a, .label, .crumb, .crumb a, .crumb span {
    font-size: 12px;
  }
}

/* ---------- buttons and button rows ----------
   Two large buttons side by side do not fit a 390px screen; they wrapped
   unevenly with one full and one short. Stack them at full width. */
@media (max-width: 480px) {
  .hero-btns { flex-direction: column; align-items: stretch }
  .hero-btns .btn { width: 100%; justify-content: center }
  .cta .btn, .cta-in .btn { max-width: 100% }
}

/* ---------- tables and media never push the page sideways ---------- */
img, video, iframe, canvas { max-width: 100% }
@media (max-width: 700px) {
  .legal-tbl { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch }
}

/* ---------- big screens ----------
   The content column was a fixed 1320px. On a 1920px screen that left about
   300px empty on each side, and on 2560px about 600px, so the headline sat
   far from the edge and the type looked small for the screen. From 1500px
   the column now grows with the window (86% of it, up to 1920px), and the
   gutters and the home hero type grow with it. Header, sections and footer
   all read --shell, so they widen together and stay lined up. */
@media (min-width: 1500px) {
  :root { --shell: min(86vw, 1920px); --gutter: clamp(46px, 3vw, 72px) }
}
@media (min-width: 1700px) {
  .hero .hs .hs-h1, .hero .hs .hs-kicker + .hs-h { font-size: clamp(50px, 3.2vw, 66px) }
  .hero .hs .hs-kicker { font-size: clamp(18px, 1vw, 21px) }
  .hero .hs .hero-lead, .hero .hs .hero-bold { font-size: clamp(18.5px, 1vw, 21px); max-width: 680px }
  .hero-split .hero-in.hs { max-width: 760px }
  .hero .hs .btn-lg { height: 58px; padding: 0 34px; font-size: 16.5px }
}

/* ---------- logo ----------
   The wordmark was 172 x 26px, small next to the menu and next to the
   hero headline once the type above grows. Sized up at every width; the
   header bar keeps its height. */
.logomark { height: 32px; width: 212px }
@media (min-width: 1700px) { .logomark { height: 38px; width: 252px } }
@media (max-width: 900px)  { .logomark { height: 30px; width: 198px } }
@media (max-width: 520px)  { .logomark { height: 27px; width: 178px } }
.ftr-about .logomark { height: 36px; width: 238px }

/* ---------- large screens ----------
   The content column stopped at 1320px, so on a 1920px or 2560px monitor
   the page sat in a narrow strip with 300px to 600px empty on each side.
   The column now widens in two steps. It is the shared --shell value, so
   header, hero, sections and footer all widen together and stay aligned.
   Below 1600px nothing changes. */
@media (min-width: 1600px) {
  :root { --shell: 1480px; --gutter: 50px }
}
@media (min-width: 1800px) {
  :root { --shell: 1640px; --gutter: 56px }
  .hero-lead, .hero-bold { font-size: 20px }
  .sec-head p { font-size: 18px }
}

/* ---------- logo ----------
   26px tall was small beside the 15px menu and the red button. */
.logomark { height: 32px; width: 212px }
@media (min-width: 1800px) { .logomark { height: 36px; width: 238px } }
@media (max-width: 900px)  { .logomark { height: 28px; width: 186px } }
@media (max-width: 520px)  { .logomark { height: 25px; width: 166px } }

/* ---------- very large screens (2400px and up: 2.5K, 4K, 5K, 8K, TVs) ----------
   Every size on this site is set in px for a design that tops out around
   1920px. On a 3840 x 2160 screen at 100% scaling that put the whole page in
   a narrow strip of small type with acres of dark space around it, and the
   two pinned scroll stages read as screens of nothing.

   From 2400px the page is scaled as a whole with CSS zoom, in steps, so the
   layout a 4K screen shows is the 1920px layout at twice the size: same
   proportions, same line lengths, sharp text. --z carries the factor.

   Viewport units are multiplied by zoom as well (100vh inside a 2x zoom is
   two screens tall), so the few rules that size layout in vh or vw are
   divided back by --z below. vh and vw inside clamp() with a px cap are left
   alone: they reach the cap at these widths and the cap scales correctly.
   Media queries are not affected by zoom; they still see the real width. */
:root{ --z:1 }
@media (min-width:2400px){ html{ zoom:1.25 } :root{ --z:1.25 } }
@media (min-width:2880px){ html{ zoom:1.5 } :root{ --z:1.5 } }
@media (min-width:3200px){ html{ zoom:1.6667 } :root{ --z:1.6667 } }
@media (min-width:3600px){ html{ zoom:1.875 } :root{ --z:1.875 } }
@media (min-width:3800px){ html{ zoom:2 } :root{ --z:2 } }
@media (min-width:4800px){ html{ zoom:2.5 } :root{ --z:2.5 } }
@media (min-width:5600px){ html{ zoom:2.9167 } :root{ --z:2.9167 } }
@media (min-width:7000px){ html{ zoom:3.6 } :root{ --z:3.6 } }
@media (min-width:2400px){
  .gapstage-track{ height:calc(400vh / var(--z)) }
  .gapstage-pin{ height:calc(100vh / var(--z)) }
  .famstage-track{ height:calc(300vh / var(--z)) }
  .famstage-pin{ height:calc(100vh / var(--z)) }
  .fam-right{ padding-top:calc(7vh / var(--z)) }
  .indplate{ margin-right:calc(-50vw / var(--z) + 50%); height:clamp(340px, calc(42vw / var(--z)), 580px) }
  .hero-in, .hero-sub .hero-in{
    max-width:min(830px, calc(51.5vw / var(--z) - max(46px, (100vw / var(--z) - 1320px) / 2 + 46px) - 20px)) }
  .mega-in{ max-height:calc(100vh / var(--z) - var(--hdr-h) - var(--sub-h) - 8px) }
  .lbx-fig img{ max-height:calc(100vh / var(--z) - 190px) }
}
