/*
Theme Name: Turnkey Clarity
Theme URI: https://turnkeywaterbottlingplant.com/
Author: Allot Tech (Suzhou) Co., Ltd.
Description: Independent project-delivery theme for turnkey water bottling plant buyers.
Version: 1.1.0
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: turnkey-clarity
*/

:root {
  --ink: #152522;
  --ink-soft: #31443f;
  --forest: #0c5f55;
  --forest-dark: #073d38;
  --mint: #58d2b6;
  --mint-pale: #dff6ee;
  --amber: #f2b84b;
  --amber-dark: #be7615;
  --bone: #f4f1e8;
  --paper: #fffdf8;
  --line: #ccd8d2;
  --muted: #667670;
  --danger: #a93c2d;
  --shadow: 0 22px 60px rgba(14, 45, 39, .12);
  --radius: 1.2rem;
  --wrap: 94vw;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
a { color: var(--forest); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--amber-dark); }
img, svg { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button, .button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

.wrap { width: var(--wrap); margin-inline: auto; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 9999; padding: .8rem 1rem; background: var(--ink); color: white; }
.skip-link:focus { top: 1rem; }
.utility-bar { background: var(--forest-dark); color: white; font-size: .82rem; letter-spacing: .01em; }
.utility-bar .wrap { min-height: 2.45rem; display: flex; gap: 1.1rem; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.utility-bar a { color: white; text-decoration: none; }
.utility-bar a:hover { color: var(--mint); }
.utility-note { margin-right: auto; color: #bfe4d9; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 253, 248, .94); border-bottom: 1px solid rgba(204, 216, 210, .85); backdrop-filter: blur(16px); }
.nav-shell { min-height: 5.2rem; display: flex; align-items: center; gap: 1.4rem; }
.brand { display: inline-flex; align-items: center; gap: .85rem; color: var(--ink); text-decoration: none; min-width: 245px; }
.brand-mark { position: relative; display: grid; place-items: center; width: 2.7rem; aspect-ratio: 1; background: var(--forest); border-radius: .7rem; overflow: hidden; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; border: 2px solid var(--mint); border-radius: 50%; width: 1.65rem; height: .68rem; }
.brand-mark::before { transform: rotate(32deg); }
.brand-mark::after { transform: rotate(-32deg); }
.brand-copy strong, .brand-copy small { display: block; }
.brand-copy strong { font-size: .9rem; letter-spacing: .13em; }
.brand-copy small { color: var(--muted); font-size: .68rem; letter-spacing: .05em; }
.site-nav { margin-left: auto; }
.menu, .site-nav ul { display: flex; align-items: center; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.site-nav a { display: block; padding: .72rem .72rem; color: var(--ink); font-size: .9rem; font-weight: 650; text-decoration: none; border-radius: .65rem; }
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--forest); background: var(--mint-pale); }
.nav-cta { white-space: nowrap; }
.menu-toggle { display: none; margin-left: auto; border: 1px solid var(--line); background: white; color: var(--ink); padding: .65rem .8rem; border-radius: .6rem; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 3.1rem; padding: .8rem 1.2rem; border: 1px solid transparent; border-radius: .7rem; background: var(--forest); color: white; font-weight: 760; text-decoration: none; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.button:hover { color: white; background: var(--forest-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(7, 61, 56, .18); }
.button--amber { background: var(--amber); color: var(--ink); }
.button--amber:hover { background: #ffd16f; color: var(--ink); }
.button--ghost { background: transparent; border-color: currentColor; color: var(--forest); }
.button--ghost:hover { color: white; }
.hero .button--ghost { color: white; }
.hero .button--ghost:hover { background: white; color: var(--forest-dark); }
.button--small { min-height: 2.55rem; padding: .55rem .85rem; font-size: .86rem; }

.hero { position: relative; overflow: hidden; background: linear-gradient(120deg, #092f2b 0%, #0b554c 55%, #0d6b5d 100%); color: white; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .19; background-image: linear-gradient(rgba(255,255,255,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.25) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to right, transparent, black); }
.hero-grid { position: relative; min-height: 700px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 3rem; padding-block: 6.5rem 5.2rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1rem; color: var(--amber); font-size: .77rem; line-height: 1.2; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 2.4rem; height: 2px; background: currentColor; }
.hero h1, .page-hero h1 { margin: 0; max-width: 12ch; font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: clamp(3.1rem, 6.8vw, 6.7rem); line-height: .92; letter-spacing: -.055em; text-wrap: balance; }
.hero h1 em { color: var(--mint); font-style: normal; }
.hero-lede { max-width: 62ch; margin: 1.7rem 0 0; color: #d9eee8; font-size: 1.12rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; margin: 2.5rem 0 0; padding: 0; list-style: none; }
.hero-proof li { padding-top: .8rem; border-top: 1px solid rgba(255,255,255,.28); color: #cae3dc; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.hero-visual { position: relative; }
.plant-panel { padding: 1.25rem; border: 1px solid rgba(255,255,255,.24); border-radius: 1.5rem; background: rgba(4, 29, 26, .44); box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.plant-panel__label { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; color: #d2eae3; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.plant-schematic { width: 100%; min-height: 390px; }
.plant-note { display: flex; gap: .7rem; align-items: center; margin-top: .8rem; color: #c7dfd8; font-size: .75rem; }
.plant-note::before { content: "i"; display: grid; place-items: center; width: 1.35rem; height: 1.35rem; flex: 0 0 auto; border: 1px solid var(--mint); border-radius: 50%; color: var(--mint); font-weight: 800; }

.section { padding-block: clamp(4.3rem, 8vw, 8rem); }
.section--bone { background: var(--bone); }
.section--dark { background: var(--ink); color: white; }
.section--forest { background: var(--forest-dark); color: white; }
.section-head { display: grid; grid-template-columns: .72fr 1.28fr; gap: 2rem; align-items: end; margin-bottom: 3rem; }
.section-head > div:last-child { max-width: 64ch; justify-self: end; }
.section h2, .content-section h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.2rem, 4.5vw, 4.3rem); font-weight: 500; line-height: 1.02; letter-spacing: -.04em; text-wrap: balance; }
.section-head p { margin: 0; color: var(--muted); }
.section--dark .section-head p, .section--forest .section-head p { color: #bdd6cf; }
.kicker { color: var(--forest); font-size: .75rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.section--dark .kicker, .section--forest .kicker { color: var(--mint); }

.problem-section { background: #edf5f1; }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.problem-card { display: flex; flex-direction: column; min-height: 22rem; padding: 1.55rem; border: 1px solid #b9cec5; border-radius: var(--radius); background: var(--paper); box-shadow: 0 12px 34px rgba(14, 45, 39, .07); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.problem-card:hover { transform: translateY(-4px); border-color: var(--forest); box-shadow: 0 18px 42px rgba(14, 45, 39, .12); }
.problem-card__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.problem-card__top span { display: grid; place-items: center; width: 2.35rem; aspect-ratio: 1; border-radius: 50%; background: var(--forest); color: white; font-size: .72rem; font-weight: 850; }
.problem-card__top strong { color: var(--forest); font-size: .7rem; letter-spacing: .1em; text-align: right; text-transform: uppercase; }
.problem-card h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; font-weight: 500; line-height: 1.15; }
.problem-card p { margin: 1rem 0 1.4rem; color: var(--muted); font-size: .9rem; }
.problem-card a { margin-top: auto; color: var(--forest-dark); font-size: .84rem; font-weight: 800; text-decoration: none; }
.problem-card a:hover { color: var(--amber-dark); }
.problem-cta { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-top: 1.2rem; padding: 1.2rem 1.4rem; border-radius: 1rem; background: var(--forest-dark); color: white; }
.problem-cta p { max-width: 72ch; margin: 0; color: #d3e8e2; }
.problem-cta strong { color: white; }
.problem-cta .button { flex: 0 0 auto; }

.pillar-grid, .card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.pillar, .card { position: relative; min-height: 100%; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.pillar { padding-top: 4.4rem; }
.pillar::before { content: attr(data-index); position: absolute; left: 1.5rem; top: 1.2rem; color: var(--forest); font-family: Georgia, serif; font-size: 2rem; }
.pillar h3, .card h3 { margin: 0 0 .65rem; font-size: 1.08rem; line-height: 1.25; }
.pillar p, .card p { margin: 0; color: var(--muted); font-size: .9rem; }
.pillar ul, .card ul { margin: .8rem 0 0; padding-left: 1.2rem; color: var(--ink-soft); font-size: .88rem; }
.card--dark { border-color: #40514d; background: #21332f; color: white; }
.card--dark p, .card--dark ul { color: #bdd0ca; }
.card__icon { display: grid; place-items: center; width: 2.7rem; aspect-ratio: 1; margin-bottom: 1.1rem; border-radius: .7rem; background: var(--mint-pale); color: var(--forest); font-weight: 850; }

.delivery-map { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: .8rem; margin-top: 2rem; }
.delivery-map::before { content: ""; position: absolute; left: 8%; right: 8%; top: 2rem; height: 2px; background: linear-gradient(90deg, var(--mint), var(--amber)); opacity: .5; }
.delivery-step { position: relative; z-index: 1; min-height: 8.4rem; padding: 1rem; border: 1px solid #46605a; border-radius: .85rem; background: #1e312d; color: white; text-align: left; }
.delivery-step:hover, .delivery-step[aria-expanded="true"] { border-color: var(--mint); background: #27443e; transform: translateY(-2px); }
.delivery-step strong { display: block; margin-bottom: .35rem; color: var(--mint); font-size: .69rem; letter-spacing: .1em; }
.delivery-step span { display: block; font-weight: 740; line-height: 1.25; }
.delivery-step small { display: none; margin-top: .55rem; color: #c9ddd7; line-height: 1.35; }
.delivery-step[aria-expanded="true"] small { display: block; }

.matrix-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.scope-matrix { width: 100%; min-width: 780px; border-collapse: collapse; }
.scope-matrix th, .scope-matrix td { padding: 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.scope-matrix th { background: #edf5f1; color: var(--forest-dark); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.scope-matrix tr:last-child td { border-bottom: 0; }
.status { display: inline-block; padding: .25rem .55rem; border-radius: 999px; background: var(--mint-pale); color: var(--forest-dark); font-size: .7rem; font-weight: 800; white-space: nowrap; }
.status--amber { background: #fff1ca; color: #81500c; }
.status--gray { background: #edf0ee; color: #54615d; }

.workstream-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .65rem; }
.workstream { min-height: 13rem; padding: 1rem; border-top: 4px solid var(--mint); background: white; box-shadow: 0 9px 30px rgba(14,45,39,.07); }
.workstream:nth-child(even) { border-top-color: var(--amber); }
.workstream strong { color: var(--forest); font-size: .7rem; letter-spacing: .12em; }
.workstream h3 { margin: .65rem 0; font-size: .92rem; line-height: 1.25; }
.workstream p { margin: 0; color: var(--muted); font-size: .74rem; line-height: 1.45; }

.system-flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: .7rem; align-items: stretch; }
.system-node { position: relative; padding: 1.25rem 1rem; border: 1px solid var(--line); border-radius: 1rem; background: white; }
.system-node:not(:last-child)::after { content: "\2192"; position: absolute; right: -.72rem; top: 50%; z-index: 2; display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--amber); color: var(--ink); font-weight: 900; transform: translateY(-50%); }
.system-node b { display: block; margin-bottom: .35rem; color: var(--forest); font-size: .73rem; letter-spacing: .08em; text-transform: uppercase; }
.system-node span { font-size: .86rem; line-height: 1.35; }
.reference-note { margin-top: 1.5rem; padding: 1rem 1.1rem; border-left: 3px solid var(--amber); background: #fff6df; color: #5e4b22; font-size: .85rem; }

.gate-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .55rem; counter-reset: gates; }
.gate { counter-increment: gates; min-height: 11rem; padding: 1rem; border: 1px solid #42534f; border-radius: .9rem; background: #20312e; }
.gate::before { content: "G" counter(gates); display: inline-grid; place-items: center; width: 2.3rem; height: 2.3rem; margin-bottom: 1rem; border: 1px solid var(--mint); border-radius: 50%; color: var(--mint); font-size: .72rem; font-weight: 850; }
.gate h3 { margin: 0 0 .5rem; font-size: .88rem; }
.gate p { margin: 0; color: #bcd1ca; font-size: .74rem; line-height: 1.45; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.compare-card { padding: 2rem; border-radius: var(--radius); background: white; border: 1px solid var(--line); }
.compare-card h3 { margin: 0 0 1rem; font-family: Georgia, serif; font-size: 2rem; font-weight: 500; }
.compare-card ul { padding-left: 1.2rem; }
.risk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.risk { padding: 1.35rem; border-left: 3px solid var(--amber); background: white; }
.risk h3 { margin: 0 0 .35rem; font-size: 1rem; }
.risk p { margin: 0; color: var(--muted); font-size: .85rem; }

.cta-panel { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center; padding: clamp(2rem, 6vw, 4.5rem); border-radius: 1.5rem; background: linear-gradient(120deg, var(--forest-dark), var(--forest)); color: white; box-shadow: var(--shadow); }
.cta-panel h2 { font-size: clamp(2.4rem, 5vw, 5rem); }
.cta-panel p { color: #d6eae4; }
.contact-stack { display: grid; gap: .6rem; }
.contact-stack a { display: block; padding: .9rem 1rem; border: 1px solid rgba(255,255,255,.25); border-radius: .7rem; color: white; text-decoration: none; }
.contact-stack a:hover { background: rgba(255,255,255,.1); color: var(--mint); }

.page-hero { padding-block: 6rem 4rem; background: var(--forest-dark); color: white; }
.page-hero h1 { max-width: 15ch; font-size: clamp(2.8rem, 6vw, 5.6rem); }
.page-hero .intro { max-width: 68ch; margin: 1.5rem 0 0; color: #cfe4de; font-size: 1.1rem; }
.breadcrumbs { margin-bottom: 2rem; color: #b6d0c9; font-size: .8rem; }
.breadcrumbs a { color: var(--mint); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 4rem; align-items: start; }
.article-main { min-width: 0; }
.article-aside { position: sticky; top: 7.8rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--bone); }
.article-aside strong { display: block; margin-bottom: .75rem; }
.article-aside a { display: block; padding: .45rem 0; border-bottom: 1px solid var(--line); font-size: .82rem; text-decoration: none; }
.article-aside a:last-child { border-bottom: 0; }
.guide-method { margin-top: 1rem; padding-top: 1rem; border-top: 2px solid var(--forest); }
.guide-method strong { margin-bottom: .35rem; color: var(--forest-dark); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; }
.guide-method p { margin: 0 0 .45rem; color: var(--muted); font-size: .73rem; line-height: 1.5; }
.guide-method a { color: var(--forest); font-weight: 750; }
.content-section { padding: 2.4rem 0; border-bottom: 1px solid var(--line); }
.content-section:first-child { padding-top: 0; }
.content-section h2 { margin-bottom: 1rem; font-size: clamp(1.8rem, 3.5vw, 3rem); }
.content-section h3 { margin-top: 1.5rem; }
.content-section p { max-width: 72ch; }
.content-section ul { max-width: 72ch; padding-left: 1.25rem; }
.content-section li + li { margin-top: .4rem; }
.answer-first-lede { font-size: 1.08rem; color: var(--ink-soft); }
.info-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin: 1.5rem 0; }
.info-band div { padding: 1rem; border-radius: .8rem; background: var(--mint-pale); }
.info-band strong, .info-band span { display: block; }
.info-band strong { color: var(--forest); font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; }
.info-band span { margin-top: .35rem; font-size: .88rem; }
.related-guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin: 1.5rem 0; }
.related-guides a { position: relative; display: flex; flex-direction: column; min-height: 8.7rem; padding: 1rem 2.4rem 1rem 1rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--bone); color: var(--ink); text-decoration: none; }
.related-guides a:hover { border-color: var(--forest); background: var(--mint-pale); color: var(--forest-dark); }
.related-guides span { color: var(--muted); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.related-guides strong { margin-top: .55rem; font-size: .88rem; line-height: 1.35; }
.related-guides b { position: absolute; right: 1rem; bottom: .8rem; color: var(--forest); }

.quote-tool { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.quote-tool__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 0; }
.quote-tool__row { display: contents; }
.quote-tool__row > * { padding: .65rem; border-bottom: 1px solid var(--line); }
.quote-tool__head > * { background: var(--mint-pale); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.quote-result { margin-top: 1rem; padding: 1rem; border-left: 3px solid var(--amber); background: #fff7e5; }

.wizard { margin-top: 2rem; }
.wizard-progress { display: grid; grid-template-columns: repeat(8, 1fr); gap: .25rem; margin-bottom: 1.5rem; }
.wizard-progress span { height: .35rem; border-radius: 999px; background: var(--line); }
.wizard-progress span.is-active { background: var(--forest); }
.wizard-step { display: none; padding: clamp(1.25rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.wizard-step.is-active { display: block; }
.wizard-step h2 { font-size: clamp(1.8rem, 4vw, 3.2rem); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1rem; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { display: block; margin-bottom: .38rem; color: var(--ink); font-size: .83rem; font-weight: 760; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea { width: 100%; min-height: 3rem; padding: .75rem .8rem; border: 1px solid #aebdb7; border-radius: .55rem; background: #fffefb; color: var(--ink); }
.field textarea { min-height: 8rem; resize: vertical; }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.choice { display: flex; gap: .55rem; align-items: flex-start; padding: .65rem .75rem; border: 1px solid var(--line); border-radius: .55rem; background: #fffefb; font-size: .82rem; }
.choice input { margin-top: .25rem; }
.wizard-actions { display: flex; justify-content: space-between; gap: .7rem; margin-top: 1.5rem; }
.form-note { color: var(--muted); font-size: .78rem; }
.form-status { padding: 1rem; border-radius: .8rem; background: var(--mint-pale); color: var(--forest-dark); }
.form-status--error { background: #fbe5e1; color: var(--danger); }
.hp-field { position: absolute !important; left: -9999px !important; opacity: 0 !important; }
.brief-summary { display: none; margin-top: 1.2rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--bone); }
.brief-summary.is-visible { display: block; }
.brief-summary dl { display: grid; grid-template-columns: 150px 1fr; gap: .4rem 1rem; }
.brief-summary dt { font-weight: 800; }
.brief-summary dd { margin: 0; }

.site-footer { padding-top: 4rem; background: #0d1e1b; color: #c4d6d1; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 2rem; padding-bottom: 3rem; }
.footer-grid h2 { margin: 0 0 .7rem; color: white; font-family: Georgia, serif; font-size: 1.7rem; font-weight: 500; }
.footer-grid h3 { margin: 0 0 .7rem; color: var(--mint); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-grid p, .footer-grid a { font-size: .8rem; }
.footer-grid a { display: block; padding: .3rem 0; color: #c4d6d1; text-decoration: none; }
.footer-grid a:hover { color: var(--amber); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.3rem; border-top: 1px solid #2b3c38; font-size: .74rem; }
.footer-bottom a { color: var(--mint); }

.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 4rem 1rem; }
.not-found h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(5rem, 16vw, 12rem); color: var(--forest); }

@media (max-width: 1050px) {
  .site-nav { position: absolute; inset: calc(100% + 1px) 0 auto; display: none; padding: 1rem; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.is-open { display: block; }
  .menu, .site-nav ul { align-items: stretch; flex-direction: column; }
  .menu-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { max-width: 720px; }
  .workstream-grid, .gate-grid { grid-template-columns: repeat(4, 1fr); }
  .system-flow { grid-template-columns: repeat(3, 1fr); }
  .system-node:nth-child(3)::after { display: none; }
  .footer-grid { grid-template-columns: 1.5fr repeat(2, 1fr); }
}

@media (max-width: 780px) {
  body.admin-bar .site-header { top: 46px; }
  .utility-note { display: none; }
  .utility-bar .wrap { justify-content: center; gap: .65rem; }
  .brand-copy small { display: none; }
  .brand { min-width: 0; }
  .nav-shell { min-height: 4.4rem; }
  .hero-grid { padding-block: 4.7rem 3.7rem; gap: 2rem; }
  .hero h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .hero-proof { grid-template-columns: 1fr; }
  .plant-schematic { min-height: 280px; }
  .section-head, .cta-panel, .article-layout { grid-template-columns: 1fr; }
  .section-head > div:last-child { justify-self: start; }
  .pillar-grid, .card-grid, .risk-grid, .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .delivery-map { grid-template-columns: repeat(2, 1fr); }
  .delivery-map::before { display: none; }
  .workstream-grid, .gate-grid { grid-template-columns: repeat(2, 1fr); }
  .system-flow { grid-template-columns: repeat(2, 1fr); }
  .system-node:nth-child(2n)::after { display: none; }
  .system-node:nth-child(3)::after { display: grid; }
  .split, .field-grid { grid-template-columns: 1fr; }
  .article-aside { position: static; order: -1; }
  .info-band { grid-template-columns: 1fr; }
  .related-guides { grid-template-columns: 1fr; }
  .related-guides a { min-height: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  :root { --wrap: calc(100% - 1.5rem); }
  body { font-size: 16px; }
  .utility-bar .wrap { font-size: .7rem; }
  .utility-bar a:nth-last-child(2) { display: none; }
  .hero-actions .button { width: 100%; }
  .pillar-grid, .card-grid, .risk-grid, .problem-grid, .delivery-map, .workstream-grid, .gate-grid, .system-flow, .choice-grid { grid-template-columns: 1fr; }
  .problem-card { min-height: auto; }
  .problem-cta { align-items: stretch; flex-direction: column; }
  .system-node::after { display: none !important; }
  .plant-panel { padding: .75rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .brief-summary dl { grid-template-columns: 1fr; }
  .brief-summary dd { margin-bottom: .6rem; }
}

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