html[data-scene="office"] { overflow: hidden; overscroll-behavior: none; scrollbar-gutter: auto; }
html[data-scene="office"] .site-header, html[data-scene="office"] .site-footer { display: none; }
main[data-scene="office"] { width: 100%; min-height: 0; height: 100svh; height: 100dvh; }
.office-home { width: 100%; height: 100%; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.office-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: clip;
  container-type: size;
  isolation: isolate;
  perspective: 1280px;
  background: #171e26;
}
.office-viewport::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/office-seated-desktop-1920.webp") center / cover;
  transform: scale(1.08);
  filter: blur(24px) brightness(.58);
}
.office-room-layer {
  position: absolute;
  left: 50%;
  bottom: -.6cqh;
  width: min(max(102cqw, 151cqh), 115cqw, 188cqh);
  aspect-ratio: 3 / 2;
  transform-style: preserve-3d;
  transform: translateX(-50%);
}
.office-photo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  user-select: none;
}
.office-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.office-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--logo-w);
  height: auto;
  opacity: .96;
  transform: translate(-50%, -50%) skewY(var(--logo-slope));
}
.office-hotspot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  transform: translate3d(-50%, -50%, 1px);
  border-radius: 11px;
  cursor: pointer;
}
.office-hotspot::before {
  position: absolute;
  inset: 0;
  content: "";
  border: 1px solid #abd6ff9c;
  border-radius: inherit;
  background: #86baff0c;
  box-shadow: 0 0 24px #74b7fb56, inset 0 0 22px #74b7fb22;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s;
}
.office-hotspot:hover::before, .office-hotspot:focus-visible::before,
.office-hotspot[aria-expanded="true"]::before { opacity: 1; }
.office-pin {
  position: absolute;
  left: var(--tag-x);
  top: var(--tag-y);
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid #9bb1ca68;
  border-radius: 5px;
  background: #131d27e8;
  color: #f7fbff;
  transform: translate(-50%, -50%);
  box-shadow: 0 5px 19px #0009;
  font-size: 13px;
  font-weight: 730;
  white-space: nowrap;
  transition: background .18s, border-color .18s;
}
.office-pin-dot { width: 5px; height: 5px; border-radius: 50%; background: #b4d7ff; box-shadow: 0 0 8px #6cb0f28c; }
.office-hotspot:hover .office-pin, .office-hotspot:focus-visible .office-pin,
.office-hotspot[aria-expanded="true"] .office-pin { border-color: #b9ddff; background: #234973; }
.office-hotspot:focus-visible .office-pin { outline: 2px solid #f1f9ff; outline-offset: 2px; }

.office-preview[hidden] { display: none; }
.office-preview {
  position: absolute;
  z-index: 5;
  left: var(--preview-x, 14px);
  top: var(--preview-y, 14px);
  width: min(380px, calc(100% - 26px));
  max-height: calc(100% - 24px);
  overflow: auto;
  border: 1px solid #a0bdda6e;
  border-radius: 15px;
  background: #111c2bf5;
  color: #f3f8ff;
  box-shadow: 0 26px 76px #000c, 0 3px 12px #0008;
  transform-origin: var(--preview-origin, center);
  animation: preview-in .32s cubic-bezier(.16,.8,.24,1) both;
}
@keyframes preview-in {
  from { opacity: .18; transform: perspective(950px) translate3d(0, 9px, -85px) rotateX(3deg) scale(.96); }
  to { opacity: 1; transform: perspective(950px) translate3d(0, 0, 0) rotateX(0) scale(1); }
}
.preview-close {
  position: absolute;
  z-index: 2;
  top: 7px;
  right: 7px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #bed5f283;
  border-radius: 7px;
  color: #f2f9ff;
  background: #101c2ce8;
}
.preview-close .icon { width: 16px; height: 16px; }
.preview-close:hover { background: #244e7c; }
.preview-art { position: relative; height: clamp(125px, 23cqh, 200px); overflow: hidden; background: #1d2a3a; border-bottom: 1px solid #99b7d656; }
.preview-art > img { width: 100%; height: 100%; object-fit: cover; }
.preview-art figcaption { position: absolute; bottom: 6px; left: 8px; padding: 3px 6px; border-radius: 4px; background: #132033ed; color: #e9f5ff; font-size: 11px; font-weight: 650; }
.preview-art-software { background: #e7eff8; }
.preview-art-software > img { object-fit: contain; }
.preview-refs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: auto; aspect-ratio: 3; }
.preview-refs > img { object-fit: cover; }
.preview-object { margin: 16px 18px 6px; color: #9cc7f3; font: 720 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.office-preview h2 { margin: 0 18px 9px; color: #f0f7ff; font-size: 25px; line-height: 1.1; letter-spacing: -.032em; }
.preview-copy { margin: 0 18px; color: #d7e4f5; font-size: 15px; line-height: 1.55; }
.preview-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 12px; padding: 14px 18px 16px; }
.preview-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 12px; border-radius: 6px; color: #132d49; background: #e4f1ff; font-weight: 780; font-size: 14px; }
.preview-link .icon { width: 15px; height: 15px; }
.preview-link:hover { background: #fff; }

.contact-desk { aspect-ratio: 1.45; overflow: hidden; position: relative; border: 1px solid #7897b868; border-radius: 16px; background: radial-gradient(ellipse at 67% 60%, #2e4560, #142131 66%, #101720); }
.contact-desk > img { width: 100%; height: 100%; object-fit: cover; object-position: 83% bottom; transform: scale(1.9); transform-origin: 83% bottom; }

.route-entering .office-viewport { animation: office-arrival .68s cubic-bezier(.2,.73,.25,1) both; }
@keyframes office-arrival { from { opacity: .5; } }
.office-arriving .office-viewport {
  transform-origin: 52% 56%;
  animation: office-intro-arrival var(--intro-duration) cubic-bezier(.2,.73,.25,1) both;
}
.office-arriving .office-viewport::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 36%, #a7d6ff36 51%, transparent 64%);
  animation: office-intro-light var(--intro-duration) ease-out both;
}
@keyframes office-intro-arrival {
  0%, 57% { transform: scale(1.065); opacity: .82; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes office-intro-light {
  0%, 59% { transform: translateX(85%); opacity: 0; }
  72% { opacity: .66; }
  100% { transform: translateX(-85%); opacity: 0; }
}

@media (orientation: portrait) {
  .office-viewport::before { background-image: url("/assets/office-seated-mobile-1080.webp"); }
  .office-room-layer {
    --photo-width: clamp(min(100cqw, 62cqh), 56.25cqh, 106cqw);
    --photo-gap: calc(100cqh - var(--photo-width) * 16 / 9);
    top: calc(min(0px, var(--photo-gap)) + max(0px, var(--photo-gap) / 2));
    bottom: auto;
    width: var(--photo-width);
    aspect-ratio: 9 / 16;
    transform: translateX(-50%);
  }
  .office-photo { mask-image: linear-gradient(transparent, #000 17px, #000 calc(100% - 10px), transparent); }
  .office-hotspot {
    left: var(--x-mobile);
    top: var(--y-mobile);
    width: var(--w-mobile);
    height: var(--h-mobile);
  }
  .office-logo {
    width: var(--logo-w-mobile);
    transform: translate(-50%, -50%) skewY(var(--logo-slope-mobile));
  }
  .office-pin {
    left: var(--tag-x-mobile);
    top: var(--tag-y-mobile);
    min-height: 32px;
    padding: 5px 7px;
    gap: 5px;
    font-size: clamp(11.5px, 3.33cqw, 13px);
  }
  .office-pin::after { content: ""; position: absolute; inset: -6px -3px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .office-pin { min-height: 25px; padding: 3px 5px; font-size: 10.5px; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .office-preview, .office-arriving .office-viewport, .office-arriving .office-viewport::after,
  .route-entering .office-viewport { animation: none; }
  .office-pin, .office-hotspot::before { transition: none; }
}
