/* ==========================================================================
   250 Cultivate, Irvine — KHG brand system
   Per the Kwon Home Group Brand Guide v1.0:
   - Palette: Ink #111214 · Paper #FFFFFF / Bone #F2F1EC · VOLT #C6FF3D
     (the signature — one charged moment per view) · Cobalt #1B3FE0
     (data, labels, trust). 70 paper / 20 ink / 10 accent.
   - Type: Archivo (Expanded 900 for display, UPPERCASE, tight tracking),
     Archivo 400/600 body, Space Mono for eyebrows/codes/spec data.
   - Look: hard grid, hard-edged rectangles, no rounded corners, no shadows,
     no gradients (except ink gradients over photography for legibility).
   ========================================================================== */

:root {
  --ink: #111214;
  --paper: #ffffff;
  --bone: #f2f1ec;
  --volt: #c6ff3d;
  --cobalt: #1b3fe0;
  --concrete-1: #e4e3de;
  --concrete-2: #c4c3bc;
  --concrete-3: #86857e;
  --concrete-4: #3a3a38;

  /* legacy token names kept so component rules read naturally */
  --white: var(--paper);
  --gold: var(--volt);
  --gold-soft: var(--volt);
  --navy: var(--ink);
  --navy-deep: var(--ink);
  --offwhite: var(--bone);

  --line: rgba(17, 18, 20, 0.14);
  --line-light: rgba(255, 255, 255, 0.16);
  --muted: rgba(17, 18, 20, 0.62);
  --muted-light: rgba(255, 255, 255, 0.66);

  --sans: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Space Mono", "SFMono-Regular", Menlo, monospace;

  --max: 1200px;
  --pad: clamp(1.25rem, 5vw, 3rem);
}

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

html { scroll-behavior: smooth; }

/* safety net: no stray element may widen the layout viewport. `clip` (not
   `hidden`) so position:sticky in the video hero keeps working. */
html, body { overflow-x: clip; }

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* display type: Archivo Expanded 900, uppercase, tight */
.display-type {
  font-family: var(--sans);
  font-stretch: 125%;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

/* ---------- shared section scaffolding ---------- */

.section { padding: clamp(4.5rem, 10vw, 8rem) var(--pad); }

.section-inner { max-width: var(--max); margin: 0 auto; }

.section-inner.narrow { max-width: 820px; }

.alt-bg { background: var(--bone); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: 1.1rem;
}

/* on dark fields the label goes volt */
.eyebrow-gold { color: var(--volt); }

.section-title {
  font-family: var(--sans);
  font-stretch: 125%;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.02;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

/* ==========================================================================
   Top bar — paper ground, ink type, volt CTA
   ========================================================================== */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ink);
}

.topbar-inner {
  max-width: calc(var(--max) + 2 * var(--pad));
  margin: 0 auto;
  padding: 0.9rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
}

.topbar-brand {
  font-family: var(--sans);
  font-stretch: 125%;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.topbar-brand .brand-community { display: none; }

.topbar-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.8vw, 1.5rem);
  margin-left: auto;
}

.nav-extra { display: none; }

.topbar-nav a {
  font-family: var(--mono);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s ease;
}

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

/* current section highlighted — cobalt (labels / trust) */
.topbar-nav a.active { color: var(--cobalt); font-weight: 700; }

.topbar-cta {
  color: var(--ink);
  background: var(--volt);
  padding: 0.6rem 1.1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: filter 0.2s ease;
}

.topbar-cta:hover { filter: brightness(1.06); }

/* language selector — quiet mono outline, same family as the nav */
.lang-picker {
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 0.5rem 1.6rem 0.5rem 0.7rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%23111214'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
}
.lang-picker:hover { border-color: var(--cobalt); color: var(--cobalt); }
.lang-picker:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }

/* scheduling dropdown — shared by the topbar CTA and the contact button */
.sched-menu { position: relative; flex-shrink: 0; }
.sched-menu > button {
  border: 0;
  cursor: pointer;
}
.sched-panel {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 275px;
  background: var(--paper);
  border: 1px solid var(--ink);
  z-index: 70;
}
.sched-menu.open .sched-panel { display: block; }
.sched-panel a {
  display: block;
  padding: 0.75rem 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid var(--line-light, rgba(17, 18, 20, 0.15));
}
.sched-panel a:last-child { border-bottom: 0; }
.sched-panel a:hover { background: var(--volt); }
.sched-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.sched-meta {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--muted);
}
.sched-panel a:hover .sched-meta { color: var(--ink); }
/* the contact-section variant opens under a full-width button */
.sched-menu-wide { flex: 1 1 auto; }
.sched-menu-wide > button { width: 100%; }
.sched-menu-wide .sched-panel { left: 0; right: auto; min-width: 100%; }

/* Farsi: the LAYOUT stays identical to every other language — no page
   mirroring. unicode-bidi: plaintext gives each text block its correct
   internal right-to-left word order; the explicit text-align keeps blocks
   pinned left exactly like the English layout. */
:lang(fa) h1, :lang(fa) h2, :lang(fa) h3, :lang(fa) p, :lang(fa) li,
:lang(fa) dt, :lang(fa) dd, :lang(fa) blockquote, :lang(fa) figcaption,
:lang(fa) button, :lang(fa) a, :lang(fa) textarea, :lang(fa) .msg {
  unicode-bidi: plaintext;
}
:lang(fa) h1, :lang(fa) h2, :lang(fa) h3, :lang(fa) p, :lang(fa) li,
:lang(fa) dt, :lang(fa) dd, :lang(fa) blockquote, :lang(fa) figcaption,
:lang(fa) textarea, :lang(fa) .msg {
  text-align: left;
}
/* re-assert the pieces the base design intentionally centers / right-aligns */
:lang(fa) .chat-disclaimer { text-align: center; }
:lang(fa) .footer p { text-align: center; }
:lang(fa) .highlights-tag { text-align: right; }
@media (max-width: 900px) {
  :lang(fa) .concierge-intro h1, :lang(fa) .concierge-sub { text-align: center; }
}
@media (max-width: 820px) {
  :lang(fa) .contact-details p, :lang(fa) .contact-details h2,
  :lang(fa) .contact-details li { text-align: center; }
}
@media (max-width: 700px) {
  :lang(fa) .highlights-tag { text-align: left; }
}

.topbar-cta { flex-shrink: 0; white-space: nowrap; }

@media (max-width: 1240px) {
  body { padding-bottom: 56px; }

  /* backdrop-filter turns .topbar into the containing block for its fixed
     descendants, which pins the bottom nav strip to the topbar's edge —
     covering the brand, language picker, and CTA on phones. The bar is 95%
     opaque white, so dropping the blur on mobile is invisible. */
  .topbar { backdrop-filter: none; }

  .topbar-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin-left: 0;
    z-index: 60;
    justify-content: flex-start;
    gap: 1.6rem;
    padding: 0.9rem 1.2rem calc(0.9rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--ink);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .topbar-nav::-webkit-scrollbar { display: none; }

  .nav-extra { display: inline-block; }
}

@media (max-width: 1240px) {
  /* brand, pink CTA, then the language picker — all in the top bar */
  .sched-menu { margin-left: auto; }
}
@media (max-width: 560px) {
  /* keep the full "250 Cultivate, Irvine" and fit all three pieces */
  .topbar-inner { gap: 0.45rem; padding: 0.75rem 0.55rem; }
  .topbar-brand { font-size: 0.76rem; }
  .topbar-cta { padding: 0.5rem 0.55rem; font-size: 0.6rem; letter-spacing: 0.08em; }
  .lang-picker {
    padding: 0.42rem 1.1rem 0.42rem 0.4rem;
    font-size: 0.6rem;
    background-position: right 0.35rem center;
  }
}
@media (max-width: 400px) {
  .topbar-brand { font-size: 0.64rem; }
  .topbar-cta { letter-spacing: 0.02em; padding: 0.5rem 0.35rem; }
  .lang-picker { font-size: 0.55rem; padding-right: 1rem; }
}
@media (max-width: 360px) {
  /* the long "250 Cultivate, Irvine" brand: drop the city as a last resort */
  .topbar-brand .brand-loc { display: none; }
}

/* ==========================================================================
   Section 1 — AI Property Concierge (the one ink field; volt accents)
   ========================================================================== */

.concierge {
  background: var(--ink);
  color: var(--paper);
  padding: calc(4rem + 56px) var(--pad) 4.5rem;
}

.concierge-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.concierge-intro h1 {
  font-family: var(--sans);
  font-stretch: 125%;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.02;
  margin-bottom: 1rem;
}

.concierge-sub {
  color: var(--muted-light);
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  max-width: 38ch;
  margin-bottom: 1.8rem;
}

.concierge-hints { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; }

.hint-chip {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-light);
  border: 1px solid var(--line-light);
  padding: 0.5rem 0.9rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hint-chip:hover { color: var(--volt); border-color: var(--volt); }

/* --- chat panel --- */

.chat {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-light);
  overflow: hidden;
}

/* "↓ latest" — shown while an answer is streaming and the reader has
   scrolled away from the bottom of the thread */
.chat-latest {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 122px; /* clears the input bar + disclaimer */
  z-index: 2;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--volt);
  padding: 0.45rem 0.85rem;
  transition: filter 0.2s ease;
}

.chat-latest:hover { filter: brightness(1.06); }

.chat-thread {
  height: min(52vh, 460px);
  min-height: 320px;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  /* no scroll-behavior:smooth here — it fights the follow-the-stream logic */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.chat-thread::-webkit-scrollbar { width: 8px; }
.chat-thread::-webkit-scrollbar-track { background: transparent; }
.chat-thread::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.14); }
.chat-thread::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.26); }

.msg { max-width: 85%; display: flex; flex-direction: column; gap: 0.3rem; }

.msg-assistant { align-self: flex-start; }
.msg-user { align-self: flex-end; align-items: flex-end; }

.msg-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--volt);
}

.msg-user .msg-label { color: var(--muted-light); }

.msg-bubble {
  padding: 0.85rem 1.1rem;
  font-size: 0.92rem;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.msg-assistant .msg-bubble {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line-light);
  color: rgba(255, 255, 255, 0.92);
}

.msg-user .msg-bubble {
  background: var(--volt);
  color: var(--ink);
  font-weight: 500;
}

/* streamed words fade in instead of popping */
.msg-bubble .tok {
  opacity: 0;
  animation: tok-in 0.18s ease-in forwards;
}

@keyframes tok-in {
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .msg-bubble .tok { animation: none; opacity: 1; }
}

/* typing indicator */
.typing { display: inline-flex; gap: 5px; align-items: center; padding: 0.35rem 0; }
.typing i {
  width: 6px; height: 6px;
  background: var(--volt);
  animation: typing-bounce 1.2s infinite ease-in-out;
}
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing-bounce {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

/* blinking caret while streaming */
.msg-bubble.streaming::after {
  content: "";
  display: inline-block;
  width: 2px; height: 1em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--volt);
  animation: caret-blink 0.9s steps(1) infinite;
}

@keyframes caret-blink { 50% { opacity: 0; } }

.chat-inputbar {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-top: 1px solid var(--line-light);
  background: rgba(0, 0, 0, 0.25);
}

/* Chris's avatar stands on the input bar, over the mic + send buttons */
.chat-avatar {
  position: absolute;
  right: 1.1rem;
  bottom: 100%;
  width: 58px;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.chat-inputbar textarea {
  flex: 1;
  resize: none;
  max-height: 120px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--paper);
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 0.4rem 0.2rem;
}

.chat-inputbar textarea::placeholder { color: rgba(255, 255, 255, 0.4); }

#chat-send {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: var(--volt);
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: filter 0.2s ease, transform 0.15s ease;
}

#chat-send:hover { filter: brightness(1.06); }
#chat-send:active { transform: scale(0.94); }
#chat-send:disabled { opacity: 0.45; cursor: default; }

/* voice input — outline twin of the send button; goes solid while listening */
#chat-mic {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line-light);
  display: grid;
  place-items: center;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
#chat-mic:hover { color: var(--volt); border-color: var(--volt); }
#chat-mic:active { transform: scale(0.94); }
#chat-mic.listening {
  background: var(--volt);
  border-color: var(--volt);
  color: var(--ink);
  animation: mic-pulse 1.2s ease-in-out infinite;
}
@keyframes mic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(198, 255, 61, 0.55); }
  50% { box-shadow: 0 0 0 8px rgba(198, 255, 61, 0); }
}

.chat-disclaimer {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.38);
  text-align: center;
  padding: 0.6rem 1rem 0.8rem;
  background: rgba(0, 0, 0, 0.25);
}

@media (max-width: 900px) {
  .concierge-inner { grid-template-columns: 1fr; }
  .concierge-intro { text-align: center; }
  .concierge-sub { margin-inline: auto; }
  .concierge-hints { justify-content: center; }
}

/* ==========================================================================
   Video hero — static autoplay (no scroll scrub)
   ========================================================================== */

.video-hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  background: var(--ink);
}

.video-hero-sticky {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.video-hero video,
.video-hero .vh-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* full bleed, no letterboxing */
}

/* property identity text over the video — ink gradient for legibility
   (explicitly sanctioned by the brand guide for photography) */
.video-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
  background: linear-gradient(to top,
    rgba(17, 18, 20, 0.85) 0%,
    rgba(17, 18, 20, 0.35) 32%,
    rgba(17, 18, 20, 0) 60%);
}

.video-hero-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.18);
  z-index: 2;
}

.video-hero-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--volt);
}

.hero-content {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(2.5rem, 6vw, 4.5rem);
  color: var(--paper);
}

.hero-address {
  font-family: var(--sans);
  font-stretch: 125%;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 0.98;
}

.hero-city {
  font-family: var(--mono);
  font-size: clamp(0.8rem, 1.4vw, 0.95rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin: 0.6rem 0 1.4rem;
}

.hero-price {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  color: var(--volt);
  margin-bottom: 1.2rem;
}

.hero-specs {
  font-family: var(--mono);
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: clamp(0.75rem, 1.3vw, 0.9rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.spec-divider { width: 1px; height: 1em; background: rgba(255, 255, 255, 0.4); }

/* ==========================================================================
   Section 3 — Gallery (hard grid, no gaps rounding)
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(150px, 18vw, 260px);
  grid-auto-flow: dense;
  gap: 10px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  padding: 0;
  display: block;
}

.gallery-item.span-2 {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1), opacity 0.3s ease;
}

.gallery-item:hover img { transform: scale(1.03); }

.gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(17, 18, 20, 0);
  transition: background 0.3s ease;
}

.gallery-item:hover::after { background: rgba(17, 18, 20, 0.12); }

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: clamp(130px, 24vw, 220px);
  }
}
@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: min(68vw, 340px); }
  .gallery-item.span-2 { grid-column: auto; grid-row: auto; }
}

/* ==========================================================================
   Section 4 — Description
   ========================================================================== */

.description-copy p {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.75;
  color: rgba(17, 18, 20, 0.82);
  margin-bottom: 1.6rem;
}

.pullquote {
  margin: clamp(2.5rem, 6vw, 4rem) 0;
  padding-left: 1.75rem;
  border-left: 4px solid var(--volt);
}

.pullquote p {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ==========================================================================
   Filmstrip — a second look (horizontal editorial scroll; deliberately a
   different rhythm from the gallery mosaic: one row, mixed crops, mono
   index captions, scroll-snap)
   ========================================================================== */

.film-section { padding-inline: 0; }

.film-section .section-inner {
  padding-inline: var(--pad);
  max-width: calc(var(--max) + 2 * var(--pad));
}

.film-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.film-head .section-title { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }

.film-hint {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  white-space: nowrap;
}

.film-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  /* first/last items align with the content column */
  padding-inline: max(var(--pad), calc((100vw - var(--max)) / 2));
  padding-bottom: 0.9rem; /* room for the scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--concrete-2) transparent;
}

.film-strip::-webkit-scrollbar { height: 6px; }
.film-strip::-webkit-scrollbar-track { background: transparent; }
.film-strip::-webkit-scrollbar-thumb { background: var(--concrete-2); }
.film-strip::-webkit-scrollbar-thumb:hover { background: var(--concrete-3); }

.film-item {
  flex: 0 0 auto;
  margin: 0;
  scroll-snap-align: start;
}

.film-item button {
  display: block;
  padding: 0;
  overflow: hidden;
  height: clamp(300px, 46vh, 440px);
}

.film-item img {
  height: 100%;
  width: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* portrait crops break the rhythm every few frames */
.film-item.tall img { aspect-ratio: 4 / 5; }

.film-item button:hover img { transform: scale(1.03); }

.film-item figcaption {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-top: 0.55rem;
}

@media (max-width: 700px) {
  .film-item button { height: clamp(240px, 38vh, 320px); }
}

/* ==========================================================================
   Highlights — Twenty-one things you'll love
   ========================================================================== */

.highlights-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.highlights-head .section-title { margin-bottom: 0; }

.highlights-tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.7;
  color: var(--muted);
  max-width: 30ch;
  text-align: right;
  flex-shrink: 0;
}

.highlights-grid {
  list-style: none;
  counter-reset: highlight;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(2rem, 4vw, 3.5rem);
  border-top: 1px solid var(--ink);
}

.highlights-grid li {
  counter-increment: highlight;
  position: relative;
  padding: 1.8rem 0 1.8rem 4rem;
  border-bottom: 1px solid var(--line);
}

/* hollow numerals — the brand's outline-type motif */
.highlights-grid li::before {
  content: counter(highlight, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.55rem;
  font-family: var(--sans);
  font-stretch: 125%;
  font-weight: 900;
  font-size: 2rem;
  line-height: 1;
  color: var(--ink);
  transition: color 0.35s ease;
}

@supports (-webkit-text-stroke: 1px black) {
  .highlights-grid li::before {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--ink);
  }
  .highlights-grid li:hover::before {
    color: var(--ink);
    -webkit-text-stroke: 1.5px var(--ink);
  }
}

.highlights-grid h3 {
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 0.4rem;
}

.highlights-grid p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted);
}

@media (max-width: 1024px) {
  .highlights-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .highlights-head { flex-direction: column; align-items: flex-start; }
  .highlights-tag { text-align: left; }
  .highlights-grid { grid-template-columns: 1fr; }
}

/* staged reveal — hidden items, fade-up entrance, editorial controls */
.highlights-grid li.hl-hidden { display: none; }

.highlights-grid li.hl-in {
  animation: hl-fade-up 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
@keyframes hl-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.highlights-reveal {
  text-align: center;
  padding-top: 2.75rem;
}
.reveal-tease {
  max-width: 52ch;
  margin: 0 auto 1.5rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--muted);
}
.reveal-btn {
  display: inline-block;
  padding: 0.95rem 1.9rem;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.reveal-btn:hover { background: var(--ink); color: var(--paper); }
.reveal-btn:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
.reveal-btn-done { background: var(--volt); border-color: var(--volt); }
.reveal-btn-done:hover { background: var(--ink); border-color: var(--ink); }
.reveal-progress {
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .highlights-grid li.hl-in { animation: none; }
}

/* ==========================================================================
   Full-bleed photo break
   ========================================================================== */

.photo-break { line-height: 0; }

.photo-break img {
  width: 100%;
  height: clamp(420px, 72vh, 780px);
  object-fit: cover;
}

/* ==========================================================================
   Upgrades — $625,624 invested
   ========================================================================== */

.upgrades-banner {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(3rem, 7vw, 5rem) clamp(2rem, 6vw, 4.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 4rem);
  flex-wrap: wrap;
}

.upgrades-banner h2 {
  font-family: var(--sans);
  font-stretch: 125%;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.05;
  max-width: 24ch;
}

/* the one charged moment: the number goes volt */
.upgrades-total {
  font-family: var(--sans);
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--volt);
}

.upgrades-body {
  background: var(--bone);
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 4rem);
}

.upgrades-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2.5rem, 6vw, 6rem);
  row-gap: 0.4rem;
  margin-top: 1.5rem;
}

.upgrades-grid li { padding: 1.05rem 0 1.15rem; }

.u-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
}

.u-label { font-size: 0.92rem; color: rgba(17, 18, 20, 0.78); }

.u-amt {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
}

/* proportional volt bars, animated in when the section scrolls into view */
.u-bar {
  display: block;
  height: 3px;
  margin-top: 0.7rem;
  background: var(--concrete-1);
  overflow: hidden;
}

.u-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--volt);
  transition: width 1.4s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.upgrades-section.in-view .u-bar i { width: var(--pct); }

@media (prefers-reduced-motion: reduce) {
  .u-bar i { transition: none; width: var(--pct); }
}

.upgrades-note {
  margin-top: 2rem;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 90ch;
}

@media (max-width: 760px) {
  .upgrades-grid { grid-template-columns: 1fr; }
  .upgrades-total { font-size: clamp(2.4rem, 11vw, 3.2rem); }
}

/* ---------- donut breakdown ---------- */

.donut-wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  margin-top: 1.75rem;
}

.donut-chart svg {
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
  margin: 0 auto;
}

.donut-seg {
  cursor: pointer;
  outline: none;
  transform-box: view-box;
  transform-origin: 50% 50%;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.donut-seg.active { transform: scale(1.045); }
#donut-svg.has-active .donut-seg:not(.active) { opacity: 0.38; }
.donut-seg:focus-visible path { stroke: var(--cobalt); stroke-width: 3; }
.donut-seg text {
  pointer-events: none;
  font-family: var(--mono);
  font-weight: 700; /* size set per label in donut.js */
}

.donut-caption {
  margin-top: 1.1rem;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.donut-legend {
  list-style: none;
  border-top: 1px solid var(--ink);
}
.dl-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  padding: 0.85rem 0.6rem 0.85rem 0.75rem;
  background: transparent;
  border: 0;
  border-left: 2px solid transparent;
  border-bottom: 1px solid rgba(17, 18, 20, 0.14);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--ink);
  transition: background 0.25s ease, opacity 0.25s ease, border-color 0.25s ease;
}
.dl-dot {
  width: 12px; height: 12px;
  background: var(--c);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.dl-name { display: block; font-size: 0.92rem; font-weight: 600; }
.dl-desc { display: block; font-size: 0.76rem; color: var(--muted); margin-top: 0.15rem; }
.dl-val { text-align: right; }
.dl-amt { display: block; font-family: var(--mono); font-weight: 700; font-size: 0.88rem; white-space: nowrap; }
.dl-pct { display: block; font-family: var(--mono); font-size: 0.72rem; color: var(--muted); margin-top: 0.15rem; }

.dl-row.active {
  background: rgba(17, 18, 20, 0.05);
  border-left-color: var(--volt);
}
.dl-row.active .dl-name { font-weight: 800; }
.dl-row.active .dl-amt { color: var(--cobalt); }
.dl-row.active .dl-dot { transform: scale(1.35); }
.donut-legend.has-active .dl-row:not(.active) { opacity: 0.45; }
.dl-row:focus-visible { outline: 2px solid var(--cobalt); outline-offset: -2px; }

.donut-detail {
  margin-top: 1.4rem;
  border: 1px solid rgba(17, 18, 20, 0.25);
  padding: 1rem 1.1rem;
  min-height: 6.2rem;
}
.dd-prompt { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }
.dd-head {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.dd-copy { margin-top: 0.45rem; font-size: 0.85rem; line-height: 1.6; color: rgba(17, 18, 20, 0.75); }

.donut-reveal { margin-top: 1.4rem; width: 100%; }

.upgrades-full { margin-top: 2.5rem; }
.upgrades-full-in { animation: hl-fade-up 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) both; }

.upgrade-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 2.5rem;
}
.stat-card {
  border: 1px solid rgba(17, 18, 20, 0.25);
  background: var(--paper);
  padding: 1.2rem 1.25rem;
}
.sc-value {
  font-family: var(--sans);
  font-stretch: 125%;
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}
.sc-label {
  margin-top: 0.35rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cobalt);
}
.sc-sub { margin-top: 0.25rem; font-size: 0.76rem; color: var(--muted); }

@media (max-width: 900px) {
  .donut-wrap { grid-template-columns: 1fr; }
  .upgrade-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .donut-seg, .dl-row, .dl-dot { transition: none; }
  .donut-seg.active { transform: none; }
  .dl-row.active .dl-dot { transform: none; }
  .upgrades-full-in { animation: none; }
}

/* ==========================================================================
   Property Details — sticky-note board
   (the one place real shadows are allowed: paper has to feel physical)
   ========================================================================== */

.stats-sub {
  margin-top: 0.9rem;
  max-width: 56ch;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted);
}

.notes-wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: start;
  margin-top: 2.25rem;
}

.notes-stack {
  display: flex;
  flex-direction: column;
  padding: 1rem 0.5rem 1rem 2.6rem; /* room for the leftward lift */
}

.note {
  position: relative;
  width: 100%;
  max-width: 330px;
  min-height: 84px;
  padding: 1.35rem 1.2rem 1.05rem;
  margin-top: -12px; /* stacked overlap */
  background: linear-gradient(180deg, #fdf3ae 0%, #f8e98c 100%);
  border: 0;
  cursor: pointer;
  text-align: left;
  transform: rotate(var(--tilt, 0deg));
  box-shadow: 0 2px 5px rgba(17, 18, 20, 0.16), 0 6px 14px rgba(17, 18, 20, 0.08);
  transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.32s ease, opacity 0.32s ease;
}
.note:first-child { margin-top: 0; }
.note:nth-child(1) { --tilt: -1.2deg; }
.note:nth-child(2) { --tilt: 0.9deg; }
.note:nth-child(3) { --tilt: -0.7deg; }
.note:nth-child(4) { --tilt: 1.1deg; }
.note:nth-child(5) { --tilt: -0.9deg; }
.note:nth-child(6) { --tilt: 0.6deg; }

.note-tab {
  position: absolute;
  top: -9px;
  left: 50%;
  width: 58px;
  height: 20px;
  transform: translateX(-50%) rotate(-1.2deg);
  background: rgba(198, 255, 61, 0.5); /* translucent volt tape */
}

.note-q {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--ink);
}

.note:hover { transform: rotate(var(--tilt, 0deg)) translateY(-3px); z-index: 5; }
.note:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; z-index: 5; }

.note-active,
.note-active:hover {
  transform: translateX(-30px) translateY(-6px) rotate(-2.2deg) scale(1.04);
  box-shadow: 0 14px 28px rgba(17, 18, 20, 0.28), 0 4px 8px rgba(17, 18, 20, 0.14);
  z-index: 10;
}
.notes-stack.has-active .note:not(.note-active) { opacity: 0.55; }

/* ---------- reveal panel ---------- */

.note-panel {
  position: relative;
  border: 1px solid rgba(17, 18, 20, 0.25);
  background: var(--paper);
  padding: 1.7rem 1.8rem;
  min-height: 400px;
}

.np-close {
  position: absolute;
  top: 0.8rem;
  right: 0.9rem;
  width: 34px;
  height: 34px;
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.np-close:hover { background: var(--ink); color: var(--paper); }
.np-close:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }

.np-item:not([hidden]) { animation: hl-fade-up 0.35s cubic-bezier(0.22, 0.61, 0.36, 1) both; }

.np-title {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-right: 3rem;
}

.np-facts { list-style: none; margin-top: 1rem; border-top: 1px solid var(--ink); }
.np-facts li { padding: 0.7rem 0 0.75rem; border-bottom: 1px solid rgba(17, 18, 20, 0.14); }
.np-facts strong {
  display: block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
}
.np-facts span { display: block; margin-top: 0.18rem; font-size: 0.78rem; color: var(--muted); }

.np-expl { margin-top: 1.2rem; font-size: 0.87rem; line-height: 1.65; color: rgba(17, 18, 20, 0.75); }
.np-disc { margin-top: 0.6rem; font-family: var(--mono); font-size: 0.62rem; line-height: 1.6; color: var(--muted); }

.np-ai {
  margin-top: 1.3rem;
  padding: 0.75rem 1.2rem;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.np-ai:hover { background: var(--volt); border-color: var(--volt); }
.np-ai:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }

.np-tax {
  margin-top: 1.2rem;
  border: 1px solid rgba(17, 18, 20, 0.2);
  padding: 0.95rem 1rem;
}
.np-tax-title {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.np-tax input[type="range"] {
  width: 100%;
  margin-top: 0.8rem;
  accent-color: var(--volt);
}
.np-tax-out {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
}
#np-tax-est { color: var(--cobalt); }

/* ---------- mini concierge inside the note panel ---------- */

.mini-chat {
  margin-top: 1.6rem;
  border-top: 1px solid var(--ink);
  padding-top: 1.1rem;
}
.mc-title {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cobalt);
}
.mc-thread {
  max-height: 240px;
  overflow-y: auto;
  margin-top: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.mc-msg {
  font-size: 0.85rem;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}
.mc-user {
  align-self: flex-end;
  max-width: 85%;
  padding: 0.5rem 0.75rem;
  background: rgba(17, 18, 20, 0.06);
  border: 1px solid rgba(17, 18, 20, 0.12);
}
.mc-assistant {
  align-self: flex-start;
  max-width: 95%;
  padding-left: 0.75rem;
  border-left: 2px solid var(--volt);
  color: rgba(17, 18, 20, 0.85);
}
.mc-form {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  margin-top: 0.9rem;
  border: 1px solid rgba(17, 18, 20, 0.3);
  padding: 0.5rem 0.5rem 0.5rem 0.75rem;
}

/* the same peeking avatar as the main chat, scaled for the panel */
.mc-avatar {
  position: absolute;
  right: 0.6rem;
  bottom: 100%;
  width: 44px;
  height: auto;
  pointer-events: none;
  user-select: none;
}

#mc-mic {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  background: transparent;
  color: rgba(17, 18, 20, 0.55);
  border: 1px solid rgba(17, 18, 20, 0.3);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
#mc-mic:hover { color: var(--volt); border-color: var(--volt); }
#mc-mic:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
#mc-mic.listening {
  background: var(--volt);
  border-color: var(--volt);
  color: var(--paper);
  animation: mic-pulse 1.2s ease-in-out infinite;
}
.mc-form textarea {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  resize: none;
  font: inherit;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink);
  outline: none;
  padding: 0.25rem 0;
}
.mc-form textarea::placeholder { color: var(--muted); }
#mc-send {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  background: var(--volt);
  color: var(--ink);
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: filter 0.2s ease;
}
#mc-send:hover { filter: brightness(1.06); }
#mc-send:disabled { opacity: 0.45; cursor: default; }
#mc-send:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.mc-note {
  margin-top: 0.5rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* video hero audio controls — mobile only; hidden until the video plays */
.vh-audio {
  position: absolute;
  right: 1rem;
  top: 5.5rem; /* clear of the fixed topbar; the address block lives bottom-left */
  z-index: 5;
  display: none;
  gap: 0.5rem;
}
.vh-audio button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: rgba(17, 18, 20, 0.55);
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.45);
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.vh-audio button:active { background: rgba(17, 18, 20, 0.8); }
.vh-audio button:focus-visible { outline: 2px solid var(--volt); outline-offset: 2px; }
@media (max-width: 900px) {
  .vh-audio:not([hidden]) { display: flex; }
}

/* swipe affordance — only shown when the stack is a horizontal strip */
.notes-swipe { display: none; }

@media (max-width: 900px) {
  .notes-swipe { display: block; margin-top: 0.1rem; }
  .notes-swipe-hint {
    font-family: var(--mono);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .notes-swipe-track {
    display: block;
    height: 2px;
    margin-top: 0.55rem;
    background: rgba(17, 18, 20, 0.12);
    overflow: hidden;
  }
  #notes-swipe-fill {
    display: block;
    height: 100%;
    width: 40%;
    background: var(--volt);
    transition: margin-left 0.1s linear, width 0.2s ease;
  }
}

@media (max-width: 900px) {
  .notes-wrap { grid-template-columns: 1fr; }
  .notes-stack {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.9rem;
    padding: 1rem 0.25rem 1.2rem;
    scrollbar-width: none;
  }
  .notes-stack::-webkit-scrollbar { display: none; }
  .note { flex: 0 0 210px; max-width: none; min-height: 96px; margin-top: 0; }
  .note-active,
  .note-active:hover { transform: translateY(-7px) rotate(-1.6deg) scale(1.03); }
  .note-panel { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .note, .np-close, .np-ai { transition: none; }
  .note:hover { transform: rotate(var(--tilt, 0deg)); }
  .note-active,
  .note-active:hover { transform: none; outline: 2px solid var(--ink); outline-offset: 2px; }
  .np-item:not([hidden]) { animation: none; }
}

/* ==========================================================================
   Section 5 — Stats grid (spec-label motif: mono labels, fielded blocks)
   ========================================================================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--line);
}

.stat {
  padding: 1.9rem 1.6rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-icon { width: 26px; height: 26px; color: var(--ink); margin-bottom: 0.9rem; }

.stat dt {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.stat dd {
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}

.stat-note {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
}

/* ==========================================================================
   Section 6 — Virtual tour
   ========================================================================== */

.tour-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  overflow: hidden;
}

.tour-embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ==========================================================================
   Section 7 — Floor plan
   ========================================================================== */

.floorplan-frame {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--ink);
}

.floorplan-frame img { width: 100%; }

.floorplan-zoom-hint {
  position: absolute;
  right: 1rem; bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  padding: 0.5rem 0.9rem;
  pointer-events: none;
}

/* ==========================================================================
   Section 8 — Map
   ========================================================================== */

.map-frame {
  aspect-ratio: 16 / 8;
  min-height: 340px;
  max-width: 100%;
  border: 1px solid var(--ink);
  overflow: hidden;
}

.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ==========================================================================
   Section 9 — Contact
   ========================================================================== */

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.contact-photo img {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  object-fit: cover;
}

.contact-name {
  font-family: var(--sans);
  font-stretch: 125%;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
}

.contact-title { font-size: 1rem; color: var(--muted); margin-top: 0.5rem; }

.contact-brokerage {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 0.7rem;
}

.contact-brokerage .dot { color: var(--cobalt); margin: 0 0.35rem; }

.contact-lines { list-style: none; margin: 1.6rem 0 2.2rem; }

.contact-lines a {
  font-family: var(--mono);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 2.1;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.contact-lines a:hover { border-bottom-color: var(--ink); }

.contact-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.btn {
  display: inline-block;
  padding: 0.95rem 1.7rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  transition: filter 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary { background: var(--volt); color: var(--ink); border: 1px solid var(--volt); }
.btn-primary:hover { filter: brightness(1.06); }

.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

@media (max-width: 820px) {
  .contact-inner { grid-template-columns: 1fr; text-align: center; }
  .contact-photo img { margin: 0 auto; }
  .contact-ctas { justify-content: center; }
  .btn { flex: 1 1 100%; }
}

/* ==========================================================================
   Section 10 — Footer (ink field)
   ========================================================================== */

.footer {
  background: var(--ink);
  color: var(--muted-light);
  padding: 3.5rem var(--pad);
  text-align: center;
}

.footer-logo {
  font-family: var(--sans);
  font-stretch: 125%;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1.2rem;
  color: var(--paper);
  letter-spacing: 0;
  margin-bottom: 0.8rem;
}

.footer-logo span { color: var(--paper); }

.footer-logo-img {
  height: 36px;
  width: auto;
  margin: 0 auto 1.1rem;
}

.footer-legal {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.footer-copy {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.4);
  max-width: 68ch;
  margin: 0 auto;
}

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

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(17, 18, 20, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}

.lightbox[hidden] { display: none; }

.lightbox-figure {
  max-width: min(1400px, 92vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox-figure figcaption {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.lightbox-close {
  position: absolute;
  top: 1.1rem; right: 1.4rem;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--paper);
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  line-height: 1;
  color: var(--paper);
  opacity: 0.65;
  padding: 1rem;
  transition: opacity 0.2s ease;
  user-select: none;
}

.lightbox-arrow:hover { opacity: 1; }
.lightbox-prev { left: clamp(0.25rem, 2vw, 1.5rem); }
.lightbox-next { right: clamp(0.25rem, 2vw, 1.5rem); }

.lightbox-arrow[hidden] { display: none; }

@media (max-width: 600px) {
  .lightbox-arrow { font-size: 2.2rem; padding: 0.6rem; }
}

/* ==========================================================================
   Deep links + nav clicks: keep section tops clear of the fixed topbar.
   --topbar-h is measured by hash-nav.js (fallback covers first paint).
   scrollIntoView and native anchor scrolling both respect scroll-margin.
   ========================================================================== */

section[id],
main[id] {
  scroll-margin-top: calc(var(--topbar-h, 72px) + 12px);
}


/* ==========================================================================
   Delayed incentive modal
   ========================================================================== */

.incentive-overlay[hidden] { display: none; } /* author display:flex must not defeat the hidden attribute */

.incentive-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 4vw, 3rem); /* the site stays visible around the edges */
  background: rgba(17, 18, 20, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.incentive-overlay.inc-open { opacity: 1; }

.incentive-modal {
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: min(88vh, 88svh);
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  transform: scale(0.96) translateY(10px);
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.incentive-overlay.inc-open .incentive-modal { transform: scale(1) translateY(0); }

.inc-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.inc-close:hover { background: var(--ink); color: var(--paper); }
.inc-close:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }

.inc-eyebrow {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cobalt);
}

.inc-headline {
  margin-top: 0.6rem;
  font-family: var(--sans);
  font-stretch: 125%;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: clamp(1.25rem, 3vw, 1.9rem);
  line-height: 1.1;
  padding-right: 3rem;
}

.inc-sub {
  margin-top: 0.8rem;
  max-width: 62ch;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
}

.inc-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.inc-card {
  border: 1px solid rgba(17, 18, 20, 0.25);
  padding: 1.1rem 1.15rem 1.2rem;
  background: var(--bone);
}

.inc-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cobalt);
}

.inc-amount {
  margin-top: 0.7rem;
  font-family: var(--sans);
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  letter-spacing: -0.01em;
  color: var(--volt);
}

.inc-title {
  margin-top: 0.15rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.inc-copy {
  margin-top: 0.55rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(17, 18, 20, 0.72);
}

.inc-cta {
  display: block;
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  background: var(--volt);
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: filter 0.2s ease;
}
.inc-cta:hover { filter: brightness(1.06); }
.inc-cta:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }

.inc-fine {
  margin-top: 0.9rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  line-height: 1.65;
  color: var(--muted);
}

@media (max-width: 760px) {
  .inc-cards { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .incentive-overlay, .incentive-modal { transition: none; }
  .incentive-modal { transform: none; }
}


/* ---------- location & neighborhood cards ---------- */

.loc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.75rem 0 2rem;
}
.loc-card {
  border: 1px solid rgba(17, 18, 20, 0.25);
  background: var(--paper);
  padding: 1.1rem 1.2rem 1.2rem;
}
.loc-t {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cobalt);
}
.loc-d {
  margin-top: 0.55rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(17, 18, 20, 0.75);
}
@media (max-width: 900px) {
  .loc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .loc-grid { grid-template-columns: 1fr; }
}

/* view-all-photos button under the gallery mosaic */
.gallery-all-wrap { text-align: center; margin-top: 1.75rem; }
