/* BF Consulting Group: site styles */
:root {
  --abyss: #06101C;
  --navy: #0A1A2D;
  --navy-2: #0E2239;
  --navy-3: #142F4D;
  --navy-4: #1C3D62;
  --ice: #EAF0F6;
  --paper: #F6F9FC;
  --white: #F4F7FB;
  --mist: #A9BCD2;
  --mist-2: #8098B4;
  --slate: #455B74;
  --ink: #0A1A2D;
  --line: rgba(169, 188, 210, .16);
  --line-strong: rgba(169, 188, 210, .3);
  --line-light: #D2DCE7;
  --accent: #9DC3EE;
  --red: #B9483B;
  --green: #3F8C60;

  --display: "Libre Caslon Display", "Libre Caslon Text", "Big Caslon", Georgia, serif;
  --serif: "Libre Caslon Text", "Big Caslon", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(80px, 11vw, 144px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--white);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.light :focus-visible, .on-light:focus-visible { outline-color: var(--navy-4); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 2px;
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons: squared, quiet, confident */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1.05em 1.7em; border-radius: 2px; border: 1px solid transparent;
  font-family: var(--sans); font-weight: 600; font-size: .95rem; letter-spacing: .015em; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: #D6E3F1; }
.btn-line { border-color: var(--line-strong); color: var(--white); }
.btn-line:hover { border-color: var(--white); background: rgba(244, 247, 251, .05); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-4); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 26, 45, .86);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--white); }
.brand-mark { width: 38px; height: 17px; fill: currentColor; shape-rendering: crispEdges; flex: none; }
.brand-name { font-family: var(--serif); font-size: 1.1rem; letter-spacing: .03em; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; font-size: .95rem; color: var(--mist); transition: color .2s ease; }
.nav a:hover { color: var(--white); }
.nav a[aria-current="page"] { color: var(--white); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 9px; }
.nav .btn { padding: .78em 1.2em; color: var(--ink); }
.menu-btn {
  display: none; background: none; border: 1px solid var(--line-strong); border-radius: 2px;
  padding: .5em 1em; color: var(--white); font-size: .95rem; cursor: pointer;
}

/* Section scaffolding */
.section { padding-block: var(--section); }
.light { background: var(--ice); color: var(--ink); }
.section-title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.4rem, 4.6vw, 3.75rem); line-height: 1.04; letter-spacing: -.005em;
  max-width: 18ch;
}
.lede { margin-top: 24px; max-width: 36em; font-size: clamp(1.0625rem, 1.4vw, 1.2rem); color: var(--mist); }
.light .lede { color: var(--slate); }

/* Footer */
.site-footer { background: var(--abyss); color: var(--mist); font-size: .95rem; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px 48px; padding-block: 56px 40px; }
.footer-brand p { margin-top: 12px; font-family: var(--serif); font-style: italic; color: var(--mist); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 30px; align-items: center; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: var(--white); }
.footer-legal { width: 100%; padding-top: 24px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--mist-2); }

/* Practice-chart rows (shared by the home page chart and the metrics index) */
.rows { display: flex; flex-direction: column; }
.rows li { padding-block: calc(var(--s) * .1); }
.row {
  display: grid; grid-template-columns: 2.2em 1fr 3.8em; align-items: center;
  padding: .12em 0; border-radius: 2px; text-align: center; text-decoration: none; color: inherit;
  transition: background-color .2s ease;
}
.row:hover, .row.is-active { background: #E6EDF5; }
.row .ln, .row .va { font-family: var(--sans); font-size: .76em; color: #6B7F96; font-variant-numeric: tabular-nums; line-height: 1; }
.row .ln { text-align: left; padding-left: .5em; }
.row .va { text-align: right; padding-right: .5em; }
.row .letters {
  font-family: var(--serif); font-weight: 700; font-size: var(--s); line-height: 1.14;
  letter-spacing: .085em; white-space: nowrap;
}
.rows .rule-red::after, .rows .rule-green::after { content: ""; display: block; height: 2px; margin: .45em 2.4em .25em; }
.rows .rule-red::after { background: var(--red); }
.rows .rule-green::after { background: var(--green); }

/* Responsive */
@media (max-width: 920px) {
  .menu-btn { display: inline-block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 78px;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--navy); padding: 8px var(--gutter) 28px; border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 15px 0; width: 100%; font-size: 1.0625rem; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { text-decoration: none; }
  .nav .btn { margin-top: 20px; width: auto; border-bottom: 0; padding: .95em 1.4em; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .brand-name { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation: none !important; }
}

/* Formulas (home page preview and metrics page) */
.formula {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px;
  font-family: var(--serif); font-size: 1.15rem; line-height: 1.35;
}
.formula .f-name { font-style: italic; }
.formula .f-op { font-family: var(--sans); font-weight: 400; opacity: .7; }
.formula .rhs { display: inline-flex; align-items: center; gap: 18px; max-width: 100%; }
.formula .frac { display: inline-flex; flex-direction: column; text-align: center; max-width: 22em; text-wrap: balance; }
.formula .num { padding: 0 .3em .4em; border-bottom: 1px solid currentColor; }
.formula .den { padding: .4em .3em 0; }
.formula .k { font-family: var(--sans); font-variant-numeric: tabular-nums; }


/* ===== Home and shared sections ===== */
/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(55% 75% at 80% 45%, rgba(122, 166, 218, .17), transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, #0C1F36 100%);
}
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: clamp(48px, 7vw, 104px); align-items: center;
  padding-block: clamp(64px, 9vw, 120px) clamp(84px, 10vw, 140px);
}
.hero h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(3rem, 6.5vw, 5.8rem); line-height: 1; letter-spacing: -.012em;
  max-width: 11ch;
}
.hero .lede { margin-top: 32px; max-width: 30em; }
.hero-actions { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-phone { margin-top: 26px; font-size: .95rem; color: var(--mist-2); }
.hero-phone a { color: var(--white); text-underline-offset: 4px; text-decoration-color: var(--line-strong); }

/* The practice chart */
.chart-wrap { container-type: inline-size; }
.chart-frame {
  padding: 12px; border: 1px solid var(--line-strong); border-radius: 3px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.01));
  box-shadow: 0 60px 110px -40px rgba(0, 0, 0, .85), 0 0 160px rgba(157, 195, 238, .10);
}
.chart {
  background: #FBFCFD; color: #0C1724; border-radius: 1px;
  padding: 1.7em 1.1em 1.4em;
  font-size: clamp(9px, 3.05cqi, 16px);
  box-shadow: inset 0 0 50px rgba(170, 195, 225, .22);
}
.chart .row .letters {
  transition: filter 1.1s cubic-bezier(.2, .7, .2, 1) calc(var(--i) * 70ms), opacity 1.1s ease calc(var(--i) * 70ms);
}
.js .chart[data-lens="1"] .row .letters { filter: blur(var(--b)); opacity: var(--o, 1); }
.chart-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 28px; }
.lens-q { font-family: var(--serif); font-style: italic; font-size: 1.3rem; }
.lens-pause {
  display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 4px 0;
  color: var(--mist-2); font-size: .85rem; letter-spacing: .02em; cursor: pointer;
}
.lens-pause:hover { color: var(--white); }
.lens-pause .icon { width: 9px; height: 10px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.lens-pause[aria-pressed="true"] .icon { border: 0; width: 0; height: 0; border-left: 9px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.lens-progress { position: relative; height: 1px; margin-top: 14px; background: var(--line); overflow: hidden; }
.lens-progress span { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); }
.chart-link { display: inline-block; margin-top: 18px; font-size: .95rem; color: var(--white); text-underline-offset: 6px; text-decoration-color: var(--line-strong); }
.chart-link:hover { text-decoration-color: var(--white); }
html:not(.js) .lens-pause, html:not(.js) .lens-progress { display: none; }

/* ---------- Intro ---------- */
.intro { border-top: 1px solid var(--line); }
.statement { font-family: var(--display); font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.18; max-width: 22em; }
.intro .support { margin-top: 32px; max-width: 40em; color: var(--mist); }
.principles { margin-top: clamp(56px, 8vw, 96px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.principle { padding-top: 28px; border-top: 1px solid var(--line-strong); }
.principle .e { width: 20px; height: 20px; fill: var(--accent); shape-rendering: crispEdges; margin-bottom: 22px; }
.principle h3 { font-family: var(--serif); font-size: 1.4rem; line-height: 1.25; }
.principle p { margin-top: 12px; color: var(--mist); }

/* ---------- Consulting (light) ---------- */
.consult-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.consult-grid .head { position: sticky; top: 118px; }
.consult-grid .head .btn { margin-top: 40px; }
.block + .block { margin-top: clamp(56px, 7vw, 88px); }
.block-title { font-family: var(--serif); font-size: 1.45rem; line-height: 1.2; margin-bottom: 14px; }
.types div { display: grid; grid-template-columns: minmax(0, 12em) minmax(0, 1fr); gap: 6px 32px; padding-block: 22px; border-bottom: 1px solid var(--line-light); }
.types div:first-child { border-top: 1px solid var(--ink); }
.types dt { font-weight: 600; }
.types dd { color: var(--slate); }
.steps { counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 6px 20px; padding-block: 26px; border-bottom: 1px solid var(--line-light); }
.steps li:first-child { border-top: 1px solid var(--ink); }
.steps li::before { content: counter(step); grid-row: span 2; font-family: var(--display); font-size: 3rem; line-height: .9; color: var(--navy-4); }
.steps h4 { font-family: var(--serif); font-size: 1.3rem; line-height: 1.25; }
.steps p { color: var(--slate); }

/* ---------- Metrics band ---------- */
.metrics-band { background: var(--navy-2); border-block: 1px solid var(--line); }
.band-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 96px); align-items: center; }
.band-grid .btn { margin-top: 36px; }
.preview { padding: clamp(28px, 4vw, 48px); background: var(--navy-3); border: 1px solid var(--line); border-radius: 3px; }
.preview .formula { font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.preview .note { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--mist); font-size: .95rem; }

/* ---------- Education ---------- */
.edu-grid { margin-top: clamp(48px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.symposium { background: var(--navy-2); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.duochrome { height: 3px; background: linear-gradient(90deg, var(--red) 0 50%, var(--green) 50% 100%); }
.symposium-body { padding: clamp(28px, 4vw, 52px); }
.symposium h3 { font-family: var(--display); font-size: clamp(2rem, 3.2vw, 2.6rem); line-height: 1.08; }
.symposium .sub { margin-top: 10px; color: var(--mist); }
.facts { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 8.5em) minmax(0, 1fr); }
.facts dt, .facts dd { padding-block: 15px; border-top: 1px solid var(--line); }
.facts dt { font-weight: 600; padding-right: 16px; }
.facts dd { color: var(--mist); }
.next { margin-top: 36px; padding: 26px; background: var(--navy-3); border-radius: 2px; }
.next p { font-family: var(--serif); font-size: 1.15rem; }
.next .hint { font-family: var(--sans); font-size: .95rem; color: var(--mist); margin-top: 6px; }
.notify { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.notify input {
  flex: 1 1 220px; min-width: 0; padding: .95em 1em; border-radius: 2px;
  border: 1px solid var(--line-strong); background: var(--navy); color: var(--white); font-size: 1rem;
}
.notify input::placeholder { color: var(--mist-2); }
.notify input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-status { margin-top: 12px; font-size: .95rem; }
.form-status:empty { display: none; }
.next .form-status { color: var(--accent); }
.next .form-status.is-error { color: #F0A49A; }

.past h3 { font-family: var(--serif); font-size: 1.45rem; }
.past ol { margin-top: 22px; border-left: 1px solid var(--line-strong); }
.past li { position: relative; padding: 0 0 32px 28px; }
.past li::before { content: ""; position: absolute; left: -6px; top: .5em; width: 11px; height: 11px; border-radius: 50%; background: var(--navy); border: 1px solid var(--accent); }
.past time { display: block; font-weight: 600; font-size: .95rem; letter-spacing: .01em; }
.past .title { font-family: var(--serif); font-size: 1.25rem; line-height: 1.3; margin-top: 4px; }
.past .desc { color: var(--mist); font-size: 1rem; margin-top: 4px; }
.past .more-note { padding-top: 24px; border-top: 1px solid var(--line); color: var(--mist); font-size: 1rem; }
.past .more-note a { color: var(--white); text-underline-offset: 4px; }

/* ---------- Doctors ---------- */
.doctors { background: var(--navy-2); border-top: 1px solid var(--line); }
.docs { margin-top: clamp(56px, 7vw, 88px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 7vw, 96px); }
.doc-photo {
  position: relative; aspect-ratio: 4 / 5; max-width: 360px; overflow: hidden; border-radius: 2px;
  background: linear-gradient(160deg, var(--navy-4) 0%, var(--navy-3) 35%, var(--navy) 100%);
  display: grid; place-items: center;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
}
.doc-photo::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(244, 247, 251, .14); pointer-events: none; z-index: 2; }
.doc-photo svg { width: 30%; fill: var(--white); opacity: .92; shape-rendering: crispEdges; }
.doc-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; z-index: 1; }
.doc h3 { margin-top: 36px; font-family: var(--display); font-size: clamp(1.9rem, 3vw, 2.4rem); line-height: 1.1; }
.doc h3 .cred { display: block; margin-top: 8px; font-family: var(--sans); font-size: .95rem; letter-spacing: .08em; color: var(--mist); }
.doc .focus { margin-top: 14px; color: var(--accent); font-weight: 500; letter-spacing: .01em; }
.doc .bio { margin-top: 22px; max-width: 36em; color: #DCE5EF; }
.doc .bio p + p { margin-top: 16px; }
.highlights { margin-top: 28px; }
.highlights li { position: relative; padding: 14px 0 14px 24px; border-top: 1px solid var(--line); font-size: 1rem; }
.highlights li::before { content: ""; position: absolute; left: 0; top: 1.3em; width: 7px; height: 7px; background: var(--accent); }
details.more { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
details.more summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: "+"; font-family: var(--serif); font-size: 1.5rem; line-height: 1; color: var(--accent); transition: transform .25s ease; }
details.more[open] summary::after { transform: rotate(45deg); }
details.more ul { padding-bottom: 18px; }
details.more li { padding: 6px 0; color: var(--mist); font-size: 1rem; }

/* ---------- Contact ---------- */
.contact { border-top: 1px solid var(--line); background: radial-gradient(50% 60% at 20% 30%, rgba(122, 166, 218, .10), transparent 70%), var(--navy); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 104px); align-items: start; }
.reach { margin-top: 48px; }
.reach div { padding-block: 18px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 16px; }
.reach dt { color: var(--mist-2); }
.reach dd a { text-decoration: none; }
.reach dd a:hover { text-decoration: underline; text-underline-offset: 4px; }

.form { background: var(--paper); color: var(--ink); border-radius: 3px; padding: clamp(28px, 4vw, 52px); box-shadow: 0 60px 110px -50px rgba(0, 0, 0, .8); }
.form-title { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 26px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; }
.field label, .field legend { font-weight: 600; font-size: .95rem; padding: 0; }
.field .opt { font-weight: 400; color: var(--slate); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  width: 100%; padding: .8em .9em; border: 1px solid #B8C6D6; border-radius: 2px; background: #fff;
  font-size: 1rem; line-height: 1.4; color: var(--ink);
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--navy-4); outline-offset: 1px; border-color: var(--navy-4); }
.form [aria-invalid="true"] { border-color: var(--red); }
.error { color: var(--red); font-size: .9rem; }
.error:empty { display: none; }
fieldset.field { border: 0; padding: 0; margin: 0 0 20px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-block; padding: .6em 1.05em; border: 1px solid #B8C6D6; border-radius: 2px; cursor: pointer; font-size: .95rem; background: #fff;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.choice input:checked + span { background: var(--navy); color: var(--white); border-color: var(--navy); }
.choice input:focus-visible + span { outline: 2px solid var(--navy-4); outline-offset: 2px; }
.form .btn { margin-top: 6px; }
.form .form-status { color: var(--navy-4); }
.form-note { margin-top: 14px; font-size: .875rem; color: var(--slate); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; }
  .chart-wrap { max-width: 560px; }
  .consult-grid, .contact-grid, .edu-grid, .band-grid { grid-template-columns: 1fr; }
  .consult-grid .head { position: static; }
}
@media (max-width: 860px) {
  .principles, .docs { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .types div, .facts { grid-template-columns: 1fr; }
  .facts dd { border-top: 0; padding-top: 0; }
  .hero-actions .btn { width: 100%; }
  .lens-q { font-size: 1.1rem; }
}

/* ===== Metrics guide and inner pages ===== */
/* ---------- Page hero ---------- */
.page-hero {
  background:
    radial-gradient(50% 80% at 85% 30%, rgba(122, 166, 218, .15), transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, #0C1F36 100%);
  padding-block: clamp(72px, 10vw, 136px) clamp(64px, 8vw, 112px);
}
.page-hero h1 { font-family: var(--display); font-size: clamp(3.2rem, 7.4vw, 6.4rem); line-height: .98; letter-spacing: -.012em; }
.page-hero .lede { margin-top: 30px; max-width: 34em; }

/* ---------- Guide ---------- */
.guide { padding-block: var(--section); }
.guide-grid { display: grid; grid-template-columns: minmax(0, 310px) minmax(0, 1fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.toc { position: sticky; top: 112px; }
.toc-chart {
  container-type: inline-size;
  background: #FBFCFD; color: #0C1724; border: 1px solid var(--line-light); border-radius: 2px;
  padding: 1.3em .8em 1em; font-size: 13px;
  box-shadow: 0 40px 70px -50px rgba(10, 26, 45, .45);
}
.toc .row.is-active { background: #DFE8F2; }
.toc .row.is-active .letters { color: var(--navy-4); }
.toc .row .letters { transition: color .2s ease; }
.toc-cta { margin-top: 22px; font-size: .95rem; color: var(--slate); }
.toc-cta a { color: var(--ink); text-underline-offset: 4px; }

.metric { padding-bottom: clamp(64px, 8vw, 96px); }
.metric + .metric { padding-top: clamp(64px, 8vw, 96px); border-top: 1px solid var(--line-light); }
.metric-line { font-size: .9rem; color: var(--slate); font-variant-numeric: tabular-nums; }
.metric h2 { margin-top: 10px; font-family: var(--display); font-size: clamp(2.4rem, 4.2vw, 3.4rem); line-height: 1.04; }
.metric .what { margin-top: 20px; max-width: 34em; font-size: clamp(1.125rem, 1.5vw, 1.25rem); line-height: 1.55; }
.calc { margin-top: 36px; background: #fff; border: 1px solid var(--line-light); border-radius: 2px; padding: clamp(22px, 3.2vw, 36px); }
.calc h3, .metric-cols h3 { font-family: var(--sans); font-weight: 600; font-size: .95rem; letter-spacing: .01em; color: var(--navy-4); }
.calc .formula { margin-top: 18px; }
.calc .formula + .formula { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line-light); }
.calc .tip { margin-top: 18px; color: var(--slate); font-size: .95rem; }
.metric-cols { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px clamp(32px, 5vw, 64px); }
.metric-cols p { margin-top: 10px; color: var(--slate); }
.metric-cols ul { margin-top: 10px; }
.metric-cols li { position: relative; padding: 9px 0 9px 20px; border-bottom: 1px solid var(--line-light); color: var(--slate); }
.metric-cols li:first-child { border-top: 1px solid var(--line-light); }
.metric-cols li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 6px; height: 6px; background: var(--navy-4); }
.line-note { margin-top: 48px; padding: 4px 0 4px 22px; border-left: 3px solid; max-width: 38em; }
.line-note.red { border-color: var(--red); }
.line-note.green { border-color: var(--green); }
.line-note p { font-family: var(--serif); font-size: 1.15rem; line-height: 1.5; }

.beyond { padding-top: clamp(56px, 7vw, 88px); border-top: 1px solid var(--ink); }
.beyond h2 { font-family: var(--display); font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.08; max-width: 20ch; }
.beyond p { margin-top: 18px; max-width: 36em; color: var(--slate); }

/* ---------- Closing call to action ---------- */
.cta-band { background: radial-gradient(50% 80% at 15% 40%, rgba(122, 166, 218, .12), transparent 70%), var(--navy); border-top: 1px solid var(--line); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 40px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

@media (max-width: 960px) {
  .guide-grid { grid-template-columns: 1fr; }
  .toc { position: static; max-width: 420px; }
}
@media (max-width: 640px) {
  .metric-cols { grid-template-columns: 1fr; }
  .cta-actions .btn { width: 100%; }
  .formula { font-size: 1.05rem; }
}

/* ===== Multi-page additions ===== */
.page-hero .hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }

.text-link {
  display: inline-block; font-weight: 600; font-size: .98rem; letter-spacing: .01em;
  text-underline-offset: 7px; text-decoration-thickness: 1px; text-decoration-color: currentColor;
}
.text-link:hover { text-decoration-thickness: 2px; }
.light .text-link { color: var(--ink); }
.text-link.on-dark { color: var(--white); text-decoration-color: var(--line-strong); }
.text-link.on-dark:hover { text-decoration-color: var(--white); }

/* Home: the two offerings */
.offer-grid { margin-top: clamp(48px, 6vw, 72px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
.offer {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line-light); border-radius: 3px; overflow: hidden;
  padding: clamp(30px, 4vw, 56px);
}
.offer .duochrome { position: absolute; top: 0; left: 0; right: 0; }
.offer h3 { font-family: var(--display); font-size: clamp(2rem, 3.2vw, 2.6rem); line-height: 1.06; }
.offer > p { margin-top: 16px; color: var(--slate); max-width: 30em; }
.offer ul { margin-top: 28px; margin-bottom: 36px; }
.offer li { padding: 13px 0 13px 22px; border-top: 1px solid var(--line-light); position: relative; }
.offer li:last-child { border-bottom: 1px solid var(--line-light); }
.offer li::before { content: ""; position: absolute; left: 0; top: 1.25em; width: 6px; height: 6px; background: var(--navy-4); }
.offer .text-link { margin-top: auto; align-self: flex-start; }

/* Home: doctors preview */
.home-doctors { background: var(--navy-2); border-top: 1px solid var(--line); }
.doc-teasers { margin-top: clamp(48px, 6vw, 72px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); }
.doc-teaser { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: clamp(22px, 3vw, 36px); align-items: center; }
.doc-teaser .doc-photo { max-width: 190px; }
.doc-teaser .doc-photo::after { inset: 8px; }
.doc-teaser h3 { font-family: var(--display); font-size: clamp(1.7rem, 2.4vw, 2.1rem); line-height: 1.1; }
.doc-teaser h3 .cred { display: block; margin-top: 8px; font-family: var(--sans); font-size: .9rem; letter-spacing: .08em; color: var(--mist); }
.doc-teaser .focus { margin-top: 12px; color: var(--accent); font-weight: 500; }
.doc-teaser p.short { margin-top: 10px; color: var(--mist); font-size: 1rem; }
.home-doctors .more-row { margin-top: clamp(40px, 5vw, 56px); padding-top: 28px; border-top: 1px solid var(--line); }

/* Consulting: static chart beside the metrics copy */
.static-chart {
  container-type: inline-size; background: #FBFCFD; color: #0C1724; border-radius: 2px;
  padding: 1.5em 1em 1.2em; font-size: 15px;
  box-shadow: 0 0 0 12px rgba(255, 255, 255, .04), 0 0 0 13px var(--line-strong), 0 60px 110px -40px rgba(0, 0, 0, .85);
}

/* Education: present or sponsor */
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); margin-top: clamp(40px, 5vw, 56px); }
.two-col h3 { font-family: var(--serif); font-size: 1.45rem; }
.two-col p { margin-top: 12px; color: var(--slate); }
.two-col .text-link { margin-top: 18px; }

/* Contact page */
.contact-page { padding-block: clamp(64px, 9vw, 120px) var(--section); }
.contact-page h1 { font-family: var(--display); font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 1.03; max-width: 14ch; }
.form-done { display: none; }
.form.is-sent .form-body { display: none; }
.form.is-sent .form-done { display: block; }
.form-done h2 { font-family: var(--display); font-size: clamp(1.9rem, 3vw, 2.4rem); line-height: 1.1; }
.form-done p { margin-top: 14px; color: var(--slate); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin-top: 14px; padding: 14px 16px; border-left: 3px solid var(--red); background: #FBEFED; color: #6E231B; font-size: .95rem; }
.form-error:empty { display: none; }
.form-error a { color: inherit; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* 404 */
.not-found { min-height: 62vh; display: grid; align-items: center; }
.not-found h1 { font-family: var(--display); font-size: clamp(3rem, 7vw, 5.6rem); line-height: 1; }
.not-found .actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }

@media (max-width: 1020px) {
  .doc-teasers { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .offer-grid, .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .doc-teaser { grid-template-columns: 120px minmax(0, 1fr); }
  .doc-teaser p.short { display: none; }
  .page-hero .hero-actions .btn, .not-found .actions .btn { width: 100%; }
}

/* Heading levels on inner pages */
.symposium .symposium-h { font-family: var(--display); font-size: clamp(2rem, 3.2vw, 2.6rem); line-height: 1.08; }
.past .past-h { font-family: var(--serif); font-size: 1.45rem; }
.doc .doc-name { margin-top: 36px; font-family: var(--display); font-size: clamp(1.9rem, 3vw, 2.4rem); line-height: 1.1; }
.doc .doc-name .cred { display: block; margin-top: 8px; font-family: var(--sans); font-size: .95rem; letter-spacing: .08em; color: var(--mist); }
.doc { scroll-margin-top: 110px; }

.nav .btn[aria-current="page"] { color: var(--ink); text-decoration: none; }
