/* mobile-prototype-efg.css — PROTOTYPE ONLY (throwaway). Variants E–G. */

/* ═══ E — Black square + sheet ═══ */
.mpe { position: fixed; inset: 0; overflow: hidden; }
.mpe-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; }
.mpe-stage { position: absolute; top: 48px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; transition: bottom 280ms cubic-bezier(.2,.8,.2,1); }
.mpe-square { width: min(78vw, 100%); max-height: 100%; aspect-ratio: 1; background: var(--ink); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mpe-square .mp-img { object-fit: cover; }
.mpe-mark { font-family: var(--font-display); font-size: 92px; line-height: 0.86; color: var(--paper); }
.mpe-cap { font-size: 15px; }
.mpe-cap small { opacity: 0.6; margin-left: 6px; }
.mpe-sheet { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; background: var(--paper); border-top: 1.5px solid var(--ink); box-shadow: 0 -10px 30px rgba(0,0,0,0.08); transition: height 280ms cubic-bezier(.2,.8,.2,1); }
.mpe-grab { height: 28px; display: flex !important; align-items: center; justify-content: center; cursor: grab !important; touch-action: none; }
.mpe-grab i { width: 40px; height: 5px; border-radius: 3px; background: rgba(10,10,10,0.3); }
.mpe-seg { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 16px 8px; border: 1.5px solid var(--ink); }
.mpe-seg button { min-height: 36px; font-size: 15px !important; font-weight: 600 !important; }
.mpe-seg button[data-on="true"] { background: var(--ink); color: var(--paper); }
.mpe-body { flex: 1; overflow-y: auto; padding: 4px 16px 96px; }
.mpe-row { width: 100%; min-height: 52px; display: flex !important; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--grey-line) !important; }
.mpe-row span { font-family: var(--font-display-mid); font-size: 30px; }
.mpe-row small { font-size: 15px; opacity: 0.6; }
.mpe-back { min-height: 44px; font-size: 17px !important; }
.mpe-body h3 { font-family: var(--font-display-mid); font-weight: 400; font-size: 40px; margin: 0 0 6px; }
.mpe-body p { font-size: 15px; line-height: 1.4; margin: 0 0 12px; }
.mpe-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.mpe-thumbs button { aspect-ratio: 1; outline-offset: -3px; }
.mpe-thumbs button[data-on="true"] { outline: 3px solid var(--ink); }

/* ═══ F — Contact sheet ═══ */
.mpf { background: #fff; padding-bottom: 150px; }
.mpf-top { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px; background: var(--paper); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; }
.mpf-top small { font: 500 11px var(--font-mono); opacity: 0.6; }
.mpf-roll { margin-bottom: 14px; }
.mpf-edge { display: flex; justify-content: space-between; padding: 6px 12px; background: var(--ink); color: var(--paper); font: 700 11px var(--font-mono); letter-spacing: 0.08em; }
.mpf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 3px; background: var(--ink); }
.mpf-frame { position: relative; aspect-ratio: 1; overflow: hidden; }
/* Mosaic: rows are square cells; tall works take 2 rows, wide take 2 cols,
   dense flow back-fills holes so the sheet stays solid. */
.mpf-grid--mosaic { grid-auto-rows: calc((100vw - 12px) / 3); grid-auto-flow: dense; }
.mpf-grid--mosaic .mpf-frame { aspect-ratio: auto; }
.mpf-frame--tall { grid-row: span 2; }
.mpf-frame--wide { grid-column: span 2; }
.mpf-frame--full { grid-column: 1 / -1; grid-row: span 2; }
.mpf-frame--feature { grid-column: span 2; grid-row: span 2; }
.mpf-toggle { min-height: 32px; font: 600 12px var(--font-mono) !important; border: 1.5px solid var(--ink) !important; padding: 0 10px !important; }
.mpf-frame small { position: absolute; left: 4px; bottom: 3px; font: 600 10px var(--font-mono); color: #fff; mix-blend-mode: difference; }
.mpf-pad { padding: 8px 16px; }
.mpf-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(3, 1fr) auto; align-items: center; padding: 6px 12px calc(64px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1.5px solid var(--ink); }
.mpf-tabs > button { min-height: 48px; display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px !important; font-weight: 600 !important; opacity: 0.5; }
.mpf-tabs > button[data-on="true"] { opacity: 1; }
.mpf-tab-ico { font-size: 18px; line-height: 1; }
.mpf-viewer { position: fixed; inset: 0; z-index: 40; background: #000; color: #fff; display: flex; flex-direction: column; }
.mpf-viewer header { display: flex; justify-content: space-between; align-items: center; padding: 8px 16px; font: 600 12px var(--font-mono); }
.mpf-viewer header button { min-height: 44px; font: 600 17px var(--font-body) !important; }
.mpf-frameview { flex: 1; min-height: 0; display: flex; align-items: center; padding: 0 4px; }
.mpf-frameview .mp-img { flex: 1; min-width: 0; height: 100%; object-fit: contain; background: transparent; }
.mpf-br { font-family: var(--font-display); font-size: 120px; line-height: 1; opacity: 0.9; }
.mpf-info { display: flex; flex-direction: column; gap: 2px; padding: 8px 20px; font-size: 15px; }
.mpf-info small { font-size: 11px; opacity: 0.6; letter-spacing: 0.08em; }
.mpf-info b { font-family: var(--font-display-mid); font-weight: 400; font-size: 32px; }
.mpf-info span { opacity: 0.75; }
.mpf-viewer footer { display: grid; grid-template-columns: 56px 1fr 1fr 56px; align-items: center; padding: 6px 8px calc(70px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,0.2); }
.mpf-viewer footer > * { min-height: 48px; display: flex !important; align-items: center; justify-content: center; font-size: 17px !important; color: #fff !important; }
.mpf-viewer footer button[aria-label] { font-size: 30px !important; }

/* ═══ G — Poster deck ═══ */
.mpg { position: fixed; inset: 0; }
.mpg-deck { height: 100%; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; }
.mpg-poster { flex: 0 0 100%; height: 100%; overflow-y: auto; scroll-snap-align: start; scrollbar-width: none; }
.mpg-hero { position: relative; height: 100dvh; overflow: hidden; background: var(--paper); }
.mpg-ht { position: absolute; inset: 64px 16px 150px; background: var(--ink) center / cover no-repeat; filter: grayscale(1) contrast(1.35); }
.mpg-ht::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(255,255,255,0.9) 1.1px, transparent 1.4px) 0 0 / 5px 5px; mix-blend-mode: overlay; }
.mpg-id { position: absolute; top: 76px; left: 28px; font-size: 13px; font-weight: 700; color: #fff; mix-blend-mode: difference; }
.mpg-hero h2 { position: absolute; left: 10px; right: 10px; bottom: 112px; font-family: var(--font-display); font-size: 104px; line-height: 0.84; color: #fff; mix-blend-mode: difference; overflow-wrap: anywhere; }
.mpg-hint { position: absolute; left: 16px; bottom: 82px; font-size: 13px; opacity: 0.6; }
.mpg-works { padding: 24px 16px 140px; background: var(--paper); }
.mpg-works p { font-size: 17px; line-height: 1.4; margin: 0 0 20px; }
.mpg-work { display: grid; grid-template-columns: 108px 1fr; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--ink); }
.mpg-work .mp-img { height: 132px; }
.mpg-work .mp-img--empty { font-size: 24px; }
.mpg-work b { display: block; font-family: var(--font-display-mid); font-weight: 400; font-size: 28px; line-height: 1; }
.mpg-work small { font-size: 14px; opacity: 0.65; }
.mpg-top { position: fixed; top: 0; left: 0; right: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; padding: 4px 16px; min-height: 52px; background: var(--paper); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; }
.mpg-top button { min-height: 44px; font-weight: 700 !important; }
.mpg-dots { position: fixed; left: 50%; bottom: 66px; transform: translateX(-50%); z-index: 5; display: flex; align-items: center; gap: 4px; background: var(--paper); border: 1.5px solid var(--ink); font-size: 13px; font-weight: 700; white-space: nowrap; }
.mpg-dots button { width: 44px; height: 40px; font-size: 22px !important; }
.mpg-scrim { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,0.4); display: flex; align-items: flex-end; }
.mpg-sheet { width: 100%; max-height: 85dvh; overflow-y: auto; background: var(--paper); padding: 8px 16px 100px; }
.mpg-grab { display: block; width: 40px; height: 5px; border-radius: 3px; background: rgba(10,10,10,0.3); margin: 0 auto 8px; }
.mpg-sheet header { display: flex; justify-content: space-between; align-items: center; }
.mpg-sheet h3 { font-family: var(--font-display); font-weight: 400; font-size: 80px; text-transform: uppercase; margin: 0 0 12px; }
.mpg-sheet header button { min-height: 44px; font-size: 17px !important; font-weight: 600 !important; }
.mpg-sheet .mp-lang { display: block; margin-top: 20px; }
