/* ==========================================================================
   Magnolia Hope Foundation, project stylesheet
   Pass 1 frame, 2026-09-15. Tokens from Website/DESIGN-GRAMMAR.md (locked at the
   Direction gate) and the bare section frame. Layout tokens come from
   ag-responsive.css, the type contract from ag-typography.css, timing from
   ag-motion.css. Nothing here re-declares a primitive token.
   Sections gain their styling one at a time under the Section Protocol.
   ========================================================================== */

:root {
  /* Type scale, canonical values (.claude/rules/web-css.md). Required on the page itself. */
  --text-hero: clamp(2.25rem, 1.647rem + 2.57vw, 3.938rem);
  --text-h1: clamp(1.875rem, 1.357rem + 2.21vw, 3rem);
  --text-h2: clamp(1.375rem, 0.95rem + 1.95vw, 2.25rem);   /* Cinzel caps run wider than the retired EB Garamond: 22px floor at 350 (2026-09-26), same 36px ceiling */
  --text-h3: clamp(1.313rem, 1.054rem + 1.1vw, 1.875rem);
  --text-h4: clamp(1.125rem, 0.952rem + 0.74vw, 1.5rem);
  --text-lg: clamp(1rem, 0.943rem + 0.24vw, 1.125rem);
  --text-base: clamp(0.938rem, 0.909rem + 0.12vw, 1rem);
  --text-sm: 0.875rem;
  --text-xs: 0.875rem;
  --text-eyebrow: 0.75rem;
  --space-section: clamp(3rem, 1.619rem + 5.89vw, 6rem);
  --space-container: clamp(1.125rem, 0.262rem + 3.68vw, 3rem);

  /* Fonts: TWO families only (Quinten 2026-09-26): Cinzel, the logo's face, for headings + wayfinding; Nunito Sans
     for body and small UI. EB Garamond (Direction gate 2026-09-15) retired; the monospace stack now reads body. */
  --font-display: "Cinzel", Georgia, serif;
  --font-heading: var(--font-display);
  --font-body: "Nunito Sans", Arial, sans-serif;
  --font-mono: var(--font-body);
  --font-logo: "Cinzel", Georgia, serif;   /* the wordmark's roman caps (Quinten 2026-09-16) */
  --fw-h2: 600;
  --fw-h3: 500;

  /* Palette, BRANDKIT.md locked 2026-09-15. Three hues plus the mark's plum, no gold. */
  --paper: #fffaf1;
  --ink: #2a2239;
  --brand-primary: #6f5a8f;        /* lavender, her "soft purple": ground family, type on render */
  --brand-700: #481038;            /* mark plum, measured from logo Variant 12: headings, header */
  --brand-rgb: 111, 90, 143;
  --brand-secondary: #8ba98c;      /* sage, her "earth tones": decorative only, never text */
  --accent: #f1d782;               /* soft yellow: one element per viewport */
  --accent-ink: #4a3a08;           /* the only text color allowed on the accent */
  --heart: #d03c28;                /* the mark's heart, measured from the logo; nav hover glyph only */
  --lavender-050: #f7f2fb;
  --lavender-100: #efe8f6;
  --sage-050: #eef3ed;
  --neutral-100: #f6f0e6;
  --neutral-200: #e8e0d4;
  --neutral-300: #c9bfb3;
  --neutral-500: #8f8797;
  --text-primary: var(--ink);
  --text-secondary: #5a5266;
  --on-ink: var(--paper);
  --on-ink-soft: rgba(255, 250, 241, 0.72);
  --text-on-ink: var(--paper);
  --c-white: #ffffff;
  --success: #5f8a63;
  --warning: #c99a3a;
  --error: #b5524e;

  /* Surface (DESIGN-GRAMMAR section 7) */
  --radius-s: 7px;
  --radius-m: 14px;
  --radius-l: 21px;
  --sh-sm: 0 6px 14px rgba(42, 34, 57, 0.08);
  --sh-lift: 0 14px 28px rgba(42, 34, 57, 0.14);
  --border: 1px solid var(--neutral-200);
  --glass-50: rgba(255, 250, 241, 0.5);

  /* Primitive hand-offs. ag-header token contract (AG-HEADER-STANDARD: 48px logo, 14px vertical,
     horizontal padding = --space-container, fluid 18 to 48px, never a raw px). */
  --logo-size: 48px;
  --section-padding-inline: var(--space-container);
  --max-w: var(--container-max);
  --header-bg: var(--c-white);              /* past the hero: solid white (Quinten 2026-09-16) */
  --header-border: rgba(111, 90, 143, 0.35);
  --header-glass: rgba(255, 250, 241, 0.58); /* over the hero: glass */
  --brand: var(--brand-primary);
  --c-mint: var(--brand-primary);
  --mint-glow: rgba(111, 90, 143, 0.30);
  --radius-md: var(--radius-m);
  --space-md: var(--space-m);
  --space-lg: var(--space-l);
  --fw-hero: 600;
  --glass-06: rgba(255, 250, 241, 0.06);
  --glass-08: rgba(255, 250, 241, 0.08);
  --glass-12: rgba(255, 250, 241, 0.12);
  --glass-92: rgba(255, 250, 241, 0.92);
  --scrim-45: rgba(0, 0, 0, 0.45);
  --drawer-backdrop: rgba(42, 34, 57, 0.58);
  --drawer-close-border: rgba(255, 250, 241, 0.18);
  /* shared surface tokens (formerly the ag-a11y contract; kept, other rules read them) */
  --safe-edge: 21px;
  --surface-strong: var(--c-white);
  --shadow-soft: var(--sh-lift);
  --lavender-50: var(--lavender-050);
  --lavender-800: #3d3151;
  --text-inverse: var(--paper);
  --bg-footer: var(--lavender-050);         /* light ground: the stacked plum logo (Quinten 2026-09-16) must read */
  --text-on-footer: var(--ink);
  --text-muted-on-footer: var(--text-secondary);
  --link-on-footer: var(--brand-700);
  --curtain-bg: var(--paper);
  --curtain-on: var(--brand-700);
  --curtain-on-soft: var(--brand-primary);
  --curtain-label: var(--text-secondary);
  --curtain-sweep-end: var(--paper);
  --sb-accent: var(--brand-primary);
  --sb-on-accent: var(--paper);
}

html {
  background: var(--paper);
  color: var(--text-primary);
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.55;
  background: var(--paper);
  color: var(--text-primary);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--brand-700);
  line-height: 1.1;
  margin: 0;
}
h1 { font-size: var(--text-h1); font-weight: 600; }
h2 { font-size: var(--text-h2); font-weight: var(--fw-h2); }
h3 { font-size: var(--text-h3); font-weight: var(--fw-h3); }
p { margin: 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: var(--space-2xs) var(--space-xs);
  border-radius: 0 0 var(--radius-s) 0;
  z-index: 999;
}
.skip-link:focus { left: 0; }

/* Frame: every section is a labeled block in COPY.md order. Styling per section comes
   later; only the container, the stack gap and the eyebrow exist here. */
.mhf-section {
  padding-block: var(--space-section);
  border-bottom: var(--border);
}
.mhf-section__inner {
  display: grid;
  gap: var(--space-s);
  justify-items: start;
}
.mhf-section p { max-width: var(--measure-body); }
.mhf-eyebrow {
  font-size: var(--text-eyebrow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-secondary);
}
.mhf-hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;   /* svh, not dvh (2026-10-04): a phone address bar sliding away no longer resizes the hero */
  min-height: calc(var(--vh1, 1svh) * 100);   /* and the screen-height lock (js/mhf-screen-h.js, 2026-10-13): some phone browsers still moved svh */
  display: grid;
  align-content: end;
  border-bottom: 0;
  background: var(--brand-700);
}
@supports not (height: 100svh) { .mhf-hero { min-height: 100vh; } }
.mhf-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0% 50%; /* the sun rises at the frame's left edge; a cover crop must never lose it */
  z-index: 0;
  background: var(--brand-700);
  transform: scaleX(-1);   /* mirrored (Quinten 2026-09-16): tree on the left, sun on the right. object-position is applied before the mirror, so the sun's edge is still the one kept. */
}
/* Never the native player (2026-10-15): WebKit paints its own controls on a background video it would not autoplay (Low Power Mode). The only control on the hero is .mhf-motion-toggle. */
.mhf-hero__video::-webkit-media-controls, .mhf-hero__video::-webkit-media-controls-panel, .mhf-hero__video::-webkit-media-controls-start-playback-button,
.mhf-creek__loop::-webkit-media-controls, .mhf-creek__loop::-webkit-media-controls-panel, .mhf-creek__loop::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
/* Plum scrim over the video: removed 2026-09-16 ("remove the purple shade"), restored the same day ("we might
   need that shade effect"), and the seam strip below now carries the same shade so the foot reads as one. */
.mhf-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(74% 78% at 22% 82%, rgba(42, 34, 57, 0.72), rgba(42, 34, 57, 0) 72%),
    linear-gradient(180deg, rgba(42, 34, 57, 0) 22%, rgba(42, 34, 57, 0.52) 58%, rgba(42, 34, 57, 0.86) 100%);
}
/* Copy block bottom-left (HER-01) and low (Quinten 2026-09-16), the runway bottom-center beneath it. */
.mhf-hero .mhf-section__inner {
  position: relative;
  z-index: 2;
  gap: var(--space-xs);
  justify-items: start;
  text-align: left;
  padding-bottom: calc(112px + var(--space-s));   /* the runway occupies the bottom 112px; one --space-s breath under the CTA */
}
.mhf-hero.mhf-section { padding-block: 0; }        /* the hero's own vertical space is the inner block's */
.mhf-hero h1 { font-size: var(--text-hero); color: var(--paper); max-width: 24ch; text-shadow: 0 2px 21px rgba(42, 34, 57, 0.55); }   /* wider run, still left-aligned (Quinten 2026-09-16) */
.mhf-hero p { color: var(--on-ink); max-width: 62ch; text-shadow: 0 1px 9px rgba(42, 34, 57, 0.45); }
.mhf-hero .mhf-lede { font-size: var(--text-lg); color: var(--paper); }

/* Runway (HER-20 to HER-28). Three chevrons 14/21/28px, 2.1s loop, 0/0.7/1.4s offsets, accent
   color, "Scroll" hidden at 900 and below, a real link with a 49px target. */
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 21px;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: 49px;
  min-height: 49px;
  padding: 7px;
  color: var(--accent);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateX(-50%);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  border-radius: var(--radius-s);
}
.hero-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.hero-scroll__word { line-height: 1; margin-bottom: 3px; text-shadow: 0 1px 6px rgba(42, 34, 57, 0.6); }
.hero-scroll i {
  display: block;
  width: 14px;
  height: 14px;
  margin-top: -3px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(45deg);
  filter: drop-shadow(0 0 9px var(--accent));
  opacity: 0.25;
  animation: mhf-runway 2.1s var(--ease-satisfying) infinite;
}
.hero-scroll i:nth-of-type(2) { width: 21px; height: 21px; animation-delay: 0.7s; }
.hero-scroll i:nth-of-type(3) { width: 28px; height: 28px; animation-delay: 1.4s; }
@keyframes mhf-runway { 0%, 100% { opacity: 0.2; } 42% { opacity: 1; } }

/* CTA pair, as the 2026-09-20 copy doc writes them: "[ Get started ] [ How can we help ]". Primary first,
   secondary beside it; wraps on narrow widths and centers under 6C with the rest of the block. */
.mhf-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs);
  width: fit-content;
  max-width: 100%;
}
.mhf-cta-row .ag-button { width: fit-content; }
/* On the hero the secondary sits over the plum scrim, where the primitive's plum-on-transparent has no
   contrast: paper ink and a paper rule there, the same lavender fill-wipe on hover. */
.mhf-hero .ag-button--secondary { color: var(--paper); border-color: var(--glass-92); }
@media (hover: hover) { .mhf-hero .ag-button--secondary:hover { color: var(--c-white); border-color: var(--brand-primary); } }

/* Inner pages (About, Services, Contact): a title band under the fixed header. The video hero is the
   homepage's alone (AG-HERO-STANDARD: one per site), so these open on the page name over lavender-050. */
/* Shared hero (Quinten 2026-09-27): one picture for About, Services and Contact, a family walking through the
   homepage's valley at golden hour (assets/generated/092726). The page name sits on the calm sky at the left, over a
   soft plum shade; the picture's foot fades into the paper so the page reads on. */
.mhf-page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(420px, 68vh, 720px); display: flex; align-items: center;
  padding-top: calc(var(--header-top) + var(--header-h) + var(--space-l, 2rem));
  padding-bottom: clamp(80px, 12vh, 140px);
  background: var(--lavender-050) image-set(url("../img/family-valley-hero-1200.webp") 1x, url("../img/family-valley-hero.webp") 2x) 62% 55% / cover no-repeat;
  border-bottom: 0;
}
@media (min-width: 1200px) { .mhf-page-hero { background-image: url("../img/family-valley-hero.webp"); } }
.mhf-page-hero::before, .mhf-page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.mhf-page-hero::before { background: linear-gradient(90deg, rgba(42, 20, 38, 0.5) 0%, rgba(42, 20, 38, 0.18) 42%, rgba(42, 20, 38, 0) 65%); }
.mhf-page-hero::after { top: auto; height: 22%; background: linear-gradient(to bottom, rgba(255, 250, 241, 0), var(--paper)); }
.mhf-page-hero .mhf-section__inner { width: 100%; }
.mhf-page-hero h1 { font-size: var(--text-hero); color: var(--paper); text-shadow: 0 2px 18px rgba(42, 20, 38, 0.45); }
@media (max-width: 700px) {
  .mhf-page-hero { min-height: 58vh; background-position: 72% 55%; }
  .mhf-page-hero::before { background: linear-gradient(180deg, rgba(42, 20, 38, 0.45), rgba(42, 20, 38, 0.1) 60%, rgba(42, 20, 38, 0)); }
}

/* A section whose copy or facts are not on disk yet. Blocks ship, never build. */
.mhf-needs {
  border: 1px dashed var(--neutral-300);
  border-radius: var(--radius-m);
  padding: var(--space-s);
  color: var(--text-secondary);
  background: var(--neutral-100);
  max-width: var(--measure-body);
}

/* Header states (Quinten 2026-09-16): GLASS over the hero, WHITE past it, and the underline
   pulses lavender while the bar is on screen. The primitive (ag-header v2.8) toggles
   .is-transparent over .hero; this layer restyles that state as glass instead of clear and
   keeps the plum logo (the primitive's white-invert is for dark heroes). */
.ag-header {
  background: var(--header-bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 3px solid var(--brand-primary);
  animation: mhf-header-pulse 4.2s var(--ease-soft) 1 forwards;   /* WCAG 2.2.2: one breath, under 5 s, no endless loop (2026-09-26) */
  /* transform first: the shorthand replaces the primitive's list, and without it .is-hidden snaps
     instead of sliding (caught 2026-09-20). Same 300ms / ease-satisfying slide as ag-header v2.8. */
  transition: transform var(--duration-quick) var(--ease-satisfying),
    background var(--duration-medium) var(--ease-soft);
}
.ag-header.is-transparent {
  background: var(--header-glass);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--brand-primary);
}
.ag-header.is-transparent .ag-header__logo { filter: none; }
.ag-header.is-transparent .ag-header__nav a:not(.ag-button) { color: var(--text-primary); }
.ag-header.is-transparent .ag-header__nav a:not(.ag-button)::after { background: var(--brand-primary); }
.ag-header.is-transparent .ag-nav-link-arrow,
.ag-header.is-transparent .ag-hamburger { color: var(--brand-700); }
@media (hover: hover) { .ag-header.is-transparent .ag-header__nav a:not(.ag-button):hover { color: var(--brand-700); } }
.ag-header.is-hidden { animation-play-state: paused; }   /* off screen: no pulse */
@keyframes mhf-header-pulse {
  from { border-bottom-color: rgba(111, 90, 143, 0.28); box-shadow: 0 3px 0 0 rgba(111, 90, 143, 0); }
  to   { border-bottom-color: rgba(111, 90, 143, 1);    box-shadow: 0 3px 14px 0 rgba(111, 90, 143, 0.35); }
}
@media (prefers-reduced-motion: reduce) {
  .ag-header { animation: none; border-bottom-color: var(--brand-primary); }
  .hero-scroll i { animation: none; opacity: 0.8; }   /* HER-27 */
}

/* Floating pill (Quinten 2026-09-26, raised to 32px 2026-09-27): the header floats 32px below the top edge as a rounded pill, the width of
   the content column, instead of a full-width bar. The pulse moves from the bottom rule to the pill's outline. */
:root { --header-top: 32px; }
.ag-header {
  top: var(--header-top); left: 0; right: 0;
  width: min(100% - 2 * var(--space-container), 72rem); margin-inline: auto;
  border: 1.5px solid var(--brand-primary); border-radius: 999px;
  box-shadow: 0 12px 32px rgba(72, 16, 56, 0.14);
  animation-name: mhf-pill-pulse;
}
.ag-header.is-transparent { border-color: var(--brand-primary); }
.ag-header.is-hidden { transform: translateY(calc(-100% - var(--header-top) - 24px)); }
/* once slid away the pill is truly hidden (visibility flips after the 300ms slide, and back the instant it returns), and
   while hidden its logo goes compact with no animation: the browser measures a hidden-but-visible header where it sits,
   so the words' width change there counted as page movement (build check 26, 2026-10-09) */
.ag-header { transition: transform var(--duration-quick) var(--ease-satisfying), background var(--duration-medium) var(--ease-soft), visibility 0s linear 0s; }
.ag-header.is-hidden { visibility: hidden; transition: transform var(--duration-quick) var(--ease-satisfying), background var(--duration-medium) var(--ease-soft), visibility 0s linear var(--duration-quick); }
.ag-header.is-hidden .mhf-logo__words, .ag-header.is-hidden .mhf-logo__words img { transition: none; }
/* compacting while the header slides away: the words hold full width only for the slide (html.mhf-logo-hold, ~400ms,
   js/mhf-header-pill.js), since a width change there counted as page movement; then they go compact out of sight with
   no animation, so the header comes back small (Quinten 2026-10-13: the full name only at the top) */
html.mhf-logo-compact.mhf-logo-hold .ag-header.is-hidden .mhf-logo__words, html.mhf-logo-compact.mhf-logo-hold.mhf-in-bridge .ag-header .mhf-logo__words { width: calc(var(--mw) / 2 + 4px + var(--ww)); }
html.mhf-logo-compact.mhf-logo-hold .ag-header.is-hidden .mhf-logo__words img, html.mhf-logo-compact.mhf-logo-hold.mhf-in-bridge .ag-header .mhf-logo__words img { transform: none; }
html.mhf-in-bridge .ag-header .mhf-logo__words, html.mhf-in-bridge .ag-header .mhf-logo__words img { transition: none; }
html.mhf-logo-moved .ag-header.is-hidden { animation: none; }
.ag-header__row { padding-block: 0; padding-inline: 12px 22px; max-width: none; }
@media (min-width: 701px) { .ag-header__row { padding-inline: 22px 10px; } }
@keyframes mhf-pill-pulse {
  from { border-color: rgba(111, 90, 143, 0.28); box-shadow: 0 12px 32px rgba(72, 16, 56, 0.1), 0 0 0 0 rgba(111, 90, 143, 0); }
  to   { border-color: rgba(111, 90, 143, 1);    box-shadow: 0 12px 32px rgba(72, 16, 56, 0.14), 0 0 16px 0 rgba(111, 90, 143, 0.3); }
}
@media (prefers-reduced-motion: reduce) { .ag-header { border-color: var(--brand-primary); } }

/* Logo (Quinten 2026-09-26): the full lockup at the top; scrolling, the words slide left and vanish exactly at the
   flower's edge, as if they pass behind it (js/mhf-header-pill.js sets html.mhf-logo-compact). The words' layer
   starts at the flower's centre, under it; its mask is clear up to just inside the flower's right edge and solid
   right after it, so a letter stays whole until it reaches the flower and is gone the moment it passes behind.
   The layer's width closes in step with the slide, so the links follow the logo in. */
.mhf-logo { --lh: 48px; --mw: calc(var(--lh) * 182 / 141); --ww: calc(var(--lh) * 648 / 141);
  position: relative; display: inline-flex; align-items: center; height: var(--lh); }
.mhf-logo img { display: block; height: var(--lh); width: auto; max-width: none; }
.mhf-logo__mark { position: relative; z-index: 2; }
.mhf-logo__words {
  display: block; position: relative; z-index: 1; margin-left: calc(var(--mw) / -2);
  padding-left: calc(var(--mw) / 2 + 4px); width: calc(var(--mw) / 2 + 4px + var(--ww)); box-sizing: border-box;
  -webkit-mask-image: linear-gradient(to right, transparent calc(var(--mw) / 2 - 6px), #000 calc(var(--mw) / 2 + 1px));
  mask-image: linear-gradient(to right, transparent calc(var(--mw) / 2 - 6px), #000 calc(var(--mw) / 2 + 1px));
  transition: width 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}
.mhf-logo__words img { transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1); }
html.mhf-logo-compact .mhf-logo__words { width: calc(var(--mw) / 2); pointer-events: none; }
html.mhf-logo-compact .mhf-logo__words img { transform: translateX(calc(-100% - 8px)); }
html.mhf-logo-compact .mhf-logo__mark { animation: mhf-mark-take 0.6s cubic-bezier(0.34, 1.4, 0.64, 1) 0.45s; }
/* as the words go (or come back) the whole pill gives a small squish, like a soft body settling */
html.mhf-logo-moved.mhf-logo-compact .ag-header { animation: mhf-pill-pulse 4.2s var(--ease-soft) 1 forwards, mhf-pill-squish-in 0.8s cubic-bezier(0.34, 1.3, 0.64, 1) 0.3s; }
html.mhf-logo-moved:not(.mhf-logo-compact) .ag-header { animation: mhf-pill-pulse 4.2s var(--ease-soft) 1 forwards, mhf-pill-squish-out 0.8s cubic-bezier(0.34, 1.3, 0.64, 1) 0.3s; }
@keyframes mhf-pill-squish-in  { 0% { scale: 1 1; } 45% { scale: 0.985 1.06; } 75% { scale: 1.008 0.975; } 100% { scale: 1 1; } }
@keyframes mhf-pill-squish-out { 0% { scale: 1 1; } 45% { scale: 1.012 0.95; } 75% { scale: 0.996 1.02; } 100% { scale: 1 1; } }
@media (prefers-reduced-motion: reduce) { html.mhf-logo-moved .ag-header { animation: none; } }
/* opening a page in the previous page's logo state: no transition on that first frame */
html.mhf-logo-instant .mhf-logo__words, html.mhf-logo-instant .mhf-logo__words img, html.mhf-logo-instant .ag-header { transition: none !important; }
/* the header's one lavender breath plays on the first page of a visit only; after that it simply is (Quinten
   2026-09-27: "the pill header needs to be stationary") */
html.mhf-header-seen .ag-header { animation: none; border-color: rgba(111, 90, 143, 1); box-shadow: 0 12px 32px rgba(72, 16, 56, 0.14), 0 0 16px 0 rgba(111, 90, 143, 0.3); }
html.mhf-header-seen.mhf-logo-moved.mhf-logo-compact .ag-header { animation: mhf-pill-squish-in 0.8s cubic-bezier(0.34, 1.3, 0.64, 1) 0.3s; }
html.mhf-header-seen.mhf-logo-moved:not(.mhf-logo-compact) .ag-header { animation: mhf-pill-squish-out 0.8s cubic-bezier(0.34, 1.3, 0.64, 1) 0.3s; }
@keyframes mhf-mark-take { 50% { transform: scale(1.06); } }   /* the flower takes the words in with a small breath */

/* The row: the page links (Home first) share one concave track; the CTA sits at the right with an even
   gap to the pill's edge, so its round ends run parallel to the outer ones. */
@media (min-width: 701px) {
  /* the pill hugs what it holds (Quinten 2026-09-27): logo, links, CTA, and narrows with the logo as the words
     slide away (their width closes over 0.7s, so the pill follows frame by frame) */
  .ag-header.is-expanded { width: fit-content; max-width: calc(100% - 2 * var(--space-container)); }
  .ag-header.is-expanded .ag-header__row { grid-template-columns: auto auto auto; column-gap: clamp(28px, 3vw, 56px); }
  /* the collapse check measures the room a full-width pill would have, never the hugged width */
  .ag-header[data-nav-measuring] { width: min(100% - 2 * var(--space-container), 72rem) !important; }
  .ag-header__nav { justify-self: center; gap: 8px; }
  .ag-header__row > .ag-button { justify-self: end; }
  .ag-header__row { padding-inline: calc((var(--header-h) - 48px) / 2 + 4px) calc((var(--header-h) - 49px) / 2); }
}
.ag-header .ag-header__row > .ag-button { border-radius: 999px; }
.ag-header__row { position: relative; }
.ag-header__brand, .ag-header__nav { position: relative; z-index: 1; }

/* Page links: the heart roll is retired; hover lifts the word a touch and deepens it, while a faint glass ghost
   glides under the pointer. */
.ag-header__nav a:not(.ag-button) { position: relative; z-index: 1; overflow: visible; padding: 6px 20px; }
.ag-header__nav a:not(.ag-button)::after, .ag-header__nav .ag-nav-link-arrow { display: none; }
.ag-header__nav .ag-nav-link-label { transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1), color 0.25s ease; }
@media (hover: hover) {
  .ag-header__nav a:not(.ag-button):hover { color: var(--brand-700); }
  .ag-header__nav a:not(.ag-button):hover .ag-nav-link-label { transform: translateY(-1px); }
}

/* the track, the ghost and the liquid glass pill */
.mhf-nav-pill, .mhf-nav-track, .mhf-nav-ghost { position: absolute; left: 0; top: 50%; border-radius: 999px; pointer-events: none; }
.mhf-nav-track {
  height: 56px; z-index: 0; transform: translateY(-50%);
  background: linear-gradient(180deg, rgba(111, 90, 143, 0.1), rgba(111, 90, 143, 0.035));
  box-shadow: inset 0 2px 6px rgba(72, 16, 56, 0.17), inset 0 -1px 1px rgba(255, 255, 255, 0.95), 0 1px 0 rgba(255, 255, 255, 0.85);
}
.mhf-nav-ghost {
  height: 44px; z-index: 0; opacity: 0;
  background: rgba(255, 255, 255, 0.5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  transition: transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1), width 0.4s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.25s ease;
}
.mhf-nav-ghost.is-still { transition: opacity 0.25s ease; }
/* liquid glass: a clear body that bends the light behind it (blur + saturation), a bright specular rim along the top,
   a soft caustic glow low inside, and a thin refractive edge */
.mhf-nav-pill {
  height: 46px; width: 0; z-index: 0; opacity: 0; transform-origin: 50% 50%;
  background:
    radial-gradient(120% 90% at 30% 0%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.35) 45%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(90% 70% at 70% 120%, rgba(241, 215, 130, 0.22), rgba(241, 215, 130, 0) 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(239, 232, 246, 0.45));
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 1), inset 0 -1.5px 2px rgba(111, 90, 143, 0.18), inset 1px 0 1px rgba(255, 255, 255, 0.6),
    0 0 0 0.5px rgba(111, 90, 143, 0.3), 0 6px 16px rgba(72, 16, 56, 0.16), 0 1px 3px rgba(72, 16, 56, 0.14);
  -webkit-backdrop-filter: blur(10px) saturate(1.8) brightness(1.05); backdrop-filter: blur(10px) saturate(1.8) brightness(1.05);
  transition: opacity 0.3s ease;
}
@media (max-width: 700px) { .mhf-nav-pill, .mhf-nav-track, .mhf-nav-ghost { display: none; } .mhf-logo { --lh: 44px; } }
/* tablets (Quinten 2026-10-13): the full header from 701px, with the logo held to the flower so logo, links and
   Start Here fit one row; the full name returns from 1101px */
@media (min-width: 701px) and (max-width: 1100px) {
  .mhf-logo__words { width: calc(var(--mw) / 2); pointer-events: none; transition: none; }
  .mhf-logo__words img { transform: translateX(calc(-100% - 8px)); transition: none; }
  .mhf-logo__words { visibility: hidden; }   /* no sliver of the words at the flower's edge */
  /* the logo never changes here, so no squish: the first visit keeps only the lavender breath */
  html.mhf-logo-moved .ag-header { animation: mhf-pill-pulse 4.2s var(--ease-soft) 1 forwards; }
  html.mhf-header-seen.mhf-logo-moved .ag-header { animation: none; }
}
/* 701-900: a little less air between the parts and to the screen edge, so the one row fits from 701 */
@media (min-width: 701px) and (max-width: 900px) {
  .ag-header.is-expanded { max-width: calc(100% - 24px); }
  .ag-header[data-nav-measuring] { width: calc(100% - 24px) !important; }
  .ag-header.is-expanded .ag-header__row { column-gap: 12px; }
  .ag-header__nav { gap: 2px; }
  .ag-header__nav a:not(.ag-button) { padding-left: 14px; }
  .ag-header__row > .ag-button { padding-inline: 22px; }
}
/* narrow phones (2026-10-04): at 44px the full lockup + menu button outgrew the pill below ~400px and the menu bars
   spilled past its edge; the logo scales with the screen instead, so lockup, button and padding always fit */
@media (max-width: 420px) { .mhf-logo { --lh: min(44px, calc((100vw - 2 * var(--space-container) - 100px) * 141 / 834)); } }
.ag-header.is-collapsed .mhf-nav-pill, .ag-header.is-collapsed .mhf-nav-track, .ag-header.is-collapsed .mhf-nav-ghost { display: none; }
@media (prefers-reduced-motion: reduce) { .mhf-nav-ghost, .mhf-logo__words, .mhf-logo__words img { transition: none; } }

/* Buttons read as plain text at rest (Quinten 2026-09-27); the arrow appears only on hover or keyboard focus. It sits
   in the button's right padding, out of the layout, so the button never changes width; the label eases left to make
   room, and the primitive's roll-swap (-> out, ↗ in) still plays as it arrives. */
.ag-button { padding-inline: 30px; }
.ag-button .arrow { position: absolute; right: 10px; top: 50%; margin-top: -0.525em; opacity: 0; transform: translateX(-6px);
  transition: opacity 0.25s var(--ease-soft), transform 0.35s var(--ease-satisfying); }
.ag-button .ag-button__label { display: inline-block; transition: transform 0.35s var(--ease-satisfying); }
@media (hover: hover) {
  .ag-button:hover .arrow { opacity: 1; transform: none; }
  .ag-button:hover .ag-button__label { transform: translateX(-7px); }
}
.ag-button:focus-visible .arrow { opacity: 1; transform: none; }
.ag-button:focus-visible .ag-button__label { transform: translateX(-7px); }
@media (prefers-reduced-motion: reduce) { .ag-button .arrow, .ag-button .ag-button__label { transition: none; } }

/* Email buttons (Quinten 2026-10-06: "so people know it is email and not phone"): an envelope rolls in on hover
   where the arrow would; same place, same roll, so the button still never changes width. */
.ag-button--email .arrow { width: 1.2em; height: 1.05em; }
.ag-button--email .arrow::before, .ag-button--email .arrow::after {
  content: ""; background: currentColor;
  -webkit-mask: var(--mhf-envelope) center / contain no-repeat; mask: var(--mhf-envelope) center / contain no-repeat;
}
:root { --mhf-envelope: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6zm-2 0l-8 5-8-5h16zm0 12H4V8l8 5 8-5v10z'/%3E%3C/svg%3E"); }

/* Nav hover glyph is the mark's heart, not the house arrow (Quinten 2026-09-16); same roll, same timing.
   The heart's point aims up-right like the arrow did: the inner glyph is rotated, the primitive's own
   transform on the outer span stays intact. */
.ag-nav-link-arrow, .ag-drawer__chev { color: var(--heart); font-size: 0.95em; }
.ag-header.is-transparent .ag-nav-link-arrow { color: var(--heart); }
.mhf-heart { display: inline-block; font-style: normal; transform: rotate(-135deg); transform-origin: 50% 55%; }
/* Beefed up (Quinten 2026-09-16): the heart stands as tall as the label's caps. The glyph's ink is about
   0.72em tall, the caps about 0.72em of the label, so the heart runs at 1.45em to match after the spin; the
   link's arrow gap and the underline's stop widen with it. */
.ag-nav-link-arrow { font-size: 1.45em; }
.ag-header__nav a:not(.ag-button) { padding-right: 1.6em; }
.ag-header__nav a:not(.ag-button)::after { right: 1.6em; }
.ag-drawer__chev { font-size: 1.45em; }

/* Nav links and CTAs in the wordmark's face (Quinten 2026-09-16): Cinzel, the roman caps of the logo. */
.ag-header__nav a:not(.ag-button), .ag-drawer__label, .ag-button {
  font-family: var(--font-logo);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.ag-button { font-weight: 600; }

/* Header CTA hover (Quinten 2026-09-16): the hero's meadow rises inside the pill, the label and the
   arrow beef up. img/cta-meadow.webp is the transparent strip from assets/Transition.png (flower tops
   keep their alpha, so the silhouette line lands about a third of the way down the pill).
   The label reserves its 800-weight width with a hidden twin (::after) so the pill never jumps. */
.mhf-cta-meadow {
  --cta-arrow-rest: url("data:image/svg+xml;utf8,<svg 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'><path d='M3 12h17M14 6l6 6-6 6'/></svg>");
  --cta-arrow-beef: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'><path d='M5 19L19 5M8 5h11v11'/></svg>");
  gap: 10px;
  transition: transform var(--duration-quick) var(--ease-snap), background-color 0.42s var(--ease-soft),
    color 0.42s var(--ease-soft), border-color 0.42s var(--ease-soft), box-shadow var(--duration-quick) var(--ease-soft);
}
.mhf-cta-meadow .ag-button__label {
  display: inline-block; text-align: center; font-weight: 600;
  transition: font-weight 0.42s var(--ease-satisfying), letter-spacing 0.42s var(--ease-satisfying);
}
.mhf-cta-meadow .ag-button__label::after {
  content: attr(data-text); display: block; height: 0; overflow: hidden; visibility: hidden; font-weight: 800; letter-spacing: 0.05em;
}
.mhf-cta-meadow::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../img/cta-meadow.webp") center bottom / cover no-repeat;
  transform: translateY(101%);
  transition: transform 0.3s var(--ease-soft);
}
.mhf-cta-meadow::after { display: none; }                       /* the sheen sweep yields to the meadow */
.mhf-cta-meadow .arrow { width: 1.25em; height: 1.15em; vertical-align: -0.2em; }
.mhf-cta-meadow .arrow::before, .mhf-cta-meadow .arrow::after {
  content: ""; background: currentColor;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat;
}
.mhf-cta-meadow .arrow::after { --m: var(--cta-arrow-rest); }
.mhf-cta-meadow .arrow::before { --m: var(--cta-arrow-beef); transform: translateY(-105%) scale(1.18); }
@media (hover: hover) {
  .mhf-cta-meadow:hover { color: var(--c-white); background: var(--brand-700); border-color: var(--brand-700); text-shadow: 0 1px 7px rgba(42, 34, 57, 0.75), 0 0 2px rgba(42, 34, 57, 0.6); }
  .mhf-cta-meadow:hover .arrow { filter: drop-shadow(0 1px 3px rgba(42, 34, 57, 0.75)); }
  .mhf-cta-meadow:hover::before { transform: translateY(0); transition: transform 0.42s var(--ease-satisfying); }
  .mhf-cta-meadow:hover .ag-button__label { font-weight: 800; letter-spacing: 0.05em; }
  .mhf-cta-meadow:hover .arrow::before { transform: translateY(0) scale(1.18); }
}
/* the label's hover shift (arrow on hover only) rides along with the meadow's beef-up */
.mhf-cta-meadow .ag-button__label { transition: font-weight 0.42s var(--ease-satisfying), letter-spacing 0.42s var(--ease-satisfying), transform 0.35s var(--ease-satisfying); }
@media (prefers-reduced-motion: reduce) {
  .mhf-cta-meadow::before, .mhf-cta-meadow:hover::before, .mhf-cta-meadow .ag-button__label { transition: none; }
}

/* AG-HEADER-STANDARD: the image logo is 48px tall, width auto (the primitive's clamp lands 44 to 50) */
.ag-header__logo, .ag-drawer__logo { height: 48px; width: auto; }
/* the drawer's lockup shrinks to its room on narrow phones instead of running under the close button (2026-10-04) */
.ag-drawer__brand { min-width: 0; flex: 1 1 auto; margin-right: 14px; }
.ag-drawer__close { flex: 0 0 auto; }
.ag-drawer__brand .ag-drawer__logo { width: min(286px, 100%); height: auto; }

/* Footer reveal (Quinten 2026-09-16): main is an opaque lid that scrolls away over a footer stuck to the
   viewport bottom. The class is set by the inline script only when the footer fits the viewport. */
html.mhf-footer-reveal main {
  position: relative; z-index: 1; background: var(--paper);
  box-shadow: 0 21px 42px -14px rgba(42, 34, 57, 0.42);
}
html.mhf-footer-reveal .ag-footer { position: sticky; bottom: 0; z-index: 0; }

/* Hero -> section 2 seam (Quinten 2026-09-16, third asset, "use this one"): the daylight meadow band cut
   from assets/Transition.png (rows 800-1074; soft-edged by him, so no blur here) sits at the TOP of section 2,
   spun 180deg (upside down, and mirrored to match the mirrored hero). Its solid meadow meets the hero's
   unshaded foot; its flower tops hang down and dissolve into the paper by their own alpha. No shade: the
   hero's scrim is gone, so bright meets bright.
   SEAMLESS (Quinten 2026-09-16, "remove the section transition edge"): the strip's hero-side 34% rises INTO
   the hero and crossfades in over the video's own meadow (mask: transparent at that edge, solid by 30%, i.e. fully solid before the hero's edge so no paper shows through), so
   there is no line where one image stops and the other starts. Section 2 stacks above the hero for that
   overlap; the runway keeps a higher z so the chevrons stay in front. The mask is in the element's own
   (pre-rotation) coordinates, so "to top" is the hero side after the 180deg spin. */
.mhf-transition-host {
  --mhf-transition-h: clamp(150px, 18.7vw, 320px);
  position: relative; z-index: 3;
  padding-top: calc(var(--space-section) + var(--mhf-transition-h) * 0.38);
}
.mhf-transition {
  position: absolute; left: 0; right: 0; top: calc(var(--mhf-transition-h) * -0.34); height: var(--mhf-transition-h);
  background: url("../img/transition-meadow.webp") center top / cover no-repeat;
  -webkit-mask-image: linear-gradient(to top, transparent 0, var(--ink) 30%);
  mask-image: linear-gradient(to top, transparent 0, var(--ink) 30%);
  transform: rotate(180deg);
  pointer-events: none;
}
/* The hero's plum shade continues onto the strip (Quinten 2026-09-16: "apply it to the transition so it makes
   sense"): 0.86 at the hero edge, the scrim's own foot value, easing to 0.5 where the tips meet the paper.
   The shade is masked by the strip's own alpha so it tints only flowers, never the paper behind the tips.
   Pre-rotation coordinates: "to bottom" ends at the hero side. */
.mhf-transition::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(42, 34, 57, 0.5) 0%, rgba(42, 34, 57, 0.86) 100%);
  -webkit-mask: url("../img/transition-meadow.webp") center top / cover no-repeat;
  mask: url("../img/transition-meadow.webp") center top / cover no-repeat;
}
.hero-scroll { z-index: 4; }

/* Footer stacked logo sits at its natural width, never stretched */
.ag-footer-logo img { width: min(280px, 100%); height: auto; }

/* Footer meadow (Quinten 2026-09-16, assets/Footer.png -> img/footer-meadow.webp, rows 300-724): the picture
   is the footer's foot, a full-bleed band pinned to the bottom. Everything above it is centered and the
   footer's bottom padding reserves the band plus one breath, so no text ever touches the flowers. */
.ag-footer {
  --footer-meadow-h: clamp(150px, 19.5vw, 420px);
  --footer-mark-peek: calc(var(--footer-meadow-h) * 0.2);   /* how far the watermark's caps rise above the band */
  position: relative; overflow: hidden;
  padding-bottom: calc(var(--footer-meadow-h) + var(--footer-mark-peek) + var(--space-s));
}

/* Footer watermark (Quinten 2026-09-16, assets/mh text for footer.png -> img/footer-mark.webp, the tight crop):
   MAGNOLIA HOPE in flower-filled caps, parked with its feet in the meadow. Twelve windows, each a slice of
   the one sprite (the img is the whole word scaled to the container, shifted so only that letter shows), so
   the letters can rise one after another. The meadow (::after, painted last) stays in front of them. */
.mhf-footer-mark {
  position: absolute; left: 50%; bottom: calc(var(--footer-meadow-h) * 0.68);
  width: min(86%, 1320px); aspect-ratio: 2127 / 239;
  transform: translateX(-50%); pointer-events: none;
}
.mhf-footer-mark__l {
  position: absolute; top: 0; height: 100%;
  left: calc(var(--x) * 100%); width: calc(var(--w) * 100%);
  overflow: hidden;
}
.mhf-footer-mark__l img {
  position: absolute; top: 0; height: 100%; max-width: none;
  width: calc(100% / var(--w)); left: calc(-1 * var(--x) / var(--w) * 100%);
}
.mhf-footer-mark__l:nth-child(1) { --x: 0.0000; --w: 0.0940; }
.mhf-footer-mark__l:nth-child(2) { --x: 0.0969; --w: 0.0832; }
.mhf-footer-mark__l:nth-child(3) { --x: 0.1801; --w: 0.0771; }
.mhf-footer-mark__l:nth-child(4) { --x: 0.2642; --w: 0.0832; }
.mhf-footer-mark__l:nth-child(5) { --x: 0.3498; --w: 0.0780; }
.mhf-footer-mark__l:nth-child(6) { --x: 0.4354; --w: 0.0654; }
.mhf-footer-mark__l:nth-child(7) { --x: 0.5115; --w: 0.0367; }
.mhf-footer-mark__l:nth-child(8) { --x: 0.5496; --w: 0.0832; }
.mhf-footer-mark__l:nth-child(9) { --x: 0.6845; --w: 0.0799; }
.mhf-footer-mark__l:nth-child(10) { --x: 0.7701; --w: 0.0809; }
.mhf-footer-mark__l:nth-child(11) { --x: 0.8552; --w: 0.0710; }
.mhf-footer-mark__l:nth-child(12) { --x: 0.9318; --w: 0.0677; }
.ag-footer::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--footer-meadow-h);
  background: center bottom / cover no-repeat;
  pointer-events: none;
}
/* the band's picture is asked for once the page is ready (2026-10-15, phone speed): it sits at the very bottom, and under the
   curtain its 104 KB competed with the title */
html.is-ready .ag-footer::after { background-image: url("../img/footer-meadow.webp"); }
/* phones see only the band's middle (it is 150px tall there): a centred 1200px cut, half the bytes, same pixels (2026-10-04) */
@media (max-width: 700px) { html.is-ready .ag-footer::after { background-image: url("../img/footer-meadow-m.webp"); } }
.ag-drawer__index { font-size: var(--text-sm); }   /* 2026-10-04: the 14px floor; the base drew the menu's 01 02 03 at 11.5px */
/* Fit Camp LA footer format, copied 2026-09-18: same tracks, left-aligned columns, compact legal row. */
.ag-header, .ag-header a, .ag-header button, .ag-header__nav,
.ag-drawer__list a, .ag-drawer__label,
.ag-footer, .ag-footer p, .ag-footer a, .ag-footer button {
  font-family: var(--font-logo);
}
.ag-footer-inner { position: relative; z-index: 1; display: flex; flex-direction: column; }
/* Shallow full-width footer: horizontal page links and contact actions use both sides of the band. */
.ag-footer-cols {
  --footer-line: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(max-content, 1.3fr);   /* the contact column is never narrower than its own 2 by 2 grid (the email keeps room for the full address), so between 901 and 1180 wide the Email Us box no longer runs off the screen; the page links wrap instead (2026-10-15) */
  width: 100%; align-self: stretch; align-items: start; gap: var(--space-l);
  padding-bottom: var(--space-2xs); text-align: left;
}
.ag-footer-pages {
  grid-column: 1; display: flex; flex-direction: row; flex-wrap: wrap; align-items: flex-start;
  justify-content: flex-start; gap: var(--space-2xs) 42px; text-align: left;
}
.ag-footer-contact {
  grid-column: 2; display: flex; flex-direction: row; flex-wrap: wrap; align-items: flex-start;
  justify-content: space-between; min-width: 0; gap: var(--space-2xs) var(--space-s); padding: 0;
}
.ag-footer-cols .ag-footer-col-label {
  display: flex; flex-basis: 100%; align-items: center; justify-content: flex-start;
  height: var(--footer-line); margin: 0; gap: 14px;
  font-family: var(--font-logo); font-size: calc(var(--text-sm) * 1.15); font-weight: 700; letter-spacing: 0.12em; color: var(--brand-primary);
}
.ag-footer-cols .ag-footer-col-label::after {
  content: ""; flex: 1; height: 2px; min-width: 28px;
  background: linear-gradient(90deg, #9a713b 0 28px, rgb(112 84 149 / 20%) 28px, rgb(112 84 149 / 6%));
}
.ag-footer-pages, .ag-footer-contact { row-gap: var(--space-xs); }
/* computers (Quinten 2026-10-13: the contact items wrapped unevenly once Phone Us / Email Us got short): a 2 by 2 grid,
   place and phone on the left, hours and email on the right, each column starting on one line */
@media (min-width: 901px) {
  .ag-footer-contact { display: grid; grid-template-columns: max-content max-content; justify-content: space-between; align-items: center; }
  .ag-footer-contact .ag-footer-col-label { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .ag-footer-cols .ag-footer-col-label::before {
    content: ""; flex: 1; height: 2px; min-width: 28px;
    background: linear-gradient(270deg, #9a713b 0 28px, rgb(112 84 149 / 12%) 28px, transparent);
  }
}
.ag-footer-pages .ag-footer-link {
  display: inline-flex; align-items: center; justify-content: flex-start;
  min-height: 36px; width: fit-content; padding: 0;
  font-size: calc(var(--text-sm) * 1.15); font-weight: 400; text-transform: uppercase; letter-spacing: 0.06em;
}
.mhf-contact-row {
  display: inline-flex; align-items: center; gap: 10px; min-height: 36px;
  width: fit-content; max-width: 100%; margin: 0; font-family: var(--font-logo);
  color: var(--link-on-footer); font-size: calc(var(--text-sm) * 1.15); font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.06em; line-height: 1.2;
}
.mhf-contact-button, a.mhf-contact-row, button.mhf-contact-row {
  appearance: none; border: 0; background: transparent; padding: 0;
  cursor: pointer; text-align: left; touch-action: manipulation;
  transition: color var(--duration-quick, 0.3s) var(--ease-settle);
}
a.mhf-contact-row:focus-visible, button.mhf-contact-row:focus-visible, .mhf-contact-button:focus-visible {
  outline: 3px solid var(--brand-primary); outline-offset: 3px; border-radius: 3px;
}
@media (hover: hover) {
  .mhf-contact-button:hover, a.mhf-contact-row:hover, button.mhf-contact-row:hover { color: var(--brand-primary); }
}
/* Official Google Material outlined SVGs are embedded in HTML, independent of webfont loading. */
/* the email reads as an address, not shouted caps, and may break anywhere so it never pushes past a phone's edge */
.mhf-contact-row--email { text-transform: none; letter-spacing: 0.02em; overflow-wrap: anywhere; }
/* narrow phones: the rows keep one line each (the letter-roll cannot wrap), so the type steps down to fit */
@media (max-width: 430px) {
  .mhf-contact-row { font-size: 0.875rem; letter-spacing: 0.03em; gap: 8px; }
  .mhf-contact-row--email { font-size: 0.8rem; letter-spacing: 0; }
}
.mhf-contact-icon {
  display: inline-block; width: 24px; height: 24px; flex: 0 0 24px;
  color: var(--brand-primary); fill: currentColor;
}
.mhf-contact-item { width: fit-content; max-width: 100%; min-width: 0; }
.mhf-contact-value {
  display: block; max-width: min(100%, 28ch); padding-left: 34px;
  font-family: var(--font-logo); font-size: var(--text-sm); line-height: 1.7;
  color: var(--text-muted-on-footer); overflow-wrap: anywhere;
}
.mhf-contact-value:empty { display: none; }
.mhf-contact-value a { display: inline-flex; align-items: center; min-height: 49px; max-width: 100%; color: inherit; }
/* FitCampLA .fc-footer__bottom: one compact flex row directly above the divider. */
.ag-footer-bottom {
  display: flex; flex-direction: row; justify-content: space-between; align-items: center;
  gap: var(--space-s); padding: var(--space-m) 0 9px; margin: 0; border: 0; text-align: left;
}
.ag-footer-copyright {
  margin: 0; text-align: left; white-space: nowrap;
  font-size: var(--text-eyebrow); line-height: 1.7;
}
.ag-footer-policy {
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 3px 42px;
  margin: 0; padding: 0 28px 0 0; min-width: 0;
  font-size: var(--text-sm); color: var(--text-muted-on-footer); text-align: right;
}
.ag-footer-policy .ag-footer-link {
  display: inline-flex; align-items: center; min-height: 0; width: fit-content;
  max-width: 100%; padding: 0; font-size: var(--text-sm); line-height: 1.5;
}
.ag-footer-inner > .ag-footer-divider { align-self: stretch; margin: 0; }
@media (max-width: 900px) {
  .ag-footer-inner { text-align: center; }
  .ag-footer-cols {
    display: grid; grid-template-columns: 1fr; justify-items: center; width: 100%; align-self: stretch;
    text-align: center; gap: var(--space-m);
  }
  .ag-footer-pages { grid-column: 1; order: 0; align-items: center; justify-content: center; text-align: center; }
  .ag-footer-contact {
    grid-column: 1; order: 0; width: fit-content; max-width: 100%; justify-self: center; flex-direction: column;
    align-items: flex-start; margin-bottom: 0;
  }
  .ag-footer-cols .ag-footer-col-label { height: auto; min-height: 0; justify-content: center; align-self: center; }
  .ag-footer-contact .ag-footer-col-label { flex-basis: auto; width: 100%; }
  .ag-footer-pages .ag-footer-link { min-height: 49px; min-width: 49px; justify-content: center; padding-inline: 14px; }
  .ag-footer-pages { column-gap: 0; }   /* 2026-10-04: About, Services, Contact hold one row on a phone instead of breaking 2 + 1 */
  .mhf-contact-row { min-height: 49px; }
  .mhf-contact-value { text-align: left; }
  .ag-footer-bottom { flex-direction: column; align-items: center; gap: var(--space-2xs); }
  .ag-footer-copyright { text-align: center; white-space: normal; max-width: 35ch; }
  .ag-footer-policy { justify-content: center; text-align: center; padding: 0; }
  .ag-footer-policy .ag-footer-link { min-height: 49px; }
}
@media (prefers-reduced-motion: reduce) {
  .mhf-contact-button { transition: none; }
}

/* Anchored letter reels: typography rolls inside its own clipped window. */
.ag-footer .ag-footer-link,
.ag-footer .mhf-contact-row { position: relative; transform: none; text-decoration: none; }
.ag-footer .ag-footer-link::after { content: none; }
.ag-footer .ag-footer-link:is(:hover, :focus-visible),
.ag-footer .mhf-contact-row:is(:hover, :focus-visible) { transform: none; }
.mhf-reel { position: relative; display: inline-block; overflow: hidden; vertical-align: bottom; line-height: 1.5; white-space: pre; font-kerning: none; }
.mhf-reel-source { opacity: 0; }
.mhf-reel-face { position: absolute; inset: 0; white-space: pre; }
.mhf-reel-char { display: inline-block; position: relative; transition: transform 0.7s cubic-bezier(0.16, 1.3, 0.3, 1); transition-delay: calc(var(--reel-i) * 0.021s); }
.mhf-reel-char::after { content: attr(data-letter); position: absolute; left: 0; top: 100%; color: var(--brand-primary); }
.mhf-reel-char:nth-child(3n)::after { color: #9a713b; }
.ag-footer .mhf-contact-icon { transform-origin: center; }
.ag-footer .ag-footer-link:focus-visible .mhf-reel-char,
.ag-footer .mhf-contact-button:focus-visible .mhf-reel-char, .ag-footer a.mhf-contact-row:focus-visible .mhf-reel-char, .ag-footer button.mhf-contact-row:focus-visible .mhf-reel-char { transform: translateY(-100%); }
@media (hover: hover) {
  .ag-footer .ag-footer-link:hover .mhf-reel-char,
  .ag-footer .mhf-contact-row:hover .mhf-reel-char { transform: translateY(-100%); }
  .mhf-contact-row:hover .mhf-contact-icon { animation: mhf-icon-wink 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
}
.ag-footer .mhf-contact-button:focus-visible .mhf-contact-icon { animation: mhf-icon-wink 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes mhf-icon-wink {
  0%, 100% { transform: rotate(0) scale(1); }
  30% { transform: rotate(-28deg) scale(0.7); }
  65% { transform: rotate(18deg) scale(1.16); }
}
@media (prefers-reduced-motion: reduce) {
  .ag-footer .mhf-reel-char { transition: none; transition-delay: 0s; }
  .ag-footer .mhf-contact-icon { animation: none !important; }
}
/* Stretch prevention on every button and link-as-button */
.ag-button { width: fit-content; }

/* Mobile: literal centering at 900 and below (AG-MOBILE-STANDARD 6C) */
@media (max-width: 900px) {
  .mhf-section__inner { justify-items: center; text-align: center; }
  .mhf-hero { align-content: center; }
  .mhf-hero__video { object-position: 12% 50%; } /* keeps the sun and the bridge; the tree's far edge crops */
  .mhf-hero__scrim { background: radial-gradient(90% 60% at 50% 55%, rgba(42, 34, 57, 0.62), rgba(42, 34, 57, 0) 80%), linear-gradient(180deg, rgba(42, 34, 57, 0.34) 0%, rgba(42, 34, 57, 0.58) 50%, rgba(42, 34, 57, 0.80) 100%); }
  .mhf-hero h1 { max-width: none; }
  .mhf-hero .mhf-section__inner { justify-items: center; text-align: center; }   /* 6C, matched specificity */
  .hero-scroll__word { display: none; }   /* HER-25m: wordless at 350 to 900 */
  .mhf-cta-row { justify-content: center; }   /* 6C: a wrapped CTA pair centers each button, not just the row */
  .mhf-hero .mhf-section__inner { padding-top: var(--space-xl); padding-bottom: calc(91px + var(--space-s)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ==========================================================================
   THE STONE BRIDGE (Quinten 2026-09-26: "make it come together like brick work, each rock coming together to build
   the bridge ... make sure the typography sticks with the bridge"). Sections 2 to 5 are one pinned scene: the copy
   stands directly on the bridge as one unit, and the bridge builds itself stone by stone (js/mhf-stone-bridge.js).
   The base rules are the no-JS / reduced-motion reading: finished bridge, the four sections stacked above it.
   html.mhf-story-live turns on the pinned scene.
   ========================================================================== */
.mhf-transition-host .mhf-transition { z-index: 1; }
.mhf-story { padding-bottom: var(--space-section); border-bottom: 0; }   /* no section divider: the creek runs straight on below (2026-09-30) */
.mhf-story__pin { position: relative; z-index: 2; }
.mhf-story__unit {
  width: min(100% - 2 * var(--space-container), 68.75rem); margin-inline: auto;
  display: grid; justify-items: center; row-gap: clamp(1rem, 3.2vh, 2rem);
}
.mhf-story__copy { display: grid; gap: var(--space-xl, 4rem); }
.mhf-story__ch { display: grid; justify-items: center; gap: var(--space-xs); text-align: center; }
.mhf-story__ch h2 { max-width: 20ch; text-wrap: balance; margin-bottom: var(--space-2xs, 0.25rem); }
.mhf-story .mhf-story__ch p { max-width: 100%; }
/* supporting copy reads left-aligned in a centred column under the centred title (Quinten 2026-09-27); the buttons
   stay centred */
.mhf-story .mhf-story__ch p, .mhf-story .mhf-story__ch .mhf-cta-row { width: min(100%, 46rem, max(50vw, 21rem)); text-align: left; }
.mhf-story .mhf-story__ch .mhf-cta-row { justify-content: center; }   /* the buttons stay centred under the centred title (Quinten 2026-09-27) */
.mhf-story__line--barrier { font-weight: 600; color: var(--brand-700); }
.mhf-story .mhf-cta-row { justify-content: center; margin-top: var(--space-2xs, 0.25rem); }
.mhf-story__bridge { position: relative; width: 100%; aspect-ratio: 2467 / 698; }   /* with its stone footings (2026-10-02) */
.mhf-story__still { display: block; width: 100%; height: auto; }
.mhf-story__canvas { display: none; }

.mhf-story__scene { display: none; }
/* live: a tall runway; the pin stands the unit on the section's bottom edge, the bridge spans edge to edge,
   and the chapters share one cell. Once the bridge is complete the full valley picture fades in around it. */
html.mhf-story-live .mhf-story { height: 440vh; padding-block: calc(var(--mhf-transition-h) * 0.66) 0; }
/* Phones: plain native scrolling, never snapped (Quinten 2026-10-07: "the scrolling mobile is terrible, never ever do
   it like that" - the mandatory scroll-snap yanked every flick to a fixed stop and trapped the FAQ). The scene runs on
   half the desktop runway (his 2026-10-04 "at least half"), so each section has room under a free scroll. */
/* the header slides away for the whole bridge scene and stays away there (js/mhf-stone-bridge.js sets html.mhf-in-bridge;
   Quinten 2026-10-09); it is invisible once slid, so it never covers the scene's copy */
html.mhf-in-bridge .ag-header {
  transform: translateY(calc(-100% - var(--header-top) - 24px)); visibility: hidden;
  transition: transform var(--duration-quick) var(--ease-satisfying), visibility 0s linear var(--duration-quick);
}
@media (max-width: 700px) {   /* phones by width, never by pointer (build check 41; 2026-10-13: a phone that reported a mouse got the desktop bridge) */
  html.mhf-story-live .mhf-story { height: 220vh; }
  html.mhf-story-live .mhf-story .mhf-story__pin { padding-bottom: 24px; }   /* phones: a thinner strip of ground under the bridge, more room for the copy */
  /* iPhone (Quinten 2026-10-07: "it gives a tiny bit of slack ... it vibrates"): the pinned scene gets its own layer, so
     Safari's scroller holds it directly instead of re-placing it a frame late each time the bridge redraws */
  html.mhf-story-live .mhf-story__pin { -webkit-transform: translateZ(0); transform: translateZ(0); will-change: transform; }
  /* a tall narrow screen shows the valley picture only along the bottom; above it the sky now carries on in the picture's
     own colors (its top row is #cbbad7) instead of melting into white paper ("a section cut off with a white fade").
     It fades in with the picture (--sky, js/mhf-stone-bridge.js). */
  html.mhf-story-live .mhf-story__pin::before {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: var(--sky, 0);
    background: linear-gradient(180deg, #c2afd2 0%, #cbbad7 100%);
  }
  html.mhf-story-live .mhf-story__scene:not(.mhf-story__land):not(.mhf-story__mtn) { -webkit-mask-image: linear-gradient(transparent, #000 14%); mask-image: linear-gradient(transparent, #000 14%); }   /* the top edge melts into the matching sky, no line */
}
html.mhf-story-live .mhf-story__pin { overflow-x: clip; overflow-y: visible; clip-path: inset(0 0 -40vh 0);   /* sides clipped; below, the footings (and the valley under them) carry on as the scene scrolls away (2026-10-02) */
  position: sticky; top: 0; height: 100vh; height: 100svh; height: calc(var(--vh1, 1svh) * 100);   /* svh: the pinned scene keeps one size while the address bar comes and goes (2026-10-04) */
  display: flex; flex-direction: column; justify-content: flex-end;
  /* the bridge stands a little above the bottom edge (Quinten 2026-09-27), so the valley's grass and stream show
     under it on both sides once the land comes in */
  padding-bottom: clamp(40px, 8vh, 100px);   /* measured to the deck: the footings hang below it, out of view until the scene moves on (2026-10-02) */
  padding-top: clamp(24px, 4vh, 48px);   /* the header stays away for the whole scene (2026-10-09), so only a small margin */
}
html.mhf-story-live .mhf-story__copy { gap: 0; align-items: end; }   /* each section is lifted to the screen's middle by js/mhf-stone-bridge.js */
/* Headings carved from the bridge (Quinten 2026-09-27: "the title more with the look of this section"): the letters
   are filled with the bridge's own stone, lit warm from above like the golden hour, with a pale carved edge below
   and a soft shadow so they sit on sky and hills alike. Per word, because the words move one by one. */
.mhf-story .mhf-story__ch h2 { font-weight: 700; letter-spacing: 0.01em; }
.mhf-story .mhf-story__ch h2, html.mhf-story-live .mhf-story__ch h2 .mhf-w {
  background-image: linear-gradient(180deg, rgba(255, 214, 150, 0.55) 0%, rgba(255, 214, 150, 0.12) 42%, rgba(46, 20, 34, 0.28) 100%), url("../img/stone-texture.webp");
  background-size: 100% 100%, 240px auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255, 238, 205, 0.85)) drop-shadow(0 3px 8px rgba(72, 16, 56, 0.25));
}
html.mhf-story-live .mhf-story__ch h2 { background: none; filter: none; -webkit-text-fill-color: currentColor; }
/* a section's words rise and settle like the stones, heading first, the whole text in under a second; leaving,
   they drop away together, quickly. Hidden sections leave the accessibility tree once they have faded. */
html.mhf-story-live .mhf-story__ch { grid-area: 1 / 1; visibility: hidden; transition: visibility 0s linear 0.3s; }
html.mhf-story-live .mhf-story__ch.is-in { visibility: visible; transition-delay: 0s; }
html.mhf-story-live .mhf-w {
  display: inline-block; opacity: 0; transform: translateY(0.9em) rotate(var(--r, 0deg));
  transition: opacity 0.15s ease-in, transform 0.2s ease-in;
}
html.mhf-story-live .ag-button.mhf-w { display: inline-flex; }
html.mhf-story-live .is-in .ag-button.mhf-w { transition: opacity 0.45s ease-out var(--d, 0ms), transform 0.8s cubic-bezier(0.22, 1.25, 0.36, 1) var(--d, 0ms), background-color 0.3s, color 0.3s; }
/* the buttons belong to the valley scene (Quinten 2026-09-26): they sit over the sky, so the outline button gets a
   frosted paper ground to stay readable, and both carry a soft shadow like the stones */
.mhf-story .mhf-cta-row .ag-button { box-shadow: 0 10px 24px rgba(72, 16, 56, 0.18); }
.mhf-story .mhf-cta-row .ag-button--secondary { background: rgba(255, 250, 241, 0.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
html.mhf-story-live .is-in .mhf-w {
  opacity: 1; transform: none;
  transition: opacity 0.45s ease-out var(--d, 0ms), transform 0.7s cubic-bezier(0.22, 1.25, 0.36, 1) var(--d, 0ms);
}
/* the two buttons land when the bridge is complete (js toggles .is-up), and go again if the reader scrolls back */
html.mhf-story-live .mhf-story__ch .mhf-cta-row:not(.is-up) .ag-button.mhf-w { opacity: 0; transform: translateY(0.9em) rotate(var(--r, 0deg)); transition: opacity 0.15s ease-in, transform 0.2s ease-in; }
/* phones (Quinten 2026-10-07: "the section still shakes"): the words fade in place, no drop, tilt or springy overshoot;
   a dozen words bouncing past their spot in one short flick read as shaking. Desktop keeps the stone-like landing. */
@media (max-width: 700px) {
  html.mhf-story-live .mhf-w, html.mhf-story-live .is-in .mhf-w,
  html.mhf-story-live .mhf-story__ch .mhf-cta-row:not(.is-up) .ag-button.mhf-w { transform: none; }
  html.mhf-story-live .mhf-w { transition: opacity 0.21s ease-in; }
  html.mhf-story-live .is-in .mhf-w { transition: opacity 0.42s ease-out calc(var(--d, 0ms) * 0.5); }
  html.mhf-story-live .is-in .ag-button.mhf-w { transition: opacity 0.42s ease-out var(--d, 0ms), background-color 0.3s, color 0.3s; }
}
html.mhf-story-live .mhf-story__bridge { width: 100vw; justify-self: start; }
html.mhf-story-live .mhf-story__still { visibility: hidden; }
html.mhf-story-live .mhf-story__unit { position: relative; z-index: 1; grid-template-columns: minmax(0, 1fr); }   /* the edge-to-edge bridge overflows its track instead of widening it, so the copy stays centred */
html.mhf-story-live .mhf-story__scene { display: block; position: absolute; left: 0; top: 0; max-width: none; height: auto; opacity: 0; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(transparent, #000 22%); mask-image: linear-gradient(transparent, #000 22%);   /* the sky melts into the paper, never a hard top edge */
  transition: opacity 1.4s ease; }
/* the valley assembles like the bridge (Quinten 2026-09-26): as the arch forms, the two mountains, cut from the picture
   pixel for pixel, slide in from their own sides; as the crown sets, the land (everything below the skyline) sweeps
   up behind them; last, the sky (the whole picture) completes it. Every layer is the same picture in the
   same place, so nothing shifts when the next one arrives. */
/* every layer below is driven frame by frame from the bridge's own clock (js/mhf-stone-bridge.js), never by CSS
   transitions, so they all move as one */
html.mhf-story-live .mhf-story__scene { transition: none; }
html.mhf-story-live .mhf-story__mtn { -webkit-mask-image: none; mask-image: none; }
html.mhf-story-live .mhf-story__mtn--l { translate: -45vw 0; }
html.mhf-story-live .mhf-story__mtn--r { translate: 45vw 0; }
/* the land slides up from below the screen as one piece, behind the bridge and the mountains (js sets translate) */
html.mhf-story-live .mhf-story__land { -webkit-mask-image: none; mask-image: none; opacity: 0; }
/* bigger type in the story (Quinten 2026-09-26).
   --fit (set by js/mhf-stone-bridge.js) shrinks the copy only as far as a short screen needs, so the bridge always
   keeps the bottom edge */
.mhf-story .mhf-story__ch h2 { font-size: calc(clamp(1.875rem, 1.2rem + 2.9vw, 3.5rem) * var(--fit, 1)); line-height: 1.12; }
.mhf-story .mhf-story__ch p { font-size: calc(clamp(1.1875rem, 1rem + 0.45vw, 1.375rem) * var(--fit, 1)); line-height: 1.45; }
/* over the valley picture the copy keeps a soft paper halo, so it stays readable on sky and hills */
html.mhf-story-live .mhf-story__ch p { text-shadow: 0 0 14px rgba(255, 250, 241, 0.9), 0 0 3px rgba(255, 250, 241, 0.7); }
.mhf-story__copy { width: min(100%, 50rem); }
html.mhf-story-live .mhf-story__canvas { display: block; position: absolute; top: 0; left: 0; max-width: none; pointer-events: none; }   /* max-width: none beats ag-defensive's media cap, which squeezed the canvas to the bridge box */

/* ===== Page links + page transitions, The Tooth Place way (Quinten 2026-09-26) =====
   Nav links: the Golden Touch underline without the 1.03 label zoom, hover in plum (never white), a 2px
   rule, and the CURRENT page drawn fully underlined in plum. The heart glyph stays (his 2026-09-16 call). */
.ag-header__nav a:not(.ag-button)::after { height: 2px; }
@media (hover: hover) {
  .ag-header__nav a:not(.ag-button):hover,
  .ag-header.is-transparent .ag-header__nav a:not(.ag-button):hover { color: var(--brand-700); }
  .ag-header__nav a:not(.ag-button):hover .ag-nav-link-label { transform: none; }
}
.ag-header__nav a[aria-current="page"] { color: var(--brand-700); }
.ag-header__nav a[aria-current="page"]::after { transform: scaleX(1); }

/* Transitions (2026-10-02): the Tooth Place router (js/router.js, as on Fit Camp LA) swaps only <main data-route-main>;
   the header and footer never move. The slide itself runs in js/router.js (Web Animations); these are its helpers. */
.rt-settle .reveal, .rt-settle .reveal-stagger > * { transition: none !important; }   /* on-screen reveals arrive with the slide */
main.rt-out { overflow: hidden; }
html.is-routing, html.is-routing body { overflow-x: clip; }   /* the slide never adds a sideways scrollbar */
/* a butterfly in flight may wander past the screen edge; it never adds a sideways scroll (2026-10-04). The clip sits on the
   sections that hold butterflies, NOT on <main>: overflow-x: clip on an ancestor of the pinned bridge scene makes iPhone
   Safari jitter it 1-2px while scrolling (WebKit bug 247130; Quinten 2026-10-07: "it gives a tiny bit of slack ... it
   vibrates"). The pinned scene clips its own sides. */
.mhf-section--art { overflow-x: clip; }
.rt-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html.mhf-curtain-skip.is-loading { overflow: visible; }

/* The loading bar: 3px, soft yellow (this site's accent), slides under the header while the next page loads. */
.ag-header::after {
  content: ""; position: absolute; left: 28px; right: 28px; bottom: -1.5px; height: 3px; border-radius: 3px;
  background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); opacity: 0; pointer-events: none;
}
html.is-route-loading .ag-header::after { opacity: 1; animation: mhf-route-bar 0.6s var(--ease-soft) infinite; }
@keyframes mhf-route-bar {
  0%   { transform: translateX(0) scaleX(0); }
  50%  { transform: translateX(0) scaleX(0.63); }
  100% { transform: translateX(100%) scaleX(0.21); }
}
html.is-route-loading a[href] { cursor: progress; }

@media (prefers-reduced-motion: reduce) {
  html.is-route-loading .ag-header::after { animation: none; transform: scaleX(1); }
}

/* ===== WCAG 2.2 AA fixes (Quinten 2026-09-26: widget removed, the site itself conforms) =====
   2.2.2 Pause, Stop, Hide: the hero loop (10 s video + runway chevrons) gets a visible pause/play toggle,
   bottom-right of the hero, 49px target. The choice persists (localStorage). Under reduced motion there is
   nothing to pause (HER-09 already holds the poster), so the toggle steps aside. */
.mhf-motion-toggle {
  position: absolute; right: var(--space-container); bottom: 21px; z-index: 3;
  display: grid; place-items: center; width: 49px; height: 49px; padding: 0;
  border: 1.5px solid var(--paper); border-radius: 50%;
  background: var(--drawer-backdrop); color: var(--paper); cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--duration-quick) var(--ease-soft);
}
.mhf-motion-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (hover: hover) { .mhf-motion-toggle:hover { background: var(--brand-700); } }
.mhf-motion-toggle__icon { position: relative; display: block; width: 14px; height: 16px; }
.mhf-motion-toggle__icon::before, .mhf-motion-toggle__icon::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 4.5px; border-radius: 1px; background: currentColor;
}
.mhf-motion-toggle__icon::before { left: 1px; }
.mhf-motion-toggle__icon::after { right: 1px; }
.mhf-motion-toggle[aria-pressed="true"] .mhf-motion-toggle__icon::before {
  left: 2px; width: 0; height: 0; border-radius: 0; background: none;
  border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent currentColor;
}
.mhf-motion-toggle[aria-pressed="true"] .mhf-motion-toggle__icon::after { display: none; }
html.mhf-motion-paused .hero-scroll i { animation-play-state: paused; opacity: 0.8; }
@media (prefers-reduced-motion: reduce) { .mhf-motion-toggle { display: none; } }

/* 1.4.1 Use of Color: links inside running text are underlined, not color-only (contact email, Instagram).
   1.4.10 / 1.4.12: a long address may break anywhere rather than push the page sideways. */
main p a:not(.ag-button), main li a:not(.ag-button) {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; overflow-wrap: anywhere;
}

/* ===== Loader: dawn bloom (Quinten 2026-09-27) =====
   The mark is eight layers cut from the logo that stack back into it exactly (img/loader/). Sequence, js/mhf-loader.js:
   .is-go: the bridge rises, then the petals unfold from the centre out; the sun climbs from behind the bridge with
   the page's loading (--sun, 1 hidden to 0 up); .is-heart: the heart pops; .is-words: the words slide out from behind
   the flower (the header's own move, played backwards); then the camera flies into the heart and on to the site. */
html.is-loading { overflow: hidden; }
.mhf-loader {
  --lh: clamp(96px, 16vw, 190px); --mw: calc(var(--lh) * 997 / 794); --ww: calc(var(--lh) * 648 / 141);
  position: fixed; inset: 0; z-index: 2147483645; display: grid; place-items: center;
  background: radial-gradient(60% 50% at 50% 55%, #fff6e3 0%, var(--paper) 70%);
  transition: background-color 0.6s ease, opacity 0.6s ease 0.15s;
}
/* the finish (Quinten 2026-10-02: "instead of sliding up, the camera zooms into the heart and goes to the website"):
   js/mhf-loader.js flies the camera into the heart; the heart opens as a window onto the site and fills the screen. */
.mhf-loader.is-zoom { pointer-events: none; will-change: transform; }
.mhf-loader.is-zoom * { animation-play-state: paused !important; }
.mhf-loader.is-fade { opacity: 0; transition: opacity 0.4s ease; pointer-events: none; }
.mhf-loader__logo { display: flex; align-items: center; }
/* alive while it waits (Quinten 2026-10-02: "not as stiff, more of what it does at the start"): once built, the flower
   keeps breathing: it floats, the petals sway on their own beats, the sun glows and the heart beats. Separate rotate /
   scale / translate properties, so the build's own transforms are untouched. */
@keyframes mhf-l-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 calc(var(--lh) * -0.035); } }
@keyframes mhf-l-sway { 0%, 100% { rotate: 0deg; } 50% { rotate: var(--sw); } }
@keyframes mhf-l-breathe { 0%, 100% { scale: 1; } 50% { scale: 1.035; } }
@keyframes mhf-l-glow { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.14) saturate(1.1); } }
@keyframes mhf-l-beat { 0%, 44%, 100% { scale: 1; } 12% { scale: 1.18; } 24% { scale: 1; } 34% { scale: 1.1; } }
.mhf-loader.is-go .mhf-loader__logo { animation: mhf-l-float 3.4s ease-in-out 1.1s infinite; }
.mhf-loader.is-go .mhf-l--c  { animation: mhf-l-breathe 3s ease-in-out 1.2s infinite; }
.mhf-loader.is-go .mhf-l--ml { --sw: -2.5deg; animation: mhf-l-sway 3.2s ease-in-out 1.3s infinite; }
.mhf-loader.is-go .mhf-l--mr { --sw: 2.5deg;  animation: mhf-l-sway 3.2s ease-in-out 1.45s infinite; }
.mhf-loader.is-go .mhf-l--ol { --sw: -4deg;   animation: mhf-l-sway 3.6s ease-in-out 1.4s infinite; }
.mhf-loader.is-go .mhf-l--or { --sw: 4deg;    animation: mhf-l-sway 3.6s ease-in-out 1.6s infinite; }
.mhf-loader.is-go .mhf-l--sun { animation: mhf-l-glow 2.8s ease-in-out 0.8s infinite; }
.mhf-loader.is-heart .mhf-l--heart { animation: mhf-l-beat 1.3s ease-in-out 0.5s infinite; }
.mhf-loader__mark { position: relative; z-index: 2; width: var(--mw); height: var(--lh); }
/* the heart window's cut-out, loaded while the logo builds: a mask image that is still loading hides its element, which
   flashed the site for a frame when the zoom began (Quinten 2026-10-02) */
.mhf-loader__mark::after { content: ""; position: absolute; left: 0; top: 0; width: 2px; height: 2px; pointer-events: none;
  -webkit-mask: url("../img/loader/heart.webp") 0 0 / 2px 2px no-repeat; mask: url("../img/loader/heart.webp") 0 0 / 2px 2px no-repeat; background: transparent; }
.mhf-l { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.mhf-l--base { transform-origin: 50% 100%; opacity: 0; transform: translateY(10%) scale(0.96);
  transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.22, 1.2, 0.36, 1); }
.mhf-l--c, .mhf-l--ml, .mhf-l--mr, .mhf-l--ol, .mhf-l--or { transform-origin: 50% 70%; opacity: 0;
  transition: opacity 0.35s ease var(--d), transform 0.85s cubic-bezier(0.34, 1.35, 0.64, 1) var(--d); }
.mhf-l--c  { --d: 0.3s;  transform: scaleY(0.12); transform-origin: 50% 67%; }
.mhf-l--ml { --d: 0.45s; transform: rotate(30deg) scale(0.55); }
.mhf-l--mr { --d: 0.45s; transform: rotate(-30deg) scale(0.55); }
.mhf-l--ol { --d: 0.6s;  transform: rotate(52deg) scale(0.5); }
.mhf-l--or { --d: 0.6s;  transform: rotate(-52deg) scale(0.5); }
.mhf-l--sun { transform: translateY(calc(var(--sun, 1) * 17%)); opacity: 0; transition: opacity 0.42s ease 0.21s; }   /* hidden until the build starts, never alone on the paper */
.mhf-loader.is-go .mhf-l--sun { opacity: 1; }
.mhf-l--heart { transform-origin: 50% 93%; opacity: 0; transform: scale(0);
  transition: opacity 0.2s ease, transform 0.55s cubic-bezier(0.34, 1.9, 0.64, 1); }
.mhf-loader.is-go .mhf-l--base { opacity: 1; transform: none; }
.mhf-loader.is-go .mhf-l--c, .mhf-loader.is-go .mhf-l--ml, .mhf-loader.is-go .mhf-l--mr,
.mhf-loader.is-go .mhf-l--ol, .mhf-loader.is-go .mhf-l--or { opacity: 1; transform: none; }
.mhf-loader.is-heart .mhf-l--heart { opacity: 1; transform: none; }
/* the words reveal with a wipe and the logo glides to centre with a slide (2026-10-09): same look as the old width
   growth, but nothing changes size, so the first-visit screen no longer counts as page movement (build check 26) */
.mhf-loader__words {
  position: relative; z-index: 1; margin-left: calc(var(--mw) / -2); box-sizing: border-box;
  padding-left: calc(var(--mw) / 2 + var(--lh) * 0.07); width: calc(var(--mw) / 2 + var(--lh) * 0.07 + var(--ww)); height: var(--lh);
  -webkit-mask-image: linear-gradient(to right, transparent calc(var(--mw) / 2 - 8px), #000 calc(var(--mw) / 2 + 1px));
  mask-image: linear-gradient(to right, transparent calc(var(--mw) / 2 - 8px), #000 calc(var(--mw) / 2 + 1px));
  clip-path: inset(0 calc(var(--lh) * 0.07 + var(--ww)) 0 0);
  transition: clip-path 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}
.mhf-loader__logo { transform: translateX(calc((var(--lh) * 0.07 + var(--ww)) / 2)); transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1); }
.mhf-loader.is-words .mhf-loader__logo { transform: none; }
.mhf-loader.is-zoom .mhf-loader__logo { transition: none; }   /* the zoom drives the logo frame by frame (js/mhf-loader.js) */
.mhf-loader__words img { display: block; height: var(--lh); width: auto; max-width: none; transform: translateX(calc(-100% - var(--lh) * 0.07 - 14px));
  transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1); }
.mhf-loader.is-words .mhf-loader__words { clip-path: inset(0 0 0 0); }
.mhf-loader.is-words .mhf-loader__words img { transform: none; }
@media (max-width: 600px) { .mhf-loader { --lh: 22vw; --ww: calc(var(--lh) * 648 / 141 * 0.62); } .mhf-loader__words img { height: calc(var(--lh) * 0.62); margin-top: calc(var(--lh) * 0.19); } }
@media (prefers-reduced-motion: reduce) {
  .mhf-loader *, .mhf-loader { transition: none !important; animation: none !important; }
  .mhf-loader.is-fade { transition: opacity 0.3s ease !important; }
  .mhf-loader .mhf-l { opacity: 1 !important; transform: none !important; }
}
html.mhf-curtain-skip .mhf-loader { display: none; }

/* ===== Footer: the legal row on the page's bottom edge, over the meadow (Quinten 2026-09-27) =====
   No container: plain paper-white type sitting on the very bottom of the picture, with a soft dark glow under the
   letters and a gentle shade rising from the bottom edge, so it reads clearly over the flowers. */
.ag-footer-inner > .ag-footer-divider { display: none; }
.ag-footer-bottom.mhf-legal {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 6px 28px;
  margin: 0; padding: 40px var(--space-container) 12px;
  background: linear-gradient(to top, rgba(42, 20, 38, 0.55), rgba(42, 20, 38, 0));
  border: 0;
}
.mhf-legal .ag-footer-copyright, .mhf-legal .ag-footer-policy, .mhf-legal .ag-footer-link {
  color: var(--paper); text-shadow: 0 1px 3px rgba(42, 20, 38, 0.9), 0 0 10px rgba(42, 20, 38, 0.6);
}
.mhf-legal .ag-footer-copyright { font-size: 0.8rem; white-space: nowrap; margin: 0; }
.mhf-legal .ag-footer-policy { padding: 0; gap: 4px 28px; }
@media (hover: hover) { .mhf-legal .ag-footer-link:hover { color: var(--accent); } }
.mhf-legal .ag-footer-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
@media (max-width: 900px) {   /* tablets too (2026-10-13): side by side, the copyright line ran under Privacy Policy */
  .ag-footer-bottom.mhf-legal { flex-direction: column; justify-content: flex-end; gap: 0; padding: 28px 16px 4px; }
  /* phones (2026-10-04): the 14px floor (DESIGN-GRAMMAR 5) and 44px+ tap targets; the two links wrap rather than squeeze */
  .mhf-legal .ag-footer-copyright { font-size: var(--text-sm); white-space: normal; text-align: center; line-height: 1.45; }
  .mhf-legal .ag-footer-policy { flex-wrap: wrap; gap: 0 20px; justify-content: center; }
  .mhf-legal .ag-footer-policy .ag-footer-link { min-height: 44px; font-size: var(--text-sm); }
}

/* Start Here pop-up (Quinten 2026-09-28, js/mhf-start-here.js): call first, short message form second.
   The dialog fills the screen and stays transparent; a click on it (outside the card) closes. */
html.mhf-sh-open { overflow: hidden; }
.mhf-sh { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0;
  padding: 16px; border: 0; background: transparent; color: var(--text-primary); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.mhf-sh[open] { display: grid; }
.mhf-sh::backdrop { background: rgba(42, 34, 57, 0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.mhf-sh__card { position: relative; width: min(100%, 540px); margin: auto; padding: clamp(28px, 5vw, 40px) clamp(20px, 5vw, 36px) clamp(24px, 4vw, 32px);
  background: var(--paper); border-radius: var(--radius-l); box-shadow: var(--sh-lift); text-align: center; }
.mhf-sh__close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: transparent; color: var(--brand-700); font-size: 28px; line-height: 1; cursor: pointer; }
.mhf-sh__close:hover, .mhf-sh__close:focus-visible { background: var(--lavender-100); }
.mhf-sh h2 { font-family: var(--font-display); color: var(--brand-700); margin: 0 0 8px; }
.mhf-sh__lead { color: var(--text-secondary); margin: 0 auto 20px; max-width: 34ch; }
.mhf-sh__call { padding: 18px 16px; border-radius: var(--radius-m); background: var(--lavender-050); border: 1px solid var(--lavender-100); }
.mhf-sh__eyebrow { margin: 0 0 4px; font-family: var(--font-logo); font-size: var(--text-eyebrow); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-primary); }
.mhf-sh__number { display: inline-block; font-family: var(--font-logo); font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); font-weight: 700;
  color: var(--brand-700); text-decoration: none; letter-spacing: 0.02em; padding: 4px 8px; border-radius: var(--radius-s); }
a.mhf-sh__number:hover, a.mhf-sh__number:focus-visible { background: var(--lavender-100); }
.mhf-sh__number[data-placeholder] { color: var(--neutral-500); font-weight: 500; }
.mhf-sh__copy { display: none; margin: 6px auto 0; min-height: 36px; padding: 0 14px; border: 1px solid var(--header-border); border-radius: 999px;
  background: transparent; color: var(--brand-700); font: 600 var(--text-sm) var(--font-body); cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .mhf-sh__copy { display: block; } }
/* Text Us (2026-10-14): one button under the call box, same number, note ready to send. */
.mhf-sh__text { margin: 18px auto 0; }
.mhf-sh__hint { margin: 8px 0 0; font-size: var(--text-sm); color: var(--text-secondary); }
.mhf-sh__or { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; color: var(--text-secondary); font-size: var(--text-sm); }
.mhf-sh__or::before, .mhf-sh__or::after { content: ""; flex: 1; height: 1px; background: var(--neutral-200); }
.mhf-sh__form { display: grid; gap: 12px; text-align: left; }
.mhf-sh__field { display: grid; gap: 4px; font-size: var(--text-sm); font-weight: 600; color: var(--text-primary); }
.mhf-sh__field input, .mhf-sh__field select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--neutral-500);
  border-radius: var(--radius-s); background: var(--c-white); color: var(--ink); font: 400 16px var(--font-body);
  transition: border-color 0.28s var(--ease-soft), box-shadow 0.28s var(--ease-soft); }
/* Best time to call (2026-10-28): a pick list, so there is no free-text box on a health site. Own arrow, same box as the inputs. */
.mhf-sh__field select { -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
  background: var(--c-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23481038' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center; }
.mhf-sh__field span { transition: color 0.28s var(--ease-soft); }
.mhf-sh__field:focus-within span { color: var(--brand-primary); }
.mhf-sh__opt { font-style: normal; font-weight: 400; color: var(--text-secondary); }
.mhf-sh__field input:hover, .mhf-sh__field select:hover { border-color: var(--brand-primary); }
.mhf-sh__field input:focus-visible, .mhf-sh__field select:focus-visible { outline: 2px solid transparent; border-color: var(--brand-primary); box-shadow: 0 0 0 4px rgba(111, 90, 143, 0.18); }
.mhf-sh__field input[aria-invalid="true"] { border-color: #a3264b; box-shadow: 0 0 0 3px rgba(163, 38, 75, 0.14); }
.mhf-sh__thanks h3:focus { outline: none; }
@media (min-width: 600px) {
  .mhf-sh__form { grid-template-columns: 1fr 1fr; column-gap: 14px; }
  .mhf-sh__field--wide, .mhf-sh__send, .mhf-sh__status { grid-column: 1 / -1; }
}
.mhf-sh__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mhf-sh__send { justify-self: center; margin-top: 6px; transition: opacity 0.3s var(--ease-soft), transform 0.3s var(--ease-soft); }
.mhf-sh__send[disabled] { opacity: 0.55; transform: scale(0.98); pointer-events: none; }
.mhf-sh__status { margin: 0; min-height: 1.4em; text-align: center; font-size: var(--text-sm); color: var(--text-secondary); opacity: 0; transition: opacity 0.35s var(--ease-soft); }
.mhf-sh__status:not(:empty) { opacity: 1; }
.mhf-sh__note { grid-column: 1 / -1; margin: 2px 0 0; text-align: center; font-size: var(--text-sm); line-height: 1.5; color: var(--text-secondary); }
.mhf-sh__note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.mhf-sh__thanks { margin-top: 22px; }
.mhf-sh__thanks h3 { font-family: var(--font-display); color: var(--brand-700); margin: 0 0 6px; }
.mhf-sh__thanks p { margin: 0; color: var(--text-secondary); }
@media (prefers-reduced-motion: no-preference) {
  .mhf-sh__form, .mhf-sh__or { transition: opacity 0.34s var(--ease-soft), transform 0.34s var(--ease-soft); }
  .mhf-sh__form.is-sent, .mhf-sh__or.is-sent { opacity: 0; transform: translateY(-8px); }
  .mhf-sh__thanks { animation: mhf-sh-rise 0.55s var(--ease-satisfying) both; }
  .mhf-sh[open] .mhf-sh__or, .mhf-sh[open] .mhf-sh__field, .mhf-sh[open] .mhf-sh__send { animation: mhf-sh-rise 0.6s var(--ease-satisfying) both; }
  .mhf-sh[open] .mhf-sh__or { animation-delay: 0.16s; }
  .mhf-sh[open] .mhf-sh__field:nth-of-type(1) { animation-delay: 0.22s; }
  .mhf-sh[open] .mhf-sh__field:nth-of-type(2) { animation-delay: 0.28s; }
  .mhf-sh[open] .mhf-sh__field:nth-of-type(3) { animation-delay: 0.34s; }
  .mhf-sh[open] .mhf-sh__field:nth-of-type(4) { animation-delay: 0.40s; }
  .mhf-sh[open] .mhf-sh__send { animation-delay: 0.48s; }
}
@keyframes mhf-sh-rise { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: no-preference) {
  .mhf-sh[open] .mhf-sh__card { animation: mhf-sh-in 0.42s var(--ease-satisfying) both; }
  .mhf-sh[open]::backdrop { animation: mhf-sh-fade 0.3s var(--ease-soft) both; }
  .mhf-sh.is-closing .mhf-sh__card { animation: mhf-sh-out 0.22s var(--ease-soft) both; }
  .mhf-sh.is-closing::backdrop { animation: mhf-sh-fade 0.22s var(--ease-soft) reverse both; }
}
@keyframes mhf-sh-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
@keyframes mhf-sh-out { to { opacity: 0; transform: translateY(8px) scale(0.98); } }
@keyframes mhf-sh-fade { from { opacity: 0; } }

/* Sub pages (Quinten 2026-09-28: "not sooo boring", then "chill with the effects"). Page title centred on the valley,
   the shade becomes a soft glow behind it. Each section pairs its words with one painted scene in an arch
   (img/scenes/*.webp, Higgsfield 2026-09-28, same valley as Home), sides alternating. No scroll effects; the homepage keeps the show. */
.mhf-page-hero .mhf-section__inner { justify-items: center; text-align: center; }
.mhf-page-hero::before { background: radial-gradient(60% 55% at 50% 50%, rgba(42, 20, 38, 0.42), rgba(42, 20, 38, 0.12) 60%, rgba(42, 20, 38, 0) 85%); }
.mhf-page-hero h1::after { content: ""; display: block; width: 72px; height: 2px; margin: 14px auto 0; border-radius: 2px; background: var(--accent); }
@media (max-width: 700px) {
  .mhf-page-hero::before { background: radial-gradient(80% 50% at 50% 50%, rgba(42, 20, 38, 0.42), rgba(42, 20, 38, 0) 85%); }
}
.mhf-copy { display: grid; gap: var(--space-s); justify-items: start; min-width: 0; }
.mhf-scene-frame { position: relative; width: min(64vw, 240px); justify-self: center; }
.mhf-scene { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 50% 50% var(--radius-m) var(--radius-m) / 40% 40% var(--radius-m) var(--radius-m);   /* arch: a true half-circle top */
  background: var(--lavender-100); box-shadow: var(--sh-sm); }
@media (max-width: 900px) {
  .mhf-copy { justify-items: center; }   /* 6C: centred on phones like every section */
  .mhf-section--art .mhf-scene-frame { order: -1; }
}
@media (min-width: 901px) {
  .mhf-section--art .mhf-section__inner { grid-template-columns: minmax(0, 1fr) clamp(220px, 24vw, 300px);
    column-gap: clamp(48px, 7vw, 120px); align-items: center; }
  .mhf-section--art .mhf-scene-frame { width: 100%; }
  .mhf-section--flip .mhf-section__inner { grid-template-columns: clamp(220px, 24vw, 300px) minmax(0, 1fr); }
  .mhf-section--flip .mhf-scene-frame { order: -1; }
}

/* Butterflies (Quinten 2026-09-28, painted in Higgsfield, img/butterflies/): one rests on the rim of each arch with a
   soft shadow, as if it landed there. The picture is split down the body; each wing half folds on its own hinge now and
   then, like a resting butterfly; js/mhf-butterflies.js flies them around the picture now and then. Reduced motion = still. */
.mhf-bf { position: absolute; z-index: 2; left: var(--x); top: var(--y); width: clamp(40px, 20%, 58px); aspect-ratio: 240 / 188;
  --lift: 0;
  transform: translate(-50%, -50%) rotate(var(--r)) scale(calc(1 + var(--lift) * 0.14)); perspective: 180px; pointer-events: none;
  filter: drop-shadow(1px calc(5px + var(--lift) * 24px) calc(3px + var(--lift) * 9px) rgba(42, 34, 57, calc(0.3 - var(--lift) * 0.16))); }
.mhf-bf.is-flying { z-index: 5; }
.mhf-bf i { position: absolute; top: 0; bottom: 0; width: 50%; background: no-repeat; background-size: 200% 100%;
html.is-ready .mhf-bf i { background-image: var(--bf); }   /* the wings' pictures are asked for once the page is ready (2026-10-15, phone speed): they sit far down, under the curtain */
  animation: mhf-bf-l 6s ease-in-out var(--d, 0s) infinite; }
.mhf-bf i:first-child { left: 0; background-position: left center; transform-origin: right center; }
.mhf-bf i:last-child { right: 0; background-position: right center; transform-origin: left center; animation-name: mhf-bf-r; }
/* In flight (js/mhf-butterflies.js): quick full wingbeats; slower as it settles. */
.mhf-bf.is-flying i:first-child { animation: mhf-bf-beat-l 0.17s ease-in-out infinite alternate; }
.mhf-bf.is-flying i:last-child { animation: mhf-bf-beat-r 0.17s ease-in-out infinite alternate; }
.mhf-bf.is-landing i { animation-duration: 0.32s; }
@keyframes mhf-bf-l { 0%, 64%, 100% { transform: rotateY(0); } 71% { transform: rotateY(64deg); } 78% { transform: rotateY(10deg); } 85% { transform: rotateY(56deg); } 93% { transform: rotateY(0); } }
@keyframes mhf-bf-r { 0%, 64%, 100% { transform: rotateY(0); } 71% { transform: rotateY(-64deg); } 78% { transform: rotateY(-10deg); } 85% { transform: rotateY(-56deg); } 93% { transform: rotateY(0); } }
@keyframes mhf-bf-beat-l { from { transform: rotateY(5deg); } to { transform: rotateY(76deg); } }
@keyframes mhf-bf-beat-r { from { transform: rotateY(-5deg); } to { transform: rotateY(-76deg); } }
@media (prefers-reduced-motion: reduce) { .mhf-bf i, .mhf-section--art:hover .mhf-bf i { animation: none; } }

/* Sub page hero foot (Quinten 2026-10-02: the flipped copy "you can really see the duplication"). No mirror now: the
   hero picture itself runs on below the box (family-valley-hero-tall: the live picture with its meadow extended
   downward, Higgsfield outpaint), so the flowers simply carry on and end in flower tips on the paper. The ground layer
   covers the box plus the strip; the flower-tip silhouette (transition-meadow alpha, flipped) trims its foot. */
.mhf-page-hero { overflow: visible; padding-bottom: clamp(110px, 16vh, 180px); --mirror-h: clamp(96px, 10.5vw, 180px);
  background: var(--lavender-050); }
@media (min-width: 1200px) { .mhf-page-hero { background-image: none; } }
.mhf-page-hero::after { display: none; }
.mhf-page-hero__mirror {
  position: absolute; left: 0; right: 0; top: 0; height: calc(100% + var(--mirror-h)); z-index: -2; pointer-events: none;
  background: image-set(url("../img/family-valley-hero-tall-1200.webp") 1x, url("../img/family-valley-hero-tall.webp") 2x) 62% var(--hero-y, 30%) / cover no-repeat;
  -webkit-mask: linear-gradient(#000, #000) top / 100% calc(100% - var(--mirror-h) + 2px) no-repeat,
    url("../img/meadow-tips-down.webp") center bottom / max(100%, calc(var(--mirror-h) * 5.34)) var(--mirror-h) no-repeat;
  mask: linear-gradient(#000, #000) top / 100% calc(100% - var(--mirror-h) + 2px) no-repeat,
    url("../img/meadow-tips-down.webp") center bottom / max(100%, calc(var(--mirror-h) * 5.34)) var(--mirror-h) no-repeat;
}
@media (min-width: 1200px) { .mhf-page-hero__mirror { background-image: url("../img/family-valley-hero-tall.webp"); } }
@media (max-width: 700px) { .mhf-page-hero__mirror { background-size: auto 150%; background-position: 68% 12%; } }   /* the family stays the size it was */
.mhf-first { padding-top: calc(var(--mirror-h, 200px) + var(--space-l, 2rem)); }
.mhf-page-hero + .mhf-first { --mirror-h: clamp(96px, 10.5vw, 180px); }

/* Sub page ground and type (Quinten 2026-09-28: "more interesting without being toooo much"). Painted-paper feel:
   a faint grain over every section, sections alternating cream and a soft lavender wash, and a watercolour glow of
   lavender and dawn gold bleeding out from behind each arch (placed on the picture's side). The grey rules go; the
   colour change does their job. Type: headings take a plum-to-lavender tint and the hero's short gold rule, the
   first line of each section reads as a lead, and a few short lines from the copy stand out in the heading face.
   No new words, no new motion. */
.mhf-section--art {
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .24  0 0 0 0 .16  0 0 0 0 .3  .085 0 0 0 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --glow-x: 78%; --glow-y: 50%;
  border-bottom: 0;
  background:
    var(--grain),
    radial-gradient(34% 46% at var(--glow-x) var(--glow-y), rgba(241, 215, 130, 0.22), rgba(241, 215, 130, 0) 70%),
    radial-gradient(46% 62% at var(--glow-x) var(--glow-y), rgba(183, 154, 214, 0.2), rgba(183, 154, 214, 0) 72%),
    var(--paper);
}
.mhf-section--flip { --glow-x: 22%; background-color: var(--lavender-050);
  background:
    var(--grain),
    radial-gradient(34% 46% at var(--glow-x) var(--glow-y), rgba(241, 215, 130, 0.22), rgba(241, 215, 130, 0) 70%),
    radial-gradient(46% 62% at var(--glow-x) var(--glow-y), rgba(183, 154, 214, 0.22), rgba(183, 154, 214, 0) 72%),
    linear-gradient(180deg, var(--paper), var(--lavender-050) 18%, var(--lavender-050) 82%, var(--paper)); }
@media (max-width: 900px) {
  .mhf-section--art, .mhf-section--flip { --glow-x: 50%; --glow-y: 26%; }
}
.mhf-section--art h2 {
  background: linear-gradient(100deg, var(--brand-700) 0%, #5e2a63 55%, var(--brand-primary) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--brand-700);
}
.mhf-section--art h2::after { content: ""; display: block; width: 56px; height: 2px; margin-top: 12px; border-radius: 2px;
  background: var(--accent); -webkit-text-fill-color: initial; }
.mhf-copy h2 + p, .mhf-copy .mhf-h + p:not(.mhf-icon-row) { font-size: clamp(1.063rem, 0.98rem + 0.35vw, 1.25rem); line-height: 1.55; color: var(--brand-700); }
.mhf-copy p.mhf-keyline { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.125rem, 1rem + 0.55vw, 1.438rem);
  line-height: 1.35; letter-spacing: 0.02em; color: var(--brand-primary); margin-block: 6px; }
/* ===== Sub pages: icons, type, alive (Quinten 2026-10-07: "iconography and better typography for the sub pages - left
   align text for mobile ... highlighting, bolded words, make it feel alive when they scroll down"). Words unchanged:
   only the copy's own phrases are bolded or highlighted. ===== */
/* phones: the copy reads left aligned under its picture; the picture stays centred */
@media (max-width: 900px) {
  .mhf-section--art .mhf-section__inner { text-align: left; }
  .mhf-section--art .mhf-copy { justify-items: start; }
  .mhf-section--art .mhf-cta-row { justify-content: flex-start; }
}
/* the heading and its icon: a plum line icon in a soft lavender circle with a thin gold ring (a lighter cousin of the
   FAQ orbs, so the orb itself stays a two-place signature) */
.mhf-h { display: flex; align-items: flex-start; gap: 14px; }
.mhf-h h2 { margin: 0; }
.mhf-h__icon {
  flex: none; display: grid; place-items: center; width: 49px; height: 49px; margin-top: 0.14em; border-radius: 50%;
  color: var(--brand-700); fill: currentColor; background: radial-gradient(circle at 35% 30%, #fff, var(--lavender-100) 70%);
  box-shadow: 0 0 0 1.5px rgba(241, 215, 130, 0.9), 0 6px 14px -6px rgba(72, 16, 56, 0.35);
}
@media (max-width: 600px) { .mhf-h { gap: 12px; } .mhf-h__icon { width: 42px; height: 42px; } .mhf-h__icon svg { width: 19px; height: 19px; } }
/* phones: the title and its icon sit together in the middle (Quinten 2026-10-09); the copy below stays left aligned */
@media (max-width: 900px) {
  .mhf-section--art .mhf-h { justify-self: center; align-items: center; }
  .mhf-section--art .mhf-h h2 { text-align: center; }
  .mhf-section--art .mhf-h h2::after { margin-inline: auto; }
  .mhf-section--art .mhf-h__icon { margin-top: 0; }
}
/* bold words: the body face's heavier cut in the mark's plum */
.mhf-section--art .mhf-copy strong { font-weight: 600; color: var(--brand-700); }
/* the highlighter: a soft lavender band the full height of the phrase; it draws across as the section arrives */
.mhf-hl {
  color: inherit; padding: 0 0.14em; margin: 0 -0.07em; border-radius: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: linear-gradient(rgba(183, 154, 214, 0.45), rgba(183, 154, 214, 0.45)) no-repeat 0 0 / 100% 100%;   /* full height: the whole word sits in the highlight (Quinten 2026-10-07: never the bottom half) */
}
/* contact rows: an icon beside each line */
.mhf-icon-row { display: flex; align-items: center; gap: 10px; }
.mhf-icon-row__i { flex: none; display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%;
  color: var(--brand-700); fill: currentColor; background: var(--lavender-100); box-shadow: 0 0 0 1px rgba(111, 90, 143, 0.25); }
.mhf-icon-row strong { font-weight: 600; color: var(--brand-700); margin-right: 0.28em; }
/* phone + email on the Contact page show on click (js/mhf-footer-contact.js keeps room for the full value, so nothing moves) */
.mhf-reveal-inline { appearance: none; border: 0; background: none; padding: 0; margin: 0; font: inherit; color: var(--brand-700);
  text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; touch-action: manipulation; }
.mhf-reveal-inline, .mhf-revealed { display: inline-block; max-width: 100%; min-height: 24px; }
.mhf-reveal-inline:focus-visible, .mhf-revealed:focus-visible { outline: 3px solid var(--brand-primary); outline-offset: 3px; border-radius: 3px; }
/* alive on scroll (js/mhf-life.js adds .mhf-life, then .is-alive per section): lines rise one after another, the
   picture eases in, the highlighter draws across. Without the script nothing is hidden. */
html.mhf-life .mhf-section--art .mhf-copy > * {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.63s var(--ease-soft, ease) calc(var(--i, 0) * 84ms), transform 0.7s var(--ease-satisfying, ease) calc(var(--i, 0) * 84ms);
}
html.mhf-life .mhf-section--art .mhf-h__icon { transform: scale(0.6) rotate(-14deg); transition: transform 0.7s cubic-bezier(0.34, 1.4, 0.64, 1) 0.21s; }
html.mhf-life .mhf-section--art .mhf-scene-frame { opacity: 0; transform: translateY(21px) scale(0.97); transition: opacity 0.84s var(--ease-soft, ease), transform 0.98s var(--ease-satisfying, ease); }
html.mhf-life .mhf-section--art .mhf-hl { background-size: 0% 100%; transition: background-size 0.98s cubic-bezier(0.65, 0, 0.35, 1) 0.7s; }
html.mhf-life .mhf-section--art.is-alive .mhf-copy > * { opacity: 1; transform: none; }
html.mhf-life .mhf-section--art.is-alive .mhf-h__icon { transform: none; }
html.mhf-life .mhf-section--art.is-alive .mhf-scene-frame { opacity: 1; transform: none; }
html.mhf-life .mhf-section--art.is-alive .mhf-hl { background-size: 100% 100%; }

/* ===== Down at the creek: the VSL (Quinten 2026-09-30) =====
   The stone bridge's valley carries on below the scene: first its own tail (the live picture, placed exactly where the
   pinned scene leaves off, measured by js/mhf-vsl.js), then the same stream widening toward the viewer until it is
   the same rocky creek winding down and spilling over a ledge behind the video (img/creek-falls.webp, 2026-10-02), butterflies on the frame's rim, and a flower bank that fades into
   the footer's lavender. No JS or reduced motion: no tail, just the water. */
.mhf-creek {   /* exactly one screen tall, nothing more (Quinten 2026-10-02) */
  position: relative; z-index: 3; overflow: hidden; isolation: isolate; margin-top: -2px; --blend: clamp(90px, 14vh, 160px);   /* above the bridge scene's run-on (pin z 2), which shows only through the soft top (2026-10-02) */
  height: 100vh; height: 100svh; height: calc(var(--vh1, 1svh) * 100); display: flex; flex-direction: column;
}
.mhf-creek__tail { display: none; }   /* retired 2026-10-02: the bridge scene now runs on below itself as it scrolls away, so the creek picture starts the section on its own */
.mhf-creek__tail img {
  position: absolute; left: var(--tail-x, 0px); top: var(--tail-y, 0px); width: var(--tail-w, 100%);
  max-width: none; height: auto; pointer-events: none;
}
.mhf-creek__water {
  position: relative; z-index: 1; flex: 1 1 auto; min-height: 0;
  display: grid; place-items: center;
}
/* phones (Quinten 2026-10-07: "the vsl section still has that fade transition ... should be the same picture under it"):
   the pinned scene's run-on below itself can be trimmed by iPhone Safari (the pin has its own layer for the jitter
   fix), leaving the creek's soft top over plain paper. So on phones the creek carries the valley's own lower part
   under its soft top, placed to the pixel by js/mhf-vsl.js (--tail-*), and the fade always lands on the same picture. */
@media (max-width: 700px) {
  html.mhf-story-live .mhf-creek.has-tail .mhf-creek__tail {
    display: block; position: absolute; left: 0; right: 0; top: 0; height: var(--tail-h, 0px); overflow: hidden; z-index: 0; pointer-events: none;
  }
}

.mhf-creek__scene {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; max-width: none; pointer-events: none;
  object-fit: cover; object-position: 50% var(--creek-y, 50%);   /* picture made screen-shaped (2026-10-02): the whole creek, fall and pool fit without cropping */
  /* flows in through the valley's foreground flowers; the flower bank runs sharp to the footer, no fade (Quinten 2026-10-02) */
  -webkit-mask-image: linear-gradient(transparent, #000 var(--blend));
  mask-image: linear-gradient(transparent, #000 var(--blend));
}
.mhf-creek__water > picture { position: absolute; inset: 0; }   /* the phone-cut wrapper (2026-10-04) must not take a grid row; no z-index, so the still keeps its old stacking */
.mhf-creek__loop { opacity: 0; transition: opacity 0.9s var(--ease-soft, ease); }   /* the running water fades in over the still once it plays */
.mhf-creek__loop.is-on { opacity: 1; }
.mhf-creek__inner {
  width: min(100% - 2 * var(--space-container), 46rem, (var(--vh1, 1svh) * 54 - 7rem) * 16 / 9);   /* smaller, so the creek shows all round it; always fits (7rem: the title and message above the video) */
  padding-top: 8vh; padding-top: 8svh; padding-top: calc(var(--vh1, 1svh) * 8);   /* a little low: the rapids and the lip of the fall show above it */
  position: relative; top: -70px;   /* the whole video card up 70px (Quinten 2026-10-06) */
}
/* The VSL frame (Quinten 2026-10-04: "custom wrapped border and play button"). A frosted paper mat holds the picture,
   wrapped in a thin ribbon of the brand's three hues that drifts slowly round it; the butterflies perch on the mat. */
.mhf-vsl { position: relative; --mat: clamp(7px, 1.4vw, 12px); --vr: clamp(14px, 2.2vw, 22px); }
.mhf-vsl::before, .mhf-vsl::after {
  content: ""; position: absolute; inset: calc(var(--mat) * -1); border-radius: calc(var(--vr) + var(--mat)); pointer-events: none;
}
.mhf-vsl::before {   /* the mat */
  background: linear-gradient(160deg, rgba(255, 250, 241, 0.78), rgba(247, 242, 251, 0.6));
  -webkit-backdrop-filter: blur(12px) saturate(1.1); backdrop-filter: blur(12px) saturate(1.1);
  box-shadow: 0 0 70px rgba(255, 226, 190, 0.45), 0 30px 60px -22px rgba(42, 34, 57, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.mhf-vsl::after {   /* the ribbon: a 2px ring, the gradient travels round it */
  padding: 2px; z-index: 1;
  background: linear-gradient(120deg, #f1d782, #c8b5e3 22%, #6f5a8f 40%, #8ba98c 58%, #f1d782 76%, #c8b5e3 90%, #f1d782) 0 0 / 300% 300%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  animation: mhf-ribbon 14s linear infinite;
}
@keyframes mhf-ribbon { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
html.mhf-motion-paused .mhf-vsl::after { animation-play-state: paused; }
/* Rocio's title and message (2026-10-06) ride the same frosted mat as the video, so they read over the water */
.mhf-vsl__intro { position: relative; z-index: 1; display: grid; gap: 0.3em; text-align: center; padding: 0.42rem 0.7rem 0.84rem; }
.mhf-vsl__intro h2 { margin: 0; font-size: clamp(1.125rem, 0.8rem + 1.5vw, 1.875rem); line-height: 1.2; color: var(--brand-700); }
.mhf-vsl__intro p { margin: 0 auto; font-size: clamp(0.875rem, 0.82rem + 0.3vw, 1.063rem); line-height: 1.45; color: var(--ink); }
.mhf-vsl__screen {
  position: relative; z-index: 1; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--vr); overflow: hidden;
  display: grid; place-items: center; align-content: center; gap: var(--space-xs);
  background: var(--lavender-800) center / cover no-repeat;
  box-shadow: 0 0 0 1px rgba(111, 90, 143, 0.35), 0 6px 18px rgba(42, 34, 57, 0.25);
}
.mhf-vsl__screen:not(.has-video) { background-color: rgba(255, 250, 241, 0.3); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
/* the thumbnail's own light: a soft plum dusk from below, so the button and the words read on any frame */
.mhf-vsl__screen.has-video::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 70% at 50% 50%, rgba(42, 20, 38, 0.18), rgba(42, 20, 38, 0) 70%),
              linear-gradient(180deg, rgba(42, 20, 38, 0) 45%, rgba(42, 20, 38, 0.55));
  transition: opacity 0.4s ease;
}
.mhf-vsl__screen.is-playing::after { display: none; }
.mhf-vsl__screen.has-video:not(.is-playing) { cursor: pointer; }
.mhf-vsl__screen iframe, .mhf-vsl__screen video { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; border: 0; }
.mhf-vsl__screen video { object-fit: contain; background: #000; }
/* the play button: a lavender orb with a paper rim and a soft yellow halo that breathes */
.mhf-vsl__play {
  position: relative; z-index: 1; width: clamp(64px, 9vw, 86px); height: clamp(64px, 9vw, 86px); border-radius: 50%;
  display: grid; place-items: center; padding: 0; color: var(--paper);   /* no nudge (2026-10-06): the triangle's outline is centered in index.html (translate on the path) */ fill: currentColor;
  background: radial-gradient(circle at 32% 26%, #9a86bb 0%, #6f5a8f 52%, #4f3e6a 100%);
  border: 2px solid rgba(255, 250, 241, 0.9);
  box-shadow: 0 0 0 7px rgba(255, 250, 241, 0.3), 0 14px 30px rgba(42, 20, 38, 0.45), inset 0 2px 3px rgba(255, 255, 255, 0.35);
  transition: transform 0.45s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.35s ease;
}
.mhf-vsl__play svg { width: 42%; height: 42%; filter: drop-shadow(0 1px 1px rgba(42, 20, 38, 0.35)); }
.mhf-vsl__play::before {   /* the halo */
  content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1.5px solid rgba(241, 215, 130, 0.85);
  animation: mhf-halo 2.8s cubic-bezier(0.22, 1, 0.36, 1) infinite; pointer-events: none;
}
@keyframes mhf-halo { 0% { transform: scale(0.92); opacity: 0.9; } 70%, 100% { transform: scale(1.32); opacity: 0; } }
html.mhf-motion-paused .mhf-vsl__play::before { animation-play-state: paused; }
.mhf-vsl__screen.has-video:hover .mhf-vsl__play { transform: scale(1.07); box-shadow: 0 0 0 10px rgba(241, 215, 130, 0.45), 0 18px 34px rgba(42, 20, 38, 0.5), inset 0 2px 3px rgba(255, 255, 255, 0.35); }
.mhf-vsl__play:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }
.mhf-vsl__play:disabled { opacity: 0.9; }
.mhf-vsl__label {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: clamp(10px, 6%, 24px); text-align: center; pointer-events: none;
  font-family: var(--font-logo); font-weight: 600; font-size: clamp(0.875rem, 1.3vw, 1.05rem); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--paper); text-shadow: 0 1px 3px rgba(42, 20, 38, 0.8), 0 0 14px rgba(42, 20, 38, 0.5);
}
.mhf-vsl__screen:not(.has-video) .mhf-vsl__label { display: none; }
.mhf-vsl__soon { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: 0.04em; color: var(--brand-700);
  text-shadow: 0 0 12px rgba(255, 250, 241, 0.9); }
@media (prefers-reduced-motion: reduce) { .mhf-vsl::after, .mhf-vsl__play::before { animation: none; } .mhf-vsl__play { transition: none; } }
/* the cursor goes behind the playing video (js/mhf-vsl.js clips it at the edge; on the player it is gone) */
html.mhf-cur-behind .ag-cursor__body, html.mhf-cur-behind .ag-cursor__edge { opacity: 0 !important; transition: none; }
@media (max-width: 600px) { .mhf-creek__inner { width: calc(100% - 64px); } }
/* phones (2026-10-04): the creek is a frame for a 16:9 video about 185px tall there, so it takes 60% of the screen, not all of it */
/* phones (2026-10-07): the creek grows to hold the card, with a gap above and below. A fixed 60svh plus a lift cut the
   card's top off on real iPhones, where Safari's bars make the screen shorter (Quinten: "the VSL container is being cut off") */
/* 2026-10-07 later: one screen tall, as on desktop, so the creek picture shows at the desktop's scale next to the phone's
   desktop-proportioned bridge scene; the card sits in the middle of the water, the pause button clear below it */
@media (max-width: 700px) { .mhf-creek { height: 100vh; height: 100svh; height: calc(var(--vh1, 1svh) * 100); } .mhf-creek__inner { top: 0; padding: 0 0 42px; } .mhf-motion-toggle--creek { bottom: 14px; } }

/* FAQ (2026-10-06): under the creek, above the footer. Each question is a pill like the header: paper, a 1.5px lavender
   line, an icon in the play button's lavender orb, a plus on the right. Hover lifts it and gives the orb the play
   button's yellow halo; open, the pill eases into a rounded card that holds the answer. Native details, no JS. */
.mhf-faq {
  position: relative; isolation: isolate; overflow: hidden; border-bottom: 0;
  background:   /* dusk: the sun's last gold on the horizon, over the lavender-to-plum sky */
    radial-gradient(70% 22% at 50% 100%, rgba(241, 215, 130, 0.42), rgba(241, 215, 130, 0) 100%),
    linear-gradient(180deg, #2e1f43 0%, #4f3e6a 20%, #6f5a8f 46%, #9a86bb 68%, #c8b5e3 84%, #ece2f2 95%, var(--lavender-050) 100%);
}
.mhf-faq > .ag-container { position: relative; z-index: 1; }
.mhf-faq__sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.mhf-faq__sky::before {   /* the first stars, only in the deep part of the sky */
  content: ""; position: absolute; inset: 0 0 55% 0; opacity: 0.85;
  background:
    radial-gradient(1.5px 1.5px at 8% 12%, #fffaf1 50%, transparent 100%), radial-gradient(1px 1px at 17% 34%, #fffaf1 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 26% 8%, #fffaf1 50%, transparent 100%), radial-gradient(1px 1px at 38% 22%, #fffaf1 50%, transparent 100%),
    radial-gradient(1px 1px at 61% 10%, #fffaf1 50%, transparent 100%), radial-gradient(1.5px 1.5px at 72% 28%, #fffaf1 50%, transparent 100%),
    radial-gradient(1px 1px at 83% 6%, #fffaf1 50%, transparent 100%), radial-gradient(1.5px 1.5px at 92% 18%, #fffaf1 50%, transparent 100%),
    radial-gradient(1px 1px at 4% 48%, #fffaf1 50%, transparent 100%), radial-gradient(1px 1px at 96% 44%, #fffaf1 50%, transparent 100%),
    radial-gradient(1px 1px at 50% 4%, #fffaf1 50%, transparent 100%), radial-gradient(1px 1px at 12% 70%, #fffaf1 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent);
  animation: mhf-twinkle 4.9s ease-in-out infinite alternate;
}
@keyframes mhf-twinkle { from { opacity: 0.55; } to { opacity: 0.95; } }
.mhf-faq__sky i {   /* a firefly: a small warm dot that drifts and breathes */
  position: absolute; left: var(--x); top: var(--y); width: 6px; height: 6px; border-radius: 50%;
  background: radial-gradient(circle, #fff6cf 0%, #f1d782 45%, rgba(241, 215, 130, 0) 100%);
  animation: mhf-firefly var(--t) ease-in-out var(--d) infinite;
}
@keyframes mhf-firefly {
  0%, 100% { transform: translate(0, 0) scale(0.8); opacity: 0.25; }
  30% { transform: translate(14px, -22px) scale(1.2); opacity: 1; }
  60% { transform: translate(-10px, -38px) scale(1); opacity: 0.6; }
  80% { transform: translate(6px, -18px) scale(1.15); opacity: 0.95; }
}
html.mhf-motion-paused .mhf-faq__sky::before, html.mhf-motion-paused .mhf-faq__sky i { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .mhf-faq__sky::before, .mhf-faq__sky i { animation: none; } .mhf-faq__sky i { opacity: 0.7; } }
@media (max-width: 1100px) { .mhf-faq__sky i { display: none; } }   /* no side space to keep them in */
.mhf-faq .mhf-section__inner { justify-items: stretch; max-width: 52rem; }
.mhf-faq h2 { color: var(--paper); text-align: center; margin-bottom: var(--space-xs); }
.mhf-faq__list { display: grid; gap: 0.7rem; text-align: left; }   /* left even on phones, where the site centers copy */
.mhf-faq__item {
  background: rgba(255, 255, 255, 0.93); border: 1.5px solid rgba(111, 90, 143, 0.45); border-radius: 2.1rem;
  box-shadow: 0 6px 16px -6px rgba(30, 18, 45, 0.35);
  transition: transform 0.42s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}
.mhf-faq__item:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 0 0 3px rgba(241, 215, 130, 0.35), 0 14px 28px -10px rgba(30, 18, 45, 0.5); }
.mhf-faq__item[open] { background: #fff; border-color: var(--brand-primary); border-radius: 1.4rem; box-shadow: 0 16px 34px -14px rgba(111, 90, 143, 0.5); }
.mhf-faq__item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 0.84rem; border-radius: inherit;
  padding: 0.7rem 0.84rem 0.7rem 0.7rem; font-family: var(--font-body); font-weight: 600; font-size: var(--text-lg); line-height: 1.35; color: var(--brand-700);
}
.mhf-faq__item summary::-webkit-details-marker { display: none; }
.mhf-faq__item summary:focus-visible { outline: 3px solid var(--brand-primary); outline-offset: 3px; }
.mhf-faq__q { flex: 1 1 auto; min-width: 0; }
.mhf-faq__icon {   /* the play button's orb, small */
  flex: none; width: 2.8rem; height: 2.8rem; border-radius: 50%; display: grid; place-items: center; color: var(--paper); fill: currentColor;
  background: radial-gradient(circle at 32% 26%, #9a86bb 0%, #6f5a8f 52%, #4f3e6a 100%);
  border: 2px solid rgba(255, 250, 241, 0.9);
  box-shadow: 0 0 0 4px rgba(111, 90, 143, 0.12), 0 6px 14px rgba(42, 20, 38, 0.25), inset 0 2px 3px rgba(255, 255, 255, 0.35);
  transition: transform 0.42s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.3s ease;
}
.mhf-faq__icon svg { width: 46%; height: 46%; }
.mhf-faq__item:hover .mhf-faq__icon, .mhf-faq__item[open] .mhf-faq__icon {
  transform: scale(1.06); box-shadow: 0 0 0 5px rgba(241, 215, 130, 0.55), 0 8px 18px rgba(42, 20, 38, 0.3), inset 0 2px 3px rgba(255, 255, 255, 0.35);
}
.mhf-faq__toggle {   /* plus in a soft lavender ring; the upright bar folds flat when open */
  flex: none; width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 1.5px solid rgba(111, 90, 143, 0.4); background:
    linear-gradient(var(--brand-primary), var(--brand-primary)) center / 0.75rem 2px no-repeat,
    linear-gradient(var(--brand-primary), var(--brand-primary)) center / 2px 0.75rem no-repeat, var(--lavender-050);
  transition: transform 0.42s cubic-bezier(0.34, 1.4, 0.64, 1), background-size 0.3s ease, border-color 0.3s ease;
}
.mhf-faq__item:hover .mhf-faq__toggle { border-color: var(--brand-primary); transform: rotate(90deg); }
.mhf-faq__item[open] .mhf-faq__toggle { transform: rotate(180deg); border-color: var(--brand-primary);
  background-size: 0.75rem 2px, 2px 0, auto; }
.mhf-faq__item:hover summary { color: var(--brand-primary); }
.mhf-faq__a { display: grid; gap: 0.5em; padding: 0.14rem 1.4rem 1.4rem calc(0.7rem + 2.8rem + 0.84rem); }
.mhf-faq__a p { margin: 0; max-width: var(--measure-body); }
/* the answer eases open where the browser can animate to auto height; elsewhere it simply appears */
@supports (interpolate-size: allow-keywords) {
  .mhf-faq { interpolate-size: allow-keywords; }
  .mhf-faq__item::details-content { height: 0; overflow: clip; transition: height 0.42s cubic-bezier(0.22, 1, 0.36, 1), content-visibility 0.42s allow-discrete; }
  .mhf-faq__item[open]::details-content { height: auto; }
}
@media (max-width: 600px) {
  .mhf-faq__item summary { gap: 0.7rem; font-size: var(--text-base); }
  .mhf-faq__icon { width: 2.4rem; height: 2.4rem; }
  .mhf-faq__toggle { width: 1.8rem; height: 1.8rem; }
  .mhf-faq__a { padding: 0.14rem 1.05rem 1.26rem 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  .mhf-faq__item, .mhf-faq__icon, .mhf-faq__toggle, .mhf-faq__item::details-content { transition: none; }
  .mhf-faq__item:hover { transform: none; }
}

/* Legal pages: Privacy (with the cookie notice) and Accessibility (2026-10-02). One calm reading column, left aligned
   on every screen, sections closer together than the story pages. */
.mhf-legal .mhf-copy { max-width: 46rem; justify-items: start; text-align: left; }
.mhf-legal + .mhf-legal { padding-top: 0; }
.mhf-legal h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.mhf-legal .mhf-copy h2 + p { font-size: inherit; line-height: inherit; color: inherit; }
.mhf-legal__date { color: var(--text-secondary); font-size: 0.95rem; }
.mhf-legal__list { margin: 0; padding-left: 1.2em; display: grid; gap: 0.6em; }
.mhf-legal a { color: var(--brand-700); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .mhf-legal .mhf-copy { justify-items: start; text-align: left; } }
.mhf-contact-item[hidden] { display: none; }
/* page transitions move focus to the new page's heading for screen readers; that programmatic focus shows no ring */
main [tabindex="-1"]:focus:not(:focus-visible), main[tabindex="-1"]:focus:not(:focus-visible), main h1[tabindex="-1"]:focus { outline: none; }
/* WCAG 2.2.2 (2026-10-02): the running water gets its own pause toggle beside it, bottom-right of the creek; it flips the
   same remembered choice as the hero's (js/mhf-page.js) */
.mhf-motion-toggle--creek { z-index: 4; bottom: max(21px, 3vh); }

/* ===== Phone menu (Quinten 2026-10-13): light like the site, filled out like Fraustos' menu, for families not buyers.
   A featured service card, the pages with icon tiles, where and when, three contact tiles (phone + email shown on tap
   on the line below, js/mhf-footer-contact.js), then Start Here, the line and the policies. All of it fits the screen
   with no scrolling: the foot takes whatever room is left, and on short screens (under 620px tall) the card's small
   label and the line step aside. The base drawer (ag-header.css) is dark; everything here repaints it light. ===== */
.mhf-dr {
  color: var(--text-primary); background-color: var(--paper);
  background-image: radial-gradient(120% 55% at 100% 0%, rgba(111, 90, 143, 0.14), transparent 62%),
    linear-gradient(180deg, var(--lavender-050), var(--paper) 60%);
  border-left: 1px solid rgba(111, 90, 143, 0.18); box-shadow: -28px 0 72px rgba(42, 34, 57, 0.28);
}
.mhf-dr svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mhf-dr .ag-drawer__head { padding: calc(8px + env(safe-area-inset-top)) 16px 8px 20px; border-bottom: 1px solid rgba(111, 90, 143, 0.14); }
.mhf-dr .ag-drawer__brand .ag-drawer__logo { width: min(232px, 100%); }
.mhf-dr .ag-drawer__close { width: 44px; height: 44px; background: var(--c-white); border: 1px solid rgba(111, 90, 143, 0.28); color: var(--brand-700); font-size: 26px; line-height: 1; }
@media (hover: hover) { .mhf-dr .ag-drawer__close:hover { background: var(--brand-primary); border-color: var(--brand-primary); color: var(--c-white); } }
.mhf-dr-body { display: flex; flex-direction: column; gap: 8px; padding: 10px 16px 8px; }

/* featured service: the scene picture, what it is, and where it goes */
.mhf-dr-card {
  display: grid; grid-template-columns: 46px 1fr; align-items: center; gap: 12px; padding: 7px 12px 7px 7px;
  border-radius: 16px; background: var(--c-white); color: inherit; text-decoration: none;
  box-shadow: var(--sh-sm), inset 0 0 0 1px rgba(111, 90, 143, 0.14);
  transition: box-shadow var(--duration-quick) var(--ease-soft);
}
.mhf-dr-card img { width: 46px; height: 58px; object-fit: cover; border-radius: 10px; display: block; }
.mhf-dr-card__txt { display: grid; gap: 1px; min-width: 0; }
.mhf-dr-card small { font: 700 var(--text-sm)/1.25 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-primary); }
.mhf-dr-card b { font: 600 1.15rem/1.15 var(--font-logo); color: var(--brand-700); }
.mhf-dr-card__go { display: inline-flex; align-items: center; gap: 6px; font: 700 var(--text-sm)/1.25 var(--font-body); color: var(--brand-primary); }
.mhf-dr-card__go svg { width: 16px; height: 16px; stroke-width: 2; transition: transform var(--duration-quick) var(--ease-satisfying); }
@media (hover: hover) {
  .mhf-dr-card:hover { box-shadow: var(--sh-lift), inset 0 0 0 1px rgba(111, 90, 143, 0.3); }
  .mhf-dr-card:hover .mhf-dr-card__go svg { transform: translateX(3px); }
}

/* the pages: icon tiles in place of 01 02 03 */
.mhf-dr .ag-drawer__list { padding: 0; gap: 0; }
.mhf-dr .ag-drawer__list a { align-items: center; gap: 14px; min-height: 46px; padding: 3px 8px; }
.mhf-dr .ag-drawer__list a::before { background: var(--brand-primary); left: 0; }
.mhf-dr-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--lavender-100); color: var(--brand-primary); flex: none; }
.mhf-dr-ico svg { width: 20px; height: 20px; }
.mhf-dr .ag-drawer__label { color: var(--brand-700); font-size: clamp(1.2rem, 5vw, 1.4rem); }
.mhf-dr .ag-drawer__list a[aria-current="page"] { background: rgba(111, 90, 143, 0.09); }
@media (hover: hover) {
  .mhf-dr .ag-drawer__list a:hover { background: rgba(111, 90, 143, 0.09); }
  .mhf-dr .ag-drawer__list a:hover .ag-drawer__label { color: var(--brand-700); }
}

/* where and when (the footer's words) */
.mhf-dr-info { list-style: none; margin: 0; padding: 7px 12px; display: grid; gap: 3px; border-radius: 14px; border: 1.5px dashed rgba(111, 90, 143, 0.35); }
.mhf-dr-info li { display: flex; align-items: center; gap: 10px; font: 600 0.9375rem/1.35 var(--font-body); color: var(--text-primary); }
.mhf-dr-info svg { width: 18px; height: 18px; color: var(--brand-primary); }

/* contact: three tiles in a row; Phone Us and Email Us show the number or address on the line below (the tile stays,
   so the other can be shown after), Instagram opens the page. The line keeps its room from the start. */
.mhf-dr-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mhf-dr-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 54px; margin: 0; padding: 6px 4px;
  border-radius: 14px; border: 1px solid rgba(111, 90, 143, 0.22); background: var(--c-white);
  font: 600 var(--text-sm)/1.2 var(--font-body); color: var(--text-primary); text-align: center; text-decoration: none; cursor: pointer;
  transition: border-color var(--duration-quick) var(--ease-soft), background-color var(--duration-quick) var(--ease-soft);
}
.mhf-dr-tile svg { width: 20px; height: 20px; color: var(--brand-primary); }
.mhf-dr-tile.is-on { border-color: var(--brand-primary); background: var(--lavender-050); }
@media (hover: hover) { .mhf-dr-tile:hover { border-color: var(--brand-primary); } }
.mhf-dr-slot { margin: 4px 0 0; min-height: 22px; text-align: center; font: 700 0.9375rem/1.4 var(--font-body); }
.mhf-dr-value { color: var(--brand-700); text-decoration: underline; text-underline-offset: 3px; }
.mhf-dr-value:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 3px; border-radius: 3px; }

/* foot: Start Here, the line, the policies; it takes the room that is left, so nothing scrolls */
.mhf-dr .ag-drawer__foot { margin-top: auto; gap: 2px; padding: 10px 20px calc(2px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(111, 90, 143, 0.14); }
.mhf-dr .ag-drawer__cta { margin-bottom: 4px; align-self: center; width: auto; min-width: 70%; }
.mhf-dr .ag-drawer__note { color: var(--text-secondary); justify-content: center; }
.mhf-dr-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 20px; }
.mhf-dr-legal a { display: inline-flex; align-items: center; min-height: 44px; font: 500 var(--text-sm)/1.3 var(--font-body); color: var(--text-secondary); text-decoration: underline; text-underline-offset: 3px; }
@media (max-height: 619px) { .mhf-dr-card small, .mhf-dr .ag-drawer__note { display: none; } }
@media (max-height: 579px) { .mhf-dr-card__go { display: none; } .mhf-dr-body { gap: 6px; padding-block: 8px 4px; } .mhf-dr .ag-drawer__list a { min-height: 44px; padding-block: 2px; } }
@media (max-height: 539px) { .mhf-dr-card { display: none; } }   /* a phone on its side: the pages, contact and Start Here come first */

/* the new parts arrive with the links, one after another */
.mhf-dr-in { opacity: 0; transform: translateX(var(--dist-lg)); transition: opacity var(--duration-quick) var(--ease-satisfying), transform var(--duration-quick) var(--ease-satisfying); transition-delay: calc(0.18s + (var(--i, 0) * 0.06s)); }
.ag-drawer.is-open .mhf-dr-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .mhf-dr-in { transition: none !important; transform: none; } }
