/* Tokens. --accent, --button-* and --font are overwritten from building.config.js. */
:root {
  --accent: #e2b867;
  --button-fill: #f4ead6;
  --button-text: #663126;
  --font: 'Jost', Futura, 'Century Gothic', sans-serif;

  --ink: #ffffff;
  --ink-soft: rgba(255, 255, 255, 0.88);
  /* Dark enough that white text stays readable over bright sky. */
  --glass: rgba(12, 22, 34, 0.72);
  --glass-line: rgba(255, 255, 255, 0.2);
  --night: #0f1720;

  /* The page below the tower: warm paper with the brand's brown as text. */
  --paper: #f8f3ea;
  --paper-2: #efe6d7;
  --brown: #3a2019;
  --brown-2: #6c5148; /* Secondary text: passes 4.5:1 on --paper. */
  --line: #d9cbb6;

  --gutter: clamp(16px, 2.6vw, 40px);
  --ease-out: cubic-bezier(0.22, 0.8, 0.28, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
html, body { margin: 0; }

body {
  background: var(--paper);
  color: var(--brown);
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
img, video { max-width: 100%; }
:focus-visible { outline: 2px solid var(--button-text); outline-offset: 3px; }
.stage :focus-visible { outline-color: var(--accent); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Stage and image layers ---------- */
.stage {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--night);
  color: var(--ink);
}
.layers, .wash, .scrim { position: absolute; inset: 0; }

.layer {
  position: absolute; left: 0; top: 0;
  transform-origin: 0 0;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity, filter;
}
.layer img, .layer svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; max-width: none; }
.layer.is-visible { opacity: 1; }

.wash { background: #fff; opacity: 0; pointer-events: none; z-index: 4; }

.scrim {
  pointer-events: none;
  opacity: 0;
  z-index: 5;
  transition: opacity 500ms ease;
  background:
    linear-gradient(to top, rgba(20, 14, 10, 0.74) 0%, rgba(20, 14, 10, 0.34) 32%, transparent 58%),
    linear-gradient(to bottom, rgba(20, 14, 10, 0.55) 0%, transparent 16%);
}
body[data-view='room'] .scrim { opacity: 1; }
.stage::after {
  content: ''; position: absolute; inset: 0 0 auto; height: 110px; pointer-events: none; z-index: 5;
  background: linear-gradient(to bottom, rgba(10, 24, 44, 0.42), transparent);
}

/* ---------- Floor highlight on the tower ---------- */
.band-group { mix-blend-mode: screen; }
.band { fill: var(--accent); fill-opacity: 0.7; stroke: #fff4d6; stroke-width: 1.4; stroke-linejoin: round; }
.calibrate-line { fill: none; stroke: #ff3b30; stroke-width: 1; }
.range { fill: var(--accent); fill-opacity: 0.2; }
body[data-pointing='tower'] .stage { cursor: pointer; }
body:not([data-view='tower']) .band-group { opacity: 0; transition: opacity 500ms ease; }

.floor-tag {
  position: absolute; left: 0; top: 0; z-index: 6;
  font-size: 26px; font-weight: 300; line-height: 1;
  padding-left: 30px;
  pointer-events: none;
  text-shadow: 0 1px 10px rgba(5, 20, 40, 0.65);
  transition: opacity 250ms ease;
}
.floor-tag::before {
  content: ''; position: absolute; left: 0; top: 50%; width: 22px; height: 1px; background: currentColor;
}
body:not([data-view='tower']) .floor-tag { opacity: 0; }

/* ---------- Opening ---------- */
/* The whole scene starts in dim dusk tones, and floors are revealed at full color. */
.intro-dim { filter: brightness(0.36) saturate(0.68); }
.intro-lit { filter: brightness(1.08) saturate(1.08); }
.intro-edge { fill: #ffd98f; stroke: #fff1cf; stroke-width: 1.2; mix-blend-mode: screen; }

/* Everything else waits. The delayed reveal is a safety net if the script never runs. */
html[data-intro] .picker,
html[data-intro] .topbar,
html[data-intro] .scroll-hint {
  opacity: 0;
  visibility: hidden;
  animation: intro-safety 0.3s linear 7s forwards !important;
}
@keyframes intro-safety { to { opacity: 1; visibility: visible; } }
html[data-intro] .band-group,
html[data-intro] .floor-tag { opacity: 0; }

.hero-line {
  position: absolute; z-index: 6;
  left: var(--gutter); top: clamp(120px, 20vh, 220px);
  max-width: calc(var(--tower-left, 40vw) - 2 * var(--gutter));
  text-shadow: 0 1px 18px rgba(6, 18, 38, 0.55);
  pointer-events: none;
  transition: opacity 320ms ease;
}
.hero-line p { margin: 0; font-size: clamp(17px, 1.5vw, 21px); font-weight: 400; line-height: 1.35; }
.hero-line .hero-name { margin-bottom: 8px; font-size: clamp(38px, 4.4vw, 66px); font-weight: 300; line-height: 1.04; letter-spacing: -0.01em; }
.hero-line .hero-price { margin-top: 2px; color: #ffe9bd; }
html[data-intro] .hero-line { animation: hero-in 1100ms var(--ease-out) 350ms both; }
@keyframes hero-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
body:not([data-view='tower']) .hero-line { opacity: 0; }

/* ---------- Top bar ---------- */
.topbar {
  position: absolute; left: 0; right: 0; top: 0; z-index: 8;
  padding: calc(var(--gutter) * 0.6) var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  pointer-events: none;
  transition: opacity 400ms ease;
}
.topbar > * { pointer-events: auto; }
.topbar-left { display: flex; align-items: center; min-height: 44px; }
.topbar-right { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 22px); }
.textlink { text-decoration: none; cursor: pointer; }
.reg-short { display: none; }
.toast {
  position: absolute; z-index: 9; left: 50%; top: 64px; margin: 0; max-width: calc(100% - 32px);
  padding: 8px 14px; border-radius: 3px; background: rgba(10, 14, 18, 0.86); font-size: 14px; overflow-wrap: anywhere;
  transform: translate(-50%, -6px); opacity: 0; pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}
.toast.is-in { opacity: 1; transform: translate(-50%, 0); }
.wordmark { height: 46px; width: auto; display: block; }

.textlink {
  background: none; border: 0; padding: 0 2px;
  min-height: 44px;
  font-size: 15px; letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 10px;
  position: relative;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}
.textlink::after {
  content: ''; position: absolute; left: 2px; right: 2px; bottom: 10px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 260ms var(--ease-out);
}
.textlink:hover::after { transform: scaleX(1); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

.back { display: none; }
body[data-view='room'] .back { display: inline-flex; }
body[data-view='room'] .wordmark { display: none; }
body[data-view='flying'] .topbar { opacity: 0; pointer-events: none; }
body[data-view='flying'] .topbar > * { pointer-events: none; }

/* ---------- Floor picker panel ---------- */
.picker {
  position: absolute; z-index: 7;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(300px, 26vw, 390px);
  max-height: calc(100% - 92px);
  overflow-y: auto;
  padding: clamp(20px, 2.2vw, 32px);
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: 6px;
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  backdrop-filter: blur(22px) saturate(1.15);
  animation: panel-in 900ms var(--ease-out) both;
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(calc(-50% + 18px)); }
  to { opacity: 1; transform: translateY(-50%); }
}
body:not([data-view='tower']) .picker {
  opacity: 0; visibility: hidden; animation: none;
  transform: translateY(calc(-50% + 18px));
  transition: opacity 320ms ease, transform 320ms ease, visibility 0s linear 320ms;
}
body[data-view='tower'] .picker { transition: opacity 420ms ease 200ms, transform 620ms var(--ease-out) 200ms; }

@media (min-width: 861px) and (max-height: 820px) {
  .picker-help { display: none; }
  .picker h1 { font-size: 34px; }
}
.picker h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 3.4vw, 50px);
  font-weight: 300; line-height: 1.05; letter-spacing: -0.01em;
  max-width: 7em;
}
.picker-help { margin: 0 0 clamp(12px, 2vh, 24px); font-size: 15px; line-height: 1.45; color: var(--ink-soft); }

.home-filter { display: flex; gap: 4px; margin-bottom: clamp(8px, 1.4vh, 16px); }
.home-filter button {
  flex: 1 1 auto; min-height: 34px; padding: 0 6px; white-space: nowrap;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 3px;
  font-size: 13.5px; color: #fff; transition: background 180ms ease, color 180ms ease;
}
.home-filter button:hover { background: rgba(255, 255, 255, 0.18); }
.home-filter button[aria-pressed='true'] { background: var(--button-fill); border-color: var(--button-fill); color: var(--button-text); font-weight: 500; }
.level { display: flex; align-items: baseline; gap: 14px; margin-bottom: 6px; }
.level-word { font-size: 16px; }
.level-number {
  font-size: clamp(56px, 5.6vw, 84px); font-weight: 300; line-height: 1;
  color: #fff3d8; font-variant-numeric: tabular-nums;
}
.tier-title { margin: 0 0 4px; font-size: 19px; font-weight: 500; }
.tier-copy { margin: 0 0 clamp(6px, 1.4vh, 14px); font-size: 15px; line-height: 1.45; color: var(--ink-soft); min-height: 2.9em; }

.slider {
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; height: 44px; margin: 0;
  background: transparent; cursor: pointer;
}
.slider::-webkit-slider-runnable-track { height: 1px; background: rgba(255, 255, 255, 0.65); }
.slider::-moz-range-track { height: 1px; background: rgba(255, 255, 255, 0.65); }
.slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; margin-top: -10px;
  border-radius: 50%; border: 0; background: var(--accent);
  box-shadow: 0 0 0 5px rgba(226, 184, 103, 0.22);
}
.slider::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%; border: 0; background: var(--accent);
  box-shadow: 0 0 0 5px rgba(226, 184, 103, 0.22);
}
.slider-ends { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-soft); margin: -6px 0 clamp(10px, 1.8vh, 20px); }

.enter {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; min-width: 124px; padding: 0 26px;
  background: var(--button-fill); color: var(--button-text);
  border: 0; border-radius: 3px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none;
  transition: transform 200ms var(--ease-out), background 200ms ease;
}
.enter:hover { background: #fff; transform: translateY(-1px); }
.enter.small { min-height: 44px; min-width: 0; padding: 0 16px; font-size: 12.5px; background: var(--button-text); color: #fff; }
.enter.small:hover { background: #4f2419; }
.enter.outline { background: none; border: 1px solid var(--button-text); color: var(--button-text); }
.enter.outline:hover { background: var(--button-text); color: #fff; }

/* ---------- Room caption and hotspots ---------- */
.caption {
  position: absolute; z-index: 6;
  left: var(--gutter); bottom: clamp(44px, 7vh, 72px);
  max-width: min(640px, calc(100% - 2 * var(--gutter)));
  opacity: 0; transform: translateY(16px);
  transition: opacity 280ms ease, transform 280ms ease;
  pointer-events: none;
}
.caption.is-in { opacity: 1; transform: none; transition: opacity 700ms ease, transform 800ms var(--ease-out); }
.caption h2 {
  margin: 0 0 10px;
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 300; line-height: 1.04; letter-spacing: -0.01em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}
.caption p { margin: 0; max-width: 30em; font-size: 17px; line-height: 1.45; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55); }
.caption .room-note { margin-top: 6px; font-size: 13.5px; color: rgba(255, 255, 255, 0.92); }

.hotspots { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.hotspot {
  position: absolute;
  left: var(--x); top: var(--y);
  transform: translate(-50%, -50%);
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 44px; padding: 0 14px;
  background: rgba(16, 24, 32, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 3px;
  font-size: 14px; letter-spacing: 0.02em; color: #fff;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  animation: pin-in 600ms var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 90ms + 200ms);
  transition: background 200ms ease, border-color 200ms ease;
}
.hotspot:hover { background: rgba(16, 24, 32, 0.84); border-color: var(--accent); }
.hotspot .dot { animation: pulse 2.6s ease-out infinite; animation-delay: calc(var(--i) * -0.7s); }
@keyframes pin-in {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 8px)); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(226, 184, 103, 0.7); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(226, 184, 103, 0); }
}

/* ---------- Disclaimer and scroll hint ---------- */
.disclaimer {
  position: absolute; z-index: 6;
  left: var(--gutter); bottom: 10px; margin: 0;
  max-width: min(640px, calc(100% - 2 * var(--gutter) - 150px));
  padding: 3px 8px;
  border-radius: 2px;
  background: rgba(10, 14, 18, 0.58);
  font-size: 11.5px; line-height: 1.35; color: rgba(255, 255, 255, 0.92);
}
.scroll-hint {
  position: absolute; z-index: 6; right: var(--gutter); bottom: 10px;
  min-height: 32px; padding: 0 12px; display: inline-flex; align-items: center;
  border-radius: 2px; background: rgba(10, 14, 18, 0.58);
  font-size: 12.5px; letter-spacing: 0.06em; text-decoration: none;
  transition: opacity 300ms ease;
}
body:not([data-view='tower']) .scroll-hint { opacity: 0; pointer-events: none; }

/* ---------- Sticky section links ---------- */
.sitenav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 18px;
  padding: 6px var(--gutter);
  background: rgba(248, 243, 234, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.sitenav-mark { display: flex; align-items: center; min-height: 44px; flex: none; }
.sitenav-mark img { height: 28px; width: auto; display: block; }
.sitenav-links { display: flex; gap: clamp(14px, 2vw, 28px); overflow-x: auto; flex: 1; scrollbar-width: none; }
.sitenav-links::-webkit-scrollbar { display: none; }
.sitenav-links a {
  flex: none; display: inline-flex; align-items: center; min-height: 44px;
  font-size: 15px; text-decoration: none; position: relative;
}
.sitenav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 240ms var(--ease-out);
}
.sitenav-links a:hover::after { transform: scaleX(1); }

/* ---------- Page sections ---------- */
.wrap { width: min(1320px, 100%); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.center { text-align: center; padding-block: 40px; }
#site > section { margin-bottom: clamp(56px, 8vw, 110px); }
h3 { margin: 0 0 14px; font-size: 25px; font-weight: 300; line-height: 1.2; }
.eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.eyebrow.dark { color: var(--button-text); }
.section-title { margin: 0 0 clamp(20px, 3vw, 36px); font-size: clamp(32px, 4.2vw, 58px); font-weight: 300; line-height: 1.08; letter-spacing: -0.01em; }
.note { font-size: 14.5px; color: var(--brown-2); }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(40px, 5vw, 70px) !important;
}
.stats > div { padding: clamp(18px, 2.6vw, 36px) var(--gutter); border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: 0; }
.stats strong { display: block; font-size: clamp(26px, 3.2vw, 44px); font-weight: 300; line-height: 1.1; }
.stats span { font-size: 14.5px; color: var(--brown-2); }

.films { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.4vw, 18px); }
.film {
  position: relative; aspect-ratio: 16 / 9; border: 0; padding: 0; overflow: hidden; border-radius: 3px;
  background: var(--night) center / cover no-repeat; color: #fff; text-align: left;
}
.film::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15, 10, 8, 0.72), transparent 60%); }
.film-play {
  position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px;
  border: 1px solid rgba(255, 255, 255, 0.8); border-radius: 50%;
  background: rgba(15, 20, 25, 0.35);
  transition: transform 260ms var(--ease-out), background 260ms ease;
}
.film-play::after {
  content: ''; position: absolute; left: 29px; top: 23px;
  border-left: 20px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent;
}
.film:hover .film-play { transform: scale(1.07); background: rgba(15, 20, 25, 0.6); }
.film-title { position: absolute; left: 20px; bottom: 16px; right: 20px; font-size: 19px; font-weight: 300; line-height: 1.25; }
.film-title small { display: block; font-size: 13.5px; opacity: 0.9; }
.film-open { background: #000; }
.film-open::before { display: none; }
.film-open iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Full-width section headers, with a muted video over a still when available. */
.band {
  position: relative; overflow: hidden;
  min-height: clamp(360px, 62vh, 640px);
  display: flex; align-items: flex-end;
  background: var(--night) center / cover no-repeat;
  color: #fff;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.band-video { position: absolute; inset: 0; pointer-events: none; }
.band-video iframe {
  position: absolute; left: 50%; top: 50%; border: 0;
  width: max(100%, calc(100vh * 16 / 9)); height: max(100%, calc(100vw * 9 / 16));
  min-height: 56.25vw; min-width: 177.78vh;
  transform: translate(-50%, -50%);
}
.band-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 10, 8, 0.78), rgba(14, 10, 8, 0.12) 62%); }
.band-text { position: relative; width: min(1320px, 100%); margin: 0 auto; padding: clamp(28px, 4vw, 56px) var(--gutter); }
.band-text h2 { margin: 0 0 12px; max-width: 16em; font-size: clamp(34px, 5vw, 70px); font-weight: 300; line-height: 1.05; letter-spacing: -0.01em; }
.lede { margin: 0; max-width: 36em; font-size: 18px; line-height: 1.45; }

/* Image grid: tiles span wider or taller to keep the rhythm uneven. */
.mosaic {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 46%), 1fr));
  grid-auto-rows: clamp(150px, 15vw, 220px);
  grid-auto-flow: dense;
  gap: clamp(8px, 1vw, 14px);
}
.tile { position: relative; margin: 0; overflow: hidden; border-radius: 3px; background: var(--paper-2); }
.tile.wide { grid-column: span 2; }
.tile.tall { grid-row: span 2; }
.tile-btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.tile:hover img { transform: scale(1.035); }
.tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 12px 8px;
  background: linear-gradient(to top, rgba(14, 10, 8, 0.72), transparent);
  color: #fff; font-size: 13.5px; line-height: 1.25; pointer-events: none;
  opacity: 0; transition: opacity 220ms ease;
}
.tile:hover figcaption, .tile:focus-within figcaption { opacity: 1; }

.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3.4vw, 48px); align-items: start; margin-bottom: clamp(28px, 3.4vw, 48px); }
.loop { display: block; width: 100%; height: auto; border-radius: 3px; background: var(--paper-2); }
.clips { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: clamp(8px, 1vw, 14px); margin-bottom: clamp(8px, 1vw, 14px); }

.table-scroll { overflow-x: auto; }
.prices { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 420px; }
.prices th, .prices td { padding: 12px 10px 12px 0; text-align: left; border-bottom: 1px solid var(--line); font-weight: 400; }
.prices thead th { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brown-2); }
.prices td:last-child { font-weight: 500; color: var(--button-text); }

.calc {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 8px clamp(20px, 3.4vw, 48px);
  padding: clamp(18px, 2.6vw, 34px); margin-bottom: clamp(28px, 3.4vw, 48px);
  background: var(--paper-2); border-radius: 3px; scroll-margin-top: 80px;
}
.calc-head p { margin: 0 0 14px; }
.calc select {
  width: 100%; min-height: 48px; padding: 0 12px;
  background: #fff; color: var(--brown); border: 1px solid #a4917a; border-radius: 3px; font: inherit;
}
.calc .note { grid-column: 1 / -1; margin: 6px 0 0; }
.calc-table { min-width: 0; }
.calc-table th[scope='row'] { font-weight: 400; }
.calc-table td:nth-child(2) { color: var(--brown-2); }
.calc-table td:last-child { text-align: right; white-space: nowrap; }
.calc-table thead th:last-child { text-align: right; }
.calc-table tfoot th, .calc-table tfoot td { font-weight: 500; border-bottom: 0; }
.plans-heading { margin-top: 10px; }
.plan-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 8px; margin-bottom: 8px; }
.plan-tabs button {
  flex: none; min-height: 58px; min-width: 96px; padding: 6px 14px; text-align: left;
  background: var(--paper-2); border: 1px solid transparent; border-radius: 3px;
  transition: background 180ms ease, color 180ms ease;
}
.plan-tabs button strong { display: block; font-weight: 500; font-size: 16px; line-height: 1.2; }
.plan-tabs button span { font-size: 13.5px; }
.plan-tabs button[aria-selected='true'] { background: var(--button-text); color: #fff; }
.plan-panel {
  display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: clamp(16px, 3vw, 40px); align-items: center;
  padding: clamp(14px, 2.4vw, 32px); background: #fff; border-radius: 3px;
  margin-bottom: clamp(20px, 3vw, 40px);
}
#plan-img { display: block; width: 100%; height: clamp(280px, 40vw, 500px); object-fit: contain; }
#plan-facts { margin: 0; }
#plan-facts div { padding: 10px 0; border-bottom: 1px solid var(--line); }
#plan-facts dt { font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brown-2); }
#plan-facts dd { margin: 0; font-size: 19px; font-weight: 300; }

.group { margin-bottom: clamp(36px, 5vw, 70px); }
.group-head { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 2.4fr); gap: 8px 24px; margin-bottom: 18px; align-items: baseline; }
.ticks { margin: 0; padding: 0; list-style: none; columns: 2 220px; column-gap: 28px; }
.ticks li { break-inside: avoid; padding: 3px 0 3px 18px; position: relative; font-size: 16px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 0.92em; width: 9px; height: 1px; background: var(--button-text); }

.powered { display: flex; align-items: center; gap: 12px; margin: 18px 0; font-size: 14px; color: var(--brown-2); }
.powered img { height: 56px; width: auto; }
.flow { display: block; width: 100%; max-height: 110px; object-fit: contain; margin: 0 0 28px; background: #1c1411; border-radius: 3px; padding: 8px; }

.logos { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.logos li { display: flex; align-items: center; justify-content: center; height: 86px; padding: 12px 16px; background: #fff; border-radius: 3px; }
.logos img { max-height: 58px; max-width: 100%; object-fit: contain; }
.logos.small li { height: 66px; }
.logos.small img { max-height: 38px; }

.clear-logo { height: 54px; width: auto; filter: brightness(0) opacity(0.82); } /* The file is white. */

.map { border-radius: 3px; overflow: hidden; background: #fff; max-height: 640px; }
.map img { display: block; width: 100%; height: 100%; max-height: 640px; object-fit: contain; }
.distances { margin: 0 0 26px; }
.distances div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.distances dd { margin: 0; color: var(--button-text); font-weight: 500; }
.dining { font-size: 16px; color: var(--brown-2); }

.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: clamp(20px, 2.4vw, 34px); }
.person p { margin: 0 0 6px; }
.person h3 { margin-bottom: 2px; font-size: 22px; }
.portrait { display: block; width: 100%; aspect-ratio: 1 / 1.12; object-fit: cover; object-position: top; border-radius: 3px; margin-bottom: 14px; background: var(--paper-2); }
.person-logo { display: block; height: 44px; max-width: 180px; width: auto; object-fit: contain; margin: 14px 0; }
.work { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.work .tile-btn { aspect-ratio: 1; overflow: hidden; border-radius: 2px; }
.work img { display: block; width: 100%; height: 100%; object-fit: cover; }

.press { background: var(--paper-2); padding-block: clamp(40px, 6vw, 80px); }
.eb5-facts { list-style: none; margin: 16px 0; padding: 0; }
.eb5-facts li { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.eb5-facts img { width: 28px; height: 28px; flex: none; }

.contact { background: var(--brown); color: #f7efe4; padding-top: clamp(44px, 6vw, 80px); margin-bottom: 0 !important; }
.contact h3 { color: #fff; }
.contact-logo { height: 90px; width: auto; display: block; margin-bottom: 18px; }
.contact a { color: #fff; }
.contact p a { display: inline-flex; align-items: center; min-height: 44px; }
.contact .enter { background: var(--button-fill); color: var(--button-text); }
.downloads { list-style: none; margin: 0; padding: 0; }
.downloads li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.22); }
.downloads li span { flex: 1 1 170px; }
.downloads a { display: inline-flex; align-items: center; min-height: 44px; }
.legal { display: flex; gap: 20px; align-items: flex-start; padding-block: 32px; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.legal img { width: 48px; height: auto; flex: none; background: #fff; border-radius: 2px; padding: 3px; }
.legal p { margin: 0 0 10px; font-size: 13px; line-height: 1.5; color: #e4d8ca; }

/* ---------- Register interest ---------- */
.lead {
  margin: 0 0 0 auto;
  width: min(460px, 100%); height: 100%; max-height: none; max-width: none;
  padding: clamp(18px, 3vh, 36px) clamp(24px, 3vw, 40px);
  border: 0;
  background: #f7f1e6; color: #3a2019;
  font-family: var(--font);
  overflow-y: auto;
}
.lead[open] { animation: lead-in 420ms var(--ease-out); }
@keyframes lead-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.lead::backdrop { background: rgba(8, 12, 18, 0.55); }
.lead h2 { margin: 0 0 6px; font-size: clamp(28px, 4vh, 36px); font-weight: 300; line-height: 1.1; }
.lead-copy { margin: 0 0 8px; font-size: 16px; line-height: 1.4; }
.lead-level { margin: 0 0 12px; font-size: 14px; font-weight: 500; color: var(--button-text); min-height: 1.3em; }
.lead-mark { width: 44px; height: 44px; margin-bottom: 14px; }
.lead label { display: block; margin-bottom: clamp(8px, 1.4vh, 16px); font-size: 14px; font-weight: 500; }
.lead input, .lead select {
  display: block; width: 100%; margin-top: 4px;
  min-height: 44px; padding: 0 12px;
  background: #fff; color: #2a1712;
  border: 1px solid #a4917a; border-radius: 3px;
  font: inherit; font-size: 16px; font-weight: 400;
}
.lead .enter { background: var(--button-text); color: #fff; }
.lead .enter:hover { background: #4f2419; }
.lead-close {
  position: absolute; right: 14px; top: 12px;
  width: 44px; height: 44px;
  background: none; border: 0; font-size: 28px; line-height: 1; color: #3a2019;
}
.lead label.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; min-height: 28px; padding: 2px 0; }
.lead label.check input { width: 20px; min-height: 20px; height: 20px; margin: 2px 0 0; flex: none; }
.lead-logo { display: block; height: clamp(38px, 6vh, 60px); width: auto; margin-bottom: 10px; }
.lead-summary-title { margin: 18px 0 8px; font-size: 18px; font-weight: 500; }
.lead-summary { margin: 0 0 22px; padding: 14px; background: #fff; border-radius: 3px; font-size: 14.5px; }
.lead-summary div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.lead-summary div:last-child { border-bottom: 0; }
.lead-summary dt { color: var(--brown-2); flex: none; }
.lead-summary dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.lead-error { min-height: 1.2em; margin: 0 0 6px; font-size: 14px; color: #a12a1b; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 16px;
  border: 0; background: rgba(10, 8, 7, 0.94); color: #fff;
  overflow: hidden;
}
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.lightbox img { max-width: 100%; max-height: calc(100% - 56px); object-fit: contain; }
.lightbox p { margin: 0; font-size: 15px; }
.lightbox-close { position: absolute; right: 12px; top: 10px; width: 44px; height: 44px; background: none; border: 0; font-size: 32px; line-height: 1; }

/* ---------- Phones and small tablets ---------- */
@media (max-width: 860px) {
  .picker {
    left: 0; right: 0; top: auto; bottom: 0; width: auto;
    transform: none;
    max-height: 62%;
    padding: 14px var(--gutter) 40px;
    border-radius: 12px 12px 0 0;
    border-width: 1px 0 0;
    background: rgba(13, 22, 32, 0.86);
    animation: sheet-in 700ms var(--ease-out) both;
  }
  @keyframes sheet-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  body:not([data-view='tower']) .picker { transform: translateY(24px); }

  .picker h1 { font-size: 26px; margin-bottom: 8px; max-width: none; }
  .picker-help { display: none; }
  .level { margin-bottom: 0; }
  .level-number { font-size: 46px; }
  .tier-title { font-size: 17px; margin-bottom: 0; }
  .tier-copy { font-size: 15px; min-height: 0; margin-bottom: 0; }
  .slider-ends { margin-bottom: 8px; }
  .enter:not(.small) { width: 100%; }
  .floor-tag { font-size: 20px; padding-left: 20px; }
  .floor-tag::before { width: 14px; }
  /* Phones: the line sits on the dark space the panel will use, then gives way to it. */
  .hero-line { display: none; }
  html[data-intro] .hero-line { display: block; top: auto; bottom: 96px; max-width: none; }
  .wordmark { height: 40px; }
  .reg-long { display: none; }
  .reg-short { display: inline; }
  .topbar-right { gap: 12px; }
  .home-filter { margin-bottom: 4px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .home-filter button { flex: none; min-height: 44px; }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .scroll-hint { display: none; }

  /* Rooms: pins become a row of buttons, because a phone crops the rendering
     and their true positions may fall off screen. */
  .caption { bottom: 164px; }
  body[data-room-pins='false'] .caption { bottom: 62px; }
  .caption p { font-size: 16px; }
  .hotspots {
    inset: auto 0 56px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 0 var(--gutter);
    pointer-events: auto;
  }
  .hotspot { position: static; transform: none; justify-content: center; }
  @keyframes pin-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

  .disclaimer { font-size: 11.5px; bottom: 5px; max-width: calc(100% - 2 * var(--gutter)); z-index: 8; }

  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(2) { border-right: 0; }
  .stats > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .films, .two { grid-template-columns: minmax(0, 1fr); }
  .plan-panel { grid-template-columns: minmax(0, 1fr); }
  .group-head { grid-template-columns: minmax(0, 1fr); }
  .tile figcaption { opacity: 1; font-size: 12.5px; }
  .tile.wide { grid-column: span 2; }
  .legal { flex-direction: column; }
  /* Keep the price on screen: the bath count is the column phones can lose. */
  .prices { min-width: 0; font-size: 15px; }
  .prices th:nth-child(2), .prices td:nth-child(2) { display: none; }
  .film-play { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
  .film-play::after { left: 24px; top: 18px; border-left-width: 17px; border-top-width: 11px; border-bottom-width: 11px; }
}

/* ---------- Riding to a floor ---------- */
body[data-climbing='true'] .band-group { opacity: 1; transition: none; }
.climb {
  position: absolute; left: clamp(20px, 7vw, 104px); top: 50%; z-index: 6;
  display: flex; flex-direction: column;
  transform: translateY(-50%);
  opacity: 0; pointer-events: none;
  transition: opacity 240ms ease;
  text-shadow: 0 2px 24px rgba(5, 20, 40, 0.6);
}
.climb.is-in { opacity: 1; }
.climb-word { font-size: 18px; }
.climb-number { font-size: clamp(76px, 11vw, 156px); font-weight: 200; line-height: 1; font-variant-numeric: tabular-nums; }
.strip { position: absolute; left: 0; right: 0; top: 0; z-index: 4; pointer-events: none; background: #0b0f14; will-change: transform; }
.slab { background: linear-gradient(to bottom, #565c63 0%, #2c3137 10%, #171a1e 86%, #3a3f45 100%); }

/* ---------- Inside: where you are on the tower ---------- */
.rail {
  position: absolute; right: var(--gutter); top: 84px; z-index: 7;
  display: flex; flex-direction: column; gap: 8px; align-items: stretch;
  padding: 10px;
  border: 1px solid var(--glass-line); border-radius: 8px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none; transform: translateY(-6px);
  transition: opacity 400ms ease, transform 500ms var(--ease-out);
}
body[data-view='room'] .rail { opacity: 1; pointer-events: auto; transform: none; }
.rail-where { margin: 0; font-size: 14px; line-height: 1.2; text-align: center; white-space: nowrap; }
.rail-where strong { font-size: 22px; font-weight: 400; font-variant-numeric: tabular-nums; }
.rail-tower { display: block; height: 168px; min-width: 76px; aspect-ratio: var(--rail-ratio); padding: 0; border: 0; border-radius: 4px; overflow: hidden; background: none; cursor: pointer; }
.rail-tower svg { display: block; width: 100%; height: 100%; }
.rail-band { fill: var(--accent); fill-opacity: 0.92; stroke: #fff4d6; stroke-width: 3; }
.rail-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.rail-step { display: grid; place-items: center; height: 44px; min-width: 44px; padding: 0; border: 1px solid var(--glass-line); border-radius: 6px; background: rgba(255, 255, 255, 0.08); color: #fff; cursor: pointer; transition: background 160ms ease, border-color 160ms ease; }
.rail-step svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rail-step:hover:not(:disabled) { background: rgba(255, 255, 255, 0.18); border-color: var(--accent); }
.rail-step:disabled { opacity: 0.32; cursor: default; }
.rail-tower:focus-visible, .rail-step:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 860px) {
  .rail { top: 62px; right: 10px; padding: 8px; gap: 6px; }
  .rail-tower { height: 104px; min-width: 56px; }
  .rail-where { font-size: 12px; }
  .rail-where strong { font-size: 17px; }
  .climb { top: 34%; }
}

@media (prefers-reduced-motion: reduce) {
  html[data-intro] .hero-line { animation: none; }
  html { scroll-behavior: auto; }
  .picker, .hotspot, .hotspot .dot, .lead[open] { animation: none !important; opacity: 1; }
  .caption, .caption.is-in, .scrim, .textlink::after, .tile img, .rail, .climb { transition: none; }
}

/* Buildings without a logo file: the name in text. */
.wordmark-text { font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.sitenav-name { font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.contact-name { font-size: 1.4rem; letter-spacing: .06em; text-transform: uppercase; }
[hidden] { display: none !important; }

/* Longer building names, and room for them when the tower sits far left. */
.hero-line { max-width: max(calc(var(--tower-left, 40vw) - 2 * var(--gutter)), 320px); }
.hero-line .hero-name.long { font-size: clamp(30px, 3vw, 44px); }

/* On a phone the disclaimer sits under the panel: keep it clear of the Enter button. */
@media (max-width: 860px) {
  .picker { padding-bottom: 72px; }
}
