/* Layout: a fixed 1920×1080 slide scaled to fit any window.
   Header / interactive phone + figure scene + cards / emotion curve. */
:root {
  --ink: #1c2226; --muted: #5d6970; --paper: #f3f4f1; --card: #ffffff; --line: #dde1dc;
  --bad: #b5483c; --bad-soft: #f6e3e0;
  --good: #2f7d4f; --good-soft: #e3f0e7;
  --orange: #e8743b; --orange-soft: #fde9dc;
  --offline: #3d6fb6; --offline-soft: #e3ecf8;
  --grey: #8a9196; --grey-soft: #eceeed;
  --letterbox: #101315;
  --f-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
html, body { height: 100%; margin: 0; }
body { background: var(--letterbox); overflow: hidden; font-family: var(--f-body); color: var(--ink); }

#stage { position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px; transform-origin: center center; background: var(--paper); overflow: hidden; }

/* ---------- Header ---------- */
.top { position: absolute; left: 0; right: 0; top: 0; height: 88px; padding: 0 56px; box-sizing: border-box; display: flex; justify-content: space-between; align-items: center; gap: 32px; border-bottom: 1px solid var(--line); background: var(--card); }
.top .titles { flex: 1; min-width: 0; }
.top h1 { white-space: nowrap; font-family: var(--f-display); font-size: 36px; line-height: 1.05; margin: 0; font-weight: 800; letter-spacing: -0.01em; }
.top .sub { font-size: 24px; color: var(--muted); margin: 8px 0 0; white-space: nowrap; }
.right-head { display: flex; align-items: center; gap: 18px; flex: none; }
.tabs { display: flex; gap: 6px; }
.tab { font-size: 20px; font-weight: 700; padding: 9px 15px; border-radius: 999px; color: var(--muted); background: var(--grey-soft); white-space: nowrap; }
.tab.done { color: var(--ink); }
.tab.on { background: var(--ink); color: #fff; }
.after-mode .tab.on { background: var(--orange); }
.badge { font-family: var(--f-display); font-weight: 800; font-size: 22px; letter-spacing: 0.06em; padding: 9px 18px; border-radius: 10px; }
.badge.before { background: var(--grey-soft); color: var(--bad); border: 2px solid var(--bad); }
.badge.after { background: var(--orange); color: #fff; }
.badge.neutral { background: var(--ink); color: #fff; }

/* ---------- Journey ---------- */
.journey { position: absolute; top: 116px; left: 0; right: 0; height: 712px; display: grid; grid-template-columns: 42% 58%; }
.left { display: flex; align-items: center; justify-content: center; }
.right { padding: 20px 56px 16px 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.stagehead { display: flex; align-items: baseline; gap: 16px; }
.snum { font-family: var(--f-display); font-weight: 800; font-size: 56px; line-height: 0.8; color: var(--grey); }
.after-mode .snum { color: var(--orange); }
.stagehead h2 { font-family: var(--f-display); font-size: 44px; margin: 0; font-weight: 800; letter-spacing: -0.01em; }

/* ---------- Figure scene ---------- */
.scene { position: relative; height: 400px; border-radius: 24px; overflow: hidden; border: 2px solid var(--line); flex: none; }
.scene .k-back, .scene .k-front { position: absolute; inset: 0; width: 100%; height: 100%; }
.fig-wrap { position: absolute; left: 44px; top: 2px; width: 264px; height: 352px; }
.fig-wrap .fig { display: block; overflow: visible; }
.fig-wrap.pop .fig-head { animation: pop .55s cubic-bezier(.3,1.6,.5,1); transform-origin: 120px 104px; }
.fig-body { animation: breathe 3.4s ease-in-out infinite; transform-origin: 120px 300px; }
.fig-head { animation: bob 3.4s ease-in-out infinite; transform-origin: 120px 160px; }
.blink { animation: blink 4.6s infinite; transform-box: fill-box; transform-origin: center; }
.expr-anxious .fig-head { animation: jitter .35s linear infinite; }
.expr-anxious .dart { animation: dart 1.4s ease-in-out infinite; }
.expr-frustrated .fig-head { animation: huff 1.2s ease-in-out infinite; }
.expr-happy .fig-head, .expr-celebrate .fig-head { animation: hop 1.1s ease-in-out infinite; }
.expr-overwhelmed .fig-head { animation: sway 1.8s ease-in-out infinite; }
.expr-relieved .fig-head { animation: sigh 3s ease-in-out infinite; }
.expr-cool .fig-head { animation: nod 1.6s ease-in-out infinite; }
.fx-steam circle { animation: steam 1.6s ease-out infinite; }
.fx-steam circle:nth-child(2n) { animation-delay: .5s; }
.fx-stress path { animation: flicker .6s steps(2) infinite; }
.fx-sparkle path { animation: twinkle 1.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.fx-sweat { animation: drip 1.6s ease-in infinite; }
.fx-puff circle { animation: puff 2.4s ease-out infinite; }
.fx-confetti rect { animation: confetti 1.8s linear infinite; }
.fx-stir { animation: stir 1.2s ease-in-out infinite; transform-origin: 180px 256px; }
.k-steam path { animation: steam2 2s ease-in-out infinite; }
.k-steam path:nth-child(2) { animation-delay: .6s; }
.k-steam path:nth-child(3) { animation-delay: 1.2s; }

.sbubble { position: absolute; left: 318px; top: 22px; right: 26px; background: #fff; border: 3px solid var(--ink); border-radius: 30px; padding: 16px 26px 20px; font-size: 32px; line-height: 1.28; box-shadow: 0 8px 20px rgba(28,34,38,.10); }
.sbubble::before { content: ""; position: absolute; left: -27px; top: 54px; width: 0; height: 0; border-style: solid; border-width: 15px 27px 15px 0; border-color: transparent var(--ink) transparent transparent; }
.sbubble::after { content: ""; position: absolute; left: -21px; top: 57px; width: 0; height: 0; border-style: solid; border-width: 12px 22px 12px 0; border-color: transparent #fff transparent transparent; }
.sbubble.think { font-style: italic; font-weight: 700; }
.sbubble.doing { color: var(--ink); }
.slbl { display: block; font-style: normal; font-size: 16px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.feel-tag { position: absolute; left: 26px; bottom: 18px; font-family: var(--f-display); font-size: 34px; font-weight: 800; padding: 8px 22px 8px 14px; border-radius: 999px; background: #fff; border: 3px solid var(--line); display: flex; align-items: center; gap: 10px; }
.feel-tag span { font-size: 40px; line-height: 1; }
.feel-tag.neg { border-color: var(--bad); color: var(--bad); }
.feel-tag.pos { border-color: var(--good); color: var(--good); }
.feel-tag.ask { font-family: var(--f-body); font-weight: 700; font-size: 26px; color: var(--muted); border-style: dashed; background: rgba(255,255,255,.85); padding: 10px 22px; }

.card { background: var(--card); border: 2px solid var(--line); border-radius: 18px; padding: 14px 22px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.lbl { font-size: 17px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.txt { font-size: 28px; line-height: 1.28; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.tchip { font-size: 22px; font-weight: 700; padding: 6px 16px; border-radius: 999px; border: 2px solid transparent; }
.tchip.app { background: var(--grey-soft); color: var(--ink); }
.tchip.offline { background: var(--offline-soft); color: var(--offline); }
.tchip.takeout { background: var(--bad); color: #fff; box-shadow: 0 0 0 6px var(--bad-soft); animation: glow 1.6s ease-in-out infinite; }
.row2 { display: grid; grid-template-columns: 1fr; gap: 16px; flex: 1; min-height: 0; }
.card.ask { border-style: dashed; background: transparent; }
.card.ask .q { font-size: 28px; color: var(--muted); }
.card.pain { background: var(--bad-soft); border-color: var(--bad); }
.card.pain .lbl { color: var(--bad); }
.card.pain .txt { font-size: 30px; font-weight: 700; }
.card.fixcard { background: var(--good-soft); border-color: var(--good); }
.card.fixcard .lbl { color: var(--good); }
.card.fixcard .txt { font-size: 27px; font-weight: 700; }

/* ---------- Curve strip ---------- */
.curve { position: absolute; left: 40px; right: 40px; top: 846px; height: 230px; }
.curve svg { position: absolute; left: 0; top: 0; }
.trans { position: absolute; top: 150px; width: 360px; transform: translateX(-50%); font-size: 19px; font-style: italic; line-height: 1.28; color: var(--bad); text-align: center; }
.trans::before { content: "⚡ "; font-style: normal; }
.curve-legend { position: absolute; right: 0; top: 52px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 18px; color: var(--muted); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Opportunities ---------- */
.opps { position: absolute; top: 132px; left: 0; right: 0; bottom: 0; padding: 36px 80px; display: flex; flex-direction: column; gap: 22px; }
.otable { display: flex; flex-direction: column; border: 2px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--card); }
.orow { display: grid; grid-template-columns: 300px 1fr 1fr; align-items: center; min-height: 112px; border-top: 1px solid var(--line); }
.orow > span { padding: 18px 30px; font-size: 32px; line-height: 1.25; }
.orow.head { min-height: 64px; border-top: none; background: var(--grey-soft); }
.orow.head > span { font-size: 20px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ostage { font-family: var(--f-display); font-weight: 800; }
.ostage b { color: var(--grey); margin-right: 10px; }
.opain { color: var(--bad); }
.oopp { font-weight: 700; color: var(--good); background: var(--good-soft); align-self: stretch; display: flex; align-items: center; }
.oopp.hidden { color: var(--grey); background: transparent; font-weight: 400; border-left: 2px dashed var(--line); }
.callout { font-family: var(--f-display); font-size: 36px; font-weight: 800; padding: 24px 32px; border-radius: 18px; background: var(--ink); color: #fff; text-align: center; }
.callout.hidden { visibility: hidden; }

/* ---------- Finale ---------- */
.finale { position: absolute; top: 132px; left: 0; right: 0; bottom: 0; padding: 30px 80px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.finale h2 { font-family: var(--f-display); font-size: 72px; font-weight: 800; margin: 0; letter-spacing: -0.02em; }
.legend { display: flex; gap: 36px; font-size: 26px; font-weight: 700; }
.legend .b { color: var(--bad); } .legend .a { color: var(--good); }

/* ---------- Intro + nav + help ---------- */
#intro { position: absolute; inset: 0; background: rgba(16,19,21,.92); display: grid; place-items: center; z-index: 20; animation: introfade 1.1s ease forwards; }
#intro .word { text-align: center; color: #fff; animation: introword 1.1s cubic-bezier(.2,.8,.2,1) forwards; }
#intro .small { display: block; font-size: 34px; letter-spacing: 0.2em; text-transform: uppercase; opacity: .7; }
#intro .brand { display: block; font-family: var(--f-display); font-weight: 800; font-size: 160px; color: var(--orange); letter-spacing: -0.03em; }
.nav { position: absolute; right: 24px; bottom: 14px; display: flex; gap: 8px; z-index: 10; }
.nav button { font: 700 18px var(--f-body); color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; cursor: pointer; }
.nav button:hover { color: var(--ink); border-color: var(--ink); }
.nav button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
#help { position: absolute; inset: 0; z-index: 30; background: rgba(16,19,21,.8); display: grid; place-items: center; }
#help .box { background: var(--card); border-radius: 22px; padding: 36px 48px; font-size: 26px; line-height: 1.7; }
#help kbd { font-family: ui-monospace, Menlo, monospace; background: var(--grey-soft); border-radius: 6px; padding: 2px 10px; margin-right: 8px; }

/* ---------- Animations ---------- */
.enter { animation: enter .45s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes glow { 50% { box-shadow: 0 0 0 12px var(--bad-soft); } }
@keyframes introfade { 0% { opacity: 0; } 15% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes introword { 0% { transform: scale(.85); opacity: 0; } 30% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.04); opacity: 1; } }
@keyframes fixpulse { 50% { outline-color: rgba(232,116,59,.35); } }
@keyframes breathe { 50% { transform: scaleY(1.015) translateY(-1px); } }
@keyframes bob { 50% { transform: translateY(-3px) rotate(-1deg); } }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.1); } }
@keyframes pop { 0% { transform: scale(.88); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes jitter { 25% { transform: translateX(-1.5px); } 75% { transform: translateX(1.5px); } }
@keyframes dart { 0%, 100% { transform: translateX(-3px); } 50% { transform: translateX(3px); } }
@keyframes huff { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-3deg) translateY(1px); } 60% { transform: rotate(3deg); } }
@keyframes hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-9px) rotate(2deg); } }
@keyframes sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes sigh { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px) rotate(1.5deg); } }
@keyframes nod { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(3deg) translateY(1px); } }
@keyframes steam { 0% { transform: translateY(6px); opacity: .9; } 100% { transform: translateY(-16px); opacity: 0; } }
@keyframes steam2 { 0% { transform: translateY(8px); opacity: 0; } 40% { opacity: .9; } 100% { transform: translateY(-18px); opacity: 0; } }
@keyframes flicker { 50% { opacity: .2; } }
@keyframes twinkle { 50% { transform: scale(.6) rotate(20deg); opacity: .6; } }
@keyframes drip { 0% { transform: translateY(-4px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }
@keyframes puff { 0% { transform: translateX(-6px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateX(14px); opacity: 0; } }
@keyframes confetti { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(150px) rotate(300deg); opacity: 0; } }
@keyframes stir { 50% { transform: rotate(-10deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; } }

/* ============================================================
   PHONE (designed at 390×844, scaled down) — interactive
   ============================================================ */
.phone { position: relative; width: 332px; height: 688px; background: #15181a; border-radius: 54px; padding: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.22); }
.screen { width: 308px; height: 664px; border-radius: 42px; overflow: hidden; position: relative; background: #fff; }
.screen-inner { width: 390px; height: 844px; transform: scale(0.7897); transform-origin: top left; position: relative; overflow: hidden; background: #fff; color: #222; font-family: -apple-system, "Helvetica Neue", Arial, sans-serif; display: flex; flex-direction: column; }
.phone.after .screen-inner { background: #fff8f0; }
.phone.before .m-photo, .phone.before .m-thumb { filter: saturate(.12); }
.tap-hint { position: absolute; right: -150px; top: 46%; font-size: 20px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.tap-hint::before { content: "👆 "; }
.phone.touched .tap-hint { opacity: 0; transition: opacity .4s; }
.tap { cursor: pointer; }
.tap:active { filter: brightness(.92); }

.m-top { flex: none; }
.m-body { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; }
.m-bottom { flex: none; padding: 10px 18px 26px; }
.m-status { height: 44px; display: flex; justify-content: space-between; padding: 14px 28px 0; font-weight: 700; font-size: 15px; }
.m-appbar { height: 46px; display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid #ececec; }
.m-brand { font-weight: 900; font-size: 19px; color: #777; flex: none; }
.phone.after .m-brand { color: var(--orange); }
.m-apptitle { font-size: 15px; color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-pad { padding: 12px 18px; display: flex; flex-direction: column; gap: 10px; }
.m-pad.tight { padding-top: 8px; padding-bottom: 6px; gap: 8px; }
.m-search { background: #efefef; border-radius: 12px; padding: 11px 14px; display: flex; gap: 8px; font-size: 16px; }
.m-search span { margin-left: auto; color: #999; }
.m-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.m-chip { border: 1.5px solid #c9c9c9; border-radius: 999px; padding: 7px 13px; font-size: 14px; font-weight: 700; color: #555; background: #fff; user-select: none; }
.phone.after .m-chip.on { background: var(--good); border-color: var(--good); color: #fff; }
.m-chip.soft { background: var(--orange-soft); border-color: var(--orange-soft); color: #b4531f; }
.m-meta { font-size: 13px; color: #777; }
.m-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.m-photo { position: relative; display: flex; align-items: center; justify-content: center; height: 150px; flex: none; }
.m-card { border-radius: 16px; }
.m-card .m-photo { border-radius: 14px; }
.m-card.sel { box-shadow: 0 0 0 3px var(--orange); }
.phone.before .m-card.sel { box-shadow: 0 0 0 3px #888; }
.m-emoji { font-size: 66px; }
.m-pill { position: absolute; left: 8px; bottom: 8px; background: rgba(18,18,18,.88); color: #fff; font-weight: 900; font-size: 15px; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.m-pill.ok { left: 8px; top: 8px; bottom: auto; background: var(--good); font-size: 13px; }
.m-bm { position: absolute; right: 8px; top: 8px; background: #fff; border-radius: 50%; width: 30px; height: 30px; display: grid; place-items: center; font-size: 16px; color: #d9534f; }
.m-ctitle { font-size: 15px; font-weight: 700; margin-top: 7px; line-height: 1.25; }
.m-empty { padding: 40px 30px; text-align: center; color: #888; font-size: 16px; }
.m-empty.small { padding: 10px; }
.m-tabbar { flex: none; height: 80px; border-top: 1px solid #e6e6e6; display: flex; justify-content: space-around; padding-top: 10px; font-size: 12px; text-align: center; color: #999; margin: -10px -18px -26px; }
.m-tabbar .on { color: #333; font-weight: 700; }
.phone.after .m-tabbar .on { color: var(--orange); }
.m-h1 { font-size: 25px; font-weight: 900; line-height: 1.15; }
.m-h1.sm { font-size: 24px; }
.m-h2 { font-size: 17px; font-weight: 900; display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.m-stat { position: sticky; top: 0; z-index: 2; background: var(--good); color: #fff; border-radius: 12px; padding: 11px 13px; font-weight: 900; font-size: 17px; }
.m-teaser { font-size: 14px; color: #555; line-height: 1.4; }
.m-link { color: var(--orange); font-weight: 800; white-space: nowrap; text-decoration: underline; text-underline-offset: 2px; }
.m-stepper { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--good); border: 1.5px solid var(--good); border-radius: 999px; padding: 1px 4px; font-size: 15px; }
.m-stepper b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--good-soft); }
.m-ing { list-style: none; margin: 0; padding: 0 4px; }
.m-ing li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 2px; border-bottom: 1px solid #ece4da; font-size: 16px; font-weight: 600; }
.m-ing li b { font-weight: 800; color: #333; }
.m-ing li.done span { text-decoration: line-through; color: #aaa; }
.m-ing li.done span::before { content: "✓ "; color: var(--good); }
.m-ing.plain li { font-weight: 400; border-color: #eee; }
.m-small { font-size: 13px; color: #777; }
.m-small.center { text-align: center; }
.m-cta { background: var(--orange); color: #fff; font-weight: 900; font-size: 19px; text-align: center; border-radius: 16px; padding: 17px; user-select: none; }
.m-cta.ghost { background: #fff; color: var(--orange); border: 2px solid var(--orange); flex: 0 0 70px; padding: 15px 0; }
.m-navrow { display: flex; gap: 10px; }
.m-navrow .m-cta:last-child { flex: 1; }
.m-story p { font-size: 15px; line-height: 1.55; color: #666; margin: 0 0 12px; }
.m-story.small p { font-size: 13px; }
.m-toggle-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 4px; border-radius: 12px; }
.m-toggle { width: 58px; height: 34px; border-radius: 999px; background: #ccc; position: relative; transition: background .2s; }
.m-toggle.on { background: var(--good); }
.m-toggle i { position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 50%; background: #fff; transition: left .2s; }
.m-toggle.on i { left: 27px; }
.m-section { font-weight: 900; font-size: 16px; margin-top: 2px; }
.m-section.muted { color: #9a8f84; }
.m-row { display: flex; gap: 12px; align-items: center; background: #fff; border: 1.5px solid #ece6df; border-radius: 14px; padding: 10px; }
.m-row.sel { border-color: var(--good); box-shadow: inset 0 0 0 2px var(--good); }
.m-thumb { width: 74px; height: 74px; border-radius: 12px; display: grid; place-items: center; font-size: 38px; flex: none; }
.m-rowbody { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; min-width: 0; }
.m-rtitle { font-weight: 900; font-size: 16px; line-height: 1.2; }
.m-rmeta { font-size: 13px; color: #666; font-weight: 600; }
.m-badge { font-weight: 900; font-size: 15px; border-radius: 999px; padding: 5px 11px; }
.m-badge.ok { background: var(--good); color: #fff; }
.m-badge.warn { background: #fce3c8; color: #9a4a12; }
.m-btn { font-size: 13px; border: 1.5px solid #bbb; border-radius: 8px; padding: 4px 10px; color: #666; font-weight: 700; margin-top: 2px; background: #fff; }
.m-btn.on { background: #666; color: #fff; border-color: #666; }
.m-cookbar { height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; font-size: 18px; color: #555; }
.m-cookbar b { font-size: 24px; font-weight: 900; color: #222; padding: 2px 8px; border-radius: 8px; }
.m-mic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; }
.m-mic.on { background: var(--orange); animation: glow2 1.2s ease-in-out infinite; }
@keyframes glow2 { 50% { box-shadow: 0 0 0 8px rgba(232,116,59,.25); } }
.m-listen { background: var(--orange-soft); color: #b4531f; font-weight: 800; font-size: 15px; border-radius: 10px; padding: 8px 12px; }
.m-segs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.m-segs i { height: 14px; border-radius: 7px; background: #e3ddd5; }
.m-segs i.on { background: var(--good); }
.m-ready { font-size: 15px; color: var(--good); font-weight: 900; }
.m-ready.big { font-size: 21px; text-align: center; }
.m-bigstep { font-size: 29px; font-weight: 900; line-height: 1.2; }
.m-bigstep.sm { font-size: 22px; }
.m-timer { display: flex; justify-content: space-between; align-items: center; border: 2px solid var(--orange); border-radius: 14px; padding: 10px 14px; font-weight: 800; font-size: 16px; color: #b4531f; background: #fff; user-select: none; }
.m-timer.run { background: var(--orange); color: #fff; }
.m-timer.done { background: var(--good); border-color: var(--good); color: #fff; animation: fixpulse 1s infinite; }
.m-timer b { font-size: 34px; font-variant-numeric: tabular-nums; }
.m-steps { margin: 4px 0 0; padding-left: 22px; font-size: 15px; line-height: 1.5; color: #333; }
.m-steps li { margin-bottom: 14px; }
.m-banner { background: #fff0d9; border: 2px solid #e8a23b; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; transition: background .3s; }
.m-banner > b { font-size: 20px; color: #8a4b07; line-height: 1.2; }
.m-banner.ok { background: #e9f4ec; border-color: var(--good); }
.m-banner.ok > b { color: var(--good); }
.m-short { background: #fff; border: 1.5px solid #e5c9a3; border-radius: 12px; padding: 11px 12px; font-size: 15px; font-weight: 800; display: flex; justify-content: space-between; align-items: center; gap: 8px; user-select: none; }
.m-short.applied { border-color: var(--good); background: #e9f4ec; }
.m-short em { font-style: normal; color: #b4531f; white-space: nowrap; font-size: 13px; }
.m-short.applied em { color: var(--good); }
.m-enjoy { font-size: 72px; font-weight: 900; text-align: center; margin: 60px 0 12px; color: #444; }
.m-stars { display: flex; justify-content: center; gap: 8px; font-size: 32px; color: #c9a23b; margin-top: 8px; }
.m-toast { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); background: #222; color: #fff; font-weight: 800; font-size: 16px; padding: 12px 18px; border-radius: 999px; white-space: nowrap; animation: enter .3s ease both; z-index: 5; }
.m-sheet-bg { position: absolute; inset: 0; background: rgba(0,0,0,.35); z-index: 6; }
.m-sheet { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 22px 22px 0 0; padding: 20px 18px 28px; display: flex; flex-direction: column; gap: 12px; z-index: 7; animation: sheetup .25s ease both; }
.m-sheet.tall { max-height: 640px; }
.m-sheetrow { display: flex; justify-content: space-between; font-size: 17px; padding: 10px 2px; border-bottom: 1px solid #eee; color: #444; }
@keyframes sheetup { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.m-served { position: absolute; inset: 0; background: #fff8f0; z-index: 8; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; animation: enter .35s ease both; }
.m-served-emoji { font-size: 110px; animation: hop 1.1s ease-in-out infinite; }

.phone.hl .fix { outline: 4px solid var(--orange); outline-offset: 3px; animation: fixpulse 1.6s ease-in-out infinite; }

/* ============================================================
   v3: Cyril, burnt dinner, chef plate, autoplay touch dot
   ============================================================ */
.fx-smoke circle { animation: smoke 2.2s ease-out infinite; }
.fx-smoke circle:nth-child(2) { animation-delay: .5s; }
.fx-smoke circle:nth-child(3) { animation-delay: 1s; }
.fx-smoke circle:nth-child(4) { animation-delay: 1.5s; }
.k-smoke circle { animation: smoke 2.6s ease-out infinite; }
.k-smoke circle:nth-child(2n) { animation-delay: .7s; }
.k-smoke circle:nth-child(3n) { animation-delay: 1.4s; }
.k-alarm-led { animation: led .5s steps(2) infinite; }
.k-beep { animation: led .5s steps(2) infinite; }
.k-ember { animation: led .4s steps(2) infinite; }
.k-sparkle path { animation: twinkle 1.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.k-sparkle path:nth-child(2) { animation-delay: .4s; }
.k-sparkle path:nth-child(3) { animation-delay: .8s; }
.chef-hat { animation: pop .6s cubic-bezier(.3,1.6,.5,1); transform-origin: 120px 40px; }
.expr-burnt .fig-head { animation: wobble 1.4s ease-in-out infinite; }
@keyframes smoke { 0% { transform: translateY(10px) scale(.7); opacity: 0; } 25% { opacity: .9; } 100% { transform: translateY(-50px) scale(1.25); opacity: 0; } }
@keyframes led { 50% { opacity: .15; } }
@keyframes wobble { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg) translateY(3px); } }

/* touch dot */
.touch { position: absolute; left: 154px; top: 520px; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgba(40,40,40,.32); border: 3px solid rgba(255,255,255,.95); box-shadow: 0 2px 10px rgba(0,0,0,.3); pointer-events: none; z-index: 20; opacity: 0; transition: left .42s cubic-bezier(.4,0,.2,1), top .42s cubic-bezier(.4,0,.2,1), opacity .25s; }
.touch.on { opacity: 1; }
.touch.press { animation: press .38s ease-out; }
.touch.press::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 3px solid rgba(232,116,59,.9); animation: ripple .45s ease-out forwards; }
@keyframes press { 40% { transform: scale(.72); } 100% { transform: scale(1); } }
@keyframes ripple { from { transform: scale(1); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
.replay { position: absolute; right: -150px; top: 46%; font: 700 20px var(--f-body); color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer; white-space: nowrap; }
.replay:hover { color: var(--ink); border-color: var(--ink); }
.phone.playing .replay { opacity: .35; }

/* Before: recipe page, buried time, newsletter popup */
.m-page { position: absolute; inset: 0; background: #fff; z-index: 9; display: flex; flex-direction: column; animation: slidein .25s ease both; }
.m-page .m-appbar { margin-top: 44px; }
.m-pbody { flex: 1; min-height: 0; overflow-y: auto; }
.m-back { font-weight: 800; color: #555; font-size: 16px; flex: none; }
.m-buried { margin: 10px 0 30px; font-size: 13px; color: #999; border-top: 1px solid #eee; padding-top: 10px; }
.m-popup { position: absolute; left: 26px; right: 26px; top: 210px; background: #fff; border-radius: 20px; padding: 22px; z-index: 8; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.3); animation: enter .3s ease both; }
.m-popup-emoji { font-size: 54px; text-align: center; }
.m-input { border: 1.5px solid #ccc; border-radius: 10px; padding: 12px; color: #aaa; font-size: 15px; }
.m-h2.center, .m-link.center { justify-content: center; text-align: center; }
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Title screen ---------- */
.titleview { position: absolute; inset: 0; display: grid; grid-template-columns: 50% 50%; align-items: center; padding: 0 80px; gap: 40px; background: radial-gradient(circle at 80% 30%, #fdf1e6 0, var(--paper) 60%); }
.tv-left { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.tv-eyebrow { font-size: 22px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); }
.tv-title { font-family: var(--f-display); font-size: 132px; line-height: .95; font-weight: 800; letter-spacing: -0.035em; margin: 0; }
.tv-lede { font-size: 30px; line-height: 1.4; color: var(--muted); margin: 0; max-width: 30ch; }
.tv-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tv-fact { background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 14px 20px; font-size: 24px; font-weight: 700; line-height: 1.3; }
.tv-fact span { display: block; font-size: 16px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.tv-start { font-size: 22px; font-weight: 700; color: var(--muted); animation: led 1.6s ease-in-out infinite; }
.tv-right { min-width: 0; }
.tv-scene { height: 520px; }
.tv-scene .fig-wrap { top: 60px; left: 70px; }
.tv-scene .k-back, .tv-scene .k-front { height: 520px; }
.tv-scene .sbubble { top: 50px; left: 330px; font-size: 44px; }

/* Before stage 3: unanswerable pantry questions, phone down, walk to the pantry */
.m-unknown { color: #bbb; font-weight: 900; }
.m-ing li.asking { background: #fff6d6; border-radius: 6px; }
.m-ing li.asking .m-unknown { color: #e8a23b; }
.m-ask { position: absolute; left: 22px; right: 22px; bottom: 40px; z-index: 12; background: #222; color: #fff; border-radius: 18px; padding: 16px 18px; font-size: 20px; font-weight: 800; display: flex; flex-direction: column; gap: 4px; animation: enter .3s ease both; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.m-ask span { font-size: 14px; font-weight: 600; color: #f0a14a; }
.m-away { position: absolute; inset: 0; z-index: 14; background: rgba(20,20,20,.82); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; font-size: 22px; font-weight: 800; text-align: center; padding: 0 40px; animation: enter .4s ease both; }
.m-away div { font-size: 70px; }
.scene.walk .fig-wrap { animation: walkto 1.8s ease-in-out forwards; }
.scene.walk .sbubble { opacity: 0; transition: opacity .3s; }
.pantry-q { position: absolute; left: 66%; top: 70px; font-family: var(--f-display); font-size: 90px; font-weight: 800; color: var(--orange); z-index: 3; animation: qbob 1s ease-in-out infinite, qin .5s ease 1.4s both; }
@keyframes qin { from { opacity: 0; } to { opacity: 1; } }
@keyframes walkto { 0% { transform: translateX(0); } 20% { transform: translateX(40px) translateY(-6px); } 40% { transform: translateX(130px); } 60% { transform: translateX(220px) translateY(-6px); } 100% { transform: translateX(330px); } }
@keyframes qbob { 50% { transform: translateY(-10px) rotate(8deg); } }


/* ---------- v3.1: emotion modal, pattern slide, rescue intro, trimmed title ---------- */
.emo-modal { position: absolute; inset: 0; z-index: 15; background: rgba(16,19,21,.55); display: grid; place-items: center; }
.emo-box { background: var(--card); border-radius: 28px; padding: 40px 48px 34px; width: 1180px; box-shadow: 0 30px 80px rgba(0,0,0,.35); text-align: center; }
.emo-box h3 { font-family: var(--f-display); font-size: 64px; font-weight: 800; margin: 0 0 28px; letter-spacing: -0.02em; }
.emo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.emo { border: 3px solid var(--line); border-radius: 22px; padding: 18px 10px; font-size: 28px; font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: opacity .3s, transform .3s; }
.emo span { font-size: 76px; line-height: 1; }
.emo-box p { font-size: 26px; color: var(--muted); margin: 24px 0 0; font-weight: 700; }
.emo-modal.answer { animation: emofade 2s ease forwards; pointer-events: none; }
.emo-modal.answer .emo { opacity: .25; }
.emo-modal.answer .emo.right { opacity: 1; border-color: var(--bad); background: var(--bad-soft); transform: scale(1.08); }
@keyframes emofade { 0%, 70% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }

.pattern { position: absolute; top: 132px; left: 0; right: 0; bottom: 0; padding: 60px 120px; display: flex; flex-direction: column; justify-content: center; gap: 34px; }
.pt-eyebrow { font-size: 30px; font-weight: 700; color: var(--muted); }
.pt-recap { display: flex; flex-wrap: wrap; gap: 14px; }
.pt-recap span { font-size: 26px; color: var(--bad); background: var(--bad-soft); border-radius: 999px; padding: 10px 22px; font-weight: 700; }
.pt-recap b { margin-right: 10px; opacity: .6; }
.callout.big { font-size: 58px; line-height: 1.2; padding: 56px 60px; border-radius: 28px; }
.pt-next { font-family: var(--f-display); font-size: 40px; font-weight: 800; color: var(--orange); }

#intro { animation: rescuefade 3s ease forwards; overflow: hidden; background: #14100d; }
#intro .rays { position: absolute; left: 50%; top: 50%; width: 2600px; height: 2600px; margin: -1300px 0 0 -1300px; background: repeating-conic-gradient(rgba(232,116,59,.55) 0 9deg, transparent 9deg 18deg); opacity: 0; }
#intro.go .rays { animation: rays 1.9s linear forwards; }
#intro .rs-line { position: absolute; left: 0; right: 0; top: 46%; text-align: center; color: #fff; font-family: var(--f-display); font-size: 64px; font-weight: 800; animation: enter .4s ease both; transition: opacity .25s, transform .25s; }
#intro.go .rs-line { opacity: 0; transform: translateY(-30px); }
#intro .word { position: relative; opacity: 0; animation: none; }
#intro.go .word { animation: slam .7s cubic-bezier(.2,1.4,.4,1) forwards; }
#intro .brand { font-size: 200px; text-shadow: 0 10px 0 rgba(0,0,0,.25); }
#intro .small { display: block; margin-top: 6px; font-size: 52px; letter-spacing: .02em; text-transform: none; opacity: 1; font-weight: 800; color: #fff; }
@keyframes rescuefade { 0% { opacity: 0; } 8% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes rays { 0% { opacity: 0; transform: rotate(0) scale(.6); } 15% { opacity: 1; } 100% { opacity: .8; transform: rotate(40deg) scale(1); } }
@keyframes rsline { 0% { opacity: 0; transform: translateY(20px); } 20%, 75% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-30px); } }
@keyframes slam { 0% { opacity: 0; transform: scale(3); } 100% { opacity: 1; transform: scale(1); } }

.tv-left { gap: 30px; }
.tv-lede { font-size: 34px; }

.fx-q text { animation: qbob 1.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.fx-q text:nth-child(2) { animation-delay: .4s; } .fx-q text:nth-child(3) { animation-delay: .8s; }
.expr-confused .fig-head { animation: tiltq 2.2s ease-in-out infinite; transform-origin: 120px 160px; }
@keyframes tiltq { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(4deg); } }

.m-search em { color: #999; font-style: normal; }
.m-search.typing { box-shadow: inset 0 0 0 2px #888; background: #fff; }
.phone.after .m-search.typing { box-shadow: inset 0 0 0 2px var(--orange); }
.m-caret { display: inline-block; width: 2px; height: 20px; background: #333; margin-left: 1px; animation: led .8s steps(2) infinite; vertical-align: middle; }

/* ---------- v3.2: bullet cards, help screen ---------- */
.bul { margin: 0; padding-left: 1.1em; font-size: 24px; line-height: 1.28; display: flex; flex-direction: column; gap: 5px; }
.card.pain .bul { color: #6e2a22; font-weight: 700; }
.card.fixcard .bul { color: #1f5a37; font-weight: 700; }
.bul li::marker { color: currentColor; }
.helpview { position: absolute; inset: 0; background: #14100d; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 44px; }
.help-scene { width: 980px; height: 400px; flex: none; border: none; filter: saturate(.55) brightness(.9); }
.help-line { color: #fff; font-family: var(--f-display); font-size: 66px; font-weight: 800; text-align: center; max-width: 1500px; line-height: 1.15; letter-spacing: -0.01em; }
#intro { animation: rescuefade2 2.2s ease forwards; }
@keyframes rescuefade2 { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }

/* wet phone (Before cook) */
.m-wet { position: absolute; inset: 0; pointer-events: none; z-index: 6; }
.m-wet i { position: absolute; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.95) 0 12%, rgba(170,200,220,.35) 30%, rgba(120,160,190,.18) 70%, rgba(255,255,255,0) 72%); box-shadow: inset -2px -3px 4px rgba(60,90,120,.25), 0 2px 3px rgba(0,0,0,.08); }
.m-wet b { position: absolute; width: 130px; height: 46px; border-radius: 50%; background: radial-gradient(ellipse, rgba(150,170,180,.28), rgba(255,255,255,0) 70%); }
.phone.wet .touch { background: rgba(70,140,190,.45); }

/* kitchen mess + ringing timer (Before cook) */
.k-new { animation: messin .5s cubic-bezier(.3,1.5,.5,1) both; transform-box: fill-box; transform-origin: center bottom; }
.k-new:nth-of-type(2n) { animation-delay: .25s; }
@keyframes messin { from { opacity: 0; transform: scale(.4) translateY(-20px); } to { opacity: 1; transform: none; } }
.k-timer.ringing { animation: shake .18s linear infinite; transform-box: fill-box; transform-origin: center; }
.k-blink { animation: led .4s steps(2) infinite; }
.k-ringlines path { animation: led .3s steps(2) infinite; }
@keyframes shake { 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }
.k-mess { transform: scale(1.8); transform-box: fill-box; transform-origin: center bottom; }
.k-mess.k-new { animation: messin2 .5s cubic-bezier(.3,1.5,.5,1) both; }
@keyframes messin2 { from { opacity: 0; transform: scale(.5) translateY(-20px); } to { opacity: 1; transform: scale(1.8); } }

/* ---------- Lesson slide ---------- */
.lesson { position: absolute; top: 132px; left: 0; right: 0; bottom: 0; padding: 30px 80px 24px; display: flex; flex-direction: column; gap: 22px; }
.ls-lede { font-family: var(--f-display); font-size: 46px; font-weight: 800; line-height: 1.15; margin: 0; letter-spacing: -0.01em; max-width: 1500px; }
.ls-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 26px; flex: 1; min-height: 0; }
.ls-h { font-size: 19px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.ls-steps { background: var(--card); border: 2px solid var(--line); border-radius: 22px; padding: 22px 28px; display: flex; flex-direction: column; gap: 12px; }
.ls-step { display: flex; gap: 18px; align-items: flex-start; }
.ls-step b { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-family: var(--f-display); font-size: 24px; }
.ls-step strong { display: block; font-size: 26px; line-height: 1.2; }
.ls-step span { display: block; font-size: 21px; color: var(--muted); line-height: 1.3; margin-top: 2px; }
.ls-side { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.ls-card { background: var(--card); border: 2px solid var(--line); border-radius: 22px; padding: 22px 28px; }
.ls-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ls-card li { font-size: 25px; color: var(--bad); font-weight: 700; }
.ls-score { display: flex; align-items: center; gap: 22px; font-family: var(--f-display); font-weight: 800; font-size: 84px; line-height: 1; }
.ls-score .b { color: var(--bad); } .ls-score .a { color: var(--good); } .ls-score i { font-style: normal; color: var(--grey); font-size: 54px; }
.ls-scale { display: flex; gap: 70px; font-size: 20px; color: var(--muted); font-weight: 700; margin-top: 8px; }
.ls-take { font-family: var(--f-display); font-size: 36px; font-weight: 800; padding: 22px 32px; border-radius: 20px; background: var(--ink); color: #fff; text-align: center; }
.ls-src { font-size: 18px; color: var(--muted); text-align: center; margin-top: -8px; }
.ls-steps { justify-content: space-between; }
.ls-step strong { font-size: 30px; }
.ls-step span { font-size: 24px; }
.ls-step b { width: 54px; height: 54px; font-size: 28px; }
.ls-card li { font-size: 27px; }

/* Lesson slide, short version */
.lesson2 { position: absolute; inset: 0; background: var(--ink); color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 0 160px; gap: 36px; }
.lesson2 h2 { font-family: var(--f-display); font-size: 120px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; margin: 0; }
.lesson2 p { font-size: 44px; line-height: 1.35; margin: 0; max-width: 1300px; color: #f3c9a8; animation-delay: .3s; }

/* ---------- Task analysis (opening slide) ---------- */
.taskview { position: absolute; inset: 0; background: #fbfaf6; cursor: pointer; font-family: var(--f-body, inherit); color: #1d1d1f; }
.ta-title { position: absolute; left: 80px; top: 52px; margin: 0; font-family: var(--f-display); font-size: 60px; font-weight: 800; letter-spacing: -0.02em; }
.ta-count { position: absolute; right: 64px; top: 64px; font-size: 26px; font-weight: 700; color: #8a8a8a; font-variant-numeric: tabular-nums; }
.ta-lines { position: absolute; inset: 0; pointer-events: none; }
.ta-lines path { fill: none; stroke: #2a2a2a; stroke-width: 3.5; }
.ta-lines path.head { fill: #2a2a2a; stroke: none; }
.ta-activity { position: absolute; left: 460px; top: 150px; width: 1000px; height: 100px; box-sizing: border-box; border: 3px solid #2a2a2a; border-radius: 16px; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.ta-activity strong { font-size: 34px; }
.ta-activity span { font-size: 24px; color: #555; }
.ta-task { position: absolute; top: 320px; width: 400px; height: 80px; box-sizing: border-box; border: 2.5px solid #5b8bd6; border-radius: 14px; background: #dbe8fb;
  display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 700; }
.ta-task.focus { border: 6px solid #1f4fa3; background: #c9dcfa; }
.ta-task.success { border: 3px dashed #9a9aa2; background: #ececef; color: #8a8a92; }
.ta-focus { position: absolute; top: -18px; right: 18px; background: #1f4fa3; color: #fff; font-size: 17px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 12px; border-radius: 99px; }
.ta-col { position: absolute; top: 472px; width: 320px; display: flex; flex-direction: column; align-items: center; }
.ta-sub { position: relative; width: 320px; height: 150px; box-sizing: border-box; border: 2.5px solid #3c9a64; border-radius: 14px; background: #dcf6e6;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 10px 18px; gap: 8px; }
.ta-sub.exception { border: 3px dashed #c4473a; background: #fde2df; }
.ta-sub-title { font-size: 27px; font-weight: 700; line-height: 1.2; }
.ta-sub-desc { font-size: 22px; color: #3d4a42; line-height: 1.25; }
.ta-sub.exception .ta-sub-desc { color: #8a2f25; }
.ta-break { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: #c4473a; color: #fff; font-size: 16px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 12px; border-radius: 99px; }
.ta-avatar { position: relative; width: 112px; height: 112px; margin-top: 22px; border-radius: 50%; overflow: hidden; border: 4px solid #fff; box-shadow: 0 0 0 3px #4b2e83, 0 6px 16px rgba(0,0,0,.15);
  background: #4b2e83; display: grid; place-items: center; }
.ta-avatar span { color: #e8d3a2; font-size: 48px; font-weight: 800; font-family: var(--f-display); }
.ta-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ta-quote { position: relative; margin-top: 20px; background: #fff; border: 2.5px solid #2a2a2a; border-radius: 16px; padding: 10px 20px; font-size: 28px; font-weight: 700; white-space: nowrap; }
.ta-quote::before { content: ""; position: absolute; left: 50%; top: -14px; transform: translateX(-50%); border: 12px solid transparent; border-top: 0; border-bottom: 14px solid #2a2a2a; }
.ta-quote::after { content: ""; position: absolute; left: 50%; top: -10px; transform: translateX(-50%); border: 10px solid transparent; border-top: 0; border-bottom: 11px solid #fff; }
.ta-foot { position: absolute; left: 80px; right: 80px; top: 852px; margin: 0; text-align: center; font-size: 26px; color: #444; font-style: italic; }
.ta-need { position: absolute; left: 80px; right: 80px; top: 900px; height: 76px; box-sizing: border-box; border: 2.5px solid #7d5bbf; border-radius: 14px; background: #efe7fb;
  display: flex; align-items: center; padding: 0 32px; font-size: 32px; font-weight: 700; }
.ta-source { position: absolute; left: 80px; top: 1000px; margin: 0; font-size: 19px; color: #9a9a9a; }
.ta-hide { visibility: hidden; }
.ta-in { animation: taIn .3s ease-out both; }
.ta-pulse { animation: taPulse 1.1s ease-in-out 2; }
@keyframes taIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes taPulse { 50% { border-color: #2f9e5b; background: #dcf6e6; color: #1d5c37; box-shadow: 0 0 0 10px rgba(47,158,91,.18); } }
@media (prefers-reduced-motion: reduce) { .ta-in, .ta-pulse { animation: none; } }
/* drops only once his hands are wet (Cook, from the Thinking step) */
.phone:not(.wet) .m-wet { display: none; }
.phone.wet .m-wet { animation: wetIn .5s ease both; }
@keyframes wetIn { from { opacity: 0; } to { opacity: 1; } }
/* Before serve: his lock screen at 6:46, no notifications */
.m-lock { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; padding-top: 120px; color: #fff;
  background: linear-gradient(170deg, #4b5560, #23292e); }
.m-lock-date { font-size: 22px; font-weight: 600; opacity: .85; }
.m-lock-time { font-size: 120px; font-weight: 800; line-height: 1; margin-top: 6px; letter-spacing: -2px; }
.m-lock-empty { margin-top: 70px; font-size: 20px; opacity: .6; border: 1.5px dashed rgba(255,255,255,.35); border-radius: 18px; padding: 16px 28px; }
.m-lock.alarm { animation: lockAlarm 1.3s ease-in-out infinite; }
@keyframes lockAlarm { 0%, 100% { box-shadow: inset 0 0 0 0 rgba(226,59,46,0); } 50% { box-shadow: inset 0 0 0 14px rgba(226,59,46,.85); } }
@media (prefers-reduced-motion: reduce) { .m-lock.alarm { animation: none; box-shadow: inset 0 0 0 10px rgba(226,59,46,.85); } }
/* Doing as 2–3 short steps, one per click */
.sbubble .dsteps { margin: 2px 0 0; padding: 0 0 0 34px; font-size: 27px; line-height: 1.3; }
.sbubble .dsteps li { margin: 2px 0; color: #8a8f92; }
.sbubble .dsteps li:last-child { color: var(--ink); font-weight: 700; }
.sbubble .dsteps li.new { animation: dIn .3s ease both; }
@keyframes dIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sbubble .dsteps li.new { animation: none; } }
/* wet phone: some drops keep running down the screen */
.phone.wet .m-wet i:nth-child(3n+1) { animation: dropRun 2.6s ease-in infinite; }
.phone.wet .m-wet i:nth-child(3n+2) { animation: dropRun 3.4s ease-in 1.1s infinite; }
@keyframes dropRun {
  0% { transform: translateY(-30px) scaleY(.8); opacity: 0; }
  12% { opacity: 1; }
  70% { transform: translateY(140px) scaleY(1.25); opacity: 1; }
  100% { transform: translateY(200px) scaleY(1.4); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .phone.wet .m-wet i { animation: none !important; } }
/* "Where it breaks": the repeated friction as three clear points */
.pt-box { text-align: left; padding: 52px 72px; align-self: center; min-width: 1100px; }
.pt-box .pt-title { font-size: 34px; letter-spacing: .08em; text-transform: uppercase; color: #ffb48a; margin-bottom: 18px; }
.pt-box ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.pt-box li { font-size: 64px; line-height: 1.15; display: flex; align-items: center; gap: 28px; }
.pt-box li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: #ff7a45; }
/* Foodieland serve: the timer alert on his lock screen */
.m-lock.warm { background: linear-gradient(170deg, #f3a36e, #c8582a); }
.m-notif { margin-top: 70px; width: 330px; background: rgba(255,255,255,.95); color: var(--ink); border-radius: 22px; padding: 18px 22px; display: flex; flex-direction: column; gap: 6px; text-align: left;
  box-shadow: 0 10px 26px rgba(0,0,0,.25); animation: notifIn .5s cubic-bezier(.2,.9,.3,1.3) both, notifBuzz .5s ease-in-out .6s 3; }
.m-notif-app { font-size: 14px; font-weight: 800; letter-spacing: .08em; color: var(--orange); }
.m-notif b { font-size: 26px; }
.m-notif span { font-size: 19px; line-height: 1.3; color: #444; }
@keyframes notifIn { from { opacity: 0; transform: translateY(-40px); } to { opacity: 1; transform: none; } }
@keyframes notifBuzz { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .m-notif { animation: none; } }
/* Foodie Recipes welcome screen (Before, stage 1, Doing 1) */
.m-welcome { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; background: linear-gradient(180deg, #f4f4f2, #dcdedc); }
.m-welcome-in { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 0 30px; text-align: center; }
.m-welcome-emoji { font-size: 84px; }
.m-welcome-title { font-size: 34px; font-weight: 800; color: #333; }
.m-welcome-line { font-size: 19px; color: #666; line-height: 1.35; margin-bottom: 24px; }
.m-welcome .m-cta { width: 100%; box-sizing: border-box; }
/* Foodieland Fix card: the old pain point above the fixes, in small red */
.fixcard .before-line { font-size: 19px; font-weight: 700; color: var(--bad); margin-bottom: 6px; }
/* Foodieland shows all its Doing lines at once: all in bold, none greyed */
.scene.warm .sbubble .dsteps li { color: var(--ink); font-weight: 700; }
/* Cyril's goal for the stage, small and grey under its title */
.stagehead .sgoal { font-size: 22px; color: var(--muted); font-weight: 600; margin-top: 4px; }

/* ======================= Phones: portrait layout (1080×1920) + touch controls ======================= */
/* Tap a face to answer "What is Cyril feeling?" */
.emo-modal:not(.answer) .emo { cursor: pointer; transition: transform .15s, border-color .15s; }
.emo-modal:not(.answer) .emo:hover { border-color: var(--orange); }
.emo.picked { border-color: var(--orange); background: #fde7da; transform: scale(1.06); }

/* Header: title on its own line, stage tabs and badge under it */
.is-portrait #stage .top { height: 170px; flex-wrap: wrap; align-content: center; padding: 18px 40px; gap: 12px 20px; }
.is-portrait #stage .top .titles { flex: 1 0 100%; }
.is-portrait #stage .top h1 { font-size: 40px; }
.is-portrait #stage .right-head { flex: 1 0 100%; justify-content: space-between; }
.is-portrait #stage .tab { font-size: 21px; padding: 9px 14px; }

/* Journey: stage title, scene and pain points on top; the phone under them; the feelings curve at the bottom */
.is-portrait #stage .journey { top: 190px; height: auto; grid-template-columns: 1fr; grid-template-rows: auto 712px; gap: 26px; }
.is-portrait #stage .journey .right { order: 1; padding: 0 40px; }
.is-portrait #stage .journey .left { order: 2; }
.is-portrait #stage .row2 { flex: none; }
.is-portrait #stage .curve { top: 1668px; left: 30px; right: 30px; height: 230px; }
.is-portrait #stage .curve svg { width: 100%; height: auto; }

/* Title slide: stacked */
.is-portrait #stage .titleview { grid-template-columns: 1fr; padding: 120px 60px; gap: 60px; align-content: center; }
.is-portrait #stage .tv-title { font-size: 128px; }
.is-portrait #stage .tv-lede { font-size: 36px; max-width: none; }
.is-portrait #stage .tv-scene { height: 560px; }

/* Where it breaks, rescue, finale, lesson */
.is-portrait #stage .pattern { top: 190px; padding: 60px 50px; }
.is-portrait #stage .pt-box { min-width: 0; align-self: stretch; padding: 48px 50px; }
.is-portrait #stage .pt-box li { font-size: 54px; }
.is-portrait #stage .helpview { padding: 0 50px; }
.is-portrait #stage .help-scene { width: 980px; }
.is-portrait #stage .help-line { font-size: 58px; max-width: 980px; }
.is-portrait #stage #intro .brand { font-size: 160px; }
.is-portrait #stage #intro .small { font-size: 48px; }
.is-portrait #stage .finale { top: 190px; padding: 40px 40px 30px; }
.is-portrait #stage .finale h2 { font-size: 64px; text-align: center; }
.is-portrait #stage .finale svg { width: 100%; height: auto; }
.is-portrait #stage .lesson2 { padding: 0 70px; }
.is-portrait #stage .lesson2 h2 { font-size: 104px; }
.is-portrait #stage .lesson2 p { font-size: 42px; }

/* Modals fit the narrower slide */
.is-portrait #stage .emo-box { width: 980px; padding: 36px 32px 30px; }
.is-portrait #stage .emo-box h3 { font-size: 56px; }
.is-portrait #stage .emo { font-size: 26px; }
.is-portrait #stage .emo span { font-size: 70px; }
.is-portrait #stage #help .box { margin: 0 40px; font-size: 24px; }

/* Touch screens: big ‹ › buttons outside the scaled slide, so they stay finger-sized */
.touch-ui #stage .nav { display: none; }
.touch-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; justify-content: space-between; pointer-events: none;
  padding: 0 calc(12px + env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) calc(12px + env(safe-area-inset-left, 0px)); }
.touch-nav button { pointer-events: auto; width: 54px; height: 54px; border-radius: 50%; border: 0; background: rgba(28,34,38,.78); color: #fff;
  font: 700 34px/1 system-ui, sans-serif; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0,0,0,.25); cursor: pointer; }
.touch-nav button:active { transform: scale(.94); }
.rotate-hint { position: fixed; left: 50%; top: calc(12px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); z-index: 60;
  display: flex; align-items: center; gap: 10px; max-width: calc(100% - 24px); background: #1c2226; color: #fff; border-radius: 14px;
  padding: 10px 10px 10px 14px; font: 600 14px/1.35 system-ui, sans-serif; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.rotate-hint button { flex: none; border: 0; background: rgba(255,255,255,.15); color: #fff; width: 30px; height: 30px; border-radius: 50%; font-size: 14px; cursor: pointer; }
/* Keep phones from widening the page: the full-size slide sits fixed in the middle and is only scaled */
html { overflow: hidden; }
#stage { position: fixed; }
.rotate-hint { width: max-content; }
/* Last slide: "Try Foodieland yourself" card with a QR code and a clickable link */
.try-app { position: absolute; right: 120px; bottom: 90px; display: flex; align-items: center; gap: 28px; background: #fff; color: var(--ink);
  border-radius: 28px; padding: 22px 34px 22px 22px; text-decoration: none; box-shadow: 0 20px 50px rgba(0,0,0,.35); animation-delay: .6s; }
.try-qr { width: 260px; height: 260px; flex: none; }
.try-qr img, .try-qr canvas { display: block; width: 260px; height: 260px; }
.try-text { display: flex; flex-direction: column; gap: 8px; max-width: 420px; }
.try-text b { font-family: var(--f-display); font-size: 44px; line-height: 1.05; color: var(--orange); }
.try-text span { font-size: 26px; color: var(--muted); font-weight: 700; }
.try-text u { font-size: 26px; font-weight: 700; color: var(--ink); text-underline-offset: 6px; word-break: break-all; }
.try-app:hover u, .try-app:focus-visible u { color: var(--orange); }
.is-portrait #stage .lesson2 { justify-content: flex-start; padding-top: 260px; }
.is-portrait #stage .try-app { left: 70px; right: 70px; bottom: 140px; }
/* Finale header: a compact "Try the Foodieland POC" chip with a small QR */
.try-chip { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); background: #fff; border: 2px solid var(--orange);
  border-radius: 14px; padding: 4px 14px 4px 4px; }
.try-chip .try-qr { width: 64px; height: 64px; }
.try-chip .try-qr img, .try-chip .try-qr canvas { display: block; width: 64px; height: 64px; border-radius: 8px; }
.try-chip-text { display: flex; flex-direction: column; line-height: 1.15; }
.try-chip-text b { font-size: 20px; color: var(--orange); }
.try-chip-text u { font-size: 16px; font-weight: 700; text-underline-offset: 3px; }
.try-chip:hover u, .try-chip:focus-visible u { color: var(--orange); }
.try-app.portrait-only { display: none; }
.is-portrait #stage .try-app.portrait-only { display: flex; position: absolute; left: 70px; right: 70px; bottom: 140px; }
