/* Layout concept: a site read like a soil log — earth-brown bands, depth ticks, and data set in a plain engineering hand. */
:root {
  --paper: #FBFAF7;
  --panel: #F3EDE4;
  --ink: #2A1D12;
  --muted: #6B5746;
  --line: #E3D9CC;
  --brown: #9E611F;
  --brown-ink: #7A4813;
  --earth: #3A2716;
  --on-earth: #F6EFE6;
  --on-earth-muted: #CDBBA6;
  --ok: #3F7A4A;
  --on-brown: #FFFFFF;
  --soil-1: #C9A27A; --soil-2: #A87C52; --soil-3: #7E5634; --soil-4: #5A3A22; --soil-5: #8E8A80;
  --font: Calibri, Carlito, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --s-1: .8125rem; --s0: 1rem; --s1: 1.1875rem; --s2: 1.5rem; --s3: 2rem; --s4: 2.75rem; --s5: 3.5rem;
  --max: 1180px;
  --radius: 6px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #16110D; --panel: #211912; --ink: #F1E9DF; --muted: #B9A692; --line: #3A2D22;
    --brown: #DC9850; --brown-ink: #E9AE6E; --earth: #0E0A07; --on-earth: #F1E9DF; --on-earth-muted: #B9A692;
    --ok: #79B884; --on-brown: #1A120B;
    --soil-1: #B58D66; --soil-2: #946B44; --soil-3: #74502F; --soil-4: #57391F; --soil-5: #7D7970;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #16110D; --panel: #211912; --ink: #F1E9DF; --muted: #B9A692; --line: #3A2D22;
  --brown: #DC9850; --brown-ink: #E9AE6E; --earth: #0E0A07; --on-earth: #F1E9DF; --on-earth-muted: #B9A692;
  --ok: #79B884; --on-brown: #1A120B;
  --soil-1: #B58D66; --soil-2: #946B44; --soil-3: #74502F; --soil-4: #57391F; --soil-5: #7D7970;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brown-ink); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--brown); outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.12; text-wrap: balance; margin: 0; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 5.2vw, var(--s5)); }
h2 { font-size: clamp(1.75rem, 3.4vw, var(--s4)); }
h3 { font-size: var(--s2); }
h4 { font-size: var(--s1); }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section.tight { padding-block: clamp(40px, 5vw, 64px); }
.band { background: var(--panel); }
.band-earth { background: var(--earth); color: var(--on-earth); }
.band-earth .lede, .band-earth .muted { color: var(--on-earth-muted); }
.band-earth a { color: var(--on-earth); }

.eyebrow { font-family: var(--mono); font-size: var(--s-1); letter-spacing: .08em; text-transform: uppercase; color: var(--brown-ink); display: block; margin-bottom: 14px; }
.band-earth .eyebrow { color: #E2A764; }
.lede { font-size: var(--s1); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 18px; }
.head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-bottom: 44px; }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.125rem; line-height: 1.1; }
.brand img { width: 42px; height: 42px; border-radius: 50%; }
.brand small { display: block; font-weight: 400; font-size: .75rem; color: var(--muted); letter-spacing: .04em; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink); padding: 8px 12px; border-radius: var(--radius); font-size: 1rem; }
.nav a:hover { background: var(--panel); }
.nav a[aria-current="page"] { color: var(--brown-ink); font-weight: 700; }
.nav .btn { margin-left: 8px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: var(--radius); padding: 8px 12px; font: inherit; cursor: pointer; }
@media (max-width: 1100px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: var(--radius); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border: 1.5px solid var(--brown); background: var(--brown); color: var(--on-brown); line-height: 1.2; }
.btn:hover { background: var(--brown-ink); border-color: var(--brown-ink); }
.btn.ghost { background: transparent; color: var(--brown-ink); }
.btn.ghost:hover { background: var(--panel); }
.band-earth .btn.ghost { color: var(--on-earth); border-color: var(--on-earth-muted); }
.band-earth .btn.ghost:hover { background: rgba(255,255,255,.08); }
.nav a.btn { color: var(--on-brown); padding: 9px 16px; }
.nav a.btn:hover { background: var(--brown-ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 span { color: var(--brown-ink); }
.hero .lede { margin-top: 20px; }
.hero .actions { margin-top: 30px; }
.hero-figure { position: relative; }
.hero-figure img { border-radius: var(--radius); aspect-ratio: 4/3.2; object-fit: cover; width: 100%; }
.hero-figure figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(20,14,9,.78); color: #F6EFE6; font-family: var(--mono); font-size: .75rem; padding: 6px 10px; border-radius: 4px; max-width: calc(100% - 24px); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* Proof strip */
.proof { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof div { padding: 22px 20px; border-left: 1px solid var(--line); min-width: 0; }
.proof div:first-child { border-left: 0; padding-left: 0; }
.proof b { display: block; font-size: var(--s3); line-height: 1; color: var(--brown-ink); font-variant-numeric: tabular-nums; }
.proof span { display: block; margin-top: 8px; color: var(--muted); font-size: .9375rem; line-height: 1.35; }
@media (max-width: 760px) { .proof { grid-template-columns: 1fr 1fr; } .proof div:nth-child(3) { border-left: 0; padding-left: 0; } .proof div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* Process (real sequence) */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; }
.process li { list-style: none; padding: 0 18px 0 0; position: relative; min-width: 0; }
.process li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--brown); color: var(--brown-ink); font-weight: 700; margin-bottom: 14px; background: var(--paper); position: relative; z-index: 1; }
.band .process li::before { background: var(--panel); }
.process li::after { content: ""; position: absolute; top: 17px; left: 34px; right: 0; height: 1.5px; background: var(--line); }
.process li:last-child::after { display: none; }
.process h4 { margin-bottom: 6px; }
.process p { color: var(--muted); font-size: .96875rem; }
.process { padding: 0; margin: 0; }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr; gap: 22px; }
  .process li { padding: 0 0 0 52px; }
  .process li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .process li::after { top: 34px; bottom: -22px; left: 17px; right: auto; width: 1.5px; height: auto; }
}

/* Soil log columns */
.soils { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.soil { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); min-width: 0; }
.soil .core { height: 88px; position: relative; }
.soil .core i { position: absolute; left: 0; right: 0; }
.soil .core::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 10px; transform: translateX(-50%); background: repeating-linear-gradient(170deg, #cfd3d6 0 5px, #8f979c 5px 7px); opacity: .9; }
.soil .body { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.soil .n { font-family: var(--mono); font-size: .8125rem; color: var(--brown-ink); }
.soil h4 { font-size: 1.125rem; }
.soil p { color: var(--muted); font-size: .9375rem; }
@media (max-width: 960px) { .soils { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .soils { grid-template-columns: 1fr; } }

/* Cards & grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .grid-4 { grid-template-columns: 1fr; } }

.app { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: inherit; }
.app img { aspect-ratio: 4/3; object-fit: cover; width: 100%; border-radius: var(--radius); }
.app h3 { font-size: 1.375rem; }
.app p { color: var(--muted); }
.app .more { color: var(--brown-ink); font-weight: 700; }
.app:hover h3 { color: var(--brown-ink); }

.photo { border-radius: var(--radius); width: 100%; object-fit: cover; }
.ratio-43 { aspect-ratio: 4/3; }
.ratio-wide { aspect-ratio: 16/10; }
figure { margin: 0; }
figure figcaption { font-size: .875rem; color: var(--muted); margin-top: 8px; }

.checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.checklist li { padding-left: 26px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--brown); border-bottom: 2px solid var(--brown); transform: rotate(-45deg); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; background: var(--panel); }
tr:last-child td { border-bottom: 0; }
td.k { font-weight: 700; }
.compare td:nth-child(3) { color: var(--ink); }
.compare td:nth-child(2) { color: var(--muted); }

/* Case studies */
.cases { display: flex; flex-direction: column; gap: 28px; }
.case { display: grid; grid-template-columns: 360px 1fr; gap: 32px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.case > * { min-width: 0; }
.case img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.case .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-family: var(--mono); font-size: .75rem; padding: 4px 8px; border-radius: 4px; background: var(--panel); color: var(--muted); }
.tag.b { background: color-mix(in srgb, var(--brown) 16%, transparent); color: var(--brown-ink); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); margin-top: 6px; }
.facts div { padding: 12px 14px 0 0; min-width: 0; }
.facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; padding: 20px; } .facts { grid-template-columns: 1fr 1fr; } }

.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter button { font: inherit; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.filter button[aria-pressed="true"] { background: var(--brown); border-color: var(--brown); color: var(--on-brown); }

.fence-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.fence-list div { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.fence-list b { font-size: 1.75rem; color: var(--brown-ink); display: block; line-height: 1.1; font-variant-numeric: tabular-nums; }

.clients { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 1.25rem; font-weight: 700; color: var(--muted); }

/* CTA band */
.cta .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.cta .actions { justify-content: flex-end; }
@media (max-width: 800px) { .cta .wrap { grid-template-columns: 1fr; } .cta .actions { justify-content: flex-start; } }

/* Forms / planner */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-weight: 700; font-size: .9375rem; }
.field .hint { font-size: .8125rem; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; width: 100%; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
textarea { min-height: 120px; resize: vertical; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

.planner { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.planner > * { min-width: 0; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--paper); }
.result { background: var(--panel); border-color: transparent; position: sticky; top: 90px; }
.result h3 { margin-bottom: 4px; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; margin: 18px 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.big { font-size: var(--s4); font-weight: 700; line-height: 1; color: var(--brown-ink); font-variant-numeric: tabular-nums; }
.note { font-size: .875rem; color: var(--muted); border-left: 3px solid var(--brown); padding-left: 12px; }
.toast { font-size: .875rem; color: var(--ok); min-height: 1.4em; }
@media (max-width: 900px) { .planner { grid-template-columns: 1fr; } .result { position: static; } }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; font-weight: 400; }
.seg input { width: auto; accent-color: var(--brown); }
.seg label:has(input:checked) { border-color: var(--brown); background: color-mix(in srgb, var(--brown) 12%, transparent); }

/* Downloads */
.docs { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.docs li { display: flex; gap: 16px; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.docs li > div { min-width: 0; flex: 1 1 280px; }
.docs b { display: block; }
.docs span { color: var(--muted); font-size: .9375rem; }
.docs .tag { white-space: nowrap; }

/* Footer */
.site-footer { background: var(--earth); color: var(--on-earth-muted); padding-block: 56px 32px; font-size: .9375rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.site-footer .cols > * { min-width: 0; }
.site-footer h4 { color: var(--on-earth); font-size: 1rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: var(--on-earth-muted); text-decoration: none; }
.site-footer a:hover { color: var(--on-earth); text-decoration: underline; }
.site-footer .legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .8125rem; }
.site-footer .brand { color: var(--on-earth); }
.site-footer .brand small { color: var(--on-earth-muted); }
@media (max-width: 900px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .cols { grid-template-columns: 1fr; } }

.page-head { padding-block: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 40px); border-bottom: 1px solid var(--line); }
.page-head .lede { margin-top: 16px; }
.crumb { font-family: var(--mono); font-size: .75rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

.anchor-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; }
.anchor-nav a { font-weight: 700; text-decoration: none; }
.anchor-nav a:hover { text-decoration: underline; }
[id] { scroll-margin-top: 90px; }

@media (prefers-reduced-motion: no-preference) {
  .soil .core::after { transition: transform .4s ease; }
  .soil:hover .core::after { transform: translateX(-50%) translateY(6px); }
}
.skip:focus { left: 16px !important; top: 12px; z-index: 100; background: var(--paper); padding: 8px 12px; border-radius: var(--radius); }
/* Portfolio grid */
.pf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pf { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pf img { aspect-ratio: 4/3; object-fit: cover; width: 100%; border-radius: var(--radius); }
.pf h4 { margin-top: 6px; }
.pf p { font-size: .9375rem; }
@media (max-width: 960px) { .pf-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .pf-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .pf-grid { grid-template-columns: 1fr; } }
/* Tool tiles */
.tile { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; background: var(--paper); }
.tile .eyebrow { margin: 0; }
.tile p { color: var(--muted); }
.tile .more { color: var(--brown-ink); font-weight: 700; margin-top: auto; }
.tile:hover { border-color: var(--brown); }
.tile.team { background: var(--panel); }
/* Long-form text */
.prose { max-width: 760px; }
.prose h2 { font-size: var(--s2); margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose li { margin-bottom: 8px; }
.prose .table-wrap { margin-bottom: 14px; }
.install-btn { font: inherit; font-size: .8125rem; background: none; border: 1px solid rgba(255,255,255,.3); color: var(--on-earth); border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.offline-note { color: #A7D3AE; }
@media (display-mode: standalone) { .site-header .brand small::after { content: " · app"; } }
.bc-pages { display: flex; flex-direction: column; align-items: center; gap: 12px; background: var(--panel); padding: 12px; border-radius: var(--radius); overflow-x: auto; }
.bc-pages canvas, .bc-pages img { max-width: 100%; height: auto; box-shadow: 0 1px 4px rgba(0,0,0,.15); background: #fff; }
label.btn { cursor: pointer; }

/* ---- Project cards open a detail view (projects.js) ---- */
a.pf { color: inherit; text-decoration: none; border-radius: var(--radius); }
a.pf:hover h4, a.pf:focus-visible h4 { color: var(--brown-ink); text-decoration: underline; }
a.pf:focus-visible { outline: 2px solid var(--brown); outline-offset: 4px; }
.pf-more { display: inline-block; margin-top: 6px; font-size: .875rem; font-weight: 700; color: var(--brown-ink); }
dialog.pd { width: min(1100px, 100vw - 32px); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
dialog.pd::backdrop { background: rgba(20, 12, 6, .62); }
.pd-head { position: sticky; top: 0; z-index: 2; display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; padding: 18px 22px 14px; background: var(--paper); border-bottom: 1px solid var(--line); }
.pd-head h2 { font-size: var(--s3); margin: 4px 0 2px; }
.pd-close { flex: none; font: inherit; font-weight: 700; padding: 8px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; }
.pd-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 26px; padding: 20px 22px 26px; }
.pd-stage { position: relative; background: var(--panel); border-radius: var(--radius); overflow: hidden; }
.pd-stage img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: contain; background: #1d140c; }
.pd-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.88); color: #2A1D12; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.pd-nav.prev { left: 10px; } .pd-nav.next { right: 10px; }
.pd-cap { font-size: .875rem; color: var(--muted); margin: 8px 0; }
.pd-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.pd-thumbs button { flex: none; padding: 0; border: 2px solid transparent; border-radius: 4px; background: none; cursor: pointer; }
.pd-thumbs button[aria-current="true"] { border-color: var(--brown); }
.pd-thumbs img { display: block; width: 84px; height: 63px; object-fit: cover; border-radius: 2px; }
.pd-info { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pd-info .facts { grid-template-columns: 1fr 1fr; margin-top: 0; }
.pd-info .facts dd { font-weight: 600; }
.pd-story h4 { margin: 12px 0 4px; color: var(--brown-ink); }
.pd-story p { margin: 0; }
@media (max-width: 860px) { .pd-body { grid-template-columns: 1fr; } .pd-head h2 { font-size: var(--s2); } }

.nav a{white-space:nowrap}
.brand{flex-shrink:0}

.pv-pages { display: flex; flex-direction: column; align-items: center; gap: 12px; background: var(--panel); padding: 12px; border-radius: var(--radius); overflow-x: auto; }
.pv-pages canvas { max-width: 100%; height: auto; box-shadow: 0 1px 4px rgba(0,0,0,.15); background: #fff; }

/* Landing choice: Solar (Strolar Ground Screw) or Non-solar (Ground Screw Company) — Pending #21 */
.chooser { padding-block: 18px; border-bottom: 1px solid var(--line); background: var(--panel); }
.chooser .wrap { display: grid; gap: 12px; }
.chooser .q { font-weight: 700; font-size: var(--s1); margin: 0; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.choice { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: inherit; text-decoration: none; border-left-width: 5px; }
.choice:hover, .choice:focus-visible { border-color: var(--brown); }
.choice img { width: 44px; height: 44px; object-fit: contain; }
.choice b { display: block; font-size: var(--s1); }
.choice span { color: var(--muted); font-size: var(--s-1); }
.choice .go { font-weight: 700; color: var(--brown-ink); white-space: nowrap; }
.choice.solar { border-left-color: #482E66; }
.choice.solar .go { color: #482E66; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .choice.solar .go { color: #B79BDB; } }
:root[data-theme="dark"] .choice.solar .go { color: #B79BDB; }
.choice.nonsolar { border-left-color: var(--brown); }

/* Knowledge Centre */
.byline { font-size: .875rem; color: var(--muted, #6E6155); margin-top: 10px; }
.kc h2 { scroll-margin-top: 90px; }
.kc .table-wrap table { width: 100%; }
.kc .refs { font-size: .9rem; padding-left: 22px; }
.kc .refs li { margin-bottom: 6px; }
.disc { margin-top: 36px; padding: 14px 16px; border-left: 3px solid var(--brown, #9E611F); background: var(--panel, #F4EADD); font-size: .85rem; line-height: 1.5; color: var(--muted, #6E6155); border-radius: 4px; }
.kc-next { margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; }
.kc-card { text-decoration: none; }
.kc-card .tag { display: inline-block; margin-bottom: 8px; }
.kc-card h3 { margin: 0 0 6px; }
.gloss dt { font-weight: 700; margin-top: 16px; }
.gloss dd { margin: 4px 0 0; }

/* Hygiene pass 24-11-2026 */
.foot-disc{font-size:.8rem;line-height:1.5;opacity:.85;margin:18px 0 6px;max-width:900px}
.foot-disc a{text-decoration:underline}
.tool-disc{margin-top:0}
.consent .tick{display:flex;gap:8px;align-items:flex-start;font-weight:400;font-size:.9rem;line-height:1.45;margin:4px 0}
.consent .tick input{width:auto;margin-top:3px;flex:none}
