/* palette: bg=#FCFBF9 fg=#1A1714 accent=#C9512C */
/* fonts: display="Space Grotesk" body="Inter" mono="JetBrains Mono" */
:root {
  --bg: #FCFBF9;
  --bg-alt: #F2EEE6;
  --fg: #1A1714;
  --fg-soft: #3A332C;
  --muted: #7A7166;
  --accent: #C9512C;
  --accent-deep: #A33D1E;
  --green: #586B36;
  --green-soft: #8C9B5E;
  --oxblood: #3B1611;
  --cream: #EDE7DA;
  --border: rgba(26, 23, 20, 0.12);
  --serif: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1280px;
}

*, *::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);
  -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; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); 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;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
  display: inline-block;
}
.eyebrow--green { color: var(--green); }
.eyebrow--cream { color: var(--green-soft); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; line-height: 1.06; margin: 0; }

.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.7; color: var(--fg-soft); max-width: 62ch; }
p { margin: 0 0 1.1em; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(252, 251, 249, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.header[data-scrolled="true"] {
  box-shadow: 0 1px 0 rgba(26,23,20,0.06), 0 8px 30px -18px rgba(26,23,20,0.3);
  border-color: var(--border);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 1.18rem; letter-spacing: -0.01em; }
.brand__mark {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent);
  position: relative; flex: none;
}
.brand__mark::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 2px solid var(--bg); }
.nav { display: none; }
@media (min-width: 1024px) {
  .nav { display: flex; align-items: center; gap: 34px; }
  .nav a { font-size: 14px; color: var(--fg-soft); transition: color .2s var(--ease); }
  .nav a:hover { color: var(--accent); }
}
.btn-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  padding: 11px 22px; border-radius: 9999px;
  font-size: 14px; font-weight: 500;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.btn-pill:hover { background: var(--accent-deep); transform: translateY(-1px); }
.header__cta { display: none; }
@media (min-width: 768px) { .header__cta { display: inline-flex; } }

.menu-toggle { display: inline-flex; flex-direction: column; gap: 5px; padding: 8px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--fg); display: block; transition: transform .3s var(--ease), opacity .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); }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

.mobile-menu {
  position: fixed; inset: 68px 0 0; z-index: 99;
  background: var(--bg);
  transform: translateX(100%);
  transition: transform .4s var(--ease);
  padding: 32px 24px;
  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.8rem; font-weight: 500; padding: 12px 0; border-bottom: 1px solid var(--border); }
.mobile-menu .btn-pill { margin-top: 24px; align-self: flex-start; }

/* ---------- Hero ---------- */
.hero { padding: 0; border-bottom: 1px solid var(--border); }
.hero__grid { display: grid; grid-template-columns: 1fr; min-height: calc(100vh - 68px); }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.05fr 0.95fr; } }
.hero__left { display: flex; flex-direction: column; justify-content: center; padding: 56px 20px 64px; }
@media (min-width: 768px) { .hero__left { padding: 64px 32px; } }
@media (min-width: 1280px) { .hero__left { padding-left: max(32px, calc((100vw - var(--maxw)) / 2 + 32px)); } }
.hero h1 {
  font-size: clamp(3.1rem, 9vw, 7.2rem);
  letter-spacing: -0.035em; line-height: 0.98; margin: 0 0 28px; max-width: 12ch;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__body { max-width: 46ch; }
.hero__body p { font-size: 1.05rem; color: var(--fg-soft); }
.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 500; margin-top: 20px;
  border-bottom: 1px solid var(--fg); padding-bottom: 3px;
  transition: gap .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.text-link:hover { gap: 14px; color: var(--accent); border-color: var(--accent); }
.hero__right {
  position: relative; overflow: hidden;
  background: linear-gradient(155deg, #E9633A 0%, #C9512C 55%, #8C3A1B 100%);
  min-height: 42vh;
}
.hero__right img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; mix-blend-mode: multiply; opacity: 0.55;
  animation: heroZoom 9s var(--ease) forwards;
}
@keyframes heroZoom { from { transform: scale(1.1); } to { transform: scale(1); } }
.hero__tag {
  position: absolute; bottom: 22px; right: 22px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.85);
  text-align: right; line-height: 1.7;
}

/* ---------- Dark band ---------- */
.band-dark { background: var(--oxblood); color: var(--cream); text-align: center; }
.band-dark h2 { font-size: clamp(2.3rem, 6vw, 4.6rem); letter-spacing: -0.025em; max-width: 16ch; margin: 0 auto; line-height: 1.04; }
.band-dark .lead { color: rgba(237,231,218,0.78); margin: 28px auto 0; text-align: center; }

/* ---------- Split section ---------- */
.split { padding: 0; }
.split__grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split__grid { grid-template-columns: 1fr 1fr; } }
.split__media { overflow: hidden; min-height: 320px; background: var(--bg-alt); }
.split__media img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.split__text { padding: clamp(48px, 8vw, 110px) clamp(24px, 5vw, 80px); display: flex; flex-direction: column; justify-content: center; background: var(--bg-alt); }
.split__text h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 22px; max-width: 16ch; }
.split__text p { color: var(--fg-soft); }

/* ---------- Services grid ---------- */
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -0.025em; }
.section-head p { margin-top: 22px; }

.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); }
@media (min-width: 640px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--bg); padding: 38px 32px 44px;
  display: flex; flex-direction: column; gap: 14px;
  transition: background .3s var(--ease);
}
.card:hover { background: var(--bg-alt); }
.card__num { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.1em; }
.card h3 { font-size: 1.5rem; letter-spacing: -0.01em; line-height: 1.15; }
.card p { color: var(--fg-soft); font-size: 0.98rem; margin: 0; }

/* ---------- Stats ---------- */
.stats { background: var(--bg-alt); }
.stats__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 24px; }
@media (min-width: 900px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }
.stat__num { font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1; color: var(--accent); }
.stat__label { margin-top: 12px; font-size: 0.92rem; color: var(--fg-soft); }

/* ---------- Editorial cards ---------- */
.work-grid { display: grid; grid-template-columns: 1fr; gap: 44px 32px; }
@media (min-width: 720px) { .work-grid { grid-template-columns: 1fr 1fr; } }
.work-card { display: flex; flex-direction: column; }
.work-card__media { overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-alt); margin-bottom: 20px; }
.work-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.work-card:hover .work-card__media img { transform: scale(1.05); }
.work-card__meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.work-card h3 { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.1; margin-bottom: 10px; }
.work-card p { color: var(--fg-soft); font-size: 0.98rem; margin: 0; }

/* ---------- Manifesto pull quote ---------- */
.manifesto { background: var(--oxblood); color: var(--cream); text-align: center; }
.manifesto blockquote { margin: 0; max-width: 980px; margin-inline: auto; position: relative; }
.manifesto__mark { font-family: var(--serif); font-size: clamp(5rem, 14vw, 11rem); line-height: 0.6; color: var(--accent); display: block; margin-bottom: 8px; }
.manifesto p { font-size: clamp(1.6rem, 4.4vw, 3.1rem); font-family: var(--serif); font-weight: 400; line-height: 1.18; letter-spacing: -0.02em; color: var(--cream); margin: 0; }
.manifesto cite { display: block; margin-top: 32px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-soft); font-style: normal; }

/* ---------- FAQ ---------- */
.faq { max-width: 880px; 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__item h3 { font-size: clamp(1.2rem, 2.5vw, 1.55rem); margin-bottom: 12px; letter-spacing: -0.01em; }
.faq__item p { color: var(--fg-soft); margin: 0; font-size: 1rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent); color: #fff; text-align: center; }
.cta-band h2 { font-size: clamp(2.4rem, 7vw, 5rem); letter-spacing: -0.03em; max-width: 18ch; margin: 0 auto 28px; line-height: 1.02; }
.cta-band p { color: rgba(255,255,255,0.88); max-width: 50ch; margin: 0 auto 36px; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid rgba(255,255,255,0.7); color: #fff;
  padding: 14px 30px; border-radius: 9999px; font-weight: 500; font-size: 15px;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.btn-outline:hover { background: #fff; color: var(--accent); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 22px; max-width: 640px; }
@media (min-width: 640px) { .form-grid .full { grid-column: 1 / -1; } .form-grid { grid-template-columns: 1fr 1fr; } }
.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(--muted); }
.field input, .field textarea, .field select {
  font: inherit; padding: 13px 16px; border: 1px solid var(--border);
  background: var(--bg); color: var(--fg); border-radius: 4px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201,81,44,0.12); }
.field textarea { min-height: 130px; resize: vertical; }
.form-actions { margin-top: 28px; }
.btn-solid {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--fg); color: var(--bg);
  padding: 14px 32px; border-radius: 9999px; font-weight: 500; font-size: 15px;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.btn-solid:hover { background: var(--accent); transform: translateY(-1px); }

/* contact split */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 56px; }
@media (min-width: 920px) { .contact-grid { grid-template-columns: 1.1fr 0.9fr; gap: 80px; } }
.contact-info dl { margin: 0; display: grid; gap: 26px; }
.contact-info dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.contact-info dd { margin: 0; font-size: 1.05rem; color: var(--fg-soft); line-height: 1.6; }

/* ---------- Team / principles (text only) ---------- */
.principles { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); }
@media (min-width: 720px) { .principles { grid-template-columns: 1fr 1fr; } }
.principle { background: var(--bg); padding: 40px 34px; }
.principle .avatar { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 600; color: #fff; font-size: 1.05rem; margin-bottom: 20px; }
.principle h3 { font-size: 1.35rem; margin-bottom: 4px; }
.principle .role { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.principle p { color: var(--fg-soft); font-size: 0.98rem; margin: 0; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(80px, 12vw, 150px) 0 clamp(48px, 7vw, 90px); border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(2.8rem, 8vw, 6rem); letter-spacing: -0.03em; max-width: 16ch; line-height: 1; }
.page-hero h1 em { font-style: normal; color: var(--accent); }
.page-hero .lead { margin-top: 26px; }

/* ---------- Legal ---------- */
.legal { max-width: 800px; margin: 0 auto; }
.legal h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin: 48px 0 16px; letter-spacing: -0.02em; }
.legal h3 { font-size: 1.2rem; margin: 30px 0 10px; }
.legal p, .legal li { color: var(--fg-soft); font-size: 1rem; }
.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; }

/* ---------- Footer ---------- */
.footer { background: var(--fg); color: var(--cream); padding: clamp(64px, 9vw, 110px) 0 44px; }
.footer__top { display: grid; grid-template-columns: 1fr; gap: 44px; }
@media (min-width: 720px) { .footer__top { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer__brand { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.footer__brand .brand__mark::after { border-color: var(--fg); }
.footer p { color: rgba(237,231,218,0.7); max-width: 38ch; font-size: 0.98rem; }
.footer h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-soft); margin-bottom: 18px; font-weight: 400; }
.footer__col a { display: block; color: rgba(237,231,218,0.78); padding: 6px 0; font-size: 0.96rem; transition: color .2s var(--ease); }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { margin-top: clamp(48px, 7vw, 80px); padding-top: 28px; border-top: 1px solid rgba(237,231,218,0.16); display: flex; flex-direction: column; gap: 14px; justify-content: space-between; font-size: 0.85rem; color: rgba(237,231,218,0.6); }
@media (min-width: 720px) { .footer__bottom { flex-direction: row; align-items: center; } }
.footer__bottom a { color: rgba(237,231,218,0.6); }
.footer__bottom a:hover { color: var(--accent); }

/* ---------- 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); }

/* ---------- 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: 4px; box-shadow: 0 24px 60px -20px rgba(0,0,0,0.4); }
.cookie-popup__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.cookie-popup__card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.cookie-popup__card p { font-size: 0.92rem; color: var(--fg-soft); margin: 0; }
.cookie-popup__actions { display: flex; gap: 12px; margin-top: 20px; }
.cookie-popup__actions button { padding: 10px 24px; border: 1px solid var(--border); cursor: pointer; font-size: 14px; border-radius: 9999px; transition: background .2s var(--ease), color .2s 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); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
