/* MotionSites-inspired draft effects (11-19). Scoped under html.ms-on */

/* Draft badge */
.ms-badge{position:fixed;left:14px;bottom:14px;z-index:2147483000;background:#2b1d16;color:#f6efe6;font:600 12px/1 system-ui,sans-serif;letter-spacing:.06em;padding:9px 12px;border-radius:99px;box-shadow:0 6px 18px rgba(0,0,0,.18);pointer-events:none;opacity:.92}

/* 1 · Hero photo unveil (reveal-hero) */
html.ms-on .h-photo.ms-unveil{clip-path:inset(0 0 100% 0 round var(--r-xl,28px))}
html.ms-on .h-photo.ms-unveil.ms-in{clip-path:inset(0 0 0 0 round var(--r-xl,28px));transition:clip-path 1.4s cubic-bezier(.77,0,.18,1) .25s}
html.ms-on .h-photo.ms-unveil img,html.ms-on .h-photo.ms-unveil video{transform:scale(1.18);transition:transform 2.2s cubic-bezier(.2,.7,.1,1) .25s}
html.ms-on .h-photo.ms-unveil.ms-in img,html.ms-on .h-photo.ms-unveil.ms-in video{transform:scale(1)}

/* 2 · Collection = expanding panels (beauty-categories + nike-hover), desktop only */
@media (min-width:981px) and (pointer:fine){
 html.ms-on .svc-grid{display:flex;gap:14px}
 html.ms-on .svc-grid>.svc{flex:1 1 0;min-width:0;transition:flex-grow .7s cubic-bezier(.6,0,.2,1)}
 html.ms-on .svc-grid:hover>.svc{flex-grow:.8}
 html.ms-on .svc-grid>.svc:hover{flex-grow:1.7}
 html.ms-on .svc .svc-photo{overflow:hidden}
 html.ms-on .svc .svc-photo img{transition:transform 1s cubic-bezier(.2,.7,.1,1)}
 html.ms-on .svc:hover .svc-photo img{transform:scale(1.08)}
 html.ms-on .svc h3,html.ms-on .svc .eyebrow{transition:transform .6s cubic-bezier(.2,.7,.1,1)}
 html.ms-on .svc:hover h3{transform:translateY(-6px)}
 html.ms-on .svc:hover .eyebrow{transform:translateY(-4px)}
}

/* 3 · Story paragraph: scroll-scrubbed word reveal (orbis-hello) */
html.ms-on .ms-words .ms-wd{opacity:.16;transition:opacity .25s linear}
html.ms-on .ms-words .ms-wd.on{opacity:1}

/* 4 · Studio marquee (scroll-marquee) */
.ms-marquee{overflow:hidden;padding:clamp(18px,3vw,36px) 0;margin:clamp(10px,2vw,24px) 0 0;-webkit-mask:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);mask:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.ms-track{display:flex;width:max-content;will-change:transform}
.ms-track span{font-family:var(--f-display,Georgia,serif);font-size:clamp(34px,6.4vw,92px);line-height:1;white-space:nowrap;padding-right:.5em;color:var(--cocoa,#3a2a22)}
.ms-track span em{font-style:italic;color:var(--clay,#b05a37)}
.ms-track span i{font-style:normal;color:var(--clay,#b05a37);padding-left:.5em;font-size:.6em;vertical-align:.3em}

/* 5 · Treatment steps: progress line + steps light up (nexacore-process) */
html.ms-on .tp-steps.ms-proc{position:relative}
html.ms-on .tp-steps.ms-proc::before{content:"";position:absolute;left:0;right:0;top:-14px;height:3px;border-radius:3px;background:rgba(176,90,55,.15)}
html.ms-on .tp-steps.ms-proc::after{content:"";position:absolute;left:0;top:-14px;height:3px;border-radius:3px;background:var(--clay,#b05a37);width:calc(var(--ms-p,0)*100%)}
html.ms-on .tp-steps.ms-proc>li{transition:transform .5s cubic-bezier(.2,.7,.1,1),box-shadow .5s,opacity .5s;opacity:.45;transform:translateY(10px)}
html.ms-on .tp-steps.ms-proc>li.on{opacity:1;transform:none;box-shadow:0 0 0 1.5px var(--clay,#b05a37) inset,0 14px 30px rgba(58,42,34,.10)}
html.ms-on .tp-steps.ms-proc>li .tp-n{transition:color .4s}
html.ms-on .tp-steps.ms-proc>li.on .tp-n{color:var(--clay,#b05a37)}
@media (max-width:760px){html.ms-on .tp-steps.ms-proc::before,html.ms-on .tp-steps.ms-proc::after{left:-10px;right:auto;top:0;width:3px;height:100%}
 html.ms-on .tp-steps.ms-proc::after{height:calc(var(--ms-p,0)*100%)}}

/* 6 · Benefits checklist stagger (halo-benefits) */
html.ms-on .tp-checks.ms-stag>li{opacity:0;transform:translateX(-14px);transition:opacity .6s,transform .6s cubic-bezier(.2,.7,.1,1);transition-delay:calc(var(--k)*110ms)}
html.ms-on .tp-checks.ms-stag.ms-in>li{opacity:1;transform:none}
html.ms-on .tp-ben-pic{overflow:hidden}
html.ms-on .tp-ben-pic img{will-change:transform}

/* 7 · Pairs-well-with cards: rise + hover lift */
html.ms-on .tp-pairs-grid.ms-stag>.tp-pair{opacity:0;transform:translateY(26px);transition:opacity .7s,transform .7s cubic-bezier(.2,.7,.1,1),box-shadow .4s;transition-delay:calc(var(--k)*120ms)}
html.ms-on .tp-pairs-grid.ms-stag.ms-in>.tp-pair{opacity:1;transform:none}
@media (pointer:fine){html.ms-on .tp-pairs-grid.ms-in>.tp-pair:hover{transform:translateY(-6px);transition-delay:0s;box-shadow:0 18px 36px rgba(58,42,34,.12)}
 html.ms-on .tp-pair .round-arrow{transition:transform .4s cubic-bezier(.2,.7,.1,1)}
 html.ms-on .tp-pair:hover .round-arrow{transform:translateX(6px) rotate(-30deg)}}

/* 8 · FAQ smooth open/close (rocket-faq) — modern browsers; others open instantly */
html.ms-on{interpolate-size:allow-keywords}
html.ms-on .faq-item::details-content{height:0;overflow:clip;transition:height .5s cubic-bezier(.2,.7,.1,1),content-visibility .5s allow-discrete}
html.ms-on .faq-item[open]::details-content{height:auto}
html.ms-on .faq-item .faq-a{opacity:0;transform:translateY(-6px);transition:opacity .45s .08s,transform .45s .08s}
html.ms-on .faq-item[open] .faq-a{opacity:1;transform:none}

/* 9 · Footer lead-in marquee (orris / editorial footer) */
.ms-foot-marquee{padding:clamp(10px,2vw,22px) 0}
.ms-foot-marquee .ms-track span{font-size:clamp(28px,5vw,72px);color:var(--clay,#b05a37);opacity:.9}

@media (prefers-reduced-motion:reduce){
 html.ms-on .h-photo.ms-unveil{clip-path:none!important}
 html.ms-on .h-photo.ms-unveil img,html.ms-on .h-photo.ms-unveil video{transform:none!important}
 html.ms-on .ms-words .ms-wd{opacity:1}
 html.ms-on .tp-steps.ms-proc>li,html.ms-on .tp-checks.ms-stag>li,html.ms-on .tp-pairs-grid.ms-stag>.tp-pair{opacity:1;transform:none;transition:none}
 .ms-track{transform:none!important}
}

@media (max-width:980px){.ms-badge{bottom:auto;top:84px;left:50%;transform:translateX(-50%)}}
