/* Soil Mender — site styles. Tokens copied from the Soil Mender Design System (light theme).
   Layout idea: left-aligned editorial columns on a 12-col grid, forest bands open sections,
   photography bleeds to one edge, drawn diagrams carry the argument. */
:root {
  --surface: #fbfcf8;
  --surface-sage: #f2f7e7;
  --surface-raised: #ffffff;
  --surface-brand: #2a492f;
  --line: #daddd0;
  --ink: #393536;
  --ink-muted: #5f5b5c;
  --heading: #2a492f;
  --on-brand: #f2f7e7;
  --leaf: #529b34;
  --leaf-text: #3d7a26;
  --leaf-soft: #abd287;
  --water: #47849b;
  --water-text: #356a80;
  --water-soft: #eaf1f3;
  --ionyx: #a96724;
  --ionyx-text: #8f5419;
  --ionyx-soft: #f7ede1;
  --sun: #fccb06;
  --callout: #fcf7d7;
  --status-clear: #3d7a26;
  --status-watch: #8a6a00;
  --status-concern: #b5541a;
  --status-priority: #9e2a2b;
  --focus-ring: #2a492f;

  --font-display: "Roboto Slab", Georgia, "Times New Roman", serif;
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px;
  --space-8: 32px; --space-12: 48px; --space-16: 64px; --space-24: 96px;
  --radius-sm: 2px; --radius-md: 4px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--surface); color: var(--ink);
  font-family: var(--font-sans); font-size: 16px; line-height: 26px;
  font-feature-settings: "cv11", "ss01";
}
img, svg { max-width: 100%; display: block; }
a { color: var(--leaf-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--heading); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: var(--radius-sm); }
.on-brand :focus-visible { outline-color: var(--on-brand); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; color: var(--heading); margin: 0; text-wrap: balance; letter-spacing: -0.005em; }
.display { font-size: clamp(38px, 5.2vw, 56px); line-height: 1.07; }
h1, .h1 { font-size: clamp(32px, 4vw, 40px); line-height: 1.15; }
h2, .h2 { font-size: clamp(26px, 3vw, 30px); line-height: 1.2; }
h3, .h3 { font-size: 22px; line-height: 28px; }
p { margin: 0; }
.lead { font-size: 19px; line-height: 30px; font-weight: 300; color: var(--ink); }
.small { font-size: 14px; line-height: 20px; }
.muted { color: var(--ink-muted); }
.eyebrow {
  font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--leaf-text); margin: 0;
}
.eyebrow .sep { color: var(--ink-muted); padding: 0 .4em; }
.stat { font-size: clamp(48px, 6vw, 64px); line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stat-label { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-top: var(--space-2); }
.caption { font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.prose { display: grid; gap: var(--space-4); max-width: 62ch; }
.tm { font-size: .55em; vertical-align: super; line-height: 0; font-family: var(--font-sans); font-weight: 600; margin-left: .05em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--space-16) 0; }
.section.tight { padding: var(--space-12) 0; }
.bg-sage { background: var(--surface-sage); }
.bg-water { background: var(--water-soft); }
.bg-ionyx { background: var(--ionyx-soft); }
.bg-raised { background: var(--surface-raised); }
.band { background: var(--surface-brand); color: var(--on-brand); }
.band h1, .band h2, .band h3 { color: var(--on-brand); }
.band .eyebrow { color: var(--leaf-soft); }
.band .lead, .band p { color: var(--on-brand); }
.rule-top { border-top: 1px solid var(--line); }

/* ---------- Review bar (preview only; not part of the theme) ---------- */
.review-bar { background: var(--callout); color: var(--ink); font-size: 13px; line-height: 18px; border-bottom: 1px solid var(--line); }
.review-bar .wrap { display: flex; gap: var(--space-4); align-items: center; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.review-bar strong { font-weight: 600; }
.review-bar nav { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.review-bar a { color: var(--ink); font-weight: 600; }
.review-bar a[aria-current="page"] { color: var(--leaf-text); text-decoration: none; }

/* ---------- Header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; gap: var(--space-8); min-height: 76px; }
.brand { display: block; flex: none; }
.brand img { width: 128px; height: auto; }
.nav { display: flex; gap: var(--space-6); flex: 1; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--heading); border-bottom-color: var(--line); }
.nav a[aria-current="page"] { color: var(--heading); border-bottom-color: var(--leaf); }
.nav a.nav-ionyx[aria-current="page"] { border-bottom-color: var(--ionyx); }
.header-actions { display: flex; gap: var(--space-4); align-items: center; flex: none; }
.login { font-size: 14px; color: var(--ink-muted); text-decoration: none; }
.login:hover { color: var(--heading); text-decoration: underline; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 8px 12px; font: 600 14px/1 var(--font-sans); color: var(--heading); cursor: pointer; }

@media (max-width: 1020px) {
  .site-header .wrap { flex-wrap: wrap; gap: var(--space-4); padding-top: 10px; padding-bottom: 10px; }
  .brand img { width: 110px; }
  .menu-toggle { display: inline-block; margin-left: auto; }
  .nav, .header-actions { display: none; width: 100%; }
  .site-header.open .nav { display: flex; flex-direction: column; gap: 0; order: 3; }
  .site-header.open .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-header.open .header-actions { display: flex; order: 4; padding-bottom: var(--space-4); }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 600 15px/1 var(--font-sans); padding: 14px 20px; border-radius: var(--radius-md); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--surface-brand); color: var(--on-brand); }
.btn-primary:hover { background: #1f3824; color: var(--on-brand); }
.btn-secondary { background: transparent; color: var(--heading); border-color: var(--heading); }
.btn-secondary:hover { background: var(--surface-sage); color: var(--heading); }
.band .btn-primary { background: var(--on-brand); color: var(--surface-brand); }
.band .btn-primary:hover { background: #fff; color: var(--surface-brand); }
.band .btn-secondary { color: var(--on-brand); border-color: rgba(242,247,231,.55); }
.band .btn-secondary:hover { background: rgba(242,247,231,.08); color: var(--on-brand); }
.btn-ionyx { background: var(--ionyx-text); color: #fff; }
.btn-ionyx:hover { background: #774512; color: #fff; }
.btn .arrow { font-family: var(--font-sans); transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-sm { padding: 10px 14px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.text-link { font-weight: 600; text-decoration: none; color: var(--leaf-text); display: inline-flex; gap: 8px; align-items: baseline; }
.text-link:hover { text-decoration: underline; }
.text-link.ionyx { color: var(--ionyx-text); }

/* ---------- Grid helpers ---------- */
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-8) var(--space-6); }
.span-4 { grid-column-end: span 4; } .span-5 { grid-column-end: span 5; } .span-6 { grid-column-end: span 6; }
.span-7 { grid-column-end: span 7; } .span-8 { grid-column-end: span 8; } .span-12 { grid-column: 1 / -1; }
.start-2 { grid-column-start: 2; } .start-6 { grid-column-start: 6; } .start-7 { grid-column-start: 7; } .start-8 { grid-column-start: 8; } .start-9 { grid-column-start: 9; }
@media (max-width: 900px) {
  .grid-12 { grid-template-columns: 1fr; }
  .grid-12 > * { grid-column: 1 / -1 !important; }
}
.stack { display: grid; gap: var(--space-4); align-content: start; }
.stack-lg { display: grid; gap: var(--space-6); align-content: start; }
.head-block { display: grid; gap: var(--space-4); margin-bottom: var(--space-8); max-width: 760px; }

/* ---------- Heroes ---------- */
.hero { position: relative; overflow: hidden; }
.hero-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); min-height: 560px; }
.hero-split .hero-copy { padding: var(--space-16) var(--space-12) var(--space-16) max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); display: grid; gap: var(--space-6); align-content: center; }
.hero-split .hero-photo { position: relative; min-height: 360px; }
.hero-split .hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photo .photo-note { position: absolute; left: 16px; bottom: 14px; color: #fff; font-size: 12px; letter-spacing: .04em; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.hero .hook { font-family: var(--font-display); font-size: 19px; line-height: 26px; color: var(--leaf-soft); }
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; min-height: 0; }
  .hero-split .hero-copy { padding: var(--space-12) var(--gutter); }
  .hero-split .hero-photo { min-height: 300px; }
}

/* ---------- Takeaway (the guide's pull quote) ---------- */
.takeaway { display: grid; grid-template-columns: 56px 1fr; gap: var(--space-6); align-items: start; max-width: 880px; }
.takeaway::before { content: ""; height: 3px; background: var(--leaf); margin-top: 18px; }
.takeaway p { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 3vw, 30px); line-height: 1.25; color: var(--heading); text-wrap: balance; }
.takeaway.ionyx::before { background: var(--ionyx); }

/* ---------- Pool rows ---------- */
.pools { display: grid; gap: var(--space-6); }
.pool-group { display: grid; gap: var(--space-3); }
.pool-group h3 { font-size: 18px; line-height: 24px; }
.pool-row { display: grid; grid-template-columns: 210px 1fr 56px; gap: var(--space-4); align-items: center; }
.pool-row .lbl { font-size: 14px; line-height: 18px; color: var(--ink); }
.pool-row .lbl.water { color: var(--water-text); font-weight: 600; }
.pool-row .lbl.leaf { color: var(--leaf-text); font-weight: 600; }
.pool-row .track { height: 18px; background: var(--surface-raised); border: 1px solid var(--line); position: relative; }
.pool-row .bar { position: absolute; left: 0; top: 0; bottom: 0; }
.pool-row .bar.leaf { background: var(--leaf); }
.pool-row .bar.water { background: var(--water); }
.pool-row .val { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.pool-row .val.water { color: var(--water-text); }
@media (max-width: 560px) { .pool-row { grid-template-columns: 1fr 48px; } .pool-row .lbl { grid-column: 1 / -1; } }

/* ---------- Status words, chips, tags ---------- */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px 3px 6px; border-radius: var(--radius-sm); color: #fff; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; opacity: .85; filter: brightness(2); }
.status.clear { background: var(--status-clear); }
.status.watch { background: var(--status-watch); }
.status.concern { background: var(--status-concern); }
.status.priority { background: var(--status-priority); }
.chip { display: inline-block; font-size: 12px; line-height: 16px; font-weight: 600; padding: 3px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); background: var(--surface); }
.chip.resolved { border-color: var(--status-clear); color: var(--status-clear); }
.tag { display: inline-block; font-size: 12px; line-height: 16px; font-weight: 700; padding: 3px 8px; border-radius: var(--radius-sm); background: var(--surface-sage); color: var(--heading); border: 1px solid #c9d8b4; }

/* ---------- Finding card ---------- */
.finding { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-6); display: grid; gap: var(--space-4); }
.finding-head { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); align-items: center; }
.finding-title { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 26px; color: var(--heading); flex-basis: 100%; }
.finding dl { margin: 0; display: grid; gap: var(--space-3); }
.finding dt { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.finding dd { margin: 2px 0 0; }
.finding .correction { display: grid; gap: var(--space-2); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.finding .note { font-size: 12px; line-height: 16px; color: var(--ink-muted); }

/* ---------- Report excerpt frame ---------- */
.excerpt { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); }
.excerpt-head { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) var(--space-6); border-bottom: 1px solid var(--line); font-size: 12px; line-height: 16px; color: var(--ink-muted); letter-spacing: .04em; flex-wrap: wrap; }
.excerpt-head strong { color: var(--heading); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.excerpt-body { padding: var(--space-6); display: grid; gap: var(--space-6); }

/* ---------- Gauge (open ring = your soil, filled dot = with your irrigation water) ---------- */
.gauge { display: grid; gap: var(--space-2); }
.gauge-name { display: flex; justify-content: space-between; gap: var(--space-4); font-weight: 600; color: var(--heading); font-size: 15px; }
.gauge-scale { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; position: relative; padding-top: 22px; }
.gauge-scale span { height: 8px; background: var(--line); }
.gauge-scale span:nth-child(1) { background: #cfe2bd; }
.gauge-scale span:nth-child(2) { background: #e8dca8; }
.gauge-scale span:nth-child(3) { background: #ecc6a6; }
.gauge-scale span:nth-child(4) { background: #e2b0ae; }
.gauge-labels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.gauge-labels b { color: var(--ink); font-weight: 600; }
.marker { position: absolute; top: 0; width: 16px; height: 16px; border-radius: 999px; transform: translateX(-50%); }
.marker.soil { border: 3px solid var(--heading); background: var(--surface-raised); }
.marker.water { background: var(--water); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--water); }
.legend { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-6); font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 999px; display: inline-block; }
.legend i.soil { border: 2px solid var(--heading); background: #fff; }
.legend i.water { background: var(--water); }
.legend i.leafsq { border-radius: 0; background: var(--leaf); }
.legend i.watersq { border-radius: 0; background: var(--water); }

/* ---------- Measure • Correct • Validate ---------- */
.mcv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 3px solid var(--heading); }
.mcv > div { padding: var(--space-6) var(--space-6) 0 0; display: grid; gap: var(--space-2); align-content: start; position: relative; }
.mcv > div + div { padding-left: var(--space-6); border-left: 1px solid var(--line); }
.mcv .step { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 32px; color: var(--heading); }
.mcv .loop { grid-column: 1 / -1; margin-top: var(--space-6); font-size: 14px; color: var(--ink-muted); display: flex; align-items: center; gap: var(--space-3); }
.band .mcv { border-top-color: var(--leaf-soft); }
.band .mcv > div + div { border-left-color: rgba(242,247,231,.18); }
.band .mcv .step { color: var(--on-brand); }
@media (max-width: 720px) {
  .mcv { grid-template-columns: 1fr; }
  .mcv > div, .mcv > div + div { padding: var(--space-4) 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Numbered list (true sequence only) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; gap: var(--space-4); padding: var(--space-6) 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--leaf); line-height: 28px; }
.steps h3 { font-size: 20px; line-height: 26px; margin-bottom: 6px; }

/* ---------- Link list ---------- */
.link-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.link-list li { border-bottom: 1px solid var(--line); }
.link-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-4); padding: var(--space-4) 0; text-decoration: none; color: var(--ink); align-items: baseline; }
.link-list a strong { font-family: var(--font-display); color: var(--heading); font-size: 19px; line-height: 26px; display: block; }
.link-list a span.d { color: var(--ink-muted); font-size: 15px; line-height: 22px; }
.link-list a .arrow { color: var(--leaf-text); font-weight: 600; transition: transform .15s; }
.link-list a:hover .arrow { transform: translateX(4px); }
.link-list a:hover strong { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.link-list.ionyx a .arrow { color: var(--ionyx-text); }

/* ---------- Photo blocks ---------- */
.photo { position: relative; overflow: hidden; background: var(--line); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption { font-size: 12px; line-height: 16px; color: var(--ink-muted); padding-top: var(--space-2); }
figure { margin: 0; }

/* ---------- Callout ---------- */
.callout { background: var(--callout); padding: var(--space-6); border-radius: var(--radius-md); display: grid; gap: var(--space-2); }
.callout .eyebrow { color: var(--heading); }

/* ---------- CTA band ---------- */
.cta { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-8); align-items: end; }
.cta .phone { font-family: var(--font-display); font-size: 26px; line-height: 32px; color: var(--on-brand); text-decoration: none; }
.cta .phone:hover { text-decoration: underline; color: #fff; }
@media (max-width: 900px) { .cta { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: #1f3824; color: #d7e2cc; font-size: 14px; line-height: 22px; }
.site-footer a { color: #eef3e4; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-top { display: grid; grid-template-columns: minmax(0, 4fr) repeat(4, minmax(0, 2fr)); gap: var(--space-8); padding: var(--space-16) 0 var(--space-12); }
.footer-brand { display: grid; gap: var(--space-4); align-content: start; }
.footer-brand img { width: 150px; }
.footer-brand .tagline { font-family: var(--font-display); font-size: 20px; line-height: 26px; color: #eef3e4; }
.site-footer h4 { margin: 0 0 var(--space-3); font-size: 12px; line-height: 16px; letter-spacing: .16em; text-transform: uppercase; color: var(--leaf-soft); font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-legal { border-top: 1px solid rgba(238,243,228,.14); padding: var(--space-6) 0 var(--space-8); display: grid; gap: var(--space-3); font-size: 12px; line-height: 18px; color: #b4c2ae; }
.footer-legal .row { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); justify-content: space-between; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Preview-only: links to pages not built yet ---------- */
a[data-todo] { cursor: help; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 14px; padding: 10px 16px; border-radius: var(--radius-md); z-index: 50; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; }

/* ---------- Motion ---------- */
@keyframes orbit { to { transform: rotate(360deg); } }
.orbit { transform-origin: center; transform-box: view-box; animation: orbit linear infinite; }
@media (prefers-reduced-motion: reduce) { .orbit { animation: none; } }

/* ---------- Utility ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Four stages (Functional Agronomy hub) ---------- */
.stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.stage-brackets { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 3fr; gap: var(--space-4); margin-bottom: var(--space-4); }
.stage-brackets .br { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding-bottom: 10px; position: relative; }
.stage-brackets .br::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; border: 2px solid currentColor; border-top: 0; }
.br-supply { color: var(--ink-muted); }
.br-rest { color: var(--leaf-text); }
.stage { padding: var(--space-6) var(--space-6) var(--space-6) 0; border-top: 3px solid var(--heading); display: grid; gap: var(--space-2); align-content: start; }
.stage + .stage { padding-left: var(--space-6); border-left: 1px solid var(--line); }
.stage-name { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 32px; color: var(--heading); }
.stage:first-of-type { border-top-color: var(--line); }
.stage:first-of-type .stage-name { color: var(--ink-muted); }
@media (max-width: 760px) {
  .stages { grid-template-columns: 1fr 1fr; }
  .stage-brackets { display: none; }
  .stage, .stage + .stage { padding: var(--space-4) var(--space-4) var(--space-4) 0; border-left: 0; }
}

/* ---------- Chain: Soil + Water + Plant → Scores → Cause → Correction ---------- */
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.chain .node { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 24px; padding: 14px 20px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface-raised); color: var(--heading); }
.chain .node.leaf { border-color: var(--leaf); box-shadow: inset 0 -4px 0 var(--leaf); }
.chain .node.water { border-color: var(--water); box-shadow: inset 0 -4px 0 var(--water); color: var(--water-text); }
.chain .node.dark { background: var(--surface-brand); color: var(--on-brand); border-color: var(--surface-brand); }
.chain .joint { font-size: 20px; color: var(--ink-muted); font-weight: 300; }
.chain .joint.arrow { color: var(--leaf-text); font-weight: 600; }
.report-card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-6); display: grid; gap: var(--space-3); align-content: start; }
.season { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 3px solid var(--leaf); }
.season li { padding: var(--space-3) var(--space-3) 0 0; display: grid; gap: 4px; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.season li + li { padding-left: var(--space-3); border-left: 1px solid var(--line); }
.season b { color: var(--heading); font-size: 15px; }
@media (max-width: 560px) { .season { grid-template-columns: 1fr 1fr; row-gap: var(--space-4); } .season li:nth-child(3) { border-left: 0; padding-left: 0; } }

.report-quote { margin: 0; display: grid; gap: var(--space-3); }
.report-quote p { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 3vw, 30px); line-height: 1.2; color: var(--heading); }
.report-quote p + p { color: var(--leaf-text); }

/* ---------- Validate samples ---------- */
.samples { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid rgba(242,247,231,.35); }
.samples li { padding-top: var(--space-3); display: grid; gap: var(--space-2); justify-items: start; position: relative; }
.samples li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 999px; background: var(--leaf-soft); }
.samples .s-n { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #d7e2cc; font-weight: 600; }
.band .chip { background: transparent; color: var(--on-brand); border-color: rgba(242,247,231,.45); }
.band .chip.resolved { background: var(--leaf-soft); color: var(--surface-brand); border-color: var(--leaf-soft); }

/* ---------- Ionyx ---------- */
.result-col { display: grid; gap: var(--space-4); align-content: start; border-top: 3px solid var(--ionyx); padding-top: var(--space-6); }
.result-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.result-list li { font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 27px; color: var(--heading); padding-left: 22px; position: relative; }
.result-list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 10px; height: 10px; background: var(--ionyx); border-radius: 999px; }
.matrix { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px) minmax(0, 1fr); gap: var(--space-8); align-items: center; }
.matrix .fn { background: var(--ionyx-soft); border-radius: var(--radius-md); padding: var(--space-8) var(--space-6); display: grid; gap: var(--space-3); align-content: start; height: 100%; }
.matrix-art { display: grid; gap: var(--space-2); justify-items: center; text-align: center; }
@media (max-width: 900px) { .matrix { grid-template-columns: 1fr; } .matrix-art { order: -1; max-width: 240px; margin: 0 auto; } }
.layers { display: grid; gap: 6px; }
.layer { display: grid; grid-template-columns: minmax(0, 220px) 1fr; gap: var(--space-4); padding: var(--space-4) var(--space-4); background: var(--ionyx-soft); border-radius: var(--radius-sm); align-items: baseline; }
.layer b { color: var(--ionyx-text); font-weight: 700; }
.layer .grades { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.layer.alongside { background: var(--surface-sage); }
.layer.alongside b { color: var(--leaf-text); }
@media (max-width: 560px) { .layer { grid-template-columns: 1fr; gap: 4px; } }
.methods { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(169,103,36,.25); border: 1px solid rgba(169,103,36,.25); }
.methods li { background: var(--surface-raised); padding: var(--space-6); display: grid; gap: var(--space-2); align-content: start; }
.methods b { font-family: var(--font-display); font-size: 20px; line-height: 26px; color: var(--heading); }
.methods span { font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.methods li:last-child { grid-column: span 2; background: var(--ionyx-soft); }
@media (max-width: 900px) { .methods { grid-template-columns: 1fr 1fr; } .methods li:last-child { grid-column: span 2; } }
@media (max-width: 480px) { .methods { grid-template-columns: 1fr; } .methods li:last-child { grid-column: auto; } }

/* =====================================================================
   Round 2: editorial, scroll-driven layer
   ===================================================================== */
:root { --soil: #ebe3d1; --soil-deep: #ddd2ba; --root: #a68f68; }

/* ---------- Depth rail ---------- */
.depth-rail { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 15; display: none; width: 150px; font-size: 11px; line-height: 14px; }
@media (min-width: 1560px) { .depth-rail { display: block; } }
.depth-rail .rail-readout { display: block; text-align: right; font-weight: 700; letter-spacing: .08em; color: var(--heading); font-variant-numeric: tabular-nums; margin-bottom: 6px; }
.depth-rail .rail-track { position: absolute; right: 0; top: 22px; bottom: 0; width: 10px; background: repeating-linear-gradient(to bottom, var(--ink-muted) 0 1px, transparent 1px 12px); opacity: .5; }
.depth-rail .rail-marker { position: absolute; right: -3px; width: 16px; height: 3px; background: var(--leaf); transition: top .15s linear; }
.depth-rail ol { list-style: none; margin: 0; padding: 0 22px 0 0; display: grid; gap: 10px; text-align: right; }
.depth-rail a { color: var(--ink-muted); text-decoration: none; opacity: .55; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.depth-rail a.on, .depth-rail a:hover { opacity: 1; color: var(--heading); }

/* ---------- Full-bleed hero ---------- */
.hero-full { position: relative; min-height: min(84vh, 780px); display: grid; align-items: end; color: var(--on-brand); overflow: hidden; background: var(--surface-brand); }
.hero-full > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-full::before { content: ""; position: absolute; inset: 0; background: var(--surface-brand); mix-blend-mode: multiply; opacity: .42; z-index: 1; }
.hero-full::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: linear-gradient(to top, rgba(20,34,25,.85), rgba(20,34,25,0)); z-index: 1; }
.hero-full .wrap { position: relative; z-index: 2; padding-top: 120px; padding-bottom: var(--space-16); display: grid; gap: var(--space-6); }
.mega { font-family: var(--font-display); font-weight: 700; color: var(--on-brand); font-size: clamp(42px, 6.6vw, 104px); line-height: .94; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
.mega .soft { color: var(--leaf-soft); }
.hero-full .hook { font-family: var(--font-display); font-size: clamp(18px, 2vw, 24px); color: var(--sun); margin: 0; max-width: 28ch; }
.hero-full .lead { color: var(--on-brand); max-width: 38em; }
.hero-full .btn-primary { background: var(--on-brand); color: var(--surface-brand); }
.hero-full .btn-secondary { color: var(--on-brand); border-color: rgba(242,247,231,.6); }
.hero-full .btn-secondary:hover { background: rgba(242,247,231,.1); color: #fff; }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-6); align-items: end; border-top: 1px solid rgba(242,247,231,.3); padding-top: var(--space-6); }
.hero-meta .facts { display: flex; gap: var(--space-8); flex-wrap: wrap; font-size: 13px; line-height: 18px; color: #d7e2cc; }
.hero-meta .facts b { display: block; font-family: var(--font-display); font-size: 22px; line-height: 28px; color: var(--on-brand); }

/* ---------- Scrollytelling: sticky soil profile + steps ---------- */
.scrolly { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-12); align-items: start; }
.scrolly .figure { position: sticky; top: 96px; height: calc(100vh - 128px); max-height: 760px; display: grid; align-content: center; gap: var(--space-3); }
.scrolly .figure svg { width: 100%; height: auto; max-height: 100%; }
.scrolly .steps-col { padding: 18vh 0 30vh; display: grid; gap: 38vh; }
.scrolly .step { max-width: 30em; opacity: .28; transition: opacity .4s; display: grid; gap: var(--space-3); }
.scrolly .step.active { opacity: 1; }
.scrolly .step .kicker { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--leaf-text); letter-spacing: .02em; }
.scrolly .step h3 { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; }
.scrolly .step .big { font-family: var(--font-sans); font-weight: 700; font-size: clamp(44px, 5vw, 64px); line-height: 1; letter-spacing: -.02em; color: var(--heading); font-variant-numeric: tabular-nums; }
.scrolly .step .big.water { color: var(--water-text); }
.scrolly .step .big small { display: block; margin-top: 8px; font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--ink-muted); margin-left: 6px; }
.scene-caption { font-size: 12px; line-height: 16px; color: var(--ink-muted); }
@media (max-width: 900px) {
  .scrolly { grid-template-columns: 1fr; gap: 0; }
  .scrolly .figure { top: 64px; height: auto; max-height: none; background: var(--surface); z-index: 3; padding: var(--space-2) 0; border-bottom: 1px solid var(--line); }
  .scrolly .figure svg { max-height: 40vh; }
  .scrolly .steps-col { padding: 8vh 0 20vh; gap: 46vh; }
  .scrolly .step { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .scrolly .step { opacity: 1; } }

.soil-scene .soil { fill: var(--soil); }
.soil-scene .specks circle { fill: #b9ab8c; opacity: .45; }
.soil-scene .horizon { stroke: #cbbd9e; stroke-width: 1; stroke-dasharray: 2 6; }
.soil-scene .grains polygon { fill: #c9bfa9; transition: fill .6s; }
.soil-scene .roots path { fill: none; stroke: var(--root); stroke-width: 2.4; stroke-linecap: round; opacity: .75; }
.soil-scene .surface { stroke: var(--heading); stroke-width: 2; }
.soil-scene .plant path { fill: none; stroke: var(--leaf); stroke-width: 6; stroke-linecap: round; }
.soil-scene .plant .stem { stroke-width: 7; }
.soil-scene .drops path { fill: var(--water); opacity: 0; transition: opacity .6s; }
.soil-scene .drops line { stroke: var(--water); stroke-width: 3; opacity: 0; transition: opacity .6s; }
.soil-scene .water-tint { fill: var(--water); opacity: 0; transition: opacity .8s; }
.soil-scene .particles circle { transition: transform 1.1s cubic-bezier(.6,.05,.25,1), fill .6s, r .6s, opacity .6s; fill: var(--leaf); stroke: #fff; stroke-width: 1.5; }
.soil-scene .particles circle.held { fill: #8c7f63; stroke: none; r: 4.5; opacity: .85; }
.soil-scene .particles circle.avail { fill: var(--leaf); }
.soil-scene .particles circle.work { fill: var(--leaf-text); r: 7; }
.soil-scene .particles circle.parked { fill: #b9c9a3; r: 5; }
.soil-scene .lbl { opacity: 0; transition: opacity .5s; }
.soil-scene .lbl text { font: 600 13px/1 var(--font-sans); fill: var(--heading); letter-spacing: .02em; }
.soil-scene .lbl line { stroke: var(--heading); stroke-width: 1; }
.soil-scene .l-water text { fill: var(--water-text); }
.soil-scene .l-held text { fill: #6b5f47; }
.soil-scene .l-held line { stroke: #6b5f47; }
.soil-scene .l-root { opacity: 1; }
.soil-scene .l-root text { fill: #8a7a5c; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.soil-scene[data-state="applied"] .l-applied,
.soil-scene[data-state="water"] .l-water, .soil-scene[data-state="cost"] .l-water,
.soil-scene[data-state="water"] .l-held, .soil-scene[data-state="cost"] .l-held,
.soil-scene[data-state="stem"] .l-into,
.soil-scene[data-state="use"] .l-new, .soil-scene[data-state="use"] .l-old { opacity: 1; }
.soil-scene:is([data-state="water"],[data-state="cost"],[data-state="stem"],[data-state="use"]) .drops path,
.soil-scene:is([data-state="water"],[data-state="cost"],[data-state="stem"],[data-state="use"]) .drops line { opacity: .9; }
.soil-scene:is([data-state="water"],[data-state="cost"]) .water-tint { opacity: .12; }
.soil-scene:is([data-state="water"],[data-state="cost"]) .grains polygon { fill: #b3a68a; }
.soil-scene[data-state="use"] .plant .young { stroke: var(--leaf-text); }
@media (prefers-reduced-motion: reduce) { .soil-scene .particles circle { transition: none; } }

/* ---------- Giant water number ---------- */
.water-moment { background: var(--water-soft); overflow: hidden; }
.water-moment .giant-row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-8); align-items: end; }
.giant { font-family: var(--font-sans); font-weight: 700; color: var(--water-text); font-size: clamp(120px, 24vw, 340px); line-height: .8; letter-spacing: -.06em; font-variant-numeric: tabular-nums; margin: 0 0 0 -.05em; }
.giant sup { font-size: .38em; vertical-align: top; letter-spacing: 0; position: relative; top: .14em; margin-left: .02em; }
.giant-k { font-family: var(--font-sans); font-weight: 700; color: var(--water); font-size: clamp(64px, 10vw, 140px); line-height: .85; letter-spacing: -.05em; }
.water-moment .label { font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 26px); line-height: 1.25; color: var(--heading); max-width: 18em; }
@media (max-width: 900px) { .water-moment .giant-row { grid-template-columns: 1fr; } }
[data-grow] .bar { transition: width 1.4s cubic-bezier(.6,.05,.25,1); }
[data-grow].pre .bar { width: 0 !important; }
[data-grow] .marker { transition: left 1.2s cubic-bezier(.6,.05,.25,1); }
[data-grow].pre .marker.water { left: 12.5% !important; }

/* ---------- Poster quote ---------- */
.poster { background: var(--surface-brand); color: var(--on-brand); position: relative; overflow: hidden; }
.poster .wrap { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--space-12); align-items: end; padding-top: var(--space-24); padding-bottom: var(--space-24); }
.poster blockquote { margin: 0; }
.poster blockquote p { font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 6.4vw, 92px); line-height: 1; letter-spacing: -.02em; color: var(--on-brand); text-wrap: balance; }
.poster blockquote p .q { color: var(--leaf-soft); }
.poster .src { display: flex; gap: var(--space-3); align-items: center; margin-top: var(--space-8); flex-wrap: wrap; }
.poster .src .tag { background: transparent; color: var(--leaf-soft); border-color: rgba(171,210,135,.6); }
.poster .src span.c { font-size: 13px; color: #d7e2cc; }
.poster .side { display: grid; gap: var(--space-4); color: #d7e2cc; }
.poster .side h2 { color: var(--on-brand); font-size: 24px; line-height: 30px; }
.poster .side ol { margin: 0; padding: 0; list-style: none; counter-reset: q; display: grid; gap: var(--space-3); }
.poster .side li { counter-increment: q; display: grid; grid-template-columns: 28px 1fr; gap: var(--space-2); border-top: 1px solid rgba(242,247,231,.18); padding-top: var(--space-3); }
.poster .side li::before { content: counter(q); font-family: var(--font-display); font-weight: 700; color: var(--leaf-soft); }
.poster .rings-bg { position: absolute; right: -180px; top: -180px; width: 560px; height: 560px; opacity: .14; pointer-events: none; }
@media (max-width: 900px) { .poster .wrap { grid-template-columns: 1fr; padding-top: var(--space-16); padding-bottom: var(--space-16); } }

/* ---------- Split panels: Functional Agronomy | Ionyx ---------- */
.split { display: flex; min-height: 560px; }
.split-side { flex: 1; position: relative; overflow: hidden; padding: var(--space-16) var(--space-12); display: grid; align-content: space-between; gap: var(--space-8); text-decoration: none; transition: flex-grow .6s cubic-bezier(.6,.05,.25,1); }
.split[data-open="fa"] .split-side[data-side="fa"], .split[data-open="io"] .split-side[data-side="io"] { flex-grow: 1.45; }
.split-side.fa { background: var(--surface-brand); color: var(--on-brand); }
.split-side.io { background: var(--ionyx-soft); color: var(--ink); }
.split-side .big-word { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 4.2vw, 60px); line-height: .98; letter-spacing: -.02em; margin: 0; }
.split-side.fa .big-word { color: var(--on-brand); }
.split-side.io .big-word { color: var(--ionyx-text); }
.split-side .what { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
.split-side.fa .what { color: var(--leaf-soft); }
.split-side.io .what { color: var(--ionyx-text); }
.split-side .body { max-width: 30em; font-size: 17px; line-height: 27px; }
.split-side.fa .body { color: #e3ecd7; }
.split-side .go { font-weight: 600; display: inline-flex; gap: 10px; align-items: center; }
.split-side.fa .go { color: var(--on-brand); }
.split-side.io .go { color: var(--ionyx-text); }
.split-side .go .arrow { transition: transform .2s; }
.split-side:hover .go .arrow, .split-side:focus-visible .go .arrow { transform: translateX(6px); }
.split-side .art { position: absolute; right: -60px; bottom: -60px; width: 340px; height: 340px; opacity: .9; pointer-events: none; }
.split-side .copy { position: relative; z-index: 1; display: grid; gap: var(--space-4); max-width: 34em; }
.split-side:focus-visible { outline: 3px solid var(--sun); outline-offset: -6px; }
@media (max-width: 900px) { .split { flex-direction: column; } .split-side { padding: var(--space-12) var(--gutter); min-height: 420px; } }

/* ---------- Season filmstrip ---------- */
.filmstrip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: var(--space-4); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--space-4); scrollbar-width: thin; }
.frame { position: relative; aspect-ratio: 3 / 4; overflow: hidden; scroll-snap-align: start; background: var(--line); margin: 0; }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s; }
.frame:hover img { transform: scale(1.04); }
.frame figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--space-6); background: linear-gradient(to top, rgba(20,34,25,.92), rgba(20,34,25,0)); color: var(--on-brand); display: grid; gap: 6px; }
.frame .when { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--leaf-soft); }
.frame .mcv-w { font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1; }
.frame .d { font-size: 14px; line-height: 20px; color: #e3ecd7; }
.frame .n { position: absolute; top: var(--space-4); left: var(--space-4); font: 700 13px/1 var(--font-sans); color: #fff; background: rgba(20,34,25,.6); padding: 6px 8px; border-radius: var(--radius-sm); letter-spacing: .08em; }
@media (prefers-reduced-motion: reduce) { .frame img { transition: none; } }

/* ---------- Year collage ---------- */
.year-wrap { position: relative; }
.year-outline { font-family: var(--font-display); font-weight: 700; font-size: clamp(100px, 15vw, 220px); line-height: .8; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 2px var(--leaf); margin: 0; user-select: none; }
.collage { position: relative; min-height: 520px; }
.collage figure { position: absolute; margin: 0; background: #fff; padding: 10px 10px 34px; border: 1px solid var(--line); }
.collage figure img { width: 100%; height: auto; display: block; }
.collage figure figcaption { position: absolute; left: 12px; bottom: 10px; font-size: 12px; color: var(--ink-muted); }
.collage .c1 { width: 62%; left: 0; top: 30px; transform: rotate(-2.2deg); }
.collage .c2 { width: 54%; right: 0; top: 230px; transform: rotate(1.8deg); }
@media (max-width: 900px) { .collage { min-height: 0; display: grid; gap: var(--space-6); } .collage figure { position: static; width: 100% !important; transform: none !important; } }

/* ---------- Face-off: same soil test, different story ---------- */
.faceoff { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--space-8); align-items: stretch; }
.faceoff .side { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-8); display: grid; gap: var(--space-4); align-content: start; }
.faceoff .num { font-family: var(--font-sans); font-weight: 700; font-size: clamp(88px, 12vw, 168px); line-height: .85; letter-spacing: -.05em; color: var(--heading); font-variant-numeric: tabular-nums; }
.faceoff .num small { font-size: 18px; letter-spacing: 0; font-weight: 600; color: var(--ink-muted); margin-left: 8px; }
.faceoff .vs { align-self: center; font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--ink-muted); }
@media (max-width: 760px) { .faceoff { grid-template-columns: 1fr; } .faceoff .vs { justify-self: center; } }

/* ---------- Ionyx: ledger of results ---------- */
.ledger { border-top: 2px solid var(--ionyx); }
.ledger-row { display: grid; grid-template-columns: 180px 64px minmax(0, 1fr); gap: var(--space-6); padding: var(--space-6) 0; border-bottom: 1px solid rgba(169,103,36,.25); align-items: baseline; transition: background .3s; }
.ledger-row:hover { background: rgba(255,255,255,.5); }
.ledger-row .where { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--ionyx-text); }
.ledger-row .i { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--ionyx); }
.ledger-row p { font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.3; color: var(--heading); }
.ledger-row.lead p { font-size: clamp(24px, 3vw, 34px); line-height: 1.2; }
@media (max-width: 760px) { .ledger-row { grid-template-columns: 1fr; gap: var(--space-2); } }

/* ---------- Ionyx Matrix, interactive ---------- */
.matrix .fn { cursor: default; transition: background .3s, box-shadow .3s; }
.matrix .fn:focus-visible { outline: 2px solid var(--ionyx-text); }
.matrix[data-hot="rc"] .fn[data-fn="rc"], .matrix[data-hot="pn"] .fn[data-fn="pn"] { background: #f1dfc8; box-shadow: inset 0 3px 0 var(--ionyx); }
.matrix svg .side-rc, .matrix svg .side-pn { transition: opacity .4s; }
.matrix[data-hot="rc"] svg .side-pn, .matrix[data-hot="pn"] svg .side-rc { opacity: .18; }

/* ---------- Ionyx program stack ---------- */
.stack3d { display: grid; gap: 0; perspective: 1200px; }
.stack3d .lay { display: grid; grid-template-columns: minmax(0, 230px) 1fr; gap: var(--space-6); align-items: baseline; padding: var(--space-6) var(--space-6); background: var(--ionyx-soft); border: 1px solid rgba(169,103,36,.28); margin-left: calc(var(--i) * 28px); margin-top: -1px; transition: margin-left .4s, background .3s; }
.stack3d .lay:hover { background: #f1dfc8; margin-left: calc(var(--i) * 28px + 8px); }
.stack3d .lay b { font-family: var(--font-display); font-size: 20px; line-height: 26px; color: var(--ionyx-text); }
.stack3d .lay .grades { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 17px; color: var(--ink); letter-spacing: .02em; }
.stack3d .lay.alongside { background: var(--surface-sage); border-color: #c9d8b4; border-style: dashed; }
.stack3d .lay.alongside b { color: var(--leaf-text); }
@media (max-width: 600px) { .stack3d .lay { grid-template-columns: 1fr; gap: 4px; margin-left: 0 !important; } }

/* ---------- Ionyx application methods row ---------- */
.method-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; border-top: 1px solid rgba(169,103,36,.35); border-bottom: 1px solid rgba(169,103,36,.35); }
.method { scroll-snap-align: start; padding: var(--space-6); display: grid; gap: var(--space-3); align-content: start; border-right: 1px solid rgba(169,103,36,.25); min-height: 300px; transition: background .3s; }
.method:hover { background: var(--surface-raised); }
.method svg { width: 100%; height: 110px; }
.method svg .g { fill: none; stroke: var(--heading); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.method svg .s { fill: var(--soil-deep); }
.method svg .x { fill: var(--ionyx); }
.method svg .w { fill: var(--water); }
.method svg .c { fill: none; stroke: var(--leaf); stroke-width: 3; stroke-linecap: round; }
.method b { font-family: var(--font-display); font-size: 22px; line-height: 26px; color: var(--heading); }
.method span { font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.method .n { font: 700 12px/1 var(--font-sans); letter-spacing: .14em; color: var(--ionyx-text); }

/* ---------- Big hub hero (rings bleeding off the edge) ---------- */
.hub-hero { position: relative; overflow: hidden; background: var(--surface-brand); color: var(--on-brand); }
.hub-hero .wrap { position: relative; z-index: 2; padding-top: var(--space-24); padding-bottom: var(--space-24); display: grid; gap: var(--space-6); max-width: var(--wrap); }
.hub-hero .copy { max-width: 760px; display: grid; gap: var(--space-6); }
.hub-hero .eyebrow { color: var(--leaf-soft); }
.hub-hero .lead { color: var(--on-brand); max-width: 36em; }
.hub-hero .rings { position: absolute; right: -14vw; top: 50%; transform: translateY(-50%); width: min(78vw, 900px); height: auto; z-index: 1; }
.hub-hero .btn-primary { background: var(--on-brand); color: var(--surface-brand); }
.hub-hero .btn-secondary { color: var(--on-brand); border-color: rgba(242,247,231,.55); }
@media (max-width: 900px) { .hub-hero .rings { opacity: .35; right: -40vw; width: 120vw; } }

/* ---------- Big chain ---------- */
.chain-big { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 3px solid var(--heading); }
.chain-big > div { padding: var(--space-6) var(--space-4) 0 0; display: grid; gap: var(--space-2); align-content: start; position: relative; }
.chain-big > div + div { padding-left: var(--space-4); border-left: 1px solid var(--line); }
.chain-big .k { font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.1; color: var(--heading); }
.chain-big .k.water { color: var(--water-text); }
.chain-big .k.dark { color: var(--surface-brand); text-decoration: underline; text-decoration-color: var(--leaf); text-decoration-thickness: 4px; text-underline-offset: 6px; }
.chain-big small { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.chain-big .tick { position: absolute; top: -8px; left: 0; width: 13px; height: 13px; border-radius: 99px; background: var(--leaf); }
.chain-big > div + div .tick { left: calc(var(--space-4) * -1 - 7px); }
.chain-big .tick.water { background: var(--water); }
@media (max-width: 900px) { .chain-big { grid-template-columns: 1fr 1fr 1fr; row-gap: var(--space-6); } .chain-big > div:nth-child(4) { border-left: 0; padding-left: 0; } .chain-big > div:nth-child(4) .tick { left: 0; } }
@media (max-width: 480px) { .chain-big { grid-template-columns: 1fr 1fr; } }
.samples.light { border-top-color: var(--line); }
.samples.light .s-n { color: var(--ink-muted); }
.samples.light li::before { background: var(--leaf); }
.hero-full.io::before { opacity: .5; }
.hero-full .eyebrow { color: #e09a52; }
.pan { background: var(--surface-brand); color: var(--on-brand); }
.pan .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-12); align-items: end; padding-top: var(--space-24); padding-bottom: var(--space-24); }
.pan .mega { font-size: clamp(44px, 6.4vw, 92px); }
.pan .eyebrow { color: #e09a52; }
.pan p { color: #e3ecd7; }
.pan .text-link.ionyx { color: #e09a52; }
@media (max-width: 900px) { .pan .wrap { grid-template-columns: 1fr; padding-top: var(--space-16); padding-bottom: var(--space-16); } }
@media (max-width: 900px) {
  .hero-full::after { height: 100%; background: linear-gradient(to top, rgba(20,34,25,.9) 0%, rgba(20,34,25,.55) 60%, rgba(20,34,25,.35) 100%); }
  .scrolly .scene-caption { display: none; }
}

/* ---------- Header, round 3: clean white bar ---------- */
.site-header { background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid #e3e4df; }
.site-header .wrap { min-height: 84px; gap: var(--space-8); max-width: 1320px; }
.brand img { width: 140px; }
.nav { justify-content: center; gap: clamp(18px, 2.4vw, 36px); }
.nav a { font-size: 14px; font-weight: 600; letter-spacing: .02em; color: #2f3431; padding: 30px 0 28px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--heading); border-bottom-color: #cfd3cd; }
.nav a[aria-current="page"] { color: var(--heading); border-bottom-color: var(--leaf); }
.header-actions { gap: var(--space-6); }
.login { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: #5f6461; }
.header-actions .cta { border-radius: 999px; padding: 12px 20px; background: var(--surface-brand); color: #fff; }
.header-actions .cta:hover { background: #1f3824; color: #fff; }
@media (max-width: 1100px) { .login { display: none; } }
@media (max-width: 1020px) { .site-header .wrap { min-height: 68px; } .brand img { width: 112px; } .site-header.open .login { display: inline-flex; } .site-header.open .nav a { padding: 14px 0; } }

/* ---------- Preview chip (preview only, not part of the theme) ---------- */
.review-chip { position: fixed; left: 16px; bottom: 16px; z-index: 40; display: flex; gap: 14px; align-items: center; background: #1d211f; color: #d9dcd7; font-size: 12px; line-height: 16px; padding: 10px 16px; border-radius: 999px; box-shadow: 0 4px 18px rgba(0,0,0,.18); }
.review-chip strong { color: var(--sun); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; }
.review-chip a { color: #fff; text-decoration: none; opacity: .7; }
.review-chip a:hover, .review-chip a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { .review-chip { left: 8px; right: 8px; bottom: 8px; justify-content: center; gap: 10px; } }
.nav a { white-space: nowrap; }
