/* ==========================================================================
   sections.css ??? the landing page, top to bottom, then the responsive steps.
   Desktop values are the Figma's (1600 frame). Comments give the design y of
   the thing being positioned where that is not obvious.
   ========================================================================== */

/* ===== Hero ============================================================== */
.hero {
  position: relative;
  height: 840px;
  overflow: hidden;
  background: #eef0f6;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
/* the picture carries the Figma's prism wash on its left; it is the full
   1600x840 frame, so wider screens simply scale it to cover */
.hero__poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: right center;
}

.hero__inner { position: relative; padding-top: 42px; }
.hero__logo { display: block; width: 136px; }
.hero__logo img { width: 136px; height: auto; }
.hero__title {
  margin-top: 51px;                  /* y 209 */
  font-family: var(--serif);
  font-weight: 400;
  font-size: 64.4px;
  line-height: 70px;
  letter-spacing: -0.028em;
  color: var(--ink);
}
.hero__title span { display: block; white-space: nowrap; }
.hero__lead {
  max-width: 599px;
  margin-top: 28px;                  /* y 517 */
  color: var(--ink);
}
.hero__actions { margin-top: 38px; } /* y 627 */

/* ===== Intro: copy + location (left), consultation form (right) ========= */
.intro { padding: 66px 0 90px; }
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 588px;
  column-gap: 53px;
  align-items: start;
}
.intro__title { max-width: 640px; color: var(--ink); }
.intro__title span { display: block; color: var(--slate); }
.ticks { max-width: 728px; margin-top: 19.5px; }
.ticks li {
  display: flex;
  align-items: center;
  gap: 21px;
  min-height: 53px;
  font-size: 17px;
  line-height: 24px;
  color: var(--ink);
}
.ticks li + li { border-top: 1px solid var(--line); }
.ticks img { width: 24px; height: 24px; flex: none; transition: transform 0.4s var(--ease-out); }
.ticks li:hover img { transform: scale(1.15); }

.place {
  display: grid;
  grid-template-columns: 429px minmax(0, 1fr);
  max-width: 835px;
  min-height: 320px;
  margin-top: 21.5px;                /* y 1267 */
  border-radius: 27px;
  background: var(--lavender);
  overflow: hidden;
}
.place__photo { position: relative; overflow: hidden; border-radius: 27px; }
.place__photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.place:hover .place__photo img { transform: scale(1.05); }
.place__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 17px 0 21px;
  font-family: var(--inter);
}
.place__row {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 20.3px 0 21px 26.8px;
}
.place__row:first-child { padding-top: 0; padding-bottom: 23.6px; gap: 16.7px; }
.place__row + .place__row { border-top: 1.67px solid #e5e2eb; }
.place__pin { width: 53.5px; height: 53.5px; flex: none; }
.place__label {
  display: block;
  font-size: 19.1px;
  line-height: 22px;
  letter-spacing: 0.016em;
  color: var(--teal);
}
.place__city {
  display: block;
  margin-top: 3.3px;
  font-weight: 700;
  font-size: 23.4px;
  letter-spacing: -0.007em;
  line-height: 28px;
  color: var(--navy);
}
.place__addr {
  font-style: normal;
  font-size: 20.67px;
  line-height: 24px;
  letter-spacing: -0.018em;
  color: var(--ink);
  transition: color 0.25s;
}
.place__row img.place__glyph { width: 23.4px; height: 23.4px; flex: none; }
.place__addr-row:hover .place__addr { color: #0e81b0; }
.place__addr-row .place__glyph { transition: transform 0.4s var(--ease-out); }
.place__addr-row:hover .place__glyph { transform: translate(2px, -2px); }
.place__dir {
  font-weight: 700;
  font-size: 22.2px;
  letter-spacing: 0.0085em;
  line-height: 26px;
  color: var(--teal);
  transition: color 0.25s;
}
.place__row.place__dir-row { gap: 13.4px; padding: 21.8px 0 0 26.8px; }
.place__dir-row img { width: 25px; height: 25px; flex: none; transition: transform 0.6s var(--ease-out); }
.place__dir-row:hover .place__dir { color: #0e81b0; }
.place__dir-row:hover img { transform: rotate(180deg); }

.intro__hours {
  margin-top: 17px;
  font-size: 17px;
  line-height: 24px;
  color: var(--teal);
}
/* the Figma stops the intro card 4px short of the column edge; the closing one sits flush */
.intro .split__aside { margin: 0 4px 0 -4px; }

/* ===== Signs parents notice ================================================ */
.signs {
  padding: 85px 0 86px;
  background: #fafafa;
  text-align: center;
}
.signs__lead { margin-top: 31px; }
.signs__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 19.5px;
  margin-top: 52px;
}
.sign {
  min-height: 249px;
  padding: 33px 16px 28px;
  border-radius: 22px;
  background: var(--lavender);
  font-size: 20px;
  line-height: 30px;
  color: var(--ink);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), background-color 0.45s;
}
.sign img { width: 104px; height: 104px; margin: 0 auto 18px; transition: transform 0.6s var(--ease-out); }
.sign:hover { transform: translateY(-6px); background: #fff; box-shadow: 0 18px 40px rgba(122, 104, 170, 0.14); }
.sign:hover img { transform: rotate(-8deg) scale(1.06); }
.signs__note { margin-top: 52px; color: var(--teal); }
.signs .btn { margin-top: 52px; }

/* ===== A brain-based look ================================================== */
.brain { padding-top: 54px; }               /* picture top, y 2830 */
.brain__grid {
  display: grid;
  grid-template-columns: 748px 696px;
  align-items: start;
}
.brain__body { padding-top: 53px; }         /* heading, y 2883 */
.brain__title { max-width: 599px; }
.brain__body > p { max-width: 666px; }
.brain__title + p { margin-top: 34px; }
.brain__body > p + p { margin-top: 24px; }
.brain .actions { margin-top: 40px; padding-left: 1px; }
.brain__art { position: relative; }
.brain__art img { width: 696px; height: auto; transition: transform 1.2s var(--ease-out); }
.brain__art:hover img { transform: scale(1.03) rotate(-1deg); }

/* ===== How the assessment works ============================================ */
.approach { padding-top: 54px; }            /* box top, y 3517 */
.approach__box {
  position: relative;
  padding: 58px 45px 57px;
  border-radius: 27px;
  background: url('/assets/images/approach-bg.webp') center top / 100% 100% no-repeat;
  text-align: center;
}
.approach__box .h2 { color: var(--teal-deep); letter-spacing: -0.03em; }
.approach__lead { margin-top: 23px; color: #14383c; }
.steps {
  display: grid;
  grid-template-columns: 344fr 314fr 304fr 304fr;
  column-gap: 40px;
  margin-top: 55px;
  text-align: center;
}
.step {
  position: relative;
  isolation: isolate;
}
/* the white panel that sits behind the active (or hovered) step: y 3774, 216 tall */
.step::before {
  content: '';
  position: absolute;
  top: 43px; left: 0; right: 0; height: 216px;
  border-radius: 13px 13px 0 0;
  background: linear-gradient(180deg, #fff 0%, #fff 35%, rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
  z-index: -1;
}
.step.is-active::before,
.step:hover::before { opacity: 1; transform: none; }
/* connector to the next number (y 3774): the Figma draws each one its own length */
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 43px;
  height: 1px;
  background: var(--teal-deep);
  transform-origin: left;
  transition: transform 1s var(--ease-out);
}
.step:nth-child(1)::after { left: 225px; width: 262px; }
.step:nth-child(2)::after { left: 221px; width: 233px; }
.step:nth-child(3)::after { left: 211px; width: 233px; }
.js .steps:not(.is-drawn) .step::after { transform: scaleX(0); }
.step__num { width: 86px; height: 86px; margin: 0 auto; transition: transform 0.5s var(--ease-out); }
.step:hover .step__num { transform: translateY(-4px); }
.step h3 {
  margin-top: 13px;                  /* circle bottom + 21, y 3830 */
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 32px;
  letter-spacing: -0.033em;
  color: var(--ink);
  white-space: nowrap;
}
.step p { margin-top: 20px; }
.approach .btn { margin-top: 79px; }        /* y 4081 */

/* ===== What the plan may include ============================================ */
.plan {
  display: grid;
  grid-template-columns: 938fr 662fr;
  min-height: 782px;
  margin-top: 100px;                         /* y 4294 */
  background: var(--lavender);
}
.plan__body {
  padding: 126px 24px 80px max(var(--gutter), calc(50vw / var(--z, 1) - 738px));
}
.plan__lead { margin-top: 20px; }
.plan__list { max-width: 746px; margin-top: 38px; display: grid; gap: 20px; }
.plan__list li {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 8px 20px 8px 20px;
  border-radius: 7px;
  background: #fff;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.plan__list li span { display: block; padding-left: 15px; text-indent: -15px; }
.plan__list li span::before { content: '\2022'; display: inline-block; width: 15px; text-indent: 0; }
.plan__list li:hover { transform: translateX(8px); box-shadow: 0 10px 24px rgba(122, 104, 170, 0.12); }
.plan__note { margin-top: 30px; }
.plan__photo { position: relative; overflow: hidden; }
.plan__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; }

/* ===== Why families choose us ================================================ */
.why { padding-top: 100px; text-align: center; }
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 19.5px;
  margin-top: 124px;                         /* card top y 5354; icon rides 74px above */
}
.why-card {
  position: relative;
  min-height: 271px;
  padding: 86px 25px 24px;
  border-radius: 16px;
  background: #fff;
  transition: background-color 0.45s, transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
/* the outline: solid on the middle card; the outer two fade out (down on the
   first, up on the last), as the Figma's gradient strokes do */
.why-card::after {
  content: '';
  position: absolute; inset: 0;
  border: 1px solid #4a6669;
  border-radius: inherit;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
}
.why-card--lav { background: var(--lavender); }
.why-card--lav::after { -webkit-mask-image: none; mask-image: none; border-color: #52707f; }
.why-card--alt::after {
  -webkit-mask-image: linear-gradient(0deg, #000 0%, transparent 100%);
  mask-image: linear-gradient(0deg, #000 0%, transparent 100%);
}
.why-card:hover { background: var(--lavender); transform: translateY(-6px); box-shadow: 0 18px 40px rgba(122, 104, 170, 0.14); }
.why-card__icon {
  position: absolute;
  top: -74px; left: 50%;
  width: 136px; height: 136px;
  margin-left: -68px;
  z-index: 1;                        /* the card's outline runs behind the icon */
  transition: transform 0.6s var(--ease-out);
}
.why-card:hover .why-card__icon { transform: scale(1.06) rotate(-6deg); }
.why-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 32px;
  letter-spacing: -0.033em;
  color: var(--ink);
}
.why-card hr {
  height: 1px;
  margin: 20px 0 0;
  border: 0;
  background: #c8cbce;
}
.why-card--lav hr { margin-top: 17px; background: #31474a; }
.why-card p { max-width: 401px; margin: 20px auto 0; color: #1f1f1e; }

/* ===== Team ================================================================= */
.team {
  margin-top: 100px;                         /* y 5725 */
  padding: 84px 0 85px;
  background: url('/assets/images/team-bg.webp') center / cover no-repeat;
  text-align: center;
}
.team__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 668px));
  justify-content: center;
  gap: 26px;
  margin-top: 69px;
  padding-left: 4px;                /* the Figma sits the pair 2px right of centre */
  text-align: left;
}
.person {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 444px;
  border-radius: 18px;
  background: var(--lavender);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.person:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(110, 100, 180, 0.18); }
.person__photo { position: relative; overflow: hidden; }
.person__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.person:hover .person__photo img { transform: scale(1.06); }
.person__body { padding: 128px 24px 24px 27px; }          /* y 6060 */
.person + .person .person__body { padding-top: 138px; padding-left: 44px; }   /* y 6070, x 1129 */   /* y 6070 */
.person h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 40px;
  line-height: 28px;                 /* the Figma's own text box */
  letter-spacing: -0.032em;
  color: var(--ink);
  margin: -2px 0 2px;
}
.person__role {
  margin-top: 15px;
  font-family: var(--serif);
  font-size: 23.9px;
  line-height: 32px;
  background: var(--grad-role);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #9c8fcc;
}
.person + .person .person__role { margin-top: 23px; }
.person__bio { max-width: 298px; margin-top: 16px; color: var(--bio); }
.person + .person .person__bio { margin-top: 13px; }

/* ===== Reviews ============================================================== */
.reviews { position: relative; height: 617px; }
.reviews__art {
  position: absolute;
  top: 71px; bottom: 0;
  left: calc(50% + 13px); right: 0;
  background: url('/assets/images/reviews-bg.webp') left center / cover no-repeat;
}
.reviews__quote {
  position: absolute;
  top: 47px; left: calc(50% - 302px);
  width: 230px; height: 230px;
  pointer-events: none;
}
.reviews__head { position: relative; padding-top: 207px; }   /* y 6668 */
.reviews__head .h2 { line-height: 55px; }
.reviews__badge { display: block; width: 301px; max-width: 100%; margin-top: 40px; transition: transform 0.4s var(--ease-out), box-shadow 0.4s; border-radius: 9px; }
.reviews__badge:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08); }
.reviews__badge img { width: 100%; height: auto; }
.reviews__nav { display: flex; gap: 20px; margin-top: 50px; }
.reviews__nav button {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  color: var(--teal-deep);
  transition: background-color 0.25s, color 0.25s;
}
.reviews__nav button:hover:not(:disabled) { background: rgba(22, 61, 66, 0.08); }
.reviews__nav button:disabled { color: #8a9ca3; cursor: default; }
.reviews__nav svg { width: 20px; height: 31px; }

.reviews__track {
  position: absolute;
  top: 182px; left: calc(50% - 166px); right: 0;   /* first card x 654, y 6663 */
  display: flex;
  gap: 55px;
  padding: 20px 20px 44px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  scroll-padding-left: 20px;
}
.reviews__track::-webkit-scrollbar { display: none; }
.review {
  flex: 0 0 600px;
  min-height: 288px;
  padding: 40px;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 11px 33px rgba(40, 40, 80, 0.08);
  scroll-snap-align: start;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.review:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(40, 40, 80, 0.14); }
.review__head { display: flex; align-items: center; gap: 15px; }
.review__avatar {
  display: grid; place-items: center;
  width: 80px; height: 80px; flex: none;
  border-radius: 50%;
  background: #445a64;
  color: #fff;
  font-size: 38px;
  font-weight: 500;
  line-height: 1;
}
.review__name {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  line-height: 27px;
  color: #000f20;
}
.review__name::before {
  content: '\201C';
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 55px;
  line-height: 0;
  position: relative;
  top: 14px;
  color: #8aa0b6;
}
.review p { max-width: 520px; margin-top: 24px; line-height: 26px; }
.review p a { color: var(--ink); white-space: nowrap; }
.review p a:hover { color: #0e81b0; }

/* ===== FAQ =================================================================== */
.faq { padding: 100px 0 74px; }
.faq .h2 { text-align: center; }
.faq__list { max-width: 1226px; margin: 46px auto 0; }
.faq__item { border-bottom: 1px solid #547381; }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 40px 0 19px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26.2px;
  line-height: 32px;
  color: #000f20;
  cursor: pointer;
  list-style: none;
  transition: color 0.25s, padding 0.35s var(--ease-out);
}
.faq__item:first-child .faq__q { padding-top: 28px; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: #0e81b0; }
.faq__icon { position: relative; width: 32px; height: 32px; flex: none; }
.faq__icon img { position: absolute; inset: 0; width: 32px; height: 32px; transition: opacity 0.3s, transform 0.4s var(--ease-out); }
.faq__icon .is-minus { opacity: 0; transform: rotate(-90deg); }
.faq__item[open] .faq__icon .is-plus { opacity: 0; transform: rotate(90deg); }
.faq__item[open] .faq__icon .is-minus { opacity: 1; transform: none; }
.faq__item[open] .faq__q { padding-bottom: 12px; }
.faq__a { overflow: hidden; }
.faq__a p { max-width: 1093px; padding-bottom: 19px; font-size: 17px; line-height: 26px; }

/* Self-pay note under the FAQ list: lavender card, small ruled eyebrow,
   one line of copy with the phone number, the card icon on the right. */
.selfpay {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1227px;
  min-height: 127px;
  margin: 44px auto 0;
  padding: 18.5px 31px;
  border: 1px solid #dcc6ef;
  border-radius: 16px;
  background: linear-gradient(90deg, #f6f1fc 0%, #f3eefb 100%);
  transition: box-shadow 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.selfpay:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(122, 104, 170, 0.14); }
.selfpay__text { align-self: flex-start; margin-top: 12.5px; }
.selfpay__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--manrope);
  font-weight: 600;
  font-size: 12px;
  line-height: 15px;
  letter-spacing: 0.073em;
  text-transform: uppercase;
  color: var(--teal);
}
.selfpay__eyebrow::before {
  content: '';
  width: 32px; height: 1px; flex: none;
  background: currentColor;
}
.selfpay__body {
  margin-top: 18px;
  font-family: var(--manrope);
  line-height: 30px;
  color: var(--ink);
}
.selfpay__body a { font-weight: 700; color: var(--navy); white-space: nowrap; transition: color 0.25s; }
.selfpay__body a:hover { color: #0e81b0; }
.selfpay__icon { width: 88px; height: 88px; flex: none; transition: transform 0.6s var(--ease-out); }
.selfpay:hover .selfpay__icon { transform: rotate(-8deg) scale(1.05); }

/* ===== Closing CTA ============================================================ */
.cta {
  padding: 54px 0 57px;
  /* the Figma places the watercolour at full width: its top here, its foot in the footer */
  background: #eaeff9 url('/assets/images/watercolor-bg.webp') center top / max(100%, 1600px) auto no-repeat;
}
.cta .split__main { padding-top: 46px; }    /* heading y 8227, form y 8181 */
.cta__title { max-width: 745px; }
.cta__lead { max-width: 728px; margin-top: 19px; }
.cta .actions { margin-top: 29px; padding-left: 1px; }
.contact { max-width: 622px; margin-top: 41px; }
.contact li {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 17px;
  padding: 20px 0 19.5px;
}
.contact li:first-child { padding-top: 0; }
.contact li + li::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 370px; height: 1px;
  background: #a8b0b8;
}
.contact img { width: 44px; height: 44px; margin-top: 1px; }
.contact h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24.9px;
  line-height: 31px;
  color: #2a2929;
}
.contact p, .contact a { display: block; margin-top: 2px; font-size: 16.9px; line-height: 28px; color: var(--ink); white-space: nowrap; }
.contact a:hover { color: #0e81b0; }

/* ===== Map + footer ============================================================ */
.map { height: 292px; background: #e8eaed; }
.map iframe { width: 100%; height: 100%; border: 0; }

.site-footer {
  padding: 52px 0 39px;
  background: #e4f2f9 url('/assets/images/watercolor-bg.webp') center 99.4% / max(100%, 1600px) auto no-repeat;
  text-align: center;
}
.site-footer__logo { display: inline-block; width: 136px; vertical-align: top; }
.site-footer__logo img { width: 136px; height: auto; }
.site-footer__title { margin-top: 26px; font-size: 25.25px; line-height: 38px; font-weight: 400; color: var(--ink); }
.site-footer__disclaimer { max-width: 1131px; margin: 15px auto 0; font-size: 14px; line-height: 22px; color: #2e3438; }
.site-footer__disclaimer strong { font-size: 16px; font-weight: 700; color: #000; }
.site-footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 40px;
  margin: 52px -2px 0;
  padding: 31px 2px 0;
  border-top: 1px solid rgba(120, 150, 170, 0.35);
  color: #2e3434;
}
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 49px; }
.site-footer__links a { position: relative; transition: color 0.25s; }
.site-footer__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease-out);
}
.site-footer__links a:hover { color: #0e81b0; }
.site-footer__links a:hover::after { transform: scaleX(1); }

/* ===== Hero entrance ============================================================ */
.js .hero__logo, .js .hero__title span, .js .hero__lead, .js .hero__actions {
  opacity: 0;
  transform: translateY(24px);
  animation: hero-in 0.9s var(--ease-out) forwards;
}
.js .hero__logo { animation-delay: 0.05s; }
.js .hero__title span:nth-child(1) { animation-delay: 0.15s; }
.js .hero__title span:nth-child(2) { animation-delay: 0.23s; }
.js .hero__title span:nth-child(3) { animation-delay: 0.31s; }
.js .hero__title span:nth-child(4) { animation-delay: 0.39s; }
.js .hero__lead { animation-delay: 0.5s; }
.js .hero__actions { animation-delay: 0.6s; }
@keyframes hero-in { to { opacity: 1; transform: none; } }

/* ==========================================================================
   Responsive (below 1200px the zoomed design frame gives way to a fluid
   layout; sizes here are ordinary CSS pixels)
   ========================================================================== */

@media (max-width: 1199px) {
  .hero { height: 720px; }
  .hero__title { font-size: 54px; line-height: 60px; margin-top: 40px; }
  .hero__lead { max-width: 500px; }

  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); column-gap: 40px; }
  .intro .split__aside { margin: 0; }
  .ticks li { font-size: 16px; padding: 10px 0; }
  .place { grid-template-columns: minmax(0, 1fr); }
  .place__photo { aspect-ratio: 429 / 280; }
  .place__info { padding: 22px 16px 24px 19px; }
  .place__row { padding-left: 8px; }
  .place__row.place__dir-row { padding-left: 8px; }

  .sign br { display: none; }
  .sign { font-size: 18px; line-height: 27px; }

  .brain__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); column-gap: 32px; align-items: center; }
  .brain__body { padding-top: 0; }
  .brain__art img { width: 100%; }

  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 20px; }
  .approach__box { padding-left: 24px; padding-right: 24px; }
  .step h3 { white-space: normal; font-size: 24px; line-height: 28px; }
  .step p br { display: none; }
  .step:not(:last-child)::after { left: calc(50% + 52px); width: calc(100% - 84px); }
  .step::before { height: auto; bottom: -24px; }

  .plan__body { padding-top: 80px; padding-right: 40px; }
  .plan__list li span br, .plan__note br { display: none; }

  .why-card h3 br { display: none; }
  .why-card h3 { font-size: 26px; line-height: 30px; }

  .team__grid { grid-template-columns: minmax(0, 668px); }
  .person__body, .person + .person .person__body { align-self: center; padding: 32px 26px; }
  .person + .person .person__role { margin-top: 15px; }
  .person + .person .person__bio { margin-top: 16px; }

  .reviews__quote { left: calc(50% - 320px); }
  .faq__list, .selfpay { max-width: none; }
  .faq__q { font-size: 23px; line-height: 30px; }
}

/* ---- tablet: the two-column bands stack ---------------------------------------- */
@media (max-width: 991px) {
  .hero { height: auto; display: flex; flex-direction: column; background: linear-gradient(180deg, #f3f2f8 0%, #eef1f8 100%); }
  .hero__inner { padding-top: 32px; padding-bottom: 40px; }
  /* the picture moves under the copy: its right part, child and doctor */
  .hero__media { position: relative; order: 2; height: 56vw; max-height: 460px; min-height: 260px; z-index: 0; }
  .hero__poster { object-position: 88% center; }
  .hero__title span { white-space: normal; }

  .split { grid-template-columns: minmax(0, 1fr); row-gap: 56px; }
  .split__aside { max-width: 588px; width: 100%; margin: 0 auto; }
  .intro__title, .ticks, .place { max-width: none; }

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

  .brain__grid { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .brain__art { order: -1; max-width: 520px; margin: 0 auto; }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .step:nth-child(2)::after { display: none; }
  .step::before { bottom: -16px; }

  .plan { grid-template-columns: minmax(0, 1fr); }
  .plan__body { padding: 64px var(--gutter); }
  .plan__photo { height: 70vw; max-height: 560px; }
  .plan__photo img { object-position: center 8%; }
  .plan__list { max-width: none; }

  .why__grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-left: auto; margin-right: auto; row-gap: 104px; margin-top: 104px; }

  .reviews { height: auto; padding: 72px 0 0; }
  /* the artwork becomes the track's own backdrop, so the card always sits
     centred on it whatever its height */
  .reviews__art { display: none; }
  .reviews__quote { top: 40px; left: auto; right: var(--gutter); width: 140px; height: 140px; }
  .reviews__head { padding-top: 0; }
  .reviews__track {
    position: relative; top: auto; left: auto;
    margin-top: 32px;
    padding: 64px var(--gutter);
    scroll-padding-left: var(--gutter);
    background: url('/assets/images/reviews-bg.webp') center / cover no-repeat;
  }
  .reviews__nav { margin-top: 24px; }

  .faq { padding-top: 72px; }
  .cta { padding: 64px 0; }
  .cta .split__main { padding-top: 0; }
  .cta__title, .cta__lead { max-width: none; }
}

/* ---- phones ------------------------------------------------------------------- */
@media (max-width: 767px) {
  .hero__logo, .hero__logo img { width: 104px; }
  .hero__title { margin-top: 22px; font-size: 38px; line-height: 44px; }
  .hero__lead { margin-top: 18px; max-width: none; }
  .hero__actions { margin-top: 26px; }

  .intro { padding: 48px 0 44px; }
  .ticks { margin-top: 24px; }
  .ticks li { font-size: 14.5px; line-height: 22px; gap: 14px; min-height: 0; }
  .place__photo { aspect-ratio: 429 / 320; }
  .place__info { padding: 10px 14px 14px; }
  .place__row, .place__row.place__dir-row { padding-left: 4px; }
  .place__label { font-size: 16px; }
  .place__city { font-size: 20px; line-height: 25px; }
  .place__addr { font-size: 17px; line-height: 22px; }
  .place__dir { font-size: 19px; }
  .intro__hours { margin-top: 24px; font-size: 14.5px; line-height: 22px; }

  .signs { padding: 56px 0 60px; }
  .signs__lead { margin-top: 18px; }
  .signs__grid { margin-top: 32px; gap: 16px; }
  .sign { min-height: 0; padding: 28px 16px 26px; font-size: 17px; line-height: 25px; border-radius: 18px; }
  .sign img { width: 88px; height: 88px; margin-bottom: 14px; }
  .signs__note, .signs .btn { margin-top: 32px; }

  .brain { padding-top: 48px; }
  .brain__title + p { margin-top: 20px; }
  .brain__body > p + p { margin-top: 16px; }
  .brain .actions { margin-top: 28px; }

  .approach { padding-top: 56px; }
  .approach__box { padding: 44px 18px 52px; background-size: cover; border-radius: 22px; }
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 28px; margin-top: 36px; }
  .step::after { display: none; }
  .step::before { bottom: -12px; }
  .approach .btn { margin-top: 40px; }

  .plan { margin-top: 64px; }
  .plan__body { padding: 52px var(--gutter); }
  .plan__list { gap: 12px; margin-top: 26px; }
  .plan__list li { min-height: 56px; padding-left: 16px; }

  .why { padding-top: 64px; }
  .why-card { padding: 78px 18px 26px; }

  .team { margin-top: 64px; padding: 56px 0 60px; }
  .team__grid { margin-top: 36px; }
  .person { grid-template-columns: minmax(0, 1fr); }
  /* the portraits are tall crops with the head near the top: keep their own
     proportion so nothing is cut off */
  .person__photo { aspect-ratio: 270 / 330; }
  .person__photo img { object-position: center top; }
  .person__body, .person + .person .person__body { padding: 26px 22px 30px; }
  .person h3 { font-size: 32px; }
  .person__role { font-size: 21px; line-height: 28px; }

  .reviews { padding: 56px 0 0; }
  .reviews__track { padding: 52px var(--gutter); }
  .reviews__quote { width: 80px; height: 80px; top: 18px; opacity: 0.7; }
  .review { flex-basis: min(86vw, 420px); padding: 26px 22px; }
  .review__avatar { width: 56px; height: 56px; font-size: 26px; }

  .faq { padding: 56px 0 64px; }
  .faq__list { margin-top: 18px; }
  .faq__q, .faq__item:first-child .faq__q { padding: 24px 0 16px; font-size: 19px; line-height: 26px; }
  .faq__a p { font-size: 14.5px; line-height: 22px; }
  .selfpay { margin-top: 26px; padding: 20px 18px 22px 20px; gap: 16px; align-items: flex-start; }
  .selfpay__body { font-size: 14px; line-height: 21px; }
  .selfpay__icon { width: 56px; height: 56px; }

  .cta { padding: 52px 0 56px; }
  .contact { max-width: none; }
  .contact li + li::before { width: 100%; }
  .contact p, .contact a { white-space: normal; font-size: 15px; line-height: 23px; }
  .contact p br { display: none; }
  .contact h3 { font-size: 21px; line-height: 27px; }

  .site-footer { padding-top: 44px; }
  .site-footer__title { font-size: 18px; line-height: 26px; }
  .site-footer__disclaimer { font-size: 13px; line-height: 20px; }
  .site-footer__bar { flex-direction: column; text-align: center; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; font-size: 14.5px; }
  .site-footer__links { justify-content: center; gap: 8px 24px; }
}

@media (max-width: 575px) {
  .signs__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 480px) {
  .hero__title { font-size: 33px; line-height: 39px; }
  .actions { gap: 14px 20px; }
  .actions .btn { width: 100%; }
}

/* ===== Notice pages (thank-you, 404) ============================================ */
.notice-page {
  padding: 96px 0 104px;
  background: #eaeff9 url('/assets/images/watercolor-bg.webp') center top / max(100%, 1600px) auto no-repeat;
}
.notice__card {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 44px 52px;
  border-radius: 27px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 60px rgba(90, 90, 160, 0.14);
  text-align: center;
}
.notice__logo { display: inline-block; width: 116px; }
.notice__logo img { width: 116px; height: auto; }
.notice__mark {
  display: grid; place-items: center;
  width: 60px; height: 60px;
  margin: 18px auto 0;
  border-radius: 50%;
  background: var(--grad-icon);
  color: #fff;
}
.notice__mark svg { width: 30px; height: 30px; }
.notice__code { margin-top: 16px; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }
.notice__title { margin-top: 6px; }
.notice__lead { max-width: 520px; margin: 14px auto 0; }
.notice__actions { justify-content: center; margin-top: 28px; }
@media (max-width: 767px) {
  .notice-page { padding: 56px 0 64px; }
  .notice__card { padding: 34px 20px 38px; }
}
