/* Aldea: warm village palette pulled from the wordmark */
:root {
  --cream: #FBF6EF;
  --paper: #F4EBDF;
  --sand: #E7D6C2;
  --terra: #BE5A38;       /* logo color */
  --terra-deep: #A8492A;  /* buttons & links (AA on cream) */
  --terra-dark: #6E2F1B;
  --ink: #2B211D;
  --muted: #6A5A51;
  --sage: #56634A;
  --sage-soft: #E2E5D3;
  --sun: #E8B04B;
  --white: #FFFDF9;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 12px;
  --r: 22px;
  --r-lg: 34px;
  --gutter: 16px;
  --section: clamp(4rem, 9vw, 7.5rem);
  --shadow: 0 1px 2px rgba(60, 35, 20, .06), 0 10px 30px -12px rgba(60, 35, 20, .18);
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--terra-deep); text-underline-offset: 3px; }
a:hover { color: var(--terra-dark); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 7.2vw, 4.6rem); letter-spacing: -0.025em; }
h1 em { font-style: italic; color: var(--terra); }
h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); }
h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.005em; }
p { margin: 0 0 1em; text-wrap: pretty; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

.sr-only, .hp {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--white); padding: .6rem 1rem; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }

.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--sage); margin-bottom: 1rem;
}
.muted { color: var(--muted); }
.h-center { text-align: center; max-width: 22ch; margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--terra-deep); color: var(--white);
  font: 600 1rem/1.2 var(--sans);
  padding: 1rem 1.5rem; border: 0; border-radius: 999px;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 18px -8px rgba(168, 73, 42, .7);
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--terra-dark); color: var(--white); transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-small { padding: .6rem 1.1rem; font-size: .92rem; box-shadow: none; }
.btn-light { background: var(--cream); color: var(--terra-dark); box-shadow: none; }
.btn-light:hover { background: var(--white); color: var(--terra-dark); }

.link-arrow { font-weight: 600; text-decoration: none; color: var(--ink); }
.link-arrow::after { content: " →"; color: var(--terra); transition: margin .2s; }
.link-arrow:hover { color: var(--terra-deep); }
.link-arrow:hover::after { margin-left: .2em; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 239, .88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-color: var(--sand); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand img { width: 112px; height: auto; }
@media (min-width: 720px) { .brand img { width: 132px; } }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.75rem; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--terra-deep); }
.nav-toggle { display: none; }

@media (max-width: 879px) {
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px;
    background: none; border: 0; cursor: pointer; margin-right: -10px;
  }
  .bars, .bars::before, .bars::after {
    display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
    transition: transform .25s, opacity .2s;
  }
  .bars { position: relative; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -7px; }
  .bars::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

  .nav ul {
    position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--sand);
    padding: .5rem var(--gutter) 1.25rem;
    display: none;
  }
  .nav ul.open { display: flex; }
  .nav li a:not(.btn) { display: block; padding: .85rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--paper); }
  .nav-cta { padding-top: 1rem; }
  .nav-cta .btn { width: 100%; padding: .9rem; font-size: 1rem; }
}

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 var(--section); }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 4rem; } }
.lede { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }
@media (max-width: 480px) { .hero-actions .btn { width: 100%; } }

.hero-art { position: relative; max-width: 440px; width: 100%; margin: 0 auto; }
.arch {
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px var(--r) var(--r);
  background: var(--terra);
  padding: 14px;
  box-shadow: var(--shadow);
}
.board {
  position: relative; height: 100%;
  border-radius: 999px 999px 12px 12px;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.35) 0 1px, transparent 1.5px) 0 0 / 14px 14px,
    #D9B48F;
  overflow: hidden;
  padding: 26% 8% 8%;
}
.board-title {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 4.5vw, 1.55rem);
  text-align: center; color: var(--terra-dark); margin-bottom: 1rem;
}
.note {
  position: absolute; width: 40%;
  padding: .7rem .75rem .8rem;
  font-size: clamp(.72rem, 2.6vw, .85rem); line-height: 1.3; font-weight: 500; color: var(--ink);
  border-radius: 4px;
  box-shadow: 0 6px 12px -6px rgba(60, 30, 10, .45);
}
.n1 { left: 8%;  top: 38%; background: #FCE9B8; transform: rotate(-4deg); }
.n2 { right: 7%; top: 35%; background: var(--white); transform: rotate(3deg); }
.n3 { left: 12%; top: 62%; background: var(--sage-soft); transform: rotate(2.5deg); }
.n4 { right: 9%; top: 60%; background: #F6D2C2; transform: rotate(-3deg); }
.n5 { left: 33%; top: 81%; background: var(--white); transform: rotate(-1.5deg); width: 36%; }
.pin { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: var(--terra); box-shadow: 0 2px 3px rgba(0,0,0,.3); }
.p1 { left: 27%; top: 37%; } .p2 { right: 25%; top: 34%; background: var(--sage); }
.p3 { left: 31%; top: 61%; background: var(--sun); } .p4 { right: 27%; top: 59%; }
.p5 { left: 50%; top: 80%; background: var(--sage); }

.hang-chip {
  position: absolute; left: -6%; bottom: -20px;
  display: flex; align-items: center; gap: .6rem;
  background: var(--white); border-radius: 999px;
  padding: .6rem 1rem .6rem .7rem;
  font-size: .85rem; font-weight: 600;
  box-shadow: var(--shadow);
}
@media (max-width: 480px) { .hang-chip { left: 2%; } }
.dots { display: flex; }
.dots i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--white); margin-left: -6px; background: var(--terra); }
.dots i:first-child { margin-left: 0; }
.dots i:nth-child(2) { background: var(--sage); }
.dots i:nth-child(3) { background: var(--sun); }
.dots i:nth-child(4) { background: #C98E6B; }
.dots i:nth-child(5) { background: var(--terra-dark); }

/* Problem */
.problem { background: var(--paper); padding: var(--section) 0; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.stats { display: grid; gap: 1.25rem; margin: 2.5rem auto; max-width: 900px; }
@media (min-width: 720px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat { margin: 0; background: var(--white); border-radius: var(--r); padding: 1.75rem; box-shadow: var(--shadow); }
.stat-num {
  font-family: var(--serif); font-variation-settings: "SOFT" 100;
  font-size: clamp(2.4rem, 6vw, 3.3rem); line-height: 1; font-weight: 500;
  color: var(--terra); margin-bottom: .75rem; letter-spacing: -0.02em;
}
.stat figcaption { color: var(--ink); }
.source { display: block; margin-top: .9rem; font-style: normal; font-size: .8rem; color: var(--muted); }
.source a { color: var(--muted); }
.problem-close { text-align: center; max-width: 40ch; margin: 0 auto; font-size: 1.15rem; color: var(--muted); }

/* How */
.how { padding: var(--section) 0; }
.steps { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  position: relative; background: var(--white); border: 1px solid var(--sand);
  border-radius: var(--r); padding: 2rem 1.75rem 1.75rem;
}
.step p { color: var(--muted); margin: 0; }
.step-num {
  display: grid; place-items: center;
  width: 52px; height: 60px; margin-bottom: 1.25rem;
  border-radius: 999px 999px 8px 8px;  /* the arch, from the wordmark */
  background: var(--terra); color: var(--white);
  font: 500 1.5rem/1 var(--serif); padding-top: 6px;
}
.step:nth-child(2) .step-num { background: var(--sage); }
.step:nth-child(3) .step-num { background: var(--terra-dark); }

/* What you get */
.gets { padding: 0 0 var(--section); }
.gets-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .gets-grid { grid-template-columns: .8fr 1.2fr; gap: 4rem; } .gets-grid > div { position: sticky; top: 100px; align-self: start; } }
.gets-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.gets-list li {
  display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: start;
  padding: 1.25rem 1.25rem 1.25rem 1rem; border-radius: var(--r);
  background: var(--paper);
}
.gets-list h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.gets-list p { margin: 0; color: var(--muted); font-size: 1rem; }
.gets-list svg {
  width: 44px; height: 44px; padding: 10px; border-radius: 14px;
  background: var(--white); stroke: var(--terra); fill: none; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Why */
.why { background: var(--sage); color: var(--cream); padding: var(--section) 0; border-radius: var(--r-lg); width: calc(100% - 2 * var(--gutter)); max-width: 1240px; margin: 0 auto; }
.why .eyebrow { color: #D7DEC3; }
.why h2 { max-width: 24ch; }
.why-grid { display: grid; gap: 2.5rem; margin-top: 2rem; }
@media (min-width: 900px) { .why-grid { grid-template-columns: .85fr 1.15fr; gap: 4rem; } }
.why-quote { margin: 0; align-self: start; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--r); padding: 1.75rem; }
.why-quote .stat-num { color: #F3C9A9; font-size: clamp(2rem, 4vw, 2.5rem); white-space: nowrap; }
.why-quote .source, .why-quote .source a { color: #D7DEC3; }
.why-points > p { font-size: 1.15rem; }
.checks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.checks li { position: relative; padding-left: 2.1rem; color: #EEF0E4; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .35em;
  width: 18px; height: 20px; border-radius: 999px 999px 4px 4px; background: #F3C9A9;
}
.checks strong { color: var(--white); }

/* Proof */
.proof { padding: var(--section) 0; }
.proof-grid { display: grid; gap: 1rem; margin-top: 2rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .proof-grid { grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: 1fr 1fr; } }
.placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  border: 2px dashed #CDB59C; border-radius: var(--r);
  background: repeating-linear-gradient(-45deg, var(--paper) 0 12px, #F0E5D7 12px 24px);
  color: var(--muted); font-size: .85rem; font-weight: 600; padding: 1.25rem;
}
.ph-photo { min-height: 180px; grid-column: span 2; }
@media (min-width: 900px) { .ph-photo { grid-column: auto; min-height: 220px; } .ph-tall { grid-row: span 2; } }
.ph-metric { min-height: 160px; background: var(--white); }
.ph-metric .stat-num { margin-bottom: .5rem; }
.ph-metric span { font-weight: 500; }

/* Residents */
.residents { padding: 0 0 var(--section); }
.residents-card {
  display: grid; gap: 2rem;
  background: var(--terra); color: var(--white);
  border-radius: var(--r-lg);
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 5vw, 3.5rem);
  max-width: calc(1160px - 2 * var(--gutter));
  width: calc(100% - 2 * var(--gutter));
}
@media (min-width: 900px) { .residents-card { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; } }
.residents-card p { color: #FBE5D9; font-size: 1.1rem; }
.eyebrow-light { color: #FBE5D9 !important; }

/* Forms */
.form { display: grid; gap: 1rem; }
.form label { display: grid; gap: .4rem; font-size: .9rem; font-weight: 600; }
.form input, .form select {
  font: 400 1rem/1.4 var(--sans); color: var(--ink);
  background: var(--white); border: 1.5px solid var(--sand); border-radius: var(--r-sm);
  padding: .85rem 1rem; width: 100%; min-height: 50px;
  appearance: none; -webkit-appearance: none;
}
.form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236A5A51' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem;
}
.form input:focus, .form select:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 3px rgba(190, 90, 56, .2); }
.form [aria-invalid="true"] { border-color: #B3261E; }
.form .btn { margin-top: .5rem; }
.form-light input { border-color: transparent; }
.form-light input:focus { border-color: var(--sun); box-shadow: 0 0 0 3px rgba(232, 176, 75, .45); }
.form-status { margin: 0; min-height: 1.4em; font-size: .95rem; font-weight: 500; }
.form-status.ok { color: var(--sage); }
.form-status.err { color: #B3261E; }
.form-light .form-status, .form-light .form-status.ok, .form-light .form-status.err { color: var(--white); }
.form.sent label, .form.sent .btn { display: none; }

/* About */
.about { padding: 0 0 var(--section); }
.about-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 820px) { .about-grid { grid-template-columns: 340px 1fr; gap: 4rem; } }
.ph-portrait { aspect-ratio: 4 / 5; border-radius: 999px 999px var(--r) var(--r); max-width: 340px; width: 100%; margin: 0 auto; }
.founder-note { font-size: 1.12rem; max-width: 56ch; }
.signoff { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--terra-deep); }

/* Final CTA */
.cta { background: var(--paper); padding: var(--section) 0; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.cta-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .cta-grid { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; } }
.cta .form { background: var(--white); padding: clamp(1.25rem, 4vw, 2rem); border-radius: var(--r); box-shadow: var(--shadow); }
.cal-link { font-weight: 500; }

/* Footer */
.site-footer { background: var(--ink); color: #CDBFB4; padding: 3rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.site-footer img { width: 104px; height: auto; }
.site-footer p { margin: 0; font-size: .92rem; }
.site-footer .small { font-size: .85rem; }

/* Gentle reveal */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.in { opacity: 1; transform: none; }
}
