/* Movement is applied to the same map coordinate system as the callouts. */
.intro-camera,
.intro-draft,
.intro-scan,
.intro-scheme {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.intro-camera { transform-origin: 56% 48%; }
.intro-draft, .intro-scan { display: none; pointer-events: none; }
.intro-draft {
  overflow: hidden;
  background: #dddccd;
}
.intro-draft::before {
  content: '';
  position: absolute;
  inset: 0;
  background: center / cover url('./assets/territory.webp');
  filter: grayscale(1) contrast(.74);
  opacity: .33;
}
.intro-draft::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgb(55 74 48 / .12) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(55 74 48 / .12) 1px, transparent 1px);
  background-size: 3.8% 7.25%;
}
.intro-scheme { opacity: .94; }
.intro-scan {
  right: auto;
  width: 2px;
  height: 140%;
  top: -20%;
  background: #e7edd4;
  box-shadow: -3px 0 10px #ced8a9;
  z-index: 1;
}
.heading-mask,
.heading-mask > span { display: block; }
.heading-mask { overflow: clip; }
.city::before,
.offer-eyebrow::after,
.rental-link::after,
.facility-control::after { content: ''; position: absolute; }
.city { border-left-color: transparent; }
.city::before {
  inset: 0 auto 0 -1px;
  width: 1px;
  background: #c5c6b9;
  transform-origin: center;
}
.offer-eyebrow { position: relative; border-bottom-color: transparent; }
.offer-eyebrow::after {
  left: 0;
  right: 0;
  bottom: calc(-1 * var(--unit));
  height: max(.75px, calc(1 * var(--unit)));
  background: #b7bea9;
  transform-origin: left;
}
.rental-link { position: relative; border-bottom-color: transparent; }
.rental-link::after {
  inset: auto 0 -1px;
  height: 1px;
  background: var(--olive);
  transform-origin: left;
}
.facility-control {
  text-align: inherit;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}
.facility-control::after { inset: 0; }
.facility:has(.facility-control:hover) dt,
.facility:has(.facility-control:focus-visible) dt { color: var(--olive); }
.facility:has(.facility-control:focus-visible) { outline: 2px solid var(--olive); outline-offset: -2px; }
.facility-control:focus-visible { outline: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 8;
}
#spaces { position: relative; scroll-margin-top: 76px; }
html[data-atlas-header="compact"] .site-header {
  background: rgb(251 250 244 / 94%);
  backdrop-filter: blur(7px);
}
@media (min-width: 1081px) {
  .site-nav { position: relative; }
  .site-nav::after {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 0;
    width: var(--menu-line-width, 0px);
    height: 1px;
    opacity: var(--menu-line-opacity, 0);
    background: var(--olive);
    transform: translateX(var(--menu-line-left, 0px));
    pointer-events: none;
    transition: transform 200ms ease, width 200ms ease, opacity 140ms ease;
  }
  .site-nav button:hover { text-decoration: none; }
}
@media (min-width: 961px) {
  .site-header {
    transition: height 190ms ease, background-color 160ms ease;
  }
  .site-header .brand {
    transform-origin: left center;
    transition: transform 180ms ease;
  }
  :root[data-atlas-header="compact"] .site-header {
    height: max(54px, calc(66 * var(--unit)));
  }
  :root[data-atlas-header="compact"] .brand { transform: scale(.88); }
  :root[data-atlas-header="compact"] .rental-link {
    padding: 8px 12px;
    background: var(--olive);
    color: var(--paper);
    font-size: clamp(13px, calc(15 * var(--unit)), 18px);
    text-align: center;
  }
  :root[data-atlas-header="compact"] .rental-link::after { opacity: 0; }
}

@keyframes atlas-plan-wipe {
  from { clip-path: polygon(-12% 0, 115% 0, 115% 100%, -20% 100%); }
  to { clip-path: polygon(116% 0, 126% 0, 126% 100%, 108% 100%); }
}
@keyframes atlas-scan {
  0% { left: -6%; opacity: 0; transform: skewX(-10deg); }
  9%, 88% { opacity: 1; }
  100% { left: 108%; opacity: 0; transform: skewX(-10deg); }
}
@keyframes atlas-camera-land {
  from { transform: perspective(1200px) translateY(-1.2%) rotateX(1.3deg) scale(1.08); filter: blur(5px); }
  to { transform: none; filter: blur(0); }
}
@keyframes atlas-reveal-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes atlas-reveal-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes atlas-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes atlas-wipe-right { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes atlas-type-in {
  from { opacity: .1; transform: translateY(105%); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes atlas-arrow-in {
  from { opacity: 0; transform: translateX(-13px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes atlas-legend-in {
  from { transform: translateY(calc(115% + 30px)); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes atlas-label-pulse {
  0% { transform: scale(.3); opacity: 0; }
  48% { transform: scale(1.58); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes atlas-label-in {
  from { opacity: 0; clip-path: inset(0 100% 0 0); }
  to { opacity: 1; clip-path: inset(0 0 0 0); }
}

@media (prefers-reduced-motion: no-preference) {
  /* The first pass ends at 2.8 seconds. Every timeline returns to the Figma pose. */
  html[data-atlas-mode="intro"][data-atlas-intro="full"] {
    --atlas-ease: cubic-bezier(.23,.8,.28,1);
  }
  html[data-atlas-mode="intro"][data-atlas-intro="full"] .atlas {
    overflow: clip;
  }
  html[data-atlas-mode="intro"][data-atlas-intro="full"] .intro-draft {
    display: block;
    animation: atlas-plan-wipe 700ms cubic-bezier(.5,.03,.42,1) both;
  }
  html[data-atlas-mode="intro"][data-atlas-intro="full"] .intro-scan {
    display: block;
    animation: atlas-scan 700ms cubic-bezier(.5,.03,.42,1) both;
  }
  html[data-atlas-mode="intro"][data-atlas-intro="full"] .intro-camera {
    animation: atlas-camera-land 1000ms var(--atlas-ease) 400ms both;
  }
  html[data-atlas-mode="intro"][data-atlas-intro="full"] .brand img {
    animation: atlas-wipe-right 360ms var(--atlas-ease) both;
  }
  html[data-atlas-mode="intro"][data-atlas-intro="full"] .city::before {
    animation: atlas-reveal-y 260ms var(--atlas-ease) 120ms both;
  }
  html[data-atlas-mode="intro"][data-atlas-intro="full"] .city > span {
    animation: atlas-fade-in 300ms ease 170ms both;
  }
  html[data-atlas-mode="intro"][data-atlas-intro="full"] .site-nav button {
    animation: atlas-fade-in 240ms ease calc(200ms + var(--menu-order, 0) * 50ms) both;
  }
  .site-nav button:nth-child(2) { --menu-order: 1; }
  .site-nav button:nth-child(3) { --menu-order: 2; }
  .site-nav button:nth-child(4) { --menu-order: 3; }
  .site-nav button:nth-child(5) { --menu-order: 4; }
  .site-nav button:nth-child(6) { --menu-order: 5; }
  html[data-atlas-mode="intro"][data-atlas-intro="full"] .rental-link {
    animation: atlas-fade-in 300ms ease 490ms both;
  }
  html[data-atlas-mode="intro"][data-atlas-intro="full"] .rental-link::after {
    animation: atlas-reveal-x 290ms var(--atlas-ease) 560ms both;
  }
  html[data-atlas-mode="intro"][data-atlas-intro="full"] .offer {
    background: transparent;
    isolation: isolate;
  }
  html[data-atlas-mode="intro"][data-atlas-intro="full"] .offer::before {
    transform-origin: bottom;
    animation: atlas-reveal-y 255ms var(--atlas-ease) 700ms both;
  }
  html[data-atlas-mode="intro"][data-atlas-intro="full"] .offer::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0 0 0 calc(8 * var(--unit));
    background: var(--paper);
    transform-origin: left;
    animation: atlas-reveal-x 395ms var(--atlas-ease) 790ms both;
  }
  html[data-atlas-mode="intro"][data-atlas-intro="full"] .offer-eyebrow > span {
    animation: atlas-fade-in 230ms ease 940ms both;
  }
  html[data-atlas-mode="intro"][data-atlas-intro="full"] .offer-eyebrow::after {
    animation: atlas-reveal-x 270ms var(--atlas-ease) 1010ms both;
  }
  html[data-atlas-mode="intro"][data-atlas-intro="full"] .heading-mask > span {
    animation: atlas-type-in 360ms var(--atlas-ease) 1050ms both;
  }
  html[data-atlas-mode="intro"][data-atlas-intro="full"] .heading-mask + .heading-mask > span {
    animation-delay: 1140ms;
  }
  html[data-atlas-mode="intro"][data-atlas-intro="full"] .offer-subtitle {
    animation: atlas-fade-in 250ms ease 1290ms both;
  }
  html[data-atlas-mode="intro"][data-atlas-intro="full"] .rental-cta {
    animation: atlas-wipe-right 300ms var(--atlas-ease) 1310ms both;
  }
  html[data-atlas-mode="intro"][data-atlas-intro="full"] .cta-arrow {
    animation: atlas-arrow-in 220ms var(--atlas-ease) 1450ms both;
  }
  .warehouse-dot, .office-dot { transform-box: fill-box; transform-origin: center; }
  .reveal-line { transform-box: fill-box; transform-origin: left center; }
  html[data-atlas-mode="intro"][data-atlas-intro="full"] .warehouse-dot {
    animation: atlas-label-pulse 340ms ease-out 1500ms both;
  }
  html[data-atlas-mode="intro"][data-atlas-intro="full"] .office-dot {
    animation: atlas-label-pulse 340ms ease-out 1680ms both;
  }
  html[data-atlas-mode="intro"][data-atlas-intro="full"] .warehouse-reveal {
    animation: atlas-reveal-x 325ms var(--atlas-ease) 1570ms both;
  }
  html[data-atlas-mode="intro"][data-atlas-intro="full"] .office-reveal {
    animation: atlas-reveal-x 325ms var(--atlas-ease) 1750ms both;
  }
  html[data-atlas-mode="intro"][data-atlas-intro="full"] .warehouse-label {
    animation: atlas-label-in 260ms var(--atlas-ease) 1840ms both;
  }
  html[data-atlas-mode="intro"][data-atlas-intro="full"] .office-label {
    animation: atlas-label-in 260ms var(--atlas-ease) 2020ms both;
  }
  html[data-atlas-mode="intro"][data-atlas-intro="full"] .facilities {
    animation: atlas-legend-in 370ms var(--atlas-ease) 2100ms both;
  }
  html[data-atlas-mode="intro"][data-atlas-intro="full"] .facility + .facility::before {
    animation: atlas-reveal-y 240ms var(--atlas-ease) 2270ms both;
  }
  html[data-atlas-mode="intro"][data-atlas-intro="full"] .facility dt,
  html[data-atlas-mode="intro"][data-atlas-intro="full"] .facility dd {
    animation: atlas-fade-in 270ms ease 2270ms both;
  }
  html[data-atlas-mode="intro"][data-atlas-intro="full"] .facility + .facility dt,
  html[data-atlas-mode="intro"][data-atlas-intro="full"] .facility + .facility dd {
    animation-delay: 2370ms;
  }
  html[data-atlas-mode="intro"][data-atlas-intro="full"] .map-key {
    animation: atlas-label-in 300ms var(--atlas-ease) 2470ms both;
  }

  html[data-atlas-mode="intro"]:is([data-atlas-intro="short"],[data-atlas-intro="mobile"]) .map-label {
    animation: atlas-fade-in 230ms ease 100ms both;
  }
  html[data-atlas-mode="intro"][data-atlas-intro="mobile"] .office-label { animation-delay: 240ms; }
  html[data-atlas-mode="intro"][data-atlas-intro="mobile"] .intro-camera {
    animation: atlas-fade-in 350ms ease both;
  }
}

/* The extra travel holds the map briefly while its offer moves out. */
@media (min-width: 961px) and (min-aspect-ratio: 3/2) and (prefers-reduced-motion: no-preference) {
  .atlas-scroll-track:has(+ #spaces:not([hidden])) {
    padding-bottom: clamp(92px, 16vh, 180px);
    background: var(--paper);
  }
  .atlas-scroll-track:has(+ #spaces:not([hidden])) > .atlas {
    position: sticky;
    top: max(54px, calc(66 * var(--unit)));
    overflow: clip;
  }
  html:is([data-atlas-mode="plan"], [data-atlas-mode="rental"], [data-atlas-mode="info"]) .atlas-scroll-track { padding-bottom: 0; }
}
@media (min-width: 961px) and (prefers-reduced-motion: no-preference) {
  html[data-atlas-pose="scroll"][data-atlas-mode="render"]:not([data-atlas-effect]) .offer {
    transform-origin: left center;
    transform: translateX(calc(-116% * var(--atlas-scroll-progress))) scale(calc(1 - .14 * var(--atlas-scroll-progress)));
    opacity: calc(1 - .74 * var(--atlas-scroll-progress));
  }
  html[data-atlas-pose="scroll"][data-atlas-mode="render"]:not([data-atlas-effect]) :is(.intro-camera, .leaders) {
    transform-origin: 56% 48%;
    transform: scale(calc(1 + .12 * var(--atlas-scroll-progress)));
  }
  /* Translate the callout origins by the same scale around the camera pivot. */
  html[data-atlas-pose="scroll"][data-atlas-mode="render"]:not([data-atlas-effect]) .warehouse-label {
    left: calc(71.80556% + 1.89667% * var(--atlas-scroll-progress));
    top: calc(25.066313% - 2.75204% * var(--atlas-scroll-progress));
  }
  html[data-atlas-pose="scroll"][data-atlas-mode="render"]:not([data-atlas-effect]) .office-label {
    left: calc(31.45833% - 2.945% * var(--atlas-scroll-progress));
    top: calc(65.11936% + 2.05432% * var(--atlas-scroll-progress));
  }
  html[data-atlas-pose="scroll"] #spaces {
    clip-path: inset(0 var(--atlas-section-inset, 0%) 0 var(--atlas-section-inset, 0%));
  }
}
.atlas-transfer-dot {
  position: fixed;
  z-index: 3;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  margin: -5px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--olive);
  box-shadow: 0 0 0 1px #58634a;
  pointer-events: none;
}
.atlas-transfer-dot[hidden] { display: none; }

@media (max-width: 960px) {
  .offer-eyebrow::after { bottom: -1px; height: 1px; }
  .facility-control { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .site-nav::after, .site-header, .site-header .brand { transition: none; }
  .atlas-transfer-dot { display: none; }
}
