:root {
  color-scheme: light;
  --ink: #171714;
  --ink-soft: #4d4d47;
  --paper: #f3f0e8;
  --surface: #fffdf7;
  --surface-2: #e8e4da;
  --rule: #24241f;
  --rule-soft: #77766d;
  --signal: #174f78;
  --signal-soft: #d8e7f0;
  --error: #8b1d1d;
  --focus: #005ea8;
  --max: 96rem;
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
  line-height: 1.5;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  background: var(--paper);
  font-size: 1rem;
}

body,
button,
input,
textarea {
  font: inherit;
}

button,
input,
textarea {
  color: inherit;
}

a {
  color: var(--ink);
  text-decoration-thickness: .12em;
  text-underline-offset: .2em;
}

a:hover {
  text-decoration-thickness: .2em;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: .75rem;
  left: .75rem;
  padding: .75rem 1rem;
  min-height: 44px;
  background: var(--surface);
  border: 2px solid var(--rule);
  transform: translateY(-200%);
}

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

.site-head,
.primary-nav,
main > section,
.site-footer {
  width: min(100%, var(--max));
  margin-inline: auto;
}

.prototype-notice {
  margin: 0;
  padding: .7rem clamp(1rem, 3vw, 3rem);
  color: var(--surface);
  background: var(--ink);
  font-size: 1rem;
  letter-spacing: .015em;
}

.prototype-notice strong {
  text-transform: uppercase;
  letter-spacing: .12em;
}

.brand-lockup {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 1rem 2rem;
  padding: 1.5rem clamp(1rem, 3vw, 3rem);
  border-bottom: 2px solid var(--rule);
  background: var(--paper);
}

.brand-lockup p {
  margin: 0;
}

.brand-name {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -.04em;
}

.brand-context {
  color: var(--ink-soft);
}

.edition-mark,
.section-kicker,
.hero-index,
.item-index {
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 2px solid var(--rule);
  background: var(--surface);
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: .65rem clamp(.9rem, 2vw, 1.5rem);
  border-right: 1px solid var(--rule);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.primary-nav a:hover {
  background: var(--signal-soft);
}

main > section {
  padding: clamp(3.5rem, 8vw, 8rem) clamp(1rem, 3vw, 3rem);
  border-bottom: 2px solid var(--rule);
}

.hero {
  display: grid;
  grid-template-columns: minmax(2rem, .4fr) minmax(0, 2.3fr) minmax(18rem, 1fr);
  gap: clamp(1.25rem, 3vw, 3.5rem);
  min-height: min(54rem, calc(100vh - 8rem));
  align-items: start;
}

.hero-index {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--ink-soft);
}

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

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.04;
}

h1 {
  max-width: 14ch;
  margin-bottom: clamp(2rem, 5vw, 4rem);
  font-size: clamp(3.6rem, 7.8vw, 8.6rem);
  font-weight: 800;
  letter-spacing: -.075em;
}

h2 {
  max-width: 18ch;
  margin-bottom: 1.5rem;
  font-size: clamp(2.35rem, 5vw, 5.25rem);
  font-weight: 800;
  letter-spacing: -.055em;
}

h3 {
  margin-bottom: .6rem;
  font-size: 1.15rem;
  line-height: 1.2;
}

.service-definition {
  max-width: 46rem;
  margin-block: 0 1.5rem;
  font-size: clamp(1.3rem, 2.1vw, 2rem);
  line-height: 1.35;
}

.hero-copy > p:not(.service-definition) {
  max-width: 44rem;
  font-size: 1.05rem;
}

.boundary-line {
  padding-top: 1.25rem;
  border-top: 4px solid var(--rule);
  font-weight: 700;
}

.opening-decision {
  padding: 1.5rem;
  border: 2px solid var(--rule);
  background: var(--surface);
}

.opening-decision h2 {
  font-size: clamp(1.8rem, 3vw, 3.25rem);
}

.qualified-action + .qualified-action {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
}

.qualified-action p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 1rem;
}

.action,
button {
  min-height: 48px;
}

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: .85rem 1rem;
  border: 2px solid var(--rule);
  border-radius: 0;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

button.action {
  cursor: pointer;
}

.action-primary {
  color: var(--surface);
  background: var(--signal);
  border-color: var(--signal);
}

.action-primary:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.action-secondary {
  color: var(--ink);
  background: var(--surface);
}

.action-secondary:hover {
  background: var(--signal-soft);
}

.section-kicker {
  display: inline-block;
  margin-bottom: 2rem;
  padding-bottom: .35rem;
  border-bottom: 4px solid var(--signal);
}

.section-lede {
  max-width: 58rem;
  margin-bottom: clamp(2rem, 4vw, 4rem);
  font-size: 1.15rem;
}

.decision-zone {
  background: var(--surface);
}

.decision-zone > h2 {
  max-width: 15ch;
}

.lens-controls {
  margin-block: 2rem 0;
  padding: 1.25rem;
  border: 2px solid var(--rule);
  border-bottom: 0;
  background: var(--paper);
}

.control-label {
  margin: 0 0 .75rem;
  font-weight: 800;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.lens-toggle,
.lens-reset {
  min-height: 48px;
  padding: .7rem 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 2px solid var(--rule);
  border-radius: 0;
  cursor: pointer;
  font-weight: 700;
}

.lens-toggle[aria-pressed="true"] {
  color: var(--surface);
  background: var(--signal);
  border-color: var(--signal);
  box-shadow: inset 0 0 0 2px var(--surface);
}

.lens-reset {
  margin-left: auto;
  border-style: dashed;
}

.lens-status {
  margin: 1rem 0 0;
  padding-left: 1rem;
  border-left: 4px solid var(--signal);
}

.comparison-static {
  border: 2px solid var(--rule);
  background: var(--surface);
}

.comparison-table-wrap {
  width: 100%;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.comparison-table caption {
  padding: 1rem;
  color: var(--surface);
  background: var(--ink);
  font-weight: 800;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: clamp(.75rem, 1.6vw, 1.4rem);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  text-align: left;
  overflow-wrap: anywhere;
}

.comparison-table th:last-child,
.comparison-table td:last-child {
  border-right: 0;
}

.comparison-table thead th {
  color: var(--surface);
  background: var(--ink);
  font-size: .875rem;
  letter-spacing: .04em;
}

.comparison-table tbody th {
  width: 18%;
  background: var(--surface-2);
}

.comparison-table thead th:nth-child(1) { width: 18%; }
.comparison-table thead th:nth-child(2) { width: 32%; }
.comparison-table thead th:nth-child(3) { width: 29%; }
.comparison-table thead th:nth-child(4) { width: 21%; }

.comparison-table td:last-child {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: .2rem .5rem;
}

.comparison-table td:last-child span:last-child {
  grid-column: 2;
  color: var(--ink-soft);
  font-size: .875rem;
}

.state-mark {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  min-width: 1.35rem;
  height: 1.35rem;
  margin-right: .35rem;
  border: 2px solid currentColor;
  color: var(--signal);
  font-size: .85rem;
  font-weight: 900;
  line-height: 1;
}

.state-known { border-radius: 0; }
.state-unknown { border-style: dashed; border-radius: 50%; }
.state-clarify { transform: rotate(45deg); }
.state-clarify + strong { display: inline-block; }

.comparison-static[data-active-lens="known"] [data-lens-row="known"],
.comparison-static[data-active-lens="unknown"] [data-lens-row="unknown"],
.comparison-static[data-active-lens="clarify"] [data-lens-row="clarify"] {
  box-shadow: inset 8px 0 0 var(--signal);
  background: var(--signal-soft);
}

.comparison-cards {
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.comparison-cards > li {
  padding: 1.25rem;
  border-bottom: 2px solid var(--rule);
}

.comparison-cards > li:last-child {
  border-bottom: 0;
}

.comparison-cards h3 {
  padding-bottom: .75rem;
  border-bottom: 4px solid var(--rule);
  font-size: 1.35rem;
}

.comparison-cards dl,
.comparison-cards dd {
  margin: 0;
}

.comparison-cards dl > div {
  display: grid;
  gap: .3rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--rule-soft);
}

.comparison-cards dl > div:last-child {
  border-bottom: 0;
}

.comparison-cards dt {
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.branch-rail {
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border-top: 5px solid var(--rule);
  background: var(--paper);
}

.branch-rail h3 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.branch-rail ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.branch-rail li {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: .75rem;
  padding: 1rem;
  border-top: 2px solid var(--rule);
  border-right: 1px solid var(--rule);
}

.branch-rail li:last-child {
  border-right: 0;
}

.branch-rail li:not(:last-child)::after {
  content: "→";
  position: absolute;
  z-index: 2;
  top: -.95rem;
  right: -.7rem;
  width: 1.4rem;
  height: 1.4rem;
  background: var(--paper);
  font-weight: 900;
  text-align: center;
}

.branch-code {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 4px solid var(--signal);
  background: transparent;
}

.branch-rail [data-branch="known"] .branch-code {
  background: var(--signal);
}

.branch-rail [data-branch="unknown"] .branch-code {
  border-style: dashed;
  border-radius: 50%;
}

.branch-rail [data-branch="clarify"] .branch-code {
  width: 1.8rem;
  height: 1.8rem;
  margin: .35rem;
  transform: rotate(45deg);
}

.branch-rail [data-branch="next"] .branch-code {
  border-right-width: 10px;
  border-left-width: 2px;
}

.branch-rail strong {
  display: block;
  margin-bottom: .4rem;
}

.branch-rail p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.ruled-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.5fr);
  gap: 1rem clamp(2rem, 6vw, 8rem);
}

.ruled-section > .section-kicker,
.ruled-section > h2 {
  grid-column: 1;
}

.ruled-section > .section-lede,
.ruled-section > .process-list,
.ruled-section > .scope-grid,
.ruled-section > .boundary-stack {
  grid-column: 2;
}

.ruled-section > .section-lede {
  grid-row: 1 / span 2;
  align-self: end;
  margin-bottom: 1.5rem;
}

.process-list {
  margin: 0;
  padding: 0;
  border-top: 5px solid var(--rule);
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--rule);
}

.step-number {
  color: var(--signal);
  font-size: 1.65rem;
  font-weight: 900;
}

.process-list p {
  max-width: 50rem;
  margin: 0;
  color: var(--ink-soft);
}

.scope-section {
  background: var(--surface);
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 5px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.scope-grid article {
  position: relative;
  min-width: 0;
  padding: 1.5rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.item-index {
  display: block;
  margin-bottom: 2.5rem;
  color: var(--signal);
}

.scope-grid p {
  margin: 0;
  color: var(--ink-soft);
}

.boundaries-section {
  color: var(--surface);
  background: var(--ink);
}

.boundaries-section .section-kicker {
  border-color: #8ec4e5;
}

.boundary-stack {
  border-top: 5px solid var(--surface);
}

.boundary-stack article {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid #8d8d84;
}

.boundary-stack p {
  max-width: 62rem;
  margin: 0;
}

.boundary-marker {
  color: #9ed1ee;
  font-weight: 900;
}

.human-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 1rem clamp(2rem, 7vw, 10rem);
  background: var(--signal-soft);
}

.human-section .section-kicker,
.human-section h2 {
  grid-column: 1;
}

.human-copy,
.human-note {
  grid-column: 2;
  margin: 0;
}

.human-copy {
  grid-row: 1 / span 2;
  align-self: end;
  padding-bottom: 1.5rem;
  border-bottom: 5px solid var(--rule);
  font-size: clamp(1.4rem, 2.3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.35;
}

.human-note {
  color: var(--ink-soft);
}

.request-section {
  background: var(--surface);
}

.sensitive-note {
  max-width: 60rem;
  padding: 1rem;
  border: 2px solid var(--rule);
  border-left: 8px solid var(--signal);
  background: var(--paper);
  font-weight: 700;
}

#request-form {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 5px solid var(--rule);
}

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

.field {
  min-width: 0;
}

.field-wide {
  grid-column: span 3;
}

.field label {
  display: block;
  min-height: 3rem;
  margin-bottom: .45rem;
  font-weight: 800;
}

.field label span {
  color: var(--ink-soft);
  font-size: 1rem;
  font-weight: 400;
}

.field-help {
  margin: -.15rem 0 .5rem;
  color: var(--ink-soft);
  font-size: 1rem;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: .8rem;
  border: 2px solid var(--rule);
  border-radius: 0;
  background: var(--surface);
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: inset 6px 0 0 var(--error);
}

.field-error {
  margin: .45rem 0 0;
  color: var(--error);
  font-weight: 700;
}

.error-summary {
  margin-bottom: 2rem;
  padding: 1.25rem;
  border: 3px solid var(--error);
  background: #fff4f1;
}

.error-summary p {
  margin-top: 0;
  font-weight: 800;
}

.error-summary ul {
  margin-bottom: 0;
}

.request-preview {
  margin-top: 2.5rem;
  padding: 1.25rem;
  border: 3px double var(--rule);
  background: var(--paper);
}

.request-preview h3 {
  font-size: 1.5rem;
}

.request-preview dl {
  display: grid;
  grid-template-columns: minmax(9rem, .6fr) minmax(0, 2fr);
  margin: 0;
}

.request-preview dt,
.request-preview dd {
  margin: 0;
  padding: .65rem;
  border-top: 1px solid var(--rule);
}

.request-preview dt {
  font-weight: 800;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

.request-confirmation {
  max-width: 62rem;
  margin: 2rem 0 0;
  padding: 1rem;
  border: 2px solid var(--rule);
  background: var(--paper);
}

.request-confirmation[data-preview-state="ready"] {
  border-left: 10px solid var(--signal);
  font-weight: 800;
}

.no-js-note {
  width: 100%;
  margin: 1rem 0 0;
  padding: 1rem;
  border: 2px dashed var(--rule);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 2rem clamp(1rem, 3vw, 3rem);
  color: var(--surface);
  background: var(--ink);
}

.site-footer p {
  margin: 0;
  font-weight: 700;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--surface);
}

[hidden] {
  display: none !important;
}

.no-js .enhancement {
  display: none !important;
}

@media (max-width: 74rem) {
  .hero {
    grid-template-columns: 2.5rem minmax(0, 1fr);
  }

  .opening-decision {
    grid-column: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .opening-decision h2 {
    grid-column: 1 / -1;
  }

  .qualified-action + .qualified-action {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    border-left: 1px solid var(--rule);
    padding-left: 1.5rem;
  }

  .branch-rail ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .branch-rail li:nth-child(2) {
    border-right: 0;
  }

  .branch-rail li:nth-child(2)::after {
    display: none;
  }

  .ruled-section,
  .human-section {
    grid-template-columns: 1fr;
  }

  .ruled-section > .section-kicker,
  .ruled-section > h2,
  .ruled-section > .section-lede,
  .ruled-section > .process-list,
  .ruled-section > .scope-grid,
  .ruled-section > .boundary-stack,
  .human-section .section-kicker,
  .human-section h2,
  .human-copy,
  .human-note {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 56rem) {
  body {
    background: var(--paper);
  }

  .brand-lockup {
    grid-template-columns: 1fr auto;
  }

  .brand-context {
    grid-column: 1 / -1;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-index {
    writing-mode: initial;
    transform: none;
  }

  .opening-decision {
    grid-column: 1;
  }

  h1 {
    font-size: clamp(3.15rem, 16vw, 6.8rem);
  }

  .comparison-table-wrap {
    display: none;
  }

  .comparison-cards {
    display: block;
  }

  .branch-rail ol {
    grid-template-columns: 1fr;
  }

  .branch-rail li,
  .branch-rail li:nth-child(2) {
    border-right: 0;
  }

  .branch-rail li:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -.9rem;
    left: 1.55rem;
    transform: rotate(90deg);
  }

  .scope-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field-wide {
    grid-column: 1;
  }
}

@media (max-width: 38rem) {
  .brand-lockup {
    grid-template-columns: 1fr;
    gap: .25rem;
  }

  .brand-context,
  .edition-mark {
    grid-column: 1;
  }

  .primary-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .primary-nav a {
    border-bottom: 1px solid var(--rule);
  }

  main > section {
    padding-block: 3.5rem;
  }

  .opening-decision {
    grid-template-columns: 1fr;
  }

  .qualified-action + .qualified-action {
    padding-top: 1.5rem;
    padding-left: 0;
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .button-row,
  .form-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button-row button,
  .form-actions .action {
    width: 100%;
  }

  .lens-reset {
    margin-left: 0;
  }

  .process-list li {
    grid-template-columns: 3rem 1fr;
  }

  .request-preview dl {
    grid-template-columns: 1fr;
  }

  .request-preview dd {
    padding-top: 0;
    border-top: 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

@media (forced-colors: active) {
  :root {
    --ink: CanvasText;
    --ink-soft: CanvasText;
    --paper: Canvas;
    --surface: Canvas;
    --surface-2: Canvas;
    --rule: CanvasText;
    --rule-soft: CanvasText;
    --signal: Highlight;
    --signal-soft: Canvas;
    --error: CanvasText;
    --focus: Highlight;
  }

  .action-primary,
  .lens-toggle[aria-pressed="true"],
  .branch-code {
    forced-color-adjust: none;
    color: HighlightText;
    background: Highlight;
    border-color: Highlight;
  }

  :focus-visible {
    outline-color: Highlight;
  }
}
