:root {
  color-scheme: dark;
  --canvas: #0a0b0d;
  --canvas-elevated: #101114;
  --panel: #121316;
  --panel-secondary: #17181c;
  --surface-selected: #1a1b1f;
  --text-primary: #eee7d8;
  --text-secondary: #96938b;
  --text-muted: #66645f;
  --text-subtle: #4f4d49;
  --text-disabled: #383733;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(200, 169, 106, 0.28);
  --separator: rgba(255, 255, 255, 0.055);
  --border-selected: rgba(223, 196, 140, 0.48);
  --gold: #c8a96a;
  --gold-bright: #dfc48c;
  --gold-muted: #806d47;
  --gold-subtle: rgba(200, 169, 106, 0.15);
  --accent: var(--gold);
  --accent-highlight: var(--gold-bright);
  --accent-muted: var(--gold-muted);
  --accent-dark: #4d412b;
  --status-success: var(--gold-muted);
  --status-warning: var(--gold);
  --status-error: var(--gold);
  --status-info: var(--text-secondary);
  --status-inactive: var(--text-muted);
  --font-sans: "Geist", "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --radius-small: 6px;
  --radius: 8px;
  --radius-large: 12px;
  --shadow-panel: 0 12px 40px rgba(0, 0, 0, 0.25);
  --motion-micro: 160ms;
  --motion-normal: 260ms;
  --motion-graph: 480ms;
  --motion-reveal: 760ms;
  --ease-standard: cubic-bezier(0.2, 0.75, 0.25, 1);
  --z-canvas: 1;
  --z-header: 20;
  --z-panel: 30;
  --z-modal: 40;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

body { min-height: 100dvh; margin: 0; overflow: hidden; }
button, input, select { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 100;
  transform: translateY(-160%);
  background: var(--text-primary);
  color: var(--canvas);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-small);
}
.skip-link:focus { transform: none; }

.app-shell {
  position: relative;
  isolation: isolate;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  background: var(--canvas);
}

.app-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 42%, var(--gold-subtle), transparent 42%);
  opacity: 0.16;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-header);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: 0 clamp(20px, 2.4vw, 38px);
  border-bottom: 1px solid var(--separator);
  background: rgba(10, 11, 13, 0.9);
  backdrop-filter: blur(10px);
}

.brand-lockup { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-strong);
  color: var(--accent);
  font-size: 14px;
  letter-spacing: -0.08em;
}
.brand-copy { display: flex; align-items: baseline; gap: var(--space-2); white-space: nowrap; }
.brand-copy strong { font-size: 12px; font-weight: 560; letter-spacing: 0.14em; }
.brand-copy span { color: var(--text-muted); font-size: 11px; }

.site-nav { display: flex; align-items: center; gap: var(--space-1); }
.nav-action, .view-action, .icon-action, .tertiary-action {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--motion-micro), background var(--motion-micro), border-color var(--motion-micro);
}
.nav-action { position: relative; padding: 8px 10px; border-radius: 0; font-size: 11px; }
.nav-action:hover, .nav-action.is-active { color: var(--text-primary); background: transparent; }
.nav-action.is-active::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 3px; height: 3px; transform: translateX(-50%); border-radius: 50%; background: var(--gold); }

.primary-action, .secondary-action {
  min-height: 44px;
  border-radius: var(--radius);
  padding: 0 var(--space-4);
  cursor: pointer;
  font-weight: 620;
  transition: background var(--motion-micro), border-color var(--motion-micro), transform var(--motion-micro);
}
.primary-action {
  border: 1px solid var(--text-primary);
  background: var(--text-primary);
  color: #111318;
}
.primary-action:hover:not(:disabled) { background: var(--accent-highlight); border-color: var(--accent-highlight); transform: translateY(-1px); }
.secondary-action { border: 1px solid var(--border-strong); background: transparent; color: var(--text-primary); }
.secondary-action:hover:not(:disabled) { background: var(--surface-selected); border-color: var(--border-selected); }
button:disabled { cursor: not-allowed; opacity: 0.38; }

.micro-label {
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.main-stage { position: absolute; inset: 64px 0 0; z-index: 2; }

.ambient-tree {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.72;
  filter: blur(5px) saturate(0.72);
  transform: scale(1.03);
  transition: filter var(--motion-reveal), opacity var(--motion-reveal), transform var(--motion-reveal);
}
.ambient-tree::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 13, 16, 0.32);
  pointer-events: none;
}
.question-screen .ambient-tree { opacity: 0.5; filter: blur(8px) saturate(0.62); }

.landing-layout {
  position: relative;
  z-index: 3;
  width: min(1120px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  align-content: center;
  padding: var(--space-12) 0 var(--space-16);
}
.landing-content {
  width: min(620px, 100%);
  margin-left: clamp(0px, 7vw, 96px);
  padding-left: var(--space-8);
  border-left: 1px solid var(--border-strong);
  animation: content-enter var(--motion-reveal) var(--ease-standard) both;
}
@keyframes content-enter { from { opacity: 0; transform: translateY(14px); } }
.landing-content h1 {
  max-width: 600px;
  margin: var(--space-4) 0;
  color: var(--text-primary);
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 520;
  letter-spacing: -0.055em;
  line-height: 1.02;
}
.landing-copy { max-width: 560px; margin: 0; color: var(--text-secondary); font-size: 15px; line-height: 1.65; }
.landing-copy strong { color: var(--text-primary); font-weight: 550; }

.email-form { margin-top: var(--space-8); max-width: 570px; }
.form-label { display: block; margin-bottom: var(--space-2); color: var(--text-secondary); font-size: 12px; }
.email-row { display: grid; grid-template-columns: 1fr auto; gap: var(--space-2); }
.text-input, .select-input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #15181e;
  color: var(--text-primary);
  padding: 0 var(--space-4);
  transition: border-color var(--motion-micro), background var(--motion-micro);
}
.text-input:hover, .select-input:hover { border-color: var(--border-strong); }
.text-input:focus, .select-input:focus { border-color: rgba(200, 169, 106, 0.55); outline: 0; }
.text-input::placeholder { color: #666b73; }
.form-note { display: block; margin-top: var(--space-2); color: var(--text-subtle); font-size: 11px; line-height: 1.5; }
.form-error { margin: var(--space-2) 0 0; color: var(--status-error); font-size: 12px; }
.landing-proof { display: flex; gap: var(--space-6); margin-top: var(--space-8); padding-top: var(--space-4); border-top: 1px solid var(--separator); }
.landing-proof span { color: var(--text-muted); font-size: 11px; }
.landing-proof strong { display: block; margin-bottom: 2px; color: var(--text-primary); font-size: 15px; font-weight: 520; font-variant-numeric: tabular-nums; }

.question-screen { display: grid; place-items: center; padding: var(--space-8) var(--space-4); }
.progress-cluster { position: fixed; top: 92px; left: 50%; z-index: 6; transform: translateX(-50%); display: flex; align-items: center; gap: var(--space-3); }
.progress-segments { display: flex; gap: 5px; }
.progress-segments i { width: 28px; height: 2px; background: var(--border); }
.progress-segments i.is-complete { background: var(--accent); }
.question-modal {
  position: relative;
  z-index: 5;
  width: min(500px, 100%);
  max-height: calc(100dvh - 142px);
  overflow-y: auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-large);
  background: rgba(18, 21, 27, 0.94);
  backdrop-filter: blur(12px);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-panel);
}
.question-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-6); }
.back-action { border: 0; background: transparent; color: var(--text-muted); cursor: pointer; padding: 0; font-size: 12px; }
.back-action:hover { color: var(--text-primary); }
.question-modal h1 { margin: 0; color: var(--text-primary); font-size: clamp(28px, 4vw, 36px); font-weight: 520; letter-spacing: -0.04em; line-height: 1.1; }
.question-intro { margin: var(--space-3) 0 var(--space-6); color: var(--text-secondary); font-size: 13px; line-height: 1.55; }
.option-list { display: grid; gap: var(--space-2); }
.option-row {
  width: 100%;
  min-height: 52px;
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-secondary);
  color: var(--text-secondary);
  padding: 10px var(--space-3);
  text-align: left;
  cursor: pointer;
  transition: background var(--motion-micro), border-color var(--motion-micro), color var(--motion-micro);
}
.option-row:hover { border-color: var(--border-strong); color: var(--text-primary); }
.option-row.is-selected { border-color: var(--border-selected); background: var(--surface-selected); color: var(--text-primary); }
.option-indicator { width: 16px; height: 16px; border: 1px solid var(--border-strong); border-radius: 50%; position: relative; }
.is-selected .option-indicator { border-color: var(--accent); }
.is-selected .option-indicator::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--accent); }
.option-copy strong { display: block; font-size: 13px; font-weight: 520; }
.option-copy small { display: block; margin-top: 2px; color: var(--text-muted); font-size: 11px; }
.option-check { color: var(--accent); opacity: 0; }
.is-selected .option-check { opacity: 1; }
.question-actions { position: sticky; bottom: -1px; z-index: 2; display: flex; justify-content: flex-end; gap: var(--space-2); margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--separator); background: var(--panel); }
.revenue-group + .revenue-group { margin-top: var(--space-6); padding-top: var(--space-6); border-top: 1px solid var(--separator); }
.group-label { display: block; margin-bottom: var(--space-3); color: var(--text-muted); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }

.building-screen { display: grid; place-items: center; }
.building-copy { position: relative; z-index: 4; width: min(520px, calc(100% - 32px)); text-align: center; }
.building-rule { width: 64px; height: 1px; margin: 0 auto var(--space-6); background: var(--accent); transform-origin: left; animation: rule-build 3.2s linear both; }
@keyframes rule-build { from { transform: scaleX(0); } }
.building-copy h1 { margin: 0 0 var(--space-3); font-size: clamp(30px, 5vw, 44px); font-weight: 500; letter-spacing: -0.04em; }
.building-copy p { color: var(--text-muted); font-size: 13px; }
.build-steps { margin-top: var(--space-8); display: grid; gap: var(--space-2); color: var(--text-subtle); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.build-steps span { opacity: 0; animation: step-reveal 300ms forwards; animation-delay: var(--delay); }
@keyframes step-reveal { to { opacity: 1; color: var(--text-secondary); } }

.result-screen { display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100%; }
.result-screen.is-map { position: relative; display: block; }
.result-brief {
  position: relative;
  z-index: 8;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-8);
  padding: var(--space-6) clamp(20px, 3vw, 48px);
  border-bottom: 1px solid var(--separator);
  background: rgba(10, 11, 13, 0.9);
}
.is-map .result-brief {
  position: absolute;
  inset: var(--space-6) clamp(20px, 2.4vw, 38px) auto;
  z-index: 10;
  align-items: flex-start;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: none;
}
.opportunity-annotation { min-width: 0; pointer-events: auto; }
.is-map .opportunity-annotation { width: 286px; padding: 2px 0 0; }
.opportunity-label { display: block; margin-bottom: var(--space-3); color: var(--text-muted); line-height: 1.55; }
.opportunity-value { display: block; color: var(--text-primary); font-size: clamp(40px, 5vw, 64px); font-weight: 480; letter-spacing: -0.055em; line-height: 0.95; font-variant-numeric: tabular-nums; }
.is-map .opportunity-value { color: var(--text-primary); font-size: clamp(48px, 4.3vw, 62px); }
.opportunity-facts { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin: var(--space-4) 0 0; color: var(--text-secondary); font-size: 10px; line-height: 1.4; letter-spacing: 0.02em; }
.opportunity-facts span + span::before { content: "·"; margin-right: var(--space-4); color: var(--gold-muted); }
.priority-copy { display: grid; gap: 5px; margin: var(--space-3) 0 0; color: var(--text-secondary); font-size: 10px; line-height: 1.45; }
.priority-copy span { color: var(--text-subtle); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; }
.result-actions { display: flex; align-items: center; gap: var(--space-2); }
.is-map .result-actions { pointer-events: auto; }
.segmented-control { display: flex; padding: 2px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(16, 17, 20, 0.82); }
.view-action { min-height: 34px; padding: 0 var(--space-3); border-radius: var(--radius-small); font-size: 11px; }
.view-action.is-active { background: var(--gold-subtle); color: var(--gold-bright); }

.graph-region { position: relative; min-height: 0; overflow: hidden; }
.is-map .graph-region { position: absolute; inset: 0; }
.graph-canvas {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  background:
    radial-gradient(circle at 50% 50%, rgba(200,169,106,0.03), transparent 42%),
    radial-gradient(circle, rgba(238,231,216,0.105) 0 0.8px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, transparent 49.96%, rgba(200,169,106,0.025) 50%, transparent 50.04%),
    linear-gradient(transparent 49.96%, rgba(200,169,106,0.02) 50%, transparent 50.04%),
    var(--canvas);
}
.graph-canvas::before, .graph-canvas::after { content: ""; position: absolute; pointer-events: none; border: 1px solid rgba(200,169,106,0.045); border-radius: 50%; }
.graph-canvas::before { width: min(76vw, 1080px); aspect-ratio: 1.62; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.graph-canvas::after { width: min(53vw, 760px); aspect-ratio: 1.48; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.graph-canvas:active { cursor: grabbing; }
.graph-world {
  position: absolute;
  width: 1400px;
  height: 840px;
  left: calc(50% - 700px);
  top: calc(50% - 420px);
  transform: translate3d(var(--pan-x, 0), var(--pan-y, 0), 0) scale(var(--graph-scale, 1));
  transform-origin: 700px 420px;
  transition: transform var(--motion-graph) var(--ease-standard);
}
.graph-world.is-panning { transition: none; }
.graph-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.construction-guides { fill: none; stroke: rgba(200,169,106,0.05); stroke-width: 0.7; stroke-dasharray: 2 11; vector-effect: non-scaling-stroke; }
.construction-guides line { stroke: rgba(238,231,216,0.035); stroke-dasharray: 1 14; }
.graph-line { fill: none; stroke: rgba(200,169,106,0.18); stroke-width: 0.9; stroke-linecap: round; vector-effect: non-scaling-stroke; transition: stroke var(--motion-normal), opacity var(--motion-normal); animation: branch-draw 780ms var(--ease-standard) both; }
.graph-line.is-recommended { stroke: rgba(200,169,106,0.4); }
.graph-line.is-active, .graph-line.is-hover-path { stroke: rgba(223,196,140,0.75); opacity: 1; }
.graph-line.is-muted { opacity: 0.22; }
.graph-world[data-hover-department] .graph-line:not(.is-hover-path):not(.graph-cross-link) { opacity: 0.08; }
.graph-twig { stroke: rgba(200,169,106,0.22); }
.graph-job-line { stroke-width: 0.7; opacity: 0.62; }
.graph-cross-link { stroke: rgba(200,169,106,0.085); stroke-dasharray: 2 8; }
.branch-point, .junction-point { fill: var(--gold-muted); opacity: 0.72; transition: opacity var(--motion-normal), fill var(--motion-normal); }
.junction-point { fill: var(--gold); opacity: 0.58; }
.branch-point.is-muted { opacity: 0.12; }
.junction-point.is-muted { opacity: 0.1; }
@keyframes branch-draw { from { stroke-dasharray: 1 900; stroke-dashoffset: 160; opacity: 0; } to { stroke-dasharray: 900 0; stroke-dashoffset: 0; opacity: 1; } }

.graph-node {
  position: absolute;
  z-index: 3;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(200,169,106,0.24);
  background: rgba(16, 17, 20, 0.92);
  color: var(--text-secondary);
  cursor: pointer;
  transition: opacity var(--motion-normal), transform var(--motion-normal), border-color var(--motion-normal), background var(--motion-normal);
}
.graph-node:hover, .graph-node.is-selected, .graph-node.is-hover-neighbour { color: var(--text-primary); border-color: var(--gold-bright); background: var(--surface-selected); transform: translate(-50%, -50%) scale(1.06); }
.graph-world[data-hover-department] .graph-node[data-department]:not(.is-hover-neighbour) { opacity: 0.28; }
.graph-node.is-dimmed { opacity: 0.26; }
.graph-node.is-recommended::after { content: ""; position: absolute; inset: -5px; border: 1px solid rgba(200,169,106,0.48); border-radius: 50%; opacity: 0.64; }
.node-company { width: 58px; height: 58px; z-index: 5; border-color: var(--gold-bright); color: var(--gold-bright); background: radial-gradient(circle, rgba(200,169,106,0.15), rgba(16,17,20,0.98) 68%); }
.company-rings { position: absolute; inset: -9px; border: 1px solid rgba(200,169,106,0.48); border-radius: 50%; box-shadow: 0 0 0 7px rgba(200,169,106,0.09), 0 0 0 14px rgba(200,169,106,0.035); }
.node-company .node-caption { top: calc(100% + 14px); }
.node-company .node-caption strong { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.node-department { width: 52px; height: 52px; border-color: rgba(200,169,106,0.46); color: var(--gold-bright); }
.node-function { width: 32px; height: 32px; border-color: rgba(200,169,106,0.24); color: var(--text-muted); }
.node-function.is-connected { border-color: rgba(223,196,140,0.68); color: var(--gold-bright); }
.node-job { width: 16px; height: 16px; background: var(--panel-secondary); border-color: rgba(200,169,106,0.24); }
.node-icon { display: grid; place-items: center; }
.node-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold-muted); }
.node-function .node-dot { width: 5px; height: 5px; }
.node-job.is-priority .node-dot { background: var(--gold); }
.node-job.is-selected .node-dot { background: var(--gold-bright); }
.node-caption { position: absolute; top: calc(100% + 9px); left: 50%; transform: translateX(-50%); width: 160px; text-align: center; pointer-events: none; }
.node-caption strong { display: block; color: var(--text-primary); font-size: 12px; font-weight: 480; }
.node-caption small { display: block; margin-top: 3px; color: var(--text-muted); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; }
.node-department .node-caption strong { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.node-function .node-caption { width: 142px; opacity: 0; padding: 4px 6px; border-radius: 4px; background: rgba(10,11,13,0.84); transition: opacity var(--motion-micro); }
.node-function:hover .node-caption, .node-function:focus-visible .node-caption, .zoom-medium .node-function.is-connected .node-caption, .zoom-close .node-function .node-caption { opacity: 1; }
.node-job .node-caption { top: calc(100% + 7px); width: 150px; opacity: 0; }
.node-job.job-function-0 .node-caption { top: auto; bottom: calc(100% + 7px); }
.node-job:hover .node-caption, .node-job.is-selected .node-caption, .zoom-close.has-focus .node-job.is-key-agent .node-caption { opacity: 1; }

.graph-tools { position: absolute; left: var(--space-4); bottom: var(--space-4); z-index: 9; display: flex; gap: 1px; padding: 2px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(16, 17, 20, 0.84); }
.icon-action { width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--radius-small); }
.icon-action:hover { color: var(--text-primary); background: var(--surface-selected); }
.graph-legend { position: absolute; right: var(--space-4); bottom: var(--space-4); z-index: 8; display: flex; gap: var(--space-4); color: var(--text-subtle); font-size: 10px; }
.legend-key { display: flex; align-items: center; gap: 6px; }
.legend-key i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-muted); }

.detail-drawer, .about-panel {
  position: absolute;
  z-index: var(--z-panel);
  top: var(--space-4);
  right: var(--space-4);
  bottom: var(--space-4);
  width: min(380px, calc(100% - 32px));
  overflow-y: auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-large);
  background: rgba(18, 21, 27, 0.97);
  box-shadow: var(--shadow-panel);
  transform: translateX(calc(100% + 32px));
  transition: transform var(--motion-normal) var(--ease-standard);
}
.detail-drawer.is-open, .about-panel.is-open { transform: none; }
.drawer-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: var(--space-4) var(--space-6); border-bottom: 1px solid var(--separator); background: var(--panel); }
.drawer-body { padding: var(--space-6); }
.drawer-body h2 { margin: var(--space-2) 0 var(--space-3); font-size: 30px; font-weight: 500; letter-spacing: -0.04em; }
.drawer-summary { color: var(--text-secondary); font-size: 13px; line-height: 1.65; }
.metadata-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin: var(--space-6) 0; padding: var(--space-4) 0; border-block: 1px solid var(--separator); }
.metadata-grid span { color: var(--text-muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; }
.metadata-grid strong { display: block; margin-top: 5px; color: var(--text-primary); font-size: 12px; font-weight: 520; }
.editorial-section { padding: var(--space-4) 0; border-bottom: 1px solid var(--separator); }
.editorial-section h3 { margin: 0 0 var(--space-2); color: var(--text-secondary); font-size: 11px; font-weight: 550; letter-spacing: 0.08em; text-transform: uppercase; }
.editorial-section p { margin: 0; color: var(--text-muted); font-size: 12px; line-height: 1.6; }

.directory-view { height: 100%; overflow: auto; padding: var(--space-6) clamp(20px, 3vw, 48px) var(--space-12); background: var(--canvas); }
.directory-toolbar { display: grid; grid-template-columns: minmax(220px, 1fr) 220px; gap: var(--space-2); margin-bottom: var(--space-4); }
.directory-table { width: 100%; border-collapse: collapse; color: var(--text-secondary); font-size: 12px; }
.directory-table th { position: sticky; top: 0; z-index: 2; padding: var(--space-3); border-bottom: 1px solid var(--border-strong); background: var(--canvas); color: var(--text-muted); font-size: 10px; font-weight: 520; text-align: left; letter-spacing: 0.1em; text-transform: uppercase; }
.directory-table td { padding: var(--space-3); border-bottom: 1px solid var(--separator); }
.directory-table tr:hover td { background: var(--separator); color: var(--text-primary); }
.directory-agent { color: var(--text-primary); font-weight: 520; }
.department-mark { display: inline-block; width: 6px; height: 6px; margin-right: var(--space-2); border-radius: 50%; background: var(--gold-muted); }

.mobile-hierarchy { display: none; }
.booking-screen, .thanks-screen { height: 100%; overflow-y: auto; padding: clamp(28px, 5vw, 64px) clamp(20px, 5vw, 80px); }
.booking-layout { width: min(1040px, 100%); margin: 0 auto; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 72px); }
.booking-copy h1, .thanks-panel h1 { margin: var(--space-3) 0 var(--space-4); font-size: clamp(36px, 5vw, 48px); font-weight: 500; letter-spacing: -0.05em; line-height: 1.03; }
.booking-copy > .micro-label { display: block; margin-top: var(--space-6); }
.booking-copy > p { color: var(--text-secondary); font-size: 14px; line-height: 1.7; }
.booking-summary { margin-top: var(--space-8); border-top: 1px solid var(--separator); }
.booking-summary div { padding: var(--space-4) 0; border-bottom: 1px solid var(--separator); }
.booking-summary span { color: var(--text-muted); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.booking-summary strong { display: block; margin-top: 5px; color: var(--text-primary); font-size: 13px; font-weight: 520; }
.booking-form { border: 1px solid var(--border-strong); border-radius: var(--radius-large); background: var(--panel); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-panel); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4) var(--space-3); }
.field { display: grid; gap: var(--space-2); color: var(--text-secondary); font-size: 11px; }
.field.span-2 { grid-column: 1 / -1; }
.booking-form .primary-action { width: 100%; margin-top: var(--space-6); }
.thanks-screen { display: grid; place-items: center; }
.thanks-panel { width: min(620px, 100%); padding-left: var(--space-8); border-left: 1px solid var(--border-strong); }
.thanks-panel p { color: var(--text-secondary); line-height: 1.7; }
.thanks-value { margin: var(--space-8) 0; padding: var(--space-6) 0; border-block: 1px solid var(--separator); }
.thanks-value strong { display: block; color: var(--text-primary); font-size: 44px; font-weight: 480; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .site-nav .nav-action { display: none; }
  .landing-content { margin-left: 0; }
  .booking-layout { grid-template-columns: 1fr; }
  .result-brief { align-items: flex-start; }
  .result-actions { flex-wrap: wrap; justify-content: flex-end; }
  .is-map .opportunity-annotation { width: 270px; }
  .node-department[data-department="back-office"] .node-caption { top: 50%; right: calc(100% + 12px); left: auto; transform: translateY(-50%); text-align: right; }
}

@media (max-width: 720px) {
  body { overflow: hidden; }
  .site-header { height: 60px; padding-inline: var(--space-4); }
  .brand-copy span { display: none; }
  .site-nav .primary-action { min-height: 36px; padding-inline: var(--space-3); font-size: 11px; }
  .screen-result .site-header .primary-action { display: none; }
  .main-stage { inset: 60px 0 0; }
  .app-shell::before { background-size: 48px 48px; }
  .landing-layout { width: calc(100% - 32px); padding: var(--space-8) 0; }
  .landing-content { padding-left: var(--space-4); }
  .landing-content h1 { font-size: clamp(38px, 11vw, 50px); }
  .landing-copy { font-size: 13px; }
  .email-row { grid-template-columns: 1fr; }
  .landing-proof { gap: var(--space-4); }
  .landing-proof span { font-size: 9px; }
  .progress-cluster { top: 74px; }
  .question-screen { padding: var(--space-12) var(--space-3) var(--space-3); }
  .question-modal { max-height: calc(100dvh - 120px); padding: var(--space-6) var(--space-4); }
  .question-modal h1 { font-size: 28px; }
  .result-screen, .result-screen.is-map { display: grid; grid-template-rows: auto minmax(0, 1fr); }
  .result-brief, .is-map .result-brief { position: relative; inset: auto; padding: var(--space-4); display: grid; gap: var(--space-4); border-bottom: 1px solid var(--separator); background: rgba(10, 11, 13, 0.94); pointer-events: auto; }
  .is-map .opportunity-annotation { width: auto; padding: 0; }
  .priority-copy { display: none; }
  .opportunity-facts { margin-top: var(--space-3); }
  .opportunity-value { font-size: 44px; }
  .result-actions { justify-content: flex-start; }
  .is-map .graph-region { position: relative; inset: auto; }
  .graph-region:not(.is-full-map) .graph-canvas,
  .graph-region:not(.is-full-map) .graph-tools,
  .graph-region:not(.is-full-map) .graph-legend { display: none; }
  .graph-region:not(.is-full-map) .mobile-hierarchy { display: block; }
  .graph-region { overflow: auto; background: var(--canvas); }
  .mobile-hierarchy { height: 100%; overflow-y: auto; padding: var(--space-4); }
  .mobile-hierarchy-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-2) 0 var(--space-4); border-bottom: 1px solid var(--separator); }
  .mobile-hierarchy-head strong, .mobile-hierarchy-head small { display: block; }
  .mobile-hierarchy-head strong { color: var(--text-primary); font-size: 14px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
  .mobile-hierarchy-head small { margin-top: 4px; color: var(--text-muted); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; }
  .mobile-hierarchy-head .secondary-action { min-height: 36px; padding-inline: var(--space-3); font-size: 11px; }
  .mobile-section-label { display: block; margin: var(--space-6) 0 var(--space-2); }
  .mobile-department { width: 100%; display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: var(--space-3); min-height: 58px; border: 0; border-bottom: 1px solid var(--separator); background: transparent; color: var(--text-secondary); text-align: left; }
  .mobile-department.is-selected { color: var(--text-primary); }
  .mobile-department i { width: 7px; height: 7px; border: 1px solid var(--gold-muted); border-radius: 50%; }
  .mobile-department strong { font-size: 14px; font-weight: 520; }
  .mobile-department strong, .mobile-department small { display: block; }
  .mobile-department small { margin-top: 3px; color: var(--text-muted); font-size: 10px; }
  .mobile-job-list { padding: 0 0 var(--space-6) 22px; }
  .mobile-job { width: 100%; min-height: 44px; border: 0; border-bottom: 1px solid var(--separator); background: transparent; color: var(--text-secondary); text-align: left; font-size: 12px; }
  .mobile-job:hover { color: var(--text-primary); }
  .detail-drawer, .about-panel { position: fixed; top: 68px; right: var(--space-2); bottom: var(--space-2); width: calc(100% - 16px); }
  .graph-legend { display: none; }
  .directory-view { padding: var(--space-4); }
  .directory-toolbar { grid-template-columns: 1fr; }
  .directory-table th:nth-child(3), .directory-table td:nth-child(3), .directory-table th:nth-child(4), .directory-table td:nth-child(4) { display: none; }
  .directory-table th, .directory-table td { padding: var(--space-3) var(--space-2); }
  .booking-screen, .thanks-screen { padding: var(--space-6) var(--space-4) var(--space-12); }
  .form-grid { grid-template-columns: 1fr; }
  .field.span-2 { grid-column: auto; }
  .thanks-panel { padding-left: var(--space-4); }
}

@media (max-height: 680px) and (min-width: 721px) {
  .question-modal { max-height: calc(100dvh - 116px); padding-block: var(--space-6); }
  .question-intro { margin-bottom: var(--space-4); }
  .option-row { min-height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
