/* Six scenes, one native scroll. Static cards are the default presentation. */
.service-story { position: relative; }
.pane-stage { position: relative; }
.pane-rail { display: none; }
.service-pane { background: var(--card-color, var(--lilac)); display: grid; grid-template-columns: 44% 56%; min-height: 640px; }
.pane-copy { padding: clamp(45px, 6vw, 95px) clamp(25px, 4.5vw, 76px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.pane-copy .eyebrow { font-size: 10px; letter-spacing: .12em; margin-bottom: 30px; }
.pane-copy h3 { font-size: clamp(44px, 4.5vw, 78px); line-height: 1.03; letter-spacing: -.052em; max-width: 9ch; text-wrap: balance; }
.pane-copy p { font-size: 15px; line-height: 1.75; max-width: 32ch; margin: 25px 0 27px; }
.pane-copy .button { min-height: 48px; background: transparent; gap: 25px; }
.pane-copy .button:hover { background: var(--cream); }
.pane-photo { position: relative; overflow: hidden; min-width: 0; }
.pane-photo img { height: 100%; width: 100%; object-fit: cover; }
.pane-photo figcaption { position: absolute; bottom: 28px; left: 30px; right: 30px; display: flex; justify-content: space-between; gap: 20px; font-size: 9px; letter-spacing: .1em; color: var(--cream); text-shadow: 0 1px 6px #000b; z-index: 1; }
.pane-photo::after { content: ''; position: absolute; inset: 65% 0 0; background: linear-gradient(transparent, #3024345c); pointer-events: none; }
#after-services { scroll-margin-top: 130px; }
.services-note { padding-block: 4px 20px; }

.service-story.is-pinned { height: calc(var(--pane-height) + var(--pane-travel)); }
.is-pinned .pane-stage { position: sticky; top: var(--pane-top); height: var(--pane-height); min-height: 0; overflow: hidden; isolation: isolate; background: var(--pane-color, var(--lilac)); }
.is-pinned .pane-rail { position: absolute; inset: 0 0 auto; height: 64px; z-index: 12; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-inline: clamp(22px, 3vw, 50px); background: var(--cream); border-bottom: 1px solid var(--line); }
.pane-rail-label { font-size: 9px; letter-spacing: .11em; white-space: nowrap; }
.pane-nav { display: flex; gap: clamp(9px, 1.7vw, 28px); align-items: center; }
.pane-nav button { border: 0; background: none; padding: 11px 0; font-size: 11px; color: #766278; white-space: nowrap; position: relative; }
.pane-nav button::after { content: ''; position: absolute; bottom: 4px; left: 0; right: 0; height: 2px; background: var(--ink); transform: scaleX(0); transition: transform .4s var(--motion-ease); transform-origin: left; }
.pane-nav button[aria-current] { color: var(--ink); }
.pane-nav button[aria-current]::after { transform: scaleX(1); }
.pane-count { font-size: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pane-skip { font-size: 10px; white-space: nowrap; text-decoration: none; }
.pane-skip:hover { text-decoration: underline; }
.is-pinned .service-pane { position: absolute; inset: 64px 0 0; display: block; min-height: 0; background: none; }
.is-pinned .pane-copy { position: absolute; inset: 0 56% 0 0; padding-block: 30px 50px; }
.is-pinned .pane-photo { position: absolute; inset: 0 0 0 44%; }
.is-pinned .pane-visible .pane-photo img { will-change: transform; }
.chapter-card:not(.chapter-visible) .pane-photo img { will-change: auto; }
.is-pinned .pane-photo::before { content: ''; position: absolute; z-index: 3; inset: 0; pointer-events: none; background: linear-gradient(105deg, var(--butter) 10%, var(--coral) 46%, var(--lilac) 85%); opacity: var(--pane-edge-opacity, 0); clip-path: polygon(0 var(--pane-edge-left, 120%), 100% var(--pane-edge-right, 140%), 100% calc(var(--pane-edge-right, 140%) + 7%), 0 calc(var(--pane-edge-left, 120%) + 7%)); }
.is-pinned .service-pane::after { content: ''; position: absolute; z-index: 5; right: 5%; bottom: 11%; width: clamp(30px, 4.4vw, 68px); aspect-ratio: 1; background: var(--butter); pointer-events: none; opacity: calc(var(--pane-star, 0) * .88); clip-path: polygon(50% 0, 58% 32%, 75% 15%, 68% 42%, 100% 50%, 68% 58%, 85% 85%, 58% 68%, 50% 100%, 42% 68%, 15% 85%, 32% 58%, 0 50%, 32% 42%, 15% 15%, 42% 32%); transform: rotate(calc((var(--pane-star, 0) - 1) * 55deg)) scale(calc(.65 + var(--pane-star, 0) * .35)); }
.is-pinned .pane-copy h3 { font-size: clamp(47px, 4.65vw, 84px); }
.pane-progress { display: none; }
.is-pinned .pane-progress { display: block; position: absolute; z-index: 15; bottom: 0; left: 0; right: 0; height: 4px; background: #432b4622; }
.pane-progress i { display: block; width: 100%; height: 100%; transform-origin: left; background: linear-gradient(90deg, var(--coral), #9863ae, var(--butter)); }
@media(min-width:1700px) { .pane-copy { padding-left: max(5vw, calc((100vw - 1440px) / 2)); } .is-pinned .pane-copy h3 { font-size: 98px; } .pane-copy p { font-size: 17px; } }
@media(max-width:1100px) { .pane-rail-label { display: none; } .pane-copy h3, .is-pinned .pane-copy h3 { font-size: clamp(43px, 5.3vw, 60px); } .pane-copy p { font-size: 14px; margin-block: 22px; } .pane-copy .eyebrow { font-size: 9px; margin-bottom: 22px; } .pane-copy .button { font-size: 11px; padding: 12px 18px; gap: 15px; } }
@media(max-width:760px) {
 .service-pane { grid-template-columns: 1fr; min-height: 0; }
 .pane-copy { padding: 42px var(--gutter) 35px; }
 .pane-copy h3 { font-size: 48px; max-width: 12ch; }
 .pane-copy p { max-width: 45ch; }
 .pane-photo { height: 420px; }
 .pane-photo figcaption { left: 22px; right: 22px; bottom: 20px; font-size: 8px; }
 .is-pinned .pane-rail { height: 53px; gap: 12px; padding-inline: 16px; }
 .pane-nav { gap: 13px; }
 .pane-nav button { font-size: 0; width: 19px; min-height: 40px; }
 .pane-nav button::before { content: attr(data-number); font-size: 11px; }
 .pane-nav button::after { bottom: 4px; }
 .pane-count { display: none; }
 .pane-skip { font-size: 9px; }
 .is-pinned .service-pane { top: 53px; }
 .is-pinned .pane-copy { inset: 0 0 54%; padding: 22px var(--gutter); justify-content: center; }
 .is-pinned .pane-copy h3 { font-size: clamp(36px, 7.4vw, 53px); max-width: 15ch; line-height: 1.02; }
 .is-pinned .pane-copy .eyebrow { font-size: 8px; margin-bottom: 14px; }
 .is-pinned .pane-copy p { font-size: 12px; line-height: 1.55; max-width: 45ch; margin: 13px 0; }
 .is-pinned .pane-copy .button { min-height: 39px; padding: 8px 15px; font-size: 10px; }
 .is-pinned .pane-photo { inset: 46% 0 0; height: auto; }
 .is-pinned .service-pane::after { width: 35px; right: 7%; bottom: 12%; }
}
@media(max-width:400px) { .pane-copy h3 { font-size: 43px; } .pane-photo { height: 350px; } .pane-nav { gap: 8px; } .is-pinned .pane-copy { padding-block: 16px; } .is-pinned .pane-copy h3 { font-size: 35px; } .is-pinned .pane-copy .eyebrow { margin-bottom: 9px; } .is-pinned .pane-copy p { margin-block: 10px; } }
@media(prefers-reduced-motion:reduce), print {
 .service-story.is-pinned { height: auto !important; }
 .is-pinned .pane-stage { position: relative !important; top: auto !important; height: auto !important; overflow: visible; }
 .is-pinned .service-pane { position: relative !important; inset: auto !important; display: grid; min-height: 0; background: var(--card-color); visibility: visible !important; pointer-events: auto !important; }
 .is-pinned .pane-copy, .is-pinned .pane-photo { position: relative !important; inset: auto !important; opacity: 1 !important; transform: none !important; clip-path: none !important; }
 .is-pinned .pane-photo { height: auto; min-height: 340px; }
 .is-pinned .pane-photo img { transform: none !important; }
 .is-pinned .pane-copy > * { opacity: 1 !important; transform: none !important; }
 .is-pinned .service-pane::after, .is-pinned .pane-photo::before { display: none; }
 .is-pinned .pane-rail, .is-pinned .pane-progress { display: none; }
}
