:root {
  --yellow: #f9dc58;
  --yellow-deep: #d5ad00;
  --yellow-wash: #fff8d6;
  --ink: #242422;
  --ink-soft: #3d3d39;
  --muted: #6d6d67;
  --line: #d9d9d2;
  --fog: #ecece7;
  --canvas: #f4f4ef;
  --paper: #ffffff;
  --shadow: 0 32px 80px rgba(31, 31, 27, .12);
  --shadow-small: 0 14px 34px rgba(31, 31, 27, .08);
  --radius: 0;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--canvas);
  background-image:
    linear-gradient(rgba(36, 36, 34, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 36, 34, .035) 1px, transparent 1px);
  background-size: 36px 36px;
  font-family: Roboto, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: .75rem 1rem;
  color: var(--ink);
  background: var(--yellow);
  font-weight: 900;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 76px;
  padding: .8rem clamp(1rem, 4vw, 4rem);
  color: white;
  background: var(--ink);
  border-bottom: 1px solid #444440;
}

.brand-lockup { display: flex; align-items: center; gap: .8rem; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 50%;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -.05em;
}

.brand { font-size: .79rem; font-weight: 900; letter-spacing: .075em; }
.brand-discipline { margin-top: .12rem; color: #bdbdb6; font-size: .66rem; letter-spacing: .045em; text-transform: uppercase; }

.header-edition {
  display: grid;
  justify-items: end;
  line-height: 1.2;
  text-transform: uppercase;
}
.header-edition span { color: #9f9f98; font-size: .62rem; letter-spacing: .12em; }
.header-edition strong { margin-top: .2rem; font-size: .72rem; letter-spacing: .08em; }

.page-shell {
  display: grid;
  grid-template-columns: minmax(330px, 430px) minmax(0, 960px);
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  max-width: 1500px;
  background: var(--canvas);
  box-shadow: 0 0 0 1px rgba(36, 36, 34, .08);
}

.intro-panel {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: calc(100vh - 76px);
  padding: clamp(2.1rem, 4vw, 4.6rem) clamp(1.5rem, 3.4vw, 3.5rem) 2.4rem;
  color: white;
  background:
    linear-gradient(135deg, rgba(255,255,255,.045) 0 25%, transparent 25% 100%),
    var(--ink);
  border-right: 12px solid var(--yellow);
}

.intro-panel::after {
  content: "";
  position: absolute;
  inset: auto 2rem 1.4rem auto;
  width: 64px;
  height: 2px;
  background: var(--yellow);
}

.intro-index {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 6vh, 5rem);
  padding-top: .65rem;
  color: #a9a9a2;
  border-top: 1px solid #50504b;
  font-size: .68rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.intro-index span:last-child { color: var(--yellow); text-align: right; }

.eyebrow {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: .71rem;
  font-weight: 900;
  letter-spacing: .095em;
  text-transform: uppercase;
}

.intro-panel .eyebrow { color: #c9c9c2; }

h1, h2, h3, p { overflow-wrap: anywhere; }

h1 {
  margin: 0;
  max-width: 9.6ch;
  font-size: clamp(2.7rem, 4vw, 4.55rem);
  font-weight: 900;
  line-height: .92;
  letter-spacing: -.063em;
}

.intro-copy {
  margin: 1.6rem 0 1.3rem;
  max-width: 35rem;
  color: #e1e1db;
  font-size: 1.03rem;
  line-height: 1.55;
}

.intro-manifesto {
  margin: 0 0 1.7rem;
  padding: .9rem 0 .9rem 1rem;
  color: white;
  border-left: 2px solid var(--yellow);
  font-size: .84rem;
  font-weight: 700;
}

.anchor-phrase {
  margin: 0 0 1.8rem;
  padding: 1.05rem 1rem 1.05rem 1.15rem;
  color: var(--ink);
  background: var(--yellow);
  font-size: .87rem;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -.01em;
  text-transform: uppercase;
  box-shadow: 8px 8px 0 #11110f;
}

.progress-nav { display: grid; gap: .15rem; }

.progress-item {
  position: relative;
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  grid-template-rows: auto auto;
  width: 100%;
  padding: .66rem .2rem .66rem 1rem;
  color: #797973;
  background: transparent;
  border: 0;
  border-left: 1px solid #4c4c47;
  text-align: left;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.progress-item::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 1.02rem;
  width: 7px;
  height: 7px;
  background: #50504b;
  border-radius: 50%;
}

.progress-item:disabled { cursor: default; opacity: .68; }
.progress-item span { grid-row: 1 / 3; color: inherit; font-size: .72rem; font-weight: 900; }
.progress-item strong { color: inherit; font-size: .9rem; text-transform: uppercase; }
.progress-item small { color: inherit; font-size: .73rem; }
.progress-item.is-active,
.progress-item.is-complete { color: white; border-left-color: #6d6d66; }
.progress-item.is-active { background: rgba(255, 255, 255, .045); }
.progress-item.is-active::before { left: -6px; top: .89rem; width: 11px; height: 11px; background: var(--yellow); box-shadow: 0 0 0 4px rgba(249,220,88,.12); }
.progress-item.is-active span { color: var(--yellow); }
.progress-item.is-complete::before { background: var(--yellow); }

.progress-meter {
  height: 3px;
  margin-top: 1.35rem;
  overflow: hidden;
  background: #4c4c47;
}

.progress-meter span {
  display: block;
  height: 100%;
  background: var(--yellow);
  transition: width .3s ease;
}

.progress-label { margin: .45rem 0 0; color: #a9a9a2; font-size: .72rem; }

.utility-note {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.45rem;
  padding-top: 1rem;
  color: #9d9d96;
  border-top: 1px solid #494944;
  font-size: .67rem;
  line-height: 1.35;
}

.utility-note strong { display: block; margin-bottom: .13rem; color: white; font-size: .68rem; text-transform: uppercase; }

.workspace {
  position: relative;
  padding: 0 clamp(1.1rem, 5vw, 5rem) 5rem;
}

.workspace-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  max-width: 880px;
  margin: 0 auto;
  padding: .75rem 0;
  color: #7e7e77;
  border-bottom: 1px solid #cfcfc8;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.workspace-topline span:last-child { text-align: right; }

.form-step,
.result {
  max-width: 880px;
  margin: clamp(1.8rem, 4vw, 4rem) auto 0;
}

.form-step {
  position: relative;
  padding: clamp(1.45rem, 4vw, 3.6rem);
  background: var(--paper);
  border-top: 9px solid var(--ink);
  box-shadow: var(--shadow);
}

.form-step::after {
  content: "";
  position: absolute;
  right: -10px;
  bottom: -10px;
  z-index: -1;
  width: 45%;
  height: 28%;
  background: var(--yellow);
}

.form-step[hidden],
.result[hidden] { display: none; }

.form-step.is-active { animation: step-in .42s cubic-bezier(.2,.8,.2,1) both; }

@keyframes step-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  align-items: start;
  margin-bottom: 2.8rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--line);
}

.step-number {
  color: var(--yellow-deep);
  font-size: clamp(3.7rem, 6vw, 6.5rem);
  font-weight: 900;
  line-height: .78;
  letter-spacing: -.08em;
}

.step-heading h2,
.result h2,
.program-bridge h2 {
  margin: 0;
  font-size: clamp(2rem, 3.8vw, 3.65rem);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.055em;
}

.step-heading p { margin: .85rem 0 0; max-width: 650px; color: #555550; font-size: 1.01rem; }

.field-grid { display: grid; gap: 1.25rem; }
.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.span-two { grid-column: 1 / -1; }

.field { display: grid; gap: .52rem; }

.field > span,
.choice-fieldset legend,
.inline-choice legend {
  color: var(--ink-soft);
  font-size: .74rem;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.field em { color: #82827b; font-size: .64rem; font-style: normal; font-weight: 500; }

input:not([type="radio"]):not([type="checkbox"]),
textarea {
  width: 100%;
  padding: .9rem 1rem;
  color: var(--ink);
  background: #fbfbf8;
  border: 1px solid #c9c9c2;
  border-radius: var(--radius);
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

textarea { min-height: 3.2rem; resize: vertical; }
input:hover, textarea:hover { border-color: #a5a59d; }
input:focus, textarea:focus { background: white; border-color: #907500; box-shadow: 0 0 0 4px rgba(249, 220, 88, .42); }
input::placeholder, textarea::placeholder { color: #989891; }

.choice-fieldset,
.inline-choice { margin: 2.4rem 0 0; padding: 0; border: 0; }
.field-help { margin: .35rem 0 1.05rem; max-width: 690px; color: var(--muted); font-size: .88rem; }

.stage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }

.choice-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: .6rem;
  min-height: 265px;
  padding: 1.15rem;
  background: #f8f8f4;
  border: 1px solid var(--line);
  border-top: 5px solid var(--fog);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.choice-card:hover { transform: translateY(-4px); border-color: #aaa9a2; box-shadow: var(--shadow-small); }
.choice-card:has(input:checked) { color: white; background: var(--ink); border-color: var(--ink); border-top-color: var(--yellow); box-shadow: 8px 8px 0 var(--yellow); transform: translate(-2px, -2px); }
.choice-card input { position: absolute; right: 1rem; top: 1rem; width: 1.05rem; height: 1.05rem; accent-color: var(--yellow-deep); }
.choice-card .choice-index { color: var(--yellow-deep); font-size: .73rem; font-weight: 900; }
.choice-card:has(input:checked) .choice-index { color: var(--yellow); }
.choice-card strong { max-width: 9ch; padding-right: 1.3rem; font-size: 1.28rem; line-height: 1.05; }
.choice-card > span:not(.choice-index) { font-size: .87rem; line-height: 1.45; }
.choice-card small { color: var(--muted); font-size: .73rem; line-height: 1.38; }
.choice-card:has(input:checked) small { color: #c9c9c3; }

.micro-callout,
.question-callout {
  margin-top: 2.2rem;
  padding: 1.05rem 1.15rem 1.05rem 1.25rem;
  color: var(--ink);
  background: var(--yellow-wash);
  border-left: 10px solid var(--yellow);
  font-weight: 900;
}

.micro-callout { font-size: .82rem; letter-spacing: -.01em; text-transform: uppercase; }
.question-callout { font-size: 1.08rem; }

.step-actions,
.result-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .85rem;
  margin-top: 2.3rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
}

.step-actions-end { justify-content: flex-end; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 52px;
  padding: .88rem 1.25rem;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .025em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.button.primary { background: var(--yellow); box-shadow: 5px 5px 0 var(--ink); }
.button.primary:hover { background: #f5d02f; transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.button.secondary { background: white; }
.button.secondary:hover { background: #f4f4ef; transform: translateY(-2px); }
.button:focus-visible { outline: 4px solid rgba(194, 156, 0, .42); outline-offset: 4px; }

.field-large { margin-top: 1.3rem; }

.areas-list { border-top: 2px solid var(--ink); }
.areas-list label {
  display: grid;
  grid-template-columns: auto 2.4rem 1fr;
  gap: .85rem;
  align-items: center;
  padding: .78rem .6rem;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .15s ease, padding-left .15s ease;
}
.areas-list label:hover { padding-left: .9rem; background: #f7f7f2; }
.areas-list input { width: 1.15rem; height: 1.15rem; accent-color: var(--yellow-deep); }
.area-number { color: #af8e00; font-size: .72rem; font-weight: 900; }
.areas-list strong, .areas-list small { display: block; }
.areas-list strong { font-size: .94rem; }
.areas-list small { color: var(--muted); font-size: .79rem; }
.areas-list label:has(input:checked) { padding-left: .9rem; background: var(--yellow-wash); border-left: 7px solid var(--yellow); }

.inline-choice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8rem 1.4rem;
  padding: 1rem 1.1rem;
  background: var(--ink);
  color: white;
  border-left: 10px solid var(--yellow);
}
.inline-choice legend { float: left; width: 100%; color: white; }
.inline-choice label { display: inline-flex; align-items: center; gap: .45rem; font-weight: 800; }
.inline-choice input { width: 1.05rem; height: 1.05rem; accent-color: var(--yellow); }

.triage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin-top: 1.6rem; }
.triage-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: .65rem;
  min-width: 0;
  padding: 1rem;
  background: #f8f8f4;
  border: 1px solid var(--line);
  border-top: 7px solid #c7c7c0;
}
.triage-card.now { border-top-color: var(--yellow); }
.triage-card.anticipate { border-top-color: var(--ink); }
.triage-card.wait { border-top-color: #c8c8c1; }
.triage-label { font-size: .84rem; font-weight: 900; letter-spacing: -.01em; text-transform: uppercase; }
.triage-card small { min-height: 4rem; color: var(--muted); font-size: .75rem; }
.triage-card textarea { background: white; font-size: .85rem; }
.priority-field { margin-top: 1.9rem; }

.path-list { display: grid; border-top: 2px solid var(--ink); }
.path-list label {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: .85rem;
  align-items: start;
  padding: .95rem .8rem;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: padding-left .15s ease, background .15s ease;
}
.path-list label:hover { padding-left: 1.1rem; background: #f7f7f2; }
.path-list label:has(input:checked) { padding-left: 1.1rem; background: var(--yellow); border-left: 8px solid var(--ink); }
.path-list input { width: 1.05rem; height: 1.05rem; margin-top: .18rem; accent-color: var(--ink); }
.path-list strong { display: inline-block; min-width: 6.2rem; margin-right: .35rem; font-size: .86rem; text-transform: uppercase; }

.commitment-block {
  display: grid;
  gap: 1rem;
  margin: 2.2rem 0 1.4rem;
  padding: 1.35rem;
  background: var(--yellow-wash);
  border: 1px solid #ead66f;
  border-left: 12px solid var(--yellow);
}
.commitment-title { margin: 0; font-size: .76rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.commitment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-error {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 20;
  max-width: min(420px, calc(100vw - 2rem));
  padding: 1rem 1.15rem;
  color: white;
  background: var(--ink);
  border-left: 10px solid var(--yellow);
  box-shadow: var(--shadow);
  font-weight: 700;
}

.result { animation: step-in .42s cubic-bezier(.2,.8,.2,1) both; }

.result-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  padding: clamp(1.6rem, 4vw, 3.4rem);
  color: white;
  background: var(--ink);
  border-top: 10px solid var(--yellow);
  box-shadow: var(--shadow);
}

.result-hero-index {
  color: var(--yellow);
  font-size: clamp(4.5rem, 9vw, 8rem);
  font-weight: 900;
  line-height: .75;
  letter-spacing: -.09em;
}

.result-kicker { color: var(--yellow); font-size: .74rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.result h2 { max-width: 14ch; margin-top: .75rem; }
.result-lead { max-width: 660px; margin: 1.1rem 0 0; color: #d8d8d2; font-size: 1.05rem; }

.result-stage {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: .85rem 1.1rem;
  color: var(--ink);
  background: var(--yellow);
  box-shadow: var(--shadow-small);
}
.result-stage span { font-weight: 900; text-transform: uppercase; }

.diagnostic-strip {
  display: grid;
  grid-template-columns: .8fr 1.35fr .7fr;
  margin: 1.2rem 0;
  background: white;
  border: 1px solid var(--line);
}
.diagnostic-strip div { min-width: 0; padding: 1rem; border-right: 1px solid var(--line); }
.diagnostic-strip div:last-child { border-right: 0; }
.diagnostic-strip span { display: block; margin-bottom: .28rem; color: var(--muted); font-size: .65rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.diagnostic-strip strong { display: block; font-size: .86rem; line-height: 1.35; }

.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }

.result-card,
.decision-summary,
.systems-view {
  padding: 1.35rem;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(31,31,27,.045);
}

.accent-card { color: white; background: var(--ink); border-color: var(--ink); border-top: 7px solid var(--yellow); }
.result-card-label { display: block; margin-bottom: .6rem; color: #73736c; font-size: .68rem; font-weight: 900; letter-spacing: .065em; text-transform: uppercase; }
.accent-card .result-card-label { color: var(--yellow); }
.result-card h3 { margin: 0; font-size: 1.18rem; line-height: 1.27; }
.result-card p { margin: .6rem 0 0; color: #5b5b55; font-size: .91rem; }
.accent-card p { color: #cecec8; }

.decision-summary { margin-top: .85rem; background: var(--yellow-wash); border-left: 12px solid var(--yellow); }
.decision-summary p { margin: 0; font-size: 1.06rem; font-weight: 800; }

.systems-view {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  margin-top: .85rem;
}
.systems-view p { margin: 0; color: #555550; }
.area-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem; max-width: 320px; }
.area-chip { padding: .38rem .62rem; color: white; background: var(--ink); font-size: .68rem; font-weight: 800; }

.program-bridge {
  position: relative;
  display: grid;
  grid-template-columns: 4.7rem 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
  padding: clamp(1.6rem, 4vw, 3rem);
  color: var(--ink);
  background: var(--yellow);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.program-bridge::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -160px;
  width: 280px;
  height: 280px;
  border: 58px solid rgba(36,36,34,.08);
  border-radius: 50%;
}

.program-marker {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 4.2rem;
  height: 4.2rem;
  color: var(--yellow);
  background: var(--ink);
  font-size: 1.25rem;
  font-weight: 900;
}

.program-bridge > div:last-child { position: relative; z-index: 1; }
.program-bridge .eyebrow { color: #5c4b00; }
.program-bridge h2 { max-width: 14ch; margin-top: 1.4rem; font-size: clamp(2.2rem, 4.5vw, 4.2rem); }
.program-bridge p:not(.eyebrow) { max-width: 680px; }

.bridge-sequence {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
  margin: 1rem 0 0;
  padding: .8rem 0;
  border-top: 1px solid rgba(36,36,34,.35);
  border-bottom: 1px solid rgba(36,36,34,.35);
  font-size: .72rem;
}
.bridge-sequence span,
.bridge-sequence strong { padding-right: .5rem; border-right: 1px solid rgba(36,36,34,.25); }
.bridge-sequence strong { border-right: 0; }

.program-button { margin-top: .65rem; color: white; background: var(--ink); box-shadow: 6px 6px 0 rgba(255,255,255,.75); }
.program-button:hover { color: var(--ink); background: white; transform: translate(-2px,-2px); box-shadow: 9px 9px 0 var(--ink); }

.result-actions { border-top-color: #c8c8c2; }

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  min-height: 76px;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  color: #5d4c00;
  background: var(--yellow);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.site-footer span:nth-child(2) { text-align: center; }
.footer-index { display: inline-grid; place-items: center; min-width: 64px; height: 32px; color: white; background: var(--ink); }

/* Dirección visual suave · grises neutros y amarillo luminoso */
:root {
  --yellow: #f9dc58;
  --yellow-deep: #c9a500;
  --yellow-wash: #fffbea;
  --ink: #4a4a4a;
  --ink-soft: #4a4a4a;
  --muted: #747474;
  --line: #dedede;
  --fog: #e7e8e8;
  --canvas: #f6f7f7;
  --paper: #ffffff;
  --shadow: 0 24px 70px rgba(74, 74, 74, .07);
  --shadow-small: 0 12px 30px rgba(74, 74, 74, .06);
  --radius: 10px;
}

body {
  background: var(--canvas);
}

.site-header {
  min-height: 74px;
  color: var(--ink);
  background: rgba(255, 255, 255, .96);
  border-bottom-color: var(--line);
}

.brand-mark {
  color: var(--ink-soft);
  background: var(--yellow);
}

.brand-discipline,
.header-edition span { color: #888888; }

.header-edition strong { color: var(--ink-soft); }

.page-shell {
  grid-template-columns: minmax(330px, 400px) minmax(0, 1000px);
  min-height: calc(100vh - 74px);
  background: var(--canvas);
  box-shadow: none;
}

.intro-panel {
  min-height: calc(100vh - 74px);
  padding: clamp(3rem, 5vw, 5.8rem) clamp(2rem, 3.4vw, 3.7rem) 3rem;
  color: var(--ink);
  background: #f0f1f1;
  border-right: 5px solid var(--yellow);
}

.intro-panel::after {
  width: 42px;
  background: #f0cf36;
}

.intro-index {
  margin-bottom: clamp(3rem, 7vh, 6rem);
  color: #858585;
  border-top-color: #d2d3d3;
}

.intro-index span:last-child,
.intro-panel .eyebrow { color: #666666; }

h1 {
  max-width: 10.7ch;
  font-size: clamp(2.65rem, 3.7vw, 4.2rem);
  line-height: .98;
  letter-spacing: -.052em;
}

.intro-copy {
  margin: 2rem 0 1.7rem;
  color: #606060;
  line-height: 1.65;
}

.intro-manifesto {
  margin-bottom: 2.2rem;
  padding: 1rem 0 1rem 1.15rem;
  color: #5f5f5f;
  border-left-color: #f9dc58;
  font-weight: 600;
  line-height: 1.55;
}

.anchor-phrase {
  margin-bottom: 2.5rem;
  padding: 1.2rem 1.3rem;
  color: var(--ink-soft);
  background: #fff6cc;
  border-radius: 8px;
  box-shadow: none;
  line-height: 1.45;
}

.progress-nav { gap: .35rem; }

.progress-item {
  padding: .75rem .8rem .75rem 1.1rem;
  color: #989898;
  border-left-color: #d0d1d1;
  border-radius: 8px;
}

.progress-item::before { background: #c9caca; }
.progress-item strong { text-transform: none; }
.progress-item.is-active,
.progress-item.is-complete { color: var(--ink-soft); border-left-color: #e6ca43; }
.progress-item.is-active { background: rgba(255, 255, 255, .7); }
.progress-item.is-active::before { background: #f9dc58; box-shadow: 0 0 0 4px rgba(249, 220, 88, .16); }
.progress-item.is-active span { color: #777777; }
.progress-item.is-complete::before { background: #f0cf36; }

.progress-meter { margin-top: 1.8rem; background: #d7d8d8; }
.progress-meter span { background: #f9dc58; }
.progress-label { color: #7c7c7c; }

.utility-note {
  gap: 1.4rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  color: #888888;
  border-top-color: #d0d1d1;
}
.utility-note strong { color: #585858; }

.workspace {
  padding-right: clamp(1.4rem, 5vw, 5.5rem);
  padding-bottom: 7rem;
  padding-left: clamp(1.4rem, 5vw, 5.5rem);
}

.workspace-topline {
  max-width: 920px;
  padding: 1.1rem 0;
  color: #919191;
  border-bottom-color: #dbdcdc;
}

.form-step,
.result {
  max-width: 920px;
  margin-top: clamp(3rem, 6vw, 5.8rem);
}

.form-step {
  padding: clamp(2.2rem, 5vw, 4.8rem);
  border: 1px solid #e2e3e3;
  border-top: 4px solid var(--yellow);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.form-step::after { display: none; }

.step-heading {
  gap: 1.65rem;
  margin-bottom: 3.8rem;
  padding-bottom: 2.7rem;
  border-bottom-color: #e4e5e5;
}

.step-number {
  color: #e2c12f;
  font-size: clamp(3.4rem, 5vw, 5.4rem);
  font-weight: 500;
  line-height: .86;
}

.step-heading h2,
.result h2,
.program-bridge h2 {
  line-height: 1.04;
  letter-spacing: -.045em;
}

.step-heading p {
  margin-top: 1rem;
  color: #666666;
  line-height: 1.6;
}

.field-grid { gap: 1.7rem 1.55rem; }

.field > span,
.choice-fieldset legend,
.inline-choice legend {
  color: #5f5f5f;
  font-size: .8rem;
  letter-spacing: .015em;
  text-transform: none;
}

input:not([type="radio"]):not([type="checkbox"]),
textarea {
  padding: 1rem 1.05rem;
  background: #fcfcfc;
  border-color: #d5d6d6;
}

input:focus,
textarea:focus {
  border-color: #e4c431;
  box-shadow: 0 0 0 4px rgba(249, 220, 88, .32);
}

.choice-fieldset,
.inline-choice { margin-top: 3.2rem; }
.field-help { margin-top: .55rem; margin-bottom: 1.4rem; line-height: 1.55; }

.stage-grid { gap: 1.15rem; }

.choice-card {
  min-height: 285px;
  gap: .75rem;
  padding: 1.5rem;
  background: #fafafa;
  border-color: #e0e1e1;
  border-top-color: #e7e8e8;
  border-radius: 12px;
}

.choice-card:hover {
  transform: translateY(-2px);
  border-color: #cdcece;
  box-shadow: var(--shadow-small);
}

.choice-card:has(input:checked) {
  color: var(--ink);
  background: #fff9df;
  border-color: #efd766;
  border-top-color: #efd766;
  box-shadow: 0 14px 34px rgba(74, 74, 74, .06);
  transform: none;
}

.choice-card:has(input:checked) .choice-index { color: #777777; }
.choice-card:has(input:checked) small { color: var(--muted); }

.micro-callout,
.question-callout {
  margin-top: 3rem;
  padding: 1.25rem 1.45rem;
  background: #fffbea;
  border-left: 5px solid #f0d344;
  border-radius: 0 10px 10px 0;
}

.micro-callout {
  font-size: .9rem;
  line-height: 1.5;
  text-transform: none;
}

.step-actions,
.result-actions {
  margin-top: 3.1rem;
  padding-top: 1.8rem;
  border-top-color: #e2e3e3;
}

.button {
  min-height: 50px;
  padding: .9rem 1.25rem;
  border: 1px solid #9a9a9a;
  border-radius: 8px;
  font-size: .89rem;
  letter-spacing: 0;
  text-transform: none;
}

.button.primary {
  color: white;
  background: #4a4a4a;
  border-color: #4a4a4a;
  box-shadow: none;
}

.button.primary:hover {
  color: var(--ink);
  background: var(--yellow);
  border-color: #e6ca43;
  transform: translateY(-1px);
  box-shadow: 0 9px 22px rgba(74,74,74,.1);
}

.button.secondary {
  color: #656565;
  background: transparent;
  border-color: #c8c9c9;
}

.areas-list { border-top-color: #cfd0d0; }
.areas-list label { padding-top: .95rem; padding-bottom: .95rem; }
.areas-list label:has(input:checked) {
  padding-left: .9rem;
  background: #fffbea;
  border-left: 4px solid #f0d344;
}

.inline-choice {
  padding: 1.25rem 1.35rem;
  color: var(--ink);
  background: #f1f2f2;
  border-left: 5px solid #f0d344;
  border-radius: 0 10px 10px 0;
}
.inline-choice legend { color: #5f5f5f; }
.inline-choice input { accent-color: #d1ad00; }

.triage-grid { gap: 1.1rem; margin-top: 2rem; }
.triage-card {
  gap: .85rem;
  padding: 1.35rem;
  background: #fafafa;
  border-color: #e0e1e1;
  border-top-width: 4px;
  border-radius: 10px;
}
.triage-card.now { border-top-color: #f0d344; }
.triage-card.anticipate { border-top-color: #aeb0b0; }
.triage-card.wait { border-top-color: #d9dada; }

.path-list { gap: .7rem; border-top: 0; }
.path-list label {
  padding: 1.15rem 1.1rem;
  background: #fafafa;
  border: 1px solid #e0e1e1;
  border-radius: 10px;
}
.path-list label:hover { padding-left: 1.25rem; background: #f7f7f7; }
.path-list label:has(input:checked) {
  padding-left: 1.25rem;
  background: #fff9df;
  border: 1px solid #efd766;
  border-left: 5px solid #e9c930;
}

.commitment-block {
  margin-top: 3rem;
  padding: 1.8rem;
  background: #fffbea;
  border-color: #f0e4aa;
  border-left: 5px solid #f0d344;
  border-radius: 0 12px 12px 0;
}

.result-hero {
  gap: 2rem;
  padding: clamp(2.2rem, 5vw, 4.8rem);
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #e0e1e1;
  border-top: 5px solid var(--yellow);
  border-radius: 14px 14px 0 0;
  box-shadow: var(--shadow);
}

.result-hero-index {
  color: #f0d75c;
  font-size: clamp(3.7rem, 7vw, 6.7rem);
  font-weight: 500;
}

.result-kicker { color: #777777; }
.result-lead { margin-top: 1.4rem; color: #606060; line-height: 1.65; }

.result-stage {
  padding: 1.1rem 1.35rem;
  background: #fff7d2;
  border: 1px solid #f0df8c;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  box-shadow: none;
}

.diagnostic-strip {
  margin: 2rem 0 1.25rem;
  border-color: #e0e1e1;
  border-radius: 10px;
  overflow: hidden;
}

.diagnostic-strip div { padding: 1.3rem; border-right-color: #e4e5e5; }

.result-grid { gap: 1.15rem; }

.result-card,
.decision-summary,
.systems-view {
  padding: 1.65rem;
  border-color: #e0e1e1;
  border-radius: 12px;
  box-shadow: none;
}

.accent-card {
  color: var(--ink);
  background: #fffbea;
  border-color: #f0e4aa;
  border-top: 4px solid #f0d344;
}
.accent-card .result-card-label { color: #777777; }
.accent-card p { color: #5b5b5b; }

.decision-summary {
  margin-top: 1.15rem;
  background: #f7f7f7;
  border-left: 5px solid #f0d344;
  border-radius: 0 12px 12px 0;
}

.systems-view { margin-top: 1.15rem; }
.area-chip {
  color: #5d5d5d;
  background: #e7e8e8;
  border: 1px solid #dedfdf;
  border-radius: 999px;
}

.program-bridge {
  gap: 2rem;
  margin-top: 4.5rem;
  padding: clamp(2.3rem, 5vw, 4.8rem);
  color: var(--ink);
  background: #fff9e6;
  border: 1px solid #f0e4ae;
  border-radius: 16px;
  box-shadow: var(--shadow-small);
}

.program-bridge::after { display: none; }

.program-marker {
  width: 4rem;
  height: 4rem;
  color: #4a4a4a;
  background: #f9e58a;
  border-radius: 50%;
  font-size: 1.05rem;
  font-weight: 700;
}

.program-bridge .eyebrow { color: #777777; }
.program-bridge h2 {
  margin-top: 2rem;
  max-width: 15ch;
  font-size: clamp(2rem, 4vw, 3.7rem);
}

.program-bridge p:not(.eyebrow) { color: #606060; line-height: 1.65; }

.bridge-sequence {
  gap: 1rem;
  margin-top: 1.4rem;
  padding: 1rem 0;
  border-color: rgba(74, 74, 74, .16);
}
.bridge-sequence span,
.bridge-sequence strong { border-right-color: rgba(74, 74, 74, .12); }

.program-button {
  color: white;
  background: #4a4a4a;
  border-color: #4a4a4a;
  box-shadow: none;
}
.program-button:hover {
  color: var(--ink);
  background: white;
  border-color: #cfcfcf;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(74,74,74,.1);
}

.site-footer {
  min-height: 84px;
  color: #6c6c6c;
  background: #e7e8e8;
  font-weight: 700;
}
.footer-index {
  color: #666666;
  background: #f9e58a;
  border-radius: 6px;
}

@media (max-width: 1050px) {
  .page-shell { grid-template-columns: 360px minmax(0, 1fr); }
  .intro-panel { padding-right: 1.8rem; padding-left: 1.8rem; }
  h1 { font-size: clamp(2.5rem, 5vw, 3.6rem); }
  .stage-grid, .triage-grid { grid-template-columns: 1fr; }
  .choice-card { min-height: 0; }
  .triage-card small { min-height: 0; }
}

@media (max-width: 820px) {
  .page-shell { grid-template-columns: 1fr; }
  .intro-panel { position: static; min-height: auto; padding: 2.4rem 1.25rem 1.8rem; border-right: 0; border-bottom: 5px solid var(--yellow); }
  .intro-panel::after { display: none; }
  .intro-index { margin-bottom: 2rem; }
  h1 { max-width: 14ch; }
  .intro-copy, .intro-manifesto { max-width: 680px; }
  .anchor-phrase { max-width: 620px; }
  .progress-nav { grid-template-columns: repeat(4, minmax(115px, 1fr)); overflow-x: auto; padding-bottom: .45rem; }
  .progress-item { grid-template-columns: 1fr; grid-template-rows: repeat(3, auto); min-width: 115px; padding: .65rem .5rem; border-left: 0; border-top: 1px solid #cfd0d0; }
  .progress-item::before { left: .45rem; top: -4px; }
  .progress-item.is-active::before { left: .35rem; top: -6px; }
  .progress-item span { grid-row: auto; }
  .progress-item small { display: none; }
  .progress-meter { margin-top: .8rem; }
  .utility-note { max-width: 480px; }
  .workspace { padding-bottom: 3.5rem; }
}

@media (max-width: 650px) {
  .site-header { align-items: flex-start; }
  .brand-discipline { display: none; }
  .header-edition span { display: none; }
  .header-edition strong { max-width: 9rem; text-align: right; }
  .workspace { padding-right: 1rem; padding-left: 1rem; }
  .workspace-topline span:last-child { display: none; }
  .form-step, .result { margin-top: 1.3rem; }
  .form-step { padding: 1.35rem 1rem 1.5rem; }
  .form-step::after { right: -6px; bottom: -6px; }
  .step-heading { grid-template-columns: 1fr; gap: .85rem; }
  .step-number { font-size: 4rem; }
  .two-columns,
  .commitment-grid,
  .result-grid,
  .systems-view,
  .diagnostic-strip { grid-template-columns: 1fr; }
  .span-two { grid-column: auto; }
  .choice-card { min-height: 0; }
  .result-hero { grid-template-columns: 1fr; }
  .result-hero-index { font-size: 4.5rem; }
  .result-stage { align-items: flex-start; flex-direction: column; }
  .diagnostic-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .diagnostic-strip div:last-child { border-bottom: 0; }
  .systems-view { align-items: start; }
  .area-chips { justify-content: flex-start; max-width: none; }
  .program-bridge { grid-template-columns: 1fr; padding: 1.6rem 1.2rem 2rem; }
  .program-marker { width: 3.4rem; height: 3.4rem; }
  .bridge-sequence { grid-template-columns: 1fr; }
  .bridge-sequence span, .bridge-sequence strong { padding: .2rem 0; border-right: 0; }
  .step-actions, .result-actions { align-items: stretch; flex-direction: column-reverse; }
  .step-actions .button, .result-actions .button { width: 100%; }
  .step-actions-end { flex-direction: column; }
  .site-footer { grid-template-columns: 1fr; justify-items: start; }
  .site-footer span:nth-child(2) { text-align: left; }
}

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

@media print {
  @page { margin: 16mm; }
  body { background: white; }
  .site-header, .site-footer, .intro-panel, .workspace-topline, .result-actions, .form-error { display: none !important; }
  .page-shell { display: block; min-height: 0; box-shadow: none; }
  .workspace { padding: 0; }
  #diagnostic-form { display: none !important; }
  .result { max-width: none; margin: 0; }
  .result-hero { color: var(--ink); background: white; border: 2px solid var(--ink); box-shadow: none; }
  .result-kicker, .result-hero-index { color: var(--ink); }
  .result-lead { color: var(--ink); }
  .program-bridge { color: var(--ink); background: white; border: 2px solid var(--ink); box-shadow: none; break-inside: avoid; }
  .program-bridge::after { display: none; }
  .program-button { display: none; }
  .result-card, .decision-summary, .systems-view, .diagnostic-strip { break-inside: avoid; box-shadow: none; }
}
