@font-face { font-family: 'REM'; font-style: italic; font-weight: 100; font-display: swap; src: url("/assets/fonts/rem-latin-100-italic.woff2") format("woff2"); }
@font-face { font-family: 'REM'; font-style: normal; font-weight: 100; font-display: swap; src: url("/assets/fonts/rem-latin-100-normal.woff2") format("woff2"); }
@font-face { font-family: 'REM'; font-style: italic; font-weight: 200; font-display: swap; src: url("/assets/fonts/rem-latin-200-italic.woff2") format("woff2"); }
@font-face { font-family: 'REM'; font-style: normal; font-weight: 200; font-display: swap; src: url("/assets/fonts/rem-latin-200-normal.woff2") format("woff2"); }
@font-face { font-family: 'REM'; font-style: italic; font-weight: 300; font-display: swap; src: url("/assets/fonts/rem-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: 'REM'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/rem-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'REM'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/rem-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'REM'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/rem-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'REM'; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/rem-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: 'REM'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/rem-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'REM'; font-style: italic; font-weight: 600; font-display: swap; src: url("/assets/fonts/rem-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: 'REM'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/rem-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'REM'; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/rem-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: 'REM'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/rem-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'REM'; font-style: italic; font-weight: 800; font-display: swap; src: url("/assets/fonts/rem-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: 'REM'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/rem-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: 'REM'; font-style: italic; font-weight: 900; font-display: swap; src: url("/assets/fonts/rem-latin-900-italic.woff2") format("woff2"); }
@font-face { font-family: 'REM'; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/fonts/rem-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: 'Chakra Petch'; font-style: italic; font-weight: 300; font-display: swap; src: url("/assets/fonts/chakra-petch-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/chakra-petch-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Chakra Petch'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/chakra-petch-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/chakra-petch-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Chakra Petch'; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/chakra-petch-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/chakra-petch-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Chakra Petch'; font-style: italic; font-weight: 600; font-display: swap; src: url("/assets/fonts/chakra-petch-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/chakra-petch-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Chakra Petch'; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/chakra-petch-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/chakra-petch-latin-700-normal.woff2") format("woff2"); }
:root {
  --bg-light-base: #f4f3f8;
  --fg-light-base-body: #1b1728;
  --fg-light-base-heading: #1b1728;
  --fg-light-base-muted: #4f4863;
  --fg-light-base-link: #5b2bb5;
  --fg-light-base-inverse: #1b1728;
  --bg-light-card: #ffffff;
  --fg-light-card-body: #1b1728;
  --fg-light-card-heading: #1b1728;
  --fg-light-card-muted: #4f4863;
  --fg-light-card-link: #5b2bb5;
  --fg-light-card-inverse: #1b1728;
  --bg-light-elevated: #e8e5f1;
  --fg-light-elevated-body: #1b1728;
  --fg-light-elevated-heading: #1b1728;
  --fg-light-elevated-muted: #4f4863;
  --fg-light-elevated-link: #43208a;
  --fg-light-elevated-inverse: #1b1728;
  --brand-light-accent: #5b2bb5;
  --brand-light-accent-hover: #43208a;
  --brand-light-on-accent: #ffffff;
  --focus-light-ring: #5b2bb5;
  --border-light-default: #6c6584;
  --border-light-subtle: #cdc8dc;
}
.bg-surface-base { background: var(--bg-light-base); --fg-body: var(--fg-light-base-body); --fg-heading: var(--fg-light-base-heading); --fg-muted: var(--fg-light-base-muted); --fg-link: var(--fg-light-base-link); --fg-inverse: var(--fg-light-base-inverse); }
.bg-surface-card { background: var(--bg-light-card); --fg-body: var(--fg-light-card-body); --fg-heading: var(--fg-light-card-heading); --fg-muted: var(--fg-light-card-muted); --fg-link: var(--fg-light-card-link); --fg-inverse: var(--fg-light-card-inverse); }
.bg-surface-elevated { background: var(--bg-light-elevated); --fg-body: var(--fg-light-elevated-body); --fg-heading: var(--fg-light-elevated-heading); --fg-muted: var(--fg-light-elevated-muted); --fg-link: var(--fg-light-elevated-link); --fg-inverse: var(--fg-light-elevated-inverse); }
.text-role-body { color: var(--fg-body); overflow-wrap: anywhere; }
.text-role-heading { color: var(--fg-heading); overflow-wrap: anywhere; }
.text-role-muted { color: var(--fg-muted); }
.text-role-link { color: var(--fg-link); }
.text-role-inverse { color: var(--fg-inverse); }
.text-role-link { text-decoration: underline; }
.text-role-link:hover { color: var(--brand-light-accent-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus-light-ring); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.site-logo { max-width: 100%; height: auto; }
.site-menu > summary { list-style: none; cursor: pointer; }
.site-menu > summary::-webkit-details-marker { display: none; }
:where(section[data-section][style]) { background-size: cover; background-position: center; padding: clamp(1.5rem, 4vw, 3rem); }
:where(section[data-section][style] > .bg-surface-card) { padding: clamp(1rem, 3vw, 2rem); }
:where(section[data-section][style] > .bg-surface-card > :first-child) { margin-top: 0; }
:where(section[data-section][style] > .bg-surface-card > :last-child) { margin-bottom: 0; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { position: static; padding: 0.25rem 0.5rem; outline: 2px solid var(--focus-light-ring); }

/* Foot Surgery Explained: surgical explainer diagrammatics */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.plan {
  margin: 0;
  font-family: 'Chakra Petch', 'Trebuchet MS', 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.62;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 {
  font-family: 'REM', 'Avenir Next', 'Century Gothic', sans-serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 { font-weight: 600; letter-spacing: -0.02em; }

.page a { color: var(--fg-link); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }

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

input:focus-visible { outline: 2px solid var(--focus-light-ring); outline-offset: 2px; }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  padding: 0.6rem 1rem;
  background: var(--bg-light-card);
  border: 1px solid var(--border-light-default);
}

.skip-link:focus { top: 1rem; }

/* ---------- Header (static) and full overlay menu ---------- */

.site-header {
  position: static;
  border-bottom: 1px solid var(--border-light-default);
}

.header-bar {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; min-height: 44px; }

.brand .site-logo { display: block; width: 18.5rem; height: auto; }

.menu-slot { display: flex; align-items: center; }

.site-menu > summary {
  position: relative;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0.4rem 1.1rem 0.4rem 0.8rem;
  border: 1.5px solid var(--brand-light-accent);
  border-radius: 999px;
  background: var(--bg-light-card);
  font-family: 'REM', 'Avenir Next', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--fg-heading);
}

.site-menu > summary:hover { background: var(--bg-light-elevated); }

/* icon: a callout node with its leader, turning into a cross when open */
.site-menu .menu-icon {
  position: relative;
  display: inline-block;
  width: 1.5rem;
  height: 1rem;
}

.site-menu .menu-icon::before,
.site-menu .menu-icon::after {
  content: "";
  position: absolute;
  top: 50%;
}

.site-menu .menu-icon::before {
  left: 0;
  width: 0.7rem;
  height: 0.7rem;
  margin-top: -0.35rem;
  border: 2px solid var(--brand-light-accent);
  border-radius: 50%;
}

.site-menu .menu-icon::after {
  left: 0.7rem;
  right: 0;
  border-top: 2px solid currentColor;
  margin-top: -1px;
}

.site-menu[open] .menu-icon::before {
  left: 0.2rem;
  width: 1.1rem;
  height: 0;
  margin-top: -1px;
  border: 0;
  border-top: 2px solid currentColor;
  border-radius: 0;
  transform: rotate(45deg);
}

.site-menu[open] .menu-icon::after {
  left: 0.2rem;
  right: auto;
  width: 1.1rem;
  transform: rotate(-45deg);
}

.site-menu[open] > summary {
  position: fixed;
  top: 1rem;
  right: 1rem;
}

.site-menu > ul {
  position: fixed;
  inset: 0;
  z-index: 55;
  overflow-y: auto;
  margin: 0;
  padding: 6rem clamp(1rem, 6vw, 6rem) 3rem;
  list-style: none;
  background: var(--bg-light-card);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  align-content: start;
  gap: 2.5rem clamp(1.5rem, 4vw, 3.5rem);
}

.site-menu > ul > li {
  position: relative;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light-default);
}

/* node where the leader meets each topic column */
.site-menu > ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: -0.4rem;
  width: 0.8rem;
  height: 0.8rem;
  border: 2px solid var(--brand-light-accent);
  border-radius: 50%;
  background: var(--bg-light-card);
}

.site-menu ul a {
  display: block;
  padding: 0.35rem 0;
  text-decoration: none;
  line-height: 1.3;
}

.site-menu ul a:hover { text-decoration: underline; }

.site-menu > ul > li > a {
  font-family: 'REM', 'Avenir Next', sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 600;
}

.site-menu ul ul {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0 0 0 1rem;
  border-left: 1px solid var(--border-light-subtle);
}

.site-menu ul ul a { font-size: 0.975rem; }

@media (max-width: 47.99rem) {
  .brand .site-logo { width: 11rem; }
  .site-menu > summary { padding: 0.35rem 0.8rem 0.35rem 0.65rem; gap: 0.5rem; white-space: nowrap; }
  .site-menu .menu-label { font-size: 0.9rem; }
}

/* ---------- Page frame ---------- */

.page {
  flex: 1 0 auto;
  width: 100%;
  max-width: 76rem;
  margin: 0 auto;
  padding: 1.75rem 1rem 4.5rem;
}

.breadcrumbs ol {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.55rem;
  font-size: 0.875rem;
}

.breadcrumbs li + li::before {
  content: "";
  display: inline-block;
  width: 1.1rem;
  margin-right: 0.55rem;
  vertical-align: middle;
  border-top: 1px solid var(--border-light-default);
}

main p, main li { max-width: 68ch; }

main h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin: 2.5rem 0 0.8rem; }

main h3 { font-size: 1.3rem; margin: 1.6rem 0 0.5rem; }

main ul, main ol { padding-left: 1.3rem; }

main li + li { margin-top: 0.4rem; }

main li::marker { color: var(--brand-light-accent); }

.photo-hero, .photo-inline { margin: 0 0 2rem; }

.photo-hero img, .photo-inline img { display: block; width: 100%; }

/* ---------- Home: stepped operating plan ---------- */

.plan-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  column-gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.cover-title { grid-column: 1; grid-row: 1; padding-top: 0.5rem; }

.cover-title h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.5rem);
  line-height: 1.02;
  max-width: 14ch;
}

.stage-lines {
  grid-column: 1;
  grid-row: 2;
  margin: 2.25rem 0 1rem;
  counter-reset: point;
}

.stage-lines .display-line {
  counter-increment: point;
  position: relative;
  margin: 0 0 1.4rem;
  padding: 0.2rem 0 0 4.25rem;
  min-height: 2.2rem;
  max-width: 34rem;
  font-size: 1.075rem;
  line-height: 1.5;
}

.stage-lines .display-line:nth-child(2) { margin-left: 2.75rem; }

.stage-lines .display-line:nth-child(3) { margin-left: 5.5rem; }

/* numbered node with its leader line running to the stage text */
.stage-lines .display-line::before {
  content: counter(point);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-light-accent);
  color: var(--brand-light-on-accent);
  font-family: 'REM', 'Avenir Next', sans-serif;
  font-weight: 600;
  font-size: 1rem;
}

.stage-lines .display-line::after {
  content: "";
  position: absolute;
  left: 2.2rem;
  width: 1.6rem;
  top: 1.1rem;
  border-top: 1px solid var(--brand-light-accent);
}

.home-body { display: contents; counter-reset: stage; }

.home-body > .photo-hero {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: relative;
  margin: 0.5rem 0 0;
  padding: 0.6rem;
  background: var(--bg-light-card);
  border: 1px solid var(--border-light-default);
}

/* registration ticks at two corners of the plate */
.home-body > .photo-hero::before,
.home-body > .photo-hero::after {
  content: "";
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  border-color: var(--brand-light-accent);
  border-style: solid;
}

.home-body > .photo-hero::before { left: -0.5rem; top: -0.5rem; border-width: 2px 0 0 2px; }

.home-body > .photo-hero::after { right: -0.5rem; bottom: -0.5rem; border-width: 0 2px 2px 0; }

.home-body > .photo-hero img { aspect-ratio: 4 / 5; object-fit: cover; }

.home-body > :not(.photo-hero) {
  grid-column: 1 / -1;
  max-width: 44rem;
}

.home-body > :is(p, ul, ol, h3) {
  margin-top: 0;
  margin-bottom: 0;
  padding: 0 0 1rem 1.5rem;
  border-left: 1px solid var(--border-light-default);
}

.home-body > :first-child:not(.photo-hero),
.home-body > .photo-hero + p {
  margin-top: 2.5rem;
  padding: 1.25rem 0 1.25rem 1.5rem;
  border-left: 3px solid var(--brand-light-accent);
  font-size: 1.2rem;
  line-height: 1.55;
  max-width: 46rem;
}

.home-body > h2 {
  counter-increment: stage;
  margin: 2.75rem 0 0;
  padding: 0 0 0.9rem;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
}

.home-body > h2::before {
  content: "Stage " counter(stage);
  display: block;
  width: max-content;
  margin-bottom: 0.65rem;
  padding: 0.15rem 0.75rem 0.15rem 0;
  font-family: 'Chakra Petch', 'Trebuchet MS', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--brand-light-accent);
  background: linear-gradient(var(--brand-light-accent), var(--brand-light-accent)) no-repeat left bottom / 100% 1px;
}

/* each stage steps right of the one before it */
.home-body > h2:nth-of-type(2),
.home-body > h2:nth-of-type(2) ~ :not(.photo-hero) { margin-left: 3.5rem; }

.home-body > h2:nth-of-type(3),
.home-body > h2:nth-of-type(3) ~ :not(.photo-hero) { margin-left: 7rem; }

.home-body > h2:nth-of-type(4),
.home-body > h2:nth-of-type(4) ~ :not(.photo-hero) { margin-left: 10.5rem; }

@media (max-width: 55.99rem) {
  .plan-grid { grid-template-columns: minmax(0, 1fr); }
  .home-body > .photo-hero { grid-column: 1; grid-row: 3; margin-top: 0.5rem; max-width: 34rem; }
  .home-body > .photo-hero img { aspect-ratio: 3 / 2; }
}

@media (max-width: 47.99rem) {
  .stage-lines .display-line:nth-child(n) { margin-left: 0; }
  .home-body > h2:nth-of-type(n),
  .home-body > h2:nth-of-type(n) ~ :not(.photo-hero) { margin-left: 0; }
}

/* ---------- Topic hub: diagram field beside the topic key ---------- */

.hub-split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.hub-title h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  max-width: 18ch;
  margin-bottom: 1.75rem;
}

.hub-body > .photo-hero {
  position: relative;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--border-light-default);
  background-color: var(--bg-light-card);
  background-image:
    linear-gradient(to right, var(--border-light-subtle) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-light-subtle) 1px, transparent 1px);
  background-size: 1.5rem 1.5rem;
  background-position: -1px -1px;
}

.hub-body > .photo-hero img { border: 1px solid var(--border-light-default); }

.hub-body > .photo-hero::after {
  content: "";
  position: absolute;
  right: clamp(1rem, 3vw, 2rem);
  bottom: -1px;
  width: 30%;
  border-bottom: 3px solid var(--brand-light-accent);
}

.hub-body > p:first-of-type { font-size: 1.15rem; }

.hub-key {
  position: sticky;
  top: 1.5rem;
  padding: 1.5rem 1.5rem 1.25rem;
  border: 1px solid var(--border-light-default);
  border-top: 3px solid var(--brand-light-accent);
}

.key-caption {
  margin: 0 0 1rem;
  font-family: 'REM', 'Avenir Next', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
}

.hub-key ul {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: key;
}

.hub-key li {
  counter-increment: key;
  position: relative;
  margin: 0;
  padding: 0.75rem 0 0.75rem 3.4rem;
  border-top: 1px solid var(--border-light-subtle);
  line-height: 1.4;
}

.hub-key li::before {
  content: counter(key, upper-alpha);
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  border: 2px solid var(--brand-light-accent);
  border-radius: 50%;
  font-family: 'REM', 'Avenir Next', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg-heading);
}

.hub-key li::after {
  content: "";
  position: absolute;
  left: 1.8rem;
  width: 1.1rem;
  top: 1.6rem;
  border-top: 1px solid var(--brand-light-accent);
}

.hub-key a { text-decoration: none; font-weight: 500; }

.hub-key a:hover { text-decoration: underline; }

@media (max-width: 55.99rem) {
  .hub-split { grid-template-columns: minmax(0, 1fr); }
  .hub-key { position: static; }
}

/* ---------- Article: reading column with callout figures ---------- */

.article-plan {
  max-width: 44rem;
  margin-left: clamp(0rem, 8vw, 7rem);
  counter-reset: fig;
}

.article-title h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  max-width: 20ch;
  margin-bottom: 1.75rem;
}

.article-body > .photo-hero,
.article-body > .photo-inline {
  counter-increment: fig;
  position: relative;
  margin: 2.25rem 0;
  padding-top: 2rem;
}

/* figure tag with its leader line */
.article-body > .photo-hero::before,
.article-body > .photo-inline::before {
  content: "Fig. " counter(fig);
  position: absolute;
  left: 0;
  top: 0;
  padding-right: 4rem;
  font-family: 'REM', 'Avenir Next', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--brand-light-accent);
  background: linear-gradient(var(--brand-light-accent), var(--brand-light-accent)) no-repeat right 0.4rem center / 3rem 1px;
}

.article-body > .photo-hero img,
.article-body > .photo-inline img {
  border: 1px solid var(--border-light-default);
  padding: 0.4rem;
  background: var(--bg-light-card);
}

.article-body > h2 { position: relative; }

@media (min-width: 64rem) {
  .article-body > h2::before {
    content: "";
    position: absolute;
    left: -4.5rem;
    top: 0.55em;
    width: 0.75rem;
    height: 0.75rem;
    border: 2px solid var(--brand-light-accent);
    border-radius: 50%;
  }

  .article-body > h2::after {
    content: "";
    position: absolute;
    left: -3.75rem;
    width: 3rem;
    top: calc(0.55em + 0.375rem);
    border-top: 1px solid var(--brand-light-accent);
  }
}

/* ---------- About: narrow column with the diagram key ---------- */

.about-plan { max-width: 40rem; margin: 0 auto; }

.about-title h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  margin-bottom: 1.75rem;
}

.notation {
  margin: 0 0 2.5rem;
  padding: 1.4rem 1.5rem 0.5rem;
  border: 1px solid var(--border-light-default);
}

.notation-caption {
  margin: 0 0 0.75rem;
  font-family: 'REM', 'Avenir Next', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
}

.notation-list { margin: 0; }

.notation-row {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 0.25rem 1.25rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border-light-subtle);
}

.notation-row dt {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
}

.notation-row dd { margin: 0; }

.glyph { flex: none; position: relative; display: inline-block; width: 1.75rem; height: 1rem; }

.glyph-leader::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid var(--brand-light-accent);
}

.glyph-leader::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 0.4rem;
  height: 0.4rem;
  margin-top: -0.2rem;
  border-radius: 50%;
  background: var(--brand-light-accent);
}

.glyph-node::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 0.05rem;
  width: 0.9rem;
  height: 0.9rem;
  border: 2px solid var(--brand-light-accent);
  border-radius: 50%;
}

.glyph-stage::before {
  content: "1";
  position: absolute;
  left: 0.25rem;
  top: -0.2rem;
  width: 1.3rem;
  height: 1.3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-light-accent);
  color: var(--brand-light-on-accent);
  font-size: 0.75rem;
  font-weight: 700;
}

.glyph-figure::before {
  content: "";
  position: absolute;
  inset: 0.05rem 0.2rem;
  border: 1px solid var(--border-light-default);
  background: linear-gradient(135deg, transparent 45%, var(--brand-light-accent) 45%, var(--brand-light-accent) 55%, transparent 55%);
}

@media (max-width: 35.99rem) {
  .notation-row { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Contact: cutaway beside the form ---------- */

.contact-title h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  margin-bottom: 1.75rem;
}

.contact-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.cutaway {
  margin: 0;
  padding: 1.25rem;
  border: 1px solid var(--border-light-default);
}

.cutaway-art { display: block; width: 100%; height: auto; }

.cut-skin { fill: var(--bg-light-card); stroke: var(--border-light-default); stroke-width: 2; }

.cut-bone { fill: var(--bg-light-elevated); stroke: var(--brand-light-accent); stroke-width: 2; stroke-dasharray: 6 4; }

.cut-tendon { fill: none; stroke: var(--brand-light-accent); stroke-width: 3; stroke-linecap: round; }

.cut-plane { stroke: var(--border-light-default); stroke-width: 1; stroke-dasharray: 2 4; }

.cut-leader { stroke: var(--brand-light-accent); stroke-width: 1; }

.cut-node { fill: var(--bg-light-card); stroke: var(--brand-light-accent); stroke-width: 2; }

.cutaway-key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 0.9rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light-default);
  font-family: 'REM', 'Avenir Next', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
}

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

.pair-form {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--border-light-default);
  border-top: 3px solid var(--brand-light-accent);
  max-width: 34rem;
}

.form-row { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1.1rem; }

.form-row label { font-weight: 600; }

.form-row input {
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border-light-default);
  border-radius: 4px;
  background: var(--bg-light-card);
  color: var(--fg-body);
  font: inherit;
}

.form-submit {
  min-height: 44px;
  padding: 0.6rem 1.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--brand-light-accent);
  color: var(--brand-light-on-accent);
  font-family: 'REM', 'Avenir Next', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.form-submit:hover { background: var(--brand-light-accent-hover); }

@media (max-width: 55.99rem) {
  .contact-split { grid-template-columns: minmax(0, 1fr); }
  .cutaway { max-width: 26rem; order: 2; }
}

/* ---------- Thank you: confirmation beside a stage diagram ---------- */

.thanks-columns {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.thanks-title h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  margin-bottom: 1.5rem;
}

.reading-stages {
  padding: 1.5rem;
  border: 1px solid var(--border-light-default);
}

.stages-caption {
  margin: 0 0 1rem;
  font-family: 'REM', 'Avenir Next', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
}

.reading-stages ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: stop;
}

.reading-stages li {
  counter-increment: stop;
  position: relative;
  margin: 0;
  padding: 0.25rem 0 1.25rem 2.75rem;
}

.reading-stages li::before {
  content: counter(stop);
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-light-accent);
  color: var(--brand-light-on-accent);
  font-family: 'REM', 'Avenir Next', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
}

/* connector between stage nodes */
.reading-stages li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 1.95rem;
  bottom: 0.1rem;
  border-left: 1px solid var(--brand-light-accent);
}

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

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--border-light-default); }

.footer-plate {
  max-width: 76rem;
  margin: 0 auto;
  padding: 2rem 1rem 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  gap: 0.5rem 2.5rem;
  align-items: baseline;
}

.footer-name {
  margin: 0;
  font-family: 'REM', 'Avenir Next', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
}

.footer-line { margin: 0; max-width: 60ch; }

@media (max-width: 47.99rem) {
  .footer-plate { grid-template-columns: minmax(0, 1fr); }
}
