/* Family "poster": sticky hero photo + rising bottom sheet with tabs. Tokens: --bg (page behind the sheet),
   --surface (sheet), --ink, --muted, --accent, --fm-display (poster type), --fm-sheet (hero height, default 58%). */
.fm--poster { background: var(--bg); }
.fm--poster .fm-app { background: var(--bg); }

.fmp-hero { position: sticky; top: 0; z-index: 0; height: calc(var(--fm-sheet) * 1svh + 28px); min-height: 420px; overflow: hidden; color: #fff; background: #111; }
.fmp-hero__img { position: absolute; inset: 0; transform: scale(calc(1.06 - var(--sp, 0) * .06)); transform-origin: 60% 40%; }
.fmp-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.fmp-hero__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.38) 0%, rgba(0,0,0,0) 26%, rgba(0,0,0,0) 46%, rgba(0,0,0,.72) 100%); opacity: calc(1 + var(--sp, 0) * .4); }
.fmp-hero.is-flat { background: radial-gradient(120% 90% at 70% 10%, color-mix(in srgb, var(--accent) 70%, #000) 0, #0d0b09 70%); }
.fmp-hero__top { position: absolute; z-index: 2; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: max(14px, env(safe-area-inset-top)) 16px 0; }
.fmp-mark.mz-mark { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: rgba(255,255,255,.15); display: grid; place-items: center; }
.fmp-mark img { width: 100%; height: 100%; object-fit: cover; }
.fmp-hero__copy { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 48px; transform: translateY(calc(var(--sp, 0) * -40px)); opacity: calc(1 - var(--sp, 0) * 1.2); }
.fmp-title { display: grid; margin: 0; font-family: var(--fm-display); font-weight: var(--fm-display-weight, 800); text-transform: var(--fm-display-case); letter-spacing: var(--fm-display-track); line-height: .96; padding-bottom: .06em; }
.fmp-title__a { font-size: clamp(64px, calc(78vw / (var(--len) * .5)), 132px); color: #f6efe4; text-shadow: 0 6px 30px rgba(0,0,0,.35); }
.fmp-title__b { margin-top: 6px; font-size: clamp(34px, 11vw, 58px); color: var(--accent); filter: brightness(1.18); }
.fmp-tagline { margin: 12px 0 0; max-width: 30ch; color: rgba(255,255,255,.86); font-size: 15px; line-height: 1.4; }
.fmp-rule { display: flex; align-items: center; gap: 10px; margin-top: 16px; width: min(260px, 70%); color: var(--accent); font-size: 18px; }
.fmp-rule i { flex: 1; height: 1.5px; background: currentColor; opacity: .8; }

.fmp-sheet { position: relative; z-index: 2; margin-top: -28px; min-height: 100svh; padding-bottom: 40px; border-radius: 30px 30px 0 0; background: var(--surface); color: var(--ink); box-shadow: 0 -24px 50px -20px rgba(0,0,0,.6); }
.fmp-grab { display: block; width: 100%; height: 30px; }
.fmp-grab i { display: block; width: 46px; height: 5px; margin: 12px auto 0; border-radius: 5px; background: color-mix(in srgb, var(--ink) 26%, transparent); }
.fmp-about { margin: 2px 22px 12px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.fmp-extras { padding: 6px 18px 14px; }
.fmp-extras--end { padding-top: 26px; }

.fmp-h { display: flex; align-items: center; gap: 8px; margin: 6px 22px 12px; font-family: var(--font-b); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.fmp-feat { padding-bottom: 6px; }
.fmp-feat__row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px; padding: 0 20px 14px; scrollbar-width: none; }
.fmp-feat__row::-webkit-scrollbar { display: none; }
.fmp-fcard { position: relative; flex: 0 0 64%; scroll-snap-align: start; overflow: hidden; border-radius: 20px; aspect-ratio: 4 / 3.1; background: #000; color: #fff; transition: transform .5s var(--fm-ease); }
.fmp-fcard__img { position: absolute; inset: 0; }
.fmp-fcard__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.78)); }
.fmp-fcard__tx { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.fmp-fcard .mz-item__name { margin: 0; font-family: var(--font-b); font-size: 16px; font-weight: 700; line-height: 1.2; }
.fmp-fcard .mz-item__price { flex: none; font-weight: 800; font-size: 16px; color: #fff; }

.fmp-tabs { position: sticky; top: 0; z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line); }
.fmp-tabs::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 30px; background: var(--surface); }
.fmp-tabs__track { position: relative; display: flex; gap: 4px; overflow-x: auto; padding: 0 12px; scrollbar-width: none; }
.fmp-tabs__track::-webkit-scrollbar { display: none; }
.fmp-tab { display: inline-flex; flex: none; align-items: center; gap: 9px; min-height: 58px; padding: 0 12px; color: color-mix(in srgb, var(--ink) 78%, transparent); font-weight: 600; font-size: 15px; line-height: 1.12; text-decoration: none; transition: color .25s ease; }
.fmp-tab .icon { font-size: 21px; stroke-width: 1.6; color: color-mix(in srgb, var(--ink) 55%, transparent); transition: color .25s ease, transform .35s var(--fm-spring); }
.fmp-tab.is-on { color: var(--accent-ink); }
.fmp-tab.is-on .icon { color: var(--accent); transform: translateY(-1px) scale(1.08); }
.fmp-tab span { max-width: 9.5em; white-space: normal; }
.fmp-tabs__line { position: absolute; left: 0; bottom: 0; width: 60px; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); transition: transform .45s var(--fm-spring), width .45s var(--fm-ease); }

.fmp-panels { overflow: hidden; }
.fmp-panel { min-height: calc(100svh - 60px); padding: 4px 18px 20px; }
.fmp-panel.is-in-r { animation: fmpInR .42s var(--fm-ease) both; }
.fmp-panel.is-in-l { animation: fmpInL .42s var(--fm-ease) both; }
@keyframes fmpInR { from { opacity: 0; transform: translateX(34px); } to { opacity: 1; transform: none; } }
@keyframes fmpInL { from { opacity: 0; transform: translateX(-34px); } to { opacity: 1; transform: none; } }
.fmp-panel__title { display: flex; align-items: baseline; justify-content: space-between; margin: 18px 4px 4px; font-family: var(--fm-display); font-weight: var(--fm-display-weight, 800); text-transform: var(--fm-display-case); font-size: 30px; letter-spacing: var(--fm-display-track); line-height: 1; }
.fmp-panel__title small { font-family: var(--font-b); font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fmp-row { display: grid; grid-template-columns: 14px 1fr auto; gap: 12px; align-items: start; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.fmp-row:last-child { border-bottom: 0; }
.fmp-row__dot { width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.fmp-row .mz-item__name { margin: 0; font-family: var(--font-b); font-size: 18px; font-weight: 650; line-height: 1.25; }
.fmp-row .mz-item__desc { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.fmp-row .mz-item__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.fmp-row__end { display: flex; align-items: center; gap: 6px; padding-top: 2px; }
.fmp-row .mz-item__price { display: grid; justify-items: end; font-size: 20px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; color: var(--ink); }
.fmp-row__go { color: var(--muted); font-size: 18px; }
.fmp-row:active { background: color-mix(in srgb, var(--ink) 5%, transparent); }

.fmp-foot { display: grid; justify-items: center; gap: 2px; padding: 30px 20px 10px; color: var(--muted); font-size: 13px; text-align: center; }
.fmp-foot > span { font-family: var(--fm-display); text-transform: var(--fm-display-case); font-size: 18px; color: var(--ink); }

/* extras on the sheet */
.fm--poster .mz-wifi, .fm--poster .mz-info, .fm--poster .mzb-hours, .fm--poster .mzb-social { background: color-mix(in srgb, var(--ink) 5%, var(--surface)); box-shadow: 0 0 0 1px var(--line); }

@media (prefers-reduced-motion: reduce) { .fmp-hero__img, .fmp-hero__copy { transform: none !important; opacity: 1 !important; } .fmp-panel { animation: none !important; } }
