/* ==========================================================================
   Badri AI Advisory — homepage  ·  154-badr v1
   Palette: teal #126C55 (single accent) · ink #232323 · warm white bg
   Type: Newsreader (editorial serif) · Inter (body) · IBM Plex Mono (labels)
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subsets) ---------- */
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* v15: back to the original teal after client review of the burgundy trial.
     The custom-property NAMES still say "teal" throughout the sheet; renaming
     them would touch hundreds of rules for zero visual gain, so the names are
     historical and the values are the design. */
  --teal: #126C55;
  --teal-dark: #0E5644;
  --teal-wash: rgba(18, 108, 85, 0.08);
  --ink: #232323;
  --ink-soft: #56544f;
  --bg: #FBF9F4;
  --card: #FFFFFF;
  --cream: #F4F1E8;
  --line: #E7E2D7;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --container: 1120px;
  --pad: clamp(20px, 4vw, 48px);
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- Utilities ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 0; }

.eyebrow,
.section-label {
  font: 500 0.72rem/1.4 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
}
.section-label { margin-bottom: 2.25rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  background: var(--teal);
  color: #fff;
  text-decoration: none;
  font: 500 0.95rem/1 var(--sans);
  padding: 0.95em 1.6em;
  border-radius: 4px;
  border: 1px solid var(--teal);
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.text-link {
  font: 500 0.95rem/1.4 var(--sans);
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid rgba(18, 108, 85, 0.35);
  padding-bottom: 2px;
  transition: border-color 0.18s ease;
}
.text-link:hover { border-color: var(--teal); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 249, 244, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.wordmark {
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}
.wordmark-name { font: 500 1.25rem/1 var(--serif); color: var(--ink); }
.wordmark-tag {
  font: 500 0.62rem/1 var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 34px);
}
.site-nav > a:not(.btn) {
  font: 500 0.9rem/1 var(--sans);
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease;
}
.site-nav > a:not(.btn):hover { color: var(--ink); }
.btn-nav { font-size: 0.88rem; padding: 0.8em 1.35em; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 9px 14px;
  font: 500 0.72rem/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 9vh, 120px) 0 clamp(48px, 8vh, 104px); }
.hero .eyebrow { margin-bottom: 1.5rem; }
.hero-title {
  font: 400 clamp(2.35rem, 5.6vw, 4.1rem)/1.08 var(--serif);
  letter-spacing: -0.015em;
  margin-bottom: 1.75rem;
}
.signature {
  font: 500 clamp(1.2rem, 2.3vw, 1.5rem)/1.45 var(--serif);
  max-width: 34ch;
  border-left: 3px solid var(--teal);
  padding-left: clamp(16px, 2vw, 24px);
  margin-bottom: 2rem;
}
.hero-intro {
  max-width: 58ch;
  color: var(--ink-soft);
  margin-bottom: 2.25rem;
}
.hero-intro strong { color: var(--ink); font-weight: 600; }

/* ---------- Hero grid: copy left, portrait + profile links right ----------
   The portrait replaces the decorative rings; it is the client's stated
   first priority for this page. LinkedIn is deliberately the louder link. */
.hero-grid {
  display: grid;
  /* v15: a step smaller at the client's request */
  grid-template-columns: minmax(0, 1fr) clamp(190px, 20vw, 235px);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.hero-side { display: flex; flex-direction: column; gap: 18px; }
.hero-portrait { margin: 0; }
.hero-portrait img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  /* the same offset-slab treatment the About portrait uses, so the two
     photographs read as one system */
  box-shadow: 14px 14px 0 0 rgba(18, 108, 85, 0.13);
  border: 1px solid var(--line);
}
.hero-links { display: flex; flex-direction: column; gap: 10px; }
.hero-linkedin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--teal);
  color: #fff;
  text-decoration: none;
  font: 500 0.92rem/1 var(--sans);
  padding: 0.9em 1.2em;
  border-radius: 4px;
  transition: background-color 0.18s ease;
}
.hero-linkedin:hover { background: var(--teal-dark); }
.hero-substack {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font: 500 0.92rem/1 var(--sans);
  padding: 0.85em 1.2em;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--card);
  transition: border-color 0.18s ease, color 0.18s ease;
}
.hero-substack:hover { border-color: var(--teal); color: var(--teal); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  /* on a phone the headline still leads; the portrait follows the intro */
  .hero-side { order: 2; max-width: 260px; }
}

/* ---------- Proof band ---------- */
.proof { background: var(--teal); color: #fff; }
.proof-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.proof-item {
  padding: clamp(24px, 3vw, 36px) clamp(16px, 2vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* each statistic links to the Track record case that proves it */
  text-decoration: none;
  color: inherit;
  transition: background-color 0.18s ease;
}
a.proof-item:hover { background: rgba(255, 255, 255, 0.07); }
a.proof-item:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.proof-item + .proof-item { border-left: 1px solid rgba(255, 255, 255, 0.22); }
.proof-figure {
  font: 400 clamp(1.6rem, 2.6vw, 2.1rem)/1.1 var(--serif);
  color: var(--cream);
  min-height: 2.55rem;
  display: flex;
  align-items: flex-end;
}
.proof-figure-sm { font-size: clamp(1rem, 1.35vw, 1.2rem); white-space: nowrap; }
.proof-label {
  font: 400 0.66rem/1.5 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}


/* ---------- Two phases (numbered) ---------- */
.phases {
  list-style: none;
  counter-reset: ph;
  margin: 2.25rem 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  max-width: 68ch;
}
.phases li {
  counter-increment: ph;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 4px 18px;
}
.phases li::before {
  content: counter(ph);
  grid-row: 1 / 3;
  font: 400 1.5rem/1.2 var(--serif);
  color: var(--teal);
  border-top: 2px solid var(--teal);
  padding-top: 6px;
}
.phase-name { font: 600 1rem/1.5 var(--sans); color: var(--ink); }
.phase-body { color: var(--ink-soft); max-width: 62ch; }

/* ---------- Five pillars ---------- */
.pillars-lede {
  font: 400 clamp(1.05rem, 1.6vw, 1.2rem)/1.6 var(--serif);
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.pillar-item {
  padding: clamp(22px, 3vw, 30px) clamp(22px, 3vw, 34px) clamp(22px, 3vw, 30px) 0;
  border-bottom: 1px solid var(--line);
}
.pillar-item:nth-child(even) {
  padding-left: clamp(22px, 3vw, 34px);
  border-left: 1px solid var(--line);
}
/* the fifth sits alone in the left column on purpose */
.pillar-name { font: 600 0.98rem/1.5 var(--sans); margin-bottom: 0.5rem; }
.pillar-body { color: var(--ink-soft); font-size: 0.97rem; max-width: 52ch; }

/* ---------- At board altitude ---------- */
.altitude-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(26px, 4vw, 44px);
  max-width: 76ch;
}
.altitude-card p {
  font: 400 clamp(1.08rem, 1.7vw, 1.25rem)/1.65 var(--serif);
}
.inception-line {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  max-width: 76ch;
  font-size: 0.97rem;
}

/* ---------- Affiliations: the smaller line for ended roles ---------- */
.affiliations-past {
  margin-top: 0.9rem;
  font: 400 0.8rem/1.6 var(--sans);
  color: var(--ink-soft);
  opacity: 0.85;
  text-align: center;
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 10vh, 112px) 0; }
.section-rule { border-top: 1px solid var(--line); }

.prose { max-width: 640px; }
.prose p + p { margin-top: 1.35rem; }
.prose { color: var(--ink-soft); }
.prose p:first-child { color: var(--ink); }
.text-link-row { margin-top: 2rem; }

/* ---------- Shipped grid ---------- */
.shipped-head { margin-bottom: clamp(28px, 3.8vh, 44px); }
.shipped-head .section-label { margin-bottom: clamp(18px, 2.2vh, 26px); }

/* Byline strip — the section label sits on its own line, then the portrait,
   the attribution, and a hairline running out to the right edge. Read as an
   editorial credit for the band. Deliberately restrained: it puts a face on
   the homepage without turning a typographic hero into a landing page.
   NOTE: <figure> carries a UA default margin of 1em 40px — reset it, or the
   strip sits 40px in from the grid and 16px above where you expect. */
.byline {
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.8vw, 22px);
  margin: 0;
}
.byline-frame {
  position: relative;
  flex: 0 0 auto;
  width: 90px;
  height: 114px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--cream);
}
.byline-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(35, 35, 35, 0.12);
  border-radius: 4px;
}
.byline-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  display: block;
}
.byline-cap {
  flex: 0 1 auto;   /* may shrink and wrap on narrow screens; never grows */
  min-width: 0;
  border-left: 2px solid var(--teal);
  padding-left: 16px;
}
.byline-name {
  display: block;
  font: 500 clamp(1.02rem, 1.5vw, 1.18rem)/1.3 var(--serif);
  color: var(--ink);
}
.byline-role {
  display: block;
  margin-top: 5px;
  font: 400 0.72rem/1.5 var(--mono);
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.byline-rule {
  flex: 1 1 auto;
  min-width: 0;
  height: 1px;
  background: var(--line);
}

.shipped-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(24px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card-lead {
  grid-column: 1 / -1;
  background: var(--teal-wash);
  border-color: rgba(18, 108, 85, 0.25);
}
.card-title { font: 500 1.3rem/1.25 var(--serif); }
.card-lead .card-title { font-size: 1.6rem; }
.card p:not(.card-tag) { color: var(--ink-soft); font-size: 0.95rem; max-width: 60ch; }
.card-tag {
  margin-top: auto;
  padding-top: 10px;
  font: 500 0.62rem/1.4 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}

/* ---------- Affiliations ---------- */
.affiliations { border-top: 1px solid var(--line); padding: 40px 0; }
.affiliations-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  font: 400 0.8rem/1.6 var(--mono);
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.affiliations-strip .sep { color: var(--teal); opacity: 0.55; }
.affiliations-strip a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(18, 108, 85, 0.3);
  transition: color 0.18s ease, border-color 0.18s ease;
}
.affiliations-strip a:hover { color: var(--teal); border-color: var(--teal); }

/* ---------- Testimonials ---------- */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(30px, 4vw, 58px);
}
.quote-card { border-top: 2px solid var(--teal); padding-top: 14px; }
.quote-mark {
  display: block;
  font: 400 3.2rem/1 var(--serif);
  color: var(--teal);
  opacity: 0.28;
  height: 0.52em;
}
/* <blockquote> ships with a UA margin of 1em 40px — without this reset the
   quote text sits 40px to the right of its own quote mark. */
.quote-body { margin: 0; }
.quote-body p {
  font: 400 clamp(1rem, 1.4vw, 1.1rem)/1.62 var(--serif);
  color: var(--ink);
  max-width: 46ch;
  margin: 0;
}
.quote-cite {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 14px;
}
.quote-avatar {
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--cream);
  /* The files are already greyscale. The filter is here so the set stays
     consistent if a colour portrait is ever dropped in — via the admin
     panel, for instance — rather than one face arriving in colour. */
  filter: grayscale(1);
  box-shadow: 0 0 0 1px var(--line);
}
.quote-who { min-width: 0; }
.quote-name {
  display: block;
  font: 600 0.95rem/1.4 var(--sans);
  color: var(--ink);
}
.quote-role {
  display: block;
  margin-top: 3px;
  font: 400 0.87rem/1.5 var(--sans);
  color: var(--ink-soft);
}
.quote-note { opacity: 0.8; }
.quote-role a {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid rgba(18, 108, 85, 0.3);
  transition: border-color 0.18s ease;
}
.quote-role a:hover { border-color: var(--teal); }

/* ---------- Closing CTA ---------- */
.closing { background: var(--cream); border-top: 1px solid var(--line); text-align: left; }
.closing-title { font: 400 clamp(1.9rem, 3.6vw, 2.6rem)/1.15 var(--serif); margin-bottom: 1rem; }
.closing-body { max-width: 52ch; color: var(--ink-soft); margin-bottom: 2rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px 32px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.footer-id p { margin: 0; }
.footer-id strong { color: var(--ink); font-weight: 600; }
.footer-id a { color: var(--teal); text-decoration: none; }
.footer-id a:hover { text-decoration: underline; }
.footer-copy { margin-top: 6px !important; font-size: 0.78rem; }
.footer-links { display: flex; gap: 22px; }
.footer-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font: 500 0.85rem/1 var(--sans);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.footer-links a:hover { color: var(--ink); border-color: var(--ink-soft); }

/* ---------- Interior pages ---------- */
.site-nav > a.is-current {
  color: var(--ink);
  border-bottom-color: var(--teal);
}

.page-hero { padding: clamp(48px, 8vh, 96px) 0 clamp(40px, 6vh, 72px); }

/* v15: the portrait appears top right on every page. Interior pages get a
   small editorial version — text left, photo right — sharing one grid. */
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(120px, 13vw, 170px);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.page-portrait { margin: 0; }
.page-portrait img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--line);
  box-shadow: 10px 10px 0 0 rgba(18, 108, 85, 0.13);
}
/* Writing hero: the Substack line sits under the intro now that the photo
   holds the right column. */
.writing-hero .writing-hero-meta {
  text-align: left;
  padding-bottom: 0;
  margin-top: 20px;
}
@media (max-width: 760px) {
  .page-hero-grid { grid-template-columns: minmax(0, 1fr) 96px; gap: 18px; }
  .page-portrait img { box-shadow: 7px 7px 0 0 rgba(18, 108, 85, 0.13); }
}
.page-title {
  font: 400 clamp(2.2rem, 4.6vw, 3.4rem)/1.1 var(--serif);
  letter-spacing: -0.012em;
  margin-bottom: 1.5rem;
}
.page-intro {
  font: 400 clamp(1.1rem, 1.8vw, 1.3rem)/1.55 var(--serif);
  color: var(--ink-soft);
  max-width: 46ch;
}

/* Two moves */
.moves-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
}
.move { padding: clamp(28px, 3.5vw, 44px); }
.move + .move { border-left: 1px solid var(--line); }
.move-marker {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 1.1rem;
}
.move-num { font: 400 1.9rem/1 var(--serif); color: var(--teal); }
.move-label {
  font: 500 0.72rem/1 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
}
.move-body { color: var(--ink-soft); }

/* Two ways to work */
.ways-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
}
.way { border-top: 2px solid var(--teal); padding-top: 22px; }
.way-title { font: 500 1.3rem/1.3 var(--serif); margin-bottom: 0.8rem; }
.way-title em { font-style: italic; font-weight: 400; color: var(--ink-soft); }
.way p { color: var(--ink-soft); max-width: 52ch; }

/* Five pillars */
.pillars-heading {
  font: 400 clamp(1.6rem, 3vw, 2.2rem)/1.2 var(--serif);
  max-width: 22ch;
  margin-bottom: 1.25rem;
}
.pillars-intro { color: var(--ink-soft); max-width: 58ch; margin-bottom: 3rem; }
.pillars-list { margin: 0; }
.pillar {
  display: grid;
  grid-template-columns: minmax(200px, 260px) 1fr;
  gap: 16px 40px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.pillar:last-child { border-bottom: 1px solid var(--line); }
.pillar dt { font: 500 1.15rem/1.4 var(--serif); }
.pillar dd { margin: 0; color: var(--ink-soft); font-size: 0.95rem; align-self: center; }

/* Track record cases */
.case { padding: clamp(36px, 5vh, 56px) 0; }
.case + .case { border-top: 1px solid var(--line); }
.case-title {
  font: 500 clamp(1.35rem, 2.4vw, 1.7rem)/1.25 var(--serif);
  max-width: 24em;
  margin-bottom: 1.75rem;
}
.case-beats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3.5vw, 48px);
  margin-bottom: 1.5rem;
}
.beat-label {
  font: 500 0.66rem/1.4 var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.6rem;
}
.beat p:not(.beat-label) { color: var(--ink-soft); font-size: 0.95rem; }
.beat-number {
  background: var(--teal-wash);
  border-left: 3px solid var(--teal);
  border-radius: 0 6px 6px 0;
  padding: 18px 24px;
  max-width: 780px;
}
.beat-number p:not(.beat-label) { font: 400 1.05rem/1.55 var(--serif); color: var(--ink); }
.beat-number .beat-label { margin-bottom: 0.4rem; }

/* Before healthcare */
.before-intro {
  font: 400 clamp(1.15rem, 2vw, 1.35rem)/1.5 var(--serif);
  color: var(--ink-soft);
  max-width: 40ch;
  margin-bottom: 3rem;
}
.before-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3.5vw, 48px);
}
.before-item { border-top: 2px solid var(--teal); padding-top: 20px; }
.before-item h3 { font: 500 1.15rem/1.3 var(--serif); margin-bottom: 0.6rem; }
.before-item p { color: var(--ink-soft); font-size: 0.95rem; max-width: 58ch; }

/* About page — editorial composition */
.about-hero { padding-bottom: clamp(48px, 7vh, 80px); }
.about-hero-grid {
  display: grid;
  /* v15: portrait column brought down to match the smaller sitewide photo */
  grid-template-columns: minmax(0, 1.3fr) clamp(220px, 24vw, 280px);
  gap: clamp(48px, 7vw, 104px);
  align-items: start;
}
.lede {
  font: 400 clamp(1.08rem, 1.7vw, 1.3rem)/1.72 var(--serif);
  color: var(--ink);
  max-width: 33em;
}
.lede::first-letter {
  font-family: var(--serif);
  font-size: 3.1em;
  font-weight: 500;
  float: left;
  line-height: 0.82;
  padding: 0.06em 0.12em 0 0;
  color: var(--teal);
}

.portrait { margin: 0; position: relative; max-width: 300px; justify-self: end; }
.portrait-frame {
  position: relative;
  border-radius: 6px;
  box-shadow: 18px 18px 0 0 rgba(18, 108, 85, 0.14);
}
.portrait-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.portrait-label {
  position: absolute;
  left: -18px;
  bottom: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: 3px;
  padding: 12px 18px;
  font: 500 0.68rem/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(35, 35, 35, 0.12);
}

/* Career-arc ribbon */
.arc {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--cream);
  padding: 24px 0;
}
.arc-track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.arc-step {
  font: 500 0.68rem/1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}
.arc-step-now { color: var(--teal); }
.arc-arrow { color: var(--teal); font-family: var(--serif); opacity: 0.7; }

/* Story */
.about-section { padding-top: clamp(56px, 8vh, 88px); }
.about-prose { max-width: 660px; }
.about-prose > p {
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.78;
}
.about-prose > p + p, .about-prose > blockquote + p { margin-top: 1.6rem; }

.pull-quote {
  margin: 3rem 0;
  padding-left: clamp(20px, 3vw, 32px);
  border-left: 3px solid var(--teal);
}
.pull-quote p {
  font: 400 clamp(1.6rem, 3vw, 2.3rem)/1.25 var(--serif);
  color: var(--ink);
  max-width: 18em;
}

/* Credential panels */
.cred-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 4rem;
}
.cred-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(22px, 3vw, 30px);
}
.cred-heading {
  font: 500 0.66rem/1 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.9rem;
}
.cred-line {
  font: 400 0.88rem/1.75 var(--sans);
  color: var(--ink-soft);
}
.cred-line strong { color: var(--ink); font-weight: 600; }

/* Rigor note */
.rigor {
  background: var(--ink);
  color: #F4F1E8;
  border-radius: 6px;
  padding: clamp(32px, 4.5vw, 56px);
}
.rigor p {
  font: 400 clamp(1.15rem, 2vw, 1.45rem)/1.6 var(--serif);
  max-width: 34em;
}
.rigor strong { font-weight: 500; color: #fff; }

/* ---------- Writing page ---------- */
.writing-hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px 48px;
  align-items: end;
}
.writing-hero-meta {
  font: 400 0.9rem/1.5 var(--mono);
  text-align: right;
  margin: 0;
  padding-bottom: 4px;
}
.writing-hero-meta-label {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.8;
  margin-bottom: 6px;
}
.writing-hero-meta a {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid rgba(18, 108, 85, 0.35);
  padding-bottom: 2px;
  transition: border-color 0.18s ease;
}
.writing-hero-meta a:hover { border-color: var(--teal); }

/* Standing note above the list */
.writing-note {
  font: 400 clamp(1rem, 1.5vw, 1.12rem)/1.68 var(--serif);
  color: var(--ink-soft);
  max-width: 58ch;
  margin: -0.3rem 0 clamp(30px, 4.6vh, 50px);
}

/* Post entries
   Each entry is an <article>; the title carries the only real link and its
   ::after stretches over the whole card, so the entry is clickable end to end
   while the accessible name stays just the title (rather than date + title +
   standfirst + extract read out as one enormous link). */
.post {
  position: relative;
  display: grid;
  grid-template-columns: clamp(56px, 7vw, 92px) 1fr;
  gap: clamp(14px, 2.5vw, 36px);
  color: inherit;
}
.post-index {
  font: 500 clamp(1.35rem, 2.6vw, 1.95rem)/1 var(--mono);
  color: var(--teal);
  letter-spacing: 0.02em;
  opacity: 0.55;
  transition: opacity 0.2s ease;
}
.post-body { display: block; min-width: 0; }
.post-meta {
  display: block;
  font: 400 0.7rem/1.4 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.75rem;
}
.post-title {
  display: block;
  font: 500 clamp(1.25rem, 2.2vw, 1.55rem)/1.28 var(--serif);
  color: var(--ink);
  max-width: 26em;
  margin: 0 0 0.7rem;
  transition: color 0.2s ease;
}
.post-title a {
  color: inherit;
  text-decoration: none;
}
.post-title a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.post-title a:focus-visible { outline: none; }
.post-title a:focus-visible::after {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
  border-radius: 4px;
}
.post-standfirst {
  display: block;
  color: var(--ink-soft);
  font: 400 0.95rem/1.58 var(--sans);
  max-width: 52ch;
  margin: 0 0 1.15rem;
}
.post-extract {
  margin: 0 0 1.25rem;
  padding-left: clamp(16px, 1.6vw, 24px);
  border-left: 2px solid rgba(18, 108, 85, 0.3);
  transition: border-color 0.2s ease;
}
.post-extract p {
  margin: 0;
  font: 400 clamp(1.02rem, 1.45vw, 1.14rem)/1.62 var(--serif);
  color: var(--ink);
  max-width: 50ch;
}
.post-cta {
  display: inline-block;
  font: 500 0.9rem/1 var(--sans);
  color: var(--teal);
}
.post-arrow { display: inline-block; transition: transform 0.2s ease; }
.post:hover .post-title { color: var(--teal); }
.post:hover .post-arrow { transform: translateX(5px); }
.post:hover .post-index { opacity: 1; }
.post:hover .post-extract { border-left-color: var(--teal); }

/* Lead piece */
.post-lead {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(26px, 3.6vw, 46px);
  margin-bottom: clamp(26px, 4vh, 40px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.post-lead .post-title { font-size: clamp(1.5rem, 3vw, 2.15rem); font-weight: 400; }
.post-lead .post-index { opacity: 0.75; }
.post-lead:hover {
  border-color: rgba(18, 108, 85, 0.4);
  box-shadow: 0 12px 32px rgba(35, 35, 35, 0.07);
  transform: translateY(-3px);
}

/* Remaining pieces: hairline rows */
.post:not(.post-lead) {
  border-top: 1px solid var(--line);
  padding: clamp(28px, 4vh, 40px) 14px;
  margin: 0 -14px;
  transition: background-color 0.2s ease;
}
.post:not(.post-lead):hover { background-color: var(--teal-wash); }

/* Archive tail */
.archive {
  border-top: 1px solid var(--line);
  margin-top: clamp(10px, 1.6vh, 18px);
  padding-top: clamp(28px, 4vh, 44px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
}
.archive-text {
  margin: 0;
  max-width: 46ch;
  color: var(--ink-soft);
  font: 400 clamp(1rem, 1.6vw, 1.15rem)/1.6 var(--serif);
}

@media (prefers-reduced-motion: reduce) {
  .post-lead, .post-arrow, .post-title, .post-index, .post-extract { transition: none; }
  .post-lead:hover { transform: none; }
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: start;
}

.contact-main {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(26px, 3.6vw, 46px);
}

.field + .field { margin-top: 1.5rem; }
.field-label {
  display: block;
  font: 500 0.68rem/1.4 var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.6rem;
}
.field-optional {
  color: var(--ink-soft);
  letter-spacing: 0.12em;
  opacity: 0.75;
}
.field-input {
  display: block;
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.85em 1em;
  font: 400 1rem/1.5 var(--sans);
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.field-input:hover { border-color: #d8d2c4; }
.field-input:focus {
  outline: none;
  background: var(--card);
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-wash);
}
.field-textarea { resize: vertical; min-height: 150px; }

.field-input.has-error { border-color: #9B2C2C; }
.field-input.has-error:focus { box-shadow: 0 0 0 3px rgba(155, 44, 44, 0.12); }
.field-error {
  margin-top: 0.5rem;
  font: 400 0.84rem/1.45 var(--sans);
  color: #9B2C2C;
}

/* Spam trap — off-screen, never shown, never announced */
.field-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}
.btn-submit { border: 1px solid var(--teal); cursor: pointer; }
.btn-submit[disabled] { opacity: 0.6; cursor: default; }
.form-status {
  font: 400 0.86rem/1.45 var(--sans);
  color: var(--ink-soft);
  margin: 0;
}
.form-status.is-error { color: #9B2C2C; }

/* Sent state */
.form-success {
  background: var(--cream);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: 6px;
  padding: clamp(30px, 4vw, 52px);
}
.success-mark {
  font: 400 1.5rem/1 var(--sans);
  color: var(--teal);
  margin: 0 0 1rem;
}
.success-title {
  font: 400 clamp(1.6rem, 3vw, 2.1rem)/1.2 var(--serif);
  margin-bottom: 0.75rem;
}
.success-text { color: var(--ink-soft); max-width: 40ch; }

/* Aside */
.contact-aside {
  position: sticky;
  top: 104px;
  padding-top: 6px;
}
.aside-block + .aside-block { margin-top: 2.5rem; }
.aside-note {
  margin: 2.5rem 0;
  padding: clamp(22px, 2.4vw, 30px);
  background: var(--teal-wash);
  border-left: 2px solid var(--teal);
  border-radius: 0 5px 5px 0;
}
.aside-note-text {
  font: 400 0.97rem/1.62 var(--serif);
  color: var(--ink);
  margin-bottom: 1.1rem;
}
.aside-more {
  font: 500 0.86rem/1.4 var(--sans);
  color: var(--teal);
  text-decoration: none;
}
.aside-more span { display: inline-block; transition: transform 0.2s ease; }
.aside-more:hover span { transform: translateX(4px); }
.aside-label {
  font: 500 0.68rem/1.4 var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}
.aside-text {
  color: var(--ink-soft);
  font: 400 1.02rem/1.6 var(--serif);
  max-width: 30ch;
}
.aside-text a {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid rgba(18, 108, 85, 0.35);
  transition: border-color 0.18s ease;
}
.aside-text a:hover { border-color: var(--teal); }
.aside-links { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.aside-links a {
  font: 500 0.92rem/1.4 var(--sans);
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.18s ease;
}
.aside-links a span { display: inline-block; transition: transform 0.2s ease; }
.aside-links a:hover { color: var(--teal); }
.aside-links a:hover span { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
  .field-input, .aside-links a span, .aside-more span { transition: none; }
}

/* ---------- Toast (preview notice) ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(8px);
  background: var(--ink);
  color: #fff;
  font: 400 0.82rem/1.4 var(--sans);
  padding: 11px 18px;
  border-radius: 6px;
  box-shadow: 0 6px 24px rgba(35, 35, 35, 0.25);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 90;
  max-width: min(92vw, 420px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ==========================================================================
   v4 interaction layer
   ========================================================================== */

/* Reading progress bar */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 60;
  pointer-events: none;
}

/* Decorative concentric-ring motif (typographic-adjacent, no imagery) */
.hero, .page-hero { position: relative; overflow: hidden; }
.hero .container, .page-hero .container { position: relative; z-index: 1; }
.decor-rings {
  position: absolute;
  top: -140px;
  right: -160px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at center,
    rgba(18, 108, 85, 0.11) 0 1px,
    transparent 1px 54px
  );
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 760px) {
  .decor-rings { width: 320px; height: 320px; top: -90px; right: -120px;
    background: repeating-radial-gradient(circle at center,
      rgba(18, 108, 85, 0.10) 0 1px, transparent 1px 38px); }
}

/* Nav links: animated underline */
.site-nav > a:not(.btn) {
  border-bottom: 0;
  background-image: linear-gradient(var(--teal), var(--teal));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  padding-bottom: 8px;
  transition: color 0.18s ease, background-size 0.25s ease;
}
.site-nav > a:not(.btn):hover { background-size: 100% 2px; }
.site-nav > a.is-current { background-size: 100% 2px; }

/* Buttons: lift */
.btn { transition: background-color 0.18s ease, border-color 0.18s ease,
       transform 0.18s ease, box-shadow 0.18s ease; }
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(18, 108, 85, 0.22);
}

/* Text link arrow slide */
.text-link span { display: inline-block; transition: transform 0.2s ease; }
.text-link:hover span { transform: translateX(5px); }

/* Cards: hover lift */
.card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(35, 35, 35, 0.08);
  border-color: rgba(18, 108, 85, 0.4);
}

/* Pillars: row highlight */
.pillar {
  padding-left: 14px;
  padding-right: 14px;
  margin-left: -14px;
  margin-right: -14px;
  transition: background-color 0.2s ease;
}
.pillar:hover { background-color: var(--teal-wash); }

/* Ways / before items: title warms on hover */
.way, .before-item { transition: border-color 0.2s ease; }
.way h3, .before-item h3 { transition: color 0.2s ease; }
.way:hover h3, .before-item:hover h3 { color: var(--teal); }

/* Footer links */
.footer-links a { transition: color 0.18s ease, border-color 0.18s ease; }

@media (prefers-reduced-motion: reduce) {
  .btn, .card, .text-link span, .site-nav > a:not(.btn) { transition: none; }
  .btn:hover, .card:hover { transform: none; }
  .decor-rings { display: none; }
  .progress-bar { display: none; }
}

/* ---------- Speaking ---------- */
.speaking-intro {
  font: 400 clamp(1.05rem, 1.6vw, 1.2rem)/1.6 var(--serif);
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: clamp(26px, 3.5vw, 40px);
}

/* figure ships with a UA margin of 1em 40px — the same trap the byline strip
   and the quote cards fell into. Reset it explicitly. */
.talk { margin: 0; max-width: 820px; }

.talk-player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.talk-video,
.talk-player iframe { display: block; width: 100%; height: 100%; border: 0; }

/* The still-image stand-in for a YouTube or Vimeo embed. It is a real
   <button>, so it is reachable by keyboard and announces itself, which a
   div with a click handler would not. */
.talk-facade {
  display: block; width: 100%; height: 100%;
  margin: 0; padding: 0; border: 0; background: none;
  cursor: pointer; position: relative;
}
.talk-facade img { display: block; width: 100%; height: 100%; object-fit: cover; }
.talk-play {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(18, 108, 85, 0.92);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.talk-play::after {
  content: "";
  border-style: solid;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}
.talk-facade:hover .talk-play { transform: translate(-50%, -50%) scale(1.07); background: var(--teal); }
.talk-facade:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

.talk-cap {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px;
  margin-top: 15px; padding-top: 14px;
  border-top: 1px solid var(--line);
}
.talk-event { font: 400 1rem/1.5 var(--serif); color: var(--ink); }
.talk-meta {
  margin-left: auto;
  font: 500 0.68rem/1 var(--mono);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft);
}

@media (prefers-reduced-motion: reduce) {
  .talk-play { transition: none; }
  .talk-facade:hover .talk-play { transform: translate(-50%, -50%); }
}

@media (max-width: 760px) {
  .talk-play { width: 58px; height: 58px; }
  .talk-play::after { border-width: 8px 0 8px 14px; }
  .talk-meta { margin-left: 0; }
}

/* ---------- 404 ---------- */
.error-hero { padding-bottom: clamp(28px, 4vh, 48px); }
.error-code {
  font: 500 0.72rem/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.25rem;
}

/* A plain list of destinations, styled as hairline rows — the same row
   treatment the Writing archive uses, so a wrong turn lands somewhere that
   still looks like the site rather than a bare Apache page. */
.error-list { list-style: none; margin: 0; padding: 0; }
.error-item { border-top: 1px solid var(--line); }
.error-item:last-child { border-bottom: 1px solid var(--line); }
.error-item > a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 22px;
  padding: 22px 4px;
  text-decoration: none;
  border: 0;
  transition: background-color 0.2s ease, padding-left 0.2s ease;
}
.error-item > a:hover,
.error-item > a:focus-visible {
  background: var(--teal-wash);
  padding-left: 14px;
}
.error-item-name {
  font: 400 1.28rem/1.3 var(--serif);
  color: var(--ink);
  flex: 0 0 auto;
  min-width: 8.5em;
}
.error-item-note {
  font: 400 0.95rem/1.5 var(--sans);
  color: var(--ink-soft);
}
.error-item-mail { color: var(--teal); }
.error-item > a:hover .error-item-name { color: var(--teal); }

@media (prefers-reduced-motion: reduce) {
  .error-item > a { transition: background-color 0.2s ease; }
  .error-item > a:hover, .error-item > a:focus-visible { padding-left: 4px; }
}

@media (max-width: 760px) {
  .error-item-name { min-width: 0; flex: 1 0 100%; }
  .error-item > a { gap: 4px; padding: 18px 4px; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .toast { transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .shipped-grid { grid-template-columns: 1fr 1fr; }
  .card-lead { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .pillar-item:nth-child(even) { padding-left: 0; border-left: none; }
  .phases li { grid-template-columns: 34px 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 12px var(--pad) 20px;
  }
  .site-nav.open { display: flex; }
  .site-nav > a:not(.btn) { padding: 10px 0; font-size: 1rem; }
  .btn-nav { margin-top: 10px; }

  .hero { padding-top: 40px; }
  .hero .eyebrow { margin-bottom: 1rem; }
  .hero-title { margin-bottom: 1.25rem; }
  .signature { margin-bottom: 1.5rem; }

  /* Proof band stacks — spec: readable on a phone, no horizontal scroll */
  .proof-grid { grid-template-columns: 1fr; }
  .proof-item {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 4px;
  }
  .proof-item + .proof-item { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.22); }
  .proof-figure { font-size: 1.5rem; min-height: 0; }
  .proof-figure-sm { font-size: 1.05rem; }
  .proof-label { text-align: right; max-width: 55%; }

  .shipped-grid { grid-template-columns: 1fr; }
  .byline-frame { width: 74px; height: 94px; }
  .byline-role { font-size: 0.66rem; letter-spacing: 0.06em; }
  .byline-rule { display: none; }
  .quote-grid { gap: 34px; }
  .quote-avatar { width: 52px; height: 52px; }
  .quote-cite { gap: 12px; }

  .footer-inner { flex-direction: column; }

  /* Interior pages */
  .moves-grid { grid-template-columns: 1fr; }
  .move + .move { border-left: 0; border-top: 1px solid var(--line); }
  .ways-grid { grid-template-columns: 1fr; }
  .pillar { grid-template-columns: 1fr; gap: 6px; }
  .case-beats { grid-template-columns: 1fr; }
  .before-grid { grid-template-columns: 1fr; }
  .about-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .portrait { order: -1; max-width: 260px; justify-self: start; }
  .portrait-frame { box-shadow: 12px 12px 0 0 rgba(18, 108, 85, 0.14); }
  .portrait-label { left: -10px; bottom: 18px; padding: 10px 14px; }
  .cred-grid { grid-template-columns: 1fr; }

  /* Writing */
  .writing-hero-grid { grid-template-columns: 1fr; align-items: start; }
  .writing-hero-meta { text-align: left; padding-bottom: 0; }
  .post { grid-template-columns: 1fr; gap: 10px; }
  .post-index { font-size: 1.05rem; opacity: 0.85; }
  .post-lead .post-index { font-size: 1.05rem; }
  .writing-note { margin-bottom: 30px; }
  .post-extract { padding-left: 15px; }
  .archive { flex-direction: column; align-items: flex-start; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-aside {
    position: static;
    border-top: 1px solid var(--line);
    padding-top: 32px;
  }
  .btn-submit { width: 100%; }
  .form-actions { margin-top: 1.75rem; }
}

/* Inline prose link */
.inline-link {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid rgba(18, 108, 85, 0.35);
  transition: border-color 0.18s ease;
}
.inline-link:hover { border-color: var(--teal); }

/* ---------- Paragraphs made in the admin (v17) ----------
   A blank line in any long text box becomes a second <p> carrying the same
   class as the first plus "para"; this one rule spaces them all. */
.para { margin-top: 0.8em; }

/* ---------- Your own sections (v18) ----------
   Blocks the client creates in the admin. A "section" reads like the rest
   of the page; a "sub-section" tucks under the section above it. */
.extra-title {
  font: 400 clamp(1.45rem, 2.7vw, 1.95rem)/1.25 var(--serif);
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  max-width: 34ch;
}
.extra-sub { padding-top: 0; margin-top: calc(-1 * clamp(34px, 5.5vh, 62px)); }
.extra-subtitle {
  font: 600 1.02rem/1.45 var(--sans);
  color: var(--ink);
  margin-bottom: 0.7rem;
  max-width: 44ch;
}