/* palette: bg=#ECEEE2 fg=#1B2A20 accent=#3E6B4F */
/* fonts: display="Fraunces" body="Work Sans" mono="IBM Plex Mono" */

:root {
  --bg: #ECEEE2;        /* pale sage paper — dominant background */
  --bg-alt: #E1E6D3;    /* deeper sage tint for alternating sections */
  --paper: #F5F6EE;     /* lighter card surface */
  --fg: #1B2A20;        /* deep moss ink — primary text */
  --fg-soft: #33463A;   /* slightly lighter foreground */
  --muted: #6C7A68;     /* secondary muted moss */
  --accent: #3E6B4F;    /* sage / moss green accent */
  --accent-deep: #274a37;/* darker accent for hover */
  --accent-leaf: #7C9A6B;/* soft leaf highlight */
  --border: rgba(27, 42, 32, 0.14);
  --border-soft: rgba(27, 42, 32, 0.08);
  --serif: 'Fraunces', ui-serif, Georgia, serif;
  --sans: 'Work Sans', ui-sans-serif, system-ui, sans-serif;
  --mono: 'IBM Plex 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);
  line-height: 1.75;
  color: var(--fg);
  background: var(--bg);
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  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; }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }
.section { padding: clamp(72px, 12vw, 152px) 0; }
.eyebrow {
  font-family: var(--mono);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent-leaf);
}
.lead { font-size: clamp(1.05rem, 2vw, 1.28rem); line-height: 1.72; color: var(--fg-soft); max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 9999px;
  font-size: 14px;
  letter-spacing: 0.02em;
  font-weight: 500;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.4s var(--ease);
}
.btn--primary { background: var(--accent); color: var(--paper); }
.btn--primary:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(39, 74, 55, 0.6); }
.btn--ghost { border: 1px solid var(--border); color: var(--fg); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn--light { background: var(--paper); color: var(--fg); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(0,0,0,0.5); }
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  transition: gap 0.3s var(--ease);
}
.arrow-link:hover { gap: 14px; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(236, 238, 226, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.header[data-scrolled="true"] {
  box-shadow: 0 1px 24px -12px rgba(27, 42, 32, 0.5);
  border-color: var(--border-soft);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 1.35rem; letter-spacing: -0.02em; }
.brand__mark {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  color: var(--accent);
  flex-shrink: 0;
}
.nav { display: none; gap: 34px; align-items: center; }
.nav a { font-size: 14px; color: var(--fg-soft); transition: color 0.3s var(--ease); position: relative; }
.nav a:hover { color: var(--accent); }
.header__cta { display: none; }
@media (min-width: 940px) {
  .nav { display: flex; }
  .header__cta { display: inline-flex; }
}
.menu-toggle {
  display: inline-flex; flex-direction: column; gap: 5px; padding: 10px;
}
.menu-toggle span { width: 22px; height: 1.5px; background: var(--fg); display: block; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
@media (min-width: 940px) { .menu-toggle { display: none; } }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 74px 0 0;
  background: var(--bg);
  z-index: 99;
  padding: 40px 24px;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mobile-menu[data-open="true"] { transform: translateX(0); }
.mobile-menu a {
  font-family: var(--serif);
  font-size: 1.7rem;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
  color: var(--fg);
}
.mobile-menu .btn { margin-top: 24px; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  overflow: hidden;
  background: #12241b;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.42;
  animation: heroZoom 9s var(--ease) forwards;
}
@keyframes heroZoom { from { transform: scale(1.1); } to { transform: scale(1); } }
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,36,27,0.55) 0%, rgba(18,36,27,0.35) 40%, rgba(15,30,22,0.95) 100%);
}
.hero__inner { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(48px, 8vw, 96px); padding-top: 120px; }
.hero .eyebrow { color: var(--accent-leaf); }
.hero .eyebrow::before { background: var(--accent-leaf); }
.hero h1 {
  font-size: clamp(3.2rem, 10vw, 8.4rem);
  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: var(--accent-leaf); }
.hero__sub { max-width: 54ch; font-size: clamp(1.02rem, 2vw, 1.24rem); color: rgba(245,246,238,0.82); line-height: 1.68; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }
.hero__scroll {
  position: absolute; right: 32px; bottom: 40px; z-index: 2;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(245,246,238,0.6);
  writing-mode: vertical-rl;
  display: none;
}
@media (min-width: 768px) { .hero__scroll { display: block; } }

/* ---------- Stats band ---------- */
.stats {
  background: var(--fg);
  color: var(--paper);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 24px;
}
@media (min-width: 768px) { .stats__grid { grid-template-columns: repeat(4, 1fr); gap: 32px; } }
.stat__num { font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 3.8rem); line-height: 1; color: var(--accent-leaf); font-weight: 300; }
.stat__label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(245,246,238,0.6); margin-top: 12px; }

/* ---------- Section header ---------- */
.sec-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head h2 {
  font-size: clamp(2.3rem, 6vw, 4.6rem);
  line-height: 1.02;
  font-weight: 300;
}
.sec-head p { margin-top: 22px; }
.sec-head--split { display: grid; gap: 24px; max-width: none; }
@media (min-width: 900px) { .sec-head--split { grid-template-columns: 1.1fr 0.9fr; align-items: end; gap: 60px; } }

/* ---------- Intro / manifesto statement ---------- */
.statement { text-align: center; }
.statement__mark { font-family: var(--serif); font-size: 5rem; line-height: 0.4; color: var(--accent-leaf); display: block; height: 2.4rem; }
.statement p {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4.6vw, 3.4rem);
  line-height: 1.18;
  font-weight: 300;
  max-width: 900px;
  margin: 0 auto;
  letter-spacing: -0.02em;
}
.statement p em { font-style: italic; color: var(--accent); }
.statement cite { display: block; margin-top: 32px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); font-style: normal; }

/* ---------- Services grid ---------- */
.grid-cards { display: grid; gap: 22px; }
@media (min-width: 640px) { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 34px 30px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
  box-shadow: 0 4px 24px -14px rgba(27,42,32,0.3);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 44px -18px rgba(27,42,32,0.36); border-color: var(--border); }
.card__idx { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.1em; }
.card__leaf { color: var(--accent); margin: 4px 0 20px; }
.card h3 { font-size: 1.5rem; line-height: 1.15; margin-bottom: 14px; }
.card p { color: var(--fg-soft); font-size: 15.5px; line-height: 1.7; }
.card__list { list-style: none; padding: 0; margin: 20px 0 0; }
.card__list li { font-size: 14px; color: var(--muted); padding: 8px 0; border-top: 1px solid var(--border-soft); display: flex; gap: 10px; }
.card__list li::before { content: "—"; color: var(--accent-leaf); }

/* ---------- Approach / process ---------- */
.process { display: grid; gap: 0; }
.process__row {
  display: grid;
  gap: 12px 40px;
  padding: 36px 0;
  border-top: 1px solid var(--border);
  align-items: start;
}
@media (min-width: 800px) { .process__row { grid-template-columns: 120px 1fr 1.2fr; gap: 40px; } }
.process__row:last-child { border-bottom: 1px solid var(--border); }
.process__num { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: 0.1em; }
.process__row h3 { font-size: 1.7rem; font-weight: 300; }
.process__row p { color: var(--fg-soft); font-size: 15.5px; }

/* ---------- Projects ---------- */
.projects { display: grid; gap: 26px; }
@media (min-width: 860px) { .projects { grid-template-columns: repeat(2, 1fr); } }
.project { position: relative; border-radius: 6px; overflow: hidden; background: var(--fg); }
.project__media { aspect-ratio: 4 / 3; overflow: hidden; }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.project:hover .project__media img { transform: scale(1.05); }
.project__body { padding: 26px 28px; color: var(--paper); }
.project__tag { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent-leaf); }
.project__body h3 { font-size: 1.5rem; margin: 12px 0 8px; font-weight: 400; }
.project__body p { font-size: 14.5px; color: rgba(245,246,238,0.72); }

/* ---------- Dark manifesto band ---------- */
.band { background: var(--fg); color: var(--paper); }
.band .statement p { color: var(--paper); }
.band .statement p em { color: var(--accent-leaf); }
.band .statement__mark { color: var(--accent-leaf); }
.band .statement cite { color: rgba(245,246,238,0.55); }

/* ---------- Feature split (about) ---------- */
.split { display: grid; gap: 40px; 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: 6px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 24px 60px -30px rgba(27,42,32,0.5); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 300; line-height: 1.06; }
.split p { margin-top: 20px; color: var(--fg-soft); }

/* ---------- Values / principles ---------- */
.values { display: grid; gap: 1px; background: var(--border-soft); border: 1px solid var(--border-soft); border-radius: 6px; overflow: hidden; }
@media (min-width: 700px) { .values { grid-template-columns: repeat(2, 1fr); } }
.value { background: var(--bg); padding: 34px 30px; }
.value h3 { font-size: 1.35rem; font-weight: 400; margin-bottom: 12px; }
.value h3 span { font-family: var(--mono); font-size: 12px; color: var(--accent); margin-right: 12px; }
.value p { font-size: 15px; color: var(--fg-soft); }

/* ---------- Team (monogram, no faces) ---------- */
.team { display: grid; gap: 22px; }
@media (min-width: 640px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .team { grid-template-columns: repeat(3, 1fr); } }
.member { background: var(--paper); border: 1px solid var(--border-soft); border-radius: 6px; padding: 30px; }
.avatar {
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.3rem; color: var(--paper);
  margin-bottom: 20px; letter-spacing: 0;
}
.member h3 { font-size: 1.3rem; font-weight: 400; }
.member__role { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin: 6px 0 14px; }
.member p { font-size: 14.5px; color: var(--fg-soft); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq__item { border-top: 1px solid var(--border); padding: 26px 0; }
.faq__item:last-child { border-bottom: 1px solid var(--border); }
.faq__q { font-family: var(--serif); font-size: clamp(1.2rem, 2.6vw, 1.6rem); font-weight: 400; line-height: 1.3; margin-bottom: 12px; display: flex; gap: 16px; }
.faq__q span { font-family: var(--mono); font-size: 12px; color: var(--accent); padding-top: 8px; }
.faq__a { color: var(--fg-soft); font-size: 15.5px; max-width: 64ch; padding-left: 28px; }

/* ---------- CTA ---------- */
.cta { background: var(--bg-alt); text-align: center; }
.cta h2 { font-size: clamp(2.2rem, 6vw, 4.4rem); font-weight: 300; line-height: 1.04; max-width: 16ch; margin: 0 auto; }
.cta p { margin: 24px auto 0; max-width: 52ch; color: var(--fg-soft); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 40px; }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 72px; } }
.contact-info dl { margin: 0; }
.contact-info dt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-top: 26px; }
.contact-info dd { margin: 6px 0 0; font-size: 16px; color: var(--fg-soft); line-height: 1.6; }
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.field input, .field textarea, .field select {
  font-family: var(--sans);
  font-size: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--paper);
  color: var(--fg);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(62,107,79,0.14); }
.field textarea { resize: vertical; min-height: 130px; }
.form__row { display: grid; gap: 20px; }
@media (min-width: 600px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__note { font-size: 13px; color: var(--muted); }
.form__note a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.footer { background: var(--fg); color: rgba(245,246,238,0.72); padding: 72px 0 40px; }
.footer__top { display: grid; gap: 44px; }
@media (min-width: 820px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; } }
.footer__brand .brand { color: var(--paper); }
.footer__brand p { margin-top: 20px; max-width: 34ch; font-size: 14.5px; }
.footer__col h4 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent-leaf); font-weight: 400; margin-bottom: 18px; }
.footer__col a { display: block; padding: 6px 0; font-size: 14.5px; color: rgba(245,246,238,0.72); transition: color 0.3s var(--ease); }
.footer__col a:hover { color: var(--paper); }
.footer__bottom {
  margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(245,246,238,0.14);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 12.5px; color: rgba(245,246,238,0.5);
  font-family: var(--mono); letter-spacing: 0.04em;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(120px, 18vw, 200px) 0 clamp(60px, 9vw, 110px); background: var(--bg-alt); }
.page-hero h1 { font-size: clamp(2.8rem, 8vw, 6.4rem); font-weight: 300; line-height: 1.0; letter-spacing: -0.03em; max-width: 16ch; }
.page-hero h1 em { font-style: italic; color: var(--accent); }
.page-hero p { margin-top: 26px; }

/* ---------- Legal ---------- */
.legal { max-width: 800px; margin: 0 auto; }
.legal h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 400; margin: 48px 0 16px; }
.legal h3 { font-size: 1.2rem; font-weight: 500; margin: 28px 0 10px; font-family: var(--sans); }
.legal p, .legal li { color: var(--fg-soft); font-size: 16px; line-height: 1.78; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal__meta { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.06em; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__bg img { animation: none; }
}

/* ---------- Cookie popup ---------- */
.cookie-popup { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: flex-end; justify-content: flex-start; padding: 24px; background: rgba(15,25,18,0.4); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
.cookie-popup[data-open="true"] { opacity: 1; pointer-events: all; }
.cookie-popup__card { background: var(--paper); padding: 32px 36px; max-width: 480px; border-radius: 6px; box-shadow: 0 30px 70px -20px rgba(0,0,0,0.5); }
.cookie-popup__label { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent); margin-bottom: 12px; }
.cookie-popup__card h3 { font-size: 1.4rem; font-weight: 400; margin-bottom: 12px; }
.cookie-popup__card p { font-size: 14px; color: var(--fg-soft); line-height: 1.7; }
.cookie-popup__actions { display: flex; gap: 12px; margin-top: 22px; }
.cookie-popup__actions button { padding: 11px 24px; border: 1px solid var(--border); cursor: pointer; font-size: 14px; border-radius: 9999px; transition: background 0.3s var(--ease), color 0.3s var(--ease); }
.cookie-popup__actions button:hover { border-color: var(--accent); }
.cookie-popup__actions button:last-child { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.cookie-popup__actions button:last-child:hover { background: var(--accent-deep); }
