/* Home page. Every rule is scoped to .page-home. */

/* ---------- Hero: the practice name beside an arched window onto the coast ---------- */
.page-home .hm-hero { position: relative; overflow: hidden; padding-top: clamp(24px, 4vw, 56px); }
.page-home .hm-hero__glow { position: absolute; right: -14%; top: -30%; width: min(78vw, 1200px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(224, 138, 94, .17), rgba(224, 138, 94, .05) 55%, transparent); pointer-events: none; }
.page-home .hm-hero__grid {
  position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 72px); align-items: center;
  min-height: clamp(560px, calc(100svh - var(--header-h) - var(--notice-h) - 40px), 820px); padding-bottom: clamp(48px, 6vw, 96px);
}
.page-home .hm-hero__label { margin-bottom: clamp(28px, 4vw, 52px); }
.page-home .hm-hero__title, .page-home .hm-hero__swash { font-size: clamp(3.5rem, 9.4vw, 9.75rem); }
.page-home .hm-hero__title { font-family: var(--f-display); font-weight: 300; line-height: .9; letter-spacing: -.04em; margin-left: -.05em; text-wrap: nowrap; }
.page-home .hm-hero__line { display: block; padding-left: .82em; }
.page-home .hm-hero__title em { font-weight: 300; }
/* A hand-drawn smile under the name, drawn on as the page opens. */
.page-home .hm-hero__swash { width: 3.9em; height: .3em; margin: -.04em 0 0 .86em; }
.page-home .hm-hero__swash svg { display: block; width: 100%; height: 100%; overflow: visible; }
.page-home .hm-hero__swash path { fill: none; stroke: var(--sun); stroke-width: 2.2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.js .page-home .hm-hero__swash .draw [pathLength] { transition-duration: 1.8s; }
.page-home .hm-hero__sub { max-width: 36ch; text-wrap: pretty; margin: clamp(28px, 3.4vw, 40px) 0 0; font-size: clamp(1.05rem, 1.35vw, 1.2rem); line-height: 1.55; color: var(--muted); }
.page-home .hm-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(32px, 3.6vw, 44px); }
.page-home .hm-hero__visual { position: relative; width: min(100%, 470px); margin-left: auto; padding: 18px; }
.page-home .hm-hero__img { --ar: .8; }
.page-home .hm-hero__img img { object-position: 50% 16%; }
/* "Est. 1997" hallmark */
.page-home .hm-seal {
  position: absolute; left: -46px; bottom: 64px; display: grid; place-content: center; justify-items: center; gap: 2px;
  width: 132px; aspect-ratio: 1; margin: 0; border: 1px solid var(--line-strong); border-radius: 50%;
  background: var(--porcelain); outline: 1px solid var(--line); outline-offset: -8px; box-shadow: 0 24px 50px -30px rgba(11, 34, 38, .45);
}
.page-home .hm-seal span { font-size: .68rem; font-weight: 560; font-stretch: 118%; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.page-home .hm-seal strong { font-family: var(--f-display); font-size: 2.3rem; font-style: italic; font-weight: 300; line-height: 1; letter-spacing: -.02em; color: var(--ink); }

.page-home .hm-hero__proof { margin-top: 28px; color: var(--muted); }
.page-home .hm-hero__proof strong { color: var(--ink); }

@media (max-width: 900px) {
  .page-home .hm-hero__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; row-gap: 48px; }
  .page-home .hm-hero__visual { width: min(100% - 40px, 420px); margin: 0 auto; }
  .page-home .hm-hero__title { text-wrap: wrap; }
}
@media (max-width: 640px) {
  .page-home .hm-hero__title, .page-home .hm-hero__swash { font-size: clamp(3.4rem, 17vw, 5rem); }
  .page-home .hm-hero__line { padding-left: .5em; }
  .page-home .hm-hero__swash { margin-left: .54em; }
  .page-home .hm-hero__actions .btn { flex: 1 1 100%; }
  .page-home .hm-seal { left: -22px; bottom: 36px; width: 104px; outline-offset: -6px; }
  .page-home .hm-seal strong { font-size: 1.85rem; }
}

/* ---------- Welcome ---------- */
.page-home .hm-intro__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.page-home .hm-intro__title { margin-top: 28px; max-width: 11ch; font-family: var(--f-display); font-size: var(--fs-h2); font-weight: 300; line-height: 1.02; letter-spacing: -.03em; }
.page-home .hm-intro__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; }
.page-home .hm-intro__body { display: flex; flex-direction: column; align-items: flex-start; gap: 40px; padding-top: 6px; }
.page-home .hm-intro__text { margin: 0; text-indent: 3.2em; }
@media (max-width: 900px) { .page-home .hm-intro__grid { grid-template-columns: minmax(0, 1fr); } .page-home .hm-intro__text { text-indent: 0; } }

.page-home .hm-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: var(--space-block) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.page-home .hm-facts > li { border-right: 1px solid var(--line); }
.page-home .hm-facts > li:last-child { border-right: 0; }
.page-home .hm-fact { position: relative; display: flex; flex-direction: column; align-items: flex-start; height: 100%; padding: 32px clamp(20px, 2.6vw, 44px) 8px; color: inherit; text-decoration: none; }
.page-home .hm-facts > li:first-child .hm-fact { padding-left: 0; }
.page-home .hm-facts > li:last-child .hm-fact { padding-right: 0; }
.page-home .hm-fact::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: var(--sun-deep); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease-out); }
.page-home .hm-fact:hover::before, .page-home .hm-fact:focus-visible::before { transform: scaleX(1); }
.page-home .hm-fact__kicker { font-size: var(--fs-label); font-weight: 560; font-stretch: 118%; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.page-home .hm-fact__fig { display: inline-flex; align-items: flex-start; margin: 22px 0 44px; color: var(--ink); transition: color .5s; }
.page-home .hm-fact:hover .hm-fact__fig { color: var(--ink-3); }
.page-home .hm-fact__title { margin-bottom: 14px; font-family: var(--f-display); font-size: clamp(1.3rem, 1.7vw, 1.6rem); font-weight: 400; line-height: 1.2; }
.page-home .hm-fact__text { max-width: 38ch; margin-bottom: 28px; font-size: .95rem; color: var(--muted); }
.page-home .hm-fact .link-arrow { margin-top: auto; }
@media (max-width: 900px) {
  .page-home .hm-facts { grid-template-columns: minmax(0, 1fr); }
  .page-home .hm-facts > li { border-right: 0; border-bottom: 1px solid var(--line); }
  .page-home .hm-fact { padding: 32px 0 36px !important; }
}

/* ---------- Dr. Adli ---------- */
.page-home .hm-doctor__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 8vw, 140px); align-items: center; }
.page-home .hm-doctor__img { --ar: .72; }
.page-home .hm-doctor__media .figure__cap { margin-top: 26px; }
.page-home .hm-doctor__img img { object-position: 50% 40%; }
.page-home .hm-doctor__body { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.page-home .hm-doctor__grid { align-items: start; }
.page-home .hm-doctor__media { position: sticky; top: calc(var(--header-h) + 32px); }
/* The two specialists who work alongside Dr. Adli, set as a quiet roster under her bio. */
.page-home .hm-spec { align-self: stretch; }
.page-home .hm-spec__label { margin: 0 0 4px; font-size: var(--fs-label); font-weight: 560; font-stretch: 118%; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.page-home .hm-spec__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin: 0; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--line); }
.page-home .hm-spec__item { display: flex; align-items: center; gap: 16px; }
.page-home .hm-spec__img { --ar: .8; flex: none; width: 72px; }
.page-home .hm-spec__img img { object-position: 50% 18%; }
/* Dr. Rafiee's photo has a caption baked into its lower edge; crop it out. */
.page-home .hm-spec__img img[src*="rafiee"] { height: 116%; object-position: 50% 0; }
.page-home .hm-spec__body { display: flex; flex-direction: column; gap: 4px; }
.page-home .hm-spec__name { font-family: var(--f-display); font-size: 1.15rem; font-weight: 400; line-height: 1.2; }
.page-home .hm-spec__role { font-size: .85rem; line-height: 1.4; color: var(--muted); }
@media (max-width: 900px) { .page-home .hm-doctor__grid { grid-template-columns: minmax(0, 1fr); } .page-home .hm-doctor__media { position: static; max-width: 440px; margin-inline: 14px; } }
@media (max-width: 560px) { .page-home .hm-spec__list { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Treatments ---------- */
.page-home .hm-services__cta { display: flex; justify-content: center; margin-top: clamp(40px, 4vw, 56px); }

/* ---------- ILWU patients ---------- */
.page-home .hm-gallery { overflow: hidden; }
.page-home .hm-gallery__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 28px; }
.page-home .hm-gallery__head .label { grid-column: 1 / -1; }
.page-home .hm-gallery__title { grid-column: 1 / span 7; }
.page-home .hm-gallery__intro { grid-column: 9 / -1; align-self: end; }
.page-home .hm-carousel__viewport { margin-top: var(--space-block); overflow: hidden; }
.page-home .hm-carousel__track { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 24px); margin: 0; padding: 0; list-style: none; transition: transform 1s var(--ease-in-out); will-change: transform; }
.page-home .hm-gallery__slide { flex: none; width: clamp(250px, 31vw, 460px); aspect-ratio: 1; overflow: hidden; background: var(--porcelain-2); transform: scale(.8); opacity: .5; transition: transform 1s var(--ease-in-out), opacity 1s var(--ease-in-out); }
.page-home .hm-gallery__slide.is-near { transform: scale(.88); opacity: .78; }
.page-home .hm-gallery__slide.is-current { transform: none; opacity: 1; }
.page-home .hm-gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
.page-home .hm-gallery__nav { display: flex; align-items: center; justify-content: flex-end; gap: 24px; margin-top: 40px; }
.page-home .hm-gallery__arrows { display: flex; gap: 10px; }
@media (max-width: 900px) { .page-home .hm-gallery__title, .page-home .hm-gallery__intro { grid-column: 1 / -1; } }
@media (max-width: 640px) { .page-home .hm-gallery__slide { width: 72vw; } }

/* ---------- LANAP ---------- */
.page-home .hm-laser { overflow: clip; }
.page-home .hm-laser__glow { position: absolute; right: -18%; top: -30%; width: min(80vw, 1200px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(224, 138, 94, .2), rgba(224, 138, 94, .05) 55%, transparent); pointer-events: none; }
.page-home .hm-laser .container { position: relative; }
.page-home .hm-laser__head { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.page-home .hm-laser__title { max-width: 13ch; font-family: var(--f-display); font-size: var(--fs-h1); font-weight: 300; line-height: .95; letter-spacing: -.035em; }
.page-home .hm-laser__title em { color: var(--sun); font-weight: 300; }
.page-home .hm-laser__beam { margin: clamp(48px, 6vw, 96px) 0; }
.page-home .hm-laser__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.page-home .hm-laser__case { position: sticky; top: calc(var(--header-h) + 32px); }
.page-home .hm-laser__lead { margin: 0; color: var(--on-ink); }
.page-home .hm-laser__sub { margin-bottom: 24px; font-family: var(--f-display); font-size: var(--fs-h3); font-weight: 300; letter-spacing: -.015em; }
.page-home .hm-laser__actions { margin-top: 40px; }
@media (max-width: 900px) {
  .page-home .hm-laser__grid { grid-template-columns: minmax(0, 1fr); }
  .page-home .hm-laser__case { position: static; }
}

/* ---------- Insurance & financing ---------- */
.page-home .hm-afford__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.page-home .hm-afford__cap { margin: 0 0 18px; font-size: var(--fs-label); font-weight: 560; font-stretch: 118%; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.page-home .hm-plans { columns: 2; column-gap: 40px; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.page-home .hm-plans li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); break-inside: avoid; font-size: .95rem; }
.page-home .hm-plans li::before { content: ""; flex: none; width: 7px; height: 7px; border: 1px solid var(--sun-deep); border-radius: 50%; }
.page-home .hm-afford__pay { display: flex; flex-direction: column; align-items: flex-start; }
.page-home .hm-pay { align-self: stretch; display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.page-home .hm-pay__item { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: clamp(24px, 2.6vw, 36px); background: var(--enamel); border: 1px solid var(--line); }
.page-home .hm-pay__tag { margin: 0; font-size: var(--fs-label); font-weight: 560; font-stretch: 118%; letter-spacing: .16em; text-transform: uppercase; color: var(--sun-deep); }
.page-home .hm-pay__name { font-family: var(--f-display); font-size: clamp(1.9rem, 2.8vw, 2.6rem); font-weight: 300; line-height: 1; letter-spacing: -.025em; }
.page-home .hm-pay__text { margin: 0 0 8px; font-size: .95rem; color: var(--muted); }
.page-home .hm-afford__more { margin-top: 32px; }
@media (max-width: 900px) { .page-home .hm-afford__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .page-home .hm-plans { columns: 1; } }
