/* Kinspire Therapy — site styles (light) */

@font-face { font-family: "Petrona"; src: url("fonts/petrona.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Karla"; src: url("fonts/karla.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  /* brand */
  --navy: #2f4159;
  --navy-deep: #26364b;
  --sage: #afbfb9;
  --rose: #d09ba1;
  --clay: #906851;
  --clay-deep: #6e4e3c;
  --peach: #ffd2bd;
  --mint: #cdece2;
  --charcoal: #3f3f3f;

  /* light grounds, tinted from the brand colors */
  --mist: #f5f9f7;
  --mint-soft: #e4f4ee;
  --peach-soft: #fff0e8;
  --rose-soft: #f6e6e7;
  --sage-soft: #e6eeeb;
  --white: #ffffff;

  --ink: #1f2a3a;
  --ink-soft: #4a5566;
  --on-dark: #f4f7f5;
  --on-dark-soft: #d6e1ea;
  --rule: rgba(47, 65, 89, 0.16);

  --display: "Petrona", Georgia, serif;
  --body: "Karla", system-ui, sans-serif;

  --gutter: clamp(16px, 5vw, 72px);
  --max: 1280px;
  --radius: 28px;
  --tight: clamp(1rem, 3vw, 2rem);
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 3rem;
  --space-6: clamp(2.75rem, 5vw, 4.5rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-color: var(--sage) var(--mist); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.1875rem);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.12; letter-spacing: -0.01em; margin: 0; text-wrap: balance; color: var(--navy); }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 1em; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
::selection { background: var(--peach); color: var(--ink); }
:focus-visible { outline: 3px solid var(--clay-deep); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: var(--on-dark); padding: 0.75rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: var(--space-6) 0; }

/* ---------- Grounds ---------- */
.g-mist  { background: var(--mist); }
.g-white { background: var(--white); }
.g-mint  { background: var(--mint-soft); }
.g-peach { background: var(--peach-soft); }
.g-rose  { background: var(--rose-soft); }
.g-sage  { background: var(--sage-soft); }

/* ---------- Header ---------- */
.site-header { padding: 0.85rem 0; background: var(--mist); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--charcoal); }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.25rem); font-size: 1rem; }
.nav a { text-decoration: none; padding: 0.5rem 0; position: relative; color: var(--navy); }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0.2rem; height: 2px; border-radius: 2px; background: var(--clay); transition: right 0.35s var(--ease-out); }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav .pill { padding: 0.7rem 1.25rem; color: var(--on-dark); }
.nav .pill::after { display: none; }

/* ---------- Actions ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 48px; padding: 0.95rem 1.6rem;
  border-radius: 999px; font-weight: 600; text-decoration: none; line-height: 1.2;
  background: var(--navy); color: var(--on-dark);
  box-shadow: 0 6px 18px -8px rgba(47, 65, 89, 0.55);
  transition: background-color 0.25s, transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.pill:hover { background: var(--navy-deep); transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(47, 65, 89, 0.6); }
.pill:active { transform: translateY(0); }
.pill svg { width: 18px; height: 18px; flex: none; }
.assure { margin-top: 1rem; font-size: 0.95rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; }
.assure span { display: inline-flex; align-items: center; gap: 0.4rem; }
.assure svg { width: 16px; height: 16px; color: var(--clay-deep); flex: none; }
.text-link { font-weight: 600; color: var(--clay-deep); text-decoration: underline; }
.arrow { display: inline-block; width: 0.9em; height: 0.9em; vertical-align: -0.1em; margin-left: 0.3em; transition: transform 0.3s var(--ease-out); }
a:hover > .arrow { transform: translateX(3px); }

/* ---------- The act-by ages: the only accent text ---------- */
.age { color: var(--clay-deep); font-weight: 700; white-space: nowrap; }

/* ---------- Photos ---------- */
.photo { margin: 0; position: relative; }
.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.photo figcaption { font-size: 0.9rem; margin-top: 0.6rem; color: var(--ink-soft); }

/* ---------- Home hero: full-bleed photo, copy over a soft left-side wash ---------- */
.hero { position: relative; padding: 0; min-height: clamp(460px, 64vh, 640px); display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(245, 249, 247, 0.95) 0%, rgba(245, 249, 247, 0.88) 30%, rgba(245, 249, 247, 0.55) 48%, rgba(245, 249, 247, 0) 64%);
}
.hero .wrap { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.hero-copy { max-width: 34rem; }
.hero h1 { font-size: clamp(2.4rem, 3.4vw + 1rem, 4rem); line-height: 1.05; letter-spacing: -0.02em; }
.hero .lede { margin-top: var(--space-3); color: var(--ink); max-width: 34ch; font-size: 1.12em; }
.hero .actions { margin-top: 1.6rem; }
.hero .assure { color: var(--ink); }

/* ---------- Closing call over a full-bleed photo (same wash as the hero) ---------- */
.close-photo { position: relative; padding: 0; min-height: clamp(380px, 46vh, 500px); display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.close-photo .hero-bg { object-position: 50% 80%; }
.close-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(245, 249, 247, 0.95) 0%, rgba(245, 249, 247, 0.88) 30%, rgba(245, 249, 247, 0.55) 48%, rgba(245, 249, 247, 0) 64%); }
.close-photo .wrap { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.close-photo h2 { font-size: clamp(2.1rem, 2.6vw + 1rem, 3.3rem); }
.close-photo .sub { margin-top: var(--space-2); color: var(--ink); max-width: 34ch; }
.close-photo .actions { margin-top: var(--space-4); }

/* ---------- The worry list (signature) ---------- */
.worries-sec h2 { font-size: clamp(1.9rem, 2vw + 1rem, 2.8rem); }
.worries-sec { padding-top: clamp(2rem, 4vw, 3rem); }
.worries-sec .intro { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.5rem 2rem; margin-bottom: var(--space-3); }
.worries-sec .intro p { color: var(--ink-soft); max-width: 40ch; }
.worries { border-top: 1px solid var(--rule); }
.worry { border-bottom: 1px solid var(--rule); }
.worry summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
  padding: clamp(1.1rem, 2vw, 1.6rem) 0;
  font-family: var(--display); font-size: clamp(1.45rem, 1.6vw + 1rem, 2.4rem); line-height: 1.2; letter-spacing: -0.01em; color: var(--navy);
  transition: color 0.25s;
}
.worry summary::-webkit-details-marker { display: none; }
.worry summary:hover { color: var(--clay-deep); }
.toggle { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; transition: background-color 0.25s, border-color 0.25s; }
.worry[open] .toggle { background: var(--peach); border-color: var(--peach); color: var(--navy); }
.toggle svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease-out); }
.worry[open] .toggle svg { transform: rotate(45deg); }
.answer { padding: 0 0 clamp(1.4rem, 2.5vw, 2rem); max-width: 64ch; font-size: 1.05em; }
.answer p + p { margin-top: 0.75em; }
.answer .more { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.95rem; }
.answer .more a { color: var(--clay-deep); font-weight: 600; }
.worry[open] .answer { animation: unfold 0.5s var(--ease-out); }
@keyframes unfold { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .worry[open] .answer { animation: none; } }
@media (max-width: 640px) { .toggle { width: 36px; height: 36px; } }

/* ---------- First-year milestone timeline ---------- */
.ms-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.5rem 2rem; }
.ms-head h2 { font-size: clamp(1.9rem, 2vw + 1rem, 2.8rem); }
.ms-head p { color: var(--ink-soft); max-width: 46ch; }
.ms { position: relative; height: 520px; margin: var(--space-3) 0 0; }
.ms-track { position: absolute; left: 0; right: 0; top: 50%; height: 0; }
.ms-curve { position: absolute; left: 0; width: 100%; top: -40px; height: 80px; overflow: visible; }
.ms-tick { position: absolute; top: calc(var(--dy, 0px)); left: calc(var(--x) * 100%); width: 1px; height: 14px; margin-top: -7px; background: var(--navy); opacity: 0.35; }
.ms-tick span { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); font-size: 0.8rem; color: var(--ink-soft); }
.ms-list { list-style: none; margin: 0; padding: 0; }
.ms-item { position: absolute; left: calc(var(--x) * 100%); top: calc(50% + var(--dy, 0px)); }
.ms-dot { position: absolute; left: 0; top: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--white); border: 3px solid var(--navy); z-index: 1; }
.ms-item.key .ms-dot { width: 26px; height: 26px; margin: -13px 0 0 -13px; background: var(--peach); border-color: var(--clay-deep); box-shadow: 0 0 0 6px rgba(255, 210, 189, 0.45); }
.ms-tip {
  position: absolute; left: 0; width: 176px; transform: translateX(-50%);
  background: var(--white); border-radius: 16px; padding: 0.55rem 0.8rem 0.7rem; font-size: 0.9rem; line-height: 1.35;
  box-shadow: 0 10px 24px -14px rgba(31, 42, 58, 0.4);
  isolation: isolate;
}
.ms-tip::after { content: ""; position: absolute; left: 50%; width: 14px; height: 14px; background: inherit; transform: translateX(-50%) rotate(45deg); z-index: -1; }
.ms-item.above .ms-tip { bottom: 24px; }
.ms-item.above .ms-tip::after { bottom: -7px; }
.ms-item.below .ms-tip { top: 40px; } /* clears the axis number under the dot */
.ms-item.below .ms-tip::after { top: -7px; }
.ms-item.end .ms-tip { transform: translateX(calc(-100% + 28px)); }
.ms-item.end .ms-tip::after { left: auto; right: 21px; transform: rotate(45deg); }
.ms-item.key .ms-tip { background: var(--peach-soft); outline: 2px solid var(--peach); }
.ms-art { display: block; width: 84px; height: 84px; margin: -0.2rem auto 0; }
.ms-age { font-family: var(--display); font-size: 1.15rem; color: var(--navy); line-height: 1.1; margin-bottom: 0.15rem; }
.ms-item.key .ms-age { color: var(--clay-deep); }
.ms-note { margin-top: var(--space-2); font-size: 0.88rem; color: var(--ink-soft); }
@media (max-width: 1240px) { .ms-tip { width: 156px; font-size: 0.88rem; } }
@media (max-width: 1100px) {
  .ms { height: auto; padding-left: 2.25rem; }
  .ms-track { top: 0; bottom: 0; left: 0.7rem; right: auto; width: 6px; height: auto; margin: 0; border-radius: 3px; background: linear-gradient(180deg, var(--mint), var(--peach) 30%, var(--peach) 55%, var(--sage)); }
  .ms-curve { display: none; }
  .ms-item { --dy: 0px; }
  .ms-tick { display: none; }
  .ms-list { display: grid; gap: 0.9rem; max-width: 640px; }
  .ms-item { position: relative; left: auto; top: auto; }
  .ms-dot { left: -31px; top: 1.1rem; margin: 0; }
  .ms-item .ms-tip, .ms-item.above .ms-tip, .ms-item.below .ms-tip, .ms-item.end .ms-tip { position: relative; width: auto; transform: none; bottom: auto; top: auto; }
  .ms-item.key .ms-dot { left: -35px; top: calc(1.1rem - 4px); margin: 0; }
  .ms-tip::after { display: none; }
  .ms-item .ms-tip { display: grid; grid-template-columns: 76px 1fr; column-gap: 0.85rem; align-items: center; }
  .ms-art { grid-row: span 2; width: 76px; height: 76px; margin: 0; }
}

/* ---------- Steps ---------- */
.steps h2 { font-size: clamp(1.9rem, 2vw + 1rem, 2.8rem); }
.steps ol { list-style: none; padding: 0; margin: var(--space-4) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); counter-reset: step; }
.steps li { counter-increment: step; background: var(--white); border-radius: var(--radius); padding: clamp(1.4rem, 2.5vw, 2rem); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--peach); color: var(--navy); font-family: var(--display); font-size: 1.6rem; margin-bottom: var(--space-2); }
.steps h3 { font-size: 1.45rem; margin-bottom: 0.5rem; }

/* ---------- Split (person / place) ---------- */
.split .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split.reverse .wrap > :first-child { order: 2; }
.split h2 { font-size: clamp(1.9rem, 2vw + 1rem, 2.8rem); margin-bottom: var(--space-3); }
.split .photo img { aspect-ratio: 4 / 3; }
.split .photo.portrait img { aspect-ratio: 4 / 5; object-position: center 20%; border-radius: 40px 40px 160px 40px; }
.trainings { list-style: none; padding: 0; margin: var(--space-3) 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.trainings li { background: var(--white); border-radius: 999px; padding: 0.35rem 0.9rem; font-size: 0.92rem; color: var(--navy); }
.cert-logos { list-style: none; padding: 0; margin: var(--space-3) 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2rem; }
.cert-logos img { display: block; height: 3.25rem; width: auto; }
.cert-logos img[src*='babymyo'] { height: 4.5rem; }
.svc-logo { display: block; width: 11rem; height: auto; margin-top: 1.25rem; }
.svc-logo-mark { width: 5.5rem; }
.service .head .svc-logo { margin-bottom: 1rem; }

/* ---------- Facts row (insurance / older kids) ---------- */
.facts, section.tight { padding: clamp(1rem, 3vw, 2rem) 0; }
.facts .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); }
.fact { background: var(--white); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.5rem); }
.fact h2 { font-size: clamp(1.6rem, 1.4vw + 1rem, 2.2rem); margin-bottom: var(--space-2); }
.fact ul { padding-left: 1.1em; margin: 0; }
.fact li + li { margin-top: 0.4rem; }
.fact .text-link { display: inline-block; margin-top: var(--space-3); }

/* ---------- Closing call ---------- */
.close .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.close.solo .wrap { grid-template-columns: 1fr; text-align: center; }
.close.solo .assure { justify-content: center; }
.close h2 { font-size: clamp(2.1rem, 2.6vw + 1rem, 3.3rem); max-width: 18ch; }
.close.solo h2 { margin: 0 auto; }
.close p.sub { margin-top: var(--space-2); max-width: 46ch; color: var(--ink-soft); }
.close.solo p.sub { margin-left: auto; margin-right: auto; }
.close .actions { margin-top: var(--space-4); }
.close .photo { justify-self: center; width: min(100%, 420px); }
.close .photo img { aspect-ratio: 1 / 1; border-radius: 50%; }

/* ---------- Page heads (inner pages) ---------- */
.page-head { padding: clamp(1.5rem, 4vw, 3rem) 0 var(--space-5); }
.page-head .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.page-head.text-only .wrap { grid-template-columns: 1fr; }
.page-head h1 { font-size: clamp(2.4rem, 3.2vw + 1rem, 3.9rem); max-width: 16ch; letter-spacing: -0.02em; }
.page-head .lede { margin-top: var(--space-3); max-width: 50ch; color: var(--ink-soft); font-size: 1.12em; }
.page-head .actions { margin-top: var(--space-4); }
.page-head .photo img { aspect-ratio: 4 / 3; border-radius: 40px 160px 40px 40px; }
.jump { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: var(--space-4); padding: 0; list-style: none; }
.jump a { display: inline-block; text-decoration: none; background: var(--white); color: var(--navy); border-radius: 999px; padding: 0.55rem 1rem; font-size: 0.95rem; transition: background-color 0.2s, transform 0.3s var(--ease-out); }
.jump a:hover { background: var(--mint); transform: translateY(-1px); }

/* ---------- Services ---------- */
.service-group h2 { font-size: clamp(1.9rem, 2vw + 1rem, 2.8rem); margin-bottom: var(--space-3); }
.service { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(1rem, 4vw, 4rem); padding: var(--space-4) 0; border-top: 1px solid var(--rule); scroll-margin-top: 1rem; }
.service h3 { font-size: clamp(1.4rem, 1vw + 1rem, 1.85rem); }
.service .body { max-width: 62ch; }
.service .voice { font-family: var(--display); font-size: 1.2rem; line-height: 1.35; margin-bottom: 0.6rem; color: var(--clay-deep); }
.service ul { padding-left: 1.1em; margin: 0.75em 0 0; }
.service li + li { margin-top: 0.4em; }
.band-photo { margin: 0 0 var(--space-4); }
.band-photo img { aspect-ratio: 21 / 8; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); margin-top: var(--space-4); }
.member { background: var(--white); border-radius: var(--radius); padding: clamp(1.4rem, 2.5vw, 2rem); }
.member .photo { width: 140px; }
.member .photo img { aspect-ratio: 1 / 1; border-radius: 50%; object-position: center 20%; }
.member .mark { width: 140px; height: 140px; border-radius: 50%; background: var(--peach-soft); display: grid; place-items: center; }
.member .mark img { width: 64px; }
.member h3 { font-size: 1.5rem; margin-top: var(--space-2); }
.member .role { font-size: 0.95rem; margin-top: 0.15rem; color: var(--ink-soft); }
.member p:not(.role) { margin-top: 0.75rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); }
.contact-grid > div { background: var(--white); border-radius: var(--radius); padding: clamp(1.4rem, 2.5vw, 2rem); }
.contact-grid h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.contact-grid a { font-weight: 600; color: var(--navy); }
.hours { border-collapse: collapse; }
.hours td { padding: 0.15rem 1.25rem 0.15rem 0; }

/* ---------- Legal ---------- */
.legal .wrap { max-width: calc(760px + 2 * var(--gutter)); }
.legal h2 { font-size: 1.5rem; margin: 2em 0 0.5em; }
.legal p, .legal ul { max-width: 70ch; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li + li { margin-top: 0.35em; }

/* ---------- Draft flags (remove before launch) ---------- */
mark.confirm { background: none; color: inherit; outline: 2px dashed var(--clay-deep); outline-offset: 2px; border-radius: 2px; }
mark.confirm::after { content: " confirm"; font-family: var(--body); font-size: 0.7em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.8; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-dark); padding: var(--space-5) 0 var(--space-4); font-size: 0.98rem; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.site-footer h2 { font-family: var(--body); font-size: 0.95rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--mint); }
.site-footer p { color: var(--on-dark-soft); }
.site-footer a { color: var(--on-dark); }
.site-footer .brand { color: var(--on-dark); margin-bottom: var(--space-2); }
.site-footer .fine { grid-column: 1 / -1; border-top: 1px solid rgba(244, 247, 245, 0.18); padding-top: var(--space-3); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.9rem; color: var(--on-dark-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap, .split .wrap, .facts .wrap, .ages .wrap, .close .wrap, .page-head .wrap { grid-template-columns: 1fr; }
  .split.reverse .wrap > :first-child { order: 0; }
  .steps ol, .team, .contact-grid { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; gap: 0.75rem; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap > :first-child { grid-column: 1 / -1; }
  .close .photo { max-width: 320px; }
  .page-head .photo { order: -1; }
}
@media (max-width: 760px) {
  .close-photo { display: block; min-height: 0; }
  .close-photo .hero-bg { position: relative; inset: auto; height: 240px; object-position: 78% 50%; }
  .close-photo::before { display: none; }
  .close-photo .wrap { padding-top: 1.75rem; padding-bottom: 2rem; }
  .hero { display: block; min-height: 0; }
  .hero-bg { position: relative; inset: auto; height: 260px; object-position: 78% 50%; }
  .hero::before { display: none; }
  .hero .wrap { padding-top: 1.75rem; padding-bottom: 2rem; }
}
@media (max-width: 640px) {
    .nav .pill { display: none; }
  .site-header .wrap { row-gap: 0.25rem; }
  .nav { width: 100%; justify-content: space-between; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .band-photo img { aspect-ratio: 16 / 9; }
  .age-row { grid-template-columns: 1fr; }
}

/* ---------- Dennise photo carousel (crossfade) ---------- */
.slides { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 40px 40px 160px 40px; }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; opacity: 0; transition: opacity 1.2s ease; }
.slides img.is-active { opacity: 1; }
.slides img:first-child { position: relative; }

/* ---------- Milestone cartoons: a small motion per milestone on hover / when scrolled into view ---------- */
.ms-tip { transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out); }
.ms-item:hover .ms-tip { box-shadow: 0 16px 30px -16px rgba(31, 42, 58, 0.5); }
.ms-item.above:hover .ms-tip { transform: translateX(-50%) translateY(-4px); }
.ms-item.below:hover .ms-tip { transform: translateX(-50%) translateY(4px); }
.ms-item.end.below:hover .ms-tip { transform: translateX(calc(-100% + 28px)) translateY(4px); }
.ms-art { transform-origin: 50% 85%; }
@keyframes ms-lift  { 0%,100% { transform: none; } 30% { transform: rotate(-6deg) translateY(-3px); } 60% { transform: rotate(-3deg) translateY(-1px); } }
@keyframes ms-rock  { 0%,100% { transform: none; } 25% { transform: rotate(-5deg); } 75% { transform: rotate(5deg); } }
@keyframes ms-push  { 0%,100% { transform: none; } 35%,55% { transform: translateY(-6px) scaleY(1.04); } }
@keyframes ms-roll  { 0%,100% { transform: none; } 40% { transform: rotate(-12deg) translateX(-3px); } 70% { transform: rotate(8deg) translateX(3px); } }
@keyframes ms-bounce{ 0%,100% { transform: none; } 20% { transform: translateY(-7px); } 40% { transform: none; } 60% { transform: translateY(-4px); } 80% { transform: none; } }
@keyframes ms-wobble{ 0%,100% { transform: none; } 20% { transform: rotate(-6deg); } 40% { transform: rotate(5deg); } 60% { transform: rotate(-4deg); } 80% { transform: rotate(2deg); } }
@keyframes ms-breathe { 0%,100% { transform: none; } 25%,75% { transform: scale(1.025, 1.04); } 50% { transform: none; } }
@keyframes ms-spoon  { 0%,100% { transform: none; } 30% { transform: rotate(-4deg) translateY(-2px); } 50% { transform: rotate(-4deg) translateY(-2px) scale(1.03); } 75% { transform: rotate(1deg); } }
@keyframes ms-steps  { 0%,100% { transform: none; } 20% { transform: rotate(-5deg) translateX(-3px); } 45% { transform: rotate(4deg) translateX(3px); } 70% { transform: rotate(-3deg) translateX(6px); } 85% { transform: translateX(4px); } }
@media (prefers-reduced-motion: no-preference) {
  .ms-item:hover .art-ms-0_5, .ms-item.play .art-ms-0_5 { animation: ms-breathe 2s ease-in-out 1; }
  .ms-item:hover .art-ms-2,   .ms-item.play .art-ms-2   { animation: ms-lift 1.1s var(--ease-out) 1; }
  .ms-item:hover .art-ms-3,   .ms-item.play .art-ms-3   { animation: ms-rock 1.2s ease-in-out 1; }
  .ms-item:hover .art-ms-4,   .ms-item.play .art-ms-4   { animation: ms-push 1s var(--ease-out) 1; }
  .ms-item:hover .art-ms-6,   .ms-item.play .art-ms-6   { animation: ms-bounce 1s ease-out 1; }
  .ms-item:hover .art-ms-9,   .ms-item.play .art-ms-9   { animation: ms-wobble 1.2s ease-in-out 1; }
  .ms-item:hover .art-ms-10,  .ms-item.play .art-ms-10  { animation: ms-spoon 1.2s ease-in-out 1; }
  .ms-item:hover .art-ms-12,  .ms-item.play .art-ms-12  { animation: ms-steps 1.4s ease-in-out 1; }
}
@media (max-width: 1100px) {
  .ms-item.above:hover .ms-tip, .ms-item.below:hover .ms-tip, .ms-item.end:hover .ms-tip { transform: none; }
}

/* Section headers sit close to the top edge of these sections */
.worries-sec, .milestones { padding-top: clamp(1.25rem, 2.5vw, 1.75rem); }
/* How it works: header gap above and below = gap under the cards; timeline bottom matches */
.steps { padding: var(--tight) 0; }
.steps ol { margin-top: var(--tight); }
.milestones { padding-bottom: var(--tight); }

/* Trim the font's built-in space above the capitals and below the baseline,
   so section spacing is measured from the visible letters. */
.steps h2 { text-box: trim-both cap alphabetic; }
@supports not (text-box: trim-both cap alphabetic) {
  .steps h2 { line-height: 1; margin-top: -0.14em; margin-bottom: -0.2em; }
}

/* How it works: an arrow chip bridging each step to the next */
.steps ol { --step-gap: clamp(1.75rem, 3vw, 2.5rem); gap: var(--step-gap); }
.steps li { position: relative; }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; z-index: 1;
  top: 50%; right: calc(var(--step-gap) / -2 - 22px); margin-top: -22px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8h10M9 4l4 4-4 4' stroke='%23f4f7f5' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
  box-shadow: 0 0 0 5px var(--peach-soft), 0 8px 18px -8px rgba(31, 42, 58, 0.5);
}
@media (prefers-reduced-motion: no-preference) {
  .steps li:not(:last-child)::after { animation: step-nudge 2.4s ease-in-out infinite; }
  .steps li:nth-child(2)::after { animation-delay: 0.3s; }
}
@keyframes step-nudge { 0%, 70%, 100% { translate: 0 0; } 80% { translate: 4px 0; } 90% { translate: 0 0; } }
@media (max-width: 960px) {
  .steps li:not(:last-child)::after { top: auto; right: auto; left: 50%; bottom: calc(var(--step-gap) / -2 - 22px); margin: 0 0 0 -22px; rotate: 90deg; }
}
@keyframes step-nudge-down { 0%, 70%, 100% { translate: 0 0; } 80% { translate: 0 4px; } 90% { translate: 0 0; } }
@media (max-width: 960px) { .steps li:not(:last-child)::after { animation-name: step-nudge-down; } }

/* Section intros: heading left, note right, both resting on the same baseline line */
.worries-sec .intro h2, .ms-head h2 { text-box: trim-both cap alphabetic; }
.worries-sec .intro, .ms-head { flex-direction: column; align-items: flex-start; gap: 0.85rem; }
.worries-sec .intro p, .ms-head p { max-width: 60ch; }

/* ---------- Older kiddos: insurance card alone on home, photo band on Services ---------- */
.facts.solo .wrap { grid-template-columns: minmax(0, 1fr); }
.facts.solo .fact ul { columns: 3 16rem; column-gap: 2.5rem; }
.facts.solo .fact li { break-inside: avoid; margin: 0 0 0.4rem; }
.older-band::before { background: linear-gradient(90deg, rgba(230, 238, 235, 0.96) 0%, rgba(230, 238, 235, 0.88) 30%, rgba(230, 238, 235, 0.5) 48%, rgba(230, 238, 235, 0) 64%); }
.older-band .hero-bg { object-position: 50% 50%; }
.hero-alt { margin-top: 1.1rem; font-size: 0.98rem; }
.hero-alt a { color: var(--clay-deep); font-weight: 600; }


/* Services: older-kiddos band mirrors the hero (photo left, copy right); the list below sits tight under it */
.older-band .wrap { display: flex; justify-content: flex-end; }
.older-band .hero-copy { max-width: 31rem; }
.older-band::before { background: linear-gradient(270deg, rgba(230, 238, 235, 0.96) 0%, rgba(230, 238, 235, 0.88) 30%, rgba(230, 238, 235, 0.5) 48%, rgba(230, 238, 235, 0) 64%); }
.older-band .hero-bg { object-position: 40% 50%; }
.older-list { padding: var(--tight) 0; }
.conditions { padding: var(--space-6) 0 0; }
.conditions + .close { padding-top: var(--space-5); }
.conditions li { border-color: var(--rule); }
.conditions h2 { font-size: clamp(1.9rem, 2vw + 1rem, 2.8rem); margin-bottom: var(--space-3); }
.conditions ul { list-style: none; padding: 0; margin: 0; columns: 3 15rem; column-gap: clamp(1rem, 4vw, 3rem); }
.conditions li { break-inside: avoid; padding: 0.7rem 0; border-top: 1px solid var(--rule); }
.older-list .service:first-child { border-top: 0; padding-top: 0.5rem; }
@media (max-width: 760px) { .older-band .wrap { display: block; } .older-band .hero-bg { object-position: 22% 50%; } }
.older-list .service:last-child { padding-bottom: 0.5rem; }

/* ---------- Milestone panels: Birth–12 months / 1–8 years ---------- */
.ms-title { display: none; }
.ms-title.is-active { display: inline; }
/* Two timelines side by side; the track slides so they read as one continuous line */
.ms-stage { position: relative; margin-top: var(--space-3); }
.ms-panels { position: relative; clip-path: inset(-80px 3px -80px 3px); transition: height 0.9s cubic-bezier(0.65, 0, 0.35, 1); }
.ms-track-x { display: flex; align-items: flex-start; transition: transform 1.1s cubic-bezier(0.65, 0, 0.35, 1); }
.ms-panel { flex: 0 0 100%; }
.ms-panels:not(.at-0) .ms-panel:first-child .ms-item, .ms-panels.at-0 .ms-panel:last-child .ms-item { pointer-events: none; }
.ms-go {
  position: absolute; top: 200px; z-index: 2; margin-top: -24px;
  width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--navy); color: var(--on-dark);
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 0 0 6px var(--mist), 0 10px 22px -10px rgba(31, 42, 58, 0.6);
  transition: background-color 0.25s, transform 0.3s var(--ease-out), opacity 0.4s;
}
.ms-go:hover { background: var(--navy-deep); transform: scale(1.06); }
.ms-go .arrow { margin: 0; width: 20px; height: 20px; }
.ms-go[hidden] { display: none; }
.ms-next { right: max(calc(var(--gutter) * -1 + 4px), -60px); }
.ms-prev { left: max(calc(var(--gutter) * -1 + 4px), -60px); }
.ms-prev .arrow { transform: rotate(180deg); }
.ms-go-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .ms-track-x, .ms-panels { transition: none; } }
@media (max-width: 1100px) {
  .ms-go { position: relative; top: auto; margin: 1rem 0 0; width: auto; height: auto; border-radius: 999px; padding: 0.85rem 1.25rem; display: inline-flex; gap: 0.5rem; box-shadow: none; font: 600 0.95rem/1 var(--body); }
  .ms-go:hover { transform: none; }
  .ms-go-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}

/* Ages 1–8 cartoons: one motion each, same triggers as the baby timeline */
@keyframes ms-walk  { 0%,100% { transform: none; } 25% { transform: rotate(-4deg) translateX(-2px); } 50% { transform: rotate(3deg) translateX(2px); } 75% { transform: rotate(-2deg); } }
@keyframes ms-kick  { 0%,100% { transform: none; } 35% { transform: rotate(7deg) translateX(3px); } 55% { transform: rotate(-2deg); } }
@keyframes ms-focus { 0%,100% { transform: none; } 40%,60% { transform: scale(1.06); } }
@keyframes ms-hop   { 0%,100% { transform: none; } 20% { transform: translateY(-9px); } 40% { transform: none; } 60% { transform: translateY(-9px); } 80% { transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .ms-item:hover .art-kid-1_5, .ms-item.play .art-kid-1_5 { animation: ms-walk 1.2s ease-in-out 1; }
  .ms-item:hover .art-kid-2,   .ms-item.play .art-kid-2   { animation: ms-kick 1s var(--ease-out) 1; }
  .ms-item:hover .art-kid-3,   .ms-item.play .art-kid-3   { animation: ms-focus 1.1s ease-in-out 1; }
  .ms-item:hover .art-kid-4,   .ms-item.play .art-kid-4   { animation: ms-bounce 1s ease-out 1; }
  .ms-item:hover .art-kid-5,   .ms-item.play .art-kid-5   { animation: ms-hop 1s ease-out 1; }
  .ms-item:hover .art-kid-6,   .ms-item.play .art-kid-6   { animation: ms-rock 1.2s ease-in-out 1; }
  .ms-item:hover .art-kid-8,   .ms-item.play .art-kid-8   { animation: ms-focus 1.1s ease-in-out 1; }
}
@media (min-width: 1101px) { .ms-item.end.above:hover .ms-tip { transform: translateX(calc(-100% + 28px)) translateY(-4px); } }
/* Both timelines show while sliding (one continuous line); the off-screen one fades once the slide lands */
.ms-panel { transition: opacity 0.3s ease; }
.ms-panel:not(.is-active) { opacity: 0; transition-delay: 1.05s; }

/* Full-bleed timeline strip: content stays on the page column, but the slide clips at the screen edge */
html, body { overflow-x: clip; }
.ms-stage {
  --pad: calc((100vw - min(var(--max), 100vw - 2 * var(--gutter))) / 2);
  width: 100vw; margin-left: calc(50% - 50vw);
}
.ms-panels { clip-path: none; overflow-x: clip; overflow-y: visible; }
.ms-panel { padding: 90px var(--pad) 90px; margin: -90px 0; box-sizing: border-box; }
.ms-next { right: max(4px, calc(var(--pad) / 2 - 24px)); }
.ms-prev { left: max(4px, calc(var(--pad) / 2 - 24px)); }
@media (max-width: 1100px) { .ms-stage .ms-go { margin-left: var(--pad); } }
.ms-panels .ms { margin-top: 0; }

/* Logo: the real exported SVG lockups (navy text in the header, off-white in the navy footer) */
.brand .logo { height: 52px; width: auto; display: block; }
@media (max-width: 640px) { .brand .logo { height: 44px; } }

/* ---------- Reflex chart (Services): each reflex is a band that fades out; an age slider shows what should still be there ---------- */
.reflex h2 { font-size: clamp(1.9rem, 2vw + 1rem, 2.8rem); max-width: 22ch; }
.rx-intro { max-width: 62ch; margin: 0.75rem 0 var(--space-4); color: var(--ink-soft); }
.rx { --label: clamp(10rem, 22%, 15rem); --state: 12rem; --rx-on: #f2a98a; --rx-on-ink: var(--navy); }
.rx-control { display: grid; grid-template-columns: var(--label) 1fr var(--state) 36px; align-items: center; gap: 0 1.25rem; margin-bottom: 0.75rem; }
.rx-control label { font: 600 1rem/1.3 var(--body); color: var(--navy); }
.rx-control output { display: block; font: 500 1.6rem/1.2 var(--display); color: var(--clay-deep); }
.rx-control input { width: 100%; accent-color: var(--navy); height: 44px; cursor: pointer; margin: 0; }
.rx-axis, .rx-row summary { display: grid; grid-template-columns: var(--label) 1fr var(--state) 36px; gap: 0 1.25rem; align-items: center; }
.rx-ticks { position: relative; height: 1.4rem; font: 600 0.75rem/1 var(--body); color: var(--ink-soft); }
.rx-tick { position: absolute; left: calc(var(--x) * 100%); transform: translateX(-50%); }
.rx-row { border-top: 1px solid var(--rule); }
.rx-row:last-child { border-bottom: 1px solid var(--rule); }
.rx-row summary { list-style: none; cursor: pointer; padding: 0.9rem 0; }
.rx-row summary::-webkit-details-marker { display: none; }
.rx-name { font: 500 1.2rem/1.2 var(--display); color: var(--ink); }
.rx-nick { display: block; font: 400 0.85rem/1.3 var(--body); color: var(--ink-soft); margin-top: 0.15rem; }
.rx-bar { position: relative; height: 14px; border-radius: 7px; background: rgba(47, 65, 89, 0.06); }
/* brown while present, peach while integrating, mint once it should be integrated (to the end of the axis) */
.rx-fill { --pb: calc((var(--b) - var(--a)) / (1 - var(--a)) * 100%); --pc: calc((var(--c) - var(--a)) / (1 - var(--a)) * 100%);
  position: absolute; top: 0; bottom: 0; left: calc(var(--a) * 100%); right: 0; border-radius: 7px;
  background: linear-gradient(90deg, var(--rx-on) 0%, var(--rx-on) var(--pb), var(--peach) calc(var(--pb) + (var(--pc) - var(--pb)) * 0.4), var(--peach) var(--pc), var(--mint) calc(var(--pc) + 3%), var(--mint) 100%);
  transform-origin: left center; transition: transform 1s var(--ease-out); }
.rx-bar::after { content: ""; position: absolute; top: -10px; bottom: -10px; left: calc(var(--age) * 100%); width: 2px; margin-left: -1px; background: var(--navy); border-radius: 1px; transition: left 0.35s var(--ease-out); }
.rx-state { font: 700 0.75rem/1.2 var(--body); letter-spacing: 0.06em; text-transform: uppercase; padding: 0.4rem 0.6rem; border-radius: 999px; text-align: center; background: var(--white); color: var(--ink-soft); }
.rx-row.is-on .rx-state { background: var(--rx-on); color: var(--rx-on-ink); }
.rx-row.is-fade .rx-state { background: var(--peach); color: var(--clay-deep); }
.rx-row.is-gone .rx-state { background: var(--mint); color: var(--navy); }
.rx-row[open] .toggle { background: var(--peach); border-color: var(--peach); color: var(--navy); }
.rx-row[open] .toggle svg { transform: rotate(45deg); }
.rx-row .toggle { width: 36px; height: 36px; color: var(--navy); }
.rx-more { padding: 0 0 1.1rem calc(var(--label) + 1.25rem); max-width: calc(var(--label) + 1.25rem + 62ch); }
.rx-more p + p { margin-top: 0.4rem; }
.rx-key { margin-top: 1rem; font-size: 0.9rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.5rem; }
.rx-key { gap: 0.4rem 1.25rem; }
.rx-key > span { white-space: nowrap; display: inline-flex; align-items: center; gap: 0.4rem; }
.rx-key .rx-hint { white-space: normal; flex-basis: 100%; }
.rx-key .k { width: 22px; height: 10px; border-radius: 5px; display: inline-block; }
.k-on { background: var(--rx-on); } .k-fade { background: var(--peach); } .k-gone { background: var(--mint); }
/* bars draw in from the left the first time the chart scrolls into view */
@media (prefers-reduced-motion: no-preference) {
  .rx.is-waiting .rx-fill { transform: scaleX(0); }
  .rx-row:nth-child(2) .rx-fill { transition-delay: 0.06s; } .rx-row:nth-child(3) .rx-fill { transition-delay: 0.12s; }
  .rx-row:nth-child(4) .rx-fill { transition-delay: 0.18s; } .rx-row:nth-child(5) .rx-fill { transition-delay: 0.24s; }
  .rx-row:nth-child(6) .rx-fill { transition-delay: 0.30s; } .rx-row:nth-child(7) .rx-fill { transition-delay: 0.36s; }
  .rx-row:nth-child(8) .rx-fill { transition-delay: 0.42s; }
}
@media (max-width: 720px) {
  .rx-control { grid-template-columns: 1fr; }
  .rx-control input { width: 100%; }
  .rx-axis { grid-template-columns: 1fr; } .rx-axis > span:first-child { display: none; }
  .rx-row summary { grid-template-columns: 1fr auto 36px; grid-template-areas: "name state t" "bar bar bar"; gap: 0.6rem 0.75rem; }
  .rx-name { grid-area: name; } .rx-state { grid-area: state; max-width: 8rem; } .rx-row .toggle { grid-area: t; } .rx-bar { grid-area: bar; margin-bottom: 0.2rem; }
  .rx-more { padding-left: 0; }
}
