/* palette: bg=#F1F3F0 fg=#143D38 accent=#9FE7D2 */
/* fonts: display="Space Grotesk" body="Inter" mono="Space Mono" */

:root {
  --bg: #F1F3F0;
  --bg-alt: #FFFFFF;
  --fg: #143D38;
  --fg-soft: #2A5852;
  --muted: #6C807B;
  --accent: #9FE7D2;
  --accent-deep: #164E47;
  --teal-card: #1B5249;
  --border: rgba(20, 61, 56, 0.14);
  --border-soft: rgba(20, 61, 56, 0.08);
  --serif: 'Space Grotesk', ui-sans-serif, sans-serif;
  --sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Space 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; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.02em; }
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);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  display: inline-block;
  margin: 0 0 18px;
}

/* ───────────── HEADER (floating pill) ───────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
  transition: padding 0.4s var(--ease);
}
.header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 12px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--border-soft);
  border-radius: 9999px;
  height: 62px;
  transition: box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}
.header[data-scrolled="true"] .header__inner {
  box-shadow: 0 10px 40px -12px rgba(20, 61, 56, 0.22);
  background: rgba(255, 255, 255, 0.92);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--fg);
  font-weight: 500;
}
.brand__mark {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 3px solid var(--accent-deep);
  border-right-color: var(--accent);
  border-bottom-color: var(--accent);
  display: inline-block;
  animation: spinMark 9s linear infinite;
}
@keyframes spinMark { to { transform: rotate(360deg); } }
.nav { display: none; gap: 30px; }
@media (min-width: 1024px) { .nav { display: flex; } }
.nav a {
  font-size: 15px;
  color: var(--fg-soft);
  transition: color 0.25s var(--ease);
}
.nav a:hover { color: var(--fg); }
.header__cta {
  display: none;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: var(--accent-deep);
  padding: 9px 9px 9px 22px;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
@media (min-width: 1024px) { .header__cta { display: inline-flex; } }
.header__cta:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -8px rgba(22,78,71,0.5); }
.header__cta span {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent-deep);
  color: var(--accent);
  display: grid; place-items: center;
  font-size: 13px;
}
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
}
@media (min-width: 1024px) { .menu-toggle { display: none; } }
.menu-toggle span {
  width: 22px; height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.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); }

/* mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  padding: 110px 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease);
}
.mobile-menu[data-open="true"] { transform: translateY(0); opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-family: var(--serif);
  font-size: 32px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
  color: var(--fg);
}
.mobile-menu .header__cta { display: inline-flex; margin-top: 24px; align-self: flex-start; }

/* ───────────── HERO ───────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  margin-top: -90px;
  display: flex;
  align-items: flex-end;
  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.08); } to { transform: scale(1); } }
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,40,36,0.25) 0%, rgba(13,40,36,0.05) 35%, rgba(13,40,36,0.55) 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px 56px;
  display: grid;
  gap: 28px;
  align-items: end;
}
@media (min-width: 768px) {
  .hero__inner { padding: 0 32px 72px; grid-template-columns: 1.5fr 1fr; gap: 48px; }
}
.hero__eyebrow {
  font-family: var(--mono);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin: 0 0 18px;
}
.hero h1 {
  color: #fff;
  font-weight: 300;
  font-size: clamp(3.5rem, 10vw, 9rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lead {
  color: rgba(255,255,255,0.92);
  font-size: 18px;
  line-height: 1.65;
  max-width: 40ch;
  padding-bottom: 8px;
}
.hero__lead .hero__btn { margin-top: 22px; }

/* ───────────── BUTTONS ───────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: var(--accent-deep);
  padding: 13px 14px 13px 26px;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 15px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn span {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-deep); color: var(--accent);
  display: grid; place-items: center; font-size: 13px;
  transition: transform 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -12px rgba(22,78,71,0.55); }
.btn:hover span { transform: translateX(3px); }
.btn--dark { background: var(--accent-deep); color: #fff; }
.btn--dark span { background: var(--accent); color: var(--accent-deep); }
.btn--ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 13px 26px;
}
.btn--ghost:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; color: var(--fg);
  border-bottom: 1px solid var(--border);
  padding-bottom: 3px;
  transition: gap 0.3s var(--ease), border-color 0.3s var(--ease);
}
.link-arrow:hover { gap: 14px; border-color: var(--fg); }

/* ───────────── SECTIONS ───────────── */
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section--alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head h2 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 400;
}
.section-head p { margin-top: 22px; color: var(--muted); font-size: 18px; max-width: 52ch; }

/* numbered capability rows */
.cap {
  display: grid;
  gap: 40px;
  align-items: center;
  padding: clamp(48px, 7vw, 90px) 0;
  border-top: 1px solid var(--border-soft);
}
@media (min-width: 900px) { .cap { grid-template-columns: 1fr 1.15fr; gap: 72px; } }
.cap:nth-child(even) .cap__media { order: -1; }
.cap__num {
  font-family: var(--mono);
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  display: inline-block;
  margin-bottom: 26px;
  color: var(--fg-soft);
}
.cap h3 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.04;
  font-weight: 400;
}
.cap p { margin-top: 22px; color: var(--fg-soft); font-size: 18px; max-width: 44ch; }
.cap__list { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.cap__list li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 15.5px; color: var(--fg-soft);
}
.cap__list li::before {
  content: ""; flex: none; margin-top: 9px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-deep);
}
.cap__media {
  background: var(--teal-card);
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  position: relative;
}
.cap__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; }
.cap__media::after {
  content: ""; position: absolute; left: 22px; right: 22px; bottom: 16px; height: 4px;
  border-radius: 4px; background: var(--accent);
}

/* ───────────── MANIFESTO (dark band) ───────────── */
.manifesto {
  background: var(--accent-deep);
  color: #EAF4F0;
  padding: clamp(90px, 14vw, 180px) 0;
  text-align: center;
}
.manifesto .eyebrow { color: var(--accent); }
.manifesto p.statement {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  max-width: 980px;
  margin: 0 auto;
}
.manifesto p.statement em { font-style: normal; color: var(--accent); }
.manifesto .sub { margin-top: 36px; color: rgba(234,244,240,0.7); font-size: 17px; }

/* ───────────── SERVICES GRID ───────────── */
.grid-3 { display: grid; gap: 22px; }
@media (min-width: 700px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 34px 32px 36px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  box-shadow: 0 4px 24px -10px rgba(20,61,56,0.08);
  height: 100%;
}
.section--alt .card { background: var(--bg); }
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px -14px rgba(20,61,56,0.2); }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 26px;
}
.card__icon svg { width: 22px; height: 22px; stroke: var(--accent-deep); }
.card h3 { font-size: 1.5rem; margin-bottom: 12px; font-weight: 500; }
.card p { color: var(--muted); font-size: 16px; line-height: 1.7; }
.card__tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 14px; }

/* ───────────── WORK / CASES ───────────── */
.work-grid { display: grid; gap: 26px; }
@media (min-width: 800px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
.case {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  display: block;
  background: var(--teal-card);
  aspect-ratio: 16 / 11;
}
.case img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); opacity: 0.85; }
.case:hover img { transform: scale(1.05); }
.case__body {
  position: absolute; inset: auto 0 0 0;
  padding: 28px 30px;
  background: linear-gradient(180deg, transparent, rgba(11,33,30,0.82));
  color: #fff;
}
.case__tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.case__body h3 { font-size: 1.7rem; margin-top: 8px; font-weight: 500; }
.case__body p { color: rgba(255,255,255,0.78); font-size: 15px; margin-top: 6px; }

/* ───────────── STATS ───────────── */
.stats { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 32px 8px 32px 0; }
.stat strong {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  letter-spacing: -0.03em; display: block; line-height: 1;
}
.stat span { color: var(--muted); font-size: 14.5px; display: block; margin-top: 10px; }

/* ───────────── PROCESS ───────────── */
.steps { display: grid; gap: 0; }
.step {
  display: grid; gap: 16px;
  grid-template-columns: 60px 1fr;
  padding: 34px 0;
  border-top: 1px solid var(--border-soft);
}
@media (min-width: 768px) { .step { grid-template-columns: 90px 1fr 1.4fr; gap: 40px; align-items: start; } }
.step__n { font-family: var(--mono); color: var(--accent-deep); font-size: 15px; }
.step h3 { font-size: 1.5rem; font-weight: 500; }
.step p { color: var(--muted); font-size: 16.5px; line-height: 1.7; }

/* ───────────── CTA ───────────── */
.cta {
  background: var(--accent-deep);
  color: #fff;
  border-radius: 26px;
  padding: clamp(48px, 8vw, 96px) clamp(28px, 6vw, 80px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta h2 { font-size: clamp(2.2rem, 5.5vw, 4.4rem); font-weight: 400; line-height: 1.04; }
.cta h2 em { font-style: normal; color: var(--accent); }
.cta p { color: rgba(255,255,255,0.78); max-width: 50ch; margin: 22px auto 36px; font-size: 18px; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.3); }
.cta .btn--ghost:hover { background: #fff; color: var(--accent-deep); }

/* ───────────── FORM ───────────── */
.form-wrap { display: grid; gap: 48px; }
@media (min-width: 900px) { .form-wrap { grid-template-columns: 1fr 1.1fr; gap: 80px; } }
.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 {
  font: inherit; font-size: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-alt);
  color: var(--fg);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent-deep);
  box-shadow: 0 0 0 3px rgba(159,231,210,0.5);
}
.field textarea { resize: vertical; min-height: 130px; }
.form .btn { justify-self: start; margin-top: 6px; }
.contact-info { display: grid; gap: 28px; align-content: start; }
.contact-block h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin-bottom: 8px; }
.contact-block p { font-size: 17px; color: var(--fg-soft); line-height: 1.6; }
.contact-block a { color: var(--fg); border-bottom: 1px solid var(--border); }

/* ───────────── FAQ ───────────── */
.faq { display: grid; gap: 0; max-width: 880px; }
.faq details {
  border-top: 1px solid var(--border-soft);
  padding: 8px 0;
}
.faq details[open] summary { color: var(--fg); }
.faq summary {
  list-style: none; cursor: pointer;
  font-family: var(--serif); font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 400; color: var(--fg-soft);
  padding: 22px 40px 22px 0;
  position: relative;
  transition: color 0.25s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 22px;
  font-family: var(--mono); font-size: 24px; color: var(--accent-deep);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); font-size: 17px; line-height: 1.7; padding: 0 40px 26px 0; max-width: 70ch; }

/* ───────────── PAGE HEADER (interior pages) ───────────── */
.page-hero {
  padding: clamp(130px, 16vw, 200px) 0 clamp(50px, 7vw, 90px);
  border-bottom: 1px solid var(--border-soft);
}
.page-hero .eyebrow { color: var(--accent-deep); }
.page-hero h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 16ch;
}
.page-hero p { margin-top: 26px; max-width: 56ch; color: var(--muted); font-size: 19px; }

/* legal / prose */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 48px 0 16px; font-weight: 500; }
.prose h3 { font-size: 1.3rem; margin: 30px 0 10px; font-weight: 500; }
.prose p { color: var(--fg-soft); font-size: 17px; line-height: 1.8; margin-bottom: 16px; }
.prose ul { color: var(--fg-soft); font-size: 17px; line-height: 1.8; padding-left: 22px; margin-bottom: 16px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent-deep); border-bottom: 1px solid var(--border); }

/* ───────────── FOOTER ───────────── */
.footer { background: var(--accent-deep); color: #D6E7E1; padding: clamp(70px, 9vw, 120px) 0 40px; }
.footer__top { display: grid; gap: 48px; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,0.12); }
@media (min-width: 800px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer__brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 22px; color: #fff; font-weight: 500; margin-bottom: 18px; }
.footer__brand .brand__mark { border-color: var(--accent); border-right-color: rgba(255,255,255,0.4); border-bottom-color: rgba(255,255,255,0.4); }
.footer__tag { color: rgba(214,231,225,0.72); max-width: 38ch; font-size: 16px; }
.footer__col h5 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 400; margin: 0 0 18px; }
.footer__col a { display: block; color: rgba(214,231,225,0.85); padding: 6px 0; font-size: 15.5px; transition: color 0.2s var(--ease); }
.footer__col a:hover { color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: space-between; padding-top: 30px; color: rgba(214,231,225,0.6); font-size: 13.5px; }
.footer__bottom a { color: rgba(214,231,225,0.6); }
.footer__bottom a:hover { color: #fff; }

/* ───────────── 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, .brand__mark { 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(11,33,30,0.4); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.cookie-popup[data-open="true"] { opacity: 1; pointer-events: all; }
.cookie-popup__card { background: var(--bg); padding: 32px 34px; max-width: 460px; border-radius: 18px; box-shadow: 0 30px 70px -20px rgba(11,33,30,0.5); }
.cookie-popup__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 12px; }
.cookie-popup__card h3 { font-size: 1.4rem; margin-bottom: 12px; font-weight: 500; }
.cookie-popup__card p { font-size: 14.5px; color: var(--muted); line-height: 1.65; }
.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; font-size: 14px; transition: background 0.25s var(--ease), color 0.25s var(--ease); }
.cookie-popup__actions button:first-child:hover { background: var(--border-soft); }
.cookie-popup__actions button:last-child { background: var(--accent-deep); color: #fff; border-color: var(--accent-deep); }
.cookie-popup__actions button:last-child:hover { background: var(--fg); }

.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 9999; background: var(--fg); color: var(--bg); padding: 10px 18px; border-radius: 8px; }
