/* Home page. Every selector is scoped under .page-home. */

/* 1 Hero: copy on the dark left, the clinic photo fading in on the right (the same language as the About opening) */
.page-home .hm-hero{position:relative;min-height:clamp(640px,92svh,940px);display:flex;align-items:center;padding-top:calc(var(--nav-h) + 48px);padding-bottom:clamp(48px,6vw,88px);overflow:hidden;isolation:isolate;background:var(--ink)}
.page-home .hm-hero-media{position:absolute;inset:0 0 0 30%;z-index:-2;margin:0;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 40%);mask-image:linear-gradient(90deg,transparent 0,#000 40%)}
.page-home .hm-hero-media img{width:100%;height:100%;object-fit:cover;object-position:38% 50%}
.page-home .hm-hero::before{content:'';position:absolute;inset:0;z-index:-1;background:
  linear-gradient(90deg,rgba(14,14,14,.5) 0%,rgba(14,14,14,.12) 48%,rgba(14,14,14,0) 70%,rgba(14,14,14,.35) 100%),
  linear-gradient(0deg,var(--ink) 0%,rgba(14,14,14,0) 30%),
  linear-gradient(180deg,rgba(14,14,14,.6) 0%,rgba(14,14,14,0) 24%)}
.page-home .hm-hero .grain{z-index:-1}
.page-home .hm-hero-inner{position:relative}
.page-home .hm-hero-copy{max-width:680px}
.page-home .hm-hero-copy>*+*{margin-top:clamp(20px,2.4vw,30px)}
.page-home .hm-hero-title{font-size:clamp(42px,5.8vw,88px);line-height:.98;letter-spacing:-.032em;max-width:12ch;text-wrap:balance}
.page-home .hm-hero .lead{max-width:42ch;color:#D2D2CD}
.page-home .hm-hero .actions{padding-top:6px}

/* 2 People we serve: the word rotation, then the three pathways */
.page-home .hm-people{background:var(--ink);padding-block:clamp(56px,7vw,104px) clamp(80px,10vw,144px);overflow:hidden}
.page-home .hm-people-head{display:flex;justify-content:center}
.page-home .hm-words{margin-top:clamp(12px,1.6vw,24px);text-align:center}
.page-home .hm-word-stage{--lines:2;--fs:clamp(46px,8vw,124px);position:relative;display:flex;align-items:center;justify-content:center;height:calc(var(--fs) * .98 * var(--lines))}
.page-home .hm-word{display:block;max-width:100%;font-size:var(--fs);font-weight:600;line-height:.98;letter-spacing:-.035em;color:var(--on-dark);text-wrap:balance;transition:color .6s ease}
.page-home .hm-words.is-settled .hm-word{color:var(--gold)}
.page-home .hm-track{position:relative;width:min(240px,50%);height:1px;margin:clamp(30px,3.6vw,48px) auto 0;background:var(--line-dark);overflow:hidden}
.page-home .hm-track-fill{position:absolute;inset:0;background:linear-gradient(90deg,#F6BD37,#E5972B);transform-origin:left;transform:scaleX(0)}
.page-home .hm-words.is-settled .hm-track-fill{transform:scaleX(1)}
.page-home .hm-people-end{display:grid;justify-items:center;gap:22px;margin-top:clamp(28px,3.4vw,44px);text-align:center}
.page-home .hm-matters{font-size:clamp(14px,1.3vw,17px);font-weight:500;letter-spacing:.32em;text-transform:uppercase;color:var(--on-dark);opacity:0;transform:translateY(10px);transition:opacity 1s ease,transform 1s var(--ease)}
.page-home .hm-people.is-done .hm-matters{opacity:1;transform:none}
.page-home .hm-replay{border:0;background:transparent;color:var(--on-dark-dim);cursor:pointer;padding:0 6px;opacity:0;visibility:hidden;transition:opacity .6s ease .6s,color .25s ease}
.page-home .hm-replay:hover{color:var(--on-dark)}
.page-home .hm-replay i{font-size:15px}
.page-home .hm-replay:hover i{transform:rotate(-90deg)}
.page-home .hm-people.is-done .hm-replay{opacity:1;visibility:visible}
@media (max-width:600px){.page-home .hm-word-stage{--lines:3;--fs:clamp(40px,12vw,56px)}}

.page-home .hm-serve-head{margin-top:clamp(72px,9vw,128px);padding-top:clamp(40px,5vw,64px);border-top:1px solid var(--line-dark);display:grid;gap:18px;max-width:840px}
.page-home .hm-paths{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(16px,2vw,28px);margin-top:clamp(40px,5vw,64px)}
.page-home .hm-path{display:flex;flex-direction:column;border-radius:20px;background:var(--ink-2);box-shadow:inset 0 0 0 1px var(--line-dark);overflow:hidden;transition:transform .4s var(--ease),box-shadow .4s ease}
.page-home .hm-path:hover{transform:translateY(-4px);box-shadow:inset 0 0 0 1px rgba(246,189,55,.55),0 30px 60px -36px rgba(0,0,0,.8)}
.page-home .hm-path .media{border-radius:0;aspect-ratio:5/4;background:var(--ink-3)}
.page-home .hm-path .media::after{display:none}
.page-home .hm-path .media img{transition:transform 1.2s var(--ease)}
.page-home .hm-path:hover .media img{transform:scale(1.04)}
.page-home .hm-path .media .hm-path-img-walk{object-position:30% 50%}
.page-home .hm-path-body{display:flex;flex-direction:column;flex:1;padding:clamp(22px,2.2vw,30px)}
.page-home .hm-path-kicker{font-size:11.5px;font-weight:500;letter-spacing:.18em;text-transform:uppercase;color:var(--gold)}
.page-home .hm-path-text{margin-top:12px;margin-bottom:22px;font-size:clamp(17px,1.45vw,20px);font-weight:400;line-height:1.38;letter-spacing:-.01em;color:var(--on-dark);text-wrap:pretty}
.page-home .hm-path .text-link{margin-top:auto;color:var(--on-dark)}
.page-home .hm-path:hover .text-link i{transform:translateX(4px)}
.page-home .hm-pro{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 24px;margin-top:clamp(28px,3.4vw,44px);padding-top:20px;border-top:1px solid var(--line-dark)}
.page-home .hm-pro-label{font-size:clamp(16px,1.4vw,19px);font-weight:300;color:var(--on-dark-mute)}
@media (max-width:900px){
  .page-home .hm-paths{grid-template-columns:1fr}
  .page-home .hm-path{flex-direction:row}
  .page-home .hm-path .media{flex:0 0 42%;aspect-ratio:auto;min-height:220px}
}
@media (max-width:600px){
  .page-home .hm-path{flex-direction:column}
  .page-home .hm-path .media{flex:none;aspect-ratio:16/10;min-height:0}
}

/* 3 Four steps, then the first service, dark into light */
.page-home .hm-steps{background:var(--ink);padding-top:clamp(56px,7vw,104px);padding-bottom:0}
.page-home .hm-step-list{list-style:none;position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(16px,1.8vw,24px);margin-top:clamp(48px,6vw,80px)}
.page-home .hm-step-list::before{content:'';position:absolute;left:0;right:0;top:0;height:1px;background:linear-gradient(90deg,rgba(246,189,55,.55),rgba(255,255,255,.12) 70%,rgba(255,255,255,0))}
.page-home .hm-step{position:relative;padding:clamp(36px,3.4vw,48px) clamp(4px,1vw,12px) 0 0}
.page-home .hm-step-dot{position:absolute;left:0;top:-5px;width:11px;height:11px;border-radius:50%;background:linear-gradient(135deg,#F6BD37,#E5972B);box-shadow:0 0 0 5px var(--ink),0 0 18px rgba(246,189,55,.45)}
.page-home .hm-step-label{display:flex;align-items:baseline;gap:14px;font-size:11.5px;font-weight:500;letter-spacing:.2em;color:var(--on-dark-mute)}
.page-home .hm-step-label .num{font-size:11.5px}
.page-home .hm-step h3{margin-top:clamp(18px,2vw,26px);font-size:clamp(20px,1.7vw,24px);font-weight:500;letter-spacing:-.015em;line-height:1.18;max-width:18ch;min-height:2.36em}
.page-home .hm-step>p:last-child{margin-top:14px;font-size:15.5px;line-height:1.6;color:var(--on-dark-mute);max-width:32ch;text-wrap:pretty}
.page-home .hm-steps-foot{margin-top:clamp(36px,4.5vw,56px)}
.page-home .hm-first{margin-top:clamp(48px,6vw,88px);padding-top:clamp(40px,5vw,64px);padding-bottom:clamp(24px,3vw,40px);border-top:1px solid var(--line-dark);display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:clamp(28px,4.5vw,72px);align-items:center}
.page-home .hm-first-media{position:relative;margin:0;aspect-ratio:16/10;border-radius:20px;overflow:hidden;background:var(--ink);box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)}
.page-home .hm-first-media img,.page-home .hm-first-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:68% 50%}
.page-home .hm-first-video{opacity:0;transition:opacity 1.2s ease}
.page-home .hm-first-video.is-on{opacity:1}
.page-home .hm-first-copy>*+*{margin-top:clamp(16px,1.8vw,22px)}
.page-home .hm-first-copy .h2{max-width:12ch}
.page-home .hm-first-copy .copy{max-width:44ch}
.page-home .hm-fade{height:clamp(96px,10vw,140px);background:linear-gradient(180deg,#0E0E0E 0%,#14140F 40%,#4a4842 70%,#b8b5aa 90%,#F2F1EA 100%)}
@media (max-width:900px){
  .page-home .hm-step-list{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:48px}
  .page-home .hm-step-list::before{display:none}
  .page-home .hm-step{border-top:1px solid var(--line-dark)}
  .page-home .hm-first{grid-template-columns:1fr}
  .page-home .hm-first-media{aspect-ratio:16/11}
}
@media (max-width:600px){
  .page-home .hm-step-list{grid-template-columns:1fr;row-gap:0;margin-top:40px}
  .page-home .hm-step{padding:32px 0 36px}
  .page-home .hm-step h3{max-width:none;min-height:0}
  .page-home .hm-first-media{aspect-ratio:1/1}
  .page-home .hm-first-media img,.page-home .hm-first-video{object-position:50% 50%}
}

/* 4 Coverage is not access, and the Step Sciences Difference */
.page-home .hm-diff{padding-top:clamp(56px,7vw,104px)}
.page-home .hm-diff-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(40px,6vw,104px);align-items:start}
.page-home .hm-diff-head{position:sticky;top:calc(var(--nav-h) + 32px);display:grid;gap:22px;justify-items:start}
.page-home .hm-diff-head .h1{max-width:11ch}
.page-home .hm-diff-head .lead{max-width:40ch}
.page-home .hm-diff-kicker{margin-bottom:18px;font-size:clamp(17px,1.5vw,20px);font-weight:500;letter-spacing:-.01em;color:var(--on-light)}
.page-home .hm-diff-kicker span{display:block;margin-top:4px;font-weight:300;color:var(--on-light-mute)}
.page-home .hm-diff .faq summary{padding:26px 0}
.page-home .hm-diff .faq summary:hover{color:var(--bronze-2)}
@media (max-width:900px){
  .page-home .hm-diff-grid{grid-template-columns:1fr}
  .page-home .hm-diff-head{position:static}
}

/* 5 Closing band */
.page-home .hm-close{position:relative;overflow:hidden;text-align:center;padding-block:clamp(96px,12vw,184px);border-top:1px solid var(--line-light)}
.page-home .hm-close-mark{position:absolute;left:50%;top:50%;width:clamp(420px,52vw,760px);aspect-ratio:158/180;transform:translate(-50%,-50%);background:url('/assets/img/mark.svg') center/contain no-repeat;opacity:.07;pointer-events:none}
.page-home .hm-close-inner{position:relative;display:grid;justify-items:center;gap:clamp(32px,4vw,48px)}
.page-home .hm-close .display{max-width:16ch}
.page-home .hm-close .actions{justify-content:center}

/* hero at tablet and phone: the photo sits above the copy, the copy on ink */
@media (max-width:900px){
  .page-home .hm-hero{min-height:0;align-items:flex-end;padding-top:calc(var(--nav-h) + 300px)}
  .page-home .hm-hero-media{inset:0;height:min(520px,66vh);-webkit-mask-image:none;mask-image:none}
  .page-home .hm-hero-media img{object-position:50% 45%}
  .page-home .hm-hero::before{background:linear-gradient(0deg,var(--ink) 0,var(--ink) 30%,rgba(14,14,14,.6) 48%,rgba(14,14,14,0) 70%,rgba(14,14,14,.55) 100%)}
}
@media (max-width:600px){
  .page-home .hm-hero{padding-top:calc(var(--nav-h) + 250px);padding-bottom:40px}
  .page-home .hm-hero-media{height:min(460px,60vh)}
  .page-home .hm-hero-title{font-size:clamp(40px,11vw,52px)}
  .page-home .hm-hero .actions .btn{flex:1 1 auto}
  .page-home .hm-close .actions{flex-direction:column;width:100%}
  .page-home .hm-close .actions .btn{width:100%}
}
