﻿/* ==========================================================================
   Alli Pfaff â€” site styles
   ========================================================================== */

:root {
  --cream: #F8F2EA;
  --cream-2: #F0E6D8;
  --paper: #FFFCF7;
  --white: #FFFFFF;
  --ink: #33282A;
  --ink-soft: #5E5250;
  --taupe: #7A7064;          /* logo colour */
  --taupe-dark: #5E564D;
  --plum: #6E1F3D;
  --plum-soft: #A3485E;
  --terracotta: #B5452F;
  --line: #E4D7C6;

  --header-h: 56px;
  --flow: 1.5rem;            /* standard gap between stacked text elements (and the button after them) */

  /* Spacing scale (4px base). Use these instead of one-off values. */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  /* Vertical padding of page sections (each side) */
  --section: clamp(56px, 7vw, 96px);
  --section-tight: clamp(40px, 4.5vw, 64px);
  /* Gap between the two columns of split layouts */
  --split-gap: clamp(40px, 6vw, 96px);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --w-serif: 600;        /* headings */
  --w-serif-light: 500;  /* large statement text */
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);

  /* Hard-stop stripe pattern used for bands and frames */
  --stripes: linear-gradient(90deg,
    #B5452F 0 8%, #6E1F3D 8% 15%, #C8603B 15% 24%, #7A7064 24% 31%, #C24B3A 31% 39%,
    #8E3B5A 39% 47%, #9B4A2F 47% 55%, #A8323E 55% 62%, #5E564D 62% 69%, #C66A2E 69% 77%,
    #7D2A45 77% 85%, #D9785A 85% 92%, #A09383 92% 100%);
  /* Same idea without the reds, used under the red CTA so they do not blend */
  --stripes-cta: linear-gradient(90deg,
    #6E1F3D 0 9%, #C66A2E 9% 18%, #7A7064 18% 27%, #8E3B5A 27% 36%, #CB8556 36% 45%,
    #5E564D 45% 54%, #7D2A45 54% 63%, #A09383 63% 72%, #9E4A24 72% 81%, #A3485E 81% 90%, #33282A 90% 100%);
  --cta-red: #A93A2E;
  --red: #A93A2E;          /* menu text/indicator */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.1875rem;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--plum); text-underline-offset: .2em; }
a:hover { color: var(--terracotta); }
:focus-visible { outline: 3px solid #E07F5E; outline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: var(--w-serif); line-height: 1.08; margin: 0 0 var(--flow); color: var(--ink); font-optical-sizing: auto; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); letter-spacing: -.015em; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -.01em; }
h3 { font-size: 1.5rem; }
p { margin: 0 0 var(--flow); }
em { font-style: italic; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.container--narrow { width: min(760px, 100% - 40px); margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font: 500 .86rem/1.2 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: var(--space-3);
}
.lead { font-size: clamp(1.28rem, 1.8vw, 1.45rem); color: var(--ink-soft); line-height: 1.5; }
.text-center { text-align: center; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  background: var(--plum); color: #fff;
  font: 500 .92rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  padding: 1.15em 2em; border-radius: 999px; text-decoration: none;
  border: 0; cursor: pointer;
  transition: background .3s, transform .3s var(--ease);
}
.btn:hover { background: var(--terracotta); color: #fff; transform: translateY(-2px); }
/* A button after text sits a step further away than paragraphs do from each other,
   so it reads as the action, not as one more line of text (24px + 16px = 40px) */
:is(p, ul, ol) + .btn { margin-top: var(--space-4); }
.btn--ghost { background: transparent; color: var(--plum); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost:hover { background: var(--plum); color: #fff; }
.link-arrow { font: 500 .92rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.link-arrow::after { content: ' \2192'; transition: margin .3s; }
.link-arrow:hover::after { margin-left: .3em; }

/* ==========================================================================
   Stripes â€” shared by the home hero, the header and pathway tiles.
   Each stripe holds a gradient twice its height; hovering slides it up
   (see main.js) for the "wave" effect.
   ========================================================================== */
.stripe {
  --c0: #B5452F; --c1: #D9785A;
  position: relative;
  display: block;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: var(--c0);
  isolation: isolate;
}
.stripe:hover { color: #fff; }
.stripe__fill {
  position: absolute; left: 0; top: 0; z-index: -1;
  width: 100%; height: 200%;
  background: linear-gradient(to bottom, var(--c0), var(--c1), var(--c0));
  transition: transform 1.4s var(--ease);
  pointer-events: none;
}
.stripe__label {
  font: 500 .88rem/1.1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(40, 10, 10, .18);
}
.stripe:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }

/* ==========================================================================
   Home hero â€” full-height vertical stripes
   ========================================================================== */
.hero {
  position: relative;
  display: grid;
  /* 5 stripes left, 8 right: column ratio keeps every stripe the same width */
  grid-template-columns: 5fr minmax(340px, 30%) 8fr;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  background: var(--cream);
}
.hero__brand {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 40px 96px;
  text-align: center;
  background: var(--cream);
  position: relative;
  min-width: 0;
  transition: opacity .5s;
}
.hero__logo { width: min(250px, 62%); margin-bottom: 2.2rem; }
.hero__credentials { font: 400 1.05rem/1.5 var(--sans); color: var(--taupe-dark); margin: 0 0 .35rem; }
.hero__credentials strong { display: block; font: 500 1.3rem/1.4 var(--sans); letter-spacing: .05em; color: var(--ink); margin-bottom: .2rem; }
.hero__credentials span { display: block; line-height: 1.3; }
.hero__place span { display: block; margin-top: .6em; }
.hero__place .sep { display: none; }
.hero__place { font: 500 .8rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--taupe); margin: .8rem 0 0; }
.hero__scroll {
  position: absolute; left: 0; right: 0; bottom: 28px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font: 500 .7rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  color: var(--taupe); text-decoration: none;
}
.hero__scroll::after { content: ''; width: 1px; height: 38px; background: currentColor; animation: scroll-cue 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes scroll-cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

.hero__stripes { display: flex; height: 100%; min-width: 0; overflow: hidden; }
.hero__stripes--left .stripe { transform: translateY(-100%); }
.hero__stripes .stripe {
  flex: 1 1 0;
  height: 100%;
  transform: translateY(100%);
  transition: transform 1s var(--ease);
}
.hero.is-ready .hero__stripes .stripe { transform: none; }

/* Piano: black keys over the stripe boundaries (2 + 3 groups, like a real keyboard) */
.hero__stripes { position: relative; }
.hero__key {
  position: absolute; top: 0; z-index: 2;
  left: calc(var(--i) * 100% / var(--n));
  width: calc(100% / var(--n) * .56);
  height: 52%;
  margin-left: calc(100% / var(--n) * -.28);
  background: linear-gradient(to bottom, #2B2022, #3A2C2E 92%, #4A3A3C);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 4px 10px rgba(30, 10, 10, .2);
  transform: translateY(-100%);
  transition: transform .9s var(--ease) .9s, opacity .4s;
}
.hero.is-settled .hero__key { transition: transform .12s ease-out, box-shadow .12s, opacity .4s; }
.hero.is-settled .hero__key.is-pressed { transform: translateY(5px); box-shadow: 0 2px 5px rgba(30, 10, 10, .3); }
.hero.is-ready .hero__key { transform: none; }
.hero.is-leaving .hero__key { opacity: 0; transition: opacity .3s; }

/* Piano: a stripe sinks a little when pressed, like a key */
/* White musical-note cursor over the keys */
.hero { --cursor-note: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M13 25.5V6l10 3.5v5L15.5 12v13.5' fill='%23fff'/%3E%3Cellipse cx='10.2' cy='25.6' rx='4.6' ry='3.5' transform='rotate(-20 10.2 25.6)' fill='%23fff'/%3E%3C/svg%3E") 9 26, pointer; }
.hero__stripes .stripe, .hero__key { cursor: var(--cursor-note); }
@media (min-width: 861px) {
  /* --lift (0..1, set by main.js on scroll) raises each key off the screen */
  .hero.is-settled .hero__stripes .stripe { transform: translateY(calc(var(--lift, 0) * -100%)); transition: transform .12s ease-out, box-shadow .12s; }
  .hero.is-settled .hero__stripes .stripe.is-pressed { transform: translateY(calc(var(--lift, 0) * -100% + 7px)); box-shadow: inset 0 12px 14px -10px rgba(30, 10, 10, .45); }
  .hero.is-settled .hero__key { transform: translateY(calc(var(--lift, 0) * -100%)); }
  .hero.is-settled .hero__key.is-pressed { transform: translateY(calc(var(--lift, 0) * -100% + 5px)); }
  /* --catch-up (set by main.js): the page below the piano rises over it while the keys leave */
  .home main, .home .site-footer { translate: 0 var(--catch-up, 0px); }
  .home main { position: relative; z-index: 3; background: var(--cream); }
}

/* "Click me" hint that follows the mouse until the first click */
.hero__tip {
  position: fixed; left: 0; top: 0; z-index: 300;
  pointer-events: none;
  background: var(--cream); color: var(--plum);
  font: 600 .74rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  padding: 8px 12px; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(40, 15, 15, .25);
  white-space: nowrap;
}
.hero__tip[hidden] { display: none; }

.hero__stripes { -webkit-user-select: none; user-select: none; }


/* Leaving the home page: stripes fold up into the header height */
.hero.is-leaving { transition: height .7s var(--ease), min-height .7s var(--ease), grid-template-columns .7s var(--ease); min-height: 0; grid-template-columns: 0fr 250px 1fr; }
.hero.is-leaving .hero__brand,
.hero.is-leaving .hero__scroll,
.hero.is-leaving .stripe__label { opacity: 0; }
body.is-leaving main > :not(.hero),
body.is-leaving .site-footer { opacity: 0; transition: opacity .4s; }

/* ==========================================================================
   Header: logo + menu icon (on the home page it comes right after the piano hero)
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;   /* stays at the top while scrolling (desktop) */
  display: flex; align-items: center;
  height: var(--header-h);
  background: transparent;   /* no bar at the top: just the logo and the menu icon */
  pointer-events: none;      /* clicks pass through the empty space between them */
}
/* Bar background, shown once content scrolls underneath (main.js adds .is-solid).
   Kept on a pseudo-element: a backdrop-filter on the header itself would trap the
   fixed menu panel inside the 56px bar. */
.site-header::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: rgba(248, 242, 234, .94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--line);
  opacity: 0; transition: opacity .3s;
  pointer-events: none;
}
.site-header.is-solid::after { opacity: 1; }
.site-header.is-solid { pointer-events: auto; }   /* the bar blocks clicks to what's under it */
.site-header.nav-open::after { opacity: 0; }
.site-header__brand, .menu-toggle, .site-nav { pointer-events: auto; }

.site-header__brand {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 12px;
  height: 100%;
  padding: 0 28px 0 22px;
  text-decoration: none; color: var(--ink);
}
/* Wordmark cut from the original logo SVG, so it keeps the logo's thin lettering */
.site-header__name { display: block; width: 176px; height: auto; }

/* Menu button. Icon: three hairlines in the logo colour, the middle one shorter;
   on hover it turns red and the middle line grows; open, it becomes an X. */
.menu-toggle {
  display: inline-flex;
  margin-left: auto; margin-right: 16px;
  align-items: center; gap: 10px;
  background: none; border: 0; padding: 10px; cursor: pointer;
  font: 500 .75rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
}
.menu-toggle__bars { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 26px; color: var(--taupe); transition: color .3s; }
.menu-toggle__bars i { display: block; width: 100%; height: 1.5px; border-radius: 1px; background: currentColor; transition: transform .4s var(--ease), opacity .2s, width .35s var(--ease); }
.menu-toggle__bars i:nth-child(2) { width: 60%; }
/* Mouse only (on touch, :hover sticks after a tap) and only while closed (the X keeps its own colour) */
@media (hover: hover) {
  .site-header:not(.nav-open) .menu-toggle:hover .menu-toggle__bars { color: var(--red); }
  .site-header:not(.nav-open) .menu-toggle:hover .menu-toggle__bars i:nth-child(2) { width: 100%; }
}
.nav-open .menu-toggle__bars i:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-open .menu-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-open .menu-toggle__bars i:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Breadcrumb (above the first headline of inner pages): Home / Who I Help / Teens */
.breadcrumb { margin-bottom: var(--space-4); }
.breadcrumb ol {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) 0;
  font: 500 .86rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase;
}
.breadcrumb li + li::before { content: '/'; color: var(--taupe); margin: 0 .7em; letter-spacing: 0; }
.breadcrumb a { color: var(--taupe-dark); text-decoration: none; }
.breadcrumb a:hover { color: var(--terracotta); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--terracotta); }

/* Open menu: one solid colour, large serif names that rise in one after another.
   Same on desktop and mobile. */
.site-nav {
  --menu-bg: var(--red);
  position: fixed; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: clamp(2px, .6vh, 8px);
  padding: calc(var(--header-h) + 24px) clamp(28px, 9vw, 160px) 40px;
  background: var(--menu-bg);
  overflow-y: auto;
  visibility: hidden; opacity: 0;
  transition: opacity .35s, visibility 0s .35s;
}
.nav-open .site-nav { visibility: visible; opacity: 1; transition: opacity .35s; }
.site-header__brand, .menu-toggle { position: relative; z-index: 2; }
.home .site-header__brand, .home .menu-toggle { transition: opacity .6s var(--ease), transform .7s var(--ease); }
.home .site-header:not(.is-in) .site-header__brand { opacity: 0; transform: translateX(-24px); pointer-events: none; }
.home .site-header:not(.is-in) .menu-toggle { opacity: 0; transform: translateX(24px); pointer-events: none; }
.home .site-header.is-in .menu-toggle { transition-delay: .12s; }
.site-header.nav-open { background: transparent; }
.nav-open .menu-toggle, .nav-open .menu-toggle__bars { color: #fff; }

/* items: plain text, no stripes */
.site-nav .stripe { display: inline-flex; background: transparent; color: #F8EDE6; padding: 0; isolation: auto; overflow: visible; }
.site-nav .stripe__fill { display: none; }
.site-nav .stripe__label { font: inherit; letter-spacing: inherit; text-transform: none; text-shadow: none; white-space: normal; }
.site-nav > .stripe, .nav-group > .stripe {
  font: var(--w-serif) clamp(2rem, 4.6vw, 3.6rem)/1.15 var(--serif);
  transition: color .25s, transform .35s var(--ease);
}
.site-nav > .stripe:hover, .nav-group > .stripe:hover, .site-nav .stripe:focus-visible { color: #fff; transform: translateX(10px); }
.site-nav .stripe[aria-current="page"] { font-style: italic; color: #fff; }
.site-nav .stripe[aria-current="page"]::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #F2B8A0; margin-right: .45em; align-self: center; }
.nav-group { display: flex; flex-direction: column; align-items: flex-start; }
.subnav { display: flex; flex-wrap: wrap; gap: var(--space-1) 22px; margin: var(--space-2) 0 var(--space-4) 2px; visibility: inherit; }
.subnav .stripe { font: 500 clamp(.8rem, 1vw, .92rem)/1.25 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #F2CFC0; }
.subnav .stripe:hover { color: #fff; }
.caret { display: none; }

/* entrance: each line fades up in turn */
.site-nav > * { opacity: 0; transform: translateY(26px); transition: opacity .25s, transform .25s; }
.nav-open .site-nav > * { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .7s var(--ease); }
.nav-open .site-nav > :nth-child(1) { transition-delay: .08s; }
.nav-open .site-nav > :nth-child(2) { transition-delay: .14s; }
.nav-open .site-nav > :nth-child(3) { transition-delay: .20s; }
.nav-open .site-nav > :nth-child(4) { transition-delay: .26s; }
.nav-open .site-nav > :nth-child(5) { transition-delay: .32s; }
.nav-open .site-nav > :nth-child(6) { transition-delay: .38s; }
.nav-open .site-nav > :nth-child(7) { transition-delay: .44s; }
@media (prefers-reduced-motion: reduce) {
  .site-nav > *, .nav-open .site-nav > * { transform: none; transition: opacity .2s; transition-delay: 0s !important; }
}
body.nav-open { overflow: hidden; }
@media (min-width: 861px) {
  .site-nav {
    left: auto; width: min(480px, 92vw);
    padding: calc(var(--header-h) + 40px) 56px 48px;
    box-shadow: -24px 0 60px rgba(40, 15, 15, .22);
    opacity: 1; transform: translateX(100%);
    transition: transform .55s var(--ease), visibility 0s .55s;
  }
  .nav-open .site-nav { transform: none; transition: transform .55s var(--ease); }
  .site-nav { justify-content: flex-start; padding-top: calc(var(--header-h) + 64px); } /* items start near the top */
  .site-nav > .stripe, .nav-group > .stripe { font-size: clamp(1.9rem, 2.6vw, 2.6rem); }
  /* dim the page behind the panel; clicking it closes the menu */
  .site-header::before { content: ''; position: fixed; inset: 0; z-index: 0; background: rgba(51, 40, 42, .7); opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
  .site-header.nav-open::before { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .4s; }
  /* the page slides left as the panel comes in */
  .hero, main, .site-footer, .site-header__brand { transition: transform .55s var(--ease); }
  body.nav-open .hero, body.nav-open main, body.nav-open .site-footer, .nav-open .site-header__brand { transform: translateX(calc(-1 * min(480px, 92vw) / 2)); }
}
@media (max-width: 860px) {
  /* full-screen menu: the logo steps aside so it doesn't sit on top of the menu */
  .nav-open .site-header__brand { opacity: 0; visibility: hidden; }
  /* items start at the top, well clear of the close button */
  .site-nav { justify-content: flex-start; padding-top: calc(var(--header-h) + 40px); }
  .subnav { gap: var(--space-2) 22px; margin: var(--space-3) 0 var(--space-5) 2px; }
  .subnav .stripe { font-size: 1.05rem; }
}

/* ==========================================================================
   Desktop: a side rail instead of a top bar.
   The rail holds the logo mark at the top (logo-mark-rail.svg, a bolder cut for small sizes via <picture>) and,
   at its middle, the menu icon. The menu panel slides out from
   the rail to the right, and the page slides along with it.
   ========================================================================== */
@media (min-width: 861px) {
  :root { --rail: 56px; --rail-bg: #8E2E2A; }
  body { padding-left: var(--rail); }
  .hero { margin-left: calc(-1 * var(--rail)); }   /* the piano stays full width */
  /* "body" raises specificity over the base rules further down the file */
  body .page-intro { padding-top: clamp(48px, 6vw, 88px); }   /* no top bar above it any more */
  body .container { width: min(1180px, 100% - 2 * var(--space-7)); }   /* breathing room from the rail */

  .site-header, .home .site-header { position: fixed; inset: 0; height: auto; display: block; }
  .site-header.is-solid { pointer-events: none; }    /* the header now covers the screen: never block clicks */
  .site-header::after { display: none; }             /* no bar background */

  /* The rail and the name */
  .site-header__brand {
    position: absolute; left: 0; top: 0; bottom: 0;
    width: var(--rail); height: auto; padding: 0;
    background: var(--rail-bg);   /* a deeper red from the piano, darker than the open menu (--red) */
  }
  .site-header__name {   /* here: the logo mark (logo-mark-rail.svg via <picture>) */
    position: absolute; left: 50%; top: 28px;
    width: 36px; height: auto; max-width: none;
    transform: translateX(-50%);
    filter: brightness(0) invert(1);   /* white on the red rail */
  }

  /* Menu icon in the middle of the rail */
  .menu-toggle {
    position: absolute; left: 0; top: calc(50% - 28px); z-index: 3;
    width: var(--rail); height: 56px; margin: 0; padding: 0;
    justify-content: center;
    transition: opacity .6s var(--ease), transform .7s var(--ease);
  }
  .menu-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  /* "I'm here" (home, set by main.js each time the page scrolls down past the piano):
     translucent red waves spread out from the rail, like a pulsing button */
  .site-header__brand::before, .site-header__brand::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    pointer-events: none; opacity: 0;
  }
  .site-header.is-nudging .site-header__brand::before { animation: rail-pulse 1.3s ease-out; }
  .site-header.is-nudging .site-header__brand::after { animation: rail-pulse 1.3s ease-out .4s; }
  @keyframes rail-pulse {
    0% { opacity: 1; box-shadow: 0 0 0 0 rgba(169, 58, 46, .5); }
    100% { opacity: 1; box-shadow: 0 0 0 60px rgba(169, 58, 46, 0); }
  }
  .menu-toggle__bars { color: rgba(255, 255, 255, .85); }
  .site-header:not(.nav-open) .menu-toggle:hover .menu-toggle__bars { color: #fff; }   /* hover: brighter, middle line grows */
  .nav-open .menu-toggle__bars { color: #fff; }   /* the X on the red rail */

  /* Menu panel: slides out from the rail */
  .site-nav {
    left: var(--rail); right: auto;
    box-shadow: 24px 0 60px rgba(40, 15, 15, .22);
    transform: translateX(-100%);
  }
  body.nav-open .hero, body.nav-open main, body.nav-open .site-footer { transform: translateX(calc(min(480px, 92vw) / 2)); }
  .nav-open .site-header__brand { transform: none; }   /* the rail stays put */

  /* Home: the rail slides in from the left while the keys rise */
  .home .site-header:not(.is-in) .site-header__brand,
  .home .site-header:not(.is-in) .menu-toggle { transform: translateX(-100%); }
}

/* ==========================================================================
   Sections & components
   ========================================================================== */
.section { padding: var(--section) 0; }
.section--tight { padding: var(--section-tight) 0; }
/* Section that continues the previous one on the same background:
   drop the top padding so the two paddings don't stack into a gap */
.section--continues { padding-top: 0; }
.section--paper { background: var(--paper); }
.section--sand { background: var(--cream-2); }
.section__head { max-width: 760px; margin-bottom: clamp(var(--space-6), 4vw, var(--space-7)); }
.section__head.text-center { margin-inline: auto; }

/* The last text block of a section/component adds no space of its own:
   the container's padding sets the edge, so every section ends the same way */
:is(main, .site-footer) :is(p, ul, ol):last-child { margin-bottom: 0; }

.stripe-band { height: 12px; background: var(--stripes); }

/* Page intro (inner pages) */
.page-intro { padding: clamp(24px, 3vw, 40px) 0 var(--section); }
.split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: var(--split-gap);
  align-items: center;
}
.split--reverse > :first-child { order: 2; }
.split--top { align-items: start; }

.photo { position: relative; }
.photo img { width: 100%; }
.photo--framed { margin: 0 18px 18px 0; }
.photo--framed::before {
  content: ''; position: absolute; inset: 18px -18px -18px 18px; z-index: -1;
  background: var(--stripes);
  background-size: 100% 100%;
}
.photo--framed img { position: relative; }
.photo--tall img, img.photo--tall { aspect-ratio: 4 / 5; object-fit: cover; }
.photo--wide img, img.photo--wide { aspect-ratio: 3 / 2; object-fit: cover; }
.split > .photo--fill { align-self: stretch; }
.photo--fill img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.photo--fill { min-height: 360px; }
.photo figcaption { font-size: .95rem; color: var(--ink-soft); margin-top: var(--space-3); }

/* Statement lines ("Some need silence. Some need play.") */
.lines { list-style: none; padding: 0; margin: 0 0 var(--flow); font: var(--w-serif-light) clamp(1.3rem, 2.2vw, 1.75rem)/1.35 var(--serif); color: var(--ink); }
.lines li { padding: .15em 0; }
.lines li:nth-child(odd) { color: var(--plum); }

/* Feature band */
.feature {
  position: relative;
  background: var(--plum);
  color: #F7E9E3;
  overflow: hidden;
}
.feature h2, .feature h3 { color: #fff; }
.feature .eyebrow { color: #F2B8A0; }
.feature__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--split-gap); align-items: center; }
.feature__big { font: var(--w-serif-light) clamp(2.4rem, 5vw, 4.2rem)/1.05 var(--serif); margin: 0; color: #fff; }
.feature__big em { color: #F2B8A0; }
.feature .lines { color: #fff; }
.feature .lines li:nth-child(odd) { color: #F2B8A0; }
.feature p { color: #EBD6CF; }

/* Pathway tiles (Children / Teens / Adults / Parents) */
.pathways { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.tile {
  display: flex !important; flex-direction: column; justify-content: flex-end;
  min-height: 360px;
  padding: var(--space-6);
}
.tile__label { font: 500 .8rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; opacity: .85; margin-bottom: auto; }
.tile h3 { color: #fff; font-size: clamp(1.7rem, 2.4vw, 2.2rem); margin: 0 0 var(--space-2); }
.tile p { font-size: 1.125rem; line-height: 1.42; margin: 0 0 var(--space-5); color: rgba(255,255,255,.92); }
.tile .link-arrow { color: #fff; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-5); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
/* 5 cards: 3 on the first row, 2 on the second (desktop) */
@media (min-width: 1001px) {
  .cards--3-2 { grid-template-columns: repeat(6, 1fr); }
  .cards--3-2 > * { grid-column: span 2; }
  .cards--3-2 > :nth-child(n+4) { grid-column: span 3; }
  /* 7 cards: 4 on the first row, the last 3 stretched across the second */
  .cards--4-3 { grid-template-columns: repeat(12, 1fr); }
  .cards--4-3 > * { grid-column: span 3; }
  .cards--4-3 > :nth-child(n+5) { grid-column: span 4; }
}
.card {
  --accent: #B5452F;
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: var(--space-6) var(--space-5) var(--space-5);   /* top includes the 6px accent bar */
  display: flex; flex-direction: column;
  color: inherit; text-decoration: none;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card::before { content: ''; position: absolute; left: -1px; right: -1px; top: -1px; height: 6px; background: var(--accent); }
.section--paper .card { background: var(--cream); }
.card h3 { font-size: 1.45rem; margin-bottom: var(--space-2); }
.card p { font-size: 1.125rem; line-height: 1.5; color: var(--ink-soft); margin: 0; }
.card p + p { margin-top: var(--space-3); }
.card .link-arrow { margin-top: auto; padding-top: var(--space-5); color: var(--accent); }
a.card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(80, 40, 30, .12); color: inherit; }
.cards > :nth-child(8n+1) { --accent: #B5452F; }
.cards > :nth-child(8n+2) { --accent: #6E1F3D; }
.cards > :nth-child(8n+3) { --accent: #C8603B; }
.cards > :nth-child(8n+4) { --accent: #7A7064; }
.cards > :nth-child(8n+5) { --accent: #A8323E; }
.cards > :nth-child(8n+6) { --accent: #8E3B5A; }
.cards > :nth-child(8n+7) { --accent: #9B4A2F; }
.cards > :nth-child(8n+8) { --accent: #5E564D; }

/* Checklists */
.checklist { list-style: none; padding: 0; margin: 0 0 var(--flow); display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3) var(--space-7); }
.checklist--single { grid-template-columns: 1fr; }
.checklist li { position: relative; padding-left: 36px; line-height: 1.42; }
.checklist li::before {
  content: ''; position: absolute; left: 0; top: .05em;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--terracotta) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}

/* Badges ("Why families choose this practice") */
.badges { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.badges li {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-5);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font: var(--w-serif) 1.22rem/1.3 var(--serif);
}
.badges svg { flex: 0 0 auto; width: 38px; height: 38px; }

/* Topic chips */
.chips { list-style: none; padding: 0; margin: 0 0 var(--flow); display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chips li, .chips a, .chip {
  display: inline-block;
  padding: .5em 1.05em;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper);
  font-size: 1.07rem; line-height: 1.3; color: var(--ink); text-decoration: none;
}
.chips li:has(> a) { padding: 0; border: 0; background: none; }
.chips a:hover { border-color: var(--terracotta); color: var(--terracotta); }

/* Pathway rows (Who I Help page) */
.pathway-row { display: grid; grid-template-columns: minmax(280px, 5fr) 7fr; gap: 0; background: var(--paper); border: 1px solid var(--line); }
.pathway-row + .pathway-row { margin-top: var(--space-5); }
.pathway-row .tile { min-height: 300px; }
.pathway-row__topics { padding: clamp(var(--space-5), 4vw, var(--space-7)); align-self: center; }
.pathway-row__topics h4 { font: 500 .75rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--taupe); margin-bottom: var(--space-4); }

/* Approach pillars (About) */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.pillar { padding: var(--space-6) var(--space-5) 0 0; }
.pillar + .pillar { padding-left: var(--space-5); border-left: 1px solid var(--line); }
.pillar__num { font: var(--w-serif-light) 2.6rem/1 var(--serif); color: var(--terracotta); display: block; margin-bottom: var(--space-4); }
.pillar h3 { font-size: 1.45rem; }
.pillar p { font-size: 1.125rem; color: var(--ink-soft); }

/* Photo gallery (About) */
.gallery { display: grid; grid-template-columns: 1.2fr 1fr 1fr; grid-auto-rows: clamp(200px, 24vw, 340px); gap: var(--space-4); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery > :first-child { grid-row: span 2; }

/* Callout (OAP) */
.callout {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  --pad: clamp(var(--space-6), 4vw, var(--space-7));
  padding: var(--pad);
  padding-left: calc(var(--pad) + 10px);   /* + the 10px colour bar */
}
.callout::before { content: ''; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 10px; background: linear-gradient(to bottom, #6E1F3D, #B5452F, #C8603B); }
.callout h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }

/* Price */
.price { display: flex; align-items: baseline; gap: var(--space-3); margin: var(--space-2) 0 var(--space-5); }
.price strong { font: var(--w-serif-light) clamp(3.4rem, 7vw, 5.5rem)/1 var(--serif); color: var(--plum); }
.price span { color: var(--ink-soft); }

/* Quote list (Resources intro) */
.questions { list-style: none; padding: 0; margin: 0 0 var(--flow); display: grid; gap: var(--space-3); }
.questions li { font: italic var(--w-serif-light) clamp(1.25rem, 2vw, 1.6rem)/1.28 var(--serif); color: var(--plum); padding-left: 22px; border-left: 3px solid #E07F5E; }

/* Resources filter */
.filters { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); }
.filters button {
  font: 500 .88rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  padding: .9em 1.3em; border-radius: 999px; cursor: pointer;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line);
}
.filters button[aria-pressed="true"] { background: var(--plum); border-color: var(--plum); color: #fff; }
.post-card .tag { font: 500 .7rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: .9rem; }
.post-card .soon { margin-top: auto; padding-top: 1.2rem; font: 500 .75rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--taupe); }
.post-card[hidden] { display: none; }

/* CTA band */
.cta { position: relative; padding: var(--section) 0 calc(var(--section) + 12px); background: var(--cta-red); }   /* + the 12px stripe row */
.cta::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: var(--stripes-cta); }
/* The CTA already carries the stripe row, so the footer does not repeat it */
main:has(> .cta:last-child) + .site-footer > .stripe-band { display: none; }
.cta__card {
  width: min(760px, 100% - 40px); margin-inline: auto;
  background: var(--cream);
  padding: clamp(var(--space-6), 5vw, var(--space-8)) clamp(var(--space-5), 5vw, var(--space-8));
  text-align: center;
}
.cta__card p { color: var(--ink-soft); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: var(--split-gap); align-items: start; }
.contact-card { background: var(--paper); border: 1px solid var(--line); padding: var(--space-6); margin-top: var(--space-6); }
.contact-card p { margin: 0; }
.contact-card dl { margin: var(--space-4) 0 0; display: grid; grid-template-columns: auto 1fr; gap: var(--space-2) var(--space-4); font-size: 1.1rem; }
.contact-card dt { font-weight: 500; color: var(--taupe); }
.contact-card dd { margin: 0; }

.form { background: var(--paper); border: 1px solid var(--line); padding: clamp(var(--space-5), 4vw, var(--space-7)); }
.form h2 { font-size: 1.9rem; }
.field { margin-bottom: var(--space-5); }
.field label, .field legend { display: block; font: 500 .86rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: var(--space-2); padding: 0; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--cream); border: 1px solid var(--line); border-radius: 6px;
  padding: var(--space-3) var(--space-4);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--plum); box-shadow: 0 0 0 3px rgba(110, 31, 61, .15); }
.field textarea { min-height: 140px; resize: vertical; }
.field fieldset { border: 0; padding: 0; margin: 0; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.options label {
  display: flex; align-items: center; gap: var(--space-2);
  font: 400 1.12rem/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink);
  padding: var(--space-3) var(--space-4); border: 1px solid var(--line); border-radius: 6px; background: var(--cream); cursor: pointer; margin: 0;
}
.options input { width: auto; accent-color: var(--plum); }
.options label:has(input:checked) { border-color: var(--plum); background: #F6E6E6; }
.form__note { font-size: 1.04rem; color: var(--ink-soft); }
.form__status { margin-top: var(--space-4); padding: var(--space-3) var(--space-4); background: var(--cream-2); border-left: 4px solid var(--plum); font-size: 1.07rem; }
.form__status[hidden] { display: none; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { background: var(--cream-2); color: var(--ink-soft); font-size: 1.1rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: var(--space-7); padding: var(--section) 0 var(--space-7); }
.site-footer__brand img { width: 170px; margin-bottom: var(--space-5); }
.site-footer__brand strong { color: var(--ink); font-weight: 500; }
.site-footer h2 { font: 500 .75rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--taupe); margin-bottom: var(--space-4); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.site-footer__nav a { color: var(--ink); text-decoration: none; }
.site-footer__nav a:hover { color: var(--terracotta); }
.site-footer__cta h2 { font: var(--w-serif) 1.6rem/1.2 var(--serif); letter-spacing: 0; text-transform: none; color: var(--ink); margin-bottom: var(--space-3); }
/* Title, text and button read as one call to action, with the same *visible* step between
   each (~24px, measured on the rendered ink). The text needs 4px more below than the title
   does, because the button has no line spacing of its own to add to the gap. */
.site-footer__cta p { margin-bottom: 20px; line-height: 1.5; }
.site-footer__cta .btn { margin-top: 0; }
.site-footer__bottom { border-top: 1px solid var(--line); padding: var(--space-5) 0 var(--space-6); display: flex; justify-content: space-between; gap: var(--space-5); font-size: .98rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__crisis { text-align: center; margin: 0 auto; padding: 0 0 var(--space-5); font-size: 1rem; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1000px) {
  .pathways { grid-template-columns: repeat(2, 1fr); }
  .badges { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar:nth-child(3) { padding-left: 0; border-left: 0; }
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  /* Mobile: the bar is fixed at the top from the start; it slides away while scrolling
     down and comes back on any scroll up (main.js toggles .is-hidden).
     The home hero is a sideways piano with one octave. */
  .site-header { position: fixed; top: 0; left: 0; right: 0; transition: top .35s var(--ease); }
  .site-header.is-hidden { top: calc(-1 * var(--header-h) - 4px); }
  body:not(.home) { padding-top: var(--header-h); }   /* the space the bar used to take in the flow */
  /* Home: the menu icon is there from the start; the name joins it once the piano scrolls */
  .home .site-header:not(.is-in) .menu-toggle { opacity: 1; transform: none; pointer-events: auto; }
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas: "brand" "high";
    height: 100svh; min-height: 620px;
  }
  .hero__brand { grid-area: brand; padding: calc(var(--header-h) + 12px) 24px 40px; }   /* clear of the menu bar */
  .hero__stripes--left { display: none; }
  .hero__stripes--right { grid-area: high; }
  .hero__logo { width: 132px; margin-bottom: 1.3rem; }
  .hero__credentials { font-size: 1rem; margin: 0; }
  .hero__place { margin-top: 1rem; }
  .hero__place span { margin-top: .45em; }
  .hero__scroll { display: none; }
  .hero__stripes { flex-direction: column; height: auto; }
  .hero__stripes .stripe { flex: 1 1 0; height: auto; transform: translateX(-100%); }
  /* Dragging a finger over the keys plays them (glissando) instead of scrolling;
     the page still scrolls from the header and the logo area. */
  .hero__stripes { touch-action: none; }
  .hero.is-settled .hero__stripes .stripe { transition: transform .12s ease-out; }
  .hero.is-settled .hero__stripes .stripe.is-pressed { transform: translateX(6px); }
  .hero__key {
    left: 0; margin-left: 0;
    top: calc(var(--i) * 100% / var(--n) - 100% / var(--n) * .28);
    width: 52%;
    height: calc(100% / var(--n) * .56);
    border-radius: 0 4px 4px 0;
    background: linear-gradient(to right, #2B2022, #3A2C2E 92%, #4A3A3C);
    transform: translateX(-100%);
  }
  .hero.is-settled .hero__key.is-pressed { transform: translateX(4px); }

  .split, .feature__grid, .contact-grid { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  /* Text + photo: the photo moves up to sit right under the title (eyebrow/breadcrumb + heading).
     The text column dissolves into the stack so its pieces can be ordered around the photo. */
  .split:has(> .photo) { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .split:has(> .photo) > :not(.photo) { display: contents; }
  .split:has(> .photo) > :not(.photo) > * { order: 3; }
  .split:has(> .photo) > :not(.photo) > :is(.breadcrumb, .eyebrow, h1, h2) { order: 1; }
  .split:has(> .photo) > .photo { order: 2; margin-bottom: calc(var(--flow) + 12px); }
  .split:has(> .photo) .eyebrow { align-self: flex-start; }
  .split:has(> .photo) > .photo--fill { min-height: 0; }
  .split:has(> .photo) > .photo--fill img { position: relative; aspect-ratio: 4 / 3; height: auto; }
  .pathway-row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery > :first-child { grid-row: auto; grid-column: span 2; }
}

@media (max-width: 640px) {
  body { font-size: 1.125rem; }
  .container, .container--narrow { width: calc(100% - 32px); }
  .site-header__brand { padding: 0 12px 0 16px; }
  .site-header__name { width: 150px; }
  .menu-toggle__label { display: none; }
  .pathways, .badges, .pillars, .cards--3, .cards--2, .checklist, .options, .site-footer__grid { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding-left: 0; border-left: 0; }
  .tile { min-height: 240px; }
  .site-footer__bottom { flex-direction: column; gap: var(--space-1); }
  /* footer: logo centred, every text left-aligned */
  .site-footer__brand { text-align: center; }
  .site-footer__brand img { margin-inline: auto; }
  .site-footer__crisis { text-align: left; }
  .photo--framed { margin: 0 12px 12px 0; }
  .photo--framed::before { inset: 12px -12px -12px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .stripe__fill, .hero__stripes .stripe, .reveal, .card { transition: none !important; }
  .hero__stripes .stripe { transform: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__scroll::after { animation: none; }
  .hero__key { transform: none !important; transition: none; }
}
