/* One edge, three muscles and seven dispositions, sharing a centre. */
body.home-page .reference-hero {
  display: grid;
  align-items: center;
  padding-top: clamp(8rem, 17vh, 10rem);
  padding-bottom: 4rem;
  background: #fdfdfb;
}

.home-page .reference-hero::after { content: none; }

.home-page .reference-hero-content {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 2rem;
}

.hero-framework-copy { min-width: 0; container-type: inline-size; }

.home-page .reference-hero h1 {
  /* Size against the actual text column, including narrow desktop columns. */
  font-size: min(4.75rem, 10.3cqi);
  line-height: 1.08;
}

.home-page .reference-hero h1 span { display: block; white-space: nowrap; }
.home-page .reference-hero-eyebrow { font-size: 0.8rem; letter-spacing: 0.18em; }
.home-page .reference-hero-intro { font-size: clamp(1.15rem, 1.65vw, 1.35rem); line-height: 1.65; }
.home-page .reference-hero-cta { font-size: 1.0625rem; }
.home-page .reference-desktop-break { display: none; }

.hero-framework {
  container-type: inline-size;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  color: #24363c;
  font-family: 'Inter', sans-serif;
}

.framework-map { position: relative; width: 100%; aspect-ratio: 1; }
.framework-rings { position: absolute; inset: 0; width: 100%; height: 100%; }

.framework-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 25%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #542078;
  color: #fff;
  text-align: center;
}

.framework-core > span { font-size: clamp(7px, 1.7cqi, 11px); letter-spacing: 0.05em; }
.framework-core > strong { font-size: clamp(10px, 3.5cqi, 22px); font-weight: 600; letter-spacing: -0.045em; }

.framework-muscle {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 18%;
  aspect-ratio: 1;
  padding: 0.25rem;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(36, 54, 60, 0.13);
  border-radius: 50%;
  color: #24363c;
  font: inherit;
  font-size: clamp(10px, 2.5cqi, 16px);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: box-shadow 180ms ease, border-color 180ms ease;
}

.framework-muscle-clarity { top: 28%; left: 50%; background: #cbe4eb; }
.framework-muscle-courage { top: 61.5%; left: 69%; background: #efb094; }
.framework-muscle-choice { top: 61.5%; left: 31%; background: #d6dfc7; }
.framework-muscle:hover { border-color: #76518b; box-shadow: 0 0 0 5px rgba(84, 32, 120, 0.07); }
.framework-muscle > svg { width: 24%; height: 24%; flex-shrink: 0; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.framework-dispositions { margin: 0; padding: 0; list-style: none; }
.framework-dispositions > li {
  position: absolute;
  top: var(--y);
  left: var(--x);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 22%;
  padding: 0.35rem 0;
  transform: translate(-50%, -50%);
  border-radius: 1rem;
  background: #faf8f5;
  font-size: clamp(10px, 2.5cqi, 16px);
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
}

.framework-dispositions > li > span {
  display: grid;
  place-items: center;
  width: 1.6em;
  height: 1.6em;
  margin-bottom: 0.35rem;
  border-radius: 50%;
  background: var(--disposition-color);
  font-size: 0.75em;
  font-weight: 600;
}

.hero-framework > figcaption { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.55rem; margin-top: 0.25rem; color: #542078; font-size: 0.8rem; line-height: 1.6; text-align: center; }
.hero-framework > figcaption strong { font-weight: 500; }
.hero-framework > figcaption small { flex-basis: 100%; color: #766e7a; font-size: 0.8rem; }
.framework-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.framework-scroll-cue { display: inline-flex; align-items: center; gap: 0.65rem; padding: 0.4rem 0.25rem; color: #766e7a; text-decoration: none; }
.framework-scroll-cue:hover { color: #542078; }
.framework-scroll-cue:focus-visible { outline: 2px solid #542078; outline-offset: 4px; border-radius: 4px; }
.framework-scroll-cue > span:last-child { color: #fc7925; }

/* Only this illustration moves; page content keeps its normal scroll flow. */
.framework-motion-ready .framework-rings {
  overflow: visible;
  transform-origin: 50% 50%;
  transform: translateY(var(--framework-drift, 0px)) scale(var(--framework-squeeze, 1), var(--framework-stretch, 1));
  opacity: var(--framework-ring-opacity, 1);
}

.framework-motion-ready .framework-core {
  transform: translate(-50%, -50%) translateY(var(--framework-drift, 0px));
  opacity: var(--framework-core-opacity, 1);
}

.framework-motion-ready .framework-muscle {
  opacity: var(--framework-muscle-opacity, 1);
  pointer-events: var(--framework-hit-area, auto);
}

.framework-motion-ready .framework-dispositions > li {
  opacity: var(--framework-label-opacity, 1);
}

.framework-journey-overlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 11;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
}

.framework-journey-overlay[hidden] { display: none; }
.framework-journey-thread { stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 1; }
.framework-journey-seeds > circle { stroke: rgba(84, 32, 120, 0.15); stroke-width: 1; }

@media (max-width: 1100px) {
  .home-page .reference-hero-content { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .hero-framework-copy { max-width: 46rem; }
  .home-page .reference-hero-intro { max-width: 38rem; }
}

@media (max-width: 640px) {
  body.home-page .reference-hero { padding-top: 8rem; padding-bottom: 3rem; }
  .home-page .reference-hero-content { gap: 2rem; }
  .framework-muscle { gap: 0.2rem; }
  .framework-core { gap: 0.2rem; }
  .framework-dispositions > li { padding: 0.2rem 0; }
  .framework-dispositions > li > span { margin-bottom: 0.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .framework-muscle { transition: none; }
}

/* The hero and story share a canvas and one continuous illustration. */
.sthir-introduction {
  /* Official palette from Sthir's Brand Visual Design System. */
  --sthir-brand-purple: #662d91;
  --sthir-brand-orange: #f26921;
  --sthir-brand-red: #e81e26;
  --sthir-brand-yellow: #ffeea9;
  --introduction-bg: #fffdf8;
  --introduction-line: rgba(102, 45, 145, 0.25);
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, var(--introduction-bg) 0%, var(--introduction-bg) 72%, #fff 100%);
}

body.home-page .sthir-introduction .reference-hero {
  z-index: 1;
  min-height: 92svh;
  overflow: visible;
  padding-bottom: clamp(2.5rem, 5vh, 4rem);
  background: transparent;
}

.home-page .sthir-introduction .reference-hero-content,
.home-page .sthir-introduction .home-story-layout {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(3rem, 5vw, 5rem);
}

body.home-page .sthir-introduction #mind-gym-story {
  z-index: 1;
  padding-top: clamp(2.5rem, 5vw, 4rem);
  border: 0;
  background: transparent;
}

.sthir-introduction .hero-framework { max-width: 560px; }
.sthir-introduction .framework-rings > circle:first-child { fill: none; stroke: var(--introduction-line); }
.sthir-introduction .framework-rings > circle:last-child { fill: var(--sthir-brand-yellow); fill-opacity: 0.35; stroke: var(--introduction-line); }
.sthir-introduction .framework-core { background: #fff; color: var(--sthir-brand-purple); border: 1px solid var(--introduction-line); }
.sthir-introduction .framework-core > span { color: var(--sthir-brand-purple); }
.sthir-introduction .framework-muscle { border-color: var(--introduction-line); background: #fff; color: var(--sthir-brand-purple); }
.sthir-introduction .framework-muscle-clarity { color: var(--sthir-brand-purple); }
.sthir-introduction .framework-muscle-courage > svg { color: var(--sthir-brand-orange); }
.sthir-introduction .framework-muscle-choice > svg { color: var(--sthir-brand-red); }
.sthir-introduction .reference-hero h1,
.sthir-introduction .home-section-title,
.sthir-introduction .text-brand-accent1 { color: var(--sthir-brand-purple); }
.sthir-introduction .reference-hero-eyebrow { color: var(--sthir-brand-orange); }
.sthir-introduction .reference-hero-cta { background: var(--sthir-brand-orange); }
.sthir-introduction .reference-hero-cta:hover { background: var(--sthir-brand-red); }

.framework-disposition-markers > li {
  width: 6%;
  min-width: 25px;
  aspect-ratio: 1;
  padding: 0;
  background: transparent;
}

.framework-disposition-markers > li > span:first-child {
  width: 100%;
  height: 100%;
  margin: 0;
  border: 3px solid var(--introduction-bg);
  font-size: clamp(9px, 1.9cqi, 11px);
  font-weight: 500;
}

.sthir-introduction .hero-framework > figcaption { margin-top: 1rem; gap: 0.6rem; font-size: 0.75rem; }
.sthir-introduction .hero-framework > figcaption small { font-size: 0.75rem; }
.sthir-introduction .framework-scroll-cue { color: #86758f; }

.framework-blend-canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  overflow: hidden;
  color: var(--introduction-line);
  pointer-events: none;
}

.framework-blend-canvas[hidden] { display: none; }
.framework-blend-canvas > path { stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; }
.framework-blend-tail { stroke-dasharray: 1; }
.framework-blend-ready .framework-rings > circle:first-child { visibility: hidden; }

.home-page .sthir-introduction .home-practice-heading {
  margin: 0 0 1.5rem 5.25rem;
  color: var(--sthir-brand-purple);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-page .sthir-introduction .home-practice-step:not(:last-child)::after {
  left: calc(2rem - 0.625px);
  width: 1.25px;
  background: var(--introduction-line);
}

.home-page .sthir-introduction .home-practice-icon {
  border-color: var(--introduction-bg);
  outline-color: var(--introduction-line);
}

.home-page .sthir-introduction .home-practice-brand-icon {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.home-page .sthir-introduction .home-practice-number { color: var(--sthir-brand-purple); }

.home-page .sthir-introduction .home-practice-copy h3 {
  color: var(--sthir-brand-purple);
  font-weight: 600;
  letter-spacing: -0.015em;
  text-transform: none;
}

@media (max-width: 1100px) {
  .home-page .sthir-introduction .reference-hero-content,
  .home-page .sthir-introduction .home-story-layout { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
  body.home-page .sthir-introduction .reference-hero { min-height: auto; }
  .home-page .sthir-introduction .home-story-practice { padding-top: 2.5rem; border: 0; }
}

/* Seven upright planets orbit the centre, then settle into the story path. */
.framework-solar-canvas {
  position: absolute;
  top: 0;
  left: 0;
  /* Travelling icons must remain visible above already-landed badges. */
  z-index: 2;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
}

.framework-solar-canvas[hidden] { display: none; }
.framework-solar-ready .framework-disposition-markers { opacity: 0; }
.framework-solar-planet-halo { fill: var(--introduction-bg); stroke: var(--introduction-line); stroke-width: 1; }
.framework-solar-planet-label { fill: var(--sthir-brand-purple); font-family: 'Inter', sans-serif; font-weight: 500; text-anchor: middle; paint-order: stroke; stroke: var(--introduction-bg); stroke-width: 4px; stroke-linejoin: round; }
.framework-solar-planet-number { fill: var(--sthir-brand-purple); font-family: 'Inter', sans-serif; font-weight: 500; letter-spacing: 0.08em; text-anchor: middle; paint-order: stroke; stroke: var(--introduction-bg); stroke-width: 3px; }
.framework-solar-planet-icon { color: var(--sthir-brand-purple); }

.framework-motion-toggle {
  padding: 0.35rem 0.75rem;
  border: 1px solid #e1d9e7;
  border-radius: 999px;
  background: transparent;
  color: #86758f;
  font: inherit;
  font-size: 0.7rem;
  cursor: pointer;
}

.framework-motion-toggle[hidden] { display: none; }
.framework-motion-toggle:hover { background: #f2edf5; color: #542078; }
.framework-motion-toggle:focus-visible { outline: 2px solid #542078; outline-offset: 4px; }

@media (max-width: 1100px) {
  .home-page .sthir-introduction .home-story-narrative { display: contents; }
  .home-page .sthir-introduction .home-story-narrative > .home-section-heading { order: 0; margin-bottom: 0; }
  .home-page .sthir-introduction .home-story-practice { order: 1; padding-top: 0; }
  .home-page .sthir-introduction .mind-gym-story-copy { order: 2; max-width: 48rem; }
}

/* The practice heading shares the opening paragraph's first baseline. */
.home-page .sthir-introduction .home-story-layout {
  row-gap: 0;
  align-items: first baseline;
}

.home-page .sthir-introduction .home-story-heading { grid-column: 1; grid-row: 1; }
.home-page .sthir-introduction .home-story-narrative { grid-column: 1; grid-row: 2; }
.home-page .sthir-introduction .home-story-practice {
  grid-column: 2;
  grid-row: 2;
  justify-self: center;
  width: min(100%, 23rem);
  padding-top: 0;
}

.home-page .sthir-introduction .home-practice-heading {
  margin: 0 0 1.5rem;
  text-align: center;
}

.home-page .sthir-introduction .mind-gym-quote {
  grid-column: 1 / -1;
  grid-row: 3;
  align-self: start;
  width: 100%;
  max-width: none;
  margin: 2.5rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.9;
}

@media (max-width: 1100px) {
  .home-page .sthir-introduction .home-story-layout { row-gap: 3rem; align-items: start; }
  .home-page .sthir-introduction .home-story-heading { grid-column: 1; grid-row: auto; order: 0; margin-bottom: 0; }
  .home-page .sthir-introduction .home-story-practice { grid-column: 1; grid-row: auto; order: 1; }
  .home-page .sthir-introduction .mind-gym-quote { grid-row: auto; order: 3; margin-top: 0; }
}
