/* =========================================================
   Oversite Homes — site stylesheet
   Editorial, protective, warm. Teal + terra on bone.
   ========================================================= */

:root {
  /* palette */
  --bg: #F7F6F2;
  --surface: #FFFFFF;
  --surface-alt: #EFEBE2;
  --ink: #1A1A1A;
  --ink-muted: #5A5A5A;
  --teal: #1B474D;
  --teal-dark: #123135;
  --terra: #A84B2F;
  --terra-dark: #813620;
  --line: #D9D3C4;

  /* type */
  --font-serif: "Fraunces", "Source Serif Pro", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;
  --text-4xl: 3rem;
  --text-hero: clamp(2.5rem, 5.5vw, 4.5rem);

  /* spacing */
  --space-section: clamp(4rem, 9vw, 7.5rem);
  --space-section-lg: clamp(5rem, 11vw, 9rem);

  /* layout */
  --max-w: 1200px;
  --max-w-text: 680px;
  --radius: 4px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(26,26,26,0.05);
  --shadow-md: 0 8px 28px rgba(26,26,26,0.08);

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* -------- reset -------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
a { color: inherit; text-decoration: none; }
input, select, textarea, button { font-family: inherit; }

/* -------- base -------- */
html { background: var(--bg); }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern", "liga", "ss01";
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-feature-settings: "ss01", "liga", "kern";
}

h1 { font-size: var(--text-hero); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.875rem, 3.4vw, 2.75rem); letter-spacing: -0.02em; }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

p { color: var(--ink); }
p.lede { font-size: var(--text-lg); color: var(--ink-muted); line-height: 1.55; max-width: var(--max-w-text); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

::selection { background: var(--teal); color: #fff; }

/* -------- layout -------- */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 640px) { .container { padding: 0 1.75rem; } }
@media (min-width: 900px) { .container { padding: 0 2.5rem; } }

section { padding: var(--space-section) 0; }
section.tight { padding: calc(var(--space-section) * 0.7) 0; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.section-head {
  max-width: var(--max-w-text);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head h2 { margin-bottom: 1rem; }

/* -------- buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.5rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--text-base);
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--terra);
  color: #fff;
  border-color: var(--terra);
}
.btn-primary:hover { background: var(--terra-dark); border-color: var(--terra-dark); }

.btn-secondary {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-secondary:hover { background: var(--teal); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--teal);
  padding-left: 0;
  padding-right: 0;
}
.btn-ghost:hover { color: var(--terra); }

.link-arrow {
  color: var(--teal);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.link-arrow:hover { color: var(--terra); border-bottom-color: var(--terra); }
.link-arrow .arrow { transition: transform 0.2s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(3px); }

/* -------- header / nav -------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(247, 246, 242, 0.95);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
}
.brand svg { height: 28px; width: auto; }

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.primary-nav a {
  font-size: var(--text-sm);
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.2s var(--ease);
}
.primary-nav a:hover,
.primary-nav a.is-active { color: var(--teal); }
.primary-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--terra);
}

.nav-cta { display: none; }
@media (min-width: 900px) { .nav-cta { display: inline-flex; } }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.nav-toggle:hover { border-color: var(--teal); }
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative;
  transition: transform 0.25s var(--ease), top 0.25s var(--ease), bottom 0.25s var(--ease), opacity 0.15s;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; position: absolute; left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { bottom: -6px; top: auto; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { bottom: 0; top: 0; transform: rotate(-45deg); }

@media (max-width: 899px) {
  .primary-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - 76px);
    background: var(--bg);
    padding: 2rem 1.5rem 3rem;
    transform: translateY(-100vh);
    transition: transform 0.35s var(--ease), visibility 0s linear 0.35s;
    overflow-y: auto;
    border-top: 1px solid var(--line);
    visibility: hidden;
  }
  .primary-nav[data-open="true"] {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.35s var(--ease), visibility 0s linear 0s;
  }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0.25rem; }
  .primary-nav a {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    display: block;
  }
  .primary-nav .mobile-cta {
    margin-top: 1.5rem;
    width: 100%;
    justify-content: center;
  }
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav .mobile-cta { display: none; }
}

/* -------- hero -------- */
.hero {
  padding-top: clamp(3rem, 7vw, 5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.05fr 1fr; gap: clamp(3rem, 6vw, 5rem); }
}
.hero h1 { margin-bottom: 1.5rem; }
.hero .lede { margin-bottom: 2.25rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--surface-alt);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27,71,77,0) 55%, rgba(27,71,77,0.28) 100%);
  pointer-events: none;
}

/* -------- trust strip -------- */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2.5rem 0;
  background: var(--surface);
}
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1rem;
}
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: left; }
.stat-value {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--teal);
  line-height: 1.05;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  line-height: 1.4;
}

/* -------- 3-col value props -------- */
.value-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
}
@media (min-width: 900px) { .value-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }

.value-card { max-width: 34ch; }
.value-card .icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--teal);
  background: var(--surface-alt);
  border-radius: 50%;
  margin-bottom: 1.25rem;
}
.value-card h3 {
  font-size: var(--text-xl);
  margin-bottom: 0.75rem;
  color: var(--teal);
}
.value-card p { color: var(--ink-muted); line-height: 1.6; }

/* -------- service tier cards -------- */
.tier-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) { .tier-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tier-grid { grid-template-columns: repeat(4, 1fr); } }

.tier-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.tier-card:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.tier-card .tier-price {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--teal);
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}
.tier-card .tier-name {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  margin-bottom: 1rem;
  font-weight: 500;
}
.tier-card .tier-tagline {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  line-height: 1.3;
  margin-bottom: 1.75rem;
  color: var(--ink);
}
.tier-card .link-arrow { margin-top: auto; }

/* -------- detailed tier blocks (services page) -------- */
.tier-detail {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}
.tier-detail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.tier-detail-head .num {
  font-family: var(--font-serif);
  font-size: var(--text-sm);
  color: var(--terra);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tier-detail-head h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--teal);
  margin-right: auto;
}
.tier-detail-head .price {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  color: var(--ink);
}
.tier-detail .what-you-get {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}
.tier-detail ul.bullets {
  margin-bottom: 1.75rem;
  display: grid; gap: 0.65rem;
}
.tier-detail ul.bullets li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--ink);
  line-height: 1.55;
}
.tier-detail ul.bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.7em;
  width: 0.65rem; height: 1px;
  background: var(--terra);
}
.tier-detail .best-for {
  color: var(--ink-muted);
  margin-bottom: 1.75rem;
  max-width: 60ch;
}
.tier-detail .best-for strong { color: var(--ink); font-weight: 600; }

/* -------- comparison table -------- */
.compare-wrap { overflow-x: auto; }
.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.compare th, .compare td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: var(--text-sm);
}
.compare th {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--teal);
  background: var(--surface-alt);
  font-size: var(--text-base);
  letter-spacing: -0.01em;
}
.compare tr:last-child td { border-bottom: 0; }
.compare td.check { color: var(--teal); font-weight: 600; }
.compare td.dash { color: var(--line); }
.compare th:first-child, .compare td:first-child { font-weight: 500; color: var(--ink); }

/* -------- how it works / process -------- */
.steps {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps.steps-4 { grid-template-columns: repeat(4, 1fr); } }

.step {
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  position: relative;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-serif);
  font-size: var(--text-sm);
  color: var(--terra);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.75rem;
}
.step h3 { font-size: var(--text-lg); margin-bottom: 0.5rem; color: var(--teal); }
.step p { color: var(--ink-muted); line-height: 1.6; }

.steps-long {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  counter-reset: step;
}
.step-long {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}
.step-long:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .step-long { grid-template-columns: 220px 1fr; gap: 3rem; } }
.step-long .step-num {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw, 2.5rem);
  color: var(--terra);
  line-height: 1;
  letter-spacing: -0.02em;
}
/* step number text is provided in HTML; counter removed to avoid duplication */
.step-long h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2vw, 1.65rem);
  color: var(--teal);
  margin-bottom: 0.75rem;
}
.step-long p {
  color: var(--ink-muted);
  max-width: 60ch;
}

/* -------- testimonial cards -------- */
.testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) { .testimonials { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .testimonials { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

.testimonial {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
}
.testimonial .quote-mark {
  font-family: var(--font-serif);
  color: var(--terra);
  font-size: 2.5rem;
  line-height: 0.5;
  margin-bottom: 1rem;
  opacity: 0.75;
}
.testimonial blockquote {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 1.5rem;
  flex: 1;
  letter-spacing: -0.01em;
}
.testimonial cite {
  font-style: normal;
  font-size: var(--text-sm);
  color: var(--ink-muted);
  line-height: 1.5;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  display: block;
}
.testimonial cite strong { color: var(--teal); font-weight: 500; }

/* -------- partnership band -------- */
.band {
  background: var(--teal);
  color: #fff;
  padding: clamp(3rem, 7vw, 5rem) 0;
  border-radius: var(--radius-lg);
}
.band-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}
@media (min-width: 900px) { .band-inner { grid-template-columns: 1.2fr 1fr; gap: 3rem; } }
.band h2 { color: #fff; margin-bottom: 1rem; }
.band p { color: rgba(255,255,255,0.8); max-width: 50ch; }
.band .band-cta-wrap { display: flex; justify-content: flex-start; }
@media (min-width: 900px) { .band .band-cta-wrap { justify-content: flex-end; } }
.band .btn-light {
  background: #fff;
  color: var(--teal);
  border-color: #fff;
}
.band .btn-light:hover { background: var(--surface-alt); color: var(--teal-dark); }

/* -------- final CTA band -------- */
.cta-band {
  text-align: center;
  background: var(--surface-alt);
  padding: clamp(3.5rem, 8vw, 6rem) 1.5rem;
  border-radius: var(--radius-lg);
}
.cta-band h2 { margin-bottom: 1rem; color: var(--teal); }
.cta-band p { max-width: 60ch; margin: 0 auto 2rem; color: var(--ink-muted); font-size: var(--text-lg); }

/* -------- 2-col editorial section -------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } }
.two-col .media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--surface-alt);
}
.two-col .media img { width: 100%; height: 100%; object-fit: cover; }
/* On desktop, .reverse puts media on the right; on mobile text stays first. */
@media (min-width: 900px) { .two-col.reverse .media { order: 2; } }

/* -------- about / story -------- */
.story-copy p {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 1.8vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink);
  max-width: var(--max-w-text);
  margin-bottom: 1.5rem;
  letter-spacing: -0.005em;
}
.story-copy p:last-child { margin-bottom: 0; }

.founder-bio {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--terra);
  padding: 2rem;
  border-radius: var(--radius);
  max-width: var(--max-w-text);
}
.founder-bio h4 { margin-bottom: 0.5rem; color: var(--teal); }
.founder-bio p { color: var(--ink-muted); }

/* -------- checklist -------- */
.checklist {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem 2rem;
}
@media (min-width: 640px) { .checklist { grid-template-columns: repeat(2, 1fr); } }
.checklist li {
  position: relative;
  padding: 0.75rem 0 0.75rem 2rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: var(--text-base);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.15em;
  width: 14px; height: 8px;
  border-left: 2px solid var(--terra);
  border-bottom: 2px solid var(--terra);
  transform: rotate(-45deg);
}

/* -------- partnership lists -------- */
.partner-lists {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 900px) { .partner-lists { grid-template-columns: 1fr 1fr; } }
.partner-list h3 { color: var(--teal); margin-bottom: 1.25rem; font-size: var(--text-xl); }
.partner-list ul li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: var(--text-base);
}
.partner-list ul li:first-child { border-top: 1px solid var(--line); }

/* -------- form -------- */
.form-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 900px) { .form-wrap { grid-template-columns: 1.3fr 1fr; } }

.intake-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
}
.intake-form .field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) { .intake-form .field-grid.two { grid-template-columns: 1fr 1fr; } }

.field label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.45rem;
  letter-spacing: 0.01em;
}
.field label .req { color: var(--terra); margin-left: 0.25rem; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font-size: var(--text-base);
  line-height: 1.4;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  font-family: var(--font-sans);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(27,71,77,0.15);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%231B474D' d='M6 8 0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.field small {
  display: block;
  color: var(--ink-muted);
  margin-top: 0.35rem;
  font-size: var(--text-xs);
}
.field input:invalid:not(:placeholder-shown),
.field textarea:invalid:not(:placeholder-shown) {
  border-color: var(--terra);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.form-actions small { color: var(--ink-muted); font-size: var(--text-xs); flex: 1; min-width: 200px; }

.success-card {
  background: var(--surface);
  border: 1px solid var(--teal);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  text-align: left;
}
.success-card .check-badge {
  width: 48px; height: 48px;
  background: var(--teal);
  color: #fff;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.success-card h2 { color: var(--teal); margin-bottom: 1rem; }
.success-card p { color: var(--ink-muted); margin-bottom: 1rem; max-width: 55ch; }

.side-info {
  padding: 0.5rem 0;
}
.side-info h3 {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  margin-bottom: 1rem;
  font-weight: 500;
  font-family: var(--font-sans);
}
.side-info ul li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.side-info ul li a { color: var(--teal); }
.side-info ul li a:hover { color: var(--terra); }
.side-info ul li span { display: block; font-size: var(--text-xs); color: var(--ink-muted); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.25rem; }

/* -------- footer -------- */
.site-footer {
  background: var(--teal-dark);
  color: rgba(255,255,255,0.75);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
  margin-top: clamp(4rem, 8vw, 7rem);
}
.site-footer .footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .site-footer .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
}
.site-footer .brand svg { color: #fff; }
.site-footer .tagline {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  color: #fff;
  margin-top: 1rem;
  max-width: 34ch;
  line-height: 1.35;
}
.site-footer h4 {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1rem;
  font-weight: 500;
}
.site-footer ul li { padding: 0.4rem 0; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--terra); }
.site-footer .legal {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  margin-top: 2rem;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

/* -------- reveal on scroll -------- */
/* Only dim elements when JS has loaded (html.js-on). Prevents content being
   invisible for users with JS disabled or slow connections. */
html.js-on .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: transform, opacity;
}
html.js-on .reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  html.js-on .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

/* -------- page header (inner pages) -------- */
.page-header {
  padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}
.page-header h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  margin-bottom: 1.25rem;
  max-width: 20ch;
}
.page-header p.lede { font-size: var(--text-lg); max-width: 58ch; }

/* -------- misc utilities -------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mt-lg { margin-top: clamp(2rem, 4vw, 3rem); }
.hidden { display: none !important; }
