/* ==========================================================================
   Lockdown Performance · The Compound

   Layout: a guided walkthrough. The hero states the thesis with a live
   before/after; each space is a chapter with a large comparison viewer
   next to its notes. Sharp 45° chamfers and the hex chain
   come straight from the LP marks. Warm blacks and a brushed, muted gold
   keep contrast comfortable.
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Chakra Petch";
  src: url("../fonts/chakra-petch-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Chakra Petch";
  src: url("../fonts/chakra-petch-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  /* Color */
  --ink: #080807;          /* page */
  --ink-2: #0d0c0b;        /* bands */
  --ink-3: #151412;        /* raised */
  --ink-4: #201e1a;        /* raised edge */
  --bone: #e8e1d3;         /* headings */
  --bone-2: #c8c0b0;       /* body */
  --bone-3: #9b9283;       /* secondary */
  --bone-4: #6f685c;       /* tertiary */
  --gold: #f0bb4a;         /* accent: the logo's gold */
  --gold-hi: #fed777;      /* hover: the logo's highlight */
  --gold-lo: #d09627;      /* short rules: the logo's deep edge */
  --gold-ink: #17140f;     /* text on gold */
  --warn: #ec8a6c;         /* form problems */
  --line: rgb(240 187 74 / 0.16);
  --line-2: rgb(240 187 74 / 0.32);
  /* Same edge-to-centre sheen as the wordmark */
  --metal: linear-gradient(100deg, #d09627 0%, #ebae30 18%, #fec64d 36%, #fed777 50%, #fec64d 64%, #eaad31 82%, #d19627 100%);
  --brushed: repeating-linear-gradient(0deg, rgb(255 255 255 / 0.05) 0 1px, transparent 1px 3px);

  /* Type */
  --f-display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-tech: "Chakra Petch", "Archivo", "Helvetica Neue", Arial, sans-serif;

  --t-h2: clamp(1.625rem, 0.9rem + 3.4vw, 3.75rem);
  --t-h3: clamp(1.5rem, 1rem + 1.6vw, 2.5rem);
  --t-body: 1.0625rem;
  --t-small: 0.9375rem;
  --t-label: 0.75rem;

  /* Space and shape */
  --gutter: clamp(16px, 4.2vw, 56px);
  --max: 1440px;
  --col-gap: clamp(16px, 2vw, 32px);
  --section: clamp(88px, 5rem + 5vw, 176px);
  --header-h: 72px;
  --cut: clamp(12px, 1.4vw, 22px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  touch-action: manipulation;
}
html.is-locked { overflow: hidden; }

/* Quick taps (like Next in the tour) never trigger double-tap zoom on
   phones. Pinch zoom still works. */
a,
button,
label,
input,
textarea,
.viewer { touch-action: manipulation; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone-2);
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--ink);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0; }
[hidden] { display: none !important; }

::selection { background: rgb(240 187 74 / 0.35); color: var(--bone); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ---------- Shared type ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-tech);
  font-weight: 600;
  font-size: var(--t-label);
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold-lo);
}

.section-title {
  margin: 18px 0 0;
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 700;
  font-size: var(--t-h2);
  line-height: 1;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--bone);
  text-wrap: balance;
}

.section-title,
.room-title { overflow-wrap: break-word; }

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

.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 24px;
  align-items: end;
}
.section-head-main { grid-column: 1 / span 7; min-width: 0; }

/* ---------- Buttons ---------- */
.btn {
  --c: 11px;
  --c-in: calc(var(--c) - 0.6px);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 26px;
  border: 0;
  background: none;
  font-family: var(--f-tech);
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.btn::before,
.btn::after {
  content: "";
  position: absolute;
  z-index: -1;
  transition: background-color 0.25s var(--ease), background-position 0.6s var(--ease), opacity 0.25s;
}
.btn::before {
  inset: 0;
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
}
.btn::after {
  inset: 1px;
  clip-path: polygon(var(--c-in) 0, 100% 0, 100% calc(100% - var(--c-in)), calc(100% - var(--c-in)) 100%, 0 100%, 0 var(--c-in));
}
.btn-icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.btn-metal { color: var(--gold-ink); }
.btn-metal::before {
  background-image: var(--brushed), var(--metal);
  background-size: 100% 100%, 220% 100%;
  background-position: 0 0, 0% 0;
}
.btn-metal::after { display: none; }
.btn-metal:hover::before { background-position: 0 0, 100% 0; }

.btn-line { color: var(--bone); }
.btn-line::before { background: var(--line-2); }
.btn-line::after { background: var(--ink); }
.btn-line:hover::before { background: var(--gold); }
.btn-line:hover::after { background: var(--ink-3); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgb(8 8 7 / 0);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgb(8 8 7 / 0.9);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-word { width: auto; height: 28px; }

.site-nav { display: flex; align-items: center; }
.nav-panel { display: flex; align-items: center; gap: clamp(24px, 3vw, 48px); }
.nav-list {
  display: flex;
  gap: clamp(22px, 2.8vw, 44px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list > li > a {
  position: relative;
  display: block;
  padding: 10px 0;
  font-family: var(--f-tech);
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bone-2);
  transition: color 0.2s;
}
.nav-list > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.18em;
  bottom: 2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-list > li > a:hover,
.nav-list > li > a[aria-current="true"] { color: var(--bone); }
.nav-list > li > a:hover::after,
.nav-list > li > a[aria-current="true"]::after { transform: scaleX(1); }

/* Spaces dropdown: every room, jump straight to it */
.nav-drop { position: relative; }
.nav-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border: 0;
  background: none;
  font-family: var(--f-tech);
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-2);
  cursor: pointer;
  transition: color 0.2s;
}
.nav-drop-btn:hover,
.nav-drop-btn[aria-expanded="true"] { color: var(--bone); }
.nav-drop-icon {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.6;
  transition: transform 0.25s var(--ease);
}
.nav-drop-btn[aria-expanded="true"] .nav-drop-icon { transform: rotate(180deg); }
.spaces-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  z-index: 60;
  width: 328px;
  max-height: calc(100vh - var(--header-h) - 48px);
  margin: 0;
  padding: 8px;
  overflow-y: auto;
  list-style: none;
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  box-shadow: 0 18px 40px rgb(0 0 0 / 0.5);
  transform: translateX(-50%);
}
.spaces-menu a {
  display: grid;
  grid-template-columns: 2.2em minmax(0, 1fr);
  column-gap: 10px;
  align-items: baseline;
  padding: 10px 12px;
  text-decoration: none;
  transition: background-color 0.2s;
}
.spaces-menu a:hover { background: var(--ink-3); }
.spaces-menu a:hover .si-name,
.spaces-menu a[aria-current="true"] .si-name { color: var(--gold-hi); }
.nav-cta { min-height: 44px; padding: 0 20px; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  font-family: var(--f-tech);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone);
  cursor: pointer;
}
.nav-toggle-icon { position: relative; width: 22px; height: 10px; }
.nav-toggle-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--gold);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav-toggle-icon span:first-child { top: 0; }
.nav-toggle-icon span:last-child { top: 8.5px; }
.site-nav.is-open .nav-toggle-icon span:first-child { top: 4.25px; transform: rotate(45deg); }
.site-nav.is-open .nav-toggle-icon span:last-child { top: 4.25px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .brand-word { height: 22px; }
  .nav-toggle { display: inline-flex; }
  .nav-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 8px max(var(--gutter), env(safe-area-inset-right, 0px)) 28px max(var(--gutter), env(safe-area-inset-left, 0px));
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .site-nav.is-open .nav-panel {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s;
  }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-panel { max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .nav-list > li > a,
  .nav-drop-btn {
    width: 100%;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.9375rem;
  }
  .nav-drop-btn { justify-content: space-between; }
  .nav-list > li > a::after { display: none; }
  .spaces-menu {
    position: static;
    width: auto;
    max-height: none;
    padding: 4px 0 12px;
    border: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: none;
    background: transparent;
    transform: none;
  }
  .spaces-menu a { padding: 11px 4px; }
  .nav-cta { min-height: 50px; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(16px, 2.4vw, 40px) clamp(40px, 4vw, 72px); }
.feature-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 18px;
}
.feature-room {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-tech);
  font-weight: 600;
  font-size: var(--t-label);
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-2);
}
.feature-room::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold-lo);
}
.hero-about {
  max-width: 54ch;
  margin-top: clamp(20px, 2.4vw, 32px);
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.375rem);
  line-height: 1.5;
  color: var(--bone);
  text-wrap: pretty;
}
.hero-about p + p { margin-top: 0.8em; }

/* ---------- Before / after comparison ---------- */
/* A photo spot takes the shape of the photo it shows (--ar = width/height,
   set once the photo loads), so nothing is cropped. Very tall photos are
   kept to --frame-h by narrowing the spot instead of cutting the photo.
   The frame is the spot plus anything that lines up with it underneath. */
.hero-stage,
.room-media {
  --ar: 1.7778; /* until the photo loads: 16:9, the shape of most photos */
  --frame-h: 80vh;
  width: min(100%, calc(var(--frame-h) * var(--ar)));
  margin-inline: auto;
}
.hero-stage { --ar: 1.7778; --frame-h: 78vh; }

.ba {
  --pos: 50%;
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: var(--ar, 1.5);
  overflow: hidden;
  background: var(--ink-3);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  touch-action: pan-y pinch-zoom;
  cursor: ew-resize;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.ba-pane { position: absolute; inset: 0; }
.ba-pane--after { clip-path: inset(0 0 0 var(--pos)); }
.ba-pane > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
  -webkit-user-drag: none;
}
.ba-pane.is-loaded > img { opacity: 1; }
.ba-pane > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}
.ba-pane.is-loaded > video { opacity: 1; }

.ba-tag {
  position: absolute;
  top: clamp(14px, 1.6vw, 22px);
  z-index: 2;
  padding: 7px 11px 6px;
  font-family: var(--f-tech);
  font-weight: 600;
  font-size: 0.6875rem;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.ba-tag--before {
  left: calc(var(--cut) + 10px);
  background: rgb(8 8 7 / 0.74);
  color: var(--bone);
}
.ba-tag--after {
  right: clamp(14px, 1.6vw, 22px);
  background: rgb(240 187 74 / 0.94);
  color: var(--gold-ink);
}
.ba.is-left .ba-tag--before,
.ba.is-right .ba-tag--after { opacity: 0; }

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  z-index: 3;
  width: 56px;
  margin-left: -28px;
  display: grid;
  place-items: center;
  outline: none;
  cursor: ew-resize;
}
.ba-handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: var(--gold);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.18);
}
.ba-knob { position: relative; width: 54px; height: 62px; transition: transform 0.2s var(--ease); }
.ba-knob svg { width: 100%; height: 100%; overflow: visible; }
.ba-knob .knob-hex {
  fill: rgb(8 8 7 / 0.8);
  stroke: var(--gold);
  stroke-width: 1.5;
  transition: fill 0.2s var(--ease), stroke 0.2s;
}
.ba-knob .knob-arrows {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.8;
  stroke-linecap: square;
  transition: stroke 0.2s;
}
.ba:hover .knob-hex,
.ba.is-dragging .knob-hex { fill: var(--gold); }
.ba:hover .knob-arrows,
.ba.is-dragging .knob-arrows { stroke: var(--gold-ink); }
.ba.is-dragging .ba-knob { transform: scale(0.94); }
.ba-handle:focus-visible .knob-hex { stroke: var(--bone); stroke-width: 2.5; }
.ba-handle:focus-visible .ba-knob { transform: scale(1.08); }

@media (max-width: 560px) {
  .ba-knob { width: 44px; height: 50px; }
}

/* Clip: plays muted on a loop; the speaker button turns sound on */
.ba--video { cursor: pointer; }
.ba-sound {
  position: absolute;
  right: clamp(12px, 1.6vw, 20px);
  bottom: clamp(12px, 1.6vw, 20px);
  z-index: 4;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-2);
  background: rgb(8 8 7 / 0.72);
  color: var(--bone);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.ba-sound svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ba-sound:hover,
.ba-sound[aria-pressed="true"] { color: var(--gold); border-color: var(--gold); }

/* Loading: a plain panel until we know what the spot holds, so a single
   photo never flashes up as a before/after first */
.ba--loading { cursor: default; }
.ba--loading .ba-tag,
.ba--loading .ba-handle { display: none; }
/* The after side covers the whole spot; the before photo keeps loading
   underneath (it must stay rendered, or lazy loading never fetches it) */
.ba--loading .ba-pane--after { clip-path: none; }
.ba--loading .ph--after { padding-left: 24px; }

/* Only a before photo exists: show it on its own */
.ba--before-only { cursor: default; }
.ba--before-only .ba-pane--after,
.ba--before-only .ba-tag,
.ba--before-only .ba-handle { display: none; }

/* Single photo: no before side, no handle */
.ba--single { cursor: auto; touch-action: pan-y pinch-zoom; }
.ba--single .ba-pane--before,
.ba--single .ba-tag,
.ba--single .ba-handle { display: none; }
.ba--single .ba-pane--after { clip-path: none; }
.ba--single .ph--after { padding-left: 24px; }

/* Placeholder shown while a photo loads or when it's missing.
   Before = raw concrete, after = finished black and gold. */
.ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
}
.ph-mark { opacity: 0; transition: opacity 0.3s var(--ease); }
.is-missing .ph-mark { opacity: 0.55; }

.ph--before {
  background-color: #34312c;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E"),
    repeating-linear-gradient(0deg, rgb(255 255 255 / 0.035) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgb(255 255 255 / 0.035) 0 1px, transparent 1px 64px),
    radial-gradient(120% 100% at 30% 15%, #4a463f 0%, #34312c 55%, #272521 100%);
}
.ph--after {
  background-color: #0f0e0c;
  background-image:
    radial-gradient(60% 70% at 50% 50%, rgb(240 187 74 / 0.12), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34.64' height='60' viewBox='0 0 34.64 60'%3E%3Cpath fill='none' stroke='%23272013' stroke-width='1' d='M0,-20 L17.32,-10 L17.32,10 L0,20 L-17.32,10 L-17.32,-10Z M34.64,-20 L51.96,-10 L51.96,10 L34.64,20 L17.32,10 L17.32,-10Z M17.32,10 L34.64,20 L34.64,40 L17.32,50 L0,40 L0,20Z M0,40 L17.32,50 L17.32,70 L0,80 L-17.32,70 L-17.32,50Z M34.64,40 L51.96,50 L51.96,70 L34.64,80 L17.32,70 L17.32,50Z'/%3E%3C/svg%3E");
  background-size: auto, 34.64px 60px;
}
.ph-mark {
  width: clamp(40px, 6vw, 72px);
  aspect-ratio: 1;
  background: url("../img/lp-mark.png") center / contain no-repeat;
}
/* Keep the mark centred in the visible part of the after side */
.ph--after { padding-left: calc(var(--pos) + 24px); }

/* ---------- Spaces ---------- */
.si-num {
  font-family: var(--f-tech);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.si-name {
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.35;
  color: var(--bone);
  transition: color 0.2s;
}


.room {
  padding-block: clamp(56px, 6vw, 104px);
  border-top: 1px solid var(--line);
}
.room-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: clamp(20px, 2.4vw, 32px);
}
.room-head,
.room-media,
.room-body { grid-column: 1 / -1; min-width: 0; }

@media (min-width: 961px) {
  /* Split: photo beside the text, sides alternate */
  .room--split .room-media { grid-column: 1 / span 7; grid-row: 1 / span 2; }
  .room--split .room-head { grid-column: 9 / span 4; grid-row: 1; align-self: end; }
  .room--split .room-body { grid-column: 9 / span 4; grid-row: 2; align-self: start; }
  .room--split.room--flip .room-media { grid-column: 6 / span 7; }
  .room--split.room--flip .room-head,
  .room--split.room--flip .room-body { grid-column: 1 / span 4; }

  /* Wide: text row on top, full-width photo below */
  .room--wide .room-head { grid-column: 1 / span 6; grid-row: 1; align-self: end; }
  .room--wide .room-body { grid-column: 8 / span 5; grid-row: 1; align-self: end; }
  .room--wide .room-media { grid-column: 1 / -1; grid-row: 2; margin-top: 8px; --ar: 1.7778; }
}

.room-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}
.room-num {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-tech);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.room-num::after {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--gold-lo);
}
.room-title {
  margin: 0;
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 700;
  font-size: var(--t-h3);
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--bone);
  text-wrap: balance;
}

.room-body { min-width: 0; }
.room-text {
  max-width: 46ch;
  color: var(--bone-2);
  text-wrap: pretty;
}
.room-text + .room-text { margin-top: 1em; }
/* A room's first line reads as its headline */
.room-text:first-of-type {
  font-size: 1.1875rem;
  line-height: 1.5;
  color: var(--bone);
}
.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 10px 0;
  border: 0;
  background: none;
  font-family: var(--f-tech);
  font-weight: 600;
  font-size: var(--t-label);
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-2);
  cursor: pointer;
  transition: color 0.2s;
}
.text-btn svg { width: 16px; height: 16px; fill: none; stroke: var(--gold); stroke-width: 1.5; }
.text-btn:hover { color: var(--bone); }

/* Photo switcher under a comparison: a strip of thumbnails */
.room-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.room-tab {
  position: relative;
  display: block;
  width: 96px;
  aspect-ratio: 3 / 2;
  padding: 0;
  border: 1px solid var(--line-2);
  background: var(--ink-3);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s, opacity 0.2s;
}
.room-tab::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(8 8 7 / 0.45);
  transition: opacity 0.2s;
}
.room-tab:hover::after { opacity: 0.4; }
.room-tab[aria-pressed="true"] { border-color: var(--gold); }
.room-tab[aria-pressed="true"]::after { opacity: 0; }
.room-tab-thumb {
  position: absolute;
  inset: 0;
  background-color: #0f0e0c;
  background-image: linear-gradient(90deg, #34312c 0 50%, transparent 50%);
}
.room-tab-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s;
}
.room-tab-thumb.has-img img { opacity: 1; }
.room-tab-thumb video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.room-tab-thumb.has-img video { opacity: 1; }
.room-tab-play {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  background: rgb(8 8 7 / 0.78);
}
.room-tab-play svg { width: 9px; height: 9px; fill: var(--bone); }
.room-tab-num {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  padding: 4px 7px 3px;
  background: rgb(8 8 7 / 0.82);
  font-family: var(--f-tech);
  font-weight: 600;
  font-size: 0.6875rem;
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--bone-2);
  font-variant-numeric: tabular-nums;
}
.room-tab[aria-pressed="true"] .room-tab-num { background: var(--gold); color: var(--gold-ink); }
@media (max-width: 560px) {
  .room-tab { width: 76px; }
}

/* ---------- Contact ---------- */
.contact { padding-block: var(--section); border-top: 1px solid var(--line); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 48px;
}
.contact-main { grid-column: 1 / span 6; min-width: 0; display: grid; align-content: start; gap: 22px; }
.contact-main .section-title { margin-top: -4px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.contact-actions:not(:has(.btn:not([hidden]))) { display: none; }

.contact-list {
  grid-column: 8 / span 5;
  align-self: end;
  margin: 0;
}
.contact-row {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.contact-row:last-child { border-bottom: 1px solid var(--line); }
.contact-row dt {
  padding-top: 3px;
  font-family: var(--f-tech);
  font-weight: 600;
  font-size: var(--t-label);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.contact-row dd {
  margin: 0;
  min-width: 0;
  color: var(--bone);
  overflow-wrap: anywhere;
}
.contact-row dd a {
  color: var(--bone);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s, color 0.2s;
}
.contact-row dd a:hover { color: var(--gold-hi); text-decoration-color: var(--gold); }
.contact-person { font-weight: 600; }
.contact-sep { margin-inline: 0.2em; color: var(--gold); }
.social-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }


/* ---------- Footer ---------- */
.site-footer {
  padding-block: 28px;
  border-top: 1px solid var(--line);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  font-size: var(--t-small);
  color: var(--bone-3);
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 36px; height: 36px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a,
.footer-top {
  font-family: var(--f-tech);
  font-weight: 600;
  font-size: var(--t-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-2);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover,
.footer-top:hover { color: var(--gold-hi); }
.footer-top { display: inline-flex; align-items: center; gap: 10px; }
.footer-top svg { width: 14px; height: 14px; fill: none; stroke: var(--gold); stroke-width: 1.5; }

/* ---------- Tour viewer ---------- */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  background: #050504;
  animation: viewer-in 0.28s var(--ease);
}
@keyframes viewer-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.viewer-top,
.viewer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gutter);
}
.viewer-top { border-bottom: 1px solid var(--line); }
.viewer-bottom {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  border-top: 1px solid var(--line);
}
.viewer-heading { min-width: 0; }
.viewer-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
  font-family: var(--f-tech);
  font-weight: 600;
  font-size: var(--t-label);
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.viewer-num { color: var(--gold); font-variant-numeric: tabular-nums; }
.viewer-title {
  margin: 0;
  overflow: hidden;
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 700;
  font-size: clamp(1.05rem, 0.8rem + 1vw, 1.6rem);
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--bone);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.viewer-actions { display: flex; gap: 8px; flex: none; }
.icon-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line-2);
  background: none;
  color: var(--bone);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.icon-btn:hover { border-color: var(--gold); background: var(--ink-3); }

.viewer-stage {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  min-height: 0;
  padding: clamp(12px, 2.4vh, 32px) var(--gutter);
  container-type: size;
  touch-action: pan-y pinch-zoom; /* sideways swipes change the photo */
}
/* Largest box in the photo's own shape that fits the stage */
.ba--viewer {
  --ar: 1.5;
  width: min(100%, calc((100vh - 220px) * var(--ar)));
  width: min(100cqw, calc(100cqh * var(--ar)));
}
/* Phones turned sideways: slimmer bars, bigger photo */
@media (max-height: 520px) {
  .viewer-top,
  .viewer-bottom { padding-block: 6px; }
  .viewer-meta { display: none; }
  .icon-btn,
  .viewer-step { width: auto; min-width: 40px; height: 40px; min-height: 40px; }
  .viewer-step { padding: 0 12px; }
  .viewer-step span { display: none; }
  .viewer-stage { padding-block: 8px; }
}

.viewer-center {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
  min-width: 0;
}
.viewer-pairs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.viewer-pair {
  width: 40px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--line-2);
  background: none;
  font-family: var(--f-tech);
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--bone-3);
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.viewer-pair[aria-pressed="true"] { border-color: var(--gold); color: var(--bone); background: var(--ink-3); }
.viewer-count {
  font-family: var(--f-tech);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  color: var(--bone-3);
  font-variant-numeric: tabular-nums;
}
.viewer-step {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line-2);
  background: none;
  font-family: var(--f-tech);
  font-weight: 600;
  font-size: var(--t-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.viewer-step svg { width: 16px; height: 16px; fill: none; stroke: var(--gold); stroke-width: 1.6; }
.viewer-step:hover { border-color: var(--gold); background: var(--ink-3); }

@media (max-width: 640px) {
  .viewer-step { padding: 0 14px; }
  .viewer-step span { display: none; }
  .viewer-center { gap: 8px 12px; }
  .viewer-pair { width: 34px; }
}

.noscript {
  padding: 24px;
  text-align: center;
  color: var(--bone);
  background: var(--ink-3);
}

/* ---------- Partner form ---------- */
.vendor {
  width: min(640px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100% - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line-2);
  background: var(--ink-2);
  color: var(--bone-2);
}
.vendor[open] { animation: viewer-in 0.25s var(--ease); }
.vendor::backdrop { background: rgb(3 3 2 / 0.78); }
.vendor-form {
  display: grid;
  gap: 24px;
  padding: clamp(20px, 3vw, 32px);
}
.vendor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.vendor-title {
  margin: 0;
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 700;
  font-size: clamp(1.35rem, 1.05rem + 1.2vw, 2rem);
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--bone);
}
.vendor-fields {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.field { display: grid; gap: 8px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field > span {
  font-family: var(--f-tech);
  font-weight: 600;
  font-size: var(--t-label);
  line-height: 1.2;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.field input,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}
.vf-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.vendor-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.vendor-status {
  flex: 1 1 220px;
  min-height: 1.4em;
  font-size: var(--t-small);
  color: var(--bone-2);
}
.vendor-status.is-error { color: var(--warn); }
.vendor-status.is-ok { color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .section-head-main { grid-column: 1 / -1; }
  .hero-stage { --ar: 1.5; }

  .contact-main,
  .contact-list { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .vendor-fields { grid-template-columns: minmax(0, 1fr); }
  .vendor-foot .btn { flex: 1 1 100%; }
  .contact-actions .btn { flex: 1 1 auto; }
  .contact-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
