/* A light display space for the connected MK sculpture. Controls stay below the art. */
.hero-visual.scene-panel {
  width: 100%;
  max-width: 620px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dce5f6;
  border-radius: 24px;
  background: radial-gradient(ellipse at 78% 18%, #e6e1ff9c, transparent 55%), radial-gradient(ellipse at 24% 64%, #dceeffb3, transparent 58%), #eff5ff;
  box-shadow: 0 22px 65px #1b477512, inset 0 1px 0 #ffffff;
  transform: none;
}

.scene-panel .visual-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 23px 25px 0;
  color: #536b9a;
  font: 10px/1.6 Arial, sans-serif;
  letter-spacing: 1.65px;
}

.scene-connection-mark {
  display: block;
  width: 40px;
  height: 24px;
  flex: 0 0 auto;
  fill: none;
  stroke: #7767c8;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scene-connection-mark circle:first-of-type { stroke: #3589d7; }

.scene-panel .scene-stage {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 1.12;
  overflow: hidden;
  isolation: isolate;
}

.scene-panel #tech-scene {
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
  touch-action: pan-y;
}

.hero-visual.scene-panel .scene-fallback {
  inset: 0;
  width: 100%;
  height: 100%;
  padding: clamp(22px, 3vw, 38px);
  object-fit: contain;
  background: transparent;
}

.scene-controls {
  position: relative;
  z-index: 1;
  padding: 18px 22px 16px;
  border-top: 1px solid #dce5f39c;
  background: linear-gradient(180deg, #ffffff70, #ffffffc4);
}

.scene-view-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding: 5px;
  border: 1px solid #dbe5f4;
  border-radius: 14px;
  background: #e7eef978;
}

.scene-view-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  min-height: 46px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #4f6484;
  font: 500 14px/1.8 var(--font);
  cursor: pointer;
  touch-action: manipulation;
  transition: color .2s, background .2s, border-color .2s, box-shadow .2s, transform .2s;
}

.scene-view-number {
  color: #8194b0;
  font: 10px/1 Arial, sans-serif;
  letter-spacing: .5px;
}

.scene-view-button[aria-pressed="true"] {
  border-color: #fff;
  background: #fff;
  color: #284ebe;
  box-shadow: 0 3px 12px #31559812;
}

.scene-view-button[aria-pressed="true"] .scene-view-number { color: #7161c2; }

@media (hover: hover) {
  .scene-view-button:hover { background: #ffffffb0; color: #2548a5; transform: translateY(-1px); }
}

.scene-view-button:active { transform: translateY(1px); }
.scene-view-button:disabled { cursor: default; opacity: .5; transform: none; }

.scene-panel .visual-caption {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 0;
  border: 0;
  color: #647493;
  font-size: 12px;
}

.scene-caption-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  line-height: 1.8;
}

.scene-caption-copy #scene-caption { min-width: 0; overflow-wrap: break-word; }
.scene-panel .blue-dot { width: 6px; height: 6px; flex: 0 0 auto; background: #6582d1; box-shadow: none; }

.scene-panel .motion-toggle {
  flex: 0 0 auto;
  min-height: 44px;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid #d4dff0;
  border-radius: 9px;
  background: #ffffff80;
  color: #4b5f85;
  font: 500 12px/1.8 var(--font);
  white-space: nowrap;
  touch-action: manipulation;
}

.scene-panel .motion-toggle:hover { background: #fff; border-color: #b4c4e8; }
.scene-view-button:focus-visible, .scene-panel .motion-toggle:focus-visible { outline: 3px solid #8c8ae3; outline-offset: 3px; }

@media (max-width: 1050px) {
  .scene-panel .visual-topline { padding-inline: 20px; letter-spacing: 1.2px; }
  .scene-controls { padding-inline: 17px; }
  .scene-view-button { gap: 7px; padding-inline: 8px; font-size: 13px; }
}

@media (max-width: 760px) {
  .hero-visual.scene-panel { max-width: 540px; border-radius: 21px; box-shadow: 0 15px 40px #274c8110; }
  .scene-panel .visual-topline { padding: 19px 20px 0; font-size: 9px; letter-spacing: 1.25px; }
  .scene-connection-mark { width: 34px; height: 22px; }
  .scene-panel .scene-stage { aspect-ratio: 1.04; }
  .hero-visual.scene-panel .scene-fallback { padding: 22px; }
  .scene-controls { padding: 15px 16px 13px; }
  .scene-view-switch { gap: 5px; padding: 4px; border-radius: 13px; }
  .scene-view-button { gap: 8px; min-height: 46px; padding: 9px 6px; font-size: 14px; }
  .scene-panel .visual-caption { padding: 0; margin-top: 11px; gap: 9px; font-size: 12px; }
  .scene-panel .motion-toggle { min-height: 44px; padding-inline: 10px; font-size: 12px; }
}

@media (max-width: 390px) {
  .scene-panel .visual-topline { padding-inline: 16px; letter-spacing: 1px; font-size: 8px; }
  .scene-controls { padding-inline: 12px; }
  .scene-view-button { gap: 6px; font-size: 13px; }
  .scene-view-number { font-size: 9px; }
  .scene-caption-copy { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .scene-view-button, .scene-panel .motion-toggle, .scene-panel #tech-scene, .hero-visual.scene-panel .scene-fallback { transition: none; }
  .scene-view-button:hover, .scene-view-button:active { transform: none; }
}
