/* ===== Silent Residence — tokens & reset ===== */
:root {
  --stone: #F2ECE0;        /* card ground, warm limestone */
  --beige: #E4D8C5;
  --ink: #211E1A;           /* primary text / dark ground */
  --plaque: #201C17;        /* near-black plaque bg, warmer than pure black */
  --brass: #AC8248;         /* aged brass accent */
  --brass-light: #D9C39A;   /* brass on dark */
  --hairline: rgba(33,29,26,0.14);

  --font-display: 'Fraunces', serif;
  --font-text: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container-w: 1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-text);
  color: var(--ink);
  background: var(--stone);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 32px;
}

a { color: inherit; text-decoration: none; }

/* subtle grain texture — sits above everything, tactile paper feel */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ===== Buttons & links ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 17px 34px;
  font-family: var(--font-text);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--ink);
  color: var(--stone);
}
.btn--primary:hover { background: var(--brass); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(33,29,26,0.35);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.link-arrow span { transition: transform 0.25s ease; display: inline-block; }
.link-arrow:hover { color: var(--brass); border-color: var(--brass); }
.link-arrow:hover span { transform: translateX(4px); }

/* ===== Header — transparent over hero photo, solidifies on scroll ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 26px 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, padding 0.35s ease;
}
.site-header.is-solid {
  padding: 18px 0;
  background: rgba(242,236,224,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-mark {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(242,236,224,0.8);
  color: var(--stone);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  flex-shrink: 0;
  transition: border-color 0.35s ease, color 0.35s ease;
}
.logo-word {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  text-shadow: 0 1px 6px rgba(0,0,0,0.35);
  transition: color 0.35s ease, text-shadow 0.35s ease;
}
.is-solid .logo-mark { border-color: var(--ink); color: var(--ink); }
.is-solid .logo-word { color: var(--ink); text-shadow: none; }

.main-nav {
  display: flex;
  gap: 32px;
}
.main-nav a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(242,236,224,0.9);
  text-shadow: 0 1px 6px rgba(0,0,0,0.35);
  transition: color 0.25s ease, text-shadow 0.35s ease;
}
.main-nav a:hover { color: var(--brass-light); }
.is-solid .main-nav a { color: rgba(33,29,26,0.65); text-shadow: none; }
.is-solid .main-nav a:hover { color: var(--brass); }

.header-cta {
  padding: 12px 22px;
  font-size: 11px;
  background: var(--stone);
  color: var(--ink);
}
.header-cta:hover { background: var(--brass); color: var(--stone); }

/* ===== Hero — full-bleed photo, text lives on the image ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: brightness(0.78) saturate(1.02);
  transform: scale(1);
  transition: opacity 1.6s ease;
  animation: kenburns 16s ease-in-out infinite alternate;
}
.hero-img--active { opacity: 1; }
@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.12); }
}

/* engineered scrim: brief clear strip at the very top only, then a continuous
   darkening ramp covering the whole zone the text actually occupies */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(4,3,2,0.5) 0%,
      rgba(4,3,2,0.1) 14%,
      rgba(4,3,2,0.4) 36%,
      rgba(4,3,2,0.66) 58%,
      rgba(4,3,2,0.86) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(48px, 7vh, 88px);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  margin-bottom: 22px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}
.eyebrow-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brass-light);
  box-shadow: 0 0 6px rgba(0,0,0,0.5);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1.12;
  color: var(--stone);
  max-width: 780px;
  margin-bottom: 22px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.45), 0 1px 4px rgba(0,0,0,0.5);
}
.hero-title-accent {
  font-style: italic;
  color: var(--brass-light);
}

.hero-subtitle {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 19px;
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: 0.002em;
  color: rgba(242,236,224,0.92);
  max-width: 460px;
  margin-bottom: 40px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.5);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}
.hero-actions .link-arrow { color: var(--stone); border-color: rgba(242,236,224,0.45); text-shadow: 0 2px 10px rgba(0,0,0,0.4); }
.hero-actions .link-arrow:hover { color: var(--brass-light); border-color: var(--brass-light); }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  column-gap: 44px;
  row-gap: 18px;
  padding-top: 26px;
  border-top: 1px solid rgba(242,236,224,0.28);
  max-width: 760px;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--stone);
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}

.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  color: rgba(242,236,224,0.75);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px;
  height: 34px;
  background: rgba(242,236,224,0.5);
}

/* ===== load-in reveal ===== */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
[data-reveal] > * {
  animation: revealUp 0.8s cubic-bezier(.16,.8,.24,1) both;
}
[data-reveal] > *:nth-child(1) { animation-delay: 0.1s; }
[data-reveal] > *:nth-child(2) { animation-delay: 0.22s; }
[data-reveal] > *:nth-child(3) { animation-delay: 0.34s; }
[data-reveal] > *:nth-child(4) { animation-delay: 0.46s; }
[data-reveal] > *:nth-child(5) { animation-delay: 0.58s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] > *, .hero-img { animation: none; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .hero-stats { column-gap: 28px; }
}

/* ===== scroll-in reveal (used from here on, sections below the fold) ===== */
[data-reveal-scroll] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(.16,.8,.24,1), transform 0.9s cubic-bezier(.16,.8,.24,1);
}
[data-reveal-scroll].is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal-scroll] { opacity: 1; transform: none; transition: none; }
}

/* ===== section heading primitives (reused by every section below) ===== */
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 22px;
}
.section-eyebrow .eyebrow-dot { background: var(--brass); }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 24px;
}

.section-text {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(33,29,26,0.72);
  max-width: 480px;
  margin-bottom: 8px;
}

/* ===== Architecture & Materials ===== */
.arch {
  scroll-margin-top: 100px;
  padding: clamp(80px, 12vw, 160px) 0;
  background: var(--stone);
}

.arch-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.arch-media {
  position: relative;
  height: clamp(360px, 46vw, 600px);
  overflow: hidden;
}
.arch-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.arch-media-caption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: rgba(32,28,23,0.82);
  padding: 9px 16px;
}
.arch-media-caption span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-light);
}

.section-text.arch-text { margin-bottom: 40px; }

.material-palette {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hairline);
  margin: 36px 0 32px;
}
.material-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}
.material-swatch {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border: 1px solid rgba(33,29,26,0.12);
}
.material-swatch--glass {
  background: linear-gradient(135deg, rgba(172,196,196,0.55), rgba(172,196,196,0.12));
}
.material-name {
  font-size: 15px;
  color: var(--ink);
  flex: 1;
}
.material-note {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(33,29,26,0.45);
}

.arch-texture {
  width: 132px;
  height: 132px;
  border: 1px solid var(--hairline);
  overflow: hidden;
}
.arch-texture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .arch-grid { grid-template-columns: 1fr; gap: 44px; }
  .material-note { display: none; }
}

/* ===== Location & Views — dark counterpoint to the stone section above ===== */
.location {
  scroll-margin-top: 100px;
  padding: clamp(80px, 12vw, 160px) 0;
  background: var(--ink);
}

.location-intro { max-width: 640px; margin-bottom: clamp(48px, 7vw, 80px); }

.section-eyebrow--dark { color: var(--brass-light); }
.section-eyebrow--dark .eyebrow-dot { background: var(--brass-light); }

.section-title--dark { color: var(--stone); }

.section-text--dark {
  color: rgba(242,236,224,0.68);
  max-width: 560px;
}

.view-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.view-frame {
  border: 1px solid rgba(172,130,72,0.35);
  padding: 14px;
  background: rgba(255,255,255,0.02);
}
.view-frame img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
}
.view-frame figcaption {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-top: 14px;
  font-size: 14px;
  color: rgba(242,236,224,0.85);
}
.view-frame figcaption span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brass-light);
}

@media (max-width: 900px) {
  .view-gallery { grid-template-columns: 1fr; }
  .view-frame img { height: 280px; }
}

/* ===== Residences / floor plan — dark section, plan mounted like a blueprint ===== */
.residences {
  scroll-margin-top: 100px;
  padding: clamp(80px, 12vw, 160px) 0;
  background: var(--ink);
  border-top: 1px solid rgba(242,236,224,0.08);
}

.residences-intro { max-width: 640px; margin-bottom: clamp(48px, 7vw, 72px); }

.plate {
  background: var(--stone);
  padding: clamp(12px, 1.6vw, 22px);
  box-shadow: 0 40px 90px rgba(0,0,0,0.4);
  margin-bottom: clamp(48px, 7vw, 72px);
}
.plate img {
  display: block;
  width: 100%;
  height: auto;
}

.unit-types {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(242,236,224,0.14);
  border-top: 1px solid rgba(242,236,224,0.14);
  border-bottom: 1px solid rgba(242,236,224,0.14);
}
.unit-type {
  background: var(--ink);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.unit-type-area {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--stone);
}
.unit-type-label {
  font-size: 14px;
  color: rgba(242,236,224,0.75);
}
.unit-type-note {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass-light);
}

@media (max-width: 900px) {
  .unit-types { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .unit-types { grid-template-columns: 1fr; }
}

/* ===== Apartment examples — light section, alternates with Residences above ===== */
.examples {
  scroll-margin-top: 100px;
  padding: clamp(80px, 12vw, 160px) 0;
  background: var(--stone);
}

.example { margin-bottom: clamp(100px, 13vw, 160px); }
.example:last-child { margin-bottom: 0; }

.example-intro { max-width: 620px; margin-bottom: clamp(40px, 5vw, 56px); }

/* asymmetric collage: one dominant photo + a stacked pair, plan pinned over the corner */
.example-gallery {
  position: relative;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 22px;
  padding-bottom: 40px;
}
.example-frame {
  overflow: hidden;
  background: var(--ink);
}
.example-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.example-frame--main { height: 480px; }
.example-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.example-stack .example-frame { height: 229px; }

.example--reverse .example-gallery { grid-template-columns: 1fr 1.6fr; }
.example--reverse .example-frame--main { order: 2; }
.example--reverse .example-stack { order: 1; }

/* the plan — pinned like a print on top of the collage, not boxed into the grid */
.example-frame--plan {
  position: absolute;
  left: 4%;
  bottom: 0;
  z-index: 3;
  width: 230px;
  overflow: visible;
  background: var(--stone);
  border: 1px solid rgba(172,130,72,0.4);
  box-shadow: 0 26px 54px rgba(20,18,15,0.32);
  padding: 10px 10px 0;
  transform: rotate(-3deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.example-frame--plan:hover {
  transform: rotate(0deg) scale(1.05);
  box-shadow: 0 30px 60px rgba(20,18,15,0.4);
}
.example-frame--plan img {
  width: 100%;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.example-frame--plan figcaption {
  display: block;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(33,29,26,0.55);
  padding: 8px 0 10px;
  margin-top: 8px;
  border-top: 1px solid var(--hairline);
}
.example--reverse .example-frame--plan {
  left: auto;
  right: 4%;
  transform: rotate(3deg);
}
.example--reverse .example-frame--plan:hover { transform: rotate(0deg) scale(1.05); }

/* stagger the collage in piece by piece instead of all at once */
.example-gallery.is-visible,
.example-gallery[data-reveal-scroll] {
  opacity: 1 !important;
  transform: none !important;
}
.example-gallery .example-frame,
.example-gallery .example-stack {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(.16,.8,.24,1), transform 0.7s cubic-bezier(.16,.8,.24,1);
}
.example-gallery.is-visible .example-frame--main { transition-delay: 0.05s; }
.example-gallery.is-visible .example-stack { transition-delay: 0.2s; }
.example-gallery.is-visible .example-stack .example-frame { transition-delay: 0s; }
.example-gallery.is-visible .example-frame--plan { transition-delay: 0.45s; }
.example-gallery.is-visible .example-frame,
.example-gallery.is-visible .example-stack {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .example-gallery, .example--reverse .example-gallery { grid-template-columns: 1fr; }
  .example-frame--main, .example--reverse .example-frame--main { order: 0; height: 320px; }
  .example-stack, .example--reverse .example-stack { order: 0; flex-direction: row; }
  .example-stack .example-frame { height: 200px; }
  .example-frame--plan, .example--reverse .example-frame--plan {
    position: static;
    margin: 24px auto 0;
    transform: none;
  }
  .example-frame--plan:hover { transform: none; }
}

/* ===== Private amenities — dark section, alternates with Examples above ===== */
.amenities {
  scroll-margin-top: 100px;
  padding: clamp(80px, 12vw, 160px) 0;
  background: var(--ink);
  border-top: 1px solid rgba(242,236,224,0.08);
}

.amenities-intro { max-width: 620px; margin-bottom: clamp(48px, 7vw, 72px); }

.amenity-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.amenity-feature {
  position: relative;
  height: clamp(300px, 32vw, 420px);
  overflow: hidden;
}
.amenity-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.82);
  transition: transform 0.6s ease;
}
.amenity-feature:hover img { transform: scale(1.04); }
.amenity-feature figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px clamp(20px, 3vw, 32px);
  background: linear-gradient(180deg, transparent, rgba(8,7,5,0.85) 75%);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.amenity-feature-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--stone);
}
.amenity-feature-text {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(242,236,224,0.75);
  max-width: 360px;
}

.amenity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.amenity-card {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.amenity-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8);
  transition: transform 0.6s ease, filter 0.4s ease;
}
.amenity-card:hover img { transform: scale(1.06); filter: brightness(0.65); }
.amenity-card figcaption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

@media (max-width: 900px) {
  .amenity-features { grid-template-columns: 1fr; }
  .amenity-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .amenity-grid { grid-template-columns: 1fr; }
}

/* ===== Mortgage calculator — light section ===== */
.mortgage {
  scroll-margin-top: 100px;
  padding: clamp(80px, 12vw, 160px) 0;
  background: var(--stone);
}

.mortgage-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}

.mortgage-intro { max-width: 440px; padding-top: 8px; }

.calculator {
  background: var(--ink);
  padding: clamp(32px, 4vw, 48px) clamp(28px, 4vw, 44px);
  border: 1px solid rgba(172,130,72,0.3);
}

.calc-row { margin-bottom: 34px; }
.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
  gap: 12px;
}
.calc-label-row span:first-child {
  font-size: 13px;
  color: rgba(242,236,224,0.65);
}
.calc-value {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brass-light);
  white-space: nowrap;
}

.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  background: rgba(242,236,224,0.25);
  outline: none;
  cursor: pointer;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brass-light);
  border: 2px solid var(--ink);
  box-shadow: 0 0 0 1px var(--brass-light);
  cursor: pointer;
}
.calc-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brass-light);
  border: 2px solid var(--ink);
  box-shadow: 0 0 0 1px var(--brass-light);
  cursor: pointer;
}
.calc-slider::-moz-range-track {
  height: 2px;
  background: rgba(242,236,224,0.25);
}

.calc-result {
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid rgba(242,236,224,0.2);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.calc-result-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(242,236,224,0.55);
}
.calc-result-value {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.calc-result-value #calcMonthly {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 48px);
  color: var(--stone);
}
.calc-result-unit {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brass-light);
}
.calc-result-note {
  font-size: 12px;
  color: rgba(242,236,224,0.45);
}

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

/* ===== Developer / reputation — dark section ===== */
.developer {
  scroll-margin-top: 100px;
  padding: clamp(80px, 12vw, 160px) 0;
  background: var(--ink);
  border-top: 1px solid rgba(242,236,224,0.08);
}

.developer-intro { max-width: 640px; margin-bottom: clamp(48px, 6vw, 64px); }

.developer-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 6vw, 72px);
  padding: 32px 0;
  border-top: 1px solid rgba(242,236,224,0.15);
  border-bottom: 1px solid rgba(242,236,224,0.15);
  margin-bottom: clamp(56px, 7vw, 80px);
}
.developer-stat { display: flex; flex-direction: column; gap: 6px; }
.developer-stat-num {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.6vw, 48px);
  color: var(--brass-light);
}
.developer-stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(242,236,224,0.6);
}

.press-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.press-quote { border-left: 2px solid rgba(172,130,72,0.5); padding-left: 20px; }
.press-quote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
  color: var(--stone);
  margin-bottom: 16px;
}
.press-quote figcaption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass-light);
}

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

/* ===== Private viewing / contact — bookends the hero with a photo section ===== */
.contact {
  scroll-margin-top: 100px;
  position: relative;
  padding: clamp(90px, 14vw, 180px) 0;
  overflow: hidden;
}
.contact-photo { position: absolute; inset: 0; z-index: 0; }
.contact-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5) saturate(1.05);
}
.contact-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(8,7,5,0.88) 0%, rgba(8,7,5,0.72) 42%, rgba(8,7,5,0.4) 100%);
}

.contact-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.contact-intro { max-width: 460px; }

.contact-direct {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}
.contact-direct-item {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--stone);
  border: 1px solid rgba(242,236,224,0.3);
  padding: 12px 18px;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.contact-direct-item:hover { border-color: var(--brass-light); color: var(--brass-light); }

.contact-form {
  background: rgba(242,236,224,0.06);
  border: 1px solid rgba(172,130,72,0.35);
  padding: clamp(28px, 3.6vw, 40px);
  backdrop-filter: blur(6px);
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(242,236,224,0.6);
  margin-bottom: 10px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(242,236,224,0.3);
  color: var(--stone);
  font-family: var(--font-text);
  font-size: 15px;
  padding: 8px 2px;
  resize: none;
  transition: border-color 0.25s ease;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--brass-light);
}
.contact-submit { width: 100%; margin-top: 8px; }
.contact-form-note {
  font-size: 11px;
  color: rgba(242,236,224,0.45);
  margin-top: 16px;
  text-align: center;
}

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

/* ===== Footer ===== */
.site-footer {
  background: var(--plaque);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(242,236,224,0.1);
}
.footer-brand .logo-mark { border-color: rgba(242,236,224,0.7); color: var(--stone); }
.footer-brand .logo-word { color: var(--stone); text-shadow: none; }
.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: rgba(242,236,224,0.6);
  margin-top: 16px;
}
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 4px;
}
.footer-col a, .footer-address {
  font-size: 14px;
  color: rgba(242,236,224,0.7);
  transition: color 0.25s ease;
}
.footer-col a:hover { color: var(--brass-light); }
.footer-address--mono { font-family: var(--font-mono); font-size: 12px; color: rgba(242,236,224,0.45); }

.footer-bottom {
  padding: 24px 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(242,236,224,0.4);
}

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