/* Plumbing Without Guesswork – "Rugged field manual" design system */
:root {
  --paper: #F2F0EB;
  --paper-2: #E8E5DD;
  --white: #FFFFFF;
  --ink: #16181D;
  --ink-2: #353A44;
  --muted: #5D6370;
  --line: #D8D3C8;
  --rust: #A9531F;
  --rust-600: #8C4316;
  --rust-300: #E08A55;
  --rust-100: #F6E7DC;
  --navy: #0F1724;
  --navy-2: #172336;
  --navy-3: #22324B;
  --steel: #9FB0C7;
  --grid: rgba(159, 176, 199, .09);
  --ok: #2F7A4F;
  --warn: #B7791F;
  --radius: 4px;
  --shadow: 0 1px 0 rgba(22,24,29,.04), 0 10px 30px -12px rgba(22,24,29,.25);
  --f-display: "Archivo", "Arial Black", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --wrap: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--rust-600); text-underline-offset: 3px; }
a:hover { color: var(--rust); }
:focus-visible { outline: 3px solid var(--rust-300); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--rust); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.ic { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.15em; flex: none; }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 .5em; color: inherit; }
.display { font-size: clamp(2.3rem, 5.2vw, 4.2rem); font-weight: 900; letter-spacing: -0.035em; line-height: 1; margin: .1em 0 .35em; text-wrap: balance; }
.display-sm { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.02; }
.display .dot, .dot { color: var(--rust); }
.h-sec { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: .8em; text-wrap: balance; }
.label { font: 500 .78rem/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--rust); margin: 0 0 .6em; }
.bp .label { color: var(--rust-300); }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 46em; }
.lead-inv { font-size: 1.18rem; color: #C9D3E1; max-width: 44em; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .55em; font: 700 1rem/1 var(--f-body); padding: 15px 22px; border-radius: var(--radius); border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 10px 14px; font-size: .9rem; }
.btn-rust { background: var(--rust); color: #fff; }
.btn-rust:hover { background: var(--rust-600); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-ghost-inv { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost-inv:hover { background: #fff; color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4rem; }
.link-arrow { display: inline-flex; gap: .4em; align-items: center; font-weight: 700; text-decoration: none; }

/* ---------- blueprint surfaces ---------- */
.bp { background-color: var(--navy); color: #fff; background-image:
  linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px),
  linear-gradient(rgba(159,176,199,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(159,176,199,.04) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px; background-position: -1px -1px; }
.bp a:not(.btn) { color: #fff; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(15,23,36,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--navy-3); color: #fff; }
.hdr { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.logo:hover { color: #fff; }
.logo-mark { font: 900 1.35rem/1 var(--f-display); letter-spacing: -0.04em; background: var(--paper); color: var(--ink); padding: 8px 8px 7px; border-radius: 3px; }
.logo-mark i { color: var(--rust); font-style: normal; }
.logo-text { font: 800 .86rem/1.1 var(--f-display); letter-spacing: -0.01em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav li { position: relative; }
.nav ul a { display: block; padding: 10px 12px; color: #DCE3EE; text-decoration: none; font-weight: 600; font-size: .95rem; border-radius: 3px; }
.nav ul a:hover, .nav ul a[aria-current] { color: #fff; background: var(--navy-2); }
.nav ul a[aria-current] { box-shadow: inset 0 -2px 0 var(--rust); }
.mega { position: absolute; top: 100%; left: -12px; padding-top: 10px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega-grid { background: var(--white); color: var(--ink); border-radius: 6px; box-shadow: var(--shadow); padding: 10px; display: grid; grid-template-columns: repeat(2, 280px); gap: 4px; border-top: 3px solid var(--rust); }
.mega-grid a { display: flex !important; gap: 12px; align-items: flex-start; color: var(--ink) !important; padding: 12px !important; background: none !important; box-shadow: none !important; }
.mega-grid a:hover { background: var(--paper) !important; }
.mega-grid strong { display: block; font-size: .95rem; }
.mega-grid small { display: block; color: var(--muted); font-weight: 500; }
.mega .hub-n { font-size: 1.1rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--navy-3); color: #fff; padding: 9px; border-radius: 4px; cursor: pointer; font-size: 1.3rem; line-height: 0; }

/* ---------- page heads ---------- */
.page-head { padding: 56px 0 64px; }
.page-head .display { max-width: 15em; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 26px; font: 500 .8rem var(--f-mono); color: var(--steel); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--navy-3); }
.crumbs a { color: var(--steel) !important; text-decoration: none; }
.crumbs a:hover { color: #fff !important; }
.meta-line { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 22px 0 0; font: 500 .82rem var(--f-mono); color: var(--steel); }
.meta-line span + span::before { content: "·"; margin-right: 20px; color: var(--navy-3); }
.hub-head-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.hub-fig { background: rgba(255,255,255,.03); border: 1px solid var(--navy-3); border-radius: 6px; padding: 18px; }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--paper-2); }
.section.white { background: var(--white); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 30px; }
.sec-head .h-sec { margin: 0; }

/* ---------- hero (home) ---------- */
.hero { padding: 72px 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero .display { font-size: clamp(2.7rem, 6.4vw, 5.4rem); max-width: 11em; }
.hero-book { position: relative; justify-self: center; perspective: 1400px; padding: 20px 0 40px; }
.hero-book img { width: min(330px, 70vw); border-radius: 2px 6px 6px 2px; transform: rotateY(-16deg) rotateX(3deg); box-shadow: -2px 0 0 #d9d4c8 inset, 30px 40px 60px -20px rgba(0,0,0,.65), 6px 6px 0 rgba(255,255,255,.04); transition: transform .5s; }
.hero-book:hover img { transform: rotateY(-6deg); }
.hero-badge { position: absolute; right: -10px; bottom: 60px; background: var(--rust); color: #fff; font: 700 .8rem/1.25 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; padding: 12px 14px; border-radius: 3px; transform: rotate(4deg); box-shadow: var(--shadow); }
.hero-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; color: #DCE3EE; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; }
.hero-points .ic { color: var(--rust-300); margin-top: 4px; }
.hero-strip { margin-top: 64px; border-top: 1px solid var(--navy-3); display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-strip div { padding: 26px 20px 30px; border-right: 1px solid var(--navy-3); }
.hero-strip div:last-child { border-right: 0; }
.hero-strip strong { display: block; font: 900 2.2rem/1 var(--f-display); letter-spacing: -0.03em; }
.hero-strip span { font: 500 .78rem var(--f-mono); color: var(--steel); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- audience ---------- */
.aud-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.aud { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 26px 22px; }
.aud .ic { font-size: 1.6rem; color: var(--rust); }
.aud h3 { font-size: 1.15rem; margin: 14px 0 6px; }
.aud p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- hub cards ---------- */
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hub-card { position: relative; display: flex; flex-direction: column; gap: 6px; background: var(--white); color: var(--ink); text-decoration: none; padding: 26px 24px 22px; border: 1px solid var(--line); border-radius: 6px; transition: transform .18s, box-shadow .18s, border-color .18s; overflow: hidden; }
.hub-card::after { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0; background: var(--rust); transition: width .25s; }
.hub-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); border-color: #c9c2b4; }
.hub-card:hover::after { width: 100%; }
.hub-n { font: 900 1.9rem/1 var(--f-display); color: var(--rust); letter-spacing: -0.03em; }
.hub-short { font: 500 .76rem var(--f-mono); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-top: 10px; }
.hub-title { font: 800 1.3rem/1.15 var(--f-display); letter-spacing: -0.02em; }
.hub-desc { color: var(--muted); font-size: .95rem; flex: 1; }
.hub-go { font-weight: 700; color: var(--rust-600); font-size: .92rem; margin-top: 8px; display: inline-flex; gap: .4em; align-items: center; }

/* ---------- article cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.prose .card-grid { grid-template-columns: repeat(2, 1fr); margin: 1.2em 0 2em; }
.a-card { display: flex; flex-direction: column; gap: 8px; background: var(--white); color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-left: 4px solid var(--ink); padding: 22px 22px 20px; border-radius: 0 6px 6px 0; transition: border-color .18s, transform .18s, box-shadow .18s; }
.a-card:hover { border-left-color: var(--rust); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.a-kicker { font: 500 .74rem var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--rust-600); }
.a-title { font: 800 1.16rem/1.2 var(--f-display); letter-spacing: -0.015em; }
.a-desc { color: var(--muted); font-size: .94rem; flex: 1; line-height: 1.5; }
.a-go { font-weight: 700; font-size: .9rem; display: inline-flex; gap: .4em; align-items: center; color: var(--ink-2); }
.tool-card { border-left-color: var(--rust); }
.tool-ic { width: 44px; height: 44px; display: grid; place-items: center; background: var(--navy); color: var(--rust-300); border-radius: 4px; font-size: 1.3rem; }

/* ---------- article layout ---------- */
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 64px; padding-top: 56px; padding-bottom: 72px; }
.article-side { position: relative; }
.article-side > * { position: sticky; top: 96px; }
.article-side > * + * { position: static; margin-top: 20px; }
.toc { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 20px 20px 14px; }
.toc ol { margin: 0; padding: 0 0 0 1.1em; font-size: .92rem; line-height: 1.4; }
.toc li { margin: 0 0 10px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover, .toc a.on { color: var(--rust-600); }
.side-book { background: var(--navy); color: #fff; border-radius: 6px; padding: 20px; text-align: center; }
.side-book img { width: 120px; border-radius: 2px; box-shadow: 0 12px 30px rgba(0,0,0,.45); margin: 4px auto 12px; display: block; }
.side-book p { margin: 0 0 12px; font-size: .9rem; color: #C9D3E1; }
.side-book strong { color: #fff; }

.prose { min-width: 0; font-size: 1.07rem; }
.prose > p:first-of-type { font-size: 1.15rem; color: var(--ink-2); }
.prose h2 { font-size: clamp(1.55rem, 2.6vw, 2rem); font-weight: 800; margin: 2.2em 0 .6em; padding-top: .9em; border-top: 2px solid var(--ink); }
.prose h3 { font-size: 1.3rem; font-weight: 800; margin: 1.7em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--rust); font-weight: 700; }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--rust); font: 600 1.2rem/1.5 var(--f-body); color: var(--ink-2); }
.prose figure { margin: 2em 0; }
.prose figcaption, .figcap { font: 500 .8rem/1.5 var(--f-mono); color: var(--muted); margin-top: 10px; }
.prose code { font: 500 .9em var(--f-mono); background: var(--paper-2); padding: 1px 6px; border-radius: 3px; }
.quick-answer { background: var(--white); border: 2px solid var(--ink); border-radius: 6px; padding: 22px 24px; margin: 0 0 2em; box-shadow: 6px 6px 0 var(--rust); }
.quick-answer p:last-child { margin: 0; font-size: 1.08rem; }
.callout { background: var(--rust-100); border-left: 4px solid var(--rust); padding: 18px 22px; margin: 1.8em 0; border-radius: 0 6px 6px 0; }
.callout p:last-child { margin-bottom: 0; }
.callout-title { font: 800 1rem var(--f-display); text-transform: uppercase; letter-spacing: .02em; margin: 0 0 6px; color: var(--rust-600); }
.callout.warn { background: #FBF1DE; border-color: var(--warn); }
.callout.warn .callout-title { color: #8A5A12; }
.callout.dark { background: var(--navy); color: #DCE3EE; border-color: var(--rust-300); }
.callout.dark .callout-title { color: var(--rust-300); }
.checklist { list-style: none; padding: 0 !important; }
.checklist li { position: relative; padding-left: 32px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border: 2px solid var(--ink); border-radius: 3px; }
.checklist li::after { content: ""; position: absolute; left: 6px; top: 6px; width: 6px; height: 11px; border: solid var(--rust); border-width: 0 3px 3px 0; transform: rotate(45deg); }

/* tables */
.tbl { width: 100%; overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.tbl table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 480px; }
.tbl th { background: var(--navy); color: #fff; text-align: left; font: 600 .78rem/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; padding: 12px 14px; }
.tbl td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.tbl tr:nth-child(even) td { background: #FAF9F6; }
.tbl caption { caption-side: bottom; text-align: left; padding: 10px 14px; font: 500 .78rem var(--f-mono); color: var(--muted); }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 2px; vertical-align: -1px; margin-right: 6px; border: 1px solid rgba(0,0,0,.2); }

/* diagrams */
.diagram { background: var(--navy); border-radius: 6px; padding: 22px; margin: 2em 0; color: #DCE3EE; }
.diagram svg { display: block; width: 100%; height: auto; }
.diagram figcaption { color: var(--steel); margin-top: 12px; }
.svg-t { font: 600 13px var(--f-body); fill: #DCE3EE; }
.svg-s { font: 500 11px var(--f-mono); fill: #9FB0C7; letter-spacing: .04em; }
.svg-r { font: 700 13px var(--f-body); fill: #E08A55; }
.svg-big { font: 900 22px var(--f-display); fill: #fff; }

/* faq */
.faq { margin-top: 2.4em; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 6px; margin: 10px 0; padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 28px 16px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font: 700 1.4rem var(--f-mono); color: var(--rust); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--ink-2); }

/* book cta */
.book-cta { display: grid; grid-template-columns: 150px 1fr; gap: 28px; align-items: center; background: var(--navy); color: #DCE3EE; border-radius: 8px; padding: 30px; margin: 3em 0 2em; position: relative; overflow: hidden; }
.book-cta::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; pointer-events: none; }
.book-cta > * { position: relative; }
.book-cta-cover { width: 150px; border-radius: 2px; box-shadow: 0 18px 40px rgba(0,0,0,.5); transform: rotate(-3deg); }
.book-cta-title { font: 900 1.6rem/1.1 var(--f-display); color: #fff; margin: 0 0 8px; letter-spacing: -0.02em; }
.book-cta p { margin: 0 0 6px; }
.book-cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.book-cta .btn-ghost:hover { background: #fff; color: var(--navy); }

/* author */
.author-box { display: flex; gap: 22px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 24px; margin: 2em 0; }
.author-box img, .author-ph { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex: none; }
.author-box img, img.author-ph { border: 3px solid var(--rust); background: var(--navy); }
.author-ph { display: grid; place-items: center; background: var(--navy); color: var(--paper); font: 900 1.6rem var(--f-display); border: 3px solid var(--rust); }
.author-name { font: 800 1.25rem var(--f-display); margin: 0 0 4px; }
.author-box p { margin: 0 0 8px; font-size: .97rem; }

/* kit */
.kit-band { padding: 80px 0; border-top: 4px solid var(--rust); }
.kit-band-inner { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: center; }
.kit-cover { width: 260px; transform: rotate(-4deg); box-shadow: 0 30px 60px -10px rgba(0,0,0,.6); border-radius: 2px; }
.kit-form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; max-width: 600px; }
.kit-form input { flex: 1 1 260px; min-width: 0; font: 500 1.05rem var(--f-body); padding: 15px 16px; border: 2px solid var(--ink); border-radius: var(--radius); background: #fff; color: var(--ink); }
.bp .kit-form input { border-color: #fff; }
.kit-form input:focus { outline: 3px solid var(--rust-300); outline-offset: 1px; }
.kit-fine { flex-basis: 100%; margin: 4px 0 0; font-size: .84rem; color: var(--muted); }
.bp .kit-fine { color: var(--steel); }
.kit-msg { flex-basis: 100%; margin: 0; font-weight: 700; }
.kit-msg.ok { color: var(--ok); background: #E6F2EA; padding: 12px 14px; border-radius: 4px; }
.kit-msg.err { color: #9B2C2C; }
.bp .kit-msg.ok { color: #BFF0D0; background: rgba(47,122,79,.25); }
.kit-form.done input, .kit-form.done button { display: none; }
.kit-inline { display: grid; grid-template-columns: 1fr; gap: 0; background: var(--white); border: 2px dashed var(--rust); border-radius: 8px; padding: 24px; margin: 2.4em 0; }
.kit-inline-title { font: 800 1.25rem/1.25 var(--f-display); margin: 0; }
.kit-inline .kit-form { margin-top: 14px; }

/* steps (6-step system) */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; border: 1px solid var(--navy-3); border-radius: 6px; overflow: hidden; }
.steps a { padding: 22px 18px 24px; border-right: 1px solid var(--navy-3); text-decoration: none; color: #fff; transition: background .2s; }
.steps a:last-child { border-right: 0; }
.steps a:hover { background: var(--navy-2); }
.steps .hub-n { display: block; margin-bottom: 26px; }
.steps strong { font: 800 1.05rem/1.2 var(--f-display); display: block; }
.steps small { color: var(--steel); font-size: .84rem; }

/* split / feature rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; }
.feature-list .ic { color: var(--rust); margin-top: 5px; font-size: 1.1rem; }
.quote-card { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 34px; position: relative; }
.quote-card blockquote { margin: 0; font: 700 1.4rem/1.4 var(--f-display); letter-spacing: -0.01em; }
.quote-card blockquote::before { content: "“"; display: block; font: 900 4rem/0.6 var(--f-display); color: var(--rust); margin-bottom: 14px; }
.quote-by { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.quote-by .author-ph { width: 54px; height: 54px; font-size: 1.1rem; }
.quote-by strong { display: block; }
.quote-by span { font: 500 .78rem var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.kit-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 24px; }
.kit-item { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 18px 18px 16px; }
.kit-item b { font: 900 1.3rem var(--f-display); color: var(--rust); }
.kit-item strong { display: block; font: 800 1.05rem var(--f-display); margin: 6px 0 2px; }
.kit-item span { font-size: .9rem; color: var(--muted); }
.toc-list { columns: 2; column-gap: 40px; list-style: none; padding: 0; }
.toc-list li { break-inside: avoid; margin: 0 0 18px; }
.toc-list strong { font: 800 1.05rem var(--f-display); display: block; }
.toc-list span { color: var(--muted); font-size: .92rem; }
.formats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.format { background: var(--white); color: var(--ink); border: 2px solid var(--ink); border-radius: 6px; padding: 20px; text-decoration: none; display: flex; flex-direction: column; gap: 4px; transition: transform .15s, box-shadow .15s; }
.format:hover { transform: translateY(-2px); box-shadow: 6px 6px 0 var(--rust); color: var(--ink); }
.format b { font: 500 .76rem var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.format strong { font: 900 1.8rem var(--f-display); }
.format span { font-weight: 700; color: var(--rust-600); display: inline-flex; gap: .4em; align-items: center; }
.photo { border-radius: 6px; overflow: hidden; position: relative; background: var(--navy-2); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-credit { position: absolute; right: 8px; bottom: 6px; font: 500 .68rem var(--f-mono); color: rgba(255,255,255,.75); background: rgba(0,0,0,.35); padding: 2px 6px; border-radius: 2px; text-decoration: none; }

/* tools */
.tool-wrap { padding-top: 48px; padding-bottom: 56px; max-width: 980px; }
.calc { background: var(--white); border: 2px solid var(--ink); border-radius: 8px; padding: 28px; box-shadow: 8px 8px 0 var(--navy); }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.calc label { display: block; font: 600 .78rem var(--f-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 6px; }
.calc input, .calc select { width: 100%; font: 600 1.1rem var(--f-body); padding: 12px 12px; border: 2px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--ink); }
.calc input:focus, .calc select:focus { border-color: var(--rust); outline: none; }
.calc-out { margin-top: 24px; background: var(--navy); color: #fff; border-radius: 6px; padding: 22px 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; }
.calc-out div span { display: block; font: 500 .74rem var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--steel); }
.calc-out div strong { font: 900 2rem/1.1 var(--f-display); letter-spacing: -0.02em; }
.calc-out .hl strong { color: var(--rust-300); }
.calc-note { font-size: .9rem; color: var(--muted); margin: 14px 0 0; }
.status { display: inline-block; font: 700 .78rem var(--f-mono); text-transform: uppercase; padding: 4px 8px; border-radius: 3px; }
.status.ok { background: #E6F2EA; color: var(--ok); }
.status.bad { background: #FBE9E9; color: #9B2C2C; }
.status.mid { background: #FBF1DE; color: #8A5A12; }
.fx-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.fx-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); }
.fx-table input { width: 76px; padding: 8px; font-size: 1rem; }
.fx-table td:nth-child(2), .fx-table td:nth-child(4) { text-align: right; font: 600 .95rem var(--f-mono); }
.tool-body { margin-top: 48px; }
.tool-body h2 { font-size: 1.7rem; font-weight: 800; margin: 1.6em 0 .5em; }

/* footer */
.site-footer { padding: 64px 0 28px; border-top: 1px solid var(--navy-3); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand p { color: var(--steel); max-width: 26em; font-size: .95rem; }
.foot-codes { font: 500 .78rem var(--f-mono); letter-spacing: .1em; }
.foot-h { font: 600 .78rem var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--rust-300); margin: 6px 0 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .94rem; }
.foot ul a { color: #C9D3E1 !important; text-decoration: none; }
.foot ul a:hover { color: #fff !important; text-decoration: underline; }
.foot-legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--navy-3); font-size: .82rem; color: var(--steel); display: grid; gap: 4px; }
.foot-legal p { margin: 0; }
.logo-inv .logo-text { color: #fff; }

/* misc pages */
.legal { padding: 48px 0 80px; }
.legal h2 { font-size: 1.5rem; margin-top: 1.6em; }
.big-num { font: 900 clamp(5rem, 14vw, 10rem)/1 var(--f-display); color: var(--rust); letter-spacing: -0.05em; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.pill { font: 600 .82rem var(--f-mono); padding: 6px 10px; border: 1px solid var(--navy-3); border-radius: 30px; color: #DCE3EE; }

.split .card-grid { grid-template-columns: 1fr 1fr; }
.lead-photo { margin: 0 0 2em; }
.lead-photo img, .side-photo img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: var(--paper-2); }
.lead-photo figcaption, .side-photo figcaption { font: 500 .74rem var(--f-mono); color: var(--muted); margin-top: 8px; }
.lead-photo figcaption a, .side-photo figcaption a { color: inherit; }
.bp .side-photo figcaption { color: var(--steel); }
.side-photo { margin: 0; position: relative; }
.side-photo img { aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.side-photo.tilt img { border: 6px solid var(--white); transform: rotate(1.5deg); }
.hub-card.has-img { padding-top: 0; }
.hub-img { display: block; margin: 0 -24px 14px; height: 150px; overflow: hidden; border-bottom: 3px solid var(--ink); }
.hub-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; filter: saturate(.85) contrast(1.05); }
.hub-card:hover .hub-img img { transform: scale(1.05); }
.mega .hub-img { display: none; }
.split > *, .hero-grid > *, .hub-head-grid > *, .kit-band-inner > * { min-width: 0; }
.prose .tbl table { font-size: .93rem; }
.prose .hub-grid { margin-top: 1.4em; }
.tool-wrap > .book-cta { margin-top: 3em; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav ul a { padding: 10px 8px; font-size: .9rem; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps a:nth-child(3) { border-right: 0; }
  .steps a:nth-child(-n+3) { border-bottom: 1px solid var(--navy-3); }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 72px 0 auto 0; background: var(--navy); flex-direction: column; align-items: stretch; padding: 12px 20px 22px; gap: 12px; border-bottom: 3px solid var(--rust); display: none; max-height: calc(100vh - 72px); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; }
  .nav ul a { padding: 13px 10px; font-size: 1.05rem; }
  .mega { position: static; opacity: 1; visibility: visible; transform: none; padding: 0 0 6px 10px; }
  .mega-grid { grid-template-columns: 1fr; background: none; box-shadow: none; border: 0; padding: 0; }
  .mega-grid a { color: #C9D3E1 !important; padding: 8px 10px !important; }
  .mega-grid a:hover { background: var(--navy-2) !important; }
  .mega-grid small { display: none; }
  .mega .hub-n { font-size: .95rem; }
  .nav-cta { justify-content: center; }
  .hero-grid, .split, .hub-head-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-book { padding: 0 0 10px; }
  .hero-book img { width: min(210px, 55vw); transform: rotate(-3deg); }
  .hero-badge { right: auto; left: 60%; bottom: 10px; }
  .article-grid { grid-template-columns: 1fr; gap: 0; }
  .article-side { display: none; }
  .hub-grid, .card-grid, .aud-grid { grid-template-columns: repeat(2, 1fr); }
  .foot { grid-template-columns: 1fr 1fr; }
  .kit-band-inner { grid-template-columns: 1fr; gap: 30px; }
  .kit-cover { width: 180px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hdr { height: 64px; }
  .nav { inset: 64px 0 auto 0; }
  .logo-text { display: none; }
  .section { padding: 60px 0; }
  .page-head { padding: 36px 0 44px; }
  .hub-grid, .card-grid, .aud-grid, .prose .card-grid, .kit-items, .formats { grid-template-columns: 1fr; }
  .hero-strip { grid-template-columns: 1fr 1fr; }
  .hero-strip div:nth-child(2) { border-right: 0; }
  .hero-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--navy-3); }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps a { border-right: 1px solid var(--navy-3) !important; border-bottom: 1px solid var(--navy-3); }
  .steps a:nth-child(2n) { border-right: 0 !important; }
  .book-cta { grid-template-columns: 1fr; text-align: left; padding: 24px; }
  .book-cta-cover { width: 110px; }
  .author-box { flex-direction: column; }
  .foot { grid-template-columns: 1fr; }
  .toc-list { columns: 1; }
  .calc { padding: 20px; box-shadow: 5px 5px 0 var(--navy); }
  .btn { white-space: normal; }
  .quick-answer { box-shadow: 4px 4px 0 var(--rust); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .kit-band, .article-side, .book-cta { display: none !important; } body { background: #fff; } }
