/* palette: bg=#FBF7E8 fg=#1E2A18 accent=#4C8B3A */
/* fonts: display="Fraunces" body="Nunito" mono="IBM Plex Mono" */

:root {
  --bg: #FBF7E8;          /* warm pale lemon-cream — dominant background */
  --bg-alt: #F3EBD2;      /* alternating warm section */
  --fg: #1E2A18;          /* deep forest ink — primary text */
  --fg-soft: #38462E;     /* softer foreground */
  --muted: #717A60;       /* secondary text */
  --accent: #4C8B3A;      /* leaf green — brand accent */
  --accent-deep: #356326; /* darker green for hover */
  --gold: #E5B23C;        /* warm marigold yellow */
  --clay: #C26B3E;        /* clay */
  --border: rgba(30, 42, 24, 0.14);
  --serif: 'Fraunces', ui-serif, Georgia, serif;
  --sans: 'Nunito', 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: 18px;
  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: 400; margin: 0; }
p { margin: 0; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-deep);
  display: inline-block;
}
em { font-style: italic; color: var(--accent); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 9999px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); background: var(--accent-deep); }
.btn--accent { background: var(--accent); }
.btn--accent:hover { background: var(--accent-deep); }
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 15px;
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.btn-link:hover { gap: 12px; color: var(--accent-deep); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 232, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  transition: box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}
.header[data-scrolled="true"] {
  box-shadow: 0 1px 0 var(--border), 0 8px 30px -18px rgba(30, 42, 24, 0.5);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 20px;
}
@media (min-width: 768px) { .header__inner { padding: 22px 32px; } }
.brand {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand span { color: var(--accent); font-style: italic; }
.nav { display: none; gap: 30px; }
@media (min-width: 1024px) {
  .nav { display: flex; }
  .nav a {
    font-size: 15px;
    font-weight: 600;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s var(--ease);
  }
  .nav a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.35s var(--ease);
  }
  .nav a:hover { color: var(--accent-deep); }
  .nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
}
.header__cta { display: none; }
@media (min-width: 1024px) { .header__cta { display: inline-flex; } }

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 38px; height: 38px;
  align-items: center;
  justify-content: center;
}
@media (min-width: 1024px) { .menu-toggle { display: none; } }
.menu-toggle span {
  width: 22px; height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s 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); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.mobile-menu[data-open="true"] { opacity: 1; pointer-events: all; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 22px; text-align: center; }
.mobile-menu nav a { font-family: var(--serif); font-size: 34px; }
.mobile-menu nav a:last-child { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 60px;
  position: relative;
}
.hero__eyebrow { margin-bottom: 26px; text-align: center; }
.hero h1 {
  font-size: clamp(3.5rem, 10vw, 9rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 300;
  text-align: center;
  max-width: 14ch;
  margin: 0 auto 0;
}
.hero__media {
  position: relative;
  margin: 48px auto 0;
  max-width: 760px;
  width: 100%;
}
.hero__scribble {
  position: absolute;
  inset: -60px -40px;
  z-index: 0;
  color: var(--accent);
  opacity: 0.85;
  pointer-events: none;
}
.hero__scribble svg { width: 100%; height: 100%; }
.hero__frame {
  position: relative;
  z-index: 1;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: 0 30px 70px -30px rgba(30, 42, 24, 0.55);
}
.hero__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: heroZoom 8s var(--ease) forwards;
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__play {
  position: absolute;
  z-index: 2;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 72px; height: 72px;
  border-radius: 9999px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,0.4);
  transition: transform 0.4s var(--ease);
}
.hero__play:hover { transform: translate(-50%, -50%) scale(1.08); }
.hero__play svg { fill: var(--fg); margin-left: 4px; }

/* ---------- Section scaffolding ---------- */
section { padding: clamp(80px, 12vw, 160px) 0; }
.section-head { max-width: 760px; margin-bottom: 60px; }
.section-head h2 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 18px 0 0;
}
.section-head p { margin-top: 22px; color: var(--fg-soft); font-size: 19px; }

/* ---------- Intro statement ---------- */
.intro { text-align: center; }
.intro p {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  line-height: 1.28;
  letter-spacing: -0.015em;
  max-width: 900px;
  margin: 0 auto;
  color: var(--fg);
}
.intro p .soft { color: var(--muted); }

/* ---------- Editorial list (services / work) ---------- */
.elist { border-top: 1px solid var(--border); }
.erow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
  transition: padding-left 0.4s var(--ease);
}
.erow__num { font-family: var(--mono); font-size: 12px; color: var(--accent-deep); letter-spacing: 0.1em; }
.erow__title { font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1.05; letter-spacing: -0.02em; }
.erow__desc { color: var(--fg-soft); font-size: 17px; max-width: 52ch; }
.erow__meta { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
@media (min-width: 900px) {
  .erow {
    grid-template-columns: 56px minmax(220px, 1.1fr) 2fr auto;
    gap: 32px;
    align-items: center;
  }
  .erow:hover { padding-left: 16px; }
  .erow:hover .erow__title { color: var(--accent-deep); }
}

/* ---------- Work cards with images ---------- */
.work { display: grid; gap: 56px; }
.work__item { display: grid; gap: 20px; }
.work__cover { border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 4px 24px -4px rgba(0,0,0,0.08); }
.work__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.work__item:hover .work__cover img { transform: scale(1.05); }
.work__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 1px solid var(--border); padding-top: 16px; }
.work__name { font-family: var(--serif); font-size: 1.5rem; letter-spacing: -0.01em; }
.work__cat { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.work__year { font-family: var(--mono); font-size: 13px; color: var(--accent-deep); }
@media (min-width: 768px) {
  .work { grid-template-columns: repeat(2, 1fr); gap: 64px 48px; }
  .work__item:nth-child(odd) { margin-top: 0; }
  .work__item:nth-child(even) { margin-top: 56px; }
}

/* ---------- Stats ---------- */
.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(3rem, 7vw, 5rem); line-height: 1; letter-spacing: -0.03em; color: var(--accent-deep); }
.stat__label { margin-top: 12px; font-size: 16px; color: var(--fg-soft); }

/* ---------- Manifesto (dark band) ---------- */
.manifesto { background: var(--fg); color: var(--bg); }
.manifesto .container { text-align: center; }
.manifesto .eyebrow { color: var(--gold); }
.manifesto blockquote {
  margin: 0 auto;
  max-width: 980px;
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 300;
  position: relative;
}
.manifesto blockquote em { color: var(--gold); }
.manifesto .quote-mark { font-family: var(--serif); font-size: 7rem; line-height: 0; color: var(--accent); display: block; margin-bottom: 30px; height: 40px; }
.manifesto cite { display: block; margin-top: 40px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(251,247,232,0.65); font-style: normal; }

/* ---------- Feature split ---------- */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } }
.split--alt { background: var(--bg-alt); }
.split__media { border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 20px 50px -24px rgba(30,42,24,0.5); }
.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; }
.split p { margin-top: 20px; color: var(--fg-soft); }
.split ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.split li { padding-left: 26px; position: relative; }
.split li::before { content: ""; position: absolute; left: 0; top: 12px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }

/* ---------- Values / principles cards ---------- */
.cards { display: grid; gap: 24px; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 34px 30px;
  box-shadow: 0 4px 24px -4px rgba(0,0,0,0.08);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px -8px rgba(0,0,0,0.14); }
.card__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; color: var(--accent-deep); }
.card h3 { font-size: 1.5rem; letter-spacing: -0.01em; }
.card p { margin-top: 12px; color: var(--fg-soft); font-size: 16px; }

/* ---------- Team (monogram avatars, no faces) ---------- */
.team { display: grid; gap: 24px; }
@media (min-width: 640px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .team { grid-template-columns: repeat(3, 1fr); } }
.member { border: 1px solid var(--border); border-radius: 10px; padding: 30px; transition: transform 0.4s var(--ease); }
.member:hover { transform: translateY(-5px); }
.avatar { width: 64px; height: 64px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 24px; color: var(--bg); margin-bottom: 22px; }
.member h3 { font-size: 1.35rem; }
.member__role { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent-deep); margin-top: 6px; }
.member p { margin-top: 14px; color: var(--fg-soft); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { max-width: 900px; margin: 0 auto; border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; font-family: var(--serif); font-size: clamp(1.2rem, 2.6vw, 1.7rem); letter-spacing: -0.01em; }
.faq__q span { font-family: var(--mono); font-size: 24px; color: var(--accent); transition: transform 0.35s var(--ease); flex-shrink: 0; }
.faq__item[data-open="true"] .faq__q span { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease); }
.faq__a p { padding-bottom: 28px; color: var(--fg-soft); max-width: 64ch; }

/* ---------- CTA ---------- */
.cta { background: var(--accent); color: var(--bg); text-align: center; border-radius: 0; }
.cta h2 { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.02; letter-spacing: -0.02em; max-width: 16ch; margin: 0 auto; font-weight: 300; }
.cta p { margin: 24px auto 36px; max-width: 56ch; color: rgba(251,247,232,0.92); font-size: 19px; }
.cta .btn { background: var(--fg); color: var(--bg); }
.cta .btn:hover { background: var(--bg); color: var(--fg); }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; gap: 50px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 80px; } }
.contact-info dt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent-deep); margin-top: 24px; }
.contact-info dd { margin: 6px 0 0; font-size: 18px; }
.form { display: grid; gap: 22px; }
.field label { display: block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--fg-soft); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  font: inherit;
  color: var(--fg);
  transition: border-color 0.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; }

/* ---------- Footer ---------- */
.footer { background: var(--fg); color: var(--bg); padding: 80px 0 36px; }
.footer__top { display: grid; gap: 44px; }
@media (min-width: 768px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer__brand { font-family: var(--serif); font-size: 30px; }
.footer__brand span { color: var(--gold); font-style: italic; }
.footer__tag { margin-top: 16px; max-width: 38ch; color: rgba(251,247,232,0.7); font-size: 16px; }
.footer h4 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold); margin-bottom: 18px; font-weight: 400; }
.footer__col a, .footer__col p { display: block; color: rgba(251,247,232,0.82); font-size: 15px; margin-bottom: 12px; transition: color 0.3s var(--ease); }
.footer__col a:hover { color: var(--bg); }
.footer__bottom { margin-top: 56px; padding-top: 26px; border-top: 1px solid rgba(251,247,232,0.16); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13px; color: rgba(251,247,232,0.6); }
.footer__bottom a { color: rgba(251,247,232,0.6); }
.footer__bottom a:hover { color: var(--bg); }

/* ---------- 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__frame img { animation: none; }
}

/* ---------- Legal pages ---------- */
.legal { padding: clamp(120px, 14vw, 180px) 0 100px; }
.legal__inner { max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); letter-spacing: -0.02em; line-height: 1.02; }
.legal .eyebrow { margin-bottom: 18px; }
.legal h2 { font-size: 1.7rem; margin: 48px 0 14px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--fg-soft); margin-bottom: 14px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--accent-deep); text-decoration: underline; }

/* ---------- Thanks ---------- */
.thanks { min-height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 140px 20px 100px; }
.thanks__inner { max-width: 640px; }
.thanks h1 { font-size: clamp(3rem, 8vw, 6rem); letter-spacing: -0.03em; line-height: 1; font-weight: 300; }
.thanks p { margin: 26px auto 36px; color: var(--fg-soft); font-size: 19px; }

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

/* ---------- Page hero (interior) ---------- */
.page-hero { padding: clamp(120px, 16vw, 200px) 0 clamp(40px, 6vw, 80px); }
.page-hero h1 { font-size: clamp(3rem, 9vw, 7rem); line-height: 0.98; letter-spacing: -0.03em; font-weight: 300; max-width: 16ch; }
.page-hero h1 em { color: var(--accent); }
.page-hero p { margin-top: 26px; max-width: 60ch; color: var(--fg-soft); font-size: 19px; }
