/* ==================================================================
   Moviegoers hero — phone with live-syncing app + scrolling carousel.
   All rules scoped under .mm-marketing. Class prefix mmh- (movie
   minder hero) to keep clear of mmc- (circuits) and mmx- (sections).
   ================================================================== */

.mm-marketing .mmh-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(96px, 9vw, 128px) clamp(20px, 4vw, 64px) clamp(56px, 7vw, 96px);
  color: var(--mm-fg1, #f6efe4);
  background:
    radial-gradient(ellipse 100% 70% at 50% 0%,
      rgba(56, 32, 96, 0.42) 0%,
      rgba(28, 16, 54, 0.22) 40%,
      transparent 75%),
    radial-gradient(ellipse 80% 60% at 100% 100%,
      rgba(226, 192, 107, 0.07) 0%,
      transparent 70%),
    var(--mm-ink, #08070C);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---------- Atmosphere ---------- */
.mm-marketing .mmh-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.mm-marketing .mmh-hero-aura {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  mix-blend-mode: screen;
  opacity: 0.85;
}
.mm-marketing .mmh-hero-aura--gold {
  width: 60vw; height: 60vw;
  right: -22vw; top: -18vw;
  background: radial-gradient(circle, rgba(245, 211, 122, 0.35), transparent 60%);
  animation: mmh-aura-drift 16s ease-in-out infinite alternate;
}
.mm-marketing .mmh-hero-aura--violet {
  width: 50vw; height: 50vw;
  left: -16vw; bottom: -22vw;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.28), transparent 60%);
  animation: mmh-aura-drift 21s ease-in-out -7s infinite alternate;
}
@keyframes mmh-aura-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(4%, -3%, 0) scale(1.05); }
}
.mm-marketing .mmh-hero-grain {
  position: absolute;
  inset: -2%;
  opacity: 0.18;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: mmh-grain 2.4s steps(6) infinite;
}
@keyframes mmh-grain {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-2%, 3%); }
  50%  { transform: translate(3%, -2%); }
  75%  { transform: translate(-3%, -3%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Grid ---------- */
.mm-marketing .mmh-hero-grid {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
@media (min-width: 1024px) {
  .mm-marketing .mmh-hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 36px;
    min-height: 64vh;
  }
}

/* ---------- Copy column ---------- */
.mm-marketing .mmh-eyebrow {
  display: inline-block;
  font-family: var(--mm-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  letter-spacing: 0.22em;
  font-size: 12px;
  font-weight: 600;
  color: var(--mm-gold, #E2C06B);
  padding: 6px 12px;
  border: 1px solid rgba(226, 192, 107, 0.3);
  border-radius: 999px;
  margin-bottom: 24px;
  background: rgba(226, 192, 107, 0.04);
  text-transform: uppercase;
}

.mm-marketing .mmh-hero-title {
  font-family: var(--mm-font-display, 'Inter', sans-serif);
  font-weight: 800;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.018em;
  margin: 0 0 24px;
  color: #F8F1E4;
  text-wrap: balance;
}
.mm-marketing .mmh-hero-title-seg,
.mm-marketing .mmh-hero-title-em {
  display: block;
  margin-top: 6px;
  padding-bottom: 0.14em;
}
.mm-marketing .mmh-hero-title-seg:first-child,
.mm-marketing .mmh-hero-title-em:first-child {
  margin-top: 0;
}
.mm-marketing .mmh-hero-title-em {
  font-style: italic;
  background: linear-gradient(92deg, #f5dc94, #e2c06b 55%, #a97b1e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mm-marketing .mmh-hero-lead {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: rgba(246, 239, 224, 0.74);
  max-width: 52ch;
  margin: 0 0 28px;
  text-wrap: pretty;
}

.mm-marketing .mmh-hero-meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}
.mm-marketing .mmh-hero-now {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mm-font-mono, monospace);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: rgba(246, 239, 224, 0.66);
}
.mm-marketing .mmh-hero-now-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--mm-gold, #e2c06b);
  box-shadow: 0 0 10px rgba(226, 192, 107, 0.7);
  animation: mmh-pulse 1.6s ease-in-out infinite;
}
@keyframes mmh-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.85); }
}
.mm-marketing .mmh-hero-now-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 10.5px;
  color: rgba(246, 239, 224, 0.42);
}
.mm-marketing .mmh-hero-now-title {
  color: var(--mm-gold-bright, #f5dc94);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  font-family: var(--mm-font-display, 'Inter', sans-serif);
  font-size: 14px;
  animation: mmh-fade-in 480ms ease;
}
@keyframes mmh-fade-in {
  from { opacity: 0; transform: translateY(2px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mm-marketing .mmh-hero-dots {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.mm-marketing .mmh-hero-dot {
  appearance: none;
  border: 0;
  width: 22px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
  padding: 0;
  transition: background 220ms ease, transform 220ms ease;
}
.mm-marketing .mmh-hero-dot:hover { background: rgba(255, 255, 255, 0.28); }
.mm-marketing .mmh-hero-dot.is-active {
  background: linear-gradient(90deg, #f5dc94, #a97b1e);
  transform: scaleY(1.4);
}

/* ---------- Stage / phone ---------- */
.mm-marketing .mmh-hero-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1800px;
  padding: 12px 0 28px;
}

.mm-marketing .mmh-phone {
  position: relative;
  width: clamp(220px, 24vw, 286px);
  aspect-ratio: 9 / 19.5;
  transform: rotateY(-6deg) rotateX(2deg);
  transform-style: preserve-3d;
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.mm-marketing .mmh-phone:hover {
  transform: rotateY(-2deg) rotateX(0.5deg);
}
.mm-marketing .mmh-phone-glow {
  position: absolute;
  inset: -12% -8%;
  background: radial-gradient(ellipse at 50% 50%, rgba(226, 192, 107, 0.25), transparent 60%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}
.mm-marketing .mmh-phone-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 38px;
  background: linear-gradient(180deg, #1a1820 0%, #0a090d 100%);
  padding: 9px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 50px 120px -30px rgba(0, 0, 0, 0.85),
    0 0 80px rgba(167, 139, 250, 0.12);
}
.mm-marketing .mmh-phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 18px;
  border-radius: 0 0 12px 12px;
  background: #000;
  z-index: 4;
}
.mm-marketing .mmh-phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  background: #050507;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: var(--mm-font-display, 'Inter', sans-serif);
}

/* App: status bar */
.mm-marketing .mmh-app-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px 6px;
  font-size: 10px;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.mm-marketing .mmh-app-status-l { display: flex; flex-direction: column; gap: 1px; line-height: 1.05; }
.mm-marketing .mmh-app-time { font-size: 12px; font-weight: 700; }
.mm-marketing .mmh-app-back-app { font-size: 9px; opacity: 0.85; }
.mm-marketing .mmh-app-status-r { display: flex; align-items: center; gap: 4px; }
.mm-marketing .mmh-app-bars,
.mm-marketing .mmh-app-wifi,
.mm-marketing .mmh-app-batt {
  display: inline-block;
  background: #fff;
  opacity: 0.92;
}
.mm-marketing .mmh-app-bars  { width: 10px; height: 8px; clip-path: polygon(0 100%, 22% 100%, 22% 60%, 44% 60%, 44% 40%, 66% 40%, 66% 20%, 88% 20%, 88% 0, 100% 0, 100% 100%); }
.mm-marketing .mmh-app-wifi  { width: 10px; height: 8px; clip-path: polygon(50% 0, 100% 50%, 80% 65%, 50% 30%, 20% 65%, 0 50%); }
.mm-marketing .mmh-app-batt  { width: 16px; height: 8px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,0.6) inset, 14px 0 0 -2px rgba(255,255,255,0.6); background: #fff; }

/* App: hero (the featured movie poster). Taller now — grows to fill
   the space above the thumbnail row. The Buy / Remind CTAs sit
   absolutely positioned over the bottom of the hero. The shade
   pseudo-element fades the bottom of the poster into black so it
   merges visually into the carousel strip below. */
.mm-marketing .mmh-app-hero {
  position: relative;
  margin: 4px 8px 0;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 0;
  background: #111;
  isolation: isolate;
}
.mm-marketing .mmh-app-hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: mmh-art-in 480ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes mmh-art-in {
  from { opacity: 0; transform: scale(1.04); }
  to   { opacity: 1; transform: scale(1); }
}
.mm-marketing .mmh-app-hero-shade {
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
    transparent 0%,
    transparent 50%,
    rgba(0,0,0,0.40) 70%,
    rgba(5,5,7,0.92) 90%,
    #050507 100%);
  pointer-events: none;
}
.mm-marketing .mmh-app-back,
.mm-marketing .mmh-app-share {
  position: absolute;
  top: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  border: 0;
  cursor: pointer;
  z-index: 2;
}
.mm-marketing .mmh-app-back { left: 10px; }
.mm-marketing .mmh-app-share { right: 10px; }
.mm-marketing .mmh-app-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding-left: 4px;
  z-index: 2;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.5);
}
.mm-marketing .mmh-app-play:hover { background: rgba(0, 0, 0, 0.7); }

/* App: CTAs — pinned over the bottom of the hero poster. */
.mm-marketing .mmh-app-ctas {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 22px;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mm-marketing .mmh-app-cta {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0;
  border-radius: 999px;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
}
.mm-marketing .mmh-app-cta svg { flex: 0 0 auto; }
.mm-marketing .mmh-app-cta:hover { background: rgba(255, 255, 255, 0.10); }

/* App: in-phone sliding carousel — every poster lives in a long flex
   track; we translate the track on idx change so the active poster
   slides into the center of the 3-thumb-wide window. Edge fades hint
   that more posters live offstage. */
.mm-marketing .mmh-app-carousel {
  position: relative;
  margin: 6px 12px 4px;
  padding: 6px 0;
  height: 109px;
  overflow: hidden;
  flex: 0 0 auto;
}
.mm-marketing .mmh-app-carousel::before,
.mm-marketing .mmh-app-carousel::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 14px;
  z-index: 2;
  pointer-events: none;
}
.mm-marketing .mmh-app-carousel::before {
  left: 0;
  background: linear-gradient(90deg, #050507 0%, transparent 100%);
}
.mm-marketing .mmh-app-carousel::after {
  right: 0;
  background: linear-gradient(90deg, transparent 0%, #050507 100%);
}
.mm-marketing .mmh-app-carousel-track {
  display: flex;
  gap: 8px;
  height: 100%;
  align-items: center;
  transition: transform 460ms cubic-bezier(0.4, 0.0, 0.2, 1);
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}
.mm-marketing .mmh-app-thumb {
  flex: 0 0 70px;
  height: 100px;
  border-radius: 6px;
  overflow: hidden;
  background: #1a1a22;
  position: relative;
  opacity: 0.55;
  transform: scale(0.93);
  transition: opacity 320ms ease, transform 320ms ease, box-shadow 320ms ease;
}
.mm-marketing .mmh-app-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.95) saturate(0.95);
}
.mm-marketing .mmh-app-thumb.is-center {
  opacity: 1;
  transform: scale(1.04);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
}
.mm-marketing .mmh-app-thumb.is-center img {
  filter: brightness(1.06) saturate(1.05);
}

/* App: brand row — sits directly above the URL bar. */
.mm-marketing .mmh-app-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0 8px;
  flex: 0 0 auto;
}
.mm-marketing .mmh-app-brand-logo {
  display: block;
  height: 18px;
  width: auto;
  filter: drop-shadow(0 1px 6px rgba(226, 192, 107, 0.25));
}

/* App: browser url bar */
.mm-marketing .mmh-app-urlbar {
  margin-top: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 10px;
  background: linear-gradient(180deg, #161522, #0d0c14);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.mm-marketing .mmh-app-urlbar-back {
  width: 18px; height: 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  line-height: 1;
}
.mm-marketing .mmh-app-urlbar-url {
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.78);
  font-size: 9.5px;
  border-radius: 999px;
  padding: 5px 10px;
  text-align: center;
  font-family: var(--mm-font-mono, monospace);
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mm-marketing .mmh-app-urlbar-more {
  width: 22px; height: 18px;
  border-radius: 6px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.85);
  font-size: 11px;
  letter-spacing: 0.05em;
}

/* ---------- Background scroll --------------------------------------
   A single very-faded row of posters that fills most of the hero,
   scrolling left-to-right behind everything (z=1, between hero-bg
   and hero-grid). Mask-image fades the top + bottom so the row
   blends into the dark backdrop instead of reading as a strip. */

.mm-marketing .mmh-bgscroll {
  position: absolute;
  top: clamp(120px, 14vw, 180px);
  bottom: 40px;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.18;
  filter: blur(2px) saturate(0.7);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 78%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 78%, transparent 100%);
}
.mm-marketing .mmh-bgscroll-strip {
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  display: flex;
  width: max-content;
  animation: mmh-bgscroll 90s linear infinite;
  will-change: transform;
}
@keyframes mmh-bgscroll {
  from { transform: translate3d(-50%, 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}
.mm-marketing .mmh-bgscroll-track {
  display: flex;
  flex: 0 0 auto;
  gap: 14px;
  padding-right: 14px;
  margin: 0;
  list-style: none;
  align-items: center;
}
.mm-marketing .mmh-bgscroll-poster {
  flex: 0 0 auto;
  width: clamp(180px, 16vw, 240px);
  height: clamp(270px, 24vw, 360px);
  border-radius: 6px;
  overflow: hidden;
}
.mm-marketing .mmh-bgscroll-poster img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Black panel wrapping copy + phone -----------------------
   Panel holds both columns; phone sits next to the copy with a tight
   gap so the box stays compact. */
.mm-marketing .mmh-hero-panel {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  background: rgba(8, 7, 12, 0.60);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 48px);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.mm-marketing .mmh-hero-panel .mmh-hero-grid {
  padding: 0;
  margin: 0;
  max-width: none;
  gap: 24px;
}
@media (max-width: 1023px) {
  .mm-marketing .mmh-hero-panel {
    padding: 24px 20px;
    border-radius: 16px;
  }
  .mm-marketing .mmh-hero-panel .mmh-hero-grid {
    gap: 32px;
  }
}

/* @bp <md — enforce the 24px mobile outer gutter rule. The base hero
   grid + panel both ship 20px horizontal padding under 600/1023px;
   bump both to 24px for site-wide consistency on phones. */
@media (max-width: 767.98px) {
  .mm-marketing .mmh-hero-grid {
    padding-left: 24px;
    padding-right: 24px;
  }
  .mm-marketing .mmh-hero-panel {
    padding-left: 24px;
    padding-right: 24px;
  }
}
/* @bp tablet — 48px gutters. */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .mm-marketing .mmh-hero-grid {
    padding-left: 48px;
    padding-right: 48px;
  }
  .mm-marketing .mmh-hero-panel {
    padding-left: 48px;
    padding-right: 48px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .mm-marketing .mmh-hero-aura,
  .mm-marketing .mmh-hero-grain,
  .mm-marketing .mmh-stage-strip,
  .mm-marketing .mmh-stage-spot,
  .mm-marketing .mmh-hero-now-dot {
    animation: none !important;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 1023px) {
  .mm-marketing .mmh-hero-stage { padding-top: 4px; }
  .mm-marketing .mmh-phone {
    width: clamp(220px, 60vw, 280px);
    transform: rotateY(0) rotateX(0);
  }
  .mm-marketing .mmh-stage {
    margin-top: clamp(48px, 8vw, 80px);
    height: 300px;
  }
  .mm-marketing .mmh-stage-strip { top: 44px; }
}
@media (max-width: 600px) {
  .mm-marketing .mmh-hero { padding-top: 48px; }
  .mm-marketing .mmh-stage { height: 240px; }
  .mm-marketing .mmh-stage-strip { top: 32px; }
  .mm-marketing .mmh-stage-poster {
    width: 110px;
    height: 165px;
  }
}
