/* =========================================================================
   NORTHROSE REAL ESTATE
   "Rose Noir": advisory-first brokerage, Gallatin Valley, Montana
   Brand palette (per brand guide): Charcoal / Fieldstone / Rose / Cream
   Type: Spectral (editorial serif, the voice) + Work Sans (grotesque, the signage)
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  --ink:        #333436;   /* Charcoal: primary text, dark panels */
  --taupe:      #A69787;   /* Fieldstone: rules, motif, quiet caps, text on dark */
  --wine:       #7A2E38;   /* Rose: accent, links, the compass north, calls to action */
  --paper:      #F6F3F0;   /* Cream: page ground */

  /* derived, kept within the family */
  --paper-dim:  #ECE6DF;   /* alternating band */
  --rule:       #DCD5CC;   /* hairline on paper */
  --muted:      #6B6157;   /* readable secondary text on paper */
  --ink-raised: #3F4042;   /* raised block on the dark panel */
  --wine-deep:  #5E232B;   /* pressed / hover state for wine */

  --measure: 66ch;
  --container: 1240px;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --section-y: clamp(4rem, 9vw, 8rem);

  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0:  1.0625rem;
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem);
  --step-2:  clamp(1.5rem, 1.35rem + 0.75vw, 2rem);
  --step-3:  clamp(1.95rem, 1.6rem + 1.7vw, 2.9rem);
  --step-4:  clamp(2.6rem, 1.9rem + 3.4vw, 4.4rem);
  --step-5:  clamp(3rem, 2rem + 5vw, 5.6rem);

  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.72;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 {
  font-family: "Spectral", Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0;
}
p { margin: 0 0 1.15em; max-width: var(--measure); }
a { color: var(--wine); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--wine-deep); }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; border-radius: 1px; }
::selection { background: var(--wine); color: var(--paper); }
hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* ---------- Layout primitives ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.band-dim { background: var(--paper-dim); }
.band-ink { background: var(--ink); color: var(--paper); }
.band-ink h1, .band-ink h2, .band-ink h3 { color: var(--paper); }
.band-ink a { color: var(--paper); }
.band-wine { background: var(--wine); color: var(--paper); }
.band-wine h1, .band-wine h2, .band-wine h3 { color: var(--paper); }
.band-wine a { color: var(--paper); }
.band-wine .eyebrow { color: #EAC7CB; }
.band-wine .eyebrow::before { background: #EAC7CB; }
.band-wine .lede { color: var(--paper); }
.band-wine .small { color: #EAC7CB; }

.stack > * + * { margin-top: 1.1rem; }
.stack-lg > * + * { margin-top: 2.4rem; }

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 62rem) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .split--text-narrow { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
  .split--sticky > :first-child { position: sticky; top: 7rem; }
}

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: "Work Sans", sans-serif;
  font-size: var(--step--1);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.4rem;
  display: flex; align-items: center; gap: 0.9rem;
}
.eyebrow::before {
  content: ""; width: 2.2rem; height: 1px; background: var(--wine); flex: none;
}
.band-ink .eyebrow { color: var(--taupe); }
.display { font-size: var(--step-5); letter-spacing: -0.02em; line-height: 1.02; }
.h2 { font-size: var(--step-3); }
.h3 { font-size: var(--step-2); }
.lede {
  font-family: "Spectral", Georgia, serif;
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--ink);
  max-width: 54ch;
}
.band-ink .lede { color: var(--paper); }
.small { font-size: var(--step--1); color: var(--muted); }
.band-ink .small { color: var(--taupe); }

.pullquote {
  font-family: "Spectral", Georgia, serif;
  font-style: italic;
  font-size: var(--step-2);
  line-height: 1.4;
  letter-spacing: -0.01em;
  border-left: 2px solid var(--wine);
  padding-left: clamp(1rem, 3vw, 2rem);
  margin: 0;
  max-width: 40ch;
}

/* placeholder marker for anything the client still owes */
.ph {
  font-family: "Work Sans", sans-serif;
  font-size: 0.9em;
  letter-spacing: 0.03em;
  color: var(--wine);
  background: color-mix(in srgb, var(--wine) 9%, transparent);
  border: 1px dashed color-mix(in srgb, var(--wine) 45%, transparent);
  border-radius: 2px;
  padding: 0.05em 0.4em;
  font-style: normal;
}
.band-ink .ph { color: #E8B8BE; border-color: #8a5c63; background: rgba(255,255,255,0.06); }

/* image placeholder blocks */
.ph-img {
  position: relative;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 0.5rem;
  padding: 2rem;
  min-height: 15rem;
  color: var(--muted);
  background:
    repeating-linear-gradient(-45deg, transparent 0 14px, color-mix(in srgb, var(--taupe) 12%, transparent) 14px 15px),
    var(--paper-dim);
  border: 1px solid var(--rule);
}
.ph-img span { font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; }
.ph-img .ph-note { text-transform: none; letter-spacing: 0; max-width: 34ch; margin-inline: auto; line-height: 1.5; }
.ph-img--tall { min-height: 26rem; }
.band-ink .ph-img,
.ph-img--hero {
  background:
    repeating-linear-gradient(-45deg, transparent 0 16px, rgba(255,255,255,0.045) 16px 17px),
    var(--ink-raised);
  border-color: #535457; color: var(--taupe);
}
.ph-img--hero {
  min-height: min(90vh, 54rem); border: 0;
  place-content: center end;
  padding: 6.5rem var(--gutter);
  gap: 0.35rem;
  text-align: right;
  opacity: 0.5;
}
.ph-img--hero .ph-note { color: var(--taupe); max-width: 32ch; margin-inline: 0 0; }
@media (max-width: 60rem) {
  .ph-img--hero { place-content: start center; text-align: center; padding-top: 5.5rem; }
  .ph-img--hero .ph-note { display: none; }
}

/* ---------- Real photography (replaces a .ph-img once an asset exists) ---------- */
.media { position: relative; overflow: hidden; border: 1px solid var(--rule); }
.media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.media--tall {
  /* height (not min-height): a percentage-height <img> only resolves
     against a definite height on the parent, so min-height alone let the
     image collapse to its own intrinsic size and leave a gap below it. */
  height: 26rem;
}
@media (min-width: 40rem) { .media--tall { height: 32rem; } }
.media--wide { aspect-ratio: 16 / 10; }
.media--hero { position: absolute; inset: 0; border: 0; }
.media--hero img, img.media--hero {
  width: 100%; height: 100%; object-fit: cover; object-position: center 42%; display: block;
}

/* ---------- Hero photo rotation ---------- */
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 42%;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}
.hero__slide.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero__slide { transition: none; }
}
.media__caption {
  font-size: var(--step--1); color: var(--muted); margin-top: 0.6rem;
}
figure.media-figure { margin: 0; }

/* ---------- Brand mark (NR monogram, vector, transparent background) ----------
   Two purpose-built source files from the brand kit: charcoal for light
   grounds, reversed-cream for dark grounds. The transparent-over-hero header
   on the homepage swaps between the two on scroll; see main.js. */
.brand__mark { width: 2.6rem; height: auto; display: block; flex: none; }

.rule-mark { display: flex; align-items: center; gap: 1.25rem; color: var(--taupe); margin-block: clamp(2.5rem, 6vw, 4rem); }
.rule-mark::before, .rule-mark::after { content: ""; height: 1px; background: var(--rule); flex: 1; }
.rule-mark .brand__mark { width: 2rem; }
.band-ink .rule-mark::before, .band-ink .rule-mark::after { background: #535457; }

/* ---------- Buttons ---------- */
.btn {
  --_bg: var(--wine); --_fg: var(--paper); --_bd: var(--wine);
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: "Work Sans", sans-serif;
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 1.7rem;
  color: var(--_fg); background: var(--_bg);
  border: 1px solid var(--_bd);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { --_bg: var(--wine-deep); --_bd: var(--wine-deep); color: var(--paper); }
.btn--ghost { --_bg: transparent; --_fg: var(--ink); --_bd: var(--ink); }
.btn--ghost:hover { --_bg: var(--ink); --_fg: var(--paper); color: var(--paper); }
.band-ink .btn--ghost { --_fg: var(--paper); --_bd: var(--taupe); }
.band-ink .btn--ghost:hover { --_bg: var(--paper); --_fg: var(--ink); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }

.textlink {
  font-family: "Work Sans", sans-serif;
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; padding-block: 1.1rem;
}
.site-header[data-solid="true"] {
  background: var(--ink); opacity: 1;
  border-bottom-color: color-mix(in srgb, var(--taupe) 12%, transparent);
}
.site-header--onlight { background: var(--paper); border-bottom-color: var(--rule); }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.brand__wordmark {
  font-family: "Spectral", serif;
  font-size: 1.18rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  line-height: 1;
  padding-left: 0.34em; /* optical: balance the tracking */
}
.site-header--over .brand { color: var(--paper); }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.4rem); }
.nav a {
  font-family: "Work Sans", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
  padding-block: 0.4rem;
  position: relative;
}
.nav a[aria-current="page"] { color: var(--wine); }
.site-header--over .nav { color: var(--paper); }
.site-header--over .nav a[aria-current="page"] { color: var(--paper); border-bottom: 1px solid var(--taupe); }
.nav a:not([aria-current="page"])::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: currentColor;
  transition: width 0.25s var(--ease);
}
.nav a:hover::after { width: 100%; }

.nav__group { position: relative; }
.nav__group > button {
  font: inherit; font-family: "Work Sans", sans-serif; font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: none; border: 0; color: inherit; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.4rem; padding-block: 0.4rem;
}
.nav__group > button svg { width: 0.6rem; height: 0.6rem; transition: transform 0.2s var(--ease); }
.nav__group[data-open="true"] > button svg { transform: rotate(180deg); }
.nav__menu {
  position: absolute; top: calc(100% + 0.6rem); left: 50%; transform: translateX(-50%);
  background: var(--paper); border: 1px solid var(--rule);
  min-width: 15rem; padding: 0.5rem; display: none;
  box-shadow: 0 18px 40px -24px rgba(51,52,54,0.35);
}
.nav__group[data-open="true"] .nav__menu { display: block; }
.nav__menu a { display: block; padding: 0.7rem 0.8rem; color: var(--ink); letter-spacing: 0.1em; }
.nav__menu a:hover { background: var(--paper-dim); }
.nav__menu a::after { display: none; }

.nav-toggle { display: none; }

/* mobile nav */
@media (max-width: 60rem) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 0.6rem;
    background: none; border: 0; cursor: pointer; color: inherit;
    font-family: "Work Sans", sans-serif; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  }
  .nav-toggle__bars { width: 26px; height: 10px; position: relative; }
  .nav-toggle__bars::before, .nav-toggle__bars::after {
    content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  }
  .nav-toggle__bars::before { top: 0; }
  .nav-toggle__bars::after { bottom: 0; }
  .site-header--over .nav-toggle { color: var(--paper); }

  .nav {
    position: fixed; inset: 0; top: 0;
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 0.4rem;
    background: var(--paper); color: var(--ink);
    padding: 5rem var(--gutter) 3rem;
    transform: translateY(-100%); transition: transform 0.4s var(--ease);
    overflow-y: auto;
  }
  .nav[data-open="true"] { transform: translateY(0); }
  .nav a, .nav__group > button { font-size: 1.35rem; letter-spacing: 0.08em; font-family: "Spectral", serif; text-transform: none; padding-block: 0.6rem; }
  .nav a::after { display: none; }
  .nav__group { width: 100%; }
  .nav__menu {
    position: static; transform: none; border: 0; box-shadow: none; padding: 0 0 0 1.2rem;
    min-width: 0; background: none;
  }
  .nav__menu a { font-family: "Spectral", serif; font-size: 1.1rem; padding: 0.4rem 0; }
  .nav__menu a:hover { background: none; color: var(--wine); }
  .nav-close {
    position: absolute; top: 1.4rem; right: var(--gutter);
    background: none; border: 0; cursor: pointer; color: var(--ink);
    font-family: "Work Sans", sans-serif; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  }
  .site-header--over .nav, .site-header--over .nav a, .site-header--over .nav a[aria-current="page"] { color: var(--ink); }
  .site-header--over .nav a[aria-current="page"] { border-bottom: 0; color: var(--wine); }
  body[data-menu-open="true"] { overflow: hidden; }
}
@media (min-width: 60.01rem) { .nav-close { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; margin-top: calc(-1 * (1.1rem * 2 + 2.1rem + 2px)); background: var(--ink); overflow: hidden; }
.hero__media { position: relative; display: grid; background: var(--ink); }
.hero__media > * { grid-area: 1 / 1; }
.hero__scrim {
  background: linear-gradient(180deg, rgba(20,20,22,0.62) 0%, rgba(20,20,22,0.30) 42%, rgba(20,20,22,0.78) 100%);
}

/* Faint architectural watermark: a huge, cropped fragment of the mark, not a repeated logo */
.hero__watermark { display: none; }
@media (min-width: 60rem) {
  .hero__watermark {
    display: block;
    position: absolute; z-index: 0;
    top: 38%; left: -16vw;
    width: min(40rem, 54vw);
    transform: translateY(-50%);
    opacity: 0.025;
    pointer-events: none;
  }
}
.hero__watermark img { display: block; width: 100%; height: auto; }

.hero__inner {
  position: relative; z-index: 2;
  width: 100%;
  padding-top: 10rem;
  padding-bottom: clamp(2rem, 5vw, 3rem);
  color: var(--paper);
}
.hero__inner .container { display: grid; gap: 1.6rem; }
.hero__grid { align-items: start; margin-top: 2rem; }
.hero__copy { max-width: 35rem; }
@media (min-width: 60rem) {
  .hero__grid { grid-template-columns: 1fr 1.12fr; gap: clamp(2.5rem, 5vw, 4rem); }
}
.hero h1 { color: var(--paper); max-width: 20ch; font-size: var(--step-4); letter-spacing: -0.015em; }
.hero .eyebrow { color: var(--paper); }
.hero .eyebrow::before { background: var(--taupe); }
.hero__lede {
  color: var(--paper); font-family: "Spectral", serif; font-size: var(--step-1);
  max-width: 42ch; line-height: 1.55; margin-top: 2rem;
}
.hero__bearing {
  font-family: "Work Sans", sans-serif; font-size: var(--step--1);
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--taupe);
}

/* Accent clip: a major, cinematic visual integrated into the hero, not a boxed-in thumbnail */
.hero__accent { position: relative; width: 100%; margin-top: 2rem; }
.hero__accent-offset {
  position: absolute; inset: 0;
  transform: translate(10px, 10px);
  border: 1px solid color-mix(in srgb, var(--taupe) 38%, transparent);
  z-index: 0;
}
.hero__accent-frame {
  position: relative; z-index: 1;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--taupe) 55%, transparent);
  box-shadow: 0 1.5rem 3rem -1.25rem rgba(10,10,11,0.55);
}
.hero__accent::before, .hero__accent::after {
  content: ""; position: absolute; z-index: 2;
  width: 1.5rem; height: 1.5rem;
  border-color: color-mix(in srgb, var(--taupe) 75%, transparent);
}
.hero__accent::before { top: -0.5rem; left: -0.5rem; border-top: 1px solid; border-left: 1px solid; }
.hero__accent::after { bottom: -0.5rem; right: -0.5rem; border-bottom: 1px solid; border-right: 1px solid; }
.hero__accent-frame::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(26,26,28,0.16);
}
.hero__accent-frame img, .hero__accent-frame video {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%;
  filter: saturate(0.85) brightness(0.95) contrast(1.03);
}
@media (min-width: 60rem) {
  .hero__accent { margin-top: 0; margin-left: 50px; margin-right: calc(-1 * var(--gutter) * 0.5); align-self: center; }
}

/* search field on hero */
.searchbar {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  background: var(--paper); padding: 0.5rem; max-width: 40rem;
  border: 1px solid var(--rule);
}
.searchbar input {
  flex: 1 1 16rem; border: 0; background: transparent; font: inherit;
  padding: 0.85rem 0.9rem; color: var(--ink);
}
.searchbar input:focus-visible { outline-offset: -2px; }
.searchbar button { border: 0; cursor: pointer; }

/* ---------- Stats ---------- */
.stats { display: grid; gap: 2.5rem clamp(2rem, 5vw, 4rem); grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.stat__num { font-family: "Spectral", serif; font-size: var(--step-4); line-height: 1.05; letter-spacing: -0.02em; word-break: break-word; }
.stat__num .unit { color: var(--wine); }
.stat__num .ph { font-size: 1.5rem; letter-spacing: 0.02em; vertical-align: 0.15em; }
.stat__num:has(.ph) { font-size: var(--step-2); }
.stat__label { font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 0.7rem; }
.band-ink .stat__label { color: var(--taupe); }

/* ---------- Service / feature cards ---------- */
.cards { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (min-width: 48rem) { .cards--2 { grid-template-columns: 1fr 1fr; } }
.card {
  background: var(--paper); padding: clamp(1.6rem, 4vw, 2.8rem);
  display: flex; flex-direction: column; gap: 1rem;
}
.card h3 { font-size: var(--step-2); }
.card__kicker { font-size: var(--step--1); letter-spacing: 0.18em; text-transform: uppercase; color: var(--wine); font-weight: 600; }
.card ul { margin: 0; padding-left: 1.1rem; }
.card li { margin-bottom: 0.45rem; }
.card .textlink { margin-top: auto; align-self: flex-start; color: var(--ink); }
.card { border-top: 3px solid transparent; }
.cards--2 .card:first-child { border-top-color: var(--wine); }
.cards--2 .card:last-child { border-top-color: var(--taupe); }

/* ---------- Testimonials ---------- */
.section-head-center { max-width: 32rem; margin: 0 auto clamp(2.5rem, 6vw, 4rem); text-align: center; }
.section-head-center .eyebrow { justify-content: center; }
.testimonial-grid {
  display: grid; gap: 1px; background: var(--rule);
  border: 1px solid var(--rule);
}
@media (min-width: 48rem) { .testimonial-grid { grid-template-columns: 1fr 1fr; } }
.testimonial-card {
  background: var(--paper); margin: 0; padding: clamp(2rem, 5vw, 3rem);
  display: flex; flex-direction: column; align-items: center; gap: 1.3rem;
  text-align: center;
}
.testimonial-card p {
  font-family: "Spectral", Georgia, serif; font-style: italic;
  font-size: var(--step-1); line-height: 1.55; margin: 0; max-width: 34ch;
}
.testimonial-card cite {
  display: block; font-style: normal;
  font-family: "Work Sans", sans-serif; font-size: var(--step--1);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}

/* ---------- Brand / logo strip ---------- */
.logo-strip {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: clamp(1.75rem, 4vw, 3rem);
}
.logo-strip img { height: 4.6rem; width: auto; max-width: 14rem; display: block; }

/* ---------- Numbered process ---------- */
.process { display: grid; gap: 0; counter-reset: step; }
.process__item {
  display: grid; grid-template-columns: 3.5rem 1fr; gap: 1.5rem;
  padding-block: clamp(1.5rem, 4vw, 2.4rem);
  border-top: 1px solid var(--rule);
}
.process__item:last-child { border-bottom: 1px solid var(--rule); }
.process__item::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: "Spectral", serif; font-size: var(--step-1); color: var(--wine);
}
.process__item h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.process__item p { margin: 0; }

/* ---------- Listings ---------- */
.listing-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.listing {
  border: 1px solid var(--rule); background: var(--paper);
  display: flex; flex-direction: column;
}
.listing__media { position: relative; aspect-ratio: 4 / 3; }
.listing__tag {
  position: absolute; top: 0; left: 0; z-index: 2;
  font-family: "Work Sans", sans-serif; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--ink); color: var(--paper); padding: 0.45rem 0.8rem;
}
.listing__tag--wine { background: var(--wine); }
.listing__tag--taupe { background: var(--taupe); color: var(--ink); }
.listing__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.listing__price { font-family: "Spectral", serif; font-size: var(--step-1); }
.listing__addr { font-size: var(--step--1); color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.listing__meta { margin-top: auto; padding-top: 0.9rem; border-top: 1px solid var(--rule); font-size: var(--step--1); color: var(--muted); display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.4rem; max-width: 34rem; }
.form--wide { max-width: none; }
@media (min-width: 40rem) { .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; } }
.field { display: grid; gap: 0.45rem; }
.field label {
  font-family: "Work Sans", sans-serif; font-size: var(--step--1);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink);
  background: var(--paper); border: 1px solid var(--taupe);
  padding: 0.85rem 0.9rem; border-radius: 0;
}
.band-dim .field input, .band-dim .field select, .band-dim .field textarea { background: var(--paper); }
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: -1px; border-color: var(--wine); }
.form__note { font-size: var(--step--1); color: var(--muted); }

/* ---------- Detail lists ---------- */
.deflist { display: grid; gap: 0; }
.deflist div {
  display: grid; grid-template-columns: 10rem 1fr; gap: 1.5rem;
  padding-block: 1rem; border-top: 1px solid var(--rule);
}
.deflist dt { font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.deflist dd { margin: 0; }
@media (max-width: 40rem) { .deflist div { grid-template-columns: 1fr; gap: 0.3rem; } }

/* ---------- Team ---------- */
.people { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 52rem) { .people { grid-template-columns: 1fr 1fr; } }
.people.people--solo { grid-template-columns: 1fr; max-width: 40rem; margin-inline: auto; }
.person { display: grid; gap: 1.2rem; }
.person__name { font-size: var(--step-2); }
.person__role { font-size: var(--step--1); letter-spacing: 0.16em; text-transform: uppercase; color: var(--wine); margin-top: 0.3rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--taupe); padding-block: clamp(3.5rem, 8vw, 6rem) 2.5rem; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: var(--taupe); }
.site-footer__top { display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 52rem) { .site-footer__top { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer .brand__wordmark { color: var(--paper); }
.site-footer h4 {
  font-family: "Work Sans", sans-serif; font-size: var(--step--1); letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--taupe); margin-bottom: 1.1rem; font-weight: 500;
}
.footer-nav { display: grid; gap: 0.6rem; }
.footer-nav a { font-size: var(--step--1); letter-spacing: 0.06em; }
.site-footer__brand p { color: var(--taupe); max-width: 34ch; margin-top: 1.2rem; font-size: var(--step--1); }
.site-footer__legal {
  margin-top: 3.5rem; padding-top: 1.8rem; border-top: 1px solid #35353a;
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; justify-content: space-between;
  font-size: 0.78rem; color: var(--taupe);
}
.site-footer__legal p { margin: 0; max-width: none; }

/* ---------- Page intro (interior pages) ---------- */
.page-intro { padding-block: clamp(7rem, 12vw, 10rem) var(--section-y); }
.page-intro h1 { font-size: var(--step-4); max-width: 16ch; }
.page-intro .lede { margin-top: 1.6rem; }

/* ---------- Misc ---------- */
.anchor-offset { scroll-margin-top: 6rem; }
[hidden] { display: none !important; }

.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

.note-card {
  border: 1px solid var(--rule); border-left: 2px solid var(--taupe);
  padding: 1.3rem 1.5rem; background: var(--paper);
  font-size: var(--step--1); color: var(--muted); max-width: 52ch;
}
.note-card strong { color: var(--ink); font-weight: 600; letter-spacing: 0.02em; }

/* ---------- Listing fact sheet ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0 clamp(1.5rem, 4vw, 3rem); border-top: 1px solid var(--rule); }
.fact { padding: 1.3rem 0; border-bottom: 1px solid var(--rule); }
.fact__label { font-size: var(--step--1); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.45rem; }
.fact__value { font-family: "Spectral", serif; font-size: var(--step-1); line-height: 1.25; color: var(--ink); margin: 0; }
.fact__value--lg { font-size: var(--step-2); }

/* ---------- Homepage: philosophy + featured listing, one continuous composition ---------- */
:root { --rise: clamp(3rem, 7vw, 6rem); }
.eyebrow__num { font-family: "Spectral", serif; font-size: 1.15em; letter-spacing: 0.04em; color: var(--taupe); margin-right: 0.15rem; }
.band-ink .eyebrow__num, .listing-feature__panel .eyebrow__num { color: var(--taupe); }

.judgment { background: var(--paper-dim); padding: clamp(3rem, 6vw, 5rem) 0; }
.judgment__grid { display: grid; gap: 1.6rem; }
.judgment__title { font-size: clamp(2.7rem, 1.8rem + 4.5vw, 5.04rem); letter-spacing: -0.02em; line-height: 1.02; max-width: 12ch; margin: 0; }
.judgment__statement { font-family: "Spectral", serif; font-size: var(--step-2); line-height: 1.3; color: var(--ink); max-width: 30ch; margin: 0 0 1.4rem; }
.judgment__statement strong { font-weight: 500; }
.judgment__support { max-width: 44ch; margin: 0 0 1.4rem; padding-left: 1.1rem; border-left: 2px solid var(--wine); color: var(--muted); }
.judgment__support strong { font-weight: 500; color: var(--ink); }
.judgment__rule { order: -1; grid-column: 1 / -1; height: 1px; background: color-mix(in srgb, var(--taupe) 55%, transparent); position: relative; margin-bottom: clamp(1rem, 3vw, 2rem); }
.judgment__rule::before { content: ""; position: absolute; left: 0; top: -1px; width: 3.5rem; height: 3px; background: var(--wine); }
@media (min-width: 60rem) {
  .judgment__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(3rem, 7vw, 7rem); align-items: start; }
  .judgment__body { padding-bottom: 0.3rem; }
}

.listing-feature { background: var(--paper); display: flow-root; padding: clamp(2.5rem, 5vw, 4rem) 0 0; }
.listing-feature__grid { display: grid; grid-template-columns: minmax(0, 1fr); position: relative; z-index: 2; }
.listing-feature__media { display: block; aspect-ratio: 4 / 3; box-shadow: 0 1.2rem 2.4rem -1.4rem rgba(27,27,29,0.35); }
.listing-feature__media img { transition: transform 0.6s var(--ease); }
.listing-feature__media:hover img { transform: scale(1.02); }
.listing-feature__panel { position: relative; z-index: 3; background: var(--ink); color: var(--paper); border-top: 3px solid var(--wine); padding: clamp(1.6rem, 3.5vw, 2.8rem); margin: -2.2rem 1.2rem 0; }
.listing-feature__panel .eyebrow { color: var(--taupe); margin-bottom: 1rem; }
.listing-feature__title { font-size: var(--step-2); line-height: 1.15; color: var(--paper); margin: 0 0 0.9rem; }
.listing-feature__addr { color: color-mix(in srgb, var(--paper) 78%, transparent); font-size: var(--step--1); line-height: 1.55; margin: 0 0 1.5rem; }
.listing-feature__label { font-size: var(--step--1); letter-spacing: 0.2em; text-transform: uppercase; color: var(--taupe); margin: 0 0 0.2rem; }
.listing-feature__price { font-family: "Spectral", serif; font-size: var(--step-4); line-height: 1; color: var(--paper); margin: 0; letter-spacing: -0.01em; }
.listing-feature__sub { font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; color: var(--taupe); margin: 0.5rem 0 0; }
.listing-feature__cta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.8rem; padding: 1rem 1.2rem; border: 1px solid var(--taupe); color: var(--paper); text-decoration: none; text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.8rem; font-weight: 500; transition: background 0.25s var(--ease), color 0.25s var(--ease); }
.listing-feature__arrow { color: var(--taupe); font-size: 1.2rem; letter-spacing: 0; transition: color 0.25s var(--ease), transform 0.25s var(--ease); }
.listing-feature__cta:hover { background: var(--paper); color: var(--ink); }
.listing-feature__cta:hover .listing-feature__arrow { color: var(--wine); transform: translateX(0.3rem); }
@media (min-width: 60rem) {
  .listing-feature__grid { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); align-items: start; }
  .listing-feature__media { aspect-ratio: 4 / 3; }
  .listing-feature__panel { margin: 0 0 0 calc(-1 * clamp(3rem, 6vw, 5.5rem)); }
}
@media (prefers-reduced-motion: reduce) { .listing-feature__media img, .listing-feature__cta, .listing-feature__arrow { transition: none; } .listing-feature__media:hover img { transform: none; } }
