/* ==========================================================================
   macro — design system v02
   Source of truth: brand/guidelines.html (v1.0). Contract: DESIGN.md.
   Five colors. Three typefaces. Three shapes. Never quite inside the lines.
   ========================================================================== */

:root {
  --poppy: #FC8484;
  --cornflower: #78A8FC;
  --pear: #CCF084;
  --ink: #101010;
  --paper: #FBF8F2;
  --pencil: #6E6A62;
  --white: #FFFFFF;

  --font-display: 'Poppins', ui-sans-serif, system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Newsreader', Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --font-mono: 'Space Mono', ui-monospace, Menlo, Consolas, monospace;

  --ease-draw: cubic-bezier(.6, .05, .2, 1);
  --duration-draw: 600ms;
  --duration-nudge: 150ms;

  --maxw: 1060px;
  --maxw-wide: 1240px;
  --pad: 28px;
  --nav-h: 66px;
  --border: 2.5px solid var(--ink);
  --radius: 6px;
  --wobble: 255px 15px 225px 15px / 15px 225px 15px 255px;
  --wobble-2: 15px 225px 15px 255px / 255px 15px 225px 15px;
}

/* ---------- reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
::selection { background: var(--pear); color: var(--ink); }
img, svg, video { display: block; max-width: 100%; }
svg { overflow: visible; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
strong, b { font-weight: 600; }
em, i { font-style: italic; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  /* two flat rings: ink outside (>= 3:1 on paper and white), cornflower inside — no blur, so still not a drop shadow */
  outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 3px var(--cornflower);
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip {
  position: fixed; top: 10px; left: 10px; z-index: 100; transform: translateY(-200%);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  background: var(--white); border: var(--border); border-radius: var(--wobble); padding: 8px 14px; text-decoration: none;
}
.skip:focus { transform: none; outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 3px var(--cornflower); }

/* ---------- typography ---------- */
h1, h2, h3, h4, h5 { font-family: var(--font-display); text-transform: lowercase; text-wrap: balance; }
.display, h1 { font-weight: 700; font-size: clamp(40px, 6.2vw, 72px); letter-spacing: -.03em; line-height: 1.02; }
h2 { font-weight: 700; font-size: clamp(32px, 4.6vw, 48px); letter-spacing: -.03em; line-height: 1.05; }
h3 { font-weight: 600; font-size: clamp(22px, 2.4vw, 26px); letter-spacing: -.015em; line-height: 1.2; }
h4 { font-weight: 600; font-size: 19px; letter-spacing: -.01em; line-height: 1.25; }
h5 { font-weight: 600; font-size: 16px; }
p { max-width: 680px; }
p + p { margin-top: 16px; }
.lede { font-size: clamp(20px, 2.2vw, 23px); line-height: 1.5; max-width: 620px; }
.note { font-style: italic; color: var(--pencil); font-size: 17px; line-height: 1.5; }
.mono-label, .eyebrow {
  display: inline-block; font-family: var(--font-mono); font-size: 11.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--pencil); line-height: 1.4;
}
.eyebrow { color: var(--ink); }
.mono { font-family: var(--font-mono); font-size: 14px; letter-spacing: .02em; }
.hl { background: linear-gradient(transparent 62%, var(--pear) 62%); }
.prose a, .note a, .lede a, .faq a, .card a:not(.btn) {
  text-decoration: underline; text-decoration-color: var(--cornflower); text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.prose a:hover, .note a:hover, .lede a:hover, .faq a:hover { text-decoration-color: var(--ink); }
.text-center { text-align: center; }
.flow > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 44px; }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.wrap--wide { max-width: var(--maxw-wide); }
.section { padding: 96px 0 72px; }
.section--tight { padding: 64px 0 48px; }
.section--flush { padding-top: 40px; }
.rule { display: block; width: 100%; height: 22px; }
.rule line { stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.split--top { align-items: start; }
.center { display: flex; align-items: center; justify-content: center; }
.row { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }

/* section heads */
.sec-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 14px; flex-wrap: wrap; }
.sec-head:has(> .shape) { flex-direction: column; align-items: flex-start; gap: 14px; }
.sec-head .shape { margin-bottom: 2px; }
.sec-num {
  font-family: var(--font-mono); font-size: 15px; font-weight: 700; letter-spacing: .1em; line-height: 1.2;
  border: var(--border); padding: 5px 11px; border-radius: var(--wobble);
  position: relative; background: var(--white); flex: none;
}
.sec-num::after { content: ''; position: absolute; inset: 0; z-index: -1; transform: translate(5px, 5px); border-radius: var(--wobble); }
.sec-num.sq::after { background: var(--poppy); }
.sec-num.tr::after { background: var(--cornflower); }
.sec-num.ci::after { background: var(--pear); }
.sec-sub { font-style: italic; font-size: 21px; line-height: 1.45; color: var(--pencil); max-width: 640px; margin-bottom: 44px; }
.sec-sub--tight { margin-bottom: 28px; }

/* ---------- shapes ---------- */
.shape { flex: none; overflow: visible; }
.shape--xs { width: 22px; height: 22px; }
.shape--sm { width: 40px; height: 40px; }
.shape--md { width: 64px; height: 64px; }
.shape--lg { width: 110px; height: 110px; }
.shape--xl { width: 160px; height: 160px; }
.shape--tilt-l { transform: rotate(-6deg); }
.shape--tilt-r { transform: rotate(5deg); }
.shape--tilt-s { transform: rotate(-3deg); }

/* the logo lockup: square · m · triangle-as-a · c · r · circle-as-o */
.logo { display: inline-flex; align-items: center; line-height: 1; user-select: none; gap: .045em; text-decoration: none; }
.logo .lt { font-family: var(--font-display); font-weight: 700; letter-spacing: -.035em; transform: translateY(1.5%); text-transform: lowercase; }
.logo .shp { flex: none; overflow: visible; }
.logo .shp-sq { width: .92em; height: .92em; margin-right: .09em; }
.logo .shp-tr { width: .84em; height: .84em; margin: 0 -.01em; }
.logo .shp-ci { width: .76em; height: .76em; margin-left: .02em; }
.logo--nav { font-size: 26px; } /* lockup ≈ 124px wide — the guidelines' 120px minimum for the full lockup */
.logo--md { font-size: 34px; }
.logo--lg { font-size: 56px; }
.logo--hero { font-size: clamp(58px, 10.5vw, 138px); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--nav-h);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--ink);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) { .nav { background: rgba(251, 248, 242, .94); } } /* fallback must track --paper (#FBF8F2) */
.nav__inner { max-width: var(--maxw-wide); margin: 0 auto; padding: 0 var(--pad); height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__links { display: flex; align-items: center; gap: 24px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; }
.nav__links a { text-decoration: none; padding: 4px 2px; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav__links a:hover, .nav__links a:focus-visible, .nav__links a[aria-current="page"] { border-bottom-color: var(--ink); }
.nav__cta { margin-left: 8px; }
.nav__toggle {
  display: none; width: 44px; height: 44px; border: var(--border); border-radius: var(--wobble); background: var(--white);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; position: relative;
}
.nav__toggle::after { content: ''; position: absolute; inset: -2.5px; z-index: -1; transform: translate(4px, 4px); border-radius: var(--wobble); background: var(--cornflower); }
.nav__toggle span { display: block; width: 18px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform var(--duration-nudge) var(--ease-draw), opacity var(--duration-nudge); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 49;
  background: var(--paper); border-bottom: var(--border); padding: 18px var(--pad) 28px;
}
.menu.is-open { display: block; }
.menu a { display: block; font-family: var(--font-display); font-weight: 600; font-size: 24px; text-transform: lowercase; text-decoration: none; padding: 10px 0; border-bottom: 1.5px dashed var(--pencil); }
.menu a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--cornflower); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.menu .btn { margin-top: 22px; border-bottom: 3px solid var(--ink); }
@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
}

/* ---------- buttons: hand-drawn outline, flat offset color, the nudge ---------- */
.btn {
  display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: 16.5px; line-height: 1.2;
  text-transform: lowercase; letter-spacing: -.01em; color: var(--ink); text-decoration: none; text-align: center;
  padding: 13px 26px; border: 3px solid var(--ink); background: var(--white); border-radius: var(--wobble);
  position: relative; cursor: pointer; transition: transform var(--duration-nudge) var(--ease-draw); white-space: nowrap;
}
.btn::after { content: ''; position: absolute; inset: -3px; z-index: -1; transform: translate(6px, 6px); border-radius: var(--wobble); background: var(--pencil); transition: transform var(--duration-nudge) var(--ease-draw); }
.btn--primary::after { background: var(--poppy); }
.btn--secondary::after { background: var(--cornflower); }
.btn--tertiary::after { background: var(--pear); }
.btn--ghost::after { background: transparent; border: 2px dashed var(--pencil); }
.btn:hover { transform: translate(3px, 3px); }
.btn:hover::after { transform: translate(3px, 3px); }
.btn:active { transform: translate(6px, 6px); }
.btn:active::after { transform: translate(0, 0); }
.btn--sm { font-size: 14.5px; padding: 10px 20px; }
.btn--lg { font-size: 18.5px; padding: 16px 32px; }
.actions { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; margin-top: 34px; }
.actions .note { margin: 0; font-size: 16px; }

/* ---------- cards ---------- */
.card { border: var(--border); background: var(--white); border-radius: var(--radius); padding: 30px; position: relative; }
.card--tape { padding-top: 40px; margin-top: 14px; }
.fig-cap {
  position: absolute; top: -13px; left: 22px; background: var(--white); padding: 2px 10px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  border: 2px solid var(--ink); border-radius: 20px; white-space: nowrap; max-width: calc(100% - 44px); overflow: hidden; text-overflow: ellipsis;
}
.card--offset-poppy { box-shadow: 7px 7px 0 var(--poppy); }
.card--offset-cornflower { box-shadow: 7px 7px 0 var(--cornflower); }
.card--offset-pear { box-shadow: 7px 7px 0 var(--pear); }
.card--paper { background: var(--paper); }
.card--link { text-decoration: none; display: block; transition: transform var(--duration-nudge) var(--ease-draw), box-shadow var(--duration-nudge) var(--ease-draw); }
.card--link:hover { transform: translate(3px, 3px); }
.card--link.card--offset-poppy:hover { box-shadow: 4px 4px 0 var(--poppy); }
.card--link.card--offset-cornflower:hover { box-shadow: 4px 4px 0 var(--cornflower); }
.card--link.card--offset-pear:hover { box-shadow: 4px 4px 0 var(--pear); }
.card p { font-size: 17px; }
.card .mono-label { margin-bottom: 12px; }
.card h3, .card h4 { margin-bottom: 8px; }

/* feature card */
.feature .shape { margin-bottom: 18px; }
.feature p { font-size: 16.5px; }

/* tiles (small labelled cards) */
.tile { border: var(--border); border-radius: var(--radius); background: var(--white); padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; }
.tile .shape { margin-top: 3px; }
.tile h5 { margin-bottom: 4px; }
.tile p { font-size: 16px; line-height: 1.45; color: var(--pencil); }

/* ---------- lists: bullets are tiny hand-drawn shapes ---------- */
/* note: the .list--tr data-uri hard-codes --cornflower (#78A8FC) and --ink (#101010); update it if the palette changes */
.list { margin: 14px 0 0; }
.list li { position: relative; padding-left: 30px; margin-bottom: 10px; font-size: 17px; line-height: 1.5; }
.list li::before { content: ''; position: absolute; left: 1px; top: .38em; width: 14px; height: 14px; border: 2.5px solid var(--ink); background: var(--poppy); border-radius: 4px 2px 5px 2px / 2px 5px 2px 4px; box-shadow: 1.5px 1.5px 0 var(--poppy); transform: rotate(-4deg); }
.list--ci li::before { background: var(--pear); border-radius: 50% 46% 52% 48% / 48% 52% 46% 50%; box-shadow: 1.5px 1.5px 0 var(--pear); }
.list--tr li::before { border: 0; background: no-repeat center / 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 2.5 L18.5 17.5 L1.5 17.5 Z' fill='%2378A8FC' transform='translate(-1.2,1.2)'/%3E%3Cpath d='M10 2.5 L18.5 17.5 L1.5 17.5 Z' fill='none' stroke='%23101010' stroke-width='2.6' stroke-linejoin='round'/%3E%3C/svg%3E"); width: 17px; height: 17px; box-shadow: none; transform: none; top: .3em; left: 0; }
.list--inline { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.list--inline li { margin: 0; }

/* ---------- the product sequence ---------- */
.steps { display: grid; gap: 26px; }
.step { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 22px; align-items: start; }
.step__num { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 4px; }
.step .card { min-width: 0; }
@media (max-width: 640px) { .step { grid-template-columns: 1fr; } .step__num { flex-direction: row; } }

/* ---------- stats ---------- */
.stat { border-top: var(--border); padding-top: 14px; }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 4.6vw, 52px); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__label { display: block; margin-top: 8px; }

/* ---------- quote ---------- */
.quote { font-style: italic; font-size: clamp(23px, 2.8vw, 30px); line-height: 1.4; max-width: 760px; text-wrap: balance; }
.quote cite { display: block; font-style: normal; font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pencil); margin-top: 18px; }

/* ---------- spec table ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 14px; }
.spec-table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 13px; line-height: 1.45; min-width: 560px; }
.spec-table th { text-align: left; padding: 10px 12px; border-bottom: var(--border); font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.spec-table td { padding: 12px; border-bottom: 1.5px dashed var(--pencil); vertical-align: top; }
.spec-table td:first-child { white-space: nowrap; font-weight: 700; }
.spec-table tr:last-child td { border-bottom: 0; }
.spec-table .serif { font-family: var(--font-serif); font-size: 16px; }
.spec-table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.chip { display: inline-block; font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border: 2px solid var(--ink); border-radius: var(--wobble); background: var(--white); white-space: nowrap; }
.chip--poppy { background: var(--poppy); }
.chip--cornflower { background: var(--cornflower); }
.chip--pear { background: var(--pear); }

/* ---------- say / avoid, instead-of / macro ---------- */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.pair .tag { display: inline-block; font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; padding: 4px 12px; border: 2px solid var(--ink); border-radius: var(--wobble); margin-bottom: 16px; }
.pair .tag--pear { background: var(--pear); }
.pair .tag--poppy { background: var(--poppy); }
.pair .tag--cornflower { background: var(--cornflower); }
.pair p + p { margin-top: 12px; }

/* ---------- faq ---------- */
.faq { max-width: 760px; }
.faq details { border-top: 1.5px dashed var(--pencil); padding: 18px 0; }
.faq details:last-child { border-bottom: 1.5px dashed var(--pencil); }
.faq summary { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.3; text-transform: lowercase; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; content: '+' / ''; font-family: var(--font-mono); font-size: 24px; line-height: 1; flex: none; width: 34px; height: 34px; display: grid; place-items: center; border: var(--border); border-radius: var(--wobble); background: var(--white); }
.faq details[open] summary::after { content: '–'; content: '–' / ''; background: var(--pear); }
.faq details p { font-size: 17px; margin-top: 12px; max-width: 640px; }

/* ---------- forms ---------- */
.form { max-width: 720px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.field > label, .field > .legend { font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.field .hint { font-style: italic; color: var(--pencil); font-size: 15px; }
.input { font-family: var(--font-mono); font-size: 15px; line-height: 1.4; padding: 12px 14px; border: var(--border); border-radius: 4px 3px 5px 3px / 3px 5px 3px 4px; background: var(--white); width: 100%; color: var(--ink); }
.input::placeholder { color: var(--pencil); }
textarea.input { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 17px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; }
.form__done { border: var(--border); border-radius: var(--radius); background: var(--white); padding: 30px; box-shadow: 7px 7px 0 var(--pear); }

/* ---------- closing cta band ---------- */
.cta-band {
  border: var(--border); border-radius: var(--radius); background: var(--white); padding: 56px 44px; position: relative;
  box-shadow: 8px 8px 0 var(--pear); display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap;
}
.cta-band h2 { max-width: 560px; margin-bottom: 12px; }
.cta-band p { max-width: 520px; }
.cta-band .actions { margin-top: 0; }
.cta-band .shape { position: absolute; right: 28px; top: -34px; }
@media (max-width: 640px) { .cta-band { padding: 40px 24px; } .cta-band .shape { right: 16px; top: -26px; } }

/* ---------- footer ---------- */
.footer { border-top: var(--border); padding: 44px 0 56px; margin-top: 96px; }
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.footer__brand { max-width: 300px; }
.footer__brand .mono-label { display: block; margin-top: 16px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(110px, auto)); gap: 32px 48px; }
.footer__title { display: block; font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pencil); margin-bottom: 12px; }
.footer__cols h5 { font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pencil); margin-bottom: 12px; }
.footer__cols a { display: block; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 15px; text-transform: lowercase; padding: 3px 0; border-bottom: 2px solid transparent; width: max-content; }
.footer__cols a:hover { border-bottom-color: var(--ink); }
.footer__bottom { margin-top: 44px; padding-top: 22px; border-top: 1.5px dashed var(--pencil); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 640px) { .footer__cols { grid-template-columns: 1fr 1fr; } }

/* ---------- hero & page head ---------- */
.hero { padding: calc(var(--nav-h) + 72px) 0 72px; }
.hero .eyebrow { margin-bottom: 22px; }
.hero .display { font-size: clamp(40px, 5.2vw, 62px); margin-bottom: 26px; }
.hero .actions { gap: 18px; }
.hero .lede + .lede { margin-top: 14px; }
.hero__visual { position: relative; }
.hero__cap { display: block; margin-top: 14px; }
.page-head { padding: calc(var(--nav-h) + 64px) 0 56px; }
.page-head .eyebrow { margin-bottom: 18px; }
.page-head .display { font-size: clamp(38px, 5.6vw, 64px); margin-bottom: 22px; }
.page-head__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
@media (max-width: 920px) { .split, .page-head__grid { grid-template-columns: 1fr; } .page-head__grid .shape { display: none; } }

/* ---------- motion: the draw, the nudge, the boil ---------- */
.js .draw { opacity: 0; transform: translateY(14px); transition: opacity var(--duration-draw) var(--ease-draw), transform var(--duration-draw) var(--ease-draw); }
.js .draw.is-in { opacity: 1; transform: none; }
.js .draw-shape svg, .js svg.draw-shape { stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; transition: stroke-dashoffset var(--duration-draw) var(--ease-draw), fill-opacity 300ms var(--ease-draw) 380ms; }
.js .draw-shape.is-in svg, .js svg.draw-shape.is-in { stroke-dashoffset: 0; fill-opacity: 1; }
.js .draw-shape .ink { stroke-dasharray: none; } /* hand-drawn paths without pathLength must not inherit the 1px dash */
.draw[data-delay="1"] { transition-delay: 90ms; }
.draw[data-delay="2"] { transition-delay: 180ms; }
.draw[data-delay="3"] { transition-delay: 270ms; }
.draw[data-delay="4"] { transition-delay: 360ms; }
.draw[data-delay="5"] { transition-delay: 450ms; }

/* ---------- stacking: offset blocks (::after z-index -1) must paint inside their container, not under it ---------- */
.card, .cta-band, .tile, .form__done, .menu, .step__num, .pair > * { isolation: isolate; }
.proper { text-transform: none; }
fieldset.field { border: 0; min-width: 0; padding: 0; }
fieldset.field > .legend { display: block; float: none; padding: 0; margin-bottom: 10px; }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  :root { --pad: 20px; }
  body { font-size: 18px; }
  .section { padding: 64px 0 48px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .pair, .form-row, .checks { grid-template-columns: 1fr; }
  .card { padding: 24px 20px; }
  .card--tape { padding-top: 34px; }
  .cta-band .shape { width: 64px; height: 64px; }
  .hero { padding-top: calc(var(--nav-h) + 48px); }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .btn { white-space: normal; text-wrap: balance; }
  .cta-band .btn { width: 100%; }
  .actions { gap: 18px; }
  .fig-cap { white-space: normal; text-overflow: clip; overflow: visible; line-height: 1.3; top: -15px; left: 14px; max-width: calc(100% - 28px); }
  .card--tape { padding-top: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .draw { opacity: 1; transform: none; }
  .js .draw-shape svg, .js svg.draw-shape { stroke-dashoffset: 0; fill-opacity: 1; }
}

@media print {
  .nav, .menu, .skip, .cta-band { display: none; }
  .hero, .page-head { padding-top: 24px; }
  body { font-size: 12pt; }
}

main:focus { outline: none; }
