/* spacePOVtoronto — fluid, consistent, magazine-style. Black and white only. */

:root {
  --ink: #000000;
  --paper: #ffffff;
  --graphite: #333333;
  --ash: #555555;
  --hairline: #dddddd;
  --bone: #f5f3ef;
  --display: "Bodoni Moda", "Playfair Display", Didot, Georgia, serif;
  --serif: "Playfair Display", "Bodoni Moda", Georgia, serif;
  --sans: Inter, Helvetica, Arial, sans-serif;

  --measure: 38rem;
  --page: 72rem;
  --gutter: clamp(1.125rem, 0.7rem + 2.2vw, 2rem);
  --section-space: clamp(3rem, 1.8rem + 5vw, 7rem);
  --block-space: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  --item-gap: clamp(1rem, 0.65rem + 1.4vw, 1.5rem);
  --grid-gap: clamp(0.75rem, 0.45rem + 1.2vw, 1.75rem);
  --spread-space: clamp(2.5rem, 1.5rem + 4vw, 6rem);
  --header: clamp(3.5rem, 3.15rem + 1.2vw, 4.25rem);

  --text-body: clamp(0.9375rem, 0.91rem + 0.14vw, 0.9875rem);
  --text-small: clamp(0.75rem, 0.72rem + 0.12vw, 0.8125rem);
  --text-kicker: 0.6875rem;
  --track-kicker: 0.19em;
  --text-h1: clamp(2rem, 1.05rem + 4.5vw, 5rem);
  --text-h2: clamp(1.6rem, 1.15rem + 1.7vw, 3rem);
  --text-h3: clamp(1.15rem, 1rem + 0.55vw, 1.5rem);
  --text-lede: clamp(1.0625rem, 0.95rem + 0.55vw, 1.45rem);
  --text-price: clamp(2rem, 1.45rem + 1.5vw, 2.85rem);
  --text-masthead: clamp(1.05rem, 0.72rem + 1.7vw, 1.55rem);
  --text-masthead-footer: clamp(1.35rem, 0.85rem + 2.4vw, 2.4rem);
  --text-nav: 0.75rem;

  --rule: 1px solid var(--ink);
  --rule-light: 1px solid var(--hairline);
  --btn-pad: 0.8rem 1.15rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 0.75rem);
  overflow-x: clip;
  max-width: 100%;
}

html:focus-within { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--text-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  max-width: 100%;
}

body.nav-open,
body.lightbox-open { overflow: hidden; }

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover { color: var(--ink); }

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

::selection {
  background: var(--ink);
  color: var(--paper);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -3rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.85rem;
  z-index: 100;
}

.skip:focus { top: 0.75rem; }

.wrap {
  width: min(100% - (2 * var(--gutter)), var(--page));
  margin-inline: auto;
}

/* Type helpers */
.kicker,
.folio,
.about-meta dt,
.contact-links span,
.field label,
.field-label,
.tag {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: var(--track-kicker);
  text-transform: uppercase;
}

.kicker,
.folio {
  font-size: var(--text-kicker);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ash);
  margin: 0 0 1rem;
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--text-h2);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  text-wrap: balance;
}

.section-title-sm {
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 2rem);
}

.lede {
  hyphens: manual;
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--text-lede);
  line-height: 1.4;
  color: var(--graphite);
  margin: 0 0 1.25rem;
  max-width: 38rem;
  text-wrap: pretty;
}

.prose {
  color: var(--graphite);
  max-width: var(--measure);
  text-wrap: pretty;
}

.prose p { margin: 0 0 1rem; }
.prose p:last-child { margin-bottom: 0; }

.masthead {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  max-width: 100%;
}

.masthead .pov {
  font-weight: 800;
  font-style: italic;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: var(--rule-light);
  height: var(--header);
}

.header-inner {
  width: min(100% - (2 * var(--gutter)), var(--page));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.site-header .masthead {
  font-size: var(--text-masthead);
  flex: 0 1 auto;
  min-width: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.35rem 0 0.35rem 0.5rem;
  cursor: pointer;
  font-family: var(--sans);
  font-size: var(--text-kicker);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  flex: 0 0 auto;
}

.nav-toggle-bars {
  display: block;
  width: 1.15rem;
  height: 1px;
  background: var(--ink);
  margin: 0.35rem 0 0.15rem auto;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  right: 0;
  width: 1.15rem;
  height: 1px;
  background: var(--ink);
}

.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav ul {
  display: flex;
  gap: clamp(0.7rem, 0.4rem + 1vw, 1.35rem);
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.site-nav a {
  font-size: var(--text-nav);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--graphite);
}

.site-nav a:hover,
.site-nav a:focus-visible { color: var(--ink); }

.site-nav a.nav-cta {
  color: var(--paper);
  background: var(--ink);
  padding: 0.55rem 0.85rem;
  letter-spacing: 0.14em;
  border: 1px solid var(--ink);
}

.site-nav a.nav-cta:hover {
  color: var(--paper);
  opacity: 0.88;
}

@media (max-width: 1279px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: var(--rule);
    padding: 0.35rem var(--gutter) 1.25rem;
    max-height: calc(100dvh - var(--header));
    overflow-y: auto;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .site-nav li {
    width: 100%;
    border-top: var(--rule-light);
  }
  .site-nav a {
    display: block;
    padding: 0.85rem 0;
  }
  .site-nav a.nav-cta {
    margin-top: 0.75rem;
    text-align: center;
    padding: var(--btn-pad);
  }
}

/* Hero: left-aligned type on a 12-column measure, then a full-bleed plate */
.hero { padding: clamp(2.25rem, 1.2rem + 4.5vw, 6rem) 0 0; }

.hero-copy {
  width: min(100% - (2 * var(--gutter)), var(--page));
  margin-inline: auto;
  padding-bottom: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  align-items: end;
}
.hero-copy .kicker { grid-column: 1 / -1; }

.hero h1 {
  grid-column: 1 / span 8;
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--text-h1);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 16ch;
  text-wrap: balance;
}

.hero .standfirst {
  grid-column: 9 / -1;
  font-size: var(--text-body);
  line-height: 1.55;
  color: var(--graphite);
  margin: 0;
  padding-bottom: 0.35rem;
  text-wrap: pretty;
}

@media (max-width: 899px) {
  .hero h1, .hero .standfirst { grid-column: 1 / -1; }
  .hero .standfirst { margin-top: 1.25rem; max-width: 34rem; }
}

/* Frames: fixed ratios, cover, no stretch */
.frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--bone);
}

.r-hero, .r-pano { aspect-ratio: 21 / 9; }
.r-3x2 { aspect-ratio: 3 / 2; }
.r-4x5 { aspect-ratio: 4 / 5; }
.r-sq { aspect-ratio: 1; }
.hero-plate .r-hero { max-height: 78vh; }
@media (max-width: 699px) {
  .hero-plate .r-hero { aspect-ratio: 1; max-height: none; }
}

.frame picture,
.frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.frame img {
  object-fit: cover;
  object-position: center;
  max-width: none;
}

.hero-plate,
.plate { margin: 0; min-width: 0; }

/* Captions: folio number, caption, small label */
.hero-plate figcaption,
.plate figcaption {
  margin: 0.65rem 0 0;
  display: flex;
  gap: 0 0.75rem;
  align-items: baseline;
  font-size: var(--text-small);
  line-height: 1.4;
  color: var(--graphite);
}
.hero-plate figcaption {
  width: min(100% - (2 * var(--gutter)), var(--page));
  margin-inline: auto;
}
.fn {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink);
  flex: 0 0 auto;
  min-width: 1.4em;
}
.cap { flex: 1 1 auto; min-width: 0; }
.ai {
  flex: 0 0 auto;
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
  white-space: nowrap;
}

.tag {
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 0.22rem 0.4rem;
  white-space: nowrap;
  line-height: 1;
  flex: 0 0 auto;
}

/* Sections */
.section {
  padding: var(--section-space) 0;
  border-top: var(--rule-light);
}

.section-head {
  width: min(100% - (2 * var(--gutter)), var(--page));
  margin: 0 auto var(--block-space);
}

.section-head .folio { margin: 0 0 0.85rem; }

.split-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  align-items: end;
  margin-bottom: clamp(2rem, 1.2rem + 3vw, 4rem);
}
.split-head > :first-child { grid-column: 1 / span 5; }
.split-head > .prose { grid-column: 7 / -1; }
.split-head .section-title { margin: 0; }
.prose .small, .small { font-size: var(--text-small); color: var(--ash); }
@media (max-width: 899px) {
  .split-head > :first-child, .split-head > .prose { grid-column: 1 / -1; }
  .split-head > .prose { margin-top: 1.25rem; }
}

/* Work: magazine spreads on a 12-column grid */
.spread {
  width: min(100% - (2 * var(--gutter)), var(--page));
  margin: 0 auto var(--spread-space);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--grid-gap);
  align-items: start;
}
.c8 { grid-column: span 8; }
.c4 { grid-column: span 4; }
.s-c .c4 { margin-top: clamp(2rem, 1rem + 5vw, 6rem); }

.s-bleed { width: 100%; }
.s-bleed .bleed { grid-column: 1 / -1; }
.s-bleed figcaption {
  width: min(100% - (2 * var(--gutter)), var(--page));
  margin-inline: auto;
}

.spread-head {
  width: min(100% - (2 * var(--gutter)), var(--page));
  margin: 0 auto 1.25rem;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  align-items: baseline;
  border-top: var(--rule);
  padding-top: 0.85rem;
}
.spread-head .kicker { grid-column: 1 / span 4; margin: 0; color: var(--ink); }
.spread-head p:last-child {
  grid-column: 5 / span 6;
  margin: 0;
  color: var(--graphite);
  font-size: var(--text-small);
  text-wrap: pretty;
}

.plate button.plate-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  color: inherit;
  font: inherit;
  text-align: left;
  border-radius: 0;
}
.plate-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.work-note {
  width: min(100% - (2 * var(--gutter)), var(--page));
  margin: 0 auto;
  font-size: var(--text-small);
  color: var(--ash);
  text-wrap: pretty;
}

@media (max-width: 699px) {
  .spread { row-gap: calc(var(--grid-gap) * 2); }
  .c8, .c4, .spread-head .kicker, .spread-head p:last-child { grid-column: 1 / -1; }
  .s-c .c4 { margin-top: 0; }
  .s-b .c4 { grid-column: span 6; }
  .s-b .c4:first-child { grid-column: 1 / -1; }
  .s-b .c4:not(:first-child) .ai { display: none; }
  .spread-head p:last-child { margin-top: 0.5rem; }
}

/* Services */
.packages {
  width: min(100% - (2 * var(--gutter)), var(--page));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: var(--rule);
  border-bottom: var(--rule);
  min-width: 0;
}

.package {
  padding: clamp(1.25rem, 1rem + 1vw, 2rem) clamp(0.9rem, 0.6rem + 1vw, 1.5rem) clamp(1.5rem, 1.1rem + 1vw, 2rem);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.package + .package { border-left: var(--rule-light); }

.package .who {
  font-size: var(--text-small);
  color: var(--ash);
  margin: 0 0 1.1rem;
  min-height: 4.25em;
  text-wrap: pretty;
}

.package h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--text-h3);
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.package .price {
  font-family: var(--display);
  font-size: var(--text-price);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 0.2rem;
  font-variant-numeric: tabular-nums;
}

.package .price-note {
  font-size: var(--text-small);
  color: var(--ash);
  margin: 0 0 1.25rem;
}

.package ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9em;
  color: var(--graphite);
  flex: 1;
}

.package li {
  padding: 0.45rem 0;
  border-top: var(--rule-light);
}

.package li span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 0.1rem;
}

.package.featured {
  background: var(--ink);
  color: var(--paper);
}

.package.featured h3,
.package.featured .price { color: var(--paper); }

.package.featured .who,
.package.featured .price-note,
.package.featured li span { color: rgba(255, 255, 255, 0.62); }

.package.featured li {
  border-top-color: rgba(255, 255, 255, 0.2);
  color: var(--paper);
}

.package.featured + .package { border-left-color: var(--ink); }

.price-legal {
  width: min(100% - (2 * var(--gutter)), var(--page));
  margin: 1rem auto 0;
  font-size: var(--text-small);
  color: var(--ash);
  text-wrap: pretty;
}

.subtables {
  width: min(100% - (2 * var(--gutter)), var(--page));
  margin: var(--section-space) auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--block-space) clamp(1.5rem, 1rem + 2vw, 2.5rem);
  min-width: 0;
}

.subtables h3,
.addons h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--text-h3);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.subtables > *,
.addon-grid > * { min-width: 0; max-width: 100%; }

.plain-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9em;
  min-width: 0;
}

.plain-table th,
.plain-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.75rem 0.7rem 0;
  border-top: var(--rule-light);
  color: var(--graphite);
}

.plain-table th {
  font-weight: 500;
  color: var(--ink);
  padding-right: 1rem;
}

.plain-table td.num,
.plain-table th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  white-space: nowrap;
}

.addons {
  width: min(100% - (2 * var(--gutter)), var(--page));
  margin: var(--section-space) auto 0;
}

.addon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(1.5rem, 1rem + 2vw, 2.5rem);
  min-width: 0;
}

.fineprint {
  margin: 1.25rem 0 0;
  font-size: var(--text-small);
  color: var(--ash);
  max-width: 46rem;
  text-wrap: pretty;
}

@media (max-width: 899px) {
  .packages {
    grid-template-columns: 1fr;
    border: 0;
    border-top: var(--rule);
  }
  .package + .package,
  .package.featured + .package {
    border-left: 0;
    border-top: var(--rule-light);
  }
  .package .who { min-height: 0; }
  .subtables,
  .addon-grid {
    grid-template-columns: 1fr;
    gap: var(--block-space);
  }
}

/* How it works: a ruled index, not a feature row */
.steps {
  width: min(100% - (2 * var(--gutter)), var(--page));
  margin: 0 auto;
  padding: 0;
  list-style: none;
  border-bottom: var(--rule-light);
}

.step,
.pillar {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  align-items: baseline;
  padding: 1.1rem 0 1.2rem;
  border-top: var(--rule-light);
  min-width: 0;
}
.step:first-child, .pillar:first-child { border-top: var(--rule); }

.step .num {
  grid-column: 1 / span 1;
  font-family: var(--serif);
  font-style: italic;
  color: var(--ash);
}

.step h3,
.pillar h3 {
  grid-column: 2 / span 3;
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--text-h3);
  margin: 0;
  letter-spacing: -0.01em;
}
.pillar h3 { grid-column: 1 / span 4; }

.step p,
.pillar p {
  grid-column: 6 / span 6;
  margin: 0;
  color: var(--graphite);
  text-wrap: pretty;
}

/* For agents */
.pillars {
  width: min(100% - (2 * var(--gutter)), var(--page));
  margin: 0 auto;
  border-bottom: var(--rule-light);
}

.tour-panel h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--text-h3);
  margin: 0 0 0.6rem;
}

.tour-panel {
  width: min(100% - (2 * var(--gutter)), var(--page));
  margin: var(--block-space) auto 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  align-items: end;
  min-width: 0;
}
.tour-panel > div { grid-column: 1 / span 7; }
.tour-panel > p { grid-column: 9 / -1; }

.tour-panel p {
  margin: 0;
  color: var(--graphite);
  text-wrap: pretty;
}

.text-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--text-h3);
}

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: var(--text-nav);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: var(--btn-pad);
  border: 1px solid var(--ink);
  cursor: pointer;
  font-family: var(--sans);
  border-radius: 0;
  line-height: 1.2;
}

.btn:hover { color: var(--paper); }

@media (max-width: 799px) {
  .step .num { grid-column: 1 / span 2; }
  .step h3 { grid-column: 3 / -1; }
  .pillar h3 { grid-column: 1 / -1; margin-bottom: 0.4rem; }
  .step p { grid-column: 3 / -1; margin-top: 0.35rem; }
  .pillar p { grid-column: 1 / -1; }
  .tour-panel > div, .tour-panel > p { grid-column: 1 / -1; }
  .tour-panel > p { margin-top: 1rem; }
}

/* About */
.about-grid {
  width: min(100% - (2 * var(--gutter)), var(--page));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--block-space) clamp(1.5rem, 1rem + 2vw, 3rem);
  align-items: start;
  min-width: 0;
}

.pullquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.9rem);
  line-height: 1.35;
  margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.about-meta dt {
  font-size: var(--text-kicker);
  color: var(--ash);
  margin: 1.25rem 0 0.3rem;
}

.about-meta dd {
  margin: 0;
  color: var(--graphite);
  text-wrap: pretty;
  overflow-wrap: break-word;
}

@media (max-width: 799px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* Contact */
.contact-grid {
  width: min(100% - (2 * var(--gutter)), var(--page));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: var(--block-space) clamp(1.5rem, 1rem + 2vw, 3rem);
  align-items: start;
  min-width: 0;
}

.contact-aside p {
  color: var(--graphite);
  text-wrap: pretty;
}

.contact-links {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.contact-links li {
  border-top: var(--rule-light);
  padding: 0.7rem 0;
  overflow-wrap: break-word;
}

.contact-links span {
  display: block;
  font-size: var(--text-kicker);
  color: var(--ash);
  margin-bottom: 0.15rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  min-width: 0;
}

.field {
  margin: 0 0 1rem;
  min-width: 0;
}

.field label,
.field-label {
  display: block;
  font-size: var(--text-kicker);
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea {
  width: 100%;
  max-width: 100%;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.55rem 0;
  color: var(--ink);
  appearance: none;
  box-shadow: none;
}

.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 10px) 50%, calc(100% - 5px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 1.4rem;
}

.field textarea {
  min-height: 7rem;
  resize: vertical;
  border: 1px solid var(--ink);
  padding: 0.7rem;
  margin-top: 0.2rem;
}

.field input:not([type="checkbox"]):not([type="radio"]):focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background-color: var(--bone);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 1rem 0 0;
  font-size: 0.9em;
  color: var(--graphite);
  text-wrap: pretty;
}

.form-status.is-success,
.form-status.is-error { color: var(--ink); }
.form-status.is-pending { color: var(--ash); }

.form-note {
  margin: 1rem 0 0;
  font-size: var(--text-small);
  color: var(--ash);
  text-wrap: pretty;
}

@media (max-width: 799px) {
  .contact-grid,
  .form-row { grid-template-columns: 1fr; }
  .form-row { gap: 0; }
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: var(--block-space) 0 2rem;
}

.footer-inner {
  width: min(100% - (2 * var(--gutter)), var(--page));
  margin-inline: auto;
}

.site-footer .masthead {
  color: var(--paper);
  font-size: var(--text-masthead-footer);
  display: inline-block;
  margin-bottom: 1.5rem;
  max-width: 100%;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem var(--block-space);
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.25rem;
  font-size: var(--text-small);
  color: rgba(255, 255, 255, 0.65);
}

.footer-row p {
  margin: 0;
  max-width: 36rem;
}

.footer-row a {
  color: var(--paper);
  text-decoration: none;
}

.footer-row a:hover { text-decoration: underline; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 80;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: var(--gutter);
}

.lightbox[hidden] { display: none; }

.lightbox-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--paper);
  gap: 1rem;
}

.lightbox-bar .tag {
  color: var(--paper);
  border-color: var(--paper);
}

.lightbox-close {
  background: none;
  border: 0;
  color: var(--paper);
  font-family: var(--sans);
  font-size: var(--text-kicker);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.5rem;
}

.lightbox-stage {
  display: grid;
  place-items: center;
  min-height: 0;
}

.lightbox-stage img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 8rem);
  object-fit: contain;
}

.lightbox figcaption {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-small);
  margin-top: 0.75rem;
  text-align: center;
  text-wrap: pretty;
}

@media (min-width: 1100px) {
  .hero { padding-top: clamp(1.75rem, 3.5vh, 3.25rem); }
  .hero-copy { padding-bottom: clamp(1.15rem, 2.5vh, 2rem); }
  .hero-plate .r-hero { max-height: 72vh; }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding-top: 0.8rem; }
  .hero-copy { padding-bottom: 0.65rem; }
  .hero h1 {
    font-size: clamp(1.5rem, 8vh, 2.3rem);
    margin-bottom: 0.5rem;
    max-width: 28ch;
    grid-column: 1 / span 7;
  }
  .hero .standfirst { font-size: 0.9rem; grid-column: 8 / -1; margin-top: 0; }
  .hero-plate .r-hero { max-height: 52vh; aspect-ratio: 21 / 9; }
  .site-nav.is-open {
    max-height: calc(100dvh - var(--header));
    overflow-y: auto;
  }
}

.fineprint-lead { margin-top: 0; margin-bottom: 1rem; }

.opt {
  text-transform: none;
  letter-spacing: 0;
  color: var(--ash);
  font-weight: 400;
}

.term-note {
  display: block;
  font-weight: 400;
  color: var(--ash);
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.75em;
}

@media (max-width: 399px) {
  .plain-table td.num,
  .plain-table th.num { white-space: normal; }
  .plain-table th { white-space: normal; }
}

/* ------------------------------------------------------------------
   view.house additions, layered on the existing magazine site.
   Used on the home #viewhouse section and on /l, /a, and /capture.
   ------------------------------------------------------------------ */

:root {
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --safe-t: env(safe-area-inset-top);
  --safe-b: env(safe-area-inset-bottom);
}

.vh-wordmark {
  display: inline-block;
  height: 2.35rem;
  width: auto;
}
.vh-wordmark img {
  display: block;
  height: 100%;
  width: auto;
}

.vh-items {
  width: min(100% - (2 * var(--gutter)), var(--page));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: var(--rule);
  border-bottom: var(--rule);
}
.vh-item {
  padding: clamp(1.25rem, 1rem + 1vw, 2rem) clamp(0.9rem, 0.6rem + 1vw, 1.5rem);
  min-width: 0;
}
.vh-item + .vh-item { border-left: var(--rule-light); }
@media (min-width: 800px) {
  .vh-item:nth-child(3n + 1) { border-left: 0; }
  .vh-item:nth-child(n + 4) { border-top: var(--rule-light); }
}
.vh-item .kicker { margin: 0 0 0.85rem; }
.vh-item h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--text-h3);
  margin: 0 0 0.7rem;
  letter-spacing: -0.02em;
}
.vh-item p {
  margin: 0;
  font-size: var(--text-small);
  color: var(--graphite);
  text-wrap: pretty;
}
@media (max-width: 799px) {
  .vh-items { grid-template-columns: 1fr; }
  .vh-item + .vh-item { border-left: 0; border-top: var(--rule-light); }
}

.demo-links {
  width: min(100% - (2 * var(--gutter)), var(--page));
  margin: var(--block-space) auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--grid-gap);
}
.demo-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-top: var(--rule);
  padding-top: 0.9rem;
  min-width: 0;
}
.demo-card:hover .demo-card-title { opacity: 0.55; }
.demo-card .frame {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bone);
  margin: 0 0 0.75rem;
}
.demo-card .frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}
.demo-card .badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 1;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.25rem 0.45rem;
}
.demo-card .kicker { margin: 0 0 0.3rem; }
.demo-card-title {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: var(--text-h3);
  margin: 0;
  letter-spacing: -0.02em;
}
.demo-card p.where {
  margin: 0.3rem 0 0;
  font-size: var(--text-small);
  color: var(--ash);
}
@media (max-width: 899px) {
  .demo-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 499px) {
  .demo-links { grid-template-columns: 1fr; }
}

.process-note {
  width: min(100% - (2 * var(--gutter)), var(--page));
  margin: var(--block-space) auto 0;
  padding-top: var(--block-space);
  border-top: var(--rule-light);
  color: var(--graphite);
}
.process-note p { margin: 0; max-width: var(--measure); text-wrap: pretty; }

/* Listing and agent pages */
.page-wrap {
  width: min(100% - (2 * var(--gutter)), var(--page));
  margin: 0 auto;
  padding: clamp(2.25rem, 1.2rem + 4.5vw, 5rem) 0 var(--section-space);
}
.listing-hero h1,
.agent-head h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: var(--text-h1);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  max-width: 16ch;
}
.listing-hero .lede,
.agent-head .lede {
  font-size: var(--text-lede);
  line-height: 1.45;
  color: var(--graphite);
  margin: 0;
  max-width: var(--measure);
  text-wrap: pretty;
}
.listing-hero .note,
.agent-head .note,
.listing-section .note {
  font-size: var(--text-small);
  color: var(--ash);
  margin: 0.85rem 0 0;
  max-width: var(--measure);
}
.tour-embed {
  margin: 1.75rem 0 0;
  aspect-ratio: 16 / 10;
  background: #111;
  overflow: hidden;
  position: relative;
}
.tour-embed iframe,
.tour-embed img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.tour-embed img { filter: grayscale(1); }
@media (max-width: 699px) {
  .tour-embed { aspect-ratio: 3 / 4; }
}

.disclaimer {
  margin: 1.5rem 0 0;
  padding: 0.9rem 0;
  border-top: var(--rule);
  border-bottom: var(--rule);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}
.credit {
  margin: 1rem 0 0;
  font-size: var(--text-small);
  color: var(--ash);
  max-width: 44rem;
  line-height: 1.5;
}

.listing-section {
  margin-top: var(--section-space);
  padding-top: var(--block-space);
  border-top: var(--rule-light);
}
.listing-section h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: var(--text-h2);
  margin: 0.4rem 0 0.7rem;
  letter-spacing: -0.03em;
}

.reel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}
@media (min-width: 700px) {
  .reel-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .reel-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
.reel {
  aspect-ratio: 9 / 16;
  border: var(--rule);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0.6rem;
  background: var(--paper);
}
.reel .play {
  width: 1.8rem;
  height: 1.8rem;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 0.5rem;
}
.reel .play span {
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent var(--ink);
  margin-left: 2px;
}
.reel p {
  margin: 0;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

.agent-head {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  gap: var(--grid-gap) clamp(1.5rem, 1rem + 2vw, 3rem);
  align-items: end;
  padding-bottom: var(--block-space);
}
.agent-head .portrait {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bone);
}
.agent-head .portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  display: block;
}
.agent-head .brokerage {
  margin: 0.35rem 0 0;
  font-size: var(--text-body);
  color: var(--graphite);
}
@media (max-width: 699px) {
  .agent-head { grid-template-columns: 1fr; }
  .agent-head .portrait { max-width: 16rem; }
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grid-gap);
}
@media (max-width: 599px) {
  .card-grid { grid-template-columns: 1fr; }
}
.listing-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.listing-card .frame {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bone);
  margin: 0 0 0.75rem;
}
.listing-card .frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: transform 0.5s var(--ease);
}
.listing-card:hover .frame img { transform: scale(1.03); }
.listing-card.locked .frame img { filter: grayscale(1) brightness(0.45); }
.listing-card .badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 1;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.25rem 0.45rem;
}
.listing-card .lock {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--paper);
  z-index: 1;
}
.listing-card .lock svg { width: 1.5rem; height: 1.5rem; }
.listing-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: var(--text-h3);
  margin: 0;
  letter-spacing: -0.02em;
}
.listing-card .where {
  margin: 0.25rem 0 0;
  font-size: var(--text-small);
  color: var(--ash);
}
.listing-card .kicker { margin: 0 0 0.25rem; }

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: var(--rule);
  border-bottom: var(--rule);
  margin-top: 0.5rem;
}
.privacy-grid article {
  padding: 1.25rem 1.1rem;
  min-width: 0;
}
.privacy-grid article + article { border-left: var(--rule-light); }
.privacy-grid h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--text-h3);
  margin: 0 0 0.6rem;
}
.privacy-grid p {
  margin: 0;
  font-size: var(--text-small);
  color: var(--graphite);
}
@media (max-width: 699px) {
  .privacy-grid { grid-template-columns: 1fr; }
  .privacy-grid article + article { border-left: 0; border-top: var(--rule-light); }
}

/* The hidden attribute must beat later display rules (gate, buttons). */
[hidden] { display: none !important; }

/* Password gate */
.gate {
  min-height: 100svh;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  padding: calc(2rem + var(--safe-t)) var(--gutter) calc(2rem + var(--safe-b));
}
.gate-card {
  width: min(32rem, 100%);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 1rem;
}
.gate .vh-wordmark { height: 2.2rem; }
.gate h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2rem, 1.2rem + 4vw, 3.4rem);
  letter-spacing: -0.03em;
  margin: 0;
}
.gate p { margin: 0; max-width: 28rem; color: rgba(255,255,255,0.8); }
.gate form {
  display: grid;
  gap: 0.8rem;
  width: min(22rem, 100%);
  margin-top: 0.5rem;
}
.gate label {
  font-family: var(--sans);
  font-size: var(--text-kicker);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.gate input {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.7);
  color: var(--paper);
  text-align: center;
  padding: 0.85rem 0;
  letter-spacing: 0.16em;
  font-size: 1rem;
  font-family: inherit;
}
.gate input:focus { outline: none; border-bottom-color: var(--paper); }
.gate .btn {
  width: 100%;
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.gate .hint {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.7);
}
.gate .err { color: #fff; font-size: 0.8rem; }
.gate a { color: var(--paper); }
body.gated { background: var(--ink); }
html.await-gate body { background: var(--ink); }
html.await-gate [data-viewing] { display: none !important; }
html.await-gate [data-gate] { display: grid !important; }

/* Capture guide — same next/loading style as the tour, on a black stage */
body.capture-page {
  background: #000;
  color: var(--paper);
}
.capture-root {
  min-height: 100svh;
  background: #000;
  color: var(--paper);
  position: relative;
}
#loader {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}
#loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
  width: min(78vw, 360px);
}
.mono {
  width: 84px;
  height: 84px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  animation: breathe 2.4s var(--ease) infinite;
}
.mono span {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.7rem;
  font-style: italic;
  line-height: 1;
}
@keyframes breathe { 50% { transform: scale(1.06); } }
.loader-inner .vh-wordmark { height: 2.2rem; }
.bar { width: 100%; height: 1px; background: #ddd; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--ink); }
.pct {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #333;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.loader-foot {
  position: absolute;
  bottom: calc(18px + var(--safe-b));
  left: 0; right: 0;
  text-align: center;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #777;
  margin: 0;
}
.capture-stage {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(1.25rem + var(--safe-t)) var(--gutter) calc(6rem + var(--safe-b));
}
.capture-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(255,255,255,0.15);
  z-index: 20;
}
.capture-progress > i {
  display: block;
  height: 100%;
  background: var(--paper);
  width: 0;
  transition: width 0.35s var(--ease);
}
.capture-chrome {
  position: fixed;
  top: calc(14px + var(--safe-t));
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 15;
}
.capture-chrome .vh-wordmark { height: 1.55rem; }
.capture-chrome a {
  color: var(--paper);
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.step-card {
  width: min(52rem, 100%);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: clamp(0.8rem, 2vh, 1.4rem);
}
.step-card .ico {
  width: 3.2rem;
  height: 3.2rem;
  color: var(--paper);
}
.step-card .ico svg { width: 100%; height: 100%; }
.step-card h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2.1rem, 1.2rem + 4vw, 4.4rem);
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--paper);
}
.step-card .body {
  margin: 0;
  max-width: 36rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.5;
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.125rem);
}
.step-card .kicker { color: rgba(255,255,255,0.7); margin: 0; }
.step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 0.4rem;
}
.step-actions .btn {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.step-actions .btn-ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(255,255,255,0.4);
}
.step-actions .btn-ghost:hover { background: var(--paper); color: var(--ink); }
.intro-points {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.22);
  border-bottom: 1px solid rgba(255,255,255,0.22);
}
.intro-points li {
  padding: 1rem 0.4rem;
  border-top: 1px solid rgba(255,255,255,0.22);
  display: grid;
  gap: 0.3rem;
  justify-items: center;
}
.intro-points li:first-child { border-top: 0; }
.intro-points b {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--paper);
}
.intro-points span { font-size: 0.85rem; color: rgba(255,255,255,0.8); max-width: 18rem; }
@media (min-width: 700px) {
  .intro-points { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .intro-points li { border-top: 0; border-left: 1px solid rgba(255,255,255,0.22); padding: 1.4rem 1rem; }
  .intro-points li:first-child { border-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .mono { animation: none; }
  #loader { transition: none; }
}

/* ------------------------------------------------------------------
   Homes index and editorial listing template
   (The Modern House / Inigo structure; Sotheby's marketplace chrome)
   ------------------------------------------------------------------ */
.example-banner {
  margin: 0;
  padding: 0.55rem var(--gutter);
  background: var(--ink);
  color: var(--paper);
  font-size: var(--text-micro, 0.625rem);
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  text-align: center;
}
:root { --text-micro: 0.625rem; }

.homes-page { background: var(--bone); }
.homes-page .page-wrap { padding-top: clamp(1.65rem, 1rem + 2.4vw, 2.85rem); }

.homes-head { max-width: 42rem; margin: 0 0 1.25rem; }
.homes-head h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--text-h1);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0.35rem 0 0.85rem;
}
.homes-head .lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--text-lede);
  line-height: 1.42;
  color: var(--graphite);
  margin: 0;
}

.homes-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0;
  border-top: var(--rule);
  border-bottom: var(--rule);
  margin: 0 0 1.15rem;
  background: var(--paper);
}
.homes-filters label {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  padding: 0.7rem 0.95rem 0.75rem 0;
  margin: 0;
  min-width: 8.5rem;
  flex: 1 1 8.5rem;
  border-right: var(--rule-light);
  font-size: var(--text-micro);
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ash);
}
.homes-filters label:last-child { border-right: 0; }
.homes-filters select {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  font-family: var(--serif);
  font-size: 0.9375rem;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  color: var(--ink);
  cursor: pointer;
}
.homes-filters select:focus { outline: none; }
.homes-filters { margin-bottom: 1rem; }
.homes-count {
  margin: 0 0 1.35rem;
  font-size: var(--text-kicker);
  letter-spacing: var(--track-kicker);
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ash);
}

.collections-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.15rem;
  margin: 0 0 1.85rem;
  align-items: baseline;
}
.collections-row .kicker { margin: 0 0.5rem 0 0; }
.collections-row a {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--text-h3);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.collections-row a:hover { text-decoration: underline; text-underline-offset: 0.18em; }
.collections-row a.is-current { box-shadow: inset 0 -1px 0 var(--ink); }

.listing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.65rem, 1.1rem + 2vw, 2.35rem) clamp(0.85rem, 0.4rem + 1.5vw, 1.35rem);
}
@media (min-width: 700px) {
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1040px) {
  .listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.listing-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  background: var(--paper);
}
.listing-card .frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #111;
  margin: 0 0 0.7rem;
}
@media (min-width: 1040px) {
  .listing-card .frame { aspect-ratio: 4 / 3; }
}
.listing-card .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}
.listing-card .flag {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.22rem 0.4rem;
}
.listing-card .meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0 0 0.85rem;
}
.listing-card .who { min-width: 0; }
.listing-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.4375rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0.15rem 0 0.2rem;
}
.listing-card .where,
.listing-card .facts {
  margin: 0;
  font-size: var(--text-small);
  color: var(--ash);
}
.listing-card .ask {
  text-align: right;
  flex: 0 0 auto;
}
.listing-card .price {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.listing-card[hidden] { display: none !important; }
.homes-empty { font-size: var(--text-small); color: var(--ash); }

/* Home-page homes band */
#homes-band { background: var(--bone); }
#homes-band .section-head { margin-bottom: 1.35rem; }
#homes-band .collections-row,
#homes-band .listing-grid,
#homes-band .homes-more {
  width: min(100% - (2 * var(--gutter)), var(--page));
  margin-inline: auto;
}
#homes-band .listing-grid { margin-top: 0.25rem; }
#homes-band .homes-more {
  margin: 1.65rem auto 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--text-lede, 1.15rem);
  letter-spacing: -0.02em;
}
#homes-band .homes-more a { text-underline-offset: 0.18em; }

/* Property detail */
.prop-hero {
  position: relative;
  min-height: min(78vh, 44rem);
  background: #111;
  color: var(--ink);
  display: flex;
  align-items: flex-end;
  padding: 4.5rem var(--gutter) 2.15rem;
}
.prop-hero .bleed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}
.prop-hero .card {
  position: relative;
  z-index: 1;
  width: min(28.5rem, 100%);
  margin: 0;
  padding: 1.35rem 1.25rem 1.45rem;
  background: var(--bone);
}
.prop-hero .card h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.05rem, 1.08rem + 3.4vw, 3.65rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0.25rem 0 0.45rem;
  max-width: 12ch;
}
.prop-hero .ask {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--text-lede);
  letter-spacing: -0.02em;
}
.prop-hero .facts {
  margin: 0 0 1rem;
  font-size: var(--text-small);
  color: var(--ash);
}
.prop-hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
}
.prop-hero .actions .btn { min-width: 0; padding: 0.75rem 1.05rem; }
.prop-hero .note { margin: 0; font-size: var(--text-small); color: var(--ash); }

.prop-tabs {
  position: sticky;
  top: var(--header);
  z-index: 30;
  background: var(--paper);
  border-bottom: var(--rule);
}
.prop-tabs ul {
  list-style: none;
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: min(100%, var(--page));
  display: flex;
  gap: 1.15rem;
  overflow-x: auto;
}
.prop-tabs a {
  display: inline-block;
  padding: 0.7rem 0;
  text-decoration: none;
  font-size: var(--text-kicker);
  font-weight: 500;
  letter-spacing: var(--track-kicker);
  text-transform: uppercase;
  white-space: nowrap;
}
.prop-tabs a:hover,
.prop-tabs a[aria-current="true"] { box-shadow: inset 0 -1px 0 var(--ink); }

.prop-body {
  width: min(100% - (2 * var(--gutter)), var(--page));
  margin: 0 auto;
  padding: 0 0 var(--section-space);
}
.prop-story {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.65rem, 1.2rem + 2vw, 3rem);
  padding: var(--section-space) 0;
}
@media (min-width: 900px) {
  .prop-story { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.9fr); align-items: start; }
}
.prop-story .copy h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: var(--text-h3);
  margin: 1.65rem 0 0.55rem;
  letter-spacing: -0.02em;
}
.prop-story .copy h2:first-child { margin-top: 0; }
.prop-story .stack { display: grid; gap: 1.15rem; }
.prop-story .stack figure { margin: 0; }
.prop-story .stack img {
  width: 100%;
  height: auto;
  filter: grayscale(1);
  background: #111;
}
.prop-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  padding-top: var(--block-space);
}
@media (min-width: 800px) {
  .prop-gallery { grid-template-columns: 1.4fr 1fr; }
}
.prop-gallery figure,
.prop-story .stack figure { margin: 0; }
.prop-gallery figcaption,
.prop-story .stack figcaption {
  margin: 0.55rem 0 0;
  display: flex;
  gap: 0 0.75rem;
  align-items: baseline;
  font-size: var(--text-small);
  line-height: 1.4;
  color: var(--graphite);
}
.prop-gallery img {
  width: 100%;
  height: auto;
  filter: grayscale(1);
  background: #111;
}
.prop-specs {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}
.prop-specs th,
.prop-specs td {
  border-top: var(--rule-light);
  padding: 0.65rem 0;
  text-align: left;
  vertical-align: baseline;
  font-weight: 400;
}
.prop-specs th {
  font-size: var(--text-kicker);
  letter-spacing: var(--track-kicker);
  text-transform: uppercase;
  color: var(--ash);
  width: 38%;
}
.prop-specs td { font-family: var(--serif); font-style: italic; }

/* Pre-entry 3D screen */
.vh-viewer {
  position: relative;
  isolation: isolate;
  background: #000;
  color: var(--paper);
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  min-height: 0;
}
@media (max-width: 699px) {
  .vh-viewer { aspect-ratio: 2 / 3; }
}
.vh-viewer-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  max-width: none;
}
.vh-viewer-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.12) 40%, rgba(0,0,0,0.58) 100%);
  pointer-events: none;
}
.vh-viewer-loader {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: opacity 0.6s ease, visibility 0.6s;
}
.vh-viewer-loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.vh-viewer-loader-inner {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  text-align: center;
  width: min(78vw, 22.5rem);
}
.vh-mono {
  width: 5.25rem;
  height: 5.25rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.vh-mono span {
  font-family: var(--display);
  font-weight: 500;
  font-style: italic;
  font-size: 1.7rem;
  line-height: 1;
}
.vh-bar { width: 100%; height: 1px; background: #ddd; overflow: hidden; }
.vh-bar i { display: block; height: 100%; width: 0; background: var(--ink); }
.vh-pct { margin: 0; font-size: 0.75rem; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.vh-loader-foot {
  position: absolute;
  bottom: 1.15rem;
  left: 0; right: 0;
  text-align: center;
  font-size: var(--text-micro);
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: #777;
  margin: 0;
}
.vh-intro-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 1rem var(--gutter) 2.15rem;
  overflow: auto;
}
.vh-intro-card {
  width: min(58.75rem, 100%);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 0.7rem;
}
.vh-intro-card .kicker { color: rgba(255,255,255,0.75); }
.vh-intro-card h2 {
  font-family: var(--display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(2.15rem, 1.15rem + 4.8vw, 4.85rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--paper);
  max-width: 16ch;
  margin: 0;
}
.vh-intro-lede {
  margin: 0;
  max-width: 34em;
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--text-lede);
  line-height: 1.4;
  color: rgba(255,255,255,0.86);
}
.vh-enter {
  appearance: none;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  font: 500 0.6875rem/1 var(--sans);
  letter-spacing: 0.19em;
  text-transform: uppercase;
  padding: 0.85rem 1.2rem;
  min-width: 11.25rem;
  cursor: pointer;
}
.vh-fine {
  margin: 0;
  font: 500 0.625rem/1.4 var(--sans);
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
.vh-demo-note {
  position: absolute;
  left: 50%;
  bottom: 2.4rem;
  transform: translateX(-50%);
  width: min(32rem, calc(100% - 2 * var(--gutter)));
  text-align: center;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 0.45rem;
}
.vh-demo-note .kicker { color: rgba(255,255,255,0.7); }
.vh-demo-title {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.55rem, 1.15rem + 1.7vw, 2.35rem);
  letter-spacing: -0.03em;
}
.vh-demo-note p:last-of-type {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.86);
}
@media (prefers-reduced-motion: reduce) {
  .vh-viewer-loader { transition: none; }
}


/* listing ghost button */
.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}
