/* ==========================================================================
   UpHealth Advisory — site styles
   Palette: teal (brand) + navy (structure) + sage (accents) + gold (one CTA) on cream
   Type: Outfit (headings) + Figtree (body), 18px body
   ========================================================================== */

:root {
  /* Brand palette (final) */
  --brand-teal: #0F5E54;   /* primary brand, primary buttons, links */
  --brand-navy: #12304A;   /* headings, header bar, footer */
  --brand-sage: #7FA88E;   /* secondary accents, icons, dividers */
  --brand-gold: #C49A4A;   /* single CTA accent ("Book a call") — use sparingly */
  --bg-cream: #F7F3EA;     /* page background */
  --text-ink: #1F2A2E;     /* body text */
  --on-dark: var(--bg-cream);   /* text on teal / navy */
  --on-gold: var(--brand-navy); /* text on gold */
  --gold-hover: #D2AC62;

  /* Working scale, derived from the palette */
  --teal-950: var(--brand-navy);
  --teal-900: var(--brand-teal);
  --teal-800: #0B4A42;
  --teal-700: var(--brand-teal);
  --teal-600: #2E7466;
  --teal-300: var(--brand-sage);
  --teal-200: #C9DDD1;
  --teal-100: var(--bg-cream);
  --teal-50: #E5EDE6;
  --tint-line: #C9DDD1;

  --sand-50: #FBF8F1;
  --sand-100: #EFE9DC;
  --sand-200: #E4D9C4;
  --sand-300: #D4C29E;
  --band: #EFE9DC;
  --band-warm: #E9E1CF;

  /* Gold tints (labels, notes) */
  --gold-50: #F5EBD3;
  --gold-line: #E3CF9F;
  --gold-ink: #5E4818;

  /* Text */
  --ink: var(--text-ink);
  --ink-2: #3A4649;
  --muted: #56625F;

  /* Semantic */
  --bg: var(--bg-cream);
  --surface: #FBF8F1;
  --line: rgba(95, 140, 112, 0.28);
  --line-strong: rgba(95, 140, 112, 0.5);
  --focus: var(--brand-teal);
  --error: #a3271b;
  --success: #1d6b47;

  /* Type */
  --font-display: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Space (8pt rhythm) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(18, 48, 74, 0.06), 0 2px 8px -2px rgba(18, 48, 74, 0.06);
  --shadow: 0 24px 48px -24px rgba(18, 48, 74, 0.22), 0 2px 6px rgba(18, 48, 74, 0.05);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1200px;
  --gutter: 20px;
  --header-h: 72px;

  /* z-index scale */
  --z-header: 40;
  --z-menu: 50;
  --z-skip: 100;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 80px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem; /* 17px mobile */
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@media (min-width: 768px) { body { font-size: 1.125rem; } } /* 18px */
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-700); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-900); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--teal-950); margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: var(--s-4); top: -60px; z-index: var(--z-skip);
  background: var(--teal-900); color: var(--on-dark); padding: var(--s-3) var(--s-4); border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none; transition: top .2s var(--ease);
}
.skip-link:focus { top: var(--s-4); color: var(--on-dark); }

.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;
}

/* Placeholder marker — find every one before launch by searching for "{{" */
.ph {
  background: #fff4cc; color: #6b4e00; border-bottom: 1px dashed #b38600;
  padding: 0 .25em; border-radius: 3px; font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .82em; white-space: nowrap;
}
.on-dark .ph { background: rgba(255, 244, 204, .14); color: #ffe7a3; border-color: #ffe7a3; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--s-8); }
@media (min-width: 768px) { .section { padding-block: var(--s-9); } }
.section--tight { padding-block: var(--s-7); }
.section--sand { background: var(--sand-100); }
.section--white { background: var(--surface); }
.section--teal { background: var(--teal-900); color: var(--teal-100); }
.section--teal h2, .section--teal h3 { color: var(--on-dark); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-body); font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--teal-700);
}
.section--teal .eyebrow, .on-dark .eyebrow { color: var(--teal-200); }

.h1 { font-size: clamp(2.35rem, 1.5rem + 3.4vw, 4rem); line-height: 1.04; letter-spacing: -0.03em; }
.h2 { font-size: clamp(1.85rem, 1.35rem + 1.9vw, 2.75rem); line-height: 1.1; letter-spacing: -0.025em; }
.h3 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.125rem, 1.05rem + .35vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 58ch; }
.section--teal .lead { color: var(--teal-100); }
.muted { color: var(--muted); }
.prose { max-width: 65ch; }
.prose p + p { margin-top: var(--s-4); }

.section-head { display: grid; gap: var(--s-4); margin-bottom: var(--s-7); max-width: 720px; }
.section-head--split { max-width: none; }
@media (min-width: 960px) {
  .section-head--split { grid-template-columns: 1fr 1fr; align-items: end; gap: var(--s-8); }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--teal-900); --btn-fg: var(--on-dark); --btn-bd: var(--teal-900);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 12px 22px; border-radius: var(--radius-pill);
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
  touch-action: manipulation;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
.btn:hover svg.arrow { transform: translateX(3px); }

.btn--primary { --btn-bg: var(--brand-teal); --btn-bd: var(--brand-teal); box-shadow: 0 10px 24px -12px rgba(15, 94, 84, .5); }
.btn--primary:hover { --btn-bg: var(--teal-800); --btn-bd: var(--teal-800); }
.btn--secondary { --btn-bg: transparent; --btn-fg: var(--teal-900); --btn-bd: var(--line-strong); }
.btn--secondary:hover { --btn-bg: var(--surface); --btn-bd: var(--teal-700); --btn-fg: var(--teal-900); }
.btn--light { --btn-bg: transparent; --btn-fg: var(--on-dark); --btn-bd: rgba(247, 243, 234, .35); }
.btn--light:hover { --btn-bg: rgba(247, 243, 234, .08); --btn-bd: var(--on-dark); --btn-fg: var(--on-dark); }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: .9375rem; }
.btn[aria-busy="true"] { pointer-events: none; opacity: .75; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--teal-700);
}
.link-arrow svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(251, 248, 243, .86);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -20px rgba(18, 48, 74, .35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--teal-950); }
.brand:hover { color: var(--teal-950); }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.02em; line-height: 1; }
.brand-name span { color: var(--teal-600); font-weight: 400; }

.nav { display: none; }
@media (min-width: 1280px) {
  .nav { display: flex; align-items: center; gap: 2px; }
}
.nav a {
  position: relative; padding: 10px 12px; border-radius: var(--radius-pill);
  font-weight: 500; font-size: .9375rem; white-space: nowrap; color: var(--ink-2); text-decoration: none;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav a:hover { color: var(--teal-950); background: rgba(18, 48, 74, .06); }
.nav a[aria-current="page"] { color: var(--teal-950); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--brand-teal);
}
.header-cta { display: none; margin-left: auto; }
@media (min-width: 640px) { .header-cta { display: inline-flex; } }
@media (min-width: 1280px) { .header-cta { margin-left: 0; } }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--line-strong); background: var(--surface); cursor: pointer; font-weight: 600; font-size: .9375rem;
}
.menu-toggle svg { width: 20px; height: 20px; }
@media (min-width: 1280px) { .menu-toggle { display: none; } }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: var(--z-menu);
  background: var(--sand-50); padding: var(--s-5) var(--gutter) var(--s-7);
  display: flex; flex-direction: column; gap: var(--s-2); overflow-y: auto;
  opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden;
  transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
}
.mobile-menu.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .25s var(--ease), transform .3s var(--ease); }
.mobile-menu a:not(.btn) {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 4px; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; color: var(--teal-950); text-decoration: none;
}
.mobile-menu a[aria-current="page"] { color: var(--brand-teal); }
.mobile-menu .btn { margin-top: var(--s-5); }
@media (min-width: 1280px) { .mobile-menu { display: none; } }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: var(--s-7) var(--s-8); overflow: hidden; }
@media (min-width: 768px) { .hero { padding-block: var(--s-8) var(--s-9); } }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; max-width: 900px; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(127, 168, 142, .24), rgba(127, 168, 142, 0) 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: var(--s-8); align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.08fr .92fr; gap: var(--s-8); } }
.hero-copy { display: grid; gap: var(--s-5); }
.hero-copy .h1 { max-width: 15ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-2); }
.hero-assurance { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-2); list-style: none; font-size: .9375rem; color: var(--ink-2); }
.hero-assurance li { display: inline-flex; align-items: center; gap: 8px; }
.hero-assurance svg { width: 18px; height: 18px; color: var(--teal-600); }

.pill {
  display: inline-flex; align-items: center; gap: 10px; width: fit-content;
  padding: 6px 14px 6px 10px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-800);
}
.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-600); }
.pulse-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--teal-600); opacity: 0;
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.8); opacity: 0; } }

/* Example dashboard (hero visual) */
.dash-wrap { position: relative; }
.dash {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: var(--s-5); display: grid; gap: var(--s-5);
}
@media (min-width: 768px) { .dash { padding: var(--s-6); } }
.dash-top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-4); }
.dash-title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--teal-950); line-height: 1.3; }
.dash-sub { font-size: .8125rem; color: var(--muted); }
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-pill);
  font-size: .75rem; font-weight: 600; white-space: nowrap; background: var(--teal-50); color: var(--teal-800); border: 1px solid var(--teal-100);
}
.tag--warn { background: var(--gold-50); color: var(--teal-800); border-color: var(--gold-line); }
.meter { display: grid; gap: 8px; }
.meter-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); font-size: .9375rem; }
.meter-row strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--teal-950); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.meter-row span.target { color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
.meter-track { position: relative; height: 10px; border-radius: var(--radius-pill); background: var(--sand-100); overflow: hidden; }
.meter-fill {
  position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--teal-700), var(--teal-600));
  transform-origin: left center; transform: scaleX(var(--v, 0)); transition: transform 1.4s var(--ease);
}
.meter-fill--rn { background: linear-gradient(90deg, var(--brand-gold), var(--gold-hover)); }
.dash:not(.is-live) .meter-fill { transform: scaleX(0); }
.meter-target { position: absolute; top: -3px; bottom: -3px; right: 0; width: 2px; background: var(--teal-950); border-radius: 2px; }
.dash-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.mini { background: var(--sand-50); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-4); display: grid; gap: 4px; }
.mini-label { font-size: .8125rem; color: var(--muted); line-height: 1.35; }
.mini-value { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--teal-950); font-variant-numeric: tabular-nums; line-height: 1.1; }
.spark { height: 40px; width: 100%; }
.spark path.line { fill: none; stroke: var(--teal-600); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 300; stroke-dashoffset: 300; transition: stroke-dashoffset 1.8s var(--ease) .3s; }
.spark path.area { fill: rgba(15, 94, 84, .1); opacity: 0; transition: opacity 1s var(--ease) 1s; }
.dash.is-live .spark path.line { stroke-dashoffset: 0; }
.dash.is-live .spark path.area { opacity: 1; }

.float-card {
  position: relative; margin: -40px 0 0 -8px; width: min(290px, 82%);
  background: var(--teal-900); color: var(--teal-100); border-radius: var(--radius); padding: var(--s-4) var(--s-5);
  box-shadow: 0 24px 40px -20px rgba(18, 48, 74, .6), inset 0 1px 0 rgba(247, 243, 234, .08);
  display: grid; gap: 10px; animation: float 6s ease-in-out infinite;
}
@media (min-width: 1024px) { .float-card { margin-left: -48px; } }
.float-card-title { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); font-size: .875rem; font-weight: 600; color: var(--on-dark); }
.std-dots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.std-dots span { height: 8px; border-radius: 4px; background: rgba(247, 243, 234, .14); }
.std-dots span.on { background: var(--teal-300); }
.float-card small { font-size: .75rem; color: var(--teal-200); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.dash-caption { margin-top: var(--s-4); font-size: .8125rem; color: var(--muted); text-align: right; }

/* ---------- Problem strip ---------- */
.problems { display: grid; gap: var(--s-7); }
@media (min-width: 960px) {
  .problems { grid-template-columns: .8fr 1.2fr; gap: var(--s-9); }
  .problems-head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
}
.problems-head { display: grid; gap: var(--s-4); }
.problem-list { list-style: none; counter-reset: p; }
.problem-item { display: grid; grid-template-columns: auto 1fr; gap: var(--s-5); padding-block: var(--s-6); border-top: 1px solid var(--line-strong); }
.problem-item:last-child { border-bottom: 1px solid var(--line-strong); }
.problem-num { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--brand-teal); font-variant-numeric: tabular-nums; padding-top: 4px; }
.problem-item h3 { margin-bottom: var(--s-2); font-size: clamp(1.35rem, 1.2rem + .6vw, 1.65rem); }
.problem-item p { color: var(--ink-2); max-width: 56ch; }

/* ---------- Sector figures ---------- */
.figures { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(247, 243, 234, .12); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(247, 243, 234, .12); }
@media (min-width: 960px) { .figures { grid-template-columns: repeat(4, 1fr); } }
.figure { background: var(--teal-900); padding: var(--s-5); display: grid; gap: var(--s-2); align-content: start; }
@media (min-width: 768px) { .figure { padding: var(--s-6); } }
.figure-value { font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 1.6rem + 1.6vw, 3rem); color: var(--on-dark); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.figure-value small { font-size: .45em; font-weight: 500; color: var(--teal-200); letter-spacing: 0; margin-left: 4px; }
.figure p { font-size: .9375rem; color: var(--teal-100); line-height: 1.5; }
.figures-note { margin-top: var(--s-4); font-size: .8125rem; color: var(--teal-200); }
.figures-note a { color: var(--teal-200); }

/* ---------- Services bento ---------- */
.bento { display: grid; gap: var(--s-4); }
@media (min-width: 768px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .bento { grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: auto auto; }
  .bento .svc--feature { grid-row: span 2; }
}
.svc {
  position: relative; display: flex; flex-direction: column; gap: var(--s-4);
  padding: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  text-decoration: none; color: var(--ink); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
@media (min-width: 768px) { .svc { padding: var(--s-6); } }
.svc:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--teal-200); color: var(--ink); }
.svc:active { transform: translateY(-1px) scale(.995); }
.svc-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--teal-50); color: var(--teal-700); border: 1px solid var(--teal-100); }
.svc-icon svg { width: 24px; height: 24px; }
.svc h3 { font-size: 1.3rem; }
.svc p { color: var(--ink-2); font-size: 1rem; }
.svc .link-arrow { margin-top: auto; padding-top: var(--s-2); font-size: .975rem; }
.svc--feature { background: var(--teal-900); color: var(--teal-100); border-color: var(--teal-900); }
.svc--feature:hover { border-color: var(--teal-700); color: var(--teal-100); }
.svc--feature h3 { color: var(--on-dark); font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); }
.svc--feature p { color: var(--teal-100); font-size: 1.0625rem; }
.svc--feature .svc-icon { background: rgba(247, 243, 234, .08); color: var(--on-dark); border-color: rgba(247, 243, 234, .14); }
.svc--feature .link-arrow { color: var(--on-dark); }
.svc-feature-list { list-style: none; display: grid; gap: 10px; margin-top: var(--s-2); }
.svc-feature-list li { display: flex; gap: 10px; font-size: .975rem; color: var(--teal-100); }
.svc-feature-list svg { width: 20px; height: 20px; flex: none; color: var(--teal-300); margin-top: 3px; }
.svc-badge { position: absolute; top: var(--s-5); right: var(--s-5); }
@media (min-width: 768px) { .svc-badge { top: var(--s-6); right: var(--s-6); } }
.svc--feature .tag { background: rgba(247, 243, 234, .1); color: var(--on-dark); border-color: rgba(247, 243, 234, .18); }

/* ---------- Why us ---------- */
.why { display: grid; gap: var(--s-7); }
@media (min-width: 960px) { .why { grid-template-columns: .85fr 1.15fr; gap: var(--s-9); } }
.why-grid { display: grid; gap: 0 var(--s-6); }
@media (min-width: 640px) { .why-grid { grid-template-columns: 1fr 1fr; } }
.why-item { padding-block: var(--s-5) var(--s-6); border-top: 1px solid var(--line-strong); display: grid; gap: var(--s-3); align-content: start; }
.why-item .ico { width: 28px; height: 28px; color: var(--brand-teal); }
.why-item h3 { font-size: 1.2rem; }
.why-item p { color: var(--ink-2); font-size: 1rem; }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; gap: var(--s-5); counter-reset: step; position: relative; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
  .steps::before { content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 2px; background: repeating-linear-gradient(90deg, var(--teal-200) 0 8px, transparent 8px 14px); }
}
.step { position: relative; display: grid; gap: var(--s-3); grid-template-columns: auto 1fr; align-items: start; }
@media (min-width: 900px) { .step { grid-template-columns: 1fr; } }
.step-num {
  position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 2px solid var(--teal-700); color: var(--teal-900);
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
}
.step:first-child .step-num { background: var(--teal-900); color: var(--on-dark); border-color: var(--teal-900); }
.step h3 { font-size: 1.2rem; margin-bottom: 4px; }
.step p { color: var(--ink-2); font-size: 1rem; }
.step-body { display: grid; gap: 4px; padding-top: 6px; }
@media (min-width: 900px) { .step-body { padding-top: var(--s-2); } }

/* ---------- Credibility ---------- */
.cred { display: grid; gap: var(--s-6); align-items: center; padding: var(--s-6); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
@media (min-width: 960px) { .cred { grid-template-columns: auto 1fr; padding: var(--s-7); gap: var(--s-7); } }
.monogram {
  width: 112px; height: 112px; border-radius: 28px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--teal-800), var(--teal-950)); color: var(--sand-100);
  font-family: var(--font-display); font-size: 2.25rem; font-weight: 500; letter-spacing: -0.03em;
  box-shadow: inset 0 1px 0 rgba(247, 243, 234, .1);
}
.cred-list { list-style: none; display: grid; gap: var(--s-3) var(--s-6); }
@media (min-width: 640px) { .cred-list { grid-template-columns: 1fr 1fr; } }
.cred-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; color: var(--ink-2); }
.cred-list li strong { color: var(--teal-950); font-weight: 600; }
.cred-list svg { width: 22px; height: 22px; flex: none; color: var(--teal-600); margin-top: 2px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--teal-900); color: var(--teal-100); border-radius: var(--radius-lg); padding: var(--s-7) var(--s-5); }
@media (min-width: 768px) { .cta-band { padding: var(--s-8); } }
.cta-band::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  border: 1px solid rgba(247, 243, 234, .1); box-shadow: 0 0 0 60px rgba(247, 243, 234, .025), 0 0 0 120px rgba(247, 243, 234, .02);
  pointer-events: none;
}
.cta-band-inner { position: relative; display: grid; gap: var(--s-5); }
@media (min-width: 960px) { .cta-band-inner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s-7); } .cta-band .actions { flex-direction: column; align-items: stretch; } }
.cta-band h2 { color: var(--on-dark); }
.cta-band p { color: var(--teal-100); max-width: 52ch; margin-top: var(--s-3); font-size: 1.125rem; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-block: var(--s-7) var(--s-7); border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .page-hero { padding-block: var(--s-8) var(--s-8); } }
.page-hero-grid { display: grid; gap: var(--s-5); }
@media (min-width: 960px) { .page-hero-grid { grid-template-columns: 1.1fr .9fr; align-items: end; gap: var(--s-8); } }
.page-hero .h1 { max-width: 16ch; }
.breadcrumb { font-size: .875rem; color: var(--muted); margin-bottom: var(--s-4); }
.breadcrumb a { color: var(--muted); }

/* ---------- Services page ---------- */
.subnav { position: sticky; top: var(--header-h); z-index: 5; background: rgba(247, 243, 234, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav-inner { display: flex; gap: var(--s-2); overflow-x: auto; padding-block: var(--s-3); scrollbar-width: none; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a {
  flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong); background: var(--surface); font-size: .9rem; font-weight: 600; color: var(--ink-2); text-decoration: none;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.subnav a:hover { border-color: var(--teal-700); color: var(--teal-900); }
.subnav a.is-active { background: var(--teal-900); color: var(--on-dark); border-color: var(--teal-900); }

.service { padding-block: var(--s-8); border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .service { padding-block: var(--s-9); } }
.service:nth-of-type(even) { background: var(--surface); }
.service-grid { display: grid; gap: var(--s-6); }
@media (min-width: 960px) { .service-grid { grid-template-columns: .9fr 1.1fr; gap: var(--s-8); } .service-aside { position: sticky; top: calc(var(--header-h) + 96px); align-self: start; } }
.service-aside { display: grid; gap: var(--s-4); }
.service-num { font-family: var(--font-display); font-weight: 600; color: var(--brand-teal); font-size: .95rem; letter-spacing: .04em; }
.service-for { font-size: 1.0625rem; color: var(--ink-2); }
.service-for strong { color: var(--teal-950); }
.meta { display: grid; gap: 0; border-top: 1px solid var(--line-strong); margin-top: var(--s-2); }
.meta div { display: grid; grid-template-columns: 88px 1fr; gap: var(--s-4); padding-block: var(--s-3); border-bottom: 1px solid var(--line); font-size: .975rem; }
.meta dt { font-weight: 600; color: var(--muted); font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; padding-top: 3px; }
.meta dd { margin: 0; color: var(--ink); }
.service-body { display: grid; gap: var(--s-5); }
.panel { border-radius: var(--radius-lg); padding: var(--s-5); border: 1px solid var(--line); background: var(--surface); }
@media (min-width: 768px) { .panel { padding: var(--s-6); } }
.service:nth-of-type(even) .panel { background: var(--sand-50); }
.panel--sand, .service:nth-of-type(even) .panel--sand { background: var(--sand-100); border-color: transparent; }
.panel h3 { font-size: 1.05rem; margin-bottom: var(--s-4); font-family: var(--font-body); font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--teal-800); font-size: .8125rem; }
.check-list { list-style: none; display: grid; gap: var(--s-3); }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list svg { width: 22px; height: 22px; flex: none; color: var(--teal-600); margin-top: 3px; }
.deliv-list { list-style: none; display: grid; gap: 0; }
@media (min-width: 640px) { .deliv-list { grid-template-columns: 1fr 1fr; column-gap: var(--s-5); } }
.deliv-list li { display: flex; gap: 12px; align-items: flex-start; padding-block: var(--s-3); border-top: 1px solid rgba(18, 48, 74, .1); }
.deliv-list svg { width: 22px; height: 22px; flex: none; color: var(--brand-teal); margin-top: 3px; }
.note {
  display: flex; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-radius: var(--radius); background: var(--teal-50); border: 1px solid var(--teal-100);
  font-size: .9375rem; color: var(--ink-2);
}
.note svg { width: 20px; height: 20px; flex: none; color: var(--teal-700); margin-top: 3px; }

/* ---------- Principles ---------- */
.principles { list-style: none; display: grid; gap: var(--s-4); }
@media (min-width: 768px) { .principles { grid-template-columns: repeat(6, 1fr); } .principles li { grid-column: span 2; } .principles li:nth-child(4), .principles li:nth-child(5) { grid-column: span 3; } }
.principle { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-5) var(--s-5) var(--s-6); display: grid; gap: var(--s-3); align-content: start; }
.principle-num { font-family: var(--font-display); font-size: 2.5rem; font-weight: 500; line-height: 1; color: var(--teal-200); letter-spacing: -0.04em; }
.principle h3 { font-size: 1.2rem; }
.principle p { color: var(--ink-2); font-size: 1rem; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; position: relative; display: grid; gap: 0; }
.timeline::before { content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: var(--teal-100); }
.tl-item { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: var(--s-4); padding-block: var(--s-4); }
@media (min-width: 768px) { .tl-item { grid-template-columns: 48px 1fr auto; gap: var(--s-5); align-items: center; padding-block: var(--s-5); } }
.tl-dot { position: relative; width: 48px; height: 48px; border-radius: 50%; background: var(--surface); border: 2px solid var(--teal-700); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; color: var(--teal-900); }
.tl-item h3 { font-size: 1.2rem; }
.tl-item p { color: var(--ink-2); font-size: 1rem; }
.tl-time { grid-column: 2; justify-self: start; }
@media (min-width: 768px) { .tl-time { grid-column: auto; justify-self: end; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--s-3); max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.faq details[open] { border-color: var(--teal-200); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  padding: var(--s-4) var(--s-5); min-height: 64px; font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; color: var(--teal-950);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--teal-50); color: var(--teal-800); transition: transform .3s var(--ease), background-color .2s var(--ease); }
.faq summary .chev svg { width: 18px; height: 18px; }
.faq details[open] summary .chev { transform: rotate(45deg); background: var(--teal-900); color: var(--on-dark); }
.faq .faq-body { padding: 0 var(--s-5) var(--s-5); color: var(--ink-2); max-width: 68ch; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: var(--s-7); }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1.15fr .85fr; gap: var(--s-9); } .founder { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; } }
.story p { font-size: 1.125rem; color: var(--ink-2); }
.story p:first-child { font-size: clamp(1.2rem, 1.1rem + .5vw, 1.45rem); color: var(--ink); line-height: 1.5; }
.story p + p { margin-top: var(--s-5); }
.pull {
  margin-block: var(--s-7) 0; padding-left: var(--s-5); border-left: 3px solid var(--brand-teal);
  font-family: var(--font-display); font-size: clamp(1.35rem, 1.2rem + .7vw, 1.75rem); line-height: 1.3; color: var(--teal-950); letter-spacing: -0.015em; font-weight: 500;
}
.founder { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.founder-photo {
  position: relative; aspect-ratio: 4 / 3.4; background:
    radial-gradient(120% 90% at 20% 10%, rgba(127, 168, 142, .3), transparent 60%),
    linear-gradient(160deg, var(--sand-100), var(--sand-200));
  display: grid; place-items: center; text-align: center; color: var(--teal-800);
}
.founder-photo .monogram { width: 120px; height: 120px; }
.founder-photo figcaption { position: absolute; bottom: var(--s-4); left: 0; right: 0; font-size: .8125rem; color: var(--muted); }
.founder-body { padding: var(--s-5) var(--s-5) var(--s-6); display: grid; gap: var(--s-4); }
.founder-body h2 { font-size: 1.4rem; }
.founder-role { color: var(--muted); font-size: .975rem; margin-top: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chips li { padding: 6px 12px; border-radius: var(--radius-pill); background: var(--teal-50); border: 1px solid var(--teal-100); color: var(--teal-800); font-size: .875rem; font-weight: 500; }
.founder dl { display: grid; gap: var(--s-3); margin: 0; }
.founder dt { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.founder dd { margin: 0; }
.values { list-style: none; display: grid; gap: 1px; background: var(--line-strong); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 768px) { .values { grid-template-columns: repeat(4, 1fr); } }
.values li { background: var(--sand-50); padding: var(--s-6) var(--s-5); display: grid; gap: var(--s-3); }
.values svg { width: 28px; height: 28px; color: var(--brand-teal); }
.values strong { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--teal-950); letter-spacing: -0.01em; }
.values span { font-size: .975rem; color: var(--ink-2); }

/* ---------- Insights ---------- */
.posts { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .posts { grid-template-columns: repeat(6, 1fr); } .post { grid-column: span 3; } .post--feature { grid-column: span 6; } .post:nth-child(n+4) { grid-column: span 2; } }
@media (min-width: 900px) { .post:nth-child(2), .post:nth-child(3) { grid-column: span 3; } .post:nth-child(4), .post:nth-child(5) { grid-column: span 3; } }
.post { position: relative; display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); min-height: 240px; }
@media (min-width: 768px) { .post { padding: var(--s-6); } }
.post--feature { background: var(--teal-900); color: var(--teal-100); border-color: var(--teal-900); }
@media (min-width: 900px) { .post--feature { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s-7); align-items: end; min-height: 300px; } }
.post--feature h2 { color: var(--on-dark); }
.post--feature .post-sum { color: var(--teal-100); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); font-size: .8125rem; color: var(--muted); }
.post--feature .post-meta { color: var(--teal-200); }
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }
.post h2 { font-size: clamp(1.25rem, 1.15rem + .5vw, 1.55rem); line-height: 1.2; }
.post--feature h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem); }
.post-sum { color: var(--ink-2); font-size: 1rem; }
.post-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
.post--feature .post-foot { border-top-color: rgba(247, 243, 234, .14); color: var(--teal-200); }
.skeleton { display: grid; gap: 10px; }
.skeleton span { display: block; height: 10px; border-radius: 5px; background: linear-gradient(90deg, rgba(247,243,234,.08), rgba(247,243,234,.18), rgba(247,243,234,.08)); background-size: 200% 100%; animation: shimmer 2.2s linear infinite; }
.skeleton span:nth-child(2) { width: 86%; } .skeleton span:nth-child(3) { width: 64%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: var(--s-7); }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: .9fr 1.1fr; gap: var(--s-8); } }
.contact-side { display: grid; gap: var(--s-5); align-content: start; }
.booking {
  border-radius: var(--radius-lg); border: 1.5px dashed var(--teal-300); background: var(--teal-50);
  padding: var(--s-6) var(--s-5); display: grid; gap: var(--s-3); text-align: left;
}
.booking-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--teal-900); color: var(--on-dark); }
.booking-ico svg { width: 24px; height: 24px; }
.booking h2 { font-size: 1.35rem; }
.booking p { color: var(--ink-2); font-size: 1rem; }
.contact-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.contact-list li { display: flex; gap: var(--s-4); align-items: center; padding-block: var(--s-4); border-bottom: 1px solid var(--line); font-size: 1rem; }
.contact-list svg { width: 22px; height: 22px; color: var(--teal-700); flex: none; }
.contact-list .lbl { display: block; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--muted); }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-5); box-shadow: var(--shadow-sm); }
@media (min-width: 768px) { .form-card { padding: var(--s-7); } }
.form-card > h2 { font-size: 1.5rem; }
.form-card > p { color: var(--muted); font-size: .975rem; margin-top: 6px; margin-bottom: var(--s-6); }
.form-grid { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: grid; gap: var(--s-2); align-content: start; }
.field label, .field legend { font-weight: 600; font-size: .975rem; color: var(--teal-950); padding: 0; }
.req { color: var(--brand-teal); margin-left: 2px; }
.opt { color: var(--muted); font-weight: 400; font-size: .875rem; margin-left: 4px; }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--sand-50);
  font-size: 1rem; color: var(--ink); transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230F5E54' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; cursor: pointer; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--teal-300); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--teal-700); background: var(--surface); box-shadow: 0 0 0 4px rgba(15, 94, 84, .14); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--error); background: #fff8f7; }
.helper { font-size: .875rem; color: var(--muted); }
.error-msg { display: none; align-items: center; gap: 6px; font-size: .875rem; font-weight: 600; color: var(--error); }
.error-msg svg { width: 16px; height: 16px; flex: none; }
.field.has-error .error-msg { display: flex; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.checks { display: grid; gap: var(--s-2); margin-top: 4px; }
@media (min-width: 640px) { .checks { grid-template-columns: 1fr 1fr 1fr; } }
.check {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; border-radius: 12px;
  border: 1.5px solid var(--line-strong); background: var(--sand-50); cursor: pointer; font-size: .9375rem; font-weight: 500;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.check:hover { border-color: var(--teal-300); }
.check input { width: 20px; height: 20px; accent-color: var(--teal-700); flex: none; margin: 0; cursor: pointer; }
.check:has(input:checked) { border-color: var(--teal-700); background: var(--teal-50); }
.check:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; color: var(--ink-2); cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--teal-700); flex: none; cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.form-foot small { color: var(--muted); font-size: .875rem; max-width: 40ch; }
.form-alert { display: none; gap: 10px; padding: var(--s-4); border-radius: 12px; background: #fdf0ee; border: 1px solid #f1c9c3; color: var(--error); font-weight: 600; font-size: .9375rem; margin-bottom: var(--s-5); }
.form-alert.is-visible { display: flex; }
.form-alert svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(247, 243, 234, .4); border-top-color: var(--on-dark); animation: spin .8s linear infinite; display: none; }
.btn[aria-busy="true"] .spinner { display: inline-block; }
.btn[aria-busy="true"] .arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-success { display: none; text-align: center; padding: var(--s-8) var(--s-4); }
.form-success.is-visible { display: grid; gap: var(--s-4); justify-items: center; animation: rise .5s var(--ease); }
.success-ico { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: #e5f3ec; color: var(--success); }
.success-ico svg { width: 36px; height: 36px; }
.form-success h2 { font-size: 1.6rem; }
.form-success p { color: var(--ink-2); max-width: 42ch; }
.preview-note { font-size: .8125rem; color: var(--muted); background: var(--sand-100); padding: 6px 12px; border-radius: var(--radius-pill); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Legal ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.4rem; margin-top: var(--s-7); margin-bottom: var(--s-3); }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: var(--s-3); }
.legal ul { padding-left: 1.25em; display: grid; gap: 6px; margin-top: var(--s-3); }
.draft-banner { display: flex; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-radius: var(--radius); background: var(--gold-50); border: 1px solid var(--gold-line); color: var(--gold-ink); font-size: .9375rem; margin-bottom: var(--s-6); }
.draft-banner svg { width: 20px; height: 20px; flex: none; margin-top: 3px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-950); color: var(--teal-200); padding-block: var(--s-8) var(--s-6); margin-top: 0; }
.site-footer a { color: var(--teal-100); text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); text-decoration: underline; }
.footer-top { display: grid; gap: var(--s-7); padding-bottom: var(--s-7); border-bottom: 1px solid rgba(247, 243, 234, .1); }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s-8); } }
.site-footer .brand { color: var(--on-dark); }
.site-footer .brand-name span { color: var(--teal-300); }
.footer-tag { margin-top: var(--s-4); font-size: 1rem; color: var(--teal-200); max-width: 36ch; }
.footer-col h2 { font-family: var(--font-body); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--teal-300); margin-bottom: var(--s-4); }
.footer-col ul { list-style: none; display: grid; gap: 10px; font-size: .975rem; }
.footer-legal { display: grid; gap: var(--s-4); padding-top: var(--s-6); font-size: .875rem; line-height: 1.6; }
@media (min-width: 900px) { .footer-legal { grid-template-columns: 1fr 1fr; gap: var(--s-7); } }
.footer-legal p { color: var(--teal-200); }
.aoc { display: flex; gap: var(--s-3); align-items: flex-start; }
.aoc svg { width: 22px; height: 22px; flex: none; color: var(--sand-300); margin-top: 2px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid rgba(247, 243, 234, .1); font-size: .8125rem; color: var(--teal-300); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .float-card { animation: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .mobile-menu, .subnav, .cta-band, .site-footer .footer-top { display: none !important; }
  body { background: var(--on-dark); font-size: 11pt; }
}

/* ---------- Small-screen refinements ---------- */
.mobile-menu a svg { width: 22px; height: 22px; flex: none; color: var(--teal-600); }
.meter-row > span:last-child, .float-card-title span:last-child { white-space: nowrap; }
.dash-top { flex-wrap: wrap; }
@media (max-width: 479px) {
  .dash { padding: var(--s-4); gap: var(--s-4); }
  .dash-title { white-space: nowrap; }
  .meter-row { font-size: .875rem; }
  .meter-row strong { font-size: 1.15rem; }
  .mini { padding: var(--s-3); }
  .mini-value { font-size: 1.3rem; }
  .float-card { margin: 12px 0 0; width: 100%; animation: none; }
  .dash-caption { text-align: left; }
}


/* ==========================================================================
   v2 — Compliance Solutions, Case studies, home teaser
   ========================================================================== */
.header-inner { gap: var(--s-3); }
.mini-head { font-family: var(--font-body); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-800); margin-bottom: var(--s-2); }
.note--warn { background: var(--gold-50); border-color: var(--gold-line); color: var(--gold-ink); }
.note--warn svg { color: var(--gold-ink); }

/* Case labels (fixed — never remove) */
.case-label {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%;
  padding: 5px 12px 5px 10px; border-radius: var(--radius-pill);
  font-size: .8125rem; font-weight: 700; line-height: 1.3;
}
.case-label svg { width: 16px; height: 16px; flex: none; }
.case-label--public { background: var(--teal-50); color: var(--teal-800); border: 1px solid var(--teal-200); }
.case-label--illustrative { background: var(--gold-50); color: var(--gold-ink); border: 1px solid var(--gold-line); }

/* Home: lessons teaser */
.lessons { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 960px) { .lessons { grid-template-columns: 1fr 1fr; gap: var(--s-9); } }
.lessons-copy { display: grid; gap: var(--s-4); }
.finding-stack { list-style: none; display: grid; gap: var(--s-3); }
.finding {
  display: grid; gap: 8px; padding: var(--s-5); border-radius: var(--radius-lg);
  background: var(--sand-50); border: 1px solid var(--line);
}
@media (min-width: 960px) {
  .finding:nth-child(2) { margin-left: var(--s-7); }
  .finding:nth-child(3) { margin-left: var(--s-4); }
}
.finding strong { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--teal-950); line-height: 1.3; }
.finding > span:last-child { color: var(--ink-2); font-size: .975rem; }

/* Check → Fix → Prove */
.cfp { list-style: none; display: grid; gap: var(--s-4); counter-reset: cfp; }
@media (min-width: 900px) { .cfp { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); } }
.cfp-step {
  position: relative; display: grid; gap: var(--s-2); align-content: start;
  padding: var(--s-6) var(--s-5); border-radius: var(--radius-lg); background: var(--sand-50); border: 1px solid var(--line);
}
.cfp-step:nth-child(3) { background: var(--teal-900); border-color: var(--teal-900); color: var(--teal-100); }
.cfp-step:nth-child(3) h3 { color: var(--on-dark); }
.cfp-step:nth-child(3) .cfp-num { color: var(--teal-200); }
.cfp-step:nth-child(3) .cfp-ico { background: rgba(247,243,234,.1); color: var(--on-dark); border-color: rgba(247,243,234,.16); }
.cfp-step p { font-size: 1rem; color: inherit; opacity: .92; }
.cfp-step:not(:nth-child(3)) p { color: var(--ink-2); }
.cfp-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--surface); color: var(--teal-700); border: 1px solid var(--teal-100); margin-bottom: var(--s-2); }
.cfp-ico svg { width: 26px; height: 26px; }
.cfp-num { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-teal); }
.cfp-step h3 { font-size: clamp(1.6rem, 1.4rem + .8vw, 2rem); letter-spacing: -0.025em; }
/* connectors */
.cfp-step:not(:last-child)::after {
  content: ""; position: absolute; left: 50%; bottom: -16px; width: 2px; height: 16px; background: var(--teal-200);
}
@media (min-width: 900px) {
  .cfp-step:not(:last-child)::after {
    left: auto; right: -32px; bottom: auto; top: 50px; width: 32px; height: 2px;
    background: repeating-linear-gradient(90deg, var(--teal-300) 0 6px, transparent 6px 10px);
  }
  .cfp-step:not(:last-child)::before {
    content: ""; position: absolute; right: -32px; top: 46px; width: 0; height: 0;
    border-left: 8px solid var(--teal-300); border-top: 5px solid transparent; border-bottom: 5px solid transparent; z-index: 1;
  }
}
.cfp-loop {
  display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-5); padding: var(--s-4) var(--s-5);
  border-radius: var(--radius); border: 1.5px dashed var(--teal-300); color: var(--ink-2); font-size: 1rem;
}
.cfp-loop svg { width: 24px; height: 24px; flex: none; color: var(--teal-700); }
.cfp-loop strong { color: var(--teal-950); }

/* Solutions */
.solutions { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .solutions { grid-template-columns: 1fr 1fr; } .solution:last-child { grid-column: 1 / -1; } }
.solution {
  display: flex; flex-direction: column; gap: var(--s-5); padding: var(--s-5); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); scroll-margin-top: calc(var(--header-h) + 80px);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
@media (min-width: 768px) { .solution { padding: var(--s-6); } }
.solution:target { border-color: var(--teal-600); box-shadow: 0 0 0 4px rgba(15,94,84,.12); }
.solution-head { display: grid; grid-template-columns: auto 1fr; gap: var(--s-4); align-items: start; }
.solution-head h3 { font-size: 1.3rem; margin-top: 2px; }
.solution-fee { grid-column: 1 / -1; font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; color: var(--teal-950); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.solution-fee span { font-family: var(--font-body); font-size: .8125rem; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-right: 4px; }
.solution-fee small { font-family: var(--font-body); font-size: .8125rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
@media (min-width: 640px) { .solution-head { grid-template-columns: auto 1fr auto; } .solution-fee { grid-column: auto; text-align: right; } }
.problem-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.problem-chips li { padding: 7px 12px; border-radius: 10px; background: var(--sand-50); border: 1px solid var(--line); font-size: .9375rem; color: var(--ink-2); line-height: 1.35; }
.solution-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--line); }

.includes-wrap { display: grid; gap: var(--s-6); }
@media (min-width: 960px) { .includes-wrap { grid-template-columns: .8fr 1.2fr; gap: var(--s-8); align-items: center; } }
.includes { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-strong); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 640px) { .includes { grid-template-columns: repeat(3, 1fr); } }
.includes li { display: grid; gap: var(--s-3); align-content: start; padding: var(--s-5); background: var(--sand-50); font-weight: 600; color: var(--teal-950); font-size: 1rem; line-height: 1.35; }
.includes svg { width: 26px; height: 26px; color: var(--brand-teal); }

/* Case studies: filter bar */
.filters-bar { position: sticky; top: var(--header-h); z-index: 5; background: rgba(247, 243, 234, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); scroll-margin-top: var(--header-h); }
.filters { display: flex; gap: var(--s-2); overflow-x: auto; padding-block: var(--s-3); scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter-btn {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong); background: var(--surface); font-size: .9375rem; font-weight: 600; color: var(--ink-2); cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.filter-btn:hover { border-color: var(--teal-700); color: var(--teal-900); }
.filter-btn:active { transform: scale(.97); }
.filter-btn[aria-pressed="true"] { background: var(--teal-900); color: var(--on-dark); border-color: var(--teal-900); }
.filter-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: inline-grid; place-items: center; font-size: .75rem; background: var(--teal-50); color: var(--teal-800); font-variant-numeric: tabular-nums; }
.filter-btn[aria-pressed="true"] .filter-count { background: rgba(247,243,234,.16); color: var(--on-dark); }
.filter-count:empty { display: none; }

/* Case cards */
.case-group { display: grid; gap: var(--s-5); }
.case {
  display: grid; gap: var(--s-4); padding: var(--s-5); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); scroll-margin-top: calc(var(--header-h) + 90px);
}
@media (min-width: 768px) { .case { padding: var(--s-7); } }
.section--white .case { background: var(--sand-50); }
.case[hidden] { display: none; }
.case-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-3); }
.case-num { font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--brand-teal); }
.case-area { font-size: .875rem; font-weight: 600; color: var(--muted); }
.case h3 { font-size: clamp(1.4rem, 1.2rem + .9vw, 2rem); letter-spacing: -0.025em; max-width: 30ch; }
.case-grid { display: grid; gap: var(--s-5); margin-top: var(--s-2); }
@media (min-width: 960px) { .case-grid { grid-template-columns: 1.4fr 1fr; gap: var(--s-7); } }
.case-body { display: grid; gap: 4px; align-content: start; }
.case-body p { color: var(--ink-2); }
.case-body p + .mini-head { margin-top: var(--s-4); }
.case-lesson {
  display: grid; gap: var(--s-3); align-content: start; padding: var(--s-5); border-radius: var(--radius);
  background: var(--teal-900); color: var(--teal-100);
}
.case-lesson .mini-head { color: var(--teal-200); margin-bottom: 0; }
.case-lesson p { font-size: 1.0625rem; line-height: 1.55; color: var(--on-dark); }
.case-lesson .link-arrow { color: var(--on-dark); font-size: .9375rem; }
.case-lesson .link-arrow:hover { color: var(--teal-200); }
.case--example .case-lesson { background: var(--sand-100); color: var(--ink-2); }
.case--example .case-lesson p { color: var(--ink); }
.case--example .case-lesson .mini-head { color: var(--teal-800); }
.case--example .case-lesson .link-arrow { color: var(--teal-700); }
.case-source { padding-top: var(--s-4); border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
.case-source a { color: var(--teal-700); font-weight: 600; }
.week-list { list-style: none; display: grid; gap: var(--s-2); margin-top: var(--s-3); }
.week-list li { display: grid; grid-template-columns: 92px 1fr; gap: var(--s-3); align-items: start; padding-block: var(--s-2); border-top: 1px solid var(--line); color: var(--ink-2); font-size: .975rem; }
.week-list .tag { justify-content: center; }

.empty-state { display: grid; justify-items: center; gap: var(--s-3); padding: var(--s-7) var(--s-5); text-align: center; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-lg); color: var(--ink-2); }
.empty-state[hidden] { display: none; }
.empty-state svg { width: 36px; height: 36px; color: var(--teal-600); }
.empty-state p { max-width: 46ch; }
.filter-reset { background: none; border: 0; cursor: pointer; padding: 8px; min-height: 44px; }

.results-empty { display: grid; gap: var(--s-4); padding: var(--s-6); border-radius: var(--radius-lg); border: 1.5px dashed var(--teal-300); background: var(--teal-50); }
@media (min-width: 768px) { .results-empty { grid-template-columns: auto 1fr; align-items: center; padding: var(--s-7); gap: var(--s-6); } }
.results-empty h3 { font-size: 1.3rem; }
.results-empty p { color: var(--ink-2); max-width: 70ch; }
.site-header .container { max-width: 1360px; }
.brand-name, .site-header .btn { white-space: nowrap; }
.brand { flex: none; }
@media (min-width: 1280px) and (max-width: 1359px) { .nav a { padding: 10px 9px; font-size: .9rem; } .nav a[aria-current="page"]::after { left: 9px; right: 9px; } }

/* ==========================================================================
   v3 — Final brand palette
   Teal = brand/buttons/links · Navy = headings/header/footer · Sage = accents
   Gold = the single "Book a call" CTA · Cream = page background
   ========================================================================== */

/* Large areas: cream bands, never pure white */
.section--white, .service:nth-of-type(even) { background: var(--band); }
.section--sand { background: var(--band-warm); }

/* Header bar: navy */
.site-header { background: rgba(18, 48, 74, .97); border-bottom-color: rgba(247, 243, 234, .08); }
.site-header.is-scrolled { border-bottom-color: rgba(247, 243, 234, .12); box-shadow: 0 10px 28px -18px rgba(18, 48, 74, .7); }
.site-header .brand, .site-header .brand:hover { color: var(--on-dark); }
.site-header .brand-name span { color: var(--brand-sage); }
.nav a { color: rgba(247, 243, 234, .82); }
.nav a:hover { color: var(--on-dark); background: rgba(247, 243, 234, .08); }
.nav a[aria-current="page"] { color: var(--on-dark); }
.nav a[aria-current="page"]::after { background: var(--brand-sage); }
.menu-toggle { background: transparent; color: var(--on-dark); border-color: rgba(247, 243, 234, .35); }
.menu-toggle:hover { border-color: var(--on-dark); }
.site-header :focus-visible { outline-color: var(--brand-sage); }

/* The one gold CTA: "Book a call" (header + mobile menu) */
.btn--gold, .header-cta { --btn-bg: var(--brand-gold); --btn-bd: var(--brand-gold); --btn-fg: var(--on-gold); box-shadow: 0 10px 24px -14px rgba(196, 154, 74, .8); }
.btn--gold:hover, .header-cta:hover { --btn-bg: var(--gold-hover); --btn-bd: var(--gold-hover); --btn-fg: var(--on-gold); }

/* Mobile menu: continues the navy header */
.mobile-menu { background: var(--brand-navy); }
.mobile-menu a:not(.btn) { color: var(--on-dark); border-bottom-color: rgba(247, 243, 234, .12); }
.mobile-menu a[aria-current="page"] { color: var(--brand-sage); }
.mobile-menu a svg { color: var(--brand-sage); }
.mobile-menu .btn { --btn-bg: var(--brand-gold); --btn-bd: var(--brand-gold); --btn-fg: var(--on-gold); }

/* Primary buttons are teal; on teal/navy surfaces they flip to cream */
.btn--primary { --btn-bg: var(--brand-teal); --btn-bd: var(--brand-teal); --btn-fg: var(--on-dark); }
.btn--primary:hover { --btn-bg: var(--teal-800); --btn-bd: var(--teal-800); --btn-fg: var(--on-dark); }
.on-dark .btn--primary, .section--teal .btn--primary { --btn-bg: var(--bg-cream); --btn-bd: var(--bg-cream); --btn-fg: var(--brand-navy); box-shadow: none; }
.on-dark .btn--primary:hover, .section--teal .btn--primary:hover { --btn-bg: #EDE5D3; --btn-bd: #EDE5D3; --btn-fg: var(--brand-navy); }
.btn--secondary:hover { --btn-bg: var(--surface); }

/* Navy for structural dark areas */
.cta-band { background: var(--brand-navy); }
.float-card { background: var(--brand-navy); }
.site-footer { background: var(--brand-navy); }
.monogram { background: linear-gradient(145deg, var(--brand-teal), var(--brand-navy)); color: var(--on-dark); }
.cta-band::after { border-color: rgba(127, 168, 142, .22); box-shadow: 0 0 0 60px rgba(127, 168, 142, .05), 0 0 0 120px rgba(127, 168, 142, .035); }

/* Sage for decorative icons and accents */
.why-item .ico, .values svg, .includes svg, .aoc svg, .site-footer .brand-name span { color: var(--brand-sage); }
.why-item .ico, .values svg, .includes svg { color: #5E8C70; }
.pull { border-left-color: var(--brand-sage); }
.step:first-child .step-num { background: var(--brand-teal); border-color: var(--brand-teal); color: var(--on-dark); }
.step-num, .tl-dot { border-color: var(--brand-sage); color: var(--brand-navy); }
.steps::before { background: repeating-linear-gradient(90deg, var(--brand-sage) 0 8px, transparent 8px 14px); opacity: .6; }
.timeline::before { background: var(--tint-line); }
.principle-num { color: var(--brand-sage); }

/* Light tints keep a visible edge on cream */
.tag, .svc-icon, .note, .chips li, .cfp-ico, .case-label--public, .filter-count { border-color: var(--tint-line); }
.tag--warn { background: var(--gold-50); color: var(--gold-ink); border-color: var(--gold-line); }
.case-label--illustrative, .note--warn, .draft-banner { background: var(--gold-50); color: var(--gold-ink); border-color: var(--gold-line); }

/* Text on teal/navy is cream */
.svc--feature h3, .post--feature h2, .cfp-step:nth-child(3) h3, .cta-band h2, .section--teal h2, .section--teal h3, .figure-value, .float-card-title { color: var(--on-dark); }
.case-lesson p { color: var(--on-dark); }
.case-lesson { background: var(--brand-navy); }
.case-lesson .link-arrow:hover { color: var(--brand-sage); }

/* Required-field marker: not red (red is for errors only) */
.req { color: var(--brand-teal); }

/* ==========================================================================
   v4 — Photos + "call to discuss" (no published prices)
   ========================================================================== */
figure { margin: 0; }
.media { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--sand-200); }
.media img, .page-hero-media img, .solution-media img, .post-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.media img { aspect-ratio: 3 / 2; }
.media--why { margin-top: var(--s-4); }
.media--why img { aspect-ratio: 4 / 3; }
.media--service img { aspect-ratio: 16 / 9; }
.media--story { margin-top: var(--s-7); }
.media--story img { aspect-ratio: 4 / 3; }
.media--wide { margin-bottom: var(--s-6); }
.media--wide img { aspect-ratio: 16 / 9; }
@media (min-width: 768px) { .media--wide img { aspect-ratio: 21 / 9; } }

/* Home hero: corridor photo behind, fading into cream behind the text */
.hero--photo { isolation: isolate; }
.hero--photo::before { display: none; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(247, 243, 234, .9) 0%, rgba(247, 243, 234, .96) 55%, var(--bg-cream) 100%);
}
@media (min-width: 1024px) {
  .hero-media { left: 34%; }
  .hero-media::after {
    background:
      linear-gradient(90deg, var(--bg-cream) 0%, rgba(247, 243, 234, .55) 30%, rgba(247, 243, 234, .1) 70%),
      linear-gradient(0deg, var(--bg-cream) 0%, rgba(247, 243, 234, 0) 22%);
  }
}

/* Inner page hero image band */
.page-hero-media { margin-top: var(--s-7); border-radius: var(--radius-lg); overflow: hidden; background: var(--sand-200); }
.page-hero-media img { aspect-ratio: 4 / 3; }
@media (min-width: 640px) { .page-hero-media img { aspect-ratio: 16 / 9; } }
@media (min-width: 960px) { .page-hero-media img { aspect-ratio: 21 / 8; } }

/* Lessons teaser: finding cards overlap the photo */
.lessons-media { display: grid; }
.lessons-media .media img { aspect-ratio: 4 / 3; }
.lessons-media .finding-stack { position: relative; margin-top: -48px; padding-inline: var(--s-3); }
@media (min-width: 960px) { .lessons-media .finding-stack { margin-top: -96px; padding-left: var(--s-6); padding-right: 0; } }
.lessons-media .finding { background: var(--surface); box-shadow: var(--shadow); }

/* Compliance solution cards: photo bleeds to the card edges */
.solution { overflow: hidden; }
.solution-media { margin: calc(var(--s-5) * -1) calc(var(--s-5) * -1) 0; background: var(--sand-200); }
@media (min-width: 768px) { .solution-media { margin: calc(var(--s-6) * -1) calc(var(--s-6) * -1) 0; } }
.solution-media img { aspect-ratio: 16 / 9; }
.solution-head { grid-template-columns: auto 1fr; }
@media (min-width: 640px) { .solution-head { grid-template-columns: auto 1fr; } }
.solution-call { font-size: .9375rem; color: var(--ink-2); }

/* Insight covers */
.post { overflow: hidden; }
.post-cover { margin: calc(var(--s-5) * -1) calc(var(--s-5) * -1) var(--s-1); background: var(--sand-200); }
@media (min-width: 768px) { .post-cover { margin: calc(var(--s-6) * -1) calc(var(--s-6) * -1) var(--s-1); } }
.post-cover img { aspect-ratio: 16 / 9; }
.post-cover--feature { margin: 0; border-radius: var(--radius); overflow: hidden; }

/* "Call to discuss" links (replace published fees) */
.call-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--brand-teal); text-decoration: none; white-space: nowrap; min-height: 32px; }
.call-link:hover { color: var(--teal-800); text-decoration: underline; }
.call-link svg { width: 18px; height: 18px; flex: none; }
.call-link .ph { font-weight: 600; }
.meta dd .call-link { margin-right: 4px; }

/* ==========================================================================
   v5 — Logo + founder profile
   ========================================================================== */
.brand-logo { display: block; height: 40px; width: auto; }
@media (min-width: 768px) { .brand-logo { height: 46px; } }
.site-footer .brand-logo { height: 52px; }

.founder-role { line-height: 1.5; }
.qual-list { list-style: none; display: grid; gap: var(--s-3); }
.qual-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; color: var(--ink-2); line-height: 1.5; }
.qual-list svg { width: 20px; height: 20px; flex: none; color: var(--teal-600); margin-top: 2px; }
.qual-list strong { color: var(--brand-navy); }
.founder-links { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); align-items: center; padding-top: var(--s-4); border-top: 1px solid var(--line); }

.areas { margin: 0; display: grid; border-top: 1px solid var(--line-strong); }
.area-row { display: grid; gap: 4px; padding-block: var(--s-4); border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .area-row { grid-template-columns: 200px 1fr; gap: var(--s-5); } }
.area-row dt { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--brand-navy); }
.area-row dd { margin: 0; color: var(--ink-2); }

.from-jack { max-width: 900px; display: grid; gap: var(--s-5); }
.from-jack blockquote { margin: 0; }
.from-jack blockquote p { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.35rem, 1.1rem + 1.1vw, 2rem); line-height: 1.35; letter-spacing: -0.015em; color: var(--on-dark); }
.from-jack figcaption { display: flex; align-items: center; gap: var(--s-4); color: var(--teal-200); font-size: .975rem; line-height: 1.4; }
.from-jack figcaption strong { color: var(--on-dark); }
.monogram--sm { width: 56px; height: 56px; border-radius: 16px; font-size: 1.15rem; flex: none; background: var(--brand-navy); }
.founder-body > *, .founder dl > div, .founder dd { min-width: 0; }
.qual-list .ph, .founder .ph { white-space: normal; }

/* Founder photo */
.founder-photo--img { display: block; aspect-ratio: 1 / 1; background: var(--sand-200); }
.founder-photo--img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.founder-avatar { width: 112px; height: 112px; border-radius: 28px; overflow: hidden; flex: none; background: var(--sand-200); box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--line-strong); }
.founder-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.founder-avatar--sm { width: 56px; height: 56px; border-radius: 16px; box-shadow: 0 0 0 2px rgba(247, 243, 234, .35); }
