/* =========================================================
   BLOX ENGINEERING — shared stylesheet
   Design language: structural drawings.
   Ink-navy + cool concrete + beacon amber.
   Archivo (display) / IBM Plex Sans (body) / IBM Plex Mono (data)
   ========================================================= */

:root{
  --ink:      #0C1E2B;   /* deepest blueprint navy */
  --ink-2:    #10293A;   /* section navy */
  --ink-3:    #17384F;   /* raised navy panel */
  --steel:    #47606F;   /* mid slate */
  --concrete: #E7EAED;
  --gold:     #E0A458;   /* cool light concrete */
  --paper:    #F4F6F7;   /* near-white cool */
  --white:    #FFFFFF;

  --line:      #CED5DA;              /* hairline on light */
  --line-soft: #E1E5E8;
  --line-dark: rgba(198,215,227,.16);/* hairline on dark */

  --amber:      #5C93BA;  /* brand steel-blue — the single accent */
  --amber-deep: #3A6684;
  --rust:       #B7541F;  /* used only in structural SVG (rebar) */

  --text:        #15242F; /* body on light */
  --text-soft:   #4E5D67;
  --text-mute:   #74828B;
  --invert:      #EAF0F4; /* body on dark */
  --invert-soft: #9DB2C0;
  --invert-mute: #6C8394;

  --ok: #2E7D5B;
  --warn: #3A6684;

  --maxw: 1200px;
  --gut: clamp(20px, 5vw, 64px);

  --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r: 4px;   /* engineering = tight radii */
  --r-lg: 8px;

  --ease: cubic-bezier(.4,.02,.2,1);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:.001ms !important; transition-duration:.001ms !important; }
}

body{
  margin:0;
  font-family:var(--f-body);
  color:var(--text);
  background:var(--paper);
  line-height:1.6;
  font-size:17px;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

img{ max-width:100%; display:block; }
a{ color:inherit; }
h1,h2,h3,h4{ font-family:var(--f-display); font-weight:800; line-height:1.05; letter-spacing:-.01em; margin:0; }
p{ margin:0 0 1em; }

.wrap{ max-width:var(--maxw); margin:0 auto; padding-inline:var(--gut); }
.narrow{ max-width:820px; }

/* ---------- utility: mono eyebrow / labels ---------- */
.eyebrow{
  font-family:var(--f-mono);
  font-size:12px;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--amber-deep);
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin:0 0 18px;
  font-weight:500;
}
.eyebrow::before{
  content:"";
  width:26px; height:1px; background:var(--amber);
  display:inline-block;
}
.dark .eyebrow{ color:var(--amber); }

/* ---------- buttons ---------- */
.btn{
  --bg:var(--amber); --fg:var(--ink);
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--f-mono); font-weight:600; font-size:14px;
  letter-spacing:.04em;
  padding:14px 22px;
  background:var(--bg); color:var(--fg);
  border:1px solid var(--bg);
  border-radius:var(--r);
  text-decoration:none;
  cursor:pointer;
  transition:transform .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
}
.btn:hover{ transform:translateY(-2px); background:#78ABCE; }
.btn--ghost{ --bg:transparent; --fg:var(--ink); border-color:var(--line); }
.btn--ghost:hover{ background:var(--white); border-color:var(--ink); }
.dark .btn--ghost{ --fg:var(--invert); border-color:var(--line-dark); }
.dark .btn--ghost:hover{ background:rgba(255,255,255,.05); border-color:var(--invert); }
.btn--lg{ padding:17px 28px; font-size:15px; }
.btn .arw{ font-family:var(--f-body); transition:transform .18s var(--ease); }
.btn:hover .arw{ transform:translateX(3px); }

/* ---------- header / nav ---------- */
.site-head{
  position:sticky; top:0; z-index:60;
  background:rgba(12,30,43,.86);
  backdrop-filter:saturate(140%) blur(10px);
  border-bottom:1px solid var(--line-dark);
  color:var(--invert);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  height:66px;
}
.brand{ display:flex; align-items:center; gap:11px; text-decoration:none; color:var(--invert); }
.brand svg{ display:block; }
.brand-mark{ display:block; height:35px; width:auto; }
.brand b{ font-family:var(--f-display); font-weight:800; font-size:20px; letter-spacing:.02em; }
.brand .tag{
  font-family:var(--f-mono); font-size:9.5px; letter-spacing:.18em;
  color:var(--invert-mute); text-transform:uppercase; display:block; margin-top:-2px;
}
.nav-links{ display:flex; align-items:center; gap:4px; list-style:none; margin:0; padding:0; }
.nav-links a{
  font-family:var(--f-mono); font-size:13px; letter-spacing:.03em;
  text-decoration:none; color:var(--invert-soft);
  padding:9px 13px; border-radius:var(--r);
  transition:color .15s var(--ease), background .15s var(--ease);
}
.nav-links a:hover{ color:var(--invert); background:rgba(255,255,255,.06); }
.nav-links a[aria-current="page"]{ color:var(--amber); }
.nav-cta{ display:flex; align-items:center; gap:14px; }
.nav-phone{
  font-family:var(--f-mono); font-size:13.5px; text-decoration:none; color:var(--invert);
  display:flex; align-items:center; gap:7px; white-space:nowrap;
}
.nav-phone:hover{ color:var(--amber); }
.nav-toggle{ display:none; background:none; border:1px solid var(--line-dark); color:var(--invert);
  width:42px; height:38px; border-radius:var(--r); cursor:pointer; align-items:center; justify-content:center; }
.nav-toggle svg{ display:block; }

@media (max-width: 1010px){
  .nav-toggle{ display:inline-flex; }
  .nav-links, .nav-cta .nav-phone{ display:none; }
  .site-head.open .nav-links{
    display:flex; flex-direction:column; align-items:stretch;
    position:absolute; top:66px; left:0; right:0;
    background:var(--ink); border-bottom:1px solid var(--line-dark);
    padding:12px var(--gut) 22px; gap:2px;
  }
  .site-head.open .nav-links a{ padding:13px 4px; font-size:15px; border-bottom:1px solid var(--line-dark); }
  .site-head.open .nav-cta .nav-phone{ display:flex; }
}

/* ---------- generic section ---------- */
.section{ padding-block:clamp(56px, 8vw, 104px); position:relative; }
.section.dark{ background:var(--ink); color:var(--invert); }
.section.ink2{ background:var(--ink-2); color:var(--invert); }
.section.concrete{ background:var(--concrete); }
.section.paper{ background:var(--paper); }
.dark h1,.dark h2,.dark h3,.ink2 h1,.ink2 h2,.ink2 h3{ color:#fff; }
.dark p, .ink2 p{ color:var(--invert-soft); }

.sec-head{ max-width:760px; margin-bottom:52px; }
.sec-head h2{ font-size:clamp(29px, 4.4vw, 46px); }
.sec-head p{ font-size:19px; color:var(--text-soft); margin-top:16px; }
.dark .sec-head p, .ink2 .sec-head p{ color:var(--invert-soft); }

/* blueprint grid backdrop */
.grid-bg{ position:relative; }
.grid-bg::before{
  content:""; position:absolute; inset:0; pointer-events:none;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size:44px 44px;
  -webkit-mask-image:radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 78%);
          mask-image:radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 78%);
  opacity:.55;
}

/* ---------- dimension-line divider (signature) ---------- */
.datum{
  display:flex; align-items:flex-end; gap:0;
  width:100%; margin:0; padding:0; list-style:none;
}
.datum li{
  flex:1; position:relative; text-align:center;
  padding-top:26px;
  font-family:var(--f-mono); font-size:12px; letter-spacing:.1em;
  color:var(--text-mute);
}
.datum li::before{ /* the horizontal dimension line */
  content:""; position:absolute; top:12px; left:0; right:0; height:1px;
  background:var(--line);
}
.datum li::after{ /* tick */
  content:""; position:absolute; top:6px; left:50%; width:1px; height:13px;
  background:var(--steel); transform:translateX(-.5px);
}
.datum li:first-child::before{ left:50%; }
.datum li:last-child::before{ right:50%; }
.datum li b{ display:block; font-family:var(--f-display); font-size:clamp(22px,3vw,30px);
  color:var(--ink); letter-spacing:0; margin-top:4px; }
.datum li .u{ color:var(--amber-deep); }
.dark .datum li{ color:var(--invert-mute); }
.dark .datum li::before{ background:var(--line-dark); }
.dark .datum li::after{ background:var(--steel); }
.dark .datum li b{ color:#fff; }
.dark .datum li .u{ color:var(--amber); }

/* ---------- cards ---------- */
.card{
  background:var(--white); border:1px solid var(--line);
  border-radius:var(--r-lg); padding:30px;
  transition:transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.card:hover{ transform:translateY(-3px); box-shadow:0 18px 40px -24px rgba(12,30,43,.5); border-color:var(--steel); }
.dark .card, .ink2 .card{ background:var(--ink-3); border-color:var(--line-dark); }
.dark .card:hover{ border-color:var(--steel); }

.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.grid-2{ display:grid; grid-template-columns:repeat(2,1fr); gap:22px; }
.grid-4{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
@media (max-width:900px){ .grid-3,.grid-4{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:620px){ .grid-2,.grid-3,.grid-4{ grid-template-columns:1fr; } }

.svc-num{ font-family:var(--f-mono); font-size:12px; color:var(--amber-deep); letter-spacing:.12em; }
.card h3{ font-size:22px; margin:14px 0 10px; }
.dark .card h3{ color:#fff; }
.card p{ color:var(--text-soft); font-size:15.5px; margin:0; }
.dark .card p{ color:var(--invert-soft); }
.card ul{ margin:14px 0 0; padding:0; list-style:none; }
.card ul li{ font-family:var(--f-mono); font-size:13px; color:var(--text-soft);
  padding:7px 0; border-top:1px solid var(--line-soft); }
.dark .card ul li{ color:var(--invert-soft); border-color:var(--line-dark); }
.card ul li::before{ content:"— "; color:var(--amber-deep); }

/* ---------- footer ---------- */
.site-foot{ background:var(--ink); color:var(--invert-soft); padding-block:64px 30px; border-top:3px solid var(--amber); }
.foot-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:38px; }
@media (max-width:820px){ .foot-grid{ grid-template-columns:1fr 1fr; gap:30px; } }
@media (max-width:480px){ .foot-grid{ grid-template-columns:1fr; } }
.foot-grid h4{ font-family:var(--f-mono); font-weight:600; font-size:12px; letter-spacing:.16em;
  text-transform:uppercase; color:var(--invert-mute); margin-bottom:16px; }
.foot-grid a{ color:var(--invert-soft); text-decoration:none; display:block; padding:5px 0; font-size:15px; }
.foot-grid a:hover{ color:var(--amber); }
.foot-brand b{ font-family:var(--f-display); font-size:24px; color:#fff; letter-spacing:.02em; }
.foot-logo{ display:flex; align-items:center; gap:12px; margin-bottom:6px; }
.foot-logo img{ display:block; }
.foot-brand p{ font-size:14.5px; margin-top:12px; max-width:34ch; }
.foot-bottom{ border-top:1px solid var(--line-dark); margin-top:44px; padding-top:22px;
  display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;
  font-family:var(--f-mono); font-size:12px; color:var(--invert-mute); }
.foot-bottom a{ color:var(--invert-mute); }

/* ---------- reveal on scroll ---------- */
.reveal{ opacity:0; transform:translateY(18px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){ .reveal{ opacity:1; transform:none; } }

/* ---------- misc pills / notes ---------- */
.pill{ display:inline-flex; align-items:center; gap:8px; font-family:var(--f-mono); font-size:12px;
  letter-spacing:.06em; padding:6px 12px; border:1px solid var(--line); border-radius:100px; color:var(--text-soft); }
.dark .pill{ border-color:var(--line-dark); color:var(--invert-soft); }
.pill .dot{ width:7px; height:7px; border-radius:100px; background:var(--amber); }

.note{ border-left:3px solid var(--amber); background:rgba(92,147,186,.08);
  padding:16px 20px; border-radius:0 var(--r) var(--r) 0; font-size:15.5px; color:var(--text-soft); }
.note strong{ color:var(--text); }
.dark .note{ background:rgba(92,147,186,.09); color:var(--invert-soft); }
.dark .note strong{ color:#fff; }

/* responsive split layouts */
.hero-split{ display:grid; grid-template-columns:1.15fr .85fr; gap:48px; align-items:center; }
@media (max-width:860px){ .hero-split{ grid-template-columns:1fr; gap:30px; } .hero-split svg{ max-width:320px; } }
.two-col{ display:grid; grid-template-columns:1.2fr .8fr; gap:48px; align-items:start; }
@media (max-width:820px){ .two-col{ grid-template-columns:1fr; gap:28px; } }

/* skip link */
.skip{ position:absolute; left:-999px; top:0; background:var(--amber); color:var(--ink);
  padding:10px 16px; font-family:var(--f-mono); z-index:100; border-radius:0 0 var(--r) 0; }
.skip:focus{ left:0; }

:focus-visible{ outline:2px solid var(--amber); outline-offset:3px; }

/* START HERE — guides & tools band on the homepage */
.start-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
@media (max-width:900px){ .start-grid{ grid-template-columns:1fr; } }
.start-card{ display:block; text-decoration:none; background:var(--white);
  border:1px solid var(--line); border-top:3px solid var(--amber); border-radius:var(--r-lg);
  padding:22px 22px 20px; transition:transform .16s, box-shadow .16s, border-color .16s; }
.start-card:hover{ transform:translateY(-3px); box-shadow:0 12px 28px rgba(12,30,43,.10); border-color:var(--amber); }
.start-card .sc-num{ font-family:var(--f-mono); font-size:12px; letter-spacing:.1em; color:var(--text-mute); }
.start-card h3{ font-family:var(--f-display); font-weight:800; font-size:20px; color:var(--text); margin:8px 0 8px; }
.start-card p{ font-size:15px; line-height:1.5; color:var(--text-soft); margin:0 0 14px; }
.start-card .sc-go{ font-family:var(--f-mono); font-size:13px; font-weight:600; color:var(--amber-deep); }
.start-card:hover .sc-go{ text-decoration:underline; }
/* four start-cards read better 2x2 than 4-across */
.start-grid--4{ grid-template-columns:repeat(2,1fr); }
@media (min-width:1180px){ .start-grid--4{ grid-template-columns:repeat(4,1fr); } }
@media (max-width:900px){ .start-grid--4{ grid-template-columns:1fr; } }

/* header: 7 nav items + brand + CTA must all fit on one line without overflowing */
.nav{ gap:18px; }
.brand{ flex:none; margin-right:10px; }
.nav-cta{ flex:none; }
.nav-links{ flex:0 1 auto; min-width:0; flex-wrap:nowrap; gap:0; }
.nav-links li{ flex:none; }
.nav-links a{ white-space:nowrap; padding:9px 9px; font-size:12px; letter-spacing:.01em; }
@media (max-width:1240px){ .nav-links a{ padding:9px 7px; font-size:11.5px; } .nav{ gap:12px; } }
@media (max-width:1080px){ .nav-links a{ padding:8px 5px; font-size:11px; } }

/* ===== HEADER: make brand + 7 nav items + CTA fit at every width ===== */
/* the phone is the first thing to go — the CTA button already links to contact */
@media (max-width:1230px){ .nav-cta .nav-phone{ display:none; } }
/* tighten the CTA before the nav collapses */
@media (max-width:1120px){
  .site-head .nav-cta .btn{ padding:10px 14px; font-size:12.5px; }
  .site-head .nav-cta .btn .arw{ display:none; }
}
/* small screens: burger carries the nav, so keep the header light */
@media (max-width:560px){
  .brand .tag{ display:block; font-size:8.5px; letter-spacing:.14em; }  /* keep the full lockup on phones */
  .brand b{ font-size:17px; line-height:1.05; }
  .brand{ gap:8px; }
  .brand-mark{ height:30px; }
  .site-head .nav-cta .btn{ padding:9px 12px; font-size:12px; }
}
@media (max-width:640px){
  /* the phone number is the single most valuable control on a phone.
     It must live in the header, not behind the burger. Icon-only to save room. */
  .site-head .nav-phone{
    display:inline-flex !important; align-items:center; justify-content:center;
    width:44px; height:44px; padding:0; border-radius:var(--r);
    background:rgba(255,255,255,.08); font-size:0; text-decoration:none;
  }
  .site-head .nav-phone::before{ content:"\260E"; font-size:19px; color:var(--amber); line-height:1; }
  .site-head .nav-cta{ display:flex; align-items:center; gap:8px; }
}
@media (max-width:400px){
  .site-head .nav-cta .btn{ display:none; }   /* burger menu already has Contact */
}

/* nav: single line, and keep the phone number visible on desktop */
.nav-links a{ white-space:nowrap; padding:9px 9px; font-size:12px; }
@media (max-width:1240px){ .nav-links a{ padding:9px 7px; font-size:11.5px; } }

/* ===== HERO: the five ways into the site ===== */
/* hero: intro block presenting the resource cards */
#hero .hero-split{ align-items:end; }   /* text column bottoms out flush with the graphic — no centering slack */
#hero .hero-split p:last-child{ margin-bottom:0; }
.hero-tools{ margin-top:16px; max-width:640px; }
.hero-tools h2{ font-family:var(--f-display); color:#fff; letter-spacing:-.01em;
  font-size:clamp(21px,2.5vw,29px); margin:0; line-height:1.2; }

.hero-nav{ display:grid; grid-template-columns:repeat(5,1fr); gap:12px; margin-top:20px; max-width:none; }
.hero-nav .hn{
  display:flex; flex-direction:column; gap:4px; text-decoration:none;
  background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.14);
  border-radius:14px; padding:14px 16px; transition:.16s var(--ease);
}
.hero-nav .hn:hover{ background:rgba(255,255,255,.10); border-color:var(--amber); transform:translateY(-2px); }
.hero-nav .hn svg{ width:30px; height:30px; margin-bottom:4px; }
.hero-nav .hn-t{ font-family:var(--f-display); font-weight:800; font-size:15.5px; color:#fff; line-height:1.2; }
.hero-nav .hn-s{ font-size:12.5px; line-height:1.4; color:var(--invert-mute); }
.hero-nav .hn-go{ margin-top:6px; font-family:var(--f-mono); font-size:12.5px; font-weight:600; color:var(--ink); }

/* Calculators leads — it is the one that gives them a number about their own building */
.hero-nav .hn--primary{
  background:var(--amber); border-color:var(--amber);
  justify-content:flex-start;
}
.hero-nav .hn--primary:hover{ background:#6FA6CC; border-color:#6FA6CC; }
.hero-nav .hn--primary svg{ width:34px; height:34px; }
.hero-nav .hn--primary .hn-t{ font-size:17px; }
.hero-nav .hn--primary .hn-s{ color:rgba(12,30,43,.78); }

/* Audience row: two cards below the board cards, for the other two audiences */
.hero-aud{ display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:12px; }
.hero-aud .ha{
  display:flex; align-items:center; gap:14px; text-decoration:none;
  background:rgba(255,255,255,.05); border:1px solid rgba(111,166,204,.34);
  border-radius:14px; padding:14px 16px; transition:.16s var(--ease);
}
.hero-aud .ha:hover{ background:rgba(255,255,255,.10); border-color:#6FA6CC; transform:translateY(-2px); }
.hero-aud .ha svg{ width:32px; height:32px; flex:0 0 auto; }
.hero-aud .ha-txt{ display:flex; flex-direction:column; gap:2px; flex:1; min-width:0; }
.hero-aud .ha-arw{ font-family:var(--f-mono); font-size:16px; color:#8FB8D4; flex:0 0 auto; }
@media (max-width:620px){ .hero-aud{ grid-template-columns:1fr; } }

@media (max-width:1180px){ .hero-nav{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:900px){
  .hero-nav{ grid-template-columns:1fr 1fr; max-width:none; }
  .hero-nav .hn--primary{ grid-column:1 / -1; }
}
@media (max-width:520px){ .hero-nav{ grid-template-columns:1fr; } }

/* "A new study lowers the number" — clickable lever cards linking to sirs.html */
.lever{
  display:block; text-decoration:none; color:inherit;
  border-left:3px solid var(--amber);
  padding:6px 10px 6px 16px; border-radius:0 4px 4px 0;
  transition:transform .18s ease, background .18s ease, border-left-width .18s ease;
  position:relative;
}
.lever:hover, .lever:focus-visible{
  transform:translateX(5px);
  background:rgba(255,255,255,.05);
  border-left-width:5px;
}
.lever .lever-t{
  color:#fff; font-family:var(--f-display); font-size:16.5px;
  display:flex; align-items:baseline; gap:8px;
}
.lever .lever-n{ font-family:var(--f-mono); font-size:12.5px; color:var(--amber); }
.lever .lever-go{
  margin-left:auto; color:var(--amber); font-size:15px;
  opacity:0; transform:translateX(-4px);
  transition:opacity .18s ease, transform .18s ease;
}
.lever:hover .lever-go, .lever:focus-visible .lever-go{ opacity:1; transform:translateX(0); }
.lever p{ margin:3px 0 0; font-size:14px; }
.lever .lever-cite{
  font-family:var(--f-mono); font-size:11px; letter-spacing:.04em;
  color:var(--invert-mute); white-space:nowrap;
}
@media (prefers-reduced-motion:reduce){
  .lever, .lever .lever-go{ transition:none; }
  .lever:hover{ transform:none; }
}


/* ============================================================
   MOBILE POLISH (<=768px)
   Everything here is scoped to phones. Desktop is untouched.
   ============================================================ */
@media (max-width:768px){
  /* touch targets — Apple/WCAG minimum is 44px */
  .site-foot a{ display:block; padding:11px 0; min-height:44px; box-sizing:border-box; }
  .btn{ min-height:46px; }
  .nav-toggle{ min-width:44px; min-height:44px; }
  .tool-btn{ min-height:44px; }
  .brand{ min-height:44px; }

  /* iOS Safari zooms the page when a focused input is under 16px */
  input, select, textarea{ font-size:16px; }

  /* nothing smaller than 13.5px for reading text on a phone */
  label, .hint, .sc-note{ font-size:13.5px; }
  .sc-title{ font-size:12px; }

  /* jump-chips and breadcrumbs act as buttons — give them button-sized targets.
     (Links inside a sentence are deliberately left alone: WCAG exempts inline
     text links, and padding them out would break line spacing.) */
  a.pill{ min-height:44px; display:inline-flex; align-items:center; }
  .crumbs a{ min-height:44px; display:inline-flex; align-items:center; padding:0 2px; }

  /* a link that is the only thing in its paragraph is a call to action, not prose */
  p > a:only-child{ display:inline-flex; align-items:center; min-height:44px; }

  /* the 01-11 section jumps inside the orientation cards, the expand-all control,
     and the big contact links are all controls, not prose */
  .who-card a,
  .guide-controls button, .guide-controls a,
  a[href^="tel:"], a[href^="mailto:"]{ display:inline-flex; align-items:center; min-height:44px; padding:0 4px; }

  /* ⚠ The rule above is GLOBAL and matches the footer's phone and email links too,
     overriding `.site-foot a{display:block}` (same specificity, declared later).
     Result: the footer's phone and email flowed SIDE BY SIDE on every page.
     This is the second time a tap-target rule has broken the footer — see plan §0.1.
     Re-assert block inside the footer. Do not delete this. */
  .site-foot a[href^="tel:"],
  .site-foot a[href^="mailto:"]{ display:block; padding:11px 0; }
}




/* Exemption-checker page: on a phone the checker must come FIRST — the sidebar of
   tools and guides is what a reader wants AFTER they have their answer. */
@media (max-width:920px){
  #checker-layout{ display:grid; }
  #checker-layout .calc-main{ order:1; }
  #checker-layout .calc-side{ order:2; margin-top:30px; }
}


/* prominent inline next-step card (exemption checker -> SIRS page) */
.next-card{
  display:block; text-decoration:none; margin-top:38px;
  background:var(--amber); color:var(--ink);
  border:2px solid transparent; border-radius:var(--r-lg);
  padding:22px 24px; max-width:74ch;
  transition:transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.next-card:hover, .next-card:focus-visible{
  background:#6FA6CC; transform:translateY(-2px);
  box-shadow:0 14px 30px -18px rgba(12,30,43,.55);
}
.next-card .nc-k{
  display:block; font-family:var(--f-mono); font-size:11px; letter-spacing:.16em;
  text-transform:uppercase; color:rgba(12,30,43,.72); margin-bottom:7px;
}
.next-card strong{
  display:block; font-family:var(--f-display); font-weight:800;
  font-size:clamp(19px,2.2vw,24px); line-height:1.2; color:var(--ink); margin-bottom:12px;
}
.next-card .nc-go{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--f-mono); font-size:12.5px; font-weight:600;
  color:#fff; background:var(--ink); border-radius:var(--r); padding:11px 14px;
}
@media (max-width:768px){ .next-card .nc-go{ min-height:44px; } }
@media (prefers-reduced-motion:reduce){ .next-card{ transition:none; } .next-card:hover{ transform:none; } }


/* ============================================================
   MOBILE LAYOUT FIXES (<=860px / <=560px) — desktop untouched
   ============================================================ */
@media (max-width:860px){
  /* the blueprint is the thing that explains the business in one glance.
     On a phone it should land before the paragraph, not after it. */
  #hero .hero-split{ display:grid; }
  #hero .hero-split > div:first-child{ order:2; }
  #hero .hero-split > div:last-child{ order:1; margin-bottom:6px; }
}

@media (max-width:720px){
  /* The datum strip is a dimension line — a drawing, not a list. Four columns
     cannot survive a 390px screen (each becomes ~76px of crushed mono type), so
     the AXIS ROTATES: the horizontal dimension line becomes a vertical one running
     down the left, with a tick at each station. It is still the same graphic. */
  .datum{ display:block; position:relative; padding:4px 0 0; }

  .datum li{
    flex:none; position:relative; text-align:left;
    padding:0 0 26px 26px;
    font-size:11.5px;
  }
  .datum li:last-child{ padding-bottom:0; }

  /* the vertical dimension line (was the horizontal rule) */
  .datum li::before{
    content:""; position:absolute;
    left:4px; right:auto; top:9px; bottom:-4px;
    width:1px; height:auto;
    background:var(--line);
  }
  .datum li:first-child::before{ left:4px; top:9px; }
  .datum li:last-child::before{ bottom:auto; height:0; }   /* line stops at the last station */

  /* the tick becomes a station dot ON the line */
  .datum li::after{
    content:""; position:absolute;
    left:0; top:5px; width:9px; height:9px;
    border-radius:50%;
    background:var(--amber);
    transform:none;
  }

  .datum li b{
    display:inline-block; margin:3px 0 0;
    font-size:26px; line-height:1.05;
  }
}
.dark .datum li::before{ background:var(--line-dark); }

@media (max-width:420px){
  .datum li{ padding-bottom:24px; }
  .datum li b{ font-size:24px; }
}

/* ---------------------------------------------------------------
   430px: .nav-cta (phone + hamburger) overran the wrap by ~3px on
   every page. Pre-existing; found in the Phase 7 audit. Let the
   header row shrink rather than push the page wider.
   --------------------------------------------------------------- */
@media (max-width:520px){
  .site-head .nav{ min-width:0; }
  .site-head .nav-cta{ min-width:0; flex:0 0 auto; gap:6px; }
  .site-head .brand{ min-width:0; }
} }
