/* palette: bg=#F3F3EF fg=#16181A accent=#5E7256 */
/* fonts: display="Space Grotesk" body="Inter" mono="IBM Plex Mono" */

:root {
  --bg: #F3F3EF;        /* soft off-white, from reference light sections */
  --bg-alt: #E7E8E1;    /* alternating section background */
  --bg-deep: #16181A;   /* near-black inverted band */
  --fg: #16181A;        /* primary text, cool near-black */
  --fg-soft: #34383A;   /* slightly lighter fg */
  --muted: #6C716C;     /* secondary text, mossy grey */
  --accent: #5E7256;    /* moss/sage accent from the forest imagery */
  --accent-deep: #45573C; /* darker accent for hover */
  --accent-soft: #A9B49C; /* pale sage */
  --border: rgba(22, 24, 26, 0.12);
  --border-soft: rgba(22, 24, 26, 0.07);
  --serif: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --sans: 'Inter', 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);
  font-size: 17px;
  line-height: 1.75;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  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: 500; margin: 0; }
p { margin: 0; }

/* ── Layout helpers ─────────────────────────── */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }
.section { padding: clamp(80px, 12vw, 160px) 0; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin: 0 0 20px;
  display: inline-block;
}
.eyebrow--light { color: var(--accent-soft); }

/* ── Buttons ────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px; font-weight: 500;
  letter-spacing: 0.005em;
  transition: transform .4s var(--ease), background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.btn--solid { background: var(--fg); color: var(--bg); }
.btn--solid:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn--light { background: var(--bg); color: var(--fg); }
.btn--light:hover { background: #fff; transform: translateY(-2px); }
.btn--ghost { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.btn--ghost:hover { background: rgba(255,255,255,0.16); transform: translateY(-2px); }
.btn--outline { border: 1px solid var(--border); color: var(--fg); }
.btn--outline:hover { border-color: var(--fg); transform: translateY(-2px); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 500; color: var(--accent);
  transition: gap .3s var(--ease), color .3s var(--ease);
}
.link-arrow:hover { gap: 14px; color: var(--accent-deep); }

/* ── Header ─────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 100;
  transition: box-shadow .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header[data-scrolled="true"] {
  background: rgba(243, 243, 239, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(22,24,26,0.06);
  border-bottom-color: var(--border-soft);
}
/* header over hero starts transparent + light text */
.header--overlay { position: fixed; left: 0; right: 0; }
.header--overlay .brand, .header--overlay .nav a, .header--overlay .menu-toggle span { color: #fff; }
.header--overlay .menu-toggle span { background: #fff; }
.header--overlay[data-scrolled="true"] .brand,
.header--overlay[data-scrolled="true"] .nav a,
.header--overlay[data-scrolled="true"] .menu-toggle span { color: var(--fg); background: var(--fg); }
.header--overlay[data-scrolled="true"] .nav a { background: none; }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.brand__mark { width: 22px; height: 22px; flex: none; }
.nav { display: none; gap: 36px; }
.nav a { font-size: 14px; font-weight: 500; position: relative; transition: opacity .3s; }
.nav a:hover { opacity: 0.6; }
.header__cta { display: none; }
@media (min-width: 900px) {
  .nav { display: flex; }
  .header__cta { display: inline-flex; }
}

/* ── Mobile menu ────────────────────────────── */
.menu-toggle { display: inline-flex; flex-direction: column; gap: 5px; padding: 8px; z-index: 210; }
.menu-toggle span { width: 24px; height: 2px; background: var(--fg); display: block; transition: transform .35s var(--ease), opacity .3s; }
.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); }
@media (min-width: 900px) { .menu-toggle { display: none; } }
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: center;
  padding: 40px;
  transform: translateY(-100%);
  transition: transform .5s var(--ease);
}
.mobile-menu[data-open="true"] { transform: translateY(0); }
.mobile-menu a { font-family: var(--serif); font-size: clamp(2rem, 9vw, 3.2rem); font-weight: 400; letter-spacing: -0.02em; padding: 10px 0; border-bottom: 1px solid var(--border-soft); }
.mobile-menu a:last-of-type { border-bottom: 0; }
.mobile-menu .mobile-menu__foot { margin-top: 40px; font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }

/* ── Hero ───────────────────────────────────── */
.hero { position: relative; min-height: 100vh; display: flex; align-items: flex-end; overflow: hidden; color: #fff; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 9s var(--ease) forwards; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,24,26,0.35) 0%, rgba(20,24,26,0.1) 40%, rgba(20,24,26,0.7) 100%); }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__inner { width: 100%; padding-bottom: clamp(40px, 8vw, 80px); padding-top: 120px; }
.hero h1 {
  font-size: clamp(3.5rem, 10vw, 9rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 400;
  max-width: 15ch;
}
.hero h1 em { font-style: italic; color: var(--accent-soft); font-weight: 400; }
.hero__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; margin-top: 36px; }
.hero__lede { max-width: 46ch; font-size: 17px; color: rgba(255,255,255,0.86); }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Manifesto ──────────────────────────────── */
.manifesto { text-align: center; }
.manifesto p {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 400;
  max-width: 22ch;
  margin: 0 auto;
}
.manifesto p em { font-style: italic; color: var(--accent); }
.manifesto__sub { font-family: var(--sans); font-size: 18px; line-height: 1.7; color: var(--muted); max-width: 56ch; margin: 36px auto 0; }

/* ── Section head ───────────────────────────── */
.sec-head { max-width: 720px; margin-bottom: 64px; }
.sec-head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }
.sec-head h2 { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.02; letter-spacing: -0.02em; font-weight: 400; }
.sec-head p { color: var(--muted); font-size: 18px; margin-top: 20px; max-width: 52ch; }

/* ── Work / service image cards ─────────────── */
.cards { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card-img {
  position: relative; overflow: hidden; border-radius: 12px;
  aspect-ratio: 3 / 4;
  box-shadow: 0 4px 24px -4px rgba(0,0,0,0.08);
  transition: box-shadow .5s var(--ease), transform .5s var(--ease);
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card-img:hover { box-shadow: 0 12px 40px -8px rgba(0,0,0,0.18); transform: translateY(-4px); }
.card-img:hover img { transform: scale(1.05); }
.card-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,24,26,0) 45%, rgba(20,24,26,0.72) 100%); }
.card-img__body { position: absolute; left: 22px; bottom: 22px; right: 22px; z-index: 2; color: #fff; }
.card-img__num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; opacity: 0.75; }
.card-img__title { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; margin-top: 6px; letter-spacing: -0.01em; }
.card-img__desc { font-size: 14px; color: rgba(255,255,255,0.82); margin-top: 6px; }

/* ── Text service list ──────────────────────── */
.svc-list { border-top: 1px solid var(--border); }
.svc-row {
  display: grid; grid-template-columns: 1fr; gap: 10px;
  padding: 36px 0; border-bottom: 1px solid var(--border);
  transition: padding-left .4s var(--ease);
}
.svc-row:hover { padding-left: 12px; }
@media (min-width: 860px) { .svc-row { grid-template-columns: 80px 1fr 1.4fr auto; align-items: baseline; gap: 32px; } }
.svc-row__num { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.svc-row__title { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 400; letter-spacing: -0.01em; }
.svc-row__desc { color: var(--muted); font-size: 16px; }
.svc-row__meta { font-family: var(--mono); font-size: 12px; color: var(--fg-soft); letter-spacing: 0.04em; }

/* ── Dark band ──────────────────────────────── */
.band-dark { background: var(--bg-deep); color: var(--bg); }
.band-dark .eyebrow { color: var(--accent-soft); }
.band-dark .sec-head h2, .band-dark .manifesto p { color: var(--bg); }
.band-dark .sec-head p, .band-dark .manifesto p em { color: var(--accent-soft); }
.pullquote { max-width: 940px; margin: 0 auto; text-align: center; position: relative; }
.pullquote__mark { font-family: var(--serif); font-size: 8rem; line-height: 0.5; color: var(--accent); display: block; height: 60px; }
.pullquote p { font-family: var(--serif); font-size: clamp(1.7rem, 4vw, 3rem); line-height: 1.22; font-weight: 400; letter-spacing: -0.015em; }
.pullquote cite { display: block; margin-top: 32px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-soft); font-style: normal; }

/* ── Stats ──────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat__num { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 400; letter-spacing: -0.02em; line-height: 1; }
.stat__label { font-size: 14px; color: var(--muted); margin-top: 12px; max-width: 22ch; }

/* ── Process / numbered ─────────────────────── */
.steps { display: grid; grid-template-columns: 1fr; gap: 4px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 4px; } }
.step { padding: 40px 0; border-top: 1px solid var(--border); }
.step__num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; color: var(--accent); }
.step h3 { font-size: 1.5rem; font-weight: 500; margin: 16px 0 12px; letter-spacing: -0.01em; }
.step p { color: var(--muted); font-size: 16px; }

/* ── Feature split ──────────────────────────── */
.split { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 1fr; gap: 72px; } .split--rev .split__media { order: -1; } }
.split__media { border-radius: 14px; overflow: hidden; aspect-ratio: 4/5; box-shadow: 0 12px 40px -12px rgba(0,0,0,0.2); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.05; letter-spacing: -0.02em; font-weight: 400; }
.split p { color: var(--muted); margin-top: 22px; font-size: 17px; }
.split ul { list-style: none; padding: 0; margin: 28px 0 0; }
.split li { padding: 14px 0; border-top: 1px solid var(--border); font-size: 16px; display: flex; gap: 14px; }
.split li::before { content: "—"; color: var(--accent); }

/* ── Testimonials ───────────────────────────── */
.quotes { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 860px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 32px; display: flex; flex-direction: column; box-shadow: 0 4px 24px -8px rgba(0,0,0,0.06); }
.band-dark .quote { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.12); }
.quote p { font-size: 16px; line-height: 1.65; }
.quote__foot { margin-top: auto; padding-top: 24px; display: flex; align-items: center; gap: 14px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 15px; color: #fff; flex: none; }
.quote__name { font-weight: 600; font-size: 14px; }
.quote__role { font-size: 13px; color: var(--muted); }
.band-dark .quote__role { color: var(--accent-soft); }

/* ── Team text cards ────────────────────────── */
.team { display: grid; grid-template-columns: 1fr; gap: 4px; }
@media (min-width: 768px) { .team { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.member { border-top: 1px solid var(--border); padding: 28px 0; }
.member__av { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 18px; color: #fff; margin-bottom: 20px; }
.member h3 { font-size: 1.3rem; font-weight: 500; }
.member__role { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--accent); margin: 6px 0 12px; }
.member p { color: var(--muted); font-size: 15px; }

/* ── FAQ ────────────────────────────────────── */
.faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 28px 0; display: flex; justify-content: space-between; gap: 24px; font-family: var(--serif); font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 500; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 300; font-size: 1.6rem; color: var(--accent); transition: transform .35s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); font-size: 16px; padding: 0 40px 28px 0; max-width: 66ch; }

/* ── CTA ────────────────────────────────────── */
.cta { text-align: center; }
.cta h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.03; letter-spacing: -0.02em; font-weight: 400; max-width: 18ch; margin: 0 auto 28px; }
.cta p { color: var(--muted); max-width: 50ch; margin: 0 auto 40px; font-size: 18px; }
.band-dark.cta p { color: var(--accent-soft); }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Contact / form ─────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 56px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.15fr; gap: 80px; } }
.contact-info h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.05; letter-spacing: -0.02em; font-weight: 400; }
.contact-info p { color: var(--muted); margin-top: 20px; }
.info-list { list-style: none; padding: 0; margin: 40px 0 0; }
.info-list li { padding: 20px 0; border-top: 1px solid var(--border); }
.info-list .k { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); display: block; margin-bottom: 6px; }
.info-list .v { font-size: 17px; }
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--fg-soft); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 16px; color: var(--fg);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 14px 16px; width: 100%;
  transition: border-color .3s, box-shadow .3s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(94,114,86,0.14); }
.field textarea { resize: vertical; min-height: 140px; }
.form__row { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__submit { justify-self: start; }

/* ── Footer ─────────────────────────────────── */
.footer { background: var(--bg-deep); color: rgba(255,255,255,0.78); padding: clamp(64px, 9vw, 110px) 0 40px; }
.footer__top { display: grid; grid-template-columns: 1fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.12); }
@media (min-width: 860px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer .brand { color: #fff; margin-bottom: 20px; }
.footer__tag { max-width: 34ch; font-size: 15px; color: rgba(255,255,255,0.6); }
.footer h4 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent-soft); font-weight: 400; margin-bottom: 18px; }
.footer__col a, .footer__col span { display: block; font-size: 15px; color: rgba(255,255,255,0.72); padding: 5px 0; transition: color .3s; }
.footer__col a:hover { color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; padding-top: 32px; font-size: 13px; color: rgba(255,255,255,0.5); }
.footer__bottom a { transition: color .3s; }
.footer__bottom a:hover { color: #fff; }

/* ── 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); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__media img { animation: none; }
  html { scroll-behavior: auto; }
}

/* ── Legal / prose ──────────────────────────── */
.page-head { padding: clamp(120px, 16vw, 200px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--border); }
.page-head h1 { font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.02; letter-spacing: -0.03em; font-weight: 400; max-width: 18ch; }
.page-head p { color: var(--muted); margin-top: 20px; max-width: 56ch; font-size: 18px; }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 500; letter-spacing: -0.01em; margin: 48px 0 16px; }
.prose h3 { font-size: 1.25rem; font-weight: 600; margin: 32px 0 10px; }
.prose p { color: var(--fg-soft); margin: 0 0 18px; }
.prose ul { color: var(--fg-soft); padding-left: 22px; margin: 0 0 18px; }
.prose li { margin: 8px 0; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose__meta { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }

/* ── Cookie popup ───────────────────────────── */
.cookie-popup { position:fixed;inset:0;z-index:9999;display:flex;align-items:flex-end;padding:24px;background:rgba(0,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:12px;box-shadow:0 20px 60px -12px rgba(0,0,0,0.35); }
.cookie-popup__label { font-family:var(--mono);font-size:11px;text-transform:uppercase;letter-spacing:0.14em;color:var(--accent);margin-bottom:12px; }
.cookie-popup__card h3 { font-size:1.3rem;font-weight:500;letter-spacing:-0.01em; }
.cookie-popup__card p { font-size:14px;color:var(--muted);margin-top:12px;line-height:1.6; }
.cookie-popup__actions { display:flex;gap:12px;margin-top:20px; }
.cookie-popup__actions button { padding:11px 24px;border:1px solid var(--border);cursor:pointer;font-size:14px;border-radius:8px;transition:background .3s,color .3s,border-color .3s; }
.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-deep);border-color:var(--accent-deep); }

/* utility */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
