/* ==========================================================================
   King Edward & Ash — kingedash.ca
   Implemented from "King Ed and Ash.dc.html" (Claude Design).
   ========================================================================== */

:root {
  /* Palette */
  --paper:   #F7F5F2;
  --ink:     #10131A;
  --white:   #fff;
  --red:     #E1092F;   /* RE/MAX red  */
  --navy:    #002E6D;   /* RE/MAX blue */
  --muted:   #5A6069;
  --faint:   #8A9098;
  --fainter: #A6A29B;
  --ghost:   #BFBBB3;

  --rule:       rgba(16, 19, 26, 0.14);
  --rule-solid: rgba(16, 19, 26, 0.5);
  --field:      rgba(16, 19, 26, 0.2);

  /* Type */
  --sans: Karla, Helvetica, Arial, sans-serif;
  --disp: Archivo, Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --max: 1180px;
  --pad: 40px;
  --hdr-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--ink); }
::selection { background: var(--red); color: var(--white); }

img { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  font-family: var(--disp);
  font-weight: 700;
}
.skip:focus { left: 0; color: var(--white); }

/* Visually hidden, still read by screen readers. */
.vh {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ── Shared type ─────────────────────────────────────────────────────────── */

.h2 {
  margin: 0;
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}
.eyebrow--red { color: var(--red); }

.lead {
  margin: 0;
  font-family: var(--disp);
  font-weight: 600;
  font-size: clamp(24px, 2.9vw, 38px);
  line-height: 1.28;
  letter-spacing: -0.02em;
  max-width: 30ch;
  text-wrap: pretty;
}
.lead__soft { font-weight: 400; }
.lead__emph { color: var(--red); }

.body {
  margin: 28px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 52ch;
  text-wrap: pretty;
}
.body--sm { font-size: 17px; max-width: 42ch; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 24px;
  border: 0;
  font-family: var(--disp);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn--sm { height: 44px; padding: 0 22px; font-size: 14px; }
.btn--lg { height: 52px; padding: 0 26px; }
.btn--block { width: 100%; height: 58px; font-weight: 800; font-size: 15px; }

.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--ink); color: var(--white); }

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
  background: transparent;
}
.btn--ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

/* On the hero, the red button inverts to white instead of ink. */
.hero__cta .btn--red:hover { background: var(--white); color: var(--ink); }

/* ── Header ──────────────────────────────────────────────────────────────── */

.hdr__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.brand__mark { width: 9px; height: 9px; background: var(--red); flex: 0 0 auto; }
.brand__name {
  font-family: var(--disp);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.015em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav__link {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color .18s ease;
}

/* Transparent header sitting over the hero — scrolls away with the page. */
.hdr--over {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 50;
}
.hdr--over .hdr__scrim {
  position: absolute;
  inset: 0 0 auto 0;
  height: 180px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(10, 12, 16, 0.6), rgba(10, 12, 16, 0));
}
.hdr--over .hdr__bar { height: 84px; }
.hdr--over .brand { color: var(--white); }
.hdr--over .brand:hover { color: var(--white); }
.hdr--over .nav__link { color: var(--white); }
.hdr--over .nav__link:hover { color: var(--white); }
.hdr--over .btn--ghost { border-color: rgba(255, 255, 255, 0.55); }
.hdr--over .btn--ghost:hover { background: var(--red); border-color: var(--red); color: var(--white); }

/* Condensed header that slides in past the hero. */
.hdr--solid {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(247, 245, 242, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(16, 19, 26, 0.12);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .28s ease, visibility .28s;
}
.hdr--solid.is-shown { transform: none; visibility: visible; }
.hdr--solid .hdr__bar { height: var(--hdr-h); }
.hdr--solid .brand { color: var(--ink); }
.hdr--solid .brand:hover { color: var(--red); }
.hdr--solid .nav__link { color: var(--ink); }
.hdr--solid .nav__link:hover { color: var(--red); }

.progress { height: 2px; background: rgba(16, 19, 26, 0.08); }
.progress__bar { height: 2px; width: 0; background: var(--red); }

/* ── Image slots ─────────────────────────────────────────────────────────────
   Each figure is a framed drop-in. The <img> sits on top; when the file is
   missing the browser hides it (see below) and the framed hint shows through.
   Add the real file at the path in the <img src> and it takes over — no
   markup change needed. */

.slot {
  position: relative;
  margin: 0;
  min-width: 0;
  background: rgba(16, 19, 26, 0.03);
  border: 1px dashed rgba(16, 19, 26, 0.25);
}
.slot::after {
  content: attr(data-hint);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.8;
  color: var(--ghost);
}
.slot img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slot--contain img { object-fit: contain; object-position: left center; }

/* A missing image collapses to nothing rather than showing a broken icon. */
.slot img:not([src]),
.slot.is-empty img { display: none; }

/* Filled slots drop the frame. */
.slot.is-filled { background: none; border: 0; }
.slot.is-filled::after { content: none; }

.slot--dark { background: #14171E; border-color: rgba(255, 255, 255, 0.16); }
.slot--dark::after { color: rgba(255, 255, 255, 0.35); }

.ratio { width: 100%; }
.ratio--4x3 { aspect-ratio: 4 / 3; }
.ratio--2x1 { aspect-ratio: 2 / 1; }
.ratio--3x4 { aspect-ratio: 3 / 4; }
.ratio--3x1 { aspect-ratio: 3 / 1; }
.ratio--16x9 { aspect-ratio: 16 / 9; }
.ratio--1x1 { aspect-ratio: 1 / 1; }

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero__media { position: absolute; inset: 0; z-index: 0; border: 0; }
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top,
    rgba(10, 12, 16, 0.82) 0%,
    rgba(10, 12, 16, 0.28) 45%,
    rgba(10, 12, 16, 0.05) 75%);
}
.hero__body {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 88px;
  pointer-events: none;
}
.hero__title {
  margin: 0;
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(38px, 6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--white);
  max-width: 17ch;
  text-wrap: balance;
}
.hero__sub {
  margin: 22px 0 0;
  font-size: 20px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
  max-width: 46ch;
  text-wrap: pretty;
}
.hero__cta {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
  pointer-events: auto;
}

/* ── Sections ────────────────────────────────────────────────────────────── */

/* Section break: a hairline across the content measure with a red tick on its
   left end, so sections read as separate plates rather than one long scroll.
   Inset by --pad (not a plain border-top) so the rule lines up with the text
   above and below it at every breakpoint. */
.sec {
  position: relative;
  margin-top: 72px;
  padding-top: 60px;
}
.sec::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--pad);
  right: var(--pad);
  height: 1px;
  background: var(--rule);
}
.sec::after {
  content: '';
  position: absolute;
  top: 0;
  left: var(--pad);
  width: 44px;
  height: 3px;
  background: var(--red);
}

/* The first section follows the full-bleed hero — a rule there would read as
   an underline on the photo. */
.sec--first { margin-top: 0; padding-top: 96px; }
.sec--first::before,
.sec--first::after { content: none; }

.sec__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.sec__head-note { margin: 0; max-width: 38ch; font-size: 16.5px; line-height: 1.55; }

/* Sub-heading inside a section — smaller than .h2, same voice. */
.h3 {
  margin: 0;
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 56px;
  align-items: start;
}
.split--wide { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); margin-top: 40px; }
.split--gap { gap: 64px; }

/* .split defaults to align-items: start, which leaves the photo holding its
   own aspect box while the copy runs on past it. --match lets the figure
   stretch to the row height so both columns end level. */
.split--match { align-items: stretch; }
.intro__media { height: 100%; min-height: 480px; }
.split__col { min-width: 0; }

/* ── Key figures ─────────────────────────────────────────────────────────── */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  margin: 72px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
/* Values differ in length — "TOA (Tier 2) & ODP" wraps where "30,000 SF"
   does not — so each stat is a column with its label pushed to the bottom.
   The grid stretches all four to equal height, which keeps the labels on one
   line however the values break. */
.stat { display: flex; flex-direction: column; }
.stat__val {
  margin: 0;
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(23px, 2.5vw, 33px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.stat__ast { color: var(--red); }
.stat__key {
  margin-top: auto;
  padding-top: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.stats__note {
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fainter);
}

/* ── Lot plan ────────────────────────────────────────────────────────────── */

.plan { margin: 0; }
/* Left-aligned: Ash Street runs down the right edge of the diagram, so a
   right-hand compass sits directly above it and the two read as one column.
   On the left it balances the drawing instead of crowding it. */
.plan__compass {
  display: flex;
  justify-content: flex-start;
  padding-bottom: 16px;
}

/* North arrow: notched head in brand red over a solid stem, N above. */
.compass {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.compass__n {
  font-family: var(--disp);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--ink);
}
.compass__arrow { width: 22px; height: 52px; overflow: visible; }
.compass__head { fill: var(--red); }
.compass__stem { stroke: var(--ink); stroke-width: 2; }

.plan__street {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.plan__street::before {
  content: '';
  position: absolute;
  border-color: rgba(16, 19, 26, 0.3);
  border-style: dashed;
}
.plan__street-label {
  position: relative;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

.plan__street--h {
  height: 46px;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}
.plan__street--h::before { left: 0; right: 0; top: 50%; border-top-width: 1px; }
.plan__street--h .plan__street-label { padding: 0 14px; }

.plan__body { display: flex; margin-top: 18px; align-items: stretch; }

.plan__street--v {
  flex: 0 0 46px;
  margin-left: 12px;
  border-left: 1.5px solid var(--ink);
  border-right: 1.5px solid var(--ink);
}
.plan__street--v::before { top: 0; bottom: 0; left: 50%; border-left-width: 1px; }
.plan__street--v .plan__street-label { writing-mode: vertical-rl; padding: 8px 0; }

.plan__lots {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  outline: 2px solid var(--red);
}
.lot {
  border: 1px solid var(--rule-solid);
  border-right: none;
  padding: 14px 12px;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.lot:last-child { border-right: 1px solid var(--rule-solid); }
.lot { transition: background .15s ease; }
.lot.is-lit { background: rgba(225, 9, 47, 0.10); }
.lot.is-lit .lot__no { color: var(--red); }
.lot.is-lit .lot__st { color: var(--red); }
.lot__no {
  display: block;
  font-family: var(--disp);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.lot__st {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.plan__note {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ghost);
}

/* ── Address list ────────────────────────────────────────────────────────── */

.addr { margin: 0; padding: 0; list-style: none; }
.addr__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  font-family: var(--disp);
  font-weight: 600;
  font-size: 18px;
  transition: color .15s ease, padding-left .15s ease, box-shadow .15s ease;
}
.addr__item:last-child { border-bottom: 1px solid var(--rule); }
.addr__item.is-lit {
  color: var(--red);
  padding-left: 12px;
  box-shadow: inset 3px 0 0 var(--red);
}

.addr__links { display: flex; gap: 6px; flex: 0 0 auto; }
.addr__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--faint);
  transition: color .15s ease, background .15s ease;
}
.addr__link:hover,
.addr__link:focus-visible { color: var(--red); background: rgba(225, 9, 47, 0.08); }

.addr__icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.addr + .body { margin-top: 28px; }
.body + .btn { margin-top: 24px; }

/* ── Views ───────────────────────────────────────────────────────────────── */

/* ── 360° panorama ───────────────────────────────────────────────────────────
   The source is a 360°×49° equirectangular strip, so the stage aspect and the
   viewer's hfov are paired (see site.js) to make the image fill the frame
   exactly — at 2.4:1 and 95° hfov the vertical field lands on 48.9° against
   49.1° of picture. Change one and the other needs to follow, or the sky and
   ground edges show as bars.                                                 */

.pano { position: relative; margin: 36px 0 0; }
.pano__stage {
  position: relative;
  aspect-ratio: 2.4 / 1;
  background: var(--ink);
  overflow: hidden;
  cursor: grab;
}
.pano__stage.is-live:active { cursor: grabbing; }
.pano__stage.is-idle { cursor: default; }

.pano__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: opacity .4s ease;
}
.pano__stage.is-live .pano__poster { opacity: 0; pointer-events: none; }

.pano__start {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  border: 0;
  background: linear-gradient(to top, rgba(10, 12, 16, 0.55), rgba(10, 12, 16, 0.15));
  color: var(--white);
  font: inherit;
  cursor: pointer;
  transition: opacity .3s ease;
}
.pano__stage.is-live .pano__start { opacity: 0; pointer-events: none; }

.pano__start-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--red);
  transition: transform .2s ease;
}
.pano__start-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--white);
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.pano__start:hover .pano__start-icon,
.pano__start:focus-visible .pano__start-icon { transform: scale(1.08); }

.pano__start-label {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.pano__note {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.pano__hint { opacity: 0; transition: opacity .3s ease; }
.pano.is-live .pano__hint { opacity: 1; }
.pano__ext { color: var(--faint); border-bottom: 1px solid var(--rule); }
.pano__ext:hover { color: var(--red); border-bottom-color: var(--red); }

/* Pannellum ships its own chrome; keep only what suits the page. */
.pano .pnlm-container { background: var(--ink); }
.pano .pnlm-about-msg,
.pano .pnlm-orientation-button { display: none; }
.pano .pnlm-load-box { display: none; }

.pano--static img { width: 100%; height: auto; display: block; }

/* ── Panorama labels ─────────────────────────────────────────────────────────
   Pannellum centres each hot spot div on its point, so the marker is built as
   a zero-size anchor with the dot sitting at the origin and the line and block
   stacked upward out of it (downward when .pano-mark--drop is set).          */

.pano-mark-base {
  width: 0;
  height: 0;
  pointer-events: none;
}
.pano-mark {
  position: absolute;   /* keeps the hot spot div itself 0×0 — see site.js */
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: max-content;
  /* Laid out from the origin, so pull the column up by its own height to hang
     the marker above the point it labels. */
  transform: translate(-50%, -100%);
}
.pano-mark--drop {
  flex-direction: column-reverse;
  transform: translate(-50%, 0);
}

.pano-mark__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(225, 9, 47, 0.3);
  flex: 0 0 auto;
}
.pano-mark__line {
  width: 3px;
  height: 46px;
  background: var(--red);
  flex: 0 0 auto;
}

.pano-mark__block {
  padding: 7px 12px 8px;
  background: var(--red);
  text-align: center;
  white-space: nowrap;
}

.pano-mark__label {
  display: block;
  font-family: var(--disp);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--white);
}
.pano-mark__note {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 700px) {
  .pano-mark__line { height: 28px; width: 2px; }
  .pano-mark__block { padding: 5px 9px 6px; }
  .pano-mark__label { font-size: 11px; }
  .pano-mark__note { display: none; }
}

/* ── Label placing aid (?marks only) ─────────────────────────────────────── */

.pano-picker {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--ink);
  color: var(--white);
}
.pano-picker__title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fainter);
}
.pano-picker__out {
  flex: 1 1 320px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--white);
  overflow-x: auto;
}
.pano-picker__copy {
  border: 0;
  padding: 7px 14px;
  background: var(--red);
  color: var(--white);
  font-family: var(--disp);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}

.video__head { margin-top: 64px; }
.video { margin-top: 20px; }
.video__frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.video__empty {
  aspect-ratio: 16 / 9;
  border: 1px dashed rgba(16, 19, 26, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}
.video__empty-title { font-family: var(--disp); font-weight: 700; font-size: 20px; color: var(--faint); }
.video__empty-note {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.8;
  color: var(--ghost);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.gallery__wide { margin-top: 20px; }
.gallery__head { margin-top: 64px; }

/* ── Location ────────────────────────────────────────────────────────────── */

.dist { margin: 36px 0 0; }
.dist__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid var(--rule);
}
.dist__row:last-child { border-bottom: 1px solid var(--rule); }
.dist__row dt { font-size: 17px; }
.dist__row dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  white-space: nowrap;
}

.dist__note {
  margin: 14px 0 0;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.5;
  color: var(--faint);
  max-width: 46ch;
}

/* ── Contact ─────────────────────────────────────────────────────────────────
   Two columns of unequal content that must still read as one composition: the
   agent stack on the left, the package panel on the right. Both stretch to the
   same height and each pins its action — the call/email rows, the NDA button —
   to the bottom, so the columns end level instead of one dangling short.     */

.contact { margin-top: 104px; background: var(--white); }
.contact__inner { padding-top: 80px; padding-bottom: 96px; }

.tribar { display: flex; height: 6px; }
.tribar span:nth-child(1) { flex: 1; background: var(--red); }
.tribar span:nth-child(2) { flex: 0 0 34%; background: var(--white); }
.tribar span:nth-child(3) { flex: 1; background: var(--navy); }

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 64px;
  align-items: stretch;
}

/* ── Agent ───────────────────────────────────────────────────────────────── */

.agent { display: flex; flex-direction: column; min-width: 0; }

.agent__brand {
  width: clamp(250px, 30vw, 400px);
  max-width: 100%;
  aspect-ratio: 2500 / 774;
  margin: 18px 0 0;
}

/* Hairlines carry the rhythm down the column so the pieces read as one block
   rather than three stacked fragments. */
.agent__id {
  display: flex;
  align-items: flex-start;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px solid var(--rule);
}
.agent__photo {
  flex: 0 0 168px;
  width: 168px;
  height: 210px;
  border-bottom: 6px solid var(--red);
}
.agent__photo.is-filled { border: 0; border-bottom: 6px solid var(--red); }
.agent__photo img { object-position: center top; }

.agent__meta { flex: 1; min-width: 190px; }
.agent__firm {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.9;
  color: var(--faint);
}
.agent__logo { width: 172px; max-width: 172px; height: 59px; margin-top: 20px; }

/* Brokerage office address, under its logo. */
.agent__addr {
  margin: 12px 0 0;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

/* Required RE/MAX trademark line. */
.agent__disclaimer {
  margin: 10px 0 0;
  max-width: 240px;
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.45;
  color: var(--faint);
}

.reach {
  display: flex;
  flex-direction: column;
  margin-top: auto;         /* bottom-aligns with the panel's button */
  padding-top: 40px;
}
.reach__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 74px;
  padding: 0 26px;
  color: var(--white);
  transition: background-color .18s ease;
}
.reach__row:hover { background: var(--ink); color: var(--white); }
.reach__row--red { background: var(--red); }
.reach__row--navy { background: var(--navy); }
.reach__key {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.8;
}
.reach__val {
  font-family: var(--disp);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.reach__val--sm { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }

/* ── Information package panel ───────────────────────────────────────────── */

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 42px 38px 38px;
  /* Outlined rather than filled. 1.5px ink echoes the lot-plan diagram, which
     is the other drawn element on the page, and gives the panel enough edge to
     hold its own against the solid colour blocks opposite. */
  border: 1.5px solid var(--ink);
  background: transparent;
}

.card__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}
.card__eyebrow::before {
  content: '';
  width: 9px;
  height: 9px;
  background: var(--red);
  flex: 0 0 auto;
}

.card__title {
  margin: 16px 0 0;
  font-family: var(--disp);
  font-weight: 800;
  font-size: clamp(26px, 2.7vw, 36px);
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 14ch;
}

.card__list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.card__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--ink);
}
.card__list li:last-child { border-bottom: 1px solid var(--rule); }
.card__list li::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--red);
  flex: 0 0 auto;
}

.card__body {
  margin: 22px 0 0;
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

.card__foot { margin-top: auto; padding-top: 32px; }
.card__fine {
  margin: 14px 0 0;
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--faint);
}

/* ── Fields (used by the NDA dialog) ─────────────────────────────────────── */

.field {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1.5px solid var(--field);
  background: var(--white);
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  transition: border-color .18s ease;
}
.field::placeholder { color: var(--fainter); }
.field:focus { border-color: var(--ink); outline: none; }
.field:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.field.is-invalid { border-color: var(--red); }

.form__note {
  margin: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.7;
  color: var(--red);
}
.form__note--ok { color: var(--navy); }

/* ── Footer ──────────────────────────────────────────────────────────────── */

.foot { background: var(--ink); border-top: 1px solid rgba(255, 255, 255, 0.12); }
.foot__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: start;
  padding-top: 36px;
  padding-bottom: 48px;
}
.foot__addr {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.foot__legal {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.35);
  text-wrap: pretty;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
  :root { --pad: 24px; }
  .sec { padding-top: 72px; }
  .sec--first { padding-top: 64px; }
  .split { gap: 40px; }
  .sec { margin-top: 48px; padding-top: 40px; }
  .intro__media { min-height: 340px; }
  .contact { margin-top: 72px; }
  .contact__inner { padding-top: 56px; padding-bottom: 64px; }
  .hero__body { padding-bottom: 56px; }
  .stats { margin-top: 56px; }
  .card { padding: 28px 24px 24px; }
  /* One column below 860 — stretching two side by side stops making sense. */
  .contact__grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .reach { padding-top: 32px; }
  .card__foot { padding-top: 26px; }
  .tour__overlay { padding: 20px; }
}

@media (max-width: 600px) {
  :root { --pad: 20px; }
  .hdr--over .hdr__bar { height: 68px; }
  .nav { gap: 16px; }
  .nav__link { display: none; }        /* keep only the CTA on small screens */
  .hero { min-height: 560px; }
  .hero__sub { font-size: 18px; }
  .body { font-size: 17px; }
  .stat__val { font-size: 30px; }
  .lot { min-height: 132px; padding: 10px 8px; }
  .lot__no { font-size: 18px; }
  .lot__st { font-size: 8px; }
  .plan__street-label { font-size: 9px; letter-spacing: 0.12em; }
  .agent__photo { flex-basis: 132px; width: 132px; height: 165px; }
  .reach__val { font-size: 20px; }
  .reach__val--sm { font-size: 15px; }
  .reach__row { padding: 0 18px; height: 66px; }
}

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

@media print {
  .hdr, .skip, .tour__overlay, .form { display: none !important; }
  body { background: #fff; }
  .sec { padding-top: 32px; }
}

/* ── NDA gate ────────────────────────────────────────────────────────────────
   Modal shown by "Request the package". The agreement text scrolls inside its
   own box so the sheet itself never grows past the viewport.                 */

.nda {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  overflow: visible;
}
.nda::backdrop { background: rgba(10, 12, 16, 0.72); }

.nda__sheet {
  position: relative;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 36px clamp(20px, 4vw, 44px) 32px;
}

.nda__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--faint);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.nda__close:hover { color: var(--red); }

.nda__title {
  margin: 0;
  font-family: var(--disp);
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: -0.02em;
}
.nda__intro {
  margin: 10px 0 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 56ch;
}

.nda__doc {
  margin-top: 22px;
  max-height: 34vh;
  overflow-y: auto;
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.nda__doc:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.nda__p { margin: 0 0 12px; }
.nda__p b { color: var(--ink); font-weight: 700; }
.nda__p--caps {
  margin-top: 16px;
  text-transform: uppercase;
  font-family: var(--disp);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.nda__biz {
  margin: 0 0 14px;
  padding: 12px 14px;
  background: var(--paper);
  border-left: 3px solid var(--red);
}
.nda__biz-key,
.nda__agent-key {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.nda__biz-val {
  display: block;
  margin-top: 3px;
  font-family: var(--disp);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}

.nda__agent {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}
.nda__agent-val {
  display: block;
  margin-top: 2px;
  font-family: var(--disp);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
}

.nda__form { margin-top: 24px; }
.nda__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.nda__f { display: block; }
.nda__f--wide { grid-column: 1 / -1; }
.nda__lbl {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.nda__lbl b { color: var(--red); font-weight: 400; }
.nda__f .field { width: 100%; }

/* The signature line reads as a signature, not another text box. */
.field--sign {
  font-family: 'Snell Roundhand', 'Apple Chancery', 'Segoe Script', cursive;
  font-size: 22px;
}

.nda__aside {
  display: block;
  margin-top: 5px;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--faint);
}

.nda__agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.nda__agree input {
  margin-top: 2px;
  width: 17px;
  height: 17px;
  accent-color: var(--red);
  flex: 0 0 auto;
}
.nda__agree b { color: var(--ink); }
.nda__agree input.is-invalid { outline: 2px solid var(--red); outline-offset: 2px; }
.nda__form .btn { margin-top: 20px; }

.nda__fine {
  margin: 14px 0 0;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--faint);
}
#nda-step-done .btn { margin-top: 22px; }

@media (max-width: 620px) {
  .nda__grid { grid-template-columns: minmax(0, 1fr); }
  .nda__doc { max-height: 30vh; }
}

/* ── The Potential: policy documents ─────────────────────────────────────── */

.doc { margin: 40px 0 0; min-width: 0; }
.doc__frame {
  position: relative;
  display: block;
  background: var(--white);
  border: 1px solid var(--rule);
  overflow: hidden;
}
.doc__frame img {
  width: 100%;
  height: auto;
  transition: transform .4s ease;
}
.doc__frame:hover img { transform: scale(1.02); }

/* Affordance for "this opens the real document". */
.doc__open {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 12px;
  background: var(--red);
  color: var(--white);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease;
}
.doc__frame:hover .doc__open,
.doc__frame:focus-visible .doc__open { opacity: 1; transform: none; }

.doc__cap { display: block; margin-top: 18px; }
.doc__kicker {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}
.doc__title {
  display: block;
  margin-top: 8px;
  font-family: var(--disp);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.doc__note {
  display: block;
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 42ch;
}

.doc__source {
  margin: 44px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--faint);
  max-width: 70ch;
}
.doc__source-em { color: var(--muted); }
