
:root{
  --teal:#25cbd3;          /* brand */
  --teal-ink:#0f868d;      /* teal for small text / links on white */
  --teal-deep:#0c7077;     /* button hover, footer */
  --teal-wash:#f1fbfb;     /* faintest teal panel */
  --teal-line:#d3eef0;     /* hairline tinted */
  --ink:#23373a;           /* headings, soft charcoal-teal */
  --body:#46595b;          /* body text */
  --grey:#7c8b8c;          /* meta */
  --white:#ffffff;
  --line:#e7ebeb;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;scroll-padding-top:84px}
section[id]{scroll-margin-top:84px}
body{font-family:'Inter',system-ui,sans-serif;color:var(--body);background:var(--white);line-height:1.65;-webkit-font-smoothing:antialiased}
h1,h2,h3{font-family:'Newsreader',Georgia,serif;font-weight:400;color:var(--ink);line-height:1.12;letter-spacing:-.01em}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
.wrap{width:min(1200px,90vw);margin:0 auto}
.eyebrow{font-size:.74rem;font-weight:600;letter-spacing:.18em;text-transform:uppercase;color:var(--teal-ink)}
.lede{font-size:1.16rem;line-height:1.6;color:var(--body)}

.btn{display:inline-flex;align-items:center;gap:.5rem;font-weight:600;font-size:.92rem;padding:.78rem 1.4rem;border-radius:7px;border:1.5px solid transparent;transition:.25s ease;cursor:pointer}
.btn-primary{background:var(--teal);color:#fff}
.btn-primary:hover{background:var(--teal-deep)}
.btn-line{color:var(--teal-ink);border-color:var(--teal-line)}
.btn-line:hover{border-color:var(--teal);background:var(--teal-wash)}
.btn .ar{transition:transform .25s ease}
.btn:hover .ar{transform:translateX(3px)}

/* Header */
header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.9);backdrop-filter:blur(10px);transition:box-shadow .3s,border-color .3s;border-bottom:1px solid transparent}
header.scrolled{border-color:var(--line)}
.nav{display:flex;align-items:center;justify-content:space-between;padding:1.4rem 0}
.nav .logo img{height:40px;width:auto}
.nav ul{display:flex;gap:1.7rem;list-style:none;align-items:center}
.nav ul a{font-size:.92rem;color:var(--ink);opacity:.85;transition:.2s}
.nav ul a:hover{opacity:1;color:var(--teal-ink)}
/* dropdowns, desktop */
.has-sub{position:relative}
.par{display:flex;align-items:center;gap:.3rem}
.par>a{padding:.45rem 0;font-weight:500}
.has-sub:hover .par>a,.has-sub:focus-within .par>a{opacity:1;color:var(--teal-ink)}
.subtoggle{display:flex;align-items:center;justify-content:center;background:none;border:none;padding:0;color:currentColor;pointer-events:none}
.subtoggle svg{width:11px;height:11px;opacity:.65;transition:transform .25s ease}
.has-sub:hover .subtoggle svg{transform:rotate(180deg)}
.has-sub::after{content:"";position:absolute;top:100%;left:-1rem;right:-1rem;height:.75rem}
.sub{position:absolute;top:calc(100% + .5rem);left:50%;min-width:242px;list-style:none;text-align:center;
  background:#fff;border:1px solid var(--line);border-radius:12px;padding:.45rem;
  box-shadow:0 24px 48px -24px rgba(13,42,43,.45);
  opacity:0;visibility:hidden;transform:translate(-50%,8px);
  transition:opacity .22s ease,transform .22s ease;z-index:60}
.nav .sub{display:block}
.has-sub:hover .sub,.has-sub:focus-within .sub{opacity:1;visibility:visible;transform:translate(-50%,0)}
.sub a{display:block;padding:.6rem .8rem;border-radius:8px;font-size:.9rem;font-weight:500;opacity:.9;white-space:nowrap}
.sub a:hover{background:var(--teal-wash);color:var(--teal-ink);opacity:1}
.sub .lead-link{color:var(--teal-ink);border-bottom:1px solid var(--line);border-radius:0;margin-bottom:.35rem;padding-bottom:.7rem}
/* doctors dropdown, portrait tiles */
.nav ul.docs-sub{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem;min-width:600px;text-align:center;align-items:start}
.sub a.docmenu{display:flex;flex-direction:column;align-items:center;gap:.55rem;padding:.6rem .45rem;border-radius:10px;font-size:.82rem;font-weight:500;opacity:.95;line-height:1.25;white-space:normal;color:var(--ink)}
.sub a.docmenu:hover{background:var(--teal-wash);color:var(--teal-ink);opacity:1}
.sub a.docmenu .thumb{width:100%;max-width:150px;aspect-ratio:4/5;border-radius:10px;overflow:hidden;background:var(--teal-wash)}
.sub a.docmenu .thumb img{width:100%;height:100%;object-fit:cover;object-position:center top;transition:transform 1.15s cubic-bezier(.16,1,.3,1)}
.sub a.docmenu:hover .thumb img{transform:scale(1.09)}
.sub a.docmenu .nm{display:block;min-height:2.5em}
.docmenu-all{grid-column:1 / -1;border-top:1px solid var(--line);margin-top:.25rem;padding-top:.1rem}
.docmenu-all .lead-link{display:block;border:none;margin:0;padding:.6rem;text-align:center}
.nav-cta{display:flex;align-items:center;gap:1.1rem}
.nav-cta .tel{font-size:.92rem;font-weight:600;color:var(--ink)}
.nav-cta .tel:hover{color:var(--teal-ink)}
.burger{display:none;flex-direction:column;gap:5px;background:none;border:none;cursor:pointer;padding:6px}
.burger span{width:23px;height:2px;background:var(--ink);border-radius:2px;transition:.3s}

/* Hero */
.hero{padding:clamp(3rem,6vw,5.5rem) 0 clamp(3rem,5vw,4.5rem)}
.hero-grid{display:grid;grid-template-columns:1.02fr .98fr;gap:clamp(2.5rem,6vw,5rem);align-items:center}
.hero h1{font-size:clamp(2.4rem,5vw,3.9rem);margin:1.3rem 0 1.4rem;font-weight:400}
.hero h1 .it{font-style:italic;color:var(--teal-ink)}
.hero .lede{max-width:42ch;margin-bottom:2rem;color:var(--body)}
.hero-cta{display:flex;gap:.8rem;flex-wrap:wrap;align-items:center}
.hero-media{position:relative}
.hero-media img{width:100%;aspect-ratio:1/1.04;object-fit:cover;object-position:center top;border-radius:10px}
.hero-rule{position:absolute;left:-14px;top:42px;bottom:42px;width:3px;background:var(--teal);border-radius:3px}

/* shared section */
section{padding:clamp(3.5rem,7vw,6rem) 0}
.tint{background:var(--teal-wash)}
.head{max-width:60ch;margin-bottom:2.8rem}
.head h2{font-size:clamp(1.9rem,3.6vw,2.7rem);margin:.8rem 0 .7rem;font-weight:400}
.head h2 .it{font-style:italic;color:var(--teal-ink)}
.head p{color:var(--body);font-size:1.05rem;max-width:52ch}

/* About */
.about-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(2.5rem,6vw,5rem);align-items:center}
.about-media img{width:100%;aspect-ratio:4/3.4;object-fit:cover;border-radius:10px}
.about-copy h2{font-size:clamp(1.9rem,3.6vw,2.7rem);margin-bottom:1.2rem;font-weight:400}
.about-copy h2 .it{font-style:italic;color:var(--teal-ink)}
.about-copy p{margin-bottom:1rem;max-width:50ch}
.about-list{list-style:none;margin-top:1.7rem;display:grid;gap:.9rem}
.about-list li{display:grid;grid-template-columns:auto 1fr;gap:.85rem;align-items:start;padding-top:.9rem;border-top:1px solid var(--line)}
.about-list b{color:var(--ink);font-weight:600}
.about-list .mk{color:var(--teal);margin-top:2px}
.about-list span{color:var(--grey);font-size:.92rem}

/* Doctors, no card chrome */
.docs-head{margin-bottom:3rem;max-width:58ch}
.docs-head h2{font-size:clamp(1.9rem,3.6vw,2.7rem);font-weight:400;margin:.8rem 0 .7rem}
.docs-head h2 .it{font-style:italic;color:var(--teal-ink)}
.docs-head p{color:var(--body)}
.docs{position:relative;display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(1.4rem,2.6vw,2.2rem)}
.dr .pic{position:relative;border-radius:10px;overflow:hidden;background:var(--teal-wash);aspect-ratio:1/1.12}
.dr .pic img{width:100%;height:100%;object-fit:cover;object-position:center top;transition:transform .6s ease}
.dr:hover .pic img{transform:scale(1.035)}
.dr h3{font-size:1.32rem;margin:1.1rem 0 .15rem;font-weight:500}
.dr .role{font-size:.78rem;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--teal-ink);margin-bottom:.6rem}
.dr p{font-size:.9rem;color:var(--body)}
.dr .ints{margin-top:.7rem;font-size:.82rem;color:var(--grey)}
.dr .ints b{color:var(--ink);font-weight:600}

/* Services, plain list not tiles */
.svc-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:0 clamp(2.5rem,6vw,5rem)}
.svc{display:grid;grid-template-columns:auto 1fr;gap:1.1rem;padding:1.35rem 0;border-top:1px solid var(--line);align-items:start}
.svc .mk{color:var(--teal);font-size:1.1rem;line-height:1.4;margin-top:1px}
.svc h3{font-size:1.18rem;font-weight:500;margin-bottom:.2rem}
.svc p{font-size:.92rem;color:var(--body);max-width:46ch}

/* Feature */
.feature{display:grid;grid-template-columns:1fr 1fr;gap:clamp(2.5rem,6vw,5rem);align-items:center}
.feature.rev .f-media{order:2}
.f-media img{width:100%;aspect-ratio:5/4;object-fit:cover;border-radius:10px}
.feature h2{font-size:clamp(1.9rem,3.6vw,2.6rem);font-weight:400;margin:.9rem 0 1.1rem}
.feature h2 .it{font-style:italic;color:var(--teal-ink)}
.feature p{margin-bottom:1.1rem;max-width:50ch}
.flist{list-style:none;display:grid;gap:.55rem;margin:1.3rem 0 1.8rem}
.flist li{display:grid;grid-template-columns:auto 1fr;gap:.8rem;align-items:start;font-size:.97rem;color:var(--body)}
.flist .mk{color:var(--teal);margin-top:1px}
.steps{display:grid;gap:1rem;margin-top:1.6rem}
.step{display:grid;grid-template-columns:auto 1fr;gap:1.2rem;align-items:baseline;padding-top:1rem;border-top:1px solid var(--line)}
.step .t{font-family:'Newsreader';font-size:1.05rem;color:var(--teal-ink);font-weight:500;white-space:nowrap}
.step b{color:var(--ink);font-weight:600;font-size:1.02rem}
.step p{font-size:.9rem;color:var(--body);margin-top:.2rem}

/* Fees */
.fee-tbl{width:100%;border-collapse:collapse;margin-top:.5rem}
.fee-tbl thead th{text-align:left;font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;color:var(--grey);font-weight:600;padding:0 0 .9rem;border-bottom:2px solid var(--teal)}
.fee-tbl td{padding:1.05rem 0;border-bottom:1px solid var(--line);font-size:1rem;vertical-align:baseline}
.fee-tbl .cons{font-weight:600;color:var(--ink)}
.fee-tbl .n{font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap;padding-left:2rem;width:1%}
.fee-tbl .disc{color:var(--teal-ink);font-weight:600}
.fee-foot{margin-top:1.4rem;display:flex;flex-wrap:wrap;gap:.4rem 2.5rem;font-size:.88rem;color:var(--grey)}
.fee-foot b{color:var(--ink);font-weight:600}

/* CTA */
.cta{background:var(--teal-wash);text-align:center}
.cta .wrap{padding:clamp(3rem,6vw,4.5rem) 0}
.cta h2{font-size:clamp(2rem,4vw,3rem);font-weight:400;margin-bottom:.9rem}
.cta p{max-width:46ch;margin:0 auto 1.8rem;color:var(--body)}
.cta .row{display:flex;gap:.8rem;justify-content:center;flex-wrap:wrap}

/* Contact */
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(2.5rem,6vw,4.5rem)}
.contact h2{font-size:clamp(1.9rem,3.6vw,2.7rem);font-weight:400;margin-bottom:1rem}
.contact .lede{margin-bottom:2.2rem;max-width:40ch}
.ci{display:grid;grid-template-columns:90px 1fr;gap:1rem;padding:1.05rem 0;border-top:1px solid var(--line);align-items:start}
.ci:last-of-type{border-bottom:1px solid var(--line)}
.ci .k{font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:var(--teal-ink);font-weight:600;padding-top:.25rem}
.ci .v{color:var(--ink);font-weight:500}
.ci .v a:hover{color:var(--teal-ink)}
.ci .v small{display:block;font-weight:400;color:var(--grey);font-size:.86rem;margin-top:.15rem}
.map{border-radius:10px;overflow:hidden;border:1px solid var(--line);min-height:400px;background:var(--teal-wash)}
.map iframe{width:100%;height:100%;min-height:400px;border:0;display:block}
.afterhours{margin-top:2.6rem;border:1px solid var(--teal-line);background:var(--teal-wash);border-radius:10px;padding:1.7rem 1.9rem}
.afterhours h3{font-size:1.25rem;font-weight:500;margin-bottom:1.2rem}
.ah{display:grid;grid-template-columns:repeat(3,1fr);gap:1.6rem}
.ah .t{font-size:.74rem;letter-spacing:.1em;text-transform:uppercase;color:var(--teal-ink);font-weight:600;margin-bottom:.3rem}
.ah b{font-family:'Newsreader';font-size:1.2rem;color:var(--ink);font-weight:500;display:block;margin-bottom:.25rem}
.ah p{font-size:.86rem;color:var(--body)}

/* Footer */
footer{background:var(--teal-deep);color:#cdeced;padding:clamp(3rem,5vw,4rem) 0 1.8rem;position:relative;z-index:5}
.foot{display:grid;grid-template-columns:1.7fr 1fr 1fr 1fr;gap:2.2rem;padding-bottom:2.4rem;border-bottom:1px solid rgba(255,255,255,.16)}
.foot img{height:38px;margin-bottom:1.2rem;filter:brightness(0) invert(1)}
.foot .blurb{font-size:.92rem;line-height:1.7;max-width:36ch}
.foot h4{color:#fff;font-size:.74rem;letter-spacing:.12em;text-transform:uppercase;margin-bottom:1rem;font-weight:600}
.foot a,.foot .ln{display:block;color:#cdeced;font-size:.92rem;margin-bottom:.55rem;line-height:1.6}
.foot a:hover{color:#fff}
.foot-b{padding-top:1.5rem;display:flex;justify-content:space-between;flex-wrap:wrap;gap:.5rem;font-size:.8rem;color:#9ed3d5}

/* content is always visible; no scroll-reveal dependency */
/* cascading reveal: visible by default, only hidden when JS is on */
html.js .reveal{opacity:0;transform:translateY(18px);transition:opacity 1s cubic-bezier(.16,1,.3,1),transform 1s cubic-bezier(.16,1,.3,1)}
html.js .reveal.in{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){html.js .reveal{opacity:1;transform:none;transition:none}}

@media(max-width:920px){
  .hero-grid,.about-grid,.feature,.contact-grid{grid-template-columns:1fr}
  .feature.rev .f-media{order:0}
  .docs{grid-template-columns:repeat(2,1fr);gap:2rem}
  .hero-media{max-width:440px;margin-inline:auto}
  .ah{grid-template-columns:1fr}
  .foot{grid-template-columns:1fr 1fr}
}
/* hide phone in the bar before it can crowd the menu */
@media(max-width:1180px){ .nav-cta .tel{display:none} }

/* tablet and below: hamburger panel with accordion dropdowns */
@media(max-width:1024px){
  .burger{display:flex}
  .nav{padding:.85rem 0}
  .nav .logo img{height:34px}
  .nav-cta{gap:.7rem}
  .nav-cta .btn-primary{padding:.62rem 1.05rem;font-size:.88rem;white-space:nowrap}
  #menu{position:fixed;left:0;right:0;top:62px;flex-direction:column;align-items:stretch;
    background:#fff;margin:0;padding:.2rem 6vw 1.2rem;gap:0;
    border-top:1px solid var(--line);border-bottom:1px solid var(--line);
    box-shadow:0 24px 36px -26px rgba(0,0,0,.4);
    opacity:0;visibility:hidden;transform:translateY(-12px);
    transition:transform .32s cubic-bezier(.22,1,.36,1),opacity .24s ease,visibility 0s .32s;
    max-height:calc(100dvh - 62px);overflow-y:auto}
  #menu.open{transform:none;opacity:1;visibility:visible;transition-delay:0s}
  #menu>li{border-bottom:1px solid var(--line)}
  #menu>li:last-child{border-bottom:none}
  .has-sub{position:static}
  .has-sub::after{display:none}
  .par{justify-content:space-between}
  .par>a{flex:1;display:block;padding:1rem .15rem;font-size:1.04rem;opacity:1;font-weight:500}
  .subtoggle{pointer-events:auto;cursor:pointer;padding:.9rem .35rem;margin-right:-.35rem}
  .subtoggle svg{width:15px;height:15px;opacity:.85}
  .has-sub.open .subtoggle svg{transform:rotate(180deg)}
  .sub{position:static;left:auto;opacity:1;visibility:visible;transform:none;min-width:0;text-align:left;
    background:transparent;border:none;border-radius:0;box-shadow:none;padding:0 0 .7rem .9rem;margin:0}
  .has-sub:hover .sub,.has-sub:focus-within .sub{transform:none}
  .sub a{padding:.72rem .3rem;font-size:.97rem;opacity:.9}
  .sub .lead-link{border-bottom:none;margin:0;padding:.72rem .3rem;font-weight:600}
  .nav ul.docs-sub{grid-template-columns:repeat(3,1fr);gap:.35rem;min-width:0;padding:.4rem 0 .9rem;text-align:center}
  .sub a.docmenu{padding:.4rem .2rem;gap:.4rem;font-size:.68rem;line-height:1.2}
  .sub a.docmenu .thumb{max-width:none}
  .submenu-panel{display:grid;grid-template-rows:0fr;opacity:0;
    transition:grid-template-rows .36s cubic-bezier(.22,1,.36,1),opacity .24s ease}
  .submenu-panel>.sub{min-height:0;overflow:hidden;padding-top:0;padding-bottom:0;
    visibility:hidden;transition:visibility 0s .36s,padding .36s cubic-bezier(.22,1,.36,1)}
  .has-sub.open .submenu-panel{grid-template-rows:1fr;opacity:1}
  .has-sub.open .submenu-panel>.sub{visibility:visible;padding-bottom:.7rem;transition-delay:0s}
  .has-sub.open .submenu-panel>.docs-sub{padding-top:.4rem;padding-bottom:.9rem}
  .has-sub:not(.open) .subtoggle svg{transform:none}
}
@media(max-width:620px){
  .nav{padding:.75rem 0}
  .nav .logo img{height:28px}
  #menu{top:56px;max-height:calc(100dvh - 56px)}
  .nav-cta{gap:.55rem}
  .nav-cta .btn-primary{padding:.5rem .82rem;font-size:.82rem}
  .docs,.svc-grid{grid-template-columns:1fr}
  .foot{grid-template-columns:1fr}
  .fee-tbl .hide{display:none}
}

/* ---- subpage links from home ---- */
.dr{display:block;color:inherit}
.dr:hover h3{color:var(--teal-ink)}
.svc{color:inherit}
.svc:hover h3{color:var(--teal-ink)}
.inline-link{color:var(--teal-ink);font-weight:600;border-bottom:1px solid var(--teal-line);white-space:nowrap}
.inline-link:hover{border-color:var(--teal)}
/* ---- subpages ---- */
.breadcrumb{font-size:.82rem;color:var(--grey);padding-top:1.4rem}
.breadcrumb a:hover{color:var(--teal-ink)}
.breadcrumb b{color:var(--ink);font-weight:500}
.subhero{padding:.8rem 0 clamp(2.5rem,5vw,3.5rem)}
.subhero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(2.5rem,6vw,5rem);align-items:center}
.subhero h1{font-size:clamp(2.2rem,4.6vw,3.4rem);font-weight:400;margin:1rem 0 1.1rem}
.subhero h1 .it{font-style:italic;color:var(--teal-ink)}
.subhero .lede{max-width:46ch;margin-bottom:1.7rem}
.subhero .photo img{width:100%;aspect-ratio:1/1.05;object-fit:cover;object-position:center top;border-radius:10px}
.quals{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1.8rem}
.qual{font-size:.77rem;font-weight:600;color:var(--teal-ink);background:var(--teal-wash);border:1px solid var(--teal-line);padding:.34rem .7rem;border-radius:100px}
.subbody{padding:clamp(2.8rem,5vw,4rem) 0}
.narrow{max-width:780px}
.block{padding-top:2.3rem;margin-top:2.3rem;border-top:1px solid var(--line)}
.block:first-child{border:none;margin:0;padding:0}
.block h2{font-size:clamp(1.5rem,2.6vw,1.95rem);font-weight:500;margin-bottom:1rem}
.block h2.icon-h2{display:flex;align-items:center;gap:.6rem}
.block h2.icon-h2 .ico{width:1.05em;height:1.05em;flex:none;color:var(--teal)}
.block p{margin-bottom:1rem;max-width:70ch}
/* tabbed detail sections: on-brand segmented control; panel height stays fixed to the tallest panel */
.tabs .tablist{display:inline-flex;flex-wrap:wrap;gap:.25rem;background:var(--teal-wash);border:1px solid var(--teal-line);border-radius:11px;padding:.3rem;margin-bottom:1.9rem}
.tabs .tab{appearance:none;-webkit-appearance:none;background:none;border:0;cursor:pointer;border-radius:8px;padding:.62rem 1.25rem;font-family:'Inter',system-ui,sans-serif;font-weight:600;font-size:.92rem;letter-spacing:.01em;color:var(--teal-ink);opacity:.62;transition:background .2s,opacity .2s,box-shadow .2s}
.tabs .tab:hover{opacity:1}
.tabs .tab[aria-selected="true"]{background:#fff;color:var(--teal-ink);opacity:1;box-shadow:0 1px 4px rgba(12,112,119,.12)}
.tabs .tab:focus-visible{outline:2px solid var(--teal);outline-offset:2px}
/* stack panels in one grid cell so the box is always as tall as the tallest panel (no resize on toggle) */
.tabs .panels{display:grid}
.tabs .panels>.tabpanel{grid-area:1 / 1;visibility:hidden;opacity:0;transition:opacity .3s ease}
.tabs .panels>.tabpanel.is-active{visibility:visible;opacity:1}
.tabs .panels>.tabpanel:focus{outline:none}
.tabs .tabpanel>:first-child{margin-top:0}
.tabs .tabpanel>:last-child{margin-bottom:0}
.tabs .flist{margin:0}
@media(prefers-reduced-motion:reduce){.tabs .panels>.tabpanel{transition:none}}
.people{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:1.6rem;margin-top:.5rem}
.person{display:block;color:inherit}
.person .pic{aspect-ratio:1/1.1;border-radius:10px;overflow:hidden;background:var(--teal-wash)}
.person img{width:100%;height:100%;object-fit:cover;object-position:center top;transition:transform .5s ease}
.person:hover img{transform:scale(1.04)}
.person h3{font-size:1.1rem;font-weight:500;margin:.7rem 0 .12rem}
.person:hover h3{color:var(--teal-ink)}
.person .role{font-size:.74rem;text-transform:uppercase;letter-spacing:.05em;color:var(--teal-ink);font-weight:600}
.related{background:var(--teal-wash)}
.related h2{font-size:clamp(1.6rem,3vw,2.1rem);font-weight:400;margin-bottom:1.8rem}
@media(max-width:920px){
  .subhero-grid{grid-template-columns:1fr}
  .subhero .photo{max-width:440px;margin-inline:auto;order:-1}
}

/* ===== subpage layout system (v2) ===== */
.subhead{max-width:680px}
.subhead .eyebrow{display:block;margin-bottom:.9rem}
.subhead h1{font-size:clamp(2.2rem,4.6vw,3.3rem);font-weight:400;margin:0 0 1.1rem}
.subhead h1 .it{font-style:italic;color:var(--teal-ink)}
.subhead .lede{color:var(--body)}
.detail{display:grid;grid-template-columns:1.7fr 1fr;gap:clamp(2.5rem,5vw,4.5rem);align-items:start}
.detail-main .block:first-child{border:none;margin:0;padding:0}
.detail-aside{position:sticky;top:96px;background:var(--teal-wash);border:1px solid var(--teal-line);border-radius:14px;padding:1.7rem 1.8rem}
.detail-aside h3{font-size:1.05rem;font-weight:600;margin:0 0 .9rem;color:var(--ink)}
.detail-aside .block2{margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid var(--teal-line)}
.detail-aside .block2:first-child{margin:0;padding:0;border:none}
.detail-aside .flist li{border-bottom-color:var(--teal-line)}
.detail-aside .btn{display:flex;width:100%;justify-content:center;margin-top:1.5rem}
.detail-aside .btn:first-child{margin-top:0}
.taglist{display:flex;flex-wrap:wrap;gap:.45rem}
.tag{font-size:.74rem;font-weight:600;color:var(--teal-ink);background:#fff;border:1px solid var(--teal-line);padding:.34rem .72rem;border-radius:100px}
.aside-people{display:grid;gap:.65rem}
.aside-person{display:flex;align-items:center;gap:.75rem;font-size:.92rem;font-weight:500;color:var(--ink)}
.aside-person:hover{color:var(--teal-ink)}
.aside-person img{width:42px;height:42px;border-radius:50%;object-fit:cover;object-position:center top;flex:none;background:#fff}
.aside-note{font-size:.84rem;color:var(--grey);margin-top:1.2rem}
@media(max-width:920px){
  .detail{grid-template-columns:1fr;gap:2.2rem}
  .detail-aside{position:static}
}

/* ===== homepage hero choreography ===== */
@keyframes heroUp{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
@keyframes heroWord{from{opacity:0;transform:translateY(.55em)}to{opacity:1;transform:none}}
.hero h1 .hw{display:inline-block}
@keyframes heroReveal{
  0%{clip-path:inset(0 0 0 100% round 10px)}
  20%{clip-path:inset(0 0 0 100% round 10px);animation-timing-function:linear}
  62%,100%{clip-path:inset(0 0 0 0 round 10px)}
}
@keyframes heroWipe{
  0%{left:calc(100% - 5px);top:50%;bottom:50%;width:5px;animation-timing-function:cubic-bezier(.22,.61,.36,1)}
  20%{left:calc(100% - 5px);top:0;bottom:0;width:5px;animation-timing-function:linear}
  62%{left:-14px;top:0;bottom:0;width:5px;animation-timing-function:cubic-bezier(.4,0,.2,1)}
  82%{left:-14px;top:42px;bottom:42px;width:3px}
  100%{left:-14px;top:42px;bottom:42px;width:3px}
}
.hero-media{overflow:visible}
.hero-rule{z-index:3}
@media(prefers-reduced-motion:no-preference){
  html.js .hero h1 .hw{opacity:0;transform:translateY(.55em);animation:heroWord .8s cubic-bezier(.16,1,.3,1) both;animation-delay:calc(.15s + var(--i,0)*.085s)}
  html.js .hero .eyebrow{animation:heroUp 1s cubic-bezier(.16,1,.3,1) 1s both}
  html.js .hero .lede{animation:heroUp 1s cubic-bezier(.16,1,.3,1) 1.2s both}
  html.js .hero .hero-cta{animation:heroUp 1s cubic-bezier(.16,1,.3,1) 1.4s both}
  html.js .hero-media img{animation:heroReveal 1.9s cubic-bezier(.62,0,.2,1) .8s both}
  html.js .hero-rule{animation:heroWipe 1.9s cubic-bezier(.62,0,.2,1) .8s both}
}

body{position:relative}
.doc-track{position:relative}

/* Four-doctor listings and supplied landscape banner films. */
@media(min-width:1001px){.docs{grid-template-columns:repeat(4,minmax(0,1fr))}.nav ul.docs-sub{grid-template-columns:repeat(4,minmax(0,1fr));min-width:680px}}
@media(max-width:680px){.nav ul.docs-sub{grid-template-columns:repeat(2,minmax(0,1fr))}}
.video-banner{position:relative;overflow:hidden;border-radius:10px;background:var(--teal-wash)}
.video-banner video{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:10px}
.hero-media:has(.video-banner),.subhero .photo:has(.video-banner){max-width:none;width:100%}

/* Full-width video heroes, scoped to the homepage and doctor profiles. */
.video-hero{position:relative;isolation:isolate;display:grid;align-items:center;min-height:76svh;padding:clamp(4rem,7vw,7rem) 0 6rem;background:#123d3a;color:white;overflow:hidden}
.video-hero .video-banner{position:absolute;inset:0;border-radius:0;background:#123d3a;z-index:-1}
.video-hero .video-banner::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,30,29,.86) 0%,rgba(8,30,29,.7) 42%,rgba(8,30,29,.16) 100%);pointer-events:none}
.video-hero .video-banner video{width:100%;height:100%;aspect-ratio:auto;object-fit:cover;object-position:center;border-radius:0}
.video-hero-content{position:relative;pointer-events:none}
.video-hero-content a{pointer-events:auto}
.video-hero h1{max-width:18ch;color:white;text-wrap:balance}
.video-hero h1 .it,.video-hero .eyebrow,.video-hero .lede{color:white}
.video-hero .lede{max-width:48ch;line-height:1.65}
.video-hero .quals{max-width:620px}
.video-hero .qual{color:white;background:rgba(8,30,29,.55);border-color:rgba(255,255,255,.5)}
.video-hero .btn-line{color:white;border-color:rgba(255,255,255,.8);background:rgba(8,30,29,.3)}
.video-hero .btn-line:hover{background:rgba(8,30,29,.65)}
@media(max-width:680px){
  .video-hero{min-height:80svh;padding:3.5rem 0 6rem}
  .video-hero .video-banner::after{background:linear-gradient(0deg,rgba(8,30,29,.9),rgba(8,30,29,.62))}
  .video-hero h1{font-size:clamp(2.2rem,9vw,3rem);max-width:19ch}
  .video-hero .lede{font-size:1rem}
}

/* Consistent doctor portrait framing without changing the source photographs. */
.dr .pic,.person .pic,.sub a.docmenu .thumb{aspect-ratio:4/5}
.dr .pic img,.person .pic img,.sub a.docmenu .thumb img,.doctor-avatar img{
  object-fit:cover;object-position:var(--portrait-position,50% 0%);
  transform:scale(var(--portrait-scale,1));transform-origin:var(--portrait-origin,50% 0%);
}
img[src$="em-75.webp"]{--portrait-position:95% 0%;--portrait-scale:1.4;--portrait-origin:50% 0%}
img[src$="em-64.webp"]{--portrait-position:95% 0%;--portrait-scale:1.05;--portrait-origin:50% 0%}
img[src$="em-47.webp"]{--portrait-position:95% 0%;--portrait-scale:1.05;--portrait-origin:50% 0%}
img[src$="EM Medical-90.png"]{--portrait-position:46% 0%;--portrait-scale:1.18;--portrait-origin:50% 25%}
.dr:hover .pic img,.person:hover .pic img,.sub a.docmenu:hover .thumb img{transform:scale(calc(var(--portrait-scale,1)*1.035))}
.doctor-avatar{display:block;width:42px;height:42px;flex:none;border-radius:50%;overflow:hidden;background:var(--teal-wash)}
.aside-person .doctor-avatar img{display:block;width:100%;height:125%;max-width:none;border-radius:0}
@media(prefers-reduced-motion:reduce){.dr .pic img,.person .pic img,.sub a.docmenu .thumb img{transition:none}}

/* Show the entire four-doctor team photo at its natural landscape ratio. */
.subhero .photo img.team-photo,.about-media img.team-photo{display:block;width:100%;height:auto;aspect-ratio:auto;object-fit:contain;object-position:center;transform:none}

/* New shoot photos retain their complete landscape compositions. */
.subhero .photo img.shoot-photo,.feature .f-media img.shoot-photo{display:block;width:100%;height:auto;aspect-ratio:auto;object-fit:contain;object-position:center;transform:none}

@media(prefers-reduced-motion:reduce){#menu,.submenu-panel,.submenu-panel>.sub,.subtoggle svg{transition:none!important}}
