/* ==========================================================================
   505 Richmond St W, Unit 729
   Base tokens, shared atoms, then one themed block per section.
   ========================================================================== */

:root {
  --ink: #0d0d0d;
  --paper: #ffffff;
  --nav-h: 60px;

  --font-display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;

  --wrap: 1200px;
  --gap: clamp(16px, 2.5vw, 32px);
  --sec-pad: clamp(64px, 9vw, 140px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}

img, picture, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; }

h1, h2, h3 { line-height: 1.05; margin: 0; font-weight: 600; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(18px, 5vw, 48px);
}

.sec { position: relative; padding-block: var(--sec-pad); }

.sec__eyebrow {
  margin: 0 0 clamp(14px, 2vw, 22px);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.sec__title {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 6vw, 4.5rem);
  letter-spacing: -0.02em;
}

.sec__lede {
  max-width: 58ch;
  margin: clamp(18px, 2.5vw, 28px) 0 0;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
}
.skip-link:focus { left: 8px; top: 8px; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ---------------------------- Shared atoms ------------------------------ */

.btn {
  display: inline-block;
  padding: 14px 26px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .25s, color .25s, transform .25s;
}
.btn--solid { background: #fff; color: var(--ink); border-color: #fff; }
.btn--solid:hover { transform: translateY(-2px); }
.btn--ghost { background: transparent; color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.shot { margin: 0; }
.shot picture, .shot img { width: 100%; }
.shot img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 2px;
  cursor: zoom-in;
  transition: transform .5s cubic-bezier(.2,.7,.2,1), filter .4s;
}
.shot:hover img { transform: scale(1.02); }
.shot { overflow: hidden; }
.shot figcaption {
  margin-top: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: .65;
}
.shot--wide img { aspect-ratio: auto; }
.shot--tall img { aspect-ratio: 4 / 3; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ------------------------------- Nav ------------------------------------ */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  color: #fff;
  background: transparent;
  transition: background-color .3s, color .3s, box-shadow .3s, text-shadow .3s;
  text-shadow: 0 1px 2px rgba(0,0,0,.55), 0 4px 18px rgba(0,0,0,.35);
}
.nav.is-stuck {
  background: rgba(255,255,255,.94);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(0,0,0,.1);
  backdrop-filter: saturate(160%) blur(10px);
  text-shadow: none;
}

.nav__inner {
  max-width: var(--wrap);
  height: 100%;
  margin-inline: auto;
  padding-inline: clamp(18px, 5vw, 48px);
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 40px);
}

.nav__brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.nav__brand-unit { font-weight: 700; }
.nav__brand-addr { font-weight: 400; }

.nav__links {
  display: flex;
  gap: clamp(10px, 1.8vw, 26px);
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav__links::-webkit-scrollbar { display: none; }
.nav__links a {
  position: relative;
  padding: 6px 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  opacity: .8;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.nav__links a:hover { opacity: 1; }
.nav__links a.is-active { opacity: 1; }
.nav__links a.is-active::after { transform: scaleX(1); }

.nav__cta {
  flex: none;
  padding: 9px 16px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .25s, color .25s;
}
.nav__cta:hover { background: currentColor; }
.nav.is-stuck .nav__cta:hover { color: #fff; }
.nav:not(.is-stuck) .nav__cta:hover { color: var(--ink); }

@media (max-width: 860px) {
  .nav__links { display: none; }
}

/* ------------------------------- Hero ----------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  background: #0d0d0d;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4,8,14,.72) 0%, rgba(4,8,14,.28) 32%, rgba(4,8,14,.55) 62%, rgba(4,8,14,.9) 100%),
    linear-gradient(90deg, rgba(4,8,14,.55) 0%, rgba(4,8,14,.22) 42%, transparent 72%);
  pointer-events: none;
}

.hero__body {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0 clamp(18px, 5vw, 48px) clamp(70px, 12vh, 140px);
}
.hero__body::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -12% -6% -18% -10%;
  background: radial-gradient(ellipse 70% 65% at 28% 68%, rgba(0,0,0,.55) 0%, rgba(0,0,0,.2) 48%, transparent 72%);
  pointer-events: none;
}
.hero__eyebrow {
  margin: 0 0 18px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  opacity: 1;
  text-shadow: 0 1px 2px rgba(0,0,0,.75), 0 8px 28px rgba(0,0,0,.5);
}
.hero__title {
  font-family: var(--font-display);
  text-shadow:
    0 1px 1px rgba(0,0,0,.55),
    0 2px 8px rgba(0,0,0,.45),
    0 10px 40px rgba(0,0,0,.55);
}
.hero__unit {
  display: block;
  font-size: clamp(2.4rem, 8vw, 5.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.hero__addr {
  display: block;
  margin-top: clamp(4px, 0.6vw, 8px);
  font-size: clamp(2.4rem, 8vw, 5.6rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 4vw, 46px);
  margin: clamp(24px, 4vh, 44px) 0 clamp(28px, 4vh, 42px);
  padding: 18px 0 0;
  border-top: 1px solid rgba(255,255,255,.4);
  list-style: none;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0,0,0,.75), 0 6px 22px rgba(0,0,0,.45);
}
.hero__stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.2vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 480px) {
  .hero__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
  }
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 2;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 14px;
}
.hero__scroll span {
  position: absolute;
  left: 50%;
  top: 9px;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: #fff;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(14px); opacity: .35; }
}

/* ======================= SECTION: LOCATION =============================
   Toronto skyline + downtown patio: open sky gradient, warm late-afternoon
   light, string-lit patio cards, skyline silhouette at the horizon.
   ====================================================================== */

.location {
  --sky-top: #9fd4ee;
  --sky-mid: #cfe8f3;
  --sky-warm: #ffe2b8;
  --patio-ink: #23303a;
  color: var(--patio-ink);
  padding-bottom: calc(var(--sec-pad) + 90px);
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 42%, var(--sky-warm) 100%);
  overflow: hidden;
}

.location__sky { position: absolute; inset: 0; pointer-events: none; }
.location__sun {
  position: absolute;
  right: 8%;
  top: 14%;
  width: clamp(120px, 18vw, 240px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,246,214,.95) 0%, rgba(255,214,140,.5) 45%, rgba(255,214,140,0) 70%);
}
/* Cumulus built from overlapping discs, then blurred into a soft edge. */
.location__cloud {
  position: absolute;
  opacity: .6;
  filter: blur(7px);
  /* Radii are given in percentages so a single recipe fits every cloud size. */
  background:
    radial-gradient(26% 54% at 22% 62%, #fff 0 99%, transparent 100%),
    radial-gradient(32% 88% at 47% 44%, #fff 0 99%, transparent 100%),
    radial-gradient(24% 50% at 74% 62%, #fff 0 99%, transparent 100%),
    radial-gradient(46% 30% at 50% 78%, #fff 0 99%, transparent 100%);
  will-change: transform;
}
.location__cloud--1 { left: 2%;  top: 6%;  width: 240px; height: 110px; }
.location__cloud--2 { left: 62%; top: 4%;  width: 320px; height: 140px; }
.location__cloud--3 { left: 34%; top: 28%; width: 180px; height: 84px; opacity: .42; }

.location__head { position: relative; z-index: 2; }
.location .sec__eyebrow { color: #b4531f; }
.location .sec__title { font-weight: 300; }

.location__cards {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-top: clamp(38px, 6vw, 70px);
}

/* Patio card: warm bistro-table feel with a string-light top edge. */
.patio-card {
  position: relative;
  padding: clamp(24px, 3vw, 34px);
  border-radius: 3px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(35,48,58,.12);
  box-shadow: 0 18px 40px -28px rgba(35,48,58,.6);
  backdrop-filter: blur(4px);
}
.patio-card::before {
  content: "";
  position: absolute;
  left: 14px; right: 14px; top: -1px;
  height: 6px;
  border-radius: 0 0 6px 6px;
  background:
    radial-gradient(circle at 10% 100%, #ffcf6b 0 2.5px, transparent 3px),
    radial-gradient(circle at 30% 100%, #ffcf6b 0 2.5px, transparent 3px),
    radial-gradient(circle at 50% 100%, #ffcf6b 0 2.5px, transparent 3px),
    radial-gradient(circle at 70% 100%, #ffcf6b 0 2.5px, transparent 3px),
    radial-gradient(circle at 90% 100%, #ffcf6b 0 2.5px, transparent 3px);
}
.patio-card__num {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  color: #b4531f;
}
.patio-card h3 { font-size: clamp(1.1rem, 1.8vw, 1.45rem); font-weight: 500; }

.location__pair {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  margin-top: clamp(38px, 6vw, 70px);
}
.location .shot figcaption { opacity: .8; }

.skyline {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: clamp(70px, 11vw, 150px);
  color: #2b3b47;
  pointer-events: none;
}
.skyline svg { width: 100%; height: 100%; fill: currentColor; opacity: .9; }

@media (max-width: 900px) {
  .location__cards { grid-template-columns: 1fr; }
  .location__pair { grid-template-columns: 1fr; }
}

/* ======================= SECTION: THE UNIT =============================
   Modern, monochrome, sleek: white ground, hairline rules, tight type.
   ====================================================================== */

.unit { background: #fff; color: var(--ink); }
.unit .sec__eyebrow { color: #8c8c8c; }
.unit .sec__title { font-weight: 200; }
.unit .sec__lede { color: #3c3c3c; }

.unit__specs { margin-top: clamp(40px, 6vw, 76px); }
.spec-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 clamp(28px, 5vw, 72px);
  margin: 0;
  border-top: 1px solid var(--ink);
}
.spec-list > div {
  display: grid;
  grid-template-columns: 34% 1fr;
  gap: 16px;
  padding: clamp(16px, 2vw, 22px) 0;
  border-bottom: 1px solid rgba(13,13,13,.13);
}
.spec-list dt {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.spec-list dd { margin: 0; font-size: 0.97rem; color: #2b2b2b; }

.unit__sub {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  font-weight: 300;
  letter-spacing: -0.01em;
}
.unit__note {
  margin: 10px 0 clamp(22px, 3vw, 34px);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8c8c8c;
}
.unit__compare { margin-top: clamp(56px, 8vw, 100px); }
.unit__compare .compare + .compare { margin-top: clamp(26px, 4vw, 44px); }
.unit__gallery { margin-top: clamp(56px, 8vw, 100px); }
.unit__gallery .unit__sub { margin-bottom: clamp(22px, 3vw, 34px); }

/* Atom: before/after compare slider (driven by --pos, set in JS) */
.compare {
  --pos: 50%;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: #000;
  touch-action: pan-y;
  user-select: none;
  cursor: ew-resize;
}
/* Ignoring pointer events on the frames keeps a native image drag from
   cancelling the slider gesture partway through. */
.compare img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}
/* Clipping (rather than resizing) the overlay keeps both frames aligned
   even when the two source photos differ slightly in aspect ratio. */
.compare__top {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.compare__top img { width: 100%; height: 100%; object-fit: cover; }
.compare::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 12px rgba(0,0,0,.5);
  pointer-events: none;
}
.compare__label {
  position: absolute;
  bottom: 12px;
  padding: 5px 10px;
  border-radius: 2px;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  pointer-events: none;
}
.compare__label--a { left: 12px; }
.compare__label--b { right: 12px; }

@media (max-width: 720px) {
  .spec-list { grid-template-columns: 1fr; }
  .spec-list > div { grid-template-columns: 1fr; gap: 4px; }
}

/* ======================= SECTION: THE CONDO ============================
   Waterworks black-valve: retro-industrial, charcoal ground, black metal
   only, stencilled type, and valve wheels turning as you scroll past.
   ====================================================================== */

.condo {
  color: #ededed;
  background: #101010;
  overflow: hidden;
}
/* Riveted steel-plate ground: fine grid + subtle sheen, no warm metals. */
.condo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255,255,255,.07), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 46px);
  pointer-events: none;
}

.valves { position: absolute; inset: 0; pointer-events: none; }
.valves__svg { width: 100%; height: 100%; color: #262626; }
.valve {
  transform: translate(calc(var(--x) * 1px), calc(var(--y) * 1px)) scale(var(--s)) rotate(0deg);
  transform-box: view-box;
  transform-origin: 0 0;
  opacity: .85;
}
.valve use { transform-box: view-box; transform-origin: 0 0; }

.condo > .wrap { position: relative; z-index: 2; }
.condo .sec__eyebrow { color: #8f8f8f; }
.condo__title {
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px #f0f0f0;
}
@supports not (-webkit-text-stroke: 1px #fff) {
  .condo__title { color: #f0f0f0; }
}
.condo .sec__lede { color: #b9b9b9; }

.condo__awards {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(28px, 4vw, 42px);
}
.stamp {
  padding: 8px 14px;
  border: 1px solid #3a3a3a;
  border-radius: 2px;
  background: #171717;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #cfcfcf;
}

.condo__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-top: clamp(44px, 6vw, 76px);
}

/* Plate: bolted black metal panel. */
.plate {
  position: relative;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid #333;
  border-radius: 2px;
  background: linear-gradient(160deg, #1b1b1b, #111);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.plate::before,
.plate::after {
  content: "";
  position: absolute;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #050505;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.22);
}
.plate::before { left: 10px; }
.plate::after { right: 10px; }
.plate h3 {
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.plate p { margin: 12px 0 0; font-size: 0.94rem; color: #a9a9a9; }

.condo__gallery { margin-top: clamp(44px, 6vw, 76px); }
.shot--dark img { border: 1px solid #2a2a2a; }
.condo .shot figcaption { color: #9a9a9a; opacity: 1; }

@media (max-width: 980px) {
  .condo__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .condo__grid { grid-template-columns: 1fr; }
}

/* ====================== SECTION: THE BUILDING ==========================
   Orange/brown brick + black metal, matching the heritage facade.
   ====================================================================== */

.building {
  --brick: #9c4f28;
  --brick-dark: #6d3419;
  --mortar: #d9cec3;
  color: #241a14;
  background: #f3ece5;
}
/* Running-bond brick coursing along the top edge, fading into the section.
   An SVG tile is used because CSS gradients cannot offset alternate courses. */
.building::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: clamp(90px, 14vw, 190px);
  background-image:
    linear-gradient(180deg, rgba(243,236,229,0) 40%, rgba(243,236,229,.85) 82%, #f3ece5 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='92' height='136'%3E%3Crect width='92' height='136' fill='%23cfc3b4'/%3E%3Crect x='2' y='2' width='88' height='30' fill='%23a2603a'/%3E%3Crect x='-44' y='36' width='88' height='30' fill='%238d4f2b'/%3E%3Crect x='48' y='36' width='88' height='30' fill='%23ab6c45'/%3E%3Crect x='2' y='70' width='88' height='30' fill='%23955631'/%3E%3Crect x='-44' y='104' width='88' height='30' fill='%23a9673e'/%3E%3Crect x='48' y='104' width='88' height='30' fill='%23904f28'/%3E%3C/svg%3E");
  background-repeat: no-repeat, repeat;
  background-size: 100% 100%, 92px 136px;
  pointer-events: none;
}
.building > .wrap { position: relative; z-index: 2; }
.building__head { padding-top: clamp(40px, 8vw, 90px); }
.building .sec__eyebrow { color: var(--brick-dark); }
.building .sec__title { font-family: var(--font-serif); font-weight: 600; }
.building .sec__lede { color: #4a3a30; }

.building__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  margin-top: clamp(38px, 6vw, 70px);
}

/* Brick card: warm masonry face with a black metal edge. */
.brick-card {
  position: relative;
  padding: clamp(24px, 3vw, 34px) clamp(24px, 3vw, 34px) clamp(24px, 3vw, 34px) clamp(30px, 3.4vw, 40px);
  border-radius: 2px;
  background: #fffaf5;
  border: 1px solid rgba(36,26,20,.12);
  box-shadow: 0 20px 44px -34px rgba(36,26,20,.75);
}
.brick-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 8px;
  background: #14100e;
}
.brick-card h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  font-weight: 600;
}
.brick-card p { margin: 12px 0 0; font-size: 0.96rem; color: #4a3a30; }

.building__gallery { margin-top: clamp(44px, 6vw, 76px); }
.building__gallery .grid { margin-top: var(--gap); }
.building .shot img { border: 1px solid rgba(36,26,20,.18); }

@media (max-width: 820px) {
  .building__cols { grid-template-columns: 1fr; }
  .building__gallery .grid--2 { grid-template-columns: 1fr; }
}

/* ==================== SECTION: ST. ANDREW'S PARK =======================
   Green, leafy, picnic-in-the-shade: soft organic shapes, canopy greens.
   ====================================================================== */

.park {
  --green: #2f6b3a;
  --green-light: #7fb069;
  color: #1d2d1f;
  background: linear-gradient(180deg, #f2f7ec 0%, #e2efd8 100%);
  overflow: hidden;
}
.park__leaves { position: absolute; inset: 0; pointer-events: none; }
.leaf {
  position: absolute;
  width: clamp(160px, 26vw, 360px);
  aspect-ratio: 1;
  background: radial-gradient(circle at 30% 30%, rgba(127,176,105,.5), rgba(47,107,58,.16) 70%, transparent 72%);
  border-radius: 62% 38% 55% 45% / 55% 52% 48% 45%;
}
.leaf--1 { left: -6%; top: 6%; }
.leaf--2 { right: -8%; top: 34%; transform: rotate(28deg); }
.leaf--3 { left: 30%; bottom: -8%; opacity: .7; }

.park > .wrap { position: relative; z-index: 2; }
.park .sec__eyebrow { color: var(--green); }
.park .sec__title { font-family: var(--font-serif); font-weight: 600; }
.park .sec__lede { color: #3a4a3c; }

.park__layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  margin-top: clamp(40px, 6vw, 72px);
}

.leaf-list { margin: 0; padding: 0; list-style: none; }
.leaf-list li {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: clamp(14px, 2vw, 20px) 0;
  border-bottom: 1px dashed rgba(47,107,58,.3);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
}
.leaf-list__icon {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 5px;
  background: var(--green);
  border-radius: 80% 12% 80% 12%;
  transform: rotate(-12deg);
}

.shot--organic img {
  aspect-ratio: 3 / 2;
  border-radius: 46% 8% 46% 8% / 12% 42% 12% 42%;
}
.park .shot figcaption { text-align: center; color: #3a4a3c; }

@media (max-width: 900px) {
  .park__layout { grid-template-columns: 1fr; }
  .shot--organic img { border-radius: 32% 8% 32% 8% / 10% 30% 10% 30%; }
}

/* ========================= SECTION: 3D TOUR ============================ */

.tour { color: #efefef; background: #141414; }
.tour .sec__eyebrow { color: #8f8f8f; }
.tour .sec__title { font-weight: 300; }
.tour .sec__lede { color: #b3b3b3; margin-bottom: clamp(28px, 4vw, 44px); }

.tour__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid #2d2d2d;
  border-radius: 2px;
  background: #0a0a0a;
  overflow: hidden;
}
.tour__frame iframe { width: 100%; height: 100%; border: 0; }
.tour__fallback { margin-top: 14px; font-size: 0.82rem; color: #9a9a9a; }
.tour__fallback a { color: #fff; }

@media (max-width: 620px) {
  .tour__frame { aspect-ratio: 4 / 5; }
}

/* ========================= SECTION: CONTACT ============================ */

.contact { color: #fff; background: #0d0d0d; padding-bottom: 0; }
.contact .sec__eyebrow { color: #8f8f8f; }
.contact .sec__title { font-weight: 300; }
.contact .sec__lede { color: #b3b3b3; }

.contact__details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(20px, 3vw, 36px);
  margin: clamp(34px, 5vw, 56px) 0 clamp(30px, 4vw, 44px);
  padding-top: clamp(26px, 3vw, 36px);
  border-top: 1px solid rgba(255,255,255,.2);
}
.contact__details dt {
  margin-bottom: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8f8f8f;
}
.contact__details dd { margin: 0; font-size: 1.02rem; }
.contact__details a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }
.contact__details a:hover { border-bottom-color: #fff; }

.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.foot {
  margin-top: clamp(56px, 8vw, 96px);
  padding: 28px clamp(18px, 5vw, 48px);
  border-top: 1px solid rgba(255,255,255,.12);
  text-align: center;
  font-size: 0.78rem;
  color: #8f8f8f;
}
.foot p { margin: 0; }
.foot__fine { margin-top: 8px; max-width: 70ch; margin-inline: auto; opacity: .8; }

/* ========================== Lightbox atom ============================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: clamp(12px, 4vw, 48px);
  background: rgba(5,5,5,.94);
  opacity: 0;
  transition: opacity .25s;
}
/* `display: grid` above would otherwise defeat the `hidden` attribute. */
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__figure { margin: 0; max-width: 100%; max-height: 100%; }
.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 130px);
  width: auto;
  object-fit: contain;
}
.lightbox__cap {
  margin-top: 12px;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bdbdbd;
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  background: rgba(0,0,0,.4);
  color: #fff;
  cursor: pointer;
  line-height: 1;
  transition: background-color .2s;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255,255,255,.2); }
.lightbox__close {
  top: 14px; right: 14px;
  width: 44px; height: 44px;
  font-size: 1.6rem;
}
.lightbox__nav {
  top: 50%;
  width: 48px; height: 48px;
  margin-top: -24px;
  font-size: 1.8rem;
}
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }

body.is-locked { overflow: hidden; }

/* ============================ Motion opt-out =========================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll span { animation: none; }
  .shot img, .btn { transition: none; }
}
