/* Homepage anatomy: scroll affects only the model; normal page scrolling stays intact. */
.spine-story{position:relative;margin-top:0;color:#fff;background:#08112f;isolation:isolate;scroll-margin-top:0}
.spine-sticky{position:relative;overflow:hidden;background:radial-gradient(ellipse at 76% 46%,#253e6d99,transparent 53%),linear-gradient(115deg,#080f29ed,#0c1946ec),url('../assets/Blue American Flag Background.webp') center/cover}
.spine-story.is-interactive{height:280vh;height:280svh}
.spine-story.is-interactive .spine-sticky{position:sticky;top:0;height:100vh;height:100svh;min-height:610px}
.spine-layout{max-width:1360px;display:grid;grid-template-columns:.85fr 1.15fr;column-gap:48px;align-items:center;min-height:740px;padding-top:60px;padding-bottom:52px;position:relative}
.is-interactive .spine-layout{height:100%;min-height:0;padding-top:32px;padding-bottom:62px}
.spine-copy{position:relative;z-index:2;padding-left:12px}
.spine-copy .kicker{color:#b8c9ed;font-size:.7rem;letter-spacing:.17em;margin-bottom:20px}
.spine-copy h2{color:#fff;font-size:clamp(2.7rem,4.9vw,4.5rem);line-height:1.02;letter-spacing:-.035em;text-transform:none;font-weight:700}
.spine-copy h2>span{color:var(--red)}
.spine-intro{color:#bcc8e1;font-size:1.13rem;margin:20px 0 30px;max-width:330px;line-height:1.45}
.spine-chapters{display:flex;flex-direction:column;gap:0;border-top:1px solid #ffffff24;max-width:400px}
.spine-chapters button{display:flex;align-items:center;gap:18px;font:600 .94rem var(--font-body);color:#97a8ce;background:none;border:0;border-bottom:1px solid #ffffff24;padding:15px 0;text-align:left;cursor:pointer;transition:color .25s}
.spine-chapters button>span{font-size:.69rem;font-weight:600;letter-spacing:.09em;color:#8699c5}
.spine-chapters button[aria-pressed=true]{color:#fff}
.spine-chapters button[aria-pressed=true]>span{color:#fff;background:var(--red);box-shadow:0 0 0 6px var(--red);border-radius:1px}
.spine-description{min-height:117px;margin-top:23px;max-width:385px}
.spine-description p{color:#c0cce2;font-size:.95rem;line-height:1.65}
.spine-link{display:inline-flex;gap:24px;align-items:center;color:#fff;font-size:.88rem;font-weight:600;border-bottom:1px solid #e3344a;padding-bottom:7px}
.spine-link:hover{color:#fff;text-decoration:none;border-color:white}
.spine-link span{font-size:1.2rem;color:#ff6272}
.spine-visual{min-width:0;position:relative;height:100%;min-height:535px;display:flex;flex-direction:column}
.spine-view-heading,.spine-view-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;position:relative;z-index:2;font-size:.65rem;letter-spacing:.1em;color:#acbbd9;flex-shrink:0}
.spine-view-heading{border-bottom:1px solid #ffffff20;padding-bottom:14px}
.spine-view-heading b{color:#e6ecf7;font-weight:600;margin-left:9px}
.spine-view-state{font-size:.55rem;letter-spacing:.12em}
.spine-stage{position:relative;flex:1;min-height:420px;isolation:isolate}
.spine-canvas,.spine-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}
.spine-canvas{opacity:0;transition:opacity .5s}
.spine-ready .spine-canvas{opacity:1}
.spine-ready .spine-poster{opacity:0}
.spine-orbit{position:absolute;inset:10% 3%;border:1px solid #839dce1c;border-radius:50%;transform:rotate(-30deg);pointer-events:none}
.spine-orbit:after{content:'';position:absolute;inset:9%;border:1px dashed #839dce18;border-radius:50%}
.spine-label{position:absolute;z-index:2;color:#fff;font-size:.7rem;font-weight:600;opacity:0;pointer-events:none;white-space:nowrap;line-height:1.2;transform:translate(0,-50%);padding-left:29px;text-shadow:0 2px 6px #08112f}
.spine-label:before{content:'';position:absolute;width:20px;height:1px;background:#c5d7f7a8;left:0;top:6px}
.spine-label:after{content:'';position:absolute;width:4px;height:4px;border-radius:50%;background:#dce8ff;left:0;top:4px}
.spine-label span{display:block;font-size:.59rem;color:#afc3e8;font-weight:400;margin-top:5px}
.spine-label-disc{color:#ff7b89}
.spine-label-disc:before,.spine-label-disc:after{background:#ff6272}
.spine-view-footer{padding-top:12px;border-top:1px solid #ffffff20;letter-spacing:0;font-size:.7rem}
.spine-view-footer>span{display:flex;align-items:center;gap:7px}
.spine-swatch{width:7px;height:7px;border-radius:50%;background:#f1eee8;display:inline-block}
.spine-swatch.disc{background:#e31632;margin-left:16px}
.spine-motion{font:inherit;background:transparent;border:0;color:#b4c4e4;text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:4px}
.spine-bottom{position:absolute;inset:auto 24px 19px;display:flex;align-items:center;justify-content:space-between;gap:28px}
.spine-scroll-hint{font-size:.69rem;letter-spacing:.05em;color:#c8d5ed;white-space:nowrap}
.spine-scroll-hint>span{display:inline-block;margin-right:9px;font-size:1rem}
.spine-bottom p{font-size:.62rem;color:#9eb0d1;margin:0;text-align:right;line-height:1.4}
.spine-bottom a{color:#c8d5ed;text-decoration:underline;text-underline-offset:2px;margin-left:5px;white-space:nowrap}
.spine-progress{position:absolute;left:0;right:0;bottom:-19px;height:2px;background:#ffffff10}
.spine-progress span{display:block;width:100%;height:100%;background:var(--red);transform-origin:left;transform:scaleX(var(--spine-progress,0))}
.spine-story button:focus-visible,.spine-story a:focus-visible{outline:2px solid #fff;outline-offset:5px}
.spine-story:not(.is-interactive) .spine-scroll-hint{visibility:hidden}
.spine-story:not(.is-interactive) .spine-chapters{display:none}
.spine-story:not(.is-interactive) .spine-description{margin-top:24px;min-height:0;margin-bottom:24px}
.spine-story.is-static{height:auto}
.spine-story.is-static .spine-sticky{position:relative;top:0;height:auto;min-height:0}
.spine-story.is-static .spine-layout{min-height:720px}
.spine-story.is-static .spine-scroll-hint{visibility:hidden}
@media(min-width:901px) and (max-height:780px){.spine-copy h2{font-size:3.2rem}.spine-intro{margin:14px 0 18px}.spine-description{min-height:98px;margin-top:16px}.spine-chapters button{padding:12px 0}.spine-copy .kicker{margin-bottom:13px}.spine-visual{min-height:465px}.spine-stage{min-height:340px}}
@media(max-width:900px){.spine-story{scroll-margin-top:0}.spine-layout{column-gap:24px}.spine-copy{padding-left:0}.spine-copy h2{font-size:3rem}.spine-chapters button{font-size:.82rem}.spine-story.is-interactive .spine-sticky{top:0;height:100svh}.spine-visual{min-height:480px}.spine-stage{min-height:340px}}
@media(max-width:650px){
 .spine-story{margin-top:0}.spine-story.is-interactive{height:260svh}.spine-story.is-interactive .spine-sticky{min-height:0}
 .spine-layout,.is-interactive .spine-layout{grid-template-columns:1fr;grid-template-rows:auto minmax(180px,1fr);gap:12px;padding:22px 20px 65px;min-height:0}
 .spine-copy h2{font-size:clamp(1.9rem,6.8vw,2.65rem);line-height:1.04}.spine-copy h2 br{display:none}.spine-copy h2>span{white-space:nowrap;margin-left:.12em}
 .spine-copy .kicker{font-size:.58rem;letter-spacing:.1em;margin-bottom:9px}.spine-intro{font-size:.85rem;margin:9px 0 13px;max-width:none}
 .spine-chapters{flex-direction:row;max-width:none;border:0;gap:16px}
 .spine-chapters button{display:block;flex:1;font-size:0;min-height:44px;border:0;border-bottom:2px solid #ffffff24;padding:8px 0;text-align:left}
 .spine-chapters button>span{font-size:.7rem;display:block;width:max-content}.spine-chapters button[aria-pressed=true]{border-color:var(--red)}
 .spine-description{margin-top:12px;max-width:none;min-height:63px}.spine-description p{font-size:.79rem;line-height:1.5}
 .spine-link{font-size:.72rem;gap:12px;padding-bottom:3px;margin-top:7px}.spine-link span{font-size:.9rem}
 .spine-visual{min-height:0}.spine-stage{min-height:0}.spine-view-heading{font-size:.53rem;padding-bottom:7px}.spine-view-state{font-size:.49rem}.spine-view-footer{padding-top:5px;font-size:.6rem}
 .spine-bottom{inset:auto 20px 14px;gap:12px;align-items:flex-start}.spine-bottom p{font-size:.53rem;max-width:236px}.spine-scroll-hint{font-size:.56rem}.spine-progress{bottom:-14px}
 .spine-label{font-size:.64rem;padding-left:20px}.spine-label:before{width:14px}.spine-label span{font-size:.53rem}
 .spine-story.is-static .spine-layout{min-height:800px;height:110svh;max-height:1000px}
 .spine-story:not(.is-interactive) .spine-layout{min-height:780px;height:110svh;max-height:1000px}
}
@media(max-width:650px) and (max-height:720px){.spine-copy .kicker{display:none}.spine-intro{display:none}.spine-chapters{margin-top:12px}.spine-description{min-height:58px}.spine-layout,.is-interactive .spine-layout{padding-top:15px;gap:8px}.spine-copy h2{font-size:1.85rem}.spine-bottom p{max-width:210px}}
@media(prefers-reduced-motion:reduce){.spine-canvas,.spine-chapters button{transition:none}}
/* Treatment-page variant uses the same anatomical model and controls. */
.spine-decompression .spine-swatch.fluid{background:#8be5ff;margin-left:12px}
.spine-decompression .spine-swatch.nutrient{background:#ffdb74;margin-left:12px}
.spine-decompression .spine-description{min-height:140px}
.spine-decompression .spine-bottom p{max-width:610px}
@media(max-width:650px){.spine-decompression .spine-description{min-height:82px}.spine-decompression .spine-copy h2>span{white-space:normal}.spine-decompression .spine-bottom p{max-width:238px}.spine-decompression:not(.is-interactive) .spine-layout{height:auto;max-height:none}.spine-decompression:not(.is-interactive) .spine-stage{min-height:320px}}

/* Compact two-vertebra close-up on the treatment page. */
.spine-decompression .spine-copy h2{font-size:clamp(2.5rem,4vw,3.5rem)}
.spine-decompression .spine-description{min-height:115px}
.spine-decompression.is-static{height:auto}
.spine-decompression.is-static .spine-sticky{height:auto;min-height:0}
.spine-decompression.is-static .spine-layout{min-height:650px}
@media(max-width:650px){.spine-decompression .spine-copy h2{font-size:clamp(1.85rem,6.8vw,2.65rem)}.spine-decompression .spine-description{min-height:72px}.spine-decompression.is-static .spine-layout{height:auto;min-height:0;max-height:none}.spine-decompression.is-static .spine-visual{height:350px}}

/* The close-up pins while scrolling through all three treatment stages. */
.spine-decompression.is-interactive:not(.is-static){height:calc(210svh - var(--site-header-height,97px))}

.spine-decompression .spine-heading-white{color:#fff}

/* Leave room for the persistent navigation above the anatomy panel. */
.spine-story.is-interactive:not(.spine-decompression):not(.is-static) .spine-sticky{top:var(--site-header-height,97px);height:calc(100svh - var(--site-header-height,97px));min-height:0}
.spine-decompression.is-interactive:not(.is-static) .spine-sticky{position:sticky;top:var(--site-header-height,97px);height:calc(100svh - var(--site-header-height,97px));min-height:0;display:grid;align-items:center}
.spine-decompression.is-interactive:not(.is-static) .spine-layout{height:100%;max-height:760px;width:100%;position:static}

/* Keep the close-up controls inside the pinned panel, above the section boundary. */
.spine-decompression.is-interactive:not(.is-static) .spine-layout{padding-bottom:84px;grid-template-rows:minmax(0,1fr)}
.spine-decompression.is-interactive:not(.is-static) .spine-visual,.spine-decompression.is-interactive:not(.is-static) .spine-stage{min-height:0}
@media(min-width:651px) and (max-height:850px){
 .spine-decompression.is-interactive:not(.is-static) .spine-layout{padding-top:24px;padding-bottom:76px}
 .spine-decompression.is-interactive:not(.is-static) .spine-copy .kicker{display:none}
 .spine-decompression.is-interactive:not(.is-static) .spine-copy h2{font-size:clamp(2.1rem,3.4vw,2.5rem)}
 .spine-decompression.is-interactive:not(.is-static) .spine-intro{font-size:1rem;margin:12px 0 16px;max-width:none}
 .spine-decompression.is-interactive:not(.is-static) .spine-chapters button{padding:8px 0}
 .spine-decompression.is-interactive:not(.is-static) .spine-description{min-height:84px;margin-top:16px;max-width:none}
 .spine-decompression.is-interactive:not(.is-static) .spine-description p{font-size:.88rem;line-height:1.5;margin-bottom:0}
}
@media(max-width:650px){
 .spine-decompression.is-interactive:not(.is-static) .spine-layout{grid-template-rows:auto minmax(0,1fr);padding-bottom:76px}
}
