/* ==========================================================================
   SACMAR LEAF TOBACCO — governed design system
   --------------------------------------------------------------------------
   Three laws:
     1. One scale      — every space/size/radius resolves to the 4/8-pt spine.
     2. One axis       — every block balances around a clear alignment edge.
     3. One repetition — a card/button/pill behaves identically everywhere.

   Adapted from the reference spec: the governance (spine, frame, rhythm,
   tiers, tokens, radii family, icon ladder, guardrails) is implemented as
   written. Palette stays Sacmar (forest green + logo ember) and the display
   face stays a bold sans, so the type tiers keep the reference's *relationship*
   — as size drops, weight rises and tracking loosens — inside this brand's
   register rather than copying a serif's 300 weight.
   ========================================================================== */

:root {
  /* ---------------------------------------------------- 1 · the spine ---- */
  --s-1: 4px;    --s-2: 8px;    --s-3: 12px;   --s-4: 16px;   --s-5: 20px;
  --s-6: 24px;   --s-8: 32px;   --s-10: 40px;  --s-12: 48px;
  --s-14: 56px;  --s-16: 64px;  --s-20: 80px;  --s-24: 96px;

  /* ------------------------------------------------- 2 · the page frame -- */
  --frame-max: 1440px;
  --frame-pad: clamp(1.5rem, 4vw, 2.75rem);       /* 24 → 44px breathing margin */

  /* --------------------------------------------- 3 · vertical rhythm ----- */
  --section-pad-y:    clamp(3.5rem, 9vw, 10rem);  /* 56 → 160px */
  --section-pad-y-lg: clamp(4.5rem, 13vw, 13rem); /* 72 → 208px */

  --rhythm-eyebrow-heading:   var(--s-6);   /* 24 */
  --rhythm-heading-lead:      var(--s-6);   /* 24 */
  --rhythm-lead-cta:          var(--s-8);   /* 32 */
  --rhythm-header-content:    var(--s-12);  /* 48 mobile */
  --rhythm-header-content-lg: var(--s-16);  /* 64 desktop */
  --rhythm-card-title-desc:   var(--s-3);   /* 12 */
  --gutter:    var(--s-6);                  /* 24 mobile */
  --gutter-lg: var(--s-8);                  /* 32 desktop */

  /* ------------------------------------------------- 5 · type tiers ------ */
  --fs-display-hero: clamp(1.8125rem, 5.6vw, 4.75rem);  /* 29 → 76 */
  --fs-display-xl:   clamp(2.125rem, 4.2vw, 3.75rem);   /* 34 → 60 */
  --fs-display-lg:   clamp(1.875rem, 2.9vw, 2.625rem);  /* 30 → 42 */
  --fs-display-md:   clamp(1.625rem, 2.1vw, 2.125rem);  /* 26 → 34 */
  --fs-body:    1rem;      /* 16 — never smaller on mobile */
  --fs-body-lg: 1.125rem;  /* 18 */
  --fs-body-xl: 1.25rem;   /* 20 */

  /* ------------------------------- 6 · component interior padding -------- */
  --pad-pill-y: var(--s-3);  --pad-pill-x: var(--s-5);
  --pad-btn-y:  var(--s-2);  --pad-btn-x:  var(--s-6);
  --btn-h: var(--s-14);                    /* one button height, site-wide */
  --pad-card:    var(--s-6);               /* 24 mobile */
  --pad-card-md: var(--s-8);               /* 32 */
  --pad-card-lg: var(--s-12);              /* 48 */

  /* ------------------------------------------ 7 · radii & shadows -------- */
  /* One family, all on the spine:
       4  panel on phones (where the panel is near full-bleed)
       8  panel on desktop, and nested media inside a card
       16 cards
       full pills
     Nothing else. */
  --r-nested: var(--s-2);
  --r-card:   var(--s-4);
  --r-panel:  var(--s-2);   /* big panels read sharper than cards */
  --r-pill:   999px;

  --shadow-card:      0 2px 8px -2px rgba(13,36,22,.12);
  --shadow-card-lift: 0 16px 40px -24px rgba(13,36,22,.45);
  --shadow-hero:      0 32px 80px -48px rgba(13,36,22,.7);

  /* ------------------------------------------- 8 · the icon ladder ------- */
  --icon-inline: 14px;  --icon-cta: 16px;  --icon-ui: 20px;  --icon-feature: 24px;

  /* ------------------------------------------------------- palette ------- */
  --g-900: #0d2416;  --g-800: #123020;  --g-700: #1a4429;  --g-600: #235536;
  --ember: #f0903a;  --ember-lt: #f7b073;
  --ember-ink: #9e5210;                    /* accent text on light: 5.6:1 */

  --paper: #ffffff;  --cream: #f7f4ec;  --cream-2: #efeadd;
  --ink: #131a14;    --ink-2: rgba(19,26,20,.72);  --ink-3: rgba(19,26,20,.66);
  --on-dark: #f4f1e8;
  --on-dark-2: rgba(244,241,232,.78);
  --on-dark-3: rgba(244,241,232,.62);
  --rule: rgba(19,26,20,.12);
  --rule-dark: rgba(244,241,232,.16);

  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* --------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  font-size: var(--fs-body); line-height: 1.7;
  color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--ember); color: var(--g-900); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: var(--s-1); border-radius: var(--r-nested); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ember); color: var(--g-900);
  padding: var(--s-3) var(--s-6); font-weight: 700;
  border-radius: 0 0 var(--r-nested) 0;
}
.skip-link:focus { left: 0; top: 0; }

/* ================================================ 2 · THE PAGE FRAME ==== */
.wrap {
  width: 100%; max-width: var(--frame-max);
  margin-inline: auto; padding-inline: var(--frame-pad);
}
.wrap--narrow { max-width: 900px; }

/* ============================================== 3 · VERTICAL RHYTHM ==== */
.section    { padding-block: var(--section-pad-y); position: relative; }
.section-lg { padding-block: var(--section-pad-y-lg); position: relative; }

.bg-paper { background: var(--paper); }
.bg-cream { background: var(--cream); }
.bg-green { background: var(--g-900); color: var(--on-dark); }
.bg-green-2 { background: var(--g-800); color: var(--on-dark); }

/* ================================================= 5 · TYPE TIERS ====== */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.08; }
.h1 { font-size: var(--fs-display-hero); font-weight: 800; letter-spacing: -.03em;  line-height: 1.02; }
.h2 { font-size: var(--fs-display-xl);   font-weight: 800; letter-spacing: -.028em; line-height: 1.06; }
.h3 { font-size: var(--fs-display-lg);   font-weight: 700; letter-spacing: -.022em; line-height: 1.1; }
.h4 { font-size: var(--fs-display-md);   font-weight: 700; letter-spacing: -.018em; line-height: 1.15; }

.lede { font-size: var(--fs-body-lg); line-height: 1.65; color: var(--ink-2); }
.bg-green .lede, .bg-green-2 .lede, .hero .lede, .page-top .lede, .cta .lede { color: var(--on-dark-2); }
.muted { color: var(--ink-2); }
.bg-green .muted, .bg-green-2 .muted { color: var(--on-dark-2); }

/* semantic rhythm, applied ------------------------------------------------ */
.pill + .h1, .pill + .h2, .pill + .h3, .pill + h1, .pill + h2 { margin-top: var(--rhythm-eyebrow-heading); }
.h1 + .lede, .h2 + .lede, .h3 + .lede { margin-top: var(--rhythm-heading-lead); }
.lede + .hero__actions, .lede + .btn-row { margin-top: var(--rhythm-lead-cta); }

/* ============================================= 6 · PILLS & BUTTONS ===== */
.pill {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: var(--pad-pill-y) var(--pad-pill-x);
  border: 1px solid var(--rule); border-radius: var(--r-pill);
  font-size: .8rem; font-weight: 600; line-height: 1;
  color: var(--ink-2); background: transparent;
}
.pill::before { content: ""; width: var(--s-2); height: var(--s-2); border-radius: var(--r-pill); background: var(--ember); flex: none; }
.pill--onDark { border-color: rgba(244,241,232,.3); color: var(--on-dark); }

/* One height for every button. The outline variant subtracts its extra 1px of
   border from the padding, so solid and outline align to the pixel. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-3);
  min-height: var(--btn-h);
  padding: var(--pad-btn-y) var(--pad-btn-y) var(--pad-btn-y) var(--pad-btn-x);
  border: 1px solid transparent; border-radius: var(--r-pill);
  font-size: var(--fs-body); font-weight: 700; letter-spacing: -.01em;
  white-space: nowrap; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), transform .3s var(--ease);
}
.btn--outline, .btn--outlineInk {
  border-width: 2px;
  padding: calc(var(--pad-btn-y) - 1px) calc(var(--pad-btn-y) - 1px)
           calc(var(--pad-btn-y) - 1px) calc(var(--pad-btn-x) - 1px);
}
.btn__ic {
  width: var(--s-10); height: var(--s-10); flex: none; border-radius: var(--r-pill);
  display: grid; place-items: center; transition: transform .35s var(--ease);
}
.btn__ic svg { width: var(--icon-cta); height: var(--icon-cta); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .btn__ic { transform: rotate(45deg); }

.btn--green { background: var(--g-700); color: var(--on-dark); }
.btn--green .btn__ic { background: var(--ember); color: var(--g-900); }
.btn--green:hover { background: var(--g-600); }
.btn--ember { background: var(--ember); color: var(--g-900); }
.btn--ember .btn__ic { background: var(--g-900); color: var(--ember); }
.btn--ember:hover { background: var(--ember-lt); }
.btn--outline { background: transparent; border-color: rgba(244,241,232,.38); color: var(--on-dark); }
.btn--outline .btn__ic { background: var(--ember); color: var(--g-900); }
.btn--outline:hover { border-color: var(--ember); }
.btn--outlineInk { background: transparent; border-color: var(--rule); color: var(--ink); }
.btn--outlineInk .btn__ic { background: var(--g-900); color: var(--ember); }
.btn--outlineInk:hover { border-color: var(--g-900); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-weight: 700; font-size: var(--fs-body); color: var(--ember-ink);
  transition: gap .3s var(--ease);
}
.bg-green .link-arrow, .bg-green-2 .link-arrow { color: var(--ember); }
.link-arrow:hover { gap: var(--s-3); }
.link-arrow svg { width: var(--icon-cta); height: var(--icon-cta); }

/* ==================================================== 9 · TOP NAV ====== */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; padding-top: var(--s-3); transition: padding .4s var(--ease); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-6);
  padding: var(--s-2) var(--s-2) var(--s-2) var(--s-6);
  border-radius: var(--r-pill);
  background: rgba(13,36,22,.45);
  border: 1px solid rgba(244,241,232,.14);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
.site-header.is-stuck { padding-top: var(--s-2); }
.site-header.is-stuck .header-inner { background: rgba(13,36,22,.95); border-color: rgba(244,241,232,.2); }

.brand { display: flex; align-items: center; gap: var(--s-3); color: var(--on-dark); }
.brand__mark { height: var(--s-8); width: auto; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-size: var(--fs-body-lg); font-weight: 800; letter-spacing: -.02em; }
.brand__sub { font-size: .5625rem; font-weight: 600; letter-spacing: .22em; color: var(--ember); }

.nav { display: flex; align-items: center; gap: var(--s-8); }
.nav a { font-size: var(--fs-body); font-weight: 600; color: var(--on-dark-2); transition: color .25s var(--ease); }
.nav a:hover { color: var(--on-dark); }
.nav a[aria-current="page"] { color: var(--ember); }
.nav-toggle { display: none; }

@media (max-width: 980px) {
  .nav, .header-cta { display: none; }
  .nav-toggle {
    display: grid; place-items: center; width: var(--s-12); height: var(--s-12);
    background: var(--ember); border: 0; border-radius: var(--r-pill); cursor: pointer;
  }
  .nav-toggle span { display: block; width: var(--s-4); height: 2px; background: var(--g-900); position: relative; transition: .3s var(--ease); }
  .nav-toggle span::before, .nav-toggle span::after {
    content: ""; position: absolute; left: 0; width: var(--s-4); height: 2px; background: var(--g-900); transition: .3s var(--ease);
  }
  .nav-toggle span::before { top: -6px; }
  .nav-toggle span::after  { top:  6px; }
  .nav-open .nav-toggle span { background: transparent; }
  .nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
  .nav-open .nav-toggle span::after  { top: 0; transform: rotate(-45deg); }

  .mobile-nav {
    position: fixed; inset: 0; z-index: 90; background: var(--g-900);
    padding: var(--s-24) var(--frame-pad) var(--s-12);
    display: flex; flex-direction: column; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
  }
  .nav-open .mobile-nav { opacity: 1; visibility: visible; transform: none; }
  .mobile-nav a {
    font-size: var(--fs-display-md); font-weight: 700; letter-spacing: -.02em; color: var(--on-dark);
    padding-block: var(--s-4); border-bottom: 1px solid var(--rule-dark);
    min-height: var(--s-14); display: flex; align-items: center;
  }
  .mobile-nav .btn { margin-top: var(--s-8); align-self: flex-start; border-bottom: 0; }
}
@media (min-width: 981px) { .mobile-nav { display: none; } }

/* ======================================================== 9 · HERO ===== */
.hero { position: relative; padding: var(--s-2) var(--s-2) 0; }
.hero__panel {
  position: relative; overflow: hidden; border-radius: var(--r-panel);
  min-height: min(88svh, 800px);
  display: flex; align-items: flex-end;
  background: var(--g-900); box-shadow: var(--shadow-hero);
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(13,36,22,.74) 0%, rgba(13,36,22,.18) 30%, rgba(13,36,22,.62) 66%, rgba(13,36,22,.93) 100%),
    linear-gradient(90deg, rgba(13,36,22,.8) 0%, rgba(13,36,22,.28) 55%, rgba(13,36,22,.1) 100%);
}
.hero__body { position: relative; z-index: 2; width: 100%; padding-block: var(--s-10) var(--s-8); color: var(--on-dark); }
.hero__body h1 { max-width: 18ch; }
.hero__body .lede { max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ---- the stat rail --------------------------------------------------------
   Replaces the pair that used to float bottom-right and was hidden below
   1120px. Equal cells, hairline dividers, anchored to the hero's left axis —
   the same governed strip at every breakpoint. Cells are sized by the row;
   labels wrap rather than stretching a cell (guardrail §10.5).            */
.statrail {
  position: relative; z-index: 2; margin-top: var(--s-10);
  border-top: 1px solid rgba(244,241,232,.24);
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.statrail__cell {
  padding: var(--s-6) var(--s-4) 0 0;
  border-right: 1px solid rgba(244,241,232,.24);
  min-height: var(--s-20);
}
.statrail__cell + .statrail__cell { padding-left: var(--s-4); }
.statrail__cell:last-child { border-right: 0; padding-right: 0; }
.statrail__n { display: block; font-size: clamp(1.75rem, 3.2vw, 2.625rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--ember); }
.statrail__l { display: block; margin-top: var(--s-2); font-size: .8125rem; font-weight: 600; line-height: 1.35; color: var(--on-dark-2); }
@media (max-width: 560px) {
  .statrail__cell { padding: var(--s-4) var(--s-2) 0 0; min-height: var(--s-16); }
  .statrail__cell + .statrail__cell { padding-left: var(--s-2); }
  .statrail__n { font-size: 1.5rem; }
  .statrail__l { font-size: .6875rem; }
}

/* ================================================== 9 · EMBER BAND ===== */
.band { background: var(--ember); color: var(--g-900); position: relative; overflow: hidden; }
.band__inner { display: grid; gap: var(--s-6); align-items: center; padding-block: var(--s-6); }
@media (min-width: 900px) { .band__inner { grid-template-columns: 1fr auto 1fr; column-gap: var(--s-10); } }
.band__item { display: flex; align-items: center; gap: var(--s-4); }
@media (min-width: 900px) { .band__item--end { justify-content: flex-end; text-align: right; } }
.band__item h3 { font-size: var(--fs-body-lg); font-weight: 800; letter-spacing: -.02em; }
.band__item p { font-size: var(--fs-body); font-weight: 500; color: rgba(13,36,22,.82); line-height: 1.5; }
.band__figure { font-size: clamp(2rem, 3.2vw, 2.625rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.band__thumb { width: var(--s-24); height: var(--s-16); border-radius: var(--r-nested); object-fit: cover; flex: none; }
.band__item--link h3 a { transition: opacity .25s var(--ease); }
.band__item--link h3 a:hover { opacity: .68; text-decoration: underline; text-underline-offset: 3px; }

.seal { position: relative; width: var(--s-24); height: var(--s-24); flex: none; justify-self: center; }
.seal__ring { width: 100%; height: 100%; animation: spin 24s linear infinite; }
.seal__ring text { font-size: 9px; font-weight: 700; letter-spacing: .16em; fill: var(--g-900); }
.seal__core { position: absolute; inset: var(--s-5); border-radius: var(--r-pill); background: var(--g-900); display: grid; place-items: center; }
.seal__core img { width: var(--s-8); height: auto; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .seal__ring { animation: none; } }

/* ============================================== 9 · SECTION HEADER ===== */
.sec-head { display: grid; gap: var(--s-6); margin-bottom: var(--rhythm-header-content); }
@media (min-width: 900px) { .sec-head { margin-bottom: var(--rhythm-header-content-lg); } }
.sec-head h2 { max-width: 22ch; }
@media (min-width: 900px) {
  .sec-head--row { grid-template-columns: 1.1fr .9fr; align-items: end; column-gap: var(--s-16); }
  .sec-head--row .sec-head__aside { justify-self: end; max-width: 44ch; }
}

/* ============================================= 4 · GRIDS (gap trap) ====
   Column gap is zeroed on mobile and enabled only at the breakpoint, so
   stacked children never reserve phantom column-gap width. */
.grid { display: grid; row-gap: var(--gutter); column-gap: 0; }
@media (min-width: 620px)  { .grid { column-gap: var(--gutter); } }
@media (min-width: 1040px) { .grid { row-gap: var(--gutter-lg); column-gap: var(--gutter-lg); } }
@media (min-width: 700px)  { .grid--2 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 700px)  { .grid--3 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1040px) { .grid--3 { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 620px)  { .grid--4 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1040px) { .grid--4 { grid-template-columns: repeat(4,1fr); } }

/* ================================================ 6/9 · PHOTO CARD ===== */
.pcard {
  background: var(--g-800); color: var(--on-dark);
  border-radius: var(--r-card); padding: var(--s-2) var(--s-2) var(--s-6);
  display: flex; flex-direction: column; gap: var(--s-4);
  box-shadow: var(--shadow-card);
  transition: transform .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
}
.pcard:hover { transform: translateY(-4px); background: var(--g-700); box-shadow: var(--shadow-card-lift); }
.pcard__media { position: relative; border-radius: var(--r-nested); overflow: hidden; aspect-ratio: 4/3; background: var(--g-900); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.pcard:hover .pcard__media img { transform: scale(1.06); }
.pcard__body { padding-inline: var(--s-4); display: flex; flex-direction: column; flex: 1; }
.pcard__tag {
  align-self: flex-start; display: inline-block;
  padding: var(--s-1) var(--s-3); border-radius: var(--r-pill);
  border: 1px solid rgba(244,241,232,.3);
  font-size: .75rem; font-weight: 600; line-height: 1.5; color: var(--ember);
}
.pcard h3 { font-size: var(--fs-display-md); margin-top: var(--s-3); }
.pcard p { font-size: var(--fs-body); color: var(--on-dark-2); margin-top: var(--rhythm-card-title-desc); }
.pcard dl { display: grid; gap: var(--s-2); margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--rule-dark); }
.pcard dl > div { display: flex; justify-content: space-between; gap: var(--s-4); font-size: .875rem; flex-wrap: wrap; }
.pcard dt { color: var(--on-dark-3); }
.pcard dd { font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.pcard--flat { padding: var(--pad-card); }
.pcard--flat .pcard__body { padding-inline: 0; }

/* ---------------------------------------------------- bordered card ---- */
.card {
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-card);
  padding: var(--pad-card); display: flex; flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
@media (min-width: 700px) { .card { padding: var(--pad-card-md); } }
.card:hover { transform: translateY(-4px); border-color: var(--g-700); box-shadow: var(--shadow-card-lift); }
.card__n {
  width: var(--s-12); height: var(--s-12); border-radius: var(--r-pill);
  display: grid; place-items: center; background: var(--cream);
  color: var(--ember-ink); font-weight: 800; font-size: var(--fs-body); margin-bottom: var(--s-4);
}
.bg-cream .card__n { background: var(--cream-2); }
.card h3 { font-size: var(--fs-display-md); }
.card p { font-size: var(--fs-body); color: var(--ink-2); margin-top: var(--rhythm-card-title-desc); }

/* ------------------------------- whole-card link + footer affordance ---- */
.pcard--link, .card--link { position: relative; cursor: pointer; }
.stretch::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.pcard--link:focus-within, .card--link:focus-within { outline: 2px solid var(--ember); outline-offset: var(--s-1); }
.pcard--link .stretch:focus-visible, .card--link .stretch:focus-visible { outline: none; }
.card__go {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  margin-top: auto; padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
  font-size: var(--fs-body); font-weight: 700; color: var(--ember-ink);
}
.pcard .card__go { border-top-color: var(--rule-dark); color: var(--ember); }
.card__go-t { transition: transform .3s var(--ease); }
.card__go-ic {
  width: var(--s-8); height: var(--s-8); flex: none; border-radius: var(--r-pill);
  display: grid; place-items: center; background: var(--ember); color: var(--g-900);
  transition: transform .35s var(--ease);
}
.card__go-ic svg { width: var(--icon-inline); height: var(--icon-inline); }
.pcard--link:hover .card__go-ic, .card--link:hover .card__go-ic { transform: rotate(45deg); }
.pcard--link:hover .card__go-t,  .card--link:hover .card__go-t  { transform: translateX(3px); }

/* ================================================ 9 · EDITORIAL SPLIT == */
.split { display: grid; row-gap: var(--s-10); column-gap: 0; align-items: center; }
@media (min-width: 940px) {
  .split { grid-template-columns: 1fr 1fr; column-gap: var(--s-16); }
  .split--rev .split__media { order: 2; }
}
.split__media { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4/3; position: relative; background: var(--g-800); box-shadow: var(--shadow-card); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__body { display: flex; flex-direction: column; align-items: flex-start; }
.split__body h2 { max-width: 17ch; }
.split__body > * + * { margin-top: var(--s-6); }

.chip {
  position: absolute; left: var(--s-4); bottom: var(--s-4); z-index: 2;
  background: var(--paper); border-radius: var(--r-card); padding: var(--s-4) var(--s-6);
  box-shadow: var(--shadow-card-lift);
}
.chip b { display: block; font-size: var(--fs-display-md); font-weight: 800; letter-spacing: -.03em; color: var(--g-700); line-height: 1.1; }
.chip span { display: block; font-size: .8125rem; font-weight: 600; color: var(--ink-3); margin-top: var(--s-1); }

/* ------------------------------------------------------- checklist ----- */
.checks { display: grid; gap: var(--s-4); }
.checks li { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--fs-body); color: var(--ink-2); }
.bg-green .checks li, .bg-green-2 .checks li { color: var(--on-dark-2); }
.checks svg { flex: none; width: var(--icon-ui); height: var(--icon-ui); margin-top: 4px; color: var(--ember); }

/* ===================================================== 9 · PERSON ===== */
.person { display: flex; flex-direction: column; }
.person__photo { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 1/1; background: var(--cream-2); box-shadow: var(--shadow-card); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { font-size: var(--fs-display-md); margin-top: var(--s-4); }
.person > p { font-size: var(--fs-body); font-weight: 600; color: var(--ember-ink); margin-top: var(--s-2); }
.bg-green .person > p, .bg-green-2 .person > p { color: var(--ember); }
.person__meta { color: var(--ink-2) !important; font-weight: 400 !important; line-height: 1.6; margin-top: var(--s-3) !important; }

/* ====================================================== 9 · FORMS ===== */
.form { display: grid; gap: var(--s-6); }
.field { display: grid; gap: var(--s-2); }
.field label { font-size: .875rem; font-weight: 600; color: var(--on-dark-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: var(--btn-h);
  padding: var(--s-4); background: rgba(244,241,232,.05);
  border: 1px solid var(--rule-dark); border-radius: var(--r-nested);
  color: var(--on-dark); font-size: var(--fs-body);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--on-dark-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ember); background: rgba(244,241,232,.09); }
.field textarea { resize: vertical; min-height: var(--s-24); }
.field select option { background: var(--g-800); color: var(--on-dark); }
.field-row { display: grid; row-gap: var(--s-6); column-gap: 0; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; column-gap: var(--s-6); } }
.form__status { font-size: var(--fs-body); font-weight: 600; color: var(--ember); min-height: 1.5em; }
.form__note { font-size: .875rem; color: var(--on-dark-3); }

/* =================================================== 9 · CONTACT ROWS = */
.cinfo { display: grid; gap: var(--s-6); align-content: start; }
.cinfo__item { display: flex; gap: var(--s-4); align-items: flex-start; padding-bottom: var(--s-6); border-bottom: 1px solid var(--rule-dark); min-width: 0; }
.cinfo__item:last-child { border-bottom: 0; padding-bottom: 0; }
.cinfo__item > div { min-width: 0; flex: 1; }
.cinfo__ic {
  width: var(--s-12); height: var(--s-12); border-radius: var(--r-pill); flex: none;
  display: grid; place-items: center; background: rgba(240,144,58,.15); color: var(--ember);
}
.cinfo__ic svg { width: var(--icon-ui); height: var(--icon-ui); }
.cinfo__item > div > span { display: block; font-size: .875rem; font-weight: 600; color: var(--on-dark-3); margin-bottom: var(--s-1); }
.cinfo__item strong { display: block; font-size: var(--fs-body-lg); font-weight: 700; letter-spacing: -.01em; overflow-wrap: anywhere; }
.cinfo__item a { overflow-wrap: anywhere; }
.cinfo__item a:hover { color: var(--ember); }

/* ======================================================== 9 · CTA ===== */
.cta {
  position: relative; overflow: hidden; border-radius: var(--r-panel);
  background: var(--g-900); color: var(--on-dark);
  padding: var(--s-16) var(--s-6); text-align: center; box-shadow: var(--shadow-hero);
}
@media (min-width: 700px) { .cta { padding: var(--s-20) var(--s-12); } }
.cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .2; }
.cta__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.cta__inner > * + * { margin-top: var(--s-6); }
.cta h2 { max-width: 19ch; }
.cta .lede { max-width: 56ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; margin-top: var(--rhythm-lead-cta) !important; }

/* =================================================== 9 · PAGE TOP ===== */
.page-top { position: relative; padding: var(--s-2); }
.page-top__panel {
  position: relative; overflow: hidden; border-radius: var(--r-panel);
  background: var(--g-900); color: var(--on-dark);
  padding-block: clamp(7rem, 13vw, 11rem) var(--s-16);
  box-shadow: var(--shadow-hero);
}
.page-top__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.page-top__body { position: relative; z-index: 2; }
.page-top h1 { max-width: 16ch; }
.page-top .lede { max-width: 56ch; }
.crumbs { font-size: var(--fs-body); font-weight: 600; color: var(--on-dark-3); }
.crumbs a:hover { color: var(--ember); }

/* ============================================ 9 · PRODUCT DETAIL ====== */
.spectable { display: grid; gap: 1px; background: var(--rule-dark); border: 1px solid var(--rule-dark); border-radius: var(--r-card); overflow: hidden; }
@media (min-width: 700px)  { .spectable { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1100px) { .spectable { grid-template-columns: repeat(3,1fr); } }
.spectable > div { background: var(--g-800); padding: var(--s-6); display: grid; gap: var(--s-2); min-height: var(--s-24); align-content: center; }
.spectable dt { font-size: .875rem; font-weight: 600; color: var(--on-dark-3); }
.spectable dd { font-size: var(--fs-body-lg); font-weight: 700; letter-spacing: -.02em; color: var(--ember); }

.certlist { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.certchip {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: var(--pad-pill-y) var(--pad-pill-x); border-radius: var(--r-pill);
  border: 1px solid var(--rule); background: var(--paper);
  font-size: .875rem; font-weight: 600; color: var(--ink-2); line-height: 1;
}
.certchip::before { content: ""; width: var(--s-2); height: var(--s-2); border-radius: var(--r-pill); background: var(--ember); flex: none; }

.otherprods { display: grid; row-gap: var(--gutter); column-gap: 0; }
@media (min-width: 620px) { .otherprods { grid-template-columns: repeat(3,1fr); column-gap: var(--gutter); } }
.otherprod {
  display: flex; flex-direction: column; gap: var(--s-4);
  border-radius: var(--r-card); overflow: hidden;
  background: var(--g-800); padding: var(--s-2) var(--s-2) var(--s-4);
  box-shadow: var(--shadow-card);
  transition: transform .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}
.otherprod:hover { transform: translateY(-4px); background: var(--g-700); box-shadow: var(--shadow-card-lift); }
.otherprod img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r-nested); }
.otherprod span { padding-inline: var(--s-4); font-weight: 700; color: var(--on-dark); font-size: var(--fs-body-lg); }

/* ==================================================== 9 · GALLERY ====== */
/* One feature frame at its native ratio (it carries its own type and the logo,
   so it is never cropped), then a 4:3 tile grid. Tiles open a viewer; without
   JS the link still resolves to the full image. */
.gal-feature { margin-bottom: var(--rhythm-header-content); }
.gal-feature__link {
  display: block; position: relative; overflow: hidden;
  border-radius: var(--r-panel); background: var(--g-800);
  box-shadow: var(--shadow-card);
  transition: box-shadow .4s var(--ease-out);
}
.gal-feature__link img { display: block; width: 100%; height: auto; transition: transform .6s var(--ease-out); }
.gal-feature__link:hover { box-shadow: var(--shadow-card-lift); }
.gal-feature__link:hover img { transform: scale(1.015); }

.gal { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
@media (min-width: 1040px) { .gal { grid-template-columns: repeat(3, 1fr); gap: var(--gutter-lg); } }
@media (max-width: 349px)  { .gal { grid-template-columns: 1fr; } }

.gal__fig { display: flex; flex-direction: column; margin: 0; }
.gal__link {
  display: block; position: relative; overflow: hidden;
  aspect-ratio: 4 / 3; border-radius: var(--r-card);
  background: var(--g-800); box-shadow: var(--shadow-card);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.gal__link img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.gal__link:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-lift); }
.gal__link:hover img { transform: scale(1.04); }
.gal__cap { margin-top: var(--s-3); font-size: var(--fs-body); color: var(--ink-2); line-height: 1.5; }
.bg-green .gal__cap, .bg-green-2 .gal__cap { color: var(--on-dark-2); }

/* the zoom affordance is a hover cue, so it is not drawn on touch */
.gal__ic {
  position: absolute; right: var(--s-3); bottom: var(--s-3);
  width: var(--s-10); height: var(--s-10); border-radius: var(--r-pill);
  display: grid; place-items: center;
  background: rgba(13, 36, 22, .62); color: var(--on-dark);
  opacity: 0; transform: translateY(var(--s-2));
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
@media (hover: none) { .gal__ic { display: none; } }
.gal__link:hover .gal__ic, .gal__link:focus-visible .gal__ic { opacity: 1; transform: none; }

/* ------------------------------------------------- the viewer ---------- */
.lb {
  position: fixed; inset: 0; z-index: 200;
  display: none; grid-template-rows: auto 1fr auto;
  background: var(--g-900);          /* solid: a translucent backdrop let the tiles behind read through */
  padding: var(--s-6) var(--frame-pad) var(--s-8);
}
.lb.is-open { display: grid; }
/* the frame is the stage and the picture is fitted inside it: sizing the image
   itself leaves the 1fr row free to grow to the image's intrinsic height, which
   pushes the caption and the controls back over the picture */
.lb__stage { position: relative; min-height: 0; }
.lb__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.lb__foot { text-align: center; padding-top: var(--s-5); }
.lb__cap { color: var(--on-dark); font-size: var(--fs-body); }
.lb__controls { display: flex; align-items: center; justify-content: center; gap: var(--s-4); margin-top: var(--s-4); }
.lb__count { color: var(--on-dark-3); font-size: var(--fs-body); min-width: 7ch; }
.lb__btn {
  width: var(--s-12); height: var(--s-12); border-radius: var(--r-pill);
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(244, 241, 232, .28); background: transparent; color: var(--on-dark);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.lb__btn:hover { background: var(--ember); border-color: var(--ember); color: var(--g-900); }
/* the close control gets its own row, so it never sits on the picture */
.lb__close { justify-self: end; margin-bottom: var(--s-4); }

/* ===================================================== 9 · FOOTER ===== */
.site-footer { background: var(--g-900); color: var(--on-dark); margin-top: var(--s-16); }
.footer-grid { display: grid; row-gap: var(--s-10); column-gap: 0; padding-block: var(--s-20) var(--s-12); }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.7fr 1fr 1fr 1.3fr; column-gap: var(--s-12); } }
.footer-brand { display: flex; flex-direction: column; gap: var(--s-4); max-width: 34ch; }
.footer-brand p { font-size: var(--fs-body); color: var(--on-dark-2); overflow-wrap: anywhere; }
.footer-col h4 { font-size: var(--fs-body); font-weight: 700; color: var(--ember); margin-bottom: var(--s-4); }
.footer-col ul { display: grid; gap: var(--s-3); }
.footer-col a, .footer-col li { font-size: var(--fs-body); color: var(--on-dark-2); transition: color .25s var(--ease); overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--ember); }
.footer-bottom {
  border-top: 1px solid var(--rule-dark); padding-block: var(--s-6) var(--s-8);
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-8); justify-content: space-between; align-items: center;
}
.footer-bottom p, .footer-bottom a { font-size: .875rem; color: var(--on-dark-3); }
.footer-bottom a:hover { color: var(--ember); }
.footer-legal { font-size: .875rem; line-height: 1.7; color: var(--on-dark-2); max-width: 80ch; padding-bottom: var(--s-8); }
.footer-legal strong { color: var(--ember); font-weight: 700; }
.socials { display: flex; gap: var(--s-2); }
.socials a {
  width: var(--s-12); height: var(--s-12); display: grid; place-items: center; border-radius: var(--r-pill);
  border: 1px solid var(--rule-dark); color: var(--on-dark-2); transition: all .25s var(--ease);
}
.socials a:hover { border-color: var(--ember); color: var(--ember); transform: translateY(-2px); }
.socials svg { width: var(--icon-cta); height: var(--icon-cta); }

/* ====================================================== 9 · REVEAL ==== */
.reveal { opacity: 0; transform: translateY(var(--s-5)); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; transition: none !important; } }

/* ================================ HERO STACK (hero + band = one screen) = */
.hero-stack { padding: var(--s-2); display: flex; flex-direction: column; gap: var(--s-2); background: var(--paper); }
.hero-stack .hero { padding: 0; }
.hero-stack .band { border-radius: var(--r-panel); }
@media (min-width: 860px) and (min-height: 640px) {
  .hero-stack { height: 100svh; }
  .hero-stack .hero { flex: 1 1 auto; min-height: 0; display: flex; }
  .hero-stack .hero__panel { flex: 1 1 auto; min-height: 0; }
  .hero-stack .band { flex: 0 0 auto; }
  .hero-stack .hero__body { padding-block: var(--s-8) var(--s-6); }
  .hero-stack .statrail { margin-top: var(--s-6); }
  .hero-stack .statrail__cell { padding-top: var(--s-4); min-height: var(--s-16); }
}
@media (min-width: 860px) and (max-height: 800px) {
  .hero-stack .hero__body h1 { font-size: var(--fs-display-lg); }
  .hero-stack .hero__body .lede { font-size: var(--fs-body); }
  .hero-stack .statrail__n { font-size: 1.75rem; }
}

/* ==================================== EMBER BAND — small screens ======= */
@media (max-width: 899px) {
  .band__inner { grid-template-columns: auto 1fr; gap: var(--s-4); align-items: center; padding-block: var(--s-6); }
  .seal { grid-column: 1; grid-row: 1 / span 2; width: var(--s-20); height: var(--s-20); align-self: center; }
  .seal__core { inset: var(--s-4); }
  .seal__core img { width: var(--s-6); }
  .band__item { grid-column: 2; flex-direction: column; align-items: flex-start; gap: var(--s-1); text-align: left; }
  .band__item--end { flex-direction: column; align-items: flex-start; text-align: left; border-top: 1px solid rgba(13,36,22,.2); padding-top: var(--s-4); }
  .band__item h3 { font-size: var(--fs-body); line-height: 1.3; }
  .band__item p { font-size: .875rem; line-height: 1.45; }
  .band__item:first-child { flex-direction: row; align-items: center; gap: var(--s-3); }
  .band__figure { font-size: var(--fs-display-md); flex: none; }
  .band__item > div { min-width: 0; }
  .band__thumb { display: none; }
}
@media (max-width: 560px) {
  .band__inner { grid-template-columns: 1fr; gap: var(--s-3); }
  .seal { display: none; }
  .band__item { grid-column: 1; }
}

/* ============================== TOUCH TARGETS (44px minimum) =========== */
@media (pointer: coarse), (max-width: 780px) {
  .footer-col a, .crumbs a, .link-arrow, .footer-bottom a, .nav a, .cinfo__item a {
    display: inline-flex; align-items: center; min-height: var(--s-12);
  }
  .footer-col ul { gap: 0; }
  .socials a { width: var(--s-12); height: var(--s-12); }
  .brand { min-height: var(--s-12); }
  .band__item--link h3 a { display: inline-flex; align-items: center; min-height: var(--s-12); }
}

/* ============================== SMALL-SCREEN COMPONENT TUNING ========== */
@media (max-width: 560px) {
  .hero__actions, .cta__actions { width: 100%; }
  .hero__actions .btn, .cta__actions .btn, .form button[type="submit"] { flex: 1 1 100%; width: 100%; justify-content: space-between; }
  .split__media { aspect-ratio: 4/3; }
  .chip { left: var(--s-3); bottom: var(--s-3); padding: var(--s-3) var(--s-4); }
}
@media (max-width: 400px) {
  .header-inner { padding-left: var(--s-4); }
  .brand__mark { height: var(--s-6); }
  .brand__name { font-size: var(--fs-body); }
  .hero__panel { min-height: min(92svh, 700px); }
}

/* ============================ SHARED LEFT AXIS (guardrail §2) ===========
   The hero and page-top panels are inset by --s-2 from the viewport. Their
   inner wrap therefore has to subtract that inset from both its max-width and
   its padding, or panel text lands 8px inboard of every other section and the
   site loses its strongest symmetry signal — one continuous left edge from the
   headline through the section headers to the footer. */
.hero__body, .page-top__body {
  max-width: calc(var(--frame-max) - (var(--s-2) * 2));
  padding-inline: calc(var(--frame-pad) - var(--s-2));
}

/* ==================== HERO ON SHORT VIEWPORTS (header clearance) ========
   The hero body is bottom-aligned, so on a short screen tall content grows
   upward and slides behind the fixed nav. Compress the rhythm in steps so the
   eyebrow always clears the header instead of hiding under it. */
@media (min-width: 860px) and (max-height: 940px) {
  .hero-stack .hero__body { padding-block: var(--s-6) var(--s-6); }
  .hero-stack .hero__body .lede { max-width: 64ch; }
  .hero-stack .pill + .h1 { margin-top: var(--s-4); }
  .hero-stack .h1 + .lede { margin-top: var(--s-4); }
  .hero-stack .lede + .hero__actions { margin-top: var(--s-6); }
  .hero-stack .statrail { margin-top: var(--s-6); }
  .hero-stack .statrail__cell { padding-top: var(--s-3); min-height: var(--s-12); }
}
@media (min-width: 860px) and (max-height: 860px) {
  .hero-stack .hero__body h1 { font-size: var(--fs-display-md); }
  .hero-stack .hero__body .lede { font-size: var(--fs-body); max-width: 72ch; }
  .hero-stack .pill + .h1, .hero-stack .h1 + .lede { margin-top: var(--s-3); }
  .hero-stack .lede + .hero__actions { margin-top: var(--s-4); }
  .hero-stack .statrail { margin-top: var(--s-4); }
  .hero-stack .statrail__n { font-size: 1.5rem; }
  .hero-stack .btn { min-height: var(--s-12); }
}

/* ================= HERO ON PHONES (header clearance + breathing) ========
   The earlier compression was gated at min-width:860, so phones kept the full
   desktop rhythm: content filled the panel exactly and the eyebrow sat behind
   the fixed nav. Same remedy, tuned for small screens — tighten the rhythm and
   let the panel keep a clear band under the header. */
@media (max-width: 859px) {
  /* Reserve the fixed header's band at the top of the panel. The panel grows to
     fit its content on mobile, so without this the body starts at the panel's
     top edge and the eyebrow is always behind the nav, whatever the content
     height. This is a floor, not a nudge. */
  .hero__body { padding-block: var(--s-24) var(--s-8); }
  .hero__body .lede { font-size: var(--fs-body); }
  .hero__body .pill + .h1 { margin-top: var(--s-4); }
  .hero__body .h1 + .lede { margin-top: var(--s-4); }
  .hero__body .lede + .hero__actions { margin-top: var(--s-6); }
  .statrail { margin-top: var(--s-6); }
  .statrail__cell { padding-top: var(--s-3); min-height: var(--s-12); }
}

/* Short phones: the two stacked full-width CTAs cost 124px on their own, so
   they sit side by side — but only from 412px up. .btn is white-space:nowrap, so a
   pair that does not fit cannot shrink: at 390px the second button landed 3px from
   the panel edge. Measured 16px of clearance at 412px. */
@media (min-width: 412px) and (max-width: 859px) and (max-height: 760px) {
  .hero__body h1 { font-size: var(--fs-display-lg); }
  .hero__actions { flex-wrap: nowrap; }
  .hero__actions .btn { flex: 1 1 50%; width: auto; min-height: var(--s-12); padding-inline: var(--s-4) var(--s-2); }
  .hero__actions .btn__ic { width: var(--s-8); height: var(--s-8); }
}

/* Phones: the panel sits only --s-2 from the viewport edge, so a 16px radius
   reads bubbly against it. Sharpen one step. */
@media (max-width: 560px) {
  :root { --r-panel: var(--s-1); }
}

/* footer credit */
.footer-credit a { color: var(--on-dark-2); border-bottom: 1px solid transparent; transition: color .25s var(--ease), border-color .25s var(--ease); }
.footer-credit a:hover { color: var(--ember); border-bottom-color: var(--ember); }

/* ==========================================================================
   11 · MOBILE IS A DIFFERENT DESIGN, NOT A NARROWER ONE
   Tokens shrink together, tiles stay two up, prose goes one up, and the
   numbered cards become a list with the number beside the text.
   ========================================================================== */
@media (max-width: 859px) {
  /* the system scales as a whole rather than desktop proportions on a phone */
  :root {
    --gutter:    var(--s-4);                       /* 24 -> 16 */
    --gutter-lg: var(--s-4);
    --section-pad-y:    clamp(2.5rem, 9vw, 4rem);  /* 56-160 -> 40-64 */
    --section-pad-y-lg: clamp(3rem, 11vw, 5rem);
    --pad-card:  var(--s-5);                       /* 24 -> 20 */
    --r-card:    var(--s-3);                       /* 16 -> 12 (phone step) */
    --rhythm-header-content: var(--s-8);           /* 48 -> 32 */
  }

  /* buttons: full width, label centred, pill radius and padding kept */
  .hero__actions .btn, .cta__actions .btn, .form button[type="submit"] { justify-content: center; }

  /* numbered cards read as a list: number beside the text, not stacked on it */
  .card {
    display: grid; grid-template-columns: auto 1fr;
    column-gap: var(--s-4); row-gap: 0; align-items: start;
  }
  .card__n { grid-row: 1 / span 2; margin-bottom: 0; width: var(--s-10); height: var(--s-10); }
  .card h3, .card p { grid-column: 2; }
  .card__go { grid-column: 1 / -1; margin-top: var(--s-4); }
  .card:not(:has(.card__n)) { display: flex; }     /* cards with no number stay as they were */

  /* image tiles stay two up; prose stays one up */
  .grid--tiles { grid-template-columns: 1fr 1fr; column-gap: var(--gutter); }
  .otherprods  { grid-template-columns: 1fr 1fr; column-gap: var(--gutter); }
  .otherprod span { font-size: var(--fs-body); }

  /* a name is not a display heading in a 170px tile: at the display-md size a
     three-word name takes three lines and the two cards stop aligning */
  .person h3 { font-size: var(--fs-body-xl); min-height: 2lh; }  /* roles stay on one line across the pair */
}

/* footer link columns are tiles too: two up instead of one tall stack */
@media (max-width: 819px) {
  .footer-grid { grid-template-columns: 1fr 1fr; column-gap: var(--s-6); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col:last-child { grid-column: 1 / -1; }  /* contact holds long strings */
}

/* The smallest phones: unwind only the two-up decisions that stop working.
   Measured: two-up still reads fine at 360 and 375, so the unwind sits below
   those. The numbered-card list is NOT unwound - it is what keeps that section
   short (229px per card at 390 against 308px stacked), and height matters most
   on the smallest screens. */
@media (max-width: 349px) {
  .footer-grid, .grid--tiles, .otherprods { grid-template-columns: 1fr; }
}
