/* =========================================================
   Dr. V. Mridulla Abirami — Consultant Psychiatrist, Chennai
   1. Tokens  2. Base  3. Layout  4. Components  5. Header/Footer
   6. Home  7. Inner pages  8. Utilities  9. Motion  10. Print
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Teal (main) */
  --teal-50: #E8F1EF;
  --teal-100: #C5DBD8;
  --teal-200: #96BFB9;
  --teal-300: #68A29A;
  --teal-500: #167063;
  --teal-600: #13594F;
  --teal-700: #11473F;
  /* Lavender (main) */
  --lav-50: #F4ECF3;
  --lav-100: #E8D9E8;
  --lav-200: #DDC7DC;
  --lav-300: #D1B4D1;
  --lav-500: #C6A1C5;
  --lav-600: #B572B4;
  --lav-700: #9A4E99;
  /* Vermilion: ACCENT ONLY (logo dot, one word, tiny pin) */
  --verm-100: #F9E1DD;
  --verm-300: #EEA59A;
  --verm-500: #D9381E;
  --verm-600: #B0311C;
  --verm-700: #862A19;
  --white: #FFFFFF;
  /* Logo dot: soft rose from the client's logo artwork */
  --logo-dot: #E896AC;
  --white-92: rgba(255, 255, 255, .92);
  --white-70: rgba(255, 255, 255, .7);
  --white-20: rgba(255, 255, 255, .2);
  --white-12: rgba(255, 255, 255, .12);

  /* Semantic */
  --ink: var(--teal-700);
  --ink-soft: #4B6B66;        /* body copy on white, AA */
  --ink-mute: #5E7B76;        /* small meta text, AA on white */
  --line: rgba(17, 71, 63, .12);
  --line-strong: rgba(17, 71, 63, .22);
  --surface: var(--white);
  --tint: #F6F9F8;            /* barely-there teal wash */
  --focus: var(--lav-700);
  --shadow-sm: 0 1px 2px rgba(17, 71, 63, .06);
  --shadow: 0 24px 60px -24px rgba(17, 71, 63, .28);

  /* Type: change these two lines to swap the typefaces site-wide */
  --font-display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: clamp(1rem, .96rem + .2vw, 1.0625rem);
  --fs-lg: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  --fs-h4: 1.125rem;
  --fs-h3: clamp(1.6rem, 1.35rem + 1vw, 2.125rem);
  --fs-h2: clamp(2.25rem, 1.55rem + 3vw, 4rem);
  --fs-h1: clamp(2.75rem, 1.8rem + 4.2vw, 5.5rem);
  --fs-display: clamp(3rem, 1.7rem + 5.6vw, 6.75rem);

  /* Space & shape */
  --gutter: clamp(1.25rem, .7rem + 2.4vw, 2.5rem);
  --section: clamp(4.5rem, 3rem + 6vw, 9rem);
  --radius-sm: 14px;
  --radius: 24px;
  --radius-lg: 36px;
  --maxw: 1280px;
  --header-h: 76px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--surface);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0 0 .45em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.12; }
h4 { font: 600 var(--fs-h4)/1.35 var(--font-body); color: var(--ink); margin: 0 0 .4em; letter-spacing: -0.005em; }
h1 em, h2 em, h3 em, blockquote em { font-style: italic; color: var(--teal-500); }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--teal-500); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-700); }
strong { font-weight: 600; color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lav-100); color: var(--teal-700); }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 300;
  background: var(--teal-700); color: var(--white);
  padding: .75rem 1rem; border-radius: 10px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 1rem; color: var(--white); }
main:focus { outline: none; }

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 880px; }
.section { padding-block: var(--section); position: relative; }
.section-sm { padding-block: calc(var(--section) * .55); }
.tint { background: var(--tint); }
.grid { display: grid; gap: clamp(1.25rem, .8rem + 1.5vw, 2rem); }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* Section heading: label on the left, title on the right */
.sec-head { display: grid; gap: 1rem; margin-bottom: clamp(2.5rem, 1.8rem + 3vw, 4.5rem); }
.sec-head h2 { margin: 0; max-width: 18ch; }
.sec-head .intro { max-width: 56ch; font-size: var(--fs-lg); margin: 1.25rem 0 0; }
@media (min-width: 960px) {
  .sec-head { grid-template-columns: 4fr 8fr; gap: 2rem; align-items: start; }
  .sec-head .label { margin-top: .9rem; }
}

/* Editorial split: sticky label column + content */
.split { display: grid; gap: 1.25rem 2rem; padding-block: clamp(2.25rem, 1.6rem + 2.5vw, 3.75rem); border-top: 1px solid var(--line); }
.split:last-child { border-bottom: 1px solid var(--line); }
.split > :first-child h2 { font-size: var(--fs-h3); margin: 0; }
.split .body { max-width: 66ch; }
.split .body p:last-child { margin-bottom: 0; }
@media (min-width: 960px) {
  .split { grid-template-columns: 4fr 8fr; }
  .split > :first-child { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
}

/* ---------- 4. Components ---------- */
.label {
  display: inline-flex; align-items: center; gap: .6rem;
  font: 500 var(--fs-xs)/1.3 var(--font-body);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-600);
  margin: 0 0 1.25rem;
}
.label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lav-500); flex: none; }
.on-dark .label, .label.on-dark { color: var(--teal-100); }
.lede { font-size: var(--fs-lg); line-height: 1.6; }
.accent { color: var(--verm-500) !important; } /* ONE highlighted word only */

/* Buttons: pill with an icon disc */
.btn {
  --bg: var(--teal-500); --fg: var(--white); --bd: var(--teal-500);
  --disc-bg: var(--white); --disc-fg: var(--teal-500);
  display: inline-flex; align-items: center; justify-content: space-between; gap: .9rem;
  min-height: 54px; padding: .4rem .4rem .4rem 1.5rem;
  font: 500 1rem/1.2 var(--font-body); letter-spacing: -0.005em;
  color: var(--fg); background: var(--bg);
  border: 1px solid var(--bd); border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn .disc {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--disc-bg); color: var(--disc-fg);
  transition: transform .3s ease;
}
.btn .disc svg { width: 18px; height: 18px; }
.btn .disc svg.stroke { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn .disc svg.fill { fill: currentColor; width: 20px; height: 20px; }
.btn:hover { --bg: var(--teal-600); --bd: var(--teal-600); color: var(--fg); }
.btn:hover .disc-arrow { transform: rotate(-45deg); }
.btn:hover .disc-wa { transform: scale(1.06); }
.btn-light { --bg: var(--white); --fg: var(--teal-700); --bd: var(--white); --disc-bg: var(--teal-500); --disc-fg: var(--white); }
.btn-light:hover { --bg: var(--teal-50); --bd: var(--teal-50); }
.btn-ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line-strong); --disc-bg: var(--teal-50); --disc-fg: var(--teal-600); }
.btn-ghost:hover { --bg: var(--tint); --bd: var(--teal-300); color: var(--ink); }
.btn-ghost-light { --bg: transparent; --fg: var(--white); --bd: var(--white-70); --disc-bg: var(--white-12); --disc-fg: var(--white); }
.btn-ghost-light:hover { --bg: var(--white-12); --bd: var(--white); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px;
  font-weight: 500; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}
.link-arrow:hover { border-color: var(--teal-500); color: var(--teal-500); }

/* Pills */
.pills { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.pill {
  display: inline-flex; align-items: center; min-height: 40px;
  padding: .45rem 1rem; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--white);
  color: var(--ink); font-size: var(--fs-sm); font-weight: 500;
  text-decoration: none;
}
a.pill { min-height: 44px; transition: background-color .2s ease, border-color .2s ease; }
a.pill:hover { background: var(--lav-50); border-color: var(--lav-500); color: var(--ink); }
.pill-soft { background: var(--teal-50); border-color: transparent; }

/* Panels */
.panel { border-radius: var(--radius-lg); padding: clamp(1.75rem, 1rem + 3.5vw, 4.5rem); position: relative; overflow: hidden; }
.panel-dark { background: var(--teal-700); color: var(--teal-50); }
.panel-teal { background: var(--teal-500); color: var(--teal-50); }
.panel-lav { background: var(--lav-100); color: var(--teal-700); }
.panel-tint { background: var(--teal-50); }
.panel-dark h2, .panel-dark h3, .panel-teal h2, .panel-teal h3 { color: var(--white); }
.panel-dark h2 em, .panel-teal h2 em, .panel-dark blockquote em { color: var(--lav-200); }
.panel-dark strong, .panel-teal strong { color: var(--white); }
.panel-motif { position: absolute; right: -4%; bottom: -18%; width: min(46%, 520px); opacity: .08; pointer-events: none; }
.panel-motif .m { fill: none; stroke: var(--white); stroke-width: 3; stroke-linecap: round; }
.panel-motif .dot { fill: var(--white); }
.panel > *:not(.panel-motif) { position: relative; }

/* Accordion (details) */
.acc { border-top: 1px solid var(--line-strong); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.5rem 0; min-height: 64px;
  font: 500 var(--fs-lg)/1.4 var(--font-body); color: var(--ink);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--teal-500); }
.acc .answer { padding: 0 3.5rem 1.75rem 0; max-width: 70ch; }
.acc .answer p:last-child { margin: 0; }
.plus {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-strong); position: relative;
  transition: background-color .25s ease, border-color .25s ease;
}
.plus::before, .plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: var(--ink);
  transform: translate(-50%, -50%); transition: transform .3s ease, background-color .25s ease;
}
.plus::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] > summary .plus { background: var(--teal-500); border-color: var(--teal-500); }
details[open] > summary .plus::before, details[open] > summary .plus::after { background: var(--white); }
details[open] > summary .plus::after { transform: translate(-50%, -50%) rotate(0deg); }

/* Emergency note with tiny vermilion pin */
.emergency {
  position: relative; border-radius: var(--radius-sm);
  background: var(--lav-100); color: var(--teal-700);
  padding: 1.15rem 1.25rem 1.15rem 2.85rem; font-size: var(--fs-sm);
}
.emergency::before {
  content: ""; position: absolute; left: 1.25rem; top: 1.55rem;
  width: 8px; height: 8px; border-radius: 50%; background: var(--verm-500);
}
.emergency p { margin: 0; }
.emergency a { color: var(--teal-700); font-weight: 600; }

/* Badges & banners */
.todo-badge {
  display: inline-block; margin-left: .5rem; padding: 0 .45rem;
  font: 600 .68rem/1.7 var(--font-body); letter-spacing: .08em;
  color: var(--teal-700); background: var(--lav-100); border: 1px dashed var(--lav-700); border-radius: 6px;
  vertical-align: middle;
}
.is-todo { outline: 1px dashed var(--lav-700); outline-offset: 3px; }
.legal-banner {
  background: var(--lav-50); color: var(--teal-700);
  padding: .9rem 1.15rem; border-radius: var(--radius-sm);
  border: 1px solid var(--lav-200);
  font-size: var(--fs-sm); margin: 0 0 2.5rem;
}

/* Logo mark */
.logo-mark .m { fill: none; stroke: var(--teal-500); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.logo-mark .dot { fill: var(--logo-dot); }

/* Media frame (photo slots) */
.media {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--teal-500); aspect-ratio: 4 / 5;
}
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media .ph { position: absolute; inset: 0; display: grid; place-items: center; }
.media .ph svg { width: 78%; opacity: .16; }
.media .ph .m { fill: none; stroke: var(--white); stroke-width: 2.5; stroke-linecap: round; }
.media .ph .dot { fill: var(--white); }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white-92);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand .logo-mark { width: 34px; height: 34px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font: 400 1.35rem/1.05 var(--font-display); color: var(--ink); white-space: nowrap; letter-spacing: -0.01em; }
.brand-sub { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); font-weight: 500; margin-top: .2rem; white-space: nowrap; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .6rem;
  height: 46px; padding: 0 1.1rem; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--white); color: var(--ink);
  font: 500 .95rem var(--font-body); cursor: pointer;
}
.nav-toggle .bars { position: relative; width: 16px; height: 8px; }
.nav-toggle .bars::before, .nav-toggle .bars::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform .3s ease, top .3s ease;
}
.nav-toggle .bars::before { top: 0; }
.nav-toggle .bars::after { top: 6.5px; }
.nav-toggle[aria-expanded="true"] .bars::before { top: 3.25px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { top: 3.25px; transform: rotate(-45deg); }
@media (max-width: 400px) { .nav-toggle .txt { display: none; } .nav-toggle { padding: 0; width: 46px; justify-content: center; } }

.site-nav { display: none; }
/* backdrop-filter would trap the fixed menu panel inside the header */
.menu-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--white); }
.menu-open .site-nav {
  display: flex; flex-direction: column;
  position: fixed; inset: var(--header-h) 0 0 0;
  background: var(--white);
  padding: 1.5rem var(--gutter) 2rem;
  overflow-y: auto;
}
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: flex; align-items: center; justify-content: space-between; min-height: 62px;
  font: 400 2.1rem/1.1 var(--font-display); color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.nav-list a[aria-current="page"] { color: var(--teal-500); font-style: italic; }
.nav-cta { margin-top: 2rem; }
.nav-cta .btn { width: 100%; }
.header-cta { display: none; }
body.menu-open { overflow: hidden; }

@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .site-nav, .menu-open .site-nav { display: block; position: static; padding: 0; background: none; overflow: visible; }
  .nav-list { display: flex; align-items: center; gap: .15rem; }
  .nav-list a {
    min-height: 44px; padding: .5rem .85rem; border: 0; border-radius: 999px;
    font: 500 .95rem/1 var(--font-body); color: var(--ink-soft); white-space: nowrap;
    transition: color .2s ease, background-color .2s ease;
  }
  .nav-list a:hover { color: var(--ink); background: var(--tint); }
  .nav-list a[aria-current="page"] { color: var(--ink); font-style: normal; background: var(--teal-50); }
  .nav-cta { display: none; }
  .header-cta { display: inline-flex; white-space: nowrap; min-height: 48px; padding-left: 1.25rem; }
  .header-cta .disc { width: 38px; height: 38px; }
}
@media (min-width: 1100px) and (max-width: 1240px) {
  .brand-sub { display: none; }
  .nav-list a { padding-inline: .6rem; font-size: .9rem; }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative; overflow: hidden;
  background: var(--teal-700); color: var(--teal-100);
  padding: clamp(4rem, 3rem + 4vw, 6.5rem) 0 calc(1.5rem + 96px);
  font-size: var(--fs-sm);
}
@media (min-width: 720px) { .site-footer { padding-bottom: 2rem; } }
.site-footer a { color: var(--teal-50); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-top { display: grid; gap: 2rem; padding-bottom: clamp(3rem, 2rem + 3vw, 4.5rem); border-bottom: 1px solid var(--white-20); }
.footer-top .statement { font: 400 clamp(2.1rem, 1.4rem + 2.8vw, 4rem)/1.04 var(--font-display); color: var(--white); margin: 0; max-width: 17ch; letter-spacing: -0.02em; }
.footer-top .statement em { color: var(--lav-200); }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1fr auto; align-items: end; } }
.footer-grid { display: grid; gap: 2.5rem; padding-block: 3rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1.3fr 1fr; } }
.footer-brand .brand { color: var(--white); }
.footer-brand .brand-name { color: var(--white); }
.footer-brand .brand-sub { color: var(--teal-200); }
.footer-brand .logo-mark .m { stroke: var(--white); }
.footer-brand p { margin-top: 1.25rem; max-width: 34ch; color: var(--teal-100); }
.site-footer h2 {
  font: 500 var(--fs-xs)/1.3 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--lav-300); margin: 0 0 1rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding: .25rem 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 32px; }
.social { display: flex; gap: .5rem; margin-top: 1.25rem; list-style: none; padding: 0; }
.social a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--white-20); color: var(--white);
}
.social a:hover { background: var(--white-12); }
.social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.footer-emergency {
  position: relative; margin: 0; padding: 1.1rem 1.25rem 1.1rem 2.75rem;
  border-radius: var(--radius-sm); border: 1px solid var(--white-20); color: var(--teal-50);
}
.footer-emergency::before { content: ""; position: absolute; left: 1.2rem; top: 1.55rem; width: 8px; height: 8px; border-radius: 50%; background: var(--verm-300); }
.footer-emergency strong, .footer-emergency a { color: var(--white); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; align-items: center;
  margin-top: 1.5rem; color: var(--teal-200);
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0 1.25rem; list-style: none; padding: 0; margin: 0; }
.footer-legal a { display: inline-flex; min-height: 44px; align-items: center; color: var(--teal-100); }

/* Floating WhatsApp & back to top */
.wa-float {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 90;
  display: inline-flex; align-items: center; gap: .6rem; text-decoration: none;
}
.wa-float .wa-circle {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--teal-500); color: var(--white);
  box-shadow: 0 0 0 4px var(--lav-500), var(--shadow);
  transition: transform .25s ease, background-color .25s ease;
}
.wa-float .wa-circle svg { width: 28px; height: 28px; fill: currentColor; }
.wa-float:hover .wa-circle { background: var(--teal-600); transform: translateY(-2px); }
.wa-float .wa-label {
  order: -1; display: none;
  background: var(--white); color: var(--teal-700);
  font-weight: 500; font-size: .875rem;
  padding: .5rem .95rem; border-radius: 999px; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
@media (min-width: 720px) { .wa-float .wa-label { display: inline-block; } }
.wa-float:focus-visible { outline: none; }
.wa-float:focus-visible .wa-circle { outline: 2px solid var(--focus); outline-offset: 8px; }

.to-top {
  position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 89;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); color: var(--ink); border: 1px solid var(--line-strong);
  text-decoration: none;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 720px) { .to-top { left: auto; right: max(26px, env(safe-area-inset-right)); bottom: 96px; } }

/* ---------- 6. Home ---------- */
.hero { padding-block: clamp(2rem, 1rem + 4vw, 4.5rem) 0; }
.hero-grid { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 5rem); align-items: end; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 7fr 5fr; } }
.hero h1 { font-size: var(--fs-display); line-height: .98; margin-bottom: 1.75rem; letter-spacing: -0.025em; }
.hero h1 .accent { font-style: italic; }
.hero .lede { max-width: 50ch; margin-bottom: 2.25rem; }
.hero-media { position: relative; margin: 0; }
.hero-media .media { max-height: 640px; }
.media-chip {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem;
  padding: 1rem 1.25rem; border-radius: 18px;
  background: var(--white-92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: var(--fs-sm); color: var(--ink);
}
.media-chip strong { font: 400 1.35rem/1.15 var(--font-display); }
.media-chip span { color: var(--ink-mute); align-self: end; }

.stats { list-style: none; margin: clamp(3rem, 2rem + 4vw, 5.5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats li { padding: 1.75rem 1.25rem 1.75rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .stats li { border-bottom: 0; } .stats li + li { border-left: 1px solid var(--line); padding-left: 1.75rem; } }
@media (max-width: 899px) { .stats li:nth-child(even) { padding-left: 1.25rem; border-left: 1px solid var(--line); } }
.stats .v { display: block; font: 400 clamp(2.5rem, 1.9rem + 2.4vw, 3.75rem)/1 var(--font-display); color: var(--ink); letter-spacing: -0.02em; margin-bottom: .6rem; }
.stats .k { display: block; font-size: var(--fs-sm); line-height: 1.45; max-width: 22ch; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 0 2rem; } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: s; border-top: 1px solid var(--line-strong); padding: 1.5rem 0 2.25rem; }
.steps li::before { content: "0" counter(s); display: block; font: italic 400 1.15rem/1 var(--font-display); color: var(--lav-700); margin-bottom: 2.5rem; }
.steps h3 { font-size: 1.85rem; margin-bottom: .5rem; }
.steps p { margin: 0; max-width: 30ch; }

/* Service rows (home) */
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.svc-list a {
  display: grid; grid-template-columns: 2.25rem 1fr auto; gap: .35rem 1rem; align-items: center;
  padding: 1.6rem .25rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink-soft);
  transition: background-color .3s ease, padding .3s ease;
}
.svc-list .n { font: italic 400 1.05rem/1 var(--font-display); color: var(--lav-700); }
.svc-list .t { font: 400 clamp(1.6rem, 1.3rem + 1.2vw, 2.4rem)/1.1 var(--font-display); color: var(--ink); letter-spacing: -0.01em; }
.svc-list .d { grid-column: 2 / 3; font-size: var(--fs-sm); max-width: 52ch; }
.go {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; color: var(--ink);
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .3s ease;
}
.go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svc-list .go { grid-row: 1 / span 2; grid-column: 3; }
.svc-list a:hover { background: var(--tint); padding-inline: 1rem; }
.svc-list a:hover .go { background: var(--teal-500); border-color: var(--teal-500); color: var(--white); transform: rotate(-45deg); }
@media (min-width: 900px) {
  .svc-list a { grid-template-columns: 4rem 1.1fr 1fr auto; padding-block: 2rem; }
  .svc-list .d { grid-column: 3; }
  .svc-list .go { grid-row: 1; grid-column: 4; }
}
.svc-more { margin-top: 2.5rem; }

/* Philosophy */
.quote-xl { margin: 0 0 clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.quote-xl blockquote { margin: 0; font: 400 clamp(2rem, 1.3rem + 3.2vw, 4.25rem)/1.06 var(--font-display); color: var(--white); letter-spacing: -0.02em; max-width: 22ch; }
.quote-xl blockquote p { margin: 0; }
.quote-xl figcaption { margin-top: 1.5rem; font-size: var(--fs-sm); color: var(--teal-200); }
.trio { display: grid; gap: 0; list-style: none; padding: 0; margin: 0; }
@media (min-width: 860px) { .trio { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.trio li { border-top: 1px solid var(--white-20); padding: 1.5rem 0; }
.trio strong { display: block; font: 400 1.65rem/1.15 var(--font-display); color: var(--white); margin-bottom: .5rem; }
.trio span { color: var(--teal-100); font-size: var(--fs-sm); }

/* Organisations */
.org { display: grid; gap: 2rem; align-items: end; }
@media (min-width: 900px) { .org { grid-template-columns: 1.4fr 1fr; } }
.org h2 { font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem); margin-bottom: .75rem; }
.org p { color: var(--teal-700); max-width: 52ch; }
.org .pills { margin-top: 1.5rem; }
.org .pill { background: var(--white-70); border-color: transparent; }
@media (min-width: 900px) { .org .cta-col { justify-self: end; } }

/* Press */
.press { display: grid; gap: 1.5rem; align-items: center; padding-block: 2.25rem; border-block: 1px solid var(--line); }
@media (min-width: 900px) { .press { grid-template-columns: 12rem 1fr; } }
.press .label { margin: 0; }
.press ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 2.25rem; align-items: center; }
.press li { font: 400 clamp(1.3rem, 1.1rem + .8vw, 1.75rem)/1.2 var(--font-display); color: var(--teal-600); white-space: nowrap; }

/* CTA */
.cta h2 { max-width: 20ch; font-size: clamp(2.1rem, 1.5rem + 2.8vw, 4rem); margin-bottom: 1rem; }
.cta p { max-width: 50ch; color: var(--teal-50); font-size: var(--fs-lg); }
.cta .btn-row { margin-top: 2.25rem; }

/* ---------- 7. Inner pages ---------- */
.page-hero { padding-block: clamp(3rem, 2rem + 5vw, 7rem) clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.page-hero .inner { display: grid; gap: 1.5rem 3rem; align-items: end; }
@media (min-width: 960px) { .page-hero .inner { grid-template-columns: 7fr 5fr; } }
.page-hero h1 { margin: 0; }
.page-hero .intro { font-size: var(--fs-lg); margin: 0; max-width: 46ch; }
.crumbs { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 1.5rem; }
.crumbs a { color: var(--ink-mute); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-current] { color: var(--teal-600); }

/* About */
.about-top { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 5rem); align-items: start; }
@media (min-width: 960px) { .about-top { grid-template-columns: 5fr 7fr; } .about-top .media { position: sticky; top: calc(var(--header-h) + 24px); } }
.about-top .media { max-width: 520px; }
.about-top h2 { font-size: var(--fs-h3); }
.creds-line { font-size: var(--fs-sm); color: var(--ink-mute); padding: 1rem 0; border-block: 1px solid var(--line); margin: 1.25rem 0 1.75rem; }
.interest { border-top: 1px solid var(--line-strong); padding-top: 1.5rem; }
.interest h3 { font-size: 1.9rem; }
.interest .n { display: block; font: italic 400 1.05rem/1 var(--font-display); color: var(--lav-700); margin-bottom: 2rem; }
.interest p:last-child { margin: 0; }
.big-quote { max-width: 1040px; }
.big-quote blockquote { margin: 0 0 2rem; font: 400 clamp(2.25rem, 1.5rem + 3.4vw, 4.75rem)/1.02 var(--font-display); color: var(--ink); letter-spacing: -0.02em; }
.big-quote blockquote p { margin: 0; }
.big-quote .body { font-size: var(--fs-lg); max-width: 62ch; margin: 0; }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.rows li { padding: 1.25rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 2.75rem 1fr; gap: .75rem; color: var(--ink); }
.rows .n { font: italic 400 1.05rem/1.6 var(--font-display); color: var(--lav-700); }
.cred-table { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; border-top: 1px solid var(--white-20); }
@media (min-width: 760px) { .cred-table { grid-template-columns: repeat(3, 1fr); gap: 0 2rem; } }
.cred-table li { padding: 1.4rem 0; border-bottom: 1px solid var(--white-20); }
.cred-table strong { display: block; font: 400 1.7rem/1.15 var(--font-display); color: var(--white); margin-bottom: .3rem; }
.cred-table span { color: var(--teal-100); font-size: var(--fs-sm); }

/* Services */
.consult { display: grid; gap: clamp(2rem, 1.5rem + 2vw, 4rem); align-items: start; }
@media (min-width: 960px) { .consult { grid-template-columns: 7fr 5fr; } }
.consult h2 { font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.facts { background: var(--white); border-radius: var(--radius); padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); border: 1px solid var(--line); }
.facts dl { margin: 0; }
.facts .row { padding: 1rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; }
.facts .row:first-child { padding-top: 0; }
.facts dt { font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); padding-top: .2rem; }
.facts dd { margin: 0; color: var(--ink); }
.facts .fee { font: 400 2.5rem/1 var(--font-display); color: var(--ink); }
.facts .fee small { font: 400 var(--fs-sm) var(--font-body); color: var(--ink-mute); margin-left: .35rem; }
.facts .btn { width: 100%; margin-top: 1.5rem; }
@media (max-width: 420px) { .facts .row { grid-template-columns: 1fr; gap: .2rem; } }
.consult-note { margin-top: 1.75rem; font: italic 400 1.5rem/1.3 var(--font-display); color: var(--teal-600); }

.svc-acc { border-top: 1px solid var(--line-strong); }
.svc { border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.svc summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 2.25rem 1fr auto; gap: .35rem 1rem; align-items: center;
  padding: 1.6rem 0;
}
.svc summary::-webkit-details-marker { display: none; }
.svc .n { font: italic 400 1.05rem/1 var(--font-display); color: var(--lav-700); }
.svc .t { margin: 0; font: 400 clamp(1.55rem, 1.3rem + 1.1vw, 2.25rem)/1.1 var(--font-display); color: var(--ink); letter-spacing: -0.01em; transition: color .2s ease; }
.svc .tag { grid-column: 2; font-size: var(--fs-sm); }
.svc .plus { grid-row: 1 / span 2; grid-column: 3; }
.svc summary:hover .t { color: var(--teal-500); }
@media (min-width: 900px) {
  .svc summary { grid-template-columns: 4rem 1.1fr 1fr auto; padding-block: 2rem; }
  .svc .tag { grid-column: 3; }
  .svc .plus { grid-row: 1; grid-column: 4; }
}
.svc-body { display: grid; gap: 1.5rem 3rem; padding: 0 0 2.25rem; }
@media (min-width: 900px) { .svc-body { grid-template-columns: 1.1fr 1fr; padding-left: 5rem; padding-right: calc(40px + 1rem); } }
.svc-body p { margin: 0; max-width: 60ch; }
.svc-meta { margin: 0 0 1.5rem; }
.svc-meta div { padding: .8rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; }
.svc-meta div:first-child { padding-top: 0; }
.svc-meta dt { font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); padding-top: .2rem; }
.svc-meta dd { margin: 0; color: var(--ink); font-size: var(--fs-sm); }
@media (max-width: 420px) { .svc-meta div { grid-template-columns: 1fr; gap: .15rem; } }
.svc:target summary .t { color: var(--teal-500); }

.workplace { margin-top: clamp(3rem, 2rem + 3vw, 5rem); scroll-margin-top: calc(var(--header-h) + 24px); }
.workplace .grid-wp { display: grid; gap: 2rem; }
@media (min-width: 960px) { .workplace .grid-wp { grid-template-columns: 1.2fr 1fr; align-items: end; } }
.workplace h2 { font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.workplace dl { margin: 0 0 2rem; }
.workplace dl div { padding: .85rem 0; border-bottom: 1px solid var(--white-20); display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; }
.workplace dt { font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--teal-200); padding-top: .2rem; }
.workplace dd { margin: 0; color: var(--white); }
.flag { display: inline-block; font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--white-20); color: var(--lav-200); margin-bottom: 1.5rem; }

/* Expertise */
.tag-groups { border-top: 1px solid var(--line-strong); }
.tag-group { display: grid; gap: 1rem 2rem; padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .tag-group { grid-template-columns: 4fr 8fr; align-items: center; } }
.tag-group h3 { font-size: 1.65rem; margin: 0; }
.paths { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: p; }
@media (min-width: 900px) { .paths { grid-template-columns: repeat(3, 1fr); } }
.paths li { counter-increment: p; background: var(--white); border-radius: var(--radius); padding: 1.75rem; min-height: 230px; display: flex; flex-direction: column; border: 1px solid var(--line); }
.paths li::before { content: "Pathway 0" counter(p); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--lav-700); margin-bottom: auto; padding-bottom: 2.5rem; }
.paths h3 { font-size: 1.9rem; margin: 0; }
.paths p { margin: .75rem 0 0; font-size: var(--fs-sm); }
.inline-quote { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); display: grid; gap: 1.5rem 3rem; }
@media (min-width: 900px) { .inline-quote { grid-template-columns: 1fr 1fr; align-items: start; } }
.inline-quote blockquote { margin: 0; font: 400 clamp(1.85rem, 1.4rem + 1.8vw, 2.85rem)/1.08 var(--font-display); color: var(--ink); letter-spacing: -0.015em; }
.inline-quote blockquote p { margin: 0; }
.inline-quote > p { margin: 0; font-size: var(--fs-lg); }
.expect { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line-strong); }
@media (min-width: 860px) { .expect { grid-template-columns: repeat(2, 1fr); column-gap: 3rem; } }
.expect li { padding: 1.5rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 2.5rem 1fr; gap: .75rem; }
.expect .n { font: italic 400 1.05rem/1.6 var(--font-display); color: var(--lav-700); }
.expect strong { display: block; font-weight: 500; font-size: 1.0625rem; margin-bottom: .2rem; }
.duo { display: grid; gap: 1rem; }
@media (min-width: 900px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo .panel { border-radius: var(--radius); padding: clamp(1.75rem, 1.2rem + 2vw, 3rem); }
.duo h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); }
.duo p:last-child { margin: 0; }

/* FAQ */
.faq-layout { display: grid; gap: 3rem; }
@media (min-width: 960px) { .faq-layout { grid-template-columns: 4fr 8fr; gap: 4rem; } .faq-aside { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }
.faq-aside .panel { padding: 2rem; border-radius: var(--radius); }
.faq-aside h2 { font-size: 2.1rem; }
.faq-aside .emergency { margin-top: 1rem; }

/* Contact */
.contact-cta { margin-top: 2rem; }
.contact-cta p { margin: 1.25rem 0 0; font-size: var(--fs-sm); max-width: 48ch; }
.info-card { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); background: var(--white); }
.info-card h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); margin-bottom: 1.25rem; }
.dl { list-style: none; margin: 0; padding: 0; }
.dl li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: .95rem 0; border-top: 1px solid var(--line); }
.dl .k { font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); padding-top: .25rem; }
.dl .v { color: var(--ink); }
@media (max-width: 420px) { .dl li { grid-template-columns: 1fr; gap: .15rem; } }
.map { margin-top: 1.25rem; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: var(--tint); }
.map iframe { display: block; width: 100%; height: 320px; border: 0; }
.map-todo { padding: 2rem; margin: 0; text-align: center; }

/* Legal */
.legal { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .legal { grid-template-columns: 3.5fr 8.5fr; gap: 4rem; } .toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }
.toc ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.toc a { display: block; padding: .6rem 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); text-decoration: none; font-size: var(--fs-sm); }
.toc a:hover { color: var(--ink); }
@media (max-width: 959px) { .toc { display: none; } }
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.6rem, 1.35rem + 1vw, 2.1rem); margin: 2.75rem 0 .75rem; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2:first-of-type { margin-top: 0; }
.prose ul { padding-left: 1.1rem; }
.prose li { margin-bottom: .5rem; }
.prose li::marker { color: var(--lav-600); }

/* 404 */
.notfound { padding-block: clamp(5rem, 3rem + 8vw, 10rem); }
.notfound .logo-mark { width: 64px; height: 64px; margin-bottom: 2rem; }

/* ---------- 8. Utilities ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.small { font-size: var(--fs-sm); }
.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;
}
.dev-mode body::before {
  content: "DEV MODE · TODO values visible"; position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 300;
  background: var(--lav-700); color: var(--white); font: 600 .7rem/1 var(--font-body); letter-spacing: .1em; padding: .4rem .8rem; border-radius: 0 0 8px 8px;
}

/* ---------- 9. Motion ---------- */
.reveal { transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal-pending { opacity: 0; transform: translateY(28px); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal-pending { opacity: 1; transform: none; }
}

/* ---------- 10. Print ---------- */
@media print {
  .site-header, .wa-float, .to-top, .panel-motif, .nav-toggle { display: none !important; }
  .site-footer, .panel-dark, .panel-teal { background: none; color: var(--teal-700); }
  .site-footer a, .panel-dark h2, .panel-teal h2 { color: var(--teal-700); }
}

/* =========================================================
   11. Refinements (v3)
   ========================================================= */
:root {
  --header-h: 88px;
  --shadow-header: 0 1px 2px rgba(17, 71, 63, .04), 0 10px 30px -18px rgba(17, 71, 63, .35);
  --shadow-inset: 0 1px 0 rgba(255, 255, 255, .15) inset;
  --shadow-btn: 0 12px 28px -14px rgba(17, 71, 63, .55);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Floating capsule header */
.site-header, .site-header.is-scrolled { background: transparent; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; padding-top: 12px; pointer-events: none; }
.site-header .header-inner {
  pointer-events: auto;
  min-height: 64px; padding: .5rem .5rem .5rem 1.1rem;
  background: var(--white-92);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
  border: 1px solid var(--line); border-radius: 999px;
  box-shadow: var(--shadow-header);
  max-width: calc(var(--maxw) - 2 * var(--gutter));
  width: calc(100% - 2 * var(--gutter));
  padding-right: .5rem;
}
.site-header .container.header-inner { padding-inline: 1.1rem .5rem; }
.menu-open .site-header .header-inner { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--white); }
.menu-open .site-header { pointer-events: auto; }
.menu-open .site-nav { top: var(--header-h); }
.header-cta { min-height: 48px; }
@media (min-width: 1100px) { .nav-list a[aria-current="page"] { background: var(--teal-50); } }

/* Grain texture on colour fields */
.panel-dark::after, .panel-teal::after, .media .ph::after, .site-footer::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--grain); opacity: .16; mix-blend-mode: overlay;
}
.site-footer > .container { position: relative; z-index: 1; }

/* Designed photo placeholder */
.media { background: var(--teal-600); }
.media .ph {
  background:
    radial-gradient(60% 45% at 78% 18%, var(--lav-500) 0%, transparent 70%),
    radial-gradient(70% 60% at 10% 100%, var(--teal-300) 0%, transparent 70%),
    linear-gradient(165deg, var(--teal-500) 0%, var(--teal-700) 100%);
}
.media .ph svg { width: 72%; opacity: .22; }
.media .ph .m { stroke-width: 2; }

/* Rotating credential badge */
.hero-media { isolation: isolate; }
.badge {
  position: absolute; z-index: 2; top: -34px; left: -34px;
  width: 132px; height: 132px; border-radius: 50%;
  background: var(--white); box-shadow: var(--shadow);
  display: grid; place-items: center;
}
.badge .ring { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); animation: spin 22s linear infinite; }
.badge .ring text { font: 600 9.2px var(--font-body); letter-spacing: .18em; fill: var(--teal-600); text-transform: uppercase; }
.badge .logo-mark { width: 40px; height: 40px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 979px) { .badge { top: -28px; left: auto; right: 12px; width: 112px; height: 112px; } .badge .logo-mark { width: 34px; height: 34px; } }

.hero { padding-top: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.hero-meta { list-style: none; padding: 0; margin: 2.25rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: var(--fs-sm); color: var(--ink-mute); }
.hero-meta li { display: inline-flex; align-items: center; gap: .55rem; }
.hero-meta li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal-300); }

/* Steps as a timeline */
.steps li { border-top: 0; padding: 0 0 2.5rem 4.25rem; position: relative; }
.steps li::before {
  content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 0; margin: 0;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-strong); background: var(--white);
  font: italic 400 1.1rem/1 var(--font-display); color: var(--lav-700);
}
.steps li::after { content: ""; position: absolute; left: 24px; top: 56px; bottom: 8px; width: 1px; background: var(--line-strong); }
.steps li:last-child::after { display: none; }
.steps h3 { padding-top: .5rem; }
@media (min-width: 1100px) {
  .steps li { padding: 4.75rem 1.5rem 0 0; }
  .steps li::after { left: 60px; right: -20px; top: 24px; bottom: auto; width: auto; height: 1px; }
  .steps li:last-child::after { display: none; }
  .steps h3 { padding-top: 0; }
}
@media (min-width: 720px) and (max-width: 1099px) { .steps li::after { display: none; } }

/* Press marquee */
.press { grid-template-columns: 1fr; overflow: hidden; }
@media (min-width: 900px) { .press { grid-template-columns: 11rem 1fr; } }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.press .marquee ul { flex-wrap: nowrap; gap: 0; padding-right: 0; }
.press .marquee li { padding-inline: 1.75rem; position: relative; }
.press .marquee li::after { content: ""; position: absolute; right: -3px; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--lav-500); transform: translateY(-50%); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Inner page hero art */
.page-hero { position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; right: -10%; top: -40%; width: 55vw; max-width: 760px; aspect-ratio: 1;
  background: radial-gradient(closest-side, var(--lav-50), transparent 70%); pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero .hero-art { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); width: clamp(160px, 22vw, 300px); opacity: .5; pointer-events: none; }
.page-hero .hero-art .m { fill: none; stroke: var(--teal-100); stroke-width: 2; stroke-linecap: round; }
.page-hero .hero-art .dot { fill: var(--lav-200); }
@media (max-width: 959px) { .page-hero .hero-art { display: none; } }
.page-hero .inner { padding-right: 0; }
@media (min-width: 960px) { .page-hero .inner { grid-template-columns: 7fr 4fr; } }

/* Footer wordmark */
.wordmark {
  display: block; margin: 3rem 0 -0.18em; white-space: nowrap; user-select: none;
  font: italic 400 clamp(5rem, 1rem + 19vw, 19rem)/.8 var(--font-display);
  letter-spacing: -0.04em; color: var(--teal-600);
}

/* Small polish */
.svc-list a { border-radius: 0; }
.svc-list a:hover { border-radius: 18px; border-bottom-color: transparent; }
.panel-lav { background: linear-gradient(135deg, var(--lav-100), var(--lav-50)); }
.btn { box-shadow: var(--shadow-inset); }
.btn:not(.btn-ghost):not(.btn-ghost-light):hover { box-shadow: var(--shadow-btn); }
.stats .v em { font-style: italic; color: var(--teal-500); }
@media (prefers-reduced-motion: reduce) { .badge .ring, .marquee-track { animation: none; } }

/* =========================================================
   12. Fit fixes (v3.1)
   ========================================================= */
/* Header: never let the CTA overflow the capsule */
.site-header .header-inner { max-width: 1360px; gap: 1rem; }
.brand, .header-cta { flex: none; }
.site-nav { min-width: 0; }
@media (min-width: 1100px) {
  .site-nav { flex: 1 1 auto; display: flex; justify-content: center; }
  .nav-list a { padding-inline: .7rem; font-size: .92rem; }
}
@media (min-width: 1100px) and (max-width: 1480px) {
  .brand-sub { display: none; }
  .brand-name { font-size: 1.25rem; }
  .nav-list a { padding-inline: .55rem; font-size: .88rem; }
  .header-cta { padding-left: 1.1rem; font-size: .92rem; gap: .6rem; }
}

/* Hero: headline, copy, buttons and photo all fit in the first screen on desktop */
@media (min-width: 980px) {
  .hero { padding-top: clamp(1rem, 3vh, 2.5rem); }
  .hero-grid {
    align-items: center;
    min-height: calc(100svh - var(--header-h) - clamp(1rem, 3vh, 2.5rem) - 1.5rem);
    gap: clamp(2rem, 4vw, 4.5rem);
  }
  .hero h1 { font-size: clamp(3rem, min(5.6vw, 11.5vh), 6.75rem); margin-bottom: clamp(1rem, 2.4vh, 1.75rem); }
  .hero .lede { font-size: clamp(1rem, .4rem + 1.1vh, 1.2rem); margin-bottom: clamp(1.25rem, 3vh, 2.25rem); }
  .hero .label { margin-bottom: clamp(.75rem, 2vh, 1.25rem); }
  .hero-meta { margin-top: clamp(1rem, 2.6vh, 2.25rem); }
  .hero-media .media {
    aspect-ratio: auto;
    height: clamp(380px, calc(100svh - var(--header-h) - 7rem), 680px);
    max-height: none;
  }
  .badge { top: -28px; left: -28px; }
}

/* =========================================================
   13. De-duplication tweaks (v3.2)
   ========================================================= */
.site-footer .btn-light, .site-footer .btn-light:hover { color: var(--teal-700); text-decoration: none; }
.footer-grid { padding-top: 0; }
/* Three stats */
.stats { grid-template-columns: 1fr; }
.stats li, .stats li:nth-child(even) { padding: 1.5rem 0; border-left: 0; }
.stats li { display: grid; grid-template-columns: 7.5rem 1fr; align-items: baseline; gap: 1rem; }
.stats .v { margin: 0; }
@media (min-width: 900px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stats li { display: block; padding: 1.75rem 1.5rem 0 0; }
  .stats li:nth-child(n+2) { border-left: 1px solid var(--line); padding-left: 2rem; }
  .stats .v { margin-bottom: .6rem; }
}

/* Portrait framing (square source photo, subject slightly right of centre) */
.media img { object-position: 56% 22%; }

/* =========================================================
   14. Touch targets (v3.3)
   ========================================================= */
.footer-links a { min-height: 44px; }
.footer-links li { padding: 0; }
.crumbs { margin-bottom: .75rem; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; }

/* =========================================================
   15. Dark theme (default). Remove class="theme-dark" from <html>
   in the pages, or check out the white-theme branch, to go back.
   ========================================================= */
html.theme-dark {
  /* Derived deeper teals (darker than --teal-700) for depth on dark */
  --teal-750: #0F3F38;
  --teal-800: #0C3832;
  /* Light-surface tokens, kept for light panels inside the dark page */
  --ink-light: var(--teal-700);
  --ink-soft-light: #4B6B66;
  --ink-mute-light: #5E7B76;
  --line-light: rgba(17, 71, 63, .12);
  --line-strong-light: rgba(17, 71, 63, .22);
  --tint-light: #F6F9F8;
  --white-92-light: rgba(255, 255, 255, .92);
  --white-10: rgba(255, 255, 255, .1);
  --white-24: rgba(255, 255, 255, .24);
  --white-30: rgba(255, 255, 255, .3);
  --header-glass: rgba(17, 71, 63, .82);
  --lav-glow: rgba(198, 161, 197, .16);

  /* Semantic tokens switched to dark */
  --ink: var(--white);
  --ink-soft: var(--teal-100);
  --ink-mute: var(--teal-200);
  --line: var(--white-12);
  --line-strong: var(--white-20);
  --surface: var(--teal-700);
  --tint: var(--teal-750);
  --white-92: var(--header-glass);
  background: var(--teal-700);
}

/* Light islands keep the light tokens */
.theme-dark .panel-lav, .theme-dark .emergency, .theme-dark .legal-banner,
.theme-dark .media-chip, .theme-dark .badge, .theme-dark .wa-label {
  --ink: var(--ink-light); --ink-soft: var(--ink-soft-light); --ink-mute: var(--ink-mute-light);
  --line: var(--line-light); --line-strong: var(--line-strong-light); --tint: var(--tint-light);
  --white-92: var(--white-92-light);
}
.theme-dark .media-chip { background: var(--white-92-light); }
.theme-dark .wa-label { background: var(--white); }
.theme-dark .panel-lav .label { color: var(--teal-600); }
.theme-dark .panel-lav .pill { background: var(--white-70); color: var(--teal-700); border-color: transparent; }
.theme-dark .panel-lav .btn { --bg: var(--teal-500); --fg: var(--white); --bd: var(--teal-500); --disc-bg: var(--white); --disc-fg: var(--teal-500); }
.theme-dark .panel-lav .btn:hover { --bg: var(--teal-600); --bd: var(--teal-600); --fg: var(--white); }
.theme-dark .panel-lav h2 em { color: var(--teal-500); }
.theme-dark .badge .logo-mark .m { stroke: var(--teal-500); }
.theme-dark .emergency a, .theme-dark .legal-banner a { color: var(--teal-700); }

/* Headings, accents, links */
.theme-dark h1 em, .theme-dark h2 em, .theme-dark h3 em, .theme-dark blockquote em { color: var(--lav-300); }
.theme-dark .accent { color: var(--verm-300) !important; } /* lighter vermilion stays readable on teal */
.theme-dark main p a:not(.btn), .theme-dark .dl a, .theme-dark .prose a { color: var(--lav-200); }
.theme-dark .label { color: var(--teal-100); }
.theme-dark .rows .n, .theme-dark .svc .n, .theme-dark .svc-list .n, .theme-dark .steps li::before,
.theme-dark .interest .n, .theme-dark .expect .n, .theme-dark .paths li::before { color: var(--lav-300); }
.theme-dark .crumbs span[aria-current] { color: var(--teal-200); }
.theme-dark .svc summary:hover .t, .theme-dark .svc:target summary .t, .theme-dark .acc summary:hover { color: var(--lav-200); }
.theme-dark .consult-note { color: var(--lav-200); }
.theme-dark .press li { color: var(--teal-100); }
.theme-dark ::selection { background: var(--lav-500); color: var(--teal-700); }

/* Logo turns white on dark (brand-approved variant) */
.theme-dark .logo-mark .m { stroke: var(--white); }

/* Header */
.theme-dark .site-header .header-inner { background: var(--header-glass); border-color: var(--white-12); }
.theme-dark .nav-list a { color: var(--teal-100); }
.theme-dark .nav-list a:hover, .theme-dark .nav-list a[aria-current="page"] { background: var(--white-10); color: var(--white); }
.theme-dark .nav-toggle { background: transparent; color: var(--white); border-color: var(--white-24); }
.theme-dark .menu-open .site-header .header-inner, .theme-dark .menu-open .site-nav { background: var(--teal-700); }

/* Buttons: primary is white on dark */
.theme-dark .btn { --bg: var(--white); --fg: var(--teal-700); --bd: var(--white); --disc-bg: var(--teal-500); --disc-fg: var(--white); }
.theme-dark .btn:hover { --bg: var(--teal-50); --bd: var(--teal-50); --fg: var(--teal-700); color: var(--teal-700); }
.theme-dark .btn-ghost, .theme-dark .btn-ghost-light { --bg: transparent; --fg: var(--white); --bd: var(--white-30); --disc-bg: var(--white-12); --disc-fg: var(--white); }
.theme-dark .btn-ghost:hover, .theme-dark .btn-ghost-light:hover { --bg: var(--white-10); --bd: var(--white); --fg: var(--white); color: var(--white); }

/* Surfaces that were white */
.theme-dark .facts, .theme-dark .info-card, .theme-dark .paths li { background: var(--teal-600); border-color: var(--white-10); }
.theme-dark .pill { background: transparent; color: var(--white); border-color: var(--white-24); }
.theme-dark a.pill:hover { background: var(--white-10); border-color: var(--lav-300); color: var(--white); }
.theme-dark .pill-soft { background: var(--white-10); border-color: transparent; }
.theme-dark .steps li::before { background: var(--teal-700); }
.theme-dark .to-top { background: var(--teal-600); color: var(--white); }
.theme-dark .panel-dark, .theme-dark .panel-tint { background: var(--teal-600); }
.theme-dark .tint { background: var(--teal-750); }
.theme-dark .page-hero::before { background: radial-gradient(closest-side, var(--lav-glow), transparent 70%); }
.theme-dark .page-hero .hero-art .m { stroke: var(--white-12); }
.theme-dark .page-hero .hero-art .dot { fill: var(--verm-500); opacity: .6; }
.theme-dark .site-footer { background: var(--teal-800); border-top: 1px solid var(--white-10); }
.theme-dark .wordmark { color: var(--teal-700); }
.theme-dark .map { background: var(--teal-600); }
/* Dark theme contrast fixes (AA) */
.theme-dark .emergency a, .theme-dark .legal-banner a { color: var(--teal-700) !important; }
.theme-dark .media-chip span { color: var(--ink-soft-light); }
.theme-dark .facts, .theme-dark .info-card, .theme-dark .panel-dark, .theme-dark .panel-tint, .theme-dark .paths li { --ink-mute: var(--teal-100); }
.theme-dark .quote-xl figcaption { color: var(--teal-100); }
.theme-dark .panel-teal .label { color: var(--white); }
.theme-dark .workplace dt { color: var(--teal-100); }

/* =========================================================
   16. Lavender theme (live). Pages use class="theme-lav" on <html>.
   Other themes: class="theme-dark" (dark-theme branch) or no class (white-theme branch).
   ========================================================= */
html.theme-lav {
  --lav-ink-soft: #3E5F5A;      /* body copy, darkened for AA on lavender */
  --lav-ink-mute: #46655F;
  --lav-ink-deep: #33524D;      /* body copy on the deeper lavender bands */
  --lav-number: #7E3F7D;        /* lav-700 darkened for AA on lavender */
  --white-78: rgba(255, 255, 255, .78);

  --ink-soft: var(--lav-ink-soft);
  --ink-mute: var(--lav-ink-mute);
  --line: rgba(17, 71, 63, .13);
  --line-strong: rgba(17, 71, 63, .24);
  --white-92: var(--white-78);
  --surface: var(--lav-100);
  --tint: var(--lav-200);
  background: var(--lav-100);
}
.theme-lav body { background: var(--surface); }
.theme-lav .tint { --ink-soft: var(--lav-ink-deep); --ink-mute: var(--lav-ink-soft); }

/* Panels and boxes that were lavender become white so they stand apart */
.theme-lav .panel-lav { background: var(--white); border: 1px solid var(--lav-200); }
.theme-lav .org .pill { background: var(--lav-50); }
.theme-lav .emergency, .theme-lav .legal-banner, .theme-lav .pill-soft, .theme-lav .duo .panel-tint { background: var(--white); }

/* Page heading glow and decorative M */
.theme-lav .page-hero::before { background: radial-gradient(closest-side, var(--lav-300), transparent 70%); }
.theme-lav .page-hero .hero-art .m { stroke: var(--lav-300); }

/* Small numbers and labels */
.theme-lav .rows .n, .theme-lav .svc .n, .theme-lav .svc-list .n, .theme-lav .steps li::before,
.theme-lav .interest .n, .theme-lav .expect .n, .theme-lav .paths li::before { color: var(--lav-number); }
.theme-lav .panel-teal .label { color: var(--white); }
.theme-lav .panel-dark .label { color: var(--teal-100); }
.theme-lav .tint { color: var(--lav-ink-deep); }
.theme-lav main p a:not(.btn), .theme-lav .prose a, .theme-lav .dl a { color: var(--teal-600); }

/* =========================================================
   17. Small-phone fit (header and footer brand)
   ========================================================= */
.brand-sub { font-size: .75rem; letter-spacing: .12em; }
/* Icon-only menu button up to 440px so brand + button always fit the capsule */
@media (max-width: 440px) {
  .nav-toggle .txt { display: none; }
  .nav-toggle { padding: 0; width: 46px; justify-content: center; }
}
@media (max-width: 359px) {
  .site-header .header-inner { gap: .5rem; }
  .brand { gap: .55rem; }
  .brand .logo-mark { width: 30px; height: 30px; }
  .brand-name { font-size: 1.15rem; }
  .site-header .brand-sub { display: none; }
}
.footer-brand .brand-text { min-width: 0; }
.footer-brand .brand-sub { white-space: normal; }
.nav-toggle { flex: none; }
@media (max-width: 400px) {
  .brand-sub { letter-spacing: .08em; }
  .brand-name { font-size: 1.25rem; }
}
