:root {
  --ground: #eef0ea;
  --paper: #f7f8f4;
  --ink: #1e2822;
  --muted: #4f5b53;
  --rule: #bfc6bd;
  --rule-soft: #d6dbd3;
  --deep: #26332c;
  --error: #9b3b2e;
  --display: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --label: "Jost", "Futura", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--muted); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0 0 0.45em; color: var(--ink); }
h1 { font-size: clamp(2.8rem, 6.2vw, 5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); letter-spacing: -0.005em; }
h3 { font-size: 1.75rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

.label, .eyebrow {
  font-family: var(--label);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow { margin-bottom: 1.4rem; display: block; }
.lede { font-size: 1.22rem; line-height: 1.6; color: var(--muted); max-width: 40rem; }
.caption { font-family: var(--label); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(238, 240, 234, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: auto; }
.brand-name { font-family: var(--display); font-size: 1.3rem; letter-spacing: 0.01em; white-space: nowrap; }
.brand-sub { font-family: var(--label); font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); border-left: 1px solid var(--rule); padding-left: 12px; margin-left: 2px; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { font-family: var(--label); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-block;
  font: 500 0.74rem/1 var(--label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 16px 24px;
  border: 1px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--ink); color: var(--ground); }
.btn-primary:hover { background: var(--deep); color: #fff; }
.btn-primary[disabled] { opacity: 0.6; cursor: progress; }
.btn-quiet, .site-nav a.btn-quiet { background: transparent; color: var(--ink); padding: 11px 16px; white-space: nowrap; }
.btn-quiet:hover, .site-nav a.btn-quiet:hover { background: var(--ink); color: var(--ground); }

/* ---------- Gate page ---------- */
.gate-page .site-header .wrap { max-width: none; }
.gate { display: grid; grid-template-columns: 1.08fr 0.92fr; min-height: calc(100vh - 71px); }
.gate-image { position: sticky; top: 71px; align-self: start; height: calc(100vh - 71px); overflow: hidden; background: #cfd8d6; }
.gate-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 82%; }
.gate-image .caption { position: absolute; left: 28px; bottom: 22px; margin: 0; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,0.35); }
.gate-copy { padding: 64px 56px 56px; display: flex; flex-direction: column; justify-content: center; }
.gate-copy h1 { font-size: clamp(2.6rem, 4.6vw, 4rem); }
.gate-copy .lede { font-size: 1.12rem; }
.gate-facts { list-style: none; padding: 0; margin: 28px 0 34px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.gate-facts li { padding: 16px 14px 14px 0; }
.gate-facts li + li { padding-left: 16px; border-left: 1px solid var(--rule); }
.gate-facts strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.7rem; line-height: 1.1; }
.gate-facts span { display: block; line-height: 1.45; margin-top: 4px; font-family: var(--label); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.panel { background: var(--paper); border: 1px solid var(--rule); padding: 32px 32px 26px; }
.panel h2 { font-size: 1.9rem; margin-bottom: 0.3em; }
.panel .small, .small { font-size: 0.86rem; color: var(--muted); }
.returning { font-size: 0.9rem; margin-top: 14px; }

/* ---------- Fund overview ---------- */
.hero-image { position: relative; height: min(76vh, 760px); min-height: 380px; overflow: hidden; background: #cfd8d6; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hero-image::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(to top, rgba(20, 28, 24, 0.38), rgba(20, 28, 24, 0)); pointer-events: none; }
.hero-image .caption { z-index: 1;  position: absolute; right: 28px; bottom: 18px; margin: 0; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,0.4); }
.intro { padding: 72px 0 80px; }
.intro-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: end; }
.intro h1 { margin-bottom: 0.35em; }
.facts { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.facts li { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--rule); }
.facts strong { font-family: var(--display); font-weight: 400; font-size: 1.65rem; line-height: 1.1; white-space: nowrap; }
.facts span { font-family: var(--label); font-size: 0.68rem; letter-spacing: 0.17em; text-transform: uppercase; color: var(--muted); text-align: right; }

.section { padding: 96px 0; border-top: 1px solid var(--rule); }
.section-paper { background: var(--paper); }
.section-head { max-width: 44rem; margin-bottom: 52px; }
.section-head p:last-child { margin-bottom: 0; }

/* Market */
.market-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); }
.stat { padding: 24px 22px 24px 0; border-bottom: 1px solid var(--rule); }
.stat:nth-child(even) { padding-left: 22px; padding-right: 0; border-left: 1px solid var(--rule); }
.stat strong { display: block; font-family: var(--display); font-weight: 400; font-size: 2.9rem; line-height: 1; margin-bottom: 10px; }
.stat span { display: block; font-size: 0.95rem; line-height: 1.55; color: var(--muted); }
.market-note { margin-top: 28px; }
.source { font-size: 0.8rem; line-height: 1.55; color: var(--muted); font-style: italic; }
figure { margin: 0; }

/* Homes */
.feature { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 20px; margin-bottom: 64px; }
.feature-main img, .feature-side img { width: 100%; object-fit: cover; }
.feature-main img { aspect-ratio: 16 / 9.2; }
.feature-side { display: grid; grid-template-rows: auto 1fr; gap: 20px; }
.feature-side img { aspect-ratio: 4 / 3; }
.feature-copy { border-top: 1px solid var(--rule); padding-top: 18px; }
.feature-copy h3 { font-size: 2.3rem; margin-bottom: 4px; }
.status { display: inline-block; font-family: var(--label); font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ground); background: var(--ink); padding: 6px 9px 5px; margin-bottom: 14px; }
.hood { font-family: var(--label); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.homes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.home img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #dfe3dc; }
.home-body { padding-top: 18px; border-top: 1px solid var(--rule); margin-top: 16px; }
.home h3 { margin-bottom: 4px; }
.home p { font-size: 0.98rem; color: var(--muted); }

/* How it works */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); }
.pillar { padding: 26px 24px 8px 0; }
.pillar + .pillar { padding-left: 24px; border-left: 1px solid var(--rule); }
.pillar h3 { font-size: 1.45rem; line-height: 1.15; margin-bottom: 10px; }
.pillar p { font-size: 0.96rem; color: var(--muted); }
.returns { margin-top: 72px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.returns-figs { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.returns-figs div { padding: 22px 0 20px; border-bottom: 1px solid var(--rule); }
.returns-figs div:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--rule); }
.returns-figs strong { display: block; font-family: var(--display); font-weight: 400; font-size: 2.6rem; line-height: 1; margin-bottom: 8px; }
.returns-figs span { font-family: var(--label); font-size: 0.66rem; letter-spacing: 0.17em; text-transform: uppercase; color: var(--muted); }
.caution { font-size: 0.84rem; line-height: 1.6; color: var(--muted); margin-top: 18px; }

/* Sponsor */
.sponsor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.record { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.record li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.record strong { font-family: var(--display); font-weight: 400; font-size: 1.5rem; margin-right: 8px; }
.awards { margin-top: 56px; padding: 26px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.awards p { margin: 0; font-size: 0.92rem; line-height: 1.5; }
.awards .label { display: block; margin-bottom: 6px; font-size: 0.64rem; }
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 56px; }
.person h3 { font-size: 1.5rem; margin-bottom: 2px; }
.person .role { font-family: var(--label); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.person p { font-size: 0.95rem; color: var(--muted); }

/* Terms */
.terms { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.terms th, .terms td { text-align: left; vertical-align: top; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.terms tr:first-child th, .terms tr:first-child td { border-top: 1px solid var(--ink); }
.terms th { width: 28%; padding-right: 24px; font-family: var(--label); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.17em; text-transform: uppercase; color: var(--ink); padding-top: 20px; }
.terms td { color: var(--muted); }

/* Call */
.call-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; counter-reset: step; border-top: 1px solid var(--rule); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 0.96rem; color: var(--muted); }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--label); font-size: 0.72rem; letter-spacing: 0.12em; color: var(--ink); padding-top: 4px; }
.steps strong { color: var(--ink); font-weight: 400; font-family: var(--display); font-size: 1.15rem; display: block; }

/* Forms */
.occp-form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--label); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink); }
.field .req { color: var(--muted); margin-left: 2px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field input[type="number"], .field select, .field textarea {
  width: 100%;
  font: 400 1rem/1.4 var(--serif);
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 12px 13px;
  appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid rgba(30, 40, 34, 0.25); outline-offset: 1px; border-color: var(--ink); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"], .field [aria-invalid="true"] { border-color: var(--error); }
.field-check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.field-check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--ink); }
.field-check label { font-family: var(--serif); text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 0.9rem; line-height: 1.5; color: var(--muted); }
.field-check .field-err { grid-column: 2; }
.field-help { font-size: 0.82rem; color: var(--muted); margin: 0; }
.field-err { font-size: 0.84rem; color: var(--error); margin: 0; }
.form-error { font-size: 0.9rem; color: var(--error); margin: 0; }
.form-loading { color: var(--muted); font-size: 0.95rem; }
.form-actions { display: flex; gap: 12px; align-items: center; margin-top: 4px; }
.form-done { padding: 8px 0; }
.form-done h3 { margin-bottom: 8px; }

/* Footer */
.site-footer { background: var(--ink); color: #c4cbc4; padding: 60px 0 68px; font-size: 0.8rem; line-height: 1.65; }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; color: #fff; text-decoration: none; }
.footer-brand img { width: 44px; }
.footer-brand span { font-family: var(--display); font-size: 1.35rem; }
.site-footer p { max-width: 64rem; }
.site-footer .fine-head { font-family: var(--label); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: #fff; margin-bottom: 8px; }

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

@media (max-width: 980px) {
  .gate { grid-template-columns: 1fr; min-height: 0; }
  .gate-image { position: relative; top: 0; height: 46vh; min-height: 280px; }
  .gate-copy { padding: 44px 28px 56px; }
  .intro-grid, .market-grid, .sponsor-grid, .call-grid, .returns, .feature { grid-template-columns: 1fr; gap: 40px; }
  .feature-side { grid-template-rows: auto; }
  .homes, .people, .awards { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar:nth-child(3) { padding-left: 0; border-left: 0; }
  .pillar:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .site-nav a:not(.btn) { display: none; }
  .section { padding: 72px 0; }
  .intro { padding: 52px 0 64px; }
  .terms th { width: 38%; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .brand-sub { display: none; }
  .brand-name { font-size: 1.15rem; }
  .brand img { width: 34px; }
  .site-nav a.btn-quiet { padding: 10px 12px; font-size: 0.66rem; letter-spacing: 0.14em; }
  .gate-facts { grid-template-columns: 1fr 1fr 1fr; }
  .gate-facts strong { font-size: 1.35rem; }
  .gate-facts span { font-size: 0.58rem; letter-spacing: 0.1em; }
  .panel { padding: 26px 20px 22px; }
  .stats, .returns-figs { grid-template-columns: 1fr; }
  .stat:nth-child(even), .returns-figs div:nth-child(even) { padding-left: 0; border-left: 0; }
  .pillars { grid-template-columns: 1fr; }
  .pillar + .pillar { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .terms th, .terms td { display: block; width: 100%; padding: 6px 0; border: 0; }
  .terms tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .terms tr:first-child { border-top: 1px solid var(--ink); }
  .terms tr:first-child th, .terms tr:first-child td { border-top: 0; }
  .facts span { font-size: 0.6rem; }
}