/* Palette taken from the property: slate roof, stucco walls, ponderosa, Front Range haze. */
:root {
  --stucco: #e8e7e3;
  --stucco-deep: #d9d8d3;
  --slate: #262a2d;
  --slate-soft: #4a5054;
  --ponderosa: #2f3d30;
  --haze: #9fb2c3;
  --white: #ffffff;

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Hanken Grotesk", "Avenir Next", "Helvetica Neue", Arial, sans-serif;

  /* type scale, ratio ~1.333 */
  --t-sm: 0.875rem;
  --t-base: 1.0625rem;
  --t-md: 1.375rem;
  --t-lg: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem);
  --t-xl: clamp(2.6rem, 1.4rem + 5.2vw, 6.25rem);

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --roof: clamp(28px, 6vw, 96px); /* height of the roof-pitch slant */
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--stucco);
  color: var(--slate);
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

.wrap { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: var(--gutter); }

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--t-lg);
  line-height: 1.15;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}
.section-note { margin: 0 0 2rem; color: var(--slate-soft); max-width: 40rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  font-weight: 600;
  font-size: var(--t-sm);
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1.5px solid currentColor;
  transition: background-color 160ms ease, color 160ms ease;
}
.btn--light { background: var(--white); color: var(--slate); border-color: var(--white); }
.btn--light:hover { background: transparent; color: var(--white); }
.btn--ghost { color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--slate); }

/* Hero: full-bleed aerial loop of the house, bottom edge cut at the roof pitch */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background: var(--slate) url("/media/hero_poster.jpg") center / cover no-repeat;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--roof)), 0 100%);
  padding-bottom: calc(var(--roof) + clamp(2rem, 6vh, 4.5rem));
  padding-top: env(safe-area-inset-top, 0px);
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(20, 24, 26, 0.55) 0%, rgba(20, 24, 26, 0.2) 45%, rgba(20, 24, 26, 0) 65%),
    linear-gradient(to top, rgba(20, 24, 26, 0.75) 0%, rgba(20, 24, 26, 0.3) 45%, rgba(20, 24, 26, 0) 72%);
}
.hero__body { position: relative; }
.hero__address {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--t-xl);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 11ch;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}
.hero__place { font-size: var(--t-md); margin: 0.9rem 0 1.8rem; opacity: 0.92; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* The one orchestrated moment: the address rises in word by word, then the rest follows */
@media (prefers-reduced-motion: no-preference) {
  .hero__address .w {
    display: inline-block;
    clip-path: inset(-0.2em -0.1em -0.25em -0.1em);
  }
  .hero__address .w {
    animation: rise 1100ms cubic-bezier(0.2, 0.7, 0.15, 1) both;
    animation-delay: calc(250ms + var(--i, 0) * 140ms);
  }
  .hero__place, .hero__actions { animation: fade-up 900ms cubic-bezier(0.2, 0.7, 0.15, 1) 900ms both; }
  .hero__actions { animation-delay: 1100ms; }
}
@keyframes rise {
  from { transform: translateY(0.55em); opacity: 0; letter-spacing: 0.06em; filter: blur(6px); }
  to { transform: none; opacity: 1; letter-spacing: -0.02em; filter: none; }
}
@keyframes fade-up {
  from { transform: translateY(14px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* Feature video in the tour section */
.player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.player video { width: 100%; height: 100%; display: block; }
.player__play {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  border: 0; cursor: pointer; color: var(--white);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.05) 60%);
  font: 600 var(--t-md) var(--sans);
}
.player__play svg {
  width: clamp(4rem, 9vw, 6.5rem); height: auto; padding: 1.3rem 1.1rem 1.3rem 1.5rem;
  fill: var(--slate); background: var(--white); border-radius: 50%;
  transition: transform 160ms ease;
}
.player__play:hover svg, .player__play:focus-visible svg { transform: scale(1.06); }
.player__play span { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }
.player.is-playing .player__play { display: none; }

/* Intro */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: clamp(3.5rem, 9vw, 7.5rem);
  align-items: start;
}
.lede {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--t-lg);
  line-height: 1.22;
  margin: 0 0 1.5rem;
  max-width: 24ch;
}
.intro__text p { max-width: 34rem; margin: 0; color: var(--slate-soft); }
.facts { margin: 0; border-top: 1.5px solid var(--slate); }
.facts div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--stucco-deep);
}
.facts dt { color: var(--slate-soft); font-size: var(--t-sm); padding-top: 0.15rem; }
.facts dd { margin: 0; font-weight: 500; }

/* Second apartment: photo bleeds off the left edge, text on stucco */
.suite {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: 0 clamp(4rem, 8vw, 6.5rem);
  padding-inline-end: var(--gutter);
}
.suite__image { margin: 0; }
.suite__image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 70% center; }
.suite__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  max-width: 12ch;
}
.suite__text p { margin: 0 0 1.75rem; color: var(--slate-soft); max-width: 32rem; }
.suite__uses { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.suite__uses button {
  padding: 0.55rem 1rem;
  border: 1.5px solid var(--ponderosa);
  color: var(--ponderosa);
  background: linear-gradient(var(--ponderosa), var(--ponderosa)) left / 0% 100% no-repeat;
  font: 600 var(--t-sm) var(--sans);
  cursor: pointer;
  transition: background-size 320ms cubic-bezier(0.65, 0, 0.25, 1), color 200ms ease,
    transform 260ms cubic-bezier(0.2, 0.7, 0.15, 1), box-shadow 260ms ease;
}
.suite__uses button:hover, .suite__uses button:focus-visible, .suite__uses button.is-active {
  background-size: 100% 100%;
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(47, 61, 48, 0.25);
}
.suite__use-note {
  margin: 1.5rem 0 0;
  min-height: 3.2em;
  max-width: 32rem;
  font-family: var(--serif);
  font-size: var(--t-md);
  line-height: 1.35;
  color: var(--ponderosa);
  transition: opacity 220ms ease, transform 260ms ease;
}
.suite__use-note.is-swapping { opacity: 0; transform: translateY(6px); }

/* Roof-pitch slanted sections: the one bold move, echoing the house's shed roofs */
.slant {
  clip-path: polygon(0 var(--roof), 100% 0, 100% calc(100% - var(--roof)), 0 100%);
  padding-block: calc(var(--roof) + clamp(3rem, 7vw, 6rem));
}
.slant--reverse { clip-path: polygon(0 0, 100% var(--roof), 100% 100%, 0 calc(100% - var(--roof))); }

/* Tour */
.tour { background: var(--slate); color: var(--white); }
.tour .section-note { color: var(--haze); }

/* Setting */
.setting { padding-block: clamp(3.5rem, 8vw, 6rem) 0; }
.setting__image { margin: 0; }
.setting__image img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: center 55%; }
.setting__text { padding-block: 2.5rem 0; max-width: 76rem; }
.setting__text p { max-width: 38rem; margin: 0; color: var(--slate-soft); }

/* Gallery */
.gallery { padding-block: clamp(4rem, 9vw, 7rem); }
.gallery__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.6rem;
}
/* rows alternate: two wide photos, then three narrow */
.gallery__grid li { grid-column: span 2; }
.gallery__grid li:nth-child(5n+1), .gallery__grid li:nth-child(5n+2) { grid-column: span 3; }
.gallery__item {
  display: block; width: 100%; padding: 0; border: 0; background: var(--stucco-deep); cursor: zoom-in;
}
.gallery__item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: opacity 160ms ease; }
.gallery__item:hover img { opacity: 0.88; }

/* Floor plan viewer */
.plan__tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.plan__tabs button {
  padding: 0.6rem 1.05rem;
  border: 1.5px solid var(--slate);
  background: linear-gradient(var(--slate), var(--slate)) left / 0% 100% no-repeat;
  color: var(--slate);
  font: 600 var(--t-sm) var(--sans);
  cursor: pointer;
  transition: background-size 320ms cubic-bezier(0.65, 0, 0.25, 1), color 200ms ease;
}
.plan__tabs button:hover, .plan__tabs button[aria-selected="true"] { background-size: 100% 100%; color: var(--white); }
.plan__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3200 / 2285;
  width: min(100%, calc((94svh - 25rem) * 3200 / 2285));
  margin-inline: auto;
  background: #efeeea;
  border: 1px solid var(--stucco-deep);
}
.plan__frame img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  transform-origin: 0 0;
  transition: transform 900ms cubic-bezier(0.65, 0, 0.25, 1);
}
.plan__desc { margin: 1rem 0 0.4rem; font-family: var(--serif); font-size: var(--t-md); line-height: 1.35; max-width: 46rem; }
.plan__note { margin: 0; font-size: var(--t-sm); color: var(--slate-soft); max-width: 46rem; }

/* Floor plan pop-up */
.plan-modal {
  width: min(76rem, 94vw);
  max-width: none;
  max-height: 94svh;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 0;
  background: var(--stucco);
  color: var(--slate);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.45);
  overflow-y: auto;
}
.plan-modal::backdrop { background: rgba(20, 24, 26, 0.72); backdrop-filter: blur(3px); }
.plan-modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.plan-modal__head .section-note { margin-bottom: 1.25rem; }
.plan-modal__close {
  flex: none; padding: 0.55rem 1rem; cursor: pointer;
  border: 1.5px solid var(--slate); background: transparent; color: var(--slate);
  font: 600 var(--t-sm) var(--sans);
}
.plan-modal__close:hover { background: var(--slate); color: var(--white); }
.btn--dark { color: var(--slate); border-color: var(--slate); background-image: linear-gradient(var(--slate), var(--slate)); background-size: 0% 100%; background-repeat: no-repeat; cursor: pointer; font-family: var(--sans); }
.btn--dark:hover, .btn--dark:focus-visible { background-size: 100% 100%; color: var(--white); }
.plan-open { margin-top: 1.5rem; }
@media (prefers-reduced-motion: no-preference) {
  .plan-modal[open] { animation: modal-in 420ms cubic-bezier(0.2, 0.7, 0.15, 1); }
  .plan-modal[open]::backdrop { animation: fade 300ms ease; }
}
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Inside: drawing stands in for interior photos */
.inside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-block: 0 clamp(4rem, 9vw, 7rem);
}
.inside__text p { color: var(--slate-soft); margin: 0; max-width: 30rem; }
.inside__drawing { margin: 0; }
.inside__drawing img { width: 100%; height: auto; }
.inside__drawing figcaption { margin-top: 0.75rem; font-size: var(--t-sm); color: var(--slate-soft); }

/* Features */
.features { background: var(--ponderosa); color: var(--white); }
.features__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(2rem, 5vw, 5rem); }
.features__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 2.5rem; }
.features__list li { border-top: 1px solid rgba(255, 255, 255, 0.28); padding-top: 1rem; color: rgba(255, 255, 255, 0.86); }
.features__list strong { color: var(--white); font-weight: 600; }

/* Contact */
.contact { padding-block: clamp(4rem, 9vw, 7rem); }
.contact__lead { color: var(--slate-soft); margin: 0 0 2rem; }
.agent__name { font-family: var(--serif); font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.6rem); line-height: 1; margin: 0; letter-spacing: -0.02em; }
.agent__firm { margin: 0.6rem 0 1.5rem; font-size: var(--t-md); color: var(--slate-soft); }
.agent__lines { display: flex; flex-wrap: wrap; gap: 0.75rem 2.25rem; margin: 0; font-size: var(--t-md); }
.agent__lines a { text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
.agent__lines a:hover { color: var(--ponderosa); }

.zillow { margin-top: 2rem; }
.hero__zillow {
  align-self: center; margin-left: 0.5rem; color: var(--white); font-weight: 600; font-size: var(--t-sm);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em;
  text-decoration-color: rgba(255, 255, 255, 0.5); transition: text-decoration-color 200ms ease;
}
.hero__zillow:hover { text-decoration-color: var(--white); }

/* Footer */
.footer { background: var(--slate); color: rgba(255, 255, 255, 0.7); font-size: var(--t-sm); padding-block: 2.5rem calc(2.5rem + env(safe-area-inset-bottom, 0px)); }
.footer p { margin: 0 0 0.4rem; max-width: 46rem; }
.footer__credit { margin-top: 1.25rem !important; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.15); }
.footer__credit a { color: var(--white); text-underline-offset: 0.25em; text-decoration-color: rgba(255, 255, 255, 0.4); }
.footer__credit a:hover { text-decoration-color: var(--white); }

/* Lightbox */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh;
  width: 100vw; height: 100vh; margin: 0;
}
.lightbox::backdrop { background: rgba(14, 16, 17, 0.94); }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox img { max-width: min(92vw, 1800px); max-height: 80vh; object-fit: contain; }
.lightbox__caption { color: rgba(255, 255, 255, 0.8); margin: 1rem var(--gutter) 0; text-align: center; font-size: var(--t-sm); }
.lightbox__btn {
  position: absolute; background: transparent; color: var(--white); border: 1.5px solid rgba(255, 255, 255, 0.6);
  font: 600 var(--t-sm) var(--sans); padding: 0.6rem 1rem; cursor: pointer;
}
.lightbox__btn:hover { background: var(--white); color: var(--slate); }
.lightbox__close { top: calc(1rem + env(safe-area-inset-top, 0px)); right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* Narrow screens */
@media (max-width: 820px) {
  .intro, .features__inner, .inside { grid-template-columns: 1fr; }
  .suite { grid-template-columns: 1fr; padding-inline: var(--gutter); }
  .features__list { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery__grid li, .gallery__grid li:nth-child(n) { grid-column: span 1; }
  .gallery__grid li:nth-child(1) { grid-column: span 2; }
  .setting__image img { aspect-ratio: 4 / 3; }
  .facts div { grid-template-columns: 7rem 1fr; }
  .player__play { font-size: var(--t-base); }
  .lightbox__prev, .lightbox__next { top: auto; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); transform: none; }
}

/* Hero headline numbers */
.hero__stats { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin: -0.9rem 0 1.8rem; font-weight: 600; letter-spacing: 0.02em; }
.hero__stats span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.6; vertical-align: middle; margin-right: 1.4rem; margin-left: -0.2rem; }
@media (prefers-reduced-motion: no-preference) { .hero__stats { animation: fade-up 900ms cubic-bezier(0.2, 0.7, 0.15, 1) 1000ms both; } }

/* Location */
.location { padding-block: clamp(4rem, 9vw, 7rem) clamp(5rem, 10vw, 8rem); }
.location__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.location__map iframe { display: block; width: 100%; height: clamp(320px, 42vw, 520px); border: 0; background: var(--stucco-deep); filter: saturate(0.85); }
.location__maplink { display: inline-block; margin-top: 0.75rem; font-weight: 600; font-size: var(--t-sm); text-underline-offset: 0.25em; }
.location__head { font: 600 var(--t-sm) var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-soft); margin: 0 0 0.5rem; }
.location__head:not(:first-child) { margin-top: 2rem; }
.location__list { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--slate); }
.location__list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.65rem 0; border-bottom: 1px solid var(--stucco-deep); }
.location__list li span:last-child { font-weight: 500; text-align: right; white-space: nowrap; }
.location__list li small { display: block; color: var(--slate-soft); font-size: var(--t-sm); }
.location__note { margin: 0.6rem 0 0; font-size: var(--t-sm); color: var(--slate-soft); }

/* Running costs */
.costs { background: var(--slate); color: var(--white); }
.costs .section-note { color: var(--haze); }
.costs__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin: 0 0 2.5rem; }
.costs__stats div { border-top: 1px solid rgba(255, 255, 255, 0.28); padding-top: 1rem; }
.costs__stats dt { color: var(--haze); font-size: var(--t-sm); }
.costs__stats dd { margin: 0.3rem 0 0; font-family: var(--serif); font-size: clamp(2rem, 1.5rem + 2vw, 3rem); line-height: 1.05; }
.costs__stats dd span { font-family: var(--sans); font-size: var(--t-sm); color: rgba(255, 255, 255, 0.75); }
.costs__note { margin: 1.25rem 0 0; color: rgba(255, 255, 255, 0.72); font-size: var(--t-sm); max-width: 44rem; }

.chart { margin: 0; position: relative; background: rgba(255, 255, 255, 0.04); padding: clamp(1rem, 3vw, 1.75rem); }
.chart__title { font-weight: 600; margin-bottom: 1rem; }
.chart__title span { display: block; font-weight: 400; color: var(--haze); font-size: var(--t-sm); }
.chart__plot svg { display: block; overflow: visible; }
.chart__plot .bar { fill: #b8c9a8; transition: fill 120ms ease; }
.chart__plot .bar.is-hot { fill: var(--white); }
.chart__plot .hit { fill: transparent; cursor: crosshair; }
.chart__plot .hit:focus { outline: none; }
.chart__plot .grid { stroke: rgba(255, 255, 255, 0.12); stroke-width: 1; }
.chart__plot .avg { stroke: var(--haze); stroke-width: 1.5; stroke-dasharray: 5 4; }
.chart__plot text { fill: rgba(255, 255, 255, 0.7); font: 500 12px var(--sans); }
.chart__plot .avg-label { fill: var(--haze); font-weight: 600; }
.chart__tip {
  position: absolute; pointer-events: none; opacity: 0; transform: translate(-50%, -110%);
  background: var(--white); color: var(--slate); padding: 0.45rem 0.7rem; font-size: var(--t-sm); line-height: 1.3;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); white-space: nowrap; transition: opacity 120ms ease;
}
.chart__tip.is-on { opacity: 1; }
.chart__tip b { display: block; font-size: var(--t-base); }
.chart__table { margin-top: 1rem; font-size: var(--t-sm); color: rgba(255, 255, 255, 0.85); }
.chart__table summary { cursor: pointer; font-weight: 600; }
.chart__table table { margin-top: 0.75rem; border-collapse: collapse; columns: 2; }
.chart__table th, .chart__table td { text-align: left; padding: 0.25rem 1.5rem 0.25rem 0; font-variant-numeric: tabular-nums; }
.chart__table td:last-child { text-align: right; }

/* Showing form */
.contact__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.showing { display: grid; gap: 1rem; }
.showing__row--two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.showing label { display: grid; gap: 0.35rem; font-size: var(--t-sm); font-weight: 600; color: var(--slate); }
.showing__opt { font-weight: 400; color: var(--slate-soft); }
.showing input, .showing textarea {
  font: 400 var(--t-base) var(--sans); color: var(--slate); background: var(--white);
  border: 1.5px solid var(--stucco-deep); border-radius: 0; padding: 0.75rem 0.85rem; width: 100%;
}
.showing input:focus, .showing textarea:focus { border-color: var(--slate); outline: none; }
.showing textarea { resize: vertical; }
.showing__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.showing__send { justify-self: start; font-size: var(--t-base); background: var(--slate); color: var(--white); border-color: var(--slate); cursor: pointer; font-family: var(--sans); }
.showing__send:hover, .showing__send:focus-visible { background: var(--ponderosa); border-color: var(--ponderosa); }
.showing__send[disabled] { opacity: 0.6; cursor: progress; }
.showing__status { margin: 0; min-height: 1.6em; font-weight: 500; }
.showing__status.is-ok { color: var(--ponderosa); }
.showing__status.is-err { color: #9b2c1f; }
.showing.is-sent .showing__row, .showing.is-sent .showing__send { display: none; }
.agent__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

@media (max-width: 820px) {
  .location__grid, .contact__grid { grid-template-columns: 1fr; }
  .costs__stats { grid-template-columns: 1fr; gap: 1rem; }
  .showing__row--two { grid-template-columns: 1fr; }
}

/* ───────────── Motion ─────────────
   Everything below is opt-in: it only applies when JS is running and the visitor
   has not asked for reduced motion. Without either, the page is fully static. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 900ms cubic-bezier(0.2, 0.7, 0.15, 1), transform 1000ms cubic-bezier(0.2, 0.7, 0.15, 1);
    transition-delay: var(--d, 0ms);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  /* photos open like a shutter sliding along the roofline */
  .js [data-reveal="wipe"] {
    opacity: 1;
    transform: none;
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    transition: clip-path 1400ms cubic-bezier(0.65, 0, 0.25, 1);
    transition-delay: var(--d, 0ms);
  }
  .js [data-reveal="wipe"].is-in { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
  .js [data-reveal="wipe-r"] {
    opacity: 1;
    transform: none;
    clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
    transition: clip-path 1400ms cubic-bezier(0.65, 0, 0.25, 1);
  }
  .js [data-reveal="wipe-r"].is-in { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }

  /* the elevation drafts itself left to right */
  .js [data-reveal="draft"] {
    opacity: 1;
    transform: none;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 2600ms cubic-bezier(0.45, 0, 0.2, 1);
  }
  .js [data-reveal="draft"].is-in { clip-path: inset(0 0 0 0); }

  /* slanted sections start flat and pitch like a roof as they arrive */
  .js .slant {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transition: clip-path 1300ms cubic-bezier(0.65, 0, 0.25, 1);
  }
  .js .slant.is-in { clip-path: polygon(0 var(--roof), 100% 0, 100% calc(100% - var(--roof)), 0 100%); }
  .js .slant--reverse.is-in { clip-path: polygon(0 0, 100% var(--roof), 100% 100%, 0 calc(100% - var(--roof))); }

  /* rules draw across */
  .js .facts { border-top-color: transparent; position: relative; }
  .js .facts::before {
    content: ""; position: absolute; left: 0; right: 0; top: -1.5px; height: 1.5px; background: var(--slate);
    transform: scaleX(0); transform-origin: left; transition: transform 1100ms cubic-bezier(0.65, 0, 0.25, 1);
  }
  .js .facts.is-in::before { transform: scaleX(1); }
  .js .features__list li { border-top-color: transparent; position: relative; }
  .js .features__list li::before {
    content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: rgba(255, 255, 255, 0.4);
    transform: scaleX(0); transform-origin: left; transition: transform 900ms cubic-bezier(0.65, 0, 0.25, 1);
    transition-delay: var(--d, 0ms);
  }
  .js .features__list li.is-in::before { transform: scaleX(1); }

  /* agent name rises word by word, like the hero address */
  .js .agent__name .w { display: inline-block; opacity: 0; transform: translateY(0.5em); filter: blur(5px);
    transition: opacity 900ms ease, transform 1000ms cubic-bezier(0.2, 0.7, 0.15, 1), filter 900ms ease;
    transition-delay: calc(var(--i, 0) * 140ms); }
  .js .agent__name.is-in .w { opacity: 1; transform: none; filter: none; }

  /* scroll-linked drift on the big photos */
  [data-parallax] { overflow: hidden; }
  [data-parallax] img { transform: translate3d(0, var(--py, 0px), 0) scale(1.14); will-change: transform; }

  /* hero settles back as you scroll away */
  .hero__body { transform: translate3d(0, var(--hy, 0px), 0); opacity: var(--ho, 1); will-change: transform, opacity; }
  .hero__video { transform: scale(var(--hs, 1)); }

  /* gallery: photos lift slightly and zoom inside their frame on hover */
  .gallery__item { overflow: hidden; }
  .gallery__item img { transition: transform 700ms cubic-bezier(0.2, 0.7, 0.15, 1), opacity 160ms ease; }
  .gallery__item:hover img, .gallery__item:focus-visible img { transform: scale(1.05); opacity: 1; }

  /* buttons fill from the left */
  .btn { background-size: 0% 100%; background-repeat: no-repeat; background-position: left;
    transition: background-size 380ms cubic-bezier(0.65, 0, 0.25, 1), color 200ms ease, border-color 200ms ease; }
  .btn--ghost { background-image: linear-gradient(var(--white), var(--white)); }
  .btn--ghost:hover { background-color: transparent; background-size: 100% 100%; }

  /* play button breathes until pressed */
  .player__play svg { animation: breathe 2.6s ease-in-out infinite; }
  .player__play:hover svg { animation: none; }

  /* lightbox photo eases in */
  .lightbox[open] img { animation: lb-in 450ms cubic-bezier(0.2, 0.7, 0.15, 1); }
}
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45); }
  50% { box-shadow: 0 0 0 18px rgba(255, 255, 255, 0); }
}
@keyframes lb-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: none; }
}
