/* ==========================================================================
   Dr Martelize Weyers Inc. – Homepage
   ========================================================================== */

/* Tokens ------------------------------------------------------------------ */
:root {
  --navy: #063b4d;
  --teal: #66a6ae;
  --blue: #b2d8db;
  --grey: #f1f5f7;
  --white: #ffffff;

  --ink: var(--navy);
  --ink-soft: color-mix(in srgb, var(--navy) 82%, var(--white));
  --line: color-mix(in srgb, var(--navy) 14%, transparent);
  --line-dark: color-mix(in srgb, var(--blue) 22%, transparent);

  --font-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "KoHo", "Segoe UI", Arial, sans-serif;

  --container: 1320px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --utility-h: 2.5rem;
  /* distance from the container's content edge to the viewport edge */
  --bleed: calc(var(--gutter) + max(0px, (100vw - var(--container) - 2 * var(--gutter)) / 2));

  --ease: cubic-bezier(.2, .7, .2, 1);
  --fast: .25s;

  interpolate-size: allow-keywords;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
p { margin: 0 0 1.25em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
address { font-style: normal; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nowrap { white-space: nowrap; }

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

.skip-link {
  position: absolute;
  top: .75rem; left: .75rem;
  z-index: 100;
  padding: .75rem 1.25rem;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-size: .8125rem;
  transform: translateY(-200%);
  transition: transform var(--fast) var(--ease);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }

/* Icons ------------------------------------------------------------------- */
.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--sm { width: 1rem; height: 1rem; }
.icon--lg { width: 1.75rem; height: 1.75rem; stroke-width: 1.25; color: var(--teal); }

/* Typography -------------------------------------------------------------- */
.heading {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.625rem);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -.01em;
  margin-bottom: 1.75rem;
  text-wrap: balance;
}

/* Short accent rule beneath section headings */
.heading--accent::after,
.hero__rule {
  content: "";
  display: block;
  width: 2.75rem;
  height: 2px;
  margin-top: 1.5rem;
  background: var(--teal);
}

.heading--on-dark { color: var(--white); }

.lead {
  font-size: clamp(1.1875rem, 1.1rem + .35vw, 1.375rem);
  line-height: 1.6;
}

.label {
  display: block;
  margin-bottom: .35rem;
  font-family: var(--font-display);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
}
.label--spaced { margin-top: 1rem; }
.label--on-dark { color: var(--blue); }

/* Buttons & links --------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  min-height: 3.25rem;
  padding: .95rem 1.75rem;
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  isolation: isolate;
  overflow: hidden;
  transition: color var(--fast) var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.btn .icon { transition: transform var(--fast) var(--ease); }
.btn:hover::before,
.btn:focus-visible::before { transform: scaleX(1); }
.btn:hover .icon,
.btn:focus-visible .icon { transform: translateX(4px); }

.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover,
.btn--primary:focus-visible { color: var(--navy); }

.text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding-block: .5rem;
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
}
.text-link::after {
  content: "";
  position: absolute;
  left: 0; right: 2rem; bottom: .2rem;
  height: 1px;
  background: var(--teal);
  transform-origin: left;
  transition: transform .35s var(--ease), background-color var(--fast);
}
.text-link .icon { transition: transform var(--fast) var(--ease); }
.text-link:hover::after { transform: scaleX(1.12); background: var(--navy); }
.text-link:hover .icon { transform: translateX(4px); }

.text-link--on-dark { color: var(--white); }
.text-link--on-dark:hover::after { background: var(--blue); }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: calc(-1 * var(--utility-h));
  z-index: 50;
  background: var(--white);
}

.utility-bar {
  height: var(--utility-h);
  background: var(--navy);
  color: var(--blue);
  font-size: .875rem;
}
.utility-bar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.utility-bar__group { display: flex; gap: 2rem; }
.utility-bar__item {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--fast);
}
.utility-bar__item .icon { width: 1rem; height: 1rem; color: var(--teal); }
.utility-bar__item:hover { color: var(--white); }

.nav-bar {
  height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--line);
  opacity: 0;
  transition: opacity var(--fast);
}
.site-header.is-scrolled::after { opacity: 1; }

.brand { flex: none; display: block; }
.brand img { width: clamp(156px, 14vw, 200px); }

.site-nav { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3rem); }
.site-nav__list { display: flex; align-items: center; gap: clamp(1.25rem, 2.4vw, 2.5rem); }

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding-block: .75rem;
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .35rem;
  height: 1px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-nav__link:hover::after,
.site-nav__link[aria-current="page"]::after,
.site-nav__trigger[aria-expanded="true"]::after { transform: scaleX(1); }
.site-nav__trigger .icon { transition: transform var(--fast) var(--ease); }
.site-nav__trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }

.has-submenu { position: relative; }
.submenu {
  position: absolute;
  top: calc(100% + .75rem);
  left: -1.5rem;
  min-width: 20rem;
  padding: .75rem 0;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px -24px color-mix(in srgb, var(--navy) 35%, transparent);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease), visibility 0s linear var(--fast);
}
/* hover bridge so the menu stays open crossing the gap */
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -.85rem; height: .85rem; }
.site-nav__trigger[aria-expanded="true"] + .submenu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
@media (hover: hover) and (min-width: 1025px) {
  .has-submenu:hover .submenu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
}
.submenu a {
  position: relative;
  display: block;
  padding: .55rem 1.5rem;
  font-size: 1rem;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color var(--fast), padding var(--fast) var(--ease);
}
.submenu a::before {
  content: "";
  position: absolute;
  left: 0; top: .5rem; bottom: .5rem;
  width: 2px;
  background: var(--teal);
  transform: scaleY(0);
  transition: transform var(--fast) var(--ease);
}
.submenu a:hover { background: var(--grey); padding-left: 1.75rem; }
.submenu a:hover::before { transform: scaleY(1); }


.nav-toggle { display: none; }

/* Hero -------------------------------------------------------------------- */
.hero { background: var(--grey); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(3rem, 6vw, 6rem);
  min-height: clamp(36rem, calc(100svh - 8rem), 52rem);
}
.hero__copy {
  align-self: center;
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
}

.hero__title {
  margin-bottom: 0;
  font-weight: 300;
  text-wrap: balance;
}
.hero__title-strong {
  display: block;
  font-size: clamp(2.75rem, 1.5rem + 3.4vw, 4.5rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.03em;
}
.hero__title-place {
  display: block;
  margin-top: .85rem;
  font-size: clamp(1.375rem, 1rem + 1.1vw, 2rem);
  line-height: 1.25;
  letter-spacing: -.01em;
}

.hero__lead {
  max-width: 32rem;
  margin-block: 2rem 2.75rem;
  font-size: clamp(1.1875rem, 1.1rem + .4vw, 1.4375rem);
  line-height: 1.6;
  color: var(--ink-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
}
.hero__tel {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  font-family: var(--font-display);
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-decoration: none;
  white-space: nowrap;
}
.hero__tel-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background-color var(--fast), border-color var(--fast), color var(--fast);
}
.hero__tel:hover .hero__tel-icon { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* Portrait runs full height and out to the viewport edge */
.hero__media {
  position: relative;
  margin-right: calc(-1 * var(--bleed));
  overflow: hidden;
}
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

/* Load-in: copy rises in sequence, portrait opens from the edge */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes open-left { from { clip-path: inset(0 0 0 100%); } }
@keyframes settle { from { transform: scale(1.08); } }
.hero__copy > * { animation: rise .9s var(--ease) both; }
.hero__copy > :nth-child(2) { animation-delay: .08s; }
.hero__copy > :nth-child(3) { animation-delay: .16s; }
.hero__copy > :nth-child(4) { animation-delay: .24s; }
.hero__media { animation: open-left 1.3s var(--ease) .1s both; }
.hero__media img { animation: settle 1.8s var(--ease) .1s both; }

/* Practice details -------------------------------------------------------- */
.details { border-bottom: 1px solid var(--line); }
.details__list {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.1fr;
}
.details__item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 2.5rem clamp(1.25rem, 3vw, 2.75rem);
  font-size: 1.0625rem;
  line-height: 1.55;
}
.details__item:first-child { padding-left: 0; }
.details__item + .details__item { border-left: 1px solid var(--line); }
.details__item a {
  display: inline-block;
  text-decoration: none;
  background: linear-gradient(var(--teal), var(--teal)) 0 100% / 0 1px no-repeat;
  transition: background-size .35s var(--ease);
}
.details__item a:hover { background-size: 100% 1px; }

.hours { margin: 0; }
.hours div { display: flex; flex-wrap: wrap; column-gap: .4rem; }
.hours dt { font-weight: 500; }
.hours dd { margin: 0; }

/* Meet -------------------------------------------------------------------- */
/* Soft grey ground; text and signature lead, a contained portrait answers on the right */
.meet { background: var(--grey); }
.meet__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
}
.meet__copy { max-width: 38rem; }
.meet__copy .lead { margin-bottom: 1.5rem; color: var(--ink-soft); }
/* The script from the client's wordmark, used as a sign-off */
.meet__signature {
  width: clamp(8.5rem, 11vw, 10.5rem);
  margin-bottom: 2rem;
}
.meet__visual {
  position: relative;
  isolation: isolate;
  justify-self: end;
  width: 100%;
  max-width: 42rem;
}
.meet__media { position: relative; z-index: 1; overflow: hidden; }
.video-frame--wide { position: relative; aspect-ratio: 4 / 3; }
.video-frame--hd { position: relative; aspect-ratio: 16 / 9; }
.video-frame--hd iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame--wide iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.meet__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 30% 22%;
}

/* Practice ---------------------------------------------------------------- */
/* Title above; beneath it a small consulting-room photo with the text and
   link aligned to its top edge. The teal rule is the only accent. */
.practice__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "head  head"
    "photo text"
    "photo cta";
  grid-template-rows: auto auto 1fr;
  column-gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.practice__head { grid-area: head; margin-bottom: clamp(2.25rem, 4vw, 3rem); }
.practice__photo { grid-area: photo; overflow: hidden; }
/* negative margin lifts the first line so its letters sit level with the photo top */
.practice__text { grid-area: text; max-width: 44rem; margin-top: -.45em; }
.practice__cta { grid-area: cta; align-self: start; justify-self: start; margin-top: 1rem; }

.practice__title { margin-bottom: 0; }
.practice__title-main {
  display: block;
  font-size: clamp(2.25rem, 1.3rem + 2.3vw, 3.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.025em;
}
.practice__title-place {
  display: block;
  margin-top: .9rem;
  font-size: clamp(1.125rem, 1rem + .4vw, 1.375rem);
  font-weight: 300;
  line-height: 1.35;
  color: var(--ink-soft);
}

.practice__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 45% 50%;
}

.practice__text { font-size: 1.0625rem; line-height: 1.75; color: var(--ink-soft); }
.practice__text p { margin-bottom: 1.5rem; }
.practice__lead { font-size: 1.1875rem; line-height: 1.7; color: var(--ink); }

/* Services ---------------------------------------------------------------- */
.services { background: var(--grey); }
.services__head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: end;
  gap: clamp(2rem, 7vw, 7rem);
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}
.services__head .heading { margin-bottom: 0; }
.services__head .lead { color: var(--ink-soft); }

/* Editorial grid: hairline rules via 1px gaps, no boxed cards */
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.service {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.5rem clamp(1.5rem, 2.2vw, 2.25rem) 2.25rem;
  background: var(--grey);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-soft);
  transition: background-color .35s var(--ease);
}
.service p { flex: 1; margin-bottom: 1.75rem; }
/* Teal rule draws across the top of a service on hover */
.service::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.service:hover::before { transform: scaleX(1); }

/* Icon: navy line drawing over a soft light-blue shape (echoes the butterfly mark) */
.service__icon {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.75rem;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
  background: radial-gradient(circle at 34% 64%, var(--blue) 0 38%, transparent 39%);
  transition: transform .35s var(--ease);
}

.service__title {
  margin-bottom: .85rem;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
}

.service__link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
}
.service__link::after { content: ""; position: absolute; inset: 0; }
.service__link .icon { color: var(--teal); transition: transform var(--fast) var(--ease), color var(--fast); }
.service__link:focus-visible { outline: none; }

.service:hover,
.service:focus-within { background: var(--white); }
.service:hover .service__icon { transform: translateY(-3px); }
.service:hover .service__link .icon { transform: translateX(4px); color: var(--navy); }
.service:has(.service__link:focus-visible) { outline: 2px solid var(--teal); outline-offset: -2px; }

/* Care for every age ------------------------------------------------------ */
.ages__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8.5rem);
}
.ages__copy { max-width: 36rem; }
.ages__copy .lead { color: var(--ink-soft); }
.ages__copy p:not(.lead) { color: var(--ink-soft); margin-bottom: 2.5rem; }

.ages__media { position: relative; isolation: isolate; padding-bottom: 4rem; }
/* Light-blue field behind the collage, running out to the viewport edge */
.ages__media::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 16%;
  bottom: 0;
  left: 22%;
  right: calc(-1 * var(--bleed));
  background: var(--blue);
}
.ages__main { width: 78%; margin-left: auto; overflow: hidden; }
.ages__main img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 45% 35%;
}
.ages__video { position: relative; width: 75%; margin-left: auto; aspect-ratio: 9 / 16; background: var(--blue); }
.ages__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ages__inset {
  position: absolute;
  transition-delay: .25s;
  left: 0;
  bottom: 0;
  width: 52%;
  border: clamp(6px, .8vw, 10px) solid var(--white);
  box-shadow: 0 20px 40px -24px color-mix(in srgb, var(--navy) 32%, transparent);
}
.ages__inset img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 55% 30%;
}

/* FAQ --------------------------------------------------------------------- */
/* One calm, centred reading column: hairline-divided questions, a light plus that turns to a cross */
.faq { background: var(--grey); }
.faq__grid { max-width: calc(52rem + 2 * var(--gutter)); }
.faq__head { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.faq__head .heading { margin-bottom: 0; }
.faq__head .heading--accent::after { margin-inline: auto; }

.faq__list { border-bottom: 1px solid var(--line); }
.faq__item { border-top: 1px solid var(--line); }
.faq__item summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  padding-block: 1.75rem;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }

.faq__q {
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  font-weight: 500;
  line-height: 1.35;
  transition: color var(--fast);
}
.faq__icon {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 1.25;
  color: var(--teal);
  transition: transform .35s var(--ease), color var(--fast);
}
.faq__item summary:hover .faq__icon { color: var(--navy); }
.faq__item[open] .faq__icon { transform: rotate(45deg); color: var(--navy); }

.faq__a {
  max-width: 44rem;
  padding: 0 3.25rem 2rem 0;
  color: var(--ink-soft);
}

/* Smooth open/close where supported */
.faq__item::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size .35s var(--ease), content-visibility .35s allow-discrete;
}
.faq__item[open]::details-content { block-size: auto; }

/* Footer ------------------------------------------------------------------ */
.site-footer {
  padding-top: clamp(4rem, 3rem + 4vw, 6.5rem);
  background: var(--navy);
  color: var(--blue);
  font-size: 1rem;
  line-height: 1.6;
}
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, .9fr);
  gap: clamp(2.5rem, 5vw, 5rem);
}
.site-footer__brand img { width: 200px; margin-bottom: 1.75rem; }
.site-footer__brand p { max-width: 24rem; }
.site-footer__contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem clamp(1.5rem, 3vw, 3rem);
  align-content: start;
}
.site-footer__contact p { margin: 0; }
.site-footer__contact a,
.site-footer__hours { color: var(--white); }
.site-footer a {
  text-decoration: none;
  background: linear-gradient(var(--teal), var(--teal)) 0 100% / 0 1px no-repeat;
  transition: background-size .35s var(--ease), color var(--fast);
}
.site-footer a:hover { background-size: 100% 1px; }
.site-footer__contact a { overflow-wrap: anywhere; }

.social { display: flex; gap: .75rem; margin-top: .5rem; }
.site-footer .social a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: none;
  color: var(--blue);
  transition: background-color var(--fast), color var(--fast), border-color var(--fast);
}
.site-footer .social a:hover { background: var(--blue); border-color: var(--blue); color: var(--navy); }

.site-footer__map {
  margin-top: clamp(3rem, 5vw, 4.5rem);
  border: 1px solid var(--line-dark);
}
.site-footer__map iframe {
  display: block;
  width: 100%;
  height: clamp(220px, 20vw, 280px);
  border: 0;
}

.site-footer__bottom {
  margin-top: 2.5rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--line-dark);
  font-size: .875rem;
}

/* Line artwork ------------------------------------------------------------ */
/* Thin teal drawings used sparingly: a sprig peeking from behind the Meet
   portrait, a pair of butterflies by the practice title, ginkgo leaves in the
   corner of "Care For Every Age" and a sprig at the foot of the
   FAQ. Purely decorative. */
.art {
  position: absolute;
  pointer-events: none;
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.art--meet {
  z-index: 0;
  left: -4.25rem;
  bottom: -2.5rem;
  width: 8rem;
  height: 13rem;
  transform: rotate(-16deg);
  transform-origin: bottom center;
}

.practice, .faq { position: relative; overflow: hidden; }
.art__soft { opacity: .55; }

/* Ginkgo, a symbol of longevity, growing in from the bottom-left corner of "Care For Every Age" */
.ages { position: relative; overflow: hidden; }
.art--ginkgo {
  left: -1.5rem;
  bottom: -2.5rem;
  width: clamp(8rem, 11vw, 10.5rem);
  height: clamp(12rem, 16.5vw, 15.75rem);
  transform: rotate(14deg);
  transform-origin: bottom center;
  opacity: .75;
}

/* A pair of butterflies drawn from the brand mark, one large, one small and tilted */
.art--butterfly {
  top: clamp(3rem, 6vw, 5.5rem);
  right: clamp(2rem, 9vw, 9rem);
  width: clamp(7rem, 10vw, 9.5rem);
  height: clamp(7.9rem, 11.3vw, 10.75rem);
}
.art--butterfly-sm {
  top: clamp(1.5rem, 3vw, 2.5rem);
  right: clamp(.75rem, 3vw, 3.5rem);
  width: clamp(3rem, 4vw, 3.75rem);
  height: clamp(3.4rem, 4.5vw, 4.25rem);
  transform: rotate(22deg);
  opacity: .75;
}

.art--faq {
  left: clamp(-4rem, -3vw, -1rem);
  bottom: -3rem;
  width: 13rem;
  height: 21rem;
  opacity: .6;
  transform: rotate(14deg);
}

@media (max-width: 1024px) { .art--faq { display: none; } }
@media (max-width: 860px) {
  .art--meet { display: none; }
  .art--ginkgo { display: none; }
}
@media (min-width: 861px) and (max-width: 1199px) { .art--ginkgo { bottom: -5.25rem; } }
@media (max-width: 560px) {
  .art--butterfly { top: 1.5rem; right: 3.25rem; width: 4.25rem; height: 4.8rem; }
  .art--butterfly-sm { top: .75rem; right: 1rem; width: 2rem; height: 2.25rem; }
}
/* Tablet: the Meet portrait sits left, so the sprig grows from its right edge instead */
@media (min-width: 561px) and (max-width: 860px) {
  .art--meet { display: block; left: auto; right: -6.5rem; transform: rotate(16deg) scaleX(-1); }
}

/* Reveal on scroll (only when JS is running) ------------------------------ */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Images open like a curtain and settle from a slight zoom */
/* clip sits on the image, not the observed figure, so the observer still sees it */
.js .reveal-img img {
  clip-path: inset(100% 0 0 0);
  transform: scale(1.08);
  transition: clip-path 1.2s var(--ease), transform 1.8s var(--ease);
}
.js .reveal-img.is-visible img { clip-path: inset(0); transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .js .reveal-img img { clip-path: none; transform: none; }
}

/* Responsive -------------------------------------------------------------- */
@media (min-width: 1600px) {
  :root { --container: 1400px; }
  body { font-size: 1.1875rem; }
}

@media (max-width: 1180px) {
  .utility-bar__inner > .utility-bar__item { display: none; }
  .utility-bar__inner { justify-content: flex-end; }
}

@media (max-width: 1024px) {
  .nav-bar { height: 4.75rem; }

  .nav-toggle {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin-right: -.6rem;
  }
  .nav-toggle__bars,
  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    display: block;
    width: 1.5rem;
    height: 1.5px;
    background: var(--navy);
    transition: transform var(--fast) var(--ease), opacity var(--fast);
  }
  .nav-toggle__bars { position: relative; }
  .nav-toggle__bars::before,
  .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -7px; }
  .nav-toggle__bars::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100dvh - 4.75rem);
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 2rem;
    padding: 1rem var(--gutter) 2rem;
    overflow-y: auto;
    background: var(--white);
    border-top: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease), visibility 0s linear var(--fast);
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__list > li { border-bottom: 1px solid var(--line); }
  .site-nav__link {
    width: 100%;
    justify-content: space-between;
    padding-block: 1.15rem;
    font-size: .875rem;
  }
  .site-nav__link::after { display: none; }

  .submenu {
    position: static;
    min-width: 0;
    display: none;
    padding: 0 0 1rem;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .submenu::before { display: none; }
  .site-nav__trigger[aria-expanded="true"] + .submenu { display: block; }
  .submenu a { padding: .6rem 1rem; }

  .site-nav__cta { justify-content: center; min-height: 3.25rem; }

  /* Without JS the menu simply shows in flow */
  html:not(.js) .site-nav { position: static; height: auto; opacity: 1; visibility: visible; transform: none; }
  html:not(.js) .nav-bar { height: auto; flex-wrap: wrap; padding-block: 1rem; }
  html:not(.js) .submenu { display: block; }

  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

}

@media (max-width: 860px) {
  .hero__grid,
  .meet__grid,
  .services__head,
  .ages__grid { grid-template-columns: minmax(0, 1fr); }

  .hero__grid { min-height: 0; gap: 0; }
  .hero__copy { padding-block: 3rem 2.75rem; }
  .hero__media { margin-inline: calc(-1 * var(--gutter)); aspect-ratio: 4 / 5; }

  .details__list { grid-template-columns: minmax(0, 1fr); }
  .details__item { padding: 1.75rem 0; }
  .details__item + .details__item { border-left: 0; border-top: 1px solid var(--line); }

  .meet__visual { justify-self: start; max-width: 100%; }

  .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
}

/* Tablet portrait: stacked, but images use the full width with wider crops */
@media (min-width: 561px) and (max-width: 860px) {
  .hero__media { aspect-ratio: 4 / 3; }
  .hero__media img { object-position: 50% 32%; }
  .ages__main { width: 70%; }
  .ages__inset { width: 38%; }
}

@media (max-width: 560px) {
  :root { --utility-h: 2.25rem; }
  body { font-size: 1.0625rem; }

  .utility-bar { font-size: .8125rem; }
  .utility-bar__inner { justify-content: center; }
  .utility-bar__group { gap: 1.25rem; }

  .hero .btn,
  .meet .btn,
  .practice .btn,
  .ages .btn { width: 100%; justify-content: center; }
  .practice__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "photo" "text" "cta";
    grid-template-rows: none;
  }
  .practice__head { margin-bottom: 2.25rem; }
  .practice__photo { margin-bottom: 2.25rem; }
  .practice__photo img { aspect-ratio: 4 / 3; }

  .services__grid { grid-template-columns: minmax(0, 1fr); }
  .service { padding-inline: 0; }
  .service:hover, .service:focus-within { background: var(--grey); }

  .ages__main { width: 84%; }
  .ages__inset { width: 46%; }

  .faq__a { padding-right: 2rem; }

  .site-footer__top,
  .site-footer__contact { grid-template-columns: minmax(0, 1fr); }
}
