:root {
  --sky-top: rgb(25, 106, 172);
  --sky-bottom: rgb(43, 113, 172);
  --ink: #f4f7fb;
  --ink-dim: rgba(244, 247, 251, 0.72);
  --ink-faint: rgba(244, 247, 251, 0.5);
  --panel: rgba(8, 28, 52, 0.62);
  --panel-line: rgba(255, 255, 255, 0.12);
  --gold: #e3b26b;
  --gold-soft: rgba(227, 178, 107, 0.16);
  --free: #7fe0b0;
  --reserved: #f2c46d;
  --leased: rgba(244, 247, 251, 0.42);
  --radius: 18px;
  --gutter: clamp(16px, 4vw, 56px);
  --nav-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* Same sky as the render, so the fade from image to 3D is seamless */
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 100%) fixed;
  overflow-x: hidden;
}
a { color: inherit; }
button { font: inherit; color: inherit; }

/* ---------- full-screen layers ---------- */
#scene, #hero-img, #scrim {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}
#scene { z-index: 0; display: block; }
#hero-img { z-index: 1; pointer-events: none; will-change: opacity; }
#hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;          /* camera crop in main.js mirrors this exactly */
  object-position: 50% 50%;
  display: block;
}
#scrim {
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, rgba(6, 22, 44, 0.55) 0%, rgba(6, 22, 44, 0.15) 45%, rgba(6, 22, 44, 0) 70%);
}
body.no-webgl #scrim { opacity: 1; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  z-index: 20;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 var(--gutter);
  transition: background 0.3s, backdrop-filter 0.3s;
}
.nav.solid { background: rgba(8, 28, 52, 0.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark { display: grid; gap: 3px; width: 22px; }
.brand-mark i { display: block; height: 3px; border-radius: 2px; background: var(--ink); }
.brand-mark i:nth-child(2) { width: 80%; }
.brand-mark i:nth-child(3) { width: 90%; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font-weight: 800; letter-spacing: 0.06em; font-size: 18px; }
.brand-text small { font-size: 9px; letter-spacing: 0.62em; margin-top: 3px; color: var(--ink-dim); }
.links { display: flex; gap: 28px; }
.links a { text-decoration: none; font-weight: 600; font-size: 14px; color: var(--ink-dim); transition: color 0.2s; }
.links a:hover, .links a.active { color: var(--ink); }
.lang { display: flex; border: 1px solid var(--panel-line); border-radius: 999px; padding: 3px; background: rgba(8, 28, 52, 0.3); }
.lang button {
  border: 0; background: none; cursor: pointer;
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  padding: 6px 10px; border-radius: 999px; color: var(--ink-dim);
}
.lang button[aria-pressed="true"] { background: var(--ink); color: #0b2748; }

/* ---------- intro / hero ---------- */
.intro { position: relative; z-index: 5; height: 460vh; }   /* includes the helicopter landing hold */
.intro-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--gutter) clamp(32px, 8vh, 88px);
  pointer-events: none;
}
.hero-copy { max-width: 560px; will-change: opacity, transform; }
.kicker {
  margin: 0 0 12px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
}
h1 {
  margin: 0;
  font-size: clamp(48px, 8.4vw, 120px);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 30px rgba(6, 22, 44, 0.35);
}
.sub { margin: 18px 0 0; font-size: clamp(16px, 1.5vw, 20px); color: var(--ink-dim); max-width: 440px; }
.scroll-hint {
  position: absolute; right: var(--gutter); bottom: clamp(32px, 8vh, 88px);
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-dim);
}
.scroll-hint i { width: 1px; height: 46px; background: linear-gradient(var(--ink), transparent); animation: drip 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- content blocks ---------- */
.block {
  position: relative;
  z-index: 5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 48px;
}
.panel {
  width: min(520px, 100%);
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 40px);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 30px 80px rgba(2, 12, 28, 0.35);
}
.panel-wide { width: min(860px, 100%); }
h2 { margin: 0 0 12px; font-size: clamp(26px, 2.8vw, 38px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }
.panel p { margin: 0 0 16px; color: var(--ink-dim); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 26px 0 0; background: var(--panel-line); border-radius: 12px; overflow: hidden; }
.stats div { background: rgba(8, 28, 52, 0.5); padding: 16px 18px; }
.stats dt { font-size: 12px; color: var(--ink-faint); font-weight: 600; letter-spacing: 0.04em; }
.stats dd { margin: 4px 0 0; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* ---------- spaces ---------- */
.spaces-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.spaces-head p { margin-bottom: 0; }
.chips { display: flex; gap: 6px; }
.chip {
  border: 1px solid var(--panel-line); background: transparent; cursor: pointer;
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink-dim);
}
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #1c1407; }
.spaces-body { display: grid; grid-template-columns: 190px 1fr; gap: 18px; margin-top: 22px; }
.floor-stack { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 470px; overflow-y: auto; }
.floor-stack button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px;
  border: 1px solid transparent; background: rgba(255, 255, 255, 0.04); cursor: pointer;
  padding: 8px 12px; border-radius: 10px; text-align: left; font-size: 13px; font-weight: 700;
}
.floor-stack button small { font-weight: 600; font-size: 11px; color: var(--free); }
.floor-stack button.full small { color: var(--leased); }
.floor-stack button:hover { border-color: var(--panel-line); }
.floor-stack button[aria-pressed="true"] { background: var(--gold-soft); border-color: var(--gold); }
.floor-stack .all { justify-content: center; color: var(--ink-dim); }
.table-wrap { overflow: auto; max-height: 470px; border-radius: 12px; border: 1px solid var(--panel-line); }
table.units { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.units th {
  position: sticky; top: 0; background: rgba(8, 28, 52, 0.96);
  text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint);
  padding: 11px 12px; font-weight: 700; white-space: nowrap;
}
.units td { padding: 11px 12px; border-top: 1px solid var(--panel-line); white-space: nowrap; }
.units .num { text-align: right; }
.units tbody tr { cursor: pointer; transition: background 0.15s; }
.units tbody tr:hover { background: rgba(255, 255, 255, 0.05); }
.units tbody tr.sel { background: var(--gold-soft); }
.units tbody tr.leased td:not(:last-child) { color: var(--ink-faint); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.available { color: var(--free); }
.badge.reserved { color: var(--reserved); }
.badge.leased { color: var(--leased); }
.note { margin: 14px 0 0 !important; font-size: 12px; color: var(--ink-faint) !important; }

/* ---------- location / contact ---------- */
.coords { font-variant-numeric: tabular-nums; color: var(--gold) !important; font-weight: 700; letter-spacing: 0.04em; }
.contact { margin: 6px 0 24px; display: grid; gap: 10px; }
.contact div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--panel-line); padding-bottom: 10px; }
.contact dt { color: var(--ink-faint); font-size: 13px; font-weight: 600; }
.contact dd { margin: 0; font-weight: 700; }
.contact a { text-decoration: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold); color: #1c1407; text-decoration: none; font-weight: 800; font-size: 15px;
  padding: 14px 24px; border-radius: 999px; transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(227, 178, 107, 0.35); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--panel-line); }
.foot { margin-top: 48px; font-size: 12px; color: var(--ink-faint); }

/* ---------- overlays ---------- */
.floor-tag {
  position: fixed; z-index: 30; pointer-events: none;
  transform: translate(14px, -50%);
  background: rgba(8, 28, 52, 0.85); border: 1px solid var(--gold);
  padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap;
}
.floor-tag small { color: var(--free); font-weight: 600; margin-left: 6px; }
.loader {
  position: fixed; z-index: 40; left: 50%; bottom: 22px; transform: translateX(-50%);
  background: rgba(8, 28, 52, 0.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--panel-line); border-radius: 999px; padding: 8px 16px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--ink-dim);
  transition: opacity 0.5s;
}
.loader b { color: var(--ink); }
.loader.done { opacity: 0; pointer-events: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .links { display: none; }
  .spaces-body { grid-template-columns: 1fr; }
  .floor-stack { flex-direction: row; overflow-x: auto; max-height: none; padding-bottom: 4px; }
  .floor-stack li { flex: 0 0 auto; }
  .floor-stack button { flex-direction: column; align-items: flex-start; gap: 0; }
  .block { justify-content: flex-end; }
}
@media (max-width: 560px) {
  :root { --nav-h: 60px; }
  .units th:nth-child(4), .units td:nth-child(4) { display: none; }
  .stats dd { font-size: 24px; }
  .scroll-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-hint i { animation: none; }
}
