/* The model is the focal point; scoped styles leave existing homepage UI alone. */
body.page-home .sc-ecosystem {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 1.5rem auto 2rem;
  padding: 1.25rem 0 .75rem;
  overflow: hidden;
  text-align: center;
  color: #eef4f8;
  background: #070c12;
}
.sc-ecosystem *, .sc-ecosystem *::before, .sc-ecosystem *::after {
  box-sizing: border-box;
}
.sc-ecosystem [hidden] { display: none !important; }
.sc-ecosystem .sc-ecosystem__eyebrow {
  margin: 0 0 .6rem;
  color: #94b2bf;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: none;
  text-shadow: none;
}
.sc-ecosystem h2 {
  margin: 0;
  padding-inline: .75rem;
  color: #eef4f8;
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.03em;
  text-shadow: none;
}
.sc-ecosystem__stage {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  /* Leave room for the section heading and navigation on short and wide screens. */
  height: 64vh;
  height: 64svh;
  margin: .75rem auto;
  background: radial-gradient(ellipse at center, #172634 0%, #070c12 65%);
}
.sc-ecosystem__canvas-wrap, .sc-ecosystem__canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}
.sc-ecosystem__canvas {
  cursor: grab;
  /* A single finger always retains native vertical page scrolling. */
  touch-action: pan-y pinch-zoom;
}
.sc-ecosystem__canvas.is-dragging { cursor: grabbing; }
.sc-ecosystem__canvas:focus-visible { outline: 2px solid #74d7e8; outline-offset: -3px; }
.sc-ecosystem__labels { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.sc-ecosystem:not([data-ecosystem-state="ready"]) .sc-ecosystem__labels { display: none; }
.sc-ecosystem .sc-ecosystem__value {
  position: absolute;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: .65rem .35rem;
  background: transparent;
  color: var(--pillar-color, #c4d5df);
  font: inherit;
  font-size: .75rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}
.sc-ecosystem .sc-ecosystem__value {
  min-height: 44px;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  text-shadow: 0 1px 8px #070c12, 0 0 16px #070c12;
}
.sc-ecosystem__value[data-value="train"] { left: 50%; top: 10%; }
.sc-ecosystem__value[data-value="eat"] { left: 88%; top: 50%; }
.sc-ecosystem__value[data-value="rest"] { left: 50%; top: 90%; }
.sc-ecosystem__value[data-value="track"] { left: 12%; top: 50%; }
.sc-ecosystem .sc-ecosystem__value:hover,
.sc-ecosystem .sc-ecosystem__value[aria-pressed="true"] { color: #fff; }
.sc-ecosystem .sc-ecosystem__value[aria-pressed="true"] { text-decoration: underline; text-decoration-color: var(--pillar-color, #FFE35A); text-underline-offset: .4rem; }
.sc-ecosystem__value:focus-visible { outline: 2px solid #FFE35A; outline-offset: 2px; }
@media (min-width: 769px) {
  .sc-ecosystem h2 { font-size: 2.3rem; }
  .sc-ecosystem__stage { height: 68vh; height: 68svh; }
  .sc-ecosystem .sc-ecosystem__value { font-size: .85rem; }
  .sc-ecosystem__value[data-value="eat"] { left: 72%; }
  .sc-ecosystem__value[data-value="track"] { left: 28%; }
}
.sc-ecosystem__canvas-wrap { height: 100%; }
.sc-ecosystem__fallback { position: absolute; inset: 0; padding: 1rem; }
.sc-ecosystem__fallback img { display: block; width: 100%; max-width: 100%; height: 100%; object-fit: contain; }
.sc-ecosystem__video-plane {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  height: 100%;
  box-sizing: border-box;
  transform-origin: 0 0;
  backface-visibility: hidden;
  overflow: hidden;
  background: #080c13;
}
.sc-ecosystem__video-plane video { display: block; width: 100%; max-width: 100%; height: 100%; object-fit: contain; }
/* The two actions stay inside the scene; the media count is inside its slide. */
.sc-ecosystem__controls {
  position: absolute; right: .75rem; bottom: .75rem; z-index: 4;
  display: flex; align-items: center; gap: .35rem;
}
.sc-ecosystem__controls button, .sc-ecosystem__view-count {
  appearance: none; border: 0; border-radius: 0; box-shadow: none;
  min-height: 44px; min-width: 44px; padding: .65rem;
  background: transparent; color: #eef4f8; cursor: pointer;
}
.sc-ecosystem__controls button { display: flex; align-items: center; justify-content: center; }
.sc-ecosystem__controls svg { display: block; filter: drop-shadow(0 1px 3px #070c12); }
.sc-ecosystem__controls button:hover, .sc-ecosystem__view-count:hover { color: #FFE35A; }
.sc-ecosystem__controls button:disabled { opacity: .55; cursor: default; }
.sc-ecosystem :is(button, a):focus-visible { outline: 2px solid #FFE35A; outline-offset: 2px; }
.sc-ecosystem__view-count {
  position: absolute; z-index: 3; font-size: .75rem; font-weight: 600;
  font-variant-numeric: tabular-nums; text-decoration: none; line-height: 1.4;
  text-shadow: 0 1px 4px #070c12, 0 0 8px #070c12;
}
.sc-ecosystem__accessible {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
@media (prefers-reduced-motion: reduce) {
  .sc-ecosystem *, .sc-ecosystem *::before, .sc-ecosystem *::after { scroll-behavior: auto !important; transition: none !important; }
}
@media (prefers-color-scheme: dark) {
  .sc-ecosystem__controls button, .sc-ecosystem__view-count { color: #fff; }
}
