.garant-story{--case-red:#c8102e;padding-bottom:120px}
.garant-story .version-back{display:inline-block;font-size:14px;color:var(--muted);margin-bottom:36px;text-decoration:none}
.garant-story .case-intro{padding:56px 0 40px}
.garant-story .story-lead{max-width:850px}
.garant-story .hero-board{background:transparent;border-radius:20px;padding:36px;display:flex;justify-content:center;gap:32px}
.garant-story .hero-board a{width:220px;max-width:40%}
.garant-story img{display:block;width:100%;height:auto;object-fit:contain}
.garant-story .hero-board img{border-radius:12px;box-shadow:0 12px 32px #83152b10}
.garant-story .brief-grid{display:grid;grid-template-columns:1fr 1fr;gap:40px}
.garant-story .brief-grid h3{font-size:20px;margin-bottom:12px}
.garant-story .brief-grid dt{font-size:14px;font-weight:600;margin-bottom:10px}
.garant-story .brief-grid dd{font-size:16px;line-height:1.7;color:var(--muted)}
.garant-story .story-block{padding:56px 0}
.garant-story .story-block+.story-block{border-top:0}
.garant-story .block-heading>p:last-child:not(.story-kicker){max-width:780px}
.garant-story .map-details{margin-top:32px;border-top:0}
.garant-story details{border-bottom:0}
.garant-story summary{display:flex;justify-content:space-between;gap:20px;list-style:none;cursor:pointer;padding:22px 0;font-size:18px;font-weight:600}
.garant-story summary::-webkit-details-marker{display:none}
.garant-story details[open] summary span{transform:rotate(45deg)}
.garant-story .map{padding:20px;background:transparent;border-radius:16px;margin-bottom:24px}
.garant-story figcaption{font-size:13px;line-height:1.6;color:var(--muted);margin-top:16px}
.garant-story .comparison{display:grid;grid-template-columns:1fr 1fr;gap:24px;background:transparent;padding:24px;border-radius:20px;margin-top:32px;align-items:stretch}
.garant-story .comparison-cell{display:flex;flex-direction:column;gap:24px}
.garant-story .version-badge{align-self:flex-start;background:white;border-radius:24px;padding:8px 16px;font-size:14px;font-weight:600}
.garant-story .empty-state{border:1px dashed #dfbfc4;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px;gap:12px;background:#ffffff60;flex:1}
.garant-story .empty-state span{font-size:16px;font-weight:600}
.garant-story .empty-state p{font-size:13px;line-height:1.5;max-width:230px}
.garant-story .after-screens{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.garant-story .after-screens img{border-radius:8px}
.garant-story .comparison-note{font-size:13px;margin-top:12px}
.garant-story .steps{display:grid;grid-template-columns:repeat(3,1fr);gap:32px}
.garant-story .steps span{display:block;color:var(--case-red);font-size:14px;margin-bottom:16px}
.garant-story .steps h3{font-size:20px;margin-bottom:12px}
.garant-story .steps p{font-size:14px}
.garant-story .deposit-slots{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-top:32px}
.garant-story .deposit-slots .empty-state{aspect-ratio:9/16;background:transparent}
.garant-story .loan-gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;padding:24px;background:transparent;border-radius:20px}
.garant-story .loan-gallery img{border-radius:10px}
.garant-story .end-links{display:flex;justify-content:space-between;gap:20px;border-top:0;padding:28px 0;font-size:14px}
.garant-story .end-links a{color:var(--muted)}
.garant-story .growth-related{margin-top:48px}
@media(max-width:760px){.garant-story .brief-grid{gap:24px}.garant-story .steps{grid-template-columns:1fr;gap:24px}.garant-story .loan-gallery,.garant-story .deposit-slots{grid-template-columns:repeat(2,1fr)}.garant-story .comparison{gap:16px;padding:16px}.garant-story .after-screens{gap:8px}.garant-story .hero-board{padding:24px;gap:20px}}
@media(max-width:520px){.garant-story{padding:0 20px 110px}.garant-story h1{font-size:40px}.garant-story h2{font-size:30px}.garant-story .brief-grid,.garant-story .comparison{grid-template-columns:1fr}.garant-story .comparison-cell>.empty-state{min-height:240px}.garant-story .story-block{padding:40px 0}.garant-story .story-facts{grid-template-columns:1fr;gap:16px}.garant-story .loan-gallery{gap:16px;padding:16px}.garant-story .deposit-slots{gap:12px}.garant-story .empty-state{padding:12px}}

.garant-story .lifecycle-section{padding-top:28px}
.garant-story .lifecycle-section>h3{font-size:20px;margin-bottom:24px}

body.garant-case-study{--muted:#5b5b73}

.garant-story .outcome-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:36px;margin-top:40px}
.garant-story .outcome-metrics>div{display:flex;flex-direction:column;align-items:flex-start}
.garant-story .outcome-metrics dd:first-child{font-size:clamp(48px,6vw,80px);line-height:1.1;letter-spacing:-.05em;font-weight:600;color:var(--case-red);margin:0 0 20px;white-space:nowrap}
.garant-story .outcome-metrics dd:first-child span{font-size:20px;letter-spacing:-.02em}
.garant-story .outcome-metrics dt{font-size:18px;line-height:1.4;font-weight:600;color:var(--ink);margin:0 0 10px}
.garant-story .outcome-metrics .metric-description{font-size:14px;line-height:1.7;color:var(--muted);margin:0}
@media(max-width:640px){.garant-story .outcome-metrics{grid-template-columns:1fr;gap:36px}.garant-story .outcome-metrics dd:first-child{font-size:64px;margin-bottom:12px}}

.garant-story #app-store .comparison{grid-template-columns:1fr;padding:0;gap:32px}
.garant-story #app-store .empty-state{min-height:150px}
.garant-story #app-store .app-store-image{display:block;cursor:zoom-in}

.garant-story #app-store .app-store-image{background:#fafafa;isolation:isolate}
.garant-story #app-store .app-store-image img{mix-blend-mode:darken}
.garant-story .screens-heading{font-size:20px;margin:32px 0 24px}
.garant-story .flow-description{margin-bottom:24px}
.garant-story #deposits .lifecycle-section,.garant-story #loans .lifecycle-section{margin-top:32px}
.garant-story #deposits .deposit-slots{margin-top:0;padding:24px}

.garant-story .design-constraint{margin-top:28px;padding-left:20px;border-left:3px solid var(--case-red);max-width:850px}
.garant-story .design-constraint h3{font-size:18px;margin-bottom:10px}
.garant-story .design-constraint p{font-size:16px;line-height:1.7}
.garant-story .design-constraint strong{color:var(--ink);font-weight:700}
.garant-story .screens-heading,.garant-story .design-constraint h3{display:none}
.garant-story .lifecycle-section .map figcaption{display:none}
.garant-story .map-details details:not([open])> :not(summary){display:block}
.garant-story .map-details summary span{display:none}
.garant-story .map-details figcaption{display:none}
.garant-story .map-details details:not([open])> :not(summary){display:block!important}
.garant-story .map-details summary span{display:none!important}
.garant-story .map-details figcaption{display:none!important}
.garant-story figure.map figcaption{display:none!important}
.garant-story .scope-comparison>h3,.garant-story .scope-comparison>.scope-caption{display:none}

.garant-story .outcome-metrics dd.screen-count{font-size:clamp(36px,4.5vw,64px)}
.garant-story .outcome-metrics dd:first-child{display:flex;align-items:baseline;min-height:clamp(53px,6.6vw,88px)}
.garant-story .outcome-metrics dd.screen-count+dt{font-size:20px}

.garant-story .handoff-intro{display:grid;grid-template-columns:1fr 1fr;gap:40px;margin-top:32px}
.garant-story .handoff-intro h3{font-size:18px;margin-bottom:12px}
.garant-story .handoff-intro strong{font-weight:700;color:var(--ink)}
.garant-story .handoff-intro .contribution-milestone{display:block;margin-top:10px}
.garant-story .scope-comparison{margin:36px 0}
.garant-story .scope-comparison>h3{font-size:24px;margin-bottom:8px}
.garant-story .scope-caption,.garant-story .scope-key{font-size:13px}
.garant-story .scope-grid{display:grid;grid-template-columns:1fr 1fr;gap:40px;margin:28px 0 18px}
.garant-story .scope-label{font-size:14px;font-weight:600}
.garant-story .scope-number{font-size:72px;line-height:1.15;letter-spacing:-.05em;font-weight:600;margin:14px 0 24px}
.garant-story .scope-number span{font-size:18px;letter-spacing:0;font-weight:400}
.garant-story .scope-after .scope-number{color:#c8102e}
.garant-story .screen-tiles{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:6px;min-height:158px;align-content:start;margin-bottom:20px}
.garant-story .screen-tiles i{display:block;aspect-ratio:3/4;border:1px solid #b9b9c8;border-radius:3px;background:#efeff2;max-height:24px}
.garant-story .scope-after .screen-tiles i{border-color:#c8102e;background:#c8102e}
.garant-story .scope-grid p{font-size:14px;max-width:420px}
.garant-story .scope-after p strong{color:#c8102e;font-weight:700}
.garant-story .scope-grid{position:relative;gap:clamp(48px,8vw,120px);padding:30px clamp(24px,4vw,64px);margin-top:24px;border:1px solid #e5e5ed;border-radius:20px;background:#f7f7fa}
.garant-story .scope-grid::after{content:'→';position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);color:#c8102e;font-size:clamp(40px,5vw,72px);font-weight:600;line-height:1}
.garant-story .scope-before,.garant-story .scope-after{min-width:0}
.garant-story .scope-after .scope-label{color:#c8102e}
.garant-story .scope-after .scope-number{font-weight:700}
.garant-story .store-originals{display:none}
@media(max-width:640px){.garant-story .handoff-intro,.garant-story .scope-grid{grid-template-columns:1fr;gap:28px}.garant-story .screen-tiles{min-height:0}.garant-story .scope-number{font-size:64px}}
@media(max-width:640px){.garant-story .scope-grid{padding:24px}.garant-story .scope-grid::after{content:'↓';top:50%}}
@media(max-width:640px){.garant-story .outcome-metrics dd:first-child{min-height:70px}}

.garant-story .store-reveal{position:relative;width:100%;aspect-ratio:5054/1638;background:#fafafa;isolation:isolate;overflow:hidden}
.garant-story .store-reveal .store-layer{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#fafafa;mix-blend-mode:normal;pointer-events:none;user-select:none}
.garant-story .store-reveal .store-after{z-index:0;mix-blend-mode:normal}
.garant-story .store-before{z-index:1;clip-path:inset(0 calc(100% - var(--reveal)) 0 0);mix-blend-mode:normal}
.garant-story .store-tag{position:absolute;top:10px;z-index:2;padding:6px 12px;background:#fafafaeb;border-radius:20px;font-size:12px;font-weight:600;pointer-events:none}
.garant-story .store-tag-before{left:10px}.garant-story .store-tag-after{right:10px}
.garant-story .store-divider{position:absolute;top:0;bottom:0;left:var(--reveal);width:2px;background:#c8102e;transform:translateX(-50%);pointer-events:none;z-index:3}
.garant-story .store-divider span{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:44px;height:44px;background:#c8102e;color:white;border:2px solid white;border-radius:50%;font-size:22px;box-shadow:0 2px 12px #0002;white-space:pre}
.garant-story .store-slider{position:absolute;inset:0;z-index:4;width:100%;height:100%;margin:0;opacity:0;cursor:ew-resize;touch-action:pan-y}
.garant-story .store-reveal:focus-within{outline:none}
.garant-story .store-originals{display:flex;justify-content:space-between;gap:20px;margin-top:18px;font-size:13px}
.garant-story .store-originals a{color:var(--muted)}

.garant-story .banking-flows{margin-top:40px}
.garant-story .banking-flow+.banking-flow{margin-top:48px}
.garant-story .banking-flow>h3{font-size:24px;margin-bottom:12px}
.garant-story .banking-flow>p{margin-bottom:24px}
.garant-story .banking-flow .map{padding:0;background:transparent}
.garant-story .banking-flow>p{display:none}
.garant-story .store-originals{display:none!important}
.garant-story figure.map figcaption{display:none!important}
.garant-story .deposit-gallery figure:nth-child(1){order:3}
.garant-story .deposit-gallery figure:nth-child(2){order:4}
.garant-story .deposit-gallery figure:nth-child(3){order:1}
.garant-story .deposit-gallery figure:nth-child(4){order:2}
.garant-story .deposit-gallery figure{order:initial}
.garant-story .deposit-gallery figure:nth-child(1){order:1}
.garant-story .deposit-gallery figure:nth-child(2){order:2}
.garant-story .deposit-gallery figure:nth-child(3){order:2}
.garant-story .deposit-gallery figure:nth-child(4){order:3}
.garant-story .deposit-gallery figure:nth-child(5){order:4}
.garant-story .deposit-gallery figure:nth-child(2){display:none}

.garant-story .flow-use-cases{display:grid;grid-template-columns:1fr 1fr;gap:10px 32px;margin:20px 0 10px;padding-left:20px;color:var(--muted);font-size:16px;line-height:1.7}
.garant-story .banking-flow>.flow-more{font-size:14px;margin-bottom:24px}
@media(max-width:520px){.garant-story .flow-use-cases{grid-template-columns:1fr}}
.garant-story .story-facts{border-bottom:1px solid #dedee6;padding-bottom:32px;margin-bottom:32px}
.garant-story .story-facts dt{font-size:.875rem;line-height:1.5;letter-spacing:0;color:var(--ink,#303056);font-weight:600}

.garant-story .store-divider span{width:10px;height:48px;border:2px solid #fafafa;border-radius:6px;background:#c8102e;box-shadow:0 1px 5px #0002;font-size:0}
.garant-story .store-reveal:has(.store-slider:focus-visible) .store-divider span{box-shadow:0 0 0 3px #303056}

.garant-story .store-labels{display:flex;justify-content:space-between;gap:24px;margin-bottom:16px;font-size:14px;font-weight:600;color:var(--ink)}
.garant-story .store-reveal,.garant-story .store-reveal:hover,.garant-story .store-reveal:focus-within{border:0;outline:none;box-shadow:none;border-radius:0}
.garant-story .store-reveal .store-layer{border:0;outline:0;box-shadow:none;border-radius:0}

/* One consistent gap between the main case-study sections. */
.garant-story>.case-intro{padding-bottom:0;margin-bottom:0}
.garant-story>.story-block{padding:0;margin:64px 0 0}
.garant-story>.story-block .banking-flow:last-child>.map,
.garant-story>.story-block>.lifecycle-section:last-child>.map{margin-bottom:0}
@media(max-width:520px){.garant-story>.story-block{padding:0;margin-top:48px}}
