/* ==========================================================================
   Bo Presnillo Realty — bopresnillorealty.com
   Brand: dark editorial · warm charcoal monochrome
   Type:  Cormorant Garamond (display) · Jost (UI) · DM Mono (labels)
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Warm charcoal monochrome ramp */
  --ink-900: #0C0B0A;
  --ink-800: #121110;
  --ink-700: #191715;
  --ink-600: #211E1B;
  --ink-500: #2B2723;
  --ink-400: #3A342E;
  --ink-300: #544C43;

  /* Warm light ramp */
  --bone-100: #FAF8F4;
  --bone-200: #F1EDE5;
  --bone-300: #E3DCD0;
  --sand-400: #C4B8A6;
  --sand-500: #9C9182;

  /* Restrained accent */
  --brass: #B79A73;
  --brass-dim: #8C7455;

  /* Semantic */
  --bg: var(--ink-900);
  --bg-alt: var(--ink-800);
  --surface: var(--ink-700);
  --surface-2: var(--ink-600);
  --line: rgba(196, 184, 166, 0.16);
  --line-strong: rgba(196, 184, 166, 0.3);
  --text: #EDE8DF;
  --text-dim: #A9A093;
  --text-faint: #7C746A;

  /* Type */
  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Scale */
  --step--1: clamp(0.8rem, 0.77rem + 0.15vw, 0.875rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.3rem);
  --step-2: clamp(1.5rem, 1.35rem + 0.75vw, 2rem);
  --step-3: clamp(2rem, 1.7rem + 1.5vw, 3rem);
  --step-4: clamp(2.5rem, 1.9rem + 3vw, 4.5rem);
  --step-5: clamp(2.7rem, 1.5rem + 5.4vw, 7rem);

  /* Space */
  --gut: clamp(1.25rem, 1rem + 2vw, 3rem);
  --sec: clamp(4.5rem, 3rem + 7vw, 9.5rem);
  --max: 1280px;
  --measure: 62ch;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --slow: 900ms;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--step-0);
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

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

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--bone-100); color: var(--ink-900);
  padding: 0.9rem 1.4rem; font-family: var(--mono); font-size: 0.8rem;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- 3. Primitives ---------- */
.wrap { width: min(100% - (var(--gut) * 2), var(--max)); margin-inline: auto; }
.wrap-wide { width: min(100% - (var(--gut) * 2), 1560px); margin-inline: auto; }

/* Anchor links must clear the fixed header */
[id] { scroll-margin-top: 1.5rem; }
.faq [id], .qa [id] { scroll-margin-top: 6rem; }

.section { padding-block: var(--sec); position: relative; }
.section--alt { background: var(--bg-alt); }
.section--hair { border-top: 1px solid var(--line); }

.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.6rem;
}
.kicker::before {
  content: "";
  width: 2.2rem; height: 1px;
  background: currentColor;
  opacity: 0.6;
  flex: none;
}
.kicker--plain::before { display: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); line-height: 1.16; }
h4 { font-size: var(--step-1); line-height: 1.25; letter-spacing: 0; }

.lede {
  font-size: var(--step-1);
  color: var(--text-dim);
  max-width: var(--measure);
  font-weight: 300;
  line-height: 1.62;
}
p { max-width: var(--measure); }
em { font-style: italic; color: var(--bone-200); }

.eyebrow-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-faint);
}

/* Buttons */
.btn {
  --btn-bg: var(--bone-100);
  --btn-fg: var(--ink-900);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.05rem 1.9rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s var(--ease), transform 0.45s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn .arw { transition: transform 0.45s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--bone-100); background: rgba(250, 248, 244, 0.06); }

.btn--brass { --btn-bg: var(--brass); --btn-fg: var(--ink-900); }
.btn--brass:hover { --btn-bg: #C9AE8B; }

.link-u {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--mono); font-size: 0.74rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--bone-200);
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease), gap 0.4s var(--ease);
}
.link-u:hover { border-color: var(--brass); color: var(--brass); gap: 0.9rem; }

/* Reveal */
.rv { opacity: 0; transform: translateY(26px); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv[data-d="1"] { transition-delay: 90ms; }
.rv[data-d="2"] { transition-delay: 180ms; }
.rv[data-d="3"] { transition-delay: 270ms; }
.rv[data-d="4"] { transition-delay: 360ms; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
}

/* ---------- 4. Header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  padding-block: 1.35rem;
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), border-color 0.5s var(--ease), backdrop-filter 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.hdr.stuck {
  background: rgba(12, 11, 10, 0.86);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
  padding-block: 0.85rem;
}
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.brand { display: flex; align-items: center; gap: 0.85rem; }
.brand__mark {
  width: 38px; height: 38px; flex: none;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  font-family: var(--display); font-size: 1rem; letter-spacing: 0.02em;
  color: var(--bone-100);
  transition: border-color 0.4s var(--ease);
}
.brand:hover .brand__mark { border-color: var(--brass); }
.brand__name {
  font-family: var(--display);
  font-size: 1.28rem;
  letter-spacing: 0.02em;
  line-height: 1;
}
.brand__sub {
  display: block;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 0.35rem;
}

.nav { display: flex; align-items: center; gap: 2.1rem; }
.nav a {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  position: relative;
  padding-block: 0.4rem;
  transition: color 0.35s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--brass);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav a:hover { color: var(--bone-100); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.hdr__cta { display: flex; align-items: center; gap: 1.2rem; }
.hdr__tel {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em;
  color: var(--text-dim); transition: color 0.35s var(--ease);
}
.hdr__tel:hover { color: var(--brass); }
.hdr .btn { padding: 0.78rem 1.3rem; font-size: 0.68rem; }

.burger {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 1px solid var(--line-strong);
  cursor: pointer; padding: 0; position: relative;
}
.burger span {
  position: absolute; left: 50%; width: 18px; height: 1px;
  background: var(--bone-100); transform: translateX(-50%);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 23px; }
.burger span:nth-child(3) { top: 29px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 85;
  background: var(--ink-900);
  padding: 7rem var(--gut) 3rem;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0.5s;
}
.drawer.open { opacity: 1; visibility: visible; transform: none; }
.drawer nav { display: flex; flex-direction: column; gap: 0.2rem; }
.drawer nav a {
  font-family: var(--display); font-size: clamp(2rem, 9vw, 2.9rem);
  line-height: 1.5; color: var(--bone-200);
  border-bottom: 1px solid var(--line);
  padding-block: 0.35rem;
}
.drawer__foot { font-family: var(--mono); font-size: 0.76rem; color: var(--text-dim); display: grid; gap: 0.5rem; }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media video, .hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
}
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(12,11,10,0.96) 0%, rgba(12,11,10,0.7) 28%, rgba(12,11,10,0.28) 58%, rgba(12,11,10,0.55) 100%),
    linear-gradient(to right, rgba(12,11,10,0.72) 0%, rgba(12,11,10,0.22) 55%, rgba(12,11,10,0.45) 100%);
}
.hero__grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

.hero__in { padding-block: clamp(7rem, 16vh, 11rem) clamp(2.5rem, 6vh, 4rem); }
.hero h1 {
  font-size: var(--step-5);
  max-width: 17ch;
  margin-bottom: 1.8rem;
}
.hero h1 .it { font-style: italic; color: var(--bone-100); }
.hero__sub { max-width: 46ch; color: var(--bone-200); opacity: 0.88; font-size: var(--step-1); }
.hero__acts { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.6rem; }

.hero__bar {
  margin-top: clamp(3rem, 7vh, 5rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1rem 3.2rem; align-items: center;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--text-faint);
}
.hero__bar strong { color: var(--bone-200); font-weight: 400; }

.vid-toggle {
  margin-left: auto;
  width: 38px; height: 38px; flex: none;
  border: 1px solid var(--line-strong);
  background: rgba(12, 11, 10, 0.45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: grid; place-items: center; cursor: pointer;
  color: var(--bone-200);
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.vid-toggle:hover { border-color: var(--brass); background: rgba(12, 11, 10, 0.75); }

/* ---------- 6. Ticker ---------- */
.ticker {
  border-block: 1px solid var(--line);
  padding-block: 1.1rem;
  overflow: hidden;
  background: var(--ink-800);
}
.ticker__track {
  display: flex; gap: 3.5rem; width: max-content;
  animation: slide 46s linear infinite;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-faint);
  align-items: center;
}
.ticker__track span { display: flex; align-items: center; gap: 3.5rem; }
.ticker__track span::after { content: "◆"; color: var(--brass); font-size: 0.5rem; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* ---------- 7. Editorial split ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.split--rev { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.split__sticky { position: sticky; top: 8rem; }
@media (max-width: 900px) {
  .split, .split--rev { grid-template-columns: 1fr; }
  .split__sticky { position: static; }
}

.pull {
  font-family: var(--display);
  font-size: var(--step-3);
  line-height: 1.18;
  color: var(--bone-100);
  max-width: 24ch;
  font-style: italic;
}

.stack > * + * { margin-top: 1.3rem; }
.stack p { color: var(--text-dim); }

/* ---------- 8. Numbered cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card {
  background: var(--bg);
  padding: clamp(2rem, 3.4vw, 3rem);
  display: flex; flex-direction: column; gap: 1rem;
  transition: background 0.55s var(--ease);
  min-height: 100%;
}
.card:hover { background: var(--surface-2); }
.card__n { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.2em; color: var(--brass); }
.card h4 { color: var(--bone-100); }
.card p { color: var(--text-dim); font-size: 0.96rem; max-width: 40ch; }

/* ---------- 9. About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }
.about__fig { position: relative; }
.about__fig img { width: 100%; filter: saturate(0.92) contrast(1.04); }
.about__fig::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(196,184,166,0.22);
  pointer-events: none;
}
.about__badge {
  position: absolute; right: -1px; bottom: -1px;
  background: var(--ink-900);
  border: 1px solid var(--line);
  padding: 1rem 1.25rem;
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-dim);
  display: grid; gap: 0.3rem;
}
.about__badge b { color: var(--bone-100); font-weight: 400; letter-spacing: 0.2em; }

.sig {
  font-family: var(--display); font-style: italic;
  font-size: 1.9rem; color: var(--bone-200);
  margin-top: 2rem; opacity: 0.85;
}

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1.6rem 2rem; margin-top: 2.6rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.facts div { display: grid; gap: 0.4rem; }
.facts dt, .facts .f-k { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); }
.facts dd, .facts .f-v { font-family: var(--display); font-size: 1.32rem; color: var(--bone-100); margin: 0; line-height: 1.2; }

/* ---------- 10. Process ---------- */
.steps { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 3rem; }
.step {
  display: grid;
  grid-template-columns: 5rem minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: clamp(1rem, 3vw, 3rem);
  padding-block: clamp(1.8rem, 3.5vw, 2.8rem);
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  transition: background 0.5s var(--ease), padding-inline 0.5s var(--ease);
}
.step:hover { background: var(--surface-2); padding-inline: 1.25rem; }
.step__n { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em; color: var(--brass); }
.step h4 { color: var(--bone-100); }
.step p { color: var(--text-dim); font-size: 0.98rem; }
@media (max-width: 760px) {
  .step { grid-template-columns: 3rem 1fr; }
  .step p { grid-column: 2; }
}

/* ---------- 11. Tracks ---------- */
.tracks { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(1px, 0.2vw, 2px); background: var(--line); border: 1px solid var(--line); }
.track { background: var(--bg-alt); padding: clamp(2.2rem, 4vw, 3.6rem); display: flex; flex-direction: column; gap: 1.5rem; transition: background 0.55s var(--ease); }
.track:hover { background: var(--surface); }
.track h3 { color: var(--bone-100); max-width: 16ch; }
.track ul { list-style: none; padding: 0; display: grid; gap: 0.9rem; margin-top: 0.4rem; }
.track li { position: relative; padding-left: 2rem; color: var(--text-dim); font-size: 0.96rem; line-height: 1.55; }
.track li::before { content: "—"; position: absolute; left: 0; top: 0; color: var(--brass); }
.track .link-u { margin-top: auto; align-self: flex-start; }

/* ---------- 12. Places ---------- */
.places { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 3rem; }
@media (max-width: 900px) { .places { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .places { grid-template-columns: 1fr; } }
.place { background: var(--bg); padding: clamp(1.7rem, 2.6vw, 2.3rem); display: grid; gap: 0.7rem; align-content: start; transition: background 0.5s var(--ease); }
.place:hover { background: var(--surface-2); }
.place__k { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); }
.place h4 { font-size: 1.5rem; color: var(--bone-100); }
.place p { font-size: 0.92rem; color: var(--text-dim); max-width: none; }

/* ---------- 13. Guide / lead magnet ---------- */
.guide { position: relative; overflow: hidden; background: var(--ink-800); border-block: 1px solid var(--line); }
.guide__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
@media (max-width: 940px) { .guide__in { grid-template-columns: 1fr; } }

.guide__cover {
  position: relative;
  aspect-ratio: 5 / 6.4;
  background:
    linear-gradient(150deg, rgba(183,154,115,0.16), transparent 42%),
    var(--ink-700);
  border: 1px solid var(--line-strong);
  padding: clamp(2rem, 3.6vw, 3.2rem);
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 30px 34px 80px rgba(0,0,0,0.55);
  max-width: 420px;
  width: 100%;
  justify-self: center;
}
.guide__cover::before {
  content: ""; position: absolute; left: 14px; top: 0; bottom: 0; width: 1px;
  background: var(--line);
}
.guide__cover h3 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); color: var(--bone-100); }
.guide__cover .kicker { margin-bottom: 0; }
.guide__cover .foot { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint); display: grid; gap: 0.4rem; }

.form { display: grid; gap: 1.1rem; margin-top: 2.4rem; max-width: 520px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.5rem; }
.field label {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-faint);
}
.field input, .field select {
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line-strong);
  padding: 0.75rem 0.1rem;
  font-family: var(--sans); font-size: 1rem; font-weight: 300;
  color: var(--bone-100);
  transition: border-color 0.4s var(--ease);
  border-radius: 0;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--sand-500) 50%), linear-gradient(135deg, var(--sand-500) 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 2rem; }
.field select option { background: var(--ink-700); color: var(--bone-100); }
.field input:focus, .field select:focus { outline: none; border-bottom-color: var(--brass); }
.field input::placeholder { color: var(--text-faint); }
.field[data-err="1"] input, .field[data-err="1"] select { border-bottom-color: #C4705E; }
.err { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.08em; color: #C4705E; min-height: 0; }

.form__note { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; line-height: 1.7; color: var(--text-faint); max-width: 46ch; }
.form__note a { border-bottom: 1px solid var(--line-strong); }

.form-success {
  border: 1px solid var(--brass-dim);
  background: rgba(183,154,115,0.07);
  padding: 2rem;
  display: none;
  margin-top: 2.4rem;
  max-width: 520px;
}
.form-success.show { display: block; }
.form-success h4 { color: var(--bone-100); margin-bottom: 0.7rem; }
.form-success p { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- 14. FAQ ---------- */
.faq { border-top: 1px solid var(--line); margin-top: 3rem; }
.qa { border-bottom: 1px solid var(--line); }
.qa__q {
  width: 100%; background: none; border: 0; cursor: pointer;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem;
  padding: clamp(1.4rem, 2.6vw, 2rem) 0;
  text-align: left;
  font-family: var(--display); font-size: var(--step-1); font-weight: 300;
  color: var(--bone-200); line-height: 1.35;
  transition: color 0.4s var(--ease);
}
.qa__q:hover { color: var(--brass); }
.qa__i { flex: none; width: 16px; height: 16px; position: relative; margin-top: 0.45rem; }
.qa__i::before, .qa__i::after {
  content: ""; position: absolute; background: currentColor;
  transition: transform 0.45s var(--ease), opacity 0.35s var(--ease);
}
.qa__i::before { left: 0; top: 7.5px; width: 16px; height: 1px; }
.qa__i::after { left: 7.5px; top: 0; width: 1px; height: 16px; }
.qa[open] .qa__i::after, .qa__q[aria-expanded="true"] .qa__i::after { transform: scaleY(0); }
.qa__a { overflow: hidden; height: 0; transition: height 0.5s var(--ease); }
.qa__a-in { padding-bottom: 1.9rem; }
.qa__a p { color: var(--text-dim); font-size: 0.99rem; }
.qa__a p + p { margin-top: 0.9rem; }

/* ---------- 15. CTA band ---------- */
.band { position: relative; overflow: hidden; background: var(--ink-800); }
.band__bg { position: absolute; inset: 0; opacity: 0.22; }
.band__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.4); }
.band__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, var(--ink-900) 8%, rgba(18,17,16,0.5) 70%); }
.band__in { position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: clamp(2rem,5vw,4rem); align-items: center; }
@media (max-width: 860px) { .band__in { grid-template-columns: 1fr; } }
.band h2 { max-width: 16ch; }

/* ---------- 16. Footer ---------- */
.ftr { background: var(--ink-900); border-top: 1px solid var(--line); padding-block: clamp(3.5rem, 6vw, 5.5rem) 2.5rem; }
.ftr__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.8fr)); gap: clamp(2rem, 4vw, 3.5rem); }
@media (max-width: 900px) { .ftr__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ftr__top { grid-template-columns: 1fr; } }
.ftr h5 { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); font-weight: 400; margin-bottom: 1.2rem; }
.ftr ul { list-style: none; padding: 0; display: grid; gap: 0.7rem; }
.ftr a, .ftr li { color: var(--text-dim); font-size: 0.93rem; }
.ftr ul a:hover { color: var(--brass); }
.ftr__mark { font-family: var(--display); font-size: 1.7rem; color: var(--bone-100); line-height: 1.1; }
.ftr__blurb { color: var(--text-dim); font-size: 0.93rem; margin-top: 1rem; max-width: 34ch; }

.legal {
  margin-top: clamp(3rem, 5vw, 4.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: grid; gap: 1.2rem;
}
.legal p { font-family: var(--mono); font-size: 0.64rem; line-height: 1.85; letter-spacing: 0.04em; color: var(--text-faint); max-width: 118ch; }
.legal__row { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.legal__badges { display: flex; align-items: center; gap: 1.1rem; }
.legal__badges svg { opacity: 0.55; }

/* ---------- 17. Responsive header ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .hdr__tel { display: none; }
  .burger { display: block; }
}
@media (max-width: 640px) {
  .hdr .btn { display: none; }
  .hero__in { padding-block: 6rem 2rem; }
  .hero h1 { margin-bottom: 1.2rem; }
  .hero__acts { margin-top: 1.9rem; gap: 0.75rem; }
  .hero__acts .btn { width: 100%; justify-content: space-between; }
  .hero__bar { gap: 0.7rem 1.8rem; font-size: 0.62rem; margin-top: 2.2rem; padding-top: 1.2rem; }
  .vid-toggle { width: 34px; height: 34px; }
}

/* Lock scroll when drawer open */
body.locked { overflow: hidden; }

/* ==========================================================================
   18. Neighborhood article pages
   ========================================================================== */
.art-hero {
  padding-block: clamp(8rem, 18vh, 12rem) clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(183,154,115,0.10), transparent 60%),
    var(--ink-800);
}
.art-hero h1 { font-size: var(--step-4); max-width: 15ch; margin-bottom: 1.6rem; }
.art-hero h1 .it { font-style: italic; }
.art-hero .lede { font-size: var(--step-1); max-width: 54ch; color: var(--bone-200); opacity: 0.88; }

.crumb {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-faint);
  margin-bottom: 1.8rem; display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center;
}
.crumb a { color: var(--text-dim); border-bottom: 1px solid transparent; transition: color .35s var(--ease), border-color .35s var(--ease); }
.crumb a:hover { color: var(--brass); border-bottom-color: var(--brass); }
.crumb span[aria-hidden] { opacity: 0.5; }

.glance {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.glance > div { background: var(--ink-800); padding: 1.5rem 1.6rem; display: grid; gap: 0.55rem; align-content: start; }
.glance dt, .glance .g-k { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); }
.glance dd, .glance .g-v { margin: 0; color: var(--bone-100); font-size: 0.97rem; line-height: 1.5; }

.prose { max-width: 68ch; }
.prose h2 {
  font-size: var(--step-2);
  margin-top: clamp(3rem, 6vw, 4.5rem);
  margin-bottom: 1.3rem;
  color: var(--bone-100);
}
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text-dim); margin-bottom: 1.15rem; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--bone-200); font-weight: 400; }
.prose ul { list-style: none; padding: 0; display: grid; gap: 0.85rem; margin: 0 0 1.4rem; }
/* Hanging dash via absolute positioning, NOT a grid column: a grid here turns
   each inline child (e.g. a leading <strong>) into its own grid item, pushing
   the trailing text onto a second row in the 1.3rem marker column. */
.prose ul li { position: relative; padding-left: 1.9rem; color: var(--text-dim); line-height: 1.6; }
.prose ul li::before { content: "—"; position: absolute; left: 0; top: 0; color: var(--brass); }
.prose a:not(.btn):not(.link-u) { color: var(--bone-100); border-bottom: 1px solid var(--line-strong); transition: border-color .35s var(--ease), color .35s var(--ease); }
.prose a:not(.btn):not(.link-u):hover { color: var(--brass); border-bottom-color: var(--brass); }

.aside-note {
  border-left: 1px solid var(--brass-dim);
  background: rgba(183,154,115,0.06);
  padding: 1.6rem 1.8rem;
  margin: 2.2rem 0;
}
.aside-note p { color: var(--text-dim); font-size: 0.95rem; margin: 0; }
.aside-note p + p { margin-top: 0.8rem; }
.aside-note .k {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--brass); display: block; margin-bottom: 0.7rem;
}

.art-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
@media (max-width: 1000px) { .art-grid { grid-template-columns: 1fr; } }
.art-side { position: sticky; top: 7rem; display: grid; gap: 1.6rem; }
@media (max-width: 1000px) { .art-side { position: static; } }
.side-card { border: 1px solid var(--line); padding: 1.8rem; background: var(--ink-800); }
.side-card h3 { font-size: 1.4rem; color: var(--bone-100); margin-bottom: 0.8rem; }
.side-card p { font-size: 0.92rem; color: var(--text-dim); margin-bottom: 1.3rem; max-width: none; }
.side-card .btn { width: 100%; justify-content: space-between; }

.also { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 3rem; }
.also a { background: var(--bg); padding: 1.6rem 1.7rem; display: grid; gap: 0.45rem; align-content: start; transition: background .5s var(--ease); }
.also a:hover { background: var(--surface-2); }
.also .k { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); }
.also .n { font-family: var(--display); font-size: 1.35rem; color: var(--bone-100); line-height: 1.2; }

.place .link-u { justify-self: start; }

/* ==========================================================================
   19. Chat assistant
   ========================================================================== */
.cw-launch {
  position: fixed; right: clamp(1rem, 2.5vw, 2rem); bottom: clamp(1rem, 2.5vw, 2rem);
  z-index: 95;
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.9rem 1.3rem;
  background: var(--brass); color: var(--ink-900);
  border: 1px solid var(--brass);
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  transition: background .4s var(--ease), transform .4s var(--ease);
}
.cw-launch:hover { background: #C9AE8B; transform: translateY(-2px); }
.cw-launch.is-open .cw-launch__t { display: none; }
.cw-launch.is-open { padding: 0.9rem; border-radius: 0; }
.cw-badge {
  position: absolute; top: -7px; right: -7px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--bone-100); color: var(--ink-900);
  border-radius: 9px;
  font-family: var(--mono); font-size: 0.6rem; line-height: 18px; text-align: center;
}
@media (max-width: 480px) { .cw-launch__t { display: none; } .cw-launch { padding: 0.95rem; } }

.cw-panel {
  position: fixed; z-index: 96;
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: calc(clamp(1rem, 2.5vw, 2rem) + 4.2rem);
  width: min(380px, calc(100vw - 2rem));
  max-height: min(620px, calc(100svh - 8rem));
  display: flex; flex-direction: column;
  background: var(--ink-800);
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  opacity: 0; transform: translateY(12px) scale(0.985);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.cw-panel.is-open { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .cw-panel { transition: none; } }
@media (max-width: 480px) {
  .cw-panel { right: 0.5rem; left: 0.5rem; width: auto; bottom: 5.2rem; max-height: calc(100svh - 7rem); }
}

.cw-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.1rem; border-bottom: 1px solid var(--line);
  background: var(--ink-700);
}
.cw-id { display: flex; align-items: center; gap: 0.75rem; }
.cw-mark {
  width: 34px; height: 34px; flex: none;
  border: 1px solid var(--line-strong); display: grid; place-items: center;
  font-family: var(--display); font-size: 0.9rem; color: var(--bone-100);
}
.cw-who { display: block; font-family: var(--display); font-size: 1.05rem; color: var(--bone-100); line-height: 1.2; }
.cw-sub { display: block; font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); margin-top: 0.25rem; }
.cw-x { background: none; border: 0; color: var(--text-dim); cursor: pointer; padding: 0.3rem; line-height: 0; transition: color .3s var(--ease); }
.cw-x:hover { color: var(--bone-100); }

.cw-log { flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: 0.7rem; scrollbar-width: thin; }
.cw-msg { display: flex; }
.cw-msg--me { justify-content: flex-end; }
.cw-bubble {
  max-width: 86%; padding: 0.75rem 0.95rem;
  font-size: 0.9rem; line-height: 1.6; color: var(--text-dim);
  background: var(--ink-600); border: 1px solid var(--line);
}
.cw-msg--me .cw-bubble { background: var(--brass); border-color: var(--brass); color: var(--ink-900); }
.cw-bubble a { color: var(--brass); border-bottom: 1px solid currentColor; }
.cw-msg--me .cw-bubble a { color: var(--ink-900); }

.cw-typing .cw-bubble { display: flex; gap: 4px; padding: 0.9rem 1rem; }
.cw-typing span { width: 5px; height: 5px; border-radius: 50%; background: var(--sand-500); animation: cwb 1.1s infinite; }
.cw-typing span:nth-child(2) { animation-delay: .15s; }
.cw-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes cwb { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .cw-typing span { animation: none; } }

.cw-link { display: inline-flex; gap: 0.4rem; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass); }

.cw-actions { display: grid; gap: 0.5rem; }
.cw-act {
  display: block; text-align: center;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--brass-dim); color: var(--bone-100);
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  transition: background .35s var(--ease), border-color .35s var(--ease);
}
.cw-act:hover { background: rgba(183,154,115,0.14); border-color: var(--brass); }

.cw-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0 1.1rem 0.9rem; }
.cw-chips:empty { padding: 0; }
.cw-chip {
  background: transparent; border: 1px solid var(--line-strong); color: var(--text);
  padding: 0.5rem 0.8rem; font-size: 0.8rem; cursor: pointer; line-height: 1.35;
  transition: border-color .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.cw-chip:hover { border-color: var(--brass); color: var(--brass); background: rgba(183,154,115,0.07); }
.cw-chip--alt { border-style: dashed; }

.cw-form:empty { display: none; }
.cw-input { display: flex; gap: 0.5rem; padding: 0 1.1rem 0.9rem; }
.cw-input input {
  flex: 1; background: transparent; border: 0; border-bottom: 1px solid var(--line-strong);
  padding: 0.6rem 0.1rem; font-size: 0.92rem; color: var(--bone-100); border-radius: 0;
}
.cw-input input:focus { outline: none; border-bottom-color: var(--brass); }
.cw-send { background: var(--brass); border: 0; color: var(--ink-900); width: 40px; cursor: pointer; display: grid; place-items: center; }
.cw-send:hover { background: #C9AE8B; }
.cw-err { font-family: var(--mono); font-size: 0.62rem; color: #C4705E; padding: 0 1.1rem 0.8rem; margin: 0; }

.cw-fine {
  padding: 0.7rem 1.1rem; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.06em; line-height: 1.6;
  color: var(--text-faint); margin: 0; max-width: none;
}
.cw-fine a { color: var(--text-dim); border-bottom: 1px solid var(--line-strong); }

/* ==========================================================================
   20. Logo lockups
   ========================================================================== */
.brand__logo {
  height: 54px; width: auto;
  transition: height 0.5s var(--ease), opacity 0.4s var(--ease);
}
.hdr.stuck .brand__logo { height: 42px; }
.brand:hover .brand__logo { opacity: 0.82; }
@media (max-width: 520px) { .brand__logo { height: 40px; } .hdr.stuck .brand__logo { height: 34px; } }

.ftr__logo { height: 54px; width: auto; margin-bottom: 1.3rem; }

.brokered {
  display: flex; align-items: center; gap: 0.95rem;
  margin-top: 1.9rem; padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  max-width: 20rem;
}
.brokered img { width: 54px; height: 54px; flex: none; opacity: 0.9; }
.brokered span {
  font-family: var(--mono); font-size: 0.6rem; line-height: 1.75;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint);
}
.brokered strong { color: var(--bone-200); font-weight: 400; letter-spacing: 0.14em; }

/* chat header mark is now an image */
img.cw-mark { border: 0; width: 34px; height: 34px; object-fit: contain; }
