@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Prata&display=swap');

:root {
  --ink: #171b18;
  --muted: #68716a;
  --paper: #f4f1e9;
  --card: #fffdf8;
  --line: #d8d5cc;
  --forest: #173e32;
  --forest-2: #235848;
  --sage: #b9c9b7;
  --acid: #d9ff65;
  --clay: #b86142;
  --stop: #a13c2c;
  --warning: #a56b12;
  --shadow: 0 24px 70px rgba(22, 35, 28, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Manrope", sans-serif; }
button, input, select { font: inherit; }
a { color: inherit; }

.topbar {
  height: 82px; padding: 0 clamp(22px, 4vw, 66px); display: flex; align-items: center; gap: 34px;
  border-bottom: 1px solid rgba(255,255,255,.13); background: var(--forest); color: white;
  position: relative; z-index: 5;
}
.brand { display: flex; align-items: center; gap: 13px; margin-right: auto; text-decoration: none; }
.brand > span:last-child { display: flex; flex-direction: column; }
.brand b { font-size: 20px; letter-spacing: .12em; }
.brand small { color: #b8cbc3; font-size: 9px; text-transform: uppercase; letter-spacing: .16em; }
.brand-mark { width: 35px; height: 35px; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; display: grid; place-content: center; gap: 3px; transform: rotate(-14deg); }
.brand-mark i { display: block; width: 18px; height: 2px; background: var(--acid); }
.brand-mark i:nth-child(2) { width: 11px; }
.topbar nav { display: flex; gap: 26px; }
.topbar nav a { color: #d6e1dc; text-decoration: none; font-size: 13px; }
.topbar nav a:hover { color: var(--acid); }
.version { padding: 8px 11px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: #bdcec7; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }

.hero {
  min-height: 590px; padding: 92px clamp(24px, 7vw, 120px); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 80px;
  background: linear-gradient(112deg, #092f26 0%, #174a3b 54%, #30594c 100%);
  color: white; overflow: hidden; position: relative;
}
.hero::before { content: ""; position: absolute; inset: 0; background: url("./assets/hero-gemini-building-v3.jpg") 57% 43% / cover no-repeat; opacity: .92; filter: saturate(.86) contrast(1.04); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,36,29,.97) 0%, rgba(6,36,29,.88) 42%, rgba(6,30,25,.23) 70%, rgba(6,30,25,.08) 100%); }
.hero-copy, .hero-proof { position: relative; z-index: 2; }
.eyebrow { display: block; margin-bottom: 18px; color: var(--clay); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .19em; }
.hero .eyebrow, .inverse .eyebrow { color: var(--acid); }
h1, h2 { margin: 0; font-family: "Prata", Georgia, serif; font-weight: 400; letter-spacing: -.025em; }
h1 { max-width: 900px; font-size: clamp(43px, 5.5vw, 78px); line-height: 1.07; }
h1 em { color: var(--acid); font-style: normal; }
.hero-copy > p { max-width: 740px; margin: 30px 0 0; color: #d5e1dc; font-size: 17px; line-height: 1.75; }
.brief-search { max-width: 860px; margin-top: 34px; padding: 8px; background: #fff; color: var(--ink); border-radius: 8px; box-shadow: 0 28px 70px rgba(0,0,0,.25); }
.action-switch { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; }
.action-switch button { padding: 9px 12px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); cursor: pointer; font-size: 10px; font-weight: 700; }
.action-switch button.active { background: var(--forest); color: white; }
.brief-search textarea { width: 100%; min-height: 112px; padding: 17px; resize: vertical; border: 0; border-top: 1px solid #e4e1d9; outline: none; color: var(--ink); font: 14px/1.65 "Manrope", sans-serif; }
.brief-search-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 8px; border-top: 1px solid #e4e1d9; }
.brief-search-footer small { max-width: 500px; padding-left: 8px; color: #858b86; font-size: 9px; line-height: 1.5; }
.brief-search-footer button { min-height: 43px; padding: 0 15px; border: 0; background: var(--acid); color: var(--forest); cursor: pointer; font-size: 11px; font-weight: 700; }
.brief-search-footer button b { margin-left: 8px; font-size: 17px; }
.brief-analysis { margin: 8px; padding: 16px; border: 1px solid #d7ded8; background: #f2f7f3; }
.brief-analysis-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.brief-analysis-grid div { padding: 10px; background: white; border: 1px solid #dde3de; }
.brief-analysis-grid span { display: block; color: var(--muted); font-size: 8px; text-transform: uppercase; }
.brief-analysis-grid b { display: block; margin-top: 5px; color: var(--forest); font-size: 11px; }
.brief-analysis p { margin: 12px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.analysis-continue { margin-top: 12px; padding: 10px 15px; border: 0; border-radius: 999px; background: var(--acid); color: var(--forest); font-weight: 800; cursor: pointer; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.button { min-height: 48px; padding: 0 19px; border: 0; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; font-size: 13px; font-weight: 700; }
.button.primary { background: var(--acid); color: #163529; }
.button.ghost { background: transparent; color: white; border: 1px solid rgba(255,255,255,.32); }
.button:hover { transform: translateY(-1px); }
.hero-proof { align-self: center; padding: 28px 30px; border: 1px solid rgba(255,255,255,.18); background: rgba(8,29,23,.28); backdrop-filter: blur(9px); }
.proof-line { display: grid; grid-template-columns: 35px 1fr auto; align-items: center; gap: 13px; padding: 17px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.proof-line:last-child { border: 0; }
.proof-line span { color: var(--acid); font-size: 11px; }
.proof-line b { font-family: "Prata", serif; font-weight: 400; }
.proof-line small { color: #aabdb5; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }

.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--card); border-bottom: 1px solid var(--line); }
.trust-strip div { min-height: 112px; padding: 25px 34px; display: flex; align-items: center; gap: 16px; border-right: 1px solid var(--line); }
.trust-strip div:last-child { border: 0; }
.trust-strip b { font-family: "Prata", serif; font-size: 29px; color: var(--forest); }
.trust-strip span { max-width: 150px; color: var(--muted); font-size: 11px; line-height: 1.5; text-transform: uppercase; letter-spacing: .05em; }

.dna-section { padding: 100px clamp(24px, 7vw, 120px); background: #111713; color: white; }
.dna-section .section-head { max-width: 900px; margin-left: 0; text-align: left; }
.dna-section .section-head p { margin-left: 0; color: #aebdb6; }
.dna-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dna-card { position: relative; min-height: 270px; padding: 22px; overflow: hidden; border: 1px solid rgba(255,255,255,.15); background: #1b241f; color: white; text-align: left; cursor: pointer; }
.dna-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 7px; background: linear-gradient(90deg, var(--dna-a), var(--dna-b), var(--dna-c)); }
.dna-card.selected { border-color: var(--acid); box-shadow: inset 0 0 0 1px var(--acid); }
.dna-card > span { color: var(--acid); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.dna-card h3 { margin: 18px 0 8px; font-family: "Prata", serif; font-size: 22px; font-weight: 400; }
.dna-card > p { margin: 0; color: #bcc9c3; font-size: 11px; line-height: 1.6; }
.dna-card small { display: block; margin-top: 17px; color: #82928a; font-size: 8px; line-height: 1.45; }
.dna-risks { margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); }
.dna-risks b { display: block; color: #e8c0aa; font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.dna-risks p { margin: 5px 0 0; color: #aebdb6; font-size: 9px; }

.projects-section { padding: 92px clamp(18px, 4vw, 64px); background: #e9e6de; border-bottom: 1px solid var(--line); }
.project-gallery { max-width: 1520px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.project-card { min-height: 245px; padding: 24px; border: 1px solid #cbc8bd; background: var(--card); color: var(--ink); text-align: left; cursor: pointer; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.project-card:hover { transform: translateY(-3px); box-shadow: 0 18px 45px rgba(22,35,28,.1); border-color: var(--forest-2); }
.project-card > span { color: var(--clay); font-size: 10px; font-weight: 700; letter-spacing: .15em; }
.project-card small { margin-top: 24px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.project-card b { margin-top: 8px; font-family: "Prata", serif; color: var(--forest); font-size: 22px; font-weight: 400; }
.project-card p { margin: 12px 0 18px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.project-card i { margin-top: auto; color: var(--forest-2); font-size: 10px; font-style: normal; font-weight: 700; }

.materials-section { padding: 96px clamp(18px, 4vw, 64px); background: #f3f0e8; border-bottom: 1px solid var(--line); }
.materials-workspace { max-width: 1520px; margin: 0 auto; display: grid; grid-template-columns: 285px minmax(0, 1fr); align-items: start; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.materials-controls { padding: 23px; position: sticky; top: 12px; display: grid; gap: 15px; background: #173e32; color: white; }
.materials-controls label { display: grid; gap: 7px; color: #b9cbc3; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.materials-controls select, .materials-controls input { width: 100%; min-height: 42px; padding: 0 10px; border: 1px solid rgba(255,255,255,.2); border-radius: 2px; background: #244f42; color: white; font-size: 11px; outline: none; }
.materials-controls p { margin: 0; color: #aabdb5; font-size: 9px; line-height: 1.55; }
.secondary-button { min-height: 42px; padding: 0 12px; border: 1px solid rgba(255,255,255,.28); background: transparent; color: white; cursor: pointer; font-size: 10px; font-weight: 700; }
.material-download { width: 100%; margin: 0; background: var(--acid); color: var(--forest); }
.material-estimate { min-width: 0; padding: 25px; }
.material-result-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.material-result-head h3 { margin: 9px 0 4px; font-family: "Prata", serif; color: var(--forest); font-size: 31px; font-weight: 400; }
.material-result-head p { margin: 0; color: var(--muted); font-size: 10px; }
.material-total { min-width: 235px; padding: 16px; border-left: 4px solid var(--acid); background: var(--forest); color: white; text-align: right; }
.material-total span { display: block; color: #b7c9c1; font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.material-total b { display: block; margin-top: 7px; font-family: "Prata", serif; font-size: 25px; font-weight: 400; }
.material-total strong { display: block; margin-top: 3px; color: var(--acid); font-size: 11px; }
.material-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 18px; }
.material-summary article { min-height: 92px; padding: 12px; border: 1px solid var(--line); background: #f8faf7; }
.material-summary span, .stage-costs span { display: block; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
.material-summary b, .stage-costs b { display: block; margin-top: 8px; color: var(--forest); font-family: "Prata", serif; font-size: 18px; font-weight: 400; }
.material-summary small, .stage-costs small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.stage-costs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 7px; }
.stage-costs div { padding: 13px; border: 1px solid #cad8cf; background: #eef5f0; }
.template-note { margin: 18px 0 10px; padding: 14px 16px; border-left: 3px solid var(--clay); background: #f4eee9; }
.template-note b { color: var(--ink); font-size: 11px; }
.template-note p { margin: 6px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.material-table { max-height: 680px; overflow: auto; }
.material-table thead { position: sticky; top: 0; z-index: 2; }
.material-table td { min-width: 115px; }
.material-table td:first-child { min-width: 235px; }
.material-table td:last-child { min-width: 245px; }
.material-table td > small, .material-table td > strong { display: block; }
.material-table td > small { margin-bottom: 4px; color: var(--muted); font-size: 8px; }
.material-table td > a { display: inline-block; margin: 5px 8px 0 0; color: var(--forest-2); font-size: 8px; font-weight: 700; }
.inline-price { display: grid; gap: 4px; }
.inline-price input { width: 130px; height: 34px; padding: 0 7px; border: 1px solid #c9c7be; background: #fff; font-size: 10px; }
.inline-price span { color: var(--muted); font-size: 7px; }
.evidence { display: inline-block; padding: 4px 6px; border-radius: 999px; font-size: 7px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.evidence.market-listing { background: #e5f2e8; color: var(--forest-2); }
.evidence.allowance { background: #fff0d8; color: #805914; }
.estimate-warning { margin-top: 12px; padding: 16px; border: 1px solid #e4c7bc; background: #fbefeb; }
.estimate-warning b { color: var(--stop); font-size: 11px; }
.estimate-warning p { margin: 6px 0 0; color: #70463d; font-size: 9px; line-height: 1.6; }
.benchmark-strip { max-width: 1520px; margin: 24px auto 0; padding: 24px; display: grid; grid-template-columns: .7fr 1.3fr; gap: 28px; border: 1px solid var(--line); background: #e7ebe5; }
.benchmark-strip h3 { margin: 0; color: var(--forest); font-family: "Prata", serif; font-size: 23px; font-weight: 400; }
.benchmark-strip p { color: var(--muted); font-size: 9px; line-height: 1.6; }
.benchmark-links { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.benchmark-links a { position: relative; min-height: 90px; padding: 13px 34px 13px 13px; border: 1px solid #cbd4cc; background: white; text-decoration: none; }
.benchmark-links b, .benchmark-links span { display: block; }
.benchmark-links b { color: var(--forest); font-size: 10px; }
.benchmark-links span { margin-top: 6px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.benchmark-links i { position: absolute; top: 12px; right: 12px; color: var(--clay); font-style: normal; }

.workspace-section { padding: 90px clamp(18px, 4vw, 64px) 110px; }
.section-head { max-width: 840px; margin: 0 auto 46px; text-align: center; }
.section-head h2 { font-size: clamp(34px, 4vw, 54px); line-height: 1.16; }
.section-head p { max-width: 720px; margin: 18px auto 0; color: var(--muted); line-height: 1.7; font-size: 14px; }
.workspace { max-width: 1520px; margin: 0 auto; display: grid; grid-template-columns: 390px minmax(0, 1fr); align-items: start; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.inputs-panel { background: #f8f6f0; border-right: 1px solid var(--line); }
.form-section { border-bottom: 1px solid var(--line); }
.form-section-title { width: 100%; padding: 17px 20px; border: 0; background: transparent; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; text-align: left; cursor: pointer; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.form-section-title span { color: var(--clay); font-size: 10px; }
.form-section-title i { font-style: normal; color: var(--muted); }
.form-section-body { display: none; grid-template-columns: 1fr 1fr; gap: 13px; padding: 0 20px 22px; }
.form-section.open .form-section-body { display: grid; }
.form-section-body label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 600; }
.form-section-body label.wide { grid-column: 1 / -1; }
.form-section-body input, .form-section-body select { width: 100%; height: 42px; padding: 0 10px; border: 1px solid #d1cec4; border-radius: 3px; background: white; color: var(--ink); font-size: 13px; outline: none; }
.form-section-body input:focus, .form-section-body select:focus { border-color: var(--forest-2); box-shadow: 0 0 0 3px rgba(35,88,72,.09); }
.run-button { width: calc(100% - 40px); margin: 22px 20px 10px; min-height: 54px; padding: 0 18px; border: 0; background: var(--forest); color: white; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-size: 12px; font-weight: 700; }
.run-button b { color: var(--acid); font-size: 20px; }
.form-note { padding: 0 20px 20px; color: #8a8f89; font-size: 9px; line-height: 1.5; }

.results-panel { min-width: 0; padding: 26px; }
.loading-state { min-height: 680px; display: grid; place-items: center; color: var(--muted); }
.result-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 20px; }
.result-head h3 { margin: 3px 0 5px; font-family: "Prata", serif; font-size: 26px; font-weight: 400; }
.result-head p { margin: 0; color: var(--muted); font-size: 11px; }
.status-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 999px; background: #f2e3dc; color: var(--stop); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.status-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.result-actions { display: flex; gap: 7px; }
.icon-button { min-height: 38px; padding: 0 12px; border: 1px solid var(--line); background: white; color: var(--ink); cursor: pointer; font-size: 10px; font-weight: 700; }
.option-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 18px; }
.option-tab { padding: 13px; border: 1px solid var(--line); background: white; cursor: pointer; text-align: left; }
.option-tab b { display: block; font-size: 12px; }
.option-tab small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.option-tab.active { border-color: var(--forest); background: #edf3ef; box-shadow: inset 0 -3px var(--forest); }
.option-tab.not-feasible { border-top-color: var(--stop); }
.result-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 18px; }
.site-card { min-width: 0; padding: 16px; background: #eef1e9; border: 1px solid #dde2d8; }
.site-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.site-card-head b { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.site-card-head small { color: var(--muted); font-size: 9px; }
.site-plan { width: 100%; aspect-ratio: 1.2 / 1; display: block; background: #f9f7f0; }
.site-plan .site { fill: #f8f2e5; stroke: #202a24; stroke-width: .7; }
.site-plan .envelope { fill: none; stroke: #a2a79f; stroke-width: .5; stroke-dasharray: 2 1.7; }
.site-plan .building { fill: var(--forest-2); stroke: #102c23; stroke-width: .5; }
.site-plan .courtyard { fill: #c7d3bd; stroke: #8d9c83; stroke-width: .4; }
.site-plan .street { fill: #d8d5cc; }
.site-plan text { font-family: "Manrope", sans-serif; fill: #5e665f; font-size: 3px; }
.site-plan .north { fill: var(--clay); font-weight: 700; }
.visual-note { margin: 9px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.massing-head { display: flex; justify-content: space-between; gap: 12px; margin: 18px 0 8px; padding-top: 14px; border-top: 1px solid #d6dcd2; }
.massing-head b { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.massing-head small { color: var(--muted); font-size: 9px; }
.massing-view { display: block; width: 100%; aspect-ratio: 1.52 / 1; border: 1px solid #e0e3da; }
.massing-view polygon { stroke: rgba(21,39,31,.38); stroke-width: .65; stroke-linejoin: round; }
.massing-view text { fill: #667168; font-family: "Manrope", sans-serif; font-size: 7px; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
.metric { min-height: 92px; padding: 13px; border: 1px solid var(--line); background: white; }
.metric span { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.metric b { display: block; margin-top: 9px; font-family: "Prata", serif; color: var(--forest); font-size: 22px; font-weight: 400; }
.metric small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.metric.alert b { color: var(--stop); }
.system-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.system-grid article { min-height: 104px; padding: 14px; border: 1px solid var(--line); background: #f7faf7; }
.system-grid span { display: block; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
.system-grid b { display: block; margin-top: 12px; font-family: "Prata", serif; color: var(--forest); font-size: 18px; font-weight: 400; }
.system-grid small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }
.blockers { margin-top: 18px; display: grid; gap: 7px; }
.blocker { padding: 11px 13px; border-left: 3px solid var(--warning); background: #fff7e8; color: #655128; font-size: 10px; line-height: 1.55; }
.blocker.stop { border-color: var(--stop); background: #fbefeb; color: #6d3128; }
.recommendation { margin-top: 10px; padding: 15px 17px; border: 1px solid #cad8cf; background: #eef5f0; }
.recommendation span { display: block; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.recommendation b { display: block; margin-top: 6px; color: var(--forest); font-family: "Prata", serif; font-size: 17px; font-weight: 400; }
.recommendation p { margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.subsection { margin-top: 25px; }
.subsection-head { display: flex; justify-content: space-between; align-items: end; gap: 10px; margin-bottom: 10px; }
.subsection-head h4 { margin: 0; font-family: "Prata", serif; font-size: 20px; font-weight: 400; }
.subsection-head small { color: var(--muted); font-size: 9px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; background: white; font-size: 10px; }
th { padding: 10px; background: #f3f1eb; color: var(--muted); text-align: left; font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
td { padding: 10px; border-top: 1px solid #e6e3dc; vertical-align: top; }
td strong { color: var(--forest); }
.check-pass { color: var(--forest-2); font-weight: 700; }
.check-fail { color: var(--stop); font-weight: 700; }
.error-box { padding: 18px; background: #fbefeb; border: 1px solid #e9c7bd; color: var(--stop); }
.error-box h3 { margin-top: 0; }
.approval-summary { padding: 16px 18px; border: 1px solid #e6c7bb; border-left: 4px solid var(--stop); background: #fbefeb; }
.approval-summary b { color: var(--stop); font-size: 12px; }
.approval-summary p { margin: 6px 0 0; color: #70463d; font-size: 10px; line-height: 1.55; }
.approval-table { max-height: 520px; overflow: auto; border-top: 0; }
.approval-table th { position: sticky; top: 0; z-index: 1; }
.critic-grid { display: grid; gap: 7px; }
.critic-item { padding: 13px 15px; border: 1px solid #ddd8ce; border-left: 4px solid #8d968f; background: white; }
.critic-item.blocker { border-left-color: var(--stop); background: #fbefeb; }
.critic-item.major { border-left-color: var(--warning); background: #fff7e8; }
.critic-item.dna { border-left-color: #6c5a9a; background: #f4f0fb; }
.critic-item b { display: block; color: var(--ink); font-size: 11px; }
.critic-item p { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.critic-item small { display: block; margin-top: 6px; color: var(--forest-2); font-size: 9px; }

.site-data-module { max-width: 1520px; margin: 34px auto 0; padding: 24px; display: grid; grid-template-columns: .75fr 1.45fr .8fr; gap: 22px; align-items: start; border: 1px solid var(--line); background: #e9eee9; }
.site-data-copy h3 { margin: 0; font-family: "Prata", serif; color: var(--forest); font-size: 24px; font-weight: 400; }
.site-data-copy p { margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.site-source-list { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.site-source { padding: 11px; border: 1px solid #cbd4cc; background: white; }
.site-source b { display: block; color: var(--forest); font-size: 10px; }
.site-source span { display: inline-block; margin-top: 5px; color: var(--muted); font-size: 8px; text-transform: uppercase; }
.site-source.enabled span { color: var(--forest-2); }
.site-source.disabled-until-api-contract { opacity: .68; }
.site-source p { margin: 6px 0 0; color: var(--muted); font-size: 8px; line-height: 1.45; }
.geojson-upload { min-height: 128px; padding: 18px; display: flex; flex-direction: column; justify-content: center; border: 1px dashed #87978d; background: #f8fbf8; color: var(--forest); font-size: 11px; font-weight: 700; cursor: pointer; }
.geojson-upload input { margin-top: 12px; max-width: 100%; font-size: 9px; }
.geojson-upload small { margin-top: 8px; color: var(--muted); font-size: 8px; font-weight: 400; line-height: 1.4; }

.principles { padding: 100px clamp(24px, 7vw, 120px); background: var(--forest); color: white; }
.section-head.inverse { margin-left: 0; text-align: left; }
.principle-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.18); }
.principle-grid article { padding: 30px 30px 10px 0; border-right: 1px solid rgba(255,255,255,.14); }
.principle-grid article + article { padding-left: 30px; }
.principle-grid article:last-child { border: 0; }
.principle-grid span { color: var(--acid); font-size: 10px; }
.principle-grid h3 { margin: 18px 0 12px; font-family: "Prata", serif; font-size: 21px; font-weight: 400; }
.principle-grid p { margin: 0; color: #bbcbc4; font-size: 12px; line-height: 1.65; }

.boundary { padding: 90px clamp(24px, 7vw, 120px); display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.boundary h2 { font-size: clamp(33px, 4vw, 52px); line-height: 1.2; }
.boundary-list { border-top: 1px solid var(--ink); }
.boundary-list p { margin: 0; padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.65; }
.boundary-list b { color: var(--ink); }
footer { min-height: 110px; padding: 28px clamp(24px, 7vw, 120px); display: flex; justify-content: space-between; align-items: center; gap: 20px; background: #111713; color: white; }
footer div { display: flex; flex-direction: column; }
footer b { letter-spacing: .13em; }
footer span, footer p { color: #95a49d; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; gap: 45px; }
  .hero::before { background-size: auto 760px; background-position: center top 45px; opacity: .76; }
  .hero::after { background: linear-gradient(90deg, rgba(6,36,29,.95) 0%, rgba(6,36,29,.76) 54%, rgba(6,30,25,.25) 100%); }
  .brief-search { width: calc(100% - 120px); max-width: 660px; }
  .hero-proof { max-width: 680px; }
  .workspace { grid-template-columns: 340px minmax(0, 1fr); }
  .result-grid { grid-template-columns: 1fr; }
  .principle-grid { grid-template-columns: 1fr 1fr; }
  .project-gallery { grid-template-columns: 1fr 1fr; }
  .dna-gallery { grid-template-columns: 1fr 1fr; }
  .site-data-module { grid-template-columns: 1fr; }
  .materials-workspace { grid-template-columns: 245px minmax(0, 1fr); }
  .material-summary { grid-template-columns: 1fr 1fr; }
  .principle-grid article:nth-child(2) { border-right: 0; }
}
@media (max-width: 760px) {
  .topbar nav, .version { display: none; }
  .hero { padding: 70px 22px; }
  .brief-search { width: 100%; }
  .hero-proof { padding: 18px; }
  .proof-line { grid-template-columns: 30px 1fr; }
  .proof-line small { display: none; }
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .trust-strip div:nth-child(2) { border-right: 0; }
  .trust-strip div { padding: 20px; }
  .workspace { display: block; }
  .materials-workspace { display: block; }
  .materials-controls { position: static; }
  .material-estimate { padding: 15px; }
  .material-result-head { display: block; }
  .material-total { margin-top: 14px; text-align: left; }
  .material-summary, .stage-costs, .benchmark-strip, .benchmark-links { grid-template-columns: 1fr; }
  .inputs-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .results-panel { padding: 16px; }
  .result-head { display: block; }
  .result-actions { margin-top: 12px; }
  .option-tabs { grid-template-columns: 1fr; }
  .project-gallery, .system-grid, .dna-gallery, .brief-analysis-grid { grid-template-columns: 1fr; }
  .brief-search-footer { align-items: stretch; flex-direction: column; }
  .principle-grid, .boundary { grid-template-columns: 1fr; }
  .principle-grid article, .principle-grid article + article { padding: 25px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .boundary { gap: 35px; }
  footer { align-items: flex-start; flex-direction: column; }
}

@media print {
  .topbar, .hero, .trust-strip, .inputs-panel, .principles, .boundary, footer, .result-actions { display: none !important; }
  .workspace-section { padding: 0; }
  .section-head { display: none; }
  .workspace { display: block; border: 0; box-shadow: none; }
  .results-panel { padding: 0; }
  .result-grid { grid-template-columns: 1.2fr .8fr; }
  body { background: white; }
}
