:root {
  --surface-warm: #FAF8F3;
  --surface-cream: #F5F0E8;
  --surface-plain: #FFFFFF;
  --surface-ink: #1A1A1A;
  --surface-stone: #D4CBC0;
  --text-primary: #2C2926;
  --text-secondary: #6E6258;
  --text-inverse: #FAF8F3;
  --border-subtle: #E6DED4;
  --accent-terracotta: #A94F2D;
  --accent-sage: #8A9A7B;
  --accent-blue: #2563EB;
  --accent-blue-light: #7FA4FF;
  --accent-gold: #E8A951;
  --accent-brick: #A04234;
  --accent-green: #0B7D38;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --font-serif: "Newsreader", Georgia, serif;
  --font-sans: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-humanist: "Source Sans 3", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 1180px;
  --wide: 1440px;
  --radius: 8px;
  --ease-emphasis: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  color: var(--text-primary);
  background: var(--page-bg, var(--surface-warm));
  font-family: var(--body-font, var(--font-sans));
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

.visually-hidden {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 65%, transparent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: var(--space-4);
  left: var(--space-4);
  z-index: 20;
  padding: var(--space-2) var(--space-4);
  color: var(--text-inverse);
  background: var(--surface-ink);
  transform: translateY(-140%);
  transition: transform 180ms ease-out;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: var(--space-5);
  align-items: center;
  width: min(var(--wide), calc(100% - var(--space-8)));
  min-height: 72px;
  margin: 0 auto;
  padding: var(--space-4) 0;
  color: var(--header-text, var(--text-primary));
  background: color-mix(in srgb, var(--page-bg, var(--surface-warm)) 88%, transparent);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-copy {
  display: grid;
  gap: 0;
  min-width: 0;
}

.brand-copy strong {
  font-size: 1rem;
  line-height: 1.1;
}

.brand-copy span {
  overflow: hidden;
  color: var(--muted, var(--text-secondary));
  font-size: 0.78rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.option-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  justify-content: center;
}

.option-nav a {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  color: var(--muted, var(--text-secondary));
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  transition: color 160ms ease-out, background 160ms ease-out, transform 160ms ease-out;
}

.option-nav a:hover,
.option-nav a[aria-current="page"] {
  color: var(--text-primary);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.option-nav a:active,
.button:active {
  transform: translateY(1px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: var(--space-3) var(--space-5);
  border: 1px solid currentColor;
  border-radius: var(--radius);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.1;
  transition: color 180ms ease-out, background 180ms ease-out, border-color 180ms ease-out, transform 180ms ease-out;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--button-text, var(--text-inverse));
  background: var(--accent);
  border-color: var(--accent);
}

.button-primary:hover {
  color: var(--button-text, var(--text-inverse));
  background: var(--accent-strong, var(--accent));
}

.button-secondary {
  color: var(--text-primary);
  background: transparent;
  border-color: color-mix(in srgb, currentColor 32%, transparent);
}

.button-secondary:hover {
  color: var(--text-primary);
  border-color: var(--accent);
}

.button-small {
  min-height: 38px;
  padding: var(--space-2) var(--space-4);
  color: var(--text-primary);
  white-space: nowrap;
}

.home-shell,
.index-main,
.research-main {
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  overflow-x: clip;
}

.hero {
  display: grid;
  min-height: calc(100dvh - 72px);
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  gap: var(--space-16);
  align-items: center;
  width: min(var(--wide), calc(100% - var(--space-8)));
  margin: 0 auto;
  padding: var(--space-16) 0 var(--space-20);
}

.hero-copy {
  max-width: 720px;
}

.concept-label,
.section-kicker {
  margin: 0 0 var(--space-4);
  color: var(--accent);
  font-family: var(--label-font, var(--font-mono));
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
figure,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3,
p,
blockquote,
.button,
.option-nav a {
  overflow-wrap: break-word;
}

h1 {
  max-width: 10.5ch;
  margin-bottom: var(--space-6);
  font-family: var(--headline-font, var(--font-serif));
  font-size: clamp(3rem, 7vw, 6.75rem);
  font-weight: var(--headline-weight, 620);
  letter-spacing: 0;
  line-height: 0.98;
}

h2 {
  margin-bottom: var(--space-5);
  font-family: var(--headline-font, var(--font-serif));
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: var(--section-weight, 560);
  letter-spacing: 0;
  line-height: 1.05;
}

h3 {
  margin-bottom: var(--space-3);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.2;
}

.hero-dek {
  max-width: 66ch;
  margin-bottom: var(--space-8);
  color: var(--muted, var(--text-secondary));
  font-size: 1.1875rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.hero-actions .button {
  flex: 0 1 auto;
  max-width: 100%;
}

.angle-note {
  max-width: 42ch;
  color: var(--muted, var(--text-secondary));
  font-family: var(--label-font, var(--font-mono));
  font-size: 0.84rem;
}

.hero-media {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: var(--surface-stone);
  border-radius: var(--media-radius, var(--radius));
  aspect-ratio: var(--hero-aspect, 4 / 5);
}

.hero-media picture,
.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  filter: var(--image-filter, none);
  transform: scale(1.01);
}

.hero-media figcaption {
  position: absolute;
  right: var(--space-4);
  bottom: var(--space-4);
  padding: var(--space-2) var(--space-3);
  color: var(--caption-text, var(--text-inverse));
  background: color-mix(in srgb, var(--surface-ink) 62%, transparent);
  border-radius: var(--radius);
  font-family: var(--label-font, var(--font-mono));
  font-size: 0.72rem;
}

.proof-band,
.listing-section,
.services-section,
.process-section,
.market-section,
.testimonial-section {
  width: min(var(--max), calc(100% - var(--space-8)));
  margin: 0 auto;
  padding: var(--space-20) 0;
}

.proof-band {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.proof-intro {
  grid-column: 1;
  width: min(760px, 100%);
  max-width: 780px;
  justify-self: start;
}

.proof-band > .section-kicker {
  grid-column: 1;
  width: auto;
  justify-self: start;
}

.proof-intro p,
.market-section p,
.research-content p {
  color: var(--muted, var(--text-secondary));
  font-size: 1.05rem;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  grid-column: 1;
  align-items: stretch;
  width: min(980px, 100%);
  max-width: 980px;
  justify-self: start;
}

.metric {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  min-height: 260px;
  padding: var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.metric-index {
  display: block;
  margin-bottom: var(--space-3);
  color: var(--metric-color, var(--accent));
  font-family: var(--metric-font, var(--font-mono));
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.metric h3 {
  margin-bottom: var(--space-5);
  color: var(--metric-color, var(--accent));
  font-family: var(--headline-font, var(--font-serif));
  font-size: clamp(1.8rem, 2.6vw, 3rem);
  font-weight: var(--section-weight, 640);
  line-height: 0.98;
}

.metric strong {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: 800;
  line-height: 1.35;
}

.metric p {
  align-self: end;
  margin-bottom: 0;
  color: var(--muted, var(--text-secondary));
  font-size: 0.9rem;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  align-items: start;
  width: min(980px, 100%);
  margin-bottom: var(--space-12);
  margin-right: 0;
  margin-left: 0;
}

.photo-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.45fr) minmax(0, 1fr);
  gap: var(--space-12);
  align-items: end;
  width: min(var(--max), calc(100% - var(--space-8)));
  margin: 0 auto;
  padding: var(--space-20) 0;
}

.photo-story {
  max-width: 420px;
}

.photo-story p:not(.section-kicker) {
  color: var(--muted, var(--text-secondary));
  font-size: 1.05rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(180px, 0.72fr);
  grid-template-rows: repeat(2, minmax(160px, 1fr));
  gap: var(--space-4);
  min-height: 560px;
}

.photo-card {
  position: relative;
  overflow: hidden;
  margin: 0;
  min-height: 0;
  background: var(--surface-stone);
  border-radius: var(--media-radius, var(--radius));
}

.photo-card-large {
  grid-row: 1 / span 2;
}

.photo-card picture,
.photo-card img,
.testimonial-photo picture,
.testimonial-photo img {
  display: block;
  width: 100%;
  height: 100%;
}

.photo-card img,
.testimonial-photo img {
  object-fit: cover;
  filter: var(--image-filter, none);
}

.photo-card figcaption,
.testimonial-photo figcaption {
  position: absolute;
  right: var(--space-4);
  bottom: var(--space-4);
  max-width: calc(100% - var(--space-8));
  padding: var(--space-2) var(--space-3);
  color: var(--caption-text, var(--text-inverse));
  background: color-mix(in srgb, var(--surface-ink) 62%, transparent);
  border-radius: var(--radius);
  font-family: var(--label-font, var(--font-mono));
  font-size: 0.72rem;
  line-height: 1.3;
}

.listing-section {
  border-top: 1px solid var(--border);
}

.listing-heading {
  max-width: 860px;
}

.listing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.46fr);
  gap: var(--space-8);
  align-items: stretch;
}

.listing-media {
  display: grid;
  gap: var(--space-3);
  min-width: 0;
}

.listing-photo {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: var(--surface-stone);
  border-radius: var(--media-radius, var(--radius));
}

.listing-photo picture,
.listing-photo img {
  display: block;
  width: 100%;
  height: 100%;
}

.listing-photo img {
  object-fit: cover;
  filter: var(--image-filter, none);
}

.listing-photo-main {
  aspect-ratio: 16 / 10;
  min-height: 430px;
}

.listing-photo-main figcaption {
  position: absolute;
  right: var(--space-4);
  bottom: var(--space-4);
  max-width: calc(100% - var(--space-8));
  padding: var(--space-2) var(--space-3);
  color: var(--caption-text, var(--text-inverse));
  background: color-mix(in srgb, var(--surface-ink) 64%, transparent);
  border-radius: var(--radius);
  font-family: var(--label-font, var(--font-mono));
  font-size: 0.72rem;
  line-height: 1.3;
}

.listing-thumb-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}

.listing-photo-thumb {
  aspect-ratio: 4 / 3;
  min-height: 112px;
}

.listing-panel {
  display: grid;
  align-content: start;
  gap: var(--space-6);
  min-width: 0;
  padding: var(--space-8);
  color: var(--text-primary);
  background: color-mix(in srgb, var(--section-bg, var(--page-bg)) 86%, var(--surface-plain));
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.listing-panel-top {
  display: grid;
  gap: var(--space-3);
}

.listing-address {
  margin: 0;
  color: var(--accent);
  font-family: var(--label-font, var(--font-mono));
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.listing-panel strong {
  display: block;
  color: var(--text-primary);
  font-family: var(--headline-font, var(--font-serif));
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: var(--section-weight, 700);
  line-height: 1;
}

.listing-panel p {
  margin-bottom: 0;
  color: var(--muted, var(--text-secondary));
}

.listing-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
}

.listing-facts div {
  display: grid;
  gap: var(--space-1);
  min-height: 92px;
  padding: var(--space-4);
  background: var(--page-bg);
}

.listing-facts dt {
  color: var(--muted, var(--text-secondary));
  font-family: var(--label-font, var(--font-mono));
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.listing-facts dd {
  margin: 0;
  font-weight: 800;
  line-height: 1.25;
}

.listing-highlights {
  display: grid;
  gap: var(--space-3);
  padding: 0;
  margin: 0;
  color: var(--text-primary);
  list-style: none;
}

.listing-highlights li {
  position: relative;
  padding-left: var(--space-5);
  color: var(--muted, var(--text-secondary));
  font-size: 0.95rem;
}

.listing-highlights li::before {
  position: absolute;
  top: 0.74em;
  left: 0;
  width: var(--space-2);
  height: var(--space-2);
  content: "";
  background: var(--accent);
  border-radius: 50%;
  transform: translateY(-50%);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border);
}

.service-item {
  min-height: 280px;
  padding: var(--space-6);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.service-item:nth-child(4n) {
  border-right: 0;
}

.service-item p {
  margin-bottom: var(--space-8);
  color: var(--accent);
  font-family: var(--label-font, var(--font-mono));
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-item span,
.process-list p,
.testimonial-grid span {
  color: var(--muted, var(--text-secondary));
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  padding: 0;
  margin: 0;
  list-style: none;
}

.process-list li {
  padding: var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.process-list span {
  display: grid;
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-8);
  place-items: center;
  color: var(--button-text, var(--text-inverse));
  background: var(--accent);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-weight: 700;
}

.market-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(300px, 0.52fr);
  gap: var(--space-16);
  align-items: center;
}

.neighborhood-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-content: start;
}

.neighborhood-cloud span {
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  background: color-mix(in srgb, var(--section-bg, var(--page-bg)) 80%, var(--surface-plain));
  font-size: 0.9rem;
  font-weight: 700;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  align-items: stretch;
}

.testimonial-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.58fr);
  gap: var(--space-12);
  align-items: stretch;
}

.testimonial-grid figure {
  display: flex;
  min-height: 0;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  padding: var(--space-6) 0 var(--space-6) var(--space-6);
  border-left: 2px solid var(--accent);
  border-radius: 0;
}

.testimonial-grid blockquote {
  margin: 0 0 var(--space-5);
  font-family: var(--headline-font, var(--font-serif));
  font-size: clamp(1.35rem, 2.3vw, 2.05rem);
  line-height: 1.15;
  text-align: left;
}

.testimonial-grid figcaption {
  display: grid;
  gap: var(--space-1);
  font-weight: 800;
}

.testimonial-photo {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  margin: 0;
  border-radius: var(--media-radius, var(--radius));
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1fr);
  gap: var(--space-12);
  width: min(var(--wide), calc(100% - var(--space-8)));
  margin: var(--space-20) auto 0;
  padding: var(--space-12) 0 var(--space-10);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-8);
}

.site-footer h2 {
  margin-bottom: var(--space-2);
  font-family: var(--label-font, var(--font-mono));
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer p {
  margin-bottom: 0;
  color: var(--muted, var(--text-secondary));
  font-size: 0.92rem;
}

.site-footer a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.index-main,
.research-main {
  width: min(var(--max), calc(100% - var(--space-8)));
}

.index-hero {
  padding: var(--space-24) 0 var(--space-16);
}

.index-hero h1,
.research-main h1 {
  max-width: 11ch;
}

.index-hero p:not(.concept-label) {
  max-width: 70ch;
  color: var(--text-secondary);
  font-size: 1.2rem;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.option-card {
  display: grid;
  align-content: space-between;
  min-height: 380px;
  padding: var(--space-8);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--page-bg);
}

.option-card p {
  margin-bottom: var(--space-5);
  color: var(--accent);
  font-family: var(--label-font, var(--font-mono));
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.option-card h2 {
  max-width: 9ch;
}

.option-card span {
  display: block;
  margin-bottom: var(--space-8);
  color: var(--muted, var(--text-secondary));
}

.research-callout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) auto;
  gap: var(--space-8);
  align-items: center;
  margin: var(--space-16) 0 0;
  padding: var(--space-8) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.research-callout p {
  color: var(--text-secondary);
}

.research-main {
  padding: var(--space-20) 0;
}

.research-content {
  display: grid;
  gap: var(--space-8);
  max-width: 780px;
}

.research-content section {
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--border-subtle);
}

.research-content h2 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.research-content ul {
  padding-left: var(--space-5);
}

.research-content li + li {
  margin-top: var(--space-2);
}

.research-content a {
  color: var(--accent-terracotta);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.theme-river {
  --page-bg: var(--surface-warm);
  --section-bg: var(--surface-warm);
  --accent: var(--accent-terracotta);
  --accent-strong: color-mix(in srgb, var(--accent-terracotta) 82%, var(--surface-ink));
  --border: var(--border-subtle);
  --muted: var(--text-secondary);
  --headline-font: var(--font-serif);
  --body-font: var(--font-sans);
  --label-font: var(--font-mono);
  --media-radius: 4px;
}

.theme-river .hero {
  min-height: auto;
  grid-template-columns: minmax(0, 0.96fr) minmax(320px, 0.72fr);
  gap: var(--space-12);
  padding-top: var(--space-12);
}

.theme-river h1 {
  font-size: clamp(3.2rem, 6.2vw, 5.95rem);
  font-weight: 520;
}

.theme-river .hero-media {
  align-self: stretch;
  max-height: 780px;
  aspect-ratio: 5 / 6;
}

.theme-river .hero-media img {
  object-position: 52% 50%;
}

.theme-alamo {
  --page-bg: var(--surface-plain);
  --section-bg: var(--surface-plain);
  --accent: var(--accent-terracotta);
  --accent-strong: color-mix(in srgb, var(--accent-terracotta) 82%, var(--surface-ink));
  --border: color-mix(in srgb, var(--surface-ink) 14%, transparent);
  --muted: color-mix(in srgb, var(--surface-ink) 70%, transparent);
  --headline-font: var(--font-sans);
  --body-font: var(--font-sans);
  --label-font: var(--font-mono);
  --headline-weight: 800;
  --section-weight: 800;
  --button-text: var(--text-inverse);
  --image-filter: saturate(0.82) contrast(1.04);
  --hero-aspect: 1 / 1;
}

.theme-alamo .hero {
  width: min(var(--wide), calc(100% - var(--space-8)));
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 0.9fr);
  gap: 0;
  align-items: stretch;
  min-height: auto;
  padding: var(--space-4) 0 var(--space-8);
}

.theme-alamo h1 {
  max-width: 11.5ch;
  font-size: clamp(3.2rem, 5vw, 5.2rem);
}

.theme-alamo .hero-copy {
  min-height: min(780px, calc(100dvh - 104px));
  max-width: none;
  padding: var(--space-16) var(--space-12);
  color: var(--text-primary);
  background: color-mix(in srgb, var(--accent-terracotta) 10%, var(--surface-plain));
  border: 1px solid color-mix(in srgb, var(--accent-terracotta) 28%, var(--surface-ink));
  border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
}

.theme-alamo .hero-dek,
.theme-alamo .angle-note {
  color: var(--muted);
}

.theme-alamo .hero-copy .concept-label {
  color: var(--accent);
}

.theme-alamo .button-secondary {
  color: var(--text-primary);
}

.theme-alamo .hero-media {
  width: 100%;
  height: auto;
  min-height: min(780px, calc(100dvh - 104px));
  aspect-ratio: auto;
  border: 1px solid color-mix(in srgb, var(--accent-terracotta) 28%, var(--surface-ink));
  border-left: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.theme-alamo .proof-band {
  width: min(var(--wide), 100%);
  padding-right: max(var(--space-8), calc((100% - var(--max)) / 2));
  padding-left: max(var(--space-8), calc((100% - var(--max)) / 2));
  color: var(--text-primary);
  background: color-mix(in srgb, var(--accent-terracotta) 10%, var(--surface-plain));
  border: 0;
}

.theme-limestone {
  --page-bg: var(--surface-cream);
  --section-bg: var(--surface-cream);
  --accent: var(--accent-brick);
  --accent-strong: color-mix(in srgb, var(--accent-brick) 82%, var(--surface-ink));
  --border: color-mix(in srgb, var(--surface-stone) 78%, var(--text-primary));
  --muted: color-mix(in srgb, var(--text-primary) 74%, transparent);
  --headline-font: var(--font-serif);
  --body-font: var(--font-humanist);
  --label-font: var(--font-humanist);
  --media-radius: 0;
  --image-filter: sepia(0.12) saturate(0.9) brightness(1.03);
  --hero-aspect: 16 / 9;
}

.theme-limestone .hero {
  position: relative;
  grid-template-columns: 1fr;
  grid-template-areas: "stack";
  gap: 0;
  min-height: auto;
  padding-top: var(--space-10);
}

.theme-limestone .hero > * {
  grid-area: stack;
}

.theme-limestone .hero-copy {
  position: relative;
  z-index: 2;
  max-width: 690px;
  align-self: end;
  justify-self: start;
  margin: 0 0 var(--space-10) var(--space-10);
  padding: var(--space-6);
  color: var(--text-inverse);
}

.theme-limestone .hero-copy::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: color-mix(in srgb, var(--surface-ink) 74%, transparent);
  border-radius: var(--radius);
}

.theme-limestone .hero-dek,
.theme-limestone .angle-note {
  color: color-mix(in srgb, var(--text-inverse) 82%, transparent);
}

.theme-limestone .button-secondary {
  color: var(--text-inverse);
}

.theme-limestone .hero-media {
  width: 100%;
  min-height: 610px;
  max-height: 690px;
}

.theme-limestone h1 {
  font-size: clamp(3rem, 5.35vw, 5.05rem);
}

.theme-limestone .services-section,
.theme-limestone .market-section {
  width: 100%;
  max-width: none;
  padding-right: max(var(--space-8), calc((100% - var(--max)) / 2));
  padding-left: max(var(--space-8), calc((100% - var(--max)) / 2));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface-stone) 24%, transparent) 25%, transparent 25%) 0 0 / 24px 24px,
    color-mix(in srgb, var(--surface-stone) 28%, var(--surface-cream));
}

.theme-ledger {
  --page-bg: var(--surface-plain);
  --section-bg: var(--surface-plain);
  --accent: var(--accent-green);
  --accent-strong: color-mix(in srgb, var(--accent-green) 78%, var(--surface-ink));
  --border: color-mix(in srgb, var(--surface-ink) 16%, transparent);
  --muted: color-mix(in srgb, var(--surface-ink) 72%, transparent);
  --headline-font: var(--font-sans);
  --body-font: var(--font-sans);
  --label-font: var(--font-mono);
  --metric-font: var(--font-mono);
  --headline-weight: 760;
  --section-weight: 760;
}

.theme-ledger .hero {
  width: min(var(--max), calc(100% - var(--space-8)));
  min-height: auto;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 0.74fr);
  gap: var(--space-12);
  padding: var(--space-16) 0 var(--space-16);
  text-align: left;
}

.theme-ledger h1 {
  max-width: 9.6ch;
  margin-right: 0;
  margin-left: 0;
}

.theme-ledger .hero-dek,
.theme-ledger .angle-note {
  margin-right: 0;
  margin-left: 0;
}

.theme-ledger .hero-actions {
  justify-content: flex-start;
}

.theme-ledger .hero-media {
  display: block;
  min-height: 560px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 80px color-mix(in srgb, var(--surface-ink) 10%, transparent);
}

.theme-ledger .hero-media img {
  filter: grayscale(0.42) contrast(1.08) brightness(1.02);
}

.theme-ledger .hero-media figcaption {
  display: none;
}

.theme-ledger .proof-band,
.theme-ledger .services-section,
.theme-ledger .process-section,
.theme-ledger .market-section,
.theme-ledger .testimonial-section {
  width: min(var(--max), calc(100% - var(--space-8)));
}

.theme-ledger .section-heading,
.theme-ledger .market-section {
  grid-template-columns: 1fr;
}

.theme-ledger .testimonial-grid {
  grid-template-columns: 1fr;
}

.theme-ledger .metric,
.theme-ledger .process-list li,
.theme-ledger .service-item {
  border-right: 0;
  border-left: 0;
  border-radius: 0;
}

.theme-ledger .testimonial-grid figure {
  border-right: 0;
  border-radius: 0;
}

.option-index {
  --page-bg: var(--surface-warm);
  --accent: var(--accent-terracotta);
  --border: var(--border-subtle);
  --muted: var(--text-secondary);
}

.research-page {
  --page-bg: var(--surface-warm);
  --accent: var(--accent-terracotta);
  --border: var(--border-subtle);
  --muted: var(--text-secondary);
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .option-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    order: 3;
  }

  .hero,
  .theme-river .hero,
  .theme-alamo .hero,
  .theme-river .proof-band,
  .theme-alamo .proof-band,
  .theme-limestone .proof-band,
  .proof-band,
  .listing-layout,
  .market-section,
  .site-footer,
  .research-callout {
    grid-template-columns: 1fr;
  }

  .theme-alamo .hero-copy,
  .theme-alamo .hero-media {
    min-height: auto;
    height: auto;
  }

  .theme-alamo .hero-copy,
  .theme-alamo .hero-media {
    border: 1px solid color-mix(in srgb, var(--accent-terracotta) 28%, var(--surface-ink));
  }

  .theme-alamo .hero-media {
    aspect-ratio: 16 / 10;
  }

  .proof-intro,
  .proof-band > .section-kicker,
  .metric-row {
    grid-column: 1;
  }

  .service-list,
  .metric-row,
  .process-list,
  .testimonial-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-section {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .photo-story {
    max-width: 720px;
  }

  .photo-grid {
    min-height: 460px;
  }

  .listing-panel {
    padding: var(--space-6);
  }

  .service-item:nth-child(2n) {
    border-right: 0;
  }

  .service-item:nth-child(4n) {
    border-right: 1px solid var(--border);
  }
}

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  .site-header {
    width: min(100% - var(--space-6), var(--wide));
    min-height: 0;
    gap: var(--space-2);
    padding: var(--space-3) 0 var(--space-2);
  }

  .brand-copy span {
    display: none;
  }

  .button-small {
    min-height: 34px;
    padding: var(--space-2) var(--space-3);
    font-size: 0.74rem;
  }

  .option-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    width: 100%;
  }

  .option-nav a {
    padding: 7px 4px;
    font-size: 0.7rem;
    text-align: center;
  }

  .hero,
  .theme-river .hero,
  .theme-alamo .hero,
  .theme-limestone .hero,
  .theme-ledger .hero {
    width: min(100% - var(--space-6), var(--wide));
    padding: var(--space-8) 0 var(--space-12);
  }

  .theme-alamo .hero {
    width: 100%;
    padding: 0 0 var(--space-8);
  }

  .theme-alamo .hero-copy {
    padding: var(--space-6) var(--space-5) var(--space-8);
    border-radius: 0;
    border-right: 0;
    border-left: 0;
  }

  .theme-alamo .hero-media {
    order: -1;
    min-height: 168px;
    max-height: 188px;
    border-radius: 0;
    border-right: 0;
    border-left: 0;
  }

  .theme-limestone .hero-copy {
    grid-area: auto;
    margin: 0 0 var(--space-5);
    padding: 0;
    color: var(--text-primary);
  }

  .theme-limestone .hero {
    grid-template-areas: none;
  }

  .theme-limestone .hero-copy::before {
    display: none;
  }

  .theme-limestone .hero-dek,
  .theme-limestone .angle-note {
    color: var(--muted);
  }

  .theme-limestone .button-secondary {
    color: var(--text-primary);
  }

  .theme-limestone .hero-media {
    grid-area: auto;
    order: -1;
    min-height: 214px;
    max-height: none;
    margin-bottom: var(--space-6);
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
  }

  .theme-limestone .hero-media figcaption {
    display: none;
  }

  h1 {
    font-size: clamp(2.45rem, 12.5vw, 4rem);
  }

  h2 {
    font-size: clamp(1.75rem, 8.5vw, 2.75rem);
  }

  .theme-alamo h1,
  .theme-limestone h1,
  .theme-ledger h1 {
    font-size: clamp(2.25rem, 11vw, 3.7rem);
  }

  .theme-alamo h1 {
    font-size: clamp(2.05rem, 10.2vw, 3.35rem);
  }

  .theme-limestone h1 {
    font-size: clamp(2.1rem, 10vw, 3.25rem);
  }

  .theme-limestone .hero-dek {
    font-size: 1.05rem;
  }

  .theme-limestone .hero-actions,
  .theme-ledger .hero-actions {
    justify-content: flex-start;
  }

  .theme-ledger .hero-actions {
    justify-content: flex-start;
  }

  .theme-ledger .hero {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .theme-ledger .hero-media {
    min-height: 280px;
    aspect-ratio: 4 / 3;
  }

  .proof-band,
  .listing-section,
  .services-section,
  .process-section,
  .market-section,
  .testimonial-section,
  .photo-section,
  .theme-ledger .proof-band,
  .theme-ledger .services-section,
  .theme-ledger .process-section,
  .theme-ledger .market-section,
  .theme-ledger .testimonial-section,
  .index-main,
  .research-main {
    width: min(100% - var(--space-6), var(--max));
    padding: var(--space-12) 0;
  }

  .photo-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    min-height: 0;
  }

  .photo-card,
  .photo-card-large {
    grid-row: auto;
    min-height: 210px;
    aspect-ratio: 4 / 3;
  }

  .listing-photo-main {
    min-height: 230px;
    aspect-ratio: 4 / 3;
  }

  .listing-thumb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .listing-photo-thumb {
    min-height: 124px;
  }

  .listing-facts {
    grid-template-columns: 1fr;
  }

  .testimonial-layout {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .testimonial-photo {
    min-height: 260px;
    aspect-ratio: 4 / 3;
  }

  .testimonial-grid figure {
    padding: var(--space-5) 0 var(--space-5) var(--space-4);
  }

  .theme-limestone .services-section,
  .theme-limestone .market-section {
    width: 100%;
    padding-right: var(--space-5);
    padding-left: var(--space-5);
  }

  .section-heading,
  .testimonial-grid,
  .service-list,
  .listing-layout,
  .metric-row,
  .process-list,
  .testimonial-layout,
  .option-grid,
  .footer-grid,
  .theme-ledger .metric {
    grid-template-columns: 1fr;
  }

  .service-item,
  .service-item:nth-child(4n) {
    min-height: auto;
    border-right: 0;
  }

  .option-card {
    min-height: 320px;
    padding: var(--space-6);
  }

  .site-footer {
    width: min(100% - var(--space-6), var(--wide));
    margin-top: var(--space-10);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
}
