/* [design-preview:case-story] Shared case-study layout for B-side pages: same structure as CAPI, accent set per page via --case-accent. */
/* [design-preview:capi-evidence-journey] CAPI-only reading rhythm; no landing-page or shared case-study changes. */
.case-story main{max-width:960px}
.case-story .case-brand{background:#f7f4eb}
.case-story .section-label{top:64px}
.case-story .story-section{scroll-margin-top:96px}
.case-story .story-section{padding-bottom:clamp(56px,7vw,96px)}
.case-story p,.case-story li{max-width:70ch}
.case-story .lead{font-size:clamp(20px,2vw,24px);line-height:1.55}
.case-story h3{font-size:22px;line-height:1.35;margin:0 0 14px;letter-spacing:-.02em}
.case-story .context-note{border-left:3px solid var(--case-accent);padding:24px 28px;background:#eeecdf;border-radius:0 16px 16px 0;margin:28px 0 36px}
.case-story .context-note p{margin-bottom:0}
.case-story blockquote{margin:32px 0;padding:24px 0 24px 24px;border-left:3px solid var(--case-accent);font-size:clamp(22px,2.2vw,28px);line-height:1.45}
.case-story .evidence-list article{padding:24px 0;border-bottom:1px solid #ccd0c5}
.case-story .evidence-list p{margin:8px 0}
.case-story .implication{color:var(--case-accent);font-weight:500}
.case-story .evidence-limit{font-size:16px;color:#526258}
.case-story .decision{display:grid;grid-template-columns:48px minmax(0,1fr);gap:20px;padding:32px 0;border-top:1px solid #ccd0c5}
.case-story .decision-number{color:var(--case-accent);font-size:28px;line-height:1.1;font-weight:600}
.case-story .decision p:last-child{margin-bottom:0}
.case-story .journey{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:32px 0}
.case-story .journey figure{margin:0;min-width:0}
.case-story .screen-detail{position:relative;aspect-ratio:314/677;overflow:hidden;border-radius:20px;background:#222}
.case-story .screen-detail img{position:absolute;width:652.23%;max-width:none;height:auto;top:-2.65%;border-radius:0}
.case-story .discover img{left:-105.7%}.case-story .personalize img{left:-324.5%}.case-story .publish img{left:-542%}
.case-story figcaption strong{color:#25332f}
.case-story .outcome-grid{display:grid;grid-template-columns:1fr 1fr;gap:32px}
.case-story ul{padding-left:22px}.case-story li+li{margin-top:12px}
.case-story .story-jump{display:none}
@media(max-width:800px){.case-story .story-jump{display:block;margin:0 0 36px;border-block:1px solid #ccd0c5;padding:8px 0}.case-story summary{cursor:pointer;min-height:44px;padding:8px 0;font-weight:600}.case-story .story-jump nav{flex-direction:column;overflow:visible}.case-story .story-jump nav a{border:0;border-radius:8px}.case-story .outcome-grid{grid-template-columns:1fr}.case-story .decision{grid-template-columns:32px minmax(0,1fr);gap:12px}}
@media(max-width:600px){.case-story .journey{grid-template-columns:1fr;gap:32px}.case-story .journey figure{width:min(280px,100%);margin-inline:auto}.case-story .context-note{padding:20px}.case-story .decision-number{font-size:24px}}

/* [design-preview:capi-artifact-slots] Editorial placeholders are explicit requests for real evidence, not simulated product artifacts. */
.case-story .artifact-placeholder{margin:32px 0 48px}
.case-story .artifact-slot{display:flex;flex-direction:column;justify-content:center;min-height:260px;padding:clamp(24px,4vw,48px);border:1px dashed #7a8c7e;border-radius:20px;background:#e9eee5;color:#25332f}
.case-story .artifact-label{font-size:16px;font-weight:600;letter-spacing:.07em;color:var(--case-accent);margin-bottom:20px}
.case-story .artifact-slot p{margin:8px 0;font-size:18px;line-height:1.6}
.case-story .artifact-placeholder[data-case-hero] .artifact-slot{min-height:320px}
.case-story .release-story{padding:24px 0;border-top:1px solid #ccd0c5}
@media(max-width:600px){.case-story .artifact-slot,.case-story .artifact-placeholder[data-case-hero] .artifact-slot{min-height:0;padding:24px}.case-story .artifact-slot p{font-size:16px}}
/* [design-preview:capi-impact-strip] Headline numbers sit under the title so a reviewer sees impact before the hero image. */
.case-story .impact-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(0,1fr));gap:16px;margin:28px 0 8px}
.case-story .impact-strip div{background:#eeecdf;border-radius:16px;padding:20px 22px}
.case-story .impact-strip dt{font-size:clamp(28px,3vw,38px);line-height:1.1;font-weight:600;color:var(--case-accent);margin:0 0 8px}
.case-story .impact-strip dd{margin:0;font-size:16px;line-height:1.45}
@media(max-width:600px){.case-story .impact-strip{grid-template-columns:1fr;gap:12px}.case-story .impact-strip div{padding:16px 18px}}
/* [design-preview:capi-hero-video] Generic rounded phone frame around the App Store preview recording. */
.case-story .phone-hero{margin:28px 0 8px;padding:clamp(24px,4vw,44px) 16px;background:#dfe1d6;border-radius:24px;text-align:center}
.case-story .phone-frame{position:relative;width:min(300px,72vw);margin:0 auto;padding:10px;background:#16191a;border-radius:46px;box-shadow:0 0 0 1px #3a3f40 inset,0 22px 48px #1b2a2240}
.case-story .phone-frame video{display:block;width:100%;aspect-ratio:592/1280;border-radius:36px;background:#000;object-fit:cover}
.case-story .video-toggle{position:absolute;right:20px;bottom:22px;min-width:44px;min-height:44px;padding:0 14px;border:0;border-radius:22px;background:#000000b8;color:#fff;font:600 16px/1 inherit;cursor:pointer}
.case-story .video-toggle:focus-visible{outline:3px solid #fff;outline-offset:2px}
.case-story .phone-hero figcaption{margin:18px auto 0;max-width:34em;font-size:16px}
/* [design-preview:capi-milestones] Timeline makes the one-month and four-month numbers visible. */
.case-story .milestones{list-style:none;padding:0;margin:28px 0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;counter-reset:m}
.case-story .milestones li{position:relative;padding:18px 16px 16px;border-top:3px solid var(--case-accent);background:#eeecdf;border-radius:0 0 14px 14px}
.case-story .milestones span{display:block;font-size:16px;color:var(--case-accent);font-weight:600;margin-bottom:6px}
.case-story .milestones strong{display:block;font-size:16px;line-height:1.4;font-weight:500}
/* [design-preview:capi-model-flow] Four-step flow: why the model shaped the interface. */
.case-story .model-flow{list-style:none;padding:0;margin:28px 0 8px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px}
.case-story .model-flow li{position:relative;padding:18px;border:1px solid #ccd0c5;border-radius:16px;background:#fffdf6}
.case-story .model-flow li:not(:last-child)::after{content:"→";position:absolute;right:-22px;top:50%;transform:translateY(-50%);color:var(--case-accent);font-size:20px}
.case-story .model-flow strong{display:block;font-size:18px;margin-bottom:6px}
.case-story .model-flow span{display:block;font-size:16px;line-height:1.45}
.case-story .flow-note{color:var(--case-accent);font-weight:500}
.case-story .all-screens{margin-top:24px}
@media(max-width:800px){.case-story .milestones{grid-template-columns:1fr 1fr}.case-story .model-flow{grid-template-columns:1fr 1fr;gap:28px}.case-story .model-flow li:nth-child(2)::after{display:none}}
@media(max-width:600px){.case-story .milestones{grid-template-columns:1fr}.case-story .model-flow{grid-template-columns:1fr;gap:28px}.case-story .model-flow li:not(:last-child)::after{content:"↓";right:auto;left:50%;top:auto;bottom:-26px;transform:translateX(-50%)}.case-story .model-flow li:nth-child(2)::after{display:block}}
.case-story .milestones li,.case-story .model-flow li{margin:0}
/* [design-preview:capi-real-screens] Shipped App Store screens, already framed; sized consistently. */
.case-story .model-flow img{display:block;width:100%;max-width:200px;height:auto;margin:0 auto 14px}
.case-story .screen-pair{display:grid;grid-template-columns:repeat(2,minmax(0,260px));justify-content:center;gap:24px;margin:8px 0 24px}
.case-story .screen-pair img,.case-story .screen-single img{display:block;width:100%;height:auto}
.case-story .screen-pair figcaption{grid-column:1/-1;font-size:16px;text-align:center;max-width:36em;margin:0 auto}
.case-story .screen-single{max-width:280px;margin:8px auto 24px}
.case-story .screen-single figcaption{font-size:16px;margin-top:12px}
@media(max-width:600px){.case-story .model-flow img{max-width:220px}.case-story .screen-pair{gap:12px}}
/* [design-preview:capi-size-pass] Smaller, consistent phone sizes so no single screen dominates the viewport; all control text >=16px. */
.case-story .case-intro h1{text-wrap:balance}
.case-story .phone-frame{width:min(240px,62vw);padding:8px;border-radius:40px}
.case-story .phone-frame video{border-radius:32px}
.case-story .video-toggle{font-family:inherit;font-size:16px;font-weight:600;line-height:1;right:16px;bottom:18px}
.case-story .model-flow img{max-width:160px}
.case-story .screen-pair{grid-template-columns:repeat(2,minmax(0,200px))}
.case-story .screen-single{max-width:220px}
@media(max-width:600px){
 .case-story .impact-strip{gap:8px}
 .case-story .impact-strip div{display:grid;grid-template-columns:112px 1fr;align-items:center;gap:12px;padding:12px 16px}
 .case-story .impact-strip dt{font-size:24px;margin:0}
 .case-story .phone-hero{padding:20px 12px}
 .case-story .model-flow img{max-width:150px}
 .case-story .screen-pair{grid-template-columns:repeat(2,minmax(0,160px))}
 .case-story .screen-single{max-width:180px}
}
/* [design-preview:capi-chapters] Subtitle under the project headline, labeled before/after pairs, whiteboards, up-next link. */
.case-story .case-subtitle{font-size:clamp(20px,2.2vw,24px);line-height:1.35;color:var(--case-accent);font-weight:600;margin:4px 0 16px}
.case-story .compare>div{display:flex;flex-direction:column;align-items:center;gap:10px}
.case-story .pair-label{font-size:16px;font-weight:600;color:var(--case-accent);letter-spacing:.02em}
.case-story .whiteboards{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:8px 0 24px}
.case-story .whiteboards img{display:block;width:100%;height:auto;border-radius:14px}
.case-story .whiteboards figcaption{grid-column:1/-1;font-size:16px}
.case-story .up-next{display:flex;flex-direction:column;gap:12px;border-top:1px solid #ccd0c5;padding-top:32px}
.case-story .up-next>a:first-of-type{font-size:clamp(24px,3vw,32px);font-weight:600;color:var(--case-accent)}
.case-story .up-next .back-link{font-size:16px}
@media(max-width:600px){.case-story .whiteboards{grid-template-columns:1fr}}
/* [design-preview:capi-sticky-label] Pinned section labels get the page background so scrolling text never shows through. */
.case-story .section-label{position:sticky;z-index:3;background:#f7f4eb;box-shadow:0 10px 14px #f7f4eb;padding-block:10px;margin-block:0 8px}
.case-story .section-label{display:block;width:auto;max-width:none;align-self:stretch;justify-self:stretch}
/* [design-preview:capi-center-control] Centered play/pause over the hero video. */
.case-story .phone-frame .video-toggle{left:50%;top:50%;right:auto;bottom:auto;transform:translate(-50%,-50%);width:64px;height:64px;min-width:64px;padding:0;border-radius:50%;display:grid;place-items:center;background:#000000a8;color:#fff;opacity:0;transition:opacity .2s}
.case-story .phone-frame .video-toggle svg{width:28px;height:28px}
.case-story .phone-frame.is-paused .video-toggle,.case-story .phone-frame.show-control .video-toggle,.case-story .phone-frame .video-toggle:focus-visible{opacity:1}
@media(hover:hover){.case-story .phone-frame:hover .video-toggle{opacity:1}}
.case-story .phone-frame video{cursor:pointer}
/* [design-preview:capi-lightbox] Click-to-enlarge overlay. */
.case-story .zoomable{cursor:zoom-in}
.case-story img.zoomable:focus-visible,.case-story a.zoomable:focus-visible{outline:3px solid var(--case-accent);outline-offset:4px;border-radius:12px}
.case-story .lightbox{border:0;padding:56px 16px 16px;background:transparent;max-width:min(96vw,1400px);max-height:96vh;overflow:visible;text-align:center}
.case-story .lightbox::backdrop{background:#121614e0}
.case-story .lightbox img{display:block;max-width:100%;max-height:calc(96vh - 150px);width:auto;height:auto;margin:0 auto;border-radius:14px;cursor:zoom-out}
.case-story .lightbox-caption{color:#f2f2ee;font-size:16px;line-height:1.45;max-width:40em;margin:14px auto 0}
.case-story .lightbox-close{position:absolute;top:0;right:16px;min-width:44px;min-height:44px;padding:0 16px;border:0;border-radius:22px;background:#f7f4eb;color:#25332f;font:inherit;font-size:16px;font-weight:600;cursor:pointer}
.case-story .lightbox-close:focus-visible{outline:3px solid #fff;outline-offset:2px}

/* [design-preview:case-story-gallery] Landscape product screens in a two-column grid; course-concept label. */
.case-story .screen-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:8px 0 24px}
.case-story .screen-grid img,.case-story .wide-shot img{display:block;width:100%;height:auto;border-radius:12px;border:1px solid #ccd0c5;background:#fff}
.case-story .screen-grid figcaption,.case-story .wide-shot figcaption{grid-column:1/-1;font-size:16px}
.case-story .wide-shot{margin:8px 0 24px}
.case-story .concept-note{display:inline-block;margin:0 0 12px;padding:6px 12px;border-radius:999px;background:#eeecdf;color:#25332f;font-size:16px;font-weight:600}
.case-story .case-hero-img{margin:28px 0 8px}.case-story .case-hero-img img{display:block;width:100%;height:auto;border-radius:20px}
.case-story blockquote{margin:12px 0;padding:4px 0 4px 18px;border-left:3px solid var(--case-accent);font-style:italic}
@media(max-width:600px){.case-story .screen-grid{grid-template-columns:1fr}}

/* [design-preview:cmh-checklist] Readable replacements for canvas screenshots: a heading for short lists and a numbered theme list. */
.case-story .list-heading{margin:40px 0 0;font-size:20px}
.case-story .theme-list{list-style:none;margin:16px 0 0;padding:0;counter-reset:theme}
.case-story .theme-list li{counter-increment:theme;display:grid;grid-template-columns:2.5em minmax(10em,14em) 1fr;gap:4px 16px;align-items:baseline;padding:18px 0;border-bottom:1px solid #ccd0c5;font-size:17px}
.case-story .theme-list li::before{content:counter(theme,decimal-leading-zero);color:var(--case-accent);font-weight:700}
.case-story .theme-list strong{color:#25332f}
.case-story .theme-list span{color:#3b4a43}
@media(max-width:600px){.case-story .theme-list li{grid-template-columns:2.5em 1fr}.case-story .theme-list span{grid-column:2}}

/* [design-preview:cmh-hero-video] Wide hero video with the CAPI-style centered play/pause control. */
.case-story .hero-video .video-frame{position:relative;border-radius:20px;overflow:hidden;background:#0b2d44}
.case-story .hero-video video{display:block;width:100%;height:auto;aspect-ratio:16/9;cursor:pointer}
.case-story .hero-video .video-toggle{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:64px;height:64px;border:0;border-radius:50%;display:grid;place-items:center;background:#000000a8;color:#fff;cursor:pointer;opacity:0;transition:opacity .2s}
.case-story .hero-video .video-toggle svg{width:28px;height:28px}
.case-story .hero-video .video-frame:hover .video-toggle,.case-story .hero-video .is-paused .video-toggle,.case-story .hero-video .show-control .video-toggle,.case-story .hero-video .video-toggle:focus-visible{opacity:1}
.case-story .hero-video .video-toggle:focus-visible{outline:3px solid #fff;outline-offset:2px}

/* [design-preview:cmh-screens] Polished phone screens beside the decisions they illustrate. */
.case-story .screen-pair.phones{margin:20px 0 8px}
.case-story .screen-pair.phones .device{position:relative;display:block;padding:8px;background:#16191a;border-radius:40px;box-shadow:0 0 0 1px #3a3f40 inset,0 8px 20px #1b2a2224}
.case-story .screen-pair.phones .device img{display:block;width:100%;height:auto;border-radius:32px}
.case-story .screen-pair.phones .device::after{content:'';position:absolute;top:15px;left:50%;width:31%;aspect-ratio:126/37;transform:translateX(-50%);background:#0b0d0e;border-radius:999px}

/* [design-preview:paypal-movie] Opening story at the top of the PayPal page. Real HTML text, 16px minimum. Pairs on #eeecdf: #12344f 11.6:1, #3d5366 6.8:1, #326a99 4.9:1 (bold). */
.case-story .story-section .pp-movie{margin:28px 0 8px}
.case-story .pp-movie{position:relative;background:#eeecdf;border-radius:20px;padding:clamp(20px,4vw,48px) clamp(18px,4vw,56px) 16px;color:#12344f}
.case-story .pp-movie .ppm-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.case-story .pp-movie .ppm-text{min-height:calc(2 * clamp(26px,3.4vw,44px) * 1.15 + 3 * 16px * 1.5 + 16px)}
.case-story .pp-movie .ppm-kicker{margin:0 0 6px;font:600 16px/1.4 'DM Sans',sans-serif;color:#3d5366}
.case-story .pp-movie .ppm-headline{margin:0;font:700 clamp(26px,3.4vw,44px)/1.15 'DM Sans',sans-serif;letter-spacing:-.02em;color:#12344f}
.case-story .pp-movie .ppm-sub{margin:10px 0 0;font:400 clamp(16px,1.4vw,19px)/1.5 'DM Sans',sans-serif;color:#3d5366;max-width:46ch}
.case-story .pp-movie .ppm-stage{display:block;width:100%;height:auto;margin-top:8px}
.case-story .pp-movie .ppm-axis{display:grid;grid-template-columns:repeat(6,1fr);margin:4px 0 0 6.375%;width:87%;text-align:center;font:600 18px/1.3 'DM Sans',sans-serif;color:#3d5366;opacity:0;transition:opacity .6s}
.case-story .pp-movie .ppm-axis .ppm-hot{color:#326a99}
.case-story .pp-movie.s3 .ppm-axis{opacity:1}
.case-story .pp-movie .ppm-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;margin-top:12px}
.case-story .pp-movie .ppm-note{margin:0;font:400 16px/1.4 'DM Sans',sans-serif;color:#3d5366}
.case-story .pp-movie .ppm-dot{fill:#8fa4b6;opacity:0;transition:transform 1.1s cubic-bezier(.34,1.2,.64,1),opacity .5s,fill .5s}
.case-story .pp-movie.s1 .ppm-dot{opacity:1}
.case-story .pp-movie.s2 .ppm-dot{opacity:.18}
.case-story .pp-movie.s2 .ppm-dot.ppm-on{opacity:1;fill:#326a99}
.case-story .pp-movie.s3 .ppm-dot:not(.ppm-on){opacity:0}
.case-story .pp-movie.s4 .ppm-dot.ppm-on{fill:#a9bccb}
.case-story .pp-movie.s4 .ppm-dot.ppm-on.ppm-low{fill:#326a99}
.case-story .pp-movie .ppm-controls{display:flex;gap:8px;flex:none}
.case-story .pp-movie .ppm-controls button{min-height:44px;min-width:44px;padding:0 18px;border:1px solid #12344f;border-radius:999px;background:transparent;color:#12344f;font:500 16px/1 'DM Sans',sans-serif;cursor:pointer}
.case-story .pp-movie .ppm-controls .ppm-next,.case-story .pp-movie .ppm-controls .ppm-replay{background:#12344f;color:#fff}
.case-story .pp-movie .ppm-controls [hidden]{display:none}
.case-story .pp-movie .ppm-controls button:focus-visible{outline:2px solid #12344f;outline-offset:3px}
@media(max-width:600px){.case-story .pp-movie .ppm-foot{flex-direction:column-reverse;align-items:flex-start}}
@media(prefers-reduced-motion:reduce){.case-story .pp-movie .ppm-dot,.case-story .pp-movie .ppm-axis{transition:none}}
