:root {
  --bg: #faf8f3;
  --bg-alt: #f1ede3;
  --surface: #ffffff;
  --ink: #121212;
  --ink-soft: #3b3b38;
  --muted: #7a7772;
  --line: rgba(18, 18, 18, 0.09);
  --accent: #c9623a;
  --accent-deep: #9a4826;
  --shadow-sm: 0 1px 2px rgba(18, 18, 18, 0.04), 0 2px 6px rgba(18, 18, 18, 0.04);
  --shadow-md: 0 10px 30px -12px rgba(18, 18, 18, 0.14);
  --shadow-lg: 0 40px 80px -40px rgba(18, 18, 18, 0.28);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --max: 1200px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--font-sans);
  color: var(--ink);
  margin: 0 0 0.4em;
}

h1 {
  font-weight: 600;
  font-size: clamp(2.75rem, 6.5vw, 5.25rem);
  letter-spacing: -0.035em;
  line-height: 1;
}

h2 {
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  letter-spacing: -0.028em;
  line-height: 1.05;
}

h3 {
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.012em;
  line-height: 1.35;
}

p {
  margin: 0 0 1em;
  color: var(--ink-soft);
}

.display-accent { color: var(--muted); font-weight: 500; }

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.18s ease;
}
a:hover { color: var(--accent-deep); }

.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.fine-print {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  background: rgba(250, 248, 243, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  font-weight: 500;
}

.brand-name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
  line-height: 1;
}

.brand-dot {
  color: var(--accent);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1;
}

.site-nav {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.94rem;
}

.site-nav a {
  color: var(--ink-soft);
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
}

.site-nav a:hover {
  background: rgba(18, 18, 18, 0.05);
  color: var(--ink);
}

.nav-cta {
  background: var(--ink) !important;
  color: var(--bg) !important;
  padding: 0.6rem 1.15rem !important;
}

.nav-cta:hover {
  background: var(--accent-deep) !important;
  color: var(--bg) !important;
}

@media (max-width: 720px) {
  .site-nav a:not(.nav-cta) { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent-deep);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(18, 18, 18, 0.18);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(18, 18, 18, 0.04);
}

.btn-lg {
  padding: 1.1rem 2.25rem;
  font-size: 1.05rem;
}

.btn-on-dark {
  background: #fff;
  color: var(--ink);
}
.btn-on-dark:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

/* ---------- Hero (full-bleed) ---------- */
.hero {
  position: relative;
  min-height: min(82vh, 720px);
  display: flex;
  align-items: flex-end;
  padding: clamp(6rem, 12vw, 9rem) clamp(1.5rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  margin-top: -65px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 18, 18, 0.7) 0%, rgba(18, 18, 18, 0.35) 45%, rgba(18, 18, 18, 0.15) 100%),
    linear-gradient(180deg, rgba(18, 18, 18, 0.25) 0%, rgba(18, 18, 18, 0.1) 35%, rgba(18, 18, 18, 0.85) 100%),
    url("/images/hero-site.jpg") center/cover no-repeat;
  z-index: -1;
  transform: scale(1.02);
}

.hero-inner {
  max-width: 58rem;
  width: 100%;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.8);
}

.hero h1 {
  color: #fff;
  margin: 0 0 1.25rem;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}

.hero h1 .display-accent {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
}

.hero .lede {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  max-width: 36rem;
  margin: 0 0 2rem;
  line-height: 1.55;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}

/* ---------- Section scaffolding ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 8rem) clamp(1.5rem, 5vw, 3rem);
}

.section-alt {
  background: var(--bg-alt);
  max-width: none;
  padding-left: clamp(1.5rem, 5vw, 3rem);
  padding-right: clamp(1.5rem, 5vw, 3rem);
}

.section-alt > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  max-width: 48rem;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.section-head p.lede {
  font-size: 1.15rem;
  margin-top: 1rem;
  max-width: 38rem;
}

/* ---------- Grid cards ---------- */
.grid {
  display: grid;
  gap: 2rem 2.5rem;
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 820px) {
  .grid-3 { grid-template-columns: 1fr; gap: 2.25rem; }
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-num {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.feature h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.feature p {
  margin: 0;
  color: var(--ink-soft);
}

/* ---------- Two-column layouts ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.two-col-flip { direction: rtl; }
.two-col-flip > * { direction: ltr; }
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
  .two-col-flip { direction: ltr; }
}

.prose p:last-child { margin-bottom: 0; }
.prose h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  letter-spacing: -0.022em;
}

/* ---------- Stats block ---------- */
.stat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
}

.stat-list li {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.stat-list li:last-child { border-bottom: 1px solid var(--line); }

.stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 500;
}

.stat-value {
  color: var(--ink);
  font-weight: 500;
  font-size: 1.05rem;
}

.stat-value em {
  font-style: normal;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.92rem;
  margin-left: 0.35rem;
}

/* ---------- Media figures ---------- */
.media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.media img {
  display: block;
  width: 100%;
  height: auto;
}

.media figcaption {
  padding: 0.9rem 1.1rem;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  border-top: 1px solid var(--line);
}

/* ---------- Phases ---------- */
.phases {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
}

.phases li {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.phases li:last-child { border-bottom: 1px solid var(--line); }

.phase-num {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  line-height: 1;
  padding-top: 0.5rem;
}

.phases h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.phases p {
  margin: 0;
  max-width: 42rem;
}

/* ---------- Contact ---------- */
.section-contact {
  text-align: center;
  padding: clamp(5rem, 10vw, 8rem) clamp(1.5rem, 5vw, 3rem);
  background: var(--ink);
  color: #fff;
  max-width: none;
}

.section-contact .contact-inner {
  max-width: 44rem;
  margin: 0 auto;
}

.section-contact .eyebrow { color: rgba(255, 255, 255, 0.65); }

.section-contact h2 {
  color: #fff;
  margin-bottom: 0.9rem;
}

.section-contact .lede {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.1rem;
  margin: 0 auto 2.25rem;
  max-width: 34rem;
}

.section-contact .fine-print {
  color: rgba(255, 255, 255, 0.55);
  margin-top: 1.5rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.25rem clamp(1.5rem, 5vw, 3rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-inner p { margin: 0; }
.footer-inner .brand-name { font-size: 1.2rem; }
.footer-inner .brand-dot { font-size: 1.2rem; }

@media (max-width: 820px) {
  .stat-list li { grid-template-columns: 1fr; gap: 0.25rem; }
  .phases li { grid-template-columns: 1fr; gap: 0.5rem; }
  .phase-num { font-size: 1.4rem; }
}
