/* ==========================================================================
   Saifi 311 — website
   Brand: navy #434867 (PANTONE 282 U) and white #F9F9F9. Headings in
   Ethereal, body in Jost. One page, sections in the order of the brief.
   ========================================================================== */

/* Ethereal. Only the DEMO files are here for now: their license allows
   internal testing only (no websites, no uploading), and they have no digits
   and put the maker's logo on ".". So they are limited to letters
   (unicode-range) and kept out of git; digits and punctuation fall back to
   Cormorant Garamond. With the commercial license: add the Ethereal-*.woff2
   files, drop the demo urls and the unicode-range lines. */
@font-face {
  font-family: "Ethereal";
  src: url("../assets/fonts/Ethereal-Light.woff2") format("woff2"),
       url("../assets/fonts/EtherealDemo-Light.otf") format("opentype");
  font-weight: 300;
  font-display: swap;
  unicode-range: U+0041-005A, U+0061-007A;
}

@font-face {
  font-family: "Ethereal";
  src: url("../assets/fonts/Ethereal-Regular.woff2") format("woff2"),
       url("../assets/fonts/EtherealDemo-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0041-005A, U+0061-007A;
}

@font-face {
  font-family: "Ethereal";
  src: url("../assets/fonts/Ethereal-Medium.woff2") format("woff2"),
       url("../assets/fonts/EtherealDemo-Medium.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0041-005A, U+0061-007A;
}

:root {
  --navy: #434867;        /* PANTONE 282 U */
  --navy-deep: #2C2F47;
  --white: #F9F9F9;
  --paper: #F2EEE7;       /* warm off-white, from the sunset */
  --ink: #2C2F47;
  --muted: #6A6E89;
  --line: rgba(67, 72, 103, 0.16);
  --line-light: rgba(249, 249, 249, 0.18);

  --display: "Ethereal", "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", Helvetica, Arial, sans-serif;

  /* never less than the notch / rounded-corner insets of a landscape iPhone
     (viewport-fit=cover); the insets are 0 everywhere else */
  --gutter: max(clamp(20px, 5vw, 64px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --wrap: 1200px;
  --space: clamp(80px, 11vw, 150px);
  --header-h: 76px;

  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

ul[role="list"] {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.1;
  color: var(--navy);
  text-wrap: balance;
}

h2 {
  font-size: clamp(34px, 4.4vw, 58px);
}

h3 {
  font-size: clamp(24px, 2.2vw, 30px);
}

.h4 {
  margin: 0 0 18px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--navy);
}

p {
  margin: 0 0 1em;
}

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

/* a navy ring can't be seen on the navy sections */
.why :focus-visible,
.tours :focus-visible,
.quote-band :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--white);
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  background: var(--navy);
  color: var(--white);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* "Skip to content" focuses the whole page body: no outline round it */
#main:focus {
  outline: none;
}

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.section {
  padding-block: var(--space);
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--navy);
}

.lead {
  max-width: 40em;
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--muted);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-head h2 {
  margin-bottom: 22px;
}

/* Buttons: letter-spaced caps, like "Coming soon" ------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  border: 1px solid var(--navy);
  font: 500 12px/1 var(--sans);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}

.btn-solid {
  background: var(--navy);
  color: var(--white);
}

/* hover styles only where there is a real hover: on touch screens a tapped
   element keeps :hover, so it would stay in its hover look */
.btn-solid:focus-visible {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  transform: translateY(-2px);
}

@media (hover: hover) {
  .btn-solid:hover {
    background: var(--navy-deep);
    border-color: var(--navy-deep);
    transform: translateY(-2px);
  }
}

.btn-line,
.btn-glass {
  background: transparent;
  color: var(--navy);
}

.btn-glass {
  background: rgba(249, 249, 249, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.btn-line:focus-visible,
.btn-glass:focus-visible {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

@media (hover: hover) {
  .btn-line:hover,
  .btn-glass:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
  }
}

.link-btn {
  position: relative;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  font: 500 12px/1.8 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
  cursor: pointer;
}

/* a bigger, invisible tap area: the link itself is only 23px tall */
.link-btn::after {
  content: "";
  position: absolute;
  inset: -10px -4px;
}

@media (hover: hover) {
  .link-btn:hover {
    color: var(--navy-deep);
    border-bottom-width: 2px;
  }
}

/* Header ------------------------------------------------------------------ */
/* white logo, links and button: over the top of the photo a deep navy shade
   fades down into the sky (see ::after); once the page scrolls, the bar
   turns navy */
.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  height: var(--header-h);
  transition: background-color 0.3s, box-shadow 0.3s;
}

.site-header.is-solid {
  background-color: rgba(44, 47, 71, 0.94);
  box-shadow: 0 1px 0 rgba(249, 249, 249, 0.08);
}

/* the shade: almost solid navy at the very top, about three-quarters at
   the foot of the bar, gone about a third of the way down the screen */
.site-header::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -2;
  height: clamp(220px, 38vh, 320px);
  background: linear-gradient(to bottom,
    rgba(12, 29, 58, 0.97) 0%,
    rgba(12, 29, 58, 0.95) 5%,
    rgba(12, 29, 58, 0.9) 10%,
    rgba(12, 29, 58, 0.76) 21%,
    rgba(12, 29, 58, 0.68) 26%,
    rgba(12, 29, 58, 0.53) 34%,
    rgba(12, 29, 58, 0.38) 42%,
    rgba(12, 29, 58, 0.28) 52%,
    rgba(12, 29, 58, 0.1) 78%,
    rgba(12, 29, 58, 0) 100%);
  pointer-events: none;
  transition: opacity 0.3s;
}

.site-header.is-solid::after,
.menu-open .site-header::after {
  opacity: 0;
}

/* phones and portrait screens: the headline starts higher up, so the shade
   ends sooner and stays clear of it */
@media (max-aspect-ratio: 1/1) {
  .site-header::after {
    height: clamp(150px, 20vh, 220px);
  }
}

/* the blur sits on its own layer: a backdrop-filter on the header itself
   would trap the fixed mobile menu inside the header's 64/76px */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1; /* above the header's background, below the logo and nav */
  pointer-events: none;
}

.site-header.is-solid::before {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.logo img {
  width: clamp(144px, 13.2vw, 180px);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 36px);
}

.main-nav ul {
  display: flex;
  gap: clamp(16px, 1.8vw, 28px);
}

.main-nav ul a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--white);
}

/* over the photo, a faint shadow lifts the white letters off the sky
   (on phones the links live in the navy menu instead) */
@media (min-width: 1081px) {
  .site-header:not(.is-solid) .main-nav ul a {
    text-shadow: 0 1px 6px rgba(29, 31, 49, 0.45);
  }
}

@media (hover: hover) {
  .main-nav ul a:hover {
    text-decoration: underline;
    text-underline-offset: 6px;
  }
}

/* a light button, over the photo and on the navy bar alike */
.nav-cta {
  min-height: 42px;
  padding: 0 20px;
  border-color: var(--white);
  background: var(--white);
  font-size: 11px;
  color: var(--navy);
}

.nav-cta:focus-visible {
  border-color: var(--white);
  background: transparent;
  color: var(--white);
}

@media (hover: hover) {
  .nav-cta:hover {
    border-color: var(--white);
    background: transparent;
    color: var(--white);
  }
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--white);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent; /* no grey flash box on tap */
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
  display: block;
  width: 26px;
  height: 1.5px;
  margin-inline: auto;
  background: currentColor;
  transition: transform 0.3s, background-color 0.3s;
}

.menu-bars {
  position: relative;
}

.menu-bars::before,
.menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-bars::before { top: -8px; }
.menu-bars::after { top: 8px; }

.menu-open .menu-bars { background: transparent; }
.menu-open .menu-bars::before { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-bars::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1080px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 28px;
    padding: 32px var(--gutter) 40px;
    background: var(--navy-deep);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s, visibility 0.25s;
  }

  .menu-open .main-nav {
    visibility: visible;
    opacity: 1;
  }

  .menu-open .site-header {
    background: var(--navy-deep);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav ul a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-light);
    font-family: var(--display);
    font-size: 28px;
    letter-spacing: 0;
  }

  .nav-cta {
    min-height: 52px;
  }
}

/* Hero: the sunset photo, the text in its sky ----------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.hero-photo,
.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-photo {
  z-index: -1;
}

.hero-photo img {
  object-fit: cover;
  object-position: 50% 50%;
}

.hero-inner {
  display: flex;
  align-items: flex-start;
  min-height: inherit;
  padding-top: calc(var(--header-h) + clamp(40px, 12vh, 140px));
  padding-bottom: 40px;
}

/* the column sits over the open sky on the left, clear of the building
   (which starts about 48% across) */
.hero-text {
  width: min(560px, 42vw);
  text-shadow: 0 0 22px rgba(249, 249, 249, 0.75), 0 0 6px rgba(249, 249, 249, 0.6);
}

.hero h1 {
  margin-bottom: 22px;
  font-size: clamp(44px, 5.4vw, 80px);
  font-weight: 300;
  line-height: 1.02;
}

.hero-strap {
  margin-bottom: 34px;
  font-size: clamp(16px, 1.3vw, 19px);
  font-weight: 400;
  color: var(--navy-deep);
}

.hero-strap span {
  margin-inline: 0.5em;
  opacity: 0.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero .btn {
  text-shadow: none;
}

/* phones and portrait screens: the tall photo, text centred in its sky */
@media (max-aspect-ratio: 1/1) {
  .hero-photo img {
    object-position: 50% 100%;
  }

  .hero-inner {
    justify-content: center;
    padding-top: calc(var(--header-h) + 5svh);
    text-align: center;
  }

  .hero-text {
    width: min(560px, 100%);
  }

  .hero h1 {
    font-size: clamp(38px, 10vw, 64px);
  }

  .hero-actions {
    justify-content: center;
  }
}

/* phones: a hero shorter than the photo's shape (a small phone with the
   browser bars showing) must crop the photo at the top or the bottom.
   Anchored at the bottom, the crop took the sky and the building rose behind
   the title; anchored at the top it takes the street. A hero as tall as the
   photo (most phones) is not cropped top or bottom: nothing changes there */
@media (max-aspect-ratio: 1/1) and (max-width: 599px) {
  .hero-photo img {
    object-position: 50% 0%;
  }
}

/* portrait tablets are wider than the photo: anchored at the bottom, its
   crop pulls the dark roof up behind the strapline and buttons. Centre it so
   the text stays in the sky */
@media (max-aspect-ratio: 1/1) and (min-aspect-ratio: 3/5) and (min-width: 600px) and (max-width: 1000px) {
  .hero-photo img {
    object-position: 50% 50%;
  }
}

/* below 360px the 38px floor no longer fits two words a line, and the
   title runs down onto the building: keep scaling with the screen */
@media (max-aspect-ratio: 1/1) and (max-width: 359px) {
  .hero h1 {
    font-size: 10vw;
  }
}

/* where the strapline can't fit on one line, break it at the "|" so each
   phrase stays whole (instead of "Location" alone on a second line) */
@media (max-width: 372px), (min-aspect-ratio: 1/1) and (max-width: 792px) {
  .hero-strap span {
    display: block;
    height: 0;
    overflow: hidden;
  }
}

/* Welcome ----------------------------------------------------------------- */
.welcome-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}

.statement {
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 300;
  line-height: 1.18;
}

.welcome-copy {
  color: var(--muted);
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(56px, 8vw, 100px);
  border-top: 1px solid var(--line);
}

/* the labels of a row share one height (subgrid), so the numbers line up
   even when one label wraps to two lines */
.fact {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  padding: 28px 24px 0 0;
}

.fact + .fact {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.fact dt {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.fact dd {
  margin: 0;
  color: var(--navy);
}

/* "96–370" never splits after the dash; if the cell is too narrow only the
   unit drops to the next line */
.fact-num {
  font-family: var(--display);
  font-size: clamp(40px, 4.4vw, 60px);
  font-weight: 300;
  line-height: 1;
  white-space: nowrap;
}

.fact-unit {
  display: inline-block;
  margin-left: 6px;
  font-size: 16px;
}

/* Why: a navy band ----------------------------------------------------------- */
.why {
  background: var(--navy);
  color: var(--white);
}

.why h2,
.why h3,
.why .eyebrow {
  color: var(--white);
}

.why .lead,
.why-urban p {
  color: rgba(249, 249, 249, 0.78);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
}

.why-head h2 {
  margin-bottom: 24px;
}

.benefits {
  align-self: end;
  border-top: 1px solid var(--line-light);
}

.benefits li {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 18px;
}

.benefits li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 0.65em;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.why-urban {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line-light);
}

.why-urban p {
  margin: 0;
}

/* Offices ------------------------------------------------------------------- */
.offices {
  background: var(--paper);
}

.office-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(18px, 2vw, 28px);
}

/* 3 + 2 on desktop: the first three take a third each, the last two a half */
.office {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  background: var(--white);
}

.office:nth-child(n + 4) {
  grid-column: span 3;
}

.office-media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--navy);
}

.office-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (hover: hover) {
  .office:hover .office-media img {
    transform: scale(1.04);
  }
}

.office-media-plain {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(249, 249, 249, 0.06) 25%, transparent 25%) 0 0 / 22px 22px,
    var(--navy);
}

.office-big {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(110px, 12vw, 170px);
  font-weight: 300;
  line-height: 1;
  color: rgba(249, 249, 249, 0.9);
}

.office-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  background: rgba(249, 249, 249, 0.92);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
}

.office-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 26px 28px;
}

.office-floor {
  margin: 0 0 2px;
  font-family: var(--display);
  font-size: 28px;
  color: var(--navy);
}

.office-area {
  margin: 0 0 10px;
  color: var(--muted);
}

.office-area span {
  font-family: "Cormorant Garamond", serif;
  font-size: 26px;
  color: var(--navy);
}

.office-note {
  font-size: 15px;
  color: var(--muted);
}

.office-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: auto;
  padding-top: 10px;
}

/* Virtual tours: dark, like a screening room ------------------------------ */
.tours {
  background: var(--navy-deep);
  color: var(--white);
}

.tours h2,
.tours .eyebrow {
  color: var(--white);
}

.tours .lead {
  color: rgba(249, 249, 249, 0.75);
}

/* the 3D tower on the left, the chosen floor's 360° tour on the right */
.live {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(18px, 2.4vw, 32px);
}

/* a sunny day, like the 3D scene: sky at the top, light ground below. It
   shows while three.js loads, so the stage doesn't flash navy first */
.live-tower {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: linear-gradient(180deg, #86B6E4 0%, #CFE1F0 22%, #E3EAEE 42%, #A9AAA7 100%);
}

.tower,
.tower canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.tower canvas {
  cursor: grab;
  /* vertical swipes still scroll the page on phones, pinch still zooms */
  touch-action: pan-y pinch-zoom;
  -webkit-tap-highlight-color: transparent;
}

/* a navy tag, readable over the light ground, the white blocks and shadows */
.tower-hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: max-content;
  max-width: calc(100% - 32px);
  margin: 0;
  padding: 7px 12px 7px 14px;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--white);
  background: rgba(44, 47, 71, 0.82);
  pointer-events: none;
}

/* without WebGL the elevator buttons do the job on their own */
.no-webgl .live {
  grid-template-columns: 1fr;
}

.no-webgl .live-tower {
  display: none;
}

.live-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

/* on narrow screens the link drops under the floor name instead of
   squeezing it onto two lines */
.live-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4px 16px;
}

.live-floor {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.1;
  color: var(--white);
}

.live-meta {
  margin: 4px 0 0;
  font-size: 14px;
  color: rgba(249, 249, 249, 0.7);
}

.live-full {
  position: relative;
  font-size: 14px;
  white-space: nowrap;
  color: rgba(249, 249, 249, 0.85);
}

/* a bigger, invisible tap area around the small link */
.live-full::after {
  content: "";
  position: absolute;
  inset: -12px -6px;
}

/* below 344px the link of a floor with a tour drops to a line of its own;
   floors without a tour have no link. The head keeps that line's height for
   every floor, so switching floors doesn't move the tour and the elevator
   panel up and down under the finger (the space stays below the meta) */
@media (max-width: 343px) {
  .live-head {
    align-content: flex-start;
    min-height: 85px;
  }
}

.tour-view {
  position: relative;
  flex: 1;
  min-height: 380px;
  overflow: hidden;
  background: #1A2146;
}

.tour-view iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.live-note {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 32px;
  background: radial-gradient(90% 80% at 50% 40%, #262E5E 0%, #1A2146 100%);
  text-align: center;
  color: rgba(249, 249, 249, 0.72);
}

.live-note p {
  max-width: 30em;
}

.live-note-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(24px, 2.2vw, 30px);
  color: var(--white);
}

/* Real photos of a floor without a 360° tour: the whole photo is shown (no
   crop), arrows at its sides, a bar with the count and links under it.
   pan-y: a sideways swipe changes the photo, an up/down one scrolls the page */
.floor-photos {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #1A2146;
}

.fp-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  touch-action: pan-y;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}

.fp-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
}

.fp-nav {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(249, 249, 249, 0.92);
  box-shadow: 0 2px 10px rgba(26, 33, 70, 0.35);
  cursor: pointer;
  transition: background-color 0.2s;
}

.fp-prev { left: 10px; }
.fp-next { right: 10px; }

/* the chevron: two sides of a small square, turned */
.fp-nav::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--navy);
  border-right: 2px solid var(--navy);
  transform: translate(-70%, -50%) rotate(45deg);
}

.fp-prev::before {
  transform: translate(-30%, -50%) rotate(-135deg);
}

@media (hover: hover) {
  .fp-nav:hover {
    background: var(--white);
  }
}

.fp-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--line-light);
}

.fp-count {
  margin: 0 auto 0 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(249, 249, 249, 0.72);
}

.fp-link {
  position: relative;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(249, 249, 249, 0.6);
  background: none;
  font: 500 12px/1.6 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  cursor: pointer;
}

/* a bigger, invisible tap area around the small links */
.fp-link::after {
  content: "";
  position: absolute;
  inset: -12px -8px;
}

/* the tag lets a tap through to the photo under it */
.fp-tag {
  pointer-events: none;
}

.fp-thumbs {
  display: none;
}

.btn-light {
  margin-top: 12px;
  border-color: var(--white);
  background: var(--white);
  color: var(--navy);
}

.btn-light:focus-visible {
  background: transparent;
  color: var(--white);
}

@media (hover: hover) {
  .btn-light:hover {
    background: transparent;
    color: var(--white);
  }
}

/* elevator panel: lit buttons are available floors, a dot means a 360° tour */
.lift {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
}

.lift button {
  position: relative;
  min-height: 46px;
  padding: 0;
  border: 1px solid var(--line-light);
  background: transparent;
  font: 400 15px var(--sans);
  color: rgba(249, 249, 249, 0.42);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.lift button.is-available {
  border-color: rgba(249, 249, 249, 0.55);
  color: var(--white);
}

.lift button.has-tour::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #F4D7A6;
}

@media (hover: hover) {
  .lift button:hover {
    border-color: var(--white);
  }
}

.lift button[aria-pressed="true"] {
  border-color: var(--white);
  background: var(--white);
  color: var(--navy);
}

.lift-key {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  color: rgba(249, 249, 249, 0.65);
}

.lift-key span {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(249, 249, 249, 0.55);
}

.lift-key .key-tour {
  width: 7px;
  height: 7px;
  margin-left: 14px;
  border: 0;
  border-radius: 50%;
  background: #F4D7A6;
}

.tour-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--line-light);
}

.tour-features li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px 20px 0 0;
}

.tour-features strong {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 300;
}

.tour-features span {
  font-size: 15px;
  color: rgba(249, 249, 249, 0.7);
}

/* Location ------------------------------------------------------------------ */
.location-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(32px, 5vw, 72px);
}

.map {
  position: relative;
  min-height: 420px;
  background: var(--paper);
}

.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.75);
}

.location-side {
  display: grid;
  gap: 44px;
}

/* the value column is as wide as the longest value ("2–5 min walk") in
   every row, so all the bars share one length (the 12-minute scale) */
.time-list li {
  display: grid;
  grid-template-columns: 150px 1fr minmax(86px, auto);
  gap: 14px;
  align-items: center;
  padding: 9px 0;
  font-size: 15px;
}

.t-bar {
  height: 4px;
  background: var(--line);
}

.t-bar i {
  display: block;
  width: calc(var(--min) / 12 * 100%);
  height: 100%;
  background: var(--navy);
}

.by-car .t-bar i {
  background: repeating-linear-gradient(90deg, var(--navy) 0 8px, transparent 8px 12px);
}

.t-val {
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.times-key {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.times-key span {
  display: inline-block;
  width: 22px;
  height: 4px;
  background: var(--navy);
}

.times-key .key-car {
  margin-left: 14px;
  background: repeating-linear-gradient(90deg, var(--navy) 0 8px, transparent 8px 12px);
}

.nearby-list {
  columns: 2;
  column-gap: 28px;
}

.nearby-list li {
  padding: 7px 0;
  break-inside: avoid;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.access {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 48px;
  align-items: end;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.access .h4 {
  grid-column: 1 / -1;
  margin: 0;
}

.access-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.access-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 15px;
  color: var(--muted);
}

.access-list strong {
  font-weight: 500;
  color: var(--navy);
}

/* Amenities ----------------------------------------------------------------- */
.amenities {
  background: var(--paper);
}

.amenity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2vw, 28px);
}

.amenity {
  padding: 34px 28px 30px;
  background: var(--white);
}

.amenity-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 26px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.amenity h3 {
  margin-bottom: 16px;
  font-size: 26px;
}

.amenity li {
  padding: 7px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}

/* Gallery ------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: clamp(180px, 20vw, 280px);
  gap: clamp(12px, 1.6vw, 20px);
}

.g-item {
  position: relative;
  margin: 0;
  overflow: hidden;
}

.g-wide {
  grid-column: span 2;
  grid-row: span 2;
}

.g-tall {
  grid-row: span 2;
}

.g-open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}

.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (hover: hover) {
  .g-item:hover img {
    transform: scale(1.04);
  }
}

.g-item figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 8px 14px;
  background: rgba(249, 249, 249, 0.92);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  pointer-events: none;
  --sep: 1.33em; /* the width of " · " in this font, letter-spacing included */
}

/* a caption too long for its tile breaks at the "·", and the dot, then at
   the start of the second line, is clipped away: "EXECUTIVE OFFICES" /
   "CONCEPT" instead of a dot left hanging. On one line nothing changes */
.g-cap {
  display: block;
  margin-left: calc(-1 * var(--sep));
  text-indent: var(--sep);
  -webkit-clip-path: inset(-1em -1em -1em var(--sep));
  clip-path: inset(-1em -1em -1em var(--sep));
}

.g-tail {
  white-space: nowrap;
}

.g-sep {
  display: inline-block;
  width: var(--sep);
  text-indent: 0;
  text-align: center;
}

/* the drone film over its still: it fades in once it is actually playing */
.g-film {
  position: relative;
}

.g-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.g-film.is-playing .g-video {
  opacity: 1;
}

@media (hover: hover) {
  .g-item:hover .g-video {
    transform: scale(1.04);
  }
}

/* dvh: the height actually visible on phones, with the browser bars showing
   (100vh is the height without them) */
.lightbox {
  width: min(1200px, 100vw - 32px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
}

.lightbox::backdrop {
  background: rgba(29, 31, 49, 0.92);
}

/* the page behind stays put while a photo is open */
html:has(.lightbox[open]) {
  overflow: hidden;
  scrollbar-gutter: stable;
}

/* the img is only as big as the photo, so a tap on the dark area beside it
   lands on the dialog and closes it */
.lightbox img {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 110px);
  max-height: calc(100dvh - 110px);
  margin-inline: auto;
  object-fit: contain;
}

/* the drone film, enlarged: as wide as the box allows, never taller than
   the screen */
.lightbox video {
  display: block;
  width: 100%;
  max-height: calc(100vh - 110px);
  max-height: calc(100dvh - 110px);
  background: #000;
}

.lightbox p {
  margin: 12px 0 0;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

/* clear of the notch in landscape; the shadow (the backdrop's own colour)
   only shows when the × sits over a bright photo */
.lightbox-close {
  position: fixed;
  top: max(12px, env(safe-area-inset-top, 0px));
  right: max(16px, env(safe-area-inset-right, 0px));
  width: 48px;
  height: 48px;
  border: 0;
  background: none;
  font-size: 36px;
  line-height: 1;
  color: var(--white);
  text-shadow: 0 0 8px rgba(29, 31, 49, 0.85);
  cursor: pointer;
}

/* Quote band ---------------------------------------------------------------- */
.quote-band {
  padding-block: clamp(80px, 10vw, 140px);
  background: var(--navy);
  color: var(--white);
  text-align: center;
}

.quote-band .eyebrow {
  color: rgba(249, 249, 249, 0.75);
}

.quote-band blockquote {
  max-width: 980px;
  margin: 0 auto;
}

.quote-band blockquote p {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 300;
  line-height: 1.3;
}

/* Visit form ---------------------------------------------------------------- */
.visit {
  background: var(--paper);
}

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(40px, 6vw, 96px);
}

.visit-copy h2 {
  margin-bottom: 22px;
}

.visit-contact {
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.visit-contact li {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.visit-contact span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.visit-contact a {
  text-decoration: none;
  color: var(--navy);
}

.visit-form {
  display: grid;
  gap: 20px;
  padding: clamp(24px, 4vw, 44px);
  background: var(--white);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.chips legend,
.field > span {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
}

.chips label {
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.chips input {
  position: absolute;
  opacity: 0;
}

.chips span {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--line);
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.chips input:checked + span {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.chips input:focus-visible + span {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field em {
  font-style: normal;
  font-weight: 300;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  font: 300 16px var(--sans);
  color: var(--ink);
}

/* iOS centres the picked date; every other field is left-aligned */
.field input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
}

/* only taller: dragged wider, it would push the page sideways */
.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--navy);
  outline: none;
}

.field [aria-invalid="true"] {
  border-color: #A33B3B;
}

/* the bot-trap field: off screen, never seen by people. Hidden too, so it
   can't take focus and browsers don't autofill it (that would drop a real
   request) */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  visibility: hidden;
}

.form-error {
  margin: 0;
  font-size: 15px;
  color: #A33B3B;
}

.visit-form .btn {
  justify-self: start;
}

.form-done {
  padding: 18px 20px;
  border-left: 3px solid var(--navy);
  background: var(--paper);
  font-size: 15px;
}

.form-done p {
  margin: 0;
}

.form-done-title {
  margin-bottom: 4px !important;
  font-weight: 500;
  color: var(--navy);
}

/* Contact ------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
}

.contact-grid h2 {
  margin-bottom: 22px;
}

.contact-grid .lead {
  margin-bottom: 30px;
}

.contact-list {
  margin: 0;
  border-top: 1px solid var(--line);
}

.contact-list div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list dt {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--navy);
}

.contact-list a {
  text-decoration: none;
}

@media (hover: hover) {
  .contact-list a:hover {
    text-decoration: underline;
  }
}

/* Footer -------------------------------------------------------------------- */
.site-footer {
  padding-block: 72px 40px;
  background: var(--navy-deep);
  color: rgba(249, 249, 249, 0.78);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
}

.footer-brand img {
  width: 180px;
  margin-bottom: 24px;
}

.footer-tagline {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: 24px;
  color: var(--white);
}

.footer-strap {
  margin: 0;
  font-size: 15px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 10px 40px;
  align-content: start;
}

.footer-nav a {
  position: relative;
  font-size: 14px;
  text-decoration: none;
}

/* a bigger, invisible tap area: the rows are only 23px tall */
.footer-nav a::after {
  content: "";
  position: absolute;
  inset: -5px -8px;
}

@media (hover: hover) {
  .footer-nav a:hover {
    color: var(--white);
  }
}

.footer-meta {
  grid-column: 1 / -1;
  margin: 24px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line-light);
  font-size: 13px;
}

/* Gentle reveal on scroll (only when JS runs; content is visible without) */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Tablets ------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .welcome-grid,
  .why-grid,
  .why-urban,
  .location-grid,
  .live,
  .visit-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .office-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .office,
  .office:nth-child(n + 4) {
    grid-column: span 1;
  }

  .office-wide {
    grid-column: 1 / -1 !important;
  }

  .live-tower {
    min-height: 480px;
  }

  .amenity-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .access {
    grid-template-columns: 1fr;
  }

  .access-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Phones -------------------------------------------------------------------- */
@media (max-width: 640px) {
  :root {
    --header-h: 64px;
  }

  body {
    font-size: 16px;
  }

  .facts {
    grid-template-columns: 1fr 1fr;
  }

  .fact,
  .fact + .fact {
    padding: 22px 12px 22px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  /* nothing sits right of the right-hand column, so it can use that space:
     "96–370 m²" then fits on one line from 360px */
  .fact:nth-child(even) {
    padding-left: 16px;
    padding-right: 0;
    border-left: 1px solid var(--line);
  }

  .office-grid,
  .amenity-grid,
  .access-list,
  .field-row {
    grid-template-columns: 1fr;
  }

  /* tall enough that a finger can hit one floor of the building */
  .live-tower {
    min-height: 500px;
  }

  .tour-view {
    min-height: 0;
    aspect-ratio: 3 / 4;
  }

  /* a floor's photos: the photo across the full width at its own shape,
     the small photos under it filling the rest of the tall box */
  .fp-stage {
    flex: none;
    aspect-ratio: 3 / 2;
  }

  .fp-thumbs {
    display: grid;
    flex: 1;
    min-height: 0;
    grid-template-columns: repeat(4, 1fr);
    align-content: center;
    gap: 5px;
    padding: 8px 12px;
    /* the very smallest phones can scroll the last row into view */
    overflow-y: auto;
    scrollbar-width: none;
  }

  .fp-thumbs button {
    aspect-ratio: 3 / 2;
    padding: 0;
    border: 0;
    background: none;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.2s;
    -webkit-tap-highlight-color: transparent;
  }

  .fp-thumbs button[aria-current="true"] {
    opacity: 1;
    box-shadow: 0 0 0 2px var(--white);
  }

  .fp-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .lift {
    grid-template-columns: repeat(5, 1fr);
  }

  .tour-features li {
    padding-right: 12px;
  }

  .tour-features strong {
    font-size: 24px;
  }

  .tour-features span {
    font-size: 13px;
  }

  .map {
    min-height: 340px;
  }

  .time-list li {
    grid-template-columns: 1fr auto;
    gap: 4px 14px;
  }

  .t-bar {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .nearby-list {
    columns: 1;
  }

  /* the button is full width here: less side padding lets the label fit on
     one line from 375px, and a label that still wraps gets centred lines
     with room between them */
  .access .btn {
    padding: 10px 16px;
    line-height: 1.5;
    text-align: center;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 150px;
  }

  .g-wide {
    grid-column: 1 / -1;
    grid-row: span 2;
  }

  .g-tall {
    grid-row: span 2;
  }

  /* two columns leave one cell empty: the last photo takes the whole row */
  .g-item:last-child {
    grid-column: 1 / -1;
  }

  .g-item figcaption {
    padding: 6px 10px;
    font-size: 10px;
    letter-spacing: 0.1em;
    --sep: 1.21em;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .contact-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Landscape phones: the whole tower fits under the header, and so do the
   floor name and its 360° tour. Taller, they were always cut, and a swipe
   on the tour turns the panorama instead of scrolling the page */
@media (orientation: landscape) and (max-height: 500px) and (max-width: 1000px) {
  .live-tower {
    min-height: calc(100vh - var(--header-h) - 24px);
    min-height: calc(100svh - var(--header-h) - 24px);
  }

  /* the hint moves to a corner beside the building, which can then use the
     stage's full height (see resize in js/tower.js) */
  .tower-hint {
    left: 16px;
    max-width: min(30%, 260px);
    transform: none;
    text-align: left;
  }

  .tour-view {
    flex: none;
    min-height: 0;
    aspect-ratio: auto;
    /* 190px: room for the note of a floor without a tour on the shortest phones */
    height: max(190px, calc(100vh - var(--header-h) - 98px));
    height: max(190px, calc(100svh - var(--header-h) - 98px));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .site-header,
  .office-media img,
  .g-item img {
    transition: none;
  }
}

/* Image loading ---------------------------------------------------------------
   Until a photo arrives its frame shows a soft moving shimmer instead of an
   empty box, then the photo fades in (js/site.js adds and removes the
   classes). Light frames on the light page, dark ones on navy. Last in the
   file so it wins over the frames' own backgrounds */
@keyframes shimmer {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero-photo,
.office-media,
.fp-stage {
  --ph-a: #2C3256;
  --ph-b: #3C4475;
}

.is-loading {
  background-image: linear-gradient(100deg, var(--ph-a, #E6E1D8) 35%, var(--ph-b, #F3EFE8) 50%, var(--ph-a, #E6E1D8) 65%);
  background-size: 300% 100%;
  animation: shimmer 1.6s linear infinite;
}

.is-loading img {
  opacity: 0;
}

.hero-photo img,
.fp-stage img {
  transition: opacity 0.45s ease;
}

.office-media img,
.g-item img {
  transition: opacity 0.45s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* the full-size photo: a spinner while it loads */
.lightbox.is-waiting {
  min-height: min(60vh, 600px);
}

.lightbox.is-waiting img,
.lightbox.is-waiting video {
  opacity: 0;
}

.lightbox.is-waiting::after,
.tour-spinner {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid rgba(249, 249, 249, 0.22);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* a 360° tour: a loading screen over it (pano.cool's own black loader
   included) until it has loaded and had a moment to draw (js/site.js) */
.tour-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 24px;
  background: radial-gradient(90% 80% at 50% 40%, #262E5E 0%, #1A2146 100%);
  text-align: center;
  color: rgba(249, 249, 249, 0.72);
  transition: opacity 0.45s ease;
}

.tour-loading.is-done {
  opacity: 0;
  pointer-events: none;
}

.tour-spinner {
  position: static;
  width: 44px;
  height: 44px;
  margin: 0 0 16px;
}

.tour-loading-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(22px, 2.1vw, 28px);
  color: var(--white);
}

.tour-loading-text {
  margin: 0;
  font-size: 14px;
}

.tour-loading-link {
  position: relative;
  margin-top: 12px;
  border-bottom: 1px solid rgba(249, 249, 249, 0.6);
  font: 500 12px/1.6 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
}

.tour-loading-link::after {
  content: "";
  position: absolute;
  inset: -12px -8px;
}

@media (prefers-reduced-motion: reduce) {
  /* a still placeholder, and the photo simply appears */
  .is-loading {
    background-position: 50% 0;
    animation: none;
  }

  .hero-photo img,
  .fp-stage img,
  .office-media img,
  .g-item img,
  .g-video {
    transition: none;
  }

  .lightbox.is-waiting::after,
  .tour-spinner {
    animation-duration: 2.4s;
  }

  .tour-loading {
    transition: none;
  }
}
