/* ============================================================
   Case Commercial — The Case Group / KW Commercial
   v2 — light editorial system (Shakuro reference)
   Surfaces: warm white. UI: near-black. Brand red: details only.
   Type: Instrument Sans (all UI) / Italiana (logo lockup only)
   ============================================================ */

:root {
  --bg: #f4f4f2;            /* page — warm light gray */
  --surface: #ffffff;       /* cards, panels */
  --ink: #131312;           /* primary text, buttons */
  --ink-soft: #2c2c2a;
  --gray: #6e6e69;          /* secondary text */
  --gray-light: #97978f;
  --line: #e6e5e1;          /* hairline borders */
  --red: #c1272d;           /* brand red — details only */
  --radius: 10px;
  --radius-sm: 6px;

  --font-sans: "Instrument Sans", -apple-system, "Helvetica Neue", sans-serif;
  --font-logo: "Italiana", serif;

  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --container: 82rem;

  --ease-out: cubic-bezier(0.22, 0.9, 0.3, 1);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: var(--ink); color: #fff; }

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

/* ---------- type ---------- */

h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; }

.h-display { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
.hero-top.hero-top--fit { grid-template-columns: 1fr; align-items: start; }
.h-section { font-size: clamp(1.9rem, 4vw, 3.1rem); max-width: 14em; }
.h-card { font-size: 1.25rem; letter-spacing: -0.01em; }

.text-gray { color: var(--gray); }
.small { font-size: 0.875rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }

/* section head: big headline left, small gray note right */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 21rem);
  gap: 1.5rem 4rem;
  align-items: start;
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
}
.section-head .note { color: var(--gray); font-size: 0.9375rem; padding-top: 0.5rem; }
.section-head .note p + p { margin-top: 0.75em; }
@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; }
  .section-head .note { padding-top: 0; }
}

/* ---------- layout ---------- */

/* keep anchor targets clear of the sticky header */
[id] { scroll-margin-top: 7.5rem; }

.container { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: clamp(3.5rem, 9vh, 6.5rem); padding-bottom: clamp(3.5rem, 9vh, 6.5rem); }
.section--tight { padding-top: clamp(2rem, 5vh, 3.5rem); }

/* ---------- buttons & chips ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  gap: 0.6rem;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease-out);
}
.btn:hover { background: #000; }
.btn:active { transform: scale(0.98); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { background: #fff; border-color: var(--ink); }
.btn--sm { padding: 0.55rem 1.05rem; font-size: 0.875rem; }
.btn .icon { width: 1.05em; height: 1.05em; flex: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: gap 0.2s ease, color 0.2s ease;
}
.link-arrow:hover { gap: 0.75rem; color: var(--red); }

.chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  letter-spacing: 0.02em;
}
.chip--red { background: var(--red); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(244, 244, 242, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}
.site-header.is-scrolled { background: rgba(255, 255, 255, 0.92); box-shadow: 0 1px 0 var(--line); }

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 6.5rem;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
}

.brand { display: flex; align-items: center; gap: 1rem; margin-right: auto; min-width: 0; }
.brand > span { min-width: 0; }
.brand-mark { width: 4.1rem; height: 4.1rem; flex: none; }
.brand-name {
  font-family: var(--font-logo);
  font-size: 1.9rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink);
  display: block;
  line-height: 1.2;
  white-space: nowrap;
}
.brand-sub {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  white-space: nowrap;
}

.site-nav ul { list-style: none; display: flex; gap: clamp(0.9rem, 2vw, 1.9rem); }
.site-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0.35rem 0;
  position: relative;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--ink);
  transition: right 0.25s var(--ease-out);
}
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { right: 0; }
.site-nav a[aria-current="page"] { color: var(--ink); }

.header-cta { display: flex; align-items: center; gap: 0.75rem; flex: none; }

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  position: relative;
  font-size: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.05rem;
  height: 1.5px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle span::before { transform: translate(-50%, calc(-50% - 5px)); }
.nav-toggle span::after { transform: translate(-50%, calc(-50% + 5px)); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translate(-50%, -50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translate(-50%, -50%) rotate(-45deg); }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    top: 6.5rem;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: none;
    max-height: calc(100dvh - 6.5rem);
    overflow-y: auto;
    box-shadow: 0 24px 40px rgba(19, 19, 18, 0.08);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 0.5rem 0; }
  .site-nav a { display: block; padding: 0.9rem var(--gutter); font-size: 1rem; text-align: center; }
  .site-nav a::after { display: none; }
  .site-nav a[aria-current="page"] { color: var(--red); }
  .header-cta .btn--ghost-mobile { display: none; }
}

@media (max-width: 560px) {
  .header-inner { gap: 0.5rem; height: 5.5rem; }
  .brand { gap: 0.6rem; }
  .brand-mark { width: 2.9rem; height: 2.9rem; }
  /* the wordmark wraps to two lines here — on a phone it cannot fit on one
     without pushing the header (and its white bar) past the viewport */
  .brand-name { font-size: 1.05rem; letter-spacing: 0.04em; line-height: 1.15; white-space: normal; }
  .brand-sub { font-size: 0.5625rem; letter-spacing: 0.2em; }
  .header-cta { gap: 0.5rem; }
  .header-cta .btn--sm { padding: 0.5rem 0.75rem; font-size: 0.8125rem; }
  .nav-toggle { width: 2.4rem; height: 2.4rem; }
  .site-nav { top: 5.5rem; max-height: calc(100dvh - 5.5rem); }
}

@media (max-width: 380px) {
  .brand-mark { width: 2.5rem; height: 2.5rem; }
  .brand-name { font-size: 0.9375rem; }
  .brand-sub { font-size: 0.5rem; letter-spacing: 0.16em; }
  .header-cta .btn--sm { padding: 0.5rem 0.65rem; font-size: 0.78125rem; }
}

/* ---------- hero ---------- */

.hero { padding-top: clamp(2.5rem, 7vh, 5rem); }

.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 20rem);
  gap: 1.5rem 4rem;
  align-items: end;
  margin-bottom: clamp(1.75rem, 4vh, 3rem);
}
@media (max-width: 820px) { .hero-top { grid-template-columns: 1fr; align-items: start; } }

.hero h1 { max-width: 11em; }
.hero h1.h-oneline { max-width: none; }
.hero-side { color: var(--gray); font-size: 0.9375rem; display: grid; gap: 1.25rem; justify-items: start; }

.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 8.5;
  background: var(--line);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); }
@media (max-width: 640px) { .hero-media { aspect-ratio: 4 / 3.4; } }

.hero-badge {
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.8125rem;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(19, 19, 18, 0.12);
}
.hero-badge .brand-mark { width: 1.7rem; height: 1.7rem; }
.hero-badge span { display: block; }
.hero-badge .sub { color: var(--gray); font-weight: 400; font-size: 0.75rem; }

/* load-in choreography */
.load-rise { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s var(--ease-out); }
body.is-loaded .load-rise { opacity: 1; transform: none; }
body.is-loaded .load-rise[data-delay="1"] { transition-delay: 0.08s; }
body.is-loaded .load-rise[data-delay="2"] { transition-delay: 0.16s; }
body.is-loaded .load-rise[data-delay="3"] { transition-delay: 0.26s; }
@media (prefers-reduced-motion: reduce) {
  .load-rise { opacity: 1; transform: none; transition: none; }
}

/* ---------- intake / filter bar ---------- */

.intake {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.intake-tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.intake-tab {
  padding: 0.9rem 1.4rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray);
  background: var(--bg);
  border: none;
  border-right: 1px solid var(--line);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.intake-tab:hover { color: var(--ink); }
.intake-tab[aria-selected="true"] { background: var(--surface); color: var(--ink); }
.intake-body { padding: 1.25rem; display: grid; gap: 1.1rem; }
.intake-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
@media (max-width: 860px) { .intake-fields { grid-template-columns: 1fr; } }

.select-wrap { position: relative; }
.select-wrap select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  padding: 0.8rem 2.4rem 0.8rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.select-wrap select:hover, .select-wrap select:focus { border-color: var(--ink); outline: none; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 1.5px solid var(--gray);
  border-bottom: 1.5px solid var(--gray);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.intake-actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.intake-note { color: var(--gray); font-size: 0.8125rem; }

/* ---------- cards grid (submarkets / resources) ---------- */

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 1000px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }

.market-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}
.market-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(19, 19, 18, 0.1); }
.market-card .media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--line); position: relative; }
.market-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.market-card:hover .media img { transform: scale(1.04); }
.market-card .media .chip { position: absolute; top: 0.8rem; left: 0.8rem; }
.market-card .body { padding: 1.15rem 1.2rem 1.25rem; display: grid; gap: 0.55rem; }
.market-card .title-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.market-card .where { color: var(--gray); font-size: 0.875rem; }

.meta-row { display: flex; flex-wrap: wrap; gap: 0.9rem 1.1rem; padding-top: 0.55rem; border-top: 1px solid var(--line); margin-top: 0.35rem; }
.meta-item { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8125rem; color: var(--gray); }
.meta-item svg { width: 0.95rem; height: 0.95rem; stroke: var(--gray-light); flex: none; }

/* ---------- how it works (sticky steps) ---------- */

.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 900px) { .how-grid { grid-template-columns: 1fr; } }

.how-panel {
  position: sticky;
  top: 5.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  min-height: 26rem;
}
@media (max-width: 900px) { .how-panel { position: static; min-height: 0; } }

.how-copy h3 { font-size: 1.6rem; margin-bottom: 0.7rem; transition: opacity 0.3s ease; }
.how-copy p { color: var(--gray); font-size: 0.9375rem; max-width: 30em; transition: opacity 0.3s ease; }
.how-copy.is-swapping h3, .how-copy.is-swapping p { opacity: 0; }
.how-panel .btn { align-self: flex-start; margin-top: 0.2rem; }

.how-steps { list-style: none; margin-top: auto; display: grid; gap: 0.55rem; padding-top: 1.5rem; }
.how-steps a {
  color: var(--gray-light);
  font-size: 0.9375rem;
  font-weight: 500;
  display: inline-block;
  transition: color 0.25s ease, transform 0.25s var(--ease-out);
}
.how-steps a:hover { color: var(--ink-soft); }
.how-steps li.is-active a { color: var(--ink); transform: translateX(4px); }

.how-track { display: grid; gap: 1.25rem; }
.how-scene {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 11;
  background: var(--line);
}
.how-scene img { width: 100%; height: 100%; object-fit: cover; }
.how-scene .scene-tag {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(19, 19, 18, 0.12);
}

/* ---------- team cards ---------- */

.people-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; max-width: 44rem; }
@media (max-width: 640px) { .people-grid { grid-template-columns: 1fr; max-width: 26rem; } }

.person-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}
.person-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(19, 19, 18, 0.1); }

.portrait {
  aspect-ratio: 4 / 4.4;
  background: linear-gradient(165deg, #ececea 0%, #dfdfdb 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.portrait .plogo {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  font-family: var(--font-logo);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
}
.portrait .initials {
  font-size: clamp(3.5rem, 7vw, 5rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #c9c9c4;
}
.portrait svg.mark { position: absolute; right: -6%; bottom: -8%; width: 52%; opacity: 0.3; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.person-card .body { padding: 1.1rem 1.2rem 1.3rem; display: grid; gap: 0.2rem; }
.person-card .role { color: var(--gray); font-size: 0.875rem; }
.person-card .contact-line { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; margin-top: 0.65rem; font-size: 0.875rem; }
.person-card .contact-line a { color: var(--ink-soft); border-bottom: 1px solid var(--line); transition: border-color 0.2s ease, color 0.2s ease; }
.person-card .contact-line a:hover { color: var(--red); border-color: var(--red); }

/* profile rows (team page detail) */
.profile {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(2.5rem, 6vh, 4rem) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.profile:first-of-type { border-top: none; padding-top: 0; }
@media (max-width: 860px) { .profile { grid-template-columns: 1fr; } }
.profile-media { position: sticky; top: 5.5rem; }
@media (max-width: 860px) { .profile-media { position: static; max-width: 21rem; } }
.profile-media .portrait { border-radius: var(--radius); border: 1px solid var(--line); }
.profile-body { display: grid; gap: 1.1rem; }
.profile-body p { color: var(--ink-soft); max-width: 40em; }
.profile-body .role-tag { color: var(--red); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; }
.contact-row .btn { padding: 0.55rem 1.05rem; font-size: 0.875rem; }

.cred-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 0.5rem; }
@media (max-width: 640px) { .cred-cols { grid-template-columns: 1fr; } }
.cred-cols h4 { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray); margin-bottom: 0.7rem; }

.tick-list { list-style: none; display: grid; gap: 0.5rem; }
.tick-list li { display: flex; gap: 0.6rem; align-items: baseline; font-size: 0.9375rem; color: var(--ink-soft); }
.tick-list li::before { content: "—"; color: var(--red); flex: none; }

/* ---------- stats (facts band) ---------- */

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 860px) { .stat-grid { grid-template-columns: 1fr; } }

.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem 1.5rem;
  display: grid;
  gap: 0.35rem;
}
.stat-card .label { color: var(--gray); font-size: 0.875rem; }
.stat-card .value { font-size: clamp(2.1rem, 4vw, 2.9rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.stat-card .value sup { font-size: 0.5em; color: var(--red); }

.bars { display: flex; align-items: flex-end; gap: 5px; height: 3.2rem; margin-top: 0.9rem; }
.bars i {
  flex: 1;
  background: #ececea;
  border-radius: 3px 3px 0 0;
  height: calc(var(--h, 50) * 1%);
  transition: height 0.8s var(--ease-out);
}
.bars i.hot { background: var(--ink); }
.reveal:not(.is-visible) .bars i { height: 8%; }

/* ---------- timeline (about) ---------- */

.era {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: 1rem 3rem;
  padding: clamp(1.75rem, 4vh, 2.5rem) 0;
  border-top: 1px solid var(--line);
}
@media (max-width: 720px) { .era { grid-template-columns: 1fr; gap: 0.5rem; } }
.era-year { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.era-year small { display: block; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); margin-top: 0.3rem; }
.era-body p { color: var(--ink-soft); max-width: 44em; }

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card, .form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.8rem;
}
.contact-card + .contact-card { margin-top: 1.25rem; }
.contact-card h3 { font-size: 1.3rem; margin: 0.15rem 0 0.6rem; }
.contact-card .role-tag { color: var(--red); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.contact-card .lines { display: grid; gap: 0.35rem; font-size: 0.9375rem; color: var(--ink-soft); }
.contact-card .lines a:hover { color: var(--red); }

form.contact-form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.8125rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  transition: border-color 0.2s ease;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.form-error {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--red);
  border-left: 2px solid var(--red);
  padding: 0.15rem 0 0.15rem 0.85rem;
}
.form-error a { color: inherit; text-decoration: underline; }
.form-error[hidden] { display: none; }

/* standalone SMS-consent checkbox */
.field--consent { gap: 0.55rem; }
.checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  cursor: pointer;
}
.checkbox input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  min-width: 1.15rem;
  margin: 0.12rem 0 0;
  padding: 0;
  accent-color: var(--ink);
  cursor: pointer;
}
.checkbox span { font-size: 0.9375rem; font-weight: 400; line-height: 1.5; color: var(--ink); }
.consent-note { font-size: 0.8125rem; line-height: 1.55; color: var(--gray); }
.consent-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.consent-note a:hover { color: var(--red); }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(2.5rem, 7vh, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  display: grid;
  gap: 1.4rem;
  justify-items: start;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { font-size: clamp(1.9rem, 4.5vw, 3.2rem); max-width: 15em; }
.cta-band p { color: rgba(255, 255, 255, 0.62); max-width: 36em; }
.cta-band .btn { background: #fff; border-color: #fff; color: var(--ink); }
.cta-band .btn:hover { background: var(--bg); }
.cta-band svg.ridge {
  position: absolute;
  right: -2%;
  bottom: -8%;
  width: clamp(16rem, 36vw, 30rem);
  opacity: 0.22;
  pointer-events: none;
}

/* ---------- footer ---------- */

.site-footer { padding: clamp(3rem, 7vh, 4.5rem) 0 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding-bottom: 2.5rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand { display: grid; gap: 0.9rem; align-content: start; justify-items: start; }
.footer-brand p { font-size: 0.875rem; color: var(--gray); max-width: 24em; }

.footer-col h4 { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray); margin-bottom: 0.9rem; }
.footer-col ul { list-style: none; display: grid; gap: 0.5rem; }
.footer-col a, .footer-col li { font-size: 0.9375rem; color: var(--ink-soft); }
.footer-col a:hover { color: var(--red); }

.footer-base {
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  font-size: 0.8125rem;
  color: var(--gray);
}
.footer-base a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }
.footer-base a:hover { color: var(--red); }

/* ---------- legal / prose ---------- */

.legal { max-width: 46rem; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.legal .legal-meta { color: var(--gray); font-size: 0.9375rem; margin: 0.6rem 0 2.5rem; }
.legal h2 {
  font-size: 1.25rem;
  margin: 2.25rem 0 0.85rem;
  padding-top: 1.85rem;
  border-top: 1px solid var(--line);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.legal h3 { font-size: 1rem; margin: 1.4rem 0 0.5rem; }
.legal p { color: var(--ink-soft); line-height: 1.7; margin-bottom: 1rem; }
.legal ul { margin: 0 0 1rem 1.1rem; color: var(--ink-soft); line-height: 1.7; }
.legal li { margin-bottom: 0.35rem; }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--red); }
.legal strong { font-weight: 600; }
.legal .legal-callout {
  border-left: 2px solid var(--red);
  padding: 0.2rem 0 0.2rem 1.1rem;
  margin: 1.4rem 0;
}
.legal .legal-callout p { margin-bottom: 0; }
.legal address {
  font-style: normal;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
[data-stagger] > .reveal:nth-child(2) { transition-delay: 0.07s; }
[data-stagger] > .reveal:nth-child(3) { transition-delay: 0.14s; }
[data-stagger] > .reveal:nth-child(4) { transition-delay: 0.21s; }
[data-stagger] > .reveal:nth-child(5) { transition-delay: 0.28s; }
[data-stagger] > .reveal:nth-child(6) { transition-delay: 0.35s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .market-card, .person-card, .btn, .frame img { transition: none !important; }
}

/* ---------- misc ---------- */

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

/* ============================================================
   Mobile refinements
   Two jobs: (1) nothing may ever push the page wider than the
   screen — a horizontal scroll also leaves the sticky header's
   white bar painted only to the viewport edge; (2) single-column
   blocks get centered instead of hugging the left edge.
   Long-form prose stays left-aligned — centered ragged copy is
   hard to read.
   ============================================================ */

/* clip (not hidden) — keeps the sticky header working */
html, body { overflow-x: clip; }

@media (max-width: 720px) {

  /* hero */
  .hero-top { text-align: center; }
  .hero h1, .hero h1.h-oneline { max-width: 100%; }
  .hero-side { justify-items: center; text-align: center; }

  /* section heads */
  .section-head { text-align: center; }
  .h-section { max-width: 100%; }
  .eyebrow { justify-content: center; }

  /* card grids */
  .card-grid { max-width: 30rem; margin-inline: auto; }
  .market-card .body { text-align: center; }
  .market-card .title-row { flex-direction: column; align-items: center; gap: 0.2rem; }
  .market-card .meta-row { justify-content: center; }
  .market-card .link-arrow { justify-content: center; }

  /* people */
  .people-grid { margin-inline: auto; }
  .person-card .body { text-align: center; }
  .person-card .contact-line { justify-content: center; }

  /* team profiles
     width:100% is required — an auto inline margin on a grid item cancels
     `stretch` sizing, which would collapse the portrait to zero width */
  .profile-media { width: 100%; margin-inline: auto; }
  .profile-body { text-align: center; }
  .profile-body p { text-align: left; }
  .contact-row { justify-content: center; }
  /* centre the list as a block, but keep the dashes aligned with each other */
  .tick-list { width: fit-content; margin-inline: auto; text-align: left; }

  /* stats */
  .stat-grid { max-width: 30rem; margin-inline: auto; }
  .stat-card { text-align: center; }

  /* about timeline */
  .era { text-align: center; }
  .era-body p { text-align: left; }

  /* contact cards + services detail panels */
  .contact-grid { max-width: 34rem; margin-inline: auto; }
  .contact-card { text-align: center; }
  .form-card { text-align: center; }
  .form-card p { text-align: left; }

  /* how it works */
  .how-panel { align-items: center; text-align: center; }
  .how-copy p { margin-inline: auto; }
  .how-panel .btn { align-self: center; }
  .how-steps { justify-items: center; }

  /* properties intake bar */
  .intake { max-width: 34rem; margin-inline: auto; }
  .intake-tabs { justify-content: center; }
  .intake-actions { justify-content: center; text-align: center; }

  /* CTA band */
  .cta-band { justify-items: center; text-align: center; }
  .cta-band h2 { max-width: 100%; }
  .cta-band p { margin-inline: auto; }
  .cta-band svg.ridge { right: -14%; }

  /* privacy / legal prose */
  .legal { margin-inline: auto; }

  /* footer */
  .footer-grid { justify-items: center; text-align: center; }
  .footer-brand { justify-items: center; }
  .footer-brand p { max-width: 30em; }
  .footer-base { justify-content: center; text-align: center; }

  /* forms keep their labels above the inputs, flush left */
  form.contact-form, .field, .checkbox, .consent-note { text-align: left; }
  /* …but the submit button and the trailing note are centred like the rest.
     The button sits in an unclassed wrapper div, so centre that, not the button. */
  form.contact-form > div:not([class]),
  form.contact-form > p.small { text-align: center; }
}
