.doctor-profile{background:var(--paper)}
.profile-hero{position:relative;isolation:isolate;min-height:720px;height:min(900px,100svh);overflow:hidden;background:var(--brand);color:#fff}
.profile-hero__image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 36%;z-index:-3}
.profile-hero__veil{position:absolute;inset:0;z-index:-2;background:linear-gradient(90deg,rgba(18,26,28,.75),rgba(18,26,28,.52) 35%,rgba(18,26,28,.08) 67%,transparent)}
.profile-hero__back{position:absolute;top:110px;left:var(--pad);font-size:14px;border-bottom:1px solid rgba(255,255,255,.65);padding-bottom:10px}
.profile-hero__copy{position:absolute;left:var(--pad);right:var(--pad);bottom:64px;max-width:650px}
.profile-hero h1{margin:0;font-size:clamp(64px,6.4vw,96px);font-weight:500;line-height:1.02;letter-spacing:-.025em}
.profile-hero h1 span{display:block;font:clamp(23px,2.4vw,36px)/1.3 Helvetica,Arial,sans-serif;letter-spacing:0;margin-bottom:12px}
.profile-hero__role{max-width:480px;margin:24px 0 0;font-size:20px;line-height:1.5}
.profile-hero__experience{margin:16px 0 0;font-size:16px;line-height:1.4}
.profile-book{display:inline-flex;align-items:center;justify-content:center;min-height:54px;padding:16px 24px;background:var(--signal);color:#fff;border-radius:0 18px 0 18px;font:16px/1.4 Helvetica,Arial,sans-serif;transition:background-color 180ms ease}
.profile-book:hover{background:var(--signal-hover)}
.profile-hero .profile-book{margin-top:30px}
.profile-hero--portrait .profile-hero__image{left:auto;width:56%;object-position:center 28%}
.profile-nav{display:flex;gap:32px;align-items:center;flex-wrap:wrap;padding:24px var(--pad);border-bottom:1px solid var(--line);font-size:15px;line-height:1.4}
.profile-nav a{padding:8px 0}
.profile-nav a:hover{color:var(--signal-hover)}
.profile-section{padding:80px var(--pad);scroll-margin-top:90px}
.profile-section h2{margin:0;font-size:clamp(36px,4vw,58px);font-weight:500;line-height:1.08;letter-spacing:-.025em}
.profile-about{display:grid;grid-template-columns:1fr 1fr;gap:clamp(32px,5vw,80px)}
.profile-about__content>p{margin:0 0 24px;font-size:18px;line-height:1.6;max-width:58ch}
.profile-about__content .profile-lead{font-size:26px;line-height:1.4}
.profile-directions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
.profile-directions a{display:inline-block;padding:12px 16px;background:var(--stone);font-size:15px;line-height:1.4;border-radius:0 12px 0 12px}
.profile-directions a:hover{background:var(--signal);color:#fff}
.profile-education{margin-top:32px;border-top:1px solid var(--line);padding-top:20px}
.profile-education summary{cursor:pointer;font-size:16px;line-height:1.5}
.profile-education p{font-size:16px;line-height:1.6;max-width:55ch}
.profile-services{display:grid;grid-template-columns:1fr 1fr;gap:clamp(32px,5vw,80px);background:var(--stone)}
.profile-services header>p{max-width:35ch;margin:24px 0 12px;font-size:17px;line-height:1.6}
.profile-services__list>a{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:23px 0;border-top:1px solid var(--line);font-size:clamp(20px,2vw,27px);line-height:1.3}
.profile-services__list>a:last-child{border-bottom:1px solid var(--line)}
.profile-services__list>a:hover{color:var(--signal-hover)}
.profile-services__more{flex-shrink:0;font:13px/1.4 Helvetica,Arial,sans-serif}
.profile-cases>header{display:flex;align-items:flex-end;justify-content:space-between;gap:32px;margin-bottom:36px}
.profile-cases>header p{margin:0;max-width:43ch;font-size:17px;line-height:1.6}
.profile-cases__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--home-tile-gap)}
.profile-case{min-width:0;background:var(--stone);padding:12px 12px 24px;border-radius:0 28px 0 28px;overflow:hidden}
.profile-case:first-child{grid-column:1/-1}
.profile-case:nth-child(even){border-radius:28px 0 28px 0}
.profile-case__pair{display:grid;grid-template-columns:1fr 1fr;gap:var(--home-tile-gap)}
.profile-case figure{margin:0;min-width:0}
.profile-case img{display:block;width:100%;height:auto;aspect-ratio:1.75;object-fit:contain;background:#202829}
.profile-case figcaption{padding-top:10px;font-size:13px;line-height:1.4}
.profile-case__caption{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding:22px 12px 0}
.profile-case h3{margin:0;font-size:clamp(19px,2vw,27px);font-weight:500;line-height:1.25;max-width:30ch}
.profile-case__caption>span{font-size:13px;line-height:1.4;flex-shrink:0}
.profile-case a:hover h3{color:var(--signal-hover)}
.profile-cases__note{margin:24px 0 0;font-size:14px;line-height:1.6;max-width:75ch}
.profile-next{display:grid;grid-template-columns:1fr 1fr;gap:24px 60px;border-top:1px solid var(--line)}
.profile-next h2{grid-row:span 2}
.profile-next p{margin:0;max-width:45ch;font-size:18px;line-height:1.6}
.profile-next .profile-book{justify-self:start}
.clinical-case-page{padding-top:80px;background:var(--paper)}
.clinical-case-heading{padding-bottom:36px}
.clinical-case-heading h1{margin:28px 0 24px;font-size:clamp(38px,5vw,72px);line-height:1.1;letter-spacing:-.025em;max-width:1000px}
.clinical-case-heading>p{font-size:18px;line-height:1.6;margin:0}
.clinical-case-heading>p a{border-bottom:1px solid currentColor;padding-bottom:10px;display:inline-block}
.clinical-case-photos{display:grid;grid-template-columns:1fr 1fr;gap:var(--home-tile-gap);padding-top:0;padding-bottom:48px}
.clinical-case-photos figure{margin:0}
.clinical-case-photos img{width:100%;height:auto;aspect-ratio:1.5;object-fit:contain;background:#202829}
.clinical-case-photos figcaption{margin-top:14px;font-size:16px}
.clinical-case-context{display:grid;grid-template-columns:1fr 1fr;gap:60px;padding-top:32px}
.clinical-case-context p{font-size:18px;line-height:1.6;margin:0 0 20px}
.profile-missing{padding:140px var(--pad)}
@media(max-width:1050px){
  .profile-hero__copy{max-width:53%;bottom:48px}
  .profile-hero h1{font-size:64px}
  .profile-hero__role{font-size:18px}
  .profile-section{padding-block:64px}
  .profile-case__caption{display:block}
  .profile-case__caption>span{display:block;margin-top:12px}
}
@media(max-width:700px){
  .profile-hero{min-height:790px;height:100svh;max-height:960px}
  .profile-hero__image{object-position:71% top;height:68%;top:64px}
  .profile-hero__veil{background:linear-gradient(0deg,rgba(20,29,31,1) 10%,rgba(20,29,31,.97) 24%,rgba(20,29,31,.65) 43%,transparent 68%)}
  .profile-hero__back{top:86px;font-size:13px;background:rgba(20,29,31,.6);padding:8px 10px;border-bottom:0}
  .profile-hero__copy{bottom:36px;max-width:none}
  .profile-hero h1{font-size:clamp(44px,12vw,64px)}
  .profile-hero h1 span{font-size:23px;margin-bottom:8px}
  .profile-hero__role{margin-top:18px;font-size:17px;max-width:340px}
  .profile-hero__experience{margin-top:12px;font-size:15px}
  .profile-hero .profile-book{margin-top:22px}
  .profile-book{font-size:15px;padding-inline:20px}
  .profile-hero--portrait .profile-hero__image{width:100%;height:72%;object-position:center 24%}
  .profile-nav{gap:8px 24px;padding-block:18px;font-size:14px}
  .profile-section{padding-block:48px}
  .profile-section h2{font-size:36px}
  .profile-about,.profile-services,.clinical-case-context,.profile-next{grid-template-columns:1fr;gap:28px}
  .profile-about__content .profile-lead{font-size:23px}
  .profile-about__content>p{font-size:17px}
  .profile-services header>p{margin-top:20px}
  .profile-services__list>a{font-size:21px;padding-block:20px;gap:16px}
  .profile-cases>header{display:block;margin-bottom:28px}
  .profile-cases>header p{margin-top:20px;font-size:16px}
  .profile-cases__grid{grid-template-columns:1fr}
  .profile-case__caption{padding-top:18px}
  .profile-case h3{font-size:21px}
  .profile-case__pair{gap:8px}
  .profile-case figcaption{font-size:12px}
  .profile-next h2{grid-row:auto}
  .profile-next p{font-size:17px}
  .clinical-case-page{padding-top:64px}
  .clinical-case-heading{padding-bottom:28px}
  .clinical-case-photos{grid-template-columns:1fr;padding-top:0;gap:28px}
  .clinical-case-context{padding-top:0}
}
.accessible .profile-hero{height:auto;min-height:0;padding:130px var(--pad) 48px;color:var(--ink);background:var(--paper)}
.accessible .profile-hero__image,.accessible .profile-hero__veil{display:none}
.accessible .profile-hero__back{position:static;background:none}
.accessible .profile-hero__copy{position:static;max-width:none;margin-top:32px}

/* Profile identity and single-row clinical comparisons. */
.profile-hero__copy{max-width:780px}
.doctor-profile .profile-hero h1{font-size:clamp(72px,7.2vw,112px)!important}
.profile-hero h1 span{font-size:clamp(30px,3vw,44px)}
.profile-hero h1 strong{display:block;font-weight:inherit;color:var(--signal);overflow-wrap:anywhere}
.profile-hero__experience{display:table;padding:10px 16px;font-size:20px;line-height:1.3;font-weight:600;background:var(--signal);border-radius:0 12px 0 12px}
.case-rail-controls{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px}
.case-rail-controls p{margin:0;font-size:14px;line-height:1.5}
.case-rail-controls>div{display:flex;gap:12px}
.case-rail-controls button,.case-lightbox__nav button{padding:10px 16px;min-height:44px;background:transparent;border:1px solid var(--line);color:var(--ink);cursor:pointer}
.case-rail-controls button:disabled{opacity:.35;cursor:default}
.profile-cases__grid{display:grid;grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:calc((100% - 36px)/4);gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-inline:contain;padding-bottom:14px;scrollbar-width:thin;scrollbar-color:var(--signal) transparent}
.profile-case,.profile-case:first-child{grid-column:auto;padding:10px 10px 20px;scroll-snap-align:start;border-radius:0 22px 0 22px}
.profile-case:nth-child(even){border-radius:22px 0 22px 0}
.case-compare{--comparison:50%;position:relative;isolation:isolate;width:100%;aspect-ratio:1.6;background:#202829;overflow:hidden}
.profile-case .case-compare img,.case-lightbox .case-compare img{position:absolute;inset:0;display:block;width:100%;height:100%;aspect-ratio:auto;object-fit:contain}
.case-compare .case-compare__before{z-index:1;clip-path:inset(0 calc(100% - var(--comparison)) 0 0)}
.case-compare::after{content:"";position:absolute;z-index:2;left:var(--comparison);top:0;bottom:0;width:2px;transform:translateX(-1px);background:#fff;pointer-events:none}
.case-compare__label{position:absolute;z-index:3;top:10px;padding:5px 8px;background:rgba(20,29,31,.8);color:#fff;font:12px/1.3 Helvetica,Arial,sans-serif;pointer-events:none}
.case-compare__label--before{left:10px}
.case-compare__label--after{right:10px}
.case-compare input[type=range]{position:absolute;z-index:4;inset:0;display:block;width:100%;height:100%;margin:0;padding:0;appearance:none;-webkit-appearance:none;background:transparent;cursor:ew-resize;touch-action:pan-y;border:0;border-radius:0}
.case-compare input[type=range]::-webkit-slider-runnable-track{height:40px;background:transparent}
.case-compare input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:40px;height:40px;border:3px solid #fff;border-radius:50%;background:var(--signal);box-shadow:0 2px 10px rgba(0,0,0,.2)}
.case-compare input[type=range]::-moz-range-track{height:40px;background:transparent}
.case-compare input[type=range]::-moz-range-thumb{width:34px;height:34px;border:3px solid #fff;border-radius:50%;background:var(--signal)}
.case-compare input[type=range]:focus-visible{outline:2px solid var(--signal);outline-offset:-3px}
.profile-case__caption{display:block;padding:18px 8px 0}
.profile-case h3{font-size:20px!important;line-height:1.3;margin:0;max-width:none}
.profile-case__open{display:inline-block;margin-top:14px;padding:8px 0;border:0;border-bottom:1px solid currentColor;background:none;color:var(--ink);cursor:pointer;font:14px/1.4 Helvetica,Arial,sans-serif}
.profile-case__open:hover{color:var(--signal-hover)}
.case-lightbox{width:min(1100px,calc(100vw - 48px));max-height:calc(100dvh - 48px);margin:auto;padding:28px;border:0;background:var(--paper);color:var(--ink);border-radius:0 28px 0 28px;overflow:auto}
.case-lightbox::backdrop{background:rgba(15,22,24,.85)}
.case-lightbox__head{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:24px}
.case-lightbox__head h2{margin:0;font-size:clamp(22px,3vw,32px)!important;line-height:1.25;max-width:35ch}
.case-lightbox__close{padding:10px 14px;border:1px solid var(--line);color:var(--ink);background:none;cursor:pointer;flex-shrink:0;min-height:44px}
.case-lightbox .case-compare{max-height:65dvh;aspect-ratio:1.75}
.case-lightbox__nav{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:20px}
.case-lightbox__nav span{font-size:14px;white-space:nowrap}
@media(max-width:1100px){.profile-cases__grid{grid-auto-columns:calc((100% - 12px)/2)}}
@media(max-width:700px){
 .doctor-profile .profile-hero h1{font-size:clamp(48px,14vw,68px)!important}
 .profile-hero h1 span{font-size:28px}
 .profile-hero__experience{font-size:18px;padding:9px 14px}
 .profile-cases__grid{grid-template-columns:none;grid-auto-columns:calc(100% - 28px)}
 .case-rail-controls{align-items:flex-start;gap:16px}
 .case-rail-controls p{max-width:18ch;font-size:13px}
 .case-rail-controls button{padding-inline:10px;font-size:13px}
 .case-rail-controls>div{gap:8px}
 .case-lightbox{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);padding:18px}
 .case-lightbox__head{display:block;position:relative;padding-top:54px;margin-bottom:18px}
 .case-lightbox__head h2{font-size:22px!important;overflow-wrap:normal;text-wrap:pretty}
 .case-lightbox__close{position:absolute;top:0;right:0;padding:8px;font-size:13px}
 .case-lightbox__nav{gap:8px}
 .case-lightbox__nav button{padding:10px;font-size:13px}
}

.case-compare input[type=range]{left:-20px;right:auto;width:calc(100% + 40px)}
/* Photo opens the lightbox; only the divider handle captures dragging. */
.case-compare__open{position:absolute;inset:0;z-index:3;width:100%;height:100%;padding:0;border:0;border-radius:0;background:transparent;cursor:zoom-in}
.case-compare__open:focus-visible{outline:2px solid var(--signal);outline-offset:-3px}
.case-compare input[type=range]{pointer-events:none}
.case-compare input[type=range]::-webkit-slider-thumb{pointer-events:auto;cursor:ew-resize}
.case-compare input[type=range]::-moz-range-thumb{pointer-events:auto;cursor:ew-resize}
.case-compare__grip{position:absolute;z-index:5;left:var(--comparison);top:50%;width:40px;height:40px;transform:translate(-50%,-50%);pointer-events:none}
.case-compare__grip::before,.case-compare__grip::after{content:"";position:absolute;top:16px;width:7px;height:7px;border-top:2px solid #fff;border-right:2px solid #fff}
.case-compare__grip::before{left:10px;transform:rotate(-135deg)}
.case-compare__grip::after{right:10px;transform:rotate(45deg)}
