/* Home page only (version 9). Loaded before modern.css, so every rule that overrides a shared component is scoped with
   the body class .page-home; the home-only blocks use their own .home-* classes. Light theme only, tokens from
   modern.css only. The layout follows the ApexCare reference (brief section 8): a hero on a white to sky wash with
   rounded bottom corners, Dr. Saad's photo on the right with the seal on its edge and glass stat cards straddling the
   panel's bottom edge; then rounded section panels that each send the visitor on to a page of the site.
   Motion (section at the end) is gated on html.motion inside prefers-reduced-motion: no-preference; the unanimated
   styles are the finished state, and every load animation fills backwards only. */

/* ==========================================================================================================
   1. Hero
   ========================================================================================================== */
.home-hero { --ov: 44px; position: relative; margin: 0 var(--panel-inset) var(--panel-inset); }
.home-hero__panel {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 0 0 var(--r-panel) var(--r-panel);
  padding: 20px 0 calc(var(--ov) + 36px);
  background: linear-gradient(180deg, #FFFFFF 4%, #F9FAFB 26%, var(--sky) 100%);
}
/* A soft brand glow top right, a large thin orbit ring with a node riding it, and a second ring tilted inside it. */
.home-hero__panel::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 760px; height: 760px; right: -240px; top: -300px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(1, 171, 238, 0.14), rgba(1, 171, 238, 0));
}
.home-hero__ring {
  position: absolute; z-index: -1; pointer-events: none;
  width: 1040px; height: 1040px; right: -380px; top: -430px; border-radius: 50%;
  border: 1px solid var(--rule-ink);
  background: radial-gradient(circle at 50% 0.6%, var(--brand) 0 5px, rgba(1, 171, 238, 0.2) 6px 11px, transparent 12px);
}
.home-hero__ring::after {
  content: ""; position: absolute; inset: 150px; border-radius: 50%; border: 1px dashed rgba(14, 42, 58, 0.12);
}
.home-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.home-hero__text { min-width: 0; }
.page-home .home-hero .h1 {
  margin-top: 22px; max-width: 12ch;
  font-size: clamp(2.75rem, 1.2rem + 4.4vw, 5rem); line-height: 1.02; letter-spacing: -0.03em;
}
.page-home .home-hero .h1 em { display: inline-block; padding-right: 0.06em; letter-spacing: -0.01em; }
.page-home .home-hero .lede { margin-top: 22px; max-width: 42ch; color: var(--text); }
.home-hero__actions { margin-top: 32px; gap: 14px 18px; }
/* The second action: the number as a quiet link beside the pill, its phone in a glass disc that turns ink on hover. */
.home-hero__call {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding-right: 6px;
  font-family: var(--display); font-size: 1.0625rem; font-weight: 650; letter-spacing: 0.005em; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.home-hero__call-ico {
  display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%;
  background: var(--glass); border: 1px solid var(--rule-ink); color: var(--accent);
  transition: background-color var(--t-ui) ease, color var(--t-ui) ease, border-color var(--t-ui) ease;
}
.home-hero__call-ico .icon { width: 20px; height: 20px; }
.home-hero__call:hover { color: var(--accent); }
.home-hero__call:hover .home-hero__call-ico { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (min-width: 768px) { .home-hero__call { font-size: 1.125rem; } }

/* The photo: 1:1 on phones, 16:10 on tablets, a tall crop beside the text from 1024, always with Dr. Saad and the sign. */
.home-hero__media { position: relative; min-width: 0; }
.page-home .home-hero__photo { aspect-ratio: 1 / 1; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); background: var(--tint); }
.page-home .home-hero__photo img { object-position: 24% 45%; }
.home-hero__name { left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 10px 16px 10px 10px; }
.page-home .home-hero__name .float-card__icon { width: 38px; height: 38px; }
.page-home .home-hero__name .float-card__value { font-size: 0.875rem; }
.page-home .seal--hero { position: absolute; z-index: 3; right: 14px; top: -34px; width: 104px; height: 104px; }
.page-home .seal--hero .seal__mark { width: 32px; height: 32px; }

@media (min-width: 640px) {
  .page-home .home-hero__photo { aspect-ratio: 16 / 10; }
  .page-home .home-hero__photo img { object-position: 30% 40%; }
  .home-hero__name { left: 18px; bottom: 18px; }
  .page-home .home-hero__name .float-card__value { font-size: 0.9375rem; }
  .page-home .seal--hero { right: 24px; top: -44px; width: 124px; height: 124px; }
  .page-home .seal--hero .seal__mark { width: 38px; height: 38px; }
}
@media (min-width: 768px) {
  .home-hero { --ov: 64px; }
  .home-hero__panel { padding: 28px 0 calc(var(--ov) + 48px); }
}
@media (min-width: 1024px) {
  .home-hero { --ov: 92px; }
  .home-hero__panel { padding: 36px 0 calc(var(--ov) + 52px); }
  .home-hero__grid { grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr); gap: 56px; align-items: center; }
  .page-home .home-hero .lede { font-size: 1.1875rem; }
  .page-home .home-hero__photo { aspect-ratio: 1.12 / 1; }
  .page-home .home-hero__photo img { object-position: 26% 42%; }
  .home-hero__name { left: auto; right: 20px; top: 20px; bottom: auto; }
  /* The seal sits on the photo's left edge, between the text and the photo, as on the reference. */
  .page-home .seal--hero { right: auto; top: auto; left: -66px; bottom: 22%; width: 132px; height: 132px; }
  .page-home .seal--hero .seal__mark { width: 40px; height: 40px; }
}
@media (min-width: 1200px) {
  .home-hero__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; }
  .home-hero__name { right: -22px; top: 32px; }
}
@media (min-width: 1024px) and (max-width: 1199.98px) {
  .page-home .seal--hero { left: -52px; bottom: 7%; width: 116px; height: 116px; }
  .page-home .seal--hero .seal__mark { width: 36px; height: 36px; }
}
@media (max-width: 639.98px) {
  .home-hero__ring { width: 620px; height: 620px; right: -330px; top: -250px; }
  .home-hero__ring::after { inset: 90px; }
  .home-hero__panel::before { width: 480px; height: 480px; right: -220px; top: -200px; }
}

/* ---------- The glass stat cards straddling the hero's bottom edge ---------- */
.home-stats {
  position: relative; z-index: 4; list-style: none; margin: calc(-1 * var(--ov)) 0 0; padding: 0;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px;
}
.home-stat {
  position: relative; min-width: 0; padding: 20px; border-radius: var(--r-card);
  background: var(--glass); border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: var(--shadow-float), var(--shadow);
  color: var(--text);
}
.home-stat__title { font-family: var(--display); font-size: 1.125rem; font-weight: 650; letter-spacing: -0.01em; color: var(--ink); line-height: 1.3; }
.home-stat__text { margin-top: 6px; font-size: 0.9375rem; line-height: 1.5; color: var(--muted); }
.home-stat__link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 4px; font-size: 0.9375rem; }
.home-stat__icon { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--mint); color: var(--ink); }
.home-stat__icon .icon { width: 18px; height: 18px; }
.home-stat__icon--ink { background: var(--ink); color: #fff; }

/* Card 1: the rating, as the reference's wide composite card: a title, a line and a link, then two white mini cards
   holding the counters. */
.home-stat--rating { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.home-stat--rating .home-stat__intro { grid-column: 1 / -1; }
.home-stat__mini {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0;
  padding: 14px 16px 16px; border-radius: var(--r-sm); background: #fff; box-shadow: var(--shadow-sm);
}
.home-stat__mini .home-stat__icon { margin-bottom: 4px; }
.home-stat__mini .home-stat__icon .icon { color: var(--ink); }
.home-stat__label { font-size: 0.8125rem; font-weight: 600; line-height: 1.3; color: var(--muted); }
.home-stat__num {
  font-family: var(--display); font-size: 2.125rem; font-weight: 700; line-height: 1; letter-spacing: -0.04em;
  color: var(--ink); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap;
}
.home-stat__num small { margin-left: 2px; font-size: 0.5em; font-weight: 700; letter-spacing: -0.01em; color: var(--accent); }

/* Card 2: one verbatim review. */
.home-stat--quote figure { margin: 0; display: flex; flex-direction: column; height: 100%; gap: 12px; }
.home-stat__q { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; }
.home-stat__q .icon { width: 18px; height: 18px; }
.home-stat--quote blockquote { margin: 0; flex: 1; }
.home-stat--quote blockquote p { font-size: 1.0625rem; font-style: italic; font-weight: 500; line-height: 1.5; color: var(--ink); text-wrap: pretty; }
.home-stat--quote blockquote p::before { content: "\201C"; }
.home-stat--quote blockquote p::after { content: "\201D"; }
.home-stat--quote figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 0.875rem; line-height: 1.35; color: var(--muted); }
.home-stat--quote figcaption b { color: var(--ink); font-weight: 700; }
/* Name on one line, "Google review, Month Year" under it, as on every other review card. */
.home-stat__by { display: grid; gap: 1px; }
.home-stat--quote .stars { color: var(--star); }

/* Card 3: Invisalign provider and today's hours, two link rows. */
.home-stat--info { display: grid; align-content: center; padding-block: 10px; }
.home-stat__row {
  display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 6px; border-radius: 14px;
  color: inherit; text-decoration: none; transition: background-color var(--t-ui) ease;
}
.home-stat__row + .home-stat__row { border-top: 1px solid var(--rule); border-radius: 0 0 14px 14px; }
.home-stat__row .home-stat__icon { width: 44px; height: 44px; }
.home-stat__row .home-stat__icon .icon { width: 22px; height: 22px; }
.home-stat__row > span:last-child { display: grid; gap: 2px; min-width: 0; font-size: 0.875rem; line-height: 1.4; color: var(--muted); }
.home-stat__row b { font-size: 0.9375rem; font-weight: 700; color: var(--ink); line-height: 1.35; }
.home-stat__row:hover { background: rgba(255, 255, 255, 0.85); }
.home-stat__row:hover b { color: var(--accent); }

@media (min-width: 640px) {
  .home-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .home-stat--rating { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
  .home-stat--rating .home-stat__intro { grid-column: auto; align-self: center; padding: 4px 6px 4px 4px; }
  .home-stat { padding: 22px 24px; }
  .home-stat--rating { padding: 18px; }
  .home-stat--info { padding-block: 10px; }
}
@media (min-width: 1024px) {
  /* Three cards in a row: the rating card stacks its intro above the two counters, as in the reference. */
  .home-stats { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr) minmax(0, 1.1fr); gap: 16px; }
  .home-stat--rating { grid-column: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; }
  .home-stat--rating .home-stat__intro { grid-column: 1 / -1; align-self: start; padding: 4px 6px 0; }
  .home-stat--rating .home-stat__link { margin-top: 0; }
  .home-stat__mini { justify-content: space-between; min-height: 132px; }
  .home-stat__num { font-size: 2.375rem; }
  .home-stat--quote blockquote p { font-size: 1rem; }
  .home-stat__row { gap: 12px; padding-inline: 4px; }
}

/* ==========================================================================================================
   2. Services: the featured cards and the "all services" tile
   ========================================================================================================== */
.home-svc__all { min-width: 0; }
/* Nine cards: two columns leave one cell for the tile, three fill three rows (the tile takes its own row), four leave
   three cells beside the ninth card. */
@media (min-width: 1024px) and (max-width: 1199.98px) { .home-svc__all { grid-column: 1 / -1; } }
@media (min-width: 1200px) { .home-svc__all { grid-column: span 3; } }
.home-hero__accepting { margin-top: 20px; }
.home-all {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; flex: 1; min-width: 0;
  padding: 28px 22px 24px; border-radius: var(--r-card); background: var(--ink); color: var(--on-ink); box-shadow: var(--shadow-lg);
}
.home-all::before {
  content: ""; position: absolute; z-index: -1; width: 560px; height: 560px; right: -220px; top: -280px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(1, 171, 238, 0.3), rgba(1, 171, 238, 0)); pointer-events: none;
}
.home-all::after {
  content: ""; position: absolute; z-index: -1; right: -36px; bottom: -48px; width: 220px; height: 220px; pointer-events: none;
  background: url("/assets/img/brand/mark-reverse.svg") center / contain no-repeat; opacity: 0.06;
}
.home-all__orbit {
  position: absolute; z-index: -1; width: 420px; height: 420px; right: -240px; top: -300px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14); pointer-events: none;
}
.home-all__orbit::after { content: ""; position: absolute; left: 14%; bottom: 14%; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 5px rgba(1, 171, 238, 0.2); }
.home-all__title { margin-top: 16px; font-size: clamp(1.375rem, 1rem + 1vw, 1.75rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; color: #fff; text-wrap: balance; }
.home-all__groups { list-style: none; margin: 20px 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.home-all__link {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 12px 8px 8px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); color: #fff; text-decoration: none;
  transition: background-color var(--t-ui) ease, border-color var(--t-ui) ease;
}
.home-all__link:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.22); }
.home-all__link:focus-visible { outline-color: #fff; }
.home-all__ico { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--mint); color: var(--ink); }
.home-all__ico .icon { width: 18px; height: 18px; }
.home-all__name { flex: 1; min-width: 0; font-size: 0.9375rem; font-weight: 600; line-height: 1.3; }
.home-all__count { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); font-size: 0.8125rem; font-weight: 700; color: var(--on-ink-accent); font-variant-numeric: tabular-nums; }
.home-all > .btn { margin-top: auto; align-self: flex-start; }
.page-home .home-all .btn:focus-visible { outline-color: #fff; }
@media (min-width: 768px) { .home-all { padding: 32px 30px 30px; } }
@media (max-width: 639.98px) { .home-all > .btn { align-self: stretch; justify-content: space-between; } }

/* ==========================================================================================================
   3. Meet Dr. Saad: the portrait inside the orbit, the bio, the memberships
   ========================================================================================================== */
.home-saad__media { min-width: 0; }
.page-home .home-saad .orbit-photo { max-width: 560px; margin-inline: auto; padding: 15% 0; }
.page-home .home-saad .orbit-photo > .photo { width: 74%; margin-inline: auto; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.page-home .home-saad .orbit-photo > .photo img { object-position: 50% 16%; }
.page-home .home-saad .orbit-photo__ring { width: 92%; aspect-ratio: 0.8; }
.home-saad__text { min-width: 0; }
.home-saad__text .head { margin-bottom: 24px; }
.home-saad__lead { font-family: var(--display); font-size: 1.1875rem; font-weight: 550; line-height: 1.5; color: var(--ink); text-wrap: pretty; max-width: 52ch; }
.home-saad__body { margin-top: 14px; color: var(--muted); max-width: 60ch; text-wrap: pretty; }
.home-affil { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.home-affil li { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 14px; border-radius: var(--r-sm); background: #fff; box-shadow: var(--shadow-sm); }
.home-affil__ico { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--tint); color: var(--accent); }
.home-affil__ico .icon { width: 20px; height: 20px; }
.home-affil li > span:last-child { display: grid; gap: 1px; min-width: 0; font-size: 0.8125rem; line-height: 1.35; color: var(--muted); }
.home-affil b { font-size: 0.875rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.home-saad__actions { margin-top: 32px; gap: 16px 24px; }
.home-saad__lang { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9375rem; font-weight: 550; color: var(--muted); }
.home-saad__lang .icon { width: 20px; height: 20px; color: var(--accent); }
@media (min-width: 640px) { .home-affil { grid-template-columns: repeat(3, minmax(0, 1fr)); } .home-affil li { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; } }
@media (min-width: 640px) and (max-width: 1023.98px) { .page-home .home-saad .orbit-photo { max-width: 440px; padding-block: 12%; } }
@media (max-width: 639.98px) { .page-home .home-saad .orbit-photo { padding-block: 12%; } }

/* ==========================================================================================================
   4. The office: the two photos and four feature rows
   ========================================================================================================== */
.home-office .head--split .lede + .btn, .home-office .head--split .btn { margin-top: 24px; }
.home-office__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; align-items: center; }
.home-office__media { position: relative; min-width: 0; padding-bottom: 12%; }
.page-home .home-office__big { width: 88%; border-radius: var(--r-lg); }
.page-home .home-office__small {
  position: absolute; z-index: 2; right: 0; bottom: 0; width: 38%; max-width: 260px;
  border-radius: var(--r-card); box-shadow: 0 0 0 6px #fff, var(--shadow-lg);
}
.page-home .home-office__small img { object-position: 50% 30%; }
.home-office__card { left: 14px; bottom: calc(12% + 14px); max-width: min(300px, 76%); }
@media (min-width: 1024px) { .home-office__card { left: -8px; bottom: calc(12% + 28px); } }
@media (min-width: 1200px) { .home-office__card { left: -20px; } }
.home-office__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; min-width: 0; }
.home-office__list > li { display: flex; min-width: 0; }
.home-feat {
  flex: 1; display: flex; align-items: center; gap: 16px; min-width: 0; padding: 18px 18px 18px 16px;
  border-radius: var(--r-card); background: var(--offwhite); box-shadow: var(--shadow-sm); color: inherit; text-decoration: none;
  transition: background-color 400ms var(--ease-apex), box-shadow 400ms var(--ease-apex), transform 400ms var(--ease-apex);
}
.home-feat__ico { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--mint); color: var(--ink); transition: background-color 400ms var(--ease-apex); }
.home-feat__ico .icon { width: 24px; height: 24px; }
.home-feat__body { flex: 1; min-width: 0; }
.home-feat__title { font-size: 1.0625rem; font-weight: 650; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); }
.home-feat__text { margin-top: 4px; font-size: 0.9375rem; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.home-feat__go { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--rule-ink); color: var(--ink); transition: background-color 300ms var(--ease-apex), color 300ms var(--ease-apex), border-color 300ms var(--ease-apex); }
.home-feat__go .icon { width: 18px; height: 18px; }
.home-feat:hover { background: #fff; box-shadow: var(--shadow); }
.home-feat:hover .home-feat__ico { background: var(--tint-2); }
.home-feat:hover .home-feat__go { background: var(--ink); border-color: var(--ink); color: #fff; }
.home-feat:hover .home-feat__title { color: var(--accent); }
@media (min-width: 768px) { .home-feat { padding: 20px 22px 20px 20px; gap: 18px; } .home-feat__title { font-size: 1.125rem; } }
@media (min-width: 1024px) { .home-office__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 64px; } }
@media (max-width: 639.98px) {
  .home-feat__go { display: none; }
  .home-office__card { left: 10px; bottom: calc(12% + 10px); padding: 8px 12px 8px 8px; max-width: 58%; }
  .page-home .home-office__card .float-card__icon { width: 34px; height: 34px; }
  .page-home .home-office__card .float-card__value { font-size: 0.8125rem; }
  .page-home .home-office__card .float-card__label { font-size: 0.75rem; }
}

/* ==========================================================================================================
   5. Reviews: the heading row on the ink band (the marquee itself is a shared component)
   ========================================================================================================== */
.home-reviews__head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: end; }
.home-reviews__head .head { margin-bottom: 0; }
.home-reviews__links { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.home-reviews__links .link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.home-rating {
  display: flex; align-items: center; gap: 20px; width: fit-content; padding: 20px 26px 20px 22px; border-radius: var(--r-card);
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
}
.home-rating__num { font-family: var(--display); font-size: clamp(3.5rem, 2.4rem + 3vw, 5rem); font-weight: 700; line-height: 0.9; letter-spacing: -0.05em; color: #fff; font-variant-numeric: tabular-nums lining-nums; }
.home-rating__meta { display: grid; gap: 4px; font-size: 0.9375rem; line-height: 1.4; color: var(--on-ink); }
.home-rating__meta b { color: #fff; }
.home-rating__small { font-size: 0.875rem; color: var(--on-ink-muted); }
.page-home .home-reviews .marquee { margin-top: 48px; }
/* Every review prints whole: the shared band clamps at seven lines, which cut the longer ones mid-word on phones. The
   cards in a row take the height of the tallest, so the names still line up along the bottom. */
.page-home .reviews--marquee .review__text { display: block; -webkit-line-clamp: unset; overflow: visible; }
@media (min-width: 1024px) {
  .home-reviews__head { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; }
  .home-rating { justify-self: end; }
  .page-home .home-reviews .marquee { margin-top: 64px; }
}

/* ==========================================================================================================
   6. New patients: the steps (shared) and the ways on
   ========================================================================================================== */
.home-steps__more { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px; margin-top: 48px; }
.home-steps__more .link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
@media (max-width: 639.98px) { .home-steps__more { flex-direction: column; } }

/* ==========================================================================================================
   7. Insurance
   ========================================================================================================== */
.home-ins__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.home-ins__text, .home-ins__side { min-width: 0; }
.home-ins__text .head { margin-bottom: 24px; }
.home-ins__statement { font-family: var(--display); font-size: clamp(1.375rem, 1rem + 1.25vw, 1.9375rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.018em; color: var(--ink); max-width: 30ch; text-wrap: pretty; }
.home-ins__actions { margin-top: 32px; }
.home-ins__plans { padding: 26px 24px; border-radius: var(--r-card); background: #fff; box-shadow: var(--shadow); }
.home-ins__label { display: flex; align-items: center; gap: 10px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.home-ins__label .icon { width: 20px; height: 20px; color: var(--accent); }
.home-ins__chips { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.home-ins__chips li { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--rule); font-size: 0.875rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
.home-ins__minis { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.home-ins__mini { display: flex; align-items: flex-start; gap: 14px; min-width: 0; padding: 20px; border-radius: var(--r-card); background: #fff; box-shadow: var(--shadow-sm); }
.home-ins__ico { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--mint); color: var(--ink); }
.home-ins__ico .icon { width: 22px; height: 22px; }
.home-ins__mini p { font-size: 0.9375rem; line-height: 1.5; color: var(--muted); }
.home-ins__mini b { display: block; margin-bottom: 2px; font-family: var(--display); font-size: 1rem; font-weight: 650; color: var(--ink); }
@media (min-width: 640px) { .home-ins__minis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .home-ins__plans { padding: 30px 30px 32px; } }
@media (min-width: 1024px) { .home-ins__grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 72px; } }

/* ==========================================================================================================
   8. Visiting: hours, address, the emergency panel
   ========================================================================================================== */
.home-visit__card { display: flex; flex-direction: column; }
.home-visit__card .card__icon { margin-bottom: 18px; }
.home-visit__status { margin-top: 6px; font-weight: 650; color: var(--accent); font-size: 0.9375rem; }
.page-home .home-visit .hours { width: 100%; margin-top: 14px; font-size: 0.9375rem; }
.page-home .home-visit .hours :is(td, th) { height: 40px; }
.page-home .home-visit .hours tr.is-today :is(td, th) { color: var(--ink); }
.home-visit__addr { margin-top: 8px; font-size: 1.0625rem; line-height: 1.55; color: var(--ink); font-weight: 550; }
.home-visit__card > .link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; width: fit-content; }
.home-visit__facts { list-style: none; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--rule); display: grid; gap: 10px; }
.home-visit__facts li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9375rem; line-height: 1.45; color: var(--text); }
.home-visit__facts .icon { width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: 1px; }
.home-visit__more { margin-top: auto; padding-top: 14px; }
.home-visit__card--pain p { margin-top: 8px; font-size: 0.9875rem; line-height: 1.55; }
.home-visit__phone {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; width: fit-content; margin-top: 16px;
  font-family: var(--display); font-size: clamp(1.5rem, 1.1rem + 1vw, 1.875rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1;
  color: #fff !important; text-decoration: none; white-space: nowrap;
}
.home-visit__phone .icon { width: 24px; height: 24px; color: var(--on-ink-accent); }
.home-visit__phone:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.page-home .home-visit__card--pain .home-visit__safety { margin-top: 10px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.875rem; color: var(--on-ink); }
.page-home .home-visit__card--pain :focus-visible { outline-color: #fff; }
@media (min-width: 640px) and (max-width: 1023.98px) { .home-visit__card--pain { grid-column: 1 / -1; } }

/* ==========================================================================================================
   9. Motion
   ========================================================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* ---------- Hero load sequence ----------
     The tag, the headline and its accent, the lede and the actions skew-slide in from the left in turn; the photo
     unveils upward with a clip-path while it zooms out inside its frame; the seal scales in, the name card rises, and
     the three glass cards rise one after another across the panel's edge. Backwards fill only: once an animation ends
     the element's own (finished) styles hold. */
  html.motion .home-hero .tag { animation: hm-skew 500ms var(--ease-apex) 20ms backwards; }
  html.motion .home-hero .h1 { animation: hm-skew 500ms var(--ease-apex) 50ms backwards; }
  html.motion .home-hero .h1 em { animation: hm-accent 500ms var(--ease-apex) 130ms backwards; }
  html.motion .home-hero .lede { animation: hm-skew 500ms var(--ease-apex) 100ms backwards; }
  html.motion .home-hero__actions { animation: hm-skew 500ms var(--ease-apex) 140ms backwards; }
  html.motion .home-hero .home-hero__photo { animation: hm-unveil 680ms var(--ease-apex) 70ms backwards; }
  html.motion .home-hero .home-hero__photo img { animation: hm-zoom 900ms var(--ease-apex) 70ms backwards; }
  html.motion .home-hero .seal--hero { animation: hm-pop 500ms var(--ease-apex) 300ms backwards; }
  html.motion .home-hero .home-hero__name { animation: hm-rise-sm 500ms var(--ease-apex) 340ms backwards; }
  html.motion .home-stats > .home-stat { animation: hm-rise 500ms var(--ease-apex) 240ms backwards; }
  html.motion .home-stats > .home-stat:nth-child(2) { animation-delay: 460ms; }
  html.motion .home-stats > .home-stat:nth-child(3) { animation-delay: 520ms; }
  
  

  /* ---------- On scroll ----------
     Section heads skew in, card groups rise and photos zoom out by the shared vocabulary (site.js marks them). Added
     here: the plan chips cascade in after their card slides in, the Dr. Saad portrait's rings sway, the "all services"
     orbit turns, and the feature rows' arrows nudge on hover. */
  html.motion .home-ins__chips li { transition: opacity 500ms var(--ease-apex), transform 500ms var(--ease-apex); }
  html.motion .home-ins__plans:not(.is-in) .home-ins__chips li { opacity: 0; transform: translateY(14px); }
  html.motion .home-ins__chips li:nth-child(1) { transition-delay: 150ms; }
  html.motion .home-ins__chips li:nth-child(2) { transition-delay: 170ms; }
  html.motion .home-ins__chips li:nth-child(3) { transition-delay: 190ms; }
  html.motion .home-ins__chips li:nth-child(4) { transition-delay: 210ms; }
  html.motion .home-ins__chips li:nth-child(5) { transition-delay: 230ms; }
  html.motion .home-ins__chips li:nth-child(6) { transition-delay: 250ms; }
  html.motion .home-ins__chips li:nth-child(7) { transition-delay: 270ms; }
  html.motion .home-ins__chips li:nth-child(8) { transition-delay: 290ms; }
  html.motion .home-ins__chips li:nth-child(9) { transition-delay: 310ms; }
  html.motion .home-ins__chips li:nth-child(10) { transition-delay: 330ms; }
  html.motion .home-ins__chips li:nth-child(11) { transition-delay: 350ms; }
  html.motion .home-ins__chips li:nth-child(12) { transition-delay: 370ms; }
  html.motion .home-ins__chips li:nth-child(13) { transition-delay: 390ms; }
  html.motion .home-ins__chips li:nth-child(14) { transition-delay: 410ms; }
  html.motion .home-ins__chips li:nth-child(n + 15) { transition-delay: 430ms; }
  
  html.motion .home-feat:hover { transform: translateY(-3px); }
  html.motion .home-feat__go .icon, html.motion .home-all__link .home-all__ico { transition: transform 300ms var(--ease-apex); }
  html.motion .home-feat:hover .home-feat__go .icon { transform: translateX(3px); }
  html.motion .home-all__link:hover .home-all__ico { transform: scale(1.08); }
  html.motion .home-office__small { transition: transform 700ms var(--ease-apex), opacity 500ms var(--ease-apex); }
  html.motion .home-office__small:not(.is-in) { transform: translateY(16px); opacity: 0; }

  @keyframes hm-skew { from { opacity: 0; transform: translateY(var(--rise, 16px)); } to { opacity: 1; transform: none; } } /* name kept; a short rise since 2026-11-03 */
  @keyframes hm-accent { from { opacity: 0; } to { opacity: 1; } }
  @keyframes hm-rise { from { opacity: 0; transform: translateY(var(--rise, 16px)); } to { opacity: 1; transform: none; } }
  @keyframes hm-rise-sm { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  @keyframes hm-unveil { from { clip-path: inset(100% 0 0 0 round var(--r-lg)); } to { clip-path: inset(0 0 0 0 round var(--r-lg)); } }
  @keyframes hm-zoom { from { transform: scale(1.06); } to { transform: none; } }
  @keyframes hm-pop { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: none; } }
  @keyframes hm-spin { to { transform: rotate(360deg); } }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero__ring, .home-hero__ring::after, .home-all__orbit { animation: none !important; }
}
@media print {
  .home-hero__panel::before, .home-hero__ring, .home-all::before, .home-all::after, .home-all__orbit { display: none; }
  .home-stats { margin-top: 24px; }
}

/* Print: reveal children that wait for .is-in print settled even without the beforeprint handler. */
@media print {
  html.motion .home-ins__plans:not(.is-in) .home-ins__chips li { opacity: 1 !important; transform: none !important; translate: none !important; }
}
