/* Landing + shared layouts — Artasaka asymmetric hero + Inspora discovery grid */

/* ── Asymmetric hero (Artasaka pattern) ── */
.hero {
  padding: clamp(3.5rem, 10vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: var(--space-6) var(--space-8);
  align-items: center;
}
.hero-copy {
  max-width: 36rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(200, 16, 46, 0.65);
  background: rgba(23, 23, 23, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: var(--space-3);
}
.hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mm-gold);
  box-shadow: 0 0 12px var(--mm-gold-glow);
  animation: mm-pulse 2.8s var(--ease) infinite;
}
@keyframes mm-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 700;
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-tight);
  margin: 0 0 var(--space-2);
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}
.hero .role {
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  color: var(--mm-muted);
  margin: 0 0 var(--space-3);
  max-width: 28rem;
  line-height: var(--leading-snug);
  font-weight: 400;
}
.hero .role em {
  font-style: normal;
  color: var(--mm-gold);
  font-weight: 500;
}

.profession-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 var(--space-3);
  padding: 0;
  list-style: none;
  max-width: 36rem;
}
.profession-list li {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(200, 16, 46, 0.45);
  background: rgba(17, 17, 17, 0.55);
  line-height: 1.3;
}

.employer-intro {
  max-width: 32rem;
  margin: 0 0 var(--space-4);
  padding: var(--space-3);
  color: var(--mm-muted);
  font-size: var(--text-body-sm);
  line-height: var(--leading-body);
  background: var(--mm-ivory-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--mm-glass-border);
  border-radius: var(--radius);
  border-left: 1px solid var(--mm-gold);
}
.employer-intro strong {
  color: var(--mm-ivory);
  font-weight: 600;
}

.hero .btn-row {
  margin-top: 0;
}

/* Right cinematic visual — mark + glow frame */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  isolation: isolate;
}
.hero-visual-frame {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1 / 1.05;
  border-radius: var(--radius);
  border: 1px solid var(--mm-glass-border);
  background:
    radial-gradient(ellipse at 50% 42%, rgba(200, 16, 46, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 80%, rgba(245, 245, 245, 0.05) 0%, transparent 50%),
    var(--mm-ivory-glass);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  overflow: hidden;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(245, 245, 245, 0.08);
}
.hero-visual-frame::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: calc(var(--radius) - 8px);
  border: 1px solid rgba(200, 16, 46, 0.22);
  pointer-events: none;
}
.hero-visual-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 40%, rgba(200, 16, 46, 0.06) 100%);
  pointer-events: none;
}
.hero-visual-mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}
.hero-visual-mark img {
  width: min(58%, 220px);
  height: auto;
  opacity: 0.92;
  filter: drop-shadow(0 0 40px rgba(200, 16, 46, 0.25));
}
.hero-visual-meta {
  position: absolute;
  left: var(--space-3);
  right: var(--space-3);
  bottom: var(--space-3);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mm-dim);
  z-index: 1;
}
.hero-visual-meta span:last-child {
  color: var(--mm-gold);
}


.hero-visual-frame--photo {
  padding: 0;
  overflow: hidden;
  background: #0a0a0a;
}
.hero-visual-frame--photo::before,
.hero-visual-frame--photo::after {
  display: none;
}
.hero-visual-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: inherit;
}

.hero-orbit {
  position: absolute;
  width: 72%;
  height: 72%;
  border-radius: 50%;
  border: 1px dashed rgba(200, 16, 46, 0.18);
  top: 14%;
  left: 14%;
  pointer-events: none;
  animation: mm-orbit-spin 48s linear infinite;
}
.hero-orbit-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mm-gold);
  box-shadow: 0 0 14px var(--mm-gold-glow);
  top: -4px;
  left: calc(50% - 4px);
}
@keyframes mm-orbit-spin {
  to { transform: rotate(360deg); }
}

/* ── Discovery grid (Inspora-like) ── */
.discover-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(160px, auto);
  gap: var(--space-2);
  max-width: 1100px;
}
.discover-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 200px;
  padding: var(--space-3);
  background: var(--mm-ivory-glass);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid var(--mm-glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  transition:
    border-color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    background var(--dur-fast) var(--ease-out);
}
.discover-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(200, 16, 46, 0.4) 40%,
    rgba(245, 245, 245, 0.12) 75%,
    transparent
  );
  opacity: 0.55;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.discover-card:hover {
  border-color: var(--mm-glass-border-hover);
  transform: translateY(-3px);
  background: var(--mm-ivory-glass-strong);
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(200, 16, 46, 0.16);
  color: inherit;
}
.discover-card:hover::before { opacity: 1; }

/* Varied tile emphasis — SoundX featured */
.discover-card--featured {
  grid-column: span 7;
  grid-row: span 2;
  min-height: 340px;
  padding: var(--space-4);
  border-color: rgba(200, 16, 46, 0.22);
}
.discover-card--mid {
  grid-column: span 5;
  min-height: 200px;
}
.discover-card--half {
  grid-column: span 6;
  min-height: 180px;
}
.discover-card--wide {
  grid-column: span 12;
  min-height: 168px;
  flex-direction: row;
  align-items: flex-end;
  justify-content: flex-start;
}
.discover-card--wide .discover-body {
  max-width: 48rem;
}
.discover-card--wide h3 {
  max-width: none;
}

.discover-card .tag {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mm-gold);
  margin-bottom: 8px;
}
.discover-card h3 {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.025em;
  line-height: var(--leading-snug);
  color: var(--mm-ivory);
  max-width: 22ch;
}
.discover-card--featured h3 {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  max-width: 14ch;
}
.discover-card p {
  margin: 0;
  color: var(--mm-muted);
  font-size: var(--text-body-sm);
  line-height: var(--leading-body);
  max-width: 36ch;
}
.discover-card--featured p {
  max-width: 42ch;
  font-size: var(--text-body);
}

/* Circular metadata / hover reveal */
.discover-orb {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--mm-line-strong);
  background: rgba(23, 23, 23, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mm-dim);
  text-align: center;
  line-height: 1.2;
  padding: 6px;
  transition:
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
  z-index: 2;
}
.discover-card--featured .discover-orb {
  width: 72px;
  height: 72px;
  font-size: 0.62rem;
}
.discover-card:hover .discover-orb {
  border-color: var(--mm-gold);
  color: var(--mm-gold);
  background: rgba(200, 16, 46, 0.08);
  transform: scale(1.06);
  box-shadow: 0 0 24px rgba(200, 16, 46, 0.15);
}

.discover-reveal {
  position: absolute;
  inset: auto var(--space-3) var(--space-3) var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mm-dim);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
  pointer-events: none;
  z-index: 2;
}
.discover-card:hover .discover-reveal {
  opacity: 1;
  transform: none;
  border-color: rgba(200, 16, 46, 0.28);
  background: rgba(23, 23, 23, 0.72);
  color: var(--mm-gold);
}
.discover-card .discover-body {
  position: relative;
  z-index: 1;
  padding-bottom: 36px;
  padding-left: 0;
  transition: transform var(--dur-fast) var(--ease-out);
}
.discover-card--featured .discover-body {
  padding-left: 0;
}
.discover-card:hover .discover-body {
  transform: translateY(-4px);
}

/* Fallback / legacy four-only equal grid (apps page etc.) */
.card-grid.four-only {
  grid-template-columns: repeat(4, 1fr);
  max-width: 1100px;
  gap: var(--space-2);
}
.card-grid.four-only .card {
  border-color: rgba(200, 16, 46, 0.16);
  min-height: 11.5rem;
}
.card-grid.four-only .card:hover {
  border-color: var(--mm-gold);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(200, 16, 46, 0.22),
    0 0 48px rgba(200, 16, 46, 0.08);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-2);
}
.contact-item {
  padding: var(--space-3);
  border: 1px solid var(--mm-glass-border);
  border-radius: var(--radius);
  background: var(--mm-ivory-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.contact-item .lbl {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mm-dim);
  margin-bottom: 8px;
}
.contact-item a, .contact-item .val {
  font-size: 0.95rem;
  word-break: break-word;
}

.placeholder-note {
  margin-top: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-left: 1px solid var(--mm-gold);
  background: rgba(200, 16, 46, 0.05);
  font-size: 0.88rem;
  color: var(--mm-muted);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.placeholder-note strong { color: var(--mm-ivory); }

.app-status {
  display: inline-block;
  margin-top: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--mm-line);
  color: var(--mm-muted);
}
.app-status.live {
  border-color: rgba(200, 16, 46, 0.4);
  color: var(--mm-gold);
  background: rgba(200, 16, 46, 0.06);
}
.app-status.incoming {
  border-color: rgba(200, 16, 46, 0.35);
  color: #e85a6e;
}

.doc-list {
  list-style: none;
  margin: 0; padding: 0;
  border: 1px solid var(--mm-glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--mm-ivory-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.doc-list li { border-bottom: 1px solid var(--mm-line); }
.doc-list li:last-child { border-bottom: 0; }
.doc-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: transparent;
  transition: background var(--dur-fast) var(--ease-out);
}
.doc-list a:hover { background: rgba(200, 16, 46, 0.05); color: var(--mm-gold); }
.doc-list .ext {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--mm-dim);
  letter-spacing: 0.08em;
}

.prose {
  max-width: 42rem;
  color: var(--mm-muted);
  font-size: 0.95rem;
  line-height: var(--leading-body);
}
.prose p { margin: 0 0 var(--space-2); }
.prose a {
  color: var(--mm-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Four-system sibling strip */
.mm-four-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 2px;
  align-items: center;
  padding: 6px 8px;
  margin: 0 0 var(--space-3);
  border: 1px solid rgba(200, 16, 46, 0.22);
  border-radius: var(--radius-pill);
  background:
    linear-gradient(180deg, rgba(200, 16, 46, 0.08) 0%, rgba(23, 23, 23, 0.55) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(245, 245, 245, 0.04);
  width: fit-content;
  max-width: 100%;
}
.mm-four-strip a {
  color: rgba(200, 16, 46, 0.85);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition:
    color var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}
.mm-four-strip a:hover {
  color: var(--mm-ivory);
  background: rgba(200, 16, 46, 0.12);
  border-color: rgba(200, 16, 46, 0.28);
}
.mm-four-strip a[aria-current="page"] {
  color: #ffffff;
  background: var(--mm-gold);
  border-color: var(--mm-gold);
  font-weight: 700;
}
.mm-four-strip .mm-four-sep {
  color: var(--mm-dim);
  user-select: none;
  padding: 0 2px;
  font-size: 0.55rem;
}
.mm-four-strip .mm-four-home {
  color: var(--mm-muted);
}
.mm-four-strip .mm-four-home:hover {
  color: var(--mm-ivory);
}

/* Reveal animations — gated by reduced-motion */
@media (prefers-reduced-motion: no-preference) {
  .hero-badge,
  .hero h1,
  .hero .role,
  .profession-list,
  .employer-intro,
  .hero .btn-row,
  .hero-visual-frame {
    animation: mm-rise 0.65s var(--ease-out) both;
  }
  .hero h1 { animation-delay: 0.05s; }
  .hero .role { animation-delay: 0.1s; }
  .profession-list { animation-delay: 0.12s; }
  .employer-intro { animation-delay: 0.15s; }
  .hero .btn-row { animation-delay: 0.22s; }
  .hero-visual-frame { animation-delay: 0.18s; }

  .discover-card {
    animation: mm-rise 0.55s var(--ease-out) both;
  }
  .discover-card:nth-child(1) { animation-delay: 0.04s; }
  .discover-card:nth-child(2) { animation-delay: 0.1s; }
  .discover-card:nth-child(3) { animation-delay: 0.16s; }
  .discover-card:nth-child(4) { animation-delay: 0.22s; }

  .card-grid.four-only .card {
    animation: mm-rise 0.55s var(--ease-out) both;
  }
  .card-grid.four-only .card:nth-child(1) { animation-delay: 0.04s; }
  .card-grid.four-only .card:nth-child(2) { animation-delay: 0.1s; }
  .card-grid.four-only .card:nth-child(3) { animation-delay: 0.16s; }
  .card-grid.four-only .card:nth-child(4) { animation-delay: 0.22s; }
}

@keyframes mm-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-badge .dot { animation: none; }
  .hero-orbit { animation: none; }
  .discover-card:hover,
  .card-grid.four-only .card:hover {
    transform: none;
    box-shadow: 0 0 0 1px rgba(200, 16, 46, 0.25);
  }
  .discover-card:hover .discover-orb { transform: none; }
  .discover-card:hover .discover-body { transform: none; }
  .discover-reveal {
    opacity: 1;
    transform: none;
    border-color: var(--mm-line);
    background: rgba(23, 23, 23, 0.5);
    color: var(--mm-muted);
  }
}

/* —— Sound Dex featured: wave shape ON TOP of title; Drop Net secondary under title —— */
.discover-body--sounddex {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}
.discover-body--sounddex .mm-card-icon--hero {
  display: flex;
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  margin: 0 0 0.35rem;
  order: -1;
}
.discover-card--featured.discover-card--sounddex .mm-card-icon--hero {
  width: 88px;
  height: 88px;
}
.discover-body--sounddex h3 {
  margin: 0;
}
.mm-sounddex-drop {
  margin: 0;
  font-size: 0.92rem;
  color: var(--mm-gold, #FFD23F);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.mm-sounddex-drop-label {
  color: var(--mm-gold, #FFD23F);
  text-transform: none;
}
.discover-card--sounddex-drop {
  border-color: color-mix(in srgb, var(--mm-gold, #FFD23F) 35%, transparent);
}

/* —— Dynamic app card icons: glowing yellow INLINE left of h3 (~40px desktop / ~32px mobile) —— */
.mm-card-icon {
  --mm-ico-core: #FFD23F;
  --mm-ico-glow: rgba(255, 210, 63, 0.9);
  --mm-ico-glow-soft: rgba(255, 180, 0, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--mm-ico-core);
  vertical-align: middle;
  pointer-events: none;
  line-height: 0;
  filter:
    drop-shadow(0 0 4px var(--mm-ico-glow))
    drop-shadow(0 0 12px var(--mm-ico-glow-soft));
  animation: mm-ico-glow 2.6s ease-in-out infinite;
  will-change: filter, transform;
}
.discover-card--featured .mm-card-icon {
  flex-basis: 44px;
  width: 44px;
  height: 44px;
}
.mm-card-ico {
  width: 100%;
  height: 100%;
  display: block;
  color: inherit;
  overflow: visible;
}
.mm-card-ico .mm-ico-bar { fill: currentColor; opacity: 0.92; transform-origin: center bottom; }
.mm-card-ico .mm-ico-dot,
.mm-card-ico .mm-ico-core,
.mm-card-ico .mm-ico-eye { fill: currentColor; }

/* Staggered life — each card icon pulses on a different beat */
.discover-card:nth-child(1) .mm-card-icon { animation-delay: 0s; }
.discover-card:nth-child(2) .mm-card-icon { animation-delay: 0.18s; }
.discover-card:nth-child(3) .mm-card-icon { animation-delay: 0.36s; }
.discover-card:nth-child(4) .mm-card-icon { animation-delay: 0.54s; }
.discover-card:nth-child(5) .mm-card-icon { animation-delay: 0.12s; }
.discover-card:nth-child(6) .mm-card-icon { animation-delay: 0.3s; }
.discover-card:nth-child(7) .mm-card-icon { animation-delay: 0.48s; }
.discover-card:nth-child(8) .mm-card-icon { animation-delay: 0.66s; }
.discover-card:nth-child(9) .mm-card-icon { animation-delay: 0.24s; }
.discover-card:nth-child(10) .mm-card-icon { animation-delay: 0.42s; }
.discover-card:nth-child(11) .mm-card-icon { animation-delay: 0.6s; }
.discover-card:nth-child(12) .mm-card-icon { animation-delay: 0.78s; }

.discover-card:hover .mm-card-icon {
  color: #FFE566;
  filter:
    drop-shadow(0 0 8px rgba(255, 229, 102, 1))
    drop-shadow(0 0 20px rgba(255, 200, 40, 0.85));
  transform: scale(1.08);
}

@keyframes mm-ico-glow {
  0%, 100% {
    filter:
      drop-shadow(0 0 3px rgba(255, 210, 63, 0.55))
      drop-shadow(0 0 10px rgba(255, 180, 0, 0.35));
  }
  50% {
    filter:
      drop-shadow(0 0 10px rgba(255, 210, 63, 1))
      drop-shadow(0 0 22px rgba(255, 180, 0, 0.75));
  }
}
@keyframes mm-ico-eq {
  0%, 100% { transform: scaleY(0.55); }
  50% { transform: scaleY(1); }
}
@keyframes mm-ico-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1); }
}
@keyframes mm-ico-spin {
  to { transform: rotate(360deg); }
}
@keyframes mm-ico-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@keyframes mm-ico-draw {
  0% { stroke-dashoffset: 80; }
  100% { stroke-dashoffset: 0; }
}

.mm-ico-wave .mm-ico-bar.b1 { animation: mm-ico-eq 1.1s ease-in-out infinite; }
.mm-ico-wave .mm-ico-bar.b2 { animation: mm-ico-eq 1.1s ease-in-out 0.12s infinite; }
.mm-ico-wave .mm-ico-bar.b3 { animation: mm-ico-eq 1.1s ease-in-out 0.24s infinite; }
.mm-ico-wave .mm-ico-bar.b4 { animation: mm-ico-eq 1.1s ease-in-out 0.08s infinite; }
.mm-ico-wave .mm-ico-bar.b5 { animation: mm-ico-eq 1.1s ease-in-out 0.2s infinite; }
.mm-ico-wave .mm-ico-chart {
  stroke-dasharray: 80;
  animation: mm-ico-draw 2.4s ease-in-out infinite alternate;
}
.mm-ico-pulse .mm-ico-dot,
.mm-ico-pulse .mm-ico-core {
  animation: mm-ico-pulse 1.8s ease-in-out infinite;
  transform-origin: center;
}
.mm-ico-spin {
  animation: mm-ico-spin 8s linear infinite;
  transform-origin: center;
}
.mm-ico-blink .mm-ico-eye,
.mm-ico-blink .mm-ico-dot,
.mm-ico-blink .mm-ico-core {
  animation: mm-ico-blink 2.2s ease-in-out infinite;
}

/* Light mode: keep yellow readable with darker gold rim */
html.mm-light .mm-card-icon {
  --mm-ico-core: #E6B422;
  --mm-ico-glow: rgba(180, 120, 10, 0.75);
  --mm-ico-glow-soft: rgba(140, 90, 0, 0.45);
  color: var(--mm-ico-core);
  filter:
    drop-shadow(0 0 1px #6B4E0A)
    drop-shadow(0 0 5px rgba(200, 140, 20, 0.7))
    drop-shadow(0 0 12px rgba(255, 200, 40, 0.45));
}
html.mm-light .discover-card:hover .mm-card-icon {
  color: #C9920A;
  filter:
    drop-shadow(0 0 1px #4A3508)
    drop-shadow(0 0 8px rgba(180, 120, 10, 0.9))
    drop-shadow(0 0 16px rgba(255, 180, 0, 0.55));
}

@media (max-width: 720px) {
  .mm-card-icon,
  .discover-card--featured .mm-card-icon {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }
  .discover-card h3 {
    gap: 0.35em;
    font-size: clamp(1.05rem, 4.2vw, 1.25rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mm-card-icon,
  .discover-card:hover .mm-card-icon {
    animation: none !important;
    transform: none !important;
    /* static glow only */
    filter:
      drop-shadow(0 0 5px rgba(255, 210, 63, 0.75))
      drop-shadow(0 0 12px rgba(255, 180, 0, 0.4));
  }
  html.mm-light .mm-card-icon,
  html.mm-light .discover-card:hover .mm-card-icon {
    filter:
      drop-shadow(0 0 1px #6B4E0A)
      drop-shadow(0 0 6px rgba(200, 140, 20, 0.65));
  }
  .mm-ico-wave .mm-ico-bar,
  .mm-ico-wave .mm-ico-chart,
  .mm-ico-pulse .mm-ico-dot,
  .mm-ico-pulse .mm-ico-core,
  .mm-ico-spin,
  .mm-ico-blink .mm-ico-eye,
  .mm-ico-blink .mm-ico-dot,
  .mm-ico-blink .mm-ico-core {
    animation: none !important;
  }
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  .hero-visual {
    min-height: 260px;
    order: -1;
  }
  .hero-visual-frame {
    width: min(100%, 340px);
    margin-inline: auto;
  }
  .discover-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .discover-card--featured {
    grid-column: span 6;
    grid-row: span 1;
    min-height: 260px;
  }
  .discover-card--mid,
  .discover-card--half {
    grid-column: span 3;
  }
  .discover-card--wide {
    grid-column: span 6;
  }
  .card-grid.four-only {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .hero {
    padding: var(--space-5) 0 var(--space-4);
  }
  .hero h1 {
    font-size: clamp(2.25rem, 9vw, 2.85rem);
  }
  .hero .role {
    font-size: 1rem;
    margin-bottom: var(--space-3);
  }
  .employer-intro {
    font-size: 0.92rem;
    padding: var(--space-2) var(--space-3);
    margin-bottom: var(--space-3);
  }
  .hero .btn-row .btn {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
  }
  .hero-visual {
    min-height: 220px;
  }
  .mm-four-strip {
    border-radius: var(--radius-sm);
    width: 100%;
    justify-content: flex-start;
    gap: 4px;
    padding: 6px;
  }
  .mm-four-strip a {
    padding: 8px 10px;
    font-size: 0.65rem;
  }
  .mm-four-strip .mm-four-sep { display: none; }
  .discover-grid {
    grid-template-columns: 1fr;
  }
  .discover-card--featured,
  .discover-card--mid,
  .discover-card--half,
  .discover-card--wide {
    grid-column: span 1;
    min-height: 180px;
  }
  .discover-card--featured { min-height: 220px; }
  .card-grid.four-only {
    grid-template-columns: 1fr;
  }
  .card-grid.four-only .card {
    min-height: 0;
  }
}

.section--apps { padding-top: clamp(2.5rem, 6vw, 4rem); }

/* —— Cartel Ace: 3D flip + paper grain + warmer hover —— */
.hero-ace-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  perspective: 1400px;
}
.mm-ace-card {
  position: relative;
  z-index: 2;
  width: min(100%, 340px);
  aspect-ratio: 750 / 1050;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  /* Flip + tilt compose via vars — tilt never overwrites flip */
  --mm-flip-y: 0deg;
  --mm-tilt-x: 0deg;
  --mm-tilt-y: 0deg;
}
.mm-ace-card:focus-visible {
  outline: 2px solid var(--mm-gold, #c8102e);
  outline-offset: 6px;
  border-radius: 18px;
}
.mm-ace-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform:
    rotateX(var(--mm-tilt-x))
    rotateY(calc(var(--mm-flip-y) + var(--mm-tilt-y)));
  transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
/* Flip only on deliberate card hover/focus (fine pointer) or .is-flipped (tap) */
.mm-ace-card.is-flipped {
  --mm-flip-y: 180deg;
}
@media (hover: hover) and (pointer: fine) {
  .mm-ace-card:hover,
  .mm-ace-card:focus-visible {
    --mm-flip-y: 180deg;
  }
}
/* Tilt vars should not transition slowly while dragging */
.mm-ace-card.mm-tilt .mm-ace-card-inner {
  transition:
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}
.mm-ace-face {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(200, 16, 46, 0.22),
    0 0 40px rgba(200, 16, 46, 0.12);
  background: #f7f4ee;
}
.mm-ace-face--back {
  transform: rotateY(180deg);
  background: #0a0a0a;
}
.mm-ace-face > img:not(.mm-ace-seal) {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.45s ease;
  filter: saturate(1) brightness(1);
}
/* Portrait Ace — sketch fills the card face; A♦ indices + seal overlay */
.mm-ace-face--portrait {
  background:
    linear-gradient(165deg, #fcfaf6 0%, #f0ebe3 55%, #e8e2d8 100%);
}
.mm-ace-portrait-wrap {
  position: absolute;
  inset: 10% 9% 11% 9%;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(26, 26, 26, 0.06);
}
.mm-ace-portrait {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transition: filter 0.45s ease, transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}
.mm-ace-index {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.9;
  color: #c8102e;
  font-family: "Times New Roman", "Iowan Old Style", Georgia, serif;
  font-weight: 700;
  pointer-events: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}
.mm-ace-index b {
  font-size: clamp(1.15rem, 3.2vw, 1.55rem);
  font-style: normal;
  letter-spacing: -0.02em;
}
.mm-ace-index i {
  font-style: normal;
  font-size: clamp(0.95rem, 2.6vw, 1.25rem);
  margin-top: 1px;
}
.mm-ace-index--tl { top: 3.2%; left: 4.2%; }
.mm-ace-index--br {
  bottom: 3.2%;
  right: 4.2%;
  transform: rotate(180deg);
}
.mm-ace-seal {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 4.5%;
  width: 16%;
  height: auto;
  transform: translateX(-50%);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
  pointer-events: none;
  opacity: 0.95;
}
.mm-ace-rim {
  position: absolute;
  inset: 2.4%;
  z-index: 2;
  border-radius: 10px;
  border: 1.5px solid rgba(200, 16, 46, 0.55);
  box-shadow:
    inset 0 0 0 1px rgba(26, 26, 26, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.35);
  pointer-events: none;
}
/* Warmer portrait / emblem on hover */
.mm-ace-card:hover .mm-ace-face > img:not(.mm-ace-seal),
.mm-ace-card:focus-visible .mm-ace-face > img:not(.mm-ace-seal),
.mm-ace-card:hover .mm-ace-portrait,
.mm-ace-card:focus-visible .mm-ace-portrait {
  filter: sepia(0.14) saturate(1.2) brightness(1.03) hue-rotate(-4deg);
}
.mm-ace-card:hover .mm-ace-portrait,
.mm-ace-card:focus-visible .mm-ace-portrait {
  transform: scale(1.03);
}
.mm-ace-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background-image: url("../assets/marks/paper-grain.png");
  background-size: 160px 160px;
  opacity: 0.22;
  mix-blend-mode: multiply;
}
.mm-ace-grain--dark {
  opacity: 0.28;
  mix-blend-mode: soft-light;
  background-size: 140px 140px;
}
.mm-ace-hint {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.45);
  font-family: var(--font-mono, ui-monospace, monospace);
}
@media (prefers-reduced-motion: reduce) {
  .hero-silk-guilloche { animation: none !important; }
  .mm-ace-card-inner { transition: none !important; }
  .mm-ace-card {
    --mm-tilt-x: 0deg !important;
    --mm-tilt-y: 0deg !important;
  }
  /* Instant face swap without 3D spin */
  .mm-ace-face--back { opacity: 0; transform: none; backface-visibility: visible; }
  .mm-ace-card.is-flipped .mm-ace-face--front,
  .mm-ace-card:hover .mm-ace-face--front,
  .mm-ace-card:focus-visible .mm-ace-face--front { opacity: 0; }
  .mm-ace-card.is-flipped .mm-ace-face--back,
  .mm-ace-card:hover .mm-ace-face--back,
  .mm-ace-card:focus-visible .mm-ace-face--back {
    opacity: 1;
    transform: none;
  }
  .mm-ace-face img { transition: none; }
}

/* —— Loading skeleton —— */
.mm-skel {
  position: fixed;
  inset: 0;
  z-index: 9990;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: #171717;
  transition: opacity 0.35s ease, visibility 0.35s;
}
html:not(.mm-loading) .mm-skel {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.mm-skel-inner {
  width: min(1100px, 100%);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}
.mm-skel-copy { display: flex; flex-direction: column; gap: 0.85rem; }
.mm-skel-line {
  height: 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, #2a2a2a 0%, #3a3a3a 50%, #2a2a2a 100%);
  background-size: 200% 100%;
  animation: mm-skel-shimmer 1.1s ease-in-out infinite;
}
.mm-skel-line--lg { height: 36px; width: 70%; }
.mm-skel-line--md { width: 88%; }
.mm-skel-line--sm { width: 55%; height: 12px; }
.mm-skel-btns { display: flex; gap: 0.6rem; margin-top: 0.4rem; }
.mm-skel-pill {
  height: 40px; width: 120px; border-radius: 999px;
  background: #2a2a2a;
  animation: mm-skel-shimmer 1.1s ease-in-out infinite;
  background-size: 200% 100%;
  background-image: linear-gradient(90deg, #2a2a2a 0%, #3a3a3a 50%, #2a2a2a 100%);
}
.mm-skel-card {
  width: min(280px, 100%);
  aspect-ratio: 750 / 1050;
  margin-inline: auto;
  border-radius: 16px;
  background: linear-gradient(145deg, #222 0%, #2e2e2e 50%, #1c1c1c 100%);
  box-shadow: 0 18px 40px rgba(0,0,0,.5);
  position: relative;
  overflow: hidden;
}
.mm-skel-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(200, 16, 46,.12), transparent);
  background-size: 200% 100%;
  animation: mm-skel-shimmer 1.2s ease-in-out infinite;
}
@keyframes mm-skel-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
@media (max-width: 820px) {
  .mm-skel-inner { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .mm-skel-line, .mm-skel-pill, .mm-skel-card::after { animation: none; }
}

/* —— Button press + ripple —— */
.btn {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  transition: transform 0.14s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.btn:active {
  transform: scale(0.965);
}
.btn .mm-ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, 0.28);
  pointer-events: none;
  animation: mm-ripple 0.55s ease-out forwards;
}
.btn.btn-primary .mm-ripple {
  background: rgba(0, 0, 0, 0.18);
}
@keyframes mm-ripple {
  to { transform: scale(2.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .btn:active { transform: none; }
  .btn .mm-ripple { display: none; }
}

/* —— Ace mute toggle —— */
.mm-ace-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}
.mm-ace-mute {
  font: inherit;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.55);
  border: 1px solid rgba(200, 16, 46, 0.28);
  background: rgba(23, 23, 23, 0.65);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
}
.mm-ace-mute[aria-pressed="true"] {
  color: var(--mm-gold, #c8102e);
  border-color: rgba(200, 16, 46, 0.55);
}



/* ── Hero silk stage — portrait lives in the Ace; BG is high-end silk ── */
.hero--forbidden,
.hero--silk {
  position: relative;
  overflow: clip;
  min-height: min(82vh, 820px);
  isolation: isolate;
  background: #070708;
}
.hero--forbidden > .container,
.hero--silk > .container {
  position: relative;
  z-index: 2;
}
.hero--forbidden .hero-grid,
.hero--silk .hero-grid {
  position: relative;
  z-index: 2;
  min-height: min(64vh, 580px);
}

/* Silk ambient stack (canvas + guilloche + grain + spotlight) */
.hero-silk {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #070708;
}
.hero-silk canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero-silk-guilloche {
  position: absolute;
  inset: -8%;
  opacity: 0.14;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'><defs><pattern id='g' width='80' height='80' patternUnits='userSpaceOnUse'><circle cx='40' cy='40' r='34' fill='none' stroke='%23c8102e' stroke-width='0.4' opacity='0.55'/><circle cx='40' cy='40' r='22' fill='none' stroke='%23d4af37' stroke-width='0.35' opacity='0.35'/><circle cx='40' cy='40' r='10' fill='none' stroke='%23ffffff' stroke-width='0.3' opacity='0.2'/></pattern></defs><rect width='400' height='400' fill='url(%23g)'/><g fill='none' stroke='%23c8102e' stroke-width='0.35' opacity='0.35'><path d='M0 200 Q100 120 200 200 T400 200'/><path d='M0 200 Q100 280 200 200 T400 200'/><path d='M200 0 Q120 100 200 200 T200 400'/><path d='M200 0 Q280 100 200 200 T200 400'/></g></svg>");
  background-size: 280px 280px;
  mix-blend-mode: screen;
  animation: mm-silk-drift 48s linear infinite;
  will-change: transform;
}
.hero-silk-grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  mix-blend-mode: soft-light;
  background-image: url("../assets/marks/paper-grain.png");
  background-size: 180px 180px;
}
.hero-silk-spotlight {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 42% 48% at var(--sx, 68%) var(--sy, 46%),
      rgba(200, 16, 46, 0.22) 0%,
      rgba(200, 16, 46, 0.08) 35%,
      transparent 68%
    ),
    radial-gradient(
      ellipse 28% 32% at var(--sx, 68%) var(--sy, 46%),
      rgba(212, 175, 55, 0.1) 0%,
      transparent 70%
    );
  transition: background 0.4s ease;
}
.hero-silk-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(7, 7, 8, 0.88) 0%,
      rgba(7, 7, 8, 0.72) 22%,
      rgba(7, 7, 8, 0.28) 48%,
      rgba(7, 7, 8, 0.12) 70%,
      rgba(7, 7, 8, 0.35) 100%
    ),
    linear-gradient(
      180deg,
      rgba(7, 7, 8, 0.45) 0%,
      rgba(7, 7, 8, 0.08) 20%,
      rgba(7, 7, 8, 0.08) 70%,
      rgba(7, 7, 8, 0.7) 100%
    );
}
@keyframes mm-silk-drift {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to { transform: translate3d(-3%, 2%, 0) rotate(2deg); }
}

/* Legacy hooks — no photo BG anymore */
.hero-forbidden-bg { display: none !important; }
.hero-forbidden-veil { display: none !important; }
.hero--forbidden .hero-badge {
  background: rgba(17, 17, 17, 0.72);
  border-color: rgba(200, 16, 46, 0.7);
}
.hero--forbidden .employer-intro {
  background: rgba(17, 17, 17, 0.72);
  border-color: rgba(245, 245, 245, 0.14);
  border-left-color: var(--mm-gold);
}
.hero--forbidden .hero-copy h1 {
  text-shadow:
    0 2px 18px rgba(0, 0, 0, 0.75),
    0 0 40px rgba(0, 0, 0, 0.45);
}
.hero--forbidden .hero .role,
.hero--forbidden .role {
  color: rgba(245, 245, 245, 0.82);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}
.hero--forbidden .profession-list li {
  background: rgba(17, 17, 17, 0.72);
  border-color: rgba(200, 16, 46, 0.55);
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}
.hero--forbidden .hero-ace-scene {
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
}
.hero--forbidden .mm-ace-hint {
  color: rgba(245, 245, 245, 0.7);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}
@media (max-width: 900px) {
  .hero--forbidden,
  .hero--silk {
    min-height: 0;
  }
  .hero-silk-veil {
    background:
      linear-gradient(
        180deg,
        rgba(7, 7, 8, 0.9) 0%,
        rgba(7, 7, 8, 0.7) 38%,
        rgba(7, 7, 8, 0.35) 62%,
        rgba(7, 7, 8, 0.72) 100%
      ),
      linear-gradient(
        90deg,
        rgba(7, 7, 8, 0.45) 0%,
        rgba(7, 7, 8, 0.12) 100%
      );
  }
  .hero-ace-scene {
    margin-top: 0.5rem;
  }
  .mm-ace-card {
    width: min(72vw, 260px);
  }
}
@media (max-width: 640px) {
  .mm-ace-card {
    width: min(68vw, 230px);
  }
  .mm-ace-seal { width: 18%; bottom: 4%; }
}

/* ── Hero filigree figure (background ornament) ── */

/* Burnt-orange field — stays on LEFT; face lives on filigree/Ace side */
.hero-burnt-field {
  position: absolute;
  left: 0;
  top: 8%;
  bottom: 12%;
  width: min(48%, 520px);
  z-index: 0;
  pointer-events: none;
  border-radius: 0 28% 32% 0 / 0 18% 22% 0;
  background:
    radial-gradient(ellipse 80% 70% at 28% 45%, rgba(210, 110, 28, 0.55) 0%, transparent 70%),
    linear-gradient(90deg, rgba(180, 78, 18, 0.72) 0%, rgba(160, 60, 14, 0.35) 55%, transparent 100%);
  filter: blur(0.5px);
  opacity: 0.9;
}
@media (max-width: 900px) {
  .hero-burnt-field { width: 58%; opacity: 0.75; top: 4%; }
}
.hero-filigree {
  position: absolute;
  left: 42%;
  top: 50%;
  transform: translateY(-52%);
  width: min(52vw, 520px);
  height: auto;
  z-index: 0; /* behind face (1) and container/Ace (2+) */
  pointer-events: none;
  user-select: none;
  opacity: 0.28;
  mix-blend-mode: screen;
}
.hero-filigree img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 24px rgba(200, 16, 46, 0.12));
}
@media (max-width: 900px) {
  .hero-filigree {
    left: 38%;
    width: min(48vw, 380px);
    opacity: 0.22;
  }
}
@media (max-width: 720px) {
  .hero-filigree {
    left: 35%;
    width: min(55vw, 280px);
    opacity: 0.18;
    mix-blend-mode: normal;
  }
}
@media (max-width: 480px) {
  .hero-filigree {
    opacity: 0.12;
    width: min(60vw, 220px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-filigree { transform: translateY(-50%); }
}


/* red-zone yellow accents (elements on Cartel-red face field) */

/* Half-face on filigree/Ace side — inside .hero-ace-scene, behind the card */
.hero-ace-scene {
  position: relative;
  isolation: isolate;
}
.hero-ace-scene .hero-face-art {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-58%, -50%) scaleX(-1) rotate(1deg);
  width: min(120%, 460px);
  max-width: none;
  z-index: 0; /* behind Ace card */
  pointer-events: none;
  user-select: none;
  opacity: 0.95;
  filter: drop-shadow(0 12px 36px rgba(0, 0, 0, 0.5)) saturate(1.12);
}
.hero-ace-scene .hero-face-art img {
  display: block;
  width: 100%;
  height: auto;
  mask-image: none;
  -webkit-mask-image: none;
  opacity: 0.9;
}
.hero-ace-scene .hero-filigree-local,
.hero-ace-scene .mm-ace-card {
  position: relative;
  z-index: 2;
}
.hero-ace-scene .mm-ace-controls {
  position: relative;
  z-index: 2;
}
@media (max-width: 900px) {
  .hero-ace-scene .hero-face-art {
    width: min(110%, 320px);
    top: 38%;
    opacity: 0.88;
  }
}
@media (max-width: 640px) {
  .hero-ace-scene .hero-face-art {
    width: 100%;
    opacity: 0.8;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-ace-scene .hero-face-art { transform: translate(-58%, -50%) scaleX(-1); }
}

/* ── Homepage pass: CTA clearance, readable labels, cartel air (v=7) ── */

/* Slightly larger uppercase labels — same mono/gold, not a new scale */
.section-kicker,
.hero-badge,
.card .tag,
.mm-four-strip {
  font-size: 0.75rem;
}
.profession-list li {
  font-size: 0.74rem;
  letter-spacing: 0.07em;
}
.hero--forbidden .mm-ace-hint {
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  color: rgba(245, 245, 245, 0.82);
}

/* Footer was sitting near --mm-muted / caption size */
.site-footer .footer-inner {
  font-size: 0.875rem;
  color: rgba(245, 245, 245, 0.86);
}
.site-footer a {
  color: rgba(245, 245, 245, 0.94);
}

/* Hero CTAs: obvious buttons, not clipped by the portrait veil */
.hero--forbidden .hero-copy .btn-row {
  position: relative;
  z-index: 5;
  margin-top: 1.15rem;
  gap: 12px;
}
.hero--forbidden .btn {
  cursor: pointer;
  min-height: 46px;
  padding: 12px 22px;
  white-space: nowrap;
}
.hero--forbidden .btn-primary {
  color: #ffffff;
  font-weight: 600;
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.35) inset;
}
.hero--forbidden .btn-primary:hover {
  color: #ffffff;
  box-shadow:
    0 12px 28px rgba(200, 16, 46, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.45) inset;
}
.hero--forbidden .btn-ghost {
  background: rgba(12, 12, 12, 0.82);
  border-color: rgba(245, 245, 245, 0.48);
  color: #f5f5f5;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}
.hero--forbidden .btn-ghost:hover {
  background: rgba(20, 20, 20, 0.92);
  border-color: var(--mm-gold);
  color: var(--mm-gold);
}

/* Short desktop: pull the stack up so the CTA row has air above the fold */
@media (min-width: 960px) and (max-height: 860px) {
  .hero--forbidden {
    min-height: 0;
    padding-top: 2rem;
    padding-bottom: 2.25rem;
  }
  .hero--forbidden .hero-grid {
    min-height: 0;
    align-items: center;
  }
  .hero--forbidden .hero-copy h1 {
    font-size: clamp(2.55rem, 4.8vw, 3.45rem);
    margin-bottom: 0.65rem;
  }
  .hero--forbidden .role {
    margin-bottom: 0.85rem;
  }
  .hero--forbidden .profession-list {
    margin-bottom: 0.85rem;
  }
  .hero--forbidden .employer-intro {
    margin-bottom: 0;
    padding: 0.85rem 1rem;
  }
  .hero--forbidden .mm-ace-card {
    width: min(100%, 286px);
  }
}

/* Ambient dock: float over content — NO reserved cream gutter strip */
@media (min-width: 1240px) {
  body[data-page="home"] .page {
    padding-right: 0;
  }
  body[data-page="home"] .mm-tape,
  body[data-page="home"] .mm-desk {
    margin-right: 0;
    width: 100%;
  }
  body[data-page="home"] .mm-ambient-picker {
    left: 12px;
    right: auto;
    bottom: 16px;
    top: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 6px;
    border-radius: 16px;
    z-index: 80;
  }
  body[data-page="home"] .mm-ambient-picker-label {
    display: block;
    text-align: center;
    margin: 0 0 4px;
    font-size: 10px;
    letter-spacing: 0.12em;
  }
  body[data-page="home"] .mm-ambient-btn {
    font-size: 11px;
    padding: 6px 10px;
    text-align: center;
  }
}

/* Narrower desktops keep the bar, but park it bottom-right so it misses the CTA row */
@media (min-width: 721px) and (max-width: 1239px) {
  body[data-page="home"] .mm-ambient-picker {
    left: auto;
    right: 12px;
    bottom: 12px;
  }
  body[data-page="home"] .hero--forbidden .hero-copy .btn-row {
    margin-bottom: 0.5rem;
  }
}

/* Cartel product-pack teaser was a short head + three links */
#cartel-teaser {
  padding-top: clamp(4.5rem, 8vw, 6.5rem);
  padding-bottom: clamp(4.5rem, 8vw, 6.75rem);
}
#cartel-teaser .section-head {
  margin-bottom: 0;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(245, 245, 245, 0.12);
  max-width: 40rem;
}
#cartel-teaser .btn-row {
  margin-top: 1.75rem;
}

/* ── Homepage market tape (under nav, in flow — does not cover CTAs, Ace, or BG rail) ── */
.mm-tape {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: stretch;
  height: 36px;
  margin: 0;
  background: #0c0c0c;
  color: #f5f5f5;
  border-top: 1px solid rgba(200, 16, 46, 0.55);
  border-bottom: 1px solid #c8102e;
  box-shadow: inset 0 -1px 0 rgba(200, 16, 46, 0.35);
  overflow: hidden;
}
.mm-tape-meta {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 0 14px;
  background: #111;
  border-right: 1px solid rgba(200, 16, 46, 0.45);
  z-index: 1;
}
.mm-tape-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c8102e;
}
.mm-tape-asof {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mm-gold);
  white-space: nowrap;
}
.mm-tape-viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 32px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 32px), transparent);
}
.mm-tape-viewport:focus-visible {
  outline: 1px solid var(--mm-gold);
  outline-offset: -2px;
}
.mm-tape-track {
  display: flex;
  width: max-content;
  animation: mm-tape-scroll 90s linear infinite;
}
/* Pause on mouse hover / keyboard focus only — a tap on touch screens must not freeze it */
@media (hover: hover) and (pointer: fine) {
  .mm-tape:hover .mm-tape-track { animation-play-state: paused; }
}
.mm-tape-viewport:focus-visible .mm-tape-track { animation-play-state: paused; }
.mm-tape-track:has(a:focus-visible) { animation-play-state: paused; }
.mm-tape-set {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mm-tape-set li {
  display: flex;
  align-items: center;
}
.mm-tape-set li::before {
  content: "";
  width: 5px;
  height: 5px;
  margin: 0 14px 0 4px;
  background: #c8102e;
  transform: rotate(45deg);
  flex: 0 0 auto;
}
.mm-tape-set a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 0 18px 0 0;
  color: #f5f5f5;
  font-size: 12.5px;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-decoration: none;
}
.mm-tape-set a:hover strong {
  color: var(--mm-gold);
}
.mm-tape-set strong {
  font-weight: 600;
  color: #fff;
}
.mm-tape-why {
  color: rgba(245, 245, 245, 0.62);
}
.mm-tape-when,
.mm-tape-src {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mm-tape-when { color: rgba(245, 245, 245, 0.78); }
.mm-tape-src { color: var(--mm-gold); }
@keyframes mm-tape-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .mm-tape-track {
    animation: none;
  }
  .mm-tape-viewport {
    overflow-x: auto;
  }
  .mm-tape-set[aria-hidden="true"] {
    display: none;
  }
}
@media (max-width: 640px) {
  .mm-tape { height: 34px; }
  .mm-tape-meta { padding: 0 8px; gap: 6px; }
  .mm-tape-asof { display: inline; font-size: 9px; }
  .mm-tape-set a { font-size: 12px; gap: 6px; }
  .mm-tape-why { display: none; }
}

/* ── Spot strip + session clock (static quotes; clock is browser session hours) ── */
.mm-desk {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  background: #0c0c0c;
  color: #f5f5f5;
  border-bottom: 1px solid rgba(200, 16, 46, 0.45);
}
.mm-quotes,
.mm-sessions {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin: 0;
  padding: 7px 14px;
}
.mm-quotes {
  flex: 1 1 320px;
  border-right: 1px solid rgba(200, 16, 46, 0.28);
}
.mm-sessions {
  flex: 1 1 280px;
}
.mm-quotes-kicker,
.mm-sessions-kicker,
.mm-quote-sym,
.mm-quote-asof,
.mm-quotes-note,
.mm-sessions-note,
.mm-session-state {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mm-quotes-kicker,
.mm-sessions-kicker {
  font-size: 10px;
  font-weight: 700;
  color: #c8102e;
}
.mm-quote,
.mm-session {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
}
.mm-quote-sym,
.mm-session-name {
  font-size: 11px;
  color: var(--mm-gold);
}
.mm-session-name { font-weight: 600; letter-spacing: 0.04em; }
.mm-quote strong {
  font-size: 13px;
  font-weight: 650;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.mm-quote-unit,
.mm-quote-asof,
.mm-quotes-note,
.mm-sessions-note,
.mm-session-state {
  font-size: 10px;
  color: rgba(245, 245, 245, 0.62);
}
.mm-session.is-open .mm-session-state { color: var(--mm-gold); }
.mm-session.is-closed .mm-session-state { color: rgba(245, 245, 245, 0.55); }
.mm-session.is-open .mm-session-name::before,
.mm-session.is-closed .mm-session-name::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: #c8102e;
  transform: translateY(-1px);
}
.mm-session.is-open .mm-session-name::before { background: var(--mm-gold); }

/* ── Selected works row under the hero ── */
.mm-picks {
  position: relative;
  z-index: 2;
  padding: 1.35rem 0 0.25rem;
}
.mm-picks .section-kicker { margin-bottom: 0.75rem; }
.mm-pick-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mm-pick-row a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 14px 14px 16px;
  background: rgba(12, 12, 12, 0.9);
  border: 1px solid rgba(245, 245, 245, 0.12);
  border-top: 2px solid #c8102e;
  border-radius: 12px;
  color: #f5f5f5;
  text-decoration: none;
}
.mm-pick-row a:hover {
  border-color: rgba(200, 16, 46, 0.55);
  color: #f5f5f5;
}
.mm-pick-row strong {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mm-gold);
}
.mm-pick-row span {
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(245, 245, 245, 0.84);
}
.mm-now {
  margin: 0.9rem 0 0;
  max-width: 68rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(245, 245, 245, 0.78);
}
@media (max-width: 980px) {
  .mm-pick-row { grid-template-columns: 1fr 1fr; }
  .mm-quotes { border-right: 0; border-bottom: 1px solid rgba(200, 16, 46, 0.22); }
}
@media (max-width: 640px) {
  .mm-pick-row { grid-template-columns: 1fr; }
  .mm-quotes, .mm-sessions { padding: 8px 12px; }
}

/* ── Command palette ── */
.mm-kbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid rgba(200, 16, 46, 0.45);
  background: rgba(12, 12, 12, 0.55);
  color: var(--mm-gold);
}
.mm-kbtn:hover,
.mm-kbtn[aria-expanded="true"] {
  background: rgba(200, 16, 46, 0.1);
  color: #ffffff;
}
.mm-kbtn-glyph {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.mm-palette[hidden] { display: none; }
.mm-palette {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: start center;
  padding: calc(var(--nav-h) + 18px) 16px 24px;
}
.mm-palette-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.62);
}
.mm-palette-panel {
  position: relative;
  width: min(520px, 100%);
  background: #111;
  color: #f5f5f5;
  border: 1px solid rgba(200, 16, 46, 0.5);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.mm-palette-panel h2 {
  margin: 0;
  padding: 12px 14px 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c8102e;
}
.mm-palette-panel input {
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid rgba(245, 245, 245, 0.12);
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 1rem;
  outline: none;
}
.mm-palette-panel input::placeholder { color: rgba(245, 245, 245, 0.4); }
#mm-palette-list {
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: min(50vh, 360px);
  overflow: auto;
}
#mm-palette-list button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  padding: 10px 10px;
  border-radius: 8px;
  color: #f5f5f5;
}
#mm-palette-list button small {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.45);
}
#mm-palette-list button[aria-selected="true"],
#mm-palette-list button:hover {
  background: rgba(200, 16, 46, 0.12);
  color: #fff;
}
#mm-palette-list button[aria-selected="true"] small { color: var(--mm-gold); }
.mm-palette-empty {
  margin: 0;
  padding: 14px;
  color: rgba(245, 245, 245, 0.55);
  font-size: 0.9rem;
}
.mm-palette-foot {
  margin: 0;
  padding: 8px 14px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.45);
}
.mm-palette-foot kbd {
  font-family: inherit;
  color: var(--mm-gold);
}
@media (prefers-reduced-motion: reduce) {
  .mm-kbtn,
  .mm-pick-row a,
  .mm-palette-panel {
    transition: none;
  }
}


/* —— Hero silk + portrait Ace in light mode —— */
html.mm-light .hero--forbidden,
html.mm-light .hero--silk {
  background: #f3efe6;
}
html.mm-light .hero-silk { background: #f3efe6; }
html.mm-light .hero-silk-guilloche {
  opacity: 0.12;
  mix-blend-mode: multiply;
  filter: saturate(0.85);
}
html.mm-light .hero-silk-grain { opacity: 0.12; mix-blend-mode: multiply; }
html.mm-light .hero-silk-spotlight {
  background:
    radial-gradient(
      ellipse 42% 48% at var(--sx, 68%) var(--sy, 46%),
      rgba(200, 16, 46, 0.14) 0%,
      rgba(200, 16, 46, 0.05) 40%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 30% 34% at var(--sx, 68%) var(--sy, 46%),
      rgba(212, 175, 55, 0.1) 0%,
      transparent 72%
    );
}
html.mm-light .hero-silk-veil {
  background:
    linear-gradient(
      90deg,
      rgba(243, 239, 230, 0.92) 0%,
      rgba(243, 239, 230, 0.72) 24%,
      rgba(243, 239, 230, 0.28) 52%,
      rgba(243, 239, 230, 0.15) 72%,
      rgba(243, 239, 230, 0.45) 100%
    ),
    linear-gradient(
      180deg,
      rgba(243, 239, 230, 0.55) 0%,
      rgba(243, 239, 230, 0.12) 22%,
      rgba(243, 239, 230, 0.15) 70%,
      rgba(243, 239, 230, 0.75) 100%
    );
}
/* Light mode: dark ink on cream silk (AA) */
html.mm-light .hero--forbidden .hero-copy h1,
html.mm-light .hero--silk .hero-copy h1,
html.mm-light .hero--forbidden h1,
html.mm-light .hero--silk h1 {
  color: #1a1a1a !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) !important;
}
html.mm-light .hero--forbidden .role,
html.mm-light .hero--silk .role,
html.mm-light .hero--forbidden .role em {
  color: #2a2a2a !important;
  text-shadow: none !important;
}
html.mm-light .hero--forbidden .profession-list li,
html.mm-light .hero--silk .profession-list li {
  color: #1a1a1a !important;
  background: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(200, 16, 46, 0.35) !important;
  text-shadow: none !important;
}
html.mm-light .hero--forbidden .employer-intro,
html.mm-light .hero--silk .employer-intro {
  color: #2a2a2a !important;
  background: rgba(255, 255, 255, 0.78) !important;
  border-color: rgba(26, 26, 26, 0.12) !important;
  border-left-color: #c8102e !important;
  text-shadow: none !important;
}
html.mm-light .hero--forbidden .employer-intro strong { color: #1a1a1a !important; }
html.mm-light .hero--forbidden .btn-ghost,
html.mm-light .hero--silk .btn-ghost {
  color: #1a1a1a !important;
  border-color: rgba(26, 26, 26, 0.22) !important;
  background: rgba(255, 255, 255, 0.55) !important;
}
html.mm-light .hero--forbidden .mm-ace-hint,
html.mm-light .hero--silk .mm-ace-hint {
  color: rgba(26, 26, 26, 0.5) !important;
  text-shadow: none !important;
}
html.mm-light .mm-ace-face--portrait {
  background: linear-gradient(165deg, #fffefb 0%, #f7f2ea 100%);
  box-shadow:
    0 22px 48px rgba(40, 30, 10, 0.18),
    0 0 0 1px rgba(200, 16, 46, 0.28),
    0 0 36px rgba(200, 16, 46, 0.1);
}
html.mm-light .mm-ace-face--back {
  /* keep dark emblem face for contrast on cream stage */
  box-shadow:
    0 22px 48px rgba(40, 30, 10, 0.22),
    0 0 0 1px rgba(26, 26, 26, 0.2);
}


/* —— UI polish home/hub/apps 20261006 —— */
/* mm-polish-ui-20261006 */
.hero h1,
.hero--forbidden h1 {
  letter-spacing: var(--tracking-display, -0.052em);
  line-height: var(--leading-tight, 1.05);
}
.discover-card h3 {
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.discover-card p,
.section-lead,
.mm-now {
  max-width: 65ch;
  line-height: var(--leading-body, 1.65);
}
.discover-card {
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}
.mm-tape,
.mm-desk {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}
.mm-picks { padding-top: var(--space-6, 48px); }
.mm-picks .section-kicker { margin-bottom: var(--space-3, 24px); }

@media (max-width: 390px) {
  .hero .btn-row { flex-wrap: wrap; }
  .hero .btn-row .btn { flex: 1 1 100%; }
  .mm-ace-card { width: min(72vw, 220px) !important; }
  .profession-list { gap: 6px; }
}

/* —— Walkthrough lightbox (60s recruiter reel) —— */
.mm-walkthrough-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.mm-walkthrough-lightbox[hidden] { display: none !important; }
.mm-walkthrough-dialog {
  position: relative;
  width: min(960px, 100%);
  background: #0a0a0a;
  border: 1px solid rgba(200, 16, 46, 0.45);
  border-radius: 12px;
  padding: 0.75rem 0.75rem 0.9rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}
.mm-walkthrough-video {
  display: block;
  width: 100%;
  max-height: min(72vh, 540px);
  background: #000;
  border-radius: 8px;
}
.mm-walkthrough-close {
  position: absolute;
  top: 0.35rem;
  right: 0.45rem;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(245, 245, 245, 0.2);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.85);
  color: #f5f5f5;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.mm-walkthrough-close:hover,
.mm-walkthrough-close:focus-visible {
  border-color: #c8102e;
  color: #fff;
  outline: none;
}
.mm-walkthrough-note {
  margin: 0.55rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.55);
}
html.gm .mm-walkthrough-dialog { border-color: rgba(200, 16, 46, 0.55); }
button.mm-walkthrough-open { cursor: pointer; }
