/* Careers hub intro.
   Visual thesis: open Meditation Magazine's career tracks in the Meditation University
   homepage language, then hand each visitor into the existing track design.
   Direction already chosen: reference-driven. Intro follows meditationuniversity.us.
   Track bands reuse sites/mtt-track-funnels/styles.css via hub-tracks.css.
   Tokens: cream #FAF7F2, ink #1C1917, body #44403C, primary #9B51E0, primary-dark #882AE0,
   gold #C4A35A, border #E7E1D5, Cormorant Garamond + DM Sans, 12px radius, pill buttons,
   glass nav, soft shadow. Motion is hover-only and removed for reduced motion.
*/
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=DM+Sans:wght@400;500;600;700;800&display=swap");

/* Shared layout rhythm for every hub-owned block. .mu-general and .mu-footer are
   siblings of .mu-hub (not children), so layout tokens declared only on .mu-hub
   were undefined there: var(--max) made .mu-container's width invalid -> auto,
   which left "Start with the full MTT-200" flush-left at wide viewports. */
.mu-hub,
.mu-general,
.mu-footer {
  --max: 1180px;
  --mu-gutter: 36px;
}

.mu-hub {
  --primary: #9b51e0;
  --primary-dark: #882ae0;
  --gold: #c4a35a;
  --cream: #faf7f2;
  --card: #fffbf5;
  --text: #1c1917;
  --body: #44403c;
  --muted: #78716c;
  --border: #e7e1d5;
  --white: #ffffff;
  --radius: 12px;
  --button-radius: 100px;
  --shadow: 0 24px 80px rgba(28, 25, 23, 0.14);
  --deep-shadow: 0 36px 110px rgba(23, 17, 31, 0.34);
  position: relative;
  isolation: isolate;
  color: var(--body);
  background: var(--cream);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.6;
}

.mu-hub,
.mu-hub * { box-sizing: border-box; }

.hub-track .band-actions { margin-top: 28px; }

.hub-track[data-track="mental-health-professionals"] .specialty .button.alt {
  color: #f7f2e8;
  border-color: rgba(247, 242, 232, 0.55);
  background: transparent;
}

body {
  margin: 0;
  background: #faf7f2;
  color: #44403c;
  font-family: "DM Sans", system-ui, sans-serif;
}

img { max-width: 100%; }

.skip-link {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 10px;
  background: #17111f;
  color: #fff;
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; }

.mu-hub a { color: inherit; text-decoration: none; }

.mu-hub h1,
.mu-hub h2 {
  margin: 0;
  color: var(--text);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  line-height: 0.96;
}

.mu-nav {
  position: absolute;
  inset: 18px 0 auto 0;
  z-index: 5;
}

.mu-nav-inner {
  width: min(calc(100% - 28px), var(--max));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(231, 225, 213, 0.8);
  border-radius: 22px;
  background: rgba(255, 251, 245, 0.7);
  box-shadow: 0 10px 35px rgba(28, 25, 23, 0.08);
  backdrop-filter: blur(18px);
}

.mu-brand { display: inline-flex; align-items: center; }

.mu-brand img {
  width: auto;
  height: 42px;
  max-width: min(238px, 46vw);
  object-fit: contain;
}

.mu-nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
}

.mu-nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mu-nav-links a:link,
.mu-nav-links a:visited { color: var(--text); }

.mu-nav-links a:hover,
.mu-nav-links a:focus,
.mu-nav-links a:focus-visible,
.mu-nav-links a:active {
  background: var(--primary);
  color: #fff;
}

.mu-menu { display: none; position: relative; }

.mu-menu summary {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(231, 225, 213, 0.9);
  border-radius: 50%;
  background: var(--white);
  color: var(--text);
  list-style: none;
  cursor: pointer;
}

.mu-menu summary::-webkit-details-marker { display: none; }

.mu-menu summary svg { width: 22px; height: 22px; }

.mu-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  display: grid;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 251, 245, 0.96);
  box-shadow: var(--shadow);
}

.mu-menu-panel a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--text);
  font-weight: 700;
}

.mu-menu-panel a { color: var(--text); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.78rem; }
.mu-menu-panel a:link,
.mu-menu-panel a:visited { color: var(--text); }
.mu-menu-panel a:hover,
.mu-menu-panel a:focus,
.mu-menu-panel a:focus-visible,
.mu-menu-panel a:active { background: var(--primary); color: #fff; }

.mu-hero {
  position: relative;
  min-height: 100svh;
  padding: 150px 0 54px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(250, 247, 242, 0.98) 0%, rgba(255, 251, 245, 0.92) 48%, var(--cream) 100%),
    repeating-linear-gradient(90deg, rgba(155, 81, 224, 0.06) 0 1px, transparent 1px 110px);
}

.mu-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 251, 245, 0.72), rgba(255, 251, 245, 0.42) 38%, rgba(136, 42, 224, 0.12) 100%),
    repeating-linear-gradient(90deg, rgba(196, 163, 90, 0.08) 0 1px, transparent 1px 96px);
}

.mu-container {
  width: min(calc(100% - var(--mu-gutter)), var(--max));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.mu-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.58fr);
  gap: clamp(30px, 6vw, 86px);
  align-items: center;
}

.mu-hero-copy { max-width: 840px; min-width: 0; }

.mu-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.mu-eyebrow::before {
  content: "";
  width: 40px;
  height: 1px;
  background: currentColor;
}

.mu-hero h1 {
  max-width: 14ch;
  font-size: clamp(3.35rem, 6.4vw, 5.9rem);
}

.mu-subtitle {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--body);
  font-size: clamp(1.1rem, 2vw, 1.42rem);
  line-height: 1.52;
}

.mu-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.mu-btn {
  box-sizing: border-box;
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--button-radius);
  font-weight: 800;
  line-height: 1.12;
  text-align: center;
}

.mu-btn svg { width: 18px; height: 18px; flex: 0 0 auto; }

.mu-btn:hover { transform: translateY(-3px); }

a.mu-btn-primary,
a.mu-btn-primary:link,
a.mu-btn-primary:visited,
a.mu-btn-outline,
a.mu-btn-outline:link,
a.mu-btn-outline:visited {
  background: #fffbf5;
  border-color: rgba(28, 25, 23, 0.28);
  color: #1c1917;
  box-shadow: none;
}

a.mu-btn-primary:hover,
a.mu-btn-outline:hover,
a.mu-btn-primary:focus-visible,
a.mu-btn-outline:focus-visible,
a.mu-btn-primary:active,
a.mu-btn-outline:active {
  background: #fff;
  border-color: #1c1917;
  color: #1c1917;
}

.mu-trust {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 760px);
  margin-top: 28px;
  padding: 12px;
  border: 1px solid rgba(231, 225, 213, 0.85);
  border-radius: 20px;
  background: rgba(255, 251, 245, 0.76);
  box-shadow: 0 18px 46px rgba(28, 25, 23, 0.08);
}

.mu-trust-item {
  min-width: 0;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border: 1px solid rgba(231, 225, 213, 0.8);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.mu-trust-item img {
  width: 100%;
  max-width: 132px;
  max-height: 48px;
  object-fit: contain;
}

.mu-visual { min-width: 0; }

.mu-cards {
  --mu-shift: 0px;
  position: relative;
  width: min(100%, 620px);
  height: 430px;
  margin-left: auto;
}

.mu-card {
  position: absolute;
  width: min(64%, 420px);
  aspect-ratio: 3 / 2;
  margin: 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  background: #fffbf5;
  box-shadow: var(--deep-shadow);
  overflow: hidden;
  cursor: pointer;
}

.mu-card-shift { display: block; width: 100%; height: 100%; }

.mu-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #f6f1e8;
  border-radius: 16px;
}

.mu-card.one { left: 0; top: 0; z-index: 2; transform: rotate(-3deg); }
.mu-card.two { right: 0; top: 6%; z-index: 1; transform: rotate(2.5deg); }
.mu-card.three { left: 18%; bottom: 0; z-index: 3; transform: rotate(-1deg); }
.mu-card.one .mu-card-shift { transform: translate3d(0, calc(var(--mu-shift) * -1), 0); }
.mu-card.two .mu-card-shift { transform: translate3d(0, calc(var(--mu-shift) * 0.4), 0); }
.mu-card.three .mu-card-shift { transform: translate3d(0, var(--mu-shift), 0); }

.mu-card:hover,
.mu-card:focus-visible,
.mu-card.is-front { z-index: 8; }

.mu-card:focus-visible { outline: 3px solid #882ae0; outline-offset: 4px; }

.mu-card-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 16px;
}

.mu-card-picks a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(23, 17, 31, 0.78);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.mu-card-picks a:link,
.mu-card-picks a:visited,
.mu-card-picks a:hover,
.mu-card-picks a:focus,
.mu-card-picks a:focus-visible,
.mu-card-picks a:active { color: #fff; }

.mu-general {
  padding: clamp(64px, 8vw, 96px) 0;
  background: var(--cream);
  color: var(--body);
}

.mu-general h2 {
  max-width: 16ch;
  font-size: clamp(2.8rem, 6vw, 5rem);
}

.mu-general p:not(.mu-eyebrow) {
  max-width: 68ch;
  margin: 18px 0 28px;
  font-size: 1.08rem;
  line-height: 1.6;
}

#business, #schools, #clinicians, #general { scroll-margin-top: 28px; }

.mu-counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid rgba(231, 225, 213, 0.9);
  border-radius: 22px;
  background: rgba(231, 225, 213, 0.9);
  box-shadow: var(--shadow);
}

.mu-counter {
  min-height: 124px;
  padding: 22px;
  display: grid;
  align-content: center;
  gap: 4px;
  background: rgba(255, 251, 245, 0.86);
}

.mu-counter strong {
  color: var(--text);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.4rem, 4.8vw, 4rem);
  font-weight: 700;
  line-height: 0.9;
}

.mu-counter span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mu-footer {
  padding: 32px clamp(20px, 4vw, 48px) 40px;
  border-top: 1px solid var(--border);
  background: var(--cream);
  color: var(--muted);
  font-size: 0.86rem;
}

.mu-footer .mu-container { width: min(100%, var(--max)); }

.mu-footer-row {
  display: flex;
  justify-content: space-between;
  gap: 18px 28px;
  flex-wrap: wrap;
}

.mu-footer a { color: var(--text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.mu-hub :focus-visible,
.mu-footer :focus-visible,
.hub-track a:focus-visible {
  outline: 3px solid #882ae0;
  outline-offset: 3px;
}

/* Desktop-only grouped intro composition.
   Above 980px the three intro cards + path picks read as one framed cluster
   (same panel language as .mu-trust) instead of separate floating pieces.
   The stage height is proportional to its width, so the cards always overlap
   at every desktop width. Mobile/tablet (<=980px) keep the existing rules below.
   Default stack order on desktop: the Leadership card (.one) is in front, because
   its title/subtitle are baked into the bottom of the image and any card laid
   over its lower edge hides them. Card three tucks under it by a small band
   (above the clinicians' faces); hover/focus/click still bring any card to front. */
@media (min-width: 981px) {
  .mu-visual {
    padding: 18px 18px 16px;
    border: 1px solid rgba(231, 225, 213, 0.85);
    border-radius: 28px;
    background: rgba(255, 251, 245, 0.72);
    box-shadow: 0 18px 46px rgba(28, 25, 23, 0.08);
  }
  .mu-cards {
    width: 100%;
    height: auto;
    aspect-ratio: 100 / 82;
    margin: 0;
  }
  .mu-card {
    width: 66%;
    box-shadow: 0 18px 48px rgba(23, 17, 31, 0.22);
  }
  .mu-card.one { left: 0; top: 0; z-index: 4; transform: rotate(-2.5deg); }
  .mu-card.two { right: 0; top: 7%; transform: rotate(2deg); }
  .mu-card.three { left: 18%; top: auto; bottom: 0; transform: rotate(-1deg); }
  .mu-card:hover,
  .mu-card:focus-visible,
  .mu-card.is-front { z-index: 8; }
  .mu-card-picks {
    justify-content: center;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(231, 225, 213, 0.85);
  }
}

@media (max-width: 980px) {
  .mu-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .mu-cards { margin-inline: auto; }
  .mu-counters { grid-template-columns: 1fr 1fr; }
  .mu-trust { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .mu-nav-links { display: none; }
  .mu-menu { display: block; }
  .mu-trust { grid-template-columns: 1fr 1fr; }
  .mu-hero { min-height: 0; padding: 118px 0 36px; }
  .mu-actions { flex-direction: column; }
  .mu-btn { width: 100%; }
  .mu-cards { height: 280px; margin-inline: auto; }
  .mu-card { width: 64%; }
  .mu-card-picks { justify-content: flex-start; }
  .mu-counter { min-height: 104px; padding: 16px; }
  .mu-footer-row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .mu-hub *,
  .mu-hub *::before,
  .mu-hub *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .mu-btn:hover { transform: none; }
  .mu-card.one .mu-card-shift,
  .mu-card.two .mu-card-shift,
  .mu-card.three .mu-card-shift { transform: none; }
}
