/* Small exercise scenes share the material and palette of the service artwork. */
.ma-storybook .member-heading {
  display: flow-root;
  max-width: 1040px !important;
  text-align: left !important;
}
.ma-storybook .member-heading-copy { min-width: 0; }
.ma-storybook .member-heading .wwo-eyebrow { justify-content: flex-start; }
.ma-storybook .member-heading .wwo-sub { margin-inline: 0 !important; }
.ma-storybook .member-heading .wwo-title { text-wrap: pretty; }
.ma-storybook .member-heading--reverse .member-scene { float: left; margin: 0 24px 8px 0; }
.member-scene {
  position: relative;
  z-index: 2;
  float: right;
  width: 184px;
  aspect-ratio: 1;
  margin: 0 0 8px 24px;
  isolation: isolate;
  background: var(--member-ground, #fff);
}
#services .member-scene { --member-ground: #edf8ff; }
#community .member-scene { --member-ground: #fffbe9; }
.ma-storybook .readable-banner { display: flow-root; }
.ma-storybook .readable-banner .member-scene {
  --member-ground: var(--banner-wash);
  width: 104px;
  margin: -4px -4px 6px 10px;
}
.member-art {
  position: absolute;
  inset: 0;
  mix-blend-mode: multiply;
  filter: brightness(1.015);
  pointer-events: none;
}
.member-art img,
.member-art video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.member-art video { opacity: 0; }
.member-video-ready .member-art video { opacity: 1; }
.member-motion-toggle {
  position: absolute;
  z-index: 1;
  bottom: 0;
  right: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #08789e;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 140ms, border-color 140ms;
}
.member-motion-toggle[hidden] { display: none; }
.member-motion-toggle:hover { background: #fff8d9; border-color: #e1be32; }
.member-motion-toggle:focus-visible { outline: 3px solid #08789e; outline-offset: 3px; }
.member-motion-toggle::before {
  content: '';
  width: 9px;
  height: 12px;
  border-inline: 3px solid currentColor;
  box-sizing: border-box;
}
.member-motion-toggle[data-paused='true']::before {
  width: 0;
  height: 0;
  margin-left: 3px;
  border: 6px solid transparent;
  border-left: 9px solid currentColor;
  border-right: 0;
}

/* The overview heading and its three service cards use one shared page grid. */
.ma-storybook #services .wwo-band::after {
  /* A flat section ground lets the cartoon edges disappear into the page. */
  display: none;
}
.ma-storybook #services .service-overview {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
}
.ma-storybook #services .service-overview-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  align-items: center;
  gap: 32px;
  max-width: none !important;
  margin: 0 0 32px;
}
.ma-storybook #services .service-overview-heading > .member-scene {
  float: none;
  width: 200px;
  margin: 0;
  justify-self: end;
}
.ma-storybook #services .service-overview-heading .wwo-title {
  max-width: 20ch;
  margin: 0 0 20px;
  text-wrap: balance;
}
.ma-storybook #services .service-overview-heading .wwo-sub {
  max-width: 70ch;
  margin: 0 !important;
}
.ma-storybook #services .service-overview .wwo-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: none;
  margin: 0;
}
.ma-storybook #services .service-overview .wwo-card {
  min-width: 0;
  padding: 0;
  gap: 0;
  background: #fff;
  border: 2px solid #d8e2e8;
  border-radius: 24px !important;
  box-shadow: none;
  transition: border-color 140ms;
}
.ma-storybook #services .service-overview .wwo-card:hover {
  transform: none;
  box-shadow: none;
}
.ma-storybook #services .service-overview .wwo-card:focus-within {
  border-color: var(--accent);
}
.ma-storybook #services .service-card-scene {
  --member-ground: #fff;
  float: none;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
}
.ma-storybook #services .service-card-scene .member-art {
  mix-blend-mode: normal;
  filter: none;
}
.ma-storybook #services .service-card-scene .member-motion-toggle {
  right: 10px;
  bottom: 10px;
  width: 44px;
  height: 44px;
  background: #fff;
  border: 2px solid #d8e2e8;
  border-radius: 12px;
  color: #08789e;
}
.ma-storybook #services .service-card-scene .member-motion-toggle:hover {
  background: #fff8d9;
  border-color: #08789e;
}
.ma-storybook #services .wwo-card-link {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
}
.ma-storybook #services .wwo-card-link:focus-visible {
  outline: 3px solid #0a1628;
  outline-offset: -6px;
  border-radius: 12px;
}
.ma-storybook #services .wwo-card-link b {
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.15;
}
.ma-storybook #services .wwo-card-link > span {
  color: var(--muted);
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}
.ma-storybook #services .wwo-card .wwo-card-link i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 44px;
  margin-top: auto;
  padding: 10px 18px;
  border: 2px solid var(--accent);
  border-bottom-width: 4px;
  border-radius: 12px;
  background: #fff;
  color: var(--accent-text);
  font-size: .8125rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .08em;
  transition: background-color 140ms, transform 140ms;
}
.ma-storybook #services .wwo-card-link:hover i,
.ma-storybook #services .wwo-card-link:focus-visible i {
  background: var(--accent-wash);
}
.ma-storybook #services .wwo-card-link:active i {
  transform: translateY(2px);
}
@media (max-width: 760px) {
  .ma-storybook #services .service-overview .wwo-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .ma-storybook #services .service-overview-heading {
    grid-template-columns: minmax(0, 1fr) 88px;
    gap: 12px;
    margin-bottom: 24px;
  }
  .ma-storybook #services .service-overview-heading .member-heading-copy {
    display: contents;
  }
  .ma-storybook #services .service-overview-heading .wwo-eyebrow {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    margin-bottom: 0;
    gap: 10px;
  }
  .ma-storybook #services .service-overview-heading .wwo-eyebrow span {
    width: 18px;
  }
  .ma-storybook #services .service-overview-heading .wwo-title {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
  }
  .ma-storybook #services .service-overview-heading .wwo-sub {
    grid-column: 1 / -1;
    grid-row: 3;
  }
  .ma-storybook #services .service-overview-heading > .member-scene {
    grid-column: 2;
    grid-row: 1;
    width: 88px;
  }
}
@media (max-width: 700px) {
  .member-scene { width: 116px; margin: 0 0 4px 14px; }
  .ma-storybook .member-heading--reverse .member-scene { margin: 0 14px 4px 0; }
  .ma-storybook .member-heading .wwo-eyebrow { justify-content: flex-start; }
  .member-motion-toggle { right: -2px; bottom: -2px; }
}
@media (prefers-reduced-motion: reduce) {
  .member-art video, .member-motion-toggle { display: none; }
  .ma-storybook #services .service-overview .wwo-card,
  .ma-storybook #services .wwo-card .wwo-card-link i { transition: none; }
}
@media (max-width:380px) {
  .ma-storybook .readable-banner .member-scene { width: 82px; margin-left: 6px; }
}
@media print {
  .member-art video, .member-motion-toggle { display: none !important; }
}
