/* TCA website styles · v0.11.0
   One stylesheet for every page. Tokens first, then base, layout, components, page parts. */

:root {
  --paper: #F7F5F0;
  --card: #FBFAF7;
  --ink: #0F1B2D;
  --ink-2: #2A3A55;
  --muted: #475569;
  --rule: #D3D9E3;
  --accent: #1D3A6B;
  --accent-dark: #142B52;
  --on-ink-muted: #A9B4C6;
  --on-color: #D2DCEC;
  --sand: #E3EAF5;
  --apricot: #FCE3CF;
  --ochre: #F08A3C;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Type scale: 6 sizes */
  --fs-display: clamp(2.5rem, 1.6rem + 2.8vw, 4rem);
  --fs-h2: clamp(1.875rem, 1.45rem + 1.25vw, 2.5rem);
  --fs-h3: 1.5rem;
  --fs-lede: 1.25rem;
  --fs-body: 1rem;
  --fs-label: 0.8125rem;

  --container: 1280px;
  --gutter: clamp(20px, 5vw, 80px);
  --section: clamp(64px, 7vw, 104px);
  --header-h: 80px;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, iframe { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
strong { font-weight: 600; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button { font: inherit; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 16px; text-decoration: none;
}
.skip-link:focus { top: 16px; color: var(--paper); }

/* Typography */
.display {
  font-family: var(--serif); font-weight: 500; font-size: var(--fs-display);
  line-height: 1.05; letter-spacing: -0.01em; text-wrap: balance;
}
.h2 { font-family: var(--serif); font-weight: 500; font-size: var(--fs-h2); line-height: 1.15; text-wrap: balance; }
.h3 { font-family: var(--serif); font-weight: 500; font-size: var(--fs-h3); line-height: 1.25; text-wrap: balance; }
.h4 { font-size: var(--fs-body); font-weight: 600; line-height: 1.5; }
.lede { font-size: var(--fs-lede); line-height: 1.5; text-wrap: pretty; max-width: 36em; }
.label { font-family: var(--mono); font-size: var(--fs-label); line-height: 1.6; color: var(--muted); }
.muted { color: var(--muted); }
.serif-quote { font-family: var(--serif); font-size: var(--fs-h3); line-height: 1.3; }

/* Layout */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-bottom: var(--section); }
.section--top { padding-top: var(--section); }
.band { background: var(--sand); }
.band > .container { padding-block: var(--section); }
.section-head {
  display: flex; flex-wrap: wrap; gap: 16px 64px;
  border-top: 1px solid var(--ink); padding-top: 24px; margin-bottom: 40px;
}
.section-head > .h2 { flex: 1 1 380px; min-width: 0; }
.section-head > .lede { flex: 1 1 440px; min-width: 0; }
.split { display: flex; flex-wrap: wrap; gap: 48px 64px; }
.split > * { flex: 1 1 400px; min-width: 0; }
.row { display: flex; flex-wrap: wrap; gap: 24px 64px; border-top: 1px solid var(--ink); padding-top: 24px; }
.row-head { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.row-body { flex: 2 1 520px; min-width: 0; }
.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 300px)), 1fr));
  gap: var(--gap, 32px);
}
.stack-16 > * + * { margin-top: 16px; }

/* Buttons and links */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border: 0; border-radius: 2px;
  font-family: var(--sans); font-size: var(--fs-body); font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background-color .15s ease;
}
.button-primary { background: var(--accent); color: var(--paper); }
.button-primary:hover { background: var(--accent-dark); color: var(--paper); }
.button-light { background: var(--paper); color: var(--ink); }
.button-light:hover { background: #FFFFFF; color: var(--ink); }
.button-outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); min-height: 44px; padding: 0 16px; font-weight: 500; }
.button-outline:hover { background: var(--ink); color: var(--paper); }
.text-link { min-height: 44px; display: inline-flex; align-items: center; font-weight: 500; color: var(--accent); }
.text-link--ink { color: var(--ink); }
.text-link--ink:hover { color: var(--accent); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper); border-bottom: 1px solid var(--rule);
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--ink); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand {
  font-family: var(--serif); font-weight: 600; font-size: var(--fs-h3); line-height: 1;
  color: var(--ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center;
}
.brand:hover { color: var(--ink); }
.desktop-nav { display: flex; align-items: center; gap: 32px; }
.desktop-nav a:not(.button) {
  color: var(--ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center;
}
.desktop-nav a:not(.button):hover,
.desktop-nav a[aria-current="page"] {
  text-decoration: underline; text-decoration-thickness: 2px;
  text-decoration-color: var(--accent); text-underline-offset: 6px;
}
.header-cta { min-height: 44px; padding: 0 20px; font-weight: 500; }
.menu-button {
  display: none; width: 44px; height: 44px; padding: 0; border: 0; background: transparent;
  cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.menu-bar { width: 22px; height: 2px; background: var(--ink); transition: transform .2s ease; }
.menu-button[aria-expanded="true"] .menu-bar:first-of-type { transform: translateY(4px) rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-bar:last-of-type { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu {
  display: flex; flex-direction: column;
  padding: 8px var(--gutter) 24px; border-top: 1px solid var(--rule); background: var(--paper);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.button) {
  min-height: 52px; display: flex; align-items: center; border-bottom: 1px solid var(--rule);
  font-size: var(--fs-lede); color: var(--ink); text-decoration: none;
}
.mobile-menu a[aria-current="page"] { color: var(--accent); }
.mobile-menu .button { margin-top: 20px; }
@media (max-width: 899px) {
  .desktop-nav { display: none; }
  .menu-button { display: inline-flex; }
}
@media (min-width: 900px) { .mobile-menu { display: none !important; } }

/* Hero */
.hero { padding-top: clamp(40px, 6vw, 88px); padding-bottom: var(--section); }
.page-hero { padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(48px, 6vw, 80px); }
.hero-label { padding-top: 12px; border-top: 1px solid var(--ink); }
.hero-grid { display: flex; flex-wrap: wrap; gap: 48px 80px; margin-top: 32px; align-items: flex-start; }
.hero-copy { flex: 1 1 520px; min-width: 0; }
.hero-aside { flex: 1 1 360px; max-width: 500px; min-width: 0; }
.hero .display { max-width: 11.5em; }
.page-hero .display { margin-top: 32px; max-width: 14em; }
.hero .lede, .page-hero .lede { margin-top: 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; margin-top: 40px; }
.hero-note { margin-top: 16px; color: var(--muted); }

/* Ledger table (phases and price) */
.ledger { width: 100%; border-collapse: collapse; }
.ledger caption {
  text-align: left; font-family: var(--mono); font-size: var(--fs-label); color: var(--muted);
  padding-bottom: 12px; border-bottom: 1px solid var(--ink);
}
.ledger th, .ledger td { padding: 16px 0; text-align: left; vertical-align: baseline; font-weight: 400; }
.ledger td + td, .ledger th + td { padding-left: 8px; }
.ledger thead th { font-family: var(--mono); font-size: var(--fs-label); color: var(--muted); padding: 12px 0; }
.ledger thead th + th { padding-left: 8px; }
.ledger tbody tr { border-top: 1px solid var(--rule); }
.ledger tbody tr.total { border-top: 2px solid var(--ink); }
.ledger .phase-cell { font-family: var(--serif); font-weight: 500; font-size: var(--fs-h3); }
.ledger .num { font-family: var(--mono); }
.ledger .amt { text-align: right; }
.ledger .total th { font-weight: 600; }
.ledger .total .amt { font-weight: 500; }

/* Deliverables card (home hero) */
.deliver { background: var(--accent); color: var(--paper); padding: clamp(24px, 3vw, 36px); }
.deliver-h { font-family: var(--serif); font-weight: 500; font-size: var(--fs-h3); line-height: 1.25; }
.deliver-list { counter-reset: d; margin-top: 16px; }
.deliver-list > li {
  counter-increment: d; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px;
  padding: 12px 0; border-top: 1px solid rgba(244, 241, 234, .3); line-height: 1.5;
}
.deliver-list > li::before { content: counter(d, decimal-leading-zero); font-family: var(--mono); font-size: var(--fs-label); line-height: 24px; color: var(--on-color); }

/* Results strip */
.results { background: var(--ink); color: var(--paper); }
.results .container { padding-block: clamp(48px, 6vw, 80px); }
.results-label { font-weight: 400; color: var(--on-ink-muted); padding-bottom: 16px; border-bottom: 1px solid #3A372F; }
.results-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 32px; margin-top: 32px;
}
.results-grid > div { display: flex; flex-direction: column; gap: 8px; }
.results-grid dd { flex: 1; display: flex; flex-direction: column; }
.result-src { margin-top: auto; padding-top: 12px; }
.result-n { font-family: var(--serif); font-weight: 500; font-size: var(--fs-display); line-height: 1; color: var(--ochre); white-space: nowrap; }
.result-n span { font-size: var(--fs-h3); color: var(--on-ink-muted); }
.results-grid dd { line-height: 1.5; }
.result-src { display: block; font-family: var(--mono); font-size: var(--fs-label); color: var(--on-ink-muted); }

/* Cards and ruled lists */
.card { padding: clamp(20px, 3vw, 28px); border: 1px solid var(--rule); }
.card--strong { border: 0; background: var(--sand); }
.card--strong .ruled > li { border-color: #D9C7A8; }
.card > p { margin: 12px 0 20px; }
.ruled > li { padding: 12px 0; border-top: 1px solid var(--rule); }
.ruled > li:last-child { border-bottom: 1px solid var(--rule); }
.keep-list > li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.tag { font-family: var(--mono); font-size: var(--fs-label); color: var(--muted); white-space: nowrap; }
.tag--accent { color: var(--accent); font-weight: 500; }

/* Phase diagram */
.phases {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 4px;
}
.phase {
  padding: clamp(24px, 3vw, 32px); display: flex; flex-direction: column; gap: 12px;
  background: var(--ink); color: var(--paper);
}
.phase:nth-child(2) { background: var(--ink-2); }
.phase:nth-child(3) { background: var(--accent); }
.phase .label { color: var(--on-color); }
.phase-name { font-family: var(--serif); font-weight: 500; font-size: var(--fs-h2); line-height: 1.1; }
.phase .done { margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(244, 241, 234, .3); }
.who {
  align-self: flex-start; font-family: var(--mono); font-size: var(--fs-label);
  color: var(--ink); background: var(--paper); padding: 4px 10px;
}
.phase:nth-child(1) .who { background: var(--ochre); }

/* Stage strip */
.stages { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--ink); margin-top: 20px; }
.stages > li { padding: 16px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 24px minmax(80px, 140px) minmax(0, 1fr); gap: 4px 16px; align-items: baseline; }
@media (min-width: 1024px) {
  .stages { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .stages > li { padding: 16px 20px 16px 0; display: flex; flex-direction: column; gap: 6px; }
}
.stages strong { font-weight: 600; }

/* Proof module */
.proof { display: flex; flex-wrap: wrap; gap: 32px 64px; padding: 32px 0 40px; border-top: 1px solid var(--ink); }
.proof--dark, .proof--accent, .proof--tint {
  border-top: 0; padding: clamp(24px, 4vw, 48px); margin-bottom: 4px;
}
.proof--dark { background: var(--ink); color: var(--paper); }
.proof--dark .label, .proof--dark .facts dt { color: var(--on-ink-muted); }
.proof--dark .fig-n { color: var(--ochre); }
.proof--dark .facts > div { border-color: #3A372F; }
.proof--accent { background: var(--accent); color: var(--paper); }
.proof--accent .label, .proof--accent .facts dt { color: var(--on-color); }
.proof--accent .facts > div { border-color: rgba(244, 241, 234, .3); }
.proof--dark .text-link, .proof--accent .text-link { color: var(--paper); }
.proof--dark .text-link:hover, .proof--accent .text-link:hover { color: var(--ochre); }
.proof--dark :focus-visible, .proof--accent :focus-visible { outline-color: var(--paper); }
.proof--tint { background: var(--sand); margin-bottom: 0; }
.proof--tint .facts > div { border-color: #D9C7A8; }
.proof-main { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.proof-figs { display: flex; flex-wrap: wrap; gap: 16px 48px; margin-top: 8px; }
.fig { display: flex; flex-direction: column; gap: 4px; }
.fig-n { font-family: var(--serif); font-weight: 500; font-size: var(--fs-display); line-height: 1; white-space: nowrap; }
.proof-side { flex: 1 1 420px; min-width: 0; }
.facts > div { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.facts dt { flex: 0 0 132px; font-family: var(--mono); font-size: var(--fs-label); line-height: 24px; color: var(--muted); }
.facts dd { flex: 1 1 220px; min-width: 0; line-height: 1.5; }
.proof-side .text-link { margin-top: 12px; }
.callout-row {
  display: flex; flex-wrap: wrap; gap: 12px 64px; align-items: baseline;
  padding: 28px 0; border-block: 1px solid var(--ink);
}
.callout-row .label { flex: 0 0 200px; }
.callout-row .serif-quote { flex: 1 1 440px; min-width: 0; }

/* Client voices */
.voices { --min: 300px; --gap: 40px 32px; }
.video-card { display: flex; flex-direction: column; gap: 16px; }
.video-media { position: relative; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.video-cover {
  position: absolute; inset: 0; width: 100%; height: 100%; padding: 0;
  border: 0; background: var(--ink); cursor: pointer;
}
.video-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.video-cover:hover img { transform: scale(1.03); }
.video-cover:focus-visible { outline-offset: 3px; }
.play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 6px rgba(244, 241, 234, .9);
  transition: background-color .15s ease;
}
.play svg { margin-left: 3px; }
.video-cover:hover .play { background: var(--accent-dark); }
@media (prefers-reduced-motion: reduce) { .video-cover:hover img { transform: none; } }
.voice-name { font-size: var(--fs-body); }
.video-frame { position: absolute; inset: 0; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.voice-result { border-top: 2px solid var(--accent); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.voice-result blockquote { font-family: var(--serif); font-size: var(--fs-h3); line-height: 1.25; }

/* Client logos: static wrapped list without JS, scrolling rows with JS */
.logos { display: flex; flex-direction: column; gap: 12px; }
.logo-row { overflow: hidden; border-bottom: 1px solid var(--rule); }
.logo-row:first-child { border-top: 1px solid var(--rule); }
.logo-track { display: flex; flex-wrap: wrap; }
.logo-item {
  height: 88px; display: flex; align-items: center; gap: 16px;
  padding: 0 36px; border-right: 1px solid var(--rule); white-space: nowrap;
  font-size: var(--fs-lede); font-weight: 500;
}
.logo-item img { width: 36px; height: 36px; object-fit: contain; }
.logo-initials {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: var(--fs-body);
}
.logos-toggle { display: none; align-self: flex-start; }
.logos.is-animated .logo-track {
  flex-wrap: nowrap; width: max-content;
  animation: tca-marquee var(--marquee-duration, 70s) linear infinite;
}
.logos.is-animated .logo-row:nth-child(2) .logo-track { animation-direction: reverse; --marquee-duration: 66s; }
.logos.is-animated .logo-row:hover .logo-track,
.logos.is-paused .logo-track { animation-play-state: paused; }
.logos.is-animated .logos-toggle { display: inline-flex; }
@keyframes tca-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .logos.is-animated .logo-track { animation: none; flex-wrap: wrap; width: auto; }
  .logos.is-animated .logos-toggle { display: none; }
  .logo-item[aria-hidden="true"] { display: none; }
}

/* FAQ */
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; min-height: 56px; padding-block: 8px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent); flex: 0 0 auto; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--accent); }
.faq details > p { padding-bottom: 16px; }

/* Founder */
.credentials {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 0 32px; margin-top: 32px;
}
.credentials > div { padding: 12px 0; border-top: 1px solid var(--rule); }
.credentials dt { font-weight: 600; }
.credentials dd { margin-top: 2px; color: var(--muted); }

/* How it works */
.phase-nav {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  margin-top: 48px; border-top: 2px solid var(--ink);
}
.phase-nav a {
  min-height: 72px; padding: 16px 16px 14px 0; display: flex; flex-direction: column; gap: 2px;
  border-bottom: 2px solid var(--rule); color: var(--ink); text-decoration: none;
}
.phase-nav a:hover { color: var(--accent); }
.phase-nav a.is-active { border-bottom-color: var(--accent); }
.phase-nav .phase-nav-name { font-family: var(--serif); font-size: var(--fs-h3); line-height: 1.25; }
.facts-inline { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 20px; }
.row-body > .ruled { margin-top: 24px; }
.panel { margin-top: 48px; padding: clamp(20px, 3vw, 32px); background: var(--card); border: 1px solid var(--rule); }
.panel > p { margin: 8px 0 24px; max-width: 40em; }
.defs { --min: 240px; --gap: 24px 32px; }
.defs > div { border-top: 1px solid var(--ink); padding-top: 12px; }
.defs dt { font-weight: 600; }
.defs dd { margin-top: 4px; }
.criteria > li { display: flex; flex-wrap: wrap; gap: 4px 32px; padding: 16px 0; border-top: 1px solid var(--rule); }
.criteria > li:last-child { border-bottom: 1px solid var(--rule); }
.criteria .n { flex: 0 0 32px; font-family: var(--mono); font-size: var(--fs-label); line-height: 24px; color: var(--muted); }
.criteria strong { flex: 0 1 260px; }
.criteria span:last-child { flex: 1 1 360px; min-width: 0; }

/* What we build */
.stage-row { display: flex; flex-wrap: wrap; gap: 20px 48px; padding: 32px 0; border-top: 1px solid var(--ink); }
.stage-row:first-of-type { border-top-width: 2px; }
.stage-row:last-of-type { border-bottom: 2px solid var(--ink); }
.stage-name { flex: 1 1 220px; min-width: 0; }
.stage-name .phase-name { margin-top: 4px; }
.stage-steps { flex: 2 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.stage-facts { flex: 2 1 360px; min-width: 0; }
.stage-facts > div { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.stage-facts > div:first-child { padding-top: 0; }
.stage-facts dt { font-family: var(--mono); font-size: var(--fs-label); color: var(--muted); }
.stage-facts dt.stop { color: var(--accent); }
.stage-facts dd { margin-top: 4px; line-height: 1.5; }
.stage-facts dd + dd { margin-top: 8px; }
.loop-note { margin-top: 20px; max-width: 48em; }
.tools-line {
  display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 48px;
  padding: 20px 0; border-block: 1px solid var(--rule);
}
.tools-line .label { flex: 0 0 200px; line-height: 26px; }
.tools-line p { flex: 1 1 440px; min-width: 0; }
.case-links { --min: 260px; --gap: 0 32px; }
.case-link {
  display: flex; flex-direction: column; gap: 8px; padding: 20px 0 24px;
  border-top: 1px solid var(--ink); color: var(--ink); text-decoration: none;
}
.case-link:hover { color: var(--accent); }
.case-link .h3 { text-wrap: pretty; }
.case-link .more { margin-top: auto; font-weight: 500; color: var(--accent); }

/* Case study */
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding-bottom: 12px; border-bottom: 1px solid var(--ink);
}
.breadcrumb a { min-height: 44px; display: inline-flex; align-items: center; }
.breadcrumb span { color: var(--muted); }
.case-hero { padding-top: clamp(32px, 5vw, 64px); }
.case-hero .label { margin-top: 32px; }
.case-hero .display { margin-top: 12px; max-width: 15em; }
.case-hero .lede { margin: 24px 0 48px; }
.case-section { padding-top: clamp(56px, 6vw, 88px); }
.case-section:last-of-type { padding-bottom: var(--section); }
.row-body > .h4 { margin: 32px 0 8px; }
.steps > li { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 14px 0; border-top: 1px solid var(--rule); }
.steps > li:last-child { border-bottom: 1px solid var(--rule); }
.steps strong { flex: 0 0 140px; }
.steps .step-text { flex: 1 1 260px; min-width: 0; }
.steps .tag { flex: 0 0 80px; line-height: 24px; }
.built-with { margin-top: 16px; color: var(--muted); }
.pullquote {
  margin-top: 32px; padding-left: 24px; border-left: 2px solid var(--accent);
  font-family: var(--serif); font-size: var(--fs-h3); line-height: 1.35;
}
.next-case {
  margin-top: 64px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 32px;
  padding: 24px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule);
  color: var(--ink); text-decoration: none;
}
.next-case:hover { color: var(--accent); }
.next-case .serif-quote { flex: 1 1 400px; min-width: 0; }

/* CTA band */
.cta-band { background: var(--accent); color: var(--paper); }
.cta-band .container {
  padding-block: clamp(64px, 8vw, 112px);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 64px;
}
.cta-band .cta-copy { flex: 1 1 520px; min-width: 0; }
.cta-band .lede { margin-top: 20px; }
.cta-band :focus-visible { outline-color: var(--paper); }

/* Footer */
.site-footer { background: var(--ink); color: var(--paper); }
.site-footer .brand { color: var(--paper); }
.site-footer :focus-visible { outline-color: var(--paper); }
.footer-main {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 64px;
  padding-block: 64px 48px; border-bottom: 1px solid var(--ink-2);
}
.footer-tagline { margin-top: 8px; color: var(--on-ink-muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 32px; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; color: var(--paper); text-decoration: none; }
.footer-links a:hover { color: var(--paper); text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px;
  padding-block: 24px 32px; font-family: var(--mono); font-size: var(--fs-label); color: var(--on-ink-muted);
}

/* Simple pages (redirect, 404) */
.simple { min-height: 60vh; }
.footer-versions { display: flex; flex-wrap: wrap; gap: 4px 24px; }

/* Color bands and blocks (Build 3) */
.band--ink { background: var(--ink); color: var(--paper); }
.band--ink .section-head { border-top-color: var(--on-ink-muted); }
.band--ink .lede { color: var(--paper); }
.band--ink .label, .band--ink .muted { color: var(--on-ink-muted); }
.band--ink :focus-visible { outline-color: var(--paper); }
.band--ink a { color: var(--ochre); }
.band--ink .defs > div { border-top-color: var(--ochre); }
.band--ink .tools-line { border-color: #3A372F; }
.band--ink .criteria > li { border-color: #3A372F; }
.band--ink .criteria .n { color: var(--ochre); font-size: var(--fs-body); }

/* How it works: each phase is a colored block */
.phase-sec .row { border-top: 0; padding: clamp(24px, 4vw, 48px); }
.phase-sec--1 .row { background: var(--ink); color: var(--paper); }
.phase-sec--2 .row { background: var(--accent); color: var(--paper); }
.phase-sec--3 .row { background: var(--ochre); color: var(--ink); }
.phase-sec--1 .label, .phase-sec--2 .label { color: var(--on-color); }
.phase-sec--3 .label { color: var(--ink); }
.phase-sec--1 .ruled > li, .phase-sec--2 .ruled > li { border-color: rgba(244, 241, 234, .28); }
.phase-sec--3 .ruled > li { border-color: rgba(27, 26, 23, .25); }
.phase-sec--1 :focus-visible, .phase-sec--2 :focus-visible { outline-color: var(--paper); }
.phase-sec .panel { margin-top: 4px; border: 0; background: var(--sand); }
.phase-nav a:nth-child(1) { border-bottom-color: var(--ink); }
.phase-nav a:nth-child(2) { border-bottom-color: var(--accent); }
.phase-nav a:nth-child(3) { border-bottom-color: var(--ochre); }
.phase-nav a { border-bottom-width: 6px; }
.phase-nav a.is-active { background: var(--sand); padding-left: 12px; }
.ledger-card { background: var(--accent); color: var(--paper); padding: clamp(20px, 3vw, 32px); }
.ledger-card .ledger tbody tr { border-color: rgba(244, 241, 234, .3); }
.ledger-card .ledger tbody tr.total { border-top-color: var(--paper); }

/* What we build: each stage is a colored block */
.stage-row { padding: clamp(24px, 4vw, 40px); border: 0 !important; margin-bottom: 4px; }
.stage-row:nth-of-type(1) { background: var(--ink); color: var(--paper); }
.stage-row:nth-of-type(2) { background: var(--accent); color: var(--paper); }
.stage-row:nth-of-type(3) { background: var(--ink-2); color: var(--paper); }
.stage-row:nth-of-type(4) { background: var(--sand); color: var(--ink); }
.stage-row:nth-of-type(5) { background: var(--ochre); color: var(--ink); }
.stage-row:nth-of-type(-n+3) .label, .stage-row:nth-of-type(-n+3) .stage-facts dt { color: var(--on-color); }
.stage-row:nth-of-type(-n+3) .stage-facts dt.stop { color: var(--ochre); }
.stage-row:nth-of-type(2) .stage-facts dt.stop { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }
.stage-row:nth-of-type(-n+3) .stage-facts > div { border-color: rgba(244, 241, 234, .28); }
.stage-row:nth-of-type(5) .label, .stage-row:nth-of-type(5) .stage-facts dt { color: var(--ink); }
.stage-row:nth-of-type(n+4) .stage-facts > div { border-color: rgba(27, 26, 23, .2); }
.case-links { --gap: 4px; }
.case-link { padding: clamp(20px, 3vw, 28px); border-top: 0; min-height: 220px; }
.case-link:nth-child(1) { background: var(--ink); color: var(--paper); }
.case-link:nth-child(2) { background: var(--accent); color: var(--paper); }
.case-link:nth-child(3) { background: var(--ochre); color: var(--ink); }
.case-link:nth-child(4) { background: var(--ink-2); color: var(--paper); }
.case-link:nth-child(1) .label, .case-link:nth-child(2) .label, .case-link:nth-child(4) .label { color: var(--on-color); }
.case-link:nth-child(3) .label { color: var(--ink); }
.case-link .more { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.case-link:hover { color: inherit; filter: brightness(1.08); }
.case-link:focus-visible { outline-color: var(--ink); }

@media print {
  .site-header, .cta-band, .logos, .skip-link { display: none !important; }
  body { background: #fff; }
}


/* ===== Build 4 palette: Harbor (pale blue bands, tangerine accents) =====
   mist #E3EAF5 (--sand), apricot #FCE3CF, navy #1D3A6B (--accent), tangerine #F08A3C (--ochre, fills only), ink #0F1B2D.
   Tangerine is never used as text on light backgrounds. */
.card--strong .ruled > li { border-color: #C5D0E2; }

.phase { background: var(--sand); color: var(--ink); }
.phase .label { color: var(--muted); }
.phase .done { border-top-color: rgba(15, 27, 45, .18); }
.phase:nth-child(1) .who { background: var(--accent); color: #fff; }
.phase:nth-child(2) { background: var(--accent); color: #fff; }
.phase:nth-child(2) .label { color: var(--on-color); }
.phase:nth-child(2) .done { border-top-color: rgba(255, 255, 255, .3); }
.phase:nth-child(2) .who { background: var(--ochre); color: var(--ink); }
.phase:nth-child(3) { background: var(--ochre); color: var(--ink); }
.phase:nth-child(3) .label { color: var(--ink); }
.phase:nth-child(3) .who { background: var(--ink); color: #fff; }

.proof--dark { background: var(--sand); color: var(--ink); }
.proof--dark .label, .proof--dark .facts dt { color: var(--muted); }
.proof--dark .fig-n { color: var(--accent); }
.proof--dark .facts > div { border-color: #C5D0E2; }
.proof--accent { background: var(--apricot); color: var(--ink); }
.proof--accent .label, .proof--accent .facts dt { color: #5A4636; }
.proof--accent .fig-n { color: var(--accent); }
.proof--accent .facts > div { border-color: #EFC9A9; }
.proof--dark .text-link, .proof--accent .text-link { color: var(--accent); }
.proof--dark .text-link:hover, .proof--accent .text-link:hover { color: var(--ink); }
.proof--dark :focus-visible, .proof--accent :focus-visible { outline-color: var(--accent); }
.proof--tint { background: var(--sand); }
.proof--tint .facts > div { border-color: #C5D0E2; }
.proof--tint .fig-n { color: var(--accent); }

.results { background: var(--sand); color: var(--ink); }
.results-label { color: var(--muted); border-bottom-color: #C5D0E2; }
.result-n { color: var(--accent); }
.result-n span { color: var(--muted); }
.result-src { color: var(--muted); }

.deliver { background: var(--apricot); color: var(--ink); }
.deliver-list > li { border-top-color: rgba(15, 27, 45, .15); }
.deliver-list > li::before { color: var(--accent); font-weight: 500; }

.voice-result { border-top-color: var(--ochre); }
.play { box-shadow: 0 0 0 6px rgba(255, 255, 255, .92); }

.band--ink { background: var(--accent); color: #fff; }
.band--ink .section-head { border-top-color: rgba(255, 255, 255, .5); }
.band--ink .lede { color: #fff; }
.band--ink .label, .band--ink .muted { color: var(--on-color); }
.band--ink a { color: var(--apricot); }
.band--ink .defs > div { border-top-color: var(--ochre); }
.band--ink .tools-line, .band--ink .criteria > li { border-color: rgba(255, 255, 255, .22); }
.band--ink .criteria .n { color: var(--apricot); }

.phase-sec--1 .row { background: var(--sand); color: var(--ink); }
.phase-sec--1 .label { color: var(--muted); }
.phase-sec--1 .ruled > li { border-color: #C5D0E2; }
.phase-sec--1 :focus-visible { outline-color: var(--accent); }
.phase-sec--2 .row { background: var(--accent); color: #fff; }
.phase-sec--2 .label { color: var(--on-color); }
.phase-sec--2 .ruled > li { border-color: rgba(255, 255, 255, .25); }
.phase-sec--3 .row { background: var(--ochre); color: var(--ink); }
.phase-sec .panel { background: var(--apricot); }
.phase-nav a:nth-child(1) { border-bottom-color: #9FB3D6; }
.phase-nav a.is-active { background: var(--sand); }
.ledger-card { color: #fff; }

.stage-row:nth-of-type(1) { background: var(--sand); color: var(--ink); }
.stage-row:nth-of-type(2) { background: var(--accent); color: #fff; }
.stage-row:nth-of-type(3) { background: var(--apricot); color: var(--ink); }
.stage-row:nth-of-type(4) { background: var(--sand); color: var(--ink); }
.stage-row:nth-of-type(5) { background: var(--ochre); color: var(--ink); }
.stage-row:nth-of-type(-n+3) .label, .stage-row:nth-of-type(-n+3) .stage-facts dt { color: var(--muted); }
.stage-row:nth-of-type(-n+3) .stage-facts dt.stop { color: var(--accent); }
.stage-row:nth-of-type(-n+3) .stage-facts > div { border-color: rgba(15, 27, 45, .15); }
.stage-row:nth-of-type(3) .label, .stage-row:nth-of-type(3) .stage-facts dt { color: #5A4636; }
.stage-row:nth-of-type(2) .label, .stage-row:nth-of-type(2) .stage-facts dt { color: var(--on-color); }
.stage-row:nth-of-type(2) .stage-facts dt.stop { color: var(--apricot); text-decoration: none; }
.stage-row:nth-of-type(2) .stage-facts > div { border-color: rgba(255, 255, 255, .25); }
.stage-row:nth-of-type(4) .stage-facts dt.stop { color: var(--accent); }

.case-link:nth-child(1) { background: var(--sand); color: var(--ink); }
.case-link:nth-child(2) { background: var(--accent); color: #fff; }
.case-link:nth-child(3) { background: var(--ochre); color: var(--ink); }
.case-link:nth-child(4) { background: var(--apricot); color: var(--ink); }
.case-link:nth-child(1) .label, .case-link:nth-child(4) .label { color: var(--muted); }
.case-link:nth-child(2) .label { color: var(--on-color); }
.case-link:hover { filter: brightness(0.97); }
.case-link:focus-visible { outline-color: var(--accent); }

.cta-band .button-light { background: var(--ochre); color: var(--ink); }
.cta-band .button-light:hover { background: #F6A262; color: var(--ink); }


/* ===== Build 6: case study cards and PDF viewer ===== */
.case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 859px) { .case-grid { grid-template-columns: 1fr; } }
.case-card {
  display: flex; flex-direction: column; gap: 20px;
  padding: clamp(24px, 3.5vw, 40px); background: var(--sand); color: var(--ink);
}
.case-card--apricot { background: var(--apricot); }
.case-card--featured { grid-column: 1 / -1; background: var(--accent); color: #fff; }
.case-brand { display: flex; align-items: center; gap: 20px; }
.case-logo {
  flex: 0 0 96px; width: 96px; height: 96px; background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 1px rgba(15, 27, 45, .08);
}
.case-logo img { width: 64px; height: 64px; object-fit: contain; }
.case-logo--withheld {
  font-family: var(--mono); font-size: var(--fs-label); line-height: 1.3; color: var(--muted); text-align: center;
}
.case-who { min-width: 0; }
.case-name { font-family: var(--serif); font-weight: 600; font-size: var(--fs-h2); line-height: 1.1; text-wrap: balance; }
.case-sector { margin-top: 6px; font-family: var(--mono); font-size: var(--fs-label); color: var(--muted); }
.case-card--apricot .case-sector { color: #5A4636; }
.case-title { max-width: 30em; }
.case-figs { display: flex; flex-wrap: wrap; gap: 16px 40px; padding-top: 16px; border-top: 1px solid rgba(15, 27, 45, .18); }
.case-fig { display: flex; flex-direction: column; gap: 4px; min-width: 0; max-width: 16em; }
.case-fig-n { font-family: var(--serif); font-weight: 500; font-size: var(--fs-h2); line-height: 1; color: var(--accent); white-space: nowrap; }
.case-fig-u { font-size: var(--fs-label); font-family: var(--mono); line-height: 1.45; color: var(--muted); }
.case-card--apricot .case-fig-u { color: #5A4636; }
.case-text { max-width: 40em; }
.case-actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 4px; }
.case-cta { background: var(--accent); color: #fff; }
.case-cta:hover { background: var(--accent-dark); color: #fff; }
.case-meta { font-family: var(--mono); font-size: var(--fs-label); color: var(--muted); }
.case-card--apricot .case-meta { color: #5A4636; }

/* Featured (first) card: navy, two-column on wide screens */
.case-card--featured .case-sector,
.case-card--featured .case-fig-u,
.case-card--featured .case-meta { color: var(--on-color); }
.case-card--featured .case-fig-n { color: var(--apricot); font-size: var(--fs-display); }
.case-card--featured .case-figs { border-top-color: rgba(255, 255, 255, .28); }
.case-card--featured .case-cta { background: var(--ochre); color: var(--ink); }
.case-card--featured .case-cta:hover { background: #F6A262; color: var(--ink); }
.case-card--featured :focus-visible { outline-color: #fff; }
@media (min-width: 1000px) {
  .case-card--featured {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; row-gap: 20px;
    grid-template-areas: "brand figs" "title figs" "text actions";
  }
  .case-card--featured .case-brand { grid-area: brand; }
  .case-card--featured .case-title { grid-area: title; font-size: var(--fs-h2); line-height: 1.15; }
  .case-card--featured .case-figs { grid-area: figs; align-self: start; border-top: 0; padding-top: 0; flex-direction: column; gap: 28px; }
  .case-card--featured .case-text { grid-area: text; }
  .case-card--featured .case-actions { grid-area: actions; align-self: end; }
}
@media (max-width: 520px) {
  .case-brand { gap: 14px; }
  .case-logo { flex-basis: 72px; width: 72px; height: 72px; }
  .case-logo img { width: 48px; height: 48px; }
  .case-name { font-size: var(--fs-h3); }
}

/* PDF button on the HTML case pages */
.case-pdf { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: -16px 0 40px; }

/* PDF viewer */
.pdf-dialog {
  width: min(1120px, 96vw); height: min(92vh, 1400px); max-width: none; max-height: none;
  padding: 0; border: 0; background: var(--paper); color: var(--ink);
  box-shadow: 0 24px 64px rgba(15, 27, 45, .35);
}
.pdf-dialog[open] { display: flex; flex-direction: column; }
.pdf-dialog::backdrop { background: rgba(15, 27, 45, .72); }
.pdf-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding: 12px 12px 12px 24px; border-bottom: 1px solid var(--rule); background: #fff;
}
.pdf-title { font-family: var(--serif); font-weight: 500; font-size: var(--fs-h3); line-height: 1.2; min-width: 0; }
.pdf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pdf-actions .button { min-height: 44px; padding: 0 18px; font-weight: 500; }
.pdf-close {
  width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink);
  font-size: 32px; line-height: 1; cursor: pointer; border-radius: 2px;
}
.pdf-close:hover { background: var(--sand); }
.pdf-frame { flex: 1 1 auto; width: 100%; border: 0; background: #525659; }
body.dialog-open { overflow: hidden; }


/* ===== Build 9: refinement pass ===== */
/* Stop renting prospecting: three models */
.models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
@media (max-width: 859px) { .models { grid-template-columns: 1fr; } }
.model { padding: clamp(20px, 3vw, 32px); background: var(--card); border: 1px solid var(--rule); display: flex; flex-direction: column; gap: 8px; }
.model p:last-child { color: var(--muted); }
.model--us { background: var(--accent); color: #fff; border-color: var(--accent); }
.model--us .label { color: var(--on-color); }
.model--us p:last-child { color: #fff; }
.keep-line { margin-top: 20px; }

/* What done means */
.done-strip { margin-top: 4px; padding: clamp(20px, 3vw, 32px); background: var(--apricot); }
.done-list { counter-reset: dn; margin-top: 16px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px 24px; }
@media (max-width: 1023px) { .done-list { grid-template-columns: 1fr; gap: 0; } }
.done-list > li { counter-increment: dn; display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 2px solid var(--ink); line-height: 1.45; }
.done-list > li::before { content: counter(dn); font-family: var(--mono); font-size: var(--fs-label); color: #5A4636; }
@media (max-width: 1023px) {
  .done-list > li { flex-direction: row; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(15, 27, 45, .2); }
  .done-list > li::before { flex: 0 0 16px; line-height: 23px; }
}
.done-band .h2 { font-size: var(--fs-display); line-height: 1.05; }
.done-band .criteria strong { font-size: var(--fs-h3); font-family: var(--serif); font-weight: 500; line-height: 1.25; }

/* Results: output vs client-reported outcome */
.evidence { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 32px 48px; margin-top: 24px; }
@media (max-width: 899px) { .evidence { grid-template-columns: 1fr; } }
.evidence-h { font-family: var(--mono); font-size: var(--fs-label); font-weight: 500; color: var(--ink); padding-bottom: 8px; border-bottom: 2px solid var(--accent); }
.evidence-group--client { padding-left: 0; }
.evidence-group--client .evidence-h { border-bottom-color: var(--ochre); }
.evidence .results-grid { margin-top: 20px; }
.evidence-group--client .results-grid { grid-template-columns: 1fr; }
.voice-src { font-family: var(--mono); font-size: var(--fs-label); color: var(--muted); }

/* Price frame */
.price-frame { font-family: var(--serif); font-size: var(--fs-h3); line-height: 1.35; max-width: 32em; margin: -16px 0 40px; padding-left: 20px; border-left: 3px solid var(--ochre); }

/* What we build: one worked example */
.example { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
@media (max-width: 1023px) { .example { grid-template-columns: 1fr; } }
.example > li { padding: 20px; background: var(--card); border-top: 3px solid var(--accent); display: flex; flex-direction: column; gap: 8px; line-height: 1.5; }
.example > li:nth-child(5) { border-top-color: var(--ochre); }
.example-stage { font-family: var(--serif); font-weight: 500; font-size: var(--fs-h3); }
@media (max-width: 1023px) {
  .example > li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; align-items: baseline; }
}

/* Legal pages */
.legal .display { max-width: 12em; }
.legal-date { margin-top: 16px; font-family: var(--mono); font-size: var(--fs-label); color: var(--muted); }
.legal-body { max-width: 44em; margin-top: 40px; }
.legal-body > p + p { margin-top: 16px; }
.legal-body > .h3 { margin: 40px 0 12px; }
.legal-body .ruled { margin-top: 8px; }

/* Build 9: home length */
.results--inline { background: var(--sand); padding: clamp(20px, 3vw, 32px); margin-bottom: 6px; }
.results--inline .evidence { margin-top: 0; }
.results--inline .results-grid { margin-top: 16px; gap: 24px; }
.results--inline .result-n { font-size: var(--fs-h2); }
.case-grid--compact .case-text { display: none; }
.case-grid--compact .case-card { gap: 16px; }
.logo-item { height: 72px; }
.price-frame { margin: -20px 0 32px; }
.results--inline .results-label { margin-bottom: 16px; }
/* Align source lines across output and client-reported groups */
.evidence-group { display: flex; flex-direction: column; }
.evidence-h { min-height: 2.6em; display: flex; align-items: flex-end; }
.evidence .results-grid { flex: 1; align-items: stretch; }
.evidence .results-grid > div { height: 100%; }

/* Ten layers (Build 10) */
.layers-flow { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 24px; }
.layers-flow > li {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px;
  background: #fff; border: 1px solid var(--rule); font-size: 0.9375rem; line-height: 1.3;
}
.layers-flow > li span { font-family: var(--mono); font-size: var(--fs-label); color: var(--accent); }
.layers-flow > li:not(:last-child)::after { content: "→"; margin-left: 4px; color: var(--muted); }
.layer-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.layer-group { background: #fff; padding: clamp(20px, 2.4vw, 28px); border-top: 6px solid #9FB3D6; display: flex; flex-direction: column; gap: 6px; }
.layer-group--2 { border-top-color: var(--accent); }
.layer-group--3 { border-top-color: var(--ochre); }
.layer-group--4 { border-top-color: var(--ink); }
.layer-mini { margin-top: 10px; }
.layer-mini > li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; padding: 12px 0; border-top: 1px solid var(--rule); line-height: 1.45; }
.layer-mini strong { display: block; font-weight: 600; }
.layer-line { display: block; color: var(--muted); font-size: 0.9375rem; }
.layer-n { font-family: var(--mono); font-size: var(--fs-label); line-height: 23px; color: var(--accent); }
.layers-close { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; max-width: 46em; }
.layers-close .serif-quote { padding-left: 20px; border-left: 3px solid var(--ochre); }
.layers-close .actions { margin-top: 12px; }
@media (max-width: 1100px) { .layer-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .layer-groups { grid-template-columns: 1fr; }
  .layers-flow { gap: 4px; }
  .layers-flow > li { font-size: var(--fs-label); padding: 4px 8px 4px 6px; }
}

.layer-block { margin-top: 4px; background: var(--sand); padding: clamp(20px, 3vw, 32px); border-left: 6px solid #9FB3D6; }
.layer-block--2 { border-left-color: var(--accent); }
.layer-block--3 { border-left-color: var(--ochre); }
.layer-block--4 { border-left-color: var(--ink); }
.layer-block-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 16px; }
.layer-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 4px; }
.layer-card { background: #fff; padding: clamp(18px, 2.2vw, 24px); display: flex; flex-direction: column; gap: 8px; }
.layer-card-n { font-family: var(--mono); font-size: var(--fs-label); color: var(--accent); }
.layer-card-name { margin: 0; font-family: var(--serif); font-weight: 500; font-size: var(--fs-h3); line-height: 1.25; }
.layer-do { line-height: 1.5; }
.layer-card > .label { margin-top: 4px; }
.layer-built > li { padding: 6px 0 6px 16px; position: relative; line-height: 1.4; font-size: 0.9375rem; }
.layer-built > li::before { content: ""; position: absolute; left: 0; top: 13px; width: 6px; height: 6px; background: var(--ochre); }
.layer-keep { margin-top: auto; padding-top: 12px; border-top: 2px solid var(--accent); line-height: 1.5; }
.layer-keep strong { display: block; font-family: var(--mono); font-size: var(--fs-label); font-weight: 500; color: var(--accent); }
.layers-sub { margin: 56px 0 16px; }
.phase-sub { margin: 0; font-family: var(--serif); font-weight: 500; font-size: var(--fs-h3); line-height: 1.25; }
.own-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 4px; }
.own { padding: clamp(18px, 2.2vw, 24px); background: var(--card); border: 1px solid var(--rule); display: flex; flex-direction: column; gap: 6px; }
.own--keep { background: var(--accent); color: #fff; border-color: var(--accent); }
.own dt { font-weight: 600; }
.own dd { line-height: 1.5; }
.own-tag { align-self: flex-start; font-family: var(--mono); font-size: var(--fs-label); padding: 2px 8px; background: var(--apricot); color: var(--ink); }
.own--keep .own-tag { background: var(--ochre); }
.own--keep :focus-visible { outline-color: #fff; }
