
.mobile-first-case .story-hero h1{max-width:1000px}
.mf-screen-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(18px,3vw,44px);padding:clamp(24px,4vw,56px);background:linear-gradient(135deg,#8a9da6,#586f7b);border-radius:12px;align-items:start}
.mf-screen-board figure{margin:0;min-width:0;display:flex;flex-direction:column}
.mf-screen-board figcaption{font-size:13px;line-height:1.5;letter-spacing:.025em;color:#f2f6f7;margin-bottom:16px;min-height:40px}
.mf-screen-board img{display:block;width:100%;height:auto;border-radius:clamp(16px,3vw,42px)}
.story-hero .mf-screen-board{margin-top:44px;padding-inline:clamp(30px,8vw,120px)}
.mf-feature{display:grid;grid-template-columns:.7fr 1.6fr;gap:clamp(28px,4vw,60px);align-items:start;margin-top:80px}
.mf-copy h3{font-size:clamp(28px,3vw,42px);line-height:1.1;margin:24px 0}
.mf-copy p{font-size:17px;line-height:1.75;color:#53656f}
.mf-feature .mf-screen-board{gap:18px;padding:28px}
.mf-flow{border-top:1px solid #b6c1c6;padding:24px 0}.mf-flow:last-child{border-bottom:1px solid #b6c1c6}
.mf-flow summary{display:flex;justify-content:space-between;cursor:pointer;font-size:20px;list-style:none}.mf-flow summary::-webkit-details-marker{display:none}
.mf-flow .story-screen{margin-top:24px}.mf-flow[open] summary span{transform:rotate(45deg)}
@media(max-width:950px){.mf-feature{grid-template-columns:1fr}.mf-copy{max-width:640px}.mf-feature .mf-screen-board{padding:30px;gap:26px}}
@media(max-width:600px){.mf-screen-board,.mf-feature .mf-screen-board{gap:12px;padding:18px}.mf-screen-board figcaption{font-size:10px;min-height:42px;margin-bottom:10px}.story-hero .mf-screen-board{padding:20px 16px}.mf-feature{margin-top:52px}.mf-copy p{font-size:16px}.mf-screen-board img{border-radius:15px}.mf-flow summary{font-size:17px}}

/* Shared handset presentation: original screen content, without the legacy illustrated frame. */
.mobile-first-case .device-phone{width:100%;max-width:270px;box-sizing:border-box}
.mobile-first-case .device-phone-screen{background:#fff;overflow:hidden}
.mobile-first-case .device-phone-screen>img{width:100%;height:auto;display:block;max-width:none;object-fit:initial;border-radius:0}
.mobile-first-case .mf-screen-board figure{align-items:stretch}
.mobile-first-case .mf-screen-board figcaption{min-height:40px;display:flex;align-items:start}
.mobile-first-case .mf-flow h3{font-size:22px;font-weight:500;margin:0 0 24px}
.mobile-first-case .mf-flow .story-screen{margin:0}
@media(max-width:600px){.mobile-first-case .device-phone{padding:19px 4px 16px;border-radius:18px}.mobile-first-case .device-phone-speaker{top:8px;height:3px}.mobile-first-case .mf-flow h3{font-size:18px}}
/* Match the original screen proportions so the handset has no empty extension. */
.mobile-first-case .device-phone-screen{aspect-ratio:750/1334}

.mobile-first-case .mf-screen-board figure{width:100%;max-width:270px;margin-inline:auto}

/* Fill every screen edge, trimming the source’s thin lower white rim. */
.mobile-first-case .device-phone-screen>img{width:100%;height:calc(100% + 3px);object-fit:cover;object-position:center top}

/* Selected hero A: large original flow with two substantial phones at the lower right. */
.mf-layered-hero{position:relative;margin-top:44px;aspect-ratio:1.6;overflow:hidden;border-radius:12px;background:linear-gradient(135deg,#8a9da6,#586f7b)}
.mf-layered-hero figure{margin:0;min-width:0}.mf-layered-hero figcaption{font-size:12px;line-height:1.5;color:#f2f6f7;margin-bottom:14px;min-height:20px;text-align:left}
.mf-layered-hero .option-map{position:absolute;left:3%;top:5%;width:81%}
.mf-layered-hero .option-map>img{display:block;width:100%;height:auto;border-radius:5px}
.mf-layered-hero .option-phone-pair{position:absolute;right:3%;bottom:4%;width:40%;display:grid;grid-template-columns:1fr 1fr;gap:22px}
.mf-layered-hero .device-phone{max-width:none;box-shadow:0 14px 26px #34474e55}
@media(max-width:750px){.mf-layered-hero{aspect-ratio:.9}.mf-layered-hero .option-map{width:92%;left:4%;top:4%}.mf-layered-hero .option-phone-pair{width:66%;right:4%;bottom:4%;gap:12px}.mf-layered-hero figcaption{font-size:9px;min-height:26px;margin-bottom:8px}}
.mf-layered-hero .option-phone-pair figcaption{color:#253b45}

/* Match the established 26px label row and 12px image gap. */
.mobile-first-case .mf-screen-board figcaption,.mf-layered-hero figcaption{min-height:var(--image-label-row-height,26px);margin:0 0 12px;align-items:center;display:flex}


.mf-image-dialog{box-sizing:border-box;width:min(780px,94vw);max-height:94vh;border:1px solid #96a9b0;border-radius:12px;background:#dce4e7;color:#253b45;padding:22px}
.mf-image-dialog::backdrop{background:#102127e8}.mf-image-dialog form{display:flex;justify-content:flex-end}.mf-image-dialog form button{font-size:28px;color:#253b45;background:none;border:1px solid #8ba0a8;border-radius:50%;width:36px;height:36px;cursor:pointer}.mf-dialog-caption{font-size:16px;line-height:1.5;margin:-30px 55px 22px 0}.mf-dialog-image-wrap{max-height:78vh;overflow:auto;background:white;scrollbar-width:thin}.mf-dialog-image-wrap img{display:block;width:100%;height:auto;max-width:none}
@media(max-width:750px){.mobile-first-case .mf-screen-board figcaption,.mf-layered-hero figcaption{min-height:var(--image-label-row-height,22px)}.mf-image-dialog{padding:15px}.mf-dialog-caption{font-size:13px}.mf-dialog-image-wrap{max-height:75vh}}

.mobile-first-case .mf-screen-board figcaption{justify-content:space-between;gap:8px}

/* One standard preview control opens each complete group. */
.mobile-first-case .mf-screen-board{position:relative}
.mobile-first-case .mf-screen-board figcaption{justify-content:flex-start;gap:0}
.mobile-first-case .mf-screen-board figure:last-child figcaption{padding-right:34px}
.mobile-first-case .device-phone-screen{cursor:default}
.mf-group-trigger{position:absolute;top:28px;right:28px;display:block;border:0;padding:0;background:none;color:inherit;cursor:pointer;z-index:3}
.mf-group-trigger .preview-open-icon{display:grid;place-items:center;flex:0 0 26px;width:26px;height:26px;border-radius:50%;border:1px solid #d9dfe56b;color:#f0f2f3;background:#22282d20}
.mf-group-trigger:hover .preview-open-icon{background:#ffffff12;border-color:#e6ecee}
.mf-group-trigger:focus-visible,.mf-group-close:focus-visible{outline:2px solid #579fa5;outline-offset:5px}
.mf-layered-hero .mf-group-trigger{top:22px;right:22px}
.mf-group-dialog{width:min(1500px,calc(100vw - 40px));max-width:none;height:auto;max-height:calc(100dvh - 40px);padding:0;border:1px solid #778e98;border-radius:12px;background:#dce4e7;overflow:hidden}
.mf-group-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:16px 22px;border-bottom:1px solid #a6b8c0}
.mf-group-dialog-header p{margin:0;font-size:16px;line-height:1.5}
.mf-group-close{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;padding:0;border:1px solid #8ba0a8;border-radius:50%;background:none;color:#253b45;cursor:pointer}
.mf-group-dialog-stage{overflow:auto;max-height:calc(100dvh - 116px);padding:24px}
.mf-group-preview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px;min-width:840px;align-items:start}
.mf-group-preview figure{margin:0;min-width:0}.mf-group-preview figcaption{font-size:13px;line-height:1.5;margin:0 0 14px;min-height:24px;color:#334b57}
.mf-group-preview img{display:block;width:100%;height:auto;border-radius:0;background:#fff}
.mf-group-preview.mf-preview-with-flow{grid-template-columns:1.5fr 1fr 1fr}
@media(max-width:750px){.mf-group-trigger{top:18px;right:18px}.mf-group-trigger .preview-open-icon{width:22px;height:22px;flex-basis:22px}.mobile-first-case .mf-screen-board figure:last-child figcaption{padding-right:28px}.mf-group-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 24px)}.mf-group-dialog-header{padding:12px 15px}.mf-group-dialog-header p{font-size:13px}.mf-group-dialog-stage{padding:16px;max-height:calc(100dvh - 100px)}.mf-group-preview{min-width:900px;gap:20px}}

/* Reserve an independent toolbar row; label lengths never move one phone below its neighbors. */
.mobile-first-case .mf-screen-board,.mobile-first-case .mf-feature .mf-screen-board{padding:60px 28px}
.mobile-first-case .mf-screen-board .mf-group-trigger{top:18px;right:22px}
.mobile-first-case .mf-screen-board figcaption{height:3em;min-height:3em;line-height:1.5;align-items:flex-start;margin:0 0 12px;padding:0}
.mobile-first-case .mf-screen-board figure:last-child figcaption{padding-right:0}
.mf-layered-hero .mf-group-trigger{top:18px;right:22px}
.mf-layered-hero .option-map{top:60px}
.mf-layered-hero .option-phone-pair figcaption{height:3em;min-height:3em;align-items:flex-start}
@media(max-width:950px){.mobile-first-case .mf-feature .mf-screen-board{padding:60px 30px}}
@media(max-width:600px){.mobile-first-case .mf-screen-board,.mobile-first-case .mf-feature .mf-screen-board{padding:50px 18px}.mobile-first-case .mf-screen-board .mf-group-trigger{top:14px;right:18px}.mobile-first-case .mf-screen-board figcaption{height:3em;min-height:3em}.mf-layered-hero .option-map{top:50px}}
/* Panel treatment matches the User Account Dashboard device-state reference. */
.mobile-first-case .mf-screen-board,.mobile-first-case .mf-feature .mf-screen-board{padding:24px;column-gap:18px;row-gap:12px;grid-template-rows:26px auto;background:linear-gradient(130deg,#8999a4,#576d7b);border-radius:6px}
.mobile-first-case .mf-screen-board>.mf-group-trigger{position:static;grid-column:1/-1;justify-self:end;align-self:start}
.mobile-first-case .mf-screen-board figcaption{font-size:10px;letter-spacing:.04em;line-height:1.5;height:auto;min-height:var(--image-label-row-height,26px);align-items:center;margin:0 0 12px;padding:0}
.mf-layered-hero{background:linear-gradient(130deg,#8999a4,#576d7b);border-radius:6px}
.mf-layered-hero .mf-group-trigger{top:24px;right:24px}
@media(max-width:750px){.mobile-first-case .mf-screen-board,.mobile-first-case .mf-feature .mf-screen-board{padding:16px;column-gap:18px;row-gap:12px;grid-template-rows:22px auto}.mobile-first-case .mf-screen-board figcaption{font-size:9px;min-height:var(--image-label-row-height,22px)}.mf-layered-hero .mf-group-trigger{top:16px;right:16px}}

/* Static designs: three across on desktop, full-sized stacked phones on mobile. */
.mobile-first-case .mf-screen-board,.mobile-first-case .mf-feature .mf-screen-board{grid-template-rows:auto}
.mobile-first-case .device-phone-screen{cursor:default}
@media(max-width:750px){
 .mobile-first-case .mf-screen-board,.mobile-first-case .mf-feature .mf-screen-board{grid-template-columns:1fr;grid-template-rows:auto;gap:30px;padding:24px}
 .mobile-first-case .mf-screen-board figure{width:100%;max-width:270px;margin-inline:auto}
 .mobile-first-case .mf-screen-board figcaption{font-size:12px;min-height:0;height:auto;margin-bottom:12px}
 .mobile-first-case .mf-screen-board .device-phone{max-width:270px;width:100%}
 .mf-layered-hero{aspect-ratio:auto;display:grid;gap:28px;padding:24px;overflow:hidden}
 .mf-layered-hero .option-map{position:static;width:100%;margin:0}
 .mf-layered-hero .option-phone-pair{position:static;display:grid;grid-template-columns:1fr;gap:30px;width:100%;justify-items:center}
 .mf-layered-hero .option-phone{width:100%;max-width:270px}
 .mf-layered-hero .option-phone-pair figcaption{font-size:12px;height:auto;min-height:0;margin-bottom:12px;color:#eef2f5}
}
@media(max-width:750px){.mobile-first-case .device-phone{padding:23px 6px 20px;border-radius:23px}.mobile-first-case .device-phone-speaker{top:10px;height:5px}}

/* Exploration diagrams remain open; their previews use the shared zoom overlay. */
.mobile-first-case .mf-flow,.mobile-first-case .mf-flow:last-child{border:0;padding:24px 0}
.mobile-first-case .mf-flow>h3 .preview-open-icon{color:#536b76;border-color:#8399a36b;background:transparent}
.mobile-first-case .mf-flow>h3 .preview-eyebrow-button{font-size:22px;font-weight:500;letter-spacing:normal}
@media(max-width:750px){.mobile-first-case .mf-flow>h3 .preview-eyebrow-button{font-size:18px}}
.mobile-first-case .mf-flow>h3 .preview-eyebrow-button:is(:hover,:focus-visible) .preview-open-icon{color:#357f89;border-color:#579fa5;background:#579fa518;opacity:1}

/* Group previews share the standard overlay without changing caption spacing. */
.mobile-first-case .mf-screen-board>.mf-group-trigger{position:absolute;top:24px;right:24px;width:26px;height:26px;display:block;grid-column:auto}
.mobile-first-case .mf-screen-board figure:last-child figcaption{padding-right:34px}
@media(max-width:750px){.mobile-first-case .mf-screen-board>.mf-group-trigger{display:block;width:22px;height:22px}.mobile-first-case .mf-screen-board figure:last-child figcaption{padding-right:0}}

/* Mobile hero uses the same disclosure control as the other case studies. */
.mobile-first-case .mf-hero-disclosure{display:contents}
.mobile-first-case .mf-hero-disclosure>.mf-hero-disclosure-footer{display:none}
.mobile-first-case .mf-hero-disclosure .mf-layered-hero figcaption{position:static;padding:0;background:none;left:auto;right:auto;bottom:auto;justify-content:flex-start;gap:0}
@media(max-width:750px){
 .mobile-first-case .mf-hero-disclosure{display:block;height:auto;margin:44px 0 0;padding:0;border-radius:6px;overflow:hidden;background:none}
 .mobile-first-case .mf-hero-disclosure .mf-layered-hero{margin:0;border-radius:6px 6px 0 0;box-sizing:border-box;align-content:start;transition:height .65s ease}
 .mobile-first-case .mf-hero-disclosure .option-phone-pair{display:contents}
 .mobile-first-case .mf-hero-disclosure .option-phone{justify-self:center}
 .mobile-first-case .mf-hero-disclosure .option-phone:first-child{order:0}
 .mobile-first-case .mf-hero-disclosure .option-phone:last-child{order:1}
 .mobile-first-case .mf-hero-disclosure .option-map{order:2}
 .mobile-first-case .mf-hero-disclosure .mf-layered-hero figcaption{min-height:0;height:auto;margin-bottom:12px;color:#eef2f5;font-size:12px}
 .mobile-first-case .mf-hero-disclosure>.mf-hero-disclosure-footer{position:static;display:flex;justify-content:center;align-items:center;margin:0}
 .mobile-first-case .mf-hero-disclosure-footer .design-toggle{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;font-family:inherit}
 .mobile-first-case .mf-hero-disclosure-footer .design-toggle span{display:inline-flex}
 .mobile-first-case .mf-hero-disclosure-footer .design-toggle-icon svg{transition:transform .25s}
 .mobile-first-case .mf-hero-disclosure-footer .design-toggle[aria-expanded="true"] .design-toggle-icon svg{transform:rotate(180deg)}
}
@media(prefers-reduced-motion:reduce){.mobile-first-case .mf-hero-disclosure .mf-layered-hero,.mobile-first-case .mf-hero-disclosure-footer .design-toggle-icon svg{transition:none}}
