/* Millennium Migration — theme styles.
   Brand tokens come from theme.json presets; fallbacks keep the CSS
   self-sufficient outside WordPress (previews, editor edge cases). */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

:root {
  /* Light-only design: block browser forced-dark inversion */
  color-scheme: light;
  --mm-purple: var(--wp--preset--color--purple, #7c3aed);
  --mm-purple-deep: var(--wp--preset--color--purple-deep, #5b21b6);
  --mm-purple-ink: var(--wp--preset--color--purple-ink, #3b0764);
  --mm-lilac: var(--wp--preset--color--lilac, #f5f3ff);
  --mm-ink: var(--wp--preset--color--ink, #0f172a);
  --mm-body: var(--wp--preset--color--body, #475569);
  --mm-soft: var(--wp--preset--color--soft, #64748b);
  --mm-line: var(--wp--preset--color--line, #e2e8f0);
  --mm-green: var(--wp--preset--color--green, #16a34a);
  --mm-gold: var(--wp--preset--color--gold, #f59e0b);
  --mm-grad-signature: linear-gradient(135deg, #7c3aed, #5b21b6);
  --mm-grad-button: linear-gradient(90deg, #7c3aed, #a855f7);
  --mm-font-display: var(--wp--preset--font-family--anton, Anton, 'Arial Narrow', 'Helvetica Neue', sans-serif);
  --mm-radius: 20px;
  --mm-radius-sm: 16px;
  --mm-shadow: 0 10px 30px rgba(59, 7, 100, 0.10);
  --mm-shadow-lift: 0 18px 44px rgba(59, 7, 100, 0.16);
  --mm-container: 1160px;
}

/* ---------- Generic section scaffolding ---------- */

.mm-section {
  padding: 5.5rem 1.5rem;
}

.mm-section__inner {
  max-width: var(--mm-container);
  margin: 0 auto;
}

.mm-kicker {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mm-purple);
  margin-bottom: 0.9rem;
}

.mm-section-title {
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem);
  color: var(--mm-ink);
  margin: 0 0 0.6rem;
}

.mm-section-lede {
  max-width: 640px;
  color: var(--mm-body);
  margin: 0 0 2.8rem;
}

.mm-center { text-align: center; }
.mm-center .mm-section-lede { margin-left: auto; margin-right: auto; }

/* Pill buttons (mirrors theme.json button styles for non-button-block links) */

.mm-btn,
.wp-block-button__link {
  display: inline-block;
  background: var(--mm-grad-button);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 12px;
  padding: 0.85rem 1.5rem;
  text-decoration: none;
  border: 0;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.mm-btn:hover,
.wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.45);
}

.mm-btn--ghost {
  background: transparent;
  color: #fff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  box-shadow: none;
}

.mm-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.mm-btn--outline {
  background: #fff;
  color: var(--mm-purple) !important;
  border: 1.5px solid var(--mm-line);
  box-shadow: none;
}

.mm-btn--outline:hover {
  border-color: var(--mm-purple);
  box-shadow: none;
}

/* ---------- Header ---------- */

.mm-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* No backdrop-filter here: it would turn the header into a containing
     block for position:fixed children and trap the WP mobile nav overlay
     inside the 68px header bar. */
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--mm-line);
}

.mm-header__inner {
  max-width: var(--mm-container);
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.mm-header__logo img {
  height: 44px;
  width: auto;
  display: block;
}

.mm-header__nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-size: 0.97rem;
  font-weight: 500;
}

.mm-header__nav a {
  color: var(--mm-ink);
  text-decoration: none;
}

.mm-header__nav a:hover { color: var(--mm-purple); }

/* Compact header CTA */
.mm-header .mm-btn,
.mm-header .wp-block-button__link {
  padding: 0.65rem 1.15rem;
  font-size: 0.78rem;
}

.mm-header__logo { margin: 0; }
.mm-header__logo img { height: 44px; width: auto !important; display: block; }
.mm-header__cta { margin: 0; }

@media (max-width: 880px) {
  /* Hide only the static preview nav; the WP navigation block manages
     its own responsive hamburger overlay. */
  .mm-header__nav:not(.wp-block-navigation) { display: none; }
}

/* Mobile nav overlay: guarantee brand colours and visible links,
   independent of the block's saved attributes. */
.mm-header .wp-block-navigation__responsive-container.is-menu-open {
  background: var(--mm-purple-ink);
  padding: 5rem 2rem 2rem;
}

.mm-header .wp-block-navigation__responsive-container.is-menu-open a {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 600;
}

.mm-header .wp-block-navigation__responsive-container-close svg,
.mm-header .wp-block-navigation__responsive-container-open svg {
  color: var(--mm-ink);
}

.mm-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close svg {
  color: #fff;
}

/* ---------- Scrollytelling opening (Klyro-style) ---------- */

.mm-open {
  background: #faf9f7;
  /* No overflow:hidden here — it would break position:sticky in the
     scrubbed intro beat. Beat 1 clips its own orb instead. */
}

.mm-open__beat {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 4rem 1.5rem;
}

.mm-open__inner {
  position: relative;
  max-width: var(--mm-container);
  margin: 0 auto;
  width: 100%;
}

/* Beat 1 — the giant statement */
.mm-open__beat--title {
  min-height: calc(100vh - 68px);
  overflow: hidden; /* clips the floating orb's overhang */
  /* Reserved band at the bottom so the absolute scroll cue can never
     touch the content, whatever the viewport size. */
  padding-bottom: 130px;
}

.mm-open__h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--mm-font-display);
  font-size: clamp(2.9rem, 1.6rem + 6.2vw, 6.6rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--mm-ink);
}

.mm-open__h1 em {
  font-style: normal;
  color: var(--mm-purple);
}

.mm-open__mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.mm-open__line { display: block; }

.mm-open__tag {
  display: inline-block;
  margin: 2.2rem 0 0;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--mm-line);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--mm-purple-ink);
}

/* Floating Australia silhouette (purple gradient) */
.mm-open__aus {
  position: absolute;
  top: 50%;
  right: 0;
  width: clamp(280px, 34vw, 480px);
  transform: translateY(-52%);
  filter: drop-shadow(0 30px 60px rgba(124, 58, 237, 0.35));
}

.mm-open__aus svg {
  width: 100%;
  height: auto;
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  .mm-open__aus {
    animation: mm-aus-float 9s ease-in-out infinite alternate;
  }

  @keyframes mm-aus-float {
    from { transform: translateY(-56%) rotate(-2deg); }
    to   { transform: translateY(-48%) rotate(2.5deg); }
  }

  /* Southern Cross twinkle */
  .mm-open__aus .mm-star {
    animation: mm-twinkle 2.4s ease-in-out infinite;
  }

  .mm-open__aus .mm-star:nth-child(1) { animation-delay: 0s; }
  .mm-open__aus .mm-star:nth-child(2) { animation-delay: 0.5s; }
  .mm-open__aus .mm-star:nth-child(3) { animation-delay: 1s; }
  .mm-open__aus .mm-star:nth-child(4) { animation-delay: 1.5s; }
  .mm-open__aus .mm-star:nth-child(5) { animation-delay: 2s; }

  @keyframes mm-twinkle {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 1; }
  }

  /* Gentler float for the statically-positioned mobile map */
  @keyframes mm-aus-float-m {
    from { transform: translateY(-6px) rotate(-2deg); }
    to   { transform: translateY(6px) rotate(2.5deg); }
  }
}

.mm-open__scroll {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mm-soft);
}

.mm-open__scrolltick {
  width: 1px;
  height: 42px;
  background: var(--mm-ink);
  opacity: 0.35;
}

/* Beat 1 load choreography — lines rise out of their masks */
@media (prefers-reduced-motion: no-preference) {
  .js .mm-open__line,
  .js .mm-open__tag,
  .js .mm-open__scroll {
    transform: translateY(115%);
    transition: transform 0.85s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.85s ease;
  }

  .js .mm-open__tag,
  .js .mm-open__scroll { transform: none; opacity: 0; }

  .js .mm-open__mask:nth-child(1) .mm-open__line { transition-delay: 0.05s; }
  .js .mm-open__mask:nth-child(2) .mm-open__line { transition-delay: 0.15s; }
  .js .mm-open__mask:nth-child(3) .mm-open__line { transition-delay: 0.25s; }
  .js .mm-open__mask:nth-child(4) .mm-open__line { transition-delay: 0.35s; }
  .js .mm-open__tag { transition-delay: 0.6s; }
  .js .mm-open__scroll { transition-delay: 0.85s; }

  .js.mm-loaded .mm-open__line { transform: none; }
  .js.mm-loaded .mm-open__tag,
  .js.mm-loaded .mm-open__scroll { opacity: 1; }
}

/* Beat 2 — intro paragraph, scroll-scrubbed word by word (Mari-studio style).
   Full-bleed signature-gradient background, white text. The beat grows tall
   and pins its content; JS brightens each word with scroll progress.
   Without JS or with reduced motion: normal static beat. */
.mm-open__beat--intro {
  min-height: 78vh;
  background: var(--mm-grad-signature);
}

@media (prefers-reduced-motion: no-preference) {
  .js .mm-open__beat--intro {
    min-height: 150vh;
    display: block;
  }

  /* Shorter sticky box = far less empty space after the pin releases. */
  .js .mm-open__beat--intro .mm-open__inner {
    position: sticky;
    top: 15vh;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .mm-open__beat--intro.mm-scrub .mm-open__ctas {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .mm-open__beat--intro.mm-scrub .mm-open__ctas.is-on {
    opacity: 1;
    transform: none;
  }
}

/* Poster layout (Anton) — stacked typographic hierarchy, left-aligned */
.mm-open__lede {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  color: #fff;
  text-align: left;
  font-family: var(--mm-font-display);
  font-weight: 400;
  line-height: 1.1;
}

.mm-open__poster p,
.mm-open__poster ul {
  margin: 0;
  padding: 0;
}

.mm-open__p-xl {
  font-size: clamp(2.5rem, 1.6rem + 4.4vw, 4.4rem);
  line-height: 1.08;
}

.mm-open__p-lg {
  font-size: clamp(1.55rem, 1.1rem + 2.4vw, 2.5rem);
  margin-top: 0.35em !important;
  line-height: 1.12;
}

.mm-open__p-sm {
  font-size: clamp(1rem, 0.8rem + 1.1vw, 1.35rem);
  margin-top: 0.55em !important;
  letter-spacing: 0.015em;
  line-height: 1.3;
}

.mm-open__p-huge {
  font-size: clamp(4.2rem, 2.6rem + 8.5vw, 8rem);
  line-height: 1;
  margin: 0.28em 0 0.22em !important;
}

.mm-open__p-list {
  list-style: none;
}

.mm-open__p-list li {
  font-size: clamp(1.8rem, 1.2rem + 3vw, 3rem);
  line-height: 1.22;
}

.mm-open__p-rule {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  margin: 1.6em 0 1.2em;
}

.mm-open__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

.mm-open__free {
  color: var(--mm-green);
  font-size: 0.92rem;
  font-weight: 600;
}

/* Beat 3 — 4.9 star rating */
.mm-open__beat--stars {
  text-align: center;
  justify-content: center;
  min-height: 60vh;
  padding-top: 4rem;
  padding-bottom: 4rem;
  background: var(--mm-lilac);
  border-radius: 28px;
  margin: 1.5rem 1rem;
}

.mm-open__beat--stars .mm-open__inner { max-width: 720px; }

.mm-open__bigstat {
  margin: 0.4rem 0 0;
  font-family: var(--mm-font-display);
  font-size: clamp(4.5rem, 3rem + 8vw, 8rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--mm-ink);
}

.mm-open__outof {
  font-size: 0.28em;
  font-weight: 700;
  color: var(--mm-soft);
  margin-left: 0.15em;
}

.mm-open__stars {
  display: flex;
  gap: 0.55rem;
  justify-content: center;
  margin: 1.3rem 0 1.2rem;
  color: var(--mm-gold);
}

.mm-open__stars svg { width: 34px; height: 34px; }

.mm-open__starsub {
  color: var(--mm-soft);
  margin: 0 0 1.6rem;
}

@media (prefers-reduced-motion: no-preference) {
  .js .mm-open__stars svg {
    opacity: 0;
    transform: scale(0.2) rotate(-18deg);
    transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .js .mm-open__stars svg:nth-child(1) { transition-delay: 0.1s; }
  .js .mm-open__stars svg:nth-child(2) { transition-delay: 0.35s; }
  .js .mm-open__stars svg:nth-child(3) { transition-delay: 0.6s; }
  .js .mm-open__stars svg:nth-child(4) { transition-delay: 0.85s; }
  .js .mm-open__stars svg:nth-child(5) { transition-delay: 1.1s; }

  /* Stars pop only once the row is properly in view (.is-lit set by JS) */
  .js .mm-open__stars.is-lit svg {
    opacity: 1;
    transform: none;
  }
}

/* Beat 4 — Sam + animated counters */
.mm-open__beat--sam {
  min-height: 74vh;
  padding-top: 3rem;
  padding-bottom: 5rem;
}

.mm-open__counters {
  display: flex;
  gap: 3rem;
  margin: 0 0 1.6rem;
}

.mm-open__counters .mm-count {
  display: block;
  font-family: var(--mm-font-display);
  font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.6rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--mm-purple);
  font-variant-numeric: tabular-nums;
}

.mm-open__counters small {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mm-soft);
}

/* Beat — Sam + trust */
.mm-open__samgrid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 4rem;
  align-items: center;
}

.mm-open__photo {
  position: relative;
  max-width: 380px;
}

.mm-open__photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--mm-radius);
  border: 1px solid var(--mm-line);
  box-shadow: var(--mm-shadow-lift);
}

.mm-open__badge {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -1.3rem;
  background: #fff;
  color: var(--mm-ink);
  border: 1px solid var(--mm-line);
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--mm-shadow);
}

.mm-open__badge span { color: var(--mm-soft); font-weight: 500; }

.mm-open__samcopy h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.6rem);
  letter-spacing: -0.02em;
}

.mm-open__samcopy > p:not(.mm-kicker) {
  max-width: 520px;
  margin: 0 0 1.8rem;
}

.mm-open__trust {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--mm-line);
  font-size: 0.95rem;
  color: var(--mm-body);
}

.mm-open__trust .mm-stars { color: var(--mm-gold); letter-spacing: 0.08em; }

@media (max-width: 880px) {
  .mm-open__beat { min-height: 0; padding: 4.5rem 1.5rem; }
  /* Compact first screen: content + scroll cue, no dead space */
  .mm-open__beat--title { min-height: 0; display: flex; align-items: center; }
  /* Mobile hero: content high, vivid floating map above the headline,
     MARN as a badge, scroll cue in view. */
  .mm-open__beat--title {
    flex-direction: column;
    align-items: stretch;
    padding-top: 2.2rem;
    padding-bottom: 3rem;
  }

  .mm-open__beat--title .mm-open__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .mm-open__aus {
    position: static;
    order: -1;
    align-self: flex-end;
    width: 176px;
    opacity: 1;
    transform: none;
    margin: 0 0 1.6rem;
    filter: drop-shadow(0 18px 34px rgba(124, 58, 237, 0.4));
    animation: mm-aus-float-m 7s ease-in-out infinite alternate;
  }

  @media (prefers-reduced-motion: reduce) {
    .mm-open__aus { animation: none; }
  }

  .mm-open__tag { margin-top: 1.8rem; }

  /* In-flow on mobile so it can never overlap the MARN badge */
  .mm-open__scroll {
    position: static;
    transform: none;
    align-self: center;
    margin: 2.6rem 0 0;
  }

  .mm-open__samgrid { grid-template-columns: 1fr; gap: 3.4rem; }
  .mm-open__photo { margin: 0 auto; }
}

@media (max-width: 480px) {
  /* Anton is condensed — bigger fits, one row per masked line */
  .mm-open__h1 { font-size: 3rem; letter-spacing: 0.01em; }

  /* MARN badge fits one line */
  .mm-open__tag { font-size: 0.66rem; letter-spacing: 0.08em; padding: 0.5rem 0.9rem; }
}

/* ---------- Hero ---------- */

.mm-hero {
  position: relative;
  background: var(--mm-grad-signature);
  color: #fff;
  overflow: hidden;
  padding: 5.5rem 1.5rem 6.5rem;
}

.mm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 420px at 82% -10%, rgba(255, 255, 255, 0.16), transparent 60%),
    radial-gradient(560px 380px at -8% 110%, rgba(59, 7, 100, 0.55), transparent 60%);
  pointer-events: none;
}

.mm-hero__inner {
  position: relative;
  max-width: var(--mm-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 4rem;
  align-items: center;
}

.mm-hero .mm-kicker {
  color: #ddd6fe;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
}

.mm-hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 1.5rem + 3.2vw, 3.4rem);
  line-height: 1.13;
  margin: 0 0 1.2rem;
  letter-spacing: -0.015em;
}

.mm-hero__lede {
  color: #ede9fe;
  font-size: 1.13rem;
  max-width: 560px;
  margin: 0 0 2rem;
}

.mm-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.mm-hero__ctas .mm-btn {
  background: #fff;
  color: var(--mm-purple-deep) !important;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.25);
}

.mm-hero__free {
  color: #bbf7d0;
  font-size: 0.92rem;
  font-weight: 600;
}

.mm-hero__trust {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.2rem;
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.93rem;
  color: #ede9fe;
}

.mm-hero__trust a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.mm-hero__trust .mm-stars { color: var(--mm-gold); letter-spacing: 0.08em; }

.mm-hero__photo {
  position: relative;
  justify-self: end;
  max-width: 360px;
  width: 100%;
}

.mm-hero__photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--mm-radius);
  border: 4px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
}

.mm-hero__badge {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -1.4rem;
  background: #fff;
  color: var(--mm-ink);
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--mm-shadow);
}

.mm-hero__badge span { color: var(--mm-soft); font-weight: 500; }

@media (max-width: 880px) {
  .mm-hero__inner { grid-template-columns: 1fr; gap: 3rem; }
  .mm-hero__photo { justify-self: center; max-width: 300px; }
}

/* ---------- Visa pathway cards ---------- */

.mm-pathways { background: var(--mm-lilac); }

.mm-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}

@media (max-width: 1080px) { .mm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .mm-cards { grid-template-columns: 1fr; } }

.mm-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--mm-line);
  border-radius: var(--mm-radius);
  padding: 1.8rem 1.6rem 1.6rem;
  box-shadow: 0 4px 14px rgba(59, 7, 100, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.mm-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--mm-shadow-lift);
  border-color: #ddd6fe;
}

.mm-card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--mm-lilac);
  color: var(--mm-purple);
  margin-bottom: 1.1rem;
}

.mm-card__icon svg { width: 28px; height: 28px; }

.mm-card h3 {
  font-size: 1.08rem;
  margin: 0 0 0.35rem;
}

.mm-card h3 a {
  color: var(--mm-ink);
  text-decoration: none;
}

/* Whole card is clickable via the title link */
.mm-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--mm-radius);
}

.mm-card__sub {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mm-purple);
  margin: 0 0 0.55rem;
}

.mm-card p {
  font-size: 0.93rem;
  color: var(--mm-soft);
  margin: 0;
}

.mm-card__go {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mm-purple);
}

.mm-pathways__more {
  margin-top: 2.2rem;
  text-align: center;
  font-size: 0.98rem;
  color: var(--mm-body);
}

.mm-pathways__more a { font-weight: 600; }

/* ---------- Visa pathways — scrollytelling journey ---------- */

.mm-journey {
  position: relative;
  background: var(--mm-lilac);
  padding: 0 1.5rem 2rem;
}

/* Fog wipe bleeding out of the purple hero above (Klyro-style transition) */
.mm-journey::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 220px;
  background: linear-gradient(180deg, rgba(91, 33, 182, 0.35), rgba(91, 33, 182, 0));
  pointer-events: none;
}

/* Sticky pinned counter head */
.mm-journey__head {
  position: sticky;
  top: 68px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.4rem 0 0.6rem;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

/* Fades out when the journey's outro arrives, or whenever panel content
   scrolls into the counter's zone — the number never sits on text. */
.mm-journey__head.is-hidden,
.mm-journey__head.is-clash { opacity: 0; }

.mm-journey__label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mm-purple-ink);
}

.mm-journey__tick {
  width: 1px;
  height: 32px;
  background: var(--mm-ink);
  opacity: 0.35;
  margin: 0.7rem 0;
}

.mm-journey__num {
  display: block;
  height: 1em;
  overflow: hidden;
  font-family: var(--mm-font-display);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 400;
  line-height: 1;
  color: var(--mm-purple);
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.mm-journey__digits {
  display: block;
  transform: translateY(calc(var(--mm-step, 0) * -1em));
  transition: transform 0.55s cubic-bezier(0.7, 0, 0.2, 1);
}

.mm-journey__digits > span {
  display: block;
  height: 1em;
}

/* Step panels */
.mm-journey__panel {
  position: relative;
  min-height: 70vh;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  /* Top clearance keeps the giant title below the sticky counter head. */
  padding: clamp(160px, 20vh, 220px) 0 3rem;
}

/* Vertical guide line connecting the counter to the title — fills as you
   read down each panel, signalling scroll progress. */
.mm-journey__panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: clamp(120px, 16vh, 180px);
  background: linear-gradient(180deg,
    var(--mm-purple) 0%,
    rgba(124, 58, 237, 0.35) 60%,
    rgba(124, 58, 237, 0) 100%);
  pointer-events: none;
}

.mm-journey__title {
  margin: 0 0 0.9rem;
  font-family: var(--mm-font-display);
  font-size: clamp(2.8rem, 2rem + 5.8vw, 5.6rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--mm-ink);
}

.mm-journey__mask {
  display: block;
  overflow: hidden;
}

.mm-journey__inner {
  display: block;
}

.mm-journey__sub {
  margin: 0 0 1.6rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mm-purple);
}

.mm-journey__art {
  display: grid;
  place-items: center;
  width: 110px;
  height: 110px;
  margin-bottom: 1.6rem;
  color: var(--mm-purple);
}

.mm-journey__art svg {
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.mm-journey__copy {
  max-width: 520px;
  margin: 0 0 1.8rem;
  color: var(--mm-body);
}

.mm-journey__outro {
  padding: 1rem 0 1.5rem;
  text-align: center;
}

.mm-outro-card {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--mm-line);
  border-radius: var(--mm-radius);
  box-shadow: var(--mm-shadow);
  padding: 2.8rem 2.4rem;
}

.mm-outro-card__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 1.2rem;
  border-radius: 16px;
  background: var(--mm-lilac);
  color: var(--mm-purple);
}

.mm-outro-card__icon svg { width: 30px; height: 30px; }

.mm-outro-card h3 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 1.9rem);
  letter-spacing: -0.01em;
}

.mm-outro-card p {
  max-width: 520px;
  margin: 0 auto 1.7rem;
  color: var(--mm-body);
}

.mm-outro-card__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

/* Outro as a giant panel, styled like the 01–08 visa panels —
   height follows its content, no dead space before the footer. */
.mm-journey__panel--outro {
  min-height: 0;
  padding-top: 5rem;
  padding-bottom: 1rem;
}

/* Reveal choreography — gated on JS + motion preference so content is
   never hidden without them. */
@media (prefers-reduced-motion: no-preference) {
  .js .mm-journey__inner {
    transform: translateY(112%);
    transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .js .mm-journey__panel.is-active .mm-journey__inner {
    transform: none;
  }

  .js .mm-journey__panel .mm-journey__sub,
  .js .mm-journey__panel .mm-journey__art,
  .js .mm-journey__panel .mm-journey__copy,
  .js .mm-journey__panel .mm-btn {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }

  .js .mm-journey__panel.is-active .mm-journey__sub    { transition-delay: 0.12s; }
  .js .mm-journey__panel.is-active .mm-journey__art    { transition-delay: 0.22s; }
  .js .mm-journey__panel.is-active .mm-journey__copy   { transition-delay: 0.32s; }
  .js .mm-journey__panel.is-active .mm-btn             { transition-delay: 0.42s; }

  .js .mm-journey__panel.is-active .mm-journey__sub,
  .js .mm-journey__panel.is-active .mm-journey__art,
  .js .mm-journey__panel.is-active .mm-journey__copy,
  .js .mm-journey__panel.is-active .mm-btn {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 880px) {
  .mm-journey__head { top: 58px; padding-top: 1.6rem; }
  .mm-journey__tick { height: 22px; }
  .mm-journey__num { font-size: 2.2rem; }
  /* Tighter pacing between visas on mobile */
  .mm-journey__panel { min-height: 0; padding: 220px 0 2.5rem; }
  .mm-journey__art { width: 84px; height: 84px; }
}

/* ---------- Why us ---------- */

.mm-why .mm-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 880px) { .mm-why .mm-cards { grid-template-columns: 1fr; } }

.mm-why .mm-card:hover { transform: none; box-shadow: 0 4px 14px rgba(59, 7, 100, 0.05); border-color: var(--mm-line); }

.mm-why__rating {
  font-size: 2rem;
  font-weight: 700;
  color: var(--mm-ink);
}

.mm-why__rating .mm-stars {
  color: var(--mm-gold);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  vertical-align: 0.2em;
  margin-left: 0.4rem;
}

.mm-why .mm-card p { font-size: 0.97rem; color: var(--mm-body); }

.mm-why .mm-card a { font-weight: 600; }

/* ---------- Blog ---------- */

.mm-blog { background: #fff; }

.mm-blog .wp-block-query { max-width: none; }

.mm-blog .wp-block-post-template,
.mm-blog__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

@media (max-width: 880px) {
  .mm-blog .wp-block-post-template,
  .mm-blog__grid { grid-template-columns: 1fr; }
}

.mm-blog .wp-block-post-template > li,
.mm-blog__card {
  list-style: none;
  background: #fff;
  border: 1px solid var(--mm-line);
  border-radius: var(--mm-radius);
  padding: 1.7rem 1.6rem;
  margin: 0;
  transition: box-shadow 0.22s ease, border-color 0.22s ease;
}

.mm-blog .wp-block-post-template > li:hover,
.mm-blog__card:hover { box-shadow: var(--mm-shadow); border-color: #ddd6fe; }

.mm-blog .wp-block-post-title,
.mm-blog__card h3 { font-size: 1.12rem; margin: 0 0 0.5rem; line-height: 1.35; }

.mm-blog .wp-block-post-title a,
.mm-blog__card h3 a { color: var(--mm-ink); text-decoration: none; }

.mm-blog .wp-block-post-title a:hover,
.mm-blog__card h3 a:hover { color: var(--mm-purple); }

.mm-blog .wp-block-post-date,
.mm-blog__date {
  font-size: 0.83rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mm-purple);
  margin-bottom: 0.6rem;
  display: block;
}

.mm-blog .wp-block-post-excerpt__excerpt,
.mm-blog__card p { font-size: 0.95rem; color: var(--mm-soft); margin: 0; }

.mm-blog__all { margin-top: 2.2rem; text-align: center; }

/* ---------- Final CTA ---------- */

.mm-cta {
  background: var(--mm-grad-signature);
  border-radius: var(--mm-radius);
  padding: 4rem 2rem;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.mm-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 50% -20%, rgba(255, 255, 255, 0.18), transparent 65%);
  pointer-events: none;
}

.mm-cta > * { position: relative; }

.mm-cta h2 { color: #fff; margin: 0 0 0.8rem; font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.2rem); }

.mm-cta p { color: #ede9fe; max-width: 560px; margin: 0 auto 1.8rem; }

.mm-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

.mm-cta__buttons .mm-btn {
  background: #fff;
  color: var(--mm-purple-deep) !important;
}

/* ---------- Footer ---------- */

.mm-footer {
  background: var(--mm-purple-ink);
  color: #ddd6fe;
  padding: 4.5rem 1.5rem 2rem;
  font-size: 0.95rem;
}

.mm-footer a { color: #fff; text-decoration: none; }
.mm-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

.mm-footer__inner {
  max-width: var(--mm-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

.mm-footer__inner--slim { grid-template-columns: 1.6fr 1fr 1fr; }

.mm-footer__legal a { color: #ddd6fe; }
.mm-footer__legal a:hover { color: #fff; }

@media (max-width: 880px) { .mm-footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .mm-footer__inner { grid-template-columns: 1fr; } }

.mm-footer h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 1rem;
}

.mm-footer ul { list-style: none; margin: 0; padding: 0; }
.mm-footer li { margin-bottom: 0.55rem; }

.mm-footer__brand img {
  height: 40px;
  width: auto;
  margin-bottom: 1rem;
  /* The logo artwork is dark; render it white on the dark footer. */
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.mm-footer__brand p { margin: 0 0 0.8rem; color: #c4b5fd; }

.mm-footer__marn {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.83rem;
  font-weight: 600;
  color: #fff;
}

.mm-footer address { font-style: normal; color: #c4b5fd; line-height: 1.6; }

.mm-footer__bottom {
  max-width: var(--mm-container);
  margin: 3rem auto 0;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #a78bfa;
}

.mm-footer__social { display: flex; gap: 1rem; }

.mm-footer__social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.mm-footer__social a:hover { background: rgba(255, 255, 255, 0.2); text-decoration: none; }

.mm-footer__social svg { width: 17px; height: 17px; color: #fff; }

.mm-footer__disclaimer {
  max-width: var(--mm-container);
  margin: 1.4rem auto 0;
  font-size: 0.8rem;
  color: #8b7bb8;
  line-height: 1.6;
}

/* Mobile footer: everything centred */
@media (max-width: 560px) {
  .mm-footer { text-align: center; }
  /* img is inline by default — must be block for auto margins to centre it */
  .mm-footer__brand img { display: block; margin-left: auto; margin-right: auto; }
  .mm-footer__bottom { flex-direction: column; justify-content: center; text-align: center; gap: 1.2rem; }
  .mm-footer__social { justify-content: center; }
  .mm-footer__disclaimer { text-align: center; }
}

/* ---------- Inner pages (visa pages etc.) ---------- */

.mm-section--tint { background: var(--mm-lilac); }

.mm-page-hero {
  background: var(--mm-lilac);
  padding: 4.5rem 1.5rem 4rem;
}

.mm-page-hero__title {
  margin: 0 0 0.7rem;
  font-family: var(--mm-font-display);
  font-size: clamp(3rem, 2rem + 5.5vw, 5.6rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--mm-ink);
}

.mm-page-hero__lede {
  max-width: 640px;
  margin: 1rem auto 1.6rem;
  color: var(--mm-body);
  font-size: 1.1rem;
}

.mm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1.8rem;
}

.mm-chip {
  background: #fff;
  border: 1px solid var(--mm-line);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mm-purple-ink);
}

.mm-page-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

/* Numbered pathway cards */
.mm-numcards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  text-align: left;
}

@media (max-width: 880px) { .mm-numcards { grid-template-columns: 1fr; } }

.mm-numcard {
  background: #fff;
  border: 1px solid var(--mm-line);
  border-radius: var(--mm-radius);
  padding: 1.8rem 1.6rem;
  box-shadow: 0 4px 14px rgba(59, 7, 100, 0.05);
}

.mm-numcard__num {
  display: block;
  font-family: var(--mm-font-display);
  font-size: 2.6rem;
  color: var(--mm-purple);
  line-height: 1;
  margin-bottom: 0.7rem;
}

.mm-numcard h3 { margin: 0 0 0.3rem; font-size: 1.15rem; }

.mm-numcard__tag {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mm-purple);
  margin: 0 0 0.6rem;
}

.mm-numcard p { font-size: 0.95rem; color: var(--mm-body); margin: 0; }

/* Requirement cards */
.mm-req {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  text-align: left;
}

@media (max-width: 720px) { .mm-req { grid-template-columns: 1fr; } }

.mm-req__card {
  background: #fff;
  border: 1px solid var(--mm-line);
  border-radius: var(--mm-radius);
  padding: 1.6rem 1.6rem 1.3rem;
}

.mm-req__card h4 {
  margin: 0 0 0.8rem;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mm-purple-ink);
}

.mm-req__card ul { margin: 0; padding: 0; list-style: none; }

.mm-req__card li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.55rem;
  font-size: 0.96rem;
  color: var(--mm-body);
}

.mm-req__card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--mm-green);
  font-weight: 700;
}

/* Steps */
.mm-steps {
  max-width: 640px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  counter-reset: mmstep;
  text-align: left;
}

.mm-steps li {
  position: relative;
  counter-increment: mmstep;
  padding: 0 0 1.6rem 4rem;
}

.mm-steps li::before {
  content: counter(mmstep, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -0.2rem;
  font-family: var(--mm-font-display);
  font-size: 1.9rem;
  color: var(--mm-purple);
}

.mm-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 2.2rem;
  bottom: 0.3rem;
  width: 1px;
  background: var(--mm-line);
}

.mm-steps strong { display: block; color: var(--mm-ink); margin-bottom: 0.2rem; }
.mm-steps span { color: var(--mm-body); font-size: 0.97rem; }

/* Fee table */
.mm-feetable-wrap { overflow-x: auto; }

.mm-feetable {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--mm-radius-sm);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(59, 7, 100, 0.05);
  text-align: left;
}

.mm-feetable th {
  background: var(--mm-purple-ink);
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.9rem 1.2rem;
}

.mm-feetable td {
  padding: 0.85rem 1.2rem;
  border-top: 1px solid var(--mm-line);
  font-size: 0.97rem;
  color: var(--mm-body);
}

.mm-feetable td:last-child {
  font-weight: 700;
  color: var(--mm-ink);
  white-space: nowrap;
}

.mm-feenote {
  max-width: 700px;
  margin: 1.4rem auto 0;
  font-size: 0.85rem;
  color: var(--mm-soft);
}

/* FAQ accordions */
.mm-faq {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}

.mm-faq details {
  background: #fff;
  border: 1px solid var(--mm-line);
  border-radius: var(--mm-radius-sm);
  margin-bottom: 0.8rem;
  padding: 0;
}

.mm-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 3rem 1.1rem 1.4rem;
  font-weight: 600;
  color: var(--mm-ink);
  position: relative;
}

.mm-faq summary::-webkit-details-marker { display: none; }

.mm-faq summary::after {
  content: "+";
  position: absolute;
  right: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mm-font-display);
  font-size: 1.4rem;
  color: var(--mm-purple);
}

.mm-faq details[open] summary::after { content: "–"; }

.mm-faq details p {
  margin: 0;
  padding: 0 1.4rem 1.2rem;
  color: var(--mm-body);
  font-size: 0.97rem;
}

/* Pros & cons cards */
.mm-procon {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  text-align: left;
}

@media (max-width: 1000px) { .mm-procon { grid-template-columns: 1fr; } }

.mm-procon__card {
  background: #fff;
  border: 1px solid var(--mm-line);
  border-radius: var(--mm-radius);
  padding: 1.7rem 1.6rem;
}

.mm-procon__card h3 { margin: 0 0 0.6rem; font-size: 1.05rem; }

.mm-procon__best {
  font-size: 0.92rem;
  color: var(--mm-purple-ink);
  background: var(--mm-lilac);
  border-radius: 12px;
  padding: 0.6rem 0.9rem;
  margin: 0 0 1.1rem;
}

.mm-procon__h {
  margin: 0 0 0.5rem;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mm-procon__h--pro { color: var(--mm-green); }
.mm-procon__h--con { color: #d4740e; margin-top: 1rem; }

.mm-pros, .mm-cons { margin: 0; padding: 0; list-style: none; }

.mm-pros li, .mm-cons li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.45rem;
  font-size: 0.93rem;
  color: var(--mm-body);
}

.mm-pros li::before { content: "✓"; position: absolute; left: 0; color: var(--mm-green); font-weight: 700; }
.mm-cons li::before { content: "–"; position: absolute; left: 0; color: #d4740e; font-weight: 700; }

/* Points table group rows */
.mm-feetable__group td {
  background: var(--mm-lilac);
  font-weight: 700;
  color: var(--mm-purple-ink);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mm-feetable--points td:last-child { width: 90px; text-align: center; }
.mm-feetable--points th:last-child { text-align: center; }

.mm-subhead {
  margin: 2.2rem 0 1rem;
  font-size: 1.15rem;
  color: var(--mm-ink);
}

/* VAC table: both value columns emphasised */
.mm-feetable--vac td:not(:first-child) {
  font-weight: 700;
  color: var(--mm-ink);
  white-space: nowrap;
}

/* Processing time cards */
.mm-ptimes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  max-width: 860px;
  margin: 0 auto;
  text-align: left;
}

@media (max-width: 720px) { .mm-ptimes { grid-template-columns: 1fr; } }

.mm-ptime {
  background: #fff;
  border: 1px solid var(--mm-line);
  border-radius: var(--mm-radius);
  padding: 1.5rem 1.5rem 1.2rem;
}

.mm-ptime h4 { margin: 0 0 0.9rem; font-size: 1rem; color: var(--mm-ink); }

.mm-ptime__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.45rem 0;
  border-top: 1px solid var(--mm-line);
}

.mm-ptime__row span { font-size: 0.85rem; color: var(--mm-soft); }
.mm-ptime__row strong { color: var(--mm-purple); font-size: 1.05rem; white-space: nowrap; }

.mm-page-disclaimer {
  max-width: 760px;
  margin: 2rem auto 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--mm-soft);
}

/* Generic content pages (privacy, code of conduct, ...) */
.mm-prose {
  max-width: 780px;
  text-align: left;
}

.mm-prose h2 {
  font-size: 1.4rem;
  margin: 2.2rem 0 0.7rem;
}

.mm-prose p, .mm-prose li { color: var(--mm-body); font-size: 1rem; }

.mm-prose ul { padding-left: 1.3rem; }

.mm-prose li { margin-bottom: 0.4rem; }

/* ---------- Scroll reveal (progressive enhancement) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .mm-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
    transition-delay: calc(var(--mm-reveal-i, 0) * 70ms);
  }

  .js .mm-reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}
