/* ===== One typeface only: no serif accents, no mono — Geist everywhere ===== */
:root{--font-serif:'Geist','Inter',system-ui,sans-serif;--font-mono:'Geist','Inter',system-ui,sans-serif}
em.accent,.accent em,h1 em,h2 em,h3 em,h4 em,.display-xl em,.display-l em,.display-m em,.pull,blockquote{font-family:inherit!important;font-style:normal!important;font-weight:inherit!important;letter-spacing:inherit!important}
code,kbd,samp,pre{font-family:'Geist','Inter',system-ui,sans-serif}

/* ============================================================
   SIBIN — responsive layer
   Loaded LAST on every page so it refines the base rules.

   Device bands:
     <=420      small phone
     421-560    phone
     561-768    large phone / small tablet portrait
     769-900    tablet portrait  (nav collapses at 900)
     901-1180   tablet landscape / small laptop (MacBook Air 1280 logical)
     1181-1600  laptop / desktop
     1601-1919  large desktop
     >=1920     large monitor / 4K
   ============================================================ */

/* ---------- 1. Fluid container: scale UP on large monitors ----------
   Every page derives its gutters from
   `max(24px, calc((100vw - var(--max-w)) / 2))`, so widening --max-w
   automatically re-flows nav, footer, sections and hero copy. */
@media (min-width: 1601px) { :root { --max-w: 1440px; } }
@media (min-width: 1920px) { :root { --max-w: 1560px; } }
@media (min-width: 2400px) { :root { --max-w: 1720px; } }

/* On very large screens the base body size should lift slightly so
   long-form copy doesn't shrink into the middle of the display. */
@media (min-width: 1920px) {
  body { font-size: 17px; }
  .body-copy { font-size: 18px; }
}

/* ---------- 2. Tablet landscape / small laptop (901-1180) ----------
   4- and 5-column grids are too tight here but don't collapse until 900. */
@media (min-width: 901px) and (max-width: 1180px) {
  .builds-rail,
  .impact-cards,
  .labs-grid { grid-template-columns: 1fr 1fr !important; }
  .builds-rail { gap: 18px; }
  .labs-grid { gap: 40px 24px; }
  .foff-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-grid,
  .eco-snap,
  .feature-grid,
  .stories-grid { grid-template-columns: 1fr 1fr; }
  .four-moves { grid-template-columns: 1fr 1fr; }
  .scale-metrics { gap: clamp(14px, 2vw, 28px); }
  /* copy column vs. the GL object: keep copy clear of the object */
  .scene-copy { width: min(560px, 54vw); }
}

/* the 4-card ecosystem rail is 2x2 here, so it needs its own height budget */
@media (min-width: 901px) and (max-width: 1180px) {
  .stack-section { padding-top: clamp(84px, 10vh, 108px); }
  .eco-card { padding: clamp(12px, 2vh, 18px); }
  .eco-card p { font-size: clamp(11px, 1.5vh, 13px); }
  .eco-ico { width: clamp(24px, 4vh, 34px); height: clamp(24px, 4vh, 34px); }
}

/* Short-and-wide (e.g. 1280x720 laptop, split screens): a 2x2 rail costs a
   whole extra row of height inside the pin, so go back to one row. */
@media (min-width: 901px) and (max-width: 1180px) and (max-height: 760px) {
  .builds-rail { grid-template-columns: repeat(4, 1fr) !important; gap: 12px; }
  .eco-card { padding: clamp(10px, 1.8vh, 16px); }
  .eco-card h3 { font-size: clamp(13px, 2vh, 16px); }
  .eco-card p { font-size: clamp(10.5px, 1.45vh, 12.5px); line-height: 1.4; }
  .eco-ico { width: clamp(22px, 3.6vh, 28px); height: clamp(22px, 3.6vh, 28px); }
  .eco-card .eyebrow { font-size: clamp(9px, 1.3vh, 10.5px); }
  .stack-section { gap: clamp(12px, 2.4vh, 24px); }
}

/* ---------- 3. Tablet portrait (769-900) ---------- */
@media (min-width: 769px) and (max-width: 900px) {
  .foff-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- 4. Mobile: pinned sections must still fit ----------
   The homepage pins its scene sections on every width. A pinned section is
   position:fixed and cannot scroll internally, so anything past 100vh is
   unreachable. Scale the internals with vh on small screens too. */
@media (max-width: 900px) {
  .scene-section,
  .stack-section {
    min-height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    padding-top: clamp(84px, 12vh, 112px);
    padding-bottom: clamp(20px, 5vh, 48px);
  }
  .scene-section .scene-copy,
  .stack-section .scene-copy { width: 100%; max-width: 100%; }
  .scene-copy .display-l,
  .scene-copy h2 { font-size: clamp(24px, 4.6vh, 40px); line-height: 1.08; }
  .scene-copy .body-copy { font-size: clamp(13px, 1.9vh, 16px); line-height: 1.5; margin-top: clamp(8px, 1.6vh, 18px); }
  .scene-copy .eyebrow { margin-bottom: clamp(8px, 1.6vh, 20px); }
  .scene-copy .btn-row { margin-top: clamp(12px, 2.2vh, 26px); }

  /* ecosystem cards: 2x2 inside the pin */
  .builds-rail { grid-template-columns: 1fr 1fr; gap: clamp(8px, 1.6vh, 16px); }
  .eco-card { padding: clamp(10px, 1.8vh, 18px); }
  .eco-card h3 { font-size: clamp(13px, 2vh, 17px); }
  .eco-card p { font-size: clamp(10.5px, 1.5vh, 13px); line-height: 1.4; }
  .eco-ico { width: clamp(22px, 3.8vh, 32px); height: clamp(22px, 3.8vh, 32px); }
  .eco-card .eyebrow { font-size: clamp(9px, 1.3vh, 11px); }

  /* national-scale metric row */
  .scale-metrics { gap: clamp(10px, 2.4vw, 22px) clamp(12px, 3vw, 28px); }
  .scale-metrics .metric .val { font-size: clamp(19px, 3.4vh, 34px); }
  .scale-metrics .metric .lbl { font-size: clamp(9px, 1.3vh, 11.5px); line-height: 1.3; }

  /* mobile nav safe area for the two text-led scenes */
  .prologue { padding-top: clamp(84px, 12vh, 108px); }
  .prologue-lede { font-size: clamp(13.5px, 1.9vh, 16px); }

  /* §01 hero is pinned too — same 100vh budget */
  .hero {
    min-height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    padding-top: clamp(84px, 12vh, 112px);
  }
  .hero-inner { max-width: 100%; padding-top: 0; padding-bottom: clamp(16px, 4vh, 48px); }
  .hero h1 { font-size: clamp(24px, 4.6vh, 40px); line-height: 1.08; max-width: 18ch; }
  .hero .hero-sub { font-size: clamp(13px, 1.9vh, 16px); line-height: 1.5; }
  .hero .btn-row { margin-top: clamp(12px, 2.2vh, 26px); }
}

/* ---------- 5. Phone (<=560) ---------- */
@media (max-width: 560px) {
  .builds-rail { grid-template-columns: 1fr; gap: 8px; }
  /* one card at a time is unreadable stacked inside a pin — show the rail
     as a swipeable row instead of a grid that overflows the pin */
  .builds-rail-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .builds-rail-wrap::-webkit-scrollbar { display: none; }
  .builds-rail {
    grid-template-columns: repeat(4, 78vw);
    gap: 12px;
  }
  .eco-card { scroll-snap-align: start; }

  .scale-metrics { flex-wrap: wrap; }
  .scale-metrics .metric { flex: 1 1 40%; }

  .btn-row { flex-wrap: wrap; gap: 10px; }
  .btn-row .btn { flex: 1 1 auto; text-align: center; justify-content: center; }
}

/* ---------- 6. Small phone (<=420) ---------- */
@media (max-width: 420px) {
  :root { --gutter: 18px; }
  .scene-copy .display-l,
  .scene-copy h2 { font-size: clamp(22px, 4.2vh, 30px); }
  .display-l { font-size: clamp(26px, 8.4vw, 34px); }
  .display-m { font-size: clamp(21px, 6.6vw, 27px); }
  .builds-rail { grid-template-columns: repeat(4, 84vw); }
  .scale-metrics .metric { flex: 1 1 100%; }
  .scale-metrics .metric .val { font-size: clamp(20px, 7vw, 28px); }
  .foff-grid, .footer-grid { grid-template-columns: 1fr; }
  .nav-logo svg, .nav-logo img { max-width: 118px; }
}

/* ---------- 7. Landscape phone / very short viewports ----------
   Pinned scenes have almost no vertical room here. */
@media (max-width: 950px) and (max-height: 500px) {
  .scene-section,
  .stack-section {
    padding-top: 68px;
    padding-bottom: 14px;
  }
  .scene-copy .display-l,
  .scene-copy h2 { font-size: clamp(18px, 5.4vh, 26px); }
  .scene-copy .body-copy { font-size: 12px; line-height: 1.4; }
  .scene-copy .eyebrow { margin-bottom: 6px; font-size: 9.5px; }
  .scene-copy .btn-row { margin-top: 10px; }
  .eco-card p { display: none; }
  .prologue-lede { display: none; }
  .section-hud { display: none; }
  .hero { padding-top: 68px; }
  .hero h1 { font-size: clamp(18px, 5.4vh, 26px); }
  .hero .hero-sub { font-size: 12px; line-height: 1.4; }
  .hero .btn-row { margin-top: 10px; }
  .scale-metrics .metric .lbl { font-size: 9px; }
}

/* ---------- 8. Touch devices: no hover-dependent affordances ----------
   Card reveals that only exist on :hover must be visible by default. */
@media (hover: none) {
  .impact-card:hover,
  .eco-card:hover { transform: none; }
  .kteam-row { opacity: 1 !important; }
  .fp-node .fp-card { opacity: 1; }
}

/* ---------- 9. Subpage heroes ---------- */
@media (max-width: 900px) {
  .subpage-hero { padding-top: 150px; padding-bottom: 72px; }
  .hero-banner { min-height: 86vh; padding-bottom: 14vh; }
  .hero-banner .hb-inner h1 { font-size: clamp(28px, 8vw, 44px); }
}
@media (max-width: 560px) {
  .subpage-hero { padding-top: 132px; padding-bottom: 56px; }
  .hero-banner { min-height: 82vh; padding-bottom: 12vh; }
  .subpage-hero .hero-particles { height: 180px; }
}
@media (min-width: 1601px) {
  .subpage-hero { padding-top: 250px; padding-bottom: 140px; }
}

/* ---------- 10. Impact horizontal rail + story pages ---------- */
@media (min-width: 901px) and (max-width: 1180px) {
  .istory-card { width: min(640px, 72vw); }
  .story-gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .istory-card { width: 90vw; }
  .story-meta { grid-template-columns: 1fr 1fr; gap: 14px; }
  .story-body { grid-template-columns: 1fr; }
}

/* ---------- 11. About page ---------- */
@media (min-width: 901px) and (max-width: 1180px) {
  .footprint-wrap { grid-template-columns: 1fr; gap: 32px; }
  .who-stats { gap: 24px; }
}
@media (max-width: 560px) {
  .journey li { grid-template-columns: 1fr; gap: 6px; }
  .vm-card { padding: 24px; }
  .om-grid { grid-template-columns: 1fr; }
}

/* ---------- 12. Wide-monitor comfort caps ----------
   Keep measure readable instead of letting lines run the full 1720px. */
@media (min-width: 1601px) {
  .body-copy { max-width: 62ch; }
  .section-lede { max-width: 64ch; }
}

/* ---------- 10. Footprint map on phones ----------
   The hover cards sit beside each dot and run off-screen for the eastern
   states; the state list beside the map carries the same details. */
@media (max-width: 700px) {
  .fp-tip { display: none; }
}
