/* ForTheatresScene — v2 layout
   ---------------------------------------------------------
   Three vertical bands:
     1. STAGE band: full-bleed cinematic lobby with overlay copy
     2. LEDGER band: horizontal row of 4 receipt cards
     3. ECON band: economics rail + CTA
   --------------------------------------------------------- */

.mmx-theatres {
  position: relative;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(226, 192, 107, 0.05) 0%, transparent 60%),
    linear-gradient(180deg, #08080c 0%, #050507 60%, #04040a 100%);
  color: var(--mm-fg1, #f5f1e6);
  isolation: isolate;
  overflow: hidden;
}

/* Soft top divider so the section detaches from the previous one */
.mmx-theatres::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226, 192, 107, 0.3) 50%, transparent);
}

/* ============================================================
   BAND 1 — COPY (left) + STAGE (right)
   ============================================================ */

.mmx-theatres-hero {
  position: relative;
  padding: clamp(80px, 9vw, 130px) 0 clamp(40px, 5vw, 70px);
}

.mmx-theatres-hero-inner {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4vw, 80px);
  align-items: center;
}
@media (max-width: 720px) {
  .mmx-theatres-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* === Copy column === */
.mmx-theatres-copy {
  max-width: 56ch;
}

.mmx-eyebrow {
  display: inline-block;
  font: 600 11px/1 var(--mm-font-body, system-ui);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mm-gold);
  margin-bottom: 22px;
  padding: 6px 12px;
  border: 1px solid rgba(226, 192, 107, 0.32);
  border-radius: 999px;
  background: rgba(226, 192, 107, 0.05);
}

.mmx-theatres-headline {
  font-family: var(--mm-font-display, var(--mm-font-body, sans-serif));
  font-size: clamp(34px, 4.4vw, 60px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--mm-fg1, #f5f1e6);
  margin: 0 0 22px;
  text-wrap: balance;
}
.mmx-theatres-headline-em {
  display: block;
  background: linear-gradient(92deg, var(--mm-gold-bright, #f5dc94), var(--mm-gold, #e2c06b) 55%, var(--mm-gold-deep, #a97b1e));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}

.mmx-theatres-lead {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.6;
  color: var(--mm-fg3, rgba(245, 241, 230, 0.7));
  margin: 0 0 20px;
}

.mmx-theatres-bridge {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.55;
  color: var(--mm-fg2, #e8dfc8);
  margin: 0;
  padding-left: 18px;
  border-left: 2px solid var(--mm-gold);
}
.mmx-theatres-bridge i { color: var(--mm-gold); font-style: italic; }

/* === Stage (right) === */
.mmx-theatres-stage {
  position: relative;
  width: 100%;
}

.mmx-theatres-stage-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  min-height: 380px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: #07070a;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.9), inset 0 0 120px rgba(0,0,0,0.7);
}
@media (max-width: 980px) {
  .mmx-theatres-stage-frame { aspect-ratio: 16 / 10; min-height: 380px; }
}

.mmx-theatres-lobby {
  position: absolute;
  inset: 0;
  perspective: 1400px;
  perspective-origin: 50% 30%;
  background:
    radial-gradient(ellipse 90% 60% at 50% 14%, #3a2c1e 0%, #14100e 48%, #07070a 100%),
    #07070a;
}

/* Tiny glowing screen at the top */
.mmx-theatres-screen {
  position: absolute;
  top: 7%;
  left: 50%;
  transform: translateX(-50%);
  width: 44%;
  height: 10%;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(252, 232, 168, 0.95), rgba(232, 198, 116, 0.55));
  box-shadow:
    0 0 90px 18px rgba(232, 198, 116, 0.42),
    0 0 240px 60px rgba(232, 198, 116, 0.18);
}
.mmx-theatres-screen::after {
  content: "CREDITS";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 700 11px/1 var(--mm-font-body, system-ui);
  letter-spacing: 0.42em;
  color: rgba(10, 10, 14, 0.7);
}

/* Receding seat rows */
.mmx-theatres-seats {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%) rotateX(46deg);
  transform-style: preserve-3d;
  transform-origin: 50% 100%;
  width: 92%;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.4vw, 18px);
}
.mmx-theatres-seat-row {
  display: flex;
  justify-content: center;
  gap: clamp(5px, 0.6vw, 9px);
  transform: translateZ(calc((6 - var(--row)) * 12px));
  opacity: calc(0.55 + var(--row) * 0.08);
}
.mmx-theatres-seat {
  width: clamp(22px, 2.6vw, 38px);
  aspect-ratio: 1 / 1;
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(180deg, #2a2018 0%, #100a0a 100%);
  box-shadow:
    inset 0 0.5px 0 rgba(255, 240, 210, 0.10),
    0 1px 0 rgba(0,0,0,0.3);
}
/* A few seats with embers — the audience that just left */
.mmx-theatres-seat-row:nth-child(1) .mmx-theatres-seat:nth-child(5),
.mmx-theatres-seat-row:nth-child(2) .mmx-theatres-seat:nth-child(10),
.mmx-theatres-seat-row:nth-child(3) .mmx-theatres-seat:nth-child(3),
.mmx-theatres-seat-row:nth-child(4) .mmx-theatres-seat:nth-child(11) {
  background: linear-gradient(180deg, #4a2e15 0%, #1a0e08 100%);
  box-shadow:
    inset 0 0.5px 0 rgba(232, 198, 116, 0.32),
    0 0 8px rgba(226, 192, 107, 0.18);
}

/* Traveling exit beam */
.mmx-theatres-exit-beam {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18%;
  background: radial-gradient(ellipse at center, rgba(226, 192, 107, 0.20) 0%, transparent 70%);
  filter: blur(6px);
  animation: mmx-th-exit 16s linear infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}
@keyframes mmx-th-exit {
  0%   { left: -22%; opacity: 0; }
  20%  { opacity: 0.9; }
  80%  { opacity: 0.9; }
  100% { left: 110%; opacity: 0; }
}

/* Cost tags floating in the air */
.mmx-theatres-costs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.mmx-theatres-cost {
  position: absolute;
  font: 600 11px/1 var(--mm-font-body, system-ui);
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.32);
  animation: mmx-th-cost 14s ease-in-out infinite;
  animation-delay: calc(var(--i) * 1.4s);
  opacity: 0;
  white-space: nowrap;
}
.mmx-theatres-cost:nth-child(1) { top: 24%; left: 6%; }
.mmx-theatres-cost:nth-child(2) { top: 30%; right: 8%; }
.mmx-theatres-cost:nth-child(3) { top: 44%; left: 10%; }
.mmx-theatres-cost:nth-child(4) { top: 52%; right: 12%; }
.mmx-theatres-cost:nth-child(5) { top: 66%; left: 4%; }
.mmx-theatres-cost:nth-child(6) { top: 76%; right: 6%; color: rgba(226, 192, 107, 0.6); }
@keyframes mmx-th-cost {
  0%, 100% { opacity: 0; transform: translateY(6px); }
  15%, 75% { opacity: 1; transform: translateY(0); }
}

.mmx-theatres-grain {
  position: absolute;
  inset: -8%;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.20;
  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='3'/><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: mmx-th-grain 2.2s steps(6) infinite;
}
@keyframes mmx-th-grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -3%); }
  60%  { transform: translate(-2%, -2%); }
  80%  { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* Stage caption pinned to the frame */
.mmx-theatres-stage-caption {
  position: absolute;
  z-index: 3;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font: 500 11px/1 var(--mm-font-mono, ui-monospace, monospace);
  letter-spacing: 0.10em;
  color: rgba(245, 241, 230, 0.7);
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  background: rgba(8, 8, 12, 0.6);
  backdrop-filter: blur(6px);
}
.mmx-theatres-stage-caption-k { text-transform: uppercase; letter-spacing: 0.18em; color: rgba(245, 241, 230, 0.55); }
.mmx-theatres-stage-caption-sep { color: rgba(255,255,255,0.25); }
.mmx-theatres-stage-caption-v b { color: var(--mm-gold); font-weight: 700; }
@media (max-width: 560px) { .mmx-theatres-stage-caption { display: none; } }

/* ============================================================
   BAND 2 — LEDGER (horizontal cards)
   ============================================================ */

.mmx-theatres-ledger-band {
  position: relative;
  padding: clamp(64px, 8vw, 110px) 0 clamp(40px, 5vw, 64px);
}

.mmx-theatres-ledger-band-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px);
}

.mmx-theatres-ledger-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 36px;
}
.mmx-theatres-ledger-tag {
  font: 700 11px/1 var(--mm-font-mono, ui-monospace, monospace);
  letter-spacing: 0.32em;
  color: var(--mm-gold);
  white-space: nowrap;
}
.mmx-theatres-ledger-rule {
  flex: 0 1 120px;
  height: 1px;
  background: linear-gradient(90deg, rgba(226, 192, 107, 0.5), transparent);
}
.mmx-theatres-ledger-sub {
  font: 500 14px/1.4 var(--mm-font-body, system-ui);
  color: var(--mm-fg3, rgba(245, 241, 230, 0.55));
}

/* Horizontal card grid — 4 cols on wide, 2 on tablet, 1 on phone */
.mmx-ledger {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}
@media (max-width: 1100px) { .mmx-ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .mmx-ledger { grid-template-columns: 1fr; } }

.mmx-ledger-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 22px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.005) 100%);
  transition: transform 250ms var(--mm-ease-smooth, cubic-bezier(0.2, 0.8, 0.2, 1)),
              opacity 250ms ease,
              filter 250ms ease,
              border-color 250ms ease,
              box-shadow 250ms ease;
  outline: none;
  cursor: default;
  min-height: 360px;
}
.mmx-ledger-card[data-dim="true"] {
  opacity: 0.42;
  filter: grayscale(0.4);
}
.mmx-ledger-card[data-focused="true"] {
  transform: translateY(-3px);
  border-color: rgba(226, 192, 107, 0.5);
  box-shadow:
    0 14px 30px rgba(0,0,0,0.45),
    0 0 28px rgba(226, 192, 107, 0.14);
}
.mmx-ledger-card[data-focused="true"] .mmx-ledger-record-dot {
  background: var(--mm-gold);
  box-shadow: 0 0 8px var(--mm-gold);
}
.mmx-ledger-card[data-focused="true"] .mmx-ledger-n {
  color: var(--mm-gold);
}

.mmx-ledger-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}
.mmx-ledger-n {
  font: 800 13px/1 var(--mm-font-mono, ui-monospace, monospace);
  letter-spacing: 0.12em;
  color: var(--mm-fg4, rgba(245, 241, 230, 0.45));
  transition: color 220ms ease;
}
.mmx-ledger-card .mmx-ledger-tag {
  font: 600 10px/1 var(--mm-font-body, system-ui);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mm-gold);
  opacity: 0.85;
}
.mmx-ledger-lead {
  font-family: var(--mm-font-display, var(--mm-font-body, sans-serif));
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--mm-fg1, #f5f1e6);
  margin: 0 0 10px;
  text-wrap: balance;
}
.mmx-ledger-proof {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--mm-fg3, rgba(245, 241, 230, 0.65));
  margin: 0 0 18px;
  flex: 1 0 auto;
}

/* Receipt — sits at the bottom of each card */
.mmx-ledger-record {
  width: 100%;
  padding: 12px 14px 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(226, 192, 107, 0.05), transparent 60%),
    rgba(255, 255, 255, 0.02);
  font-family: var(--mm-font-mono, ui-monospace, monospace);
  transition: border-color 220ms ease, box-shadow 220ms ease;
  margin-top: auto;
}
.mmx-ledger-record-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 9px;
  margin-bottom: 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mmx-ledger-record-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transition: background 220ms ease, box-shadow 220ms ease;
  flex: 0 0 auto;
}
.mmx-ledger-record-kind {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mm-fg2, #e8dfc8);
  flex: 1;
  font-family: var(--mm-font-body, system-ui);
}
.mmx-ledger-record-id {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--mm-fg5, rgba(255,255,255,0.35));
}
.mmx-ledger-record-body { margin: 0; display: flex; flex-direction: column; gap: 5px; }
.mmx-ledger-record-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 8px;
  align-items: baseline;
}
.mmx-ledger-record-row dt {
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mm-fg4, rgba(245, 241, 230, 0.45));
  font-family: var(--mm-font-body, system-ui);
  font-weight: 600;
}
.mmx-ledger-record-row dd {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--mm-fg1, #f5f1e6);
  font-feature-settings: "tnum";
  text-align: right;
}
.mmx-ledger-record-row:last-child dd { color: var(--mm-gold); font-weight: 600; }

/* ============================================================
   BAND 3 — ECONOMICS + CTA
   ============================================================ */

.mmx-theatres-econ-band {
  position: relative;
  padding: clamp(40px, 5vw, 70px) 0 clamp(80px, 9vw, 130px);
}
.mmx-theatres-econ-band-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(22px, 3vw, 40px);
  align-items: stretch;
}
@media (max-width: 900px) {
  .mmx-theatres-econ-band-inner { grid-template-columns: 1fr; }
}

.mmx-theatres-econ {
  padding: 24px 26px 22px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(226, 192, 107, 0.04), transparent 60%),
    rgba(255, 255, 255, 0.015);
  position: relative;
  overflow: hidden;
}
.mmx-theatres-econ::before {
  content: "THE ECONOMICS";
  position: absolute;
  top: 12px; right: 18px;
  font: 700 9px/1 var(--mm-font-mono, ui-monospace, monospace);
  letter-spacing: 0.30em;
  color: rgba(255,255,255,0.20);
}
.mmx-theatres-econ-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 14px;
  margin-top: 18px;
}
@media (max-width: 700px) {
  .mmx-theatres-econ-rail { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
.mmx-theatres-econ-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}
.mmx-theatres-econ-k {
  font: 600 10px/1 var(--mm-font-body, system-ui);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mm-fg4, rgba(245, 241, 230, 0.45));
}
.mmx-theatres-econ-v {
  font-family: var(--mm-font-display, var(--mm-font-body));
  font-size: clamp(17px, 1.7vw, 22px);
  font-weight: 800;
  color: var(--mm-gold);
  font-feature-settings: "tnum";
  line-height: 1.18;
}
.mmx-theatres-econ-foot {
  font-size: 13px;
  line-height: 1.5;
  color: var(--mm-fg3, rgba(245, 241, 230, 0.6));
  font-style: italic;
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.mmx-theatres-cta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 8px;
}
@media (max-width: 900px) {
  .mmx-theatres-cta { justify-content: flex-start; padding: 0; }
}

/* @bp <md — enforce the 24px mobile outer gutter rule. */
@media (max-width: 767.98px) {
  .mm-marketing .mmx-theatres-hero-inner {
    padding-left: 24px;
    padding-right: 24px;
  }
}
/* @bp tablet — 48px gutters. */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .mm-marketing .mmx-theatres-hero-inner {
    padding-left: 48px;
    padding-right: 48px;
  }
}
