/* ===========================================================================
   Unbranded single-listing page
   Same layout, type scale and components as the team listing template, with
   every brand element removed: neutral charcoal and warm-stone palette, no
   people, no form, no call-to-action, no tracking. Critical above-the-fold
   rules (and the Jost @font-face) are inlined in index.html.
   =========================================================================== */

@font-face {
  font-family: "Jost";
  src: url("assets/jost-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1f1e1c;          /* charcoal */
  --ink-soft: #36332f;     /* body text */
  --paper: #ffffff;
  --shell: #f4f2ee;        /* warm stone wash for alternating sections */
  --stone: #6b645a;        /* secondary text and the accent: 5.84:1 on white, 5.22:1 on shell */
  --stone-deep: #4a453e;   /* hover state for charcoal fills */
  --hairline: #e4e0d9;
  --sans: "Jost", "Futura", "Century Gothic", "Trebuchet MS", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(1.2rem, 5vw, 4rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { font-family: var(--sans); color: var(--ink-soft); background: var(--paper); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.no-scroll { overflow: hidden; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

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

/* ---------- type ---------- */
h1, h2, h3 { font-weight: 700; color: var(--ink); line-height: 1.1; text-wrap: balance; }
.kicker {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.9rem;
}
.sec-title {
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.container { max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
section { padding: clamp(3.8rem, 9vw, 6.5rem) 0; }

/* ---------- nav that arrives on scroll ---------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.85rem var(--gutter);
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
  transform: translateY(-100%);
  transition: transform 0.45s var(--ease);
}
.site-nav.is-on { transform: translateY(0); }
.nav-addr { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.nav-link {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: #fff; background: var(--ink); text-decoration: none; padding: 0.65rem 1.1rem;
  transition: background 0.3s var(--ease);
}
.nav-link:hover, .nav-link:focus-visible { background: var(--stone-deep); }

/* ---------- slider hero ---------- */
/* Not a full-screen cover: the photo stage stops around 72% of the viewport
   with the filmstrip in normal flow beneath it, so the masthead peeks up
   under the fold. */
.hero-slider { background: var(--ink); }
.slide-stage { position: relative; height: clamp(420px, 72svh, 780px); overflow: hidden; }
@media (max-width: 700px) { .slide-stage { height: clamp(320px, 52svh, 520px); } }
/* The H1 stays for structure but the visible street line lives in the masthead. */
.sr-street { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

#slides, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; transition: opacity 0.7s var(--ease); }
.slide.is-on { opacity: 1; }
.slide picture, .slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Small label on a photo (used for "Virtual twilight"). */
.sample-chip {
  position: absolute; top: 1rem; left: 1rem; z-index: 3;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: #fff; background: rgba(31,30,28,0.8); padding: 0.45rem 0.7rem;
}
.lb-sample { top: 0.9rem; left: 0.9rem; margin: 0; }

.slide-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 48px; height: 48px; border: 1px solid rgba(255,255,255,0.5);
  background: rgba(31,30,28,0.35); color: #fff; font-size: 1.05rem; cursor: pointer;
  transition: background 0.3s var(--ease);
}
.slide-arrow:hover, .slide-arrow:focus-visible { background: rgba(31,30,28,0.7); }
#slidePrev { left: 1rem; } #slideNext { right: 1rem; }
.slide-full {
  position: absolute; top: 1rem; right: 1rem; z-index: 4;
  width: 44px; height: 44px; border: 1px solid rgba(255,255,255,0.5);
  background: rgba(31,30,28,0.35); color: #fff; font-size: 1.1rem; cursor: pointer;
}
.slide-count {
  position: absolute; right: 1.1rem; bottom: 1.1rem; z-index: 4;
  color: rgba(255,255,255,0.88); font-size: 0.7rem; letter-spacing: 0.2em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.thumbs {
  display: flex; gap: 4px; overflow-x: auto; padding: 4px 0;
  background: var(--ink);
  scrollbar-width: none;
}
.thumbs::-webkit-scrollbar { display: none; }
.thumb {
  flex: 0 0 auto; width: 148px; height: 92px; padding: 0; border: none;
  cursor: pointer; opacity: 0.65; transition: opacity 0.3s var(--ease);
  position: relative; background: var(--ink);
}
.thumb picture, .thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-on, .thumb:hover, .thumb:focus-visible { opacity: 1; }
.thumb.is-on::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: #fff; }
.thumb:focus-visible { outline-color: #fff; outline-offset: -3px; }
.thumb-all {
  width: auto; padding: 0 1.3rem; opacity: 1;
  color: #fff; font-family: var(--sans); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  background: rgba(31,30,28,0.6); border-left: 1px solid rgba(255,255,255,0.25);
}

/* ---------- masthead ---------- */
.masthead { padding: clamp(2.4rem, 6vw, 4rem) 0 clamp(1.6rem, 4vw, 2.6rem); border-bottom: 1px solid var(--hairline); }
.status-chip {
  display: inline-block; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: #fff; background: var(--ink); padding: 0.45rem 0.85rem;
}
.masthead-addr { font-size: clamp(1.9rem, 5vw, 3.4rem); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 1.1rem; }
.masthead-sub { margin-top: 0.5rem; font-size: clamp(0.95rem, 2vw, 1.15rem); letter-spacing: 0.12em; color: var(--stone); text-transform: uppercase; }
.qstat-row { display: flex; flex-wrap: wrap; gap: clamp(1.4rem, 4vw, 3rem); margin-top: 1.8rem; }
.qstat-n { display: block; font-size: clamp(1.3rem, 2.8vw, 1.8rem); font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.qstat-l { display: block; font-size: 0.64rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone); margin-top: 0.15rem; }

/* ---------- description ---------- */
.descr-body { margin-top: 1.6rem; max-width: 66ch; }
.descr-body p { margin-bottom: 1rem; }

/* ---------- video tour: full width, 16:9 ---------- */
/* The tour now sits directly under the photos, so it carries the normal top
   space and the description below it starts closer. */
.tour { scroll-margin-top: 1.6rem; }
.tour + .descr { padding-top: 0; }
.tour-frame-wrap {
  position: relative; margin-top: 2.2rem;
  width: 100%; aspect-ratio: 16 / 9;
  background: var(--ink); overflow: hidden;
}
.tour-frame, .tour-frame picture, .tour-frame img, .video-el {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.video-el { object-fit: contain; background: #000; }
/* The poster's own title card sits mid-frame, so the play control
   goes to the lower left instead of covering it. The whole frame is still
   the button. */
.video-play {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-start;
  padding: clamp(0.9rem, 2.4vw, 1.6rem);
  background: linear-gradient(0deg, rgba(31,30,28,0.45), rgba(31,30,28,0) 45%);
  border: none; cursor: pointer; width: 100%;
}
.video-play span {
  display: inline-flex; align-items: center; gap: 0.7rem;
  background: rgba(255,255,255,0.95); color: var(--ink);
  font-family: var(--sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.85rem 1.2rem 0.85rem 1rem;
  transition: transform 0.35s var(--ease);
}
.video-play span::before { content: "\25B6"; font-size: 0.9rem; letter-spacing: 0; }
.video-play:hover span, .video-play:focus-visible span { transform: scale(1.07); }
.video-play:focus-visible { outline-offset: -4px; }

/* ---------- spec sheet ---------- */
.details { background: var(--shell); }
.spec-columns { display: grid; gap: clamp(2rem, 5vw, 3.4rem); margin-top: 2.2rem; }
@media (min-width: 860px) { .spec-columns { grid-template-columns: 1fr 1fr; } }
.spec-title { font-size: 1rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink); padding-bottom: 0.7rem; border-bottom: 2px solid var(--ink); }
.spec-sheet { border-top: 0; }
.spec-row { display: flex; justify-content: space-between; gap: 1.5rem; padding: 0.85rem 0; border-bottom: 1px solid var(--hairline); }
.spec-row dt { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone); padding-top: 0.2rem; flex-shrink: 0; }
.spec-row dd { text-align: right; font-weight: 500; color: var(--ink); }

/* ---------- floor plan ---------- */
.plans { padding-top: clamp(3.8rem, 9vw, 6.5rem); }
.plan-caption { margin-top: 1rem; color: var(--stone); font-size: 0.92rem; max-width: 62ch; }
.plan-switch { display: flex; gap: 0; margin-top: 1.4rem; }
.plan-switch button {
  font-family: var(--sans); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink); background: #fff; border: 1px solid var(--ink); padding: 0.8rem 1.2rem; cursor: pointer;
  min-height: 44px; transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.plan-switch button + button { border-left: none; }
.plan-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.plan-switch button:hover { background: var(--shell); }
.plan-switch button[aria-pressed="true"]:hover { background: var(--stone-deep); }
.plan-wrap {
  position: relative; margin-top: 1rem; overflow: hidden;
  border: 1px solid var(--hairline); background: #fff;
}
/* Only take over touch while zoomed with the buttons, so the page can still
   be pinch-zoomed and scrolled over the plan on a phone. */
.plan-wrap.is-zoomed { touch-action: none; }
.plan-link { display: block; cursor: zoom-in; }
.plan-wrap.is-zoomed .plan-link { cursor: grab; }
.plan-wrap img { width: 100%; height: auto; transition: transform 0.25s var(--ease); transform-origin: center; display: block; }
.plan-tools { position: absolute; right: 0.8rem; bottom: 0.8rem; display: flex; gap: 0.5rem; }
.plan-tools button {
  width: 44px; height: 44px; border: 1px solid var(--ink); background: #fff;
  font-family: var(--sans); font-size: 1.15rem; cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.plan-tools button:hover, .plan-tools button:focus-visible { background: var(--ink); color: #fff; }

/* ---------- location ---------- */
.hood { background: var(--shell); }
.hood-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); margin-top: 2.2rem; align-items: start; }
@media (min-width: 860px) { .hood-grid { grid-template-columns: 1fr 1fr; } }
.hood-copy p { margin-bottom: 1rem; max-width: 58ch; }
.hood-copy strong { color: var(--ink); }
.map-shell { aspect-ratio: 4 / 3; border: 1px solid var(--hairline); background: #fff; }
.map-shell iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- footer ---------- */
.page-foot { border-top: 1px solid var(--hairline); padding: clamp(1.8rem, 4vw, 2.6rem) 0 calc(clamp(1.8rem, 4vw, 2.6rem) + env(safe-area-inset-bottom)); }
.foot-addr { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); }
.foot-legal { margin-top: 0.8rem; font-size: 0.78rem; color: var(--stone); line-height: 1.7; max-width: 80ch; }

/* ---------- lightbox ---------- */
.lightbox { border: none; background: rgba(20,19,18,0.96); width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; padding: 0; }
.lightbox::backdrop { background: rgba(20,19,18,0.96); }
.lightbox img { position: absolute; inset: 0; margin: auto; max-width: 92vw; max-height: 86vh; width: auto; height: auto; object-fit: contain; }
.lb-btn { position: absolute; z-index: 2; background: none; border: 1px solid rgba(255,255,255,0.4); color: #fff; font-family: var(--sans); font-size: 1rem; width: 46px; height: 46px; cursor: pointer; transition: border-color .25s, background .25s; }
.lb-btn:hover, .lb-btn:focus-visible { border-color: #fff; background: rgba(255,255,255,0.12); }
.lb-btn:focus-visible { outline-color: #fff; }
#lbPrev { left: 0.8rem; top: 50%; transform: translateY(-50%); }
#lbNext { right: 0.8rem; top: 50%; transform: translateY(-50%); }
#lbClose { top: 0.8rem; right: 0.8rem; }
.lb-count { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.8); font-size: 0.72rem; letter-spacing: 0.2em; }

/* ---------- fades ---------- */
.fade { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.fade.in { opacity: 1; transform: none; }

/* ---------- print: a clean flyer ---------- */
@media print {
  .site-nav, .lightbox, .plan-tools, .plan-switch, .slide-arrow, .slide-full, .thumbs, .slide-count, .tour, .map-shell { display: none !important; }
  .slide-stage { height: 300px; }
  section { padding: 1rem 0; }
  .details, .hood { background: #fff; }
  .fade { opacity: 1; transform: none; }
  .spec-row { page-break-inside: avoid; }
}
