/* About Dr. Saad (version 9). Loaded after site.css and before modern.css, so a rule that changes a shared component
   is scoped with a page class (.about-head, .about-story, ...) to win. Tokens only; light theme only. Layout after the
   ApexCare about page: split header with the orbit-framed portrait, two-column story, "why choose us" cards, credentials
   beside a second photo, a sticky split for the reviews. */

/* ---------- 1. Header: the portrait inside the orbit rings, two glass cards and the seal ---------- */
.about-head .pagehead__actions { gap: 14px 26px; }
.about-head .link-phone { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.about-head .link-phone:hover { color: var(--accent); }

.about-head .about-orbit { max-width: 540px; margin-inline: auto; padding: 11% 0 13%; }
/* The photo sits narrower than the rings, so both ellipses pass behind it and reach out past its sides. */
.about-head .about-orbit > .photo { width: 72%; margin-inline: auto; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.about-head .about-orbit > .photo img { object-position: 50% 12%; }
.about-head .about-orbit .orbit-photo__ring { width: 100%; aspect-ratio: 0.96; }
.about-head .about-orbit .orbit-photo__node:nth-child(1) { left: 66%; top: 3.5%; }
.about-head .about-orbit .orbit-photo__node:nth-child(2) { left: 30%; top: 96.5%; }

.about-orbit .float-card { max-width: 250px; }
.about-orbit .float-card .stars { display: inline-flex; gap: 1px; }
.about-orbit .float-card .stars .icon { width: 14px; height: 14px; }
.about-orbit__rating { left: 0; bottom: 16%; }
.about-orbit__school { right: 0; top: 36%; }
/* On phones the school card covers the portrait; the lede and story already say it. */
@media (max-width: 639.98px) { .about-head .about-orbit .about-orbit__school { display: none; } }
.about-head .seal--about { position: absolute; z-index: 3; left: 2%; top: 12%; width: 104px; height: 104px; }
.about-head .seal--about .seal__mark { width: 32px; height: 32px; }
@media (min-width: 640px) {
  .about-orbit__rating { left: -2%; bottom: 17%; }
  .about-orbit__school { right: -3%; }
  .about-head .seal--about { width: 124px; height: 124px; left: 0; }
  .about-head .seal--about .seal__mark { width: 38px; height: 38px; }
}
@media (min-width: 1024px) {
  .about-head .pagehead__text { align-self: center; }
  .about-orbit__rating { left: -12%; bottom: 18%; }
  .about-orbit__school { right: -10%; top: 40%; }
  .about-head .seal--about { left: -9%; top: 14%; }
}
/* Between 1024 and 1280 the visual column runs almost to the panel edge, so the school card stays inside it. */
@media (min-width: 1024px) and (max-width: 1279.98px) { .about-orbit__school { right: -2%; } }
@media (max-width: 399.98px) {
  .about-orbit .float-card { padding: 9px 12px 9px 9px; gap: 9px; }
  .about-orbit .float-card__icon { width: 36px; height: 36px; }
  .about-orbit .float-card__value { font-size: 0.875rem; }
}

/* ---------- 2. His story ---------- */
.about-story__grid { display: grid; gap: 8px 72px; }
.about-story .about-story__head { margin-bottom: 16px; }
.about-story__text p { font-size: 1.0625rem; line-height: 1.7; color: var(--text); text-wrap: pretty; }
@media (min-width: 768px) { .about-story__text p { font-size: 1.125rem; } }
@media (min-width: 1024px) {
  .about-story__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .about-story .about-story__head { margin-bottom: 0; }
  .about-story__text { padding-top: 40px; }
}

.about-life { list-style: none; margin: 44px 0 0; padding: 0; display: grid; gap: 14px; }
.about-life__item { display: flex; align-items: flex-start; gap: 16px; min-width: 0; padding: 22px; border-radius: var(--r-card); background: var(--offwhite); box-shadow: var(--shadow-sm); }
.about-life__icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--mint); color: var(--ink); }
.about-life__icon .icon { width: 24px; height: 24px; }
.about-life h3 { font-size: 1.0625rem; }
.about-life p { margin-top: 4px; font-size: 0.9375rem; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
@media (min-width: 768px) { .about-life { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 56px; } }

.about-stats { display: grid; gap: 12px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--rule); }
.about-stats__intro { display: flex; align-items: center; gap: 10px; font-weight: 650; color: var(--ink); }
.about-stats__intro .icon { color: var(--star); flex: none; }
.about-stats .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); --stats: 3; }
.about-stats .stats .stat { padding: 12px 0 0 14px; border-left: 1px solid var(--rule); }
.about-stats .stats .stat:first-child { padding-left: 0; border-left: 0; }
.about-stats .stat__num { font-size: clamp(2rem, 1.2rem + 3.4vw, 4rem); }
@media (min-width: 1024px) {
  .about-stats { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: center; gap: 40px; margin-top: 64px; padding-top: 48px; }
  .about-stats__intro { font-size: 1.125rem; max-width: 22ch; }
  .about-stats .stats .stat { padding: 8px 28px; }
}

/* ---------- 3. How he works: the "why choose us" row ---------- */
.about-ways__aside { display: flex; align-items: center; gap: 18px; }
.about-ways__badge { display: grid; place-items: center; width: 64px; height: 64px; flex: none; border-radius: 18px; background: #fff; color: var(--accent); box-shadow: var(--shadow-sm); }
.about-ways__line { font-family: var(--accent-font); font-style: italic; font-size: 1.375rem; line-height: 1.25; color: var(--ink); max-width: 26ch; }
.about-ways__aside .link-arrow { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 0.9375rem; }
.about-ways__aside .link-arrow .icon { width: 18px; height: 18px; }

.about-ways__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.about-ways .about-way { padding: 32px 26px; }
.about-ways .about-way .card__icon { margin-bottom: 26px; background: var(--surface); box-shadow: none; }
.about-ways .about-way .card__title { font-size: 1.1875rem; }
.about-ways .about-way .card__text { margin-top: 12px; font-size: 1rem; }
/* The fourth card is the photo of him at the chairside screen, under an ink gradient that carries the title. */
.about-way--photo { position: relative; overflow: hidden; isolation: isolate; min-height: 420px; border-radius: var(--r-card); background: var(--ink); box-shadow: var(--shadow); }
.about-way--photo > .photo { position: absolute; inset: 0; z-index: -1; border-radius: 0; box-shadow: none; }
.about-way--photo > .photo img { object-position: 30% 20%; }
.about-way__over {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 120px 26px 28px; color: #fff;
  background: linear-gradient(180deg, rgba(14, 42, 58, 0) 0%, rgba(14, 42, 58, 0.82) 42%, var(--ink) 100%);
}
.about-way__over .card__title { color: #fff; }
.about-way__over p { margin-top: 8px; font-size: 0.9375rem; line-height: 1.55; color: var(--on-ink); }
@media (min-width: 640px) { .about-ways__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1024px) {
  .about-ways__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
  .about-ways .about-way { padding: 44px 30px 38px; min-height: 360px; }
  .about-way--photo { min-height: 360px; }
}

/* ---------- 4. Credentials beside his second photo ---------- */
.about-creds__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.about-creds__list > li { display: flex; align-items: flex-start; gap: 14px; min-width: 0; padding: 18px; border-radius: 16px; background: var(--offwhite); }
.about-creds__icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: #fff; color: var(--accent); box-shadow: var(--shadow-sm); }
.about-creds__icon .icon { width: 22px; height: 22px; }
.about-creds__list h3 { font-size: 1rem; line-height: 1.35; }
.about-creds__list p { margin-top: 3px; font-size: 0.9375rem; line-height: 1.5; color: var(--muted); }
@media (min-width: 640px) { .about-creds__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.about-creds__frame { position: relative; isolation: isolate; max-width: 460px; margin-inline: auto; padding: 36px 0; }
.about-creds__frame > .photo { position: relative; z-index: 1; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.about-creds__frame > .photo img { object-position: 4% 30%; }
/* Two thin crossing ellipses behind the photo, as on the orbit photo. */
.about-creds__ring { position: absolute; z-index: 0; left: 50%; top: 50%; width: 128%; aspect-ratio: 1; translate: -50% -50%; pointer-events: none; }
.about-creds__ring::before, .about-creds__ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--rule-ink); }
.about-creds__ring::before { transform: rotate(-16deg) scaleY(0.92); }
.about-creds__ring::after { transform: rotate(18deg) scaleX(0.9); border-style: dashed; border-color: rgba(14, 42, 58, 0.14); }
.about-creds__card { z-index: 2; }
.about-creds__card--a { left: 8px; top: 13%; }
.about-creds__card--b { right: 8px; bottom: 13%; }
@media (min-width: 1024px) {
  .about-creds__card--a { left: -12%; }
  .about-creds__card--b { right: -10%; }
}

/* ---------- 5. Reviews that name him: the sticky split ---------- */
.about-reviews__grid { display: grid; gap: 36px; }
.about-reviews__side .head { margin-bottom: 28px; }
.about-reviews__links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }
.about-reviews__links .link-arrow { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
@media (min-width: 1024px) {
  .about-reviews__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
  .about-reviews__side { position: sticky; top: calc(var(--header-h) + 40px); }
}

.about-quote {
  position: relative; isolation: isolate; overflow: hidden; margin: 0; padding: 34px 26px 28px;
  border-radius: var(--r-lg); background: var(--ink); color: #fff; box-shadow: var(--shadow-lg);
}
.about-quote::before {
  content: ""; position: absolute; z-index: -1; right: 22px; top: 22px; width: 84px; height: 68px; opacity: 0.22;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 32'%3E%3Cpath fill='%23C6E3DE' d='M0 32V19.2C0 8.6 5.4 2.2 16.2 0l2 4.4C12.6 6 9.8 9.6 9.4 15H17v17H0Zm23 0V19.2C23 8.6 28.4 2.2 39.2 0l2 4.4C35.6 6 32.8 9.6 32.4 15H40v17H23Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.about-quote::after { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; left: -220px; bottom: -320px; border-radius: 50%; background: radial-gradient(closest-side, rgba(1, 171, 238, 0.28), rgba(1, 171, 238, 0)); pointer-events: none; }
.about-quote .stars { color: var(--star); }
.about-quote blockquote { margin: 18px 0 0; }
.about-quote__text { font-size: clamp(1.1875rem, 0.95rem + 0.9vw, 1.5rem); font-weight: 500; line-height: 1.5; letter-spacing: -0.01em; color: #fff; text-wrap: pretty; }
.about-quote__text::before { content: "\201C"; }
.about-quote__text::after { content: "\201D"; }
.about-quote__by { display: flex; align-items: center; gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.9375rem; line-height: 1.35; }
.about-quote__by > span:last-child { display: grid; }
.about-quote__by b { color: #fff; }
.about-quote__src { color: var(--on-ink-muted); font-size: 0.875rem; }
.about-quote .review__avatar { background: var(--mint); color: var(--ink); }
@media (min-width: 768px) { .about-quote { padding: 48px 48px 36px; } }

.about-reviews__cards { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 20px; }
.about-reviews__cards > li { display: flex; min-width: 0; }
.about-reviews__cards > li > .review-card { flex: 1; }
.about-reviews .review-card__text { font-size: 1rem; }
@media (min-width: 768px) { .about-reviews__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 6. Keep exploring: two large link cards ---------- */
.about-next__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.about-next__grid > li { display: flex; min-width: 0; }
.about-next .about-next__card { flex: 1; padding: 0; overflow: hidden; }
.about-next__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--tint); }
.about-next__media img { width: 100%; height: 100%; object-fit: cover; }
.about-next__media--stage .anim-stage { width: 100%; height: 100%; max-width: none; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
/* Absolute so the height resolves against the stage (a percentage height on a grid item fell back to the width). */
.about-next__media--stage .anim-stage .anim { position: absolute; inset: 10% 0; width: auto; height: 80%; margin: auto; }
.about-next__media--stage .anim-stage__orbit { inset: 5% auto; left: 50%; height: 90%; aspect-ratio: 1; translate: -50% 0; }
.about-next__body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 26px; }
.about-next__kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.about-next__kicker .icon { width: 18px; height: 18px; }
.about-next .card__title { display: block; font-size: 1.375rem; font-weight: 600; letter-spacing: -0.015em; }
.about-next .card__text { display: block; text-wrap: pretty; }
@media (min-width: 768px) {
  .about-next__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .about-next__body { padding: 30px 32px 32px; }
}

/* ---------- Motion (gated like modern.css: html.motion inside no-preference) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* The glass cards in the header rise in (modern.css), then drift gently, out of step with each other. */
  html.motion .about-head .about-orbit .about-orbit__rating { animation: pw-rise 600ms var(--ease-apex) 450ms backwards, pw-float 7s ease-in-out 2.2s infinite; }
  html.motion .about-head .about-orbit .about-orbit__school { animation: pw-rise 600ms var(--ease-apex) 520ms backwards, pw-float 8s ease-in-out 3.4s infinite; }
  html.motion .about-head .about-orbit .seal--about { animation: pw-scale-in 520ms var(--ease-apex) 360ms backwards; }
  /* The credentials photo: rings scale in, cards rise after it, then float. */
  html.motion .about-creds__ring { transition: opacity 700ms var(--ease-apex), scale 800ms var(--ease-apex); }
  html.motion .about-creds__frame:not(.is-in) .about-creds__ring { opacity: 0; scale: 0.8; }
  html.motion .about-creds__ring::before { animation: pw-sway 15s ease-in-out infinite alternate; }
  html.motion .about-creds__ring::after { animation: pw-sway 19s ease-in-out -7s infinite alternate-reverse; }
  html.motion .about-creds__card { transition: opacity 700ms var(--ease-apex) 350ms, translate 700ms var(--ease-apex) 350ms; }
  html.motion .about-creds__frame:not(.is-in) .about-creds__card { opacity: 0; translate: 0 40px; }
  html.motion .about-creds__frame.is-in .about-creds__card--a { animation: pw-float 7s ease-in-out 1.4s infinite; }
  html.motion .about-creds__frame.is-in .about-creds__card--b { animation: pw-float 8s ease-in-out 2.4s infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .about-creds__ring::before, .about-creds__ring::after { animation: none !important; }
}

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