.hero-3d-frame {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  border: 0;
  background: #07122d;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .24s ease;
}

.hero-mode-status {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.hero-try-3d {
  display: none;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  margin: 4px 2px 4px 0;
  padding: 0;
  border: 1px solid rgba(11, 73, 137, .34);
  border-radius: 50%;
  background: rgba(255, 253, 246, .88);
  color: #0b4989;
  box-shadow: 0 5px 16px rgba(8, 31, 58, .1), inset 0 0 0 3px rgba(255, 255, 255, .5);
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
}

.hero[data-hero-mode="image"] .hero-try-3d {
  display: inline-grid;
}

.hero-try-3d:hover,
.hero-try-3d:focus-visible {
  border-color: #e15b32;
  color: #e15b32;
  box-shadow: 0 0 0 3px rgba(225, 91, 50, .16), 0 7px 18px rgba(8, 31, 58, .14);
  outline: none;
  transform: translateY(-1px);
}

.hero-try-3d:active {
  transform: translateY(0) scale(.96);
}

.hero-try-3d:disabled {
  cursor: progress;
  opacity: .56;
  transform: none;
}

.hero-try-3d-icon {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
}

.hero-try-3d-face {
  position: absolute;
  display: block;
  width: 18px;
  height: 11px;
  background: currentColor;
}

.hero-try-3d-face-top {
  top: 0;
  left: 2px;
  clip-path: polygon(50% 0, 100% 45%, 50% 100%, 0 45%);
  opacity: .62;
}

.hero-try-3d-face-left {
  top: 8px;
  left: 2px;
  clip-path: polygon(0 0, 50% 42%, 50% 100%, 0 58%);
  opacity: .82;
}

.hero-try-3d-face-right {
  top: 8px;
  left: 2px;
  clip-path: polygon(50% 42%, 100% 0, 100% 58%, 50% 100%);
}

.hero[data-hero-mode="3d"] {
  padding-inline: 0;
  background: #07122d;
}

@media (min-width: 861px) {
  .hero[data-hero-mode="3d"] {
    height: calc(100svh - 76px);
    min-height: 640px;
    max-height: none;
  }
}

.hero[data-hero-mode="3d"] .hero-visual {
  z-index: 3;
  background: #07122d;
}

.hero[data-hero-mode="3d"] .hero-visual > img,
.hero[data-hero-mode="3d"] .hero-caption,
.hero[data-hero-mode="3d"] .hero-image-note,
.hero[data-hero-mode="3d"] .hero-copy,
.hero[data-hero-mode="3d"] .hero-scroll-note {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hero[data-hero-mode="3d"] .hero-3d-frame {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hero[data-hero-mode="mobile"] .hero-visual {
  display: none;
}

.hero[data-hero-mode="mobile"] .hero-scroll-note {
  display: none;
}

@media (max-width: 860px) {
  .hero-3d-frame { display: none !important; }
  .hero-try-3d { display: none !important; }
  .hero-mobile-steps span:last-child::before {
    right: 0;
    left: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-3d-frame { transition: none; }
  .hero-try-3d { transition: none; }
}
