/* EMD visual storytelling, scoped to this case study. */
.emd-case{--emd-stage:#e7e8e5;--emd-accent:#4c5946;--emd-card:#f8f9f6}
.emd-case .project-body .emd-cover{padding:56px 52px 18px;background:var(--emd-stage)}
.emd-case .project-body .emd-cover img{width:100%;border-radius:7px;box-shadow:0 12px 32px #25302015}
.emd-case .project-body .emd-cover figcaption{padding:24px 0 0;font-size:12px;text-align:center;color:var(--muted)}
.emd-case .role-grid{gap:24px}
.emd-case .role-grid article{position:relative;padding:76px 28px 28px;background:var(--emd-stage);overflow:hidden}
.emd-role-label{position:absolute;top:0;left:0;right:0;padding:8px 28px;background:#70786b;color:white;font-size:11px;letter-spacing:.06em}
.emd-role-icon{display:flex;align-items:center;justify-content:center;width:58px;height:58px;margin-bottom:25px;border-radius:14px;background:var(--emd-card);font-size:27px;color:var(--emd-accent);box-shadow:0 5px 16px #29351c0b}
.emd-insight-board{display:grid;grid-template-columns:1fr 1fr;gap:46px 54px;background:var(--emd-stage);border-radius:12px;padding:65px 55px;margin:10px 0 70px}
.emd-insight-board article{position:relative;padding:28px 22px 20px;background:var(--emd-card);border-radius:12px}
.emd-insight-board article:nth-child(even){transform:translateY(20px)}
.emd-insight-board article>span{position:absolute;top:-14px;left:20px;border-radius:30px;background:var(--emd-accent);color:#fff;padding:7px 13px;font-size:12px}
.emd-case .emd-insight-board h3{font-size:17px;line-height:1.4;margin:3px 0 10px;letter-spacing:-.2px}
.emd-insight-board p,.emd-flow p{font-size:13px;line-height:1.75;margin:0;color:#72776d}
.emd-workflow-board{background:var(--emd-stage);border-radius:12px;padding:50px 30px}
.emd-flow{display:grid;grid-template-columns:1fr 20px 1fr 20px 1fr 20px 1fr;gap:12px;align-items:start}
.emd-flow article{min-width:0}.emd-flow article>span{display:block;font-size:10px;letter-spacing:.04em;color:var(--emd-accent);margin-bottom:16px}
.emd-case .emd-flow h3{font-size:17px;line-height:1.4;margin:0 0 16px;min-height:48px;letter-spacing:-.3px}
.emd-flow p{background:var(--emd-card);padding:16px;border-radius:9px;min-height:110px;color:var(--ink)}
.emd-flow small{display:block;font-size:10px;line-height:1.6;margin-top:14px;color:var(--emd-accent)}
.emd-flow>b{padding-top:43px;font-weight:400}.emd-return-loop{margin-top:32px;padding:18px 20px;border:1px solid #929c87;border-top:0;border-radius:0 0 12px 12px;font-size:14px;color:var(--emd-accent)}
.emd-return-loop span{display:block;font-size:12px;margin-top:7px}
.emd-process-board{display:grid;grid-template-columns:1fr 24px 1fr;gap:20px;align-items:center;padding:60px 35px;background:var(--emd-stage);border-radius:12px}
.emd-process-board figure{margin:0;min-width:0}.emd-process-board img{width:100%;aspect-ratio:1.8;object-fit:contain;background:#f1f2ef;border-radius:8px;box-shadow:0 8px 24px #24301b0c}
.emd-process-board figcaption{text-align:center;font-size:11px;color:var(--muted);line-height:1.6;margin-top:24px}
.emd-process-board figcaption span{display:table;margin:0 auto 9px;padding:3px 10px;border-radius:20px;background:var(--emd-card);font-size:12px;color:var(--ink)}
.emd-process-board figure:last-child figcaption span{background:#d6e4cf}
.emd-decision-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:30px 0}
.emd-case .project-body .emd-decision-grid .decision{margin:0;padding:26px 23px;background:var(--emd-stage);border-radius:12px}
.emd-case .project-body .emd-decision-grid .decision-number{display:flex;align-items:center;justify-content:center;width:36px;height:36px;background:var(--emd-accent);color:#fff;border-radius:50%;font-size:14px;margin-bottom:28px}
.emd-case .project-body .emd-decision-grid h3{font-size:18px;line-height:1.4}.emd-case .project-body .emd-decision-grid p{font-size:13px;line-height:1.75}
.emd-case .journey-visual{background:var(--emd-stage);padding:45px 35px;border-radius:12px}
.emd-case .journey-visual img{border-radius:6px;box-shadow:0 8px 28px #25302014}
.emd-case .journey-visual .stage-caption{font-size:11px;margin:20px 0 0;text-align:center}
.emd-case .emd-journey .walkthrough-panel:not([hidden]){display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);column-gap:28px;align-items:start}
.emd-case .emd-journey .walkthrough-panel>.journey-owner,.emd-case .emd-journey .walkthrough-panel>h3,.emd-case .emd-journey .walkthrough-panel>p,.emd-case .emd-journey .walkthrough-panel>.journey-reason{grid-column:1}
.emd-case .emd-journey .walkthrough-panel>.journey-visual{grid-column:2;grid-row:1 / span 5;margin:0;align-self:stretch;display:flex;flex-direction:column;justify-content:center}
@media(max-width:1050px){.emd-insight-board{padding:50px 28px;gap:40px 25px}.emd-decision-grid{grid-template-columns:1fr}.emd-flow{gap:8px;grid-template-columns:1fr 12px 1fr 12px 1fr 12px 1fr}.emd-flow p{padding:10px}.emd-case .journey-visual{padding:30px 20px}.emd-case .emd-journey .walkthrough-panel:not([hidden]){display:block}.emd-case .emd-journey .walkthrough-panel>.journey-visual{margin:24px 0}}
@media(max-width:700px){.emd-case .project-body .emd-cover{padding:28px 18px 18px}.emd-insight-board{grid-template-columns:1fr;padding:42px 22px;gap:36px}.emd-insight-board article:nth-child(even){transform:none}.emd-case .role-grid{grid-template-columns:1fr}.emd-workflow-board{padding:30px 22px}.emd-flow{grid-template-columns:1fr;gap:16px}.emd-flow>b{padding:0;transform:rotate(90deg);text-align:center}.emd-case .emd-flow h3{min-height:0}.emd-flow p{min-height:0;padding:16px}.emd-flow article>span{margin-bottom:8px}.emd-process-board{grid-template-columns:1fr;padding:30px 22px}.emd-process-board>b{text-align:center;transform:rotate(90deg)}.emd-case .journey-visual{padding:25px 16px}.emd-case .role-grid article{padding-top:65px}}
.emd-case .emd-journey .walkthrough-panel>p,.emd-case .emd-journey .journey-reason p{font-size:14px;line-height:1.8}
.emd-case .emd-journey .walkthrough-panel>h3{font-size:23px;line-height:1.35;letter-spacing:-.4px;margin-top:18px}
.emd-case .emd-journey .journey-owner{font-size:11px;background:transparent;border:0;padding:0;color:var(--emd-accent);letter-spacing:.03em}
/* Separate chapters with whitespace instead of repeated divider rules. */
.emd-case .project-body .case-section,
.emd-case .editorial-row,
.emd-case .project-shell>.case-nav,
.emd-case .project-shell .case-status,
.emd-case .project-body .case-feedback,
.emd-case .project-more>a,
.emd-case .visible-note,
.emd-case .service-journeys details{border:0}
.emd-case .project-body .measurement,
.emd-case .journey-reason{border:0}
.emd-case .project-introduction strong{text-decoration:none}
/* Supporting workflows: one complete interface, followed by two reading cues. */
.emd-showcase .emd-evidence-stage{background:var(--emd-stage);padding:32px;border-radius:14px}
.emd-evidence-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:32px}
.emd-evidence-heading>div>span{font-size:10px;letter-spacing:.1em;color:var(--emd-accent)}
.emd-case .emd-evidence-heading h3{font-size:22px;line-height:1.35;letter-spacing:-.4px;margin:9px 0 0}
.emd-evidence-heading>a{flex-shrink:0;font-size:12px;background:var(--emd-card);padding:10px 14px;border-radius:24px;text-decoration:none}
.emd-evidence-screen{margin:0}.emd-evidence-screen>a{display:block}.emd-evidence-screen img{display:block;width:100%;height:auto;border:0;border-radius:8px;box-shadow:0 10px 32px #26341c10}
.emd-evidence-screen figcaption{font-size:11px;line-height:1.6;color:var(--muted);margin-top:16px}
.emd-evidence-notes{display:grid;grid-template-columns:1fr 1fr;gap:30px;margin-top:30px}
.emd-evidence-notes article{display:flex;align-items:start;gap:13px}
.emd-evidence-notes article>span{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:28px;height:28px;border-radius:50%;background:var(--emd-accent);color:white;font-size:10px}
.emd-evidence-notes h4{font-size:15px;line-height:1.5;margin:2px 0 8px;font-weight:600}
.emd-case .emd-evidence-notes p{font-size:13px;line-height:1.75;margin:0;color:#697062}
.emd-case .emd-showcase .walkthrough-panel{padding:24px 0 0}
.emd-case .walkthrough-controls{border:0}
@media(max-width:700px){.emd-showcase .emd-evidence-stage{padding:22px 16px}.emd-evidence-heading{display:block;margin-bottom:24px}.emd-evidence-heading>a{display:inline-block;margin-top:16px}.emd-case .emd-evidence-heading h3{font-size:20px}.emd-evidence-notes{grid-template-columns:1fr;gap:22px;margin-top:24px}.emd-evidence-screen figcaption{font-size:10px}.emd-showcase .walkthrough-tabs button{min-width:0;font-size:11px;padding:12px 8px}}
/* A focused five-chapter EMD story. */
.emd-case .case-content>.case-section{border:0}
.emd-case .emd-scope-note{font-size:14px;color:var(--muted)}
.emd-case .emd-decision-evidence{margin:44px 0 64px}
.emd-case .emd-decision-evidence h3{font-size:24px;line-height:1.35;margin:0 0 16px}
.emd-case .emd-decision-evidence>p{font-size:16px;line-height:1.8;max-width:720px;margin-bottom:26px}
.emd-decision-evidence figure{margin:0;padding:35px;background:var(--emd-stage);border-radius:12px}
.emd-decision-evidence figure img{display:block;width:100%;height:auto;border-radius:6px;box-shadow:0 8px 28px #2530200d}
.emd-decision-evidence figcaption{font-size:11px;line-height:1.7;margin-top:20px;color:var(--muted)}
.emd-case .case-nav{border:0}
@media(max-width:700px){.emd-decision-evidence figure{padding:18px}.emd-case .emd-decision-evidence h3{font-size:22px}.emd-case .emd-decision-evidence>p{font-size:15px}.emd-case .emd-decision-evidence{margin:30px 0 44px}}
/* Keep the screen, rather than a repeated explanatory note, central to each step. */
.emd-case .emd-journey .walkthrough-panel>.journey-visual{grid-row:1 / span 3}
.emd-case .case-heading h1{max-width:1080px}
/* Give product evidence the full reading width. */
.emd-case .emd-journey .walkthrough-panel:not([hidden]){display:block}
.emd-case .emd-journey .walkthrough-panel>h3{margin:14px 0}
.emd-case .emd-journey .walkthrough-panel>p{max-width:670px}
.emd-case .emd-journey .walkthrough-panel>.journey-visual{display:block;margin:26px 0 0;padding:32px}
body.emd-case.original-layout .case-content>.case-section{border:0}
@media(max-width:700px){.emd-case .emd-journey .walkthrough-panel>.journey-visual{padding:18px}}
/* Keep each step's explanation close to its screen. */
.emd-case .emd-journey .walkthrough-tabs{margin-bottom:0}
.emd-case .emd-journey .walkthrough-panel{padding:16px 0 0}
.emd-case .emd-journey .walkthrough-panel>h3{margin:8px 0}
.emd-case .emd-journey .walkthrough-panel>p{margin:0;line-height:1.65}
.emd-case .emd-journey .walkthrough-panel>.journey-visual{margin-top:16px}
/* Changing steps must not re-anchor the document around the replaced content. */
.emd-case .emd-journey{overflow-anchor:none}
body.emd-case{overflow-anchor:none}
/* Pair the two continuation projects at equal weight. */
.emd-case .project-continuation{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:48px;padding-top:32px;padding-bottom:32px}
.emd-case .project-continuation .continuation-feature{grid-template-columns:minmax(0,1fr) 32px;gap:20px;padding:0;align-content:start}
.emd-case .project-continuation .continuation-copy{grid-column:1}
.emd-case .project-continuation .continuation-copy h2{font-size:clamp(26px,2.5vw,38px);margin:16px 0 10px}
.emd-case .project-continuation .continuation-copy p{font-size:18px}
.emd-case .project-continuation .continuation-feature img{grid-column:1/-1;grid-row:2;width:100%;max-width:none;height:160px;object-fit:cover;display:block}
.emd-case .project-continuation .continuation-arrow{grid-column:2;grid-row:1;align-self:center}
@media(max-width:700px){.emd-case .project-continuation{grid-template-columns:1fr;gap:32px}.emd-case .project-continuation .continuation-feature img{display:none}}
.emd-case .project-continuation .continuation-label{grid-column:1/-1;margin-bottom:-24px}
.emd-case .project-continuation .continuation-copy h2{margin-top:0}
@media(max-width:700px){.emd-case .project-continuation .continuation-label{margin-bottom:-8px}}
/* Static portal gallery, following the WePong cover treatment. */
.emd-screen-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;padding:32px;max-width:1360px;width:91%;margin:0 auto;background:#e7e7e8;border-radius:14px;overflow:hidden;align-items:start;box-sizing:border-box}
.emd-gallery-screen{min-width:0;border-radius:8px;overflow:hidden;background:#fff}
.emd-gallery-screen img{display:block;width:100%;height:auto}
.emd-gallery-screen:nth-child(2){margin-top:28px}
@media(max-width:1000px){.emd-screen-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;padding:28px}.emd-gallery-screen:nth-child(2){margin-top:0}.emd-gallery-screen:last-child{grid-column:1/-1;width:calc(50% - 10px);justify-self:center}}
@media(max-width:700px){.emd-screen-gallery{grid-template-columns:1fr;width:88%;gap:16px;padding:20px 14px;border-radius:10px}.emd-gallery-screen:last-child{grid-column:auto;width:100%}.emd-gallery-screen{border-radius:6px}}

/* Match the other project covers while showing the current hiring interface. */
.emd-portal-cover{width:91%;max-width:1360px;height:620px;margin:0 auto;padding:36px clamp(24px,6vw,96px) 0;box-sizing:border-box;background:#e9e9ed;border-radius:12px;overflow:hidden}
.emd-portal-cover>img{display:block;width:100%;max-width:1100px;height:auto;margin:0 auto;border-radius:8px;box-shadow:0 12px 40px #24243812}
@media(max-width:1000px){.emd-portal-cover{height:480px;padding:28px 24px 0}}
@media(max-width:700px){.emd-portal-cover{width:88%;height:350px;padding:20px 14px 0;border-radius:8px}.emd-portal-cover>img{width:700px;max-width:none;border-radius:4px}}
