/* palette: bg=#E9ECE3 fg=#1E2621 accent=#46614F */
/* fonts: display="Fraunces" body="Inter" mono="IBM Plex Mono" */

:root {
  --bg: #E9ECE3;          /* light sage mist — main background */
  --bg-alt: #D6DBCC;      /* deeper sage — alternating sections */
  --hero-a: #A7B1A2;      /* hero gradient light */
  --hero-b: #79877A;      /* hero gradient deep */
  --fg: #1E2621;          /* dark ink green — primary text */
  --fg-soft: #38423A;     /* softer foreground */
  --muted: #6A7168;       /* secondary text */
  --accent: #46614F;      /* pine — brand accent */
  --accent-deep: #33473A; /* darker pine — hover */
  --line: rgba(30, 38, 33, 0.14);
  --border: rgba(30, 38, 33, 0.14);
  --serif: 'Fraunces', ui-serif, Georgia, 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);
  --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;
  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 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; line-height: 1.06; }
p { margin: 0; }

.container { width: 100%; 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, 110px) 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin: 0 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: 0.7; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px;
  font-size: 14px; letter-spacing: 0.01em;
  border-radius: 2px;
  transition: transform .5s var(--ease), background .35s var(--ease), color .35s var(--ease), opacity .35s var(--ease);
}
.btn--solid { background: var(--fg); color: var(--bg); }
.btn--solid:hover { background: var(--accent); transform: translateY(-2px); }
.btn--ghost { border: 1px solid var(--line); color: var(--fg); }
.btn--ghost:hover { background: var(--fg); color: var(--bg); transform: translateY(-2px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: gap .4s var(--ease), border-color .4s var(--ease);
}
.link-arrow:hover { gap: 14px; border-color: var(--accent); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(233, 236, 227, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  transition: box-shadow .4s var(--ease), background .4s var(--ease);
}
.header[data-scrolled="true"] {
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(30,38,33,0.4);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  font-family: var(--serif); font-size: 22px; letter-spacing: -0.01em; font-weight: 500;
  display: inline-flex; align-items: center; gap: 3px;
}
.brand__mark {
  font-family: var(--serif); font-weight: 500; color: var(--accent);
}
.nav { display: none; }
@media (min-width: 900px) {
  .nav { display: flex; align-items: center; gap: 34px; }
  .nav a {
    font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--fg-soft); position: relative; padding: 6px 0;
    transition: color .3s var(--ease);
  }
  .nav a::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--accent);
    transition: width .4s var(--ease);
  }
  .nav a:hover { color: var(--fg); }
  .nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
  .nav a[aria-current="page"] { color: var(--fg); }
}
.header__cta { display: none; }
@media (min-width: 900px) { .header__cta { display: inline-flex; } }

.menu-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; align-items: center;
}
.menu-toggle span { width: 22px; height: 1.5px; background: var(--fg); transition: transform .4s var(--ease), opacity .3s var(--ease); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
@media (min-width: 900px) { .menu-toggle { display: none; } }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--bg);
  padding: 96px 24px 40px;
  display: flex; flex-direction: column;
  transform: translateY(-100%);
  transition: transform .55s var(--ease);
  visibility: hidden;
}
.mobile-menu[data-open="true"] { transform: translateY(0); visibility: visible; }
.mobile-menu a {
  font-family: var(--serif); font-size: clamp(2rem, 9vw, 3rem); font-weight: 400;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  transition: color .3s var(--ease);
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu .btn { margin-top: 28px; align-self: flex-start; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  padding: 120px 0 60px;
  background:
    radial-gradient(120% 90% at 50% 30%, rgba(190,197,185,0.55), rgba(0,0,0,0) 60%),
    linear-gradient(160deg, var(--hero-a) 0%, var(--hero-b) 100%);
}
.hero__mono {
  position: absolute; top: 88px; left: 50%; transform: translateX(-50%);
  font-family: var(--serif); font-size: 34px; font-weight: 500; letter-spacing: 0.02em;
  color: var(--fg); opacity: 0.9;
}
.hero__inner { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(3.5rem, 10vw, 9rem);
  letter-spacing: -0.03em; font-weight: 300; line-height: 0.98;
  color: var(--fg);
  max-width: 15ch;
  animation: heroRise 1.1s var(--ease) both;
}
.hero h1 em { font-style: italic; color: var(--accent-deep); }
.hero__lead {
  margin-top: 34px; max-width: 46ch;
  font-size: 18px; line-height: 1.7; color: var(--fg-soft);
  animation: heroRise 1.1s var(--ease) .12s both;
}
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; animation: heroRise 1.1s var(--ease) .2s both; }
.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-soft);
  display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero__scroll::after { content: ""; width: 1px; height: 34px; background: var(--fg-soft); opacity: 0.5; animation: scrollPulse 2.4s var(--ease) infinite; }
@keyframes heroRise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes scrollPulse { 0%,100% { transform: scaleY(0.4); opacity: 0.3; } 50% { transform: scaleY(1); opacity: 0.7; } }

/* ---------- Intro / manifesto ---------- */
.manifesto { text-align: center; }
.manifesto p {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2rem, 5vw, 4rem); line-height: 1.16; letter-spacing: -0.02em;
  max-width: 20ch; margin: 0 auto; color: var(--fg);
}
.manifesto p em { font-style: italic; color: var(--accent); }
.manifesto .eyebrow { justify-content: center; margin-bottom: 34px; }

/* dark inverted band */
.band-dark { background: var(--fg); color: var(--bg); }
.band-dark .eyebrow { color: #9DB3A2; }
.band-dark .quote {
  font-family: var(--serif); font-weight: 300; font-size: clamp(1.8rem, 4.4vw, 3.4rem);
  line-height: 1.22; letter-spacing: -0.015em; max-width: 24ch; margin: 0 auto; text-align: center;
}
.band-dark .quote::before {
  content: "\201C"; display: block; font-family: var(--serif); font-size: 5rem; line-height: 0.4;
  color: #7C9082; margin-bottom: 18px;
}
.band-dark .quote em { color: #B9C9BC; font-style: italic; }
.band-dark .quote__by { margin-top: 32px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #9DB3A2; text-align: center; }

/* ---------- Section head ---------- */
.section-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head h2 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 300; letter-spacing: -0.025em; line-height: 1.02; }
.section-head p { margin-top: 24px; font-size: 18px; color: var(--muted); max-width: 56ch; }
.section-head--split { display: grid; gap: 24px; }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.2fr 1fr; align-items: end; max-width: none; }
  .section-head--split p { margin-top: 0; }
}

/* ---------- Feature blocks (text + image, alternating) ---------- */
.feature { display: grid; gap: 40px; align-items: center; }
.feature + .feature { margin-top: clamp(72px, 10vw, 130px); }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 72px; }
  .feature--flip .feature__media { order: -1; }
}
.feature__media { overflow: hidden; border-radius: 3px; aspect-ratio: 4 / 3; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.feature__media:hover img { transform: scale(1.05); }
.feature__body h3 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); font-weight: 300; letter-spacing: -0.02em; }
.feature__body p { margin-top: 20px; color: var(--fg-soft); font-size: 17px; }
.feature__body .link-arrow { margin-top: 28px; }
.feature__index { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 18px; }

/* ---------- Services grid ---------- */
.grid-services { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 640px) { .grid-services { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .grid-services { grid-template-columns: repeat(2, 1fr); } }
.svc {
  background: var(--bg); padding: clamp(32px, 4vw, 52px);
  display: flex; flex-direction: column; min-height: 300px;
  transition: background .45s var(--ease);
}
.svc:hover { background: var(--bg-alt); }
.svc__no { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--accent); }
.svc h3 { margin-top: 26px; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 400; letter-spacing: -0.02em; }
.svc p { margin-top: 16px; color: var(--muted); font-size: 16px; flex: 1; }
.svc ul { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.svc li { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-soft); border: 1px solid var(--line); padding: 5px 11px; border-radius: 999px; }

/* ---------- Work / cases ---------- */
.grid-work { display: grid; gap: 40px; }
@media (min-width: 800px) { .grid-work { grid-template-columns: 1fr 1fr; gap: 48px; } }
.case { display: flex; flex-direction: column; }
.case__media { overflow: hidden; border-radius: 3px; aspect-ratio: 16 / 11; }
.case__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease); }
.case:hover .case__media img { transform: scale(1.05); }
.case__meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 22px; gap: 16px; }
.case__meta h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 400; letter-spacing: -0.02em; }
.case__tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.case p { margin-top: 12px; color: var(--muted); font-size: 16px; }

/* ---------- Process ---------- */
.steps { display: grid; gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { background: var(--bg); padding: clamp(30px, 4vw, 48px) clamp(20px, 3vw, 34px); }
.step__no { font-family: var(--serif); font-size: 3rem; font-weight: 300; color: var(--accent); line-height: 1; }
.step h3 { margin-top: 22px; font-size: 1.3rem; font-weight: 500; font-family: var(--sans); letter-spacing: -0.01em; }
.step p { margin-top: 12px; font-size: 15px; color: var(--muted); }

/* ---------- Stats ---------- */
.stats { display: grid; gap: 40px; text-align: left; }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat__num { font-family: var(--serif); font-size: clamp(3rem, 7vw, 5.2rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1; }
.stat__label { margin-top: 14px; font-size: 15px; color: var(--muted); max-width: 22ch; }

/* ---------- CTA / form ---------- */
.cta { background: var(--bg-alt); }
.cta__grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .cta__grid { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; } }
.cta h2 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 300; letter-spacing: -0.025em; }
.cta__lead { margin-top: 24px; color: var(--fg-soft); max-width: 44ch; font-size: 18px; }
.cta__contacts { margin-top: 34px; display: grid; gap: 20px; }
.cta__contact { display: flex; flex-direction: column; gap: 4px; }
.cta__contact span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.cta__contact a, .cta__contact p { font-size: 17px; color: var(--fg); }

.form { display: grid; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-soft); }
.field input, .field textarea, .field select {
  font-family: var(--sans); font-size: 16px; color: var(--fg);
  background: var(--bg); border: 1px solid var(--line); border-radius: 2px;
  padding: 14px 16px; 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__row { display: grid; gap: 20px; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.6; }
.form__consent input { margin-top: 3px; }
.form__consent a { color: var(--accent); border-bottom: 1px solid var(--line); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(120px, 16vw, 200px) 0 clamp(60px, 8vw, 100px); background: var(--bg-alt); }
.page-hero .eyebrow { margin-bottom: 26px; }
.page-hero h1 { font-size: clamp(3rem, 9vw, 7rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1; }
.page-hero h1 em { font-style: italic; color: var(--accent); }
.page-hero p { margin-top: 28px; max-width: 58ch; font-size: 19px; color: var(--fg-soft); }

/* ---------- Prose (legal) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 400; margin: 52px 0 16px; letter-spacing: -0.02em; }
.prose h3 { font-size: 1.2rem; font-weight: 600; font-family: var(--sans); margin: 32px 0 10px; }
.prose p { margin: 0 0 18px; color: var(--fg-soft); }
.prose ul { margin: 0 0 18px; padding-left: 22px; color: var(--fg-soft); }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent); border-bottom: 1px solid var(--line); }
.prose__updated { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }

/* ---------- Footer ---------- */
.footer { background: var(--fg); color: #C9D2C9; padding: clamp(64px, 8vw, 100px) 0 40px; }
.footer__top { display: grid; gap: 44px; }
@media (min-width: 900px) { .footer__top { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer__brand { font-family: var(--serif); font-size: 30px; color: #F1F4EE; font-weight: 400; }
.footer__brand .brand__mark { color: #9DB3A2; }
.footer__tag { margin-top: 18px; max-width: 34ch; font-size: 15px; color: #9BA79C; line-height: 1.7; }
.footer__col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #8B978C; font-weight: 400; margin-bottom: 18px; }
.footer__col a, .footer__col p { display: block; font-size: 15px; color: #C9D2C9; margin-bottom: 11px; transition: color .3s var(--ease); }
.footer__col a:hover { color: #F1F4EE; }
.footer__bottom {
  margin-top: clamp(48px, 6vw, 80px); padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center;
  font-size: 13px; color: #8B978C;
}
.footer__bottom a { color: #8B978C; }
.footer__bottom a:hover { color: #C9D2C9; }
.footer__legal-links { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- 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 h1, .hero__lead, .hero__actions { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------- Cookie popup ---------- */
.cookie-popup { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: flex-end; padding: 24px; background: rgba(20,26,22,0.42); backdrop-filter: blur(4px); -webkit-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(20,26,22,0.5); }
.cookie-popup__label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.cookie-popup__card h3 { font-size: 1.4rem; font-weight: 400; letter-spacing: -0.01em; }
.cookie-popup__card p { margin-top: 12px; font-size: 14px; line-height: 1.65; color: var(--muted); }
.cookie-popup__actions { display: flex; gap: 12px; margin-top: 22px; }
.cookie-popup__actions button { padding: 11px 24px; border: 1px solid var(--line); cursor: pointer; font-size: 14px; border-radius: 2px; transition: background .3s var(--ease), color .3s var(--ease); }
.cookie-popup__actions button:first-child:hover { background: var(--bg-alt); }
.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); }

/* ---------- Utility ---------- */
.divider { height: 1px; background: var(--line); }
.mt-0 { margin-top: 0; }
