/* Ordinary document flow is the fallback; every figure remains real text. */
.cost-story{position:relative;background:#151515;color:#fff;isolation:isolate;scroll-margin-top:0}
.cost-story-stage{position:relative}
.cost-story-panel{background:#151515;padding:calc(var(--cost-safe-top,82px) + 32px) 6% calc(var(--cost-safe-bottom,0px) + 32px);min-height:100svh;display:flex;align-items:center}
.cost-story-inner{width:min(100%,1440px);margin:0 auto;display:grid;grid-template-columns:1.05fr 1fr;gap:32px 7%;align-items:start}
.cost-story-heading{grid-column:1;grid-row:1}
.cost-story-heading .overline{margin-bottom:20px;color:#ef715e}
.cost-story-heading h2,.cost-story-heading h3{font-size:clamp(36px,4.4vw,66px);font-weight:800;line-height:1.17;letter-spacing:-.06em}
.cost-story-intro{margin-top:20px;color:#bbb;font-size:15px;line-height:1.65}
.cost-story-ledger{grid-column:2;grid-row:1 / 3}
.cost-story-caption{font-size:13px;color:#bbb;margin-bottom:12px}
.cost-story-ledger ol{margin:0;padding:0;list-style:none;border-top:1px solid #777}
.cost-story-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 0;border-bottom:1px solid #424242}
.cost-story-row-label{font-size:clamp(15px,1.3vw,20px)}
.cost-story-value{display:inline-flex;align-items:baseline;gap:5px;white-space:nowrap;font-size:clamp(28px,3vw,44px);line-height:1.2;font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:-.045em}
.cost-story-value small{font-size:14px;font-weight:600;letter-spacing:0}
.cost-story-mask{display:inline-block;overflow:hidden;vertical-align:bottom;padding:2px 0;line-height:0}
.cost-story-total{grid-column:1;grid-row:2;align-self:end}
.cost-story-total-label{font-size:14px;color:#ccc;margin-bottom:10px}
.cost-story-total .cost-story-value{font-size:clamp(42px,4.8vw,70px);color:#ef715e}
.cost-story-total .cost-story-value small{font-size:clamp(17px,1.8vw,25px)}
.cost-story-footer{grid-column:1 / -1;border-top:1px solid #424242;padding-top:20px;display:flex;align-items:end;justify-content:space-between;gap:24px}
.cost-story-note{font-size:13px;color:#b9b9b9;line-height:1.65;max-width:780px}
.cost-story-note strong{color:#eee;font-weight:600}
.cost-story-link{display:inline-flex;min-height:44px;align-items:center;gap:16px;flex-shrink:0;border-bottom:1px solid #777;font-size:14px;font-weight:700}
.cost-story-link span{font-size:22px;font-weight:400}
.cost-story-funding{background:#811f19}
.cost-story-funding .cost-story-inner{align-items:center;gap:32px 7%}
.cost-story-funding .cost-story-heading .overline{color:#f8c7bf}
.cost-story-funding .cost-story-intro{color:#f1c5bf}
.cost-story-funding-number{grid-column:2;grid-row:1 / 3;align-self:center}
.cost-story-funding-number .cost-story-value{font-size:clamp(52px,7vw,110px)}
.cost-story-funding-number .cost-story-value small{font-size:clamp(18px,2vw,28px)}
.cost-story-funding-label{font-size:16px;margin-bottom:12px;color:#f3c4bd}
.cost-story-funding-limit{font-size:14px;line-height:1.6;color:#f1c5bf;margin-top:16px}
.cost-story-funding-terms{grid-column:1;grid-row:2;font-size:15px;line-height:1.8;color:#f1c5bf}
.cost-story-funding .cost-story-footer{border-color:#b66156}
.cost-story-funding .cost-story-note{color:#f1c5bf}
.cost-story-funding .cost-story-note strong{color:#fff}
.cost-story-funding .cost-story-link{border-color:#e0aaa3}

/* The next chapter enters from the bottom and covers the pinned final panel. */
.cost-story.is-enhanced:not(.is-static){height:760svh;margin-bottom:-100svh}
.cost-story.is-enhanced:not(.is-static) .cost-story-stage{position:sticky;top:0;height:100svh;overflow:hidden}
.cost-story.is-enhanced:not(.is-static) .cost-story-panel{position:absolute;inset:0;min-height:0;height:100%;will-change:transform}
.cost-story.is-enhanced:not(.is-static) .cost-story-panel:not(.is-current){pointer-events:none}
.cost-story.is-enhanced:not(.is-static) .cost-story-funding{transform:translate3d(0,calc((1 - var(--cost-funding-progress,0)) * 100%),0)}
.cost-story.is-enhanced:not(.is-static) [data-cost-reveal] .cost-story-value{transform:translate3d(0,calc((1 - var(--cost-reveal,0)) * 115%),0);opacity:var(--cost-reveal,0);will-change:transform,opacity}
.cost-story.is-enhanced:not(.is-static) .cost-story-total-label{opacity:var(--cost-reveal,0)}
.cost-story.is-enhanced:not(.is-static)+.steps{position:relative;z-index:1}

@media(max-width:767px){
 .cost-story-panel{padding:calc(var(--cost-safe-top,70px) + 24px) 6% calc(var(--cost-safe-bottom,54px) + 24px)}
 .cost-story-inner{grid-template-columns:minmax(0,1fr);gap:20px}
 .cost-story-heading,.cost-story-ledger,.cost-story-total,.cost-story-footer,.cost-story-funding-number,.cost-story-funding-terms{grid-column:1;grid-row:auto}
 .cost-story-heading .overline{font-size:10px;margin-bottom:10px}
 .cost-story-heading h2,.cost-story-heading h3{font-size:clamp(28px,8vw,44px)}
 .cost-story-intro{font-size:13px;margin-top:10px}
 .cost-story-caption{font-size:12px;margin-bottom:6px}
 .cost-story-row{padding:9px 0;gap:8px}
 .cost-story-row-label{font-size:14px}
 .cost-story-value{font-size:28px}
 .cost-story-value small{font-size:12px}
 .cost-story-total{display:flex;justify-content:space-between;align-items:center;gap:10px}
 .cost-story-total-label{font-size:12px;line-height:1.55;margin:0;max-width:85px}
 .cost-story-total .cost-story-value{font-size:36px}
 .cost-story-total .cost-story-value small{font-size:16px}
 .cost-story-footer{display:block;padding-top:12px}
 .cost-story-note{font-size:12px;line-height:1.5}
 .cost-story-link{font-size:12px;margin-top:6px;min-height:44px}
 .cost-story-funding .cost-story-inner{gap:28px}
 .cost-story-funding-number .cost-story-value{font-size:clamp(50px,16vw,76px)}
 .cost-story-funding-number .cost-story-value small{font-size:20px}
 .cost-story-funding-label{font-size:14px;margin-bottom:8px}
 .cost-story-funding-limit{font-size:12px;margin-top:10px}
 .cost-story-funding-terms{font-size:13px}
}

@media(max-width:767px) and (min-height:541px) and (max-height:700px){
 .cost-story-panel{padding-top:calc(var(--cost-safe-top,70px) + 10px);padding-bottom:calc(var(--cost-safe-bottom,54px) + 10px)}
 .cost-story-inner{gap:8px}
 .cost-story-heading .overline{display:none}
 .cost-story-heading h2,.cost-story-heading h3{font-size:26px}
 .cost-story-intro{margin-top:6px;font-size:12px}
 .cost-story-heading .cost-story-intro{display:none}
 .cost-story-row{padding:2px 0}
 .cost-story-value{font-size:23px}
 .cost-story-total .cost-story-value{font-size:30px}
 .cost-story-footer{padding-top:8px}
 .cost-story-link{margin-top:0}
 .cost-story-funding .cost-story-inner{gap:12px}
}

/* Use the same compact layout when browser chrome leaves a shorter 100svh stage. */
@media(max-width:767px){
 .cost-story.is-tight .cost-story-panel{padding-top:calc(var(--cost-safe-top,70px) + 10px);padding-bottom:calc(var(--cost-safe-bottom,54px) + 10px)}
 .cost-story.is-tight .cost-story-inner{gap:8px}
 .cost-story.is-tight .cost-story-heading .overline,.cost-story.is-tight .cost-story-intro{display:none}
 .cost-story.is-tight .cost-story-heading h2,.cost-story.is-tight .cost-story-heading h3{font-size:26px}
 .cost-story.is-tight .cost-story-row{padding:2px 0}
 .cost-story.is-tight .cost-story-value{font-size:23px}
 .cost-story.is-tight .cost-story-total .cost-story-value{font-size:30px}
 .cost-story.is-tight .cost-story-footer{padding-top:8px}
 .cost-story.is-tight .cost-story-link{margin-top:0}
 .cost-story.is-tight .cost-story-funding .cost-story-inner{gap:12px}
 .cost-story.is-tight .cost-story-funding-number .cost-story-value{font-size:clamp(50px,16vw,76px)}
}

/* Landscape retains the same pinned sequence, with the ledger beside the title. */
@media(max-height:540px) and (orientation:landscape){
 .cost-story-panel{padding:calc(var(--cost-safe-top,70px) + 10px) 5% calc(var(--cost-safe-bottom,0px) + 10px)}
 .cost-story-inner{grid-template-columns:1fr 1fr;gap:10px 5%}
 .cost-story-heading{grid-column:1;grid-row:1}
 .cost-story-heading .overline{font-size:10px;margin-bottom:5px}
 .cost-story-heading h2,.cost-story-heading h3{font-size:26px}
 .cost-story-intro{margin-top:8px;font-size:12px}
 .cost-story-ledger{grid-column:2;grid-row:1 / 3}
 .cost-story-caption{font-size:12px;margin-bottom:4px}
 .cost-story-row{padding:3px 0;gap:8px}
 .cost-story-row-label{font-size:12px}
 .cost-story-value{font-size:22px}
 .cost-story-value small{font-size:12px}
 .cost-story-total{grid-column:1;grid-row:2;display:block}
 .cost-story-total-label{font-size:12px;max-width:none;margin-bottom:3px}
 .cost-story-total .cost-story-value{font-size:32px}
 .cost-story-total .cost-story-value small{font-size:16px}
 .cost-story-footer{grid-column:1 / -1;display:flex;padding-top:8px;gap:16px}
 .cost-story-note{font-size:12px;line-height:1.4}
 .cost-story-link{font-size:12px;margin:0}
 .cost-story-funding .cost-story-inner{gap:14px 5%}
 .cost-story-funding-number{grid-column:2;grid-row:1 / 3}
 .cost-story-funding-number .cost-story-value{font-size:54px}
 .cost-story-funding-number .cost-story-value small{font-size:20px}
 .cost-story-funding-label{font-size:13px;margin-bottom:5px}
 .cost-story-funding-limit{font-size:12px;margin-top:8px}
 .cost-story-funding-terms{grid-column:1;grid-row:2;font-size:12px;line-height:1.5}
}

@media(max-width:767px) and (max-height:450px) and (orientation:landscape){
 .cost-story-panel{padding-top:calc(var(--cost-safe-top,70px) + 6px);padding-bottom:calc(var(--cost-safe-bottom,54px) + 6px)}
 .cost-story-inner{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 14px}
 .cost-story-heading{grid-column:1 / -1;grid-row:auto}
 .cost-story-heading .overline,.cost-story-intro,.cost-story-caption{display:none}
 .cost-story-heading h2{font-size:22px;line-height:1.2}
 .cost-story-heading h2 br{display:none}
 .cost-story-ledger,.cost-story-ledger ol{display:contents}
 .cost-story-row{flex-direction:column;align-items:flex-start;gap:0;padding:0}
 .cost-story-row-label{line-height:1.2}
 .cost-story-value{font-size:20px}
 .cost-story-total{grid-column:auto;grid-row:auto}
 .cost-story-total-label{font-size:12px;line-height:1.2;margin:0}
 .cost-story-total .cost-story-value{font-size:24px}
 .cost-story-total .cost-story-value small{font-size:12px}
 .cost-story-footer{grid-column:1 / -1;padding-top:4px;gap:14px}
 .cost-story-funding .cost-story-inner{grid-template-columns:1fr 1fr;gap:4px 5%}
 .cost-story-funding .cost-story-heading{grid-column:1;grid-row:1}
 .cost-story-funding .cost-story-heading h3{font-size:22px}
 .cost-story-funding-number .cost-story-value{font-size:44px}
 .cost-story-funding-terms{font-size:12px}
}

/* Enlarged text must remain reachable instead of being clipped inside a stage. */
.cost-story.is-static .cost-story-inner{min-width:0}
.cost-story.is-static .cost-story-row{flex-wrap:wrap}
.cost-story.is-static .cost-story-value{white-space:normal;flex-wrap:wrap;overflow-wrap:anywhere}
.cost-story.is-static .cost-story-footer{flex-wrap:wrap}
@media(prefers-reduced-motion:reduce){
 .cost-story.is-enhanced{height:auto!important;margin-bottom:0!important}
 .cost-story.is-enhanced .cost-story-stage{position:relative!important;height:auto!important;overflow:visible!important}
 .cost-story.is-enhanced .cost-story-panel{position:relative!important;height:auto!important;transform:none!important;min-height:100svh!important}
 .cost-story.is-enhanced [data-cost-reveal] .cost-story-value,.cost-story.is-enhanced .cost-story-total-label{transform:none!important;opacity:1!important}
}
