/* palette: bg=#0E1613 fg=#ECF1E8 accent=#E7C24A */
/* fonts: display="Fraunces" body="Nunito" mono="Space Mono" */

:root {
  --bg: #0E1613;        /* deep forest charcoal — matches reference dark ground */
  --bg-alt: #131F19;    /* alternating section background */
  --bg-deep: #0A100D;   /* darkest band */
  --fg: #ECF1E8;        /* primary light text */
  --fg-soft: #CBD6C6;   /* slightly softer fg */
  --muted: #8B9A8A;     /* secondary text */
  --accent: #E7C24A;    /* solarpunk warm yellow — hero/CTA accent */
  --accent-deep: #C9A22F;   /* darker accent for hover */
  --leaf: #7FB069;      /* leaf green secondary */
  --leaf-deep: #5C8A4C;
  --clay: #C67B4E;      /* warm clay tertiary */
  --border: rgba(236, 241, 232, 0.12);
  --border-soft: rgba(236, 241, 232, 0.07);
  --serif: 'Fraunces', ui-serif, Georgia, serif;
  --sans: 'Nunito', 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);
  line-height: 1.75;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-size: 17px;
  font-weight: 400;
}
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; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
p { margin: 0 0 1.1em; }

/* ---------- 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--alt { background: var(--bg-alt); }
.section--deep { background: var(--bg-deep); }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--accent);
  display: inline-block;
}
.lead { font-size: clamp(1.05rem, 2vw, 1.28rem); line-height: 1.7; color: var(--fg-soft); }
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 9999px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.btn--primary { background: var(--accent); color: #1A160A; box-shadow: 0 8px 30px -10px rgba(231, 194, 74, 0.5); }
.btn--primary:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn--ghost { border: 1px solid var(--border); color: var(--fg); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--accent);
  transition: gap 0.3s var(--ease);
}
.link-arrow:hover { gap: 14px; }

/* ---------- header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 22, 19, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.header[data-scrolled="true"] {
  border-bottom-color: var(--border-soft);
  box-shadow: 0 6px 30px -18px rgba(0,0,0,0.8);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--serif); font-size: 1.32rem; letter-spacing: -0.02em; }
.brand__mark {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--leaf));
  color: #12180C;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
}
.nav { display: none; gap: 34px; }
.nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-soft);
  position: relative;
  transition: color 0.3s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--accent);
  transition: width 0.35s 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) {
  .nav { display: flex; }
  .header__cta { display: inline-flex; }
}
.menu-toggle {
  display: inline-flex; flex-direction: column; gap: 5px;
  width: 42px; height: 42px; align-items: center; justify-content: center;
}
.menu-toggle span { width: 22px; height: 2px; background: var(--fg); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
@media (min-width: 900px) { .menu-toggle { display: none; } }

/* mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  padding: 100px 28px 40px;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease);
  display: flex; flex-direction: column; gap: 8px;
}
.mobile-menu[data-open="true"] { transform: translateY(0); opacity: 1; pointer-events: all; }
.mobile-menu a { font-family: var(--serif); font-size: 2rem; padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
.mobile-menu .btn { margin-top: 24px; justify-content: center; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  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.1); } to { transform: scale(1); } }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,16,13,0.72) 0%, rgba(10,16,13,0.82) 55%, rgba(10,16,13,0.94) 100%);
}
.hero__inner { position: relative; z-index: 2; padding: 140px 0 90px; width: 100%; }
.hero h1 {
  font-size: clamp(3.2rem, 9.5vw, 8rem);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 0.98;
  max-width: 15ch;
  margin: 0 0 30px;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero__sub { max-width: 54ch; font-size: clamp(1.05rem, 2vw, 1.32rem); color: var(--fg-soft); line-height: 1.65; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.hero__meta {
  margin-top: 64px;
  display: flex; flex-wrap: wrap; gap: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border-soft);
}
.hero__meta div { display: flex; flex-direction: column; }
.hero__meta b { font-family: var(--serif); font-size: 2.1rem; color: var(--fg); }
.hero__meta span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

/* ---------- section heading block ---------- */
.head-block { max-width: 780px; margin-bottom: 60px; }
.head-block h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 300; letter-spacing: -0.025em; }
.head-block h2 em { font-style: italic; color: var(--leaf); }
.head-block p { margin-top: 24px; }

/* ---------- manifesto ---------- */
.manifesto { text-align: center; }
.manifesto .container { max-width: 960px; }
.manifesto__quote {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
}
.manifesto__quote em { font-style: italic; color: var(--accent); }
.manifesto__mark {
  font-family: var(--serif);
  font-size: 6rem;
  line-height: 0.6;
  color: var(--leaf);
  opacity: 0.55;
  display: block;
  margin-bottom: 10px;
}
.manifesto__by { margin-top: 40px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ---------- services grid ---------- */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 34px 30px;
  background: rgba(236,241,232,0.015);
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), background 0.5s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: rgba(231,194,74,0.4); background: rgba(236,241,232,0.03); }
.card__num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--leaf); }
.card h3 { font-size: 1.55rem; margin: 20px 0 12px; letter-spacing: -0.015em; }
.card p { font-size: 15.5px; color: var(--muted); line-height: 1.7; margin: 0; }
.card__icon {
  width: 46px; height: 46px; border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(127,176,105,0.14);
  margin-bottom: 20px;
}
.card__icon svg { width: 22px; height: 22px; stroke: var(--leaf); fill: none; stroke-width: 1.6; }

/* ---------- work / case grid ---------- */
.work-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
.work-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: flex-end;
}
.work-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.work-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,16,13,0.05) 30%, rgba(10,16,13,0.92) 100%); }
.work-card:hover img { transform: scale(1.06); }
.work-card__body { position: relative; z-index: 2; padding: 30px; }
.work-card__tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.work-card h3 { font-size: 1.7rem; margin: 12px 0 8px; letter-spacing: -0.02em; }
.work-card p { font-size: 14.5px; color: var(--fg-soft); margin: 0; max-width: 42ch; }

/* ---------- deep-dive case ---------- */
.case { display: grid; gap: 44px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .case { grid-template-columns: 1.05fr 0.95fr; gap: 64px; } }
.case__media { border-radius: 22px; overflow: hidden; aspect-ratio: 5/4; border: 1px solid var(--border-soft); }
.case__media img { width: 100%; height: 100%; object-fit: cover; }
.case h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 300; margin: 22px 0 20px; }
.case ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.case li { display: flex; gap: 14px; align-items: flex-start; font-size: 15.5px; color: var(--fg-soft); }
.case li::before { content: ""; flex: 0 0 8px; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--accent); }
.case__stats { display: flex; gap: 40px; margin-top: 34px; flex-wrap: wrap; }
.case__stats b { font-family: var(--serif); font-size: 2.4rem; color: var(--leaf); display: block; }
.case__stats span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ---------- stats band ---------- */
.stats-band { display: grid; gap: 40px; grid-template-columns: repeat(2, 1fr); text-align: center; }
@media (min-width: 800px) { .stats-band { grid-template-columns: repeat(4, 1fr); } }
.stats-band b { font-family: var(--serif); font-weight: 300; font-size: clamp(2.8rem, 6vw, 4.6rem); color: var(--accent); display: block; letter-spacing: -0.03em; }
.stats-band span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* ---------- approach / process list ---------- */
.process { display: grid; gap: 0; }
.process__row {
  display: grid; grid-template-columns: 1fr; gap: 10px;
  padding: 38px 0;
  border-top: 1px solid var(--border-soft);
}
@media (min-width: 800px) { .process__row { grid-template-columns: 90px 0.9fr 1.4fr; gap: 40px; align-items: baseline; } }
.process__row:last-child { border-bottom: 1px solid var(--border-soft); }
.process__num { font-family: var(--mono); font-size: 13px; color: var(--leaf); letter-spacing: 0.08em; }
.process__row h3 { font-size: 1.7rem; font-weight: 300; letter-spacing: -0.02em; }
.process__row p { font-size: 15.5px; color: var(--muted); margin: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; max-width: 880px; }
.faq__item { border-top: 1px solid var(--border-soft); }
.faq__item:last-child { border-bottom: 1px solid var(--border-soft); }
.faq__q {
  width: 100%; text-align: left;
  display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 28px 0;
  font-family: var(--serif); font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 400;
}
.faq__q span:last-child { flex: 0 0 auto; font-family: var(--mono); color: var(--accent); transition: transform 0.35s var(--ease); font-size: 1.4rem; line-height: 1; }
.faq__item[data-open="true"] .faq__q span:last-child { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease); }
.faq__item[data-open="true"] .faq__a { max-height: 340px; }
.faq__a p { padding: 0 0 30px; margin: 0; color: var(--muted); font-size: 16px; max-width: 62ch; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .container { max-width: 860px; }
.cta-band h2 { font-size: clamp(2.4rem, 6vw, 4.8rem); font-weight: 300; letter-spacing: -0.03em; }
.cta-band h2 em { font-style: italic; color: var(--accent); }
.cta-band p { margin: 26px auto 40px; max-width: 52ch; color: var(--fg-soft); }
.cta-band__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- contact / form ---------- */
.contact-grid { display: grid; gap: 56px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 72px; } }
.info-list { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 26px; }
.info-list li { display: grid; gap: 4px; }
.info-list .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.info-list .v { font-size: 17px; color: var(--fg-soft); }
.form { display: grid; gap: 20px; }
.field { display: grid; 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 {
  width: 100%;
  background: rgba(236,241,232,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); background: rgba(236,241,232,0.05); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.form__note { font-size: 13px; color: var(--muted); }
.form__note a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- prose (legal) ---------- */
.prose { max-width: 780px; }
.prose h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 300; margin-bottom: 18px; }
.prose h2 { font-size: 1.7rem; margin: 46px 0 16px; color: var(--fg); }
.prose p, .prose li { color: var(--fg-soft); font-size: 16.5px; }
.prose ul { padding-left: 20px; display: grid; gap: 8px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose__updated { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 40px; }

/* ---------- footer ---------- */
.footer { background: var(--bg-deep); padding: 84px 0 40px; border-top: 1px solid var(--border-soft); }
.footer__top { display: grid; gap: 44px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; } }
.footer__brand .brand { font-size: 1.5rem; margin-bottom: 20px; }
.footer__brand p { color: var(--muted); max-width: 38ch; font-size: 15px; }
.footer__col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin-bottom: 18px; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer__col a { font-size: 15px; color: var(--fg-soft); transition: color 0.3s var(--ease); }
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  margin-top: 60px; padding-top: 26px;
  border-top: 1px solid var(--border-soft);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 13px; color: var(--muted);
}
.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); 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;justify-content:flex-start;padding:24px;background:rgba(0,0,0,0.5);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-alt);padding:32px 36px;max-width:480px;border-radius:18px;border:1px solid var(--border); }
.cookie-popup__label { font-family:var(--mono);font-size:11px;letter-spacing:0.14em;text-transform:uppercase;color:var(--accent);margin-bottom:12px; }
.cookie-popup__card h3 { font-size:1.4rem;margin-bottom:12px; }
.cookie-popup__card p { font-size:14px;color:var(--muted);line-height:1.65;margin:0; }
.cookie-popup__card p a { color:var(--accent);text-decoration:underline;text-underline-offset:2px; }
.cookie-popup__actions { display:flex;gap:12px;margin-top:22px; }
.cookie-popup__actions button { padding:11px 24px;border:1px solid var(--border);border-radius:9999px;cursor:pointer;font-size:14px;font-weight:700;transition:all .3s var(--ease); }
.cookie-popup__actions button:hover { border-color:var(--accent); }
.cookie-popup__actions button:last-child { background:var(--accent);color:#1A160A;border-color:var(--accent); }
.cookie-popup__actions button:last-child:hover { background:var(--accent-deep); }
