/* Clay Realty Co. — marketing site layer
   ----------------------------------------------------------------
   Built on the Clay design tokens (styles.css). Everything here is
   layout + marketing components; all color/type/spacing decisions
   resolve to design-system custom properties. No hardcoded hexes. */

/* ---- Reset / base tweaks --------------------------------------- */
html { scroll-behavior: smooth; }
body { font-size: var(--text-md); overflow-x: hidden; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--clay-100); color: var(--ink-900); }

/* ---- Layout ---------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.container-prose { max-width: 820px; }

.section { padding-block: clamp(var(--space-16), 8vw, var(--space-24)); }
.section-tight { padding-block: clamp(var(--space-12), 6vw, var(--space-16)); }
.section-ink { background: var(--surface-ink); color: var(--text-on-ink); }
.section-well { background: var(--surface-well); }
.section-ink h1, .section-ink h2, .section-ink h3, .section-ink h4 { color: var(--paper); }
/* …but headings inside light cards within dark sections stay ink */
.section-ink .card h3, .section-ink .card h4,
.section-ink .ops-card h3, .section-ink .ops-card h4,
.section-ink .team-card h4, .section-ink .post-card h3 { color: var(--ink); }

/* ---- Typography helpers ---------------------------------------- */
.eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--space-4);
}
.section-ink .eyebrow { color: var(--clay-100); }

.display-1 {
  font-size: clamp(2.75rem, 6.5vw, var(--h1-size));
  letter-spacing: var(--h1-tracking);
  line-height: var(--h1-leading);
  font-weight: var(--weight-medium);
}
.display-2 {
  font-size: clamp(2rem, 5vw, var(--h2-size));
  letter-spacing: var(--h2-tracking);
  line-height: var(--h2-leading);
  font-weight: var(--weight-medium);
  text-wrap: balance;
}
.display-3 {
  font-size: clamp(1.6rem, 3.5vw, var(--h3-size));
  letter-spacing: var(--h3-tracking);
  line-height: var(--h3-leading);
  font-weight: var(--weight-medium);
  text-wrap: balance;
}
.lede {
  font-size: clamp(var(--text-lg), 2.2vw, var(--text-xl));
  line-height: var(--leading-relaxed);
  color: var(--text-muted);
  max-width: 42ch;
  text-wrap: pretty;
}
.section-ink .lede { color: rgba(251, 252, 247, 0.72); }
.muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1; letter-spacing: var(--tracking-snug); }

/* ---- Buttons --------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--button-size);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--button-tracking);
  line-height: 1;
  padding: 15px var(--space-6);
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: scale(0.99); }
.btn svg { width: 18px; height: 18px; }

.btn-primary { background: var(--brand); color: var(--text-on-ink); }
.btn-primary:hover { background: var(--brand-hover); color: var(--text-on-ink); box-shadow: var(--shadow-md); }

.btn-accent { background: var(--accent); color: var(--text-on-clay); }
.btn-accent:hover { background: var(--accent-hover); color: var(--text-on-clay); box-shadow: var(--shadow-md); }

.btn-secondary { background: transparent; color: var(--text-strong); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--brand-tint); color: var(--text-strong); }

.btn-ghost { background: transparent; color: var(--text-strong); padding-inline: var(--space-3); }
.btn-ghost:hover { color: var(--accent); }

.section-ink .btn-secondary,
.door-primary .btn-secondary,
.estimator-result .btn-secondary { color: var(--paper); border-color: var(--border-onink); }
.section-ink .btn-secondary:hover,
.door-primary .btn-secondary:hover,
.estimator-result .btn-secondary:hover { background: rgba(251, 252, 247, 0.10); color: var(--paper); }
.door-primary .btn-ghost { color: var(--clay-100); }
.door-primary .btn-ghost:hover { color: var(--paper); }

.btn-lg { padding: 18px var(--space-8); font-size: var(--text-md); }
.btn-block { width: 100%; }

/* ---- Header / nav ---------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface-glass);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border-hairline);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: 92px;
}
.brand { display: inline-flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }
.brand svg, .brand img { height: 48px; width: auto; }
.nav-links { display: flex; align-items: center; gap: var(--space-1); }
.nav-links a {
  color: var(--text-body);
  font-weight: var(--weight-medium);
  font-size: var(--text-base);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.nav-links a:hover { background: var(--brand-tint); color: var(--ink-900); }
.nav-links a.is-active { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: var(--space-2); flex-shrink: 0; }
.nav-login { color: var(--text-body); font-weight: var(--weight-medium); font-size: var(--text-base); padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); white-space: nowrap; transition: color var(--dur-fast) var(--ease-out); }
.nav-login:hover { color: var(--accent); }
.nav-toggle { display: none; background: none; border: none; padding: var(--space-2); color: var(--ink); }
.nav-toggle svg { width: 24px; height: 24px; }

/* ---- Hero ------------------------------------------------------ */
.hero { position: relative; padding-block: clamp(var(--space-16), 9vw, 120px); }
.hero-inner { max-width: var(--container-max); }

/* Full-bleed image hero (homepage) */
.hero-image { position: relative; min-height: min(76vh, 660px); display: flex; align-items: center; background-size: cover; background-position: center; }
.hero-image .hero-copy { max-width: 58rem; }
.hero-image .hero-copy .lede, .hero-image .hero-copy .hero-note { max-width: 40rem; }
.hero-image .eyebrow { color: var(--clay-300); }
.hero-image .display-1 { color: var(--paper); }
.hero-image .lede { color: rgba(251, 252, 247, 0.86); max-width: 46ch; }
.hero-image .hero-note { color: rgba(251, 252, 247, 0.72); }
.hero-image .btn-secondary { color: var(--paper); border-color: rgba(251, 252, 247, 0.55); }
.hero-image .btn-secondary:hover { background: rgba(251, 252, 247, 0.12); color: var(--paper); }

/* Split hero: copy + image */
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(var(--space-10), 5vw, var(--space-16)); align-items: center; }
.hero-copy { max-width: 40rem; }
.hero-media { position: relative; }
.hero-media img { width: 100%; height: 100%; min-height: 440px; max-height: 560px; object-fit: cover; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); display: block; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-10); }
  .hero-media img { min-height: 260px; max-height: 340px; }
}
.hero .display-1 { margin: var(--space-5) 0 var(--space-6); max-width: 24ch; text-wrap: balance; }
.hero .lede { max-width: 52ch; margin-bottom: var(--space-8); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }
.hero-note { font-size: var(--text-sm); color: var(--text-muted); }

/* ---- Proof bar ------------------------------------------------- */
.proof-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  padding: var(--space-8);
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.proof-item .proof-figure {
  font-family: var(--font-mono);
  font-feature-settings: "tnum" 1;
  font-size: clamp(var(--text-3xl), 3.4vw, var(--text-5xl));
  font-weight: var(--weight-medium);
  color: var(--ink);
  letter-spacing: var(--tracking-tight);
  line-height: 1;
}
.proof-item .proof-figure .accent { color: var(--accent); }
.proof-item .proof-label { margin-top: var(--space-2); font-size: var(--text-sm); color: var(--text-muted); }

/* ---- Doors ----------------------------------------------------- */
.doors { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-6); }
.door {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-10);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.door:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.door-primary { background: var(--surface-ink); color: var(--text-on-ink); }
.door-primary .door-kicker { color: var(--clay-100); }
.door-primary .door-sub { color: rgba(251, 252, 247, 0.72); }
.door-secondary { background: var(--surface-card); }
.door-kicker { font-size: var(--text-xs); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--accent); }
.door h3 { font-size: var(--text-3xl); letter-spacing: var(--tracking-tight); }
.door-primary h3 { color: var(--paper); }
.door-sub { color: var(--text-muted); flex-grow: 1; }
.door .icon-badge { width: 48px; height: 48px; border-radius: var(--radius-md); display: grid; place-items: center; }
.door-primary .icon-badge { background: rgba(251, 252, 247, 0.10); color: var(--clay-100); }
.door-secondary .icon-badge { background: var(--accent-tint); color: var(--accent); }
.icon-badge svg { width: 24px; height: 24px; }

/* ---- Steps (how it works) -------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.steps-6 { grid-template-columns: repeat(3, 1fr); }
.step { padding: var(--space-8) 0; }
.step-num {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--clay-100);
  border: 1px solid var(--border-onink);
  width: 40px; height: 40px; border-radius: var(--radius-pill);
  display: grid; place-items: center;
  margin-bottom: var(--space-6);
}
.section-ink .step-num { border-color: var(--border-onink); }
.step h4 { font-size: var(--text-2xl); margin-bottom: var(--space-3); }
.step p { color: rgba(251, 252, 247, 0.66); }

/* ---- Ops grid -------------------------------------------------- */
.ops-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.ops-card {
  padding: var(--space-6);
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-base) var(--ease-out), translate var(--dur-base) var(--ease-out);
}
.ops-card:hover { box-shadow: var(--shadow-md); }
/* Hover: the card lifts slightly. Uses `translate` so it doesn't fight the scroll reveal's transform. */
.ops-card.reveal { transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out), translate var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
@media (hover: hover) { .ops-card:hover { translate: 0 -4px; } }
@media (prefers-reduced-motion: reduce) { .ops-card:hover { translate: none; } }
.ops-card .icon-badge { width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; margin-bottom: var(--space-5); }
.ops-card h4 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.ops-card p { font-size: var(--text-base); color: var(--text-muted); }

/* ---- Feature / who-for cards ----------------------------------- */
.card-grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  padding: var(--space-8);
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.card .icon-badge { width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; margin-bottom: var(--space-5); }
.card h3 { font-size: var(--text-2xl); margin-bottom: var(--space-3); letter-spacing: var(--tracking-snug); }
.card p { color: var(--text-muted); }

/* ---- Asset cards ----------------------------------------------- */
.asset-card { display: flex; flex-direction: column; gap: var(--space-3); position: relative; transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); }
.asset-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.asset-card p { flex-grow: 1; }

/* ---- Featured post --------------------------------------------- */
.featured-post {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.featured-post:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.featured-photo { position: relative; min-height: 320px; display: grid; place-items: center; }
.featured-icon { width: 56px; height: 56px; color: rgba(251,252,247,0.55); }
.featured-body { padding: clamp(var(--space-8), 4vw, var(--space-12)); display: flex; flex-direction: column; gap: var(--space-4); justify-content: center; }
.featured-body h2 { letter-spacing: var(--tracking-tight); }
.featured-body .post-meta { font-size: var(--text-md); }
@media (max-width: 820px) {
  .featured-post { grid-template-columns: 1fr; }
  .featured-photo { min-height: 200px; order: -1; }
}

/* ---- Category chips -------------------------------------------- */
.chip-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.chip {
  font-size: var(--text-base); font-weight: var(--weight-medium);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface-card); color: var(--text-body);
  transition: all var(--dur-fast) var(--ease-out);
}
.chip:hover { border-color: var(--clay-300); color: var(--accent); }
.chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---- Blog post cards ------------------------------------------- */
.post-card {
  display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-8);
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.post-tag { font-size: var(--text-xs); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--accent); }
.post-card h3 { font-size: var(--text-xl); letter-spacing: var(--tracking-snug); line-height: 1.2; color: var(--ink); }
.post-card p { color: var(--text-muted); font-size: var(--text-base); flex-grow: 1; }
.post-meta { font-size: var(--text-sm); color: var(--accent); }

/* ---- Listings: filter bar -------------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: flex-end;
  padding: var(--space-6);
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.filter { flex: 1 1 140px; min-width: 130px; }
.filter-reset { flex: 0 0 auto; }
.filter label { display: block; font-size: var(--text-xs); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--space-2); }
.filter .input { padding: 12px var(--space-4); }
.filter-reset { white-space: nowrap; }
.results-meta { margin-top: var(--space-5); font-size: var(--text-base); color: var(--text-muted); }

/* ---- Listings: cards ------------------------------------------- */
.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.listing-card {
  display: flex; flex-direction: column;
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.listing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.listing-photo { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; }
.listing-photo-icon { width: 40px; height: 40px; color: rgba(251,252,247,0.55); }
.listing-badge {
  position: absolute; top: var(--space-4); left: var(--space-4);
  font-size: var(--text-xs); font-weight: var(--weight-semibold);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--surface-glass); color: var(--ink-900);
  backdrop-filter: blur(6px);
}
.listing-body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); }
.listing-price { font-size: var(--text-3xl); font-weight: var(--weight-medium); color: var(--ink); line-height: 1; }
.listing-price span { font-size: var(--text-base); color: var(--text-muted); font-weight: var(--weight-regular); }
.listing-specs { font-size: var(--text-md); color: var(--text-muted); }
/* Hero headline: controlled two-line break on larger screens */
.hero-br { display: none; }
@media (min-width: 700px) { .hero-br { display: block; } }

/* Homepage hero video */
.hero-video { position: relative; overflow: hidden; }
.hero-video-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-video-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(12,17,28,0.82) 0%, rgba(12,17,28,0.58) 46%, rgba(12,17,28,0.12) 100%); }
.hero-video > .container { position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce) { .hero-video-media { display: none; } .hero-video { background: linear-gradient(90deg, rgba(12,17,28,0.82) 0%, rgba(12,17,28,0.58) 46%, rgba(12,17,28,0.12) 100%), url('assets/hero-poster.jpg') center/cover; } }

.choice-wide { grid-column: 1 / -1; }

/* Portal quick chooser: both logins visible without scrolling, even on phones */
.portal-quick { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); max-width: 560px; margin-bottom: var(--space-10); }
.portal-quick .btn { justify-content: center; padding-inline: var(--space-3); white-space: nowrap; }
@media (max-width: 340px) { .portal-quick { grid-template-columns: 1fr; } }

/* Floating pay-rent: mobile only, header button covers desktop */
@media (min-width: 901px) { .rent-fab { display: none !important; } }

/* Team: department sections with portrait tiles (BCA-style) */
.team-dept { border-top: 1px solid var(--border-hairline); padding: var(--space-2) 0; }
.team-dept:last-of-type { border-bottom: 1px solid var(--border-hairline); }
.team-dept summary { list-style: none; display: flex; align-items: center; justify-content: center; gap: var(--space-3); padding: var(--space-5) 0; cursor: pointer; }
.team-dept summary::-webkit-details-marker { display: none; }
.team-dept-head { display: flex; align-items: center; justify-content: center; gap: var(--space-3); padding: var(--space-5) 0; margin: 0; font-size: inherit; font-weight: inherit; letter-spacing: normal; }
.team-dept-label { font-size: var(--text-xs); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--accent); }
.team-dept-count { font-size: var(--text-xs); opacity: 0.5; }
.team-dept summary svg { width: 16px; height: 16px; opacity: 0.5; transition: transform 200ms var(--ease-out); }
.team-dept[open] summary svg { transform: rotate(45deg); }
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-8) var(--space-6); max-width: calc(4 * 190px + 3 * var(--space-6)); margin: 0 auto; padding: var(--space-2) 0 var(--space-10); }
.team-tile { text-align: center; width: 190px; }
/* Circle portraits: each person is cut out and sits on a soft tan glow */
.team-photo { position: relative; overflow: hidden; width: 190px; height: auto; aspect-ratio: 1; margin: 0 auto var(--space-4); border-radius: 50%; background: radial-gradient(circle at 50% 38%, #FBF4EE 0%, #F3E3D6 55%, #EAD3C2 100%); display: grid; place-items: center; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 8%; border-radius: inherit; display: block; transition: transform 700ms var(--ease-out); }
.team-tile h3, .team-names h3 { transition: color 400ms var(--ease-out); }
/* Hover: the photo eases in and every name, with or without a photo, turns clay */
@media (hover: hover) { .team-tile:hover .team-photo img { transform: scale(1.04); } .team-tile:hover h3, .team-names li:hover h3 { color: var(--accent); } }
@media (prefers-reduced-motion: reduce) { .team-photo img, .team-tile h3, .team-names h3 { transition: none; } .team-tile:hover .team-photo img { transform: none; } }
.team-photo span { font-family: var(--font-mono); font-size: var(--text-2xl); color: var(--accent); opacity: 0.7; letter-spacing: 0.04em; }
.team-tile h3, .team-names h3 { font-size: var(--text-lg); margin: 0 0 2px; letter-spacing: var(--tracking-snug); }
.team-tile .team-role, .team-names .team-role { font-size: var(--text-sm); opacity: 0.65; margin: 0; }
.team-names { list-style: none; margin: 0 auto var(--space-10); padding: 0; max-width: calc(4 * 190px + 3 * var(--space-6)); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-6); }
.team-names li { text-align: center; width: 190px; }
.team-names .team-bio { margin-top: var(--space-1); }
.team-tile-bio { font-size: var(--text-sm); opacity: 0.8; margin: var(--space-3) auto 0; max-width: 260px; line-height: 1.55; }
.team-bio { margin-top: var(--space-3); }
.team-bio summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--accent); }
.team-bio summary::-webkit-details-marker { display: none; }
.team-bio summary::after { content: "+"; font-family: var(--font-mono); transition: transform 200ms var(--ease-out); }
.team-bio[open] summary::after { transform: rotate(45deg); }
.team-bio[open] summary { color: var(--ink); }
.team-bio .team-tile-bio { margin-top: var(--space-2); }
@media (max-width: 900px) { .team-grid, .team-names { max-width: calc(3 * 190px + 2 * var(--space-6)); } }
/* Photo coming soon: an empty outlined circle with initials */
.team-photo.team-photo-empty { background: transparent; box-shadow: inset 0 0 0 1.5px var(--clay-300, #CE8B5D); }
.team-photo.team-photo-empty span { font-size: var(--text-3xl, 2rem); opacity: 0.85; }
/* Mini sections inside a department, e.g. Property managers: Multifamily, Single-family */
.team-sub-label { display: flex; align-items: center; justify-content: center; gap: var(--space-4); max-width: calc(4 * 190px + 3 * var(--space-6)); margin: 0 auto var(--space-6); font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); opacity: 0.6; }
.team-sub-label::before, .team-sub-label::after { content: ""; flex: 1; height: 1px; background: var(--border-hairline); }
/* Leadership: larger portraits (phones keep the standard two-across tiles) */
@media (min-width: 641px) {
  .team-dept-lead .team-grid { max-width: calc(3 * 250px + 2 * var(--space-6)); }
  .team-dept-lead .team-tile, .team-dept-lead .team-photo { width: 250px; }
  .team-dept-lead .team-tile h3 { font-size: var(--text-xl); }
}
/* Even rows: 5, 6 or 9 people sit three across so nobody ends up alone on a row */
@media (min-width: 641px) {
  .team-grid:has(> :nth-child(5):last-child), .team-grid:has(> :nth-child(6):last-child), .team-grid:has(> :nth-child(9):last-child),
  .team-names:has(> :nth-child(5):last-child), .team-names:has(> :nth-child(6):last-child), .team-names:has(> :nth-child(9):last-child) { max-width: calc(3 * 190px + 2 * var(--space-6)); }
}
@media (min-width: 641px) and (max-width: 900px) {
  .team-grid:has(> :nth-child(4):last-child), .team-names:has(> :nth-child(4):last-child),
  .team-grid:has(> :nth-child(10):last-child) { max-width: calc(2 * 190px + var(--space-6)); }
}
/* Ten people sit five across on wide screens (two rows of five) */
@media (min-width: 1120px) { .team-grid:has(> :nth-child(10):last-child) { max-width: calc(5 * 190px + 4 * var(--space-6)); } }
@media (max-width: 640px) { .team-grid { max-width: calc(2 * 190px + var(--space-4)); gap: var(--space-6) var(--space-4); } .team-tile { width: calc((100% - var(--space-4)) / 2); } .team-photo { width: 100%; } .team-names { max-width: calc(2 * 190px + var(--space-4)); gap: var(--space-5) var(--space-4); } .team-names li { width: calc((100% - var(--space-4)) / 2); } }

/* Pay rent nav button */
.btn-payrent { white-space: nowrap; }
@media (max-width: 900px) { .nav-actions .btn-payrent { display: none; } }

/* Blog image cards + pagination */
.post-card.has-img { padding: 0; overflow: hidden; }
.post-card-img { height: 160px; background-size: cover; background-position: center; }
.post-card-body { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); flex: 1; }
.blog-pages { display: flex; justify-content: center; gap: var(--space-2); margin-top: var(--space-10); flex-wrap: wrap; }
.page-btn { min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--border-hairline); background: var(--surface-card); border-radius: 10px; font: inherit; color: var(--ink); cursor: pointer; transition: all 150ms var(--ease-out); }
.page-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.page-btn.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.page-btn:disabled { opacity: 0.35; cursor: default; }

/* Blog search + list */
.blog-controls { display: grid; gap: var(--space-4); }
.blog-search { position: relative; max-width: 480px; }
.blog-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; opacity: 0.5; }
.blog-search .input { padding-left: 44px; }
.post-rows { display: flex; flex-direction: column; border-top: 1px solid var(--border-hairline); }
.post-row { display: flex; align-items: baseline; gap: var(--space-4); padding: 14px 4px; border-bottom: 1px solid var(--border-hairline); color: var(--ink); text-decoration: none; transition: background 150ms var(--ease-out); }
.post-row:hover { background: var(--paper-alt); }
.post-row-tag { flex: 0 0 150px; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.6; }
.post-row-title { flex: 1; font-weight: var(--weight-medium); }
.post-row-go { opacity: 0.4; }
.post-row:hover .post-row-go { opacity: 1; color: var(--accent); }
@media (max-width: 640px) { .post-row { flex-wrap: wrap; gap: 4px 12px; } .post-row-tag { flex-basis: 100%; } }

/* Listing detail: organized AppFolio content */
.fact-grid { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-4) 0 var(--space-2); }
.fact { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; background: var(--paper-alt); border: 1px solid var(--border-hairline); border-radius: var(--radius-pill); font-size: var(--text-sm); font-weight: var(--weight-medium); }
.fact svg { width: 15px; height: 15px; color: var(--accent); }
.promo-box { display: flex; gap: var(--space-3); align-items: flex-start; background: var(--paper-alt); border: 1px solid var(--border-hairline); border-left: 3px solid var(--accent); border-radius: var(--radius-lg); padding: var(--space-4) var(--space-5); margin-bottom: var(--space-5); }
.promo-box svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.promo-box p { margin: 0; font-weight: var(--weight-medium); }
.desc-hed { font-size: var(--text-lg); margin: var(--space-6) 0 var(--space-2); letter-spacing: var(--tracking-snug); }
.desc-list { list-style: none; padding: 0; margin: var(--space-3) 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px var(--space-6); }
.desc-list li { display: flex; gap: 8px; align-items: baseline; font-size: var(--text-base); }
.desc-list svg { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; transform: translateY(2px); }
@media (max-width: 640px) { .desc-list { grid-template-columns: 1fr; } }

/* Fees box on listing detail */
.fees-box { margin-top: var(--space-6); border: 1px solid var(--border-hairline); border-radius: var(--radius-lg); padding: var(--space-5) var(--space-6); background: var(--surface-card, #fff); }
.fees-box h3 { font-size: var(--text-lg); margin: 0 0 var(--space-3); }
.fees-box table { width: 100%; border-collapse: collapse; }
.fees-box td { padding: 10px 0; border-top: 1px solid var(--border-hairline); font-size: var(--text-base); vertical-align: top; }
.fees-box tr:first-child td { border-top: none; }
.fees-box td:first-child { font-weight: var(--weight-medium); white-space: nowrap; padding-right: var(--space-6); }
.fees-box td:last-child { opacity: 0.85; }

/* Contact modal */
.modal-backdrop[hidden] { display: none !important; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(20,28,43,0.55); backdrop-filter: blur(3px); z-index: 100; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: var(--space-8) var(--space-4); }
.modal { position: relative; background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg, 0 24px 64px rgba(20,28,43,0.35)); max-width: 560px; width: 100%; padding: var(--space-8); margin: auto 0; }
.modal-close { position: absolute; top: 14px; right: 16px; border: none; background: none; font-size: 26px; line-height: 1; color: var(--ink); opacity: 0.5; cursor: pointer; }
.modal-close:hover { opacity: 1; }
.modal .field { margin-bottom: var(--space-4); }
.cm-optional { margin-top: var(--space-5); border-top: 1px solid var(--border-hairline); padding-top: var(--space-4); }
.cm-optional summary { cursor: pointer; font-weight: var(--weight-medium); color: var(--accent); list-style: none; }
.cm-optional summary::-webkit-details-marker { display: none; }
.cm-optional summary::after { content: " +"; font-family: var(--font-mono); }
.cm-optional[open] summary::after { content: " \2212"; }
.cm-optional > .field, .cm-optional > .field-row { margin-top: var(--space-4); }
.cm-check { display: inline-flex; align-items: center; gap: 6px; margin-right: var(--space-5); }
.cm-consent { font-size: 10px; opacity: 0.55; line-height: 1.6; margin-top: var(--space-4); }
.cm-error { color: #a33; font-size: var(--text-sm); margin-top: var(--space-3); }
.cm-done { text-align: center; padding: var(--space-6) 0; }

.gmaps-link { margin-top: var(--space-3); }
.maplibregl-popup-content { padding: 0; border-radius: 12px; overflow: hidden; }

/* Gallery arrows + letterboxing for small originals */
.detail-hero { position: relative; }
.detail-hero.fit-contain { background-size: contain !important; background-repeat: no-repeat; background-color: #141c2b; }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(251,252,247,0.92); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-md); transition: all 150ms var(--ease-out); z-index: 2; }
.hero-nav:hover { background: var(--paper); transform: translateY(-50%) scale(1.06); }
.hero-nav.prev { left: 14px; }
.hero-nav.next { right: 14px; }
.hero-nav svg { width: 22px; height: 22px; }

/* Listing photo gallery */
.detail-thumbs { display: flex; gap: var(--space-2); overflow-x: auto; padding: var(--space-3) 0 var(--space-2); scroll-snap-type: x proximity; }
.detail-thumbs .thumb { flex: 0 0 96px; height: 68px; border-radius: 8px; border: 2px solid transparent; background-size: cover; background-position: center; cursor: pointer; padding: 0; scroll-snap-align: start; opacity: 0.75; transition: all 150ms var(--ease-out); }
.detail-thumbs .thumb:hover { opacity: 1; }
.detail-thumbs .thumb.is-active { border-color: var(--accent); opacity: 1; }

/* No-photo tile: branded, never a stock image */
.listing-photo.no-photo { background: linear-gradient(160deg, var(--paper-alt), var(--clay-100, #EBD5C6)); display: flex; align-items: center; justify-content: center; }
.listing-photo.no-photo::after { content: "Photos on request"; font-size: var(--text-xs); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--accent); opacity: 0.7; }

/* Estimator result note */
.est-note { font-size: 10px; opacity: 0.55; line-height: 1.6; margin: var(--space-3) 0 0; }

/* Article sources: fine print, below the CTA */
/* ---- Related articles ------------------------------------------ */
.article-related { max-width: 720px; margin: var(--space-12) auto 0; padding-top: var(--space-6); border-top: 1px solid var(--border-hairline); }
.article-related ul { list-style: none; padding: 0; margin: var(--space-4) 0 0; }
.article-related li { padding: var(--space-3) 0; border-bottom: 1px solid var(--border-hairline); }
.article-related li a { font-size: var(--text-lg); font-weight: var(--weight-medium); color: var(--text-strong); display: block; }
.article-related li a:hover { color: var(--accent); }
.article-related .article-related-service { margin: var(--space-5) 0 0; font-weight: var(--weight-semibold); }
.article-related .article-related-service a { color: var(--accent); }

.article-sources { max-width: 720px; margin: var(--space-8) auto 0; padding-top: var(--space-3); border-top: 1px solid var(--border-hairline); opacity: 0.5; }
.article-sources p { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0; }
.article-sources ul { list-style: none; padding: 0; margin: var(--space-1) 0 0; }
.article-sources li { font-size: 10px; line-height: 1.7; padding: 0; }
.article-sources li a { text-decoration: underline; color: inherit; }

/* City autocomplete dropdown */
.ac-wrap { position: relative; }
.ac-list { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--paper); border: 1px solid var(--border-hairline); border-radius: 12px; box-shadow: 0 12px 32px rgba(20,28,43,0.14); z-index: 60; overflow: hidden; }
.ac-item { display: block; width: 100%; text-align: left; padding: 12px 16px; font: inherit; font-size: var(--text-base); background: none; border: none; color: var(--ink); cursor: pointer; }
.ac-item.is-hl, .ac-item:hover { background: var(--paper-alt); }

/* Detail-page map pin (icon, not price) */
.detail-pin { width: 36px; height: 36px; color: var(--accent); filter: drop-shadow(0 2px 4px rgba(20,28,43,0.35)); }
.detail-pin svg { width: 100%; height: 100%; fill: var(--paper); }

.pets-ok { color: var(--accent); display: inline-flex; align-items: center; gap: 4px; font-size: 0.85em; } .pets-ok svg { width: 12px; height: 12px; }
.listing-avail { font-size: var(--text-sm); color: var(--success); margin-top: 2px; }
.listing-loc { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-base); color: var(--text-body); margin-top: var(--space-1); }
.listing-loc svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
.listing-actions { display: flex; gap: var(--space-2); margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--border-hairline); }
.btn-sm { padding: 9px var(--space-4); font-size: var(--text-sm); }

/* ---- Listing detail page ----------------------------------------- */
.detail-hero {
  aspect-ratio: 21 / 9;
  border-radius: var(--radius-xl);
  background-size: cover; background-position: center;
  box-shadow: var(--shadow-md);
  margin: var(--space-6) 0 var(--space-10);
}
.detail-grid { display: grid; grid-template-columns: 1.5fr 0.9fr; gap: var(--space-10); align-items: start; }
.detail-specs { color: var(--text-muted); font-size: var(--text-md); margin: var(--space-3) 0 var(--space-2); }
.detail-availline { display: flex; align-items: center; gap: var(--space-2); color: var(--success); font-weight: var(--weight-semibold); font-size: var(--text-base); margin-bottom: var(--space-6); }
.detail-availline svg { width: 18px; height: 18px; }
.detail-desc p { color: var(--text-body); line-height: var(--leading-relaxed); margin-bottom: var(--space-4); max-width: 62ch; }
.detail-map { height: 320px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-hairline); box-shadow: var(--shadow-sm); }
.detail-side { position: sticky; top: 110px; }
.detail-card { padding: var(--space-8); }
.detail-price { font-size: var(--text-4xl); font-weight: var(--weight-medium); color: var(--ink); letter-spacing: var(--tracking-tight); }
.detail-price span { font-size: var(--text-md); color: var(--text-muted); font-weight: var(--weight-regular); }
.share-row { display: flex; justify-content: center; gap: var(--space-2); margin-top: var(--space-4); border-top: 1px solid var(--border-hairline); padding-top: var(--space-4); }
.share-row .btn { font-size: var(--text-sm); flex: 1; justify-content: center; }

/* Amenities + Appliances side by side */
.detail-lists { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6) var(--space-8); margin-top: var(--space-8); align-items: start; }
@media (max-width: 480px) { .detail-lists { grid-template-columns: 1fr; } }
@media (max-width: 880px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .detail-hero { aspect-ratio: 16 / 10; }
}

/* ---- Listings: List / Map views ---------------------------------- */
.view-switch {
  display: inline-flex;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--surface-card);
  overflow: hidden;
}
.view-switch button {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 10px 20px;
  font-size: var(--text-base); font-weight: var(--weight-semibold);
  color: var(--text-body); background: transparent; border: 0;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.view-switch button svg { width: 17px; height: 17px; }
.view-switch button.is-active { background: var(--ink); color: var(--paper); }

.map-panel {
  display: none;
  height: 72vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-md);
}
#listingsMap { width: 100%; height: 100%; }
.listings-layout.view-map .listings-col { display: none; }
.listings-layout.view-map .map-panel { display: block; }
.price-pin {
  display: inline-block;
  background: var(--surface-card);
  color: var(--ink);
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  transform: translate(-50%, -50%);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.price-pin:hover { background: var(--ink); color: var(--paper); transform: translate(-50%, -50%) scale(1.06); }
.leaflet-popup-content-wrapper { border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.leaflet-popup-content { margin: 0; width: 220px !important; }
.map-pop-photo { height: 110px; background-size: cover; background-position: center; border-radius: var(--radius-md) var(--radius-md) 0 0; }
.map-pop-body { padding: var(--space-3) var(--space-4) var(--space-4); display: flex; flex-direction: column; gap: 2px; font-family: var(--font-sans); }
.map-pop-body strong { font-family: var(--font-mono); font-size: var(--text-md); color: var(--ink); }
.map-pop-body span { color: var(--text-muted); font-size: var(--text-sm); }
.map-pop-body a { color: var(--accent); font-weight: var(--weight-semibold); font-size: var(--text-sm); margin-top: var(--space-2); }
.results-row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); margin-top: var(--space-5); flex-wrap: wrap; }
@media (max-width: 620px) {
  .map-panel { height: 62vh; }
}
@media (max-width: 620px) {
  .listings-layout .listing-grid { grid-template-columns: 1fr; }
}

.listing-empty { text-align: center; padding: var(--space-20) var(--space-6); }
.listing-empty .icon-badge { width: 56px; height: 56px; border-radius: var(--radius-pill); background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; margin: 0 auto var(--space-5); }
.listing-empty .icon-badge svg { width: 26px; height: 26px; }
.listing-empty h3 { font-size: var(--text-2xl); margin-bottom: var(--space-2); }

@media (max-width: 1000px) {
  .listing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .filter { flex-basis: 100%; }
  .listing-grid { grid-template-columns: 1fr; }
}

/* ---- Quote / testimonial --------------------------------------- */
.quote-block { max-width: 900px; }
.quote-block blockquote {
  font-size: var(--quote-size);
  line-height: var(--quote-leading);
  letter-spacing: var(--tracking-tight);
  font-weight: var(--weight-medium);
  color: var(--paper);
  margin: 0;
}
.quote-block .quote-mark { color: var(--clay-100); }
.quote-block cite { display: block; margin-top: var(--space-6); font-style: normal; font-size: var(--text-md); color: rgba(251, 252, 247, 0.66); }

/* ---- FAQ accordion --------------------------------------------- */
.faq-list { max-width: 860px; border-top: 1px solid var(--border-hairline); }
.faq { border-bottom: 1px solid var(--border-hairline); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-6);
  padding: var(--space-6) var(--space-2);
  cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: clamp(var(--text-lg), 2.2vw, var(--text-2xl));
  font-weight: var(--weight-medium); letter-spacing: var(--tracking-snug); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex-shrink: 0; color: var(--accent); transition: transform var(--dur-base) var(--ease-out); }
.faq summary i svg { width: 24px; height: 24px; }
.faq[open] summary i { transform: rotate(45deg); }
.faq-body { padding: 0 var(--space-2) var(--space-8); max-width: 68ch; }
.faq-body p { color: var(--text-muted); font-size: var(--text-md); margin-bottom: var(--space-4); }
.faq-body p:last-child { margin-bottom: 0; }
.faq-cta a { color: var(--accent); font-weight: var(--weight-semibold); }
.faq-cta a:hover { color: var(--clay-700); }

/* ---- Founder block --------------------------------------------- */
.founder {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-8);
  align-items: center;
  padding: var(--space-10);
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}
.founder-avatar {
  width: 88px; height: 88px; border-radius: var(--radius-pill);
  background: var(--ink); color: var(--clay-100);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: var(--text-2xl); letter-spacing: 0.02em;
}
.founder h3 { font-size: var(--text-3xl); letter-spacing: var(--tracking-tight); margin-bottom: var(--space-2); }
.founder p { color: var(--text-muted); max-width: 52ch; }

/* ---- CTA panel ------------------------------------------------- */
.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-10);
  padding: var(--space-12);
  background: var(--surface-warm);
  border: 1px solid var(--clay-100);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}
.cta-panel .btn { flex-shrink: 0; }
@media (max-width: 760px) {
  .cta-panel { flex-direction: column; align-items: flex-start; padding: var(--space-8); }
  .cta-panel .btn { width: 100%; }
}

/* ---- Team cards ------------------------------------------------ */
.team-card {
  padding: var(--space-8);
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.team-avatar {
  width: 64px; height: 64px; border-radius: var(--radius-pill);
  background: var(--accent-tint); color: var(--accent);
  display: grid; place-items: center; margin-bottom: var(--space-5);
  font-family: var(--font-mono); font-size: var(--text-xl); letter-spacing: 0.02em;
}
.team-card h4 { font-size: var(--text-xl); letter-spacing: var(--tracking-snug); margin-bottom: var(--space-1); }
.team-role { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--accent); text-transform: uppercase; letter-spacing: var(--tracking-wide); margin-bottom: var(--space-3); }

/* ---- Section heads --------------------------------------------- */
.section-head { max-width: 720px; margin-bottom: var(--space-12); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lede { margin-top: var(--space-4); }
.section-head.center .lede { margin-inline: auto; }

/* ---- Footer ---------------------------------------------------- */
.site-footer { background: var(--surface-ink); color: var(--text-on-ink); padding-block: var(--space-20) var(--space-10); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--space-8); padding-bottom: var(--space-12); border-bottom: 1px solid var(--border-onink); }
.footer-top > * { min-width: 0; }
/* The email address is one long unbreakable word: let it wrap rather than
   forcing the whole footer wider than the screen on a phone. */
.footer-brand p, .footer-contact a { overflow-wrap: break-word; }
.footer-brand svg, .footer-brand img { height: 42px; margin-bottom: var(--space-5); }
.footer-brand p { color: rgba(251, 252, 247, 0.60); max-width: 34ch; font-size: var(--text-base); }
.footer-contact { margin-top: var(--space-5); line-height: var(--leading-relaxed); }
.footer-contact a { color: rgba(251, 252, 247, 0.85); font-weight: var(--weight-medium); }
.footer-contact a:hover { color: var(--paper); }
.footer-col h5 { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: var(--tracking-caps); color: var(--clay-100); margin-bottom: var(--space-5); font-weight: var(--weight-semibold); }
.footer-col a { display: block; color: rgba(251, 252, 247, 0.78); padding-block: var(--space-2); font-size: var(--text-base); }
.footer-col a:hover { color: var(--paper); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding-top: var(--space-8); flex-wrap: wrap; }
.footer-bottom p { font-size: var(--text-sm); color: rgba(251, 252, 247, 0.50); }
.footer-bottom .mono { color: rgba(251, 252, 247, 0.66); }

/* ---- Forms ----------------------------------------------------- */
.field { margin-bottom: var(--space-5); }
.field label { display: block; font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--text-strong); margin-bottom: var(--space-2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.input {
  width: 100%;
  font-family: inherit;
  font-size: var(--text-md);
  color: var(--ink);
  background: var(--surface-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 14px var(--space-4);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--clay-50); }
select.input { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%236E7068' stroke-width='1.75' stroke-linecap='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right var(--space-4) center; padding-right: var(--space-10); }

/* ---- Quiz / stepper -------------------------------------------- */
.quiz {
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: clamp(var(--space-6), 4vw, var(--space-12));
}
.quiz-progress { margin-bottom: var(--space-10); }
.quiz-progress-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-3); font-size: var(--text-sm); color: var(--text-muted); }
.quiz-time { display: inline-flex; align-items: center; gap: var(--space-2); }
.quiz-time svg { width: 15px; height: 15px; }
.quiz-bar { height: 6px; background: var(--paper-alt); border-radius: var(--radius-pill); overflow: hidden; }
.quiz-bar-fill { height: 100%; width: 20%; background: var(--accent); border-radius: var(--radius-pill); transition: width var(--dur-slow) var(--ease-out); }

.quiz-step { display: none; border: 0; padding: 0; margin: 0; min-inline-size: auto; }
.quiz-step.is-active { display: block; animation: quizIn var(--dur-base) var(--ease-out); }
.quiz-step .eyebrow { color: var(--accent); }
.quiz-step legend { padding: 0; margin-bottom: var(--space-6); }

@keyframes quizIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.quiz-step.shake { animation: shake 320ms var(--ease-out); }
@keyframes shake { 0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-6px)} 40%,80%{transform:translateX(6px)} }

.choice-grid { display: flex; flex-direction: column; gap: var(--space-3); }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice-face {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-lg); font-weight: var(--weight-medium); color: var(--text-strong);
  background: var(--surface-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.choice-face svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }
.choice:hover .choice-face { border-color: var(--clay-300); background: var(--surface-warm); }
.choice input:checked + .choice-face { border-color: var(--accent); background: var(--accent-tint); box-shadow: 0 0 0 1px var(--accent); }
.choice input:focus-visible + .choice-face { box-shadow: var(--shadow-focus); }

.reassure { display: flex; align-items: flex-start; gap: var(--space-3); margin-top: var(--space-6); padding: var(--space-5); background: var(--success-tint); border-radius: var(--radius-md); }
.reassure svg { width: 22px; height: 22px; color: var(--success); flex-shrink: 0; }
.reassure p { font-size: var(--text-base); color: var(--ink-700); margin: 0; }

.quiz-nav { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); margin-top: var(--space-10); }
.quiz-nav .btn-accent { margin-left: auto; }

.quiz-done { text-align: center; padding: var(--space-8) 0; animation: quizIn var(--dur-slow) var(--ease-out); }
.done-mark { width: 72px; height: 72px; border-radius: var(--radius-pill); background: var(--success-tint); color: var(--success); display: grid; place-items: center; margin: 0 auto var(--space-6); }
.done-mark svg { width: 36px; height: 36px; }

.quiz-footnote { text-align: center; margin-top: var(--space-6); font-size: var(--text-sm); color: var(--text-muted); }

@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
  .choice-face { font-size: var(--text-md); padding: var(--space-4) var(--space-5); }
}

/* ---- Pill / tag ------------------------------------------------ */
.pill {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-sm); font-weight: var(--weight-medium);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--accent-tint); color: var(--clay-700);
}
.pill svg { width: 15px; height: 15px; }
.pill-ink { background: rgba(251, 252, 247, 0.10); color: var(--clay-100); }

/* ---- Pricing table --------------------------------------------- */
.fee-table { width: 100%; border-collapse: collapse; margin-top: var(--space-6); }
.fee-table tr { border-bottom: 1px solid var(--border-hairline); }
.fee-table tr:first-child { border-top: 1px solid var(--border-hairline); }
.fee-table td { text-align: left; padding: var(--space-6) var(--space-4); vertical-align: baseline; }
.fee-table .fee-name { font-weight: var(--weight-semibold); color: var(--text-strong); font-size: var(--text-md); width: 26%; }
.fee-table .fee-amount { font-family: var(--font-mono); font-feature-settings: "tnum" 1; font-size: var(--text-3xl); color: var(--accent); width: 22%; white-space: nowrap; letter-spacing: var(--tracking-tight); }
.fee-table .fee-desc { color: var(--text-muted); font-size: var(--text-md); }
@media (max-width: 680px) {
  .fee-table td { display: block; width: 100% !important; padding: 2px 0; }
  .fee-table tr { padding: var(--space-5) 0; }
  .fee-table .fee-amount { margin: var(--space-1) 0; }
}
.not-charged-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3) var(--space-8); margin-top: var(--space-6); }
.not-charged-list li { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-md); color: var(--paper); }
.not-charged-list svg { width: 18px; height: 18px; color: var(--clay-100); flex-shrink: 0; }
@media (max-width: 600px) { .not-charged-list { grid-template-columns: 1fr; } }

/* Onboarding steps (light) */
.ob-num { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--accent); border: 1px solid var(--border-strong); width: 40px; height: 40px; border-radius: var(--radius-pill); display: grid; place-items: center; margin-bottom: var(--space-5); }

/* ---- Photo-backed section: light wash, dark text ----------------- */
.section-photo { background-size: cover; background-position: center; }
.section-photo .display-1,
.section-photo .display-2 { color: var(--ink); }
.section-photo .lede { color: var(--ink-700); }
.section-photo .hero-note { color: var(--ink-700); }

/* ---- Editorial service list (homepage) --------------------------- */
.service-list { border-top: 1px solid var(--border-hairline); }
.service-row {
  display: grid;
  grid-template-columns: 72px 1fr 1.4fr;
  gap: var(--space-6);
  align-items: baseline;
  padding: var(--space-8) var(--space-2);
  border-bottom: 1px solid var(--border-hairline);
}
.service-num { font-size: var(--text-sm); color: var(--accent); }
.service-row h3 { font-size: clamp(var(--text-xl), 2.4vw, var(--text-3xl)); letter-spacing: var(--tracking-snug); color: var(--ink); }
.service-row p { color: var(--text-muted); font-size: var(--text-md); max-width: 52ch; }
@media (max-width: 760px) {
  .service-row { grid-template-columns: 48px 1fr; }
  .service-row p { grid-column: 2; }
}

/* ---- What we manage (homepage) ---------------------------------- */
.manage-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-6); align-items: stretch; }
.manage-doors { display: flex; flex-direction: column; gap: var(--space-6); }
.door-row {
  display: flex; align-items: center; gap: var(--space-6);
  flex-grow: 1;
  padding: var(--space-8);
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.door-row:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.door-row .icon-badge { width: 52px; height: 52px; border-radius: var(--radius-md); background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.door-row .icon-badge svg { width: 26px; height: 26px; }
.door-row h3 { font-size: var(--text-2xl); letter-spacing: var(--tracking-snug); margin-bottom: var(--space-1); color: var(--ink); }
.door-row p { color: var(--text-muted); font-size: var(--text-base); }
.door-row-arrow { margin-left: auto; color: var(--accent); flex-shrink: 0; }
.door-row-arrow svg, svg.door-row-arrow { width: 22px; height: 22px; }
.manage-includes { padding: var(--space-8); }
@media (max-width: 900px) { .manage-grid { grid-template-columns: 1fr; } }

/* ---- Topic tiles (Resources) ----------------------------------- */
.topic-tile { display: flex; flex-direction: column; }
.topic-tile h4 { color: var(--ink); }
.topic-tile p { flex-grow: 1; }
.topic-go { margin-top: var(--space-4); font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--accent); }
.topic-tile:hover .topic-go { color: var(--clay-700); }

/* ---- Portals --------------------------------------------------- */
.portal-card { display: flex; flex-direction: column; }
.portal-card p { color: var(--text-muted); }
.feature-list { margin: var(--space-5) 0 var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); flex-grow: 1; }
.feature-list li { display: flex; align-items: flex-start; gap: var(--space-3); font-size: var(--text-md); color: var(--text-body); }
.feature-list svg { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; margin-top: 3px; }
.portal-note { margin-top: var(--space-4); font-size: var(--text-sm); color: var(--text-muted); }
.portal-note a { color: var(--accent); font-weight: var(--weight-medium); }
.portal-powered { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-8); font-size: var(--text-sm); color: var(--text-muted); }
.portal-powered svg { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; }

/* ---- Article / prose ------------------------------------------- */
.article { padding-block: clamp(var(--space-12), 6vw, var(--space-16)); }
.article .article-cta { max-width: 720px; margin-inline: auto; }
/* Centered editorial column: text at 720, image a touch wider, all on one axis */
.article .container { max-width: 940px; }
.article .article-back { max-width: 720px; margin-inline: auto; }
.article-head { max-width: 720px; margin: 0 auto var(--space-8); }
.article-head .eyebrow { color: var(--accent); }
.article-head h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); letter-spacing: var(--tracking-tight); line-height: 1.08; margin: var(--space-4) 0 var(--space-5); text-wrap: balance; }
.article-meta { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; font-size: var(--text-sm); color: var(--text-muted); }
.article-meta .mono { color: var(--text-body); }
.article-hero-img {
  aspect-ratio: 16 / 7; border-radius: var(--radius-lg); margin-bottom: var(--space-10);
  display: grid; place-items: center; position: relative; overflow: hidden;
  box-shadow: var(--shadow-md);
}
.article-hero-img span { position: absolute; bottom: var(--space-4); right: var(--space-4); font-size: var(--text-xs); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: rgba(251,252,247,0.8); background: rgba(27,24,19,0.35); padding: var(--space-1) var(--space-3); border-radius: var(--radius-pill); backdrop-filter: blur(4px); }
.article-hero-img svg { width: 48px; height: 48px; color: rgba(251,252,247,0.65); }

.prose { max-width: 720px; margin-inline: auto; }
.prose > * + * { margin-top: var(--space-5); }
.prose p { font-size: var(--text-lg); line-height: var(--leading-relaxed); color: var(--ink-800, var(--text-body)); }
.prose h2 { font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl)); letter-spacing: var(--tracking-snug); margin-top: var(--space-12); }
.prose h3 { font-size: var(--text-xl); margin-top: var(--space-8); }
.prose ul, .prose ol { padding-left: var(--space-6); }
.prose li { font-size: var(--text-lg); line-height: var(--leading-relaxed); color: var(--text-body); margin-top: var(--space-2); list-style: disc; }
.prose ol li { list-style: decimal; }
.prose strong { color: var(--text-strong); font-weight: var(--weight-semibold); }
.prose a { color: var(--accent); font-weight: var(--weight-medium); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote, .prose .callout {
  margin-top: var(--space-8); padding: var(--space-6) var(--space-8);
  background: var(--surface-warm); border-left: 3px solid var(--accent); border-radius: var(--radius-md);
}
.prose .callout .eyebrow { color: var(--accent); margin-bottom: var(--space-2); }
.prose .callout p { font-size: var(--text-lg); color: var(--text-strong); }

.article-cta { max-width: 720px; margin-top: var(--space-12); }
.article-back { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--text-muted); margin-bottom: var(--space-8); }
.article-back:hover { color: var(--accent); }
.article-back svg { width: 16px; height: 16px; }

/* ---- Sticky "Pay rent" button ---------------------------------- */
.rent-fab {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--paper);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-snug);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.rent-fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.rent-fab:hover { background: var(--brand-hover); color: var(--paper); }
.rent-fab svg { width: 18px; height: 18px; }
@media (max-width: 520px) {
  .rent-fab { padding: 12px 18px; font-size: var(--text-sm); }
}

/* ---- Rent estimator -------------------------------------------- */
.estimator { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); margin-top: var(--space-10); align-items: stretch; }
.estimator-form {
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-8);
}
.estimator-result {
  background: var(--surface-ink);
  color: var(--text-on-ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.est-empty { color: rgba(251,252,247,0.70); }
.est-empty .icon-badge { width: 52px; height: 52px; border-radius: var(--radius-md); background: rgba(251,252,247,0.10); color: var(--clay-100); display: grid; place-items: center; margin-bottom: var(--space-5); }
.est-empty .icon-badge svg { width: 24px; height: 24px; }
.est-empty h3 { color: var(--paper); font-size: var(--text-xl); margin-bottom: var(--space-2); }
.est-empty p { font-size: var(--text-base); }
.est-figure-wrap .eyebrow { color: var(--clay-100); }
.est-figure {
  font-family: var(--font-mono); font-feature-settings: "tnum" 1;
  color: var(--paper); font-weight: var(--weight-medium);
  font-size: clamp(1.9rem, 4.5vw, 2.75rem); letter-spacing: var(--tracking-tight);
  display: flex; align-items: baseline; gap: var(--space-2); flex-wrap: wrap;
  margin-top: var(--space-2);
}
.est-dash { color: var(--clay-100); }
.est-basis { color: rgba(251,252,247,0.70); font-size: var(--text-base); margin-top: var(--space-3); }
.est-secondary { display: flex; gap: var(--space-10); margin: var(--space-6) 0; padding: var(--space-5) 0; border-top: 1px solid var(--border-onink); border-bottom: 1px solid var(--border-onink); }
.est-secondary > div { display: flex; flex-direction: column; gap: var(--space-1); }
.est-sub-label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: var(--tracking-caps); color: var(--clay-100); }
.est-secondary .mono { color: var(--paper); font-size: var(--text-lg); }
.est-cta { display: flex; flex-direction: column; gap: var(--space-3); }
.est-disclaimer { margin-top: var(--space-5); font-size: var(--text-sm); color: var(--text-muted); max-width: 72ch; }
@media (max-width: 820px) { .estimator { grid-template-columns: 1fr; } }

/* ---- Divider text ---------------------------------------------- */
.rule { height: 1px; background: var(--border-hairline); border: 0; margin-block: var(--space-16); }

/* ---- Utility --------------------------------------------------- */
.stack-sm > * + * { margin-top: var(--space-4); }
.text-center { text-align: center; }
.flex-gap { display: flex; gap: var(--space-4); flex-wrap: wrap; align-items: center; }

/* ---- Mobile nav drawer ----------------------------------------- */
.nav-drawer { display: none; }

/* ---- Responsive ------------------------------------------------ */
@media (max-width: 1000px) {
  .ops-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: var(--space-10); }
  .footer-brand { grid-column: 1 / -1; }
}
/* Nav collapses to the hamburger earlier (7 items + logo + button need room) */
@media (max-width: 1024px) {
  .nav-links, .nav-actions .btn, .nav-actions .nav-login { display: none; }
  .nav-toggle { display: inline-flex; }

  /* Header's backdrop-filter makes it the containing block for fixed children,
     so size the drawer explicitly instead of anchoring to the viewport bottom */
  .nav-drawer.open { display: block; position: fixed; top: 92px; left: 0; right: 0; height: calc(100vh - 92px); height: calc(100dvh - 92px); overflow-y: auto; background: var(--paper); z-index: 40; padding: var(--space-6); }
  .nav-drawer.open a { display: block; font-size: var(--text-2xl); font-weight: var(--weight-medium); color: var(--ink); padding: var(--space-4) 0; border-bottom: 1px solid var(--border-hairline); letter-spacing: var(--tracking-snug); }
  .nav-drawer.open .btn { display: inline-flex; margin-top: var(--space-6); width: 100%; }
}
@media (max-width: 820px) {
  .proof-bar { grid-template-columns: repeat(2, 1fr); gap: var(--space-8) var(--space-6); }
  .doors { grid-template-columns: 1fr; }
  /* On a phone, the six steps read as a compact list: number beside the title,
     hairline between each, instead of six full-height blocks. */
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { display: grid; grid-template-columns: 30px 1fr; column-gap: var(--space-4); padding: var(--space-5) 0; border-top: 1px solid var(--border-onink); }
  .steps .step:first-child { border-top: none; padding-top: 0; }
  .step-num { width: 30px; height: 30px; font-size: var(--text-xs); margin-bottom: 0; align-self: start; }
  .step h4 { grid-column: 2; font-size: var(--text-lg); margin-bottom: var(--space-1); align-self: center; }
  .step p { grid-column: 2; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; text-align: left; justify-items: start; }
  .founder p { max-width: none; }
}
@media (max-width: 520px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
  .proof-bar { grid-template-columns: 1fr; text-align: left; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}

/* ---- Motion: parallax, reveals, micro-interactions -------------- */
/* Soft parallax: photo layer stays fixed, wash scrolls with the section */
@media (min-width: 1024px) {
  .hero-image, .section-photo { background-attachment: scroll, fixed; }
}

/* Scroll reveal (JS adds .reveal, then .is-visible on intersect) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Hero copy eases in on load */
.hero-copy, .hero-inner { animation: heroIn 700ms var(--ease-out) both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Arrow nudge on buttons */
.btn svg { transition: transform var(--dur-base) var(--ease-out); }
.btn:hover svg.lucide-arrow-right { transform: translateX(3px); }
.post-card:hover .post-meta, .topic-tile:hover .topic-go { letter-spacing: 0.02em; }
.post-meta, .topic-go { transition: letter-spacing var(--dur-base) var(--ease-out), color var(--dur-fast) var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-image, .section-photo { background-attachment: scroll; }
}

/* Screen-reader-only text (keeps a page heading without changing the design) */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
