/* CAND Media site-wide design system.
   Shared by every page: index, services, pricing, about, remote, contact.
   Brand: white #FFFFFF ground, black #000000 type, red #E42220 accent. Nothing else.

   2026-09-29 light flip. Cannon ruled: white background, black and red text,
   "feel like a proper website". What changed and why:
   - Ground is white, type is black, red is still the only accent color.
   - Sections alternate white and off-white (.sect-alt) so the page reads as
     built blocks instead of one long sheet. Off-white is depth, not a color.
   - Nav logo is brand_assets/logo-black.png: the white master recolored to
     black with the red door kept.
   - Client logos are white-keyed PNGs; filter: brightness(0) prints them black.
   - The footer is the one black band on the site: white logo, nav, contact.
   - Shards stay (Cannon kept the background language 2026-09-03) but are
     redrawn for a white ground as a livery flash: solid red shard plus a
     thin black stripe, one shared angle, parked at the edges of the hero.
     Translucent shards and red glows turn pink on white, so both are gone.
     Sections carry no shards; the hero and page headers own them.

   Layout rules from the 2026-09-22 pass still hold:
   - One centered .sec-head per page at most. Everything else is a left-aligned
     .split (headline left, content right) or a strip with no headline.
   - Red accent word lives in H1s only. Section H2s are plain, 60px max,
     so the page headline is the biggest thing on the page.
   - Subpage headers are headline + lede, no min-height.
   - Proof (client logos) rides at the bottom of the home hero, above the fold.
   Page-specific layout still lives in a small inline <style> on each page. */

:root {
  --black: #000000;
  --white: #ffffff;
  --red: #E42220;
  --red-hover: #C71D1B;   /* darker on hover: white label stays readable */
  --red-dim: rgba(228, 34, 32, 0.10);
  --red-glow: rgba(228, 34, 32, 0.26);
  --ink: #000000;
  --bg: #ffffff;
  --bg-alt: #F5F5F5;
  --border: rgba(0,0,0,0.12);
  --tx-strong: rgba(0,0,0,0.92);
  --tx-dim: rgba(0,0,0,0.72);
  --tx-faint: rgba(0,0,0,0.58);
  --pad-x: 48px;
  --sect-y: clamp(72px, 9vh, 104px);
  --wrap: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-size: 18px;
  line-height: 1.65;
  overflow-x: hidden;   /* decorative shards may lean past the edge */
}

/* ---- NAV (sticky, solid white; no backdrop-filter, it breaks full-page
        screenshots) ---------------------------------------------------- */
nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad-x);
  gap: 18px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.nav-logo-wrap {
  height: 44px; display: flex; align-items: center;
  flex-shrink: 0; text-decoration: none;
}
.nav-logo { height: 40px; width: auto; display: block; }
.nav-logo-wrap:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-link {
  position: relative;
  font-size: 14px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(0,0,0,0.64);
  text-decoration: none; padding: 6px 0;
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.nav-link.active { color: var(--ink); }
.nav-link.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 2px; background: var(--red);
}

/* ---- BUTTONS -------------------------------------------------------- */
.btn-text {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px; border-radius: 8px;
  font-family: 'Outfit', sans-serif; font-size: 16px; font-weight: 600;
  letter-spacing: 0.01em; cursor: pointer; text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-primary {
  background: var(--red); color: var(--white);
  box-shadow: 0 1px 2px rgba(228,34,32,0.30), 0 8px 22px rgba(228,34,32,0.20);
}
.btn-primary:hover { background: var(--red-hover); box-shadow: 0 2px 4px rgba(228,34,32,0.30), 0 14px 30px var(--red-glow); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.btn-ghost { border: 1.5px solid var(--ink); color: var(--ink); background: var(--bg); }
.btn-ghost:hover { background: var(--ink); color: var(--white); transform: translateY(-1px); }
.btn-ghost:active { transform: translateY(0); }
.btn-ghost:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.btn-nav { padding: 11px 24px; font-size: 14.5px; }
.btn-big { font-size: 19px; padding: 20px 48px; }

/* inline text link: black with a red underline, used inside copy */
.tlink {
  color: var(--ink); font-weight: 600; text-decoration: none;
  border-bottom: 2px solid var(--red); padding-bottom: 1px;
  transition: color 0.2s ease;
}
.tlink:hover { color: var(--red); }
.tlink:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ---- HERO STAGE ---------------------------------------------------- */
/* Home: fills the first screen, with the proof strip pinned to its bottom.
   Subpages: .stage-head, a short band holding headline + lede only. */
.stage {
  position: relative;
  min-height: min(calc(100vh - 84px), 880px);
  display: flex; flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}
.stage-head { min-height: 0; border-bottom: 1px solid var(--border); }

/* ---- HERO SHAPES: the livery flash ---------------------------------- */
/* Solid brand color, one shared angle, parked at the edges of the band so
   nothing ever runs behind the headline. A flash is a red shard with a thin
   black stripe riding beside it. Sizes scale with the viewport (--w) so the
   flash keeps clear of the copy at every width. */
@keyframes shapeEntry {
  from { opacity: 0; transform: translateX(var(--from, -180px)); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes shapeFloat {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(var(--drift, 14px)); }
}
.shape-entry { animation: shapeEntry 1.3s var(--delay, 0s) cubic-bezier(0.22, 0.8, 0.3, 1) both; }
.shape-float { animation: shapeFloat 11s var(--float-delay, 0s) ease-in-out infinite; }
/* both marks are parallelograms: the lean echoes the cut corners and
   forward rake of the CAND wordmark */
.shape-shard, .shape-block {
  clip-path: polygon(var(--skew, 34px) 0, 100% 0, calc(100% - var(--skew, 34px)) 100%, 0 100%);
}
.shape-shard { width: var(--w); height: calc(var(--w) * 0.13); --skew: calc(var(--w) * 0.074); background: var(--red); }
.shape-block { width: calc(var(--w) * 0.65); height: calc(var(--w) * 0.03); --skew: calc(var(--w) * 0.018); background: var(--ink); }
.shapes { position: absolute; inset: 0; z-index: 1; pointer-events: none; --w: clamp(250px, 32vw, 460px); }

/* on the home hero the shapes sit inside .core (its own stacking context),
   so they go behind the copy with a negative z-index */
.core > .shapes { z-index: -1; }

.sh { position: absolute; transform: rotate(-14deg); }
/* left flash, upper: red shard with its stripe underneath */
.sh-1 { left: calc(var(--w) * -0.54); top: 16%; }
.sh-4 { left: calc(var(--w) * -0.37); top: calc(16% + var(--w) * 0.21); }
/* right flash, lower: stripe on top, red shard under it */
.sh-2 { right: calc(var(--w) * -0.54); top: 74%; }
.sh-3 { right: calc(var(--w) * -0.37); top: calc(74% - var(--w) * 0.11); }
.sh-2 .shape-entry, .sh-3 .shape-entry { --from: 180px; }
.sh-2 .shape-float, .sh-3 .shape-float { --drift: -14px; }

/* subpage bands are short: one red shard low on one side, one stripe high
   on the other. .stage-alt mirrors it so pages do not feel copy-pasted */
.stage-head .shapes { --w: clamp(220px, 26vw, 380px); }
.stage-head .sh-1 { top: 58%; }
.stage-head .sh-3 { top: 20%; }
.stage-alt .sh-1 { left: auto; right: calc(var(--w) * -0.54); top: 16%; }
.stage-alt .sh-3 { right: auto; left: calc(var(--w) * -0.37); top: 70%; }
.stage-alt .sh-1 .shape-entry { --from: 180px; }
.stage-alt .sh-1 .shape-float { --drift: -14px; }
.stage-alt .sh-3 .shape-entry { --from: -180px; }
.stage-alt .sh-3 .shape-float { --drift: 14px; }

/* ---- HERO CONTENT -------------------------------------------------- */
.core {
  position: relative; z-index: 5;
  flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: clamp(56px, 8vh, 96px) var(--pad-x) clamp(40px, 6vh, 64px);
}
.stage-head .core { padding-top: clamp(64px, 8vh, 88px); padding-bottom: clamp(48px, 6vh, 64px); }
.core-inner { max-width: var(--wrap); width: 100%; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
.a0 { animation: fadeUp 0.9s 0.15s cubic-bezier(0.25,0.4,0.25,1) both; }
.a1 { animation: fadeUp 0.9s 0.32s cubic-bezier(0.25,0.4,0.25,1) both; }
.a2 { animation: fadeUp 0.9s 0.50s cubic-bezier(0.25,0.4,0.25,1) both; }
.a3 { animation: fadeUp 0.9s 0.68s cubic-bezier(0.25,0.4,0.25,1) both; }
.a4 { animation: fadeUp 0.9s 0.86s cubic-bezier(0.25,0.4,0.25,1) both; }
.a5 { animation: fadeUp 0.9s 1.04s cubic-bezier(0.25,0.4,0.25,1) both; }

/* Overline: small caps label. Hairlines either side only when centered. */
.badge {
  display: inline-flex; align-items: center; gap: 18px;
  margin-bottom: clamp(18px, 2.6vh, 28px);
}
.badge-rule { width: 56px; height: 1px; background: rgba(0,0,0,0.28); flex-shrink: 0; }
.badge-text {
  font-size: 14px; font-weight: 600; letter-spacing: 0.24em;
  text-transform: uppercase; color: rgba(0,0,0,0.66);
  white-space: nowrap;
}
.overline {
  display: block;
  font-size: 14px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--red);
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(50px, 7.2vw, 104px);
  font-weight: 900; line-height: 0.96; letter-spacing: -0.045em;
  color: var(--ink);
  margin-bottom: clamp(22px, 3vh, 32px);
  text-wrap: balance;
}
h1 .accent, h2 .accent { color: var(--red); }
h1.sub { font-size: clamp(44px, 5.4vw, 76px); margin-bottom: clamp(16px, 2.4vh, 24px); }

.lede {
  font-size: clamp(19px, 2.2vw, 25px);
  font-weight: 400; line-height: 1.5; color: var(--tx-dim);
  max-width: 760px; margin: 0 auto clamp(28px, 4vh, 40px);
  text-wrap: balance;
}
.lede b { color: var(--ink); font-weight: 700; }
.stage-head .lede { margin-bottom: 0; }
.hero-sub {
  font-size: 15px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--tx-faint);
  margin-top: clamp(22px, 3.4vh, 34px);
}

.ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- PROOF STRIP (bottom of the home hero) --------------------------- */
.proof {
  position: relative; z-index: 5;
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 26px var(--pad-x) 30px;
  display: flex; align-items: center; gap: 40px;
  max-width: 100%;
}
.proof-label {
  flex-shrink: 0;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--tx-faint);
  white-space: nowrap;
}
.proof-logos {
  flex: 1; display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
}
/* logos are pre-keyed to white with real alpha; brightness(0) prints them
   black for the white ground. --h sets optical weight */
.proof-logos img {
  height: calc(var(--h, 23px) * 1.25); width: auto; object-fit: contain;
  filter: brightness(0);
  opacity: 0.7; transition: opacity 0.25s ease;
}
.proof-logos img:hover { opacity: 1; }

/* ---- SECTIONS ------------------------------------------------------- */
.sect {
  position: relative;
  padding: var(--sect-y) var(--pad-x);
  overflow: hidden;
  background: var(--bg);
}
.sect-alt { background: var(--bg-alt); }
.sect + .sect { border-top: 1px solid var(--border); }
.sect-tight { padding-top: clamp(40px, 5vh, 56px); }
.sect-inner { position: relative; z-index: 5; max-width: var(--wrap); margin: 0 auto; }
.sect-center { text-align: center; }

h2.sec {
  font-size: clamp(38px, 4.4vw, 60px);
  font-weight: 800; line-height: 1.02; letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: clamp(16px, 2.4vh, 24px);
  text-wrap: balance;
}
.sec-lede {
  font-size: clamp(18px, 1.9vw, 22px);
  line-height: 1.55; color: var(--tx-dim);
  max-width: 720px;
  text-wrap: pretty;
}
.sec-lede + .sec-lede { margin-top: 14px; }
/* the one centered section header a page may use */
.sec-head { text-align: center; margin-bottom: clamp(32px, 4.6vh, 52px); }
.sec-head .sec-lede { margin-inline: auto; text-wrap: balance; }

/* left column headline, right column content */
.split {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 5vw, 88px); align-items: start;
}
.split-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split-head .sec-lede { max-width: 520px; }
.split-head .ctas { justify-content: flex-start; margin-top: clamp(22px, 3vh, 30px); }

/* ---- ROWS: a hairline list, the replacement for grids of empty cards -- */
.rows { list-style: none; border-top: 2px solid var(--ink); }
.rows li { border-bottom: 1px solid var(--border); }
.row {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) auto;
  gap: 24px; align-items: baseline;
  padding: 22px 0; text-decoration: none; color: inherit;
  transition: padding-left 0.25s ease;
}
a.row:hover { padding-left: 10px; }
a.row:hover .row-name { color: var(--red); }
a.row:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.row-name {
  font-size: clamp(19px, 1.7vw, 22px); font-weight: 700; letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 0.2s ease;
}
.row-desc { font-size: 17px; line-height: 1.5; color: var(--tx-dim); }
.row-go {
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--red); white-space: nowrap;
}

/* big red-square bullet list, the logo's door as the mark */
.biglist { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.biglist li {
  position: relative; padding-left: 24px;
  font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5;
  color: var(--tx-dim);
}
.biglist li::before {
  content: ''; position: absolute; left: 0; top: 0.62em;
  width: 8px; height: 8px; background: var(--red);
}
.biglist b { color: var(--ink); font-weight: 700; }

/* ---- STEPS: numbered three-across ---------------------------------- */
.steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px); text-align: left;
}
.step { border-top: 2px solid var(--ink); padding-top: 20px; }
/* stacked as a list: one strong rule on top, hairlines between */
.steps-list { grid-template-columns: 1fr; gap: 0; }
.steps-list .step { padding: 22px 0 24px; }
.steps-list .step + .step { border-top: 1px solid var(--border); }
.step-num {
  display: block; font-size: 15px; font-weight: 800; letter-spacing: 0.14em;
  color: var(--red); margin-bottom: 12px;
}
.step-name {
  display: block; font-size: clamp(20px, 1.8vw, 24px); font-weight: 700;
  letter-spacing: -0.01em; color: var(--ink); margin-bottom: 8px;
}
.step-line { display: block; font-size: 17px; line-height: 1.55; color: var(--tx-dim); }

/* ---- CARDS ---------------------------------------------------------- */
/* White panels lifted off the ground by a layered shadow, never flat. */
.card {
  position: relative;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05), 0 12px 32px rgba(0,0,0,0.07);
  padding: clamp(26px, 3vw, 36px);
  display: flex; flex-direction: column;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { border-color: rgba(0,0,0,0.28); transform: translateY(-4px); box-shadow: 0 2px 4px rgba(0,0,0,0.06), 0 22px 48px rgba(0,0,0,0.12); }
a.card { text-decoration: none; color: inherit; }
/* the featured tier: red frame, red-tinted lift */
/* the second pixel of the frame is a shadow ring, not border, so the
   featured card's content sits on the same lines as its neighbors */
.card.featured {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red), 0 1px 2px rgba(228,34,32,0.12), 0 16px 40px rgba(228,34,32,0.16);
}
.card.featured:hover { border-color: var(--red); box-shadow: 0 0 0 1px var(--red), 0 2px 4px rgba(228,34,32,0.14), 0 24px 54px rgba(228,34,32,0.22); }

.card-name {
  font-size: 15px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink);
  margin-bottom: 10px;
}
.card.featured .card-name { color: var(--red); }
.card-desc {
  font-size: 17px; font-weight: 400; line-height: 1.55;
  color: var(--tx-dim);
}
.card ul { list-style: none; margin-top: 18px; display: flex; flex-direction: column; gap: 11px; }
.card li {
  position: relative; padding-left: 18px;
  font-size: 16.5px; font-weight: 400; line-height: 1.45;
  color: var(--tx-dim); text-align: left;
}
.card li::before {
  content: ''; position: absolute; left: 0; top: 0.6em;
  width: 6px; height: 6px; background: var(--red);
}
/* side-by-side cards: hold the one-line descs to an equal two-line box so
   every list of dots starts on the same horizontal (Cannon, 2026-09-03) */
.grid-cards .card-desc { min-height: calc(2 * 1.55em); }

/* pricing tiers, shared by home teaser, pricing, remote */
.tier-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px; align-items: stretch; text-align: left;
}
.tier-price {
  font-size: clamp(40px, 4vw, 56px); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1; color: var(--ink);
  margin-bottom: 8px;
}
.tier-price small { font-size: 18px; font-weight: 500; color: var(--tx-faint); letter-spacing: 0; }
.tier-price .from {
  display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--tx-faint);
  margin-bottom: 8px;
}
.tier-note { font-size: 16px; color: var(--tx-faint); min-height: 24px; }
.tier-for {
  font-size: 17px; color: var(--tx-faint); line-height: 1.5;
  margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border);
}
.tier-grid .card ul { margin-bottom: 20px; }

/* ---- CLOSING CTA (one per page, compact) ---------------------------- */
.close {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.close h2.sec { margin-bottom: 8px; }
.close .sec-lede { max-width: 560px; }
.close .close-email { display: inline-block; margin-top: 10px; }
.close .ctas { justify-content: flex-start; flex-shrink: 0; }
.close-email {
  font-size: 17px; font-weight: 600; color: var(--ink);
  text-decoration: none; letter-spacing: 0.01em;
  border-bottom: 2px solid var(--red); padding-bottom: 2px;
  transition: color 0.2s ease;
}
.close-email:hover { color: var(--red); }
.close-email:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ---- FOOTER: the one black band on the site -------------------------- */
footer {
  background: var(--black);
  color: var(--white);
  padding: 56px var(--pad-x) 34px;
}
.foot-inner {
  max-width: var(--wrap); margin: 0 auto;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 32px 48px; flex-wrap: wrap;
}
.foot-brand { display: flex; flex-direction: column; gap: 16px; }
.foot-logo-wrap { display: inline-flex; text-decoration: none; }
.foot-logo-wrap:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.foot-logo { height: 38px; width: auto; display: block; }
.foot-loc {
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(255,255,255,0.62);
}
.foot-nav { display: flex; align-items: center; gap: 12px 30px; flex-wrap: wrap; padding-top: 8px; }
.foot-link {
  font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.78); text-decoration: none;
  transition: color 0.2s ease;
}
.foot-link:hover { color: var(--white); }
.foot-link:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.foot-base {
  max-width: var(--wrap); margin: 40px auto 0;
  padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.16);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px 24px; flex-wrap: wrap;
}
.foot-copy { font-size: 15px; color: rgba(255,255,255,0.58); }
.foot-email {
  font-size: 16px; font-weight: 500; color: var(--white); text-decoration: none;
  border-bottom: 1px solid var(--red); padding-bottom: 2px;
  transition: color 0.2s ease;
}
.foot-email:hover { color: rgba(255,255,255,0.8); }
.foot-email:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ---- SCROLL REVEAL (CSS-only; the prod CSP allows no scripts) -------- */
@supports (animation-timeline: view()) {
  .rise {
    animation: fadeUp 1s both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
}

/* ---- RESPONSIVE ----------------------------------------------------- */
@media (max-width: 900px) {
  :root { --pad-x: 22px; }

  /* tablet and phone: the copy runs closer to the edges, so the flash
     shrinks and moves to the top and bottom margins of the band */
  .shapes, .stage-head .shapes { --w: 200px; }
  .sh-1 { top: 2%; }
  .sh-4 { top: calc(2% + var(--w) * 0.21); }
  .sh-2 { top: auto; bottom: 2%; }
  .sh-3 { top: auto; bottom: calc(2% + var(--w) * 0.2); }
  .stage-head .sh-1 { top: auto; bottom: 5%; }
  .stage-head .sh-3 { top: 7%; }
  .stage-alt .sh-1 { top: 5%; bottom: auto; }
  .stage-alt .sh-3 { top: auto; bottom: 7%; }

  .split, .split-even { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .tier-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .tier-note { min-height: 0; }
  .row { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
  .row-go { justify-self: start; }
  .proof { flex-direction: column; align-items: flex-start; gap: 18px; padding-top: 20px; }
  .proof-logos { justify-content: flex-start; gap: 18px 26px; }
  .proof-logos img { height: calc(var(--h, 23px) * 0.95); }
  .close { flex-direction: column; align-items: flex-start; }
}

/* nav collapses to two centered rows once links stop fitting beside the logo */
@media (max-width: 940px) {
  nav {
    flex-direction: column; align-items: center;
    gap: 10px; padding: 12px 16px;
  }
  .nav-logo-wrap { height: 38px; }
  .nav-logo { height: 34px; }
  .nav-links { gap: 20px; }
  .btn-nav { padding: 9px 18px; font-size: 13px; }
  html { scroll-padding-top: 130px; }
}
@media (max-width: 640px) {
  /* no room for the hairlines beside the label, or for shapes in the short
     subpage bands: the home hero keeps its flash, top and bottom */
  .badge-rule { display: none; }
  .badge-text { font-size: 11.5px; letter-spacing: 0.16em; }
  .stage-head .shapes { display: none; }
  .shapes { --w: 170px; }
  /* five items never fit one row at phone width: let them wrap, centered */
  .nav-links { gap: 8px 14px; flex-wrap: wrap; justify-content: center; max-width: 100%; }
  .nav-link { font-size: 12px; letter-spacing: 0.08em; }
  .ctas { flex-direction: column; width: 100%; max-width: 380px; margin-inline: auto; }
  .split-head .ctas, .close .ctas { margin-inline: 0; }
  .ctas .btn-text { justify-content: center; width: 100%; }
  .grid-cards .card-desc { min-height: 0; }
  footer { padding: 44px var(--pad-x) 28px; }
  .foot-inner { flex-direction: column; gap: 26px; }
  .foot-nav { padding-top: 0; gap: 12px 22px; }
  .foot-base { margin-top: 30px; flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shape-entry, .shape-float, .a0, .a1, .a2, .a3, .a4, .a5, .rise { animation: none !important; }
  .shape-entry { opacity: 1; }
}
