/* TeamON Living Travertine 3D Video Office integration for team-on.ru */
body.storyworld.live-office-native {
  --office-scene-image: url("/assets/live-office/video/frame_start.jpg?v=14");
  background: #1c1814;
}

/* Warm blurred ambient fill behind the uncropped 16:9 stage on tall/square viewports */
body.storyworld.live-office-native .conversation-layout::before {
  content: "";
  position: fixed;
  inset: -24px;
  z-index: 0;
  background: url("/assets/live-office/video/frame_start.jpg?v=14") center / cover no-repeat;
  filter: blur(32px) brightness(0.62);
  transform: scale(1.08);
  pointer-events: none;
}

/* Uncropped 16:9 stage: edge-to-edge on 16:9 desktop, zero chopped people in square/split panes */
.live-office-native .native-office-world {
  width: min(100vw, 177.7778svh) !important;
  height: min(100svh, 56.25vw) !important;
  background: #1c1814 url("/assets/live-office/video/frame_start.jpg?v=14") center / cover no-repeat;
}
@media (max-aspect-ratio: 17/10) {
  .live-office-native .native-office-world {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 5%, #000 95%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 5%, #000 95%, transparent 100%);
  }
}

/* Hide pixel-mapped overlays from the old static office photo */
.live-office-native .office-label-cleanplate,
.live-office-native .native-office-screen,
.live-office-native .native-office-crm,
.live-office-native .native-office-hq,
.live-office-native .office-screen-hit,
.live-office-native .native-personal-outline {
  display: none !important;
}

/* Native 24fps zero-shake video stage */
.office-video-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #101713;
}

.office-video-stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

#vid-office-idle { z-index: 1; opacity: 1; }
.vid-office-zoom { z-index: 2; opacity: 0; transition: opacity 0.14s ease; }
.vid-office-rev  { z-index: 3; opacity: 0; transition: opacity 0.12s ease; }
.vid-office-zoom.active,
.vid-office-rev.active { opacity: 1; }

/* Clean Rubik pinpoint pills positioned for the travertine office */
.live-office-native .native-office-world .office-direction {
  --direction-width: auto;
  --direction-height: 36px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  padding: 7px 14px 7px 10px !important;
  border-radius: 999px !important;
  border: 0 !important;
  background: rgba(245, 248, 239, 0.94) !important;
  color: #101713 !important;
  font: 600 14px/1 "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  letter-spacing: -0.01em;
  box-shadow: 0 6px 20px rgba(16, 23, 19, 0.24) !important;
  outline: none !important;
  pointer-events: auto;
  cursor: pointer;
  z-index: 5;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.2s ease,
              box-shadow 0.2s ease,
              opacity 0.22s ease;
}

.live-office-native .native-office-world .office-direction:hover,
.live-office-native .native-office-world .office-direction:focus-visible {
  transform: translate(-50%, -54%) scale(1.03) !important;
  background: #ffffff !important;
  box-shadow: 0 10px 28px rgba(16, 23, 19, 0.32) !important;
}

.office-pin-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16d34f;
  flex-shrink: 0;
}

.live-office-native .native-office-world .native-office-personal {
  --direction-x: 22%;
  --direction-y: 62%;
  left: 22% !important;
  top: 62% !important;
}
.live-office-native .native-office-world .native-hq-plaque {
  --direction-x: 73%;
  --direction-y: 62%;
  left: 73% !important;
  top: 62% !important;
}
.live-office-native .native-office-world .native-office-staff {
  --direction-x: 80%;
  --direction-y: 38%;
  left: 80% !important;
  top: 38% !important;
}

/* Fade out hero overlays smoothly during 3D camera push-in */
body.office-vid-transitioning .conversation-stage,
body.office-vid-in-zone .conversation-stage,
body.office-vid-transitioning .native-brain,
body.office-vid-in-zone .native-brain,
body.office-vid-transitioning .native-brain-control,
body.office-vid-in-zone .native-brain-control,
body.office-vid-transitioning .office-direction,
body.office-vid-in-zone .office-direction {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.24s ease;
}

/* Clean Rubik arrival card bottom-left */
.office-vid-card {
  position: fixed;
  left: 26px;
  bottom: 26px;
  width: min(340px, calc(100vw - 52px));
  z-index: 30;
  padding: 20px 22px;
  border-radius: 16px;
  background: rgba(245, 248, 239, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(16, 23, 19, 0.32);
  font-family: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transform: translateY(14px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.26s ease;
}

body.office-vid-in-zone .office-vid-card {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.office-vid-card h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #101713;
}

.office-vid-card p {
  margin: 0 0 15px;
  font-size: 13.5px;
  line-height: 1.46;
  color: #4a5750;
}

.office-vid-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.office-vid-btn-primary {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 9px 16px;
  font: 600 13.5px/1 "Rubik", sans-serif;
  background: #16d34f;
  color: #101713;
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.office-vid-btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.office-vid-btn-back {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 9px 12px;
  font: 500 13.5px/1 "Rubik", sans-serif;
  background: transparent;
  color: #4a5750;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}
.office-vid-btn-back:hover {
  color: #101713;
  background: rgba(16, 23, 19, 0.06);
}
