/* =====================================================================
   VIRTUAL EXPERIENCE — Lake District · One Mandwa · Zen
   Palette & type follow the reference tour design.
   ===================================================================== */

:root {
  --slate:      #3D494E;  /* header bar / primary brand dark */
  --slate-soft: #4E5C62;  /* hover lift on the primary */
  --sage:       #7C8B84;  /* accent rules, underlines, eyebrows */
  --ink:        #3D494E;  /* headings */
  --muted:      #7f858f;  /* body copy */
  --line:       rgba(61, 73, 78, 0.14);
  --paper:      #ffffff;
  --mist:       #eef1f5;

  /* Call-out bar. The design puts near-black type and a black silhouette on
     grey; on --slate itself that would be unreadable, so the bar is the same
     hue lifted until the dark type has real contrast against it. */
  --slate-mid:   #6B757C;
  --callout-ink: #14191C;

  /* Legacy names kept as aliases so every existing rule keeps working — the
     palette moved from navy/gold to slate/sage, the structure did not. */
  --navy:      var(--slate);
  --navy-soft: var(--slate-soft);
  --gold:      var(--sage);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Jost", "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Level container / transitions ---------- */
.level {
  position: fixed;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.7s ease, transform 0.7s ease, visibility 0.7s;
  z-index: 1;
}
.level--active {
  opacity: 1;
  visibility: visible;
  transform: none;
  z-index: 2;
}

/* =====================================================================
   SHARED — header, brand, hamburger, buttons
   ===================================================================== */
.site-head {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 34px 48px;
}

.brand {
  font-family: var(--serif);
  line-height: 1;
  color: var(--navy);
}
/* Every header now carries the HORIZONTAL Samira Habitats lockup (ratio ~3.2).
   For a wide logo, WIDTH is the lever, not height: the old height-based sizing
   was tuned for the portrait destination logo, and 96px of height would render
   this one ~306px wide while making the viewer bar needlessly tall. Set the
   width and let height follow. */
.brand__logo {
  width: 268px;
  max-width: 42vw;
  height: auto;
  display: block;
}
/* The viewer logo matches the hero/chooser size — .brand__logo above already
   sets it, so there is no viewer-specific override at full width. It steps
   down only where the bar has to share space with the destination toggles. */

@media (max-width: 1400px) {
  .viewer__head .brand__logo { width: 214px; }
}
@media (max-width: 1180px) {
  .brand__logo { width: 232px; }
  .viewer__head .brand__logo { width: 186px; }
}
@media (max-width: 900px) {
  .brand__logo { width: 188px; }
  .viewer__head .brand__logo { width: 158px; }
}
.brand__top {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 2px;
}
.brand__main {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 4px;
  margin-top: 4px;
}
.brand__sub {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 5px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
}
.brand__sub::before,
.brand__sub::after { content: ""; height: 1px; width: 26px; background: var(--navy); opacity: 0.6; }

/* hamburger */
.hamburger {
  width: 34px; height: 26px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  background: none; border: none; cursor: pointer;
  padding: 0;
}
.hamburger span { height: 2px; width: 100%; background: var(--navy); border-radius: 2px; }
.hamburger--dark span { background: var(--navy); }
.hamburger--sm { width: 22px; height: 15px; }

/* primary button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  padding: 20px 34px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
  background: var(--navy);
  border: none;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.btn-primary:hover { background: var(--navy-soft); transform: translateY(-2px); }
.btn-primary__arrow { font-size: 16px; }

/* =====================================================================
   LEVEL 1 — HERO
   ===================================================================== */
.hero { background: var(--mist); }
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  animation: heroDrift 26s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.06) translateX(-1.2%); }
  to   { transform: scale(1.12) translateX(1.2%); }
}
@media (prefers-reduced-motion: reduce) { .hero__media { animation: none; } }

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.78) 32%, rgba(255,255,255,0.18) 62%, rgba(255,255,255,0) 80%);
}
.hero__content {
  position: absolute;
  z-index: 10;
  left: 88px;
  top: 50%;
  transform: translateY(-50%);
  max-width: 620px;
}
.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--navy);
}
.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 4.8vw, 76px);
  line-height: 1.02;
  color: var(--navy);
  margin-top: 20px;
  white-space: pre-line;
}
.rule {
  width: 88px; height: 3px;
  background: var(--gold);
  margin: 26px 0 22px;
}
.hero__desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 440px;
  white-space: pre-line;
}

/* scroll hint */
.scroll-hint {
  position: absolute;
  z-index: 10;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--navy);
  opacity: 0.85;
}
.scroll-hint__mouse {
  width: 20px; height: 32px;
  border: 1.5px solid var(--navy);
  border-radius: 12px;
  position: relative;
}
.scroll-hint__mouse::after {
  content: "";
  position: absolute;
  left: 50%; top: 7px;
  width: 3px; height: 6px;
  background: var(--navy);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollWheel 1.6s infinite;
}
@keyframes scrollWheel { 0%{opacity:1;top:7px} 60%{opacity:0;top:15px} 100%{opacity:0} }

/* =====================================================================
   LEVEL 2 — CHOOSE YOUR DESTINATION
   ===================================================================== */
.chooser {
  background:
    radial-gradient(120% 90% at 50% 0%, #ffffff 0%, #f3f5f8 70%, #eef1f5 100%);
  overflow-y: auto;
}
/* The chooser is the only level that scrolls, and .site-head is absolutely
   positioned inside it — so the logo scrolled away with the cards. Pin it to
   the viewport instead. The gradient fades to transparent rather than ending
   in a hard line, so cards passing underneath read as intentional.
   (An inactive .level is visibility:hidden, which also hides fixed children,
   so this cannot leak onto the other pages.) */
.chooser .site-head {
  position: fixed;
  padding-bottom: 30px;
  background: linear-gradient(180deg,
              rgba(252, 253, 254, 0.97) 55%,
              rgba(252, 253, 254, 0.82) 78%,
              rgba(252, 253, 254, 0) 100%);
  pointer-events: none;      /* let clicks through the transparent gradient */
}
.chooser .site-head > * { pointer-events: auto; }
.site-head--dark .brand,
.brand--dark { color: var(--navy); }

.chooser__inner {
  position: relative;
  z-index: 5;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 150px 24px 60px;
}
.step {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 5px;
  color: var(--navy);
  padding-bottom: 12px;
  position: relative;
}
.step::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 34px; height: 2px;
  background: var(--gold);
}
.chooser__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(40px, 5vw, 74px);
  color: var(--navy);
  margin-top: 20px;
}
.chooser__sub {
  font-size: 16px;
  color: var(--muted);
  margin-top: 10px;
  letter-spacing: 0.5px;
}

/* One row, every card the same width.
   The cards used to be a fixed 300px on a wrapping row, so adding a fifth
   destination pushed it onto a second line. They now share the row: flex:1
   with a zero basis makes the widths identical whatever the card contains,
   and align-items:stretch (the default) keeps the heights identical too. */
.cards {
  display: flex;
  flex-wrap: nowrap;
  gap: 28px;
  margin-top: 54px;
  width: 100%;
  max-width: 1480px;
  justify-content: center;
  align-items: stretch;
}
.card {
  flex: 1 1 0;
  min-width: 0;          /* without this a flex item refuses to shrink */
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 24px 60px rgba(22, 41, 78, 0.08);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  text-align: center;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 34px 80px rgba(22, 41, 78, 0.16);
}
/* thumbnail strip from the folder's first panorama */
.card__thumb {
  width: 100%;
  height: 148px;
  background-size: cover;
  background-position: center;
  background-color: #dfe4ec;
  position: relative;
}
.card__thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,41,78,0) 45%, rgba(22,41,78,0.35) 100%);
}
.card__count {
  position: absolute;
  right: 12px; bottom: 10px;
  z-index: 2;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #fff;
  background: rgba(22,41,78,0.7);
  border-radius: 20px;
  padding: 5px 12px;
}
.card__body {
  padding: 30px 24px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;                 /* pushes the arrow to the bottom so the row of
                              arrows lines up even when the blurbs differ */
}
.card__icon {
  width: 74px; height: 74px;
  margin-top: -67px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(22,41,78,0.16);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  position: relative;
  z-index: 3;
}
.card__icon svg { width: 36px; height: 36px; }
/* Names vary a lot in length (ZEN vs LAKE DISTRICT), so the title scales with
   the card and stays on one line instead of wrapping in the narrow ones. */
.card__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(20px, 1.6vw, 28px);
  letter-spacing: 1.5px;
  color: var(--navy);
  white-space: nowrap;
}
.card__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 12px;
  margin-bottom: 24px;     /* the minimum gap above the arrow */
  max-width: 240px;
}
.card__go {
  margin-top: auto;        /* with .card__body flex:1, this bottom-aligns the
                              arrows across cards whose blurbs differ in length */
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.25s ease;
}
.card:hover .card__go { transform: scale(1.08); }

/* =====================================================================
   LEVEL 3 — VIEWER
   ===================================================================== */
.viewer { background: #000; }
.viewer__pano { position: absolute; inset: 0; }

/* ---- Viewer header bar ----
   Dark slate bar, everything on it reversed out to white. The logo swaps to
   its knockout variant here (see brand.logoLight in js/config.js) — the
   colour artwork's dark grey wordmark measures 1.05:1 against this bar,
   i.e. invisible, while white measures 9.29:1. */
.viewer__head {
  background: var(--slate);
  /* The logo is short and wide now, so the bar no longer needs to be tall to
     accommodate it — this pads normally and still comes out slimmer than the
     108px the portrait logo forced. */
  padding: 10px 40px;
  align-items: center;
  box-shadow: 0 2px 18px rgba(0,0,0,0.22);
}
/* No plate behind the logo — it sits directly on the slate bar. That only
   works because the bar uses the knockout-WHITE artwork (brand.logoLight):
   the colour logo's dark grey wordmark measures 1.05:1 here and would be
   invisible without something light behind it. */
.viewer__head .brand,
.viewer__head .brand--dark,
.viewer__head .brand__sub,
.viewer__head .menu-text { color: #fff; }
.viewer__head .brand__sub::before,
.viewer__head .brand__sub::after { background: #fff; }
.viewer__head .hamburger--dark span { background: #fff; }
.viewer__head .viewer__divider { background: rgba(255,255,255,0.28); }
.viewer__head .brand__main { font-size: 24px; }
.viewer__head-right {
  display: flex;
  align-items: center;
  gap: 26px;
}

/* ---- The 3 toggles ---- */
.view-switch {
  display: flex;
  align-items: center;
  gap: 4px;
}
.view-switch__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2.5px;
  white-space: nowrap;
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 24px;
  transition: color 0.2s ease, background 0.2s ease;
}
.view-switch__ic {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
  transition: border-color 0.2s ease;
  flex: none;
}
.view-switch__ic svg { width: 18px; height: 18px; }
/* :not() for the same reason as the point rail — a bare :hover outranks
   --active on specificity and would paint the selected destination's label
   navy-on-navy, i.e. invisible. */
/* On the dark bar the states invert: inactive is muted white, the ACTIVE one
   is a solid white pill with slate text. */
.view-switch__btn { color: rgba(255,255,255,0.72); }
.view-switch__btn:not(.view-switch__btn--active):hover { color: #fff; }
.view-switch__btn--active { color: var(--slate); background: #fff; }
.view-switch__btn--active .view-switch__ic { border-color: rgba(61,73,78,0.35); }
.viewer__divider { width: 1px; height: 30px; background: var(--line); }
.menu-text {
  display: flex; align-items: center; gap: 12px;
  background: none; border: none; cursor: pointer;
  font-family: var(--sans);
  font-size: 14px; font-weight: 500; letter-spacing: 3px;
  color: var(--navy);
}

/* ---- Point rail (left) ---- */
.floors {
  position: absolute;
  left: 30px; top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 22px 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.18);
  min-width: 96px;
  max-height: 68vh;
  overflow-y: auto;
}
.floors__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--navy);
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.floors__list { display: flex; flex-direction: column; gap: 10px; }
.floor {
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
  color: var(--navy);
  transition: background 0.2s ease, color 0.2s ease;
  font-family: var(--sans);
}
.floor__num { display: block; font-size: 19px; font-weight: 600; line-height: 1; }
/* :not() keeps the hover tint off the selected point — a bare .floor:hover
   outranks .floor--active on specificity and would leave the active item as
   white text on a pale background. */
.floor:not(.floor--active):hover { background: rgba(22,41,78,0.06); }
.floor--active { background: var(--navy); color: #fff; }

/* ---- 180/360 badge (bottom-right) ---- */
.deg-badge {
  position: absolute;
  right: 34px; bottom: 40px;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  background: rgba(255,255,255,0.95);
  border-radius: 30px;
  padding: 12px 20px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--navy);
  box-shadow: 0 12px 34px rgba(0,0,0,0.18);
  transition: background 0.2s ease, transform 0.2s ease;
}
.deg-badge:hover { background: #fff; transform: translateY(-1px); }
/* .deg-badge sets display:flex, which would otherwise beat the hidden
   attribute the JS sets when pano.degBadge is false. */
.deg-badge[hidden] { display: none; }
.deg-badge__icon { display: flex; align-items: center; }
.deg-badge__icon svg { width: 17px; height: 17px; }

/* The bottom-left scene caption has been removed — the header toggle and the
   point rail already carry that information. */

/* ---- Loading indicator ----
   Two grades. The full veil is for first entry, when the screen is genuinely
   empty. Once a panorama is up, a scene swap cross-fades from it — the old
   view stays sharp throughout — so dimming the screen there would be hiding
   something worth looking at. That case gets the chip instead. */
.pano-loading {
  position: absolute; inset: 0;
  z-index: 12;
  display: none;
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px;
  background: rgba(6, 12, 24, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  pointer-events: none;
}
.pano-loading.on { display: flex; }
.pano-loading__ring {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  border-top-color: var(--gold);
  animation: panoSpin 0.9s linear infinite;
  flex: none;
}
.pano-loading__text {
  font-family: var(--sans);
  font-size: 11px; font-weight: 500; letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
@keyframes panoSpin { to { transform: rotate(360deg); } }

/* the chip — same pill language as the other viewer controls */
.pano-loading--subtle {
  inset: auto;
  left: 50%; top: 104px;
  transform: translateX(-50%);
  flex-direction: row;
  gap: 10px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 30px;
  padding: 9px 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}
.pano-loading--subtle .pano-loading__ring {
  width: 15px; height: 15px;
  border-color: rgba(22,41,78,0.2);
  border-top-color: var(--navy);
}
.pano-loading--subtle .pano-loading__text { color: var(--navy); font-size: 10px; }

/* ---- Plot boundary overlay ----
   Sits above the panorama canvas but below every control, and never takes
   pointer events — a plot must not swallow a drag. */
/* =====================================================================
   BACKGROUND MUSIC TOGGLE
   Bottom-left, opposite the compass, so the two never collide. Sits above
   the panorama but below the slide-out menu.
   ===================================================================== */
.sound {
  position: fixed;
  left: 26px;
  bottom: 26px;
  z-index: 60;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(61, 73, 78, 0.55);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  color: #fff;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, transform .2s ease;
}
.sound:hover {
  background: rgba(61, 73, 78, 0.78);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}
/* No `display` here. `.sound svg` is specificity 0,1,1 and would outrank the
   0,1,0 state rules below, forcing BOTH speakers visible at once whatever the
   mute state — which is exactly what it did. Sizing only; the state rules own
   visibility. */
.sound svg { width: 21px; height: 21px; }

/* One button, two glyphs — exactly one is shown.

   Hide both, then turn a single one back on. Written this way so the rules
   never have to out-specify a competing `display` elsewhere: see the note on
   `.sound svg` above, where a sizing rule silently won and drew both. */
.sound__on,
.sound__off { display: none; }
.sound:not(.sound--muted) .sound__on { display: block; }
.sound.sound--muted .sound__off { display: block; }
.sound--muted { color: rgba(255, 255, 255, 0.65); }

/* Not on the landing page — the hero is a single clean statement and a
   floating control in the corner cuts across it. It appears from the
   destination chooser onwards, which is also where the music starts. */
body[data-level="level1"] .sound { display: none; }

/* A soft pulse the first time it appears, so a visitor who would rather
   have silence can find the control before the music has been on long. */
@keyframes soundIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sound { animation: soundIn .5s ease both; }

@media (max-width: 700px) {
  .sound { left: 16px; bottom: 16px; width: 42px; height: 42px; }
  .sound svg { width: 19px; height: 19px; }
}

/* =====================================================================
   CALL-OUTS
   =====================================================================
   Pins that name what the visitor is looking at. Positioned by transform
   every frame from js/plots.js; everything here is appearance only.
   ===================================================================== */
.callout-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  /* The layer must never eat a drag — only the pins take pointer events. */
  pointer-events: none;
  z-index: 5;
}

/* Layout: a card, a stem dropping from under the icon tile, and a dot that
   sits on the actual point. JS positions the whole thing by that DOT — the
   offsets it subtracts are DOT_X 26px and DOT_R 7px, which are set by
   .callout__stem and .callout__anchor below. Change one, change both. */
.callout {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  pointer-events: auto;
  cursor: default;
  will-change: transform;
}

/* Near the right edge the card grows leftwards; near the top it hangs
   below the dot instead of above it. */
.callout--flip  { align-items: flex-end; }
.callout--below { flex-direction: column-reverse; }

/* ---- the card ----
   A column: the uploaded photograph on top when there is one, and under it
   the bar — type picture at the left, name large beside it, short facts
   stacked underneath. The grey is the brand slate lifted until near-black
   type reads against it; the dark --slate itself would swallow the dark
   text the design calls for. */
.callout__card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  /* Two borders doing different jobs: the pale inner one draws the card
     against dark ground (hillside, storm cloud), the dark outer one draws it
     against bright ground (sky, water). One alone disappears against half
     the panorama — which is why a flat rectangle looked unfinished. */
  border: 1px solid rgba(255, 255, 255, .5);
  outline: 1px solid rgba(20, 25, 28, .3);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .32);
  overflow: hidden;                  /* keeps the photo inside the border */
  /* The card is a flex item with no width of its own, so the name could be
     squeezed narrower than the text in it — harmless while the card let the
     text spill, but the overflow above turns a squeeze into a cut-off word.
     max-content makes the card as wide as what is in it. */
  width: max-content;
  max-width: 340px;
}
/* A photo needs a width to be a width OF. Without a photo the card is
   whatever the name needs, which is what keeps short call-outs compact. */
.callout__card--photo { width: 260px; }

.callout__photo {
  width: 100%;
  height: 120px;
  background: var(--slate);
  border-bottom: 1px solid rgba(20, 25, 28, .3);
  overflow: hidden;
}
.callout__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* the Studio centre-crops on upload; this is the
                             second line of defence against distortion */
  display: block;
}

.callout__bar {
  display: flex;
  align-items: center;
  background: var(--slate-mid);
  padding: 12px 20px;
}
.callout--flip .callout__bar { flex-direction: row-reverse; }
.callout__card--photo .callout__title { max-width: 100%; }

/* A rule between the picture and the words, so the two halves read as two
   things rather than as a drawing that has drifted into the text. */
.callout__icon {
  flex: none;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--callout-ink);
  padding-right: 16px;
  margin-right: 16px;
  border-right: 1px solid rgba(20, 25, 28, .3);
  box-sizing: content-box;    /* the 56 stays the drawing, not drawing+rule */
}
.callout--flip .callout__icon {
  padding: 0 0 0 16px;
  margin: 0 0 0 16px;
  border-right: none;
  border-left: 1px solid rgba(20, 25, 28, .3);
}
.callout__icon svg { width: 100%; height: 100%; display: block; }

/* Left-aligned even when the card is flipped. Text that changes edge
   depending on where the pin happens to sit reads as two different designs
   in one view. */
.callout__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.callout__title {
  font-family: "Jost", sans-serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: .2px;
  line-height: 1.2;
  color: var(--callout-ink);
  max-width: 260px;
}

/* The short facts under the name — "19KM", "-35MINS". A comma in the
   Studio's Facts field starts a new one; see js/plots.js. Set slightly
   back from the name so the two are a heading and its detail rather than
   two competing lines. */
.callout__meta {
  font-family: "Jost", sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 1.3px;
  line-height: 1.45;
  text-transform: uppercase;
  color: rgba(20, 25, 28, .82);
}
/* A short rule under the name, the width of the text above it, tying the
   facts to their heading. */
.callout__title + .callout__meta {
  margin-top: 7px;
  padding-top: 8px;
  border-top: 1px solid rgba(20, 25, 28, .28);
  align-self: stretch;
}

/* Longer text stays folded away until asked for — a view covered in
   paragraphs is worse than no labels at all. */
.callout__note {
  display: none;
  font-family: "Jost", sans-serif;
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: .2px;
  color: var(--callout-ink);
  padding: 6px 0 0;
  max-width: 260px;
  white-space: normal;
}
.callout--has-note .callout__card { cursor: pointer; }
.callout--has-note:hover .callout__note,
.callout--open .callout__note { display: block; }

/* ---- stem + anchor ---- */
.callout__stem {
  width: 2px;
  height: 62px;
  margin-left: 25px;          /* drops from under the picture at the left */
  background: linear-gradient(180deg, #fff, rgba(255, 255, 255, .55));
}
.callout--flip  .callout__stem { margin-left: 0; margin-right: 25px; }
.callout--below .callout__stem {
  background: linear-gradient(0deg, #fff, rgba(255, 255, 255, .55));
}

.callout__anchor {
  /* border-box, so the 2.5px ring is INSIDE the 14px and the dot's centre is
     exactly 19 + 7 = 26px in and 7px up. Without it the border sat outside,
     the real centre was 28.5px, and every pin landed 2.5px off its point —
     small, but a constant lie about where the thing being labelled is. */
  box-sizing: border-box;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-left: 19px;          /* dot centre lands 26px in — DOT_X in plots.js */
  background: var(--slate);
  border: 2.5px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}
.callout--flip .callout__anchor { margin-left: 0; margin-right: 19px; }

/* Small screens shrink the TEXT and the stem, but deliberately NOT the
   stem/anchor margins: those set where the dot sits inside the box, and
   plots.js subtracts that as a fixed 26px to place the pin. Changing them
   here would silently offset every call-out on mobile only. */
@media (max-width: 700px) {
  .callout__bar   { padding: 9px 14px; }
  .callout__card--photo { width: 200px; }
  .callout__photo { height: 96px; }
  .callout__icon  { width: 42px; height: 42px; padding-right: 11px; margin-right: 11px; }
  .callout--flip .callout__icon { padding: 0 0 0 11px; margin: 0 0 0 11px; }
  .callout__title { font-size: 15px; max-width: 180px; }
  .callout__meta  { font-size: 10px; letter-spacing: 1.1px; }
  .callout__title + .callout__meta { margin-top: 5px; padding-top: 6px; }
  .callout__note  { font-size: 11.5px; max-width: 180px; }
  .callout__stem  { height: 44px; }
}

.plot-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
  overflow: visible;
}
.plot-layer__label {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  paint-order: stroke;
  stroke: rgba(10, 18, 26, 0.65);
  stroke-width: 3px;
  stroke-linejoin: round;
  dominant-baseline: middle;
}

/* hide pannellum default UI */
.pnlm-controls-container, .pnlm-panorama-info, .pnlm-load-box { display: none !important; }

/* =====================================================================
   SLIDE-OUT MENU
   ===================================================================== */
.menu-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 340px;
  background: var(--navy);
  z-index: 60;
  transform: translateX(100%);
  transition: transform 0.4s ease;
  padding: 90px 44px;
  overflow-y: auto;
}
.menu-panel--open { transform: none; }
.menu-panel__close {
  position: absolute;
  top: 30px; right: 40px;
  font-size: 34px;
  color: #fff;
  background: none; border: none; cursor: pointer;
  line-height: 1;
}
.menu-panel__nav { display: flex; flex-direction: column; gap: 8px; }
.menu-panel__nav a {
  font-family: var(--serif);
  font-size: 26px;
  color: #fff;
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.menu-panel__nav a:hover { color: var(--gold); padding-left: 8px; }
.menu-panel__nav a.is-disabled { opacity: 0.4; pointer-events: none; }

/* The destination list that used to sit here has been removed — the three
   destinations are offered on the header bar only. */

/* =====================================================================
   LIVE COMPASS
   ===================================================================== */
.compass {
  position: fixed;
  right: 30px; top: 130px;
  z-index: 40;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  /* It used to be pointer-events:none, as a pure readout. It is a control
     now — clicking it swings the view to north — so it has to accept the
     click it is being offered. */
  pointer-events: auto;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .2s ease;
}
.compass:hover { transform: scale(1.06); }
.compass:active { transform: scale(0.98); }
.compass:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 6px;
  border-radius: 12px;
}
.compass[hidden] { display: none; }
.compass__dial {
  width: 74px; height: 74px;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  transition: box-shadow .2s ease;
}
.compass:hover .compass__dial {
  box-shadow: 0 6px 22px rgba(0,0,0,.45), 0 0 0 2px rgba(255,255,255,.35);
}
.compass__dial svg { width: 100%; height: 100%; display: block; }
.compass text {
  text-anchor: middle;
  font-family: var(--sans);
  font-size: 11px; font-weight: 700;
  dominant-baseline: middle;
}
.compass__n { fill: #e6b463; }
.compass__d { fill: #ffffff; }
.compass__label {
  font-family: var(--sans);
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1180px) {
  .view-switch__btn { padding: 8px 12px; letter-spacing: 1.5px; font-size: 12px; }
  .view-switch__ic { display: none; }
}
@media (max-width: 900px) {
  .site-head { padding: 22px 24px; }
  .viewer__head { padding: 5px 20px; }
  .hero__content { left: 28px; right: 28px; }
  .brand__main { font-size: 24px; }
  /* Below this width five cards in a row would be unreadably narrow, so the
     row is allowed to wrap again — they stay equal-width within each line. */
  .cards { gap: 18px; flex-wrap: wrap; }
  .card { flex: 0 1 260px; }
  .floors { left: 14px; padding: 14px 10px; min-width: 78px; }
  .floor__num { font-size: 16px; }
  .deg-badge { right: 14px; bottom: 20px; padding: 10px 16px; }
  .compass { right: 16px; top: 110px; }
  .compass__dial { width: 60px; height: 60px; }
  .viewer__divider, .menu-text span:last-child { display: none; }
}

/* Short / square windows (incl. phones in landscape) */
@media (max-height: 820px) {
  .site-head { padding: 16px 24px; }
  .brand__main { font-size: 22px; }
  /* Short windows: the hero logo has to give way to the headline, but the
     viewer bar can still carry a decent logo since it only costs bar height.
     The .site-head padding above also matches .viewer__head (same element,
     both classes, equal specificity, later wins) and would put the bar's
     fat padding back — so restate it here, tight, after that rule. */
  .viewer__head { padding: 9px 24px; }
  .brand__logo { width: 210px; }
  .viewer__head .brand__logo { width: 168px; }
  .hero__content {
    top: auto; bottom: 34px; transform: none;
    left: 34px; right: 34px; max-width: 620px;
  }
  .eyebrow { font-size: 12px; letter-spacing: 3px; }
  .hero__title { font-size: 34px; line-height: 1.05; margin-top: 10px; }
  .rule { margin: 14px 0 12px; }
  .hero__desc { font-size: 14px; line-height: 1.5; max-width: 460px; }
  .btn-primary { padding: 14px 26px; margin-top: 18px; }
  .scroll-hint { display: none; }
  .chooser__inner { padding-top: 110px; }
  .floors { padding: 12px 10px; max-height: 60vh; }
  .floors__list { gap: 4px; }
  .floor { padding: 8px; }
  .floor__num { font-size: 16px; }
  .compass { top: 100px; }
  .pano-loading--subtle { top: 86px; }
}
@media (max-height: 620px) {
  .eyebrow { display: none; }
  .hero__title { font-size: 26px; margin-top: 6px; }
  .hero__desc { font-size: 13px; line-height: 1.45; }
  .btn-primary { padding: 12px 22px; margin-top: 14px; font-size: 13px; }
  .compass { display: none; }
}

/* =====================================================================
   MOBILE — rotate to landscape prompt
   ===================================================================== */
.rotate-note { display: none; }
@media (max-width: 900px) and (orientation: portrait) {
  .rotate-note {
    display: flex;
    position: fixed; inset: 0;
    z-index: 9998;
    flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center;
    gap: 18px;
    padding: 32px;
    background: var(--navy);
    color: #fff;
  }
  .rotate-note__icon {
    width: 66px; height: 66px;
    color: var(--gold);
    animation: rotate-hint 2.2s ease-in-out infinite;
  }
  .rotate-note__title {
    font-family: var(--serif);
    font-size: 26px; font-weight: 600;
    letter-spacing: 1px;
  }
  .rotate-note__sub {
    font-family: var(--sans);
    font-size: 14px; font-weight: 400;
    letter-spacing: 2px;
    opacity: 0.75;
    max-width: 320px;
    line-height: 1.6;
  }
}
@keyframes rotate-hint {
  0%, 40%   { transform: rotate(0deg); }
  60%, 100% { transform: rotate(-90deg); }
}


/* =====================================================================
   UI REFRESH — 2026-08-12
   =====================================================================
   Five things, in the order they were asked for:

     1. the call-out card, which read as a flat grey slab
     2. a living anchor dot instead of a static ring
     3. PHONE SIZING — see the note at (3), this was an actual bug
     4. the per-destination facts panel (area / zoning / FSI)
     5. a little more life, and more presence for the logo

   Everything here is appended deliberately. These are refinements ON TOP
   of the rules above, and keeping them in one dated block means the whole
   refresh can be read — or removed — as a unit. The palette is untouched:
   every colour below is drawn from the existing --slate / --sage family.
   ===================================================================== */


/* ---------------------------------------------------------------------
   1. THE CALL-OUT CARD
   ---------------------------------------------------------------------
   The bar was one flat fill, which is why it sat ON the panorama rather
   than IN it. Three changes, none of them a colour change:

     - a soft vertical gradient, so the card has a light direction that
       agrees with the sky above it
     - a blur behind the fill, so what is behind the card influences it
     - a 1px inner highlight along the top edge, which is what reads as
       "an object with a lit edge" rather than "a rectangle of paint"

   The gradient stays inside the existing --slate-mid family: #7E8A92 to
   #616C74 sit either side of the #6B757C it replaces, so the average
   tone on screen is unchanged and the dark type keeps its contrast. */
.callout__card {
  border-radius: 3px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .34),
              0 3px 8px  rgba(0, 0, 0, .24);
  transition: transform .38s cubic-bezier(.2, .7, .3, 1),
              box-shadow .38s cubic-bezier(.2, .7, .3, 1);
}
.callout:hover .callout__card {
  transform: translateY(-2px);
  box-shadow: 0 24px 52px rgba(0, 0, 0, .38),
              0 4px 10px rgba(0, 0, 0, .26);
}

.callout__bar {
  position: relative;
  background: linear-gradient(163deg,
              rgba(126, 138, 146, .95) 0%,
              rgba(107, 117, 124, .94) 52%,
              rgba(97, 108, 116, .94) 100%);
  -webkit-backdrop-filter: blur(7px) saturate(1.06);
          backdrop-filter: blur(7px) saturate(1.06);
}
/* The lit top edge. Fades out at both ends so it reads as a highlight
   catching the light, not as a drawn border. */
.callout__bar::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg,
              rgba(255, 255, 255, 0),
              rgba(255, 255, 255, .55) 22%,
              rgba(255, 255, 255, .55) 78%,
              rgba(255, 255, 255, 0));
  pointer-events: none;
}

/* The divider between the picture and the words was a hard rule running
   the full height, which is the single most "clip-art" thing about the
   old bar. Graded away at both ends it does the same job and stops
   announcing itself. */
.callout__icon {
  position: relative;
  border-right-color: transparent;
  filter: drop-shadow(0 1px 1px rgba(255, 255, 255, .22));
}
.callout--flip .callout__icon { border-left-color: transparent; }
.callout__icon::after {
  content: "";
  position: absolute;
  top: 12%; bottom: 12%;
  right: 0;
  width: 1px;
  background: linear-gradient(180deg,
              rgba(20, 25, 28, 0),
              rgba(20, 25, 28, .40) 28%,
              rgba(20, 25, 28, .40) 72%,
              rgba(20, 25, 28, 0));
}
.callout--flip .callout__icon::after { right: auto; left: 0; }

/* The rule under the name, same treatment. */
.callout__title + .callout__meta {
  border-top: none;
  position: relative;
}
.callout__title + .callout__meta::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg,
              rgba(20, 25, 28, .34),
              rgba(20, 25, 28, .10) 78%,
              rgba(20, 25, 28, 0));
}


/* ---------------------------------------------------------------------
   2. THE LIVING ANCHOR
   ---------------------------------------------------------------------
   Two rings expanding out of the dot, half a cycle apart, so there is
   always one on its way out. This is the only thing on screen that moves
   by itself while the view is still, which is exactly why it draws the
   eye to the thing being named.

   Both rings are ::before/::after on the dot itself — no extra element,
   so js/plots.js still measures and positions exactly what it did before
   and the 26px DOT_X maths is untouched. */
.callout__anchor {
  position: relative;
  background: var(--slate);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .45),
              0 0 0 1px rgba(20, 25, 28, .18),
              0 0 12px rgba(255, 255, 255, .30);
}
.callout__anchor::before,
.callout__anchor::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 100%; height: 100%;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .85);
  transform: translate(-50%, -50%) scale(1);
  animation: coPulse 2.8s cubic-bezier(.16, .62, .3, 1) infinite;
  pointer-events: none;
}
.callout__anchor::after { animation-delay: 1.4s; }

@keyframes coPulse {
  0%   { transform: translate(-50%, -50%) scale(1);   opacity: .9; }
  62%  { opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(3.4); opacity: 0; }
}


/* ---------------------------------------------------------------------
   3. PHONE SIZING  —  THE BUG
   ---------------------------------------------------------------------
   The call-outs were the right size on a desktop and far too big on a
   phone, and the reason is worth writing down so it does not come back.

   The only responsive rule for them was:

       @media (max-width: 700px) { ... }

   A phone in LANDSCAPE is about 844px WIDE. So that rule never fired on
   a phone — and this tour forces landscape, it shows "Please rotate your
   device" in portrait. The one shrink rule the call-outs had could
   therefore never apply on the one orientation anybody ever sees them in.

   Phones are short, not narrow, once they are turned on their side. So
   the sizing hangs off HEIGHT, which is what the rest of this stylesheet
   already does for the eyebrow at max-height: 620px.

   NOTE, as the original rules warn: the stem and anchor MARGINS are left
   alone on purpose. They fix where the dot sits inside the pin's box, and
   js/plots.js subtracts a hard-coded 26px to place it. Shrink those here
   and every call-out would land off its point, on phones only, in a way
   that would be very hard to trace later. Padding, type and stem HEIGHT
   are all safe. */
@media (max-height: 620px) {
  .callout__bar   { padding: 8px 13px; }
  .callout__card  { max-width: 240px; border-radius: 2.5px; }
  .callout__card--photo { width: 186px; }
  .callout__photo { height: 84px; }
  .callout__icon  { width: 36px; height: 36px; padding-right: 10px; margin-right: 10px; }
  .callout--flip .callout__icon { padding: 0 0 0 10px; margin: 0 0 0 10px; }
  .callout__title { font-size: 13.5px; max-width: 158px; }
  .callout__meta  { font-size: 9.5px; letter-spacing: 1px; line-height: 1.35; }
  .callout__title + .callout__meta { margin-top: 5px; padding-top: 5px; }
  .callout__note  { font-size: 11px; max-width: 158px; }
  .callout__stem  { height: 38px; }
  .callout__card, .callout:hover .callout__card {
    box-shadow: 0 10px 24px rgba(0, 0, 0, .32);
  }
}

/* A small phone on its side — 375 to 430px tall. Tighter again, and the
   pulse rings are pulled in so four call-outs do not fill the sky. */
@media (max-height: 450px) {
  .callout__bar   { padding: 6px 10px; }
  .callout__card  { max-width: 200px; }
  .callout__icon  { width: 28px; height: 28px; padding-right: 8px; margin-right: 8px; }
  .callout--flip .callout__icon { padding: 0 0 0 8px; margin: 0 0 0 8px; }
  .callout__title { font-size: 12px; max-width: 132px; }
  .callout__meta  { font-size: 8.5px; letter-spacing: .8px; }
  .callout__title + .callout__meta { margin-top: 4px; padding-top: 4px; }
  .callout__stem  { height: 26px; }
  .callout__anchor::before,
  .callout__anchor::after { animation-name: coPulseSm; }
}
@keyframes coPulseSm {
  0%   { transform: translate(-50%, -50%) scale(1);   opacity: .85; }
  62%  { opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(2.4); opacity: 0; }
}


/* ---------------------------------------------------------------------
   4. THE FACTS PANEL
   ---------------------------------------------------------------------
   ONE panel, not a panel plus a chip. The destination name is the panel's
   own header row and doubles as the collapse control, so there is a single
   object in the corner instead of two stacked ones.

   It opens by itself when a destination loads. Four short lines did not
   justify making the visitor press something first.

   Bottom-right, which is the one corner of the viewer with nothing in it:
   the logo and toggles run along the top, the POINT rail is at the left,
   the compass sits top-right and the sound button bottom-left.

   Only the panel takes pointer events -- a drag started anywhere around it
   still pans the panorama.

   COLOUR: dark translucent glass rather than the flat white slab. It is the
   same treatment as the call-out bars, so the two overlays now read as one
   family, and the panorama shows through it instead of being blanked out.
   --------------------------------------------------------------------- */
.factbox {
  position: absolute;
  right: 34px;
  bottom: 34px;
  z-index: 16;
  pointer-events: none;          /* the corner stays draggable ... */
}
.factbox[hidden] { display: none; }

.factbox__panel {
  pointer-events: auto;          /* ... the panel itself does not */
  min-width: 244px;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(158deg,
              rgba(48, 59, 64, .50) 0%,
              rgba(32, 40, 44, .60) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(1.18);
          backdrop-filter: blur(16px) saturate(1.18);
  /* Two borders, as on the call-out card: the pale one holds the panel
     against dark ground, the dark one against bright sky. */
  border: 1px solid rgba(255, 255, 255, .17);
  box-shadow: 0 20px 52px rgba(0, 0, 0, .36),
              0 2px 6px rgba(0, 0, 0, .22);
  animation: factIn .65s cubic-bezier(.2, .7, .3, 1) both;
}
@keyframes factIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---- header row: dot + destination name + chevron ---- */
.factbox__head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .07);
  cursor: pointer;
  text-align: left;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  transition: background .22s ease;
  -webkit-tap-highlight-color: transparent;
}
.factbox__head:hover { background: rgba(255, 255, 255, .12); }
.factbox__label { flex: 1 1 auto; }

/* A sage dot that breathes -- the same "this is live" signal as the
   call-out anchors, at panel scale. */
.factbox__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--sage);
  flex: none;
  animation: factPulse 2.6s ease-in-out infinite;
}
@keyframes factPulse {
  0%, 100% { opacity: 1;  box-shadow: 0 0 0 0   rgba(160, 186, 172, .55); }
  50%      { opacity: .7; box-shadow: 0 0 0 5px rgba(160, 186, 172, 0); }
}

.factbox__chev {
  display: flex;
  width: 13px; height: 13px;
  flex: none;
  color: rgba(255, 255, 255, .65);
  transition: transform .3s cubic-bezier(.2, .7, .3, 1);
}
.factbox__chev svg { width: 100%; height: 100%; }
.factbox--open .factbox__chev { transform: rotate(180deg); }

/* ---- the rows ---- */
.factbox__list {
  display: grid;
  grid-template-columns: auto 1fr;
  /* Column gap is ZERO on purpose. With a gap, the row hairline below each
     cell broke into two stubs with a hole between them. The cells now touch
     and the spacing is padding INSIDE them, so the two borders meet and read
     as one continuous line across the row. */
  gap: 0;
  align-items: baseline;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding: 0 18px;
  transition: max-height .4s cubic-bezier(.2, .7, .3, 1),
              opacity    .3s ease,
              padding    .4s cubic-bezier(.2, .7, .3, 1);
}
.factbox--open .factbox__list {
  max-height: 340px;
  opacity: 1;
  padding: 15px 18px 17px;
}

.factbox__key {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
  white-space: nowrap;
  padding: 6px 26px 6px 0;
}
.factbox__val {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
  text-align: right;
  white-space: nowrap;
  padding: 6px 0;
}
/* A hairline between rows, faded at the right so it does not box the
   values in. Not after the last row. */
.factbox__val:not(:last-of-type),
.factbox__key:not(:last-of-type) {
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}

/* Same height-based sizing as the call-outs: a phone on its side is short,
   not narrow, and this panel is in the corner it has least of. */
@media (max-height: 620px) {
  .factbox { right: 20px; bottom: 20px; }
  .factbox__panel { min-width: 200px; }
  .factbox__head  { padding: 9px 13px; font-size: 9.5px; letter-spacing: 1.4px; gap: 8px; }
  .factbox--open .factbox__list { padding: 11px 14px 13px; max-height: 260px; }
  .factbox__key   { font-size: 8.5px; letter-spacing: 1.2px; padding: 5px 18px 5px 0; }
  .factbox__val   { font-size: 15px; padding: 5px 0; }
}
@media (max-height: 450px) {
  .factbox { right: 14px; bottom: 14px; }
  .factbox__panel { min-width: 172px; }
  .factbox__head  { padding: 7px 11px; font-size: 8.5px; letter-spacing: 1.1px; }
  .factbox--open .factbox__list { padding: 8px 11px 10px; }
  .factbox__key   { font-size: 8px; padding: 4px 14px 4px 0; }
  .factbox__val   { font-size: 13px; padding: 4px 0; }
}


/* ---------------------------------------------------------------------
   5. A LITTLE MORE LIFE
   ---------------------------------------------------------------------
   Restraint is the point. This is a property tour, not a showreel: the
   panorama should be the only thing competing for attention once a scene
   has settled. So everything here either happens ONCE on entry, or is
   small enough to register without being watched.
   --------------------------------------------------------------------- */

/* The logo, which was simply present. Now it arrives — and it arrives
   last, after the eyebrow and the headline, so the eye finishes on it. */
.brand__logo {
  animation: brandIn .9s cubic-bezier(.2, .7, .3, 1) both;
  animation-delay: .12s;
  transition: transform .45s cubic-bezier(.2, .7, .3, 1),
              filter    .45s ease;
  transform-origin: left center;
}
.hero .brand__logo,
.chooser .brand__logo {
  filter: drop-shadow(0 3px 10px rgba(61, 73, 78, .16));
}
.viewer__head .brand__logo {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .35));
}
.brand:hover .brand__logo { transform: scale(1.025); }

@keyframes brandIn {
  from { opacity: 0; transform: translateY(-8px) scale(.985); }
  to   { opacity: 1; transform: none; }
}

/* The hero, staggered. Each element is already in place — this only sets
   the order they appear in, which is what turns a page that is simply
   THERE on load into one that opens. */
.hero .eyebrow      { animation: heroRise .85s cubic-bezier(.2,.7,.3,1) .18s both; }
.hero .hero__title  { animation: heroRise .95s cubic-bezier(.2,.7,.3,1) .30s both; }
.hero .rule         { animation: ruleGrow .8s cubic-bezier(.2,.7,.3,1) .52s both; }
.hero .hero__desc   { animation: heroRise .9s  cubic-bezier(.2,.7,.3,1) .62s both; }
.hero .btn-primary  { animation: heroRise .9s  cubic-bezier(.2,.7,.3,1) .78s both; }

@keyframes heroRise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes ruleGrow {
  from { opacity: 0; transform: scaleX(0); }
  to   { opacity: 1; transform: scaleX(1); }
}
.hero .rule { transform-origin: left center; }

/* The primary button gets a sheen that crosses once on hover. */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(100deg,
              rgba(255, 255, 255, 0),
              rgba(255, 255, 255, .16),
              rgba(255, 255, 255, 0));
  transform: skewX(-18deg);
  transition: left .65s cubic-bezier(.2, .7, .3, 1);
  pointer-events: none;
}
.btn-primary:hover::after { left: 120%; }

/* The destination cards come in one after another rather than all at once.
   Four is the current count; a fifth would simply arrive with the fourth,
   which is a better failure than a rule that breaks. */
.chooser .card { animation: cardRise .7s cubic-bezier(.2, .7, .3, 1) both; }
.chooser .card:nth-child(1) { animation-delay: .06s; }
.chooser .card:nth-child(2) { animation-delay: .14s; }
.chooser .card:nth-child(3) { animation-delay: .22s; }
.chooser .card:nth-child(n+4) { animation-delay: .30s; }

@keyframes cardRise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* The compass needle earns a soft glow so it reads as an instrument that
   is live rather than a drawing of one. */
.compass__dial { transition: filter .3s ease; }
.compass:hover .compass__dial { filter: drop-shadow(0 0 6px rgba(255, 255, 255, .5)); }


/* ---------------------------------------------------------------------
   MOTION, OPTED OUT
   ---------------------------------------------------------------------
   Everything above is decoration. A visitor who has asked their system to
   reduce motion gets the finished state immediately and none of the
   travel — including the call-out pulse, which is the one loop that never
   stops on its own. */
@media (prefers-reduced-motion: reduce) {
  .callout__anchor::before,
  .callout__anchor::after,
  .factbox__dot {
    animation: none;
  }
  .callout__anchor::before,
  .callout__anchor::after { opacity: 0; }
  .brand__logo,
  .hero .eyebrow, .hero .hero__title, .hero .rule,
  .hero .hero__desc, .hero .btn-primary,
  .chooser .card {
    animation: none;
  }
  .btn-primary::after { transition: none; }
  .factbox__panel { transition: opacity .2s ease; }
}


/* ---------------------------------------------------------------------
   6. THE REST OF THE PHONE PASS
   ---------------------------------------------------------------------
   Same diagnosis as (3): the existing breakpoints are mostly width-based,
   and a landscape phone is wide. What it is short of is HEIGHT, so that
   is what these hang off.
   --------------------------------------------------------------------- */

/* The eyebrow was hidden outright below 620px tall. That was a fair call
   when it read "Experience the View" — it is not, now that it carries
   "3 Decades of Leading Alibag's Real Estate Story", which is the
   positioning line. Since this tour FORCES landscape, hiding it below
   620px meant no phone visitor would ever see it. It comes back, small
   and tracked tight so it still reads as an eyebrow rather than a second
   headline. */
@media (max-height: 620px) {
  .eyebrow {
    display: block;
    font-size: 9.5px;
    letter-spacing: 1.8px;
    line-height: 1.3;
  }
}
@media (max-height: 450px) {
  .eyebrow { font-size: 8.5px; letter-spacing: 1.4px; }
}

/* The POINT rail was taking better than half the height of a phone screen.
   The 820px block already tightens it once; below 450 it needs to go
   further, because at that size the rail is competing with the view it
   exists to navigate. */
@media (max-height: 450px) {
  .floors {
    left: 16px;
    padding: 9px 8px;
    min-width: 74px;
    border-radius: 12px;
    max-height: 74vh;
  }
  .floors__label {
    font-size: 8.5px;
    letter-spacing: 2px;
    padding-bottom: 6px;
    margin-bottom: 7px;
  }
  .floors__list { gap: 2px; }
  .floor        { padding: 6px; border-radius: 9px; }
  .floor__num   { font-size: 13px; }

  /* The bar and the logo come down with it, so the panorama keeps as much
     of a short screen as possible. */
  .site-head, .viewer__head { padding: 7px 16px; }
  .viewer__head .brand__logo { width: 132px; }
  .brand__logo { width: 150px; }

  .sound { left: 14px; bottom: 14px; width: 38px; height: 38px; }
  .sound svg { width: 17px; height: 17px; }
}


/* ---------------------------------------------------------------------
   7. CALL-OUTS WITH A NAME BUT NO FACTS LINE
   ---------------------------------------------------------------------
   The Lake District bars carry a name AND a facts line ("19 KM / 35 MINS"),
   which is what gives them their two-row proportion and the hairline in
   between. The Zen pins name a gate and a jetty and have nothing to put on
   a second line -- and in a bar sized for two rows, one row floats in too
   much air and reads as unfinished rather than as deliberately short.

   So a single-line call-out gets its own proportions: a tighter bar, a
   smaller icon tile, and the name set slightly smaller so the card is
   compact instead of stretched. Same materials, correct proportion.

   `:has()` does the detecting -- no extra class, so nothing in the Studio
   or in js/plots.js has to know about this. A browser too old for :has()
   simply keeps the previous look; nothing breaks. */
.callout__card:has(.callout__title:only-child) {
  max-width: 270px;
}
.callout__card:has(.callout__title:only-child) .callout__bar {
  padding: 9px 17px 9px 15px;
}
.callout__card:has(.callout__title:only-child) .callout__icon {
  width: 38px;
  height: 38px;
  padding-right: 13px;
  margin-right: 13px;
}
.callout--flip .callout__card:has(.callout__title:only-child) .callout__icon,
.callout__card:has(.callout__title:only-child) .callout--flip .callout__icon {
  padding: 0 0 0 13px;
  margin: 0 0 0 13px;
}
.callout__card:has(.callout__title:only-child) .callout__title {
  font-size: 17px;
  letter-spacing: .3px;
}

@media (max-height: 620px) {
  .callout__card:has(.callout__title:only-child) { max-width: 210px; }
  .callout__card:has(.callout__title:only-child) .callout__bar   { padding: 7px 12px 7px 10px; }
  .callout__card:has(.callout__title:only-child) .callout__icon  { width: 28px; height: 28px; padding-right: 9px; margin-right: 9px; }
  .callout__card:has(.callout__title:only-child) .callout__title { font-size: 12.5px; }
}
@media (max-height: 450px) {
  .callout__card:has(.callout__title:only-child) { max-width: 180px; }
  .callout__card:has(.callout__title:only-child) .callout__icon  { width: 24px; height: 24px; padding-right: 8px; margin-right: 8px; }
  .callout__card:has(.callout__title:only-child) .callout__title { font-size: 11.5px; }
}


/* =====================================================================
   8. FLUID UI SCALE  —  the same design at every resolution
   =====================================================================
   The overlays were sized in FIXED PIXELS. A 20px label is 0.78% of a
   2560px screen and 1.04% of a 1920px one, so the whole interface grew
   by a third on a 1080p display: readable on the machine it was designed
   on, crowded everywhere else. Nothing was "too big" -- it was absolute
   where it needed to be relative.

   Everything below is driven by vw with clamp() floors and ceilings:

       clamp(MIN, PREFERRED-in-vw, MAX)

   The vw value is set so the design lands exactly where it is now on a
   2560px screen, scales down smoothly through 1920 and 1440, and stops
   at a legible floor rather than shrinking forever.

       screen     1366    1920    2560
       title      ~11px   15px    20px

   The floors matter as much as the ceilings. Below them text stops being
   readable, and a call-out nobody can read is worse than one that is
   slightly too big.
   ===================================================================== */
.callout-layer {
  /* One place to change the whole call-out scale.
     ALSO READ BY js/plots.js -- it takes --co-stem from here rather than
     keeping its own copy of the number, so the layout maths can no longer
     drift away from the stylesheet the way it did before. */
  --co-stem:  clamp(26px, 2.42vw, 62px);
  --co-title: clamp(11px, 0.78vw, 20px);
  --co-meta:  clamp(8px,  0.45vw, 11.5px);
  --co-icon:  clamp(26px, 2.19vw, 56px);
  --co-padx:  clamp(9px,  0.78vw, 20px);
  --co-pady:  clamp(6px,  0.47vw, 12px);
  --co-gap:   clamp(8px,  0.62vw, 16px);
}

.callout__stem  { height: var(--co-stem); }
.callout__title { font-size: var(--co-title); max-width: clamp(120px, 10.2vw, 260px); }
.callout__meta  { font-size: var(--co-meta); letter-spacing: clamp(.8px, .05vw, 1.3px); }
.callout__bar   { padding: var(--co-pady) var(--co-padx); }
.callout__icon  {
  width: var(--co-icon);
  height: var(--co-icon);
  padding-right: var(--co-gap);
  margin-right: var(--co-gap);
}
.callout--flip .callout__icon {
  padding: 0 0 0 var(--co-gap);
  margin: 0 0 0 var(--co-gap);
}
.callout__card  { max-width: clamp(190px, 13.3vw, 340px); }
.callout__note  { font-size: clamp(10px, 0.49vw, 12.5px); max-width: clamp(120px, 10.2vw, 260px); }
.callout__photo { height: clamp(70px, 4.7vw, 120px); }
.callout__card--photo { width: clamp(160px, 10.2vw, 260px); }

/* Single-line call-outs keep their tighter proportions, now also fluid. */
.callout__card:has(.callout__title:only-child) .callout__bar {
  padding: calc(var(--co-pady) * .78) calc(var(--co-padx) * .85);
}
.callout__card:has(.callout__title:only-child) .callout__icon {
  width: calc(var(--co-icon) * .68);
  height: calc(var(--co-icon) * .68);
  padding-right: calc(var(--co-gap) * .8);
  margin-right: calc(var(--co-gap) * .8);
}
.callout__card:has(.callout__title:only-child) .callout__title {
  font-size: calc(var(--co-title) * .87);
}

/* ---- the POINT rail ---- */
.floors {
  left: clamp(14px, 1.17vw, 30px);
  padding: clamp(9px, 0.86vw, 22px) clamp(8px, 0.62vw, 16px);
  min-width: clamp(66px, 3.75vw, 96px);
  border-radius: clamp(10px, 0.62vw, 16px);
}
.floors__label { font-size: clamp(8px, 0.43vw, 11px); letter-spacing: clamp(1.6px, .12vw, 3px); }
.floors__list  { gap: clamp(3px, 0.39vw, 10px); }
.floor         { padding: clamp(6px, 0.47vw, 12px) clamp(5px, 0.39vw, 10px); border-radius: clamp(8px, 0.47vw, 12px); }
.floor__num    { font-size: clamp(12px, 0.74vw, 19px); }

/* ---- the facts panel ---- */
.factbox        { right: clamp(14px, 1.33vw, 34px); bottom: clamp(14px, 1.33vw, 34px); }
.factbox__panel { min-width: clamp(170px, 9.5vw, 244px); }
.factbox__head  { padding: clamp(7px, 0.47vw, 12px) clamp(11px, 0.62vw, 16px); font-size: clamp(8.5px, 0.43vw, 11px); }
.factbox--open .factbox__list { padding: clamp(9px, 0.59vw, 15px) clamp(12px, 0.7vw, 18px) clamp(10px, 0.66vw, 17px); }
.factbox__key   { font-size: clamp(8px, 0.37vw, 9.5px); padding: clamp(3px,.23vw,6px) clamp(14px,1.02vw,26px) clamp(3px,.23vw,6px) 0; }
.factbox__val   { font-size: clamp(13px, 0.74vw, 19px); padding: clamp(3px,.23vw,6px) 0; }

/* ---- the viewer bar ---- */
.viewer__head .brand__logo { width: clamp(120px, 8.4vw, 214px); }
.view-switch   { gap: clamp(4px, 0.35vw, 9px); }
.compass       { right: clamp(14px, 1.17vw, 30px); }


/* =====================================================================
   9. THE OPENING SCREEN, REDONE
   =====================================================================
   Three things were wrong with it, and they compounded:

   1. A 96%-white gradient sat over the left two-thirds of the panorama,
      so the photograph — the whole reason anyone opens this — was washed
      out to almost nothing behind the text.

   2. The panorama was shown at `cover`, which on a 2:1 equirectangular
      image means you see nearly the whole sphere at once. That is what
      produced the bent horizon: it is not a bad photograph, it is the
      wrong crop. Zooming into the middle band shows a narrower slice, and
      a narrower slice of an equirectangular image is a straighter one.

   3. The content sat hard against the left edge on a wide screen, leaving
      the middle empty.

   So: the image runs full-bleed and dark, the scrim is a soft vignette
   rather than a wash, and the content is centred. The white wordmark
   replaces the slate one, since the surface is now dark — both files
   already exist. This also brings the opening screen into the same family
   as the viewer bar and the overlays, instead of being a light page that
   jumps to a dark one on entry.
   ===================================================================== */
.hero { background: #1B2225; }

.hero__media {
  /* A tighter crop of the panorama. cover on a 2:1 source shows too much
     sphere at once and bends the horizon; ~215% shows the middle band,
     which reads as an ordinary wide photograph. */
  background-size: 215% auto;
  background-position: 50% 47%;
  background-repeat: no-repeat;
}

.hero__overlay {
  background:
    /* legibility under the text, strongest at the bottom */
    linear-gradient(180deg,
      rgba(16, 21, 24, .58) 0%,
      rgba(16, 21, 24, .18) 26%,
      rgba(16, 21, 24, .34) 58%,
      rgba(12, 16, 18, .86) 100%),
    /* a gentle vignette so the frame has edges */
    radial-gradient(120% 90% at 50% 42%,
      rgba(0, 0, 0, 0) 38%,
      rgba(8, 11, 13, .55) 100%);
}

.hero__content {
  left: 50%;
  right: auto;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: min(760px, 82vw);
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, .78);
  font-size: clamp(9px, 0.55vw, 14px);
  letter-spacing: clamp(2.2px, .22vw, 4.4px);
  font-weight: 500;
}
.hero .hero__title {
  color: #fff;
  font-weight: 400;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}
.hero .rule {
  background: var(--sage);
  width: clamp(52px, 4.6vw, 96px);
  height: 2px;
  margin: clamp(14px, 1.3vw, 28px) 0 clamp(12px, 1.1vw, 24px);
  transform-origin: center;          /* it grows from the middle now */
}
.hero .hero__desc {
  color: rgba(255, 255, 255, .82);
  max-width: min(560px, 78vw);
  font-size: clamp(13px, 0.72vw, 17.5px);
  line-height: 1.72;
}

/* The wordmark sits on a dark surface now, so the hero uses the knockout
   file. js/tour.js chooses it; this only handles how it reads. */
.hero .brand__logo { filter: drop-shadow(0 3px 14px rgba(0, 0, 0, .45)); }
.hero .site-head   { background: none; }
.hero .hamburger span { background: #fff; }

/* A glass button rather than a solid slab — the same material as the
   call-out bars and the facts panel, so the whole thing reads as one
   design instead of three. */
.hero .btn-primary {
  background: rgba(255, 255, 255, .10);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
          backdrop-filter: blur(10px) saturate(1.1);
  border: 1px solid rgba(255, 255, 255, .34);
  color: #fff;
  border-radius: 2px;
  padding: clamp(12px, 0.86vw, 18px) clamp(22px, 1.72vw, 40px);
  font-size: clamp(11px, 0.55vw, 14px);
  letter-spacing: clamp(1.6px, .13vw, 2.6px);
  transition: background .3s ease, border-color .3s ease, transform .3s cubic-bezier(.2,.7,.3,1);
}
.hero .btn-primary:hover {
  background: rgba(255, 255, 255, .19);
  border-color: rgba(255, 255, 255, .6);
  transform: translateY(-2px);
}

.hero .scroll-hint { color: rgba(255, 255, 255, .62); }
.hero .scroll-hint__mouse { border-color: rgba(255, 255, 255, .55); }
.hero .scroll-hint__mouse::before { background: rgba(255, 255, 255, .8); }

/* Short screens: the block stays centred but gives the photograph more
   room, and the scrim tightens so the text still holds. */
@media (max-height: 620px) {
  .hero__content { max-width: min(620px, 88vw); }
  .hero .hero__desc { line-height: 1.55; }
}

/* The swap from the 1024px preview to the full panorama. A short fade so
   the sharpening reads as the image settling rather than as a flicker. */
.hero__media { transition: filter .5s ease; filter: blur(1.5px); }
.hero__media--sharp { filter: none; }

/* The rule under the headline was 2px of muted sage on a misty grey sky —
   present, measured, and effectively invisible. Lifted to a brighter tone
   with a soft glow, and faded at both ends so it reads as a mark rather
   than a drawn line. */
.hero .rule {
  height: 2px;
  background: linear-gradient(90deg,
              rgba(160, 186, 172, 0),
              rgba(186, 209, 196, .95) 22%,
              rgba(186, 209, 196, .95) 78%,
              rgba(160, 186, 172, 0));
  box-shadow: 0 0 12px rgba(186, 209, 196, .35);
}


/* =====================================================================
   10. ONE MATERIAL  —  floating glass
   =====================================================================
   The viewer had three design languages on screen at once: a solid WHITE
   rail, a navy compass with a GOLD needle left over from the palette this
   project moved off, and the dark translucent call-outs. Any one is fine;
   together they read as three components from three different sites. That
   is what "looks basic" actually describes — not a lack of decoration, a
   lack of agreement.

   So: no header bar at all. The photograph runs edge to edge and every
   control floats on it in one material — dark translucent glass, one
   radius, one border, one shadow. The panorama shows through all of it,
   which means the thing worth looking at is never fully covered.

   The tint is deliberately heavier than the mock-up. Glass takes on
   whatever is behind it, and against a bright monsoon sky the lighter mix
   washed out until the rail was hard to read. This floor keeps the type
   legible over sky and over ground both.
   ===================================================================== */
:root {
  --glass:        linear-gradient(158deg, rgba(40, 50, 55, .66) 0%, rgba(26, 33, 37, .74) 100%);
  --glass-hover:  linear-gradient(158deg, rgba(54, 66, 72, .74) 0%, rgba(36, 45, 50, .80) 100%);
  --glass-blur:   blur(18px) saturate(1.2);
  --glass-line:   1px solid rgba(255, 255, 255, .18);
  --glass-shadow: 0 18px 46px rgba(0, 0, 0, .38), 0 2px 6px rgba(0, 0, 0, .24);
  --on-glass:     rgba(255, 255, 255, .70);
  --on-glass-hi:  #ffffff;
  --acc:          #BAD1C4;      /* sage, lifted for use on dark */
}

/* ---- the bar, which is no longer a bar ---- */
.viewer__head {
  background: none;
  box-shadow: none;
  border: none;
  padding: clamp(14px, 1.35vw, 30px) clamp(16px, 1.7vw, 38px);
}
/* NO SCRIM. There was a soft darkening across the top here, to hold the
   wordmark against a bright sky — but it dimmed the first ~150px of the
   panorama, which is the sky in almost every one of these shots, and a
   band of darkened sky is exactly the "bar" this variant set out to
   remove. The photograph now runs completely untouched from the very top
   of the frame.

   The wordmark keeps its legibility from its own shadow instead, below —
   a shadow on the mark costs nothing; a gradient across the whole width
   costs the image. */
.viewer__head > * { position: relative; z-index: 1; }
.viewer__head .viewer__divider { display: none; }

.view-switch {
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
          backdrop-filter: var(--glass-blur);
  border: var(--glass-line);
  border-radius: 999px;
  padding: clamp(3px, 0.26vw, 6px);
  box-shadow: var(--glass-shadow);
}
.view-switch__btn {
  border-radius: 999px;
  color: var(--on-glass);
  transition: background .22s ease, color .22s ease;
}
.view-switch__btn:not(.view-switch__btn--active):hover {
  background: rgba(255, 255, 255, .12);
  color: var(--on-glass-hi);
}
.view-switch__btn--active {
  background: rgba(255, 255, 255, .95);
  color: #232B2F;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .28);
}

.menu-text {
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
          backdrop-filter: var(--glass-blur);
  border: var(--glass-line);
  border-radius: 999px;
  padding: clamp(8px, 0.62vw, 14px) clamp(14px, 1.02vw, 24px);
  box-shadow: var(--glass-shadow);
  transition: background .22s ease;
}
.menu-text:hover { background: var(--glass-hover); }

/* ---- the POINT rail ---- */
.floors {
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
          backdrop-filter: var(--glass-blur);
  border: var(--glass-line);
  border-radius: clamp(10px, 0.7vw, 16px);
  box-shadow: var(--glass-shadow);
}
.floors__label {
  color: var(--on-glass);
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.floor {
  color: rgba(255, 255, 255, .76);
  border-radius: clamp(7px, 0.47vw, 11px);
  transition: background .22s ease, color .22s ease;
}
.floor:not(.floor--active):hover {
  background: rgba(255, 255, 255, .13);
  color: var(--on-glass-hi);
}
/* The selected point reverses out — the one solid element in the rail, so
   there is never any doubt which panorama is on screen. */
.floor--active { background: rgba(255, 255, 255, .95); color: #232B2F; }
.floor--active .floor__num { font-weight: 600; }

/* ---- compass ---- */
.compass__dial {
  border-radius: 50%;
  -webkit-backdrop-filter: var(--glass-blur);
          backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
}
.compass:hover .compass__dial {
  box-shadow: var(--glass-shadow), 0 0 0 2px rgba(186, 209, 196, .45);
}

/* ---- sound ---- */
.sound {
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
          backdrop-filter: var(--glass-blur);
  border: var(--glass-line);
  box-shadow: var(--glass-shadow);
  color: var(--on-glass-hi);
  transition: background .22s ease, transform .22s ease;
}
.sound:hover { background: var(--glass-hover); transform: translateY(-1px); }

/* ---- the loading chip joins the family ---- */
.pano-loading--subtle {
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
          backdrop-filter: var(--glass-blur);
  border: var(--glass-line);
  border-radius: 999px;
  color: var(--on-glass-hi);
}

/* ---- phones ----
   Four destinations in one pill group is a lot of width on a handset.
   Below 900px the labels go and the icons carry it; the active one keeps
   its label so there is never any doubt where you are. */
@media (max-width: 900px), (max-height: 450px) {
  /* An existing rule at max-width:1180px hides .view-switch__ic. Combined
     with hiding the label below, that left the three inactive buttons
     completely EMPTY — a pill with nothing in it. The icons come back
     here, because on a phone they are the only thing carrying those
     destinations. */
  .view-switch__ic { display: flex; }
  .view-switch__btn span:not(.view-switch__ic) { display: none; }
  .view-switch__btn--active span:not(.view-switch__ic) { display: inline; }
  .view-switch__btn { padding: 7px 10px; gap: 6px; }
  .menu-text { padding: 7px 12px; }
}


/* =====================================================================
   11. THE WORDMARK, CENTRED
   =====================================================================
   On the opening screen the logo was a small mark in the top-left corner,
   emphasised by nothing. It is the client's only supplied asset and the
   first thing a visitor should register, so on the hero it moves into the
   middle, above the headline, at a size that anchors the composition.

   The corner slot is hidden ON THE HERO ONLY — the chooser and the viewer
   still carry it there, where it works as a persistent mark rather than
   as the subject.
   ===================================================================== */
.hero .site-head .brand { visibility: hidden; }

.hero__brand {
  display: block;
  margin-bottom: clamp(18px, 1.9vw, 40px);
  animation: brandDrop 1.05s cubic-bezier(.2, .7, .3, 1) both;
}
.hero__brand .brand__logo {
  width: clamp(200px, 21vw, 420px);
  max-width: 76vw;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 6px 26px rgba(0, 0, 0, .5));
  animation: none;                  /* it is the subject, not a header mark */
}
@keyframes brandDrop {
  from { opacity: 0; transform: translateY(-14px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

/* The headline steps back now the wordmark leads, so the two read as one
   lockup rather than two things competing. */
.hero .hero__title { font-size: clamp(30px, 3.6vw, 60px); }

@media (prefers-reduced-motion: reduce) { .hero__brand { animation: none; } }


/* The wordmark and MENU now sit directly on the panorama with nothing
   behind them, so each carries its own shadow. Two layers: a tight one for
   edge definition and a wide soft one that darkens the pixels immediately
   around the mark, which is what keeps white artwork readable over a
   bright monsoon sky. */
.viewer__head .brand__logo {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .55))
          drop-shadow(0 4px 18px rgba(0, 0, 0, .55));
}
.viewer__head .brand__top,
.viewer__head .brand__main,
.viewer__head .brand__sub {
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6), 0 4px 16px rgba(0, 0, 0, .5);
}


/* The wordmark sat hard against the left edge. With no bar behind it any
   more, that reads as falling off the frame rather than as an inset mark,
   so it gets its own additional inset — more than the bar's padding, and
   scaled so it holds the same relationship at every width. */
.viewer__head .brand { margin-left: clamp(4px, 1.15vw, 30px); }

/* ---- PHONE, LANDSCAPE ----
   The one orientation this tour allows on a handset, and the one with the
   least vertical room. The opening screen is the tight case: a centred
   wordmark, an eyebrow, a two-line headline, a paragraph and a button all
   have to fit in ~390px of height. Everything below is about giving the
   photograph as much of that as possible while keeping the lockup intact. */
@media (max-height: 500px) {
  .hero__brand { margin-bottom: clamp(8px, 1.2vh, 16px); }
  .hero__brand .brand__logo { width: clamp(150px, 26vh, 260px); }
  .hero__content { max-width: min(560px, 88vw); }
  .hero .hero__title { font-size: clamp(19px, 5.2vh, 30px); margin-top: 4px; }
  .hero .rule { margin: 7px 0 7px; width: clamp(40px, 9vh, 64px); }
  .hero .hero__desc { font-size: clamp(10.5px, 2.9vh, 13px); line-height: 1.45; max-width: min(440px, 84vw); }
  .hero .btn-primary { padding: 9px 18px; font-size: 10px; letter-spacing: 1.4px; margin-top: 10px; }
  .hero .eyebrow { font-size: 8.5px; letter-spacing: 1.6px; }
  .scroll-hint { display: none; }

  /* The viewer's floating controls pull in to the corners so the panorama
     keeps the middle of a small screen. */
  .viewer__head { padding: 9px 12px; }
  .viewer__head .brand { margin-left: 2px; }
  .viewer__head .brand__logo { width: clamp(96px, 20vh, 132px); }
  .compass { display: none; }        /* already hidden below 620px tall */
}

/* Very short — a small handset on its side. */
@media (max-height: 400px) {
  .hero__brand .brand__logo { width: clamp(130px, 24vh, 200px); }
  .hero .hero__title { font-size: clamp(17px, 4.8vh, 24px); }
  .hero .hero__desc { display: none; }   /* the headline carries it */
}


/* =====================================================================
   12. ROTATION AND FULLSCREEN
   =====================================================================
   html/body were 100% tall. On a phone that resolves against a viewport
   whose height changes as the address bar slides in and out, and which is
   stale for a moment after a rotation — which is the band of dead space
   left down the side of the screen after turning the handset.

   100dvh is the DYNAMIC viewport height: it tracks the browser chrome
   instead of being measured once. Behind @supports, so anything that does
   not know the unit keeps the old 100% and is no worse off.
   ===================================================================== */
@supports (height: 100dvh) {
  html, body { height: 100dvh; }
  .level     { height: 100dvh; }
  .rotate-note { height: 100dvh; }
}

/* ---- the fullscreen control ----
   Bottom-left, stacked above the sound button, in the same glass as
   everything else. Two icons in one button: arrows pointing out to enter,
   pointing in to leave, swapped by .fs-btn--on. */
.fs-btn {
  position: fixed;
  left: clamp(14px, 1.35vw, 26px);
  bottom: calc(clamp(14px, 1.35vw, 26px) + clamp(38px, 2.4vw, 46px) + 10px);
  z-index: 60;
  width: clamp(38px, 2.4vw, 46px);
  height: clamp(38px, 2.4vw, 46px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
          backdrop-filter: var(--glass-blur);
  border: var(--glass-line);
  box-shadow: var(--glass-shadow);
  color: var(--on-glass-hi);
  transition: background .22s ease, transform .22s ease;
  -webkit-tap-highlight-color: transparent;
}
.fs-btn[hidden] { display: none; }
.fs-btn:hover { background: var(--glass-hover); transform: translateY(-1px); }
.fs-btn svg { width: 46%; height: 46%; display: block; }
.fs-btn .fs-btn__out { display: none; }
.fs-btn--on .fs-btn__in  { display: none; }
.fs-btn--on .fs-btn__out { display: block; }

/* On a phone it is the more useful of the two controls, so it takes the
   corner and the sound button moves up. */
@media (max-height: 500px) {
  .fs-btn { bottom: 14px; left: 14px; width: 38px; height: 38px; }
  .sound  { bottom: 62px; left: 14px; width: 38px; height: 38px; }
  .sound svg { width: 17px; height: 17px; }
}

/* The portrait prompt gains a line about it, since fullscreen is exactly
   what someone staring at "please rotate" wants next. */
.rotate-note__sub { max-width: 30ch; }


/* Call-outs on a handset: smaller again. The fluid scale in section 8 is
   driven by WIDTH, and a phone in landscape is wide — 844px — so it was
   sizing them as if there were room for them. What a phone is short of is
   height, so these floors come down off height instead. */
@media (max-height: 500px) {
  .callout-layer {
    --co-stem:  26px;
    --co-title: 11.5px;
    --co-meta:  8px;
    --co-icon:  24px;
    --co-padx:  9px;
    --co-pady:  6px;
    --co-gap:   7px;
  }
  .callout__card  { max-width: 168px; }
  .callout__title { max-width: 108px; }
  .callout__note  { max-width: 108px; font-size: 9.5px; }
  .callout__anchor { width: 11px; height: 11px; border-width: 2px; }
}
@media (max-height: 400px) {
  .callout-layer {
    --co-stem:  20px;
    --co-title: 10.5px;
    --co-meta:  7.5px;
    --co-icon:  21px;
    --co-padx:  8px;
    --co-pady:  5px;
  }
  .callout__card  { max-width: 148px; }
  .callout__title { max-width: 94px; }
}

/* The music is switched off in js/config.js, so the fullscreen control
   takes the bottom-left corner outright instead of stacking above a
   speaker button that is no longer there. If a track is ever added, the
   sound button reappears and this rule stacks them again. */
.fs-btn { bottom: clamp(14px, 1.35vw, 26px); }
@media (max-height: 500px) { .fs-btn { bottom: 14px; } }


/* =====================================================================
   13. THE CHOOSER, ON A PHONE
   =====================================================================
   This screen was built for a desktop and never reconsidered. On a
   landscape handset it was spending its entire height on preamble:

       .chooser__inner   150px top padding + 60px bottom   = 210px
       "STEP 1"          a decorative label with a rule under it
       the title         42px of serif
       the sub-line      another 16px + margin
       .cards            54px of margin BEFORE the first card

   That is more than a 390px-tall screen has, before a single destination
   appears — so the cards sat below the fold and the first thing a visitor
   did was scroll to find out what the page was for.

   Everything here works toward one thing: THE CARDS ARE ON SCREEN
   IMMEDIATELY. The preamble is cut to a single line of title, the padding
   comes down to clear the floating header and nothing more, and the cards
   themselves are rebuilt compact — smaller thumbnail, smaller icon, no
   blurb. The name and the view count are what a visitor picks from; the
   sentence of description is a desktop luxury.
   ===================================================================== */
@media (max-height: 700px) {
  .chooser__inner {
    padding: 52px 14px 14px;
    justify-content: flex-start;
    min-height: 0;
  }
  /* Decorative, and the most expensive line on the screen. */
  .step { display: none; }

  .chooser__title {
    font-size: clamp(17px, 5.4vh, 26px);
    margin-top: 0;
    line-height: 1.1;
  }
  .chooser__sub {
    font-size: clamp(9px, 2.6vh, 12px);
    margin-top: 3px;
    letter-spacing: .2px;
  }

  .cards { gap: clamp(6px, 1.2vw, 12px); margin-top: clamp(8px, 2.4vh, 18px); }

  .card { border-radius: 3px; box-shadow: 0 10px 26px rgba(22, 41, 78, .12); }
  .card:hover { transform: translateY(-3px); }

  .card__thumb { height: clamp(48px, 17vh, 82px); }
  .card__count { font-size: 7.5px; letter-spacing: 1px; padding: 3px 7px; right: 6px; bottom: 5px; }

  .card__icon {
    width: clamp(26px, 8vh, 38px);
    height: clamp(26px, 8vh, 38px);
    margin-top: calc(clamp(26px, 8vh, 38px) / -2 - 4px);
    margin-bottom: clamp(4px, 1.2vh, 9px);
    box-shadow: 0 4px 12px rgba(22, 41, 78, .18);
  }
  .card__icon svg { width: 52%; height: 52%; }

  .card__body  { padding: clamp(7px, 2vh, 14px) 6px clamp(8px, 2.2vh, 15px); }
  .card__title { font-size: clamp(9px, 2.8vh, 13px); letter-spacing: 1.2px; }
  /* The blurb is the first thing to go — a visitor picks by name here. */
  .card__desc  { display: none; }
  .card__go    { font-size: clamp(12px, 3vh, 17px); margin-top: clamp(4px, 1.4vh, 10px); }

  .chooser .site-head { padding-bottom: 10px; }
}

/* Very short — the sub-line goes too, leaving title and cards only. */
@media (max-height: 420px) {
  .chooser__sub { display: none; }
  .chooser__inner { padding-top: 46px; }
}


/* Two things the first pass missed, both found by measuring rather than
   by eye:

   1. .card__go is a 52px CIRCLE, not a glyph. Setting its font-size did
      nothing to the 52px box, so every card carried 52px of button on a
      screen 390px tall. It becomes a small plain arrow here.

   2. .card__title is `white-space: nowrap`, so "LAKE DISTRICT" set the
      card's MIN-CONTENT width at 260px. Four of those cannot fit across
      844px, the row overflowed, and the container grew. Letting it wrap on
      small screens is what allows the cards to share the row properly.

   The breakpoint also moved from 560 to 700, because a 1024x600 tablet in
   landscape fell straight through the gap and got the desktop layout. */
@media (max-height: 700px) {
  .card__go {
    width: auto; height: auto;
    background: none;
    color: var(--sage);
    font-size: clamp(13px, 3.2vh, 19px);
    line-height: 1;
    margin-top: clamp(3px, 1vh, 8px);
  }
  .card:hover .card__go { transform: translateX(3px); }

  .card__title {
    white-space: normal;
    line-height: 1.15;
    letter-spacing: .9px;
  }
}

/* A width-based rule elsewhere sets `.cards { flex-wrap: wrap }`, which on
   a landscape phone dropped the fourth destination onto a second row and
   pushed it off the bottom. Four across is the whole point of this screen
   on a handset — one row, all of them, no scrolling — so wrapping is
   forced off here and the cards share the row instead.
   The top padding also grows: the title was sliding under the fixed
   header's gradient. */
@media (max-height: 700px) {
  .cards { flex-wrap: nowrap; }
  .chooser__inner { padding-top: 62px; }
}
@media (max-height: 420px) {
  .chooser__inner { padding-top: 54px; }
}

/* .sound sets display:flex, and a display value beats the `hidden`
   attribute — the same trap the .deg-badge rule already documents. So
   switching the music off in config left the button still on screen: JS
   set hidden, CSS kept drawing it. */
.sound[hidden] { display: none !important; }

/* The chooser content fits now, so it goes back to being centred rather
   than pinned to the top with dead space underneath. */
@media (max-height: 700px) {
  .chooser__inner { justify-content: center; }
  .card__thumb { height: clamp(52px, 20vh, 96px); }
}

/* min-height:0 (set above so the block could sit at the top) also stopped
   justify-content:center from having anything to centre WITHIN. Restored
   now the content fits. */
@media (max-height: 700px) { .chooser__inner { min-height: 100%; } }


/* =====================================================================
   14. TAPPING A PLOT
   =====================================================================
   The chosen plot brightens and its outline animates; every other plot on
   the view steps back. Two states, and the contrast between them is what
   does the work — highlighting one thing is only visible if the rest give
   way.

   The travelling dashes are the "cut out and float" effect: a marching
   outline reads as a shape that has been lifted off the photograph, and it
   costs one animated attribute rather than a second rendering pass.
   ===================================================================== */
.plot { transition: opacity .28s ease; }

/* The chosen one */
.plot--on path {
  stroke: #FFFFFF;
  stroke-width: 3;
  fill: rgba(186, 209, 196, .30);
  stroke-dasharray: 10 6;
  animation: plotMarch 1.1s linear infinite;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, .55));
}
.plot--on text {
  font-weight: 600;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, .8));
}
@keyframes plotMarch { to { stroke-dashoffset: -32; } }

/* Everything else gives way */
.plot--off { opacity: .35; }
.plot--off path { filter: none; }

/* The whole layer ignores the pointer so a drag anywhere still rotates the
   view. Selection is done by hit-testing in js/plots.js, not by letting the
   SVG catch clicks — that way a drag that happens to start on a plot still
   pans, which is the behaviour people expect from a panorama. */
.plot-layer { pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .plot--on path { animation: none; stroke-dasharray: none; }
}


/* =====================================================================
   15. THE FACTS PANEL, BESIDE THE VIEW PICKER
   =====================================================================
   It sat alone in the opposite corner from every other control. The client
   asked for it next to the view picker, which is right: the two are read
   together — you pick a viewpoint, you check what the place is — so they
   belong in one column rather than at opposite ends of the screen.

   js/tour.js sets `left` and `top` from the rail's measured position,
   because the rail's height depends on how many points a destination has.
   Everything here is the appearance side of that.
   ===================================================================== */
.factbox--left {
  right: auto;
  bottom: auto;
  /* left and top come from js/tour.js */
  align-items: flex-start;
}
.factbox--left .factbox__panel {
  /* Matches the rail's own corner radius so the two read as one stack. */
  border-radius: clamp(10px, 0.7vw, 16px);
  min-width: clamp(178px, 10.4vw, 258px);
}

/* Nothing else occupies the bottom-right now, so the fullscreen and sound
   buttons keep the bottom-left and the corner opposite stays clear. That
   emptiness is deliberate: it is the one part of the frame with no
   furniture in it at all. */

@media (max-height: 620px) {
  .factbox--left .factbox__panel { min-width: 168px; }
}
@media (max-height: 450px) {
  .factbox--left .factbox__panel { min-width: 148px; }
}
