/* 15 Anthony Road - one-page presentation. Warm charcoal + cream, brass accent (the brass of the kitchen handles). */
:root {
  --bg: #0f0e0c;
  --bg-2: #161411;
  --bg-3: #1e1b17;
  --ink: #f2ede4;
  --ink-2: #cfc6b8;
  --mute: #958c7f;
  --line: rgba(242, 237, 228, .12);
  --cream: #f3eee6;
  --cream-2: #e8e0d3;
  --char: #1c1915;
  --char-2: #5f574c;
  --char-line: rgba(28, 25, 21, .14);
  --brass: #c8a46b;
  --brass-2: #e2c48f;
  --brass-ink: #8a6a3a;
  --glass: rgba(17, 15, 13, .58);
  --glass-line: rgba(242, 237, 228, .16);
  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 4.5vw, 56px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-variant-numeric: lining-nums;
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.65 var(--sans); letter-spacing: .005em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
/* pictures can't be dragged out or long-pressed to "Save image" on a phone (his 10-11: right click off) */
img, .pano, .pnlm-container { -webkit-user-drag: none; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
svg { stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--brass); color: var(--char); }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.dark { background: var(--bg); color: var(--ink); }
.light { background: var(--cream); color: var(--char); }

.label {
  display: inline-flex; align-items: center; gap: 14px; margin: 0 0 22px;
  font: 600 11.5px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--brass);
}
.label::before { content: ''; width: 34px; height: 1px; background: currentColor; opacity: .8; }
.light .label { color: var(--brass-ink); }
.h2 {
  margin: 0; font: 500 clamp(36px, 5.2vw, 68px)/1.02 var(--serif); letter-spacing: -.01em;
}
.eyebrow { margin: 0 0 18px; font: 600 12px/1 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: var(--brass-2); text-shadow: 0 1px 12px rgba(0, 0, 0, .55); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px;
  font: 600 14px/1 var(--sans); letter-spacing: .04em; transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn svg { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-2px); }
.btn-brass { background: var(--brass); color: #17130d; }
.btn-brass:hover { background: var(--brass-2); }
.btn-ghost { border: 1px solid rgba(242, 237, 228, .45); color: var(--ink); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); background: rgba(15, 14, 12, .18); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(242, 237, 228, .1); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 13px; }

/* ---------------- NAV ---------------- */
.nav {
  position: fixed; top: 0; right: 0; bottom: auto; left: 0; z-index: 50; height: 76px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter); transition: background .4s, height .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { height: 64px; background: rgba(15, 14, 12, .78); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-color: var(--line); }
.brand { font: 600 23px/1 var(--serif); letter-spacing: .02em; color: var(--ink); }
.nav-links { display: flex; gap: 34px; margin-left: auto; }
.nav-links a {
  position: relative; font: 600 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2);
  transition: color .3s;
}
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 1px; background: var(--brass); transform: scaleX(0); transition: transform .35s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ---------------- HERO ---------------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-media { position: absolute; top: 0; right: 0; bottom: 0; left: 0; isolation: isolate; }
/* the slideshow: the new picture fades in OVER the old one (.prev keeps showing under it, its zoom running on) */
.slide { position: absolute; top: 0; right: 0; bottom: 0; left: 0; margin: 0; opacity: 0; z-index: 0; }
.slide.on { opacity: 1; z-index: 2; transition: opacity 1.8s ease; }
.slide.prev { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transform: scale(1.08); }
.slide.on img, .slide.prev img { animation: kenburns 10s cubic-bezier(.25, .6, .3, 1) both; }
@keyframes kenburns { from { transform: scale(1.09); } to { transform: scale(1.0); } }
@media (orientation: portrait) { .slide img { object-position: var(--pos-p, var(--pos, 50% 50%)); } }
.hero-shade {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 2;
  background:
    linear-gradient(180deg, rgba(10, 9, 8, .55) 0%, rgba(10, 9, 8, 0) 22%),
    linear-gradient(0deg, rgba(10, 9, 8, .92) 0%, rgba(10, 9, 8, .55) 30%, rgba(10, 9, 8, 0) 62%),
    linear-gradient(90deg, rgba(10, 9, 8, .42) 0%, rgba(10, 9, 8, .18) 38%, rgba(10, 9, 8, 0) 62%);
}
.hero-inner { position: relative; z-index: 3; padding-bottom: clamp(22px, 5vh, 56px); }
.hero-title {
  margin: 0; font: 500 clamp(54px, 10.5vw, 156px)/.92 var(--serif); letter-spacing: -.02em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .25);
}
.hero-lead { max-width: 560px; margin: 22px 0 34px; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; color: var(--ink-2); text-shadow: 0 1px 14px rgba(0, 0, 0, .5); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-foot {
  position: relative; z-index: 3; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  padding-bottom: 26px; font: 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--mute);
}
.hero-foot-r { display: flex; align-items: center; gap: 22px; }
.slide-nav { display: grid; gap: 12px; }
.sn-bars { display: flex; gap: 8px; }
.sn { width: 54px; height: 22px; display: grid; align-items: center; }
.sn i { display: block; height: 2px; border-radius: 2px; background: rgba(242, 237, 228, .28); overflow: hidden; }
.sn i::after { content: ''; display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.sn.done i::after { transform: scaleX(1); }
.sn.on i::after { animation: fill var(--slide-t, 7s) linear forwards; }
.hero.paused .sn.on i::after { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }
.sn:hover i { background: rgba(242, 237, 228, .5); }
.sn-cap { margin: 0; font: 600 11.5px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); transition: opacity .5s; }
.sn-cap.swap { opacity: 0; }
.scroll-cue { width: 26px; height: 42px; border: 1px solid rgba(242, 237, 228, .4); border-radius: 14px; display: grid; justify-items: center; padding-top: 8px; }
.scroll-cue span { width: 2px; height: 8px; border-radius: 2px; background: var(--ink); animation: cue 2s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }
.hero-in { opacity: 0; transform: translateY(26px); animation: rise 1.2s var(--ease) var(--d, 0s) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------------- INTRO ---------------- */
.intro { padding: clamp(80px, 12vw, 160px) 0 clamp(70px, 9vw, 120px); }
.intro-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.statement { margin: 0; font: 500 clamp(42px, 6.2vw, 86px)/1 var(--serif); letter-spacing: -.015em; }
.statement em { font-style: italic; color: var(--brass-ink); }
.intro-body p { margin: 0 0 18px; font-size: 17.5px; line-height: 1.75; color: var(--char-2); }
.intro-body p:first-child { color: var(--char); font-size: 19px; }
.stats {
  list-style: none; margin: clamp(56px, 8vw, 100px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--char-line);
}
.stats li { padding: 30px 26px 4px 0; display: grid; gap: 10px; }
.stats li + li { padding-left: 26px; border-left: 1px solid var(--char-line); }
.stats b { font: 500 clamp(44px, 5.4vw, 72px)/.9 var(--serif); letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.stats small { font-size: .45em; letter-spacing: 0; }
.stats span { font: 500 13px/1.4 var(--sans); letter-spacing: .06em; color: var(--char-2); }

/* ---------------- TOUR ---------------- */
.tour { padding: clamp(80px, 11vw, 140px) 0 clamp(60px, 7vw, 90px); background: radial-gradient(1200px 600px at 70% 0%, #1d1a15 0%, var(--bg) 60%); }
.tour-head { display: grid; grid-template-columns: 1fr minmax(260px, 420px); gap: 32px; align-items: end; margin-bottom: 40px; }
.tour-help { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.tabs { display: inline-flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--line); margin-bottom: 18px; }
.tab {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 22px 0 18px; border-radius: 999px;
  font: 600 14px/1 var(--sans); letter-spacing: .03em; color: var(--ink-2); transition: background .35s var(--ease), color .35s;
}
.tab svg { width: 20px; height: 20px; }
.tab i { font-style: normal; font-weight: 500; font-size: 12px; color: var(--mute); transition: color .35s; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab.on { background: var(--ink); color: var(--char); }
.tab.on i { color: var(--char-2); }

.viewer-wrap { padding: 0 var(--gutter); max-width: 1680px; margin: 0 auto; }
#viewer { scroll-margin-top: 76px; }   /* the #viewer links without the script */
.viewer {
  /* never taller than the screen minus the top bar + the Exterior / Interior tabs: a 360 button shows both together */
  position: relative; height: clamp(480px, min(80vh, calc(100vh - 172px)), 900px); border-radius: 22px; overflow: hidden; background: #000;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .8), 0 0 0 1px var(--line);
  isolation: isolate;
}
.viewer.is-max { position: fixed; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100vh; height: 100dvh; min-height: 0; z-index: 100; border-radius: 0; }
.viewer:fullscreen { height: 100%; border-radius: 0; }
.pano { position: absolute; top: 0; right: 0; bottom: 0; left: 0; outline: none; }
.pano .pnlm-ui { cursor: grab; }
.pano .pnlm-grabbing { cursor: grabbing; }
.pnlm-load-box, .pnlm-about-msg, .pnlm-panorama-info, .pnlm-controls-container { display: none !important; }
.pnlm-container { background: #000 !important; font-family: var(--sans) !important; }

/* overlays */
.v-head {
  position: absolute; top: 0; right: 0; bottom: auto; left: 0; z-index: 3; padding: 26px 30px 70px; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 7, 6, .62), rgba(8, 7, 6, 0));
}
.v-kicker { margin: 0 0 8px; font: 600 11px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--brass-2); }
.v-title { margin: 0; font: 500 clamp(26px, 3vw, 38px)/1.05 var(--serif); }
.v-sub { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }
.v-head > * { transition: opacity .4s, transform .5s var(--ease); }
.v-head.swap > * { opacity: 0; transform: translateY(6px); }

.v-ctrl { position: absolute; top: 24px; right: 24px; z-index: 4; display: grid; gap: 8px; }
.vbtn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background .25s, transform .25s var(--ease), border-color .25s;
}
.vbtn svg { width: 20px; height: 20px; }
.vbtn:hover { background: rgba(242, 237, 228, .16); border-color: rgba(242, 237, 228, .35); transform: scale(1.06); }
.vbtn .i-play, .vbtn .i-exit { display: none; }
.viewer.paused .vbtn .i-pause { display: none; }
.viewer.paused .vbtn .i-play { display: block; }
.viewer.is-fs .vbtn .i-full, .viewer.is-max .vbtn .i-full { display: none; }
.viewer.is-fs .vbtn .i-exit, .viewer.is-max .vbtn .i-exit { display: block; }

.v-hint {
  position: absolute; left: 50%; top: 50%; z-index: 3; transform: translate(-50%, -50%);
  display: grid; justify-items: center; gap: 12px; padding: 22px 28px 18px; border-radius: 18px;
  background: rgba(10, 9, 8, .42); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); pointer-events: none;
  font: 600 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; transition: opacity .6s, transform .6s var(--ease);
}
.v-hint svg { width: 64px; height: 64px; stroke-width: 2.4; animation: sway 2.4s ease-in-out infinite; }
.v-hint .arr { opacity: .7; }
@keyframes sway { 0%, 100% { transform: translateX(-10px) rotate(-6deg); } 50% { transform: translateX(10px) rotate(6deg); } }
.viewer.hint-off .v-hint { opacity: 0; transform: translate(-50%, -40%); }

.v-chips {
  position: absolute; left: 24px; bottom: 24px; z-index: 4; display: flex; flex-wrap: wrap; gap: 8px; max-width: calc(100% - 320px);
}
.chip {
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 6px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font: 600 13px/1 var(--sans); letter-spacing: .02em; color: var(--ink-2); transition: background .3s, color .3s, border-color .3s;
}
.chip img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.chip:hover { color: var(--ink); border-color: rgba(242, 237, 228, .35); }
.chip.on { background: var(--ink); color: var(--char); border-color: var(--ink); }

/* the mini-map with the view cone */
.v-map {
  position: absolute; right: 24px; bottom: 24px; z-index: 4; width: var(--mw, 270px);
  padding: 12px 12px 14px; border-radius: 16px; background: rgba(14, 13, 11, .72); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: width .5s var(--ease), opacity .4s;
}
.v-map-label { margin: 0 0 10px 4px; font: 600 10.5px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }
.v-map-stage { position: relative; width: 100%; }
.v-map-stage > img { width: 100%; height: auto; opacity: .85; }
.v-map-toggle { display: none; }
.dot {
  position: absolute; z-index: 2; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
  display: grid; place-items: center; transition: transform .3s var(--ease);
}
.dot::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--ink-2); box-shadow: 0 0 0 3px rgba(14, 13, 11, .8); transition: background .3s, transform .3s; }
.dot:hover::before { background: var(--ink); transform: scale(1.25); }
.dot.on::before { background: var(--brass-2); width: 12px; height: 12px; }
.dot.on::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: 50%; border: 1.5px solid var(--brass-2); animation: ping 2.2s ease-out infinite; }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.1); opacity: 0; } }
.dot span {
  position: absolute; bottom: 130%; left: 50%; transform: translate(-50%, 4px); white-space: nowrap; pointer-events: none;
  padding: 5px 9px; border-radius: 8px; background: rgba(10, 9, 8, .9); font: 600 11px/1 var(--sans); color: var(--ink);
  opacity: 0; transition: opacity .25s, transform .25s;
}
.dot:hover span { opacity: 1; transform: translate(-50%, 0); }
/* the cone's size is a share of the map's width (margins in % follow the width too): right at any card size */
.cone { position: absolute; z-index: 1; width: calc(var(--crf, .4) * 100%); height: 0; padding-bottom: calc(var(--crf, .4) * 100%);
  margin: calc(var(--crf, .4) * -50%) 0 0 calc(var(--crf, .4) * -50%); pointer-events: none; }
.cone svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; }

.v-loading { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 2; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .5s; }
.v-loading.on { opacity: 1; }
.v-loading-bg { position: absolute; top: -30px; right: -30px; bottom: -30px; left: -30px; background-size: cover; background-position: center; filter: blur(18px) brightness(.7); transform: scale(1.05); }
.v-loading-box { position: relative; display: grid; justify-items: center; gap: 16px; font: 600 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.ring { width: 42px; height: 42px; border-radius: 50%; border: 2px solid rgba(242, 237, 228, .25); border-top-color: var(--brass-2); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* walk arrows on the ground (Pannellum hot spots) */
.hs-go { width: 74px; height: 74px; cursor: pointer; z-index: 2; }
.hs-go .disc {
  position: absolute; top: 7px; right: 7px; bottom: 7px; left: 7px; border-radius: 50%; background: rgba(242, 237, 228, .9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45), 0 0 0 6px rgba(242, 237, 228, .22);
  display: grid; place-items: center; transform: perspective(240px) rotateX(48deg); transition: transform .35s var(--ease), background .3s;
}
.hs-go .disc svg { width: 30px; height: 30px; color: #17130d; stroke-width: 2.6; }
.hs-go:hover .disc { background: var(--brass-2); transform: perspective(240px) rotateX(38deg) scale(1.08); }
.hs-go .tip {
  position: absolute; top: 74px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 6px 12px; border-radius: 999px;
  background: rgba(10, 9, 8, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font: 600 12px/1 var(--sans); letter-spacing: .04em; color: var(--ink);
}

.tour-foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 18px; }
.v-note { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; color: var(--ink-2); }
.v-note svg { width: 18px; height: 18px; color: var(--brass-2); flex: none; }
.v-res { margin: 0; font: 600 11px/1.6 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }

/* ---------------- PICTURES ---------------- */
.pictures { padding: clamp(80px, 11vw, 150px) 0; }
.sec-head { margin-bottom: clamp(36px, 5vw, 64px); max-width: 760px; }
.sec-lead { margin: 22px 0 0; font-size: 17.5px; color: var(--char-2); max-width: 640px; }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(150px, 17vw, 238px); gap: 14px; }
.g { position: relative; margin: 0; overflow: hidden; border-radius: 14px; cursor: zoom-in; background: var(--bg-3); }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
.g:hover img { transform: scale(1.045); }
.g figcaption {
  position: absolute; top: auto; right: 0; bottom: 0; left: 0; padding: 40px 18px 14px; font: 500 13.5px/1.3 var(--sans); color: var(--ink);
  background: linear-gradient(0deg, rgba(8, 7, 6, .78), rgba(8, 7, 6, 0)); transform: translateY(6px); opacity: .0; transition: opacity .4s, transform .5s var(--ease);
}
.g:hover figcaption, .g:focus-within figcaption { opacity: 1; transform: none; }
/* his 10-11: no side view ("we didn't complete it yet") -> the living room takes its big place; the last row = 2 */
.g-front { grid-column: 1 / span 8; grid-row: span 2; }
.g-kitchen, .g-dining { grid-column: 9 / span 4; }
.g-lounge, .g-doorA { grid-column: 1 / span 4; }
.g-living { grid-column: 5 / span 8; grid-row: 3 / span 2; }
.g-hall, .g-stair { grid-column: span 6; }

/* ---------------- HOMES ---------------- */
.homes { padding: clamp(80px, 11vw, 150px) 0; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3.4vw, 48px) clamp(20px, 2.6vw, 36px); }
.feat { display: grid; align-content: start; }
.feat-img { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; margin-bottom: 22px; background: var(--cream-2); }
.feat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feat:hover .feat-img img { transform: scale(1.04); }
.feat h3 { margin: 0 0 10px; font: 500 clamp(24px, 2.2vw, 30px)/1.1 var(--serif); }
.feat p { margin: 0 0 16px; color: var(--char-2); font-size: 15.5px; }
.link-360 {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 0 0 4px; border-bottom: 1px solid currentColor;
  font: 600 12px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--brass-ink); transition: gap .3s var(--ease), color .3s;
}
.link-360::after { content: '→'; font-size: 14px; letter-spacing: 0; }
.link-360:hover { gap: 14px; color: var(--char); }

/* ---------------- LOCATION ---------------- */
.location { padding: clamp(80px, 11vw, 150px) 0; background: linear-gradient(180deg, var(--bg) 0%, #12100e 100%); }
.loc-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.loc-text > p { margin: 26px 0 0; color: var(--ink-2); font-size: 17px; }
.facts { margin: 38px 0 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 600 11px/1.9 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }
.facts dd { margin: 0; font-size: 15.5px; }
.loc-map { margin: 0; }
.loc-map img { width: 100%; aspect-ratio: 1; border-radius: 18px; box-shadow: 0 30px 90px -30px rgba(0, 0, 0, .8), 0 0 0 1px var(--line); }
.loc-map figcaption { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 12.5px; color: var(--mute); }
.loc-map .sw { width: 12px; height: 12px; border-radius: 3px; background: var(--brass); flex: none; }

/* ---------------- FOOTER ---------------- */
.foot { padding: 50px 0 60px; border-top: 1px solid var(--line); background: #0b0a09; }
.foot-grid { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: start; }
.foot .brand { margin: 0; font-size: 26px; }
.foot-addr { margin: 6px 0 0; color: var(--mute); font-size: 14px; }
.foot-note { margin: 0; justify-self: end; max-width: 560px; color: var(--mute); font-size: 13px; line-height: 1.7; }

/* ---------------- LIGHTBOX ---------------- */
.lb {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 200; display: grid; place-items: center; padding: 60px 80px;
  background: rgba(8, 7, 6, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
.lb.on { opacity: 1; visibility: visible; }
.lb-fig { margin: 0; display: grid; gap: 16px; max-width: 100%; max-height: 100%; }
/* his 10-11 ~16:45: the opened picture "small enough to show the quality and not zoomable. Not very small, but not very
   big that the quality is obvious" -> at most 1280 x 800 (the stills are 2000 x 1250: always shown smaller than they are) */
.lb { touch-action: none; }
.lb-fig img { max-width: min(1280px, 100%); max-height: min(800px, calc(100vh - 170px)); object-fit: contain; border-radius: 10px; transform: scale(.97); transition: transform .5s var(--ease), opacity .3s; }
.lb.on .lb-fig img { transform: none; }
.lb-fig figcaption { display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--ink-2); font-size: 15px; }
.lb .link-360 { color: var(--brass-2); }
.lb .link-360:hover { color: var(--ink); }
.lb-x, .lb-nav { position: absolute; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: rgba(242, 237, 228, .08); border: 1px solid var(--line); transition: background .25s; }
.lb-x:hover, .lb-nav:hover { background: rgba(242, 237, 228, .18); }
.lb-x svg, .lb-nav svg { width: 22px; height: 22px; }
.lb-x { top: 20px; right: 20px; }
.lb-prev { left: 18px; top: 50%; margin-top: -25px; }
.lb-next { right: 18px; top: 50%; margin-top: -25px; }

/* ---------------- reveal ---------------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-in { opacity: 1; transform: none; animation: none; transition: none; }
  .slide img, .slide.on img, .slide.prev img { animation: none; transform: none; }
}

/* ---------------- responsive ---------------- */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .intro-grid, .tour-head, .loc-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--char-line); margin-top: 6px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .gallery .g { grid-column: auto !important; grid-row: auto !important; aspect-ratio: 16 / 10; }
  .gallery .g-front, .gallery .g-living { grid-column: 1 / -1 !important; aspect-ratio: 2 / 1; }
  .g figcaption { opacity: 1; transform: none; }
}
@media (max-width: 700px) {
  body { font-size: 15.5px; }
  .nav { height: 64px; }
  .brand { font-size: 21px; }
  .hero-note { display: none; }
  .sn { width: 44px; }
  /* a margin round the viewer: the thumb can still scroll the page past it (inside, a drag turns the view) */
  .viewer-wrap { padding: 0 16px; }
  .viewer { height: 66vh; height: 66svh; min-height: 360px; border-radius: 16px; }
  .v-head { padding: 18px 70px 60px 18px; }
  .v-ctrl { top: 16px; right: 14px; }
  .vbtn { width: 40px; height: 40px; }
  #bZoomIn, #bZoomOut { display: none; }
  .tabs { display: flex; }
  .tab { flex: 1; justify-content: center; padding: 0 14px; }
  .tab i { display: none; }
  .v-hint { padding: 16px 20px 14px; white-space: nowrap; font-size: 11px; }
  .v-hint svg { width: 52px; height: 52px; }
  .v-chips { left: 12px; right: 12px; bottom: 12px; max-width: none; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-right: 64px; }
  .v-chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .v-map { right: 12px; bottom: 62px; width: calc(var(--mw, 270px) * .72); padding: 10px; }
  .v-map-label { display: none; }
  .v-map.closed { width: 46px; height: 46px; padding: 0; border-radius: 50%; }
  .v-map.closed .v-map-label, .v-map.closed .v-map-stage { display: none; }
  .v-map-toggle { display: grid; place-items: center; position: absolute; top: -52px; right: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .v-map.closed .v-map-toggle { position: static; width: 46px; height: 46px; border: 0; background: none; }
  .v-map-toggle svg { width: 20px; height: 20px; }
  .tour-foot { padding-top: 4px; }
  .v-res { display: none; }
  .features { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; gap: 10px; }
  .gallery .g-front, .gallery .g-living { aspect-ratio: 16 / 10; }
  .facts div { grid-template-columns: 1fr; gap: 4px; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-note { justify-self: start; }
  .lb { padding: 60px 12px; }
  .lb-nav { top: auto; bottom: 18px; margin: 0; }
  .lb-fig figcaption { flex-direction: column; align-items: flex-start; }
}

/* a phone on its side: a short screen - the viewer nearly fills it, the overlays smaller */
@media (max-height: 520px) and (orientation: landscape) {
  .nav { height: 56px; }
  .hero { min-height: 420px; }
  .hero-title { font-size: clamp(44px, 8vw, 80px); }
  .hero-lead { margin: 12px 0 18px; }
  .viewer { height: calc(100vh - 76px); height: calc(100svh - 76px); min-height: 250px; }
  .tour { scroll-margin-top: 0; }
  #viewer { scroll-margin-top: 66px; }
  .v-head { padding: 12px 70px 40px 16px; }
  .v-kicker, .v-map-label { display: none; }
  .v-hint { padding: 14px 18px 12px; white-space: nowrap; font-size: 11px; }
  .v-hint svg { width: 46px; height: 46px; }
  .v-title { font-size: 22px; }
  .v-sub { display: none; }
  .v-ctrl { top: 10px; gap: 6px; }
  .vbtn { width: 36px; height: 36px; }
  #bZoomIn, #bZoomOut { display: none; }
  .v-map { bottom: 12px; }
  .v-map:not(.closed) { width: 150px; }
  .v-chips { left: 12px; bottom: 12px; max-width: calc(100% - 190px); flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .chip { flex: none; height: 34px; }
}

/* an upright screen: a full-height crop of these wide pictures shows a slice of a house - instead the picture sits at
   the top, sized so one whole home fits across the width (phone: width / height 0.83; tablet 1.1), the title below */
@media (orientation: portrait) and (max-width: 1100px) {
  .hero { height: auto; min-height: 0; justify-content: flex-start; }
  .hero-media { position: relative; top: auto; right: auto; bottom: auto; left: auto; flex: none; width: 100%; height: calc(100vw / .83); overflow: hidden; }
  .slide.on img, .slide.prev img { animation-name: kenburns-soft; }
  .hero-shade {
    top: 0; right: 0; bottom: auto; left: 0; height: calc(100vw / .83);
    background: linear-gradient(180deg, rgba(10, 9, 8, .7) 0%, rgba(10, 9, 8, .25) 11%, rgba(10, 9, 8, 0) 20%, rgba(10, 9, 8, 0) 72%, var(--bg) 100%);
  }
  .hero-inner { margin-top: -54px; padding-bottom: 34px; }
  /* the progress lines sit on the picture's lower right corner (so it reads as a slideshow); no scroll cue */
  .hero-foot, .hero-foot.hero-in { position: static; padding: 0; animation: none; opacity: 1; transform: none; }
  .slide-nav { animation: snfade 1s ease 1.1s both; }
  .hero-foot-r, .sn-cap { display: none; }
  .slide-nav { position: absolute; z-index: 4; right: var(--gutter); top: calc(100vw / .83 - 92px);
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .7)); }
  .sn i { background: rgba(242, 237, 228, .5); }
}
@media (orientation: portrait) and (min-width: 600px) and (max-width: 1100px) {
  .hero-media { height: calc(100vw / 1.1); }
  .hero-shade { height: calc(100vw / 1.1); }
  .slide-nav { top: calc(100vw / 1.1 - 92px); }
}
@keyframes kenburns-soft { from { transform: scale(1.035); } to { transform: scale(1.0); } }
@keyframes snfade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .slide.on img, .slide.prev img, .slide-nav { animation: none; } }
