/* palette: bg=#FBFAF7 fg=#262420 accent=#3F5E45 */
/* fonts: display="Fraunces" body="DM Sans" mono="Space Mono" */

:root {
  --bg: #FBFAF7;          /* warm off-white from reference background */
  --bg-alt: #EFEBE3;      /* muted warm grey, alternating sections */
  --bg-green: #EAEDE6;    /* faint green wash */
  --fg: #262420;          /* charcoal text */
  --fg-soft: #3C3A34;     /* slightly lighter foreground */
  --muted: #87847A;       /* secondary text */
  --accent: #3F5E45;      /* forest green from reference CTA */
  --accent-deep: #2E4633; /* darker green for hover */
  --accent-soft: #6E8A72; /* lighter green */
  --border: rgba(38, 36, 32, 0.14);
  --border-soft: rgba(38, 36, 32, 0.08);
  --serif: 'Fraunces', ui-serif, Georgia, serif;
  --sans: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 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: 17px;
  line-height: 1.75;
  color: var(--fg);
  background: var(--bg);
  -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: 300; letter-spacing: -0.02em; margin: 0; }

/* ---------- layout helpers ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section--tight { padding: clamp(56px, 8vw, 100px) 0; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 22px;
  display: block;
}
.lede { font-size: 19px; line-height: 1.78; color: var(--fg-soft); max-width: 60ch; }
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 28px;
  border-radius: 2px;
  transition: transform .4s var(--ease), background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(46,70,51,.5); }
.btn--ghost { border: 1px solid var(--border); color: var(--fg); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color .3s var(--ease);
}
.link-arrow:hover { border-color: var(--accent); }
.link-arrow .arrow { transition: transform .3s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* ---------- header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 247, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.header[data-scrolled="true"] {
  box-shadow: 0 1px 0 rgba(38,36,32,.06);
  border-bottom-color: var(--border-soft);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: baseline; gap: 10px; font-family: var(--serif); font-size: 23px; letter-spacing: -0.02em; }
.brand b { font-weight: 500; }
.brand span { font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.nav { display: none; }
@media (min-width: 1024px) {
  .nav { display: flex; align-items: center; gap: 36px; }
  .nav a {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg-soft);
    transition: color .3s var(--ease);
  }
  .nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
  .header__cta { display: inline-flex; }
}
.header__cta { display: none; }
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: flex-end;
}
.menu-toggle span { width: 24px; height: 1.5px; background: var(--fg); transition: transform .3s var(--ease), opacity .3s var(--ease); }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

/* ---------- mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  padding: 100px 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .5s var(--ease), opacity .4s var(--ease);
}
.mobile-menu[data-open="true"] { transform: translateY(0); opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 300;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
}
.mobile-menu .btn { margin-top: 28px; align-self: flex-start; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: flex-end; 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.08); } to { transform: scale(1); } }
.hero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,18,14,.18) 0%, rgba(20,18,14,.06) 40%, rgba(20,18,14,.62) 100%); }
.hero__inner { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(56px, 9vw, 120px); padding-top: 120px; }
.hero__eyebrow { color: #d9e2d2; }
.hero h1 {
  color: #fff;
  font-size: clamp(3.2rem, 10vw, 8.4rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 300;
  max-width: 16ch;
  margin: 0 0 28px;
}
.hero h1 em { font-style: italic; color: #c9d8c1; }
.hero__sub { color: rgba(255,255,255,.86); font-size: 19px; max-width: 46ch; margin: 0 0 36px; line-height: 1.7; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__actions .btn--ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.hero__actions .btn--ghost:hover { border-color: #fff; color: #fff; }
.hero__meta {
  position: absolute;
  right: 32px;
  bottom: clamp(56px, 9vw, 120px);
  display: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  text-align: right;
  line-height: 2;
}
@media (min-width: 1024px) { .hero__meta { display: block; } }

/* ---------- intro / manifesto ---------- */
.intro { display: grid; gap: 40px; }
@media (min-width: 900px) { .intro { grid-template-columns: 1fr 1.05fr; gap: 80px; align-items: start; } }
.intro h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.08; font-weight: 300; }
.intro__col p { color: var(--fg-soft); margin: 0 0 22px; }
.intro__col p:last-child { margin-bottom: 0; }

.manifesto { background: var(--fg); color: var(--bg); text-align: center; }
.manifesto .quote-mark { font-family: var(--serif); font-size: 6rem; line-height: .4; color: var(--accent-soft); display: block; height: 50px; }
.manifesto p {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.9rem, 4.6vw, 3.6rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin: 24px auto 28px;
}
.manifesto p em { font-style: italic; color: var(--accent-soft); }
.manifesto .quote-by { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(251,250,247,.6); }

/* ---------- section heading block ---------- */
.head-block { display: grid; gap: 24px; margin-bottom: clamp(48px, 6vw, 80px); }
@media (min-width: 860px) { .head-block { grid-template-columns: 1fr auto; align-items: end; } }
.head-block h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.02; font-weight: 300; max-width: 14ch; }

/* ---------- services list ---------- */
.svc-list { border-top: 1px solid var(--border); }
.svc {
  display: grid;
  gap: 14px;
  padding: clamp(32px, 4vw, 52px) 0;
  border-bottom: 1px solid var(--border);
  transition: background .4s var(--ease);
}
@media (min-width: 860px) { .svc { grid-template-columns: 64px 1fr 1.2fr auto; gap: 40px; align-items: start; } }
.svc:hover { background: var(--bg-green); }
.svc__num { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.1em; padding-top: 8px; }
.svc h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.1; font-weight: 400; }
.svc p { color: var(--fg-soft); margin: 0; font-size: 16px; }
.svc__tags { display: flex; flex-wrap: wrap; gap: 8px; align-self: center; }
.svc__tags span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--border-soft); padding: 5px 10px; border-radius: 2px; }

/* ---------- work / case grid ---------- */
.work-grid { display: grid; gap: 28px; }
@media (min-width: 720px) { .work-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 28px; } }
.work-card { display: block; }
.work-card__img { position: relative; overflow: hidden; aspect-ratio: 4/3; border-radius: 3px; background: var(--bg-alt); }
.work-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.work-card:hover .work-card__img img { transform: scale(1.05); }
.work-card__cat { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 22px 0 8px; display: block; }
.work-card h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 400; line-height: 1.12; }
.work-card p { color: var(--fg-soft); font-size: 16px; margin: 12px 0 0; }
.work-card:nth-child(odd) { transform: translateY(0); }
@media (min-width: 720px) { .work-card:nth-child(even) { margin-top: 48px; } }

/* ---------- stats band ---------- */
.stats { background: var(--accent); color: #fff; }
.stats-grid { display: grid; gap: 40px; }
@media (min-width: 700px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat__num { font-family: var(--serif); font-weight: 300; font-size: clamp(3rem, 6vw, 4.6rem); line-height: 1; letter-spacing: -0.03em; }
.stat__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,.72); margin-top: 14px; }

/* ---------- process ---------- */
.process-grid { display: grid; gap: 8px; }
@media (min-width: 860px) { .process-grid { grid-template-columns: repeat(4, 1fr); gap: 0; } }
.process-step { padding: 36px 0; border-top: 1px solid var(--border); }
@media (min-width: 860px) { .process-step { padding: 40px 28px 40px 0; border-top: 1px solid var(--fg); } }
.process-step__num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--accent); display: block; margin-bottom: 24px; }
.process-step h3 { font-size: 1.4rem; font-weight: 400; margin-bottom: 12px; }
.process-step p { color: var(--fg-soft); font-size: 15px; margin: 0; }

/* ---------- principles / cards grid ---------- */
.cards-grid { display: grid; gap: 24px; }
@media (min-width: 700px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: 36px 32px;
  box-shadow: 0 4px 24px -4px rgba(0,0,0,.06);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px -8px rgba(0,0,0,.14); }
.card__icon { width: 44px; height: 44px; border-radius: 3px; background: var(--bg-green); display: flex; align-items: center; justify-content: center; color: var(--accent); margin-bottom: 24px; }
.card h3 { font-size: 1.4rem; font-weight: 400; margin-bottom: 12px; }
.card p { color: var(--fg-soft); font-size: 16px; margin: 0; }

/* ---------- team (monograms) ---------- */
.team-grid { display: grid; gap: 28px; }
@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
.member { border-top: 1px solid var(--border); padding-top: 28px; }
.avatar {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 22px; color: #fff; margin-bottom: 22px;
}
.member h3 { font-size: 1.3rem; font-weight: 400; }
.member__role { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin: 6px 0 14px; }
.member p { color: var(--fg-soft); font-size: 15px; margin: 0; }

/* ---------- testimonials ---------- */
.quote-grid { display: grid; gap: 28px; }
@media (min-width: 820px) { .quote-grid { grid-template-columns: repeat(2, 1fr); } }
.tcard { border: 1px solid var(--border-soft); border-radius: 4px; padding: 40px 36px; background: var(--bg); }
.tcard blockquote { font-family: var(--serif); font-weight: 300; font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.3; margin: 0 0 28px; letter-spacing: -0.01em; }
.tcard footer { display: flex; align-items: center; gap: 14px; }
.tcard .avatar { width: 46px; height: 46px; font-size: 16px; margin: 0; }
.tcard cite { font-style: normal; }
.tcard cite b { font-weight: 500; display: block; font-size: 15px; }
.tcard cite span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--border); }
.faq { border-bottom: 1px solid var(--border); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 0; cursor: pointer; list-style: none; font-family: var(--serif); font-size: clamp(1.2rem, 2.2vw, 1.55rem); font-weight: 400; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { font-family: var(--sans); font-size: 24px; color: var(--accent); transition: transform .35s var(--ease); flex-shrink: 0; }
.faq[open] summary .plus { transform: rotate(45deg); }
.faq p { color: var(--fg-soft); margin: 0 0 28px; max-width: 70ch; }

/* ---------- CTA section ---------- */
.cta { background: var(--bg-alt); text-align: center; }
.cta h2 { font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1.02; font-weight: 300; max-width: 16ch; margin: 0 auto 28px; }
.cta p { color: var(--fg-soft); max-width: 48ch; margin: 0 auto 36px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 56px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 80px; } }
.contact-info dl { margin: 0; display: grid; gap: 28px; }
.contact-info dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.contact-info dd { margin: 0; font-size: 17px; color: var(--fg-soft); line-height: 1.6; }
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  font-family: var(--sans); font-size: 16px; color: var(--fg);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 3px; padding: 14px 16px; width: 100%;
  transition: border-color .3s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 130px; }
.form .btn { justify-self: start; margin-top: 6px; }
.form__note { font-size: 13px; color: var(--muted); }
.form__note a { color: var(--accent); border-bottom: 1px solid var(--border); }

/* ---------- footer ---------- */
.footer { background: var(--fg); color: var(--bg); padding: clamp(64px, 8vw, 110px) 0 36px; }
.footer__top { display: grid; gap: 48px; margin-bottom: 64px; }
@media (min-width: 860px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; } }
.footer__brand { font-family: var(--serif); font-size: 28px; font-weight: 400; margin-bottom: 18px; }
.footer__brand span { font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-soft); display: block; margin-top: 6px; }
.footer__tag { color: rgba(251,250,247,.62); font-size: 16px; max-width: 34ch; }
.footer__col h4 { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-soft); margin-bottom: 20px; }
.footer__col a, .footer__col p { display: block; color: rgba(251,250,247,.74); font-size: 15px; margin-bottom: 12px; transition: color .3s var(--ease); }
.footer__col a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(251,250,247,.14); padding-top: 28px; display: grid; gap: 14px; font-size: 13px; color: rgba(251,250,247,.5); }
@media (min-width: 700px) { .footer__bottom { grid-template-columns: 1fr auto; align-items: center; } }
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer__bottom a { color: rgba(251,250,247,.6); }
.footer__bottom a:hover { color: #fff; }

/* ---------- legal pages ---------- */
.legal { max-width: 820px; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 300; margin-bottom: 16px; }
.legal__updated { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 48px; }
.legal h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 400; margin: 48px 0 16px; }
.legal h3 { font-size: 1.25rem; font-weight: 500; font-family: var(--sans); margin: 32px 0 12px; }
.legal p, .legal li { color: var(--fg-soft); font-size: 16px; line-height: 1.78; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 10px; }
.legal a { color: var(--accent); border-bottom: 1px solid var(--border); }

/* ---------- thanks page ---------- */
.thanks { min-height: 76vh; display: flex; align-items: center; text-align: center; }
.thanks__inner { max-width: 620px; margin: 0 auto; }
.thanks h1 { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 300; margin-bottom: 24px; }
.thanks p { color: var(--fg-soft); font-size: 18px; margin-bottom: 36px; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: clamp(120px, 16vw, 200px) 0 clamp(48px, 7vw, 90px); border-bottom: 1px solid var(--border-soft); }
.page-hero h1 { font-size: clamp(2.8rem, 8vw, 6.4rem); line-height: 1.0; font-weight: 300; letter-spacing: -0.03em; max-width: 16ch; }
.page-hero h1 em { font-style: italic; color: var(--accent); }
.page-hero .lede { margin-top: 28px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s var(--ease), transform .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; padding: 24px; background: rgba(0,0,0,.4); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .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: 4px; box-shadow: 0 20px 60px -12px rgba(0,0,0,.3); }
.cookie-popup__label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.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.65; margin: 0; }
.cookie-popup__card p a { color: var(--accent); border-bottom: 1px solid var(--border); }
.cookie-popup__actions { display: flex; gap: 12px; margin-top: 20px; }
.cookie-popup__actions button { padding: 12px 24px; border: 1px solid var(--border); cursor: pointer; font-size: 13px; font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; border-radius: 2px; transition: background .3s var(--ease), color .3s var(--ease); }
.cookie-popup__actions button:first-child:hover { border-color: var(--fg); }
.cookie-popup__actions button:last-child { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.cookie-popup__actions button:last-child:hover { background: var(--accent); border-color: var(--accent); }
