/* ═══════════════════════════════════════════════════════════════════
   AD COLLAB — HOMEPAGE "THE MACHINE" (v3)
   Namespace: mx-  ·  Requires machine.css (tokens, fonts, nav, footer,
   shared primitives) loaded first. This file owns only the homepage
   acts: sim hero, funnel, lab, flip, how, CTA, overlays, x-ray.
   Fail-open doctrine: animation start-states ONLY under .mx-js scopes,
   all neutralized under prefers-reduced-motion.
   ═══════════════════════════════════════════════════════════════════ */

/* ─────────────────────────── HOME-ONLY TOKENS ─────────────────────────── */
:root {
  /* Google SERP verisimilitude (the light screen) */
  --g-link: #1a0dab;
  --g-text: #202124;
  --g-sub: #4d5156;
  --g-url: #202124;
}

/* ─────────────────────────── BASE ─────────────────────────── */
body.mx {
  margin: 0;
  font-family: var(--mx-font);
  color: var(--mx-on-dark);
  background: var(--mx-navy-950);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.mx ::selection { background: var(--mx-cyan); color: var(--mx-navy-950); }
.mx *, .mx *::before, .mx *::after { box-sizing: border-box; }
.mx img, .mx svg { display: block; max-width: 100%; }
.mx a { color: inherit; text-decoration: none; }
.mx h1, .mx h2, .mx h3, .mx h4, .mx p, .mx ul, .mx ol, .mx figure { margin: 0; }
.mx ul, .mx ol { padding: 0; list-style: none; }

.mx :focus-visible { outline: 3px solid var(--mx-cyan); outline-offset: 2px; border-radius: 4px; }
.mx-lab :focus-visible, .mx-flip :focus-visible, .mx-how :focus-visible { outline-color: var(--mx-blue); }

/* type — dark-vs-light section overrides on the machine.css base */
.mx-lab .mx-h2, .mx-flip .mx-h2, .mx-how .mx-h2 { color: var(--mx-ink); }
.mx-lab .mx-sub, .mx-flip .mx-sub, .mx-how .mx-sub { color: var(--mx-ink-2); }

/* text link (home-only) */
.mx a.mx-textlink { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--mx-blue); margin-top: 14px; }
.mx a.mx-textlink svg { width: 15px; height: 15px; transition: transform 0.25s var(--mx-ease); }
.mx a.mx-textlink:hover svg { transform: translateX(3px); }

/* ─────────────────────────── NAV (moved to machine.css) ─────────────────────────── */
/* ─────────────────────────── ACT 1 · HERO / SIM ─────────────────────────── */
.mx-hero {
  position: relative; overflow: hidden;
  padding: clamp(104px, 13vh, 148px) 0 clamp(56px, 7vw, 88px);
  background:
    radial-gradient(110% 70% at 78% -12%, rgba(0, 212, 255, 0.13) 0%, transparent 48%),
    radial-gradient(80% 60% at -10% 22%, rgba(10, 108, 255, 0.12) 0%, transparent 52%),
    linear-gradient(172deg, var(--mx-navy-900) 0%, var(--mx-navy-950) 58%, var(--mx-black) 100%);
}
.mx-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background-image:
    linear-gradient(rgba(127,230,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127,230,255,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(110% 80% at 60% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(110% 80% at 60% 0%, #000 0%, transparent 75%);
}
.mx-hero > .mx-wrap { position: relative; z-index: 1; }

.mx-hero-head { max-width: 860px; }
.mx-hero-flag {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px; border-radius: 100px; margin-bottom: 22px;
  background: rgba(127,230,255,0.08); border: 1px solid rgba(127,230,255,0.2);
  font-size: 13px; font-weight: 600; color: var(--mx-cyan-soft);
}
.mx-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mx-cyan); box-shadow: 0 0 0 0 rgba(0,212,255,0.7); animation: mx-pulse 2.4s infinite; }
@keyframes mx-pulse {
  0% { box-shadow: 0 0 0 0 rgba(0,212,255,0.55); }
  70% { box-shadow: 0 0 0 9px rgba(0,212,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,212,255,0); }
}
.mx-hero h1 {
  font-size: clamp(38px, 5.4vw, 68px); font-weight: 800; line-height: 1.03;
  letter-spacing: -0.035em; color: #fff; margin-bottom: 18px; text-wrap: balance;
}
.mx-hero h1 em { font-style: normal; color: var(--mx-cyan); }
.mx-hero-sub { font-size: clamp(16px, 1.3vw, 19px); color: var(--mx-on-dark-2); max-width: 58ch; margin-bottom: 28px; }
.mx-hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }

/* hero entrance (fail-open) */
.mx-js .mx-hero-flag, .mx-js .mx-hero h1, .mx-js .mx-hero-sub, .mx-js .mx-hero-actions {
  opacity: 0; transform: translateY(16px); animation: mx-rise 0.9s var(--mx-ease) forwards;
}
.mx-js .mx-hero h1 { animation-delay: 0.07s; }
.mx-js .mx-hero-sub { animation-delay: 0.15s; }
.mx-js .mx-hero-actions { animation-delay: 0.22s; }
.mx-js .mx-picker { opacity: 0; animation: mx-rise 0.9s var(--mx-ease) 0.3s forwards; }
.mx-js .mx-stage-wrap { opacity: 0; transform: translateY(26px) scale(0.99); animation: mx-rise 1s var(--mx-ease) 0.34s forwards; }
@keyframes mx-rise { to { opacity: 1; transform: none; } }

/* picker */
.mx-picker { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px 14px; margin: 34px 0 18px; }
.mx-picker-label { font-size: 13px; font-weight: 700; color: var(--mx-on-dark-3); text-transform: uppercase; letter-spacing: 0.06em; }
.mx-picker-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.mx-pill {
  padding: 8px 15px; border-radius: 100px; cursor: pointer;
  background: rgba(255,255,255,0.045); border: 1px solid rgba(255,255,255,0.14);
  color: var(--mx-on-dark-2); font-family: inherit; font-size: 13.5px; font-weight: 600;
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s var(--mx-ease);
}
.mx-pill:hover { color: #fff; border-color: rgba(127,230,255,0.45); transform: translateY(-1px); }
.mx-pill.active { background: var(--mx-cyan); border-color: var(--mx-cyan); color: var(--mx-navy-950); font-weight: 700; }
@media (max-width: 640px) {
  .mx-picker-pills { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; margin-inline: calc(var(--mx-gutter) * -1); padding-inline: var(--mx-gutter); }
  .mx-picker-pills::-webkit-scrollbar { display: none; }
  .mx-pill { white-space: nowrap; flex-shrink: 0; }
}

/* THE STAGE — light browser glowing in the dark */
.mx-stage-wrap { position: relative; }
.mx-stage {
  position: relative;
  border-radius: 18px;
  background: var(--mx-surface);
  box-shadow:
    0 0 0 1px rgba(127,230,255,0.14),
    0 30px 90px -20px rgba(0, 0, 0, 0.75),
    0 0 120px -30px rgba(0, 212, 255, 0.35);
  overflow: hidden;
  aspect-ratio: 16 / 8.4;
  min-height: 430px;
}
@media (max-width: 760px) { .mx-stage { aspect-ratio: auto; min-height: 0; } }

.mx-browser-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 16px;
  background: #EDF1F5; border-bottom: 1px solid #DFE5EB;
}
.mx-bdots { display: flex; gap: 6px; }
.mx-bdots i { width: 11px; height: 11px; border-radius: 50%; background: #D5DCE3; }
.mx-bdots i:nth-child(1) { background: #FF5F57; }
.mx-bdots i:nth-child(2) { background: #FEBC2E; }
.mx-bdots i:nth-child(3) { background: #28C840; }
.mx-burl {
  flex: 1; max-width: 340px; display: flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid #DFE5EB; border-radius: 100px;
  padding: 6px 14px; font-size: 12.5px; color: var(--g-sub); font-weight: 500;
}
.mx-burl svg { width: 12px; height: 12px; stroke: #9AA6B2; }
.mx-sim-pause {
  margin-left: auto; width: 32px; height: 32px; border-radius: 8px; cursor: pointer;
  border: 1px solid #DFE5EB; background: #fff; color: var(--mx-ink-2);
  display: grid; place-items: center; transition: background 0.2s, color 0.2s;
}
.mx-sim-pause:hover { background: var(--mx-surface-2); color: var(--mx-ink); }
.mx-sim-pause svg { width: 14px; height: 14px; fill: currentColor; }
.mx-sim-pause .i-play { display: none; }
.mx-sim-pause[aria-pressed="true"] .i-pause { display: none; }
.mx-sim-pause[aria-pressed="true"] .i-play { display: block; }

/* SERP */
.mx-serp { padding: clamp(16px, 2.6vw, 28px) clamp(16px, 3.2vw, 34px) clamp(18px, 2.6vw, 28px); color: var(--g-text); }
.mx-search {
  display: flex; align-items: center; gap: 11px;
  border: 1px solid #DFE3E8; border-radius: 100px;
  padding: 11px 18px; max-width: 560px;
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.1);
  font-size: 15.5px; color: var(--g-text);
}
.mx-search svg { width: 17px; height: 17px; stroke: #9AA0A6; flex-shrink: 0; }
.mx-query { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-caret { width: 2px; height: 18px; background: var(--mx-blue); margin-left: 1px; flex-shrink: 0; }
.mx-js .mx-caret { animation: mx-blink 1.05s steps(1) infinite; }
@keyframes mx-blink { 50% { opacity: 0; } }

/* the ad — authentic Google styling */
.mx-ad {
  position: relative;
  margin: clamp(14px, 2vw, 22px) 0 0;
  padding: 14px 16px 15px;
  max-width: 640px;
  border-radius: 12px;
  border: 1px solid transparent;
}
.mx-js .mx-ad.is-won, .mx-ad { border-color: rgba(0, 212, 255, 0.0); }
.mx-ad.is-won {
  border-color: rgba(0, 168, 210, 0.35);
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.05), rgba(0, 212, 255, 0.015));
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.06);
}
.mx-ad-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.mx-ad-badge { font-size: 12px; font-weight: 700; color: var(--g-text); }
.mx-ad-display { font-size: 13px; color: var(--g-url); }
.mx-ad-title { display: block; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.3; color: var(--g-link); margin: 2px 0 4px; cursor: pointer; }
.mx-ad-title:hover { text-decoration: underline; }
.mx-ad-desc { font-size: 13.5px; line-height: 1.55; color: var(--g-sub); max-width: 60ch; }
.mx-ad-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 9px; }
.mx-ad-sitelink { font-size: 13.5px; color: var(--g-link); cursor: pointer; }
.mx-ad-sitelink:hover { text-decoration: underline; }
.mx-ad-call {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 11px;
  padding: 7px 14px; border-radius: 100px;
  border: 1px solid #D2E3FC; background: #F3F8FE;
  font-size: 13.5px; font-weight: 600; color: #1967D2;
}
.mx-ad-call svg { width: 13px; height: 13px; fill: #1967D2; }

/* organic skeletons */
.mx-organic { margin-top: clamp(14px, 2vw, 20px); display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.mx-org { display: flex; flex-direction: column; gap: 6px; }
.mx-org i { display: block; height: 9px; border-radius: 4px; background: #E8ECF1; }
.mx-org i:first-child { height: 7px; background: #EEF1F5; }
.mx-org .w40 { width: 40%; } .mx-org .w35 { width: 35%; } .mx-org .w45 { width: 45%; }
.mx-org .w90 { width: 90%; } .mx-org .w85 { width: 85%; }
.mx-org .w70 { width: 70%; } .mx-org .w65 { width: 65%; } .mx-org .w60 { width: 60%; }
.mx-org--map { flex-direction: row; align-items: center; gap: 12px; }
.mx-org--map > div { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.mx-map-pin {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  background: #E7F0E9; position: relative;
}
.mx-map-pin::after {
  content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -58%);
  width: 10px; height: 10px; border-radius: 50% 50% 50% 0; background: #EA4335; rotate: -45deg;
}
@media (max-width: 760px) { .mx-organic .mx-org:nth-child(2) { display: none; } }

/* fake cursor */
.mx-cursor {
  position: absolute; z-index: 3; width: 22px; height: 22px;
  left: 58%; top: 46%;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35));
  transition: left 0.9s var(--mx-ease), top 0.9s var(--mx-ease), transform 0.15s;
  pointer-events: none;
  opacity: 0;
}
.mx-cursor.is-on { opacity: 1; }
.mx-cursor.is-down { transform: scale(0.82); }
.mx-cursor svg { fill: #111; stroke: #fff; stroke-width: 1.4; }

/* CPC chip */
.mx-cpc {
  position: absolute; z-index: 3; left: 56%; top: 42%;
  padding: 5px 11px; border-radius: 100px;
  background: var(--mx-navy-900); color: var(--mx-cyan);
  font-family: var(--mx-mono); font-size: 13px; font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  opacity: 0; pointer-events: none;
}
.mx-js .mx-cpc.is-fly { animation: mx-cpc-fly 1.1s var(--mx-ease) forwards; }
@keyframes mx-cpc-fly {
  0% { opacity: 0; transform: translateY(4px) scale(0.9); }
  18% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-46px) scale(1.02); }
}

/* phone toast */
.mx-phone {
  position: absolute; z-index: 3; right: clamp(12px, 2.4vw, 26px); bottom: clamp(12px, 2.4vw, 26px);
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--mx-line); border-radius: 14px;
  padding: 11px 16px 11px 12px;
  box-shadow: 0 24px 60px -12px rgba(8, 19, 31, 0.4);
  opacity: 0; transform: translateY(14px) scale(0.97);
  transition: opacity 0.45s var(--mx-ease), transform 0.45s var(--mx-ease);
}
.mx-phone.is-on { opacity: 1; transform: none; }
.mx-phone-ring {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: #E9F9EF; display: grid; place-items: center;
}
.mx-phone-ring svg { width: 17px; height: 17px; fill: #16A34A; }
.mx-js .mx-phone.is-ringing .mx-phone-ring { animation: mx-ring 0.55s ease-in-out 3; }
@keyframes mx-ring {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-11deg); }
  75% { transform: rotate(11deg); }
}
.mx-phone-body { display: flex; flex-direction: column; line-height: 1.32; }
.mx-phone-body b { font-size: 14px; color: var(--mx-ink); }
.mx-phone-body em { font-style: normal; font-size: 12.5px; color: var(--mx-ink-3); }
.mx-phone-src {
  margin-left: 6px; padding: 4px 10px; border-radius: 100px;
  background: #F3F8FE; border: 1px solid #D2E3FC;
  font-size: 11px; font-weight: 700; color: #1967D2; white-space: nowrap;
}
@media (max-width: 560px) { .mx-phone-src { display: none; } }

/* ticker */
.mx-ticker {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; margin-top: 18px;
  background: var(--mx-dark-line);
  border: 1px solid var(--mx-dark-line); border-radius: 14px;
  overflow: hidden;
}
@media (max-width: 860px) { .mx-ticker { grid-template-columns: 1fr 1fr; } }
.mx-tick {
  display: flex; flex-direction: column; gap: 3px;
  padding: 15px 18px 14px;
  background: color-mix(in srgb, var(--mx-navy-900) 88%, transparent);
}
.mx-tick-l { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--mx-on-dark-3); }
.mx-tick-v { font-family: var(--mx-mono); font-size: clamp(20px, 2vw, 26px); font-weight: 500; color: #fff; line-height: 1.15; font-variant-numeric: tabular-nums; }
.mx-tick-m { font-size: 12px; color: var(--mx-on-dark-3); line-height: 1.4; }
.mx a.mx-tick--cta { transition: background 0.2s; }
.mx a.mx-tick--cta:hover { background: color-mix(in srgb, var(--mx-navy-800) 92%, transparent); }
.mx-tick-v--link { display: inline-flex; align-items: center; gap: 7px; color: var(--mx-cyan); font-family: var(--mx-font); font-weight: 700; font-size: clamp(16px, 1.6vw, 19px); }
.mx-tick-v--link svg { width: 15px; height: 15px; }
.mx-stage-foot { margin-top: 14px; font-size: 12.5px; color: var(--mx-on-dark-3); }
.mx-stage-foot a { color: var(--mx-on-dark-2); text-decoration: underline; text-underline-offset: 2px; }
.mx-stage-foot a:hover { color: #fff; }

/* sim runtime states (JS-only; SSR default is the settled final frame) */
.mx-sim-part { transition: opacity 0.45s var(--mx-ease), transform 0.45s var(--mx-ease); }
.mx-js .mx-stage.is-prep .mx-sim-part { opacity: 0; transform: translateY(7px); }
.mx-js .mx-stage.is-prep .mx-sim-part.is-in { opacity: 1; transform: none; }
.mx-js .mx-stage.is-prep .mx-phone { transition: none; }
.mx-js .mx-stage.is-prep .mx-phone.is-on { transition: opacity 0.45s var(--mx-ease), transform 0.45s var(--mx-ease); }

/* ─────────────────────────── ACT 2 · FUNNEL ─────────────────────────── */
.mx-funnel {
  position: relative;
  background:
    radial-gradient(70% 50% at 85% 8%, rgba(10,108,255,0.1) 0%, transparent 55%),
    var(--mx-black);
  padding: clamp(72px, 9vw, 110px) 0 clamp(40px, 5vw, 72px);
}
.mx-funnel-head { margin-bottom: clamp(40px, 5vw, 64px); max-width: 760px; }

.mx-funnel-track { position: relative; }
.mx-funnel-stage { display: flex; flex-direction: column; gap: clamp(48px, 7vw, 96px); }

/* scene: viz + copy side by side */
.mx-scene {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px); align-items: center;
  max-width: var(--mx-wrap); margin: 0 auto; padding-inline: var(--mx-gutter);
}
@media (max-width: 760px) { .mx-scene { grid-template-columns: 1fr; gap: 20px; } }
.mx-scene-viz { order: 1; }
.mx-scene-copy { order: 2; }
.mx-scene:nth-child(even) .mx-scene-viz { order: 2; }
.mx-scene:nth-child(even) .mx-scene-copy { order: 1; }
@media (max-width: 760px) {
  .mx-scene:nth-child(even) .mx-scene-viz { order: 1; }
  .mx-scene:nth-child(even) .mx-scene-copy { order: 2; }
}

.mx-scene-step { display: block; font-family: var(--mx-mono); font-size: 12px; color: var(--mx-cyan); margin-bottom: 10px; }
.mx-scene-copy h3 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; color: #fff; margin-bottom: 12px; text-wrap: balance; }
.mx-scene-copy p { font-size: 16px; line-height: 1.65; color: var(--mx-on-dark-2); max-width: 52ch; }

/* progress rail (pinned mode only) */
.mx-rail { display: none; }

/* pinned mode (added by funnel.js on ≥768px, motion OK) */
.mx-funnel--pinned .mx-funnel-track { height: calc(6 * 105vh); }
.mx-funnel--pinned .mx-funnel-stage {
  position: sticky; top: 0; height: 100svh;
  display: block; overflow: hidden;
}
.mx-funnel--pinned .mx-scene {
  position: absolute; inset: 0;
  height: 100%; align-content: center;
  opacity: 0; visibility: hidden; transform: translateY(26px);
  transition: opacity 0.55s var(--mx-ease), transform 0.55s var(--mx-ease), visibility 0.55s;
}
.mx-funnel--pinned .mx-scene.is-active { opacity: 1; visibility: visible; transform: none; }
.mx-funnel--pinned .mx-rail {
  display: block; position: absolute; z-index: 2;
  left: clamp(10px, 2vw, 22px); top: 14%; bottom: 14%; width: 4px;
}
.mx-rail-svg { width: 4px; height: 100%; }
.mx-rail-svg path { stroke: rgba(127,230,255,0.16); stroke-width: 4; fill: none; }
.mx-rail-dot {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%);
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--mx-cyan); box-shadow: 0 0 16px rgba(0,212,255,0.8);
}

/* scene 1 viz */
.mx-fs-search {
  display: flex; align-items: center; gap: 12px;
  background: #fff; color: var(--g-text);
  border-radius: 100px; padding: 15px 22px;
  font-size: clamp(15px, 1.5vw, 18px); font-weight: 500;
  box-shadow: 0 20px 60px -18px rgba(0,0,0,0.6), 0 0 60px -20px rgba(0,212,255,0.4);
  max-width: 480px;
}
.mx-fs-search svg { width: 18px; height: 18px; stroke: #9AA0A6; flex-shrink: 0; }
.mx-fs-intent { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.mx-chip {
  padding: 6px 13px; border-radius: 100px; font-size: 12.5px; font-weight: 600;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); color: var(--mx-on-dark-2);
}
.mx-chip--hot { background: rgba(0,212,255,0.12); border-color: rgba(0,212,255,0.4); color: var(--mx-cyan); }

/* scene 2 viz — auction */
.mx-auction { display: flex; flex-direction: column; gap: 10px; max-width: 480px; }
.mx-bid {
  display: grid; grid-template-columns: 82px 1fr auto; align-items: center; gap: 12px;
  padding: 13px 16px; border-radius: 12px;
  background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.09);
}
.mx-bid-name { font-size: 13px; font-weight: 700; color: var(--mx-on-dark-2); }
.mx-bid-math { font-family: var(--mx-mono); font-size: 13.5px; color: var(--mx-on-dark); }
.mx-bid-math i { font-style: normal; font-family: var(--mx-font); font-size: 10.5px; color: var(--mx-on-dark-3); text-transform: uppercase; letter-spacing: 0.04em; margin: 0 6px 0 2px; }
.mx-bid-rank { font-family: var(--mx-mono); font-size: 12.5px; color: var(--mx-on-dark-3); white-space: nowrap; }
.mx-bid--win { background: rgba(0,212,255,0.09); border-color: rgba(0,212,255,0.45); box-shadow: 0 0 30px -8px rgba(0,212,255,0.4); }
.mx-bid--win .mx-bid-name { color: var(--mx-cyan); }
.mx-bid--win .mx-bid-rank { color: var(--mx-cyan); font-weight: 500; }
@media (max-width: 420px) { .mx-bid { grid-template-columns: 64px 1fr; } .mx-bid-rank { grid-column: 2; } }

/* scene 3 viz — budget */
.mx-budget { max-width: 440px; background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.09); border-radius: 14px; padding: 20px; position: relative; }
.mx-budget-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; color: var(--mx-on-dark-2); margin-bottom: 12px; }
.mx-budget-v { font-family: var(--mx-mono); font-size: 24px; color: #fff; font-variant-numeric: tabular-nums; }
.mx-budget-bar { height: 10px; border-radius: 6px; background: rgba(255,255,255,0.07); overflow: hidden; }
.mx-budget-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--mx-navy-600), var(--mx-cyan)); transition: width 0.8s var(--mx-ease); }
.mx-budget-charge {
  position: absolute; right: 18px; top: -13px;
  padding: 5px 12px; border-radius: 100px;
  background: var(--mx-cyan); color: var(--mx-navy-950);
  font-family: var(--mx-mono); font-size: 12.5px; font-weight: 500;
  box-shadow: 0 8px 22px rgba(0,170,210,0.45);
}

/* scene 4 viz — landing */
.mx-landing {
  position: relative; max-width: 420px;
  background: #fff; color: var(--mx-ink); border-radius: 16px;
  padding: 26px 24px; box-shadow: 0 24px 70px -18px rgba(0,0,0,0.65), 0 0 60px -24px rgba(0,212,255,0.35);
}
.mx-landing-match {
  position: absolute; top: -12px; left: 20px;
  padding: 4px 12px; border-radius: 100px;
  background: var(--mx-green); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
}
.mx-landing-h { font-size: 17px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.3; margin-bottom: 14px; }
.mx-landing-cta {
  display: inline-block; padding: 12px 26px; border-radius: 10px;
  background: var(--mx-navy-800); color: #fff; font-weight: 700; font-size: 14px;
  margin-bottom: 16px;
}
.mx-landing-rows { display: flex; flex-direction: column; gap: 7px; }
.mx-landing-rows i { display: block; height: 9px; border-radius: 4px; background: var(--mx-surface-2); }
.mx-landing-rows .w80 { width: 80%; } .mx-landing-rows .w60 { width: 60%; }

/* scene 5 viz — call */
.mx-callviz {
  display: flex; align-items: center; gap: 16px; max-width: 440px;
  background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px; padding: 20px 22px;
}
.mx-callviz-ring { width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; background: rgba(34,197,94,0.14); display: grid; place-items: center; }
.mx-callviz-ring svg { width: 22px; height: 22px; fill: var(--mx-green); }
.mx-js .mx-scene.is-active .mx-callviz-ring, .mx-js .mx-funnel:not(.mx-funnel--pinned) .mx-callviz-ring { animation: mx-ring 0.55s ease-in-out 3; }
.mx-callviz-meta { display: flex; flex-direction: column; gap: 2px; }
.mx-callviz-meta b { font-size: 16px; color: #fff; }
.mx-callviz-meta em { font-style: normal; font-family: var(--mx-mono); font-size: 12.5px; color: var(--mx-on-dark-3); }

/* scene 6 viz — tally */
.mx-tally { max-width: 420px; border: 1px solid rgba(255,255,255,0.09); border-radius: 16px; overflow: hidden; }
.mx-tally-row { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background: rgba(255,255,255,0.03); border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 14px; color: var(--mx-on-dark-2); }
.mx-tally-row b { font-family: var(--mx-mono); font-size: 20px; color: #fff; }
.mx-tally-row--rev b { color: var(--mx-green); }
.mx-tally-net { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: rgba(0,212,255,0.08); font-size: 14px; font-weight: 700; color: var(--mx-cyan-soft); }
.mx-tally-net b { font-family: var(--mx-mono); font-size: 22px; color: var(--mx-cyan); }

/* ─────────────────────────── ACT 3 · CREATIVE LAB ─────────────────────────── */
.mx-lab { background: var(--mx-paper); color: var(--mx-ink); padding: clamp(72px, 9vw, 110px) 0; }
.mx-lab-head { max-width: 760px; margin-bottom: clamp(36px, 4.5vw, 56px); }
.mx-lab-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.mx-exhibit {
  background: var(--mx-surface); border: 1px solid var(--mx-line); border-radius: 18px;
  padding: 26px 24px; display: flex; flex-direction: column; gap: 18px;
  transition: transform 0.3s var(--mx-ease), box-shadow 0.3s;
}
.mx-exhibit:hover { transform: translateY(-4px); box-shadow: 0 26px 60px -28px rgba(11,27,43,0.35); }
.mx-exhibit-tag { display: inline-block; font-family: var(--mx-mono); font-size: 11.5px; color: var(--mx-navy-600); margin-bottom: 9px; }
.mx-exhibit-h h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.015em; color: var(--mx-ink); }
.mx-rsa-desc { font-size: 14px; line-height: 1.6; color: var(--mx-ink-2); margin-top: 14px; }

/* RSA mixer */
.mx-rsa-slot {
  border: 1px dashed var(--mx-line-2); border-radius: 10px;
  padding: 11px 14px; margin-bottom: 8px;
  background: var(--mx-paper);
  overflow: hidden;
}
.mx-rsa-line { display: block; font-size: 14.5px; font-weight: 700; color: var(--g-link); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-js .mx-rsa-line.is-swap { animation: mx-slot 0.5s var(--mx-ease); }
@keyframes mx-slot {
  0% { transform: translateY(-110%); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.mx-rsa-sep { display: none; }

/* Meta card */
.mx-metacard { border: 1px solid var(--mx-line); border-radius: 14px; overflow: hidden; }
.mx-metacard-top { display: flex; align-items: center; gap: 10px; padding: 11px 14px; }
.mx-metacard-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--mx-navy-600), var(--mx-cyan)); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.mx-metacard-name { font-size: 13px; font-weight: 700; line-height: 1.25; color: var(--mx-ink); }
.mx-metacard-name em { font-style: normal; font-weight: 500; font-size: 11.5px; color: var(--mx-ink-3); }
.mx-metacard-frames { position: relative; aspect-ratio: 5 / 3.4; background: var(--mx-surface-2); }
.mx-mframe { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; transition: opacity 0.5s var(--mx-ease); }
.mx-mframe.is-on { opacity: 1; }
.mx-mframe-art { flex: 1; min-height: 0; width: 100%; object-fit: cover; display: block; background: var(--mx-surface-2); }
.mx-mframe b { padding: 11px 14px; font-size: 13.5px; color: var(--mx-ink); background: var(--mx-surface); }
.mx-metacard-dots { display: flex; gap: 5px; justify-content: center; padding: 10px; }
.mx-metacard-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--mx-line-2); transition: background 0.3s; }
.mx-metacard-dots i.on { background: var(--mx-navy-600); }
.mx-metacard .mx-rsa-desc { padding: 0 14px 14px; margin-top: 4px; }

/* Shopping feed */
.mx-feed-rows { background: var(--mx-navy-900); border-radius: 10px; padding: 12px 14px; overflow: hidden; }
.mx-feed-rows code { display: block; font-family: var(--mx-mono); font-size: 11px; line-height: 1.7; color: var(--mx-cyan-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-pla {
  margin-top: 14px; max-width: 220px;
  border: 1px solid var(--mx-line); border-radius: 12px; overflow: hidden;
  box-shadow: 0 10px 30px -14px rgba(11,27,43,0.3);
}
.mx-js .mx-pla.is-pop { animation: mx-pop 0.55s var(--mx-ease); }
@keyframes mx-pop { 0% { transform: translateY(10px) scale(0.96); opacity: 0; } 100% { transform: none; opacity: 1; } }
.mx-pla-art { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; background: var(--mx-surface-2); }
.mx-pla b { display: block; padding: 10px 12px 2px; font-size: 13px; color: var(--mx-ink); }
.mx-pla em { display: block; padding: 0 12px 12px; font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--mx-ink-2); }

/* ─────────────────────────── ACT 4 · OWNERSHIP FLIP ─────────────────────────── */
.mx-flip { background: var(--mx-surface); color: var(--mx-ink); padding: clamp(72px, 9vw, 110px) 0; border-top: 1px solid var(--mx-line); }
.mx-flip-head { max-width: 760px; }
.mx-flip-toggle {
  display: inline-flex; gap: 4px; margin: 30px 0 26px;
  background: var(--mx-surface-2); border: 1px solid var(--mx-line); border-radius: 100px; padding: 4px;
}
.mx-flip-btn {
  padding: 10px 22px; border-radius: 100px; border: 0; cursor: pointer;
  background: transparent; color: var(--mx-ink-2);
  font-family: inherit; font-size: 14px; font-weight: 700;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}
.mx-flip-btn.active { background: var(--mx-navy-800); color: #fff; box-shadow: 0 4px 14px rgba(11,27,43,0.25); }

.mx-ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .mx-ledger { grid-template-columns: 1fr; } }
.mx-ledger-col { border: 1px solid var(--mx-line); border-radius: 16px; padding: 22px; min-height: 280px; }
.mx-ledger-col h3 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.mx-ledger-col--them h3 { color: var(--mx-ink-3); }
.mx-ledger-col--you { background: linear-gradient(180deg, rgba(0,212,255,0.06), rgba(0,212,255,0.015)); border-color: rgba(0,168,210,0.35); }
.mx-ledger-col--you h3 { color: #0E8FA8; }
.mx-ledger-list { display: flex; flex-direction: column; gap: 9px; }
.mx-asset {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 10px;
  background: var(--mx-surface); border: 1px solid var(--mx-line);
  font-size: 14.5px; font-weight: 600; color: var(--mx-ink);
  box-shadow: 0 2px 8px rgba(11,27,43,0.05);
  transition: transform 0.4s var(--mx-ease), opacity 0.4s;
}
.mx-asset::before {
  content: ''; width: 8px; height: 8px; border-radius: 3px; flex-shrink: 0;
  background: var(--mx-cyan);
}
.mx-ledger[data-mode="agency"] .mx-ledger-col--them .mx-asset::before { background: var(--mx-ink-3); }
.mx-js .mx-asset.is-migrating { transform: translateX(-14px); opacity: 0; }
.mx-ledger-empty { font-size: 14px; line-height: 1.6; color: var(--mx-ink-3); max-width: 40ch; }
.mx-flip-note { margin-top: 22px; font-size: 15px; color: var(--mx-ink-2); max-width: 66ch; }

/* ─────────────────────────── ACT 6 · HOW + PROOF ─────────────────────────── */
.mx-how { background: var(--mx-paper); color: var(--mx-ink); padding: clamp(72px, 9vw, 110px) 0; }
.mx-how-head { max-width: 720px; margin-bottom: clamp(34px, 4vw, 48px); }
.mx-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
@media (max-width: 860px) { .mx-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .mx-steps { grid-template-columns: 1fr; } }
.mx-step { position: relative; padding: 22px 20px; background: var(--mx-surface); border: 1px solid var(--mx-line); border-radius: 14px; }
.mx-step-n {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--mx-navy-800); color: #fff; font-family: var(--mx-mono); font-size: 14px;
  margin-bottom: 12px;
}
.mx-step:last-child .mx-step-n { background: var(--mx-cyan); color: var(--mx-navy-950); }
.mx-step-when { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--mx-navy-600); margin-bottom: 6px; }
.mx-step h3 { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 6px; color: var(--mx-ink); }
.mx-step p { font-size: 13.5px; line-height: 1.55; color: var(--mx-ink-2); }

.mx-proof { margin-top: clamp(36px, 5vw, 56px); }
.mx-proof .dash-frame { box-shadow: 0 30px 80px -30px rgba(11,27,43,0.4); }
.mx-proof-caption { margin-top: 12px; font-size: 13.5px; color: var(--mx-ink-3); text-align: center; }
.mx-proof-caption a { color: var(--mx-ink-2); text-decoration: underline; text-underline-offset: 2px; }

/* ─────────────────────────── CTA ─────────────────────────── */
.mx-cta {
  position: relative; overflow: hidden; text-align: center;
  background:
    radial-gradient(80% 130% at 50% 0%, rgba(0,212,255,0.15) 0%, transparent 55%),
    linear-gradient(180deg, var(--mx-navy-800), var(--mx-navy-950));
  color: #fff; padding: clamp(64px, 9vw, 104px) 0;
}
.mx-cta h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; letter-spacing: -0.03em; margin: 0 auto 14px; max-width: 20ch; text-wrap: balance; }
.mx-cta > .mx-wrap > p { font-size: 17.5px; color: var(--mx-on-dark-2); margin: 0 auto 32px; max-width: 54ch; }
.mx-cta-actions { display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; }


/* ─────────────────────────── OVERLAYS / CHROME ─────────────────────────── */
.mx-sticky-cta { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: var(--z-sticky); transform: translateY(140%); transition: transform 0.4s var(--mx-ease); display: none; }
.mx-sticky-cta a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px; border-radius: 12px;
  background: var(--mx-cyan); color: var(--mx-navy-950); font-weight: 800;
  box-shadow: 0 14px 36px rgba(0,140,180,0.5);
}
.mx-sticky-cta a svg { width: 16px; height: 16px; }
.mx-sticky-cta.visible { transform: none; }
@media (max-width: 640px) { .mx-sticky-cta { display: block; } }

.mx-top {
  position: fixed; right: 20px; bottom: 20px; z-index: var(--z-sticky);
  width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--mx-dark-line); background: var(--mx-navy-850); color: var(--mx-on-dark);
  display: grid; place-items: center;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 12px 28px rgba(0,0,0,0.4);
}
.mx-top.visible { opacity: 1; pointer-events: auto; transform: none; }
.mx-top svg { width: 20px; height: 20px; }
@media (max-width: 640px) { .mx-top { display: none; } }

/* ─────────────────────────── REDUCED MOTION ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .mx-js .mx-reveal,
  .mx-js .mx-hero-flag, .mx-js .mx-hero h1, .mx-js .mx-hero-sub,
  .mx-js .mx-hero-actions, .mx-js .mx-picker, .mx-js .mx-stage-wrap {
    opacity: 1; transform: none; animation: none;
  }
  .mx *, .mx *::before, .mx *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
