/* Mobile cases are native documents. All layout is in normal flow and none of
   these rules affects the fixed desktop presentation. */
.presentation-host:has(> .mobile-case-reader) {height:auto;min-height:0;}
.mobile-case-reader {--mobile-case-accent:var(--case-frame-text);--reader-section-gap:clamp(60px,17vw,96px);display:block;width:100%;min-width:0;height:auto;overflow:visible;background:var(--spatial-background);color:var(--spatial-text);font:400 16px/24px var(--spatial-body-font);text-align:left;}
.mobile-case-reader,.mobile-case-reader * {box-sizing:border-box;}
.mobile-case-section {position:relative;display:block;width:100%;min-width:0;height:auto;margin:0;padding:0;overflow:visible;scroll-snap-align:none;}
.mobile-case-section + .mobile-case-section {margin-top:var(--reader-section-gap);}
.mobile-case-section:last-child {padding-bottom:clamp(60px,17vw,120px);}
.mobile-case-section-sentinel {position:absolute;left:0;top:0;width:1px;height:1px;pointer-events:none;}
.mobile-case-cover-copy,.mobile-case-section-copy {width:100%;max-width:720px;margin:0 auto;}
.mobile-case-cover-copy {padding-top:40px;}
.mobile-case-copy {display:block;width:auto;max-width:100%;height:auto;margin:0;overflow:visible;overflow-wrap:anywhere;word-break:normal;white-space:pre-line;opacity:var(--copy-opacity,1);font-weight:400;letter-spacing:0;}
.mobile-case-copy--title,.mobile-case-copy--subtitle,.mobile-case-copy--meta-label,.mobile-case-copy--meta-value,.mobile-case-copy--kicker,.mobile-case-copy--heading,.mobile-case-copy--subheading,.mobile-case-copy--metric,.mobile-case-copy--label {font-family:var(--spatial-font);}
.mobile-case-copy--title {font-size:clamp(28px,7.96vw,40px);line-height:1.1;}
.mobile-case-copy--subtitle {margin-top:12px;font-size:20px;line-height:26px;}
.mobile-case-metadata {display:flex;flex-direction:column;gap:28px;margin:40px 0 0;padding:0;}
.mobile-case-metadata-pair {display:block;margin:0;padding:0;}
.mobile-case-copy--meta-label {color:var(--mobile-case-accent);font-size:18px;line-height:22px;}
.mobile-case-copy--meta-value {margin:12px 0 0;font-size:20px;line-height:28px;}
.mobile-case-reader h2.mobile-case-copy--kicker {margin:0;font:400 20px/26px var(--spatial-font);}
.mobile-case-copy--heading {margin-top:36px;font-size:clamp(24px,6vw,30px);line-height:1.2;}
.mobile-case-copy--kicker + .mobile-case-copy--heading {margin-top:16px;}
.mobile-case-copy--body {font:400 16px/24px var(--spatial-body-font);}
.mobile-case-copy--body + .mobile-case-copy--body {margin-top:14px;}
.mobile-case-copy--heading + .mobile-case-copy--body,.mobile-case-copy--subheading + .mobile-case-copy--body {margin-top:24px;}
.mobile-case-copy--subheading {margin-top:30px;font-size:20px;line-height:27px;}
.mobile-case-copy--label {margin-top:22px;font-size:18px;line-height:24px;}
.mobile-case-copy--caption {margin-top:16px;font:400 14px/21px var(--spatial-body-font);}
.mobile-case-copy--bullet {position:relative;padding-left:24px;}
.mobile-case-copy--bullet::before {content:'';position:absolute;left:2px;top:.42em;width:8px;height:8px;background:var(--mobile-case-accent);}
.mobile-case-metrics {display:flex;flex-direction:column;gap:32px;margin-top:40px;}
.mobile-case-copy--metric {font-size:clamp(42px,12vw,56px);line-height:1.12;}
.mobile-case-metric .mobile-case-copy--body {margin-top:14px;}
.mobile-case-metrics + .mobile-case-copy {margin-top:32px;}
.mobile-case-media-list {display:flex;flex-direction:column;gap:20px;width:100%;margin:0 0 40px;padding:clamp(24px,8vw,40px) 10px;background:var(--case-frame);}
.mobile-case-media-list--cover {--cover-inset:min(clamp(32px,14.25vw,72px),7svh);--cover-limit:max(80px,min(62svh,calc(100svh - var(--mobile-bar-top,90px) - 170px)));margin-bottom:0;padding:var(--cover-inset) 10px;}
.mobile-case-media-list--phones {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:10px;}
.mobile-case-reader .mobile-case-media {position:relative;display:block;left:auto;top:auto;inset:auto;width:100%;height:auto;min-width:0;min-height:0;margin:0;padding:0;aspect-ratio:auto;background:transparent;}
.mobile-case-reader .slide-media-content {position:relative;display:block;width:100%;height:auto;background:transparent;}
.mobile-case-reader .slide-image-button {position:relative;display:block;width:100%;height:auto;min-height:0;aspect-ratio:var(--mobile-media-ratio,16 / 9);margin:0;padding:0;overflow:hidden;border:0;border-radius:4px;background:transparent;}
.mobile-case-reader .slide-image-button img {position:relative;display:block;width:100%;height:100%;max-width:100%;margin:0;object-fit:contain;object-position:center;}
.mobile-case-reader .slide-cover-video {position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none;}
.mobile-case-reader .slide-image-button:focus-visible {outline:2px solid var(--spatial-focus);outline-offset:4px;}
/* A portrait cover must leave room for its title in the first viewport.
   Constrain the reserved box, preserving the full image with object-fit. */
.mobile-case-reader .mobile-case-media-list--cover .slide-image-button {max-height:max(40px,calc(var(--cover-limit) - 2 * var(--cover-inset)));}
@media(min-width:600px) {
 .mobile-case-cover-copy,.mobile-case-section-copy {padding-inline:clamp(0px,3vw,24px);}
 .mobile-case-media-list:not(.mobile-case-media-list--cover):not(.mobile-case-media-list--phones):has(> :nth-child(2)) {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;}
}
