:root {
  --ink: #14201d;
  --ink-2: #22312d;
  --paper: #fffdf7;
  --canvas: #f2efe6;
  --canvas-dark: #e7e2d5;
  --line: #c9c2b3;
  --line-dark: #8f8879;
  --muted: #5b6661;
  --rust: #b34b2d;
  --rust-dark: #7c2d18;
  --blue: #1f5f7d;
  --blue-soft: #dcebf0;
  --mint: #dfe9df;
  --signal: #e5bd45;
  --success: #2e6650;
  --danger: #8b3022;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 16px 40px rgba(20, 32, 29, .08);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--canvas);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(20, 32, 29, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 32, 29, .028) 1px, transparent 1px),
    var(--canvas);
  background-size: 36px 36px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-underline-offset: .18em; overflow-wrap: anywhere; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; }

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: .5rem;
  left: .5rem;
  padding: .65rem .9rem;
  color: #fff;
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus { transform: none; }

.shell {
  width: min(1180px, calc(100% - 3rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  border-bottom: 1px solid rgba(20, 32, 29, .22);
  background: rgba(255, 253, 247, .94);
  backdrop-filter: blur(14px);
}

.nav-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: stretch;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: .72rem;
  min-width: 12rem;
  padding-right: 1.2rem;
  border-right: 1px solid var(--line);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  color: var(--paper);
  background: var(--ink);
}

.brand-mark svg {
  width: 1.55rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-width: 2;
}

.brand strong {
  display: block;
  font-size: .94rem;
  letter-spacing: -.02em;
}

.brand small {
  display: block;
  color: var(--muted);
  font: 600 .6rem/1.3 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  min-width: 0;
}

.desktop-nav a {
  display: grid;
  place-items: center;
  padding: 0 .72rem;
  border-right: 1px solid rgba(201, 194, 179, .55);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 720;
  text-decoration: none;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--canvas);
  box-shadow: inset 0 -3px var(--rust);
}

.nav-cta {
  align-self: center;
  margin-left: 1rem;
}

.nav-toggle {
  display: none;
  align-self: center;
  border: 1px solid var(--ink);
  padding: .55rem .75rem;
  background: transparent;
  font: 700 .72rem/1 var(--mono);
  text-transform: uppercase;
}

.mobile-nav { display: none; }
.mobile-nav[data-open="true"] { display: grid; }

.mobile-nav a {
  padding: .8rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  text-decoration: none;
}

.mobile-nav a[aria-current="page"] {
  color: var(--rust-dark);
  box-shadow: inset 4px 0 var(--rust);
}

main {
  min-height: 65vh;
  overflow: clip;
}

.hero {
  position: relative;
  padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(3.5rem, 7vw, 6rem);
  border-bottom: 1px solid var(--line-dark);
  background:
    linear-gradient(90deg, transparent 0 66%, rgba(179, 75, 45, .07) 66% 100%),
    var(--paper);
}

.hero::before {
  position: absolute;
  inset: 0 auto 0 calc((100% - min(1180px, 100% - 3rem)) / 2 - 1.5rem);
  width: 1px;
  background: var(--line);
  content: "";
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(17rem, .55fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
}

.eyebrow,
.directory-label {
  margin: 0 0 .8rem;
  color: var(--rust-dark);
  font: 750 .68rem/1.35 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow::before {
  display: inline-block;
  width: 1.25rem;
  height: 1px;
  margin: 0 .55rem .2rem 0;
  background: currentColor;
  content: "";
}

.hero h1 {
  max-width: 940px;
  margin: 0 0 1.25rem;
  font-size: clamp(2.65rem, 6.5vw, 5.7rem);
  font-weight: 770;
  line-height: .95;
  letter-spacing: -.062em;
}

.lede {
  max-width: 800px;
  margin: 0;
  color: var(--ink-2);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  line-height: 1.65;
}

.secondary {
  max-width: 760px;
  color: var(--muted);
}

.hero-aside {
  position: relative;
  padding: 1.4rem 0 0 1.35rem;
  border-top: 3px solid var(--ink);
  border-left: 1px solid var(--line);
}

.hero-aside::before {
  position: absolute;
  top: -9px;
  left: -4px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--ink);
  background: var(--signal);
  content: "";
}

.hero-aside h2,
.section-head h2,
.card h2,
.card h3,
.section-panel h2,
.article-side h2,
.tool-panel h2 {
  margin: .15rem 0 .65rem;
  line-height: 1.12;
  letter-spacing: -.035em;
}

.hero-aside h2 { font-size: 1.45rem; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1.35rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .68rem .95rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  font-size: .78rem;
  font-weight: 780;
  text-decoration: none;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}

.button::after {
  margin-left: .65rem;
  content: "↗";
}

.button:hover {
  color: var(--paper);
  background: var(--rust-dark);
  border-color: var(--rust-dark);
  transform: translate(-2px, -2px);
}

.button.primary {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--rust);
}

.button.primary:hover {
  background: var(--rust-dark);
  border-color: var(--rust-dark);
  box-shadow: 4px 4px 0 var(--ink);
}

.section {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
  border-bottom: 1px solid var(--line);
  background: rgba(242, 239, 230, .92);
}

.section:nth-of-type(even) { background: rgba(255, 253, 247, .94); }

.section-head {
  display: grid;
  grid-template-columns: minmax(13rem, .45fr) minmax(0, 1fr);
  gap: 1.5rem 3rem;
  max-width: 1040px;
  margin-bottom: 2rem;
}

.section-head .eyebrow { grid-row: span 2; }

.section-head h2 {
  margin-top: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
}

.section-head .secondary,
.section-head p:not(.eyebrow) { grid-column: 2; }

.surface { min-width: 0; }

.section-panel,
.surface.card,
.tool-panel,
.form-card {
  position: relative;
  padding: clamp(1.35rem, 3vw, 2.25rem);
  border: 1px solid var(--line-dark);
  background: var(--paper);
  box-shadow: 7px 7px 0 rgba(20, 32, 29, .08);
}

.surface.card::before,
.section-panel::before,
.tool-panel::before {
  position: absolute;
  top: -1px;
  left: -1px;
  width: 3.1rem;
  height: 4px;
  background: var(--rust);
  content: "";
}

.grid { display: grid; gap: 1.15rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.card h2,
.card h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.card p { color: var(--muted); }

.card-link {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  padding-top: 1.1rem;
  color: var(--rust-dark);
  font: 780 .78rem/1.4 var(--mono);
  text-decoration: none;
}

.card-link:hover { text-decoration: underline; }

.meta {
  color: var(--muted);
  font: 680 .74rem/1.5 var(--mono);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: .38rem;
  margin-top: .8rem;
}

.tag {
  padding: .28rem .5rem;
  border: 1px solid var(--line-dark);
  background: var(--mint);
  font: 680 .67rem/1.25 var(--mono);
}

.clean-list {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.clean-list li {
  position: relative;
  padding: .8rem .75rem .8rem 2rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}

.clean-list li::before {
  position: absolute;
  top: .98rem;
  left: .55rem;
  color: var(--rust);
  font: 800 .72rem/1 var(--mono);
  content: "→";
}

.small {
  color: var(--muted);
  font-size: .82rem;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 780px) minmax(15rem, 1fr);
  gap: clamp(2.2rem, 7vw, 7rem);
  align-items: start;
}

.article-canvas {
  max-width: 780px;
  padding: 0 0 2rem;
  background: transparent;
}

.prose {
  color: var(--ink-2);
  font-size: 1.08rem;
  line-height: 1.78;
}

.prose > p:first-child {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line-dark);
  color: var(--ink);
  font-size: 1.2rem;
}

.prose h2,
.prose h3 {
  margin: 3.1rem 0 .9rem;
  color: var(--ink);
  line-height: 1.16;
  letter-spacing: -.035em;
}

.prose h2 {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
}

.prose h3 { font-size: 1.45rem; }
.prose a { color: var(--rust-dark); font-weight: 720; }
.prose li { margin: .45rem 0; }

.prose pre {
  overflow: auto;
  padding: 1.2rem;
  border-left: 4px solid var(--rust);
  color: #e8f0e9;
  background: #101713;
  font-size: .86rem;
}

.prose code {
  padding: .12rem .28rem;
  color: var(--rust-dark);
  background: rgba(179, 75, 45, .09);
  font-size: .88em;
  overflow-wrap: anywhere;
}

.prose pre code { padding: 0; color: inherit; background: transparent; }

.prose blockquote {
  margin: 2rem 0;
  padding: .5rem 0 .5rem 1.3rem;
  border-left: 4px solid var(--blue);
  color: var(--ink);
  font-size: 1.15rem;
}

.article-side {
  position: sticky;
  top: 7rem;
  padding: 1.25rem 0 1.25rem 1.3rem;
  border-left: 1px solid var(--line-dark);
}

.article-side h2 { font-size: 1.3rem; }

.article-side .button { width: 100%; margin-top: .8rem; }

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--line-dark);
}

.prose table,
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
}

.prose th,
.prose td,
.data-table th,
.data-table td {
  padding: .75rem .85rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th,
.data-table th {
  color: var(--paper);
  background: var(--ink);
  font: 720 .72rem/1.4 var(--mono);
}

.data-table td { font-size: .82rem; }

.diagnostic-map {
  display: block;
  width: 100%;
  margin-top: 1.2rem;
  border: 1px solid var(--line-dark);
  background: var(--paper);
}

.diagnostic-figure { margin: 1.2rem 0 0; }
.diagnostic-figure .diagnostic-map { margin-top: 0; }
.diagnostic-figure figcaption { margin-top: .55rem; color: var(--muted); font: 650 .66rem/1.45 var(--mono); }

.method-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--ink);
  background: var(--paper);
}

.method-step {
  min-height: 9.5rem;
  padding: 1.15rem;
  border-right: 1px solid var(--line-dark);
}

.method-step:last-child { border-right: 0; }

.method-step span {
  display: block;
  color: var(--rust-dark);
  font: 760 .68rem/1 var(--mono);
}

.method-step strong {
  display: block;
  margin-top: 1.5rem;
  font-size: 1rem;
  line-height: 1.25;
}

.method-step p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: .78rem;
}

.services-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, .52fr);
  gap: 2rem;
  align-items: start;
}

.service-group {
  display: grid;
  grid-template-columns: minmax(15rem, .38fr) minmax(0, 1fr);
  gap: 2rem;
}

.service-group + .service-group {
  margin-top: 4.5rem;
  padding-top: 4.5rem;
  border-top: 1px solid var(--line-dark);
}

.service-group__intro {
  position: sticky;
  top: 7rem;
  align-self: start;
}

.service-list {
  border-top: 1px solid var(--ink);
}

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(11rem, .32fr) 2rem;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.service-row:hover { color: var(--rust-dark); }
.service-row h3 { margin: 0; font-size: clamp(1.2rem, 2vw, 1.55rem); letter-spacing: -.025em; }
.service-row p { margin: .35rem 0 0; color: var(--muted); font-size: .88rem; }
.service-row .meta { text-align: right; }
.service-row__arrow { color: var(--rust); font: 800 1.2rem/1 var(--mono); }

.audit-scope-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line-dark);
}

.audit-scope {
  padding: 1.5rem;
  border-right: 1px solid var(--line);
  background: var(--paper);
}

.audit-scope:last-child { border-right: 0; }
.audit-scope h3 { margin-top: 0; }

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(16rem, 1fr);
  gap: 2rem;
  align-items: start;
}

.form-card { box-shadow: 10px 10px 0 var(--ink); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field-spaced { margin-top: 1rem; }
.field.full { grid-column: 1 / -1; }
.field label { font: 720 .72rem/1.35 var(--mono); }

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  padding: .78rem .85rem;
  background: #fff;
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 95, 125, .18);
}

.field textarea { min-height: 8.5rem; resize: vertical; }
.hint { margin: 0; color: var(--muted); font-size: .75rem; }

.optional {
  grid-column: 1 / -1;
  border: 1px solid var(--line-dark);
  padding: .9rem;
  background: var(--canvas);
}

.optional summary { cursor: pointer; font-weight: 750; }
.optional-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.notice { padding: 1rem; border: 1px solid var(--success); background: var(--mint); font-weight: 650; }

.project-image {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line-dark);
  background: var(--paper);
  box-shadow: 6px 6px 0 rgba(20, 32, 29, .12);
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, .85fr);
  gap: 1.25rem;
  align-items: start;
}

.tool-input {
  width: 100%;
  min-height: 18rem;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  padding: 1rem;
  background: #fff;
  font: 500 .84rem/1.55 var(--mono);
  resize: vertical;
}

.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.summary-item { padding: .85rem; background: var(--paper); }
.summary-item strong { display: block; font: 760 1.65rem/1.05 var(--mono); }
.summary-item span { color: var(--muted); font-size: .7rem; }
.severity { display: inline-flex; padding: .2rem .4rem; font: 760 .65rem/1.3 var(--mono); text-transform: uppercase; }
.severity.error { color: #fff; background: var(--danger); }
.severity.warning { color: var(--ink); background: var(--signal); }
.severity.info { color: #fff; background: var(--success); }
.tool-empty { padding: 1rem; border: 1px dashed var(--line-dark); color: var(--muted); }

.site-footer {
  padding: clamp(4rem, 8vw, 7rem) 0 1.5rem;
  color: #e8ede8;
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, .85fr);
  gap: clamp(3rem, 8vw, 8rem);
}

.site-footer .eyebrow,
.site-footer .directory-label { color: #d99a84; }

.site-footer h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.site-footer .small { max-width: 37rem; color: #aebbb5; }
.footer-directory { border-top: 1px solid #62706a; padding-top: 1rem; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 2rem; }
.footer-links a { padding: .62rem 0; border-bottom: 1px solid #3e4d47; color: #d6dfda; font-size: .84rem; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-cta { margin-top: .5rem; border-color: #fff; }

.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 5rem;
  padding-top: 1rem;
  border-top: 1px solid #3e4d47;
  color: #8f9d97;
  font: 650 .65rem/1.4 var(--mono);
  text-transform: uppercase;
}

.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;
}

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .nav-cta { display: none; }
  .nav-shell { grid-template-columns: 1fr auto; min-height: 64px; }
  .brand { border-right: 0; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 840px) {
  .shell { width: min(100% - 2rem, 1180px); }
  .hero-grid,
  .services-intro,
  .article-shell,
  .form-layout,
  .tool-layout,
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 4rem; background: var(--paper); }
  .hero-aside { margin-top: 1rem; }
  .section-head { grid-template-columns: 1fr; gap: .5rem; }
  .section-head .eyebrow { grid-row: auto; }
  .section-head .secondary,
  .section-head p:not(.eyebrow) { grid-column: auto; }
  .service-group { grid-template-columns: 1fr; }
  .service-group__intro,
  .article-side { position: static; }
  .method-strip { grid-template-columns: 1fr 1fr; }
  .method-step { border-bottom: 1px solid var(--line-dark); }
  .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 580px) {
  .hero h1 { font-size: clamp(2.4rem, 13vw, 3.7rem); }
  .grid.two,
  .grid.three,
  .form-grid,
  .optional-grid,
  .summary-grid,
  .audit-scope-grid { grid-template-columns: 1fr; }
  .field.full,
  .optional { grid-column: auto; }
  .method-strip { grid-template-columns: 1fr; }
  .method-step { min-height: auto; border-right: 0; }
  .service-row { grid-template-columns: 1fr 1.5rem; }
  .service-row .meta { grid-column: 1; text-align: left; }
  .service-row__arrow { grid-column: 2; grid-row: 1 / span 2; }
  .audit-scope { border-right: 0; border-bottom: 1px solid var(--line); }
  .footer-links { grid-template-columns: 1fr; }
  .footer-meta { flex-direction: column; }
  .section { padding-block: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Additions introduced in 1.1.1. */
.checklist-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(22rem, .85fr);
  gap: 1.25rem;
  align-items: start;
}

.compact-head {
  margin-bottom: 1.5rem;
}

.checklist-fieldset {
  min-width: 0;
  margin: 1.5rem 0 0;
  padding: 1rem;
  border: 1px solid var(--line-dark);
  background: var(--canvas);
}

.checklist-fieldset legend {
  padding: 0 .45rem;
  font: 760 .72rem/1.35 var(--mono);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
  margin-top: .8rem;
}

.choice-grid label,
.inline-choice {
  display: flex;
  gap: .58rem;
  align-items: flex-start;
  padding: .7rem;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: .82rem;
  line-height: 1.45;
}

.choice-grid input,
.inline-choice input {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  margin-top: .12rem;
  accent-color: var(--rust-dark);
}

.checklist-output-panel {
  position: sticky;
  top: 6.5rem;
}

.checklist-output {
  min-height: 39rem;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.note-visual {
  margin: 0 0 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line-dark);
}

.note-visual + p {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line-dark);
  color: var(--ink);
  font-size: 1.2rem;
}

.prose .note-visual + p:first-of-type {
  border-bottom: 1px solid var(--line-dark);
}

@media (max-width: 980px) {
  .checklist-layout {
    grid-template-columns: 1fr;
  }

  .checklist-output-panel {
    position: static;
  }

  .checklist-output {
    min-height: 28rem;
  }
}

@media (max-width: 580px) {
  .choice-grid {
    grid-template-columns: 1fr;
  }
}

/* Additions introduced in 1.1.2. */
:root {
  --proof-ink: #101c19;
  --proof-paper: #fffaf0;
  --proof-wash: #eadfd2;
  --proof-accent: #d45b39;
  --proof-lime: #dbe66f;
  --proof-shadow: .55rem .55rem 0 rgba(20, 32, 29, .1);
}

.home-hero {
  padding-bottom: 2rem;
}

.home-hero-grid,
.hub-hero-grid,
.services-intro--visual {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(25rem, .92fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.home-hero h1,
.hub-hero h1,
.services-intro--visual h1 {
  font-size: clamp(3rem, 5.2vw, 5.25rem);
}

.evidence-picture {
  display: block;
  min-width: 0;
}

.nav-toggle {
  position: relative;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  padding: 0;
  background: var(--paper);
}

.nav-toggle__icon {
  position: relative;
  display: block;
  width: 1.3rem;
  height: 1rem;
}

.nav-toggle__icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform-origin: center;
  transition: transform .18s ease, top .18s ease, opacity .18s ease;
}

.nav-toggle__icon span:nth-child(1) { top: 0; }
.nav-toggle__icon span:nth-child(2) { top: calc(50% - 1px); }
.nav-toggle__icon span:nth-child(3) { top: calc(100% - 2px); }

.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(1) {
  top: calc(50% - 1px);
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(3) {
  top: calc(50% - 1px);
  transform: rotate(-45deg);
}

.mobile-navigation-open {
  overflow: hidden;
}

.evidence-image {
  display: block;
  width: 100%;
  height: auto;
}

.proof-frame {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--ink);
  background: var(--proof-paper);
  box-shadow: var(--proof-shadow);
}

.proof-frame .evidence-picture {
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
  background: #e7e2d5;
}

.proof-frame .evidence-image {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top left;
  transition: transform .25s ease;
}

.proof-frame:hover .evidence-image {
  transform: scale(1.012);
}

.proof-frame figcaption {
  padding: .8rem 1rem .9rem;
  color: var(--muted);
  font: 650 .68rem/1.5 var(--mono);
}

.proof-frame figcaption strong {
  color: var(--ink);
}

.proof-frame--hero {
  position: relative;
  transform: rotate(.45deg);
}

.proof-frame--hero::before {
  position: absolute;
  z-index: 2;
  top: -.45rem;
  left: 1.2rem;
  width: 4.8rem;
  height: .8rem;
  background: var(--proof-lime);
  box-shadow: 0 0 0 1px rgba(20, 32, 29, .28);
  content: "";
  transform: rotate(-2deg);
}

.proof-frame--hero .evidence-image {
  aspect-ratio: 4 / 3;
}

.method-ribbon {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 2.6rem;
  border: 1px solid var(--ink);
  background: var(--ink);
}

.method-ribbon span {
  display: flex;
  gap: .55rem;
  align-items: center;
  min-width: 0;
  padding: .72rem .8rem;
  border-right: 1px solid rgba(255,255,255,.18);
  color: var(--paper);
  font: 700 .68rem/1.25 var(--mono);
  text-transform: uppercase;
}

.method-ribbon span:last-child {
  border-right: 0;
}

.method-ribbon b {
  color: var(--signal);
}

.proof-showcase {
  padding: clamp(3.5rem, 8vw, 7rem) 0;
  border-bottom: 1px solid #3a4a45;
  color: #f6f3e9;
  background:
    radial-gradient(circle at 88% 12%, rgba(212, 91, 57, .24), transparent 25rem),
    var(--proof-ink);
}

.proof-showcase .eyebrow {
  color: #f3a287;
}

.proof-showcase h2 {
  max-width: 830px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.proof-showcase .secondary {
  color: #bfc9c4;
}

.proof-showcase__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, .55fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.proof-showcase__intro .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -1rem;
}

.proof-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.2rem;
}

.proof-gallery > .proof-frame {
  grid-column: span 4;
  color: var(--ink);
  box-shadow: .55rem .55rem 0 rgba(0, 0, 0, .3);
}

.proof-gallery > .proof-frame:nth-child(2n) {
  transform: translateY(1.3rem);
}

.proof-gallery > .proof-frame .evidence-image {
  aspect-ratio: 16 / 10;
}

.proof-showcase--compact {
  padding: clamp(2.8rem, 6vw, 5rem) 0;
}

.proof-showcase--compact .proof-gallery > .proof-frame:first-child:nth-last-child(2),
.proof-showcase--compact .proof-gallery > .proof-frame:first-child:nth-last-child(2) ~ .proof-frame {
  grid-column: span 6;
}

.hub-hero {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.card-group-block + .card-group-block {
  margin-top: clamp(4rem, 8vw, 7rem);
}

.media-card {
  overflow: hidden;
  padding: 0;
}

.media-card .card-media {
  display: block;
  overflow: hidden;
  border-bottom: 1px solid var(--line-dark);
  background: var(--canvas-dark);
}

.media-card .card-media .evidence-image {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top left;
  transition: transform .25s ease;
}

.media-card .card-media:hover .evidence-image {
  transform: scale(1.025);
}

.media-card .card-body {
  padding: 1.15rem;
}

.media-card .card-body > :first-child {
  margin-top: 0;
}

.notes-directory__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, .55fr);
  gap: 1rem 3rem;
  align-items: end;
  margin-bottom: 2.2rem;
}

.notes-directory__intro .eyebrow {
  grid-column: 1 / -1;
}

.notes-directory__intro h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.featured-notes {
  background: var(--proof-wash);
}

.featured-note {
  border-color: var(--ink);
  box-shadow: var(--proof-shadow);
}

.featured-note .card-media .evidence-image {
  aspect-ratio: 16 / 8;
}

.note-topic + .note-topic {
  margin-top: clamp(4rem, 8vw, 7rem);
  padding-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line-dark);
}

.note-topic__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, .55fr);
  gap: 1rem 3rem;
  align-items: end;
  margin-bottom: 1.8rem;
}

.note-topic__head .eyebrow {
  grid-column: 1 / -1;
}

.note-topic__head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.note-visual .evidence-picture {
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: var(--paper);
}

.note-visual .evidence-image {
  width: 100%;
}

@media (max-width: 980px) {
  /* Primary links remain usable when JavaScript is disabled or fails. */
  .nav-toggle {
    display: none;
  }

  .mobile-nav {
    display: grid;
  }

  /* JavaScript opts into the collapsed control only after handlers exist. */
  .nav-enhanced .nav-toggle {
    display: inline-flex;
  }

  .nav-enhanced .mobile-nav {
    display: none;
  }

  .nav-enhanced .mobile-nav[data-open="true"] {
    display: grid;
    max-height: calc(100dvh - 4.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .home-hero-grid,
  .hub-hero-grid,
  .services-intro--visual {
    grid-template-columns: 1fr;
  }

  .home-hero-grid .proof-frame,
  .hub-hero-grid .proof-frame,
  .services-intro--visual .proof-frame {
    max-width: 46rem;
  }

  .method-ribbon {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .method-ribbon span:nth-child(3) {
    border-right: 0;
  }

  .method-ribbon span:nth-child(n+4) {
    border-top: 1px solid rgba(255,255,255,.18);
  }

  .proof-showcase__intro,
  .notes-directory__intro,
  .note-topic__head {
    grid-template-columns: 1fr;
  }

  .proof-showcase__intro .eyebrow,
  .notes-directory__intro .eyebrow,
  .note-topic__head .eyebrow {
    grid-column: auto;
    margin-bottom: 0;
  }

  .proof-gallery > .proof-frame {
    grid-column: span 6;
  }

  .proof-gallery > .proof-frame:last-child:nth-child(odd) {
    grid-column: 3 / span 8;
  }
}

@media (max-width: 640px) {
  .home-hero-grid,
  .hub-hero-grid,
  .services-intro--visual {
    gap: 2.5rem;
  }

  .home-hero h1,
  .hub-hero h1,
  .services-intro--visual h1 {
    font-size: clamp(2.65rem, 14vw, 4rem);
  }

  .proof-frame--hero {
    transform: none;
  }

  .method-ribbon {
    grid-template-columns: 1fr;
  }

  .method-ribbon span {
    border-top: 1px solid rgba(255,255,255,.18);
    border-right: 0;
  }

  .method-ribbon span:first-child {
    border-top: 0;
  }

  .proof-gallery {
    display: grid;
    grid-template-columns: 1fr;
  }

  .proof-gallery > .proof-frame,
  .proof-showcase--compact .proof-gallery > .proof-frame:first-child:nth-last-child(2),
  .proof-showcase--compact .proof-gallery > .proof-frame:first-child:nth-last-child(2) ~ .proof-frame,
  .proof-gallery > .proof-frame:last-child:nth-child(odd) {
    grid-column: auto;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle__icon span,
  .proof-frame .evidence-image,
  .media-card .evidence-image {
    transition: none;
  }
}
