/* AccessProof — The Keyboard-First Report
   Editorial, flat, typographic design system. WCAG 2.2 AA. */

:root {
  color-scheme: light;
  --paper: #fafaf8;
  --paper-alt: #f1efe9;
  --paper-deep: #e7e4dc;
  --surface: #ffffff;
  --ink: #141412;
  --ink-soft: #3f3e39;
  --muted: #5b5b55;
  --line: #d8d5cc;
  --line-strong: #141412;
  --accent: #c23a00;
  --accent-dark: #993000;
  --inverse-muted: #c9c4b8;
  --measure: 66ch;
  --measure-wide: 74ch;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-width: 320px;
  scroll-padding-top: 2rem;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent);
  color: #ffffff;
}

img,
svg,
video {
  max-width: 100%;
}

img {
  height: auto;
}

video {
  display: block;
  width: 100%;
  background: var(--ink);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-dark);
}

p {
  max-width: var(--measure);
  margin-bottom: 1rem;
}

ul,
ol {
  max-width: var(--measure-wide);
  margin: 0 0 1.25rem 1.35rem;
}

li {
  margin-bottom: 0.6rem;
}

li:last-child,
p:last-child,
.last {
  margin-bottom: 0;
}

strong,
b {
  font-weight: 700;
}

code {
  display: inline-block;
  max-width: 100%;
  border: 1px solid var(--line);
  background: var(--paper-alt);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.82em;
  line-height: 1.35;
  padding: 0.06rem 0.28rem;
  overflow-wrap: anywhere;
  vertical-align: baseline;
}

main:focus {
  outline: none;
}

/* Typography */
h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-weight: 500;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  max-width: 11.4ch;
  font-size: clamp(3.25rem, 8vw, 7.4rem);
  line-height: 0.94;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

h1 em,
h2 em {
  font-style: italic;
  font-weight: 400;
}

h2 {
  max-width: 14ch;
  font-size: clamp(2.15rem, 4.8vw, 4.35rem);
  line-height: 0.99;
  margin-bottom: 1.1rem;
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.08;
  margin-bottom: 0.65rem;
}

h4 {
  font-size: 1.15rem;
  line-height: 1.2;
  margin-bottom: 0.45rem;
}

.sub,
.section-intro {
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.45vw, 1.27rem);
  line-height: 1.58;
}

.sub {
  max-width: 58ch;
}

.section-intro {
  max-width: 62ch;
}

.small,
small {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.src {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.01em;
}

/* Keyboard focus is the brand demonstration. Never suppress it. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 0.85rem;
  left: 0.85rem;
  transform: translateY(-180%);
  border: 1px solid var(--ink);
  border-bottom-width: 3px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 0.78rem 0.9rem;
  text-decoration: none;
  text-transform: uppercase;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  color: var(--ink);
}

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

/* Layout primitives */
.wrap,
.wrap-wide {
  width: 100%;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.wrap {
  max-width: 940px;
}

.wrap-wide {
  max-width: 1360px;
}

.section {
  border-top: 1px solid var(--line);
  padding: clamp(4.2rem, 8vw, 7.4rem) 0;
}

.section:first-of-type {
  border-top: 0;
}

.section-alt {
  background: var(--paper-alt);
}

section[id] {
  scroll-margin-top: 1.5rem;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(5rem, 0.18fr) minmax(0, 0.82fr);
  gap: 1.5rem clamp(2rem, 5vw, 5rem);
  align-items: start;
  margin-bottom: clamp(2.2rem, 5vw, 4rem);
}

.section-heading > .section-heading-copy {
  min-width: 0;
}

.section-index,
.eyebrow,
.meta-label,
.caption-label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.115em;
  line-height: 1.45;
  text-transform: uppercase;
}

.section-index {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin: 0.42rem 0 0;
  white-space: nowrap;
}

.section-index::before {
  content: "";
  width: 2.1rem;
  height: 1px;
  flex: 0 0 auto;
  background: var(--accent);
  transform: translateY(-0.2rem);
}

.section-index span {
  color: var(--muted);
}

.eyebrow {
  display: block;
  margin-bottom: 1.05rem;
  color: var(--accent);
}

.doc-kicker {
  display: flex;
  justify-content: space-between;
  gap: 1rem 2rem;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.105em;
  line-height: 1.4;
  padding-bottom: 0.75rem;
  text-transform: uppercase;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line-strong);
  background: var(--paper);
}

.site-nav {
  display: flex;
  min-height: 4.6rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 2rem;
  padding-block: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.68rem;
  flex: 0 0 auto;
  color: var(--ink);
  text-decoration: none;
}

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

.brand-mark {
  display: block;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
}

.brand-wordmark {
  display: grid;
  line-height: 1;
}

.brand-name {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.brand-proof {
  font-style: italic;
  font-weight: 400;
}

.brand-sub {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  margin-top: 0.24rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.54rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  line-height: 1;
  text-transform: uppercase;
}

.brand-sub::before {
  content: "";
  width: 0.9rem;
  height: 1px;
  flex: 0 0 auto;
  background: var(--accent);
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.15rem 0.4rem;
  margin: 0;
  list-style: none;
}

.nav-list li {
  margin: 0;
}

.nav-list a {
  display: inline-flex;
  min-height: 2.45rem;
  align-items: center;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1;
  padding: 0.68rem 0.55rem;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-list a:hover {
  color: var(--accent);
}

.nav-list a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.58rem;
}

.nav-list a.nav-cta {
  color: var(--accent);
}

.nav-list a.nav-cta:hover {
  color: var(--accent-dark);
}

/* Physical keycaps */
kbd,
.keycap {
  display: inline-flex;
  min-width: 2rem;
  min-height: 1.72rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-bottom-width: 3px;
  border-radius: 2px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.035em;
  line-height: 1;
  padding: 0.28rem 0.48rem 0.24rem;
  vertical-align: middle;
  white-space: nowrap;
}

kbd.accent-key,
.keycap.accent-key {
  border-color: var(--accent);
  color: var(--accent);
}

kbd.inline-key {
  min-width: 1.65rem;
  min-height: 1.32rem;
  border-bottom-width: 2px;
  font-size: 0.64rem;
  padding: 0.12rem 0.3rem 0.08rem;
  transform: translateY(-0.08rem);
}

/* Calls to action: rectangular rate-card controls, no pills */
.cta,
button.cta {
  display: inline-flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  border: 1px solid var(--ink);
  border-bottom-width: 3px;
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.095em;
  line-height: 1.25;
  padding: 0.8rem 0.95rem 0.72rem;
  text-align: left;
  text-decoration: none;
  text-transform: uppercase;
}

.cta .cta-key {
  display: inline-flex;
  min-width: 2.4rem;
  min-height: 1.55rem;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-bottom-width: 2px;
  color: var(--accent);
  font-size: 0.66rem;
  line-height: 1;
  padding: 0.2rem 0.35rem 0.16rem;
}

.cta:hover,
button.cta:hover {
  background: var(--ink);
  color: var(--paper);
}

.cta:hover .cta-key {
  color: #ffb59a;
}

.cta-secondary {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  border-bottom: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.095em;
  padding: 0.35rem 0;
  text-decoration: none;
  text-transform: uppercase;
}

.cta-secondary:hover {
  color: var(--accent-dark);
  border-bottom-color: var(--accent-dark);
}

.hero-actions,
.cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem 1.2rem;
  margin-top: 1.8rem;
}

/* Home hero */
.hero,
.page-hero {
  background: var(--paper);
  padding: clamp(2.4rem, 5vw, 4.6rem) 0 clamp(4.4rem, 8vw, 7rem);
}

.hero-home {
  padding-top: clamp(1.65rem, 3vw, 2.4rem);
  padding-bottom: clamp(2.7rem, 5vw, 4.2rem);
}

.hero .doc-kicker,
.page-hero .doc-kicker {
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}

.hero-home .doc-kicker {
  margin-bottom: clamp(1.65rem, 3.4vw, 2.7rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}

.hero-copy {
  grid-column: 1 / span 7;
  min-width: 0;
}

.hero-home .eyebrow {
  max-width: none;
  margin-bottom: 0.8rem;
}

.hero-home h1 {
  max-width: none;
  font-size: clamp(3.1rem, 5vw, 4.25rem);
  line-height: 0.97;
  margin-bottom: 1.05rem;
}

.hero-home h1 em {
  display: block;
}

.hero-home .sub {
  max-width: 64ch;
  font-size: clamp(1.02rem, 1.25vw, 1.16rem);
  line-height: 1.55;
}

.hero-copy .sub {
  margin-left: clamp(0rem, 4vw, 3.2rem);
}

.hero-home .hero-actions {
  margin-top: 1.35rem;
  margin-left: clamp(0rem, 4vw, 3.2rem);
}

.hero-note {
  max-width: 42rem;
  margin-top: 1rem;
  margin-left: clamp(0rem, 4vw, 3.2rem);
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.hero-aside {
  grid-column: 8 / -1;
  min-width: 0;
  display: grid;
  gap: 1.35rem;
  margin-top: 0.3rem;
}

.test-sheet,
.legal-context {
  border-top: 1px solid var(--line-strong);
  padding-top: 0.85rem;
}

.test-sheet .meta-label,
.legal-context .meta-label {
  margin-bottom: 0.72rem;
}

.test-sheet .meta-label {
  color: var(--accent);
}

.key-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.meta-table {
  margin: 0 0 1.45rem;
  font-variant-numeric: tabular-nums;
}

.meta-table div {
  display: grid;
  grid-template-columns: 6.4rem 1fr;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding: 0.58rem 0;
}

.meta-table dt {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.69rem;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

.meta-table dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.4;
}

.focus-note {
  max-width: 28rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 0;
}

.focus-note kbd {
  margin-inline: 0.1rem;
  transform: translateY(-0.08rem);
}

.test-sheet .meta-table {
  margin-bottom: 0.95rem;
}

.test-sheet .meta-table div {
  padding: 0.48rem 0;
}

.test-sheet .focus-note {
  font-size: 0.88rem;
  line-height: 1.45;
}

.legal-stats {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.legal-stats div {
  display: grid;
  grid-template-columns: 5.3rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding: 0.55rem 0 0.62rem;
}

.legal-stats dt {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 2.4vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.legal-stats dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
  line-height: 1.38;
}

.legal-src {
  display: block;
  margin-top: 0.18rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.085em;
  line-height: 1.3;
  text-transform: uppercase;
}

.key-strip {
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  margin-top: clamp(1.8rem, 3.4vw, 2.6rem);
  padding: 0.85rem 0 0.95rem;
}

.key-strip-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 0.72rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.key-sequence {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.12rem 0.1rem 0.35rem;
  scrollbar-color: var(--ink) var(--paper-alt);
  scrollbar-width: thin;
}

.key-caps {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 0.18rem;
  padding-right: 0.5rem;
}

.key-caps kbd {
  width: 1.5rem;
  min-width: 1.5rem;
  height: 1.72rem;
  min-height: 1.72rem;
  border-bottom-width: 2px;
  padding: 0.14rem 0 0.1rem;
  font-size: 0.6rem;
  letter-spacing: 0;
}

.key-caps kbd:first-child,
.key-caps kbd.key-37 {
  width: auto;
  min-width: 2.3rem;
  padding-inline: 0.3rem;
}

.key-caps kbd.key-37 {
  border-color: var(--accent);
  border-bottom-width: 2px;
  color: var(--accent);
}

.key-caption {
  max-width: 58rem;
  margin: 0.52rem 0 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  line-height: 1.45;
}

/* Page heroes and folio metadata */
.page-hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2rem clamp(1.5rem, 3vw, 3rem);
  align-items: end;
}

.page-hero-copy {
  grid-column: 1 / span 8;
  min-width: 0;
}

.page-hero-copy h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 7.2vw, 6.5rem);
}

.page-hero-aside {
  grid-column: 9 / -1;
  min-width: 0;
  border-top: 1px solid var(--line-strong);
  padding-top: 1rem;
}

.page-hero-aside .meta-table {
  margin-bottom: 0;
}

.page-hero-narrow h1 {
  max-width: 12.5ch;
}

.page-hero-narrow .sub {
  margin-left: clamp(0rem, 4vw, 3rem);
}

/* Data table statistics */
.stats-grid,
.metric-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  margin: 0 0 2rem;
}

.stat-row,
.stats-grid > div,
.metric-list > div {
  min-width: 0;
  border-left: 1px solid var(--line);
  padding: clamp(1rem, 2vw, 1.5rem);
}

.stat-row:first-child,
.stats-grid > div:first-child,
.metric-list > div:first-child {
  border-left: 0;
  padding-left: 0;
}

.stat-row dt,
.stat-value {
  display: block;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5vw, 5rem);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.stat-row dd,
.stat-label {
  display: block;
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.025em;
  line-height: 1.5;
}

.stat-row dd {
  max-width: 24rem;
}

.data-note {
  max-width: 64rem;
  margin-top: 1rem;
}

.pull-note {
  max-width: 48rem;
  border-left: 3px solid var(--accent);
  margin: clamp(2.2rem, 4vw, 3.3rem) 0 1.4rem clamp(0rem, 7vw, 7rem);
  padding-left: clamp(1.2rem, 3vw, 2rem);
}

.pull-note h3 {
  max-width: 12ch;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

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

/* Editorial evidence and content entries */
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2rem clamp(1.5rem, 4vw, 4rem);
}

.editorial-main {
  grid-column: 1 / span 7;
  min-width: 0;
}

.editorial-aside {
  grid-column: 8 / -1;
  min-width: 0;
}

.evidence-list,
.entry-list {
  border-top: 1px solid var(--line-strong);
  margin-top: 1.3rem;
}

.evidence-item,
.entry {
  border-bottom: 1px solid var(--line);
  padding: 1.35rem 0 1.55rem;
}

.evidence-item h3,
.entry h3 {
  max-width: 20ch;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.evidence-item p,
.entry p {
  color: var(--ink-soft);
}

.evidence-item .src,
.entry .src {
  font-size: 0.72rem;
}

.numbered-entries {
  counter-reset: entries;
}

.numbered-entries .entry {
  display: grid;
  grid-template-columns: 5.5rem minmax(11rem, 0.34fr) minmax(0, 0.66fr);
  gap: 0.8rem clamp(1.5rem, 4vw, 3rem);
  counter-increment: entries;
  align-items: start;
}

.numbered-entries .entry::before {
  content: counter(entries, decimal-leading-zero);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.11em;
  line-height: 1.2;
  padding-top: 0.35rem;
}

.numbered-entries .entry h3 {
  grid-column: 2;
  margin-bottom: 0;
}

.numbered-entries .entry p {
  grid-column: 3;
  margin-top: 0.28rem;
}

/* Process lists */
.process-list,
.step-list {
  max-width: none;
  border-top: 1px solid var(--line-strong);
  margin: 1.2rem 0 0;
  list-style: none;
}

.process-list > li,
.step-list > li {
  display: grid;
  grid-template-columns: 6rem minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 1rem clamp(1.5rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  margin: 0;
  padding: 1.35rem 0 1.6rem;
}

.step-number,
.step-list > li::before,
.process-list > li::before {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.11em;
  line-height: 1.3;
}

.process-list {
  counter-reset: process;
}

.process-list > li {
  counter-increment: process;
}

.process-list > li::before {
  content: counter(process, decimal-leading-zero);
}

.step-list {
  counter-reset: steps;
}

.step-list > li {
  counter-increment: steps;
}

.step-list > li::before {
  content: counter(steps, decimal-leading-zero);
}

.step-list strong,
.process-list strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.step-list li > span,
.process-list li > span,
.step-list li > div,
.process-list li > div {
  min-width: 0;
}

.step-list p,
.process-list p {
  color: var(--ink-soft);
}

/* Feature list as report clauses */
.panel {
  border-top: 1px solid var(--line-strong);
  margin-top: 1rem;
}

.feature-list,
.panel ul:not(.feature-list) {
  max-width: none;
  margin: 0;
  list-style: none;
}

.feature-list li,
.panel ul:not(.feature-list) li {
  display: grid;
  grid-template-columns: minmax(10rem, 0.34fr) minmax(0, 0.66fr);
  gap: 1rem clamp(1.5rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  margin: 0;
  padding: 1.15rem 0 1.25rem;
}

.feature-list strong,
.panel ul:not(.feature-list) strong {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.feature-list li::after,
.panel ul:not(.feature-list) li::after {
  content: "";
}

/* Pricing as a rate card */
.rate-card {
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  margin-top: 1rem;
}

.rate-row {
  display: grid;
  grid-template-columns: minmax(12rem, 0.72fr) minmax(8rem, 0.3fr) minmax(0, 1.35fr);
  gap: 1.2rem clamp(1.5rem, 4vw, 3.2rem);
  border-top: 1px solid var(--line);
  padding: clamp(1.25rem, 3vw, 2rem) 0;
}

.rate-row:first-child {
  border-top: 0;
}

.rate-row h3 {
  margin-bottom: 0.5rem;
}

.amount {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.45rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0;
  white-space: nowrap;
}

.turnaround {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.09em;
  line-height: 1.45;
  margin: 0.3rem 0 0;
  text-transform: uppercase;
}

.rate-copy p {
  color: var(--ink-soft);
  margin-bottom: 0.65rem;
}

.pricing-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.6rem;
  margin-top: 2rem;
}

.pricing-cta .small {
  max-width: 28rem;
  margin: 0;
}

/* Case folio index */
.case-index {
  border-top: 1px solid var(--line-strong);
  margin-top: 1.2rem;
}

.case-row {
  display: grid;
  grid-template-columns: 5rem minmax(11rem, 0.34fr) minmax(0, 0.66fr);
  gap: 1rem clamp(1.5rem, 4vw, 3.4rem);
  align-items: start;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink);
  padding: clamp(1.4rem, 3vw, 2.2rem) 0;
  text-decoration: none;
}

.case-row:hover {
  background: var(--paper-alt);
  color: var(--ink);
}

.case-no {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.11em;
  padding-top: 0.32rem;
}

.case-title {
  min-width: 0;
}

.case-title h3 {
  margin-bottom: 0.55rem;
}

.case-copy {
  min-width: 0;
  color: var(--ink-soft);
  padding-top: 0.25rem;
}

.case-copy p {
  margin: 0;
}

.severity {
  display: flex;
  align-items: center;
  gap: 0.52rem;
  margin-bottom: 0.62rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.105em;
  line-height: 1.35;
  text-transform: uppercase;
}

.severity::before {
  content: "";
  width: 0.62rem;
  height: 0.62rem;
  flex: 0 0 auto;
  background: var(--accent);
}

.severity.serious::before {
  background: var(--paper);
  border: 1px solid var(--accent);
}

/* Findings */
.finding {
  border-top: 1px solid var(--line-strong);
  margin: 1.8rem 0 2.4rem;
  padding: clamp(1.35rem, 3vw, 2rem) 0 0;
}

.finding h3 {
  max-width: 25ch;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
}

.finding p {
  color: var(--ink-soft);
}

.finding strong,
.finding b {
  color: var(--ink);
}

.finding .fix,
.fix {
  border-left: 3px solid var(--accent);
  background: var(--paper-alt);
  margin-top: 1.2rem;
  padding: 1rem 1.1rem;
}

.finding .fix p:last-child,
.finding .fix ul:last-child,
.finding .fix ol:last-child,
.fix:last-child {
  margin-bottom: 0;
}

.fix ul,
.fix ol {
  margin-bottom: 0;
}

/* PDF and resource rows */
.resource-list,
.grid-2,
.report-grid {
  border-top: 1px solid var(--line-strong);
  margin-top: 1.2rem;
}

.resource-row,
.resource-card,
.report-grid .card {
  display: grid;
  grid-template-columns: minmax(12rem, 0.38fr) minmax(0, 0.62fr);
  gap: 1rem clamp(1.5rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  padding: 1.35rem 0 1.5rem;
}

.resource-row h3,
.resource-card h3,
.report-grid .card h3 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.resource-row p,
.resource-card p,
.report-grid .card p {
  color: var(--ink-soft);
}

.pdf-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.pdf-link::before {
  content: "PDF";
  border: 1px solid currentColor;
  font-size: 0.62rem;
  line-height: 1;
  padding: 0.18rem 0.28rem 0.14rem;
}

/* Video evidence: flat frame, mono caption */
figure {
  margin: 1.4rem 0 2rem;
}

.video-frame {
  border: 1px solid var(--ink);
  background: var(--ink);
  padding: clamp(0.45rem, 1vw, 0.7rem);
}

.video-frame video {
  aspect-ratio: 16 / 9;
  height: auto;
}

figcaption {
  display: grid;
  grid-template-columns: minmax(8rem, 0.2fr) minmax(0, 0.8fr);
  gap: 1rem clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.55;
  padding: 0.85rem 0 1rem;
}

.caption-label {
  color: var(--accent);
}

/* Flat inverted closing panels. Solid only, used sparingly. */
.cta-panel {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(2rem, 5vw, 4rem);
}

.cta-panel h2 {
  max-width: 13ch;
  color: var(--paper);
}

.cta-panel p {
  color: #f4f2ed;
}

.cta-panel a:not(.cta) {
  color: #ffffff;
}

.cta-panel a:not(.cta):hover {
  color: #ffb59a;
}

.cta-panel .cta {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}

.cta-panel .cta:hover {
  border-color: var(--paper);
  background: var(--ink);
  color: var(--paper);
}

.cta-panel .small {
  color: var(--inverse-muted);
  margin-top: 1rem;
}

.teaser-link {
  margin-top: 1.35rem;
}

.teaser-link a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

/* Footer */
footer {
  border-top: 1px solid var(--line-strong);
  background: var(--paper);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

footer p {
  max-width: 72ch;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 0.85rem;
}

footer p:first-child {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.3rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-bottom: 1.1rem;
}

footer a {
  color: var(--accent);
}

/* Legacy class hooks retained only as aliases for restructured markup. */
.grid-2,
.report-grid {
  display: block;
}

.card {
  /* flattened intentionally; no card visual language remains */
}

/* Utility offsets for authored asymmetry */
.indent-copy {
  margin-left: clamp(0rem, 6vw, 5rem);
}

.measure {
  max-width: var(--measure);
}

/* Responsive editorial grid */
@media (max-width: 980px) {
  .hero-copy,
  .hero-aside,
  .page-hero-copy,
  .page-hero-aside,
  .editorial-main,
  .editorial-aside {
    grid-column: 1 / -1;
  }

  .hero-copy .sub,
  .hero-home .hero-actions,
  .hero-note,
  .page-hero-narrow .sub,
  .pull-note,
  .indent-copy {
    margin-left: 0;
  }

  .hero-aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
    margin-top: 0.8rem;
  }

  .page-hero-aside {
    max-width: 34rem;
  }

  .stats-grid,
  .metric-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-row:nth-child(odd),
  .stats-grid > div:nth-child(odd),
  .metric-list > div:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .stat-row:nth-child(n+3),
  .stats-grid > div:nth-child(n+3),
  .metric-list > div:nth-child(n+3) {
    border-top: 1px solid var(--line);
  }

  .numbered-entries .entry {
    grid-template-columns: 4rem minmax(0, 1fr);
  }

  .numbered-entries .entry h3 {
    grid-column: 2;
  }

  .numbered-entries .entry p {
    grid-column: 2;
  }

  .process-list > li,
  .step-list > li,
  .case-row {
    grid-template-columns: 4rem minmax(0, 1fr);
  }

  .rate-row {
    display: block;
  }

  .rate-meta {
    margin: 0.65rem 0 1rem;
  }

  .process-list > li > div:last-child,
  .step-list > li > div:last-child,
  .rate-copy,
  .case-copy {
    grid-column: 2;
  }

  .rate-row {
    grid-template-columns: 4rem minmax(0, 1fr);
  }

  .rate-service,
  .rate-meta {
    grid-column: 2;
  }

  .resource-row,
  .resource-card,
  .report-grid .card,
  .feature-list li,
  .panel ul:not(.feature-list) li {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.45rem;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .wrap,
  .wrap-wide {
    padding-inline: 1.1rem;
  }

  .site-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .nav-list {
    justify-content: flex-start;
    margin-left: -0.55rem;
  }

  .nav-list a {
    min-height: 2.25rem;
    padding: 0.58rem 0.5rem;
    font-size: 0.68rem;
  }

  h1 {
    font-size: clamp(2.8rem, 14vw, 4.7rem);
  }

  .hero-home h1 {
    font-size: clamp(2.55rem, 12vw, 3.4rem);
  }

  .hero-aside {
    grid-template-columns: 1fr;
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3.1rem);
  }

  .section-heading {
    display: block;
  }

  .section-index {
    margin-bottom: 1rem;
  }

  .doc-kicker,
  .key-strip-head {
    flex-direction: column;
    gap: 0.25rem;
  }

  .stats-grid,
  .metric-list {
    display: block;
  }

  .stat-row,
  .stats-grid > div,
  .metric-list > div {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
  }

  .stat-row:first-child,
  .stats-grid > div:first-child,
  .metric-list > div:first-child {
    border-top: 0;
  }

  .process-list > li,
  .step-list > li,
  .case-row {
    display: block;
  }

  .step-number,
  .case-no {
    display: block;
    margin-bottom: 0.5rem;
  }

  .process-list > li::before,
  .step-list > li::before {
    display: block;
    margin-bottom: 0.55rem;
  }

  .rate-row {
    display: block;
  }

  .rate-meta {
    margin: 0.65rem 0 1rem;
  }

  .amount {
    margin-bottom: 0.25rem;
  }

  .case-copy {
    margin-top: 0.45rem;
  }

  .cta {
    width: 100%;
    justify-content: space-between;
  }

  .cta-panel {
    padding: 1.5rem 1.1rem;
    margin-inline: -0.2rem;
  }

  figcaption {
    display: block;
  }

  .caption-label {
    display: block;
    margin-bottom: 0.35rem;
  }
}

@media (max-width: 380px) {
  .brand-name {
    font-size: 1.12rem;
  }

  .nav-list a {
    font-size: 0.64rem;
    letter-spacing: 0.08em;
  }

  kbd,
  .keycap {
    font-size: 0.68rem;
  }

}

/* Motion: the redesign has no scroll reveals. Keep any residual motion off. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print as a clean black-on-white report. */
@media print {
  :root {
    --paper: #ffffff;
    --paper-alt: #ffffff;
    --ink: #000000;
    --ink-soft: #000000;
    --muted: #333333;
    --line: #999999;
    --accent: #000000;
  }

  .site-header,
  .skip-link,
  .hero-actions,
  .cta-row,
  .pricing-cta,
  .key-sequence {
    display: none !important;
  }

  .hero,
  .page-hero,
  .section {
    padding: 1.2rem 0;
  }

  .cta-panel {
    background: #ffffff;
    color: #000000;
    border-top: 2px solid #000000;
    padding: 1rem 0;
  }

  .cta-panel h2,
  .cta-panel p {
    color: #000000;
  }

  a {
    color: #000000;
  }
}
