/* ==========================================================================
   Synthesis Health & Wellness
   One stylesheet. No build step. See GUIDELINES.md before editing.
   ========================================================================== */


/* ---------------------------------------------------------------- fonts --
   Self-hosted, deliberately. Loading these from Google would send every
   visitor's IP address and referring page to a third party, which is not a
   trade this particular site should be making. It also removes a network
   dependency the practice does not control.

   Both are variable fonts, so one file covers every weight we use.
   font-display: swap keeps text readable while they load.
   ------------------------------------------------------------------------ */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/source-serif-4-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/source-serif-4-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------- tokens -- */
:root {
  /* ink */
  --ink:        #1c2a25;
  --ink-soft:   #44554e;
  --ink-faint:  #6d7d76;

  /* greens */
  --pine:       #2f4a3f;
  --pine-deep:  #22382f;
  --sage:       #7f9a88;
  --sage-pale:  #cfdbd0;
  --sage-wash:  #e7eee8;

  /* neutrals */
  --linen:      #f7f4ee;
  --sand:       #ece4d6;
  --sand-deep:  #dcd1bd;
  --paper:      #fffdf9;

  /* accent, used sparingly */
  --clay:       #a96f52;
  --clay-deep:  #8d5a41;

  /* ---- semantic tokens: these are what components use, and what the
     dark theme overrides. Brand colours above stay fixed. ---- */
  --bg:            var(--linen);
  --bg-blur:       rgba(247, 244, 238, .92);
  --surface:       var(--paper);
  --surface-2:     var(--sage-wash);
  --surface-3:     var(--sand);
  --border:        var(--sand-deep);
  --border-strong: var(--sage);
  --hairline:      var(--sand);

  --text:          #1c2a25;
  --text-soft:     #44554e;
  --text-faint:    #6d7d76;
  --heading:       var(--pine-deep);
  --link:          var(--pine);
  --link-hover:    var(--clay-deep);
  --accent-soft:   var(--sage);

  --btn-bg:        var(--pine);
  --btn-bg-hover:  var(--pine-deep);
  --btn-fg:        #ffffff;

  /* The dark band (call-to-action strip and footer) */
  --band-bg:       var(--pine);
  --band-text:     var(--sage-wash);
  --band-heading:  #ffffff;
  --band-muted:    var(--sage-pale);
  --band-btn-bg:   var(--paper);
  --band-btn-fg:   var(--pine-deep);
  --footer-bg:     var(--pine-deep);
  --footer-rule:   rgba(207, 219, 208, .18);
  --footer-dim:    rgba(207, 219, 208, .78);
  --footer-dimmer: rgba(207, 219, 208, .7);

  /* Hero and meadow */
  --hero-from:     var(--sage-wash);
  --hero-to:       var(--linen);
  --meadow-1:      #dbe5dc;
  --meadow-2:      #c2d3c6;
  --meadow-3:      #a2bcab;
  --meadow-4:      #7f9a88;
  --meadow-fade:   #f7f4ee;

  --focus:      #2f4a3f;

  --measure:    68ch;
  --radius:     14px;
  --radius-lg:  22px;

  --shadow-sm:  0 1px 2px rgba(28, 42, 37, .05), 0 4px 14px rgba(28, 42, 37, .05);
  --shadow-md:  0 2px 6px rgba(28, 42, 37, .06), 0 18px 40px rgba(28, 42, 37, .08);
  --shadow-ring: transparent;

  --font-head:  "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --pad:        clamp(1.25rem, 5vw, 2.5rem);
  --gutter:     16px;
}

/* ===========================================================================
   Themes
   ---------------------------------------------------------------------------
   Opioid withdrawal dilates the pupils and causes real light sensitivity, and
   many people reach a site like this late at night. Dark is an accessibility
   decision here, not a stylistic one, so it is the DEFAULT: a visitor only
   gets the light theme if their device explicitly asks for it, or if they
   choose it themselves. A device with no stated preference gets dark.

   Three rules, deliberately:
     - no pure black background, no pure white text: together they cause
       halation, which makes serif text shimmer
     - the same brand greens, desaturated, so it reads as the same practice
       rather than a generic dark theme
     - every text pairing clears WCAG AA

   Cascade order below matters and is load-bearing:
     1. :root                         dark, the default
     2. @media (light) :not([dark])   light, for devices that ask for it
     3. :root[data-theme="light"]     an explicit choice of light
     4. :root[data-theme="dark"]      an explicit choice of dark

   Rules 3 and 4 have the same specificity as rule 2, so they must come after
   it in source order to win.
   ========================================================================= */

/* ---- 1. Dark, the default ---- */
:root {
  --bg:            #121916;
  --bg-blur:       rgba(18, 25, 22, .92);
  --surface:       #1a2320;
  --surface-2:     #17211d;
  --surface-3:     #1e2825;
  --border:        #2c3a35;
  --border-strong: #466054;
  --hairline:      #26332e;

  --text:          #dfe5e1;
  --text-soft:     #b4c1ba;
  --text-faint:    #8d9c95;
  --heading:       #eaf0ec;
  --link:          #a8c6b4;
  --link-hover:    #d9b199;
  --accent-soft:   #8fae9b;

  --btn-bg:        #a8c6b4;
  --btn-bg-hover:  #bcd6c6;
  --btn-fg:        #101714;

  --band-bg:       #18211e;
  --band-text:     #c3d0c8;
  --band-heading:  #eaf0ec;
  --band-muted:    #a9b8b0;
  --band-btn-bg:   #a8c6b4;
  --band-btn-fg:   #101714;
  --footer-bg:     #0e1412;
  --footer-rule:   rgba(169, 184, 176, .16);
  --footer-dim:    rgba(169, 184, 176, .80);
  --footer-dimmer: rgba(169, 184, 176, .64);

  --hero-from:     #18221e;
  --hero-to:       #121916;
  --meadow-1:      #1f2a25;
  --meadow-2:      #26352e;
  --meadow-3:      #314539;
  --meadow-4:      #3f5a4a;
  --meadow-fade:   #121916;

  --focus:         #a8c6b4;

  --shadow-sm:  0 1px 2px rgba(0, 0, 0, .35), 0 4px 14px rgba(0, 0, 0, .28);
  --shadow-md:  0 2px 6px rgba(0, 0, 0, .40), 0 18px 40px rgba(0, 0, 0, .38);

  --card-lift:  linear-gradient(180deg, rgba(255, 255, 255, .022), transparent 60%);
}

/* The light values, defined once and applied by rules 2 and 3 below. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg:            var(--linen);
    --bg-blur:       rgba(247, 244, 238, .92);
    --surface:       var(--paper);
    --surface-2:     var(--sage-wash);
    --surface-3:     var(--sand);
    --border:        var(--sand-deep);
    --border-strong: var(--sage);
    --hairline:      var(--sand);

    --text:          #1c2a25;
    --text-soft:     #44554e;
    --text-faint:    #6d7d76;
    --heading:       var(--pine-deep);
    --link:          var(--pine);
    --link-hover:    var(--clay-deep);
    --accent-soft:   var(--sage);

    --btn-bg:        var(--pine);
    --btn-bg-hover:  var(--pine-deep);
    --btn-fg:        #ffffff;

    --band-bg:       var(--pine);
    --band-text:     var(--sage-wash);
    --band-heading:  #ffffff;
    --band-muted:    var(--sage-pale);
    --band-btn-bg:   var(--paper);
    --band-btn-fg:   var(--pine-deep);
    --footer-bg:     var(--pine-deep);
    --footer-rule:   rgba(207, 219, 208, .18);
    --footer-dim:    rgba(207, 219, 208, .78);
    --footer-dimmer: rgba(207, 219, 208, .70);

    --hero-from:     var(--sage-wash);
    --hero-to:       var(--linen);
    --meadow-1:      #dbe5dc;
    --meadow-2:      #c2d3c6;
    --meadow-3:      #a2bcab;
    --meadow-4:      #7f9a88;
    --meadow-fade:   #f7f4ee;

    --focus:         #2f4a3f;

    --shadow-sm:  0 1px 2px rgba(28, 42, 37, .05), 0 4px 14px rgba(28, 42, 37, .05);
    --shadow-md:  0 2px 6px rgba(28, 42, 37, .06), 0 18px 40px rgba(28, 42, 37, .08);

    --card-lift:  none;
  }
}

/* ---- 3. An explicit choice of light ---- */
:root[data-theme="light"] {
  --bg:            var(--linen);
  --bg-blur:       rgba(247, 244, 238, .92);
  --surface:       var(--paper);
  --surface-2:     var(--sage-wash);
  --surface-3:     var(--sand);
  --border:        var(--sand-deep);
  --border-strong: var(--sage);
  --hairline:      var(--sand);

  --text:          #1c2a25;
  --text-soft:     #44554e;
  --text-faint:    #6d7d76;
  --heading:       var(--pine-deep);
  --link:          var(--pine);
  --link-hover:    var(--clay-deep);
  --accent-soft:   var(--sage);

  --btn-bg:        var(--pine);
  --btn-bg-hover:  var(--pine-deep);
  --btn-fg:        #ffffff;

  --band-bg:       var(--pine);
  --band-text:     var(--sage-wash);
  --band-heading:  #ffffff;
  --band-muted:    var(--sage-pale);
  --band-btn-bg:   var(--paper);
  --band-btn-fg:   var(--pine-deep);
  --footer-bg:     var(--pine-deep);
  --footer-rule:   rgba(207, 219, 208, .18);
  --footer-dim:    rgba(207, 219, 208, .78);
  --footer-dimmer: rgba(207, 219, 208, .70);

  --hero-from:     var(--sage-wash);
  --hero-to:       var(--linen);
  --meadow-1:      #dbe5dc;
  --meadow-2:      #c2d3c6;
  --meadow-3:      #a2bcab;
  --meadow-4:      #7f9a88;
  --meadow-fade:   #f7f4ee;

  --focus:         #2f4a3f;

  --shadow-sm:  0 1px 2px rgba(28, 42, 37, .05), 0 4px 14px rgba(28, 42, 37, .05);
  --shadow-md:  0 2px 6px rgba(28, 42, 37, .06), 0 18px 40px rgba(28, 42, 37, .08);

  --card-lift:  none;
}

/* ---- 4. An explicit choice of dark, overriding a light device ---- */
:root[data-theme="dark"] {
  --bg:            #121916;
  --bg-blur:       rgba(18, 25, 22, .92);
  --surface:       #1a2320;
  --surface-2:     #17211d;
  --surface-3:     #1e2825;
  --border:        #2c3a35;
  --border-strong: #466054;
  --hairline:      #26332e;

  --text:          #dfe5e1;
  --text-soft:     #b4c1ba;
  --text-faint:    #8d9c95;
  --heading:       #eaf0ec;
  --link:          #a8c6b4;
  --link-hover:    #d9b199;
  --accent-soft:   #8fae9b;

  --btn-bg:        #a8c6b4;
  --btn-bg-hover:  #bcd6c6;
  --btn-fg:        #101714;

  --band-bg:       #18211e;
  --band-text:     #c3d0c8;
  --band-heading:  #eaf0ec;
  --band-muted:    #a9b8b0;
  --band-btn-bg:   #a8c6b4;
  --band-btn-fg:   #101714;
  --footer-bg:     #0e1412;
  --footer-rule:   rgba(169, 184, 176, .16);
  --footer-dim:    rgba(169, 184, 176, .80);
  --footer-dimmer: rgba(169, 184, 176, .64);

  --hero-from:     #18221e;
  --hero-to:       #121916;
  --meadow-1:      #1f2a25;
  --meadow-2:      #26352e;
  --meadow-3:      #314539;
  --meadow-4:      #3f5a4a;
  --meadow-fade:   #121916;

  --focus:         #a8c6b4;

  --shadow-sm:  0 1px 2px rgba(0, 0, 0, .35), 0 4px 14px rgba(0, 0, 0, .28);
  --shadow-md:  0 2px 6px rgba(0, 0, 0, .40), 0 18px 40px rgba(0, 0, 0, .38);

  --card-lift:  linear-gradient(180deg, rgba(255, 255, 255, .022), transparent 60%);
}

/* ------------------------------------------------------- theme toggle ---- */
.theme-toggle {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; flex: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft);
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}
.theme-toggle:hover { color: var(--link); border-color: var(--border-strong); background: var(--surface-2); }
.theme-toggle svg { grid-area: 1 / 1; }

/* Show the sun while dark is showing (tap it for light), the moon while light
   is showing. Mirrors the cascade above, in the same order. */
.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="dark"]) .theme-toggle .icon-moon { display: block; }
}
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ------------------------------------------------- meadow, theme-aware --- */
.blades--1 { fill: var(--meadow-1); }
.blades--2 { fill: var(--meadow-2); }
.blades--3 { fill: var(--meadow-3); }
.blades--4 { fill: var(--meadow-4); }
.soil-stop { stop-color: var(--meadow-fade); }

/* On a dark page the cards need a faint lift to read as raised surfaces.
   --card-lift is `none` in the light theme. */
.card, .loc, .phonecard, .step, .pillars li, .reslist a { background-image: var(--card-lift); }

/* --------------------------------------------------------------- reset --- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 600; }
p  { margin: 0 0 1.15em; }
ul, ol { margin: 0 0 1.15em; padding-left: 1.3em; }
li { margin-bottom: .45em; }

h1 { font-family: var(--font-head); font-size: clamp(2.1rem, 5.2vw, 3.4rem); letter-spacing: -.015em; }
h2 { font-family: var(--font-head); font-size: clamp(1.6rem, 3.4vw, 2.35rem); letter-spacing: -.01em; }
h3 { font-family: var(--font-head); font-size: clamp(1.2rem, 2.2vw, 1.45rem); }
h4 { font-size: 1.0625rem; font-weight: 650; letter-spacing: .01em; }

a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); }

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

/* ------------------------------------------------------------ utilities -- */
.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
/* A narrow reading column that still starts on the same left edge as the
   page headings, rather than re-centring on the viewport. The container keeps
   the full wrap width; the measure is applied to its children. */
.wrap--narrow { max-width: 1120px; }
.wrap--narrow > * { max-width: 812px; }
.wrap.wrap--narrow.prose { max-width: 1120px; }
.wrap.wrap--narrow.prose > * { max-width: var(--measure); }

.prose { max-width: var(--measure); }
.prose > *:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.6;
  color: var(--text-soft);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: .9rem;
}

.section { padding-block: clamp(3.25rem, 8vw, 5.5rem); }
.section--tight { padding-block: clamp(2.25rem, 5vw, 3.5rem); }
.section--sand { background: var(--surface-3); }
.section--wash { background: var(--surface-2); }
.section--paper { background: var(--surface); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 50%; top: 0;
  transform: translate(-50%, -110%);
  background: var(--pine); color: #fff;
  padding: .7rem 1.2rem; border-radius: 0 0 var(--radius) var(--radius);
  z-index: 200; font-weight: 600; text-decoration: none;
  transition: transform .18s ease;
}
.skip-link:focus { transform: translate(-50%, 0); color: #fff; }

/* ------------------------------------------------------------ utilities --
   These exist so no element needs a style="" attribute, which lets the
   Content-Security-Policy forbid inline styles outright.
   ------------------------------------------------------------------------ */
.u-flush     { margin: 0; }
.u-flat      { padding: 0; }
.u-mt        { margin-top: 2rem; }
.u-mt-sm     { margin-top: 1.1rem; }
.u-mt-lg     { margin-top: 2.25rem; }
.u-mb        { margin-bottom: 2rem; }
.u-mb-lg     { margin-bottom: 2.25rem; }
.u-center    { text-align: center; }
.u-wide      { max-width: none; }
.u-lede-tight { max-width: 52ch; margin-bottom: 2rem; }
.note-small  { font-size: .95rem; color: var(--text-faint); }

/* Ghost button sitting on the dark call-to-action band. Two classes, because
   .btn--ghost is defined later in this file and would otherwise win the
   cascade and paint the label dark green on a dark green band. */
.btn.btn--on-band { color: var(--band-text); border-color: var(--band-muted); }
.btn.btn--on-band:hover { background: rgba(255, 255, 255, .08); color: var(--band-heading); }

/* --------------------------------------------------------------- header -- */

.masthead > .wrap { max-width: 1280px; }

.masthead {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-blur);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.masthead__inner {
  display: flex; align-items: center;
  gap: 1rem; min-height: 72px; min-width: 0;
}

.masthead__actions {
  display: flex; align-items: center; gap: .55rem;
  margin-left: auto; flex: none;
}
.call-short { display: none; }

.brand {
  display: inline-flex; align-items: center; gap: .65rem;
  text-decoration: none; color: var(--text);
  padding-block: .35rem; min-width: 0; flex: none;
}
.brand__mark { flex: none; width: 34px; height: 34px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand__name {
  font-family: var(--font-head); font-weight: 600;
  font-size: 1.05rem; letter-spacing: -.01em;
}
/* Only the masthead needs the name on one line; in the footer it must wrap. */
.masthead .brand__name { white-space: nowrap; }
.brand__tag {
  font-size: .66rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--text-faint); font-weight: 600; white-space: nowrap;
  /* Clear of the descender on the "y" in Synthesis directly above. */
  margin-top: .22rem;
}

.nav-toggle {
  display: none;
  align-items: center; gap: .5rem;
  background: none; border: 1px solid var(--border);
  border-radius: 999px; padding: .5rem .95rem;
  font: inherit; font-size: .92rem; font-weight: 600;
  color: var(--text); cursor: pointer; min-height: 44px;
}
.nav-toggle__bars { position: relative; width: 16px; height: 10px; flex: none; }
.nav-toggle__bars span {
  position: absolute; left: 0; width: 100%; height: 1.5px;
  background: var(--text); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 4.25px; }
.nav-toggle__bars span:nth-child(3) { top: 8.5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(4.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-4.25px) rotate(-45deg); }

.nav { display: flex; align-items: center; gap: .15rem; margin-left: auto; }
.nav a {
  display: inline-block;
  padding: .5rem .62rem;
  border-radius: 999px;
  font-size: .9rem; font-weight: 550;
  color: var(--text-soft); text-decoration: none;
  white-space: nowrap;
}
.nav a:hover { background: var(--surface-2); color: var(--link); }
.nav a[aria-current="page"] { color: var(--link); background: var(--surface-2); font-weight: 650; }

/* --------------------------------------------------------------- button -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .75rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit; font-size: 1rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { flex: none; }

.btn--primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn--primary:hover { background: var(--btn-bg-hover); color: var(--btn-fg); }

.btn--ghost { background: transparent; color: var(--link); border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--surface-2); color: var(--heading); }

.btn--small { min-height: 42px; padding: .5rem 1.05rem; font-size: .92rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* ----------------------------------------------------------------- hero -- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--hero-from) 0%, var(--hero-to) 62%); }
.hero__inner { position: relative; z-index: 2; padding-block: clamp(3.5rem, 10vw, 7rem) clamp(8.5rem, 19vw, 13rem); }
.hero__content { max-width: 40rem; }
.hero h1 { color: var(--heading); margin-bottom: .55rem; }
.hero__sub { font-size: clamp(1.08rem, 2vw, 1.28rem); color: var(--text-soft); max-width: 34rem; }
.hero .btn-row { margin-top: 1.9rem; }
.hero__note { margin-top: 1.4rem; font-size: .92rem; color: var(--text-faint); }

/* the swaying meadow at the base of the hero */
.meadow {
  position: absolute; left: 0; right: 0; bottom: -1px;
  width: 100%; height: clamp(150px, 21vw, 245px);
  z-index: 1; pointer-events: none;
}
.meadow svg { width: 100%; height: 100%; display: block; }
.blade { transform-origin: bottom center; animation: sway 11s ease-in-out infinite; }
.blade--a { animation-duration: 9.5s;  animation-delay: -1.2s; }
.blade--b { animation-duration: 13s;   animation-delay: -4.1s; }
.blade--c { animation-duration: 10.4s; animation-delay: -2.6s; }
.blade--d { animation-duration: 15s;   animation-delay: -6.8s; }
.blade--e { animation-duration: 12.2s; animation-delay: -3.4s; }

@keyframes sway {
  0%, 100% { transform: rotate(-1.1deg); }
  50%      { transform: rotate(1.1deg); }
}

/* --------------------------------------------------------------- pagetop - */
.pagetop {
  position: relative;
  background: linear-gradient(180deg, var(--hero-from) 0%, var(--hero-to) 100%);
  padding-block: clamp(2.75rem, 7vw, 4.5rem);
  border-bottom: 1px solid var(--border);
}
.pagetop h1 { color: var(--heading); max-width: 22ch; }
.pagetop .lede { max-width: 54ch; margin-bottom: 0; }

/* ---------------------------------------------------------------- cards -- */
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 3vw, 1.9rem);
  box-shadow: var(--shadow-sm);
}
.card > *:last-child { margin-bottom: 0; }
.card h3 { color: var(--heading); }

.card--link { text-decoration: none; color: inherit; display: block; transition: transform .18s ease, box-shadow .18s ease; }
.card--link:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: inherit; }
.card--link .card__more { color: var(--link); font-weight: 600; font-size: .95rem; }

.card__icon { color: var(--accent-soft); margin-bottom: .9rem; }

/* ------------------------------------------------------------- step list - */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; counter-reset: step; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 1.15rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin: 0;
}
.step__num {
  counter-increment: step;
  display: grid; place-items: center;
  width: 2.1rem; height: 2.1rem; flex: none;
  border-radius: 50%;
  background: var(--surface-2); color: var(--heading);
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
}
.step__num::before { content: counter(step); }
.step h3 { font-size: 1.12rem; margin-bottom: .25rem; }
.step p { margin: 0; color: var(--text-soft); }

.pillars {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.pillars li {
  margin: 0; text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 600; color: var(--heading);
  letter-spacing: .01em;
}

/* ----------------------------------------------------------- sign lists -- */
.signs { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.signs__col h3 { color: var(--heading); }
.signs ul { list-style: none; padding: 0; }
.signs li {
  position: relative; padding-left: 1.6rem; margin-bottom: .55rem;
  color: var(--text-soft);
}
.signs li::before {
  content: ""; position: absolute; left: .3rem; top: .72em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent-soft);
}

.phonecard {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 1rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 1.6rem) clamp(1.35rem, 3vw, 1.9rem);
  box-shadow: var(--shadow-sm);
}
.phonecard__text { flex: 1 1 15rem; min-width: 0; }
.phonecard__text p { margin: 0; color: var(--text-soft); font-size: .97rem; }
.phonecard__num {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: 600; color: var(--heading);
  text-decoration: none; line-height: 1.2; margin-bottom: .15rem;
}
.phonecard__num:hover { color: var(--link-hover); }

/* -------------------------------------------------------------- callout -- */
.callout {
  background: var(--surface-2);
  border-left: 4px solid var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.3rem 1.5rem;
  margin-block: 1.75rem;
}
.callout > *:last-child { margin-bottom: 0; }
.callout h3 { font-size: 1.1rem; color: var(--heading); }

.pullquote {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2.7vw, 1.7rem);
  line-height: 1.45;
  color: var(--heading);
  border: 0; margin: 2.25rem 0; padding: 0;
  max-width: 34ch;
}

/* ----------------------------------------------------------------- team -- */
.bio {
  display: grid;
  grid-template-columns: minmax(0, 16.5rem) minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 2.75rem);
  align-items: start;
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
  border-top: 1px solid var(--border);
}
.bio:first-of-type { border-top: 0; padding-top: 0; }
.bio__aside { position: sticky; top: 96px; }
.bio__portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  border: 1px dashed var(--accent-soft);
  display: grid; place-items: center;
  text-align: center; padding: 1rem;
  color: var(--text-faint); font-size: .84rem;
  margin-bottom: .9rem;
}
.bio__name {
  color: var(--heading); margin-bottom: .2rem;
  font-size: clamp(1.15rem, 1.6vw, 1.3rem); line-height: 1.25;
}
.bio__role { color: var(--accent-soft); font-weight: 650; font-size: .92rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 0; }
.bio__facts { list-style: none; padding: 0; margin: 1rem 0 0; font-size: .95rem; }
.bio__facts li { color: var(--text-soft); margin-bottom: .4rem; padding-left: 1.1rem; position: relative; }
.bio__facts li::before { content: ""; position: absolute; left: 0; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-soft); }

/* ------------------------------------------------------------ locations -- */
.loc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
}
.loc h3 { color: var(--heading); margin-bottom: .1rem; }
.loc__area { color: var(--accent-soft); font-weight: 650; font-size: .86rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1rem; }
.loc address { font-style: normal; color: var(--text-soft); margin-bottom: 1.75rem; }
.loc__hint { font-size: .92rem; color: var(--text-faint); }

.hours { width: 100%; border-collapse: collapse; margin-bottom: 1.1rem; }
.hours caption {
  text-align: left; font-weight: 650; font-size: .86rem;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-faint); padding-bottom: .75rem;
}
.hours th, .hours td { text-align: left; padding: .45rem 0; border-bottom: 1px solid var(--hairline); font-weight: 500; }
.hours th { color: var(--text-soft); font-weight: 600; width: 7.5rem; }
.hours td { color: var(--text); font-variant-numeric: tabular-nums; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }

/* ------------------------------------------------------------------ faq -- */
.faq { border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q {
  width: 100%;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  background: none; border: 0;
  padding: 1.3rem 0;
  font: inherit;
  font-family: var(--font-head);
  font-size: clamp(1.08rem, 2vw, 1.25rem);
  font-weight: 600;
  color: var(--heading);
  text-align: left; cursor: pointer;
}
.faq__q:hover { color: var(--link-hover); }
.faq__chev { flex: none; margin-top: .3em; transition: transform .22s ease; color: var(--accent-soft); }
.faq__q[aria-expanded="true"] .faq__chev { transform: rotate(180deg); }
.faq__a { padding: 0 0 1.4rem; max-width: var(--measure); }
.faq__a > *:last-child { margin-bottom: 0; }
.faq__a[hidden] { display: none; }

/* ---------------------------------------------------------- testimonials - */
.testimonials-empty {
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--accent-soft);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 6vw, 3.25rem);
  max-width: 44rem; margin-inline: auto;
}
.testimonials-empty p { color: var(--text-soft); margin-bottom: 0; }
.testimonials-empty .quote-mark {
  font-family: var(--font-head); font-size: 3rem; line-height: 1;
  color: var(--sage-pale); margin-bottom: .35rem;
}

/* -------------------------------------------------------------- resource - */
.reslist {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}
/* The li stretches so every card in a row is the same height, whatever the
   length of its description. */
.reslist li { margin: 0; display: flex; }
.reslist a {
  display: flex; flex-direction: column; gap: .3rem;
  flex: 1;
  background: var(--surface);
  background-image: var(--card-lift);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.3rem;
  text-decoration: none; color: inherit;
  min-height: 44px;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.reslist a:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.reslist strong {
  display: flex; align-items: center; gap: .45rem;
  color: var(--heading); font-weight: 650;
  font-size: 1.02rem; line-height: 1.3;
}
/* Small outward arrow, marking the link as leaving the site. */
.reslist strong::after {
  content: ""; flex: none;
  width: 13px; height: 13px;
  background: currentColor; opacity: .45;
  -webkit-mask: no-repeat center/13px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M9 7h8v8'/%3E%3C/svg%3E");
          mask: no-repeat center/13px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M9 7h8v8'/%3E%3C/svg%3E");
}
.reslist span {
  color: var(--text-faint); font-size: .92rem; line-height: 1.45;
}

/* ------------------------------------------------------------- call band - */
.callband {
  background: var(--band-bg);
  color: var(--band-text);
  text-align: center;
}
.callband h2 { color: var(--band-heading); }
.callband p { color: var(--band-muted); max-width: 46ch; margin-inline: auto; }
.callband .btn--primary { background: var(--band-btn-bg); color: var(--band-btn-fg); }
.callband .btn--primary:hover { background: var(--band-btn-bg); color: var(--band-btn-fg); filter: brightness(1.08); }
.callband .btn-row { justify-content: center; margin-top: 1.5rem; }

/* --------------------------------------------------------------- footer -- */
.footer {
  background: var(--footer-bg);
  color: var(--band-muted);
  padding-block: clamp(2.75rem, 6vw, 4rem) 2rem;
  font-size: .95rem;
}
.footer a { color: var(--band-muted); }
.footer a:hover { color: var(--band-heading); }
.footer__grid {
  display: grid; gap: 2rem 2.25rem;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--footer-rule);
}
.footer__grid > * { min-width: 0; }
.footer h2 {
  font-family: var(--font-body);
  font-size: .78rem; font-weight: 650;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-soft); margin-bottom: .9rem;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .5rem; }
.footer address { font-style: normal; line-height: 1.7; }
.footer__hours {
  list-style: none; padding: 1.1rem 0 0; margin: 1.1rem 0 0;
  border-top: 1px solid var(--footer-rule);
}
.footer__hours li {
  margin-bottom: .35rem; white-space: nowrap;
  display: flex; justify-content: space-between; gap: 1rem;
}
.footer__hours .day { color: var(--accent-soft); }
.footer__brand { min-width: 0; }
.footer__brand .brand__name {
  color: var(--band-heading); font-size: 1.12rem; display: block;
  white-space: normal; overflow-wrap: break-word; hyphens: none;
}
.footer__mantra { color: var(--accent-soft); font-style: italic; margin-top: .4rem; }
.footer__phone { margin-top: 1.1rem; margin-bottom: .35rem; }
.footer__phone a {
  font-family: var(--font-head); font-size: 1.25rem; font-weight: 600;
  color: var(--band-heading); text-decoration: none;
}
.footer__phone a:hover { text-decoration: underline; }

.disclaimer {
  padding-top: 1.75rem;
  font-size: .86rem; line-height: 1.65;
  color: var(--footer-dim);
  max-width: 78ch;
}
.disclaimer strong { color: var(--band-heading); font-weight: 650; }
.disclaimer p { margin-bottom: .75rem; }
.colophon {
  margin-top: 1.5rem; padding-top: 1.25rem;
  border-top: 1px solid var(--footer-rule);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  justify-content: space-between;
  font-size: .85rem; color: var(--footer-dimmer);
}

/* ------------------------------------------------------------ responsive - */
@media (max-width: 1280px) {
  .nav {
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .6rem var(--gutter) 1.1rem;
  }

  /* With JS, the menu is a drop-down behind the toggle. */
  .js .nav-toggle { display: inline-flex; }
  .js .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  /* Without JS there is nothing to open it with, so the menu simply sits
     under the header and stays available. */
  html:not(.js) .masthead { position: static; }
  html:not(.js) .masthead__inner { flex-wrap: wrap; }
  html:not(.js) .nav { width: 100%; margin-left: 0; padding-inline: 0; }

  .nav[hidden] { display: none; }
  .nav a { padding: .85rem .6rem; border-radius: var(--radius); font-size: 1rem; }
  .brand__tag { display: none; }
  .bio { grid-template-columns: 1fr; }
  .bio__aside { position: static; max-width: 17rem; }
}

@media (max-width: 560px) {
  .call-full { display: none; }
  .call-short { display: inline; }

  /* The masthead must never be wider than the phone it is on. */
  .brand { flex: 1 1 auto; }
  .brand__mark { width: 30px; height: 30px; }
  /* Beats `.masthead .brand__name { nowrap }` above, which is two classes. */
  .masthead .brand__name { font-size: .95rem; white-space: normal; }
  .brand__tag { display: none; }
  .masthead__inner { gap: .6rem; }
  .masthead__actions { gap: .4rem; }
  .nav-toggle { padding: .6rem .75rem; }

  /* Icon-only toggle, but keep its accessible name. */
  .nav-toggle__label {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .blade { animation: none; }
}

@media print {
  .masthead, .callband, .skip-link, .meadow, .nav-toggle { display: none !important; }
  body { background: #fff; }
  .faq__a[hidden] { display: block !important; }
}
