/* Fill the full-width frame with fixed 60px gutters, without a forced ratio. */
.layout-approved.design-oct7 #technology #tour {
  top: var(--table-frame-top, 0px);
  width: var(--table-frame-width, 100%);
  height: var(--table-frame-height, 100svh);
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  margin-inline: auto;
  padding: 0;
  --tour-gutter: 60px;
  /* Figma section-tur backdrop; parent opacity follows the scroll reveal. */
  background: linear-gradient(180deg, rgb(18 18 18 / 56%) 0%, #121212 100%);
}
.layout-approved.design-oct7 .tour-stage {
  position: absolute;
  inset: var(--tour-gutter);
  width: auto;
  height: auto;
  aspect-ratio: auto;
  transform: none;
  overflow: hidden;
  border-radius: 16px;
  background: #121212;
  isolation: isolate;
  box-shadow: 0 0 37.7px 0 rgb(0 0 0 / 32%);
}
.tour-stage .tour-cover,
.tour-stage .tour-poster,
.tour-stage .tour-viewer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.tour-stage .tour-cover {
  display: grid;
  place-items: center;
  transition: opacity 750ms ease;
}
.tour-stage .tour-cover.is-ready { opacity: 0; pointer-events: none; }
.tour-stage .tour-cover::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #12121240;
  content: '';
}
.tour-stage .tour-poster { object-fit: cover; }
.layout-approved.design-oct7 .tour-stage .tour-copy {
  z-index: 2;
  width: 650px;
  max-width: calc(100% - 48px);
  text-align: center;
}
.tour-stage .tour-viewer { display: block; border: 0; }
.tour-stage [hidden] { display: none !important; }
.tour-stage .tour-feedback {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 24px;
  left: 16px;
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}
.tour-stage .tour-status {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 560px;
  padding: 12px 18px;
  border-radius: 8px;
  background: #121212e6;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}
.tour-stage .tour-status.is-loading::before {
  width: 16px;
  height: 16px;
  flex: none;
  border: 2px solid #7ee08350;
  border-top-color: #7ee083;
  border-radius: 50%;
  animation: tour-loading-spin 900ms linear infinite;
  content: '';
}
.tour-stage noscript a {
  position: absolute;
  z-index: 3;
  right: 20px;
  bottom: 20px;
  left: 20px;
  padding: 12px;
  background: #121212;
  text-align: center;
}
@keyframes tour-loading-spin { to { transform: rotate(360deg); } }
@media (max-width: 700px) {
  .layout-approved.design-oct7 .tour-stage { border-radius: 12px; }
  .tour-stage .tour-feedback { bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .tour-stage .tour-cover { transition: none; }
  .tour-stage .tour-status.is-loading::before { animation: none; }
}

.layout-approved.design-oct7 .tour-stage :is(#tour-start, #tour-retry) {
  width: 650px;
  max-width: 100%;
  min-height: 60px;
}
@media (max-width: 1100px) {
  .layout-approved.design-oct7 .tour-stage .tour-copy { width: 480px; }
  .layout-approved.design-oct7 .tour-stage :is(#tour-start, #tour-retry) {
    width: 100%;
    min-width: 0;
    padding-inline: 20px;
    white-space: normal;
  }
}
@media (max-width: 700px) {
  .layout-approved.design-oct7 .tour-stage .tour-copy {
    width: 320px;
    max-width: calc(100% - 32px);
  }
  .layout-approved.design-oct7 .tour-stage :is(#tour-start, #tour-retry) {
    min-height: 52px;
    padding: 14px 12px;
    font-size: 14px;
    line-height: 1.3;
  }
}
@media (prefers-reduced-motion: reduce) {
  .layout-approved.design-oct7 #technology #tour { top: auto; min-height: 0; }
}

/* Scroll clears the last caption, then this reveal finishes on its own. */
.layout-approved.design-oct7 #technology #tour {
  opacity: 0;
  visibility: hidden;
  transition: opacity 900ms cubic-bezier(.22,1,.36,1), visibility 0s linear 900ms;
}
.layout-approved.design-oct7 #technology #tour.is-revealed {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
@media(prefers-reduced-motion:reduce){
 .layout-approved.design-oct7 #technology #tour { transition:none; }
}
