/* ==========================================================================
   Bailiwick Dx Strategies — site stylesheet
   Brand system: Ink / Deep teal / Display teal / Copper / Clay / Moss /
   Warm gray / Panel. Copper belongs only to the point in the mark.
   Clay, moss and the teals index the four offerings.
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/fraunces-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}

:root {
  /* Palette */
  --ink: #12323F;
  --deep-teal: #1B5A6B;
  --display-teal: #2A7F93;
  --copper: #A85114;
  --clay: #9C4A33;
  --moss: #44664B;
  --warm-gray: #78807E;
  --panel: #EDF2F2;

  /* Mark tones (from the B01 funnel) */
  --bar-1: #B8C1C6;
  --bar-2: #71848B;

  /* Offering index */
  --o1: var(--display-teal);
  --o2: var(--clay);
  --o3: var(--moss);
  --o4: var(--deep-teal);

  /* Text tokens */
  --text: var(--ink);
  --text-2: #3F5459;   /* ink/warm-gray blend, 8.4:1 on white */
  --text-3: #5D6866;   /* muted, 5.6:1 on white */
  --rule: #D5DEDF;
  --surface: #FFFFFF;
  --surface-2: var(--panel);

  /* Type */
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --fs-h3: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --fs-h2: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem);
  --fs-h1: clamp(2.25rem, 1.6rem + 3vw, 4.125rem);

  /* Space & layout */
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --max: 1200px;
  --measure: 66ch;
  --radius: 10px;
  --radius-sm: 6px;
  --section: clamp(4rem, 3rem + 5vw, 7.5rem);
  --header-h: 72px;

  --shadow: 0 1px 2px rgb(18 50 63 / 0.06), 0 8px 24px -12px rgb(18 50 63 / 0.18);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
figure { margin: 0; }
a { color: var(--deep-teal); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--display-teal); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.012em; margin: 0 0 0.5em; font-optical-sizing: auto; text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 560; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); font-weight: 560; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: 1.0625rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
sup { font-size: 0.68em; line-height: 0; }
sup a { text-decoration: none; font-weight: 600; }
.visually-hidden { 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: 1rem; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: var(--radius-sm); }
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--panel { background: var(--surface-2); }
.section--ink { background: var(--ink); color: #E4ECEC; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--tight { padding: calc(var(--section) * 0.6) 0; }
.measure { max-width: var(--measure); }
.lede { font-size: var(--fs-lg); color: var(--text-2); line-height: 1.55; }
.section--ink .lede { color: #C9D7D9; }
.grid { display: grid; gap: clamp(1.25rem, 0.8rem + 1.5vw, 2rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.split { display: grid; gap: clamp(2rem, 1rem + 4vw, 5rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 7fr; } .split--even { grid-template-columns: 1fr 1fr; } .split--rev { grid-template-columns: 7fr 5fr; } }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }

/* ---------- Eyebrow / descriptor ---------- */
.eyebrow {
  font-family: var(--sans); font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--deep-teal);
  margin: 0 0 1rem; display: inline-flex; align-items: center; gap: 0.6rem;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.85; }
.section--ink .eyebrow { color: #8FC3CF; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1.5rem; }

.lockup { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.lockup:hover { color: var(--ink); }
.lockup__mark { width: 30px; height: auto; flex: none; }
.lockup__text { display: flex; flex-direction: column; line-height: 1; }
.lockup__name { font-family: var(--serif); font-weight: 620; font-size: 1.5rem; letter-spacing: -0.01em; font-variation-settings: "opsz" 72; }
.lockup__desc { font-family: var(--sans); font-weight: 600; font-size: 0.5625rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--deep-teal); margin-top: 0.35rem; padding-left: 0.08em; }

.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav__list { display: flex; list-style: none; margin: 0; padding: 0; gap: 0.15rem; }
.nav__list a {
  display: block; padding: 0.5rem 0.8rem; border-radius: var(--radius-sm);
  font-size: var(--fs-sm); font-weight: 500; color: var(--text-2); text-decoration: none;
}
.nav__list a:hover { color: var(--ink); background: var(--panel); }
.nav__list a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--deep-teal); border-radius: 0; }
.nav__cta { margin-left: 0.75rem; }
.nav-toggle { display: none; }

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    background: none; border: 1px solid var(--rule); border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem; font: 500 var(--fs-sm) var(--sans); color: var(--ink); cursor: pointer;
  }
  .nav-toggle__icon { width: 18px; height: 21px; position: relative; }
  .nav-toggle__icon span { position: absolute; left: 0; height: 2px; border-radius: 2px; transition: transform 0.2s, opacity 0.2s, width 0.2s, background 0.2s; }
  .nav-toggle__icon span:nth-child(1) { top: 0; width: 18px; background: var(--bar-1); }
  .nav-toggle__icon span:nth-child(2) { top: 5px; width: 12px; left: 3px; background: var(--bar-2); }
  .nav-toggle__icon span:nth-child(3) { top: 10px; width: 6px; left: 6px; background: var(--ink); }
  .nav-toggle__icon::after { content: ""; position: absolute; top: 15px; left: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--copper); transition: opacity 0.2s, transform 0.2s; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(1) { transform: translateY(5px) rotate(45deg); background: var(--ink); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(3) { width: 18px; left: 0; transform: translateY(-5px) rotate(-45deg); background: var(--ink); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { opacity: 0; transform: scale(0.4); }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0.5rem;
    background: #fff; border-bottom: 1px solid var(--rule); box-shadow: var(--shadow);
    padding: 0.75rem var(--gutter) 1.25rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; }
  .nav__list a { padding: 0.8rem 0.5rem; font-size: 1.0625rem; border-bottom: 1px solid var(--panel); border-radius: 0; }
  .nav__list a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--deep-teal); padding-left: 0.9rem; }
  .nav__cta { margin: 0.5rem 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font: 600 var(--fs-sm)/1 var(--sans); letter-spacing: 0.01em;
  padding: 0.95rem 1.4rem; border-radius: 999px; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--deep-teal); color: #fff; }
.btn--ghost { border-color: var(--rule); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--panel); color: var(--ink); }
.btn--outline-light { border-color: rgb(255 255 255 / 0.35); color: #fff; }
.btn--outline-light:hover { border-color: #fff; color: #fff; }
.btn--sm { padding: 0.7rem 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.text-link { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem; color: var(--deep-teal); }
.text-link::after { content: "→"; transition: transform 0.2s var(--ease); }
.text-link:hover::after { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 2rem + 5vw, 6.5rem) 0 clamp(3.5rem, 2rem + 5vw, 6rem); position: relative; overflow: hidden; }
.hero__grid { display: grid; gap: clamp(2.5rem, 1rem + 4vw, 4rem); align-items: center; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: 1.25fr 1fr; } }
.hero h1 { margin-bottom: 0.45em; max-width: 17ch; }
.hero h1 em { font-style: italic; font-weight: 450; color: var(--deep-teal); }
.hero .lede { max-width: 54ch; margin-bottom: 2rem; }
.hero__note { margin-top: 1.75rem; font-size: var(--fs-sm); color: var(--text-3); max-width: 52ch; }

/* Funnel figure — the B01 mark, explained */
.funnel-fig { background: var(--panel); border-radius: 18px; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); position: relative; }
.funnel-fig__title { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); margin: 0 0 1.5rem; }
.funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.funnel li { display: grid; grid-template-columns: 1fr; gap: 0.35rem; }
.funnel__bar { height: 16px; border-radius: 999px; margin: 0 auto; width: var(--w); transform-origin: center; }
.funnel__label { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: var(--fs-sm); }
.funnel__label strong { font-weight: 600; }
.funnel__label span { color: var(--text-3); font-size: var(--fs-xs); text-align: right; }
.funnel li:nth-child(1) .funnel__bar { background: var(--bar-1); }
.funnel li:nth-child(2) .funnel__bar { background: var(--bar-2); }
.funnel li:nth-child(3) .funnel__bar { background: var(--ink); }
.funnel__dot { width: 30px; height: 30px; border-radius: 50%; background: var(--copper); margin: 0.25rem auto 0; }
.funnel li:last-child .funnel__label strong { color: var(--ink); }
.funnel-fig__caption { margin: 1.5rem 0 0; font-size: var(--fs-sm); color: var(--text-2); border-top: 1px solid var(--rule); padding-top: 1rem; }

@media (prefers-reduced-motion: no-preference) {
  .js .funnel__bar, .js .funnel__dot { transform: scaleX(0.04); opacity: 0; transition: transform 1s var(--ease), opacity 0.6s; }
  .js .funnel__dot { transform: scale(0.2); }
  .js .funnel.is-in .funnel__bar, .js .funnel.is-in .funnel__dot { transform: none; opacity: 1; }
  .js .funnel.is-in li:nth-child(2) .funnel__bar { transition-delay: 0.15s; }
  .js .funnel.is-in li:nth-child(3) .funnel__bar { transition-delay: 0.3s; }
  .js .funnel.is-in li:nth-child(4) .funnel__dot { transition-delay: 0.5s; }
}

/* ---------- Stats ---------- */
.stats { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); border-top: 1px solid var(--rule); }
.stat { padding: 1.75rem 1.5rem 1.75rem 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 780px) { .stat + .stat { padding-left: 1.75rem; border-left: 1px solid var(--rule); } }
.stat__num { font-family: var(--serif); font-size: clamp(2.25rem, 1.8rem + 2vw, 3.25rem); font-weight: 500; line-height: 1; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: lining-nums; }
.stat__num small { font-size: 0.45em; font-weight: 500; margin-left: 0.15em; letter-spacing: 0; }
.stat__label { margin: 0.75rem 0 0; color: var(--text-2); font-size: var(--fs-sm); max-width: 32ch; }

/* ---------- Problem cards ---------- */
.problem { padding: 1.75rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--rule); display: flex; flex-direction: column; }
.problem__k { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 0.9rem; }
.problem h3 { font-size: 1.3rem; margin-bottom: 0.6em; }
.problem p { color: var(--text-2); font-size: var(--fs-sm); }
.problem__patient { margin-top: auto; padding-top: 1rem; border-top: 1px dashed var(--rule); font-size: var(--fs-sm); color: var(--ink); }
.problem__patient strong { font-weight: 600; }

/* ---------- Offerings ---------- */
.path { display: grid; gap: 0.75rem; grid-template-columns: 1fr; margin-bottom: 0.75rem; }
@media (min-width: 820px) { .path { grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; } }
.path__step { border-top: 3px solid var(--c); background: #fff; padding: 1rem 1.25rem; border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.path__step b { display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.path__step span { font-size: var(--fs-sm); color: var(--text-2); }
.path__step i { font-style: normal; color: var(--c); font-weight: 700; font-size: var(--fs-sm); margin-right: 0.35rem; font-family: var(--sans); }
.path__arrow { display: none; align-self: center; color: var(--warm-gray); font-size: 1.4rem; }
@media (min-width: 820px) { .path__arrow { display: block; } }
.path__span { border-left: 3px solid var(--o4); background: #fff; padding: 0.9rem 1.25rem; font-size: var(--fs-sm); color: var(--text-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.path__span b { color: var(--ink); font-family: var(--serif); font-size: 1.05rem; font-weight: 600; margin-right: 0.35rem; }
.path__span i { font-style: normal; color: var(--o4); font-weight: 700; margin-right: 0.35rem; }

.offer { --c: var(--o1); position: relative; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.75rem 1.75rem 1.5rem; display: flex; flex-direction: column; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease); }
.offer::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 4px; background: var(--c); border-radius: var(--radius) var(--radius) 0 0; }
.offer:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.offer__num { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.14em; color: var(--c); margin-bottom: 0.6rem; }
.offer h3 { font-size: 1.4rem; margin-bottom: 0.4em; }
.offer__q { font-family: var(--serif); font-style: italic; color: var(--text-2); font-size: 1.05rem; margin-bottom: 1rem; }
.offer p { font-size: var(--fs-sm); color: var(--text-2); }
.offer__foot { margin-top: auto; padding-top: 1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: var(--fs-xs); color: var(--text-3); border-top: 1px solid var(--panel); }
.offer a.stretched::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.c1 { --c: var(--o1); } .c2 { --c: var(--o2); } .c3 { --c: var(--o3); } .c4 { --c: var(--o4); }

/* ---------- Service detail ---------- */
.service { --c: var(--o1); padding: clamp(3rem, 2rem + 3vw, 5rem) 0; border-top: 1px solid var(--rule); scroll-margin-top: var(--header-h); }
.service:first-of-type { border-top: 0; }
.service__head { display: grid; gap: 1rem; margin-bottom: 2rem; }
.service__tag { display: inline-flex; align-items: center; gap: 0.6rem; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c); }
.service__tag::before { content: ""; width: 28px; height: 4px; border-radius: 4px; background: var(--c); }
.service h2 { margin-bottom: 0.2em; }
.service__sub { font-family: var(--serif); font-style: italic; font-size: var(--fs-lg); color: var(--text-2); margin: 0; }
.service__body { display: grid; gap: clamp(1.5rem, 1rem + 3vw, 4rem); }
@media (min-width: 900px) { .service__body { grid-template-columns: 7fr 5fr; } }
.ticks { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.ticks li { position: relative; padding: 0.7rem 0 0.7rem 1.75rem; border-bottom: 1px solid var(--panel); color: var(--text-2); }
.ticks li::before { content: ""; position: absolute; left: 0.1rem; top: 1.3rem; width: 14px; height: 3px; border-radius: 3px; background: var(--c, var(--deep-teal)); }
.ticks li strong { color: var(--ink); font-weight: 600; }
.aside-card { background: var(--panel); border-radius: var(--radius); padding: 1.5rem 1.6rem; }
.aside-card + .aside-card { margin-top: 1rem; }
.aside-card h4 { margin-bottom: 0.5rem; font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.aside-card p:last-child, .aside-card ul:last-child { margin-bottom: 0; }
.aside-card--patient { background: #fff; border: 1px solid var(--rule); border-left: 4px solid var(--c); }
.aside-card--patient p { font-family: var(--serif); font-size: 1.1rem; line-height: 1.45; color: var(--ink); }
.deliverable { display: flex; gap: 0.8rem; align-items: flex-start; }
.deliverable p { margin: 0; color: var(--ink); font-weight: 500; }
dl.facts { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1.25rem; margin: 0; font-size: var(--fs-sm); }
dl.facts dt { color: var(--text-3); }
dl.facts dd { margin: 0; color: var(--ink); font-weight: 500; }

/* ---------- Principles ---------- */
.principle { padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.principle__n { font-family: var(--serif); font-size: 0.95rem; color: var(--text-3); margin-bottom: 0.4rem; font-style: italic; }
.principle h3 { font-size: 1.25rem; margin-bottom: 0.5em; }
.principle p { color: var(--text-2); font-size: var(--fs-sm); margin: 0; }
.section--ink .principle { border-top-color: rgb(255 255 255 / 0.35); }
.section--ink .principle p { color: #C3D2D4; }
.section--ink .principle__n { color: #8FC3CF; }

/* ---------- Audience ---------- */
.aud { padding: 1.75rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--rule); }
.aud h3 { font-size: 1.25rem; }
.aud p { color: var(--text-2); font-size: var(--fs-sm); }
.aud ul { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.45rem; font-size: var(--fs-sm); }
.aud li { padding-left: 1.1rem; position: relative; color: var(--ink); }
.aud li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--bar-2); }

/* ---------- Example teaser / callouts ---------- */
.callout-num { font-family: var(--serif); font-size: clamp(3.5rem, 2.5rem + 5vw, 6rem); line-height: 0.9; font-weight: 500; letter-spacing: -0.03em; color: #fff; }
.callout-num small { font-size: 0.4em; vertical-align: 0.9em; margin-left: 0.05em; }
.kicker { font-size: var(--fs-sm); color: #C3D2D4; }

/* ---------- About / person ---------- */
.person { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .person { grid-template-columns: 300px 1fr; gap: 4rem; } }
.person__card { background: var(--ink); color: #fff; border-radius: 16px; padding: 2rem; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.person__card .mono { width: 72px; height: 72px; border-radius: 50%; background: rgb(255 255 255 / 0.08); display: grid; place-items: center; margin-bottom: 1.25rem; }
.person__card .mono img { width: 32px; }
.person__card h3 { color: #fff; margin-bottom: 0.2em; }
.person__card p { color: #C3D2D4; font-size: var(--fs-sm); }
.person__card a { color: #fff; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--rule); }
.timeline li { position: relative; padding: 0 0 1.75rem 1.75rem; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 0.45rem; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--bar-2); }
.timeline li:first-child::before { background: var(--ink); border-color: var(--ink); }
.timeline h4 { margin-bottom: 0.15rem; }
.timeline .role { color: var(--text-3); font-size: var(--fs-sm); margin-bottom: 0.5rem; }
.timeline p { color: var(--text-2); font-size: var(--fs-sm); }

blockquote.pull { margin: 0; padding: 0 0 0 1.5rem; border-left: 3px solid var(--deep-teal); font-family: var(--serif); font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem); line-height: 1.35; color: var(--ink); font-weight: 400; }
blockquote.pull cite { display: block; margin-top: 0.8rem; font: 500 var(--fs-sm) var(--sans); color: var(--text-3); font-style: normal; }

/* ---------- Page header ---------- */
.page-head { padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0 clamp(2.5rem, 2rem + 2vw, 3.5rem); border-bottom: 1px solid var(--rule); }
.page-head h1 { max-width: 20ch; font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.6rem); }
.page-head .lede { max-width: 62ch; }
.toc { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; padding: 0; list-style: none; }
.toc a { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.9rem; border: 1px solid var(--rule); border-radius: 999px; font-size: var(--fs-sm); text-decoration: none; color: var(--ink); font-weight: 500; }
.toc a:hover { border-color: var(--ink); }
.toc a i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--bar-2)); }

/* ---------- Steps (method) ---------- */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 3.5rem 1fr; gap: 0 1.25rem; padding: 1.75rem 0; border-top: 1px solid var(--rule); }
.steps > li::before { content: counter(step, decimal-leading-zero); font-family: var(--serif); font-size: 1.6rem; color: var(--bar-2); line-height: 1.1; }
.steps h3 { font-size: 1.3rem; margin-bottom: 0.35em; }
.steps p { color: var(--text-2); margin-bottom: 0.5em; }
.steps p:last-child { margin-bottom: 0; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.chips li { padding: 0.4rem 0.8rem; border-radius: 999px; background: #fff; border: 1px solid var(--rule); font-size: var(--fs-sm); color: var(--ink); }
.section--panel .chips li { background: #fff; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 1.25rem 2.5rem 1.25rem 0; font-family: var(--serif); font-size: 1.2rem; font-weight: 550; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 0.4rem; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 0 1.5rem; color: var(--text-2); max-width: var(--measure); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #fff; border-radius: 20px; padding: clamp(2rem, 1.5rem + 3vw, 4rem); display: grid; gap: 2rem; align-items: center; position: relative; overflow: hidden; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.4fr 1fr; } }
.cta-band h2 { color: #fff; margin-bottom: 0.4em; }
.cta-band p { color: #C3D2D4; margin: 0; max-width: 52ch; }
.cta-band .btn-row { justify-content: flex-start; }
@media (min-width: 900px) { .cta-band .btn-row { justify-content: flex-end; } }
.cta-band > div { position: relative; z-index: 1; }
.cta-band__mark { position: absolute; left: -36px; bottom: -120px; width: 220px; opacity: 0.06; pointer-events: none; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.field { display: grid; gap: 0.4rem; }
.field label, .field legend { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.field .hint { font-size: var(--fs-xs); color: var(--text-3); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1px solid #B9C6C8; border-radius: var(--radius-sm); padding: 0.75rem 0.85rem; width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--deep-teal); box-shadow: 0 0 0 3px rgb(42 127 147 / 0.2); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--clay); }
.field .error { color: var(--clay); font-size: var(--fs-xs); min-height: 1em; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.radio-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.radio-chips label { font-weight: 500; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.9rem; border: 1px solid #B9C6C8; border-radius: 999px; cursor: pointer; font-size: var(--fs-sm); }
.radio-chips input { accent-color: var(--deep-teal); margin: 0; }
.radio-chips label:has(input:checked) { border-color: var(--deep-teal); background: var(--panel); }
.form-status { font-size: var(--fs-sm); color: var(--moss); min-height: 1.4em; margin: 0; }
.notice { background: var(--panel); border-radius: var(--radius-sm); padding: 0.9rem 1rem; font-size: var(--fs-sm); color: var(--text-2); }
.notice strong { color: var(--ink); }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.contact-list li { display: grid; gap: 0.15rem; }
.contact-list span { font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.contact-list a { font-size: 1.15rem; font-family: var(--serif); font-weight: 500; }

/* ---------- Charts (worked example) ---------- */
.figure { background: #fff; border: 1px solid var(--rule); border-radius: 14px; padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); }
.figure__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 1.5rem; align-items: flex-start; margin-bottom: 1.25rem; }
.figure__title { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; margin: 0 0 0.25rem; }
.figure__sub { margin: 0; font-size: var(--fs-sm); color: var(--text-3); }
.figure__foot { margin-top: 1.25rem; font-size: var(--fs-xs); color: var(--text-3); }
.legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: var(--fs-sm); color: var(--text-2); list-style: none; margin: 0; padding: 0; }
.legend li { display: inline-flex; align-items: center; gap: 0.5rem; }
.legend i { width: 14px; height: 10px; border-radius: 3px; display: inline-block; }
.seg-toggle { display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; padding: 3px; }
.seg-toggle button { font: 500 var(--fs-xs) var(--sans); border: 0; background: none; padding: 0.4rem 0.8rem; border-radius: 999px; cursor: pointer; color: var(--text-2); }
.seg-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.bars { display: grid; gap: 1.1rem; }
.bars__row { display: grid; grid-template-columns: 4.5rem 1fr; gap: 0.25rem 1rem; align-items: center; }
.bars__label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.bars__track { position: relative; height: 24px; display: flex; gap: 2px; cursor: default; }
.bars__seg { height: 100%; transition: width 0.45s var(--ease); min-width: 0; }
.bars__seg--dx { background: var(--display-teal); border-radius: 0; }
.bars__seg--un { background: var(--bar-1); border-radius: 0 4px 4px 0; }
.bars__val { grid-column: 2; font-size: var(--fs-xs); color: var(--text-2); font-variant-numeric: tabular-nums; }
.bars__val b { color: var(--ink); font-weight: 600; }
.bars__axis { grid-column: 2; display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--text-3); border-top: 1px solid var(--rule); padding-top: 0.35rem; font-variant-numeric: tabular-nums; }

.tooltip { position: fixed; z-index: 80; pointer-events: none; background: var(--ink); color: #fff; font-size: var(--fs-xs); line-height: 1.45; padding: 0.6rem 0.75rem; border-radius: 8px; box-shadow: var(--shadow); max-width: 260px; opacity: 0; transform: translateY(4px); transition: opacity 0.12s, transform 0.12s; }
.tooltip.is-on { opacity: 1; transform: none; }
.tooltip b { font-weight: 600; }
.tooltip .sw { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 0.35rem; }

.controls { display: grid; gap: 1.25rem; }
.control { display: grid; gap: 0.35rem; }
.control__top { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--fs-sm); }
.control__top label { font-weight: 600; color: var(--ink); }
.control__top output { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--deep-teal); }
.control small { color: var(--text-3); font-size: var(--fs-xs); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--deep-teal) var(--pct, 50%), var(--rule) var(--pct, 50%)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--rule); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--deep-teal); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); margin-top: -8px; box-shadow: 0 1px 3px rgb(0 0 0 / 0.15); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); }
.readout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; margin-bottom: 1.5rem; }
.readout > div { padding: 1rem 1.1rem; }
.readout > div + div { border-left: 1px solid var(--rule); }
.readout b { display: block; font-family: var(--serif); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); font-weight: 500; line-height: 1.05; font-variant-numeric: tabular-nums; }
.readout span { font-size: var(--fs-xs); color: var(--text-3); }
.readout .delta { color: var(--moss); font-weight: 600; font-family: var(--sans); font-size: var(--fs-xs); margin-left: 0.25rem; vertical-align: 0.3em; }
@media (max-width: 520px) { .readout { grid-template-columns: 1fr; } .readout > div + div { border-left: 0; border-top: 1px solid var(--rule); } }
.preset-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.preset-row button { font: 500 var(--fs-xs) var(--sans); padding: 0.45rem 0.8rem; border-radius: 999px; border: 1px solid var(--rule); background: #fff; color: var(--ink); cursor: pointer; }
.preset-row button:hover, .preset-row button[aria-pressed="true"] { border-color: var(--ink); background: var(--panel); }

table.data { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
table.data caption { text-align: left; font-size: var(--fs-xs); color: var(--text-3); padding-bottom: 0.5rem; }
table.data th, table.data td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--rule); text-align: right; }
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data thead th { font-weight: 600; color: var(--text-3); font-size: var(--fs-xs); letter-spacing: 0.04em; }
table.data tfoot td { font-weight: 600; border-bottom: 0; }
.table-wrap { overflow-x: auto; }
details.table-view { margin-top: 1rem; }
details.table-view summary { cursor: pointer; font-size: var(--fs-sm); font-weight: 600; color: var(--deep-teal); }
details.table-view[open] summary { margin-bottom: 0.75rem; }

.dotplot svg { width: 100%; height: auto; overflow: visible; }
.dotplot text { font-family: var(--sans); fill: var(--text-2); font-size: 12px; }
.dotplot .lbl { fill: var(--ink); font-weight: 600; font-size: 13px; }
.dotplot .role { fill: var(--text-3); font-size: 11px; }
.dotplot .grid-l { stroke: var(--rule); stroke-width: 1; }
.dotplot .rng { stroke: var(--bar-2); stroke-width: 2; stroke-linecap: round; }
.dotplot .pt { fill: var(--deep-teal); stroke: #fff; stroke-width: 2; }
.dotplot .pt--cons { fill: var(--ink); }
.dotplot .band { fill: var(--panel); }
.dotplot .hit { fill: transparent; cursor: default; }

.flow { list-style: none; margin: 0; padding: 0; counter-reset: f; }
.flow li { display: grid; grid-template-columns: 7.25rem 1fr; gap: 1rem; align-items: baseline; padding: 0.85rem 0; border-bottom: 1px solid var(--rule); }
.flow b { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums lining-nums; }
.flow span { color: var(--text-2); font-size: var(--fs-sm); }
.flow span em { font-style: normal; color: var(--text-3); }
.flow li.is-final b { color: var(--ink); }
.flow li.is-final { border-bottom: 2px solid var(--ink); }
.flow li.is-final b::after { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--copper); margin-left: 0.4rem; vertical-align: 0.2em; }

.lever { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1.25rem; padding: 1.25rem 0; border-top: 1px solid var(--rule); }
.lever__n { font-family: var(--serif); font-size: 2rem; line-height: 1; font-weight: 500; color: var(--ink); min-width: 3.2ch; font-variant-numeric: lining-nums; }
.lever h3 { font-size: 1.15rem; margin: 0.2rem 0 0.3rem; }
.lever p { grid-column: 2; margin: 0; color: var(--text-2); font-size: var(--fs-sm); }

.badge { display: inline-block; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.05em; padding: 0.25rem 0.6rem; border-radius: 999px; background: var(--panel); color: var(--deep-teal); }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.check-list li { padding-left: 1.75rem; position: relative; color: var(--text-2); font-size: var(--fs-sm); }
.check-list li::before { position: absolute; left: 0; top: 0; font-weight: 700; font-family: var(--sans); }
.check-list--yes li::before { content: "✓"; color: var(--moss); }
.check-list--q li::before { content: "?"; color: var(--clay); left: 0.2rem; }

/* ---------- References ---------- */
.refs { font-size: var(--fs-xs); color: var(--text-3); padding-left: 1.4em; margin: 0; }
.refs li { margin-bottom: 0.4rem; }
.refs a { color: var(--text-2); word-break: break-word; }
.refs-block { border-top: 1px solid var(--rule); padding-top: 1.5rem; }
.refs-block h2 { font-family: var(--sans); font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); font-weight: 600; margin-bottom: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C3D2D4; padding: clamp(3rem, 2rem + 3vw, 4.5rem) 0 2rem; font-size: var(--fs-sm); }
.site-footer a { color: #E4ECEC; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.footer__brand .lockup { color: #fff; }
.footer__brand .lockup__desc { color: #8FC3CF; }
.footer__brand p { margin-top: 1.25rem; max-width: 36ch; }
.footer__h { font-size: var(--fs-xs); letter-spacing: 0.18em; text-transform: uppercase; color: #8FC3CF; font-weight: 600; margin-bottom: 0.9rem; }
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.footer__base { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / 0.12); display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; font-size: var(--fs-xs); color: #9FB3B6; }
.footer__base p { margin: 0; max-width: 80ch; }

/* ---------- Reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.notfound img { width: 72px; margin: 0 auto 2rem; }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle, .btn, .preset-row, .controls { display: none !important; }
  .section { padding: 1.5rem 0; }
  a { color: inherit; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

@media (forced-colors: active) {
  .funnel__bar, .funnel__dot, .bars__seg { forced-color-adjust: none; }
}

/* ---------- Dictionary accent (About) ---------- */
.page-head__grid { display: grid; gap: 2.5rem; align-items: end; }
@media (min-width: 900px) { .page-head__grid { grid-template-columns: 1fr 320px; gap: 4rem; } }
.defn {
  font-family: var(--serif); color: var(--text-2);
  border-left: 1px solid var(--rule); padding: 0.25rem 0 0.25rem 1.5rem;
  max-width: 360px; font-size: 0.95rem; line-height: 1.5;
}
.defn p { margin: 0; }
.defn__word { font-size: 1.6rem; font-weight: 600; color: var(--ink); letter-spacing: 0.01em; font-variation-settings: "opsz" 72; line-height: 1.1; }
.defn__meta { margin-top: 0.2rem !important; color: var(--text-3); font-size: 0.9rem; }
.defn__pron { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.02em; }
.defn__senses { margin: 0.9rem 0 0.9rem; padding-left: 1.15rem; display: grid; gap: 0.45rem; }
.defn__senses li::marker { font-weight: 600; color: var(--text-3); font-size: 0.85em; }
.defn__ours { color: var(--ink); font-style: italic; }
.defn__ours::marker { color: var(--deep-teal) !important; }
.defn__label {
  font-family: var(--sans); font-style: normal; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--deep-teal); border: 1px solid currentColor; border-radius: 3px; padding: 0.05rem 0.35rem; margin-right: 0.35rem; vertical-align: 0.15em;
}
.defn__ety { font-size: 0.8rem; color: var(--text-3); border-top: 1px dashed var(--rule); padding-top: 0.6rem !important; }
@media (max-width: 899px) { .defn { border-left: 0; border-top: 1px solid var(--rule); padding: 1.25rem 0 0; } }
