/* palette: bg=#FAF4E4 fg=#26301F accent=#5A8A38 */
/* fonts: display="Fraunces" body="Nunito" mono="Space Mono" */

:root {
  --bg: #FAF4E4;        /* warm buttercream background */
  --bg-alt: #EFE4C9;    /* deeper warm sand for alternating sections */
  --fg: #26301F;        /* deep olive-forest text */
  --fg-soft: #3B4A31;   /* slightly lighter foreground */
  --muted: #6E7460;     /* secondary olive-grey text */
  --accent: #5A8A38;    /* leaf green accent */
  --accent-deep: #3F6626; /* darker leaf green for hover */
  --clay: #C77A45;      /* warm clay for gradients/details */
  --clay-deep: #A85E2E;
  --gold: #D8A128;      /* marigold detail */
  --border: rgba(38, 48, 31, 0.14);
  --border-soft: rgba(38, 48, 31, 0.08);
  --serif: 'Fraunces', ui-serif, Georgia, serif;
  --sans: 'Nunito', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.75;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.02em; }
p { margin: 0 0 1.1em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

section { padding: clamp(72px, 12vw, 160px) 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--clay-deep);
  margin: 0 0 20px;
  display: inline-block;
}
.eyebrow--green { color: var(--accent-deep); }

/* ─── Header ─────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 244, 228, 0.86);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  transition: box-shadow 0.4s var(--ease), background 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header[data-scrolled="true"] {
  box-shadow: 0 6px 30px -12px rgba(38, 48, 31, 0.18);
  border-bottom: 1px solid var(--border-soft);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: -0.02em;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand__dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.nav { display: none; }
@media (min-width: 900px) {
  .nav { display: flex; gap: 38px; align-items: center; }
  .nav a {
    font-size: 13px;
    letter-spacing: 0.04em;
    color: var(--fg-soft);
    position: relative;
    padding: 4px 0;
    transition: color 0.25s var(--ease);
  }
  .nav a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    width: 0; height: 1.5px;
    background: var(--accent);
    transition: width 0.3s var(--ease);
  }
  .nav a:hover { color: var(--fg); }
  .nav a:hover::after { width: 100%; }
}
.nav__cta {
  display: none;
}
@media (min-width: 900px) {
  .nav__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 9999px;
    background: var(--fg);
    color: var(--bg) !important;
    font-size: 13px;
    letter-spacing: 0.02em;
    transition: background 0.3s var(--ease), transform 0.3s var(--ease);
  }
  .nav__cta::after { display: none; }
  .nav__cta:hover { background: var(--accent-deep); transform: translateY(-1px); }
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  padding: 6px 0;
}
@media (min-width: 900px) { .menu-toggle { display: none; } }
.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 74px 0 0;
  z-index: 99;
  background: var(--bg);
  padding: 40px 24px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.mobile-menu[data-open="true"] { opacity: 1; transform: none; pointer-events: all; }
.mobile-menu a {
  display: block;
  font-family: var(--serif);
  font-size: 34px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
}
.mobile-menu a:last-child { border-bottom: 0; }

/* ─── Hero ───────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 0;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: heroZoom 9s var(--ease) forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.09); }
  to { transform: scale(1); }
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30,26,14,0.15) 0%, rgba(30,26,14,0.05) 40%, rgba(167,94,46,0.55) 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-bottom: clamp(48px, 8vw, 96px);
  padding-top: 120px;
}
.hero .eyebrow { color: #FBEBD0; }
.hero h1 {
  color: #FDF6E6;
  font-size: clamp(3.2rem, 10vw, 8.5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 300;
  max-width: 15ch;
  margin: 0 0 28px;
}
.hero h1 em {
  font-style: italic;
  color: #F2C879;
}
.hero__sub {
  color: rgba(253, 246, 230, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  max-width: 44ch;
  line-height: 1.6;
  margin-bottom: 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* ─── Buttons ────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 9999px;
  font-size: 15px;
  letter-spacing: 0.01em;
  font-weight: 600;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease);
}
.btn--primary { background: var(--accent); color: #FDF6E6; }
.btn--primary:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: 0 12px 34px -10px rgba(63,102,38,0.6); }
.btn--light { background: #FDF6E6; color: var(--fg); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 12px 34px -10px rgba(0,0,0,0.35); }
.btn--ghost { border: 1px solid var(--border); color: var(--fg); }
.btn--ghost:hover { background: var(--fg); color: var(--bg); }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--accent-deep);
  transition: gap 0.3s var(--ease);
}
.link-arrow:hover { gap: 14px; }
.link-arrow--light { color: #FDF6E6; }

/* ─── Section headers ────────────────────── */
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.section-head h2 em { font-style: italic; color: var(--clay-deep); }
.section-head p { margin-top: 20px; color: var(--muted); font-size: 1.1rem; max-width: 58ch; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center p { margin-left: auto; margin-right: auto; }

/* ─── Manifesto ──────────────────────────── */
.manifesto { text-align: center; }
.manifesto__text {
  font-family: var(--serif);
  font-size: clamp(2rem, 5.4vw, 4.2rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 16ch;
  margin: 0 auto;
  font-weight: 300;
}
.manifesto__text em { font-style: italic; color: var(--clay-deep); }
.manifesto__lead {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent-deep);
  margin-bottom: 34px;
}

/* Dark inverted band */
.band-dark {
  background: var(--fg);
  color: var(--bg);
}
.band-dark .manifesto__text { color: #F4EEDD; }
.band-dark .manifesto__text em { color: var(--gold); }
.band-dark .manifesto__lead { color: #A6B79A; }
.band-dark .eyebrow { color: var(--gold); }
.band-dark .section-head h2 { color: #F4EEDD; }
.band-dark .section-head h2 em { color: var(--gold); }
.band-dark .section-head p { color: rgba(244,238,221,0.65); }

/* ─── Services grid ──────────────────────── */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: 1fr; }
.grid--2 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  padding: 40px 34px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 22px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 46px -14px rgba(38,48,31,0.18);
  border-color: rgba(90,138,56,0.4);
}
.service-card__num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--clay-deep);
}
.service-card h3 {
  font-size: 1.65rem;
  margin: 18px 0 12px;
  line-height: 1.1;
}
.service-card p { color: var(--muted); font-size: 0.98rem; margin: 0; }
.service-card__icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.service-card__icon svg { width: 22px; height: 22px; stroke: #FDF6E6; }

/* ─── Article / library cards ────────────── */
.article-card {
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.article-card:hover { transform: translateY(-6px); box-shadow: 0 18px 46px -14px rgba(38,48,31,0.2); }
.article-card__media { aspect-ratio: 3 / 2; overflow: hidden; }
.article-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.article-card:hover .article-card__media img { transform: scale(1.06); }
.article-card__body { padding: 26px 28px 30px; }
.article-card__tag {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-deep);
}
.article-card h3 { font-size: 1.5rem; margin: 14px 0 10px; line-height: 1.12; }
.article-card p { color: var(--muted); font-size: 0.96rem; margin: 0 0 18px; }
.article-card__meta { font-size: 13px; color: var(--muted); font-family: var(--mono); letter-spacing: 0.04em; }

/* ─── Topics grid ────────────────────────── */
.topic {
  padding: 30px 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg);
  transition: background 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
}
.topic:hover { background: var(--fg); color: var(--bg); transform: translateY(-4px); }
.topic:hover .topic__count { color: var(--gold); }
.topic h3 { font-size: 1.35rem; margin: 0 0 6px; }
.topic__count { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--muted); }

/* ─── Stats ──────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 24px;
}
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat__num {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat__num em { font-style: italic; color: var(--clay-deep); }
.band-dark .stat__num em { color: var(--gold); }
.stat__label { font-size: 14px; color: var(--muted); margin-top: 12px; }
.band-dark .stat__label { color: rgba(244,238,221,0.7); }

/* ─── Split feature ──────────────────────── */
.split { display: grid; gap: 44px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } }
.split--rev .split__media { order: -1; }
@media (min-width: 900px) { .split--rev .split__media { order: 1; } }
.split__media { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.04; margin-bottom: 22px; }
.split h2 em { font-style: italic; color: var(--clay-deep); }
.split p { color: var(--fg-soft); }
.feature-list { list-style: none; padding: 0; margin: 26px 0 0; }
.feature-list li {
  padding: 16px 0;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature-list li:last-child { border-bottom: 1px solid var(--border); }
.feature-list b { font-family: var(--serif); font-weight: 400; font-size: 1.1rem; display: block; margin-bottom: 2px; }
.feature-list span { color: var(--muted); font-size: 0.95rem; }
.feature-list .mk { color: var(--accent); flex-shrink: 0; font-family: var(--mono); font-size: 13px; padding-top: 4px; }

/* ─── FAQ ────────────────────────────────── */
.faq { max-width: 860px; margin: 0 auto; }
.faq__item { border-top: 1px solid var(--border); }
.faq__item:last-child { border-bottom: 1px solid var(--border); }
.faq__q {
  width: 100%;
  text-align: left;
  padding: 28px 40px 28px 0;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  color: var(--fg);
}
.faq__q::after {
  content: '+';
  font-family: var(--sans);
  font-size: 1.6rem;
  color: var(--accent);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}
.faq__item[data-open="true"] .faq__q::after { transform: rotate(45deg); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.faq__a p { color: var(--muted); padding-bottom: 28px; margin: 0; max-width: 62ch; }

/* ─── CTA / newsletter ───────────────────── */
.cta-band {
  background: linear-gradient(140deg, var(--clay) 0%, var(--clay-deep) 55%, #7d4420 100%);
  color: #FDF6E6;
  border-radius: 32px;
  padding: clamp(48px, 8vw, 96px) clamp(28px, 6vw, 80px);
  text-align: center;
}
.cta-band h2 { font-size: clamp(2.2rem, 6vw, 4.4rem); line-height: 1.02; margin-bottom: 20px; }
.cta-band h2 em { font-style: italic; color: #F2C879; }
.cta-band p { color: rgba(253,246,230,0.85); max-width: 52ch; margin: 0 auto 34px; }
.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
  justify-content: center;
}
.newsletter-form input {
  flex: 1 1 260px;
  padding: 15px 22px;
  border-radius: 9999px;
  border: 1px solid rgba(253,246,230,0.4);
  background: rgba(253,246,230,0.12);
  color: #FDF6E6;
  font-size: 15px;
}
.newsletter-form input::placeholder { color: rgba(253,246,230,0.65); }
.newsletter-form input:focus { outline: 2px solid #F2C879; }

/* ─── Forms (contact) ────────────────────── */
.form { display: grid; gap: 20px; }
.form label { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; margin-bottom: 8px; color: var(--fg-soft); }
.form input, .form textarea, .form select {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--accent); border-color: transparent; }
.form textarea { min-height: 150px; resize: vertical; }
.form__row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }

/* ─── Contact info blocks ────────────────── */
.info-block { padding: 28px 0; border-top: 1px solid var(--border); }
.info-block:first-child { border-top: 0; }
.info-block .eyebrow { margin-bottom: 8px; }
.info-block p { margin: 0; color: var(--fg-soft); }

/* ─── Footer ─────────────────────────────── */
.footer {
  background: var(--fg);
  color: rgba(244,238,221,0.72);
  padding: clamp(64px, 9vw, 110px) 0 40px;
}
.footer__top {
  display: grid;
  gap: 44px;
  grid-template-columns: 1fr;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(244,238,221,0.14);
}
@media (min-width: 800px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer__brand { font-family: var(--serif); font-size: 30px; color: #F4EEDD; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.footer__brand .brand__dot { background: var(--gold); }
.footer__tag { max-width: 34ch; font-size: 15px; }
.footer h4 { color: #F4EEDD; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; font-weight: 400; margin-bottom: 20px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 12px; }
.footer li a { font-size: 15px; transition: color 0.25s var(--ease); }
.footer li a:hover { color: var(--gold); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  justify-content: space-between;
  padding-top: 34px;
  font-size: 13px;
  color: rgba(244,238,221,0.5);
}

/* ─── Cookie popup ───────────────────────── */
.cookie-popup {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: flex-end; padding: 24px;
  background: rgba(30,26,14,0.42);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.cookie-popup[data-open="true"] { opacity: 1; pointer-events: all; }
.cookie-popup__card {
  background: var(--bg);
  padding: 32px 36px;
  max-width: 480px;
  border-radius: 20px;
  box-shadow: 0 30px 80px -20px rgba(30,26,14,0.5);
}
.cookie-popup__label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--accent-deep); margin-bottom: 12px; }
.cookie-popup__card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.cookie-popup__card p { font-size: 0.92rem; color: var(--muted); margin: 0; }
.cookie-popup__actions { display: flex; gap: 12px; margin-top: 22px; }
.cookie-popup__actions button {
  padding: 11px 24px;
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.25s var(--ease);
}
.cookie-popup__actions button:hover { transform: translateY(-1px); }
.cookie-popup__actions button:last-child { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ─── Reveal ─────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[style*="--i"] { transition-delay: calc(var(--i) * 80ms); }

/* ─── Page hero (interior) ───────────────── */
.page-hero { padding: clamp(120px, 18vw, 200px) 0 clamp(48px, 8vw, 90px); background: var(--bg-alt); }
.page-hero .eyebrow { color: var(--accent-deep); }
.page-hero h1 { font-size: clamp(2.8rem, 8vw, 6rem); line-height: 0.98; letter-spacing: -0.035em; font-weight: 300; max-width: 16ch; }
.page-hero h1 em { font-style: italic; color: var(--clay-deep); }
.page-hero p { margin-top: 24px; max-width: 52ch; color: var(--fg-soft); font-size: 1.15rem; }

/* ─── Legal / prose ──────────────────────── */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 48px 0 16px; }
.prose h3 { font-size: 1.3rem; margin: 32px 0 12px; }
.prose p, .prose li { color: var(--fg-soft); font-size: 1rem; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent-deep); text-decoration: underline; }

.divider { height: 1px; background: var(--border); margin: 0; border: 0; }

/* thanks page */
.thanks { min-height: 72vh; display: flex; align-items: center; text-align: center; }
.thanks h1 { font-size: clamp(2.6rem, 8vw, 5.5rem); line-height: 1; margin-bottom: 20px; font-weight: 300; }
.thanks h1 em { font-style: italic; color: var(--clay-deep); }
.thanks p { max-width: 46ch; margin: 0 auto 30px; color: var(--muted); }
