/* Mirrorly theme (dark room, warm ring light) + page sections. Shared system: landing.css */
:root {
  /* a vanity mirror in a dark room: one dark page like the film, plum from the icon */
  --bg: #151012;
  --bg-2: #1d1619;
  --surface: #241b1f;
  --surface-2: #30252a;
  --text: #fbf3ee;
  --muted: #c7b8b2;
  --line: #30252a;
  --accent: #7a2a6f;
  --on-accent: #ffffff;
  --accent-text: #c27bb5;
  --glass-c: #caf5f7;
  --h-from: #ffffff;
  --h-to: #9b9b9b;
  --glass: rgba(21, 16, 18, 0.86);
  --glass-line: rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.06);
  --menu-bg: rgba(21, 16, 18, 0.94);
  --btn-bg: #7a2a6f;
  --btn-fg: #ffffff;
  --soon-bg: #7a2a6f;
  --soon-fg: #ffffff;
  --glow: #ffe2c4;
  color-scheme: dark;
}
/* the light scenes: the same dark room, a touch deeper */
.opener, .show, .ringframe { --bg: #151012; --bg-2: #1d1619; --surface: #241b1f; --surface-2: #30252a; --text: #fbf3ee; --muted: #c7b8b2; --line: #30252a;
  --h-from: #ffffff; --h-to: #9b9b9b; color: var(--text); }
.opener .scene-pin, .show .scene-pin { background: #151012; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; line-height: 16px; }

/* Calm, editorial type */
.m-title { font-size: 72px; line-height: 1; letter-spacing: -0.045em; font-weight: 600; max-width: 680px; }
@media (max-width: 900px) { .m-title { font-size: 48px; } }
@media (max-width: 480px) { .m-title { font-size: 36px; line-height: 40px; } }
.m-h { font-size: 48px; line-height: 1; letter-spacing: -0.035em; font-weight: 600; }
@media (max-width: 900px) { .m-h { font-size: 36px; line-height: 40px; } }
@media (max-width: 480px) { .m-h { font-size: 30px; line-height: 36px; } }
.lead { color: var(--muted); }
.mphone > .front { transition: opacity 120ms linear; }
.mphone > .front.alt { opacity: 0; }

/* 0. Opener: the film fills the screen and lights the room */
.opener { height: 190vh; }
.opener .scene-pin { perspective: 1400px; background: #000; }
.ambient { position: absolute; inset: -15%; width: 130%; height: 130%; filter: blur(48px) saturate(1.3) brightness(0.7); opacity: 0.8; transform: translateZ(0); will-change: opacity; }
.opener .scene-pin { --top: 96px; --bottom: 140px; }
@media (max-width: 720px) { .opener .scene-pin { --top: 84px; --bottom: 196px; } }
.screen { backface-visibility: hidden; --ar: 1.7778; position: absolute; left: 50%; top: calc(var(--top) + (100svh - var(--top) - var(--bottom)) / 2); aspect-ratio: var(--ar); width: min(100vw - 2 * var(--gutter), (100svh - var(--top) - var(--bottom)) * var(--ar)); transform: translate(-50%, -50%); transform-origin: 50% 50%; overflow: hidden; border-radius: 24px; box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.06); will-change: transform; }
.screen video { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity 400ms var(--ease); }
.screen video.switching { opacity: 0; }
.opener-bar { position: absolute; left: 0; right: 0; bottom: var(--s-400); margin-inline: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-300); z-index: 2; }
.opener-title { font-size: 48px; line-height: 1; font-weight: 700; letter-spacing: -0.04em; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5); }
.opener-line { margin-top: var(--s-75); font-size: 16px; line-height: 24px; color: rgba(244, 241, 235, 0.8); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }
.opener-actions { display: flex; align-items: center; gap: var(--s-200); }
.opener .play { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 9999px; background: rgba(0, 0, 0, 0.45); color: #fff; cursor: pointer; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: transform var(--dur) var(--ease); }
.opener .play:active { transform: scale(0.96); }
.opener .play svg { width: 18px; height: 18px; }
@media (max-width: 720px) {
  .opener-bar { flex-direction: column; align-items: center; text-align: center; bottom: var(--s-400); }
  .opener-title { font-size: 36px; }
  .opener-actions .btn { font-size: 14px; }
}


/* 1. Show: light, zoom, not the Camera app */
.show { height: 720vh; }
.show .scene-pin { display: grid; align-items: center; }
.room { position: absolute; inset: 0; background: #131209; opacity: 0; }
.glow { position: absolute; left: 70%; top: 50%; width: 72vmin; aspect-ratio: 1; border-radius: 50%; background: #f4e2cc; filter: blur(100px); transform: translate(-50%, -50%); opacity: 0; }
.show-grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--s-700); align-items: center; height: 100%; }
.beats { position: relative; min-height: 380px; }
.beat { position: absolute; inset: 50% 0 auto 0; transform: translateY(calc(-50% + 32px)); opacity: 0; filter: blur(10px); pointer-events: none; transition: opacity 700ms var(--ease), transform 700ms var(--ease), filter 700ms var(--ease); }
.beat.on { opacity: 1; transform: translateY(-50%); filter: none; pointer-events: auto; }
.word { font-size: 160px; line-height: 0.9; letter-spacing: -0.06em; font-weight: 700; color: var(--text); }
.word.small { font-size: 72px; line-height: 1; letter-spacing: -0.045em; }
@media (max-width: 1100px) { .word { font-size: 120px; } .word.small { font-size: 56px; } }
.beat .lead { max-width: 440px; margin-top: var(--s-300); }
.zoomer { display: inline-block; margin-top: var(--s-400); padding: var(--s-75) var(--s-200); border-radius: 9999px; background: rgba(255, 255, 255, 0.1); font-size: 30px; line-height: 36px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--accent); }
.cue { display: inline-flex; align-items: center; gap: var(--s-100); margin-top: var(--s-600); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.cue i { position: relative; width: 2px; height: 28px; border-radius: 2px; background: rgba(255, 255, 255, 0.18); overflow: hidden; }
.cue i::after { content: ""; position: absolute; left: 0; right: 0; top: -40%; height: 40%; background: var(--accent); animation: cue 1.6s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }
.vs { margin: var(--s-400) 0 0; padding: 0; list-style: none; display: grid; gap: var(--s-200); max-width: 520px; }
.vs li { display: grid; gap: var(--s-25); padding-left: var(--s-500); position: relative; opacity: 0.25; transform: translateX(-12px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.vs li::before { content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 9999px; background: var(--accent); -webkit-mask: radial-gradient(circle, #000 0 0) ; }
.vs li::after { content: "✓"; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 9999px; background: var(--accent); color: var(--on-accent); font-size: 14px; font-weight: 700; }
.vs li.on { opacity: 1; transform: none; }
.vs span { font-size: 20px; line-height: 28px; font-weight: 600; }
.vs em { font-style: normal; font-size: 14px; line-height: 20px; color: var(--muted); }
.stage { position: relative; height: min(82vh, 760px); perspective: 1800px; display: grid; place-items: center; }
.mphone { --w: calc(min(78vh, 720px) * 0.44); transform-origin: 50% 55%; }
@media (max-width: 900px) {
  .show .scene-pin { align-items: start; padding-top: 96px; }
  .show-grid { display: flex; flex-direction: column; align-items: stretch; gap: var(--s-200); height: calc(100svh - 96px - var(--s-300)); }
  .stage { flex: 1 1 auto; height: auto; min-height: 0; order: -1; }
  .mphone { --w: var(--phone-w, 200px); }
  .beats { flex: none; height: var(--beats-h, 260px); }
  .glow { left: 50%; top: 32%; }
  .beat { inset: 0 0 auto 0; transform: translateY(16px); text-align: center; }
  .beat.on { transform: none; }
  .beat .m-title, .beat .lead { margin-inline: auto; }
  .beat .lead { margin-top: var(--s-200); }
  .beat .cta-row { justify-content: center; margin-top: var(--s-300); }
  .word { font-size: 72px; }
  .word.small { font-size: 36px; line-height: 40px; }
  .cue { display: none; }
  .vs { margin-top: var(--s-200); gap: var(--s-75); text-align: left; margin-inline: auto; padding-inline: var(--s-50); max-width: 360px; }
  .vs li { padding-left: var(--s-400); }
  .vs li::after, .vs li::before { width: 20px; height: 20px; font-size: 12px; }
  .vs span { font-size: 16px; line-height: 24px; }
  .vs em { font-size: 12px; line-height: 16px; }
  .zoomer { margin-top: var(--s-200); }
}

/* 2. Moments */
.moments { height: 440vh; background: var(--bg-2); }
.moments .scene-pin { display: grid; grid-template-rows: auto 1fr; grid-template-columns: 100%; padding-top: 120px; }
.moments-head { margin-bottom: var(--s-500); }
.track { display: flex; gap: var(--s-400); padding-left: max(var(--gutter), (100vw - var(--wrap)) / 2); will-change: transform; align-items: center; }
.moment { flex: none; display: grid; grid-template-columns: auto 1fr; gap: var(--s-500); align-items: center; width: min(760px, 86vw); padding: var(--s-400); border-radius: 32px; background: var(--bg); border: 1px solid var(--line); }
.moment .iphone { --w: min(220px, calc((100svh - 330px - var(--ui-bottom)) * 0.46)); }
.moment .time { display: block; font-size: 60px; line-height: 1; font-weight: 700; letter-spacing: -0.04em; color: var(--accent); font-variant-numeric: tabular-nums; }
.moment h3 { margin-top: var(--s-200); font-size: 30px; line-height: 36px; letter-spacing: -0.02em; font-weight: 600; }
.moment p { margin-top: var(--s-100); color: var(--muted); }
@media (max-width: 720px) {
  .moments .scene-pin { padding-top: 96px; }
  .moments-head { margin-bottom: var(--s-200); }
  .moments .scene-pin { align-content: start; }
  .moment { grid-template-columns: auto 1fr; gap: var(--s-200); padding: var(--s-200); width: 86vw; border-radius: 24px; }
  .moment .iphone { --w: min(118px, calc((100svh - 96px - 140px - var(--ui-bottom)) * 0.4)); }
  .moment .time { font-size: 30px; }
  .moment h3 { font-size: 18px; line-height: 24px; margin-top: var(--s-75); }
  .moment p { font-size: 14px; line-height: 20px; }
}

/* 3. The comedy: the mirror itself, no screenshots */
.talks { height: 360vh; }
.talks .scene-pin { display: grid; align-items: center; }
.talks-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--s-700); align-items: center; }
.talks-intro .lead { max-width: 420px; margin-top: var(--s-300); }
.talks-stage { display: grid; justify-items: center; gap: var(--s-400); text-align: center; }
.talks-face { width: min(220px, 26vh); height: auto; border-radius: 22.5%; box-shadow: 0 30px 80px -30px rgba(244, 226, 204, 0.45); }
.talks-face.nod { animation: nod 900ms var(--ease); }
@keyframes nod { 0% { transform: rotate(0) scale(1); } 30% { transform: rotate(-8deg) scale(1.06); } 60% { transform: rotate(5deg) scale(1.02); } 100% { transform: rotate(0) scale(1); } }
.lines { display: grid; width: 100%; }
.joke { grid-area: 1 / 1; margin: 0; font-size: 60px; line-height: 1.02; letter-spacing: -0.045em; font-weight: 700; opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity 500ms var(--ease), transform 600ms var(--ease); }
.joke.on { opacity: 1; transform: none; }
.joke span { display: inline; }
.joke .j1 { color: var(--text); }
.joke .j2 { display: inline-block; color: var(--accent); opacity: 0; transform: translate3d(0, 24px, 0) scale(0.94); transition: opacity 450ms var(--ease), transform 650ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.joke.punch .j2 { opacity: 1; transform: none; }
@media (max-width: 1100px) { .joke { font-size: 48px; } }
@media (max-width: 900px) {
  .talks .scene-pin { align-items: center; }
  .talks-grid { grid-template-columns: 1fr; gap: var(--s-400); text-align: center; padding-bottom: var(--ui-bottom); }
  .talks-intro .lead { margin-inline: auto; margin-top: var(--s-200); }
  .talks-face { width: min(140px, 18svh); }
  .joke { font-size: 36px; line-height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .talks-face.nod { animation: none; } }

/* Film */
.m-filmsec { background: var(--bg-2); }
.film-split { display: grid; grid-template-columns: 1fr 340px; gap: var(--s-800); align-items: center; }
@media (max-width: 900px) { .film-split { grid-template-columns: 1fr; gap: var(--s-500); } }
.m-film { position: relative; margin: 0; width: 100%; aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden; background: #000; border: 1px solid var(--line); justify-self: center; max-width: 340px; }
.m-film video { width: 100%; height: 100%; object-fit: cover; }
.m-film .play { position: absolute; right: var(--s-200); bottom: var(--s-200); display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; border-radius: 9999px; background: rgba(244, 241, 235, 0.92); color: #080808; cursor: pointer; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.m-film .play svg { width: 18px; height: 18px; }
.m-film .play:active { transform: scale(0.96); }

.m-film.wide { max-width: none; width: 100%; aspect-ratio: 16 / 9; margin-top: var(--s-600); border-radius: 32px; }
@media (max-width: 640px) { .m-film.wide { border-radius: 20px; margin-top: var(--s-400); } }
.m-filmsec .m-h { margin-inline: auto; max-width: 760px; }

/* End */
.m-end .m-icon { width: 112px; height: 112px; border-radius: 26px; margin: 0 auto var(--s-300); }
.m-end .m-title { margin-inline: auto; }
.m-end .cta-row { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  .mphone { transform: none !important; }
  .cue i::after { animation: none; }
}

/* The page as a mirror: a warm ring light around the whole window */
.ringframe { position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: 0; border-radius: 0; box-shadow: inset 0 0 0 10px #f6e6d1, inset 0 0 48px 18px rgba(246, 226, 200, 0.55); }
@media (max-width: 640px) { .ringframe { box-shadow: inset 0 0 0 6px #f6e6d1, inset 0 0 28px 10px rgba(246, 226, 200, 0.5); } }
@media (prefers-reduced-motion: reduce) { .ringframe { display: none; } }


/* Short phones (iPhone SE): keep the phone and the text apart */
@media (max-width: 900px) and (max-height: 720px) {
  .vs em { display: none; }
  .vs { gap: var(--s-50); margin-top: var(--s-100); }
  .word.small { font-size: 30px; line-height: 36px; }
  .beat .lead { margin-top: var(--s-100); font-size: 14px; line-height: 20px; }
  .beat .cta-row { margin-top: var(--s-200); }
}

/* iOS Safari's floating toolbar sits over the bottom of the page: keep pinned scenes clear of it */
.opener-bar { bottom: calc(var(--s-400) + var(--ui-bottom)); }
@media (max-width: 900px) {
  .show-grid { height: calc(100svh - 96px - var(--s-300) - var(--ui-bottom)); }
  .moments .scene-pin { padding-bottom: var(--ui-bottom); grid-template-rows: auto auto; }
}

/* Phones: stack the chapters in one grid cell so the box is exactly as tall as the tallest one;
   the phone takes whatever is left (sized in JS from its stage) */
@media (max-width: 900px) {
  .beats { display: grid; height: auto !important; min-height: 0; }
  .beat { position: relative; inset: auto; grid-area: 1 / 1; transform: translateY(16px); }
  .beat.on { transform: none; }
}

@media (pointer: coarse) {
  .ambient { filter: saturate(1.3) brightness(0.65); }
  .glow { filter: blur(60px); }
}


/* The story film, at the very bottom */
.m-story { background: var(--bg-2); }
.story-split { display: grid; grid-template-columns: 1fr 340px; gap: var(--s-800); align-items: center; }
@media (max-width: 900px) { .story-split { grid-template-columns: 1fr; gap: var(--s-400); text-align: center; } }
.story-film { position: relative; margin: 0 auto; width: 100%; max-width: 340px; aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.story-film video { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-film .play { position: absolute; right: var(--s-200); bottom: var(--s-200); display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; border-radius: 9999px; background: rgba(0, 0, 0, 0.55); color: #fff; cursor: pointer; }
.story-film .play svg { width: 18px; height: 18px; }
@media (max-width: 720px) { .story-film { max-width: min(78vw, 300px); } }

.talks-cta { margin-top: var(--s-300); font-size: 18px; line-height: 28px; font-weight: 700; color: var(--accent); }

/* ===== Phone page ===== */
@media (max-width: 720px) { .ringframe { display: none; } }
.mm-film { margin: var(--s-400) auto 0; width: min(64vw, 260px); aspect-ratio: 9 / 16; border-radius: 24px; overflow: hidden; background: #000; box-shadow: 0 24px 60px -24px rgba(244, 226, 204, 0.35); }
.mm-film video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mm-try { text-align: center; }
.mm-dev { position: relative; width: min(52vw, 210px); margin: var(--s-400) auto var(--s-300); aspect-ratio: 1318 / 2717; transition: filter 600ms var(--ease); }
.mm-dev::before { content: ""; position: absolute; inset: -30%; border-radius: 50%; background: #f4e2cc; opacity: 0; filter: blur(50px); transition: opacity 600ms var(--ease); z-index: -1; }
.mm-dev.lit::before { opacity: 0.35; }
.mm-screens img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 450ms var(--ease); }
.mm-screens img.on { opacity: 1; }
.mm-ctl { display: flex; justify-content: center; gap: var(--s-100); }
.mm-ctl button { display: inline-flex; align-items: center; gap: var(--s-75); min-height: 44px; padding: var(--s-75) var(--s-200); border-radius: 9999px; border: 1px solid rgba(255, 255, 255, 0.16); background: transparent; color: var(--text); font-size: 14px; line-height: 20px; font-weight: 600; transition: background-color 300ms var(--ease), color 300ms var(--ease), transform 120ms var(--ease); }
.mm-ctl button:active { transform: scale(0.96); }
.mm-ctl button svg { width: 18px; height: 18px; }
.mm-ctl button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.mm-vs { margin-top: var(--s-200); }
.mm-rail li { width: 150px; text-align: center; }
.mm-rail img { display: block; width: 100%; height: auto; margin-bottom: var(--s-100); }
.mm-rail b { display: block; font-size: 24px; line-height: 32px; color: var(--accent); font-variant-numeric: tabular-nums; }
.mm-rail span { font-size: 14px; line-height: 20px; color: var(--muted); }
.mm-talk { text-align: center; }
.mm-talk .talks-face { width: 112px; margin: 0 auto var(--s-300); display: block; }
.mm-lines { margin-top: var(--s-300); min-height: 96px; }
.mm-lines .joke { font-size: 30px; line-height: 36px; }
.mm-story { width: min(60vw, 240px) !important; }
.vs.on-all li { opacity: 1; transform: none; }

/* ===== Phones: moments as compact cards ===== */
@media (max-width: 720px) {
  .moment { grid-template-columns: auto 1fr; width: 78vw; padding: var(--s-200); gap: var(--s-200); border-radius: 24px; text-align: left; justify-items: start; }
  .moment .iphone { --w: min(96px, 24vw); }
  .moment .time { font-size: 30px; line-height: 36px; }
  .moment h3 { font-size: 16px; line-height: 24px; margin-top: var(--s-50); }
  .moment p { font-size: 12px; line-height: 16px; }
  .track { gap: var(--s-100); }
}


/* ===== Mirrorly style: the mirror from the icon is the guide ===== */
.eyebrow { color: var(--accent-text); font-weight: 600; }
.m-title, .m-h, .word { letter-spacing: -0.03em; }
.word.small { font-weight: 700; }
.room { background: #0e0a0b !important; }
.btn[aria-disabled="true"] { background: var(--soon-bg); color: var(--soon-fg); }
.island .cta[aria-disabled="true"] { background: var(--accent); color: #fff; }

/* mascot */
.mascot { display: inline-block; width: 72px; aspect-ratio: 704 / 940; }
.mascot svg { width: 100%; height: 100%; overflow: visible; display: block; }
.mascot .m-glow { opacity: 0; filter: blur(30px); transition: opacity 600ms var(--ease); }
.mascot.lit .m-glow { opacity: 0.9; }
.mascot .m-face > * { transition: opacity 250ms var(--ease), transform 300ms var(--ease); transform-box: fill-box; transform-origin: center; }
.mascot .m-brow-l, .mascot .m-brow-r, .mascot .m-happy-l, .mascot .m-happy-r, .mascot .m-oo, .mascot .m-eye-r { opacity: 0; }
.mascot[data-face="happy"] .m-eye-l, .mascot[data-face="happy"] .m-wink { opacity: 0; }
.mascot[data-face="happy"] .m-happy-l, .mascot[data-face="happy"] .m-happy-r { opacity: 1; }
.mascot[data-face="oo"] .m-wink, .mascot[data-face="oo"] .m-mouth { opacity: 0; }
.mascot[data-face="oo"] .m-eye-r, .mascot[data-face="oo"] .m-oo, .mascot[data-face="oo"] .m-brow-l, .mascot[data-face="oo"] .m-brow-r { opacity: 1; }
.mascot[data-face="oo"] .m-brow-l, .mascot[data-face="oo"] .m-brow-r { transform: translateY(-16px); }
.mascot[data-face="squint"] .m-wink { opacity: 0; }
.mascot[data-face="squint"] .m-eye-r, .mascot[data-face="squint"] .m-brow-l, .mascot[data-face="squint"] .m-brow-r { opacity: 1; }
.mascot[data-face="squint"] .m-eye-l, .mascot[data-face="squint"] .m-eye-r { transform: scaleY(0.35); }
.mascot[data-face="squint"] .m-brow-l, .mascot[data-face="squint"] .m-brow-r { transform: translateY(18px); }
.mascot[data-face="frown"] .m-wink { opacity: 0; }
.mascot[data-face="frown"] .m-eye-r, .mascot[data-face="frown"] .m-brow-l, .mascot[data-face="frown"] .m-brow-r { opacity: 1; }
.mascot[data-face="frown"] .m-brow-l { transform: translateY(14px) rotate(12deg); }
.mascot[data-face="frown"] .m-brow-r { transform: translateY(14px) rotate(-12deg); }
.mascot[data-face="smug"] .m-brow-r { opacity: 1; transform: translateY(-14px) rotate(-6deg); }
.mascot[data-face="dark"] .m-frame { fill: #3a1d14; stroke: #4a2a1c; }
.mascot[data-face="dark"] .m-rim, .mascot[data-face="dark"] .m-handle { fill: #3a1d14; }
.mascot[data-face="dark"] .m-glass { fill: #0d0910; }
.mascot[data-face="dark"] .m-eye-l, .mascot[data-face="dark"] .m-eye-r { fill: #fff; opacity: 1; }
.mascot[data-face="dark"] .m-wink { opacity: 0; }
.mascot[data-face="dark"] .m-mouth { stroke: #fff; }
.mascot .m-frame, .mascot .m-rim, .mascot .m-glass, .mascot .m-handle { transition: fill 600ms var(--ease); }
.mascot.bounce { animation: m-bounce 700ms var(--ease); }
@keyframes m-bounce { 0% { transform: translateY(0) rotate(0); } 35% { transform: translateY(-10px) rotate(-6deg); } 70% { transform: translateY(0) rotate(4deg); } 100% { transform: none; } }

/* the guide sits above the chapter text in the main scene */
.beats { padding-top: 0; }
.beat-mascot { position: absolute; left: -112px; top: calc(50% - 60px); width: 80px; z-index: 2; }
@media (max-width: 1300px) { .beat-mascot { left: -88px; width: 64px; } }
@media (max-width: 1100px) { .beat-mascot { display: none; } }

/* personality: the mirror talks in speech bubbles */
.talks-stage { gap: var(--s-300); }
.talks-mascot { width: min(180px, 22vh); }
.joke { font-size: 36px !important; line-height: 44px !important; letter-spacing: -0.02em; }
.joke .bubble-in { display: inline-block; position: relative; padding: var(--s-200) var(--s-300); border-radius: 28px; background: var(--glass-c); color: #1a0b18; }
.joke .bubble-in::before { content: ""; position: absolute; left: 50%; top: -14px; margin-left: -14px; border: 14px solid transparent; border-top: 0; border-bottom-color: var(--glass-c); }
.joke .j1 { color: #1a0b18 !important; }
.joke .j2 { color: #c4503a !important; }
@media (max-width: 900px) { .joke { font-size: 24px !important; line-height: 32px !important; } .joke .bubble-in { padding: var(--s-100) var(--s-200); border-radius: 20px; } }
.talks-cta { color: var(--accent-text); }

/* moments, faq, cards in plum */
.moment { background: var(--surface) !important; border-color: var(--surface-2) !important; }
.moment .time, .mm-rail b { color: var(--accent-text) !important; }
.faq summary svg { color: var(--accent-text); }
.moments { background: var(--bg-2) !important; }
.m-story { background: var(--bg-2) !important; }
@media (max-width: 720px) { .moments .scene-pin { align-content: center; } .moments-head { margin-bottom: var(--s-300); } }

/* sections and cards */
.moment { background: var(--surface) !important; border: 1px solid var(--line) !important; box-shadow: 0 24px 48px -32px rgba(0, 0, 0, 0.6); }
.moments { background: var(--bg-2) !important; }
.m-story { background: var(--bg-2) !important; }
.m-end .m-title { background: none; color: var(--text); }

/* ===== Portrait (phones): built for a tall screen ===== */
@media (max-width: 720px) and (orientation: portrait) {
  /* the main scene: the phone is the hero, the text is short */
  .vs em { display: none; }
  .vs { gap: var(--s-75); margin-top: var(--s-200); }
  .vs span { font-size: 16px; line-height: 24px; }
  .word.small { font-size: 30px; line-height: 36px; }
  .beat .lead { font-size: 14px; line-height: 20px; margin-top: var(--s-100); }
  .show .stage { margin-top: var(--s-100); }
  /* moments: a stack of cards */
  .moments .scene-pin { display: grid; grid-template-rows: auto 1fr; align-content: stretch; padding-bottom: calc(var(--s-400) + var(--ui-bottom)); }
  .moments-head { margin-bottom: var(--s-300); }
  .track { position: relative; display: block; padding: 0 var(--gutter); height: 100%; transform: none !important; }
  .moment { position: absolute; left: var(--gutter); right: var(--gutter); top: 0; bottom: 0; width: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    padding: var(--s-300); gap: var(--s-200); border-radius: 32px; transform-origin: 50% 0; will-change: transform, opacity; }
  .moment .iphone { --w: min(46vw, calc((100svh - 420px) * 0.46)); }
  .moment .time { font-size: 36px; line-height: 40px; }
  .moment h3 { font-size: 20px; line-height: 28px; margin-top: var(--s-50); }
  .moment p { font-size: 14px; line-height: 20px; }
}

.ambient { display: none !important; }

/* Tall phones keep the Camera comparison under each line, like on desktop */
@media (max-width: 720px) and (orientation: portrait) and (min-height: 780px) {
  .vs em { display: block; font-size: 12px; line-height: 16px; }
  .vs { gap: var(--s-100); }
}
@media (pointer: coarse) { .beat { filter: none !important; } }
@media (max-width: 720px) and (orientation: portrait) { .moments .track { perspective: 1200px; perspective-origin: 50% 100%; } .moment { transform-origin: 50% 100%; } }

/* ===== Phones, portrait and landscape: their own layout (system in landing.css) ===== */
@media (max-width: 720px), (pointer: coarse) and (max-height: 540px) {
  .film-intro { --film-bg: #15100a; --film-fg: #c27bb5; }
  .m-intro { padding: var(--s-700) 0; }
  .m-intro .m-icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto var(--s-200); }
  .m-intro .lead { margin-top: var(--s-100); }
  .m-intro .cta-row { justify-content: center; margin-top: var(--s-300); }

  /* the mirror: a dark room, the phone in its own warm light */
  .show-m { background: #0e0a0b; color: #f4ede7; --line: rgba(255, 255, 255, 0.16); --dot: var(--accent-text); }
  .show-m .eyebrow { color: var(--accent-text); }
  .show-m .m-h { color: #fff; }
  .show-m .lead { color: rgba(244, 237, 231, 0.75); }
  /* the ring light: a warm glow that spills out from under the phone */
  .show-m .m-vis::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 60%; width: 260%; height: 150%; transform: translate(-50%, -50%) scale(0.5);
    border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 232, 205, 0.95), rgba(255, 214, 170, 0.5) 38%, rgba(255, 200, 150, 0.16) 68%, rgba(255, 200, 150, 0) 100%); opacity: 0;
    transition: opacity 1100ms var(--ease), transform 1500ms var(--ease); }
  .show-m .lit.on .m-vis::before { opacity: 0.6; transform: translate(-50%, -50%) scale(0.85); }
  .show-m .lights.lit-now .m-vis::before { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  .show-m .lights .front.alt { opacity: 0; transition: opacity 700ms var(--ease); }
  .show-m .lights.lit-now .front.alt { opacity: 1; }
  .show-m .zooms .iphone { transition: transform 1400ms var(--ease); }
  .show-m .zooms .front.alt { opacity: 0; transition: opacity 900ms var(--ease) 200ms; }
  .show-m .zooms.zoom-now .front.alt { opacity: 1; }
  .show-m .zooms.zoom-now .iphone { transform: scale(1.06); }
  .show-m .zoomer { display: inline-block; margin-top: var(--s-200); padding: var(--s-50) var(--s-200); border-radius: 9999px; background: rgba(255, 255, 255, 0.1); font-size: 20px; line-height: 28px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--accent-text); }
  .show-m .m-vis { isolation: isolate; }
  .show-m .m-vis .iphone { --w: calc(min(44svh, 420px) * 0.48); }
  .show-m .vs { margin: var(--s-200) auto 0; gap: var(--s-100); text-align: left; max-width: 340px; }
  .show-m .vs li { padding-left: var(--s-400); }
  .show-m .vs li::after, .show-m .vs li::before { width: 20px; height: 20px; font-size: 12px; background: var(--accent); color: #fff; }
  .show-m .vs span { font-size: 16px; line-height: 24px; color: #fff; }
  .show-m .vs em { font-size: 12px; line-height: 16px; color: rgba(244, 237, 231, 0.6); }

  .moments-m { background: var(--bg-2); }
  .moments-m .m-slide { gap: var(--s-200); }
  .moments-m .m-vis .iphone { --w: calc(min(44svh, 420px) * 0.48); }
  .moments-m .time { display: block; font-size: 36px; line-height: 40px; font-weight: 700; letter-spacing: -0.04em; color: var(--accent-text); font-variant-numeric: tabular-nums; }
  .moments-m h3 { margin-top: var(--s-50); font-size: 20px; line-height: 28px; font-weight: 600; }
  .moments-m p { margin-top: var(--s-75); color: var(--muted); }
}
@media (max-width: 720px) and (orientation: landscape), (pointer: coarse) and (max-height: 540px) and (orientation: landscape) {
  .m-intro { padding: var(--s-500) 0; }
  .m-intro .m-icon { width: 64px; height: 64px; border-radius: 15px; }
  .show-m .m-vis .iphone, .moments-m .m-vis .iphone { --w: calc((var(--m-room) - var(--s-600)) * 0.48); }
  .show-m .vs { margin-inline: 0; }
  .show-m .vs em { display: none; }
  .story-split { grid-template-columns: 1fr auto; text-align: left; }
  .story-film { width: calc((var(--m-room) - var(--s-400)) * 9 / 16); max-width: none; }
}

/* It talks back: a small note near the end, no lines quoted */
.m-talk-box { display: flex; align-items: center; gap: var(--s-400); max-width: 720px; padding: var(--s-500); border-radius: 32px; background: var(--surface); border: 1px solid var(--line); }
.m-talk-face { flex: none; width: 88px; }
.m-talk .lead { margin-top: var(--s-100); }
@media (max-width: 720px) and (orientation: portrait) { .m-talk-box { flex-direction: column; text-align: center; gap: var(--s-200); padding: var(--s-400) var(--s-300); } .m-talk-face { width: 72px; } }

/* Desktop opener: the film's light fills the whole screen around it */
.spill { position: absolute; inset: 0; pointer-events: none; transition: background 400ms linear;
  background:
    radial-gradient(60% 90% at 0% 50%, rgba(var(--l, 40,30,30), 0.6), transparent 72%),
    radial-gradient(60% 90% at 100% 50%, rgba(var(--r, 40,30,30), 0.6), transparent 72%),
    radial-gradient(90% 60% at 50% 0%, rgba(var(--t, 40,30,30), 0.5), transparent 72%),
    radial-gradient(90% 60% at 50% 100%, rgba(var(--b, 40,30,30), 0.5), transparent 72%),
    radial-gradient(70% 70% at 50% 50%, rgba(var(--c, 40,30,30), 0.55), transparent 78%); }
.opener .screen { box-shadow: 0 0 140px 30px rgba(var(--glow-c, 255,226,196), 0.18), 0 40px 120px -30px rgba(0, 0, 0, 0.8); }

/* Guides on the home page */
.guides-sec .lead { margin-top: var(--s-200); }
.guides-grid { margin-top: var(--s-600); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-200); }
.guide-card { display: flex; flex-direction: column; gap: var(--s-75); padding: var(--s-300); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.guide-card h3 { font-size: 18px; line-height: 28px; letter-spacing: -0.01em; }
.guide-card p { font-size: 14px; line-height: 20px; color: var(--muted); }
.guide-card .read-more { margin-top: auto; padding-top: var(--s-100); font-size: 14px; line-height: 20px; font-weight: 700; color: var(--accent-text); }
@media (hover: hover) and (pointer: fine) { .guide-card:hover { transform: translateY(-4px); border-color: var(--accent-text); } }
.guide-card:active { transform: scale(0.98); }
@media (max-width: 900px) { .guides-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) and (orientation: portrait) {
  .guides-grid { grid-template-columns: 1fr; gap: var(--s-100); margin-top: var(--s-400); }
  .guide-card { padding: var(--s-200); border-radius: 20px; }
  .guide-card p, .guide-card .read-more { display: none; }
  .guide-card h3 { font-size: 16px; line-height: 24px; }
}
