/* Meade Design — site.css. Tokens and components follow design.md. */
:root {
  --ink: #111111;
  --text: #2a2a2a;
  --muted: #5f5f5c;
  --line: #d9d9d4;
  --line-strong: #9a9a95;
  --paper: #ffffff;
  --panel: #f2f2f0;
  --night: #0e0e0e;
  --redline: #b8322a;
  --ok: #1e6a44;
  --amber: #8a5a00;
  --font-display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --max: 1200px;
  --gutter: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t: 160ms;
}
@media (max-width: 640px) { :root { --gutter: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 17px/1.62 var(--font-body);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0 0 .5em; font-weight: 500; }
h1 { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.06; letter-spacing: -.015em; }
h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.15; letter-spacing: -.01em; }
h3 { font-size: clamp(20px, 1.8vw, 23px); line-height: 1.25; font-weight: 600; }
h4 { font-size: 17px; font-weight: 600; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; }
li { margin-bottom: .45em; }
strong { color: var(--ink); font-weight: 600; }
a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-thickness var(--t) var(--ease), color var(--t) var(--ease); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.on-dark :focus-visible, .site-footer :focus-visible, .hero :focus-visible { outline-color: #fff; }
code, .mono { font-family: var(--font-mono); font-size: .86em; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.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: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { top: 12px; }

/* ---------- layout ---------- */
.wrap { max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--panel { background: var(--panel); }
.section--night { background: var(--night); color: #d6d6d2; }
.section--night h2, .section--night h3 { color: #fff; }
@media (max-width: 640px) { .section { padding: 64px 0; } .section--tight { padding: 48px 0; } }
.grid { display: grid; gap: 32px var(--gutter); grid-template-columns: repeat(12, minmax(0, 1fr)); }
.span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
@media (min-width: 1024px) { .aside-col { grid-column: 9 / span 4; } }
@media (max-width: 1023px) { .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 12; } }
.cols-2, .cols-3, .cols-4 { display: grid; gap: 40px var(--gutter); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1023px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }

/* ---------- type helpers ---------- */
.eyebrow { font: 600 12px/1.4 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.on-dark .eyebrow, .hero .eyebrow { color: rgba(255,255,255,.78); }
.lede { font-size: clamp(19px, 1.9vw, 23px); line-height: 1.45; color: var(--muted); max-width: 46ch; }
.rule-h { padding-bottom: 14px; border-bottom: 4px solid var(--ink); margin-bottom: 28px; }
.section--night .rule-h { border-color: #fff; }
.source { font: 400 12.5px/1.5 var(--font-mono); color: var(--muted); margin-top: 12px; }
.chip { display: inline-block; font: 500 12.5px/1.3 var(--font-mono); color: var(--ink); border: 1px solid var(--line-strong); padding: 2px 7px; margin: 0 2px 4px 0; white-space: nowrap; background: #fff; }
.note { font-size: 14px; color: var(--muted); }
.redline { color: var(--redline); }
.ok { color: var(--ok); }

/* ---------- icons ---------- */
.ico { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; flex: none; vertical-align: -3px; }

/* ---------- buttons & links ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 600 14px/1 var(--font-body); letter-spacing: .01em; padding: 16px 24px; border: 1px solid var(--ink); background: var(--ink); color: #fff; text-decoration: none; cursor: pointer; border-radius: 0; transition: background var(--t) var(--ease), color var(--t) var(--ease), transform var(--t) var(--ease); }
.btn:hover { background: #fff; color: var(--ink); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn .ico { transition: transform var(--t) var(--ease); }
.btn:hover .ico-arrow { transform: translateX(3px); }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: transparent; color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--sm { padding: 11px 16px; font-size: 13px; }
.btn[disabled] { opacity: .55; cursor: progress; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.link-arrow .ico { transition: transform var(--t) var(--ease); }
.link-arrow:hover .ico { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); transition: background var(--t) var(--ease), border-color var(--t) var(--ease); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand svg { width: 26px; height: 26px; }
.brand-word { font: 600 21px/1 var(--font-display); letter-spacing: -.01em; display: inline-flex; align-items: center; gap: 10px; }
.brand-word span { font-weight: 300; padding-left: 10px; border-left: 1px solid currentColor; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.nav li { margin: 0; position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; font: 500 15px/1 var(--font-body); color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; border-bottom: 2px solid transparent; }
.nav-link:hover, .nav-link[aria-expanded="true"], .nav-link.is-current { border-bottom-color: currentColor; text-decoration: none; }
.nav-link .caret { width: 10px; height: 10px; stroke: currentColor; stroke-width: 1.5; fill: none; transition: transform var(--t) var(--ease); }
.nav-link[aria-expanded="true"] .caret { transform: rotate(180deg); }
.dropdown { position: absolute; top: calc(100% + 8px); left: 0; min-width: 300px; background: #fff; border: 1px solid var(--ink); padding: 10px 0; list-style: none; margin: 0; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 120ms var(--ease), transform 120ms var(--ease), visibility 0s 120ms; }
.dropdown.open { opacity: 1; visibility: visible; transform: none; transition: opacity 120ms var(--ease), transform 120ms var(--ease); }
.dropdown a { display: block; padding: 10px 20px; color: var(--ink); text-decoration: none; font-size: 15px; }
.dropdown a small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.dropdown a:hover { background: var(--panel); }
.nav .btn { margin-left: 12px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--ink); color: var(--ink); width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }
.menu-toggle .ico { width: 22px; height: 22px; }
/* transparent header over home hero */
.is-home .site-header:not(.is-solid) { background: transparent; border-color: transparent; position: absolute; left: 0; right: 0; }
.is-home .site-header:not(.is-solid) .brand, .is-home .site-header:not(.is-solid) .nav-link { color: #fff; }
.is-home .site-header:not(.is-solid) .btn { background: #fff; color: var(--ink); border-color: #fff; }
.is-home .site-header:not(.is-solid) .btn:hover { background: transparent; color: #fff; }
.is-home .site-header:not(.is-solid) .menu-toggle { color: #fff; border-color: #fff; }
.is-home .site-header:not(.is-solid) :focus-visible { outline-color: #fff; }
@media (max-width: 1023px) {
  .menu-toggle { display: inline-flex; }
  .nav { position: fixed; inset: 76px 0 0 0; background: #fff; flex-direction: column; align-items: stretch; padding: 16px var(--gutter) 40px; overflow-y: auto; display: none; }
  .nav.open { display: flex; }
  .nav > ul { flex-direction: column; }
  .nav-link { width: 100%; justify-content: space-between; padding: 16px 0; font-size: 18px; border-bottom: 1px solid var(--line); color: var(--ink) !important; }
  .nav-link:hover, .nav-link[aria-expanded="true"], .nav-link.is-current { border-bottom-color: var(--line); }
  .dropdown { position: static; border: 0; min-width: 0; padding: 0 0 8px; display: none; opacity: 1; visibility: visible; transform: none; }
  .dropdown.open { display: block; }
  .dropdown a { padding: 12px 0 12px 16px; }
  .nav .btn { margin: 24px 0 0; justify-content: center; background: var(--ink) !important; color: #fff !important; border-color: var(--ink) !important; }
  body.menu-open { overflow: hidden; }
  .is-home body.menu-open .site-header, .menu-open .site-header { background: #fff !important; position: sticky; }
  .menu-open .site-header .brand, .menu-open .site-header .menu-toggle { color: var(--ink) !important; border-color: var(--ink) !important; }
}

/* ---------- hero (home) ---------- */
.hero { position: relative; min-height: min(92vh, 860px); color: #fff; display: flex; align-items: flex-end; background: #222 center/cover no-repeat; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.35) 40%, rgba(0,0,0,.68) 100%); }
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-top: 140px; padding-bottom: 56px; }
.hero h1 { color: #fff; font-size: clamp(44px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -.02em; max-width: 13ch; margin-bottom: 20px; }
.hero .lede { color: rgba(255,255,255,.9); max-width: 50ch; margin-bottom: 32px; }
.hero-caption { position: absolute; right: var(--gutter); bottom: 16px; z-index: 2; font: 400 11px/1 var(--font-mono); color: rgba(255,255,255,.7); }

/* quick launcher */
.launcher { background: #fff; color: var(--text); border: 1px solid var(--ink); display: grid; grid-template-columns: 1.3fr 1.3fr 1fr auto; margin-top: 8px; max-width: 980px; }
.launcher .field { padding: 14px 18px; border-right: 1px solid var(--line); margin: 0; }
.launcher label { font: 600 11px/1.3 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 4px; }
.launcher select, .launcher input { border: 0; padding: 4px 0; font-size: 16px; width: 100%; background: transparent; }
.launcher select:focus, .launcher input:focus { outline: none; }
.launcher .field:focus-within { box-shadow: inset 0 -2px 0 var(--ink); }
.launcher .btn { height: 100%; padding: 0 28px; border: 0; }
.launcher .btn:hover { background: #333; color: #fff; }
@media (max-width: 900px) { .launcher { grid-template-columns: 1fr 1fr; } .launcher .field:nth-child(2) { border-right: 0; } .launcher .field { border-bottom: 1px solid var(--line); } .launcher .btn { grid-column: span 2; padding: 18px; justify-content: center; } }
@media (max-width: 520px) { .launcher { grid-template-columns: 1fr; } .launcher .field { border-right: 0; } .launcher .btn { grid-column: auto; } }

/* ---------- page head (inner) ---------- */
.page-head { padding: 56px 0 56px; }
.crumbs { font: 400 12.5px/1.4 var(--font-mono); color: var(--muted); margin-bottom: 28px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.crumbs a { color: var(--muted); }
.page-head h1 { max-width: 20ch; }
.page-head .lede { max-width: 60ch; margin-top: 8px; }
.page-figure { margin: 0; }
.page-figure img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; }
@media (max-width: 640px) { .page-figure img { aspect-ratio: 4 / 3; } }
.page-figure figcaption { font: 400 11.5px/1.4 var(--font-mono); color: var(--muted); padding-top: 8px; }

/* ---------- statement + split ---------- */
.statement { font: 500 clamp(26px, 3vw, 38px)/1.2 var(--font-display); color: var(--ink); letter-spacing: -.01em; max-width: 24ch; margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; align-items: center; }
.split img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 1023px) { .split { grid-template-columns: 1fr; gap: 40px; } .split img { aspect-ratio: 3 / 2; } }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { margin-bottom: 14px; }
.link-list a { font: 500 19px/1.3 var(--font-display); }

/* ---------- cards ---------- */
.card h3 { padding-bottom: 12px; border-bottom: 4px solid var(--ink); margin-bottom: 14px; }
.card p { font-size: 15.5px; }
.card .range { font: 500 14px/1.4 var(--font-mono); color: var(--ink); margin-bottom: 16px; }
.card .card-img { display: block; overflow: hidden; background: #ddd; margin-bottom: 16px; }
.card .card-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: filter var(--t) var(--ease), transform 400ms var(--ease); }
.card a.card-img:hover img { filter: brightness(.94); }
.tile { border-top: 4px solid var(--ink); padding-top: 18px; }
.tile .k { font: 500 12.5px/1 var(--font-mono); color: var(--muted); display: block; margin-bottom: 12px; }
.tile p { font-size: 15.5px; }

/* ---------- timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 var(--gutter); position: relative; }
.timeline::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 1px; background: var(--ink); }
.timeline li { position: relative; padding-top: 36px; margin: 0; }
.timeline li::before { content: ""; position: absolute; top: 0; left: 0; width: 15px; height: 15px; background: #fff; border: 1px solid var(--ink); }
.timeline li:first-child::before { background: var(--ink); }
.timeline .step { font: 500 13px/1 var(--font-mono); color: var(--muted); display: block; margin-bottom: 10px; }
.timeline h3 { font-size: 20px; }
.timeline p { font-size: 15.5px; color: var(--text); }
.timeline .dur { font: 400 12.5px/1.4 var(--font-mono); color: var(--muted); }
@media (max-width: 900px) { .timeline { grid-template-columns: 1fr; gap: 28px; } .timeline::before { top: 0; bottom: 0; left: 7px; right: auto; width: 1px; height: auto; } .timeline li { padding: 0 0 0 40px; } }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 4px solid var(--ink); margin: 8px 0 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; font-variant-numeric: tabular-nums lining-nums; }
caption { text-align: left; font: 600 15px/1.4 var(--font-display); color: var(--ink); padding: 0 0 10px; caption-side: top; }
th, td { text-align: left; padding: 13px 14px 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font: 600 12px/1.35 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--ink); white-space: nowrap; }
td.n, th.n { text-align: right; white-space: nowrap; padding-left: 14px; }
tbody th { font-weight: 600; color: var(--ink); }
tr.total td, tr.total th { border-top: 2px solid var(--ink); font-weight: 600; color: var(--ink); }
.table-title { font: 600 18px/1.3 var(--font-display); color: var(--ink); margin: 0 0 10px; }
.matrix td:first-child, .matrix th:first-child { min-width: 180px; }

/* ---------- callouts ---------- */
.callout { border-left: 4px solid var(--ink); background: var(--panel); padding: 20px 24px; margin: 28px 0; }
.callout--red { border-color: var(--redline); }
.callout p:last-child { margin: 0; }
.callout h3 { font-size: 18px; margin-bottom: 8px; }
.sheet-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink); }
.sheet-list li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); margin: 0; }
.sheet-list .sheet { font: 500 14px/1.4 var(--font-mono); color: var(--ink); }
.sheet-list strong { display: block; margin-bottom: 2px; }
.sheet-list p { margin: 0; font-size: 15.5px; }
.steps-num { counter-reset: s; list-style: none; padding: 0; }
.steps-num li { counter-increment: s; position: relative; padding-left: 52px; margin-bottom: 22px; }
.steps-num li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 1px; font: 500 14px/1.4 var(--font-mono); color: var(--ink); border-top: 2px solid var(--ink); padding-top: 2px; width: 32px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--panel); padding: 72px 0; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; color: var(--muted); font-size: 19px; }
.cta-inline { display: flex; justify-content: space-between; align-items: center; gap: 24px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 22px 0; margin: 40px 0; flex-wrap: wrap; }
.cta-inline p { margin: 0; font: 500 19px/1.35 var(--font-display); color: var(--ink); max-width: 46ch; }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: #bdbdb8; padding: 72px 0 32px; font-size: 15px; }
.site-footer a { color: #e9e9e5; text-decoration-color: rgba(255,255,255,.35); }
.site-footer a:hover { text-decoration-color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 18px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px var(--gutter); }
.footer-grid h2 { font: 600 12px/1.4 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid #2c2c2a; font: 400 12px/1.6 var(--font-mono); color: #8d8d88; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 1023px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: span 2; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } .footer-grid > :first-child { grid-column: auto; } }

/* ---------- forms ---------- */
.field { margin-bottom: 20px; }
.field label, .field .label { display: block; font: 600 14px/1.35 var(--font-body); color: var(--ink); margin-bottom: 7px; }
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 2px; }
.req { color: var(--redline); margin-left: 2px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; font: 400 16px/1.4 var(--font-body); color: var(--ink); background: #fff;
  border: 1px solid var(--line-strong); border-radius: 0; padding: 12px 14px; transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
  -webkit-appearance: none; appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23111' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
textarea { min-height: 160px; resize: vertical; font-size: 15px; }
input:hover, select:hover, textarea:hover { border-color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--redline); box-shadow: inset 0 0 0 1px var(--redline); }
.field-error { color: var(--redline); font-size: 13.5px; margin-top: 6px; display: none; }
.field-error.show { display: block; }
fieldset { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
legend { font: 600 12px/1.4 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); padding: 0 0 10px; border-bottom: 1px solid var(--ink); width: 100%; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.seg { display: inline-flex; border: 1px solid var(--ink); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { margin: 0; padding: 10px 16px; font: 500 14px/1 var(--font-body); cursor: pointer; color: var(--ink); background: #fff; transition: background var(--t) var(--ease), color var(--t) var(--ease); }
.seg label + input + label, .seg input + label ~ label { border-left: 1px solid var(--ink); }
.seg input:checked + label { background: var(--ink); color: #fff; }
.seg input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.check span { font-size: 15.5px; }
.check small { display: block; color: var(--muted); font-size: 13px; }
.hp-field { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- tool workbench ---------- */
.bench { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
@media (max-width: 1023px) { .bench { grid-template-columns: 1fr; } }
.bench-inputs { min-width: 0; }
.addon[hidden] { display: none; }
.result-sheet { position: sticky; top: 100px; border: 1px solid var(--ink); background: #fff; min-width: 0; }
@media (max-width: 1023px) { .result-sheet { position: static; } }
.tb-head { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid var(--ink); }
.tb-head .tb-title { padding: 16px 20px; }
.tb-head .tb-title strong { font: 600 16px/1.3 var(--font-display); display: block; }
.tb-head .tb-title span { font: 400 12px/1.4 var(--font-mono); color: var(--muted); }
.tb-head .tb-sheet { border-left: 1px solid var(--ink); padding: 12px 20px; text-align: center; font: 500 11px/1.2 var(--font-mono); color: var(--muted); display: flex; flex-direction: column; justify-content: center; }
.tb-head .tb-sheet b { font: 600 22px/1.1 var(--font-mono); color: var(--ink); }
.tb-body { padding: 20px; }
.tb-scenario { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); margin-bottom: 20px; }
.tb-scenario div { padding: 10px 12px; border-right: 1px solid var(--line); }
.tb-scenario div:last-child { border-right: 0; }
.tb-scenario span { display: block; font: 600 10.5px/1.3 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tb-scenario b { font: 600 17px/1.3 var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.tb-gap { padding: 20px; border-top: 4px solid var(--ink); display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: end; }
.tb-gap .lbl { font: 600 12px/1.3 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.tb-gap .big { font: 600 clamp(30px, 3.4vw, 44px)/1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tb-gap .sub { grid-column: span 2; font-size: 14px; color: var(--muted); margin: 0; }
.tb-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--line); background: var(--panel); }
.tb-table td, .tb-table th { padding: 9px 10px 9px 0; font-size: 14.5px; }
.tb-table thead th { font-size: 11px; }
.tb-table .grp th { font: 600 11px/1.3 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 18px; border-bottom: 1px solid var(--ink); }
.tb-table .sub-row th, .tb-table .sub-row td { color: var(--muted); font-size: 13.5px; font-weight: 400; padding-left: 14px; }
.tb-table .sub-row td.n { padding-left: 14px; }
.status-msg { font-size: 13.5px; color: var(--ok); min-height: 1.2em; margin: 0; align-self: center; }
.flag { border: 1px solid var(--line); border-left-width: 4px; padding: 14px 16px; margin-bottom: 12px; }
.flag h4 { margin: 0 0 4px; display: flex; gap: 10px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; }
.flag p { margin: 0; font-size: 14.5px; }
.flag .tag { font: 600 10.5px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; padding: 4px 7px; border: 1px solid currentColor; white-space: nowrap; }
.flag--high { border-left-color: var(--redline); } .flag--high .tag { color: var(--redline); }
.flag--mod { border-left-color: var(--amber); } .flag--mod .tag { color: var(--amber); }
.flag--ok { border-left-color: var(--ok); } .flag--ok .tag { color: var(--ok); }
.flag--info { border-left-color: var(--ink); } .flag--info .tag { color: var(--ink); }
.risk { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; border-top: 4px solid var(--ink); flex-wrap: wrap; }
.risk .big { font: 600 clamp(22px, 2.4vw, 30px)/1.1 var(--font-display); }
.priority { counter-reset: p; list-style: none; padding: 0; margin: 10px 0 0; }
.priority li { counter-increment: p; display: grid; grid-template-columns: 30px 1fr; font-size: 14.5px; padding: 7px 0; border-bottom: 1px solid var(--line); margin: 0; }
.priority li::before { content: counter(p); font: 600 13px/1.5 var(--font-mono); color: var(--ink); }
.print-only { display: none; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 7fr 4fr; gap: 64px; align-items: start; }
@media (max-width: 1023px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.aside-block { border-top: 4px solid var(--ink); padding-top: 18px; margin-bottom: 36px; }
.aside-block p, .aside-block li { font-size: 15.5px; }
.big-mail { font: 500 clamp(20px, 2vw, 25px)/1.3 var(--font-display); word-break: break-word; }
.form-banner { border: 1px solid var(--redline); border-left-width: 4px; padding: 14px 16px; margin-bottom: 20px; color: var(--ink); display: none; }
.form-banner.show { display: block; }
.prefill-note { background: var(--panel); border-left: 4px solid var(--ink); padding: 12px 16px; font-size: 14.5px; margin-bottom: 20px; display: none; }
.prefill-note.show { display: block; }
.success-panel { border: 1px solid var(--ink); padding: 32px; }
.success-panel h2 { margin-bottom: 12px; }
.related { border-top: 1px solid var(--ink); }
.related a { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; font: 500 18px/1.3 var(--font-display); }
.related a:hover { text-decoration: underline; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; }
.dl dt { font: 500 13px/1.5 var(--font-mono); color: var(--ink); }
.dl dd { margin: 0; font-size: 15.5px; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ---------- print ---------- */
@media print {
  @page { margin: 14mm; }
  body { font-size: 11pt; color: #000; }
  .site-header, .site-footer, .cta-band, .crumbs, .bench-inputs, .tb-actions, .no-print, .skip, .page-figure, .tool-notes { display: none !important; }
  .print-only { display: block !important; }
  .page-head { padding: 0 0 12px; }
  .page-head .lede { display: none; }
  .section { padding: 0; }
  .bench { display: block; }
  .result-sheet { position: static; border: 1px solid #000; }
  .print-head { display: flex !important; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid #000; padding-bottom: 8px; margin-bottom: 14px; }
  .print-head .brand-word { font-size: 16pt; }
  .print-sources { font: 8.5pt/1.4 var(--font-mono); margin-top: 12px; }
  a { text-decoration: none; }
  table { font-size: 9.5pt; }
  .flag { break-inside: avoid; }
}
