/* ==========================================================================
   CUSP — Creative Umbrella Speech Pathology
   v3 design system — white + the two CUSP-logo purples, applied with the
   editorial discipline of the reference site (big light headings, wide-tracked
   eyebrows, pill buttons, full-bleed alternating bands).
   Accessibility first: AA contrast, visible focus, reduced-motion, big targets.
   Type stays Atkinson Hyperlegible throughout for the ABI/disability audience.
   ========================================================================== */

:root {
  /* --- core palette (sampled from the CUSP logo) --- */
  --white:        #ffffff;
  --paper:        #ffffff;
  --cream:        #f7f4fa;       /* barely-there warm white for subtle bands */
  --lilac-soft:   #efe9f5;       /* soft lilac band background */
  --lilac:        #ab99bf;       /* logo LIGHT purple — decorative only */
  --plum:         #7b679c;       /* logo DEEP purple — accent */
  --plum-mid:     #5d4385;       /* eyebrows / links (8:1 on white) */
  --plum-ink:     #43356a;       /* headings + button fills (10:1 on white) */
  --plum-deep:    #342751;       /* hover */
  --ink:          #2a2140;       /* body text (~13:1) */
  --ink-soft:     #4a4060;       /* secondary text (~9:1) */
  --line:         #e3dcec;       /* soft lilac hairline */
  --focus:        #f5b700;       /* high-vis amber focus ring */

  --shadow:       0 1px 2px rgba(52,39,81,.04), 0 10px 30px rgba(52,39,81,.06);
  --shadow-lift:  0 2px 6px rgba(52,39,81,.08), 0 18px 40px rgba(52,39,81,.10);
  --radius:       14px;
  --pill:         999px;
  --maxw:         1120px;
  --measure:      62ch;
  --ff:           "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  /* legacy aliases kept so older class refs still resolve */
  --copper: var(--plum-mid); --copper-deep: var(--plum-ink); --sage: var(--plum);
  --sage-soft: var(--lilac-soft); --cream-deep: var(--lilac-soft); --ff-body: var(--ff);
  --ff-serif: var(--ff); --ff-sans: var(--ff);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ff);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 19px;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--ff);
  font-weight: 400;              /* big but LIGHT — the key editorial move */
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: var(--plum-ink);
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; font-weight: 700; }

p { margin: 0 0 1.1em; color: var(--ink-soft); max-width: var(--measure); }
p.lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); color: var(--ink); max-width: 58ch; line-height: 1.6; }

a { color: var(--plum-mid); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--plum-ink); text-decoration-thickness: 2.5px; }

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--plum-mid);
  margin: 0 0 1.1rem;
}

/* ---------- Focus / motion / skip ---------- */
*:focus { outline: none; }
*:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

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

.skip-link {
  position: absolute; left: 12px; top: 12px;
  background: var(--plum-ink); color: #fff;
  padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none;
  transform: translateY(-200%); transition: transform .15s ease; z-index: 200;
}
.skip-link:focus { transform: translateY(0); color: #fff; }

img { max-width: 100%; height: auto; display: block; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 780px; }

/* ---------- Buttons (pill) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--ff); font-weight: 700; font-size: 1.02rem;
  padding: .85em 1.8em; min-height: 52px;
  border-radius: var(--pill); border: 2px solid transparent; cursor: pointer;
  text-decoration: none; line-height: 1.1;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--plum-ink); color: #fff; border-color: var(--plum-ink); }
.btn-primary:hover { background: var(--plum-deep); border-color: var(--plum-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--plum-ink); border-color: var(--plum-ink); }
.btn-ghost:hover { background: var(--plum-ink); color: #fff; }
.btn-group { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 16px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 50px; width: auto; display: block; transition: opacity .25s ease; }
@media (max-width: 860px){ .brand-logo { height: 42px; } }

/* home: nav logo hidden until you scroll past the big hero logo */
.site-header[data-herologo]:not(.scrolled) .brand-logo { opacity: 0; pointer-events: none; }

.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-size: 1.02rem; font-weight: 700; text-decoration: none; padding: 8px 2px; }
.nav-links a:hover { color: var(--plum-ink); text-decoration: underline; text-underline-offset: 5px; }
.nav-links a.active { color: var(--plum-ink); text-decoration: underline; text-decoration-thickness: 2.5px; text-underline-offset: 5px; }
.nav-links .btn { color: #fff; text-decoration: none; min-height: 44px; padding: .55em 1.3em; }
.nav-links .btn:hover { text-decoration: none; color: #fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--plum-ink); margin: 6px 0; transition: .2s; }

/* ---------- Sections & full-bleed bands ---------- */
section { padding: clamp(56px, 8vw, 110px) 0; }
.section-head { max-width: var(--measure); margin: 0 auto 52px; }
.section-head.center { text-align: center; }
.bg-paper { background: var(--paper); }
.bg-cream { background: var(--cream); }
.bg-lilac { background: var(--lilac-soft); }

/* reverse (deep plum) band */
.band-plum { background: var(--plum-ink); color: #efe9f6; }
.band-plum h1, .band-plum h2, .band-plum h3, .band-plum h4 { color: #fff; }
.band-plum p { color: #d9cfe9; }
.band-plum .eyebrow { color: var(--lilac); }
.band-plum a { color: #fff; }
.band-plum .btn-ghost { color: #fff; border-color: #fff; }
.band-plum .btn-ghost:hover { background: #fff; color: var(--plum-ink); }

.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-s { margin-top: 18px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: 48px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(64px, 9vw, 130px) 0 clamp(48px, 7vw, 90px); }
.hero-lead .wrap { max-width: 880px; }
.hero h1 { max-width: 18ch; }

/* big centred logo hero (home) that fades as you scroll */
.hero-logo { text-align: center; padding: clamp(70px, 12vw, 150px) 0 clamp(40px, 6vw, 80px); }
.hero-logo-mark {
  width: min(440px, 76vw); height: auto; margin: 0 auto 28px;
  transition: opacity .3s ease, transform .3s ease;
  will-change: opacity, transform;
}
.hero-logo .eyebrow { margin-top: 8px; }
.hero-logo h1 { max-width: 20ch; margin-inline: auto; }
.hero-logo p { margin-inline: auto; }

/* ---------- Philosophy pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 12px; }
.pillar { text-align: center; padding: 8px; }
.pillar .pillar-mark {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; background: var(--lilac-soft); color: var(--plum-ink);
}
.pillar h3 { color: var(--plum-ink); margin-bottom: .3em; }
.pillar p { margin: 0 auto; max-width: 34ch; color: var(--ink-soft); }
@media (max-width: 760px){ .pillars { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Service cards (programs / "how we help") ---------- */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.service-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 30px; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--lilac); }
.service-card h3 { color: var(--plum-ink); margin-bottom: .35em; }
.service-card p { margin: 0 0 1.3em; }
.service-card .learn { margin-top: auto; align-self: flex-start; font-weight: 700; text-decoration: none; color: var(--plum-mid); }
.service-card .learn span { display: inline-block; transition: transform .15s ease; }
.service-card:hover .learn { color: var(--plum-ink); }
.service-card:hover .learn span { transform: translateX(4px); }
.service-logo { width: 64px; height: 64px; object-fit: contain; object-position: left center; margin-bottom: 14px; }
.program-logo { width: 88px; height: 88px; object-fit: contain; object-position: left center; margin-bottom: 14px; display: block; }

/* ---------- Cards (contact tiles) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card .ico { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px; display: grid; place-items: center; background: var(--lilac-soft); color: var(--plum-ink); }
.card h3 { margin-bottom: .3em; font-size: 1.2rem; }
.card p { margin: 0; }

/* ---------- Tag / eyebrow chip ---------- */
.tag { display: inline-block; background: var(--lilac-soft); color: var(--plum-ink); font-size: .85rem; font-weight: 700; padding: 6px 14px; border-radius: var(--pill); letter-spacing: .02em; }

/* ---------- Concerns / who-we-support ---------- */
.concerns { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.concerns li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--pill); padding: 11px 20px; font-weight: 700; font-size: 1rem; color: var(--ink); }

/* ---------- Pull quote ---------- */
.pullquote { margin: 0 auto; max-width: 22ch; text-align: center; font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 400; line-height: 1.25; font-style: italic; color: var(--plum-ink); }
.band-plum .pullquote { color: #fff; }
.pullquote::before { content: "“"; } .pullquote::after { content: "”"; }

/* ---------- Two-column split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .panel { display: none; }
@media (max-width: 860px){ .split { grid-template-columns: 1fr; gap: 36px; } .program .split > .video { order: 2; } }

/* ---------- Program detail (group page) ---------- */
.program { padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line); }
.program:first-of-type { border-top: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 4px; }
.meta span { background: var(--paper); border: 1px solid var(--line); border-radius: var(--pill); padding: 8px 15px; font-size: .88rem; color: var(--ink-soft); }

/* ---------- Portrait / video ---------- */
.portrait { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--lilac-soft); }
.facilitator { margin-bottom: 56px; }
.facilitator:last-of-type { margin-bottom: 0; }
@media (min-width: 861px){ .facilitator.reverse .portrait { order: 2; } }

.video { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #000; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-frame { max-width: 920px; margin-inline: auto; }
.video-note { text-align: center; font-size: .92rem; color: var(--ink-soft); margin-top: 14px; }

/* ---------- Band / callout ---------- */
.band {
  background: var(--plum-ink); color: #efe9f6; border-radius: var(--radius);
  padding: clamp(40px, 6vw, 72px); text-align: center;
}
.band h2 { color: #fff; } .band p { color: #d9cfe9; max-width: 52ch; margin-inline: auto; }
.band .btn-primary { background: #fff; color: var(--plum-ink); border-color: #fff; }
.band .btn-primary:hover { background: var(--lilac-soft); border-color: var(--lilac-soft); color: var(--plum-ink); }

/* ---------- Apply filter ---------- */
.apply-filter { margin: 8px 0 0; }
.filter-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 0 0 8px; padding: 0; border: 0; }
.filter-options legend { font-weight: 700; font-size: 1.05rem; margin-bottom: 18px; color: var(--ink); padding: 0; }
.filter-opt { position: relative; }
.filter-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.filter-opt label {
  display: block; cursor: pointer; height: 100%;
  background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.filter-opt label strong { display: block; color: var(--plum-ink); font-size: 1.1rem; margin-bottom: 4px; }
.filter-opt label span { color: var(--ink-soft); font-size: .92rem; }
.filter-opt input:hover + label { border-color: var(--lilac); }
.filter-opt input:checked + label { border-color: var(--plum-ink); background: var(--lilac-soft); box-shadow: var(--shadow); }
.filter-opt input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }

.apply-panel { display: none; margin-top: 32px; }
.apply-panel.is-active { display: block; }
.form-embed { background: var(--cream); border: 1px dashed var(--lilac); border-radius: var(--radius); padding: 28px; }
.form-embed iframe { width: 100%; min-height: 820px; border: 0; border-radius: 10px; background: #fff; }

/* ---------- Forms ---------- */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px,4vw,48px); box-shadow: var(--shadow); }
.field { margin-bottom: 22px; }
.field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 8px; color: var(--ink); }
.field .hint { font-weight: 400; color: var(--ink-soft); font-size: .85rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; font-family: var(--ff); font-size: 1rem; color: var(--ink);
  background: var(--cream); border: 1.5px solid var(--line); border-radius: 12px; transition: border .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--plum); box-shadow: 0 0 0 3px rgba(123,103,156,.2); background: var(--paper); }
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { width: auto; margin-top: 5px; }
.req { color: var(--plum-mid); }
fieldset { border: 0; padding: 0; margin: 0 0 22px; }
legend { font-weight: 700; font-size: 1.05rem; margin-bottom: 10px; padding: 0; }
.form-note { font-size: .85rem; color: var(--ink-soft); margin-top: 4px; }
@media (max-width: 640px){ .field-row { grid-template-columns: 1fr; } }

/* ---------- Prose ---------- */
.prose h3 { margin-top: 1.8em; color: var(--plum-ink); } .prose h3:first-child { margin-top: 0; }
.prose p { max-width: var(--measure); }

/* ---------- Footer ---------- */
.site-footer { background: var(--plum-ink); color: #e9e2f3; padding: 64px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.site-footer a { color: #e9e2f3; text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; font-weight: 700; font-size: 1.4rem; letter-spacing: .14em; text-decoration: none; }
.footer-col h4 { color: #fff; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col p, .footer-col a { color: #cdc1e0; font-size: .95rem; display: block; margin-bottom: 8px; }
.footer-col p.muted { color: #a99cc4; font-size: .82rem; margin-top: 14px; }
.acknowledgement { border-left: 2px solid var(--lilac); padding: 4px 0 4px 16px; margin: 0 0 36px; font-size: .92rem; color: #cdc1e0; max-width: 80ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: #a99cc4; }
@media (max-width: 860px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Mobile nav ---------- */
@media (max-width: 860px) {
  body { font-size: 17px; }
  .nav-links {
    position: absolute; top: 78px; left: 0; right: 0; background: var(--paper);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 12px 28px 24px;
    border-bottom: 1px solid var(--line); display: none; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links li a { display: block; padding: 14px 0; }
  .nav-links .btn { margin-top: 8px; }
  .nav-toggle { display: block; }
}


/* ==========================================================================
   v3.1 — refined embellishments (motion + motif). Tasteful, accessible.
   ========================================================================== */

/* scroll reveal — single blocks */
.js-animate .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* scroll reveal — staggered children (grids) */
.js-animate .stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(2){ transition-delay: .08s; }
.stagger.in > *:nth-child(3){ transition-delay: .16s; }
.stagger.in > *:nth-child(4){ transition-delay: .24s; }
.stagger.in > *:nth-child(5){ transition-delay: .32s; }
.stagger.in > *:nth-child(6){ transition-delay: .40s; }
.stagger.in > *:nth-child(7){ transition-delay: .48s; }
.stagger.in > *:nth-child(8){ transition-delay: .56s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* umbrella flourish — original CUSP motif (canopy sheltering three) */
.flourish { display: flex; justify-content: center; margin: 0 0 18px; color: var(--lilac); }
.flourish svg { width: 48px; height: auto; }
.section-head .flourish { justify-content: flex-start; }
.section-head.center .flourish { justify-content: center; }

/* elegant hairline divider */
.rule { height: 2px; width: 88px; border: 0; margin: 0 auto; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--lilac), transparent); }

/* soft glow behind the hero logo */
.hero-logo { position: relative; }
.hero-logo::before {
  content: ""; position: absolute; left: 50%; top: 8%; width: min(620px, 90%); height: 60%;
  transform: translateX(-50%); pointer-events: none; z-index: 0;
  background: radial-gradient(closest-side, rgba(171,153,191,.20), transparent 72%);
}
.hero-logo .wrap { position: relative; z-index: 1; }

/* refined link underline (body links) */
a.ulink { position: relative; text-decoration: none; }
a.ulink::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: currentColor; transition: right .25s ease; }
a.ulink:hover::after { right: 0; }

/* card gets a subtle top accent on hover */
.service-card { position: relative; overflow: hidden; }
.service-card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--plum), var(--lilac)); transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease; }
.service-card:hover::before { transform: scaleX(1); }

/* steps (how it works) */
.steps { counter-reset: step; display: grid; gap: 22px; max-width: 760px; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 22px; align-items: start; }
.step .num { counter-increment: step; width: 56px; height: 56px; border-radius: 50%;
  background: var(--lilac-soft); color: var(--plum-ink); display: grid; place-items: center;
  font-size: 1.3rem; font-weight: 700; }
.step .num::before { content: counter(step); }
.step h3 { margin: .15em 0 .25em; }
.step p { margin: 0; }

/* feature list with umbrella ticks */
.featurelist { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; max-width: 640px; }
.featurelist li { position: relative; padding-left: 34px; color: var(--ink); }
.featurelist li::before { content: ""; position: absolute; left: 0; top: 6px; width: 20px; height: 12px;
  border: 0 solid var(--plum); border-left-width: 2px; border-bottom-width: 2px; transform: rotate(-45deg);
  border-bottom-left-radius: 2px; }

@media (prefers-reduced-motion: reduce) {
  a.ulink::after, .service-card::before { transition: none; }
}


/* ==========================================================================
   v3.2 — media: full-bleed image bands, editorial frames, gallery
   ========================================================================== */

/* full-bleed image band with plum overlay + centred text */
.imgband { position: relative; isolation: isolate; color: #fff; text-align: center;
  padding: clamp(96px, 16vw, 210px) 0; background-size: cover; background-position: center; }
.imgband::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(38,27,64,.50), rgba(52,39,81,.80)); }
.imgband h1, .imgband h2 { color: #fff; } .imgband p { color: #efe9f6; max-width: 56ch; margin-inline: auto; }
.imgband .eyebrow { color: #d9cce8; }

/* editorial framed image — soft lilac block offset behind */
.framed { position: relative; }
.framed img { position: relative; z-index: 1; width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lift); display: block; }
.framed::before { content: ""; position: absolute; z-index: 0; inset: 20px -20px -20px 20px; border-radius: var(--radius); background: var(--lilac-soft); }
.framed.alt::before { inset: 20px 20px -20px -20px; background: var(--lilac); opacity: .45; }
@media (max-width: 860px){ .framed::before, .framed.alt::before { inset: 12px -12px -12px 12px; } }
.figure-cap { margin-top: 14px; font-size: .88rem; color: var(--ink-soft); text-align: center; }

/* tasteful photo gallery — gentle zoom on hover */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery .g-item { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4/3; box-shadow: var(--shadow); }
.gallery .g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.gallery .g-item:hover img { transform: scale(1.06); }
.gallery .g-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(52,39,81,.38)); opacity: 0; transition: opacity .3s ease; }
.gallery .g-item:hover::after { opacity: 1; }
.gallery.feature .g-item:first-child { grid-row: span 2; aspect-ratio: auto; }
/* two-photo gallery — tidy, centred pair instead of the 3-up feature grid */
.gallery.pair { grid-template-columns: repeat(2, 1fr); max-width: 860px; margin-inline: auto; }
/* June review: three equal landscape tiles (replaces the portrait-feature layout on the home gallery) */
.gallery.equal { grid-template-columns: repeat(3, 1fr); }
.gallery.equal .g-item { aspect-ratio: 4 / 3; }
@media (max-width: 760px){ .gallery, .gallery.feature { grid-template-columns: 1fr 1fr; }
  .gallery.feature .g-item:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 16/9; } }
@media (max-width: 760px){ .gallery.equal { grid-template-columns: 1fr; } }

/* inline hero photo */
.hero-photo { width: 100%; max-width: 1000px; margin: 30px auto 0; border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow-lift); display: block; }

.imgband .btn-primary { background:#fff; color:var(--plum-ink); border-color:#fff; }
.imgband .btn-primary:hover { background:var(--lilac-soft); border-color:var(--lilac-soft); color:var(--plum-ink); }
.imgband .btn-ghost { color:#fff; border-color:#fff; }
.imgband .btn-ghost:hover { background:#fff; color:var(--plum-ink); }


/* ---- Instagram feed section ---- */
.ig-embed { max-width: 960px; margin: 0 auto; }
.ig-embed iframe { width: 100%; border: 0; }
.ig-placeholder { text-align: center; background: var(--cream); border: 1px dashed var(--lilac);
  border-radius: var(--radius); padding: clamp(32px,5vw,56px); }
.ig-placeholder .ig-mark { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 18px;
  display: grid; place-items: center; background: var(--lilac-soft); color: var(--plum-ink); }
.ig-placeholder p { margin: 0 auto 18px; max-width: 48ch; }

/* Instagram follow CTA (shown until a live feed embed is added) */
.ig-follow { text-align: center; background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(32px,5vw,56px); box-shadow: var(--shadow); }
.ig-follow .ig-mark { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 18px;
  display: grid; place-items: center; background: var(--lilac-soft); color: var(--plum-ink); }
.ig-follow p { margin: 0 auto 22px; max-width: 46ch; color: var(--ink-soft); }

/* Intro video — "coming soon" poster treatment (no dead player) */
.video-coming { display: flex; align-items: flex-end; justify-content: center;
  background-size: cover; background-position: center; margin: 0; }
.video-coming::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(52,39,81,.04) 40%, rgba(52,39,81,.42)); }
.video-soon { position: relative; z-index: 1; margin-bottom: 22px;
  background: rgba(255,255,255,.94); color: var(--plum-ink); font-weight: 700;
  font-size: .82rem; letter-spacing: .09em; text-transform: uppercase;
  padding: 9px 18px; border-radius: var(--pill); box-shadow: var(--shadow); }


/* ==========================================================================
   v3.4 — Rebecca's June review: hero tint, portrait cap, support list, referral form
   ========================================================================== */

/* 1. softer hero band — keep the logo legible on the lilac wash */
.hero-logo.bg-lilac { background: var(--lilac-soft); }
.hero-logo.bg-lilac::before { background: radial-gradient(closest-side, rgba(255,255,255,.55), transparent 72%); }

/* 3. one-to-one portrait — lock a square crop so the headshot never stretches */
.portrait-cap img { aspect-ratio: 1 / 1; object-fit: cover; object-position: center 22%; }

/* 3b. on phones — cap the size and keep it tidy */
@media (max-width: 860px){
  .portrait-cap { max-width: 360px; margin-inline: auto !important; }
  .portrait-cap img { aspect-ratio: 4 / 3; object-fit: cover; object-position: center 22%; }
}

/* 5. "Who CUSP is for" — restructured umbrella categories + closing line */
.support-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; max-width: 760px; }
.support-list li { position: relative; padding: 16px 20px 16px 52px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); font-weight: 700; color: var(--ink);
  box-shadow: var(--shadow); }
.support-list li::before { content: ""; position: absolute; left: 20px; top: 22px; width: 18px; height: 10px;
  border-left: 2px solid var(--plum); border-bottom: 2px solid var(--plum); transform: rotate(-45deg);
  border-bottom-left-radius: 2px; }
.support-closing { max-width: 62ch; margin: 24px 0 0; color: var(--ink-soft); }

/* referral form — pathway picker + conditional scope blocks */
.refer-intro { margin: 0 0 8px; }
.pathway-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 4px; }
@media (max-width: 560px){ .pathway-grid { grid-template-columns: 1fr; } }
.pathway-opt { position: relative; }
.pathway-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pathway-opt label { display: block; cursor: pointer; height: 100%; background: var(--paper);
  border: 2px solid var(--line); border-radius: var(--radius); padding: 18px 20px; transition: border-color .2s, box-shadow .2s; }
.pathway-opt label strong { display: block; color: var(--plum-ink); font-size: 1.08rem; }
.pathway-opt label span { display: block; color: var(--ink-soft); font-weight: 400; font-size: .9rem; margin-top: 4px; }
.pathway-opt input:checked + label { border-color: var(--plum); box-shadow: 0 0 0 3px rgba(123,103,156,.16); }
.pathway-opt input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.scope-block[hidden] { display: none; }
.scope-block { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 22px; }

/* ==========================================================================
   v3.5 — design polish pass (2026-06-12)
   Hero rebalance, micro-interaction depth, editorial type details.
   No layout or content changes — same design language, finer finish.
   ========================================================================== */

/* hero: smaller logo, wider heading measure — headline sits in two lines, not three */
.hero-logo { padding-top: clamp(56px, 9vw, 110px); }
.hero-logo-mark { width: min(330px, 62vw); margin-bottom: 22px; }
.hero-logo h1 { max-width: 24ch; }

/* brand-tinted text selection */
::selection { background: var(--plum-mid); color: #fff; }

/* anchor targets (#apply etc.) clear the sticky header */
[id] { scroll-margin-top: 96px; }

/* paragraphs avoid typographic orphans where supported */
p { text-wrap: pretty; }

/* buttons: soft plum depth + a real press state */
.btn-primary { box-shadow: 0 2px 6px rgba(52,39,81,.16), 0 10px 24px rgba(52,39,81,.14); }
.btn-primary:hover { box-shadow: 0 4px 10px rgba(52,39,81,.2), 0 16px 32px rgba(52,39,81,.18); }
.btn-ghost:hover { box-shadow: var(--shadow); }
.btn:active { transform: translateY(0) scale(.985); }

/* header gains a whisper of shadow once the page is scrolled (home) */
.site-header { transition: box-shadow .25s ease; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(52,39,81,.07); }

/* framed offset blocks: a hint of handcraft */
.framed::before { transform: rotate(-1.1deg); }
.framed.alt::before { transform: rotate(1.1deg); }
@media (prefers-reduced-motion: reduce){ .framed::before, .framed.alt::before { transform: none; } }

.pillar .pillar-mark {
  background: linear-gradient(150deg, #fff 0%, var(--lilac-soft) 70%);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}

/* ==========================================================================
   Testimonials — handwritten notes in a masonry grid + click-to-enlarge
   ========================================================================== */
.tgrid { column-width: 300px; column-gap: 20px; max-width: 1080px; margin-inline: auto; }
.tcard { display: block; width: 100%; padding: 8px; margin: 0 0 20px; border: 1px solid var(--line);
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  cursor: zoom-in; break-inside: avoid; -webkit-column-break-inside: avoid;
  transition: transform .3s ease, box-shadow .3s ease; }
.tcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.tcard:focus-visible { outline: none; transform: translateY(-3px); box-shadow: var(--shadow-lift), 0 0 0 3px var(--lilac); }
.tcard img { display: block; width: 100%; height: auto; border-radius: 8px; }

.lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 4vmin; background: rgba(38,27,64,.88); animation: lbfade .2s ease; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 10px; box-shadow: 0 24px 70px rgba(0,0,0,.45); background: #fff; }
.lb-close { position: absolute; top: 16px; right: 20px; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.16); color: #fff; font-size: 30px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .2s ease; }
.lb-close:hover, .lb-close:focus-visible { background: rgba(255,255,255,.30); outline: none; }
@keyframes lbfade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce){ .lightbox { animation: none; } .tcard { transition: none; } }

/* ==========================================================================
   Wall of words — community handwriting on a purple band (under the gallery)
   ========================================================================== */
.wall { background: #4a2f7a; }
.wall .eyebrow { color: #f3a892; }
.wall h2 { color: #fff; }
.wall-grid { column-width: 300px; column-gap: 34px; max-width: 1040px; margin: 4px auto 0; }
.wall-item { break-inside: avoid; -webkit-column-break-inside: avoid; margin: 0 0 30px; }
.wall-item img { width: 100%; height: auto; display: block; }
.wall-item:nth-child(4n+1) img { transform: rotate(-1.4deg); }
.wall-item:nth-child(4n+2) img { transform: rotate(1deg); }
.wall-item:nth-child(4n+3) img { transform: rotate(-0.6deg); }
.wall-item:nth-child(4n)   img { transform: rotate(1.6deg); }
@media (prefers-reduced-motion: reduce){ .wall-item img { transform: none !important; } }
