/* palette: bg=#ECEBE6 fg=#0F0F0E accent=#E23B2E */
/* fonts: display="Archivo" body="Inter" mono="Space Mono" */

:root {
  --bg: #ECEBE6;
  --bg-alt: #E2E0D9;
  --fg: #0F0F0E;
  --fg-soft: #26251F;
  --muted: #6E6C64;
  --accent: #E23B2E;
  --accent-deep: #B02418;
  --ink: #0B0B0A;
  --border: rgba(15, 15, 14, 0.14);
  --serif: 'Archivo', ui-sans-serif, system-ui, 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);
  --container: 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;
  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; }
::selection { background: var(--accent); color: #fff; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--container); 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, 100px) 0; }

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), opacity 0.4s var(--ease);
}
.btn:hover { transform: translateY(-2px); background: var(--accent); }
.btn .arr { transition: transform 0.4s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.btn--ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}
.btn--ghost:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  transition: gap 0.35s var(--ease), color 0.35s var(--ease);
}
.link-arrow:hover { gap: 14px; color: var(--accent); }

/* ---------- header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(236, 235, 230, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.header[data-scrolled="true"] {
  box-shadow: 0 8px 30px -18px rgba(0,0,0,0.4);
  border-color: var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.brand__mark {
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent);
  border-radius: 6px;
  color: #fff;
}
.brand__mark svg { width: 15px; height: 15px; }

.nav { display: none; }
@media (min-width: 1024px) {
  .nav { display: flex; align-items: center; gap: 30px; }
  .nav a {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fg-soft);
    transition: color 0.3s var(--ease);
  }
  .nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
}
.header__cta { display: none; }
@media (min-width: 1024px) { .header__cta { display: inline-flex; } }

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
}
@media (min-width: 1024px) { .menu-toggle { display: none; } }
.menu-toggle span {
  width: 18px; height: 1.5px;
  background: var(--fg);
  display: block;
  transition: transform 0.35s var(--ease), opacity 0.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); }

.mobile-menu {
  position: fixed;
  inset: 72px 0 0;
  z-index: 99;
  background: var(--bg);
  padding: 40px 24px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.mobile-menu[data-open="true"] { opacity: 1; transform: none; pointer-events: all; }
.mobile-menu a {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2rem, 9vw, 3rem);
  letter-spacing: -0.02em;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu .btn { margin-top: 28px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(40px, 6vw, 72px);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  gap: 36px;
  align-items: end;
  width: 100%;
}
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1.45fr 0.9fr; gap: 48px; }
}
.hero__eyebrow { margin-top: clamp(90px, 14vw, 130px); }
.hero h1 {
  font-family: var(--serif);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(3.2rem, 12vw, 9rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--ink);
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero__aside { display: flex; flex-direction: column; gap: 24px; }
.hero__lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg-soft);
  max-width: 38ch;
  margin: 0;
}
.hero__media {
  position: relative;
  aspect-ratio: 4 / 3.4;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: heroZoom 9s var(--ease) forwards;
}
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(226,59,46,0.32), rgba(11,11,10,0.18));
  mix-blend-mode: multiply;
}
@keyframes heroZoom {
  from { transform: scale(1.1); }
  to { transform: scale(1); }
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- intro / manifesto band ---------- */
.intro__grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .intro__grid { grid-template-columns: 0.5fr 1fr; gap: 60px; } }
.intro__statement {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.65rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0;
}
.intro__statement strong { color: var(--accent); font-weight: 600; }
.intro__col p { color: var(--fg-soft); margin: 0 0 18px; font-size: 17px; }
.intro__col p:last-child { margin-bottom: 0; }

/* ---------- services ---------- */
.services__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: clamp(48px, 7vw, 80px);
}
.services__head h2 { margin: 0; }
.h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
}
.services__grid {
  display: grid;
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 768px) { .services__grid { grid-template-columns: repeat(3, 1fr); } }
.service {
  background: var(--bg);
  padding: clamp(32px, 4vw, 48px) clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  min-height: 360px;
  transition: background 0.4s var(--ease);
}
.service:hover { background: var(--bg-alt); }
.service__num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.service h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 28px 0 16px;
}
.service p { color: var(--fg-soft); font-size: 15.5px; margin: 0 0 28px; flex: 1; }

/* ---------- work / cases ---------- */
.work__grid { display: grid; gap: clamp(36px, 5vw, 64px); }
@media (min-width: 768px) { .work__grid { grid-template-columns: repeat(2, 1fr); } }
.case { display: block; }
.case__media {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
  margin-bottom: 22px;
}
.case__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.case:hover .case__media img { transform: scale(1.05); }
.case__tag {
  position: absolute;
  top: 16px; left: 16px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(236,235,230,0.92);
  color: var(--fg);
  padding: 6px 12px;
  border-radius: 999px;
}
.case__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.case h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 10px;
}
.case p { color: var(--muted); font-size: 15px; margin: 0; }
.case__meta { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ---------- featured deep dive ---------- */
.feature { background: var(--bg-alt); }
.feature__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .feature__grid { grid-template-columns: 1.05fr 1fr; gap: 64px; } }
.feature__media { border-radius: 12px; overflow: hidden; aspect-ratio: 5/4; background:#111; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature h2 { margin: 22px 0 20px; }
.feature__lead { font-size: 18px; color: var(--fg-soft); margin: 0 0 28px; }
.feature__stats { display: flex; flex-wrap: wrap; gap: 36px; margin: 28px 0 32px; }
.stat__num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent);
}
.stat__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

/* ---------- dark manifesto band ---------- */
.band--dark { background: var(--ink); color: var(--bg); }
.band--dark .eyebrow { color: rgba(236,235,230,0.6); }
.manifesto__quote {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 5vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  max-width: 22ch;
  margin: 0 0 36px;
  text-align: center;
}
.manifesto { display: flex; flex-direction: column; align-items: center; text-align: center; }
.manifesto__quote em { font-style: normal; color: var(--accent); }
.manifesto__mark {
  font-family: var(--serif);
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.4;
  color: var(--accent);
  margin-bottom: 18px;
}
.manifesto cite { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(236,235,230,0.6); font-style: normal; }

/* ---------- stats strip ---------- */
.metrics { display: grid; gap: 1px; background: var(--border); border-block: 1px solid var(--border); }
@media (min-width: 640px) { .metrics { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .metrics { grid-template-columns: repeat(4, 1fr); } }
.metric { background: var(--bg); padding: clamp(32px, 4vw, 48px) 28px; }
.metric .stat__num { font-size: clamp(2.6rem, 5vw, 3.6rem); color: var(--fg); }
.metric .stat__num span { color: var(--accent); }

/* ---------- process / list ---------- */
.steps { display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  padding: clamp(28px, 4vw, 44px) 0;
  border-top: 1px solid var(--border);
}
@media (min-width: 768px) { .step { grid-template-columns: 120px 1fr 1.4fr; gap: 40px; } }
.step:last-child { border-bottom: 1px solid var(--border); }
.step__num { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.step h3 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.3rem, 2.2vw, 1.7rem); letter-spacing: -0.02em; margin: 0; }
.step p { color: var(--fg-soft); margin: 0; font-size: 16px; }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  text-align: left;
  padding: clamp(24px, 3vw, 34px) 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  letter-spacing: -0.015em;
}
.faq__q .pm { font-family: var(--mono); color: var(--accent); transition: transform 0.4s var(--ease); flex: none; }
.faq__item[data-open="true"] .pm { 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: 320px; }
.faq__a p { color: var(--fg-soft); margin: 0 0 28px; font-size: 16.5px; max-width: 70ch; }

/* ---------- CTA ---------- */
.cta { background: var(--accent); color: #fff; }
.cta .eyebrow { color: rgba(255,255,255,0.75); }
.cta .eyebrow::before { background: #fff; }
.cta h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  margin: 0 0 36px;
  text-transform: uppercase;
}
.cta .btn { background: #fff; color: var(--accent); }
.cta .btn:hover { background: var(--ink); color: #fff; }
.cta__row { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- contact form ---------- */
.form-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .form-grid { grid-template-columns: 1fr 1.1fr; gap: 72px; } }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  font: inherit;
  font-size: 16px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  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; }
.contact-detail { margin-bottom: 30px; }
.contact-detail .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.contact-detail .v { font-size: 18px; color: var(--fg); }
.contact-detail a:hover { color: var(--accent); }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: clamp(120px, 16vw, 200px) 0 clamp(48px, 6vw, 80px); }
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(3rem, 11vw, 8rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--ink);
}
.page-hero h1 em { font-style: normal; color: var(--accent); }
.page-hero__lead { font-size: clamp(1.05rem, 1.8vw, 1.35rem); color: var(--fg-soft); max-width: 60ch; margin: 28px 0 0; }

/* ---------- legal ---------- */
.legal { padding: clamp(120px, 14vw, 180px) 0 clamp(64px, 8vw, 120px); }
.legal h1 { font-family: var(--serif); font-weight: 800; font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -0.03em; margin: 0 0 12px; }
.legal__updated { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 48px; }
.legal__body { max-width: 760px; }
.legal__body h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -0.02em; margin: 48px 0 16px; }
.legal__body p, .legal__body li { color: var(--fg-soft); font-size: 16.5px; }
.legal__body ul { padding-left: 20px; }
.legal__body li { margin-bottom: 8px; }
.legal__body a { color: var(--accent); text-decoration: underline; }

/* ---------- thanks ---------- */
.thanks { min-height: 86vh; display: flex; align-items: center; text-align: center; }
.thanks h1 { font-family: var(--serif); font-weight: 800; text-transform: uppercase; font-size: clamp(3rem, 9vw, 6.5rem); letter-spacing: -0.03em; margin: 0 0 24px; line-height: 0.95; }
.thanks h1 em { font-style: normal; color: var(--accent); }
.thanks p { font-size: 19px; color: var(--fg-soft); max-width: 52ch; margin: 0 auto 36px; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--bg); padding: clamp(64px, 9vw, 110px) 0 40px; }
.footer__top { display: grid; gap: 48px; margin-bottom: 64px; }
@media (min-width: 768px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer__brand .brand { color: var(--bg); margin-bottom: 22px; }
.footer__brand p { color: rgba(236,235,230,0.6); max-width: 42ch; font-size: 15.5px; }
.footer__col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(236,235,230,0.5); margin: 0 0 20px; font-weight: 400; }
.footer__col a { display: block; padding: 7px 0; color: rgba(236,235,230,0.85); font-size: 15px; transition: color 0.3s var(--ease); }
.footer__col a:hover { color: var(--accent); }
.footer__big {
  font-family: var(--serif);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 13vw, 11rem);
  line-height: 0.86;
  letter-spacing: -0.04em;
  color: var(--bg);
  border-top: 1px solid rgba(236,235,230,0.16);
  padding-top: 36px;
  margin: 0 0 36px;
}
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; color: rgba(236,235,230,0.5); }
.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__media img { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 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 24px 60px -20px rgba(0,0,0,0.5); }
.cookie-popup__label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.cookie-popup__card h3 { font-family: var(--serif); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.02em; margin: 0 0 12px; }
.cookie-popup__card p { font-size: 14px; color: var(--fg-soft); line-height: 1.65; margin: 0; }
.cookie-popup__card p a { color: var(--accent); text-decoration: underline; }
.cookie-popup__actions { display: flex; gap: 12px; margin-top: 20px; }
.cookie-popup__actions button { padding: 12px 26px; border: 1px solid var(--border); cursor: pointer; font-size: 14px; font-weight: 600; border-radius: 999px; 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(--ink); color: var(--bg); border-color: var(--ink); }
.cookie-popup__actions button:last-child:hover { background: var(--accent); border-color: var(--accent); }
