/* medicalpcba.com — calm, exacting, humane.
   Radio Canada Big (display) + Atkinson Hyperlegible Next (text). Light, medical-polymer neutrals
   tinted toward one surgical-scrub green. Hardware artefacts only: device labels, a build traveler,
   the certificate, ECG paper. */

@font-face { font-family: 'RCB'; src: url('/fonts/radio-canada-big.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Atkinson'; src: url('/fonts/atkinson-next.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Atkinson'; src: url('/fonts/atkinson-next-italic.woff2') format('woff2'); font-weight: 200 800; font-style: italic; font-display: swap; }
/* Atkinson's slashed zero reads as code in running text; borrow Radio Canada's text figures (95% to match). */
@font-face { font-family: 'Figures'; src: url('/fonts/radio-canada.woff2') format('woff2'); font-weight: 300 700; unicode-range: U+0030-0039; size-adjust: 95%; font-display: swap; }

:root {
  --bg: oklch(0.982 0.004 170);
  --bg-2: oklch(0.958 0.008 170);
  --white: oklch(0.996 0.002 170);
  --paper: oklch(0.986 0.007 95);
  --ink: oklch(0.245 0.022 186);
  --ink-2: oklch(0.43 0.02 183);
  --ink-3: oklch(0.565 0.016 180);
  --line: oklch(0.89 0.009 172);
  --line-2: oklch(0.8 0.013 172);
  --scrub: oklch(0.54 0.095 167);
  --scrub-ink: oklch(0.42 0.08 168);
  --scrub-deep: oklch(0.3 0.045 172);
  --scrub-tint: oklch(0.945 0.03 167);
  --alarm: oklch(0.56 0.17 27);
  --ecg-paper: oklch(0.978 0.013 28);
  --ecg-fine: oklch(0.89 0.045 22);
  --ecg-bold: oklch(0.8 0.085 22);
  --ecg-ink: oklch(0.52 0.15 24);

  --head: 68px;
  --gutter: clamp(16px, 3vw, 32px);
  --r-lg: 28px; --r-md: 18px; --r-sm: 10px;
  --display: 'RCB', 'Atkinson', system-ui, sans-serif;
  --text: 'Figures', 'Atkinson', system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --sec: clamp(80px, 10vw, 148px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.62 var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.022em; line-height: 1.04; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 1.1rem + 3.3vw, 4.3rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 1.15rem + 2.3vw, 3.35rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.012em; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--scrub-tint); }
:focus-visible { outline: 2px solid var(--scrub); outline-offset: 3px; }

[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.sec { padding: var(--sec) 0; }

/* ───────── Shared bits ───────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font: 600 0.94rem/1 var(--text); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s; }
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--lg { height: 54px; padding: 0 26px; font-size: 1rem; }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--scrub-ink); }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: oklch(0.996 0.002 170 / .55); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--ghost:hover svg { transform: translateY(3px); }
.btn--block { width: 100%; }
.link { color: var(--scrub-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 6px; }
.link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link:hover { color: var(--ink); }
.link:hover svg { transform: translateX(3px); }
.eyebrow { display: flex; align-items: center; gap: 10px; font: 700 0.78rem/1 var(--text); letter-spacing: 0.13em; text-transform: uppercase; color: var(--scrub-ink); margin-bottom: 18px; }
.eyebrow--light { color: oklch(0.82 0.06 165); }
.symbox { display: inline-grid; place-items: center; min-width: 38px; height: 26px; padding: 0 6px; border: 1.6px solid currentColor; font: 700 0.74rem/1 var(--text); letter-spacing: 0.06em; color: var(--ink); flex: none; }
.symbox--sm { min-width: 30px; height: 20px; font-size: 0.62rem; border-width: 1.4px; padding: 0 4px; }
.sym { width: 34px; height: 34px; color: var(--ink); flex: none; }
.sym--sm { width: 18px; height: 18px; color: currentColor; }
.sym--lg { width: 44px; height: 44px; }
.bars svg { width: 100%; height: 100%; fill: var(--ink); }
.fine { font-size: 0.86rem; color: var(--ink-3); }
.sec-head { max-width: 46rem; margin-bottom: clamp(40px, 5vw, 68px); }
.sec-head h2 { margin-bottom: 18px; }
.sec-head > p:last-child { font-size: 1.14rem; color: var(--ink-2); max-width: 40rem; }
.sec-head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.sec-head--row h2 { margin: 0; }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ───────── Header ───────── */
.site-head { position: sticky; top: 0; z-index: 50; height: var(--head); background: oklch(0.982 0.004 170 / .94); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-head.is-scrolled { border-color: var(--line); }
.head-row { height: 100%; display: flex; align-items: center; gap: 28px; padding: 0 var(--gutter); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand__mark { width: 24px; height: 24px; color: var(--scrub); }
.brand__name { font: 600 1.2rem/1 var(--display); letter-spacing: -0.02em; }
.brand__by { font-size: 0.84rem; color: var(--ink-3); padding-left: 10px; border-left: 1px solid var(--line-2); line-height: 1; }
.nav { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 26px); margin-left: auto; }
.nav a { text-decoration: none; font-size: 0.93rem; font-weight: 500; color: var(--ink-2); transition: color .2s; }
.nav a:hover { color: var(--ink); }
.nav__quote { display: none; }
.menu-btn { display: none; }

/* ───────── Hero: the device, in 3D ───────── */
.hero { padding: 0 var(--gutter); }
.stage { position: relative; height: calc(100svh - var(--head) - var(--gutter)); min-height: 560px; max-height: 960px; border-radius: var(--r-lg); overflow: hidden;
  background:
    radial-gradient(70% 60% at 68% 46%, oklch(0.995 0.002 170) 0%, oklch(0.97 0.006 170) 45%, transparent 80%),
    linear-gradient(180deg, oklch(0.955 0.008 172), oklch(0.915 0.013 174)); }
#device3d { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s var(--ease); }
.stage.is-3d #device3d { opacity: 1; }
.hero-copy { position: absolute; z-index: 3; left: clamp(24px, 4.4vw, 72px); top: 0; bottom: 0; width: min(40%, 580px); display: flex; flex-direction: column; justify-content: center; }
.kicker { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 500; color: var(--ink-2); margin-bottom: clamp(20px, 3svh, 32px); }
.kicker img { width: 20px; height: 20px; border-radius: 4px; }
.hero-copy h1 { font-size: clamp(2.6rem, min(1.1rem + 4.4vw, 0.4rem + 10svh), 5.8rem); line-height: 0.98; letter-spacing: -0.03em; margin-bottom: clamp(20px, 3.2svh, 32px); }
.lede { font-size: clamp(1.06rem, 0.95rem + 0.35vw, 1.24rem); line-height: 1.6; color: var(--ink-2); max-width: 27rem; margin-bottom: clamp(26px, 4svh, 40px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.stage__note { position: absolute; z-index: 3; right: 22px; bottom: 20px; font-size: 0.74rem; color: var(--ink-3); }
/* Without WebGL or JS: a still of the same device. */
html:not(.js) .stage, .no-webgl .stage { background: url('/img/ventilator-poster.webp') right 4% center / auto 72% no-repeat, linear-gradient(180deg, oklch(0.955 0.008 172), oklch(0.915 0.013 174)); }

/* ───────── Device label band ───────── */
.labelband { padding: clamp(40px, 5vw, 64px) 0 0; }
.devlabel { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)) auto; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--paper); }
.devlabel__cell { display: flex; gap: 14px; align-items: flex-start; padding: 20px 18px; }
.devlabel__cell + .devlabel__cell, .devlabel__code { border-left: 1px solid var(--line-2); }
.devlabel__cell .symbox { margin-top: 4px; }
.devlabel p { font-size: 0.85rem; line-height: 1.4; color: var(--ink-2); }
.devlabel strong { display: block; font-size: 0.96rem; color: var(--ink); font-weight: 600; margin-bottom: 3px; }
.devlabel__code { padding: 16px 20px; display: grid; gap: 6px; align-content: center; justify-items: center; }
.devlabel__code .bars { width: 168px; height: 46px; }
.devlabel__code span { font-size: 0.66rem; letter-spacing: 0.22em; color: var(--ink-2); font-weight: 600; }

/* ───────── Traceability ───────── */
.trace__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.trace__copy h2 { margin-bottom: 24px; }
.trace__copy > p:not(.eyebrow):not(.hint) { color: var(--ink-2); max-width: 34rem; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 16px; }
.chips button { height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--white); font-size: 0.86rem; font-weight: 600; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.chips button:hover { border-color: var(--ink); }
.chips button[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.hint { font-size: 0.86rem; color: var(--ink-3); }
.hint--coarse { display: none; }
@media (pointer: coarse) { .hint--fine { display: none; } .hint--coarse { display: inline; } }
.trace__board { position: relative; padding-bottom: 40px; }
.trace__stage { position: relative; height: clamp(440px, 44vw, 620px); border-radius: var(--r-lg); overflow: hidden;
  background: radial-gradient(80% 75% at 55% 42%, oklch(0.995 0.002 170), oklch(0.95 0.008 172) 60%, oklch(0.915 0.013 174)); }
#board3d { width: 100%; height: 100%; cursor: grab; opacity: 0; transition: opacity 1s var(--ease); }
#board3d:active { cursor: grabbing; }
.trace__stage.is-3d #board3d { opacity: 1; }
.no-webgl .trace__stage, html:not(.js) .trace__stage { background: url('/img/board-top.webp') center / contain no-repeat, radial-gradient(80% 75% at 55% 42%, oklch(0.995 0.002 170), oklch(0.915 0.013 174)); }

.lotcard { position: absolute; left: -40px; bottom: 0; width: 300px; z-index: 2; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 12px; padding: 14px 16px 12px; font-size: 0.85rem;
  box-shadow: 0 22px 44px -26px oklch(0.25 0.03 180 / .5); }
.lotcard.is-fresh { animation: fresh .9s var(--ease); }
@keyframes fresh { from { background: var(--scrub-tint); } to { background: var(--paper); } }
.lotcard__head { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 0.8rem; padding-bottom: 10px; border-bottom: 1px solid var(--line-2); }
.lotcard__head .symbox:nth-of-type(2) { margin-left: auto; }
.lotcard h3 { display: flex; align-items: baseline; gap: 10px; padding: 12px 0 8px; font-size: 1.12rem; }
.lotcard__ref { font-size: 1.8rem; font-weight: 600; color: var(--scrub-ink); letter-spacing: -0.02em; }
.lotcard dl { margin: 0; display: grid; gap: 0; }
.lotcard dl div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 5px 0; border-top: 1px dotted var(--line-2); }
.lotcard dt { color: var(--ink-3); }
.lotcard dd { margin: 0; font-weight: 600; }
.lotcard__bars { height: 26px; margin: 10px 0 6px; }
.lotcard__bars svg { width: 100%; height: 100%; fill: var(--ink); }
.lotcard__note { font-size: 0.72rem; color: var(--ink-3); font-style: italic; }

/* ───────── Quality system ───────── */
.quality { background: var(--bg-2); }
.quality__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.cert { margin: 0; position: sticky; top: calc(var(--head) + 28px); }
.cert__in { background: var(--paper); border: 1px solid var(--line-2); padding: clamp(24px, 3vw, 40px); box-shadow: inset 0 0 0 9px var(--paper), inset 0 0 0 10px var(--line-2), 0 30px 60px -40px oklch(0.25 0.03 180 / .45); }
.cert__kind { font: 700 0.72rem/1 var(--text); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin: 6px 0 22px; }
.cert__std { font: 500 clamp(2.6rem, 1.6rem + 2.4vw, 3.6rem)/1 var(--display); letter-spacing: -0.03em; }
.cert__std span { color: var(--ink-3); }
.cert__sub { color: var(--ink-2); font-size: 0.92rem; margin: 10px 0 26px; }
.cert__holder { font-size: 0.95rem; color: var(--ink-2); padding: 18px 0; border-top: 1px solid var(--line-2); }
.cert__holder strong { color: var(--ink); font-weight: 600; }
.cert__scope { margin: 0 0 22px; padding: 18px 20px; background: var(--white); border: 1px solid var(--line); font-size: 1.08rem; line-height: 1.5; font-style: italic; }
.cert__scope span { display: block; font: 700 0.7rem/1 var(--text); font-style: normal; letter-spacing: 0.16em; text-transform: uppercase; color: var(--scrub-ink); margin-bottom: 10px; }
.cert__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin: 0 0 22px; }
.cert__meta dt { font-size: 0.78rem; color: var(--ink-3); }
.cert__meta dd { margin: 2px 0 0; font-weight: 600; }
.cert__also { font-size: 0.86rem; color: var(--ink-2); padding-top: 16px; border-top: 1px solid var(--line-2); }
.cert figcaption { margin-top: 16px; }

.traveler { background: var(--white); border: 1.5px solid var(--ink); border-radius: 12px; overflow: hidden; }
.traveler__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 22px; border-bottom: 1.5px solid var(--ink); font-size: 0.9rem; color: var(--ink-2); }
.traveler__head strong { color: var(--ink); font: 600 1.05rem/1 var(--display); margin-right: 10px; }
.traveler__doc { font-size: 0.8rem; color: var(--ink-3); white-space: nowrap; }
.traveler ol { list-style: none; margin: 0; padding: 0; }
.traveler li { display: grid; grid-template-columns: 76px minmax(0, 1fr) 64px; gap: 18px; align-items: start; padding: 22px 22px; border-top: 1px solid var(--line); }
.traveler li:first-child { border-top: 0; }
.op { font: 500 1.7rem/1 var(--display); color: var(--scrub-ink); letter-spacing: -0.02em; }
.op::before { content: 'OP'; display: block; font: 700 0.64rem/1 var(--text); letter-spacing: 0.16em; color: var(--ink-3); margin-bottom: 6px; }
.traveler h3 { font-size: 1.14rem; margin-bottom: 6px; }
.traveler p { font-size: 0.96rem; color: var(--ink-2); }
.stamp { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--scrub); display: grid; place-items: center; font: 700 0.78rem/1 var(--display); letter-spacing: 0.08em; color: var(--scrub); justify-self: end; opacity: .85; transform: rotate(-12deg); box-shadow: inset 0 0 0 3px var(--white), inset 0 0 0 4px oklch(0.54 0.095 167 / .5); }
.traveler li:nth-child(2n) .stamp { transform: rotate(9deg); }
.traveler li:nth-child(3n) .stamp { transform: rotate(-4deg); }
.stamp--go { background: oklch(0.54 0.095 167 / .08); }
.js .traveler .stamp { opacity: 0; scale: 1.5; transition: opacity .3s, scale .45s var(--ease); }
.js .traveler.is-in .stamp { opacity: .85; scale: 1; }
.traveler.is-in li:nth-child(1) .stamp { transition-delay: .5s; } .traveler.is-in li:nth-child(2) .stamp { transition-delay: .7s; }
.traveler.is-in li:nth-child(3) .stamp { transition-delay: .9s; } .traveler.is-in li:nth-child(4) .stamp { transition-delay: 1.1s; }
.traveler.is-in li:nth-child(5) .stamp { transition-delay: 1.3s; } .traveler.is-in li:nth-child(6) .stamp { transition-delay: 1.5s; }
.traveler.is-in li:nth-child(7) .stamp { transition-delay: 1.75s; }
.qmsr { margin-top: 20px; padding: 20px 22px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--white); display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.qmsr p { font-size: 0.95rem; color: var(--ink-2); }
.qmsr strong { color: var(--ink); font-weight: 600; }

/* ───────── Track record ───────── */
.vent { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--scrub-deep); color: oklch(0.96 0.01 170); border-radius: var(--r-lg); overflow: hidden; min-height: 540px; }
.vent__copy { padding: clamp(32px, 5vw, 76px); align-self: center; }
.vent h2 { color: var(--white); margin-bottom: 22px; }
.vent p { font-size: 1.12rem; color: oklch(0.88 0.02 170); max-width: 30rem; }
.vent .vent__fine { font-size: 0.95rem; color: oklch(0.78 0.025 170); margin-top: 26px; padding-top: 22px; border-top: 1px solid oklch(0.45 0.04 172); }
.vent__art { position: relative; background: radial-gradient(70% 70% at 55% 55%, oklch(0.42 0.05 170), transparent 75%); }
.vent__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; }

.vitals { margin-top: clamp(72px, 9vw, 120px); }
.vitals__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: end; margin-bottom: 32px; }
.vitals__head h3 { font-size: clamp(2rem, 1.15rem + 2.3vw, 3.35rem); letter-spacing: -0.022em; line-height: 1.04; }
.vitals__head p { font-size: 1.1rem; color: var(--ink-2); max-width: 36rem; }
.vitals__strips { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ecg { margin: 0; background: var(--ecg-paper); border: 1px solid oklch(0.87 0.04 22); border-radius: 14px; padding: 20px 20px 10px; }
.ecg figcaption { display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'lead big' 'sub big'; align-items: end; gap: 2px 16px; margin-bottom: 12px; }
.ecg__lead { grid-area: lead; font: 700 0.76rem/1 var(--text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ecg-ink); }
.ecg__sub { grid-area: sub; font-size: 0.86rem; color: var(--ink-2); }
.ecg__big { grid-area: big; font: 500 clamp(2.2rem, 1.6rem + 1.6vw, 3rem)/1 var(--display); letter-spacing: -0.03em; }
.ecg svg { width: 100%; height: auto; overflow: visible; }
.ecg .ecg-fine { stroke: var(--ecg-fine); stroke-width: .6; }
.ecg .ecg-bold { stroke: var(--ecg-bold); stroke-width: 1; }
.ecg .ecg-tick { font: 600 11px var(--text); fill: var(--ecg-ink); }
.ecg .ecg-avg { stroke: var(--ecg-ink); stroke-width: 1.2; stroke-dasharray: 5 5; }
.ecg .ecg-avg-t { font: 600 11.5px var(--text); fill: var(--ecg-ink); }
.ecg .ecg-trace { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.ecg .ecg-pt { fill: var(--white); stroke: var(--ink); stroke-width: 2; }
.ecg .ecg-val { font: 600 12.5px var(--text); fill: var(--ink); }
.ecg .ecg-m { font: 600 11.5px var(--text); fill: var(--ink-2); letter-spacing: .04em; }
.js .ecg .ecg-trace { stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s cubic-bezier(.45, 0, .2, 1); }
.js .ecg .ecg-pt, .js .ecg .ecg-val { opacity: 0; transition: opacity .5s 1.2s; }
.js .ecg.is-in .ecg-trace { stroke-dashoffset: 0; }
.js .ecg.is-in .ecg-pt, .js .ecg.is-in .ecg-val { opacity: 1; }
.vitals__fine { font-size: 0.84rem; color: var(--ink-3); margin-top: 16px; max-width: 64rem; }

.quotes { margin-top: clamp(72px, 9vw, 120px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 64px); }
.quote { margin: 0; padding-top: 22px; border-top: 1px solid var(--line-2); }
.quote blockquote { margin: 0 0 18px; }
.quote p { font-size: 1.06rem; color: var(--ink-2); }
.quote figcaption { font-size: 0.88rem; color: var(--ink-3); }
.quote figcaption strong { display: block; color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.quote--lead { grid-column: 1 / -1; border-top: 1.5px solid var(--ink); padding-top: 34px; display: grid; grid-template-columns: minmax(0, 9fr) minmax(0, 3fr); gap: 32px; align-items: end; }
.quote--lead p { font: 400 clamp(1.5rem, 1rem + 1.5vw, 2.25rem)/1.3 var(--display); letter-spacing: -0.015em; color: var(--ink); text-wrap: pretty; }
.quote--lead blockquote { margin: 0; }

/* ───────── Guides ───────── */
.guides { background: var(--bg-2); }
.glist { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); counter-reset: g; }
.glist li { border-bottom: 1px solid var(--line-2); counter-increment: g; }
.glist a { display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 0.9fr) 40px; gap: 24px; align-items: center; padding: 30px 0; text-decoration: none; }
.glist a::before { content: counter(g, decimal-leading-zero); font: 500 1.05rem/1 var(--display); color: var(--ink-3); }
.glist h3 { font-size: clamp(1.3rem, 1rem + 0.8vw, 1.7rem); transition: color .2s; }
.glist p { font-size: 0.95rem; color: var(--ink-2); }
.glist .g-meta { display: block; font-size: 0.8rem; color: var(--ink-3); margin-top: 8px; }
.glist svg { width: 24px; height: 24px; color: var(--ink-3); justify-self: end; transition: transform .3s var(--ease), color .2s; }
.glist a:hover h3 { color: var(--scrub-ink); }
.glist a:hover svg { transform: translateX(4px); color: var(--ink); }

/* ───────── FAQ ───────── */
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--head) + 28px); }
.faq__head h2 { margin-bottom: 20px; }
.faq__head p:last-child { color: var(--ink-2); }
.faq__list { border-top: 1.5px solid var(--ink); }
.q { border-bottom: 1px solid var(--line-2); }
.q summary { list-style: none; cursor: pointer; position: relative; padding: 24px 52px 24px 0; font: 500 clamp(1.12rem, 1rem + 0.4vw, 1.32rem)/1.3 var(--display); letter-spacing: -0.01em; transition: color .2s; }
.q summary::-webkit-details-marker { display: none; }
.q summary:hover { color: var(--scrub-ink); }
.q summary::before, .q summary::after { content: ''; position: absolute; right: 8px; top: 50%; width: 16px; height: 1.6px; background: currentColor; transition: transform .35s var(--ease); }
.q summary::after { transform: rotate(90deg); }
.q[open] summary::after { transform: rotate(0); }
.q .a { padding: 0 52px 26px 0; }
.q .a p { color: var(--ink-2); max-width: 62ch; }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .q::details-content { height: 0; overflow: clip; transition: height .45s var(--ease), content-visibility .45s allow-discrete; }
  .q[open]::details-content { height: auto; }
}

/* ───────── Quote ───────── */
.qgrid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; align-items: start; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(20px, 3vw, 34px); }
.qcard { display: grid; gap: 16px; }
.qf2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.qf { display: grid; gap: 7px; }
.qf label { font-size: 0.88rem; font-weight: 600; }
.qf label span { color: var(--alarm); }
.qf input, .qf select, .qf textarea { width: 100%; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg); padding: 0 14px; height: 50px; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.qf textarea { height: auto; padding: 13px 14px; resize: vertical; line-height: 1.5; }
.qf select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; }
.qf select.is-empty { color: var(--ink-3); }
.qf input::placeholder, .qf textarea::placeholder { color: var(--ink-3); }
.qf input:focus, .qf select:focus, .qf textarea:focus { outline: none; border-color: var(--scrub); background: var(--white); box-shadow: 0 0 0 3px var(--scrub-tint); }
.qf__err { display: none; font-size: 0.82rem; color: var(--alarm); }
.qf.is-invalid input, .qf.is-invalid select, .qf.is-invalid textarea { border-color: var(--alarm); }
.qf.is-invalid .qf__err { display: block; }
.qsend { margin-top: 6px; }
.qstatus { font-size: 0.9rem; }
.qstatus.is-error { color: var(--alarm); }
.trap { position: absolute; left: -9999px; }
.ccard { display: grid; gap: 22px; }
.opt { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.opt--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opt legend { font: 700 0.72rem/1 var(--text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; padding: 0; }
.tile { position: relative; cursor: pointer; }
.tile input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tile span { display: block; height: 100%; padding: 11px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); transition: border-color .2s, background-color .2s; }
.tile b { display: block; font-size: 0.92rem; font-weight: 600; }
.tile em { display: block; font-style: normal; font-size: 0.78rem; color: var(--ink-3); margin-top: 2px; }
.tile:hover span { border-color: var(--ink-3); }
.tile input:checked + span { border-color: var(--ink); background: var(--scrub-tint); box-shadow: inset 0 0 0 1px var(--ink); }
.tile input:focus-visible + span { outline: 2px solid var(--scrub); outline-offset: 2px; }
.sendlist { padding: 18px 18px; border: 1px dashed var(--line-2); border-radius: var(--r-sm); background: var(--bg); }
.sendlist__h { font: 700 0.72rem/1 var(--text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.sendlist ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sendlist li { position: relative; padding-left: 26px; font-size: 0.9rem; }
.sendlist li::before { content: ''; position: absolute; left: 0; top: 4px; width: 15px; height: 15px; border: 1.5px solid var(--scrub); border-radius: 50%; }
.sendlist li::after { content: ''; position: absolute; left: 5px; top: 7px; width: 4px; height: 7px; border: solid var(--scrub); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.ccard__sum { font-size: 0.84rem; color: var(--ink-2); padding-top: 14px; border-top: 1px solid var(--line); }
.ccard__sum::before { content: 'Sent with your request: '; color: var(--ink-3); }
.done { text-align: center; display: grid; justify-items: center; gap: 14px; padding: 56px 24px; }
.done:focus { outline: none; }
.stamp--big { width: 84px; height: 84px; font-size: 1.2rem; justify-self: center; }

/* ───────── Footer ───────── */
.site-foot { padding: clamp(56px, 7vw, 88px) 0 40px; background: var(--bg-2); border-top: 1px solid var(--line); }
.footlabel { border: 1.5px solid var(--ink); border-radius: 14px; background: var(--paper); }
.footlabel__top { display: flex; align-items: center; gap: 18px; padding: 22px 26px; border-bottom: 1.5px solid var(--ink); flex-wrap: wrap; }
.footlabel__mfr { color: var(--ink-2); font-size: 0.95rem; }
.footlabel__mfr strong { display: block; font: 600 1.3rem/1.2 var(--display); color: var(--ink); letter-spacing: -0.015em; }
.footlabel__contact { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; }
.footlabel__contact a { font-weight: 600; text-decoration: none; }
.footlabel__contact a:hover { color: var(--scrub-ink); }
.footlabel__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 24px; padding: 24px 26px 26px; }
.footlabel__cols nav { display: grid; align-content: start; gap: 9px; }
.footlabel__cols nav p { font: 700 0.72rem/1 var(--text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.footlabel__cols a { text-decoration: none; font-size: 0.93rem; }
.footlabel__cols a:hover { color: var(--scrub-ink); text-decoration: underline; text-underline-offset: 3px; }
.footlabel__code { display: grid; gap: 8px; align-content: end; justify-items: end; }
.footlabel__code .bars { width: 200px; height: 54px; }
.footlabel__code span { font-size: 0.72rem; color: var(--ink-3); }
.legal { font-size: 0.8rem; color: var(--ink-3); max-width: 92ch; margin-top: 22px; }

/* ───────── Responsive ───────── */
@media (max-width: 1180px) {
  .devlabel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .devlabel__cell:nth-child(4) { border-left: 0; }
  .devlabel__cell:nth-child(n + 4), .devlabel__code { border-top: 1px solid var(--line-2); }
}
@media (max-width: 1080px) {
  .nav { position: fixed; inset: var(--head) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; background: var(--bg); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .3s var(--ease), visibility .25s; }
  .menu-open .nav { opacity: 1; transform: none; visibility: visible; }
  .nav a { padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); color: var(--ink); }
  .nav__quote { display: block; font-weight: 600; color: var(--scrub-ink) !important; border-bottom: 0 !important; }
  .menu-btn { display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--white); cursor: pointer; margin-left: 4px; }
  .menu-btn i { display: block; width: 18px; height: 1.6px; background: var(--ink); transition: transform .3s var(--ease); }
  .menu-open .menu-btn i:first-of-type { transform: translateY(3.8px) rotate(45deg); }
  .menu-open .menu-btn i:last-of-type { transform: translateY(-3.8px) rotate(-45deg); }
  .head-cta { margin-left: auto; }
  .trace__grid, .quality__grid, .faq__grid, .vitals__head { grid-template-columns: 1fr; }
  .cert, .faq__head { position: static; }
  .trace__board { padding-bottom: 0; }
  .lotcard { position: relative; left: auto; bottom: auto; margin: -56px 16px 0 auto; width: min(360px, calc(100% - 32px)); }
  .vent { grid-template-columns: 1fr; }
  .vent__art { min-height: 340px; }
  .qgrid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --head: 60px; }
  .brand__by { display: none; }
  .head-row { gap: 10px; }
  .brand { gap: 8px; }
  .brand__mark { width: 22px; height: 22px; }
  .brand__name { font-size: 1.08rem; }
  .head-cta { height: 38px; padding: 0 14px; font-size: 0.84rem; }
  .menu-btn { width: 40px; height: 40px; margin-left: 0; }
  .hero { padding: 0 10px; }
  .stage { height: calc(100svh - var(--head) - 10px); min-height: 620px; border-radius: 22px; }
  .hero-copy { left: 20px; right: 20px; width: auto; top: 24px; bottom: auto; display: block; }
  html:not(.js) .stage, .no-webgl .stage { background-position: center bottom 36px; background-size: 86% auto; }
  .kicker { font-size: 0.78rem; margin-bottom: 14px; }
  .hero-copy h1 { font-size: clamp(2.4rem, 11.5vw, 3.3rem); margin-bottom: 16px; }
  .lede { font-size: 1.02rem; margin-bottom: 22px; }
  .cta-row .btn--lg { height: 48px; padding: 0 18px; font-size: 0.95rem; }
  .stage__note { left: 20px; right: auto; bottom: 14px; }
  .devlabel { grid-template-columns: 1fr; }
  .devlabel__cell + .devlabel__cell, .devlabel__code { border-left: 0; border-top: 1px solid var(--line-2); }
  .devlabel__code .bars { width: 100%; max-width: 260px; }
  .vitals__strips, .quotes { grid-template-columns: 1fr; }
  .quote--lead { grid-template-columns: 1fr; gap: 18px; }
  .glist a { grid-template-columns: 44px minmax(0, 1fr) 24px; gap: 14px; }
  .glist p { grid-column: 2; }
  .glist svg { grid-row: 1; grid-column: 3; }
  .traveler li { grid-template-columns: 52px minmax(0, 1fr); padding: 18px 16px; }
  .traveler .stamp { display: none; }
  .op { font-size: 1.4rem; }
  .qf2, .opt { grid-template-columns: 1fr; }
  .opt--2 { grid-template-columns: 1fr; }
  .footlabel__cols { grid-template-columns: 1fr 1fr; }
  .footlabel__code { grid-column: 1 / -1; justify-items: start; }
  .footlabel__contact { margin-left: 0; }
}

@media (max-width: 400px) {
  .head-cta { display: none; }
  .menu-btn { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js .reveal { transform: none; }
}

/* ───────── Guide pages ───────── */
.art-page { padding: clamp(28px, 4vw, 48px) 0 var(--sec); }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.86rem; color: var(--ink-3); margin-bottom: 32px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.article__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 64px); align-items: end; padding-bottom: 36px; border-bottom: 1.5px solid var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tags span { font: 700 0.7rem/1 var(--text); letter-spacing: 0.12em; text-transform: uppercase; color: var(--scrub-ink); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 10px; }
.article h1 { font-size: clamp(2.2rem, 1.2rem + 2.6vw, 3.6rem); margin-bottom: 22px; }
.byline { color: var(--ink-3); font-size: 0.92rem; }
.byline b { color: var(--ink); font-weight: 600; }
.article__plate { margin: 0; background: var(--paper); border: 1px solid var(--line-2); border-radius: 14px; padding: 10px; }
.plate { width: 100%; height: auto; }
.short { margin: 40px 0 56px; padding: 24px 28px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 12px; max-width: 900px; }
.short__k { display: flex; align-items: center; gap: 10px; font: 700 0.74rem/1 var(--text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--scrub-ink); margin-bottom: 14px; }
.short__k .symbox { min-width: 20px; font-style: italic; text-transform: none; font-family: var(--display); font-size: 0.8rem; }
.short p:last-child { font-size: 1.14rem; line-height: 1.6; }
.article__grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.toc { position: sticky; top: calc(var(--head) + 28px); }
.toc p { font: 700 0.72rem/1 var(--text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-2); }
.toc a { display: block; padding: 7px 0 7px 16px; font-size: 0.88rem; line-height: 1.35; color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--ink); }
.prose { max-width: 740px; }
.qa { margin-bottom: 44px; scroll-margin-top: calc(var(--head) + 20px); }
.qa h2 { font-size: clamp(1.45rem, 1.1rem + 0.9vw, 1.95rem); margin-bottom: 16px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p, .prose ul + p, .prose ol + p, .prose .table-wrap + p { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 14px 0; }
.prose li { margin: 7px 0; }
.prose li::marker { color: var(--scrub-ink); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a:not(.btn) { color: var(--scrub-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line-2); border-radius: 10px; background: var(--white); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table-wrap th, .table-wrap td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.table-wrap th { background: var(--bg-2); font-weight: 600; color: var(--ink); }
.table-wrap tr:last-child td { border-bottom: 0; }
.prose .note { margin-top: 20px; padding: 14px 18px; background: var(--bg-2); border-radius: 10px; font-size: 0.9rem; color: var(--ink-3); }
.sources { margin: 48px 0 0; padding-top: 24px; border-top: 1px solid var(--line-2); }
.sources h2 { font-size: 1.1rem; margin-bottom: 12px; }
.sources ol { padding-left: 1.3em; font-size: 0.86rem; }
.sources a { color: var(--ink-2) !important; word-break: break-word; }
.cta-card { margin: 56px 0; padding: clamp(24px, 3.5vw, 40px); background: var(--scrub-deep); color: oklch(0.9 0.015 170); border-radius: var(--r-md); }
.cta-card h2 { color: var(--white); margin-bottom: 14px; font-size: clamp(1.7rem, 1.2rem + 1.2vw, 2.4rem); }
.cta-card p:not(.eyebrow) { color: oklch(0.85 0.02 170); max-width: 40rem; }
.cta-card .eyebrow { color: oklch(0.82 0.06 165); }
.cta-card .link { color: oklch(0.92 0.05 165) !important; }
.cta-card .cta-row { margin-top: 26px; }
.cta-card .btn--ink { background: var(--white); color: var(--ink); }
.cta-card .btn--ink:hover { background: var(--scrub-tint); }
.cta-card .btn--ghost { color: var(--white); border-color: oklch(0.55 0.04 170); background: transparent; }
.cta-card .btn--ghost:hover { border-color: var(--white); }
.related h2 { font-size: 1.5rem; margin-bottom: 18px; }
.related .glist a { grid-template-columns: 52px minmax(0, 1fr) 28px; }
.related .glist p { grid-column: 2; }
.related .glist svg { grid-row: 1; grid-column: 3; }
.guides-index h1 { margin-bottom: 22px; max-width: 18ch; }
.guides-index__lede { font-size: 1.14rem; color: var(--ink-2); max-width: 44rem; margin-bottom: 56px; }
@media (max-width: 1080px) {
  .article__head, .article__grid { grid-template-columns: 1fr; }
  .article__plate { max-width: 420px; }
  .toc { position: static; }
}
