* {
  box-sizing: border-box;
}

:root {
  --bg: #ffffff;
  --paper: #f7f4ed;
  --paper-deep: #ede7da;
  --soft: #f6f7f6;
  --ink: #111827;
  --slate: #1a1f2c;
  --muted: #4b5563;
  --quiet: #6b7280;
  --rule: #e5e7eb;
  --relationship-blue: #144a7c;
  --presence-blue: #1e3a5f;
  --relational-olive: #667151;
  --repair-clay: #9f5b40;
  --learning-gold: #d7b96b;
  --learning-gold-text: #96792e;
  --systems-tide: #3f6b70;
  --thread-red: #a94837;
  --thread-red-soft: rgba(169, 72, 55, 0.28);
  /* Full-width braid tints — lighter values of the two thread accents
     (45% white-mix of --relationship-blue / --relational-olive), so a
     multi-strand braid reads as one family of thread.
     Deliberately SOLID hex, unlike the site's usual rgba-soft pattern:
     the braid engine paints strands OPAQUE into an offscreen buffer and
     applies alpha once at the final blit (destination-out compositing),
     so a canvas fillStyle needs a concrete opaque colour — an alpha
     colour here would double-fade. Do not "fix" these into rgba(). */
  --braid-accent-tint: #7e9bb7;
  --braid-sage-tint: #abb19f;
  --serif: "Source Serif 4", Charter, Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
  font-synthesis: none;
}

::selection {
  background: #d9e4ee;
}

a {
  color: inherit;
}

p,
h1,
h2,
h3,
h4,
blockquote {
  margin-top: 0;
}

button {
  font: inherit;
}

.container {
  width: min(1140px, calc(100vw - 64px));
  margin: 0 auto;
}

.site-nav {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 30px 0 24px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.1);
  font-family: var(--sans);
}

.brand {
  margin-right: auto;
  text-decoration: none;
}

.brand strong {
  display: block;
  margin-bottom: 7px;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.1;
  font-weight: 600;
}

.brand-mark {
  display: block;
  position: relative;
  width: 152px;
  height: 18px;
  margin-top: -2px;
  opacity: 0.9;
}

.brand-mark::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  height: 3px;
  background: var(--relationship-blue);
  clip-path: polygon(0 55%, 13% 24%, 31% 64%, 47% 36%, 65% 60%, 82% 30%, 100% 51%, 100% 100%, 0 100%);
  opacity: 0;
}

.brand-mark canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.site-nav a:not(.brand) {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  padding-top: 8px;
}

.site-nav a[aria-current="page"] {
  color: var(--relationship-blue);
  font-weight: 700;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--relationship-blue);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  max-width: 980px;
  margin-bottom: 24px;
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 1.05;
  letter-spacing: 0;
  font-weight: 430;
  text-wrap: balance;
}

h1 em,
h2 em {
  color: var(--relationship-blue);
  font-style: italic;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.1;
  letter-spacing: 0;
  font-weight: 430;
  text-wrap: balance;
}

h3 {
  margin-bottom: 12px;
  font-size: 27px;
  line-height: 1.15;
  letter-spacing: 0;
  font-weight: 520;
  text-wrap: balance;
}

.lead {
  max-width: 62ch;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
  text-wrap: pretty;
}

.page-hero {
  padding: 70px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
  gap: 64px;
  align-items: end;
}

.hero-note {
  position: relative;
  overflow: hidden;
  padding-left: 24px;
  border-left: 5px solid var(--relational-olive);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.72;
}

.hero-note[data-living-edge] {
  padding-left: 34px;
  border-left: 0;
}

.hero-note strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 520;
  line-height: 1.25;
}

.section-band {
  padding: 76px 0 88px;
  border-top: 1px solid var(--rule);
}

.section-band.paper {
  background: var(--paper);
  border-top-color: rgba(20, 74, 124, 0.1);
}

.section-band.soft {
  background: var(--soft);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(360px, 1fr);
  gap: 58px;
  align-items: end;
  margin-bottom: 34px;
}

.section-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.72;
}

.text-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.54fr) minmax(360px, 1fr);
  gap: 64px;
}

.text-grid p {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
}

.text-grid .large-copy {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.22;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.pill-link,
.pill-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(20, 74, 124, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--relationship-blue);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.pill-link:hover,
.pill-button:hover {
  background: rgba(20, 74, 124, 0.1);
  border-color: rgba(20, 74, 124, 0.34);
  transform: translateX(2px);
}

.pill-link::after,
.pill-button::after {
  content: "";
  width: 26px;
  height: 3px;
  background: currentColor;
  clip-path: polygon(0 55%, 20% 10%, 45% 62%, 72% 30%, 100% 52%, 100% 100%, 0 100%);
}

.image-shell {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 8px;
}

.image-shell img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.photo-caption {
  margin-top: 14px;
  color: var(--quiet);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
}

.living-photo {
  position: relative;
  padding: 20px;
  background: var(--paper);
  border: 1px solid rgba(102, 113, 81, 0.16);
  border-radius: 8px;
  overflow: visible;
}

.living-photo::after {
  content: "";
  position: absolute;
  inset: 20px 18px 68px 22px;
  border: 3px solid var(--relationship-blue);
  border-radius: 49% 51% 47% 53% / 52% 46% 54% 48%;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.62;
}

.living-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 49% 51% 47% 53% / 52% 46% 54% 48%;
}

.living-photo[data-living-mask]::after {
  display: none;
}

.living-photo[data-living-mask] {
  --mask-gap: 5;
}

/* One box: the stage wraps the <img>, and the frame SVG is absolutely
   positioned inside it — so the frame box IS the image box (Fable spec §4.1).
   line-height:0 removes the inline-image baseline gap so the stage rect
   equals the image rect exactly. */
.pebble-stage {
  position: relative;
  display: block;
  line-height: 0;
}

.living-photo[data-living-mask] img {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: filter 0.35s ease;
}

.living-photo[data-living-mask]:hover img {
  filter: saturate(0.9) contrast(1.04);
}

.living-pebble-frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: visible;
  pointer-events: none;
}

.living-pebble-frame path {
  fill: none;
  stroke: var(--mask-colour, var(--relationship-blue));
  stroke-width: var(--mask-width, 1.8);
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.76;
  transition: stroke 0.25s ease, stroke-width 0.25s ease, opacity 0.25s ease;
}

.living-photo[data-living-mask]:hover .living-pebble-frame path {
  stroke: var(--mask-active-colour, var(--repair-clay));
  stroke-width: var(--mask-active-width, 2.25);
  opacity: 0.95;
}

.thread-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.home-hero {
  position: relative;
  min-height: auto;
  padding: 78px 0 82px;
  overflow: hidden;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.62fr);
  gap: 72px;
  align-items: center;
}

.home-hero h1 {
  max-width: 700px;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.22;
  font-weight: 400;
}

.home-hero .living-photo {
  width: 100%;
  max-width: 360px;
  justify-self: end;
}

.hero-line-stage {
  position: relative;
  height: 118px;
  margin: 34px 0 14px;
}

.hero-line-stage canvas {
  position: absolute;
  inset: 0;
}

.home-proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 36px;
}

.proof-tile,
.card,
.route-card,
.method-card,
.evidence-card,
.quote-card {
  position: relative;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.proof-tile {
  min-height: 138px;
  padding: 18px 18px 18px 34px;
  border-top: 0;
  border-radius: 4px;
}

.proof-tile h3 {
  margin-bottom: 8px;
  font-size: 21px;
  line-height: 1.25;
}

.proof-tile p {
  margin: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.55;
}

.route-grid,
.method-grid,
.evidence-grid,
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.route-card,
.method-card,
.evidence-card {
  min-height: 260px;
  padding: 22px 22px 22px 36px;
  border-top: 0;
  border-radius: 4px;
}

.living-edge-line {
  position: absolute;
  left: 8px;
  top: 16px;
  bottom: 16px;
  width: 18px;
  height: calc(100% - 32px);
  overflow: visible;
  pointer-events: none;
}

.living-edge-line path {
  fill: var(--card-colour, var(--tile-colour, var(--relationship-blue)));
  stroke: none;
  opacity: 0.52;
  transition: opacity 0.25s ease, stroke-width 0.25s ease;
}

.living-edge-line path[data-renderer="stroke"] {
  fill: none;
  stroke: var(--card-colour, var(--tile-colour, var(--relationship-blue)));
  stroke-width: 2.2;
  stroke-linecap: round;
}

.is-edge-active .living-edge-line path {
  opacity: 0.88;
}

.is-edge-active .living-edge-line path[data-renderer="stroke"] {
  stroke-width: 3.2;
}

.route-card p,
.method-card p,
.evidence-card p {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.62;
}

.meta-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 8px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
}

.wayfinding-layout {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.about-wayfinding-layout {
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 62px;
}

.wayfinder {
  position: sticky;
  top: 24px;
  min-height: 68vh;
}

.wayfinder svg {
  display: block;
  width: 68px;
  height: 68vh;
  overflow: visible;
}

.about-wayfinding-layout .wayfinder svg,
.about-wayfinding-layout .wayfinder-canvas {
  width: 104px;
}

.wayfinder-canvas {
  display: block;
  width: 68px;
  height: 68vh;
}

.wayfinder.has-wayfinder-canvas svg {
  display: none;
}

.wayfinder .rail {
  fill: none;
  stroke: rgba(20, 74, 124, 0.16);
  stroke-width: 5;
  stroke-linecap: round;
}

.wayfinder .progress {
  fill: none;
  stroke: var(--relationship-blue);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: calc(1000 - (1000 * var(--progress, 0)));
}

.wayfinder .timeline-dots circle {
  fill: rgba(20, 74, 124, 0.34);
  stroke: var(--paper);
  stroke-width: 2.1;
}

.about-body,
.article-body {
  max-width: 820px;
}

.about-body section,
.about-body article,
.article-body section {
  padding: 42px 0;
  border-bottom: 1px solid var(--rule);
}

.about-body {
  max-width: 900px;
}

.timeline-intro {
  padding: 0 0 18px;
}

.timeline-entry {
  position: relative;
  padding-left: clamp(28px, 4vw, 54px) !important;
}

.timeline-entry::before {
  content: "";
  position: absolute;
  left: -125px;
  top: 56px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--entry-colour, var(--relationship-blue));
  box-shadow: 0 0 0 7px var(--paper), 0 0 0 8px rgba(20, 74, 124, 0.16);
}

.timeline-entry::after {
  content: "";
  position: absolute;
  left: -108px;
  top: 64px;
  width: 82px;
  height: 3px;
  border-radius: 999px;
  background: var(--entry-colour, var(--relationship-blue));
  opacity: 0.58;
}

.timeline-period {
  margin-bottom: 8px;
  color: var(--entry-colour, var(--relationship-blue));
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.trust-thread {
  display: grid;
  gap: 7px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
}

.trust-thread li {
  position: relative;
  padding-left: 18px;
}

.trust-thread li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: var(--entry-colour, var(--relationship-blue));
}

.about-wayfinder-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #fff;
  padding: 94px 0 110px;
}

.section-band.paper.about-wayfinder-section {
  background: #fff;
}

.page-wayfinder-svg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.page-wayfinder-fallback {
  fill: none;
  stroke: var(--page-thread-fallback-colour, rgba(20, 74, 124, 0.28));
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.has-page-wayfinder .page-wayfinder-fallback {
  opacity: 0;
}

.page-wayfinder-ribbon {
  fill: var(--page-thread-colour, var(--relationship-blue));
  opacity: 0.68;
}

.page-wayfinder-spine {
  fill: none;
  stroke: var(--page-thread-colour, var(--relationship-blue));
  stroke-width: 1.05;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
}

.about-wayfinder-stage {
  position: relative;
  z-index: 2;
}

.about-wayfinder-content {
  max-width: none;
}

.about-wayfinder-intro {
  max-width: 790px;
  margin: 0 auto 92px;
  padding: 8px 0 18px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.about-wayfinder-card {
  width: min(660px, 61vw);
  margin: 0 0 104px;
  padding: 10px 0 18px !important;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.about-wayfinder-card.align-left {
  margin-right: auto;
}

.about-wayfinder-card.align-right {
  margin-left: auto;
}

.about-wayfinder-card.align-centre {
  width: min(780px, 72vw);
  margin-left: auto;
  margin-right: auto;
}

.about-wayfinder-card::before {
  display: none;
}

.about-wayfinder-card::after {
  display: none;
}

.about-wayfinder-card .timeline-period {
  padding-left: 0;
}

.about-wayfinder-card .quote-card {
  margin: 26px 0 0;
  padding: 18px 0 18px 34px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.red-thread-variant {
  --page-thread-colour: var(--thread-red);
  --page-thread-fallback-colour: var(--thread-red-soft);
}

.red-thread-variant .page-wayfinder-spine {
  stroke: var(--page-thread-colour);
}

.about-body p,
.article-body p {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  max-width: 68ch;
}

.article-body,
.about-body,
.book-stage,
.case-reflection,
.legal-prose {
  font-variant-numeric: oldstyle-nums;
}

.article-body .standfirst {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(24px, 2.8vw, 31px);
  line-height: 1.3;
  hanging-punctuation: first;
}

.article-thread-line {
  height: 82px;
  margin: 24px 0 18px;
}

blockquote {
  margin: 34px 0;
  padding-left: 22px;
  border-left: 5px solid var(--repair-clay);
  color: var(--ink);
  font-size: clamp(24px, 2.8vw, 31px);
  line-height: 1.3;
  text-wrap: pretty;
  hanging-punctuation: first;
}

.spatial-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  min-height: 820px;
  padding: 26px 0 8px;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(20, 74, 124, 0.12);
  border-bottom: 1px solid rgba(20, 74, 124, 0.1);
  border-radius: 0;
  overflow: hidden;
}

.map-stage {
  position: relative;
  min-height: 720px;
  overflow: visible;
}

.map-stage canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.practice-detail {
  align-self: stretch;
  display: grid;
  grid-template-columns: minmax(260px, 0.52fr) minmax(300px, 1fr);
  gap: 34px;
  min-height: 100%;
  padding: 30px 0 4px;
  border-top: 1px solid rgba(20, 74, 124, 0.12);
}

.detail-kicker {
  margin-bottom: 18px;
  color: var(--relationship-blue);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.detail-title {
  margin-bottom: 12px;
  font-size: 34px;
  line-height: 1.12;
  font-weight: 430;
  text-wrap: balance;
}

.detail-phrase {
  margin-bottom: 24px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
}

.detail-meta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--quiet);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.detail-meta i {
  display: block;
  width: 10px;
  height: 10px;
  background: var(--detail-colour);
  border-radius: 50%;
}

.legend-stack {
  display: grid;
  gap: 12px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.legend-stack li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 10px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.35;
}

.legend-stack i {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  background: var(--legend-colour);
  border-radius: 50%;
}

.mobile-methods {
  display: none;
}

.mobile-method {
  display: grid;
  grid-template-columns: 5px minmax(0, 1fr);
  gap: 14px;
  padding: 15px 0;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(17, 24, 39, 0.1);
}

.mobile-method::before {
  content: "";
  width: 5px;
  min-height: 100%;
  background: var(--node-colour);
  border-radius: 5px;
}

.mobile-method strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 520;
  line-height: 1.25;
}

.mobile-method span {
  display: block;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.52;
}

.methodology-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.35fr) minmax(0, 1fr);
  gap: 54px;
  align-items: start;
}

.methodology-sidebar {
  position: sticky;
  top: 24px;
  padding: 24px 24px 24px 34px;
  background: transparent;
  border-left: 0;
  border-radius: 0;
  overflow: hidden;
}

.methodology-sidebar p {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.62;
}

.methodology-content {
  display: grid;
  gap: 18px;
}

.method-section {
  position: relative;
  padding: 26px 26px 26px 34px;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 0;
  overflow: hidden;
}

.method-hero-line {
  height: 78px;
  max-width: 680px;
  margin: 24px 0 0;
}

.method-section p {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.72;
}

.footer {
  padding: 34px 0 52px;
  color: var(--quiet);
  font-family: var(--sans);
  font-size: 13px;
}

@media (max-width: 1040px) {
  .home-hero-grid,
  .hero-grid,
  .section-head,
  .text-grid,
  .methodology-layout,
  .practice-detail {
    grid-template-columns: 1fr;
  }

  .route-grid,
  .method-grid,
  .evidence-grid,
  .article-grid,
  .home-proof-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .methodology-sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 34px, 680px);
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 24px;
  }

  .site-nav a:not(.brand) {
    padding-top: 0;
  }

  .page-hero,
  .home-hero,
  .section-band {
    padding: 54px 0;
  }

  .route-grid,
  .method-grid,
  .evidence-grid,
  .article-grid,
  .home-proof-strip {
    grid-template-columns: 1fr;
  }

  .wayfinding-layout {
    grid-template-columns: 1fr;
  }

  .wayfinder {
    display: none;
  }

  .timeline-entry {
    padding-left: 28px !important;
  }

  .about-wayfinder-section {
    padding: 64px 0;
  }

  .about-wayfinder-intro,
  .about-wayfinder-card,
  .about-wayfinder-card.align-centre {
    width: 100%;
    max-width: none;
    margin: 0 0 32px;
    padding: 26px 24px 28px !important;
  }

  .page-wayfinder-svg {
    display: none;
  }

  .timeline-entry::before {
    left: 0;
    top: 54px;
    width: 12px;
    height: 12px;
    box-shadow: 0 0 0 5px var(--paper);
  }

  .timeline-entry::after {
    display: none;
  }

  .spatial-panel {
    display: none;
  }

  .mobile-methods {
    display: grid;
    gap: 12px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* =====================================================================
   Review Pass 67 — v2 draft build (Claude)
   New components: nav action, four-column footer, work index + case study,
   essay template, book, podcast, contact letter-prompt, sent, 404, legal,
   subscribe, stillness toggle, debug overlay, draft-copy marker.
   Restraint is the design: structure here, motion in the engines.
   ===================================================================== */

/* Draft-copy marker — visible but quiet, never mistaken for real copy */
.draft-marker {
  display: block;
  margin-top: 10px;
  color: var(--quiet);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.6;
}

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

/* Honeypot trap (Shield H1) — unlike .visually-hidden, this must be invisible
   to assistive tech as well as sight: paired in markup with aria-hidden="true"
   on the wrapper and tabindex="-1" on the field, so no human, sighted or not,
   ever encounters it. Only a bot that blindly fills every input reaches it. */
.hp-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* Focus visibility — global care for keyboard users */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--relationship-blue);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Nav action — the one distinct, right-grouped invitation */
.site-nav .nav-action {
  padding: 7px 15px;
  border: 1px solid rgba(20, 74, 124, 0.28);
  border-radius: 999px;
  color: var(--relationship-blue);
  font-weight: 600;
}

.site-nav .nav-action:hover {
  background: rgba(20, 74, 124, 0.06);
}

/* Four-column footer */
.site-footer {
  margin-top: 8px;
  border-top: 1px solid var(--rule);
  background: var(--paper);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 40px;
  padding: 54px 0 38px;
}

.footer-identity strong {
  display: block;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
}

.footer-identity .footer-mark {
  width: 132px;
  height: 16px;
  margin: 8px 0 14px;
}

.footer-identity .footer-mark-static {
  display: block;
  width: 132px;
  height: 3px;
  margin: 12px 0 16px;
  background: var(--relationship-blue);
  clip-path: polygon(0 55%, 13% 24%, 31% 64%, 47% 36%, 65% 60%, 82% 30%, 100% 51%, 100% 100%, 0 100%);
  opacity: 0.7;
}

.footer-place,
.footer-entity {
  margin: 0 0 4px;
  color: var(--quiet);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.6;
}

.footer-nav h2,
.footer-credentials h2 {
  margin: 2px 0 14px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-nav {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-nav a {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--relationship-blue);
}

.footer-credentials p {
  margin: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.66;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
  padding: 18px 0 46px;
  border-top: 1px solid var(--rule);
  color: var(--quiet);
  font-family: var(--sans);
  font-size: 13px;
}

.footer-legal p {
  margin: 0;
}

.footer-legal-links {
  display: flex;
  gap: 18px;
}

.footer-legal-links a {
  color: var(--quiet);
  text-decoration: none;
}

.footer-legal-links a:hover {
  color: var(--relationship-blue);
}

/* Stillness toggle — quiets all motion regardless of OS setting */
.stillness-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 6px 12px;
  border: 1px solid rgba(20, 74, 124, 0.2);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.stillness-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--relational-olive);
  transition: background 0.3s ease;
}

[data-stillness="still"] .stillness-dot {
  background: var(--quiet);
}

/* Subscribe — reusable, calm */
.subscribe-block {
  max-width: 560px;
  margin-top: 30px;
}

.subscribe-framing {
  margin-bottom: 14px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
}

.subscribe-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.subscribe-row input {
  flex: 1 1 240px;
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid rgba(17, 24, 39, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
}

.form-note {
  margin-top: 10px;
  color: var(--quiet);
  font-family: var(--sans);
  font-size: 13px;
}

/* Work index — four representative pieces, two-up */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 8px;
}

.work-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 230px;
  padding: 26px 26px 26px 38px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
}

.work-card .work-meta {
  color: var(--quiet);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.work-card h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
}

.work-card p {
  margin: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.62;
}

.work-card .work-strand {
  margin-top: auto;
  padding-top: 14px;
  color: var(--card-colour, var(--relationship-blue));
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
}

.confidence-note {
  max-width: 640px;
  margin-top: 26px;
  padding-left: 20px;
  border-left: 3px solid var(--relational-olive);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.74;
}

/* Case study */
.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-bottom: 26px;
  color: var(--quiet);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.case-meta span {
  position: relative;
  padding-right: 22px;
}

.case-meta span:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0.5em;
  width: 10px;
  height: 2px;
  background: rgba(20, 74, 124, 0.4);
}

.case-hero {
  position: relative;
  overflow: hidden;
  margin: 8px 0 6px;
  background: var(--paper);
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 8px;
}

.case-hero img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 300px;
  max-height: 460px;
  object-fit: cover;
}

.case-reflection {
  margin: 6px 0;
  padding: 34px clamp(24px, 4vw, 52px);
  background: var(--paper);
  border-radius: 8px;
  border: 1px solid rgba(20, 74, 124, 0.1);
}

.case-reflection h2 {
  margin-bottom: 12px;
}

.case-reflection p {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 10px;
}

/* Essay template */
.essay-subhead {
  max-width: 760px;
  margin: -6px 0 18px;
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  line-height: 1.42;
}

.essay-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 18px;
  color: var(--quiet);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
}

.pull-quote {
  margin: 38px 0;
  padding: 6px 0 6px 28px;
  border-left: 4px solid var(--learning-gold);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 31px);
  font-style: italic;
  line-height: 1.3;
  hanging-punctuation: first;
}

.essay-end {
  margin: 40px 0 14px;
  color: var(--relationship-blue);
}

.essay-end::before {
  content: "";
  display: block;
  width: 30px;
  height: 4px;
  margin-bottom: 22px;
  background: var(--relationship-blue);
  clip-path: polygon(0 55%, 20% 10%, 45% 62%, 72% 30%, 100% 52%, 100% 100%, 0 100%);
  opacity: 0.7;
}

/* Writing index cards */
.essay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.essay-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 210px;
  padding: 24px 24px 24px 36px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
}

.essay-card .essay-card-meta {
  color: var(--quiet);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
}

.essay-card h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
}

.essay-card p {
  margin: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.62;
}

/* Book — the argument, in order */
.book-order {
  max-width: 760px;
}

.book-order .book-thesis {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.22;
  font-weight: 400;
}

.book-stage {
  padding: 40px 0;
  border-bottom: 1px solid var(--rule);
}

.book-stage:last-of-type {
  border-bottom: 0;
}

.book-stage p {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  max-width: 68ch;
}

.book-stage .book-stage-label {
  margin-bottom: 12px;
  color: var(--relationship-blue);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Podcast — honest trailer only */
.podcast-framing {
  max-width: 62ch;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
}

/* Contact — the letter prompt is the hero */
.letter-hero {
  padding: 64px 0 40px;
}

.letter-prompt {
  max-width: 680px;
  margin-top: 30px;
}

.letter-prompt-frame {
  position: relative;
  padding: 4px;
}

.letter-prompt-frame .letter-frame-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}

.letter-prompt-frame .letter-frame-svg path {
  fill: none;
  stroke: var(--relationship-blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.5;
  transition: opacity 0.3s ease, stroke 0.3s ease;
}

.letter-prompt-frame.is-frame-active .letter-frame-svg path {
  opacity: 0.82;
  stroke: var(--relational-olive);
}

.letter-prompt textarea {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  min-height: 220px;
  padding: 22px 24px;
  border: 1px solid rgba(17, 24, 39, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  resize: vertical;
}

.letter-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.letter-field {
  display: grid;
  gap: 6px;
}

.letter-field label {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
}

.letter-field input {
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid rgba(17, 24, 39, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
}

.letter-send {
  margin-top: 20px;
  min-height: 46px;
  padding: 10px 26px;
}

.contact-alternatives {
  display: grid;
  gap: 18px;
  max-width: 680px;
  margin-top: 14px;
}

.contact-alt {
  display: grid;
  gap: 4px;
}

.contact-alt .contact-alt-label {
  color: var(--quiet);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-alt a,
.contact-alt span {
  color: var(--relationship-blue);
  font-family: var(--sans);
  font-size: 15px;
  text-decoration: none;
}

.cadence-note {
  max-width: 620px;
  margin-top: 22px;
  padding-left: 20px;
  border-left: 3px solid var(--relational-olive);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.74;
}

/* Sent confirmation */
.sent-hero {
  padding: 96px 0;
  text-align: left;
}

.sent-line {
  position: relative;
  height: 90px;
  max-width: 560px;
  margin: 8px 0 28px;
}

.sent-line canvas {
  position: absolute;
  inset: 0;
}

/* 404 */
.broken-hero {
  padding: 96px 0;
}

.broken-line {
  position: relative;
  height: 90px;
  max-width: 560px;
  margin: 8px 0 28px;
}

.broken-line canvas {
  position: absolute;
  inset: 0;
}

/* Legal pages — plain English, no animation */
.legal-prose {
  max-width: 760px;
}

.legal-prose h2 {
  margin: 34px 0 12px;
  font-size: 27px;
}

.legal-prose p,
.legal-prose li {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
}

.legal-prose ul {
  padding-left: 20px;
}

.legal-prose li::marker {
  color: var(--relationship-blue);
}

/* Debug overlay (?debug=motion) */
.motion-debug {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 9999;
  max-width: 280px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.9);
  color: #f4f4f4;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  line-height: 1.5;
  pointer-events: none;
}

.motion-debug strong {
  display: block;
  margin-bottom: 6px;
  color: var(--learning-gold);
}

/* Pride mode — quiet, colour not noise (default OFF behind build flag) */
body.pride-on .stillness-dot {
  background: linear-gradient(90deg, #e4572e, #f3a712, #6a477d);
}

@media (max-width: 1040px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

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

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

  .letter-meta {
    grid-template-columns: 1fr;
  }

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
  }

  .stillness-toggle {
    margin-left: 0;
  }
}

/* Stillness — when engaged, suppress all living motion site-wide.
   Engines also gate on this attribute; CSS hides any residual transitions.
   (.braid-ribbon-canvas removed 2026-07-11 with the retired V2 card braid.) */
[data-stillness="still"] .wayfinder-canvas {
  opacity: 0.92;
}

/* Pass 2 — engine-fix support */

/* Spatial map reduced-motion static fallback (F3): hide the canvas, show the list */
.spatial-panel.map-static { display: none; }
.spatial-panel.map-static + .mobile-methods { display: grid; gap: 12px; }

/* Spatial map keyboard list (A1) — visually hidden, focusable */
.map-keyboard-list { margin: 0; padding: 0; list-style: none; }
.map-keyboard-list a { color: var(--relationship-blue); }

/* Case pull-quote carries a short living edge instead of the static rule */
.pull-quote[data-living-edge] {
  position: relative;
  border-left: 0;
  padding-left: 30px;
  overflow: hidden;
}

/* Podcast quiet line under the header */
.podcast-line {
  position: relative;
  height: 70px;
  max-width: 540px;
  margin: 22px 0 6px;
}

.podcast-line canvas { position: absolute; inset: 0; }

/* When stillness is engaged, the letter frame holds its resting shape */
[data-stillness="still"] .letter-prompt-frame .letter-frame-svg path {
  opacity: 0.42;
}

/* ---------------------------------------------------------------------------
   Review pass 67.1 — self-review fixes (Fable)
   --------------------------------------------------------------------------- */

/* (Removed 2026-07-11: the book subscribe block's living edge went with the
   retired V2 card braid — the block now rides inside the book gather band.) */

/* Let the living frame be the frame: soften the textarea's static border so the
   breathing thread holds the words rather than competing with a hard grey rule. */
.letter-prompt textarea {
  border-color: rgba(20, 74, 124, 0.12);
}

.letter-prompt-frame .letter-frame-svg path {
  opacity: 0.56;
}

.letter-prompt-frame.is-frame-active .letter-frame-svg path {
  opacity: 0.86;
}

/* ---------------------------------------------------------------------------
   Full-width braid bands (site-braid.js) — the braided-river motif at page
   scale. One band per page. Colour is carried by the strand config, not here.
   --------------------------------------------------------------------------- */

/* THE SIZING TRAP (README §7.6): an unstyled <canvas> reports its 300×150
   intrinsic size, so measure() builds a half-viewport buffer and the braid
   clips dead at ~40% width with flat cut edges. This rule is load-bearing —
   do not remove it. It also layers the canvas beneath the band's content. */
.braid-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* The band is the positioning + clip context; its content sits above the
   thread. overflow:hidden realises the "ends run off the page" principle. */
.braid-band {
  position: relative;
  overflow: hidden;
}

.braid-band > .container {
  position: relative;
  z-index: 2;
}

/* 01 — full-bleed divider: a standalone seam band with no content of its own. */
.braid-band--divider {
  height: clamp(200px, 24vw, 340px);
  background: var(--soft);
  border-top: 1px solid var(--rule);
}

/* 04 — gather-to-CTA (contact letter band): the plait's valley is anchored to
   the gather point below the Send button (site-braid.js, valleyRef 'gather'),
   so the strands need a clear strip beneath the form to run through and
   converge in. This padding IS that strip — shrinking it pushes the plait
   into the field labels and the Send button's focus-ring halo (WCAG 1.4.3 /
   1.4.11; Vera review 2026-07-07). Narrow viewports need a taller strip: the
   convergence basin occupies more of the band's width, so the strands sit
   proportionally deeper below the button. */
.letter-hero.braid-band--gather {
  padding-bottom: 144px;
}

@media (max-width: 760px) {
  .letter-hero.braid-band--gather {
    padding-bottom: 160px;
  }
}

/* 04b — Book gather band (2026-07-11, replaces the retired V2 card braid):
   the subscribe block rides inside the band; the bottom padding IS the
   plait's clear channel, same geometry contract as the contact band. */
.section-band.braid-band--book-gather {
  padding-bottom: 144px;
}

.braid-band--book-gather .subscribe-block {
  margin-top: 0;
}

@media (max-width: 760px) {
  .section-band.braid-band--book-gather {
    padding-bottom: 160px;
  }
}

/* Stillness — NOTE: this rule is cosmetic only (a slight dim, matching
   .braid-ribbon-canvas / .wayfinder-canvas). The thing that actually STOPS
   the animation is the JS gate: site-braid.js wantsRaf() reads
   MotionEnv.state.still and drops the shared rAF loop, drawing one correct
   static frame. Removing this rule would not un-freeze anything; removing
   the JS gate would. */
[data-stillness="still"] .braid-canvas {
  opacity: 0.92;
}


/* Nav gained a 7th item (Working with me): between 761-940px the un-wrappable
   flex row exceeds the container, so allow a clean row-wrap in that band. */
@media (max-width: 940px) {
  .site-nav {
    flex-wrap: wrap;
    row-gap: 10px;
  }
}
