.home-overview-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.home-map-prompt {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.home-overview-cards {
  margin-top: 1rem;
}

.home-deep-dive {
  margin: 2rem 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.home-deep-dive > summary {
  padding: 0.5rem 0;
}

.explainer-page {
  max-width: 760px;
}

.explainer-card {
  margin: 2rem auto 1.5rem;
  padding: clamp(1rem, 4vw, 2rem);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(43, 40, 35, 0.08);
}

.explainer-art {
  width: min(100%, 40rem);
  margin: 0 auto 1rem;
  padding: clamp(0.35rem, 2vw, 1rem);
  background: radial-gradient(ellipse at 50% 45%, #fffdf8 0%, #efe8d9 72%, #e8dfce 100%);
  overflow: hidden;
}

.explainer-art svg {
  display: block;
  width: 100%;
  height: auto;
}

.scene-backdrop {
  fill: #e7deca;
  opacity: 0.72;
}

.scene-sparkle {
  fill: #d3a84f;
  opacity: 0.7;
  transform-box: fill-box;
  transform-origin: center;
}

.scene-art {
  display: none;
  transform-box: view-box;
  transform-origin: center;
}

.scene-thread,
.choice-thread {
  fill: none;
  stroke: #66836b;
  stroke-width: 4;
  stroke-linecap: round;
  opacity: 0.58;
}

.scene-thread--soft {
  stroke: #c48e73;
  stroke-width: 2.5;
  opacity: 0.5;
}

.person-head,
.person-body {
  stroke: #fffaf0;
  stroke-width: 3;
}

.person-head {
  fill: #c27b61;
}

.person-body {
  fill: #71896d;
  stroke-linejoin: round;
}

.person--gold .person-head,
.person--gold .person-body {
  fill: #d1a64c;
}

.person--green .person-head,
.person--green .person-body {
  fill: #71896d;
}

.person--blue .person-head,
.person--blue .person-body {
  fill: #78999a;
}

.scene-heart {
  fill: #cf9077;
  stroke: #fff8ec;
  stroke-width: 5;
}

.sharing-bowl {
  fill: #78927a;
  stroke: #536e59;
  stroke-width: 4;
}

.sharing-bowl-rim {
  fill: none;
  stroke: #f7eedc;
  stroke-width: 6;
  stroke-linecap: round;
}

.sharing-leaf,
.growth-leaf {
  fill: #7d9a70;
  stroke: #5d795d;
  stroke-width: 2;
}

.sharing-leaf--two,
.growth-leaf--gold {
  fill: #d2aa57;
}

.sharing-fruit {
  fill: #c77b5f;
}

.sharing-fruit--two,
.growth-leaf--rose {
  fill: #d79b83;
}

.scene-swoosh {
  fill: none;
  stroke: #d4ae62;
  stroke-width: 4;
  stroke-linecap: round;
  opacity: 0.7;
}

.voice-ring {
  fill: none;
  stroke: #7d9a79;
  stroke-width: 3;
  opacity: 0.5;
}

.voice-ring--inner {
  stroke: #d2a858;
  stroke-dasharray: 5 9;
}

.speech-bubble {
  fill: #fff9ec;
  stroke: #c27b61;
  stroke-width: 4;
  stroke-linejoin: round;
}

.speech-wave {
  fill: none;
  stroke: #70896e;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.choice-thread--dashed {
  stroke: #d2a858;
  stroke-dasharray: 8 11;
  opacity: 0.7;
}

.choice-star {
  fill: #fff8e9;
  stroke: #c27b61;
  stroke-width: 4;
}

.choice-check {
  fill: none;
  stroke: #66836b;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.growth-ground,
.growth-root {
  fill: none;
  stroke: #91785c;
  stroke-width: 4;
  stroke-linecap: round;
}

.growth-stem,
.growth-branch {
  fill: none;
  stroke: #66836b;
  stroke-width: 8;
  stroke-linecap: round;
}

.growth-branch {
  stroke-width: 5;
}

.growth-flower {
  fill: #c98169;
  stroke: #fff8ec;
  stroke-width: 5;
}

.growth-flower-core {
  fill: #e1bb65;
}

.explainer-art.is-playing .scene-art {
  animation: scene-arrive 0.9s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.explainer-art.is-playing .scene-thread,
.explainer-art.is-playing .choice-thread {
  animation: thread-reveal 1.6s ease-out both;
}

.explainer-art.is-playing .person {
  animation: person-arrive 0.75s ease-out both;
}

.explainer-art.is-playing .person:nth-of-type(even) {
  animation-delay: 0.16s;
}

.explainer-art.is-playing .scene-sparkle {
  animation: sparkle 2.4s ease-in-out infinite alternate;
}

.explainer-art.is-playing .scene-heart,
.explainer-art.is-playing .sharing-fruit,
.explainer-art.is-playing .choice-star {
  animation: gentle-pulse 2.4s ease-in-out infinite alternate;
}

.explainer-art.is-playing .growth-leaf {
  transform-box: fill-box;
  transform-origin: center;
  animation: leaf-sway 3s ease-in-out infinite alternate;
}

.explainer-art.is-playing .voice-ring--inner {
  animation: ring-glow 2.5s ease-in-out infinite alternate;
}

.explainer-stage {
  min-height: 8rem;
  display: grid;
  align-content: center;
  text-align: center;
}

.explainer-message[hidden] {
  display: none;
}

.explainer-message h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.25rem, 4vw, 1.8rem);
}

.explainer-message p {
  max-width: 38rem;
  margin: 0 auto;
  color: var(--ink-soft);
}

.home-deep-dive summary {
  color: var(--forest-deep);
  cursor: pointer;
  font-weight: 600;
}

@keyframes scene-arrive {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes thread-reveal {
  from {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    opacity: 0.1;
  }
  to {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

@keyframes person-arrive {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes sparkle {
  from {
    opacity: 0.35;
    transform: scale(0.7);
  }
  to {
    opacity: 1;
    transform: scale(1.35);
  }
}

@keyframes gentle-pulse {
  from {
    transform: scale(0.92);
  }
  to {
    transform: scale(1.12);
  }
}

@keyframes leaf-sway {
  from {
    transform: rotate(-3deg);
  }
  to {
    transform: rotate(4deg);
  }
}

@keyframes ring-glow {
  from {
    opacity: 0.35;
    stroke-width: 2;
  }
  to {
    opacity: 0.85;
    stroke-width: 5;
  }
}

.explainer-art {
  position: relative;
  width: min(100%, 44rem);
  height: clamp(16rem, 42vw, 25rem);
  margin-bottom: 0.5rem;
  padding: 0;
  display: grid;
  place-items: center;
  aspect-ratio: auto;
  background: radial-gradient(ellipse at center, #fffdf8 0%, #efe8d9 72%, #e8dfce 100%);
}

.explainer-art > svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.explainer-map-land {
  fill: #e8e0cf;
  stroke: #fff;
  stroke-width: 1;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.mycelium-thread {
  fill: none;
  stroke: #66836b;
  stroke-width: 0.9;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
  vector-effect: non-scaling-stroke;
}

.mycelium-node {
  fill: #bd8063;
  stroke: #fff9ee;
  stroke-width: 0.8;
  opacity: 0;
  vector-effect: non-scaling-stroke;
}

.explainer-art.has-started .mycelium-thread {
  animation: mycelium-grow 1.8s ease-out both;
}

.explainer-art.has-started .mycelium-node {
  animation: mycelium-node-appear 0.45s ease-out both;
}

.explainer-art.is-paused .mycelium-thread,
.explainer-art.is-paused .mycelium-node {
  animation-play-state: paused;
}

.explainer-map-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 4.5rem;
  height: 4.5rem;
  padding: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(37, 56, 40, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  box-shadow: 0 3px 14px rgba(30, 42, 31, 0.2);
  backdrop-filter: blur(5px);
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.explainer-map-play::before {
  width: 0;
  height: 0;
  margin-left: 0.25rem;
  border-top: 0.72rem solid transparent;
  border-bottom: 0.72rem solid transparent;
  border-left: 1rem solid currentColor;
  content: "";
}

.explainer-map-play[aria-pressed="true"]::before {
  width: 0.9rem;
  height: 1.35rem;
  margin-left: 0;
  border: 0;
  background: linear-gradient(to right, currentColor 0 32%, transparent 32% 68%, currentColor 68% 100%);
}

.explainer-map-play:hover {
  background: rgba(37, 56, 40, 0.78);
  box-shadow: 0 5px 18px rgba(30, 42, 31, 0.28);
  transform: translate(-50%, -50%) scale(1.05);
}

.explainer-map-play:focus-visible {
  outline: 3px solid #d5ad5c;
  outline-offset: 4px;
}

.explainer-map-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin: 0.25rem 0 1rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.explainer-map-caption strong {
  color: var(--forest-deep);
}

@keyframes mycelium-grow {
  from {
    stroke-dashoffset: 1;
    opacity: 0.08;
  }
  to {
    stroke-dashoffset: 0;
    opacity: 0.68;
  }
}

@keyframes mycelium-node-appear {
  from {
    opacity: 0;
    transform: scale(0.35);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 520px) {
  .explainer-art {
    height: clamp(15rem, 66vw, 21rem);
  }

  .explainer-map-play {
    width: 4rem;
    height: 4rem;
  }

  .explainer-map-caption {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .explainer-art.has-started .mycelium-thread {
    animation: none;
    stroke-dashoffset: 0;
    opacity: 0.68;
  }

  .explainer-art.has-started .mycelium-node {
    animation: none;
    opacity: 1;
  }
}