:root {
  --pine-950: #102826;
  --pine-900: #173432;
  --pine-850: #1D403D;
  --pine-800: #254A45;
  --pine-700: #38645D;
  --pine-600: #557A70;
  --mint-300: #B7CDBB;
  --mint-200: #D7E3D6;
  --mint-100: #EAF0E7;
  --lime: #D9F278;
  --lime-strong: #CBEB61;
  --paper: #F5F1E8;
  --paper-2: #FBF9F3;
  --white: #FFFFFF;
  --ink: #1D302E;
  --text: #304541;
  --muted: #75847E;
  --line: #DCE3D8;
  --line-dark: #355550;
  --coral: #D96E53;
  --coral-light: #F7E5DF;
  --blue: #628D9D;
  --blue-light: #E2EEF0;
  --gold: #AD854B;
  --gold-light: #F5EBDD;
  --shadow: 0 12px 34px rgba(19, 47, 43, .055);
  --radius: 15px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
button:disabled { opacity: .6; cursor: wait; }
a { color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar { position: sticky; top: 0; width: 260px; min-width: 260px; height: 100vh; min-height: 670px; padding: 27px 16px 14px; display: flex; flex-direction: column; overflow-y: auto; color: #F1F4E9; background: var(--pine-900); border-right: 1px solid rgba(255,255,255,.06); z-index: 5; }
.brand { display: flex; align-items: center; gap: 11px; margin: 0 10px 47px; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #6B8C75; border-radius: 13px; color: var(--paper); background: #214640; box-shadow: 0 3px 14px rgba(0,0,0,.14); }
.brand-mark svg { width: 32px; height: 32px; }
.brand-words strong { display: block; font-size: 19px; line-height: 1.1; letter-spacing: -1px; font-weight: 800; }
.brand-words strong span { color: var(--lime); }
.brand-words small { display: block; margin-top: 6px; color: #A6BEB0; font-size: 8px; letter-spacing: 1.65px; font-weight: 750; }
.rail-label { margin: 0 13px 12px; color: #9BB4A7; font-size: 9px; font-weight: 800; letter-spacing: 1.5px; }
.nav-list { display: grid; gap: 6px; }
.nav-item { position: relative; width: 100%; min-height: 48px; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 9px; padding: 0 11px; text-align: left; color: #B8C9BF; background: transparent; font-size: 12px; font-weight: 600; transition: background .18s ease, color .18s ease; }
.nav-item:hover { color: #fff; background: #20433F; }
.nav-item.active { color: #F6F8EE; background: #2A4D45; box-shadow: inset 3px 0 var(--lime); }
.nav-item.active .nav-icon { color: var(--lime); }
.nav-icon { width: 20px; height: 20px; display: grid; place-items: center; color: #A5BBAE; }
.nav-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nav-item kbd { margin-left: auto; color: #738E81; font-family: inherit; font-size: 9px; font-weight: 650; }
.nav-item.active kbd { color: #BDD196; }
.sidebar-spacer { flex: 1; min-height: 44px; }
.side-note { position: relative; margin: 0 3px 16px; padding: 14px 13px 12px; overflow: hidden; border: 1px solid #365750; border-radius: 11px; background: linear-gradient(140deg, #1C3E39, #193632); }
.side-note::before { content: ""; position: absolute; width: 95px; height: 95px; right: -41px; top: -37px; border: 1px solid #537362; border-radius: 50%; box-shadow: 0 0 0 12px rgba(105,145,111,.06), 0 0 0 24px rgba(105,145,111,.04); }
.side-note-top { display: flex; gap: 7px; align-items: center; color: #AEC2B4; font-size: 8px; font-weight: 800; letter-spacing: 1.1px; }
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(217,242,120,.09); }
.side-note p { position: relative; z-index: 1; margin: 12px 0 13px; color: #F4F1E7; font-family: Georgia, "Times New Roman", serif; font-size: 18px; line-height: 1.22; letter-spacing: -.3px; }
.side-note p em { color: var(--lime); font-weight: 400; }
.side-note-line { display: flex; gap: 4px; height: 3px; }
.side-note-line span { flex: 1; border-radius: 10px; background: #527064; }
.side-note-line span:first-child, .side-note-line span:nth-child(2) { background: var(--lime); }
.qloo-side-status { display: flex; align-items: center; gap: 10px; padding: 12px 10px; border: 1px solid #36564F; border-radius: 10px; background: rgba(7,24,22,.17); }
.qloo-status-icon { width: 29px; height: 29px; display: grid; place-items: center; color: var(--lime); border: 1px solid #506D5C; border-radius: 8px; font-weight: 850; font-size: 13px; }
.qloo-status-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.qloo-status-copy strong { color: #E7ECE0; font-size: 10px; font-weight: 720; }
.qloo-status-copy small { color: #9CB4A7; font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 145px; }
.status-light { width: 7px; height: 7px; margin-left: auto; flex: 0 0 7px; border-radius: 50%; background: #D7A15B; }
.status-light.ok { background: var(--lime); box-shadow: 0 0 0 4px rgba(217,242,120,.1); }
.status-light.bad { background: #E8876D; }
.rail-footer { display: flex; justify-content: space-between; margin: 16px 5px 0; color: #819D90; font-size: 8px; letter-spacing: .85px; font-weight: 700; }

.main-area { width: min(100% - 260px, 1800px); min-width: 0; padding: 0 37px 30px; margin: 0 auto; }
.topbar { height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid #E1E5D9; }
.breadcrumbs { display: flex; gap: 11px; align-items: center; color: #84918A; font-size: 9px; font-weight: 800; letter-spacing: 1.2px; }
.breadcrumbs i { font-style: normal; color: #BAC5B9; font-size: 14px; }
.breadcrumbs strong { color: #3F5650; letter-spacing: .15px; font-size: 11px; font-weight: 650; }
.top-actions { display: flex; align-items: center; gap: 15px; }
.quiet-action { display: flex; align-items: center; gap: 7px; border: 0; padding: 7px 2px; color: #536A62; background: transparent; font-size: 11px; font-weight: 700; }
.quiet-action:hover { color: var(--pine-950); }
.action-spark { color: var(--coral); font-size: 18px; }
.top-divider { height: 25px; border-left: 1px solid #DAE0D7; }
.workspace-tag { display: flex; gap: 7px; align-items: center; color: #7A8981; font-size: 8px; letter-spacing: 1px; font-weight: 800; white-space: nowrap; }
.workspace-tag-dot { width: 6px; height: 6px; border-radius: 50%; background: #8FA68E; }
.avatar { display: grid; place-items: center; width: 33px; height: 33px; color: #173432; background: var(--lime); border-radius: 50%; font-size: 10px; font-weight: 850; letter-spacing: -.2px; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr); min-height: 306px; margin-top: 24px; background: var(--pine-900); border-radius: 17px; overflow: hidden; box-shadow: 0 12px 28px rgba(19,47,43,.09); }
.hero-copy { position: relative; z-index: 1; padding: 31px 34px 27px; color: var(--paper); }
.hero-copy::before { content: ""; position: absolute; left: -77px; bottom: -172px; width: 280px; height: 280px; border-radius: 50%; border: 1px solid rgba(196,224,183,.15); box-shadow: 0 0 0 24px rgba(196,224,183,.025), 0 0 0 49px rgba(196,224,183,.025); z-index: -1; }
.eyebrow { display: flex; align-items: center; gap: 7px; color: #ADC4B4; font-size: 9px; font-weight: 800; letter-spacing: 1.45px; }
.eyebrow-mark { color: var(--lime); font-size: 17px; line-height: 1; }
.hero-copy h1 { margin: 18px 0 13px; font-size: clamp(29px, 3.1vw, 42px); line-height: 1.08; letter-spacing: -1.9px; font-weight: 760; }
.hero-copy h1 em { color: var(--lime); font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -1.35px; }
.hero-description { max-width: 500px; margin: 0; color: #BBCBC0; font-size: 12px; line-height: 1.78; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 21px; }
.button { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; border: 1px solid transparent; border-radius: 8px; padding: 0 14px; font-size: 11px; font-weight: 760; transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button-lime { color: var(--pine-950); background: var(--lime); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.button-lime:hover { background: #E7FFA0; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.button-outline-light { color: #E2EADF; border-color: #567166; background: transparent; }
.button-outline-light:hover { border-color: #9DB59E; background: rgba(255,255,255,.045); }
.button-primary { color: #F8F5E9; background: var(--pine-900); box-shadow: 0 4px 10px rgba(19,47,43,.08); }
.button-primary:hover { background: #26534C; box-shadow: 0 5px 14px rgba(19,47,43,.13); }
.button-outline { color: #3B5851; border-color: #D2DDD1; background: #FBFAF6; }
.button-outline:hover { border-color: #9EB4A3; background: #F0F3EA; }
.button.compact { min-height: 32px; padding: 0 11px; font-size: 10px; }
.hero-footnote { display: flex; gap: 7px; align-items: center; margin-top: 16px; color: #9FB9A8; font-size: 10px; }
.mini-check { display: grid; place-items: center; width: 15px; height: 15px; color: var(--lime); border: 1px solid #607A68; border-radius: 50%; font-size: 9px; }
.hero-map { position: relative; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 16px 19px 14px; overflow: hidden; background: #213F3A; }
.hero-map::before { content: ""; position: absolute; inset: 0; opacity: .32; background-image: radial-gradient(#7CA18A .65px, transparent .65px); background-size: 9px 9px; pointer-events: none; }
.map-top-label, .map-legend { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #9FBBA9; font-size: 8px; letter-spacing: 1.1px; font-weight: 800; }
.map-live { display: inline-flex; align-items: center; gap: 5px; color: #BFD4B4; font-size: 7px; }
.map-live i { display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--lime); }
.city-map { position: relative; width: 100%; height: auto; max-height: 245px; margin: -2px 0 -2px; }
.map-legend { justify-content: flex-start; flex-wrap: wrap; gap: 14px; color: #AFC4B4; font-size: 7px; letter-spacing: .3px; font-weight: 600; }
.map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend-square { width: 7px; height: 7px; border: 1px solid #BAD2B4; display: inline-block; border-radius: 1px; }
.legend-square.unit { background: var(--lime); border-color: var(--lime); }
.legend-square.supply { background: #AAC5B2; border-color: #AAC5B2; }
.map-legend-note { margin-left: auto; color: #829F91; font-size: 6.5px; letter-spacing: .75px; }

.stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 15px 0 42px; border: 1px solid #DFE5D9; border-radius: 12px; background: var(--paper-2); }
.stat-item { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 15px 17px; border-right: 1px solid #E4E8DF; }
.stat-item:last-child { border-right: 0; }
.stat-icon { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 32px; border-radius: 9px; font-size: 10px; font-weight: 850; }
.stat-icon-lime { color: var(--pine-900); background: #E5F4B3; }
.stat-icon-coral { color: #9E4939; background: #F7E1D9; }
.stat-icon-blue { color: #3F6B79; background: #DDEBED; }
.stat-icon-cream { color: #85663B; background: #F1E6D2; }
.stat-item small { display: block; margin-bottom: 5px; color: #89958C; font-size: 8px; line-height: 1.25; font-weight: 800; letter-spacing: .65px; }
.stat-item strong { display: block; color: #28413A; font-size: 16px; font-weight: 780; letter-spacing: -.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-item strong span { color: #829089; font-size: 10px; font-weight: 550; letter-spacing: 0; }
.stat-status-item strong { font-size: 12px; }

.section-title-row, .subpage-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 0 19px; }
.section-eyebrow { color: #7C9084; font-size: 9px; line-height: 1.3; font-weight: 850; letter-spacing: 1.25px; }
.section-title-row h2, .subpage-head h1 { margin: 7px 0 8px; color: #203A35; font-size: clamp(23px, 2.35vw, 31px); line-height: 1.15; letter-spacing: -1.15px; font-weight: 770; }
.period { color: var(--coral); }
.section-title-row p, .subpage-head p { max-width: 690px; margin: 0; color: #7C8982; font-size: 11px; line-height: 1.75; }
.step-badge { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; padding: 10px 12px; border: 1px solid #DDE4D8; border-radius: 8px; background: #FAF9F3; color: #6E8175; font-size: 7px; letter-spacing: .8px; font-weight: 800; }
.step-badge i { font-style: normal; color: #A8B9AC; font-size: 10px; }
.card { background: #FEFDF9; border: 1px solid #E0E6DC; border-radius: var(--radius); box-shadow: var(--shadow); }
.brief-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(350px, .9fr); gap: 16px; align-items: stretch; }
.brief-card, .concepts-card, .inventory-card, .pilot-form-card, .pilot-result-card, .outcome-history-card, .trace-card, .evidence-card, .method-card { min-width: 0; padding: 20px; }
.card-head { display: flex; align-items: flex-start; gap: 11px; min-width: 0; margin-bottom: 20px; }
.card-index { flex: 0 0 27px; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; color: #31524A; background: #E3EDDC; font-size: 10px; font-weight: 850; }
.card-head h3 { margin: 1px 0 5px; color: #2A423C; font-size: 13px; line-height: 1.35; font-weight: 780; }
.card-head p { margin: 0; color: #849189; font-size: 10px; line-height: 1.55; }
.card-head-symbol { display: grid; place-items: center; flex: 0 0 28px; margin-left: auto; width: 28px; height: 28px; border-radius: 8px; color: #A3B4A7; background: #F3F5EF; font-size: 18px; }
.count-pill, .inventory-count, .evidence-count, .live-trace { flex: 0 0 auto; margin-left: auto; padding: 6px 8px; border: 1px solid #DCE5D9; border-radius: 6px; color: #536E5D; background: #F2F6ED; font-size: 8px; font-weight: 850; white-space: nowrap; }
.inventory-count { color: #75847A; background: #F9F8F2; }
.live-trace { color: #8C754B; background: #F9F0DD; border-color: #F0E4C8; letter-spacing: .6px; }
.evidence-count { color: #62808B; border-color: #D9E7E9; background: #EAF3F3; }
.form-grid { display: grid; gap: 14px; }
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: block; min-width: 0; }
.field > span { display: block; margin: 0 0 7px; color: #697B72; font-size: 8px; font-weight: 850; letter-spacing: .8px; line-height: 1.4; }
.field > span b { color: var(--coral); font-size: 10px; }
.field > span small { color: #A2ACA4; font-size: 8px; letter-spacing: .2px; text-transform: none; font-weight: 600; }
.field input, .field select, .field textarea { display: block; width: 100%; min-width: 0; min-height: 38px; padding: 10px 11px; border: 1px solid #DCE4D8; border-radius: 7px; outline: none; color: #2E4640; background: #FBFBF7; font-size: 11px; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.field input::placeholder, .field textarea::placeholder { color: #A4AEA6; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #799B7E; background: white; box-shadow: 0 0 0 3px rgba(121,155,126,.14); }
.field select { appearance: auto; }
.field textarea { resize: vertical; min-height: 65px; line-height: 1.55; }
.field-spaced { margin-top: 15px; }
.field-hint { display: block; margin-top: 6px; color: #8D9B91; font-size: 9px; line-height: 1.55; }
.arm-heading { display: flex; align-items: center; gap: 10px; margin: 12px 0 8px; padding-top: 13px; border-top: 1px solid #E7E8DD; }
.arm-heading strong { display: block; color: #263C35; font-size: 11px; }
.arm-heading small { display: block; margin-top: 3px; color: #63766C; font-size: 9px; }
.arm-mark { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; font-size: 10px; font-weight: 800; }
.control-mark { background: #EEF0E9; color: #344D43; border: 1px solid #D6DDD1; }
.treatment-mark { background: #D9F278; color: #173432; }
.pilot-design-note { margin: 5px 0 14px; padding: 11px 12px; border-left: 3px solid #D9F278; background: #F3F5E9; color: #3F5A4F; font-size: 10px; line-height: 1.65; }

.input-with-unit { display: flex; min-height: 38px; align-items: center; border: 1px solid #DCE4D8; border-radius: 7px; background: #FBFBF7; overflow: hidden; }
.input-with-unit:focus-within { border-color: #799B7E; background: white; box-shadow: 0 0 0 3px rgba(121,155,126,.14); }
.input-with-unit input { min-width: 0; width: 100%; min-height: 36px; padding: 8px 9px; border: 0; box-shadow: none !important; background: transparent; outline: none; color: #2E4640; font-size: 11px; }
.input-with-unit input:focus { border: 0; }
.input-with-unit > span { flex: 0 0 auto; padding: 0 9px; color: #84948A; font-size: 9px; white-space: nowrap; }
.input-with-unit .prefix { padding-left: 11px; padding-right: 1px; color: #5E7769; font-size: 11px; font-weight: 750; }
.facility-head { display: flex; justify-content: space-between; gap: 12px; margin: 18px 0 10px; color: #697D71; font-size: 8px; letter-spacing: .6px; font-weight: 850; }
.facility-head small { color: #98A69B; font-size: 8px; font-weight: 550; letter-spacing: 0; }
.facility-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.facility-list label { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 8px 9px; border: 1px solid #E5EAE0; border-radius: 7px; background: #FAFBF6; color: #536A60; font-size: 9px; cursor: pointer; }
.facility-list label:has(input:checked) { border-color: #A8C5A3; background: #F0F6E7; color: #2C5142; }
.facility-list input, .concept-choice input { accent-color: #517B62; flex: 0 0 auto; }
.facility-list input { width: 12px; height: 12px; margin: 0; }
.micro-note { display: flex; align-items: flex-start; gap: 7px; margin: 13px 0 0; color: #929B90; font-size: 9px; line-height: 1.6; }
.micro-note > span { display: grid; place-items: center; flex: 0 0 14px; width: 14px; height: 14px; border: 1px solid #D9BE8E; border-radius: 50%; color: #9C773C; font-size: 8px; font-weight: 900; }
.concepts-card { display: flex; flex-direction: column; }
.concept-options { display: grid; gap: 8px; }
.concept-choice { position: relative; display: flex; align-items: center; gap: 10px; min-height: 55px; padding: 9px 10px; border: 1px solid #E1E7DE; border-radius: 9px; background: #FBFBF7; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.concept-choice:hover { border-color: #ACBFA7; transform: translateX(1px); }
.concept-choice:has(input:checked) { border-color: #7E9E79; background: #F0F6E7; box-shadow: inset 3px 0 #6A9167; }
.concept-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.concept-choice:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
.concept-glyph { display: grid; place-items: center; flex: 0 0 33px; width: 33px; height: 33px; border-radius: 9px; font-size: 17px; font-weight: 800; }
.glyph-coffee { color: #856344; background: #F2E8D9; }
.glyph-book { color: #557D72; background: #E4EEE2; }
.glyph-vintage { color: #A65C44; background: #F7E5DD; }
.glyph-makers { color: #668C83; background: #DFEDEC; }
.glyph-food { color: #A77C36; background: #F5EBD6; }
.glyph-arts { color: #657AA4; background: #E4EAF6; }
.glyph-wellness { color: #5F8C75; background: #E5F0E5; }
.concept-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.concept-copy strong { color: #304840; font-size: 10px; font-weight: 790; }
.concept-copy small { color: #87958B; font-size: 9px; line-height: 1.4; }
.choice-check { display: grid; place-items: center; flex: 0 0 18px; width: 18px; height: 18px; margin-left: auto; border: 1px solid #DCE4D8; border-radius: 50%; color: transparent; background: #FFFFFF; font-size: 10px; font-weight: 850; }
.concept-choice:has(input:checked) .choice-check { color: #173432; border-color: var(--lime); background: var(--lime); }
.selection-summary { display: flex; align-items: center; gap: 7px; margin: 12px 0; color: #718178; font-size: 9px; line-height: 1.5; }
.selection-dot { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--coral); }
.agent-preview { margin-top: auto; padding: 14px 13px 12px; border: 1px solid #D9E2D3; border-radius: 10px; background: #F2F5EB; }
.agent-preview-top { display: flex; align-items: center; gap: 7px; color: #638072; font-size: 8px; font-weight: 850; letter-spacing: .85px; }
.mini-agent-mark { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; color: #1B3D36; background: var(--lime); font-size: 13px; }
.agent-ready { margin-left: auto; color: #598165; font-size: 7px; letter-spacing: .35px; }
.agent-preview-steps { display: flex; align-items: center; gap: 5px; margin: 13px 0 10px; color: #405B4E; font-size: 8px; font-weight: 700; }
.agent-preview-steps span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.agent-preview-steps b { display: grid; place-items: center; width: 15px; height: 15px; border: 1px solid #B3C8AE; border-radius: 50%; background: #FCFCF4; font-size: 7px; }
.agent-preview-steps > i { height: 1px; min-width: 5px; flex: 1; background: #B6C7B4; }
.agent-preview p { margin: 0; color: #82958A; font-size: 9px; line-height: 1.5; }

.inventory-row { margin-top: 16px; }
.inventory-card .card-head { margin-bottom: 17px; }
.inventory-tools { display: flex; align-items: center; gap: 12px; }
.upload-drop { display: flex; align-items: center; gap: 11px; flex: 1; min-width: 0; min-height: 60px; padding: 10px 13px; border: 1px dashed #B8CDBA; border-radius: 9px; background: #F6F8F0; transition: border .18s ease, background .18s ease; }
.upload-drop.dragging { border-color: #5E8868; background: #EAF4E5; }
.upload-icon { display: grid; place-items: center; flex: 0 0 33px; width: 33px; height: 33px; border: 1px solid #D9E6D5; border-radius: 9px; color: #517D65; background: #FFFFFF; }
.upload-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.upload-drop strong { display: block; color: #344F44; font-size: 10px; font-weight: 760; }
.upload-drop small { display: block; margin-top: 5px; color: #8A9B8D; font-size: 9px; line-height: 1.4; }
.inline-button { border: 0; padding: 0; color: #38694C; background: transparent; text-decoration: underline; text-underline-offset: 2px; font-size: 10px; font-weight: 800; }
.manual-add { display: grid; grid-template-columns: 1.05fr 1fr .9fr 39px; gap: 9px; align-items: end; margin: 15px 0 10px; }
.add-record { height: 38px; width: 39px; border: 1px solid #C5D8C4; border-radius: 8px; color: #204A3B; background: #E8F2DA; font-size: 21px; line-height: 1; font-weight: 500; }
.add-record:hover { background: var(--lime); }
.inventory-table-wrap { width: 100%; overflow: auto; border: 1px solid #E5EAE1; border-radius: 8px; }
.inventory-table { width: 100%; border-collapse: collapse; text-align: left; }
.inventory-table thead { background: #F5F7F1; }
.inventory-table th { padding: 10px 12px; color: #829087; border-bottom: 1px solid #E5EAE1; font-size: 8px; font-weight: 850; letter-spacing: .7px; white-space: nowrap; }
.inventory-table td { padding: 10px 12px; color: #4E655A; border-bottom: 1px solid #EDF0E9; font-size: 10px; }
.inventory-table tbody tr:last-child td { border-bottom: 0; }
.inventory-table td:first-child { color: #2F4940; font-weight: 700; }
.empty-row td { height: 49px; color: #9AA69B !important; text-align: center; font-weight: 500 !important; }
.remove-record { display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid transparent; border-radius: 6px; color: #B47765; background: transparent; font-size: 15px; }
.remove-record:hover { border-color: #E8C9BD; background: #FBEBE4; }
.inventory-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 9px; color: #8D9A91; font-size: 9px; line-height: 1.5; }
.text-link { border: 0; padding: 3px; color: #8B6D5A; background: transparent; font-size: 9px; font-weight: 800; white-space: nowrap; }
.data-integrity { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; padding: 10px 11px; border: 1px solid #E8E6D4; border-radius: 7px; background: #FAF7EB; }
.integrity-icon { display: grid; place-items: center; flex: 0 0 15px; width: 15px; height: 15px; border: 1px solid #D2BC83; border-radius: 50%; color: #957339; font-size: 9px; font-weight: 850; }
.data-integrity p { margin: 0; color: #827D68; font-size: 9px; line-height: 1.55; }
.form-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 18px 0 14px; padding: 16px 0 18px; border-bottom: 1px solid #E1E6DA; }
.submit-reassurance { display: flex; gap: 8px; align-items: flex-start; max-width: 620px; color: #7A8A80; font-size: 9px; line-height: 1.6; }
.secure-icon { display: grid; place-items: center; flex: 0 0 17px; width: 17px; height: 17px; border: 1px solid #B7CBAD; border-radius: 5px; color: #477456; font-size: 11px; font-weight: 800; }
.form-submit-row .button { min-width: 206px; min-height: 43px; }
.run-icon { color: var(--lime); font-size: 15px; }
.button-loader { width: 13px; height: 13px; border: 2px solid rgba(255,255,255,.35); border-top-color: white; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-alert { margin-bottom: 20px; padding: 12px 14px; border: 1px solid #E9BFB2; border-radius: 8px; color: #8F4A39; background: #FFF0EA; font-size: 11px; line-height: 1.6; }
.page-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; color: #9AA49B; font-size: 7px; font-weight: 750; letter-spacing: .7px; }
.page-footer span:last-child { letter-spacing: .1px; font-weight: 550; font-size: 9px; }

/* Results and workbench views */
.view { animation: fade-up .24s ease both; }
@keyframes fade-up { from { opacity: .4; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.subpage-head { align-items: center; margin: 33px 0 24px; }
.subpage-head h1 { font-size: clamp(25px, 2.7vw, 35px); }
.subpage-head > .button, .subpage-head > .state-chip, .head-actions { flex: 0 0 auto; }
.head-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.state-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid #D7E1D3; border-radius: 8px; color: #648271; background: #EEF5E8; font-size: 8px; font-weight: 800; letter-spacing: .7px; white-space: nowrap; }
.state-chip i { width: 6px; height: 6px; border-radius: 50%; background: #8CAE75; }
.result-summary-bar { display: flex; gap: 12px; align-items: center; padding: 14px 17px; border: 1px solid #E3E2D3; border-radius: 11px; background: #FAF8EE; margin-bottom: 18px; }
.summary-mark { display: grid; place-items: center; flex: 0 0 33px; width: 33px; height: 33px; border-radius: 9px; color: #173432; background: var(--lime); font-size: 16px; }
.result-summary-bar strong { display: block; color: #38534A; font-size: 11px; font-weight: 800; }
.result-summary-bar small { display: block; margin-top: 4px; color: #849087; font-size: 10px; line-height: 1.5; }
.opportunity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; align-items: stretch; }
.opportunity-card { position: relative; min-width: 0; padding: 17px; border: 1px solid #E0E6DC; border-radius: 13px; background: #FEFDF9; box-shadow: var(--shadow); overflow: hidden; }
.opportunity-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: #D9F278; }
.opportunity-card:nth-child(3n+2)::before { background: #D96E53; }
.opportunity-card:nth-child(3n+3)::before { background: #628D9D; }
.opp-card-head { display: flex; gap: 10px; align-items: flex-start; }
.opp-concept-glyph { display: grid; place-items: center; flex: 0 0 37px; width: 37px; height: 37px; border-radius: 10px; color: var(--pine-800); background: #E8F1D8; font-size: 17px; font-weight: 800; }
.opp-card-head h3 { margin: 2px 0 5px; color: #29453C; font-size: 13px; line-height: 1.25; }
.opp-card-head p { margin: 0; color: #8A978D; font-size: 9px; line-height: 1.5; }
.opp-priority { display: inline-flex; align-items: center; gap: 5px; margin-top: 13px; padding: 6px 8px; border-radius: 5px; color: #4C7956; background: #ECF4DF; font-size: 8px; font-weight: 800; }
.opp-priority.caution { color: #8B6739; background: #F8F0DE; }
.opp-priority.neutral { color: #6D7D76; background: #F0F2EC; }
.opp-section { margin-top: 15px; padding-top: 13px; border-top: 1px solid #EBEEE6; }
.opp-section-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #8C9B90; font-size: 8px; font-weight: 850; letter-spacing: .8px; }
.opp-section p { margin: 7px 0 0; color: #64786E; font-size: 10px; line-height: 1.65; }
.opp-qloo-tag { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 6px 8px; border: 1px solid #D5E4E3; border-radius: 5px; color: #4D7775; background: #ECF5F2; font-size: 8px; font-weight: 750; }
.opp-entity-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.entity-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border: 1px solid #DDE7DC; border-radius: 5px; color: #47675A; background: #F5F8F0; font-size: 8px; line-height: 1.35; }
.entity-chip b { color: #557D59; font-size: 8px; }
.opp-card-footer { margin-top: 15px; padding-top: 13px; border-top: 1px solid #EBEEE6; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.budget-cap { color: #87958B; font-size: 8px; line-height: 1.5; }
.budget-cap strong { display: block; color: #2D4B3E; font-size: 18px; letter-spacing: -.7px; }
.small-card-button { border: 1px solid #CBD9C8; border-radius: 7px; padding: 8px 9px; color: #345C47; background: #EDF5E5; font-size: 9px; font-weight: 800; }
.small-card-button:hover { background: #DDF0C1; }
.blank-state { grid-column: 1/-1; display: grid; justify-items: center; text-align: center; padding: 48px 20px; border: 1px dashed #C8D8C8; border-radius: 14px; background: rgba(255,255,255,.35); }
.blank-state > span { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 12px; color: var(--pine-900); border-radius: 15px; background: var(--lime); font-size: 22px; }
.blank-state h3 { margin: 0; color: #345247; font-family: Georgia, serif; font-size: 22px; font-weight: 500; }
.blank-state p { max-width: 370px; color: #7F8E83; font-size: 11px; line-height: 1.65; }

.pilot-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 16px; align-items: stretch; }
.pilot-form-card .card-head, .pilot-result-card .card-head { margin-bottom: 20px; }
.pilot-form-card form { display: grid; gap: 15px; }
.pilot-form-card .full-width { width: 100%; min-height: 42px; }
.pilot-result-card { display: flex; min-height: 400px; background: #F9F8EF; }
.result-placeholder { width: 100%; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 18px 19px; }
.result-orbit { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 22px; border: 1px solid #C7D7BB; border-radius: 50%; color: #2E5945; background: #E8F2D8; font-size: 32px; box-shadow: 0 0 0 9px #F1F4E7, 0 0 0 10px #DDE6D4; }
.result-placeholder h3 { max-width: 350px; margin: 10px 0; color: #2C483D; font-family: Georgia, serif; font-size: 27px; line-height: 1.15; font-weight: 500; letter-spacing: -.5px; }
.result-placeholder p { max-width: 405px; color: #77897B; font-size: 11px; line-height: 1.75; }
.placeholder-steps { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; color: #60776A; font-size: 9px; font-weight: 760; }
.placeholder-steps span { display: inline-flex; align-items: center; gap: 6px; }
.placeholder-steps i { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 6px; color: #426A50; background: #E0EBD6; font-size: 8px; font-style: normal; }
.pilot-result-active { width: 100%; align-self: stretch; }
.outcome-banner { padding: 17px; border-radius: 10px; margin-bottom: 17px; }
.outcome-banner.positive { color: #2C6041; border: 1px solid #C8DEB8; background: #EFF7E5; }
.outcome-banner.caution { color: #7A6030; border: 1px solid #E6D7B7; background: #FBF4E3; }
.outcome-banner.negative { color: #8B4A3A; border: 1px solid #EAC9BE; background: #FFF0E9; }
.outcome-banner h3 { margin: 9px 0 6px; font-family: Georgia, serif; font-size: 23px; font-weight: 500; line-height: 1.18; }
.outcome-banner p { margin: 0; font-size: 10px; line-height: 1.7; }
.outcome-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 8px; font-weight: 850; letter-spacing: .7px; text-transform: uppercase; }
.outcome-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.outcome-metric { padding: 12px; border: 1px solid #E2E6DA; border-radius: 8px; background: #FFFFFF; }
.outcome-metric small { display: block; margin-bottom: 7px; color: #87958A; font-size: 8px; font-weight: 800; }
.outcome-metric strong { color: #29463B; font-size: 19px; letter-spacing: -.7px; }
progress.outcome-progress { display: block; width: 100%; height: 7px; margin: 15px 0 7px; border: 0; border-radius: 99px; background: #E5E9DF; overflow: hidden; appearance: none; }
progress.outcome-progress::-webkit-progress-bar { background: #E5E9DF; border-radius: 99px; }
progress.outcome-progress::-webkit-progress-value { background: #83AC66; border-radius: 99px; }
progress.outcome-progress::-moz-progress-bar { background: #83AC66; border-radius: 99px; }
progress.outcome-progress.over::-webkit-progress-value, progress.outcome-progress.over::-moz-progress-bar { background: var(--coral); }
.outcome-ratio-caption { display: flex; justify-content: space-between; color: #87968A; font-size: 8px; }
.outcome-notes { margin-top: 17px; padding: 12px; border-left: 3px solid #9EBB8A; background: #F1F5EA; color: #627566; font-size: 10px; line-height: 1.65; }
.outcome-actions { display: flex; justify-content: flex-end; margin-top: 15px; }
.outcome-history-card { margin-top: 17px; }
.outcome-history-card .card-head { align-items: center; }
.outcome-history-card .card-head .button { margin-left: auto; }
.outcome-history { display: grid; gap: 8px; }
.journal-row { display: grid; grid-template-columns: 1.1fr 1fr .6fr .7fr; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid #E5E9E0; border-radius: 8px; background: #FBFCF7; }
.journal-row strong { display: block; color: #405D4E; font-size: 10px; }
.journal-row small { display: block; margin-top: 4px; color: #8D9A90; font-size: 8px; }
.journal-row span { color: #75877B; font-size: 9px; }
.journal-decision { display: inline-block; justify-self: end; padding: 6px 7px; border-radius: 5px; color: #477755 !important; background: #E8F3DE; font-size: 8px !important; font-weight: 800; }
.journal-decision.caution { color: #876631 !important; background: #F6EED9; }
.journal-decision.negative { color: #934C3D !important; background: #F8E3DC; }
.empty-journal { padding: 23px 14px; color: #8E9A90; text-align: center; font-size: 10px; line-height: 1.7; }

.evidence-guardrail { display: flex; gap: 13px; align-items: flex-start; padding: 16px 18px; margin-bottom: 17px; border: 1px solid #D5E3D1; border-radius: 11px; background: #EEF5E7; }
.guardrail-icon { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 9px; color: #1A4636; background: var(--lime); font-size: 14px; font-weight: 850; }
.evidence-guardrail strong { display: block; color: #355946; font-size: 11px; }
.evidence-guardrail p { max-width: 900px; margin: 6px 0 0; color: #718676; font-size: 10px; line-height: 1.7; }
.trace-card, .evidence-card, .method-card { margin-bottom: 17px; }
.trace-card .card-head, .evidence-card .card-head, .method-card .card-head { align-items: center; }
.trace-list { display: grid; gap: 0; }
.trace-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; padding: 14px 0; border-top: 1px solid #EBEEE6; }
.trace-step { position: relative; display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid #D6E3CF; border-radius: 8px; color: #477B5A; background: #EDF5E4; font-size: 10px; font-weight: 850; }
.trace-step.warning { border-color: #E8D5B0; color: #997442; background: #F9F0DE; }
.trace-step.unavailable { border-color: #E0E5DD; color: #87958A; background: #F3F4EE; }
.trace-main strong { display: block; color: #3A5548; font-size: 10px; }
.trace-main p { margin: 5px 0 0; color: #87958A; font-size: 9px; line-height: 1.6; }
.trace-status { align-self: start; padding: 5px 7px; border-radius: 5px; color: #477453; background: #EAF3E2; font-size: 7px; font-weight: 850; letter-spacing: .6px; white-space: nowrap; }
.trace-status.warning { color: #8B6938; background: #F7EEDA; }
.trace-status.unavailable { color: #7D8982; background: #F0F2EC; }
.evidence-ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.evidence-concept-block { min-width: 0; padding: 13px; border: 1px solid #E2E9DF; border-radius: 9px; background: #FBFCF8; }
.evidence-concept-block h4 { margin: 0; color: #355448; font-size: 11px; }
.evidence-concept-block > p { margin: 6px 0 11px; color: #87968B; font-size: 9px; line-height: 1.6; }
.evidence-data-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid #ECF0E9; }
.evidence-data-row span { color: #819087; font-size: 9px; }
.evidence-data-row strong { max-width: 66%; color: #3F6552; font-size: 9px; text-align: right; overflow-wrap: anywhere; }
.evidence-entity { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 7px 8px; margin-top: 5px; border: 1px solid #E0E9DE; border-radius: 6px; color: #476457; background: #F2F7EE; font-size: 9px; }
.evidence-entity small { color: #729279; font-size: 8px; font-weight: 800; }
.method-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.method-grid > div { padding: 14px; border: 1px solid #E5EAE1; border-radius: 9px; background: #FBFCF7; }
.method-number { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; color: #476A53; background: #E7EFDC; font-size: 9px; font-weight: 850; }
.method-grid h4 { margin: 12px 0 7px; color: #38554A; font-size: 10px; }
.method-grid p { margin: 0; color: #819087; font-size: 9px; line-height: 1.7; }

.toast { position: fixed; right: 25px; bottom: 24px; z-index: 20; max-width: min(400px, calc(100vw - 32px)); padding: 13px 16px; border: 1px solid #45685A; border-radius: 9px; color: #F7F5EA; background: #183B35; box-shadow: 0 12px 40px rgba(17,42,36,.22); font-size: 11px; line-height: 1.55; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { border-color: #B76E59; background: #713E34; }
.noscript { position: fixed; inset: 0; display: grid; place-items: center; padding: 28px; color: #fff; background: var(--pine-900); z-index: 100; text-align: center; }

@media (max-width: 1300px) {
  .main-area { padding-right: 24px; padding-left: 24px; }
  .sidebar { width: 236px; min-width: 236px; }
  .main-area { width: calc(100% - 236px); }
  .hero-copy { padding: 27px 28px 24px; }
  .hero-map { padding: 15px 15px 13px; }
  .hero-map .city-map { max-height: 228px; }
  .brief-grid { grid-template-columns: minmax(0, 1.02fr) minmax(310px, .98fr); }
  .stat-item { padding: 13px 12px; }
  .stat-item small { font-size: 7px; }
  .agent-preview-steps { gap: 3px; }
  .agent-preview-steps span { gap: 3px; font-size: 7px; }
}
@media (max-width: 1050px) {
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(270px, .92fr); }
  .hero-copy h1 { font-size: 34px; }
  .hero-description { font-size: 11px; }
  .map-legend-note { display: none !important; }
  .brief-grid { grid-template-columns: 1fr; }
  .concepts-card { min-height: 0; }
  .concept-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agent-preview { margin-top: 10px; }
  .opportunity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .sidebar { position: fixed; inset: auto 0 0; width: 100%; min-width: 0; height: 64px; min-height: 0; padding: 4px 7px; flex-direction: row; overflow: visible; border-top: 1px solid #34564F; border-right: 0; }
  .brand, .rail-label, .sidebar-spacer, .side-note, .qloo-side-status, .rail-footer { display: none; }
  .nav-list { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
  .nav-item { min-height: 54px; flex-direction: column; gap: 3px; align-items: center; justify-content: center; padding: 4px 2px; border-radius: 8px; font-size: 8px; }
  .nav-item kbd { display: none; }
  .nav-icon { width: 19px; height: 19px; }
  .nav-item.active { box-shadow: inset 0 2px var(--lime); }
  .main-area { width: 100%; padding: 0 15px 86px; }
  .topbar { height: 58px; }
  .breadcrumbs { font-size: 7px; gap: 6px; }
  .breadcrumbs strong { font-size: 9px; }
  .top-actions { gap: 9px; }
  .quiet-action { font-size: 9px; gap: 4px; }
  .top-divider, .workspace-tag { display: none; }
  .avatar { width: 29px; height: 29px; margin-left: 0; font-size: 9px; }
  .hero-grid { grid-template-columns: 1fr; margin-top: 14px; }
  .hero-copy { padding: 26px 22px 22px; }
  .hero-copy h1 { font-size: clamp(29px, 7vw, 36px); }
  .hero-description { max-width: 450px; }
  .hero-map { min-height: 210px; padding: 13px 15px 12px; }
  .city-map { max-height: 190px; }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 34px; }
  .stat-item { min-height: 71px; border-bottom: 1px solid #E4E8DF; }
  .stat-item:nth-child(2) { border-right: 0; }
  .stat-item:nth-child(3), .stat-item:nth-child(4) { border-bottom: 0; }
  .section-title-row, .subpage-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .head-actions { width: 100%; }
  .section-title-row h2, .subpage-head h1 { font-size: 26px; }
  .step-badge { align-self: flex-start; }
  .brief-card, .concepts-card, .inventory-card, .pilot-form-card, .pilot-result-card, .outcome-history-card, .trace-card, .evidence-card, .method-card { padding: 15px; }
  .concept-options { grid-template-columns: 1fr; }
  .agent-preview-steps { gap: 7px; }
  .agent-preview-steps span { gap: 5px; font-size: 8px; }
  .inventory-tools { align-items: stretch; flex-direction: column; }
  .manual-add { grid-template-columns: 1fr 1fr; }
  .manual-add .field:nth-child(3) { grid-column: 1 / 2; }
  .manual-add .add-record { grid-column: 2 / 3; grid-row: 2; justify-self: end; }
  .form-submit-row { align-items: stretch; flex-direction: column; }
  .form-submit-row .button { width: 100%; }
  .page-footer { flex-direction: column; align-items: flex-start; padding-bottom: 4px; }
  .opportunity-grid { grid-template-columns: 1fr; }
  .pilot-layout { grid-template-columns: 1fr; }
  .pilot-result-card { min-height: 315px; }
  .evidence-ledger { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr 1fr; }
  .journal-row { grid-template-columns: 1fr 1fr; }
  .journal-decision { justify-self: start; }
  .outcome-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toast { right: 12px; bottom: 77px; }
}
@media (max-width: 430px) {
  .main-area { padding-left: 10px; padding-right: 10px; }
  .hero-copy { padding: 23px 18px 20px; }
  .hero-copy h1 { letter-spacing: -1.2px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .top-actions { gap: 6px; }
  .quiet-action { max-width: 82px; font-size: 8px; }
  .two-col { grid-template-columns: 1fr; }
  .facility-list { grid-template-columns: 1fr 1fr; }
  .facility-head { flex-direction: column; gap: 4px; }
  .agent-preview-steps { flex-wrap: wrap; }
  .agent-preview-steps > i { display: none; }
  .method-grid { grid-template-columns: 1fr; }
  .outcome-metrics { grid-template-columns: 1fr; }
  .inventory-table th, .inventory-table td { padding-left: 8px; padding-right: 8px; }
  .stat-item { padding: 11px 8px; gap: 8px; }
  .stat-icon { width: 28px; height: 28px; flex-basis: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  body { background: #fff; }
  .sidebar, .topbar, .hero-grid, .stat-strip, #view-workspace, .subpage-head > button, .head-actions, .button, .toast { display: none !important; }
  .main-area { width: 100%; padding: 0; }
  .view { display: block !important; page-break-after: always; }
  #view-opportunities, #view-evidence { display: block !important; }
  .card, .opportunity-card { break-inside: avoid; box-shadow: none; }
  .opportunity-grid { grid-template-columns: repeat(2, 1fr); }
}

/* -------------------------------------------------------------------------
   VacancyLab v2 — architectural editorial system + public landing experience
   ------------------------------------------------------------------------- */
:root {
  --vl-paper: #F3F0E7;
  --vl-surface: #FFFDF8;
  --vl-ink: #1D2924;
  --vl-body: #293B33;
  --vl-muted: #526259;
  --vl-border: #D7D0C3;
  --vl-rust: #B9432D;
  --vl-rust-dark: #903622;
  --vl-pine: #285244;
  --vl-sage: #E1E9DB;
  --vl-signal: #E2EE7A;
  --vl-sky: #DCE8E8;
  --vl-radius: 8px;
  --vl-shadow: 0 12px 32px rgba(29, 41, 36, 0.065);
  color-scheme: light;
}

html { scroll-padding-top: 92px; background: var(--vl-paper); }
body { background: var(--vl-paper); color: var(--vl-ink); font-family: "DM Sans", Inter, ui-sans-serif, system-ui, sans-serif; font-size: 15px; line-height: 1.65; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { text-underline-offset: 4px; }
[hidden] { display: none !important; }
::selection { color: var(--vl-ink); background: var(--vl-signal); }
.app-shell { display: block; min-height: 100vh; }
.sidebar { display: none !important; }
.main-area { width: 100%; max-width: none; min-width: 0; margin: 0; padding: 0 0 28px; }
.view { animation: vl-page-enter .42s cubic-bezier(.2,.72,.18,1) both; }
@keyframes vl-page-enter { from { opacity: .72; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Public landing experience */
.landing-page { width: 100%; overflow: clip; background: var(--vl-paper); }
.landing-nav { position: sticky; z-index: 50; top: 0; display: grid; grid-template-columns: minmax(245px, 1fr) auto minmax(180px, 1fr); align-items: center; gap: 24px; min-height: 82px; padding: 12px clamp(18px, 4.2vw, 72px); border-bottom: 1px solid rgba(29,41,36,.14); background: rgba(243,240,231,.93); backdrop-filter: blur(16px); }
.landing-brand { display: inline-flex; width: fit-content; align-items: center; gap: 12px; color: var(--vl-ink); text-decoration: none; }
.landing-brand-mark { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid #A9B2A5; border-radius: 7px; color: var(--vl-pine); background: #E7E5D9; }
.landing-brand-mark svg { width: 31px; height: 31px; }
.landing-brand-type strong { display: block; color: var(--vl-ink); font: 700 22px/1 "Space Grotesk", sans-serif; letter-spacing: -.9px; }
.landing-brand-type strong span,.landing-footer-brand span { color: var(--vl-rust); }
.landing-brand-type small { display: block; margin-top: 7px; color: #67736A; font: 500 9px/1 "DM Mono", monospace; letter-spacing: 1.1px; }
.landing-links { display: flex; align-items: center; justify-content: center; gap: clamp(14px,2vw,31px); }
.landing-links a { color: #3D4C43; font-size: 12px; font-weight: 700; text-decoration: none; transition: color .18s ease; }
.landing-links a:hover { color: var(--vl-rust); }
.landing-nav-cta { justify-self: end; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 13px; min-height: 46px; padding: 0 17px; border: 1px solid transparent; border-radius: 4px; font-size: 13px; font-weight: 800; text-decoration: none; transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button:focus-visible,.landing-links a:focus-visible,.text-arrow:focus-visible,.integrity-link:focus-visible { outline: 3px solid var(--vl-rust); outline-offset: 3px; }
.button-primary { color: #FFFDF8; background: var(--vl-rust); border-color: var(--vl-rust); box-shadow: 0 4px 0 rgba(144,54,34,.1); }
.button-primary:hover { color: white; background: var(--vl-rust-dark); border-color: var(--vl-rust-dark); box-shadow: 0 7px 18px rgba(144,54,34,.18); }
.landing-nav-cta { min-height: 43px; color: #FFFDF8; background: var(--vl-ink); border-color: var(--vl-ink); }
.landing-nav-cta:hover { color: #fff; background: var(--vl-pine); }
.landing-hero { position: relative; display: grid; grid-template-columns: minmax(0,1.06fr) minmax(0,.94fr); align-items: center; gap: clamp(20px, 4vw, 66px); min-height: 610px; padding: clamp(55px,7vw,100px) clamp(18px, 7.1vw, 118px) 72px; border-bottom: 1px solid var(--vl-border); }
.landing-hero::before { position: absolute; inset: 0; content: ""; pointer-events: none; opacity: .16; background-image: linear-gradient(to right, rgba(40,82,68,.18) 1px, transparent 1px), linear-gradient(to bottom, rgba(40,82,68,.18) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(90deg, black, transparent 83%); }
.landing-hero-copy { position: relative; z-index: 2; max-width: 690px; }
.landing-overline,.section-marker { display: flex; align-items: center; gap: 11px; color: var(--vl-rust); font: 700 10px/1.4 "DM Mono", monospace; letter-spacing: 1.05px; }
.overline-rule { width: 24px; height: 2px; background: var(--vl-rust); }
.overline-index { margin-left: auto; color: #718075; font-size: 9px; }
.landing-hero h1 { max-width: 720px; margin: 29px 0 25px; color: var(--vl-ink); font: 700 clamp(46px,5.5vw,80px)/.99 "Space Grotesk", sans-serif; letter-spacing: -.075em; text-wrap: balance; }
.landing-hero h1 em { color: var(--vl-rust); font-weight: 600; font-style: normal; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; text-decoration-color: #D89B82; }
.landing-lede { max-width: 570px; margin: 0; color: #44534A; font-size: clamp(16px,1.35vw,19px); line-height: 1.75; }
.landing-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 30px; }
.landing-primary { min-height: 53px; padding: 0 22px; }
.landing-quiet { color: var(--vl-ink); background: transparent; border-color: #B5B7A9; }
.landing-quiet:hover { background: #E8E4D8; border-color: var(--vl-ink); }
.landing-trust-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 27px; color: #53665A; font-size: 11px; font-weight: 650; }
.trust-mark { display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid #6A8974; border-radius: 50%; color: var(--vl-pine); font-weight: 900; }
.trust-divider { height: 14px; width: 1px; margin: 0 3px; background: #C7C1B5; }
.landing-hero-visual { position: relative; z-index: 1; min-width: 0; padding: 18px 18px 15px; border: 1px solid #345A4A; background: var(--vl-ink); box-shadow: 14px 14px 0 #D7D1C4; transform: rotate(.6deg); animation: vl-visual-arrive .75s .08s both cubic-bezier(.18,.8,.18,1); }
@keyframes vl-visual-arrive { from { opacity: 0; transform: translateY(22px) rotate(2deg); } to { opacity: 1; transform: translateY(0) rotate(.6deg); } }
.visual-topline,.visual-bottomline { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: #C1D0BE; font: 500 9px/1.4 "DM Mono", monospace; letter-spacing: .8px; }
.visual-status { display: inline-flex; align-items: center; gap: 7px; color: #E2EE7A; }
.visual-status i,.float-mini-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--vl-signal); box-shadow: 0 0 0 4px rgba(226,238,122,.09); }
.landing-city-map { display: block; width: 100%; height: auto; max-height: 365px; overflow: visible; margin: 7px 0 3px; }
.map-road { fill: none; stroke: #788C7D; stroke-width: 24; opacity: .6; }
.map-road-center { fill: none; stroke: #E6E1D2; stroke-width: 17; }
.map-building rect { fill: #D6DECC; stroke: #F3F0E7; stroke-width: .9; }
.map-building path { fill: #A4BDAA; }
.vacant-site rect { fill: var(--vl-signal); stroke: #F5F6D9; stroke-width: 2; }
.vacant-site path { fill: #B7C85B; stroke: #526539; stroke-width: 1; }
.parcel-route { fill: none; stroke: var(--vl-signal); stroke-width: 1.7; stroke-dasharray: 5 6; animation: vl-route-dash 16s linear infinite; }
@keyframes vl-route-dash { to { stroke-dashoffset: -176; } }
.route-node { fill: var(--vl-signal); stroke: var(--vl-ink); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: vl-node-pulse 2.8s ease-in-out infinite; }
.route-node-end { animation-delay: .55s; }
@keyframes vl-node-pulse { 50% { transform: scale(1.45); opacity: .78; } }
.map-callout rect { fill: #FFFDF8; stroke: #D7D0C3; stroke-width: .7; }
.map-callout circle { fill: var(--vl-rust); }
.map-callout text { fill: var(--vl-ink); font: 700 9px "DM Mono", monospace; letter-spacing: .5px; }
.map-callout .map-callout-sub { font: 500 8px "DM Sans", sans-serif; letter-spacing: 0; }
.inventory-callout rect { fill: #EAE6D8; }
.inventory-callout text { fill: #405A4B; font: 600 8px "DM Mono", monospace; }
.map-north { fill: #9CB7A6; font: 500 9px "DM Mono", monospace; }
.visual-bottomline { padding-top: 11px; border-top: 1px solid #3F564A; color: #C0CDBD; font-size: 8px; letter-spacing: .1px; }
.visual-bottomline > span { display: inline-flex; align-items: center; gap: 6px; }
.legend-swatch { display: inline-block; width: 8px; height: 8px; }
.legend-swatch.vacancy { background: var(--vl-signal); }
.legend-swatch.inventory { background: #A4BDAA; }
.schematic-label { color: #8FA495; font-size: 7px; margin-left: auto; }
.visual-float-card { position: absolute; z-index: 3; display: flex; flex-direction: column; padding: 11px 13px; border: 1px solid #D7D0C3; color: var(--vl-ink); background: #FFFDF8; box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.float-card-one { top: 40%; right: -24px; transform: rotate(2deg); animation: vl-float 5s ease-in-out infinite; }
.float-card-kicker { color: var(--vl-rust); font: 600 8px "DM Mono", monospace; letter-spacing: .9px; }
.float-card-one strong { margin-top: 7px; font: 700 15px/1.2 "Space Grotesk", sans-serif; }
.float-card-two { left: -23px; bottom: 17%; flex-direction: row; align-items: center; gap: 10px; padding: 10px 13px; font-size: 10px; font-weight: 800; animation: vl-float 5s 1s ease-in-out infinite; }
@keyframes vl-float { 50% { transform: translateY(-6px) rotate(0deg); } }
.hero-index { position: absolute; bottom: 22px; left: clamp(18px,7.1vw,118px); display: flex; flex-wrap: wrap; align-items: center; gap: 16px; color: var(--vl-rust); font: 700 9px "DM Mono", monospace; letter-spacing: .6px; }
.hero-index span { color: #728075; font-weight: 500; }

.section-wrap { padding: clamp(62px,8vw,112px) clamp(18px,10vw,164px); }
.section-marker { gap: 12px; letter-spacing: .95px; }
.section-marker > span { color: var(--vl-ink); }
.section-marker > i { display: block; width: 27px; height: 1px; background: var(--vl-rust); }
.problem-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,.72fr); gap: clamp(30px,8vw,125px); align-items: start; margin-top: 27px; }
.problem-grid h2,.method-intro h2,.capabilities-heading h2,.sandbox-copy h2 { max-width: 680px; margin: 0; font: 700 clamp(34px,4.25vw,58px)/1.05 "Space Grotesk", sans-serif; letter-spacing: -.058em; text-wrap: balance; }
.problem-grid h2 em,.method-intro h2 em,.landing-final-cta h2 em { color: var(--vl-rust); font-style: normal; }
.problem-copy { padding-top: 4px; }
.problem-copy p,.method-intro p,.sandbox-copy p,.capabilities-heading p { margin: 0 0 17px; color: #526259; font-size: 15px; line-height: 1.8; }
.problem-copy strong { color: var(--vl-ink); font-weight: 800; }
.friction-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; margin-top: 45px; }
.friction-card { position: relative; display: flex; min-height: 245px; flex-direction: column; align-items: flex-start; padding: 23px; overflow: hidden; border: 1px solid var(--vl-border); background: var(--vl-surface); transition: transform .3s cubic-bezier(.2,.7,.2,1), border-color .3s ease, box-shadow .3s ease; }
.friction-card:hover { transform: translateY(-6px); border-color: #B9432D; box-shadow: var(--vl-shadow); }
.friction-number { color: #68776C; font: 500 9px "DM Mono", monospace; letter-spacing: .5px; }
.friction-icon { display: grid; place-items: center; width: 42px; height: 42px; margin: 21px 0 15px; color: var(--vl-rust); background: #F4E4DC; font-size: 22px; }
.friction-card:nth-child(2) .friction-icon { color: var(--vl-pine); background: var(--vl-sage); }
.friction-card:nth-child(3) .friction-icon { color: #76551E; background: #F1E4C7; }
.friction-card h3 { max-width: 280px; margin: 0 0 10px; color: var(--vl-ink); font: 700 19px/1.23 "Space Grotesk", sans-serif; letter-spacing: -.7px; }
.friction-card p { margin: 0; color: #5B685F; font-size: 13px; line-height: 1.75; }
.friction-line { position: absolute; right: 23px; bottom: 0; left: 23px; height: 3px; background: var(--vl-rust); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.friction-card:hover .friction-line { transform: scaleX(1); }
.landing-thesis { position: relative; overflow: hidden; color: var(--vl-paper); background: var(--vl-ink); }
.thesis-inner { position: relative; max-width: 1320px; margin: auto; padding: clamp(65px,8vw,110px) clamp(18px,10vw,164px); }
.thesis-inner::after { position: absolute; top: -110px; right: -70px; width: 440px; height: 440px; border: 1px solid rgba(226,238,122,.22); border-radius: 50%; content: ""; box-shadow: 0 0 0 28px rgba(226,238,122,.025),0 0 0 61px rgba(226,238,122,.02),0 0 0 94px rgba(226,238,122,.015); pointer-events: none; }
.thesis-index { color: var(--vl-signal); font: 500 9px "DM Mono", monospace; letter-spacing: 1px; }
.thesis-inner h2 { position: relative; z-index: 1; max-width: 900px; margin: 25px 0 23px; color: #FFFDF8; font: 700 clamp(37px,5.4vw,74px)/1.03 "Space Grotesk", sans-serif; letter-spacing: -.065em; }
.thesis-inner h2 em { color: var(--vl-signal); font-style: normal; }
.thesis-inner > p { position: relative; z-index: 1; max-width: 750px; color: #D0D8CC; font-size: 16px; line-height: 1.8; }
.text-arrow,.integrity-link { display: inline-flex; align-items: center; gap: 20px; margin-top: 15px; padding: 9px 0; border: 0; border-bottom: 1px solid currentColor; color: var(--vl-signal); background: transparent; font-weight: 800; font-size: 13px; }
.text-arrow:hover,.integrity-link:hover { gap: 27px; }
.text-arrow span,.integrity-link span { transition: transform .2s ease; }
.text-arrow:hover span,.integrity-link:hover span { transform: translate(3px,-3px); }
.thesis-stamp { position: absolute; right: clamp(18px,10vw,164px); bottom: 28px; z-index: 1; display: grid; place-items: center; width: 108px; height: 108px; border: 1px solid #69806B; border-radius: 50%; color: var(--vl-signal); text-align: center; font: 700 10px/1.5 "DM Mono", monospace; transform: rotate(11deg); }
.thesis-stamp span { color: #CDD6C9; font-size: 6px; letter-spacing: .8px; }
.method-intro { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,.58fr); gap: 45px; align-items: end; margin-top: 28px; }
.method-intro p { margin: 0 0 5px; max-width: 450px; }
.method-explorer { display: grid; grid-template-columns: minmax(280px,.85fr) minmax(0,1.15fr); gap: 28px; margin-top: 43px; padding: 17px; border: 1px solid var(--vl-border); background: #E9E5D9; }
.method-step-list { display: flex; flex-direction: column; gap: 6px; }
.method-step { display: grid; grid-template-columns: 40px minmax(0,1fr) 20px; align-items: center; gap: 13px; min-height: 83px; padding: 13px 14px; border: 1px solid transparent; color: var(--vl-ink); background: transparent; text-align: left; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.method-step:hover { border-color: #C0B9AB; background: rgba(255,253,248,.62); }
.method-step.active { border-color: var(--vl-ink); background: var(--vl-surface); box-shadow: 3px 3px 0 var(--vl-ink); transform: translate(-2px,-2px); }
.method-step > span:first-child { display: grid; place-items: center; width: 34px; height: 34px; color: var(--vl-rust); background: #F2E1D9; font: 500 11px "DM Mono", monospace; }
.method-step:nth-child(2) > span:first-child { color: var(--vl-pine); background: var(--vl-sage); }
.method-step:nth-child(3) > span:first-child { color: #71511D; background: #F1E4C7; }
.method-step:nth-child(4) > span:first-child { color: #385A6A; background: var(--vl-sky); }
.method-step strong { display: block; color: var(--vl-ink); font: 700 16px/1.3 "Space Grotesk", sans-serif; }
.method-step small { display: block; margin-top: 4px; color: #657267; font-size: 11px; line-height: 1.45; }
.method-step > i { color: #778076; font-style: normal; transition: transform .2s ease; }
.method-step.active > i { color: var(--vl-rust); transform: translate(2px,-2px); }
.method-detail { position: relative; min-height: 370px; padding: clamp(24px,4vw,48px); border: 1px solid #D6D0C3; background: var(--vl-surface); overflow: hidden; }
.method-detail::after { position: absolute; right: -49px; bottom: -66px; width: 192px; height: 192px; border: 1px solid #D8D1C4; border-radius: 50%; box-shadow: 0 0 0 21px #D8D1C433,0 0 0 43px #D8D1C422; content: ""; pointer-events: none; }
.method-detail-top { display: flex; justify-content: space-between; align-items: center; color: var(--vl-rust); font: 500 9px "DM Mono", monospace; letter-spacing: 1px; }
.method-detail-orbit { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #D5CFC0; border-radius: 50%; color: var(--vl-rust); font-size: 22px; animation: vl-orbit 10s linear infinite; }
@keyframes vl-orbit { to { transform: rotate(360deg); } }
.method-panel { position: relative; z-index: 1; padding-top: 31px; animation: vl-panel-appear .34s ease both; }
@keyframes vl-panel-appear { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
.method-panel h3 { max-width: 440px; margin: 0 0 16px; color: var(--vl-ink); font: 700 clamp(25px,3vw,37px)/1.1 "Space Grotesk", sans-serif; letter-spacing: -.045em; }
.method-panel p { max-width: 520px; color: #526259; font-size: 14px; line-height: 1.85; }
.method-output { display: flex; flex-direction: column; gap: 7px; margin-top: 22px; padding-top: 17px; border-top: 1px solid var(--vl-border); }
.method-output span { color: var(--vl-rust); font: 500 9px "DM Mono", monospace; letter-spacing: .85px; }
.method-output strong { max-width: 500px; color: var(--vl-ink); font-size: 13px; }
.landing-sandbox { color: var(--vl-ink); background: #E8E4D8; }
.sandbox-grid { display: grid; grid-template-columns: minmax(0,.84fr) minmax(0,1.16fr); gap: clamp(35px,8vw,116px); align-items: center; margin-top: 30px; }
.sandbox-copy h2 { margin-bottom: 19px; }
.sandbox-disclaimer { display: flex; align-items: flex-start; gap: 10px; margin-top: 24px; padding-top: 17px; border-top: 1px solid #CDC7B8; color: #59675C; font-size: 11px; line-height: 1.65; }
.sandbox-disclaimer > span:first-child { display: grid; place-items: center; flex: 0 0 18px; height: 18px; border: 1px solid #9B8A5B; border-radius: 50%; color: #765B20; font-weight: 800; }
.sandbox-console { border: 1px solid var(--vl-ink); background: var(--vl-surface); box-shadow: 9px 9px 0 var(--vl-ink); }
.console-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 17px; color: #E7E8D8; background: var(--vl-ink); font: 500 8px "DM Mono", monospace; letter-spacing: .6px; }
.console-top > span:first-child { display: flex; gap: 4px; }
.console-top > span:first-child i { width: 6px; height: 6px; border-radius: 50%; background: #B9432D; }
.console-top > span:first-child i:nth-child(2) { background: #D6B169; }
.console-top > span:first-child i:nth-child(3) { background: #A9C6A2; }
.console-top > span:last-child { color: var(--vl-signal); }
.sandbox-fields { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 13px; padding: 21px 21px 18px; }
.sandbox-fields label { display: block; color: #5C695F; font: 700 9px/1.4 "DM Mono", monospace; letter-spacing: .4px; }
.sandbox-fields label > span { display: block; color: #818D81; font-size: 8px; }
.sandbox-fields input,.sandbox-fields select { display: block; width: 100%; min-width: 0; min-height: 43px; margin-top: 8px; padding: 9px; border: 1px solid #BBB6A9; border-radius: 3px; color: var(--vl-ink); background: white; font: 700 15px "DM Sans", sans-serif; }
.sandbox-fields input:focus,.sandbox-fields select:focus { outline: 3px solid var(--vl-rust); outline-offset: 2px; }
.sandbox-output { margin: 0 21px; padding: 18px 0 19px; border-top: 1px solid var(--vl-border); border-bottom: 1px solid var(--vl-border); }
.sandbox-output > div:first-child { display: flex; flex-direction: column; gap: 5px; }
.sandbox-output > div:first-child span { color: #68766B; font: 500 9px "DM Mono", monospace; letter-spacing: .6px; }
.sandbox-output > div:first-child strong { color: var(--vl-rust); font: 700 43px/1 "Space Grotesk", sans-serif; letter-spacing: -2px; }
.allocation-graphic { display: flex; gap: 7px; margin-top: 16px; }
.allocation-graphic i { display: block; flex: 1; height: 10px; background: var(--vl-pine); animation: vl-bar-in .4s both; animation-delay: var(--allocation-delay,0ms); }
.allocation-graphic i:nth-child(2) { background: #B6C86A; }
.allocation-graphic i:nth-child(3) { background: var(--vl-rust); }
@keyframes vl-bar-in { from { opacity: .3; transform: scaleX(.75); transform-origin: left; } to { opacity: 1; transform: scaleX(1); } }
.sandbox-result-note { margin-top: 12px; color: #5A685F; font-size: 11px; line-height: 1.65; }
.sandbox-cta { width: calc(100% - 42px); margin: 19px 21px 21px; }
.landing-capabilities { padding-bottom: clamp(65px,8vw,110px); }
.capabilities-heading { display: flex; align-items: end; justify-content: space-between; gap: 34px; margin-top: 28px; }
.capabilities-heading p { max-width: 440px; margin: 0 0 5px; }
.capability-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-top: 37px; }
.capability-card { display: flex; min-height: 265px; flex-direction: column; align-items: flex-start; padding: 20px; text-align: left; color: var(--vl-ink); background: var(--vl-surface); border: 1px solid var(--vl-border); border-radius: 0; transition: background .23s ease, border-color .23s ease, transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease; }
.capability-card:hover { z-index: 1; transform: translateY(-5px); border-color: var(--vl-rust); box-shadow: 0 10px 26px rgba(29,41,36,.07); background: #FFF !important; }
.capability-id { color: #69776B; font: 500 9px "DM Mono", monospace; }
.capability-glyph { display: grid; place-items: center; width: 46px; height: 46px; margin: 23px 0 16px; color: var(--vl-rust); background: #F5E6DD; font-size: 25px; }
.capability-card:nth-child(2) .capability-glyph { color: var(--vl-pine); background: var(--vl-sage); }
.capability-card:nth-child(3) .capability-glyph { color: #785720; background: #F3E7D0; }
.capability-card:nth-child(4) .capability-glyph { color: #365B6A; background: var(--vl-sky); }
.capability-card h3 { margin: 0 0 9px; color: var(--vl-ink); font: 700 19px "Space Grotesk", sans-serif; letter-spacing: -.6px; }
.capability-card p { flex: 1; margin: 0 0 19px; color: #59675E; font-size: 12px; line-height: 1.75; }
.capability-link { display: flex; width: 100%; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--vl-border); color: var(--vl-rust); font-size: 11px; font-weight: 800; }
.capability-link b { transition: transform .2s ease; }
.capability-card:hover .capability-link b { transform: translate(3px,-3px); }
.landing-integrity { display: grid; grid-template-columns: 110px minmax(0,1.1fr) minmax(255px,.75fr); align-items: start; gap: clamp(22px,4vw,58px); padding: clamp(55px,7vw,92px) clamp(18px,8vw,128px); color: var(--vl-paper); background: #285244; }
.integrity-stamp { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.integrity-stamp > span { display: grid; place-items: center; width: 76px; height: 76px; border: 1px solid #A5BEA2; border-radius: 50%; color: var(--vl-signal); font: 700 27px "Space Grotesk", sans-serif; transform: rotate(-8deg); }
.integrity-stamp i { color: #B8CCB8; font: 500 7px "DM Mono", monospace; font-style: normal; text-align: center; letter-spacing: .5px; }
.light-marker { color: var(--vl-signal); }
.light-marker > span { color: var(--vl-paper); }
.light-marker > i { background: var(--vl-signal); }
.integrity-copy h2 { margin: 23px 0 17px; color: #FFFDF8; font: 700 clamp(32px,4vw,53px)/1.05 "Space Grotesk",sans-serif; letter-spacing: -.055em; }
.integrity-copy h2 em { color: var(--vl-signal); font-style: normal; }
.integrity-copy p { max-width: 670px; color: #DAE3D6; font-size: 13px; line-height: 1.85; }
.integrity-link { color: var(--vl-signal); }
.integrity-ledger { display: grid; gap: 0; align-self: center; border-top: 1px solid #638572; }
.integrity-ledger > div { display: flex; gap: 12px; align-items: center; padding: 15px 0; border-bottom: 1px solid #638572; }
.ledger-key { display: grid; place-items: center; flex: 0 0 35px; height: 35px; color: var(--vl-ink); font: 500 9px "DM Mono", monospace; }
.qloo-key { background: var(--vl-signal); }.inventory-key { background: #D2E1CD; }.hypothesis-key { background: #EBC3B4; }.outcome-key { background: #D2E0E6; }
.integrity-ledger strong { display: block; color: #FFFDF8; font-size: 12px; }
.integrity-ledger small { display: block; margin-top: 4px; color: #CFDFD0; font-size: 10px; line-height: 1.5; }
.landing-final-cta { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding: clamp(54px,7vw,90px) clamp(18px,10vw,164px); border-bottom: 1px solid var(--vl-border); }
.landing-final-cta h2 { margin: 23px 0 13px; color: var(--vl-ink); font: 700 clamp(39px,5vw,65px)/1 "Space Grotesk",sans-serif; letter-spacing: -.065em; }
.landing-final-cta p { color: #526259; font-size: 14px; }
.landing-final-cta .button { flex: 0 0 auto; }
.landing-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 23px clamp(18px,4.2vw,72px); color: #5F6C61; font: 500 9px "DM Mono", monospace; letter-spacing: .5px; }
.landing-footer-brand { color: var(--vl-ink); font: 700 17px "Space Grotesk",sans-serif; text-decoration: none; letter-spacing: -.6px; }

/* Smooth reveal and motion system. Motion follows the user's OS preference. */
html.motion-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1); }
html.motion-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }
html.motion-ready .friction-card:nth-child(2),html.motion-ready .capability-card:nth-child(2) { transition-delay: 65ms; }
html.motion-ready .friction-card:nth-child(3),html.motion-ready .capability-card:nth-child(3) { transition-delay: 125ms; }
html.motion-ready .capability-card:nth-child(4) { transition-delay: 185ms; }

/* Application command bar: the product workspace is intentionally separate from the public landing page. */
.app-topbar { position: sticky; top: 0; z-index: 45; display: flex; min-height: 76px; height: auto; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 22px; padding: 10px clamp(16px,3vw,42px); border-bottom: 1px solid var(--vl-border); background: rgba(243,240,231,.96); backdrop-filter: blur(15px); }
.app-shell.home-mode .app-topbar { display: none !important; }
.app-brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; padding: 2px 0; border: 0; color: var(--vl-ink); background: transparent; text-align: left; }
.app-brand-mark { display: grid; place-items: center; width: 39px; height: 39px; color: var(--vl-paper); background: var(--vl-ink); font: 700 11px "DM Mono",monospace; }
.app-brand strong { display: block; color: var(--vl-ink); font: 700 16px "Space Grotesk",sans-serif; letter-spacing: -.5px; }
.app-brand small { display: block; margin-top: 3px; color: #637168; font: 500 7px "DM Mono",monospace; letter-spacing: .7px; }
.app-nav { display: flex; align-items: center; gap: 3px; overflow-x: auto; scrollbar-width: thin; }
.app-nav .nav-item { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 12px; white-space: nowrap; border: 1px solid transparent; border-radius: 3px; color: #435148; background: transparent; font-size: 12px; font-weight: 700; transition: color .18s ease,background .18s ease,border-color .18s ease; }
.app-nav .nav-item > span { color: var(--vl-rust); font: 500 8px "DM Mono",monospace; }
.app-nav .nav-item:hover { color: var(--vl-ink); background: #E8E4D8; }
.app-nav .nav-item.active { color: #FFFDF8; background: var(--vl-ink); border-color: var(--vl-ink); box-shadow: none; }
.app-nav .nav-item.active > span { color: var(--vl-signal); }
.top-actions { display: flex; align-items: center; gap: 12px; }
.workspace-tag { display: inline-flex; align-items: center; gap: 7px; color: #55645A; font: 500 8px "DM Mono",monospace; letter-spacing: .45px; white-space: nowrap; }
.workspace-tag-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #64865F; }
.quiet-action { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 10px; border: 1px solid #C7C0B2; border-radius: 3px; color: var(--vl-ink); background: transparent; font-size: 11px; font-weight: 800; }
.quiet-action:hover { border-color: var(--vl-rust); background: #F2E5DB; }
.app-top-status { color: var(--vl-rust); font: 500 8px "DM Mono",monospace; letter-spacing: .6px; white-space: nowrap; }
/* Remove the old marketing-sized hero from the operational workspace; the landing page owns that story. */
#view-workspace > .hero-grid { display: none !important; }
#view-workspace > .stat-strip { margin-top: 26px; margin-bottom: 28px; }
.app-page-intro { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding-top: 30px; }
.app-page-intro .section-eyebrow { color: var(--vl-rust); font: 500 9px "DM Mono",monospace; letter-spacing: .7px; }
.app-page-intro h1 { margin: 8px 0 8px; font: 700 clamp(34px,4vw,48px)/1.02 "Space Grotesk",sans-serif; letter-spacing: -.055em; }
.app-page-intro p { max-width: 730px; margin: 0; color: #566359; font-size: 14px; line-height: 1.7; }
.app-page-intro .app-intro-code { flex: 0 0 auto; color: var(--vl-rust); font: 500 9px "DM Mono",monospace; letter-spacing: .5px; }
.main-area > .view:not(.landing-page) { max-width: 1570px; margin: auto; padding: 0 clamp(16px,3vw,42px) 35px; }
.main-area > .view:not(.landing-page) h1 { color: var(--vl-ink); font: 700 clamp(30px,3.4vw,46px)/1.05 "Space Grotesk",sans-serif; letter-spacing: -.055em; }
.main-area > .view:not(.landing-page) h2 { color: var(--vl-ink); font: 700 clamp(22px,2vw,29px)/1.15 "Space Grotesk",sans-serif; letter-spacing: -.04em; }
.main-area > .view:not(.landing-page) h3 { color: var(--vl-ink); font-family: "Space Grotesk",sans-serif; font-weight: 700; }
.main-area > .view:not(.landing-page) p { color: #526259; }
.main-area > .view:not(.landing-page) .card { border-color: var(--vl-border); border-radius: 5px; box-shadow: 0 5px 18px rgba(29,41,36,.035); background: var(--vl-surface); }
.main-area > .view:not(.landing-page) .button-primary { color: #FFFDF8; background: var(--vl-rust); border-color: var(--vl-rust); }
.main-area > .view:not(.landing-page) .button-primary:hover { background: var(--vl-rust-dark); }
.main-area > .view:not(.landing-page) .field input,.main-area > .view:not(.landing-page) .field select,.main-area > .view:not(.landing-page) .field textarea { min-height: 43px; color: var(--vl-ink); background: #FFF; border-color: #B9B3A7; border-radius: 3px; font-size: 13px; }
.main-area > .view:not(.landing-page) .field > span { color: #4D5B51; font-size: 10px; }
.main-area > .view:not(.landing-page) .opportunity-card::before { background: var(--vl-rust); }
.main-area > .view:not(.landing-page) .opportunity-card:nth-child(3n+2)::before { background: var(--vl-pine); }
.main-area > .view:not(.landing-page) .opportunity-card:nth-child(3n+3)::before { background: #A98A45; }
.main-area > .view:not(.landing-page) .subpage-head { padding-top: 35px; }
.main-area > .view:not(.landing-page) .subpage-head p { color: #536259; font-size: 13px; }
.main-area > .view:not(.landing-page) .section-eyebrow { color: var(--vl-rust); }
.main-area > .view:not(.landing-page) .page-footer { font-size: 9px; color: #5B6A5E; }
.main-area > .view:not(.landing-page) .form-submit-row { border-color: var(--vl-border); }
.main-area > .view:not(.landing-page) .side-note,
.main-area > .view:not(.landing-page) .agent-preview { border-radius: 3px; }

/* Responsiveness: no fixed rail on tablets and no compressed controls on phones. */
@media (max-width: 1200px) {
  .landing-nav { grid-template-columns: auto 1fr auto; gap: 14px; }
  .landing-links { gap: 13px; }
  .landing-links a { font-size: 11px; }
  .landing-hero { grid-template-columns: minmax(0,1fr) minmax(0,.9fr); padding-inline: clamp(24px,4vw,60px); }
  .hero-index { left: clamp(24px,4vw,60px); }
  .landing-integrity { grid-template-columns: 80px minmax(0,1fr); }
  .integrity-ledger { grid-column: 2; }
  .capability-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .app-topbar { align-items: center; }
  .app-nav { order: 3; flex: 1 0 100%; }
  .app-topbar { gap: 9px 16px; }
}
@media (max-width: 850px) {
  .landing-nav { grid-template-columns: 1fr auto; min-height: 72px; }
  .landing-links { grid-column: 1/-1; grid-row: 2; justify-content: flex-start; padding: 3px 0 7px; overflow-x: auto; }
  .landing-nav-cta { grid-column: 2; grid-row: 1; }
  .landing-hero { grid-template-columns: 1fr; gap: 45px; padding-top: 60px; padding-bottom: 86px; }
  .landing-hero-copy { max-width: 780px; }
  .landing-hero-visual { width: min(100%,700px); margin: 0 auto; transform: none; }
  .hero-index { bottom: 25px; }
  .problem-grid,.method-intro,.sandbox-grid { grid-template-columns: 1fr; gap: 25px; }
  .method-explorer { grid-template-columns: 1fr; }
  .method-detail { min-height: 300px; }
  .landing-integrity { grid-template-columns: 65px minmax(0,1fr); }
  .integrity-stamp > span { width: 56px; height: 56px; font-size: 21px; }
  .integrity-stamp i { font-size: 6px; }
  .app-topbar { position: sticky; }
  .app-brand { flex: 1 0 auto; }
  .app-nav { order: 3; flex-basis: 100%; }
  .top-actions { margin-left: auto; }
}
@media (max-width: 600px) {
  .landing-nav { gap: 10px; padding: 10px 14px; }
  .landing-brand-mark { width: 38px; height: 38px; }
  .landing-brand-type strong { font-size: 19px; }
  .landing-brand-type small { font-size: 7px; letter-spacing: .6px; }
  .landing-nav-cta { min-height: 38px; padding: 0 10px; font-size: 11px; }
  .landing-links { gap: 18px; }
  .landing-links a { font-size: 11px; white-space: nowrap; }
  .landing-hero { padding: 46px 18px 82px; gap: 38px; }
  .landing-overline { flex-wrap: wrap; font-size: 8px; }
  .overline-index { width: 100%; margin-left: 35px; }
  .landing-hero h1 { margin-top: 22px; font-size: clamp(43px,12vw,61px); }
  .landing-lede { font-size: 15px; }
  .landing-hero-actions { align-items: stretch; flex-direction: column; }
  .landing-hero-actions .button { width: 100%; }
  .landing-trust-line { align-items: flex-start; font-size: 10px; }
  .landing-hero-visual { padding: 11px; box-shadow: 5px 5px 0 #D7D1C4; }
  .visual-topline { font-size: 7px; }
  .visual-float-card { display: none; }
  .visual-bottomline { font-size: 7px; }
  .schematic-label { display: none !important; }
  .hero-index { left: 18px; right: 18px; gap: 9px; font-size: 8px; }
  .hero-index span { font-size: 7px; }
  .section-wrap { padding: 55px 18px; }
  .problem-grid h2,.method-intro h2,.capabilities-heading h2,.sandbox-copy h2 { font-size: 39px; }
  .friction-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 30px; }
  .friction-card { min-height: 210px; padding: 20px; }
  .thesis-inner { padding: 58px 18px 118px; }
  .thesis-inner h2 { font-size: clamp(37px,10vw,54px); }
  .thesis-inner > p { font-size: 14px; }
  .thesis-stamp { right: 20px; bottom: 16px; width: 82px; height: 82px; font-size: 8px; }
  .method-intro { gap: 18px; }
  .method-explorer { padding: 8px; gap: 10px; }
  .method-step { grid-template-columns: 33px minmax(0,1fr) 15px; gap: 9px; min-height: 76px; padding: 10px; }
  .method-step strong { font-size: 14px; }
  .method-step small { font-size: 10px; }
  .method-detail { padding: 22px 19px; }
  .method-panel h3 { font-size: 29px; }
  .sandbox-grid { gap: 21px; }
  .sandbox-fields { grid-template-columns: 1fr; gap: 15px; padding: 16px; }
  .sandbox-output { margin: 0 16px; }
  .sandbox-cta { width: calc(100% - 32px); margin: 16px; }
  .capabilities-heading { display: block; }
  .capabilities-heading p { margin-top: 17px; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-card { min-height: 220px; }
  .landing-integrity { grid-template-columns: 1fr; gap: 20px; padding: 55px 18px; }
  .integrity-stamp { display: none; }
  .integrity-ledger { grid-column: auto; margin-top: 10px; }
  .landing-final-cta { align-items: stretch; flex-direction: column; padding: 53px 18px; }
  .landing-final-cta h2 { font-size: 47px; }
  .landing-final-cta .button { width: 100%; }
  .landing-footer { align-items: flex-start; flex-direction: column; gap: 12px; padding: 21px 18px; }
  .app-topbar { padding: 10px 13px; }
  .app-brand-mark { width: 34px; height: 34px; }
  .app-top-status { display: none; }
  .top-actions { gap: 6px; }
  .workspace-tag { font-size: 7px; }
  .quiet-action { font-size: 10px; padding: 0 7px; }
  .app-nav { gap: 3px; }
  .app-nav .nav-item { min-height: 39px; padding: 0 10px; font-size: 11px; }
  .main-area > .view:not(.landing-page) { padding: 0 12px 26px; }
  .app-page-intro { display: block; padding-top: 20px; }
  .app-page-intro h1 { font-size: 37px; }
  .app-page-intro .app-intro-code { display: block; margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  html.motion-ready .reveal { opacity: 1 !important; transform: none !important; }
}


/* VacancyLab landing-page refinements: explicit audience, accessible motion, and reading progress. */
.skip-link { position: fixed; z-index: 300; top: 8px; left: 8px; padding: 12px 16px; color: #FFFDF8; background: #1D2924; border: 2px solid #E2EE7A; transform: translateY(-150%); transition: transform .18s ease; }
.skip-link:focus { transform: translateY(0); }
.scroll-progress { position: fixed; z-index: 250; inset: 0 0 auto; height: 3px; pointer-events: none; background: transparent; }
.scroll-progress span { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left center; background: linear-gradient(90deg, #B9432D 0%, #D97B4F 53%, #E2EE7A 100%); box-shadow: 0 0 12px #B9432D26; will-change: transform; }
.landing-audience { background: #E9E5D9; border-top: 1px solid #D7D0C3; border-bottom: 1px solid #D7D0C3; }
.audience-heading { display: grid; grid-template-columns: minmax(0,1fr) minmax(250px,.68fr); gap: clamp(28px,6vw,90px); align-items: end; margin-top: 28px; }
.audience-heading h2 { max-width: 720px; margin: 0; color: var(--vl-ink); font: 700 clamp(37px,4.4vw,59px)/1.02 "Space Grotesk",sans-serif; letter-spacing: -.06em; }
.audience-heading h2 em { color: var(--vl-rust); font-style: normal; }
.audience-heading > p { max-width: 480px; margin: 0 0 5px; color: #526259; font-size: 14px; line-height: 1.8; }
.audience-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 36px; }
.audience-card { display: flex; min-height: 310px; flex-direction: column; padding: 23px; color: var(--vl-ink); background: var(--vl-surface); border: 1px solid #D1C9B9; transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease, border-color .25s ease; }
.audience-card:hover { transform: translateY(-5px); border-color: var(--vl-rust); box-shadow: 0 12px 28px rgba(29,41,36,.09); }
.audience-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--vl-border); color: #66756B; font: 500 9px "DM Mono",monospace; letter-spacing: .7px; }
.audience-symbol { display: grid; place-items: center; width: 37px; height: 37px; color: var(--vl-rust); background: #F2E1D9; font: 700 20px "Space Grotesk",sans-serif; }
.audience-card:nth-child(2) .audience-symbol { color: var(--vl-pine); background: var(--vl-sage); }
.audience-card:nth-child(3) .audience-symbol { color: #4C6372; background: var(--vl-sky); }
.audience-card h3 { margin: 22px 0 10px; color: var(--vl-ink); font: 700 22px/1.2 "Space Grotesk",sans-serif; letter-spacing: -.04em; }
.audience-card p { margin: 0 0 23px; color: #526259; font-size: 13px; line-height: 1.8; }
.audience-outcome { display: flex; flex-direction: column; gap: 7px; margin-top: auto; padding-top: 15px; border-top: 1px solid var(--vl-border); }
.audience-outcome span { color: var(--vl-rust); font: 500 9px "DM Mono",monospace; letter-spacing: .7px; }
.audience-outcome strong { color: var(--vl-ink); font-size: 12px; line-height: 1.6; }
.audience-note { display: flex; align-items: flex-start; gap: 11px; max-width: 950px; margin-top: 22px; padding: 15px 17px; color: #35483D; background: #DDE4D5; border-left: 3px solid #285244; }
.audience-note-mark { display: grid; place-items: center; flex: 0 0 22px; height: 22px; color: #FFFDF8; background: #285244; border-radius: 50%; font-size: 12px; font-weight: 800; }
.audience-note p { margin: 0; color: #405347; font-size: 12px; line-height: 1.75; }
.audience-note strong { color: #1D2924; }
/* Purposeful focus and micro-motion; reduced-motion users get an instant, stable layout. */
.landing-links a { position: relative; padding: 9px 0; }
.landing-links a::after { position: absolute; right: 0; bottom: 2px; left: 0; height: 2px; background: var(--vl-rust); content: ""; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.landing-links a:hover::after, .landing-links a:focus-visible::after { transform: scaleX(1); }
.landing-hero-copy > * { animation: vl-copy-arrive .55s both cubic-bezier(.2,.7,.2,1); }
.landing-hero-copy > *:nth-child(2) { animation-delay: .06s; }
.landing-hero-copy > *:nth-child(3) { animation-delay: .12s; }
.landing-hero-copy > *:nth-child(4) { animation-delay: .18s; }
.landing-hero-copy > *:nth-child(5) { animation-delay: .24s; }
@keyframes vl-copy-arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.frictions-card:hover, .friction-card:hover { background: #FFFDF8; }
@media (max-width: 900px) { .audience-heading { grid-template-columns: 1fr; gap: 18px; } .audience-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .audience-grid { grid-template-columns: 1fr; } .audience-card { min-height: auto; padding: 19px; } .audience-heading h2 { font-size: 38px; } }
@media (prefers-reduced-motion: reduce) {
  .landing-hero-copy > *, .audience-card, .landing-links a::after { animation: none !important; transition: none !important; }
  .scroll-progress span { will-change: auto; }
}

/* Clearer lead statement, better floating-card placement and explicit target-audience cue. */
.landing-hero h1 { font-size: clamp(44px, 4.55vw, 66px); line-height: 1.025; }
.float-card-one { top: 15%; right: -20px; }
.audience-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 13px 18px; margin-top: 25px; padding: 16px 0 0; border-top: 1px solid var(--vl-border); }
.audience-label { color: var(--vl-rust); font: 500 9px "DM Mono", monospace; letter-spacing: .8px; }
.audience-strip strong { color: var(--vl-ink); font-size: 11px; font-weight: 800; }
.audience-strip > i { width: 4px; height: 4px; border-radius: 50%; background: var(--vl-rust); }
@media (max-width: 600px) { .landing-hero h1 { font-size: clamp(41px, 10.7vw, 52px); } .audience-strip { gap: 10px 13px; } .audience-strip strong { font-size: 10px; } .audience-strip > i { display: none; } }

/* Clearly distinguish broader city results from district results. */
.qloo-scope-note {
  margin: 10px 0 !important;
  padding: 10px 12px !important;
  color: #4B391A !important;
  background: #F4EBCB !important;
  border: 1px solid #D8C58D !important;
  border-left: 4px solid #9B6A20 !important;
  border-radius: 4px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.6 !important;
}

/* ==============================================================
   VACANCYLAB PROFESSIONAL FRONTEND SYSTEM V3

   Goals:
   - Improve readability for judges and first-time users.
   - Standardise typography across the complete application.
   - Make forms, cards, tables and evidence easier to scan.
   - Preserve the established green, cream and rust visual identity.
   - Keep all application behaviour controlled by existing HTML/JS.
   ============================================================== */

/* 1. CONSISTENT DESIGN TOKENS */

:root {
  --vl-shadow: 0 12px 30px rgba(29, 41, 36, 0.075);
  --vl-shadow-hover: 0 16px 38px rgba(29, 41, 36, 0.105);
  --vl-reading-width: 780px;
  --vl-control-height: 48px;
}

/* 2. GLOBAL TYPOGRAPHY */

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--vl-ink, #1D2924);
}

button,
input,
textarea,
select {
  font-family: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

p {
  line-height: 1.7;
}

::selection {
  color: #FFFFFF;
  background: #285244;
}

/* 3. CONSISTENT FOCUS AND KEYBOARD ACCESS */

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
label:focus-within {
  outline: 3px solid #628D9D;
  outline-offset: 3px;
}

button,
.button,
.nav-item {
  transition:
    background-color .18s ease,
    border-color .18s ease,
    color .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
}

/* 4. BRAND AND PRIMARY NAVIGATION */

.brand-words strong {
  font-size: 21px;
  letter-spacing: -.8px;
}

.brand-words small {
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 1.25px;
}

.rail-label {
  font-size: 10.5px;
  line-height: 1.5;
  letter-spacing: 1.25px;
}

.nav-item {
  min-height: 48px;
  padding: 0 12px;
  font-size: 13.5px;
  line-height: 1.45;
}

.nav-item kbd {
  font-size: 10px;
}

.side-note-top {
  font-size: 10px;
  line-height: 1.5;
}

.qloo-status-copy strong {
  font-size: 12px;
  line-height: 1.4;
}

.qloo-status-copy small {
  font-size: 11px;
  line-height: 1.45;
}

.rail-footer {
  font-size: 9.5px;
  line-height: 1.6;
}

/* 5. APPLICATION WORKSPACE WIDTH AND SPACING */

.main-area {
  min-width: 0;
  padding-left: clamp(18px, 2.6vw, 46px);
  padding-right: clamp(18px, 2.6vw, 46px);
  padding-bottom: 44px;
}

.topbar {
  min-height: 72px;
  height: auto;
  gap: 16px;
  padding: 12px 0;
}

.breadcrumbs {
  flex-wrap: wrap;
  gap: 9px;
  font-size: 10.5px;
  line-height: 1.55;
  letter-spacing: .8px;
}

.breadcrumbs strong {
  font-size: 12.5px;
  line-height: 1.5;
}

.workspace-tag {
  font-size: 10px;
  line-height: 1.5;
}

.quiet-action {
  min-height: 44px;
  padding: 8px 12px;
  font-size: 12.5px;
  line-height: 1.45;
}

.avatar {
  width: 36px;
  height: 36px;
  font-size: 12px;
}

/* 6. OPERATIONAL PAGE HEADINGS */

.section-title-row,
.subpage-head {
  gap: 20px;
  margin-bottom: 24px;
}

.section-eyebrow {
  font-size: 11px;
  line-height: 1.55;
  letter-spacing: 1px;
}

.section-title-row h2,
.subpage-head h1 {
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1.16;
  letter-spacing: -.9px;
  font-weight: 750;
  text-wrap: balance;
}

.section-title-row p,
.subpage-head p {
  max-width: var(--vl-reading-width);
  font-size: 15.5px;
  line-height: 1.8;
  color: #526259;
}

.step-badge {
  min-height: 40px;
  padding: 10px 13px;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: .45px;
}

/* 7. SUMMARY CARDS AND STATUS METRICS */

.stat-strip {
  margin-top: 20px;
  margin-bottom: 38px;
  border-radius: 12px;
  box-shadow: 0 5px 18px rgba(29, 41, 36, .035);
}

.stat-item {
  gap: 12px;
  padding: 18px 16px;
}

.stat-item small {
  font-size: 11.5px;
  line-height: 1.55;
  letter-spacing: .15px;
  color: #526259;
}

.stat-item strong {
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -.3px;
}

.stat-item strong span {
  font-size: 12px;
}

.stat-status-item strong {
  font-size: 14px;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* 8. CARDS AND SECTION PANELS */

.card {
  border-radius: 10px;
  box-shadow: var(--vl-shadow);
}

.brief-card,
.concepts-card,
.inventory-card,
.pilot-form-card,
.pilot-result-card,
.outcome-history-card,
.trace-card,
.evidence-card,
.method-card {
  min-width: 0;
  padding: clamp(19px, 2vw, 27px);
}

.card-head {
  gap: 14px;
  margin-bottom: 22px;
}

.card-head h3 {
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: -.35px;
  font-weight: 750;
}

.card-head p {
  max-width: 680px;
  font-size: 14.5px;
  line-height: 1.75;
  color: #526259;
}

.card-index {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  font-size: 13px;
}

/* 9. FORMS: LABELS, INPUTS, SELECTS AND TEXT AREAS */

.field > span {
  margin-bottom: 9px;
  font-size: 12.5px;
  line-height: 1.6;
  letter-spacing: .3px;
  font-weight: 800;
  color: #35483D;
}

.field > span b {
  font-size: 13px;
}

.field > span small {
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: 0;
  color: #526259;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: var(--vl-control-height);
  padding: 11px 13px;
  border: 1px solid #BBB9AC;
  border-radius: 5px;
  font-size: 16px;
  line-height: 1.5;
  color: #1D2924;
  background: #FFFDF8;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #707C73;
  opacity: 1;
  font-size: 15px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #557A70;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(85, 122, 112, .14);
}

.field textarea {
  min-height: 106px;
  line-height: 1.7;
}

.field-hint {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.7;
  color: #526259;
}

.input-with-unit {
  min-height: var(--vl-control-height);
}

.input-with-unit input {
  min-height: 46px;
  padding: 10px 12px;
  font-size: 16px;
}

.input-with-unit > span {
  font-size: 12.5px;
}

.input-with-unit .prefix {
  font-size: 14px;
}

/* 10. FACILITIES AND CONFIRMATION OPTIONS */

.facility-head {
  gap: 12px;
  margin: 22px 0 12px;
  font-size: 11.5px;
  line-height: 1.6;
  letter-spacing: .35px;
}

.facility-head small {
  font-size: 12px;
  line-height: 1.55;
}

.facility-list {
  gap: 9px;
}

.facility-list label {
  min-height: 44px;
  padding: 10px 12px;
  gap: 9px;
  font-size: 13.5px;
  line-height: 1.5;
}

.facility-list input {
  width: 16px;
  height: 16px;
}

.micro-note {
  gap: 9px;
  margin-top: 15px;
  font-size: 13px;
  line-height: 1.75;
  color: #48584D;
}

.micro-note > span {
  width: 17px;
  height: 17px;
  flex-basis: 17px;
  font-size: 10px;
}

/* 11. CONCEPT CARDS */

.concept-options {
  gap: 12px;
}

.concept-choice {
  min-height: 88px;
  padding: 15px;
  gap: 12px;
  border-radius: 8px;
}

.concept-glyph {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  font-size: 20px;
}

.concept-copy {
  gap: 5px;
}

.concept-copy strong {
  font-size: 15px;
  line-height: 1.45;
}

.concept-copy small {
  font-size: 13px;
  line-height: 1.6;
  color: #526259;
}

.choice-check {
  width: 21px;
  height: 21px;
  flex-basis: 21px;
  font-size: 12px;
}

.selection-summary {
  gap: 9px;
  font-size: 13px;
  line-height: 1.7;
  color: #48584D;
}

/* 12. AGENT WORKFLOW AND PROCESS EXPLANATIONS */

.agent-preview {
  padding: 17px;
  border-radius: 8px;
}

.agent-preview-top {
  gap: 9px;
  font-size: 10.5px;
  line-height: 1.55;
  letter-spacing: .5px;
}

.agent-preview-steps {
  gap: 9px;
  font-size: 12px;
  line-height: 1.6;
}

.agent-preview-steps span {
  font-size: 12px;
  line-height: 1.6;
  white-space: normal;
}

.agent-preview-steps b {
  width: 19px;
  height: 19px;
  font-size: 10px;
}

.agent-preview p {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: #48584D;
}

/* 13. BUSINESS INVENTORY AND CSV UPLOAD */

.upload-drop {
  min-height: 72px;
  padding: 13px 15px;
  gap: 13px;
}

.upload-drop strong {
  font-size: 14.5px;
  line-height: 1.6;
}

.upload-drop small {
  font-size: 12.5px;
  line-height: 1.7;
  color: #526259;
}

.inline-button,
.text-link {
  font-size: 12.5px;
  line-height: 1.5;
}

.inventory-tools {
  gap: 12px;
}

.inventory-table-wrap {
  border-radius: 8px;
}

.inventory-table th {
  padding: 13px 14px;
  font-size: 11px;
  line-height: 1.55;
  letter-spacing: .35px;
  color: #45584D;
}

.inventory-table td {
  padding: 13px 14px;
  font-size: 13.5px;
  line-height: 1.65;
  color: #35483D;
}

.inventory-table td:first-child {
  font-weight: 750;
}

.empty-row td {
  min-height: 60px;
  height: auto;
  padding: 18px 14px;
  font-size: 13.5px;
  line-height: 1.7;
  color: #526259 !important;
}

.remove-record {
  width: 34px;
  height: 34px;
  font-size: 18px;
}

.inventory-footer {
  gap: 12px;
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.7;
  color: #526259;
}

.data-integrity {
  gap: 11px;
  margin-top: 14px;
  padding: 13px 14px;
  border-radius: 6px;
}

.data-integrity p {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: #48584D;
}

/* 14. BUTTONS AND PRIMARY ACTIONS */

.button {
  min-height: 45px;
  padding: 11px 17px;
  border-radius: 5px;
  font-size: 13.5px;
  line-height: 1.5;
  font-weight: 750;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.small-card-button {
  min-height: 38px;
  padding: 9px 12px;
  font-size: 12px;
  line-height: 1.45;
}

.add-record {
  width: 46px;
  height: 46px;
  font-size: 24px;
}

.form-submit-row {
  gap: 20px;
  padding: 22px 0;
}

.form-submit-row .button {
  min-height: 49px;
}

.submit-reassurance {
  max-width: 470px;
  font-size: 13px;
  line-height: 1.75;
  color: #48584D;
}

.page-footer {
  gap: 12px;
  padding-top: 18px;
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: .25px;
}

/* 15. OPPORTUNITY BOARD */

.result-summary-bar {
  gap: 13px;
  padding: 16px 18px;
  border-radius: 8px;
}

.result-summary-bar strong {
  font-size: 14px;
  line-height: 1.6;
}

.result-summary-bar p,
.result-summary-bar div {
  line-height: 1.75;
}

.state-chip {
  padding: 8px 11px;
  font-size: 10.5px;
  line-height: 1.5;
  letter-spacing: .35px;
}

.opportunity-grid {
  gap: 17px;
}

.opportunity-card {
  min-width: 0;
  padding: 21px;
  border-radius: 9px;
  box-shadow: var(--vl-shadow);
}

.opportunity-card:hover {
  box-shadow: var(--vl-shadow-hover);
}

.opp-card-head {
  gap: 12px;
}

.opp-concept-glyph {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  font-size: 19px;
}

.opp-card-head h3 {
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: -.25px;
}

.opp-card-head p {
  font-size: 12.5px;
  line-height: 1.7;
  color: #526259;
}

.opp-priority {
  padding: 7px 10px;
  font-size: 11px;
  line-height: 1.5;
}

.opp-section {
  margin-top: 17px;
  padding-top: 15px;
}

.opp-section-label {
  font-size: 10.5px;
  line-height: 1.55;
  letter-spacing: .45px;
  color: #526259;
}

.opp-section p {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.8;
  color: #35483D;
  overflow-wrap: anywhere;
}

.opp-qloo-tag {
  padding: 7px 9px;
  font-size: 11px;
  line-height: 1.5;
}

.opp-entity-list {
  gap: 7px;
}

.entity-chip {
  padding: 6px 9px;
  font-size: 11.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.entity-chip b {
  font-size: 11.5px;
}

.opp-card-footer {
  gap: 12px;
  padding-top: 15px;
}

.blank-state {
  padding: 55px 22px;
}

.blank-state h3 {
  font-size: 25px;
  line-height: 1.3;
}

.blank-state p {
  max-width: 440px;
  font-size: 14px;
  line-height: 1.8;
  color: #526259;
}

/* 16. PILOT OUTCOMES AND RESULTS */

.pilot-layout {
  gap: 18px;
}

.pilot-form-card form {
  gap: 17px;
}

.pilot-form-card .full-width {
  min-height: 48px;
}

.pilot-result-card {
  min-height: 400px;
  border-radius: 9px;
}

.result-placeholder {
  padding: 24px;
}

.result-placeholder h3 {
  max-width: 440px;
  font-size: 29px;
  line-height: 1.2;
  letter-spacing: -.4px;
}

.result-placeholder p {
  max-width: 470px;
  font-size: 14px;
  line-height: 1.8;
  color: #526259;
}

.placeholder-steps {
  gap: 12px;
  font-size: 12px;
  line-height: 1.6;
}

.placeholder-steps i {
  width: 22px;
  height: 22px;
  font-size: 10px;
}

.outcome-banner {
  padding: 19px;
  margin-bottom: 18px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.75;
}

.outcome-banner p {
  font-size: 14px;
  line-height: 1.75;
}

.outcome-notes {
  margin-top: 18px;
  padding: 14px;
  font-size: 13px;
  line-height: 1.8;
}

.outcome-ratio-caption {
  gap: 12px;
  font-size: 11px;
  line-height: 1.6;
}

.outcome-actions {
  margin-top: 18px;
}

.journal-row {
  gap: 13px;
  padding: 14px;
  border-radius: 7px;
}

.journal-row strong {
  font-size: 13px;
  line-height: 1.5;
}

.journal-row p,
.journal-row span {
  font-size: 12.5px;
  line-height: 1.7;
}

/* 17. EVIDENCE TRAIL AND METHODOLOGY */

.evidence-guardrail {
  padding: 17px;
  border-radius: 8px;
}

.evidence-guardrail p {
  max-width: 920px;
  font-size: 13.5px;
  line-height: 1.8;
  color: #48584D;
}

.trace-row {
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 13px;
  padding: 17px 0;
}

.trace-step {
  width: 29px;
  height: 29px;
  font-size: 12px;
}

.trace-main strong {
  font-size: 14px;
  line-height: 1.6;
}

.trace-main p {
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.8;
  color: #48584D;
  overflow-wrap: anywhere;
}

.evidence-ledger {
  gap: 12px;
}

.evidence-ledger > div {
  min-width: 0;
  padding: 14px;
}

.evidence-ledger strong {
  font-size: 13.5px;
  line-height: 1.55;
}

.evidence-ledger p,
.evidence-ledger small {
  font-size: 12.5px;
  line-height: 1.75;
  color: #526259;
}

.method-grid {
  gap: 14px;
}

.method-grid > div {
  padding: 17px;
  border-radius: 8px;
}

.method-number {
  width: 29px;
  height: 29px;
  font-size: 11px;
}

.method-grid h4 {
  margin: 13px 0 8px;
  font-size: 14px;
  line-height: 1.5;
}

.method-grid p {
  font-size: 13px;
  line-height: 1.8;
  color: #526259;
}

/* 18. PUBLIC LANDING PAGE NAVIGATION */

.landing-nav {
  gap: 20px;
}

.landing-brand-type strong {
  font-size: 22px;
  line-height: 1.2;
}

.landing-brand-type small {
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 1px;
}

.landing-links {
  gap: clamp(12px, 1.8vw, 25px);
}

.landing-links a {
  font-size: 13px;
  line-height: 1.5;
}

.landing-nav-cta {
  min-height: 46px;
  padding: 11px 16px;
  font-size: 13px;
}

/* 19. PUBLIC LANDING PAGE HERO */

.landing-overline,
.section-marker {
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: .8px;
}

.overline-index {
  font-size: 10px;
  line-height: 1.6;
}

.landing-hero {
  gap: clamp(24px, 4vw, 68px);
}

.landing-hero h1 {
  font-size: clamp(47px, 5.4vw, 78px);
  line-height: 1.04;
  letter-spacing: -.065em;
}

.landing-lede {
  max-width: 610px;
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.8;
}

.landing-hero-actions .button {
  min-height: 52px;
  padding: 13px 21px;
  font-size: 14px;
}

.hero-copy h1 {
  font-size: clamp(36px, 3.7vw, 50px);
  line-height: 1.08;
  letter-spacing: -1.1px;
}

.hero-description {
  max-width: 660px;
  font-size: 15px;
  line-height: 1.8;
  color: #526259;
}

.hero-actions .button {
  min-height: 47px;
  font-size: 13.5px;
}

/* 20. PUBLIC LANDING PAGE EXPLANATIONS */

.problem-grid h2,
.method-intro h2,
.capabilities-heading h2,
.sandbox-copy h2 {
  line-height: 1.08;
}

.problem-copy p,
.method-intro p,
.sandbox-copy p,
.capabilities-heading p {
  font-size: 15.5px;
  line-height: 1.85;
  color: #45584D;
}

.audience-heading > p {
  font-size: 15px;
  line-height: 1.8;
  color: #45584D;
}

.thesis-inner > p {
  font-size: 16.5px;
  line-height: 1.85;
}

.integrity-copy p {
  font-size: 14px;
  line-height: 1.85;
}

.text-arrow,
.integrity-link {
  min-height: 43px;
  font-size: 13.5px;
  line-height: 1.5;
}

/* 21. LANDING-PAGE INTERACTIVE PREVIEW */

.console-top {
  padding: 14px 17px;
  font-size: 10px;
  line-height: 1.6;
}

.sandbox-fields {
  gap: 14px;
  padding: 22px;
}

.sandbox-fields label {
  font-size: 11px;
  line-height: 1.55;
}

.sandbox-fields label > span {
  font-size: 10.5px;
  line-height: 1.55;
}

.sandbox-fields input,
.sandbox-fields select {
  min-height: 46px;
  padding: 10px 11px;
  font-size: 15px;
}

.sandbox-disclaimer {
  font-size: 12.5px;
  line-height: 1.75;
}

.visual-status,
.visual-bottomline,
.float-card-kicker {
  font-size: 10px;
  line-height: 1.6;
}

.schematic-label {
  font-size: 9px;
}

.landing-page .button {
  font-size: 13.5px;
}

.landing-page .card p {
  line-height: 1.75;
}

/* 22. MORE CONSISTENT TEXT CONTRAST */

.main-area > .view:not(.landing-page) .section-title-row p,
.main-area > .view:not(.landing-page) .subpage-head p,
.main-area > .view:not(.landing-page) .card-head p,
.main-area > .view:not(.landing-page) .micro-note,
.main-area > .view:not(.landing-page) .field-hint,
.main-area > .view:not(.landing-page) .selection-summary,
.main-area > .view:not(.landing-page) .data-integrity p,
.main-area > .view:not(.landing-page) .opp-section p,
.main-area > .view:not(.landing-page) .trace-main p {
  color: #43554B;
}

/* 23. TABLETS */

@media (max-width: 1050px) {
  .main-area {
    padding-left: clamp(17px, 2.4vw, 28px);
    padding-right: clamp(17px, 2.4vw, 28px);
  }

  .section-title-row,
  .subpage-head {
    align-items: flex-start;
    gap: 15px;
  }

  .opportunity-card {
    padding: 18px;
  }

  .card-head h3 {
    font-size: 18px;
  }

  .landing-links a {
    font-size: 12.5px;
  }
}

/* 24. MOBILE LAYOUT */

@media (max-width: 760px) {
  .main-area {
    padding: 0 17px 88px;
  }

  .topbar {
    min-height: 59px;
    padding: 9px 0;
  }

  .breadcrumbs {
    gap: 5px;
    font-size: 10px;
    letter-spacing: .3px;
  }

  .breadcrumbs strong {
    font-size: 11.5px;
  }

  .quiet-action {
    max-width: none;
    min-height: 42px;
    padding: 8px 10px;
    font-size: 11.5px;
  }

  .nav-item {
    min-height: 60px;
    padding: 6px 4px;
    gap: 4px;
    font-size: 11.5px;
    line-height: 1.3;
  }

  .nav-icon {
    width: 21px;
    height: 21px;
  }

  .section-title-row,
  .subpage-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .section-title-row h2,
  .subpage-head h1 {
    font-size: clamp(27px, 5.5vw, 34px);
    line-height: 1.17;
  }

  .section-title-row p,
  .subpage-head p {
    font-size: 14.5px;
    line-height: 1.8;
  }

  .brief-card,
  .concepts-card,
  .inventory-card,
  .pilot-form-card,
  .pilot-result-card,
  .outcome-history-card,
  .trace-card,
  .evidence-card,
  .method-card {
    padding: 18px;
  }

  .field > span {
    font-size: 12.5px;
  }

  .field input,
  .field select,
  .field textarea {
    min-height: 48px;
    font-size: 16px;
  }

  .concept-options {
    grid-template-columns: 1fr;
  }

  .concept-choice {
    min-height: 80px;
  }

  .concept-copy strong {
    font-size: 14.5px;
  }

  .concept-copy small {
    font-size: 12.5px;
  }

  .agent-preview-steps {
    flex-wrap: wrap;
  }

  .agent-preview-steps > i {
    display: none;
  }

  .inventory-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .inventory-table-wrap {
    max-width: 100%;
    overflow-x: auto;
  }

  .inventory-table {
    min-width: 490px;
  }

  .inventory-table th {
    font-size: 10.5px;
    padding: 11px;
  }

  .inventory-table td {
    font-size: 12.5px;
    padding: 11px;
  }

  .opportunity-card {
    padding: 18px;
  }

  .opp-card-head h3 {
    font-size: 16px;
  }

  .opp-section p {
    font-size: 13px;
  }

  .trace-row {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
  }

  .trace-row > :last-child {
    grid-column: 2;
  }

  .journal-row {
    grid-template-columns: 1fr 1fr;
  }

  .landing-nav {
    gap: 12px;
  }

  .landing-links {
    gap: 15px;
  }

  .landing-links a {
    font-size: 12.5px;
  }

  .landing-hero {
    gap: 34px;
    padding-top: 52px;
    padding-bottom: 68px;
  }

  .landing-hero h1 {
    font-size: clamp(43px, 8.5vw, 62px);
    line-height: 1.05;
  }

  .landing-lede {
    font-size: 16.5px;
    line-height: 1.8;
  }

  .hero-description {
    font-size: 14.5px;
    line-height: 1.8;
  }

  .sandbox-fields {
    grid-template-columns: 1fr;
    padding: 17px;
  }

  .sandbox-fields label {
    font-size: 11.5px;
  }

  .sandbox-fields input,
  .sandbox-fields select {
    font-size: 16px;
  }

  .problem-copy p,
  .method-intro p,
  .sandbox-copy p,
  .capabilities-heading p {
    font-size: 14.5px;
  }
}

/* 25. SMALL MOBILE SCREENS */

@media (max-width: 430px) {
  .main-area {
    padding-left: 12px;
    padding-right: 12px;
  }

  .brief-card,
  .concepts-card,
  .inventory-card,
  .pilot-form-card,
  .pilot-result-card,
  .outcome-history-card,
  .trace-card,
  .evidence-card,
  .method-card {
    padding: 15px;
  }

  .card-head h3 {
    font-size: 17px;
  }

  .field > span {
    font-size: 12px;
  }

  .facility-list {
    grid-template-columns: 1fr;
  }

  .form-submit-row {
    align-items: stretch;
    flex-direction: column;
  }

  .form-submit-row .button {
    width: 100%;
  }

  .landing-hero h1 {
    font-size: clamp(39px, 10vw, 48px);
    letter-spacing: -.045em;
  }

  .landing-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .landing-hero-actions .button {
    width: 100%;
  }

  .landing-nav-cta {
    padding: 10px 11px;
    font-size: 11.5px;
  }

  .landing-brand-type strong {
    font-size: 19px;
  }

  .landing-brand-type small {
    font-size: 9px;
    letter-spacing: .6px;
  }

  .agent-preview-steps span {
    font-size: 11.5px;
  }

  .stat-item {
    padding: 13px 10px;
    gap: 8px;
  }

  .stat-item small {
    font-size: 10.5px;
  }

  .stat-item strong {
    font-size: 16px;
  }

  .quiet-action {
    font-size: 11px;
    gap: 5px;
  }

  .opportunity-card {
    padding: 15px;
  }

  .trace-main strong {
    font-size: 13px;
  }

  .trace-main p {
    font-size: 12.5px;
  }
}

/* 26. RESPECT USERS WHO PREFER REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
