/* Shared design system. Colours and fonts come from each site's theme.css. */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; background: var(--fg); color: var(--bg); padding: 0.6rem 1rem; border-radius: 999px; text-decoration: none; }
.skip:focus { left: 16px; }

.wrap { width: min(1240px, calc(100% - 32px)); margin-inline: auto; }
@media (min-width: 768px) { .wrap { width: min(1240px, calc(100% - 64px)); } }

/* Hidden only until GSAP reveals them; if scripts fail, the head script removes .motion. */
.motion [data-split],
.motion [data-reveal] { visibility: hidden; }

/* ---------- type ---------- */
.eyebrow { font: 500 0.78rem/1.2 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin: 0 0 1.25rem; }
.display { font-size: clamp(2.9rem, 8.2vw, 7.6rem); line-height: 0.94; letter-spacing: var(--display-track); }
.display-sm { font-size: clamp(2.2rem, 5.6vw, 5rem); line-height: 0.98; letter-spacing: var(--display-track); }
.h1 { font-size: clamp(2.4rem, 5.8vw, 5rem); line-height: 0.98; letter-spacing: var(--display-track); max-width: 16ch; }
.h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1; letter-spacing: var(--display-track); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.5; color: var(--muted); max-width: 58ch; margin: 1.5rem 0 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.75rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  background: var(--fg); color: var(--bg); font: 600 0.98rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
  will-change: transform;
}
.btn:hover { background: var(--accent); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); color: var(--fg); border-color: var(--muted); }
.btn-sm { min-height: 38px; padding: 0.5rem 1rem; font-size: 0.88rem; }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--fg); color: var(--bg); }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font: var(--display-weight) 1.08rem/1 var(--font-display); letter-spacing: -0.02em; text-decoration: none; }
.brand svg { width: 28px; height: 28px; flex: none; }
.nav { display: flex; gap: 0.15rem; }
.nav a { text-decoration: none; font-size: 0.9rem; color: var(--muted); padding: 0.5rem 0.85rem; border-radius: 999px; transition: color 0.2s, background-color 0.2s; }
.nav a:hover, .nav a[aria-current] { color: var(--fg); background: var(--surface); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; color: var(--fg); cursor: pointer; position: relative; }
.menu-btn span:not(.sr) { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.3s; }
.menu-btn span:nth-child(1) { top: 17px; }
.menu-btn span:nth-child(2) { top: 25px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 899px) {
  .menu-btn { display: block; }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0;
    padding: 0.5rem 16px 1.25rem; background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.9rem 0.75rem; font-size: 1.05rem; border-radius: 12px; }
}

main { padding-top: 64px; }

/* ---------- home: hero ---------- */
.hero { position: relative; min-height: calc(100svh - 64px); display: flex; align-items: center; padding: 3rem 0 5rem; overflow: hidden; isolation: isolate; }
.hero-glow { position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); filter: blur(10px); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }
.hero-copy .display { max-width: 11ch; }
.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }
.hero-art { width: 100%; }
.hero-art svg { width: 100%; height: auto; overflow: visible; }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid var(--line); border-radius: 20px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--muted); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 899px) {
  .hero { min-height: auto; padding: 2.5rem 0 4rem; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .hero-art { max-width: 420px; margin: 0 auto; }
  .scroll-cue { display: none; }
}

/* ---------- home: facts ---------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts > div { padding: 2.25rem 1.5rem; display: flex; flex-direction: column; gap: 0.35rem; }
.facts > div + div { border-left: 1px solid var(--line); }
.fact-num { font: var(--display-weight) clamp(2.6rem, 5vw, 4rem)/1 var(--font-display); letter-spacing: -0.04em; }
.fact-label { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr; }
  .facts > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .facts > div { padding: 1.5rem 0.25rem; flex-direction: row; align-items: baseline; gap: 1rem; }
}

/* ---------- home: horizontal tool rail ---------- */
.rail-section { padding: 7rem 0 5rem; overflow: hidden; }
.rail-head { margin-bottom: 3rem; }
.rail-head .h2 { max-width: 18ch; }
.rail-viewport { padding-left: max(16px, calc((100vw - 1240px) / 2)); }
@media (min-width: 768px) { .rail-viewport { padding-left: max(32px, calc((100vw - 1240px) / 2)); } }
.rail { list-style: none; margin: 0; padding: 0 32px 0 0; display: flex; gap: 24px; width: max-content; }
.rail-card { width: min(420px, 80vw); flex: none; }
.rail-card a, .related-card {
  position: relative; display: flex; flex-direction: column; height: 100%; min-height: 460px; padding: 2rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 32px; text-decoration: none; overflow: hidden;
  transition: border-color 0.3s, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.rail-card a::after { content: ""; position: absolute; inset: auto -30% -40% auto; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 18%, transparent), transparent); opacity: 0; transition: opacity 0.5s; }
.rail-card a:hover, .related-card:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.rail-card a:hover::after { opacity: 1; }
.rail-num { font: 500 0.85rem var(--font-mono); color: var(--muted); }
.rail-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 2.5rem 0 auto; border-radius: 20px; background: var(--bg2); color: var(--accent); }
.rail-icon svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rail-card h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin-top: 2rem; }
.rail-card p, .related-card p { color: var(--muted); margin: 0.75rem 0 0; }
.rail-go { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1.75rem; font-weight: 600; color: var(--accent); }
.rail-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s; }
.rail-card a:hover .rail-go svg { transform: translateX(4px); }
@media (max-width: 899px) {
  .rail-section { padding: 5rem 0 3rem; }
  .rail-viewport { padding: 0; width: min(1240px, calc(100% - 32px)); margin: 0 auto; }
  .rail { flex-direction: column; width: auto; padding: 0; gap: 16px; }
  .rail-card { width: auto; }
  .rail-card a { min-height: 0; }
  .rail-icon { margin: 1.5rem 0 0; }
}

/* ---------- home: statement, why, about, cta ---------- */
.statement { padding: 6rem 0; }
.statement p { font: var(--display-weight) clamp(1.9rem, 4.3vw, 3.9rem)/1.12 var(--font-display); letter-spacing: -0.03em; max-width: 22ch; margin: 0; }
.statement em { font-style: normal; color: var(--accent); }
.why { padding: 4rem 0 6rem; }
.why .h2 { max-width: 16ch; margin-bottom: 3rem; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-card { padding: 2rem; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); }
.why-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--bg2); color: var(--accent); margin-bottom: 1.5rem; }
.why-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.why-card h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }
.why-card p { color: var(--muted); margin: 0; }
@media (max-width: 899px) { .why-grid { grid-template-columns: 1fr; } }
.home-about { padding: 2rem 0 6rem; }
.home-about .prose { margin-inline: auto; }
.cta-band { padding: 7rem 0; background: var(--surface); border-top: 1px solid var(--line); text-align: center; }
.cta-band .display-sm { max-width: 16ch; margin: 0 auto; }
.cta-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2.5rem; }

/* ---------- tool page ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 1.75rem 0 0; font-size: 0.88rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--fg); }
.tool-hero { padding: 3rem 0 2.5rem; }
.simple-hero { padding-bottom: 1rem; }
.tool-shell { padding-bottom: 4rem; }

.tool { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 20px; align-items: start; }
.tool.tool-wide { grid-template-columns: 1fr; }
@media (max-width: 899px) { .tool { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(20px, 3vw, 36px); min-width: 0; }
.panel-title { font: 600 0.8rem/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.5rem; }
.results { position: sticky; top: 88px; }
@media (max-width: 899px) { .results { position: static; } }

.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .fields { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; }
.field > span, .field > label, .legend { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.field small { color: var(--muted); font-size: 0.8rem; }
.input, .field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 0.7rem 0.95rem; border-radius: 14px; border: 1px solid var(--line);
  background: var(--bg2); color: var(--fg); font: 500 1.05rem/1.3 var(--font-body);
  transition: border-color 0.2s, box-shadow 0.2s; appearance: none; -webkit-appearance: none;
}
.field textarea { min-height: 96px; resize: vertical; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.input-unit { position: relative; }
.input-unit input:not([type="checkbox"]):not([type="radio"]) { padding-right: 3.6rem; }
.input-unit em { position: absolute; right: 0.95rem; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 0.85rem; color: var(--muted); pointer-events: none; }
.input-unit.pre input:not([type="checkbox"]):not([type="radio"]) { padding-right: 0.95rem; padding-left: 2rem; }
.input-unit.pre em { right: auto; left: 0.95rem; }

.seg { display: inline-flex; flex-wrap: wrap; padding: 4px; gap: 4px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--line); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; padding: 0.55rem 1rem; border-radius: 999px; font-size: 0.9rem; font-weight: 600; color: var(--muted); transition: background-color 0.25s, color 0.25s; }
.seg input:checked + span { background: var(--fg); color: var(--bg); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { display: flex; align-items: center; gap: 0.6rem; font-size: 0.95rem; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }

.result-label { font-size: 0.85rem; font-weight: 600; color: var(--muted); margin: 0 0 0.35rem; }
.result-big { font: var(--display-weight) clamp(2.8rem, 6vw, 4.6rem)/1 var(--font-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; margin: 0; overflow-wrap: anywhere; }
.result-big small { font-size: 0.4em; letter-spacing: 0; color: var(--muted); margin-left: 0.2em; }
.result-mid { font: var(--display-weight) clamp(1.6rem, 3vw, 2.2rem)/1.1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin: 0; }
.stat-list { margin: 1.75rem 0 0; padding: 0; display: grid; gap: 0; }
.stat-list div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; border-top: 1px solid var(--line); }
.stat-list dt { color: var(--muted); }
.stat-list dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.status { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.25rem; padding: 0.5rem 0.9rem; border-radius: 999px; font-size: 0.9rem; font-weight: 600; background: var(--bg2); border: 1px solid var(--line); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status[data-level="good"]::before { background: var(--good); box-shadow: 0 0 12px var(--good); }
.status[data-level="warn"]::before { background: var(--warn); box-shadow: 0 0 12px var(--warn); }
.status[data-level="bad"]::before { background: var(--bad); box-shadow: 0 0 12px var(--bad); }
.meter { height: 10px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--line); overflow: hidden; margin-top: 1.25rem; }
.meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--good), var(--warn) 60%, var(--bad)); background-size: 300% 100%; }
.note { font-size: 0.88rem; color: var(--muted); margin: 1.25rem 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.row-list { display: grid; gap: 10px; }
.row { display: grid; gap: 10px; align-items: end; }
.icon-btn { width: 44px; height: 52px; display: grid; place-items: center; border-radius: 14px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-size: 1.2rem; }
.icon-btn:hover { color: var(--bad); border-color: var(--bad); }
.table-scroll { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); }

/* ---------- article ---------- */
.article { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 4rem; padding: 3rem 0 4rem; border-top: 1px solid var(--line); }
@media (max-width: 899px) { .article { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; } }
.toc { position: sticky; top: 96px; align-self: start; font-size: 0.9rem; }
.toc-title { font: 600 0.75rem/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 0.4rem 0 0.4rem 1rem; margin-left: -1px; border-left: 1px solid transparent; color: var(--muted); text-decoration: none; }
.toc a:hover, .toc a.active { color: var(--fg); border-left-color: var(--accent); }
@media (max-width: 899px) { .toc { position: static; } .toc ol { display: none; } .toc-title { display: none; } }
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -0.03em; margin: 3.25rem 0 1rem; }
.prose section:first-child h2 { margin-top: 0; }
.prose h3 { font-size: 1.25rem; margin: 2rem 0 0.6rem; }
.prose p, .prose li { color: color-mix(in srgb, var(--fg) 86%, var(--muted)); }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1.25em; }
.prose li { margin: 0.35em 0; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose strong { color: var(--fg); }
.prose code { font: 0.92em var(--font-mono); background: var(--bg2); padding: 0.1em 0.4em; border-radius: 6px; }
.prose .formula { font: 500 1rem/1.6 var(--font-mono); background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 14px; padding: 1rem 1.25rem; margin: 1.25rem 0; overflow-x: auto; white-space: pre; color: var(--fg); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 1.25rem 0 1.5rem; font-variant-numeric: tabular-nums; }
.prose th, .prose td { text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); }
.prose th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.prose .table-scroll table { margin: 0; }
.callout { padding: 1.25rem 1.5rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); margin: 1.5rem 0; }
.callout p:last-child { margin: 0; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.2rem 2.5rem 1.2rem 0; font-weight: 600; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 300; color: var(--accent); transition: transform 0.3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 0 1.25rem; color: var(--muted); }
.faq details > div p:last-child { margin: 0; }
.reviewed { margin-top: 3rem; font-size: 0.88rem; color: var(--muted); }
.reviewed a { color: inherit; }
.simple-prose { padding-bottom: 5rem; margin-top: 1rem; }
.contact-card { padding: 2rem; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 2rem; }
.contact-label { font: 600 0.75rem var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0; }
.contact-mail { font: var(--display-weight) clamp(1.4rem, 3.5vw, 2.2rem)/1.2 var(--font-display); margin: 0.5rem 0 0.75rem; overflow-wrap: anywhere; }
.contact-mail a { color: var(--fg); text-decoration: none; }

/* ---------- related ---------- */
.related { padding: 2rem 0 6rem; }
.related .h2 { margin-bottom: 2rem; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card { min-height: 0; padding: 1.75rem; border-radius: 24px; }
.related-card .rail-icon { margin: 0 0 1.5rem; width: 52px; height: 52px; border-radius: 16px; }
.related-card .rail-icon svg { width: 26px; height: 26px; }
.related-card h3 { font-size: 1.3rem; }
@media (max-width: 899px) { .related-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 4.5rem 0 2.5rem; font-size: 0.92rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.foot-brand p { color: var(--muted); max-width: 36ch; margin-top: 1rem; }
.site-footer h2 { font: 600 0.75rem var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.site-footer ul a { text-decoration: none; color: color-mix(in srgb, var(--fg) 80%, var(--muted)); }
.site-footer ul a:hover { color: var(--accent); }
.foot-base { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.82rem; }
.foot-base p { margin: 0 0 0.5rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- print (quotes, shot lists) ---------- */
@media print {
  body { background: #fff; color: #000; }
  body.print-doc * { visibility: hidden; }
  body.print-doc .print-area, body.print-doc .print-area * { visibility: visible; }
  body.print-doc .print-area { position: absolute; left: 0; top: 0; width: 100%; border: 0; box-shadow: none; }
  .no-print { display: none !important; }
  main { padding: 0; }
}

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