/* palette: bg=#F5F2E9 fg=#0B0B0B accent=#221CE0 */
/* fonts: display="Archivo" body="Inter" mono="IBM Plex Mono" */

:root {
  --bg: #F5F2E9;
  --bg-alt: #0B0B0B;
  --fg: #0B0B0B;
  --fg-soft: #2A2A28;
  --muted: #6E6B62;
  --accent: #221CE0;
  --accent-deep: #1610A8;
  --on-dark: #F5F2E9;
  --on-dark-muted: #8C8A84;
  --border: rgba(11, 11, 11, 0.14);
  --border-dark: rgba(245, 242, 233, 0.16);
  --serif: 'Archivo', ui-sans-serif, system-ui, sans-serif;
  --sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', 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;
  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; }
::selection { background: var(--accent); color: #fff; }

/* ---------- Layout primitives ---------- */
.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(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow--plain::before { display: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; margin: 0; }

.h2 {
  font-size: clamp(2.3rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.55;
  color: var(--fg-soft);
  max-width: 60ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), opacity .35s var(--ease);
}
.btn--solid { background: var(--fg); color: var(--bg); }
.btn--solid:hover { background: var(--accent); transform: translateY(-2px); }
.btn--ghost { background: rgba(11,11,11,0.06); color: var(--fg); }
.btn--ghost:hover { background: rgba(11,11,11,0.12); transform: translateY(-2px); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn--on-dark { background: var(--on-dark); color: var(--fg); }
.btn--on-dark:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

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

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 242, 233, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  transition: box-shadow .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header[data-scrolled="true"] {
  box-shadow: 0 1px 0 rgba(11,11,11,0.06);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand span { color: var(--accent); }
.nav-center {
  display: none;
  gap: 34px;
}
.nav-center a {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-soft);
  transition: color .25s var(--ease);
}
.nav-center a:hover, .nav-center a[aria-current="page"] { color: var(--fg); }
.header__cta { display: none; gap: 10px; }
@media (min-width: 940px) {
  .nav-center { display: flex; }
  .header__cta { display: inline-flex; }
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  align-items: flex-end;
}
.menu-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--fg);
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.menu-toggle span:nth-child(2) { width: 20px; }
.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) { width: 26px; transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 940px) { .menu-toggle { display: none; } }

.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 .35s var(--ease), transform .35s var(--ease);
  display: flex;
  flex-direction: column;
}
.mobile-menu[data-open="true"] { opacity: 1; transform: none; pointer-events: all; }
.mobile-menu a {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -0.03em;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-menu .btn { margin-top: 28px; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(40px, 8vw, 80px);
  padding-bottom: clamp(40px, 6vw, 64px);
  position: relative;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(11,11,11,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11,11,11,0.045) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(circle at 30% 30%, #000, transparent 78%);
  mask-image: radial-gradient(circle at 30% 30%, #000, transparent 78%);
  pointer-events: none;
}
.hero__inner { position: relative; }
.hero h1 {
  font-size: clamp(2.9rem, 9vw, 7.4rem);
  line-height: 0.97;
  letter-spacing: -0.045em;
  font-weight: 800;
  max-width: 16ch;
  margin: 0 0 clamp(40px, 8vw, 96px);
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__foot {
  display: grid;
  gap: 28px;
}
.hero__claim {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.28;
  letter-spacing: -0.02em;
  max-width: 32ch;
}
.hero__claim b { color: var(--accent); font-weight: 700; }
@media (min-width: 768px) {
  .hero__foot { grid-template-columns: 1fr auto; align-items: end; }
}
.hero-rule { height: 1px; background: var(--fg); margin-top: clamp(40px, 6vw, 64px); }

/* ---------- Stats band ---------- */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (min-width: 920px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: var(--bg-alt);
  color: var(--on-dark);
  padding: 28px 24px 30px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.stat__num {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.stat__label {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--on-dark-muted);
  margin-top: 18px;
}

/* ---------- Manifesto / dark testimonial band ---------- */
.band-dark {
  background: var(--bg-alt);
  color: var(--on-dark);
  position: relative;
}
.band-dark .eyebrow { color: var(--on-dark-muted); }
.band-dark::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(245,242,233,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(245,242,233,0.05) 1px, transparent 1px);
  background-size: 90px 90px;
  pointer-events: none;
}
.band-dark .container { position: relative; }

.manifesto p {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 3.6rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  max-width: 22ch;
  margin: 0;
}
.manifesto p em { font-style: normal; color: var(--accent); }

.quote {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.6vw, 2.6rem);
  line-height: 1.28;
  letter-spacing: -0.02em;
  max-width: 26ch;
  margin: 0 0 48px;
}
.quote .mark { color: var(--accent); }
.quote-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.avatar {
  width: 56px; height: 56px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: #fff;
  flex-shrink: 0;
}
.quote-meta__name { font-weight: 600; font-size: 16px; }
.quote-meta__role { font-size: 13px; color: var(--on-dark-muted); }

.client-tabs {
  display: flex;
  gap: 28px;
  margin-top: 48px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  flex-wrap: wrap;
}
.client-tabs span { color: var(--on-dark-muted); }
.client-tabs span:first-child { color: var(--on-dark); }

.bigword {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(4rem, 18vw, 13rem);
  line-height: 0.82;
  letter-spacing: -0.05em;
  color: var(--bg);
  margin: clamp(40px, 7vw, 80px) 0 0;
  -webkit-text-stroke: 0;
}

/* ---------- Section header ---------- */
.sec-head {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
@media (min-width: 860px) {
  .sec-head { grid-template-columns: 1.2fr 1fr; align-items: end; }
  .sec-head .sec-head__aside { justify-self: end; text-align: left; max-width: 38ch; }
}
.sec-head p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }

/* ---------- Services grid ---------- */
.svc-grid {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
@media (min-width: 720px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
.svc {
  background: var(--bg);
  padding: 40px 34px 44px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: background .4s var(--ease);
}
.svc:hover { background: #EFEBDF; }
.svc__no {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.svc h3 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 800;
}
.svc p { margin: 0; color: var(--fg-soft); font-size: 15.5px; line-height: 1.66; }
.svc ul {
  list-style: none;
  padding: 0; margin: 6px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.svc ul li {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: 9999px;
}

/* ---------- Case / work cards ---------- */
.work-grid {
  display: grid;
  gap: 28px;
}
@media (min-width: 760px) { .work-grid { grid-template-columns: 1fr 1fr; } }
.work {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.work__media {
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 16 / 11;
  background: #ddd9cd;
}
.work__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.work:hover .work__media img { transform: scale(1.05); }
.work__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.work h3 { font-size: 1.35rem; letter-spacing: -0.02em; font-weight: 800; }
.work__tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.work p { margin: 0; color: var(--fg-soft); font-size: 15px; line-height: 1.6; }

/* ---------- Process / steps ---------- */
.steps {
  display: grid;
  gap: 1px;
  background: var(--border-dark);
  border-top: 1px solid var(--border-dark);
}
.step {
  display: grid;
  gap: 12px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border-dark);
}
@media (min-width: 760px) {
  .step { grid-template-columns: 120px 1fr 1.4fr; align-items: start; gap: 32px; }
}
.step__no { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: 0.08em; }
.step h3 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); letter-spacing: -0.02em; font-weight: 700; }
.step p { margin: 0; color: var(--on-dark-muted); font-size: 15.5px; line-height: 1.66; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--border); }
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  margin: 0 0 24px;
  max-width: 64ch;
  color: var(--fg-soft);
  font-size: 16px;
  line-height: 1.72;
}

/* ---------- CTA band ---------- */
.cta {
  text-align: left;
}
.cta h2 {
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 800;
  max-width: 18ch;
  margin: 0 0 36px;
}
.cta h2 em { font-style: normal; color: var(--accent); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Forms / contact ---------- */
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.field { display: grid; gap: 8px; margin-bottom: 22px; }
.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;
  color: var(--fg);
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--border);
  padding: 12px 0;
  transition: border-color .3s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #b6b1a3; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 130px; }

.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; }
.info-list dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.info-list dd { margin: 0; font-size: 17px; line-height: 1.5; }
.info-list a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-alt);
  color: var(--on-dark);
  padding: clamp(64px, 9vw, 110px) 0 40px;
  position: relative;
}
.footer__top {
  display: grid;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border-dark);
}
@media (min-width: 820px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer__brand .brand { color: var(--on-dark); font-size: 26px; }
.footer__brand p { color: var(--on-dark-muted); max-width: 34ch; margin: 20px 0 0; font-size: 15px; line-height: 1.6; }
.footer__col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin: 0 0 18px;
  font-weight: 400;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer__col a { font-size: 15px; color: var(--on-dark); transition: color .25s var(--ease); }
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-size: 12.5px;
  color: var(--on-dark-muted);
}
.footer__bottom a:hover { color: var(--on-dark); }

/* ---------- Legal pages ---------- */
.legal { padding: clamp(60px, 9vw, 120px) 0; }
.legal__inner { max-width: 760px; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -0.03em; line-height: 1.02; margin-bottom: 24px; font-weight: 800; }
.legal .updated { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.06em; margin-bottom: 48px; }
.legal h2 { font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -0.02em; margin: 48px 0 16px; font-weight: 700; }
.legal h3 { font-size: 1.15rem; margin: 28px 0 10px; font-weight: 700; }
.legal p, .legal li { font-size: 16px; line-height: 1.74; color: var(--fg-soft); }
.legal ul { padding-left: 20px; margin: 12px 0; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Thanks ---------- */
.thanks {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  text-align: center;
}
.thanks__inner { max-width: 620px; padding: 60px 0; }
.thanks h1 { font-size: clamp(2.6rem, 8vw, 5.4rem); letter-spacing: -0.04em; line-height: 1; margin-bottom: 24px; font-weight: 800; }
.thanks h1 em { font-style: normal; color: var(--accent); }
.thanks p { color: var(--fg-soft); font-size: 18px; margin-bottom: 36px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[style*="--i"] { transition-delay: calc(var(--i) * 80ms); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------- 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.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: 460px;
  border-radius: 6px;
  box-shadow: 0 24px 60px -16px rgba(0,0,0,0.4);
}
.cookie-popup__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.cookie-popup__card h3 { font-size: 1.3rem; letter-spacing: -0.02em; margin-bottom: 12px; font-weight: 800; }
.cookie-popup__card p { font-size: 14px; line-height: 1.6; color: var(--fg-soft); margin: 0; }
.cookie-popup__card p a { color: var(--accent); text-decoration: underline; }
.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;
  font-weight: 600;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.cookie-popup__actions button:first-child:hover { background: rgba(11,11,11,0.06); }
.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); }
