/* Story Matrix — editorial landing
   Palette: ivory / graphite / forest / sand
   Type: DM Serif Display + Inter */

:root {
  --bg: #F4F1EB;
  --bg-2: #EBE6DC;
  --surface: #FFFcf7;
  --ink: #1A1B1A;
  --muted: #6F726D;
  --green: #173B35;
  --green-2: #214E46;
  --sand: #C9B28A;
  --sand-2: #B89D6F;
  --line: rgba(26, 27, 26, 0.12);
  --line-2: rgba(26, 27, 26, 0.22);
  --cream-on-green: #EFE8DC;
  --white: #FFFFFF;
  --serif: "DM Serif Display", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", system-ui, sans-serif;
  --container: min(1220px, calc(100% - 48px));
  --narrow: min(720px, 100%);
  --header: 84px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@font-face {
  font-family: "DM Serif Display";
  src: url("/assets/fonts/DMSerifDisplay-Regular.woff2") format("woff2"),
       url("/assets/fonts/DMSerifDisplay-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
}

ul {
  list-style: none;
}

address {
  font-style: normal;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--green);
  color: var(--bg);
  padding: 8px 14px;
  z-index: 100;
  border-radius: 2px;
}

.skip:focus {
  top: 12px;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap {
  width: var(--container);
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--sand);
}

.section {
  padding: clamp(88px, 12vw, 148px) 0;
  position: relative;
}

.section h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 16ch;
}

.lede {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 1.4rem;
}

.lede + .lede {
  margin-top: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 22px;
  background: var(--green);
  color: var(--cream-on-green);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 2px;
  border: 1px solid var(--green);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
  background: #102924;
  border-color: #102924;
}

.btn:focus-visible,
.link:focus-visible,
.logo:focus-visible,
.nav a:focus-visible,
.menu-toggle:focus-visible {
  outline: 2px solid var(--sand);
  outline-offset: 3px;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: transparent;
  padding-left: 4px;
  padding-right: 4px;
}

.btn--ghost:hover {
  background: transparent;
  color: var(--green);
}

.btn--light {
  background: var(--cream-on-green);
  color: var(--green);
  border-color: var(--cream-on-green);
}

.btn--light:hover {
  background: var(--white);
  border-color: var(--white);
}

.btn .arrow {
  transition: transform 0.25s var(--ease);
}

.btn:hover .arrow {
  transform: translateX(3px);
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid transparent;
}

.link:hover {
  color: var(--green);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(244, 241, 235, 0.9);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.site-header .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: var(--container);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
}

.logo svg {
  width: 28px;
  height: 28px;
  color: var(--ink);
}

.logo-type {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1;
}

.logo-type span {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-left: 7px;
  position: relative;
  top: -1px;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  opacity: 0.78;
  transition: opacity 0.2s;
}

.nav a:hover {
  opacity: 1;
}

.header-cta {
  justify-self: end;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  justify-self: end;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

body.nav-open .menu-toggle span { background: transparent; }
body.nav-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
body.nav-open .menu-toggle span::after { top: 0; transform: rotate(-45deg); }

/* Hero */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--header) + 48px) 0 48px;
  display: flex;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(244,241,235,0) 70%, var(--bg) 100%),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 119px,
      rgba(26,27,26,0.045) 119px,
      rgba(26,27,26,0.045) 120px
    );
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
  width: var(--container);
  margin: 0 auto;
  position: relative;
  min-height: calc(100vh - var(--header) - 96px);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 6.4vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  margin: 22px 0 24px;
}

.hero h1 em {
  font-style: italic;
  color: var(--green);
}

.hero-copy {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.proof span {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.proof span + span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--sand);
}

/* Narrative field */
.field {
  position: relative;
  height: min(620px, 72vh);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,252,247,0.4), rgba(244,241,235,0.2)),
    var(--surface);
  overflow: hidden;
}

.field-caption {
  position: absolute;
  left: 20px;
  bottom: 18px;
  z-index: 3;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.field-phrase {
  position: absolute;
  right: 24px;
  top: 28px;
  z-index: 2;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.15;
  color: var(--ink);
  opacity: 0.18;
  max-width: 8ch;
  text-align: right;
  font-style: italic;
  pointer-events: none;
}

.field svg {
  width: 100%;
  height: 100%;
}

.field-node {
  fill: var(--ink);
}

.field-node.accent {
  fill: var(--sand);
}

.field-line {
  stroke: var(--ink);
  stroke-width: 0.6;
  opacity: 0.22;
}

.field-grid {
  stroke: var(--ink);
  stroke-width: 0.4;
  opacity: 0.08;
}

.field-label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  fill: var(--muted);
}

.pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse 4.8s ease-in-out infinite;
}

.pulse:nth-child(odd) { animation-delay: -1.4s; }

@keyframes pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.9; }
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  align-items: start;
}

.about-copy p {
  max-width: 40rem;
  color: var(--muted);
  margin-top: 1.35rem;
}

.stack {
  border-top: 1px solid var(--line);
}

.stack-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.stack-item::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 48px;
  bottom: -1px;
  width: 1px;
  background: var(--line);
}

.stack-item:last-child::after {
  display: none;
}

.stack-num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--sand-2);
  padding-top: 6px;
}

.stack-item h3 {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.stack-item p {
  color: var(--muted);
  margin-top: 6px;
  font-size: 0.95rem;
}

.marker {
  width: 19px;
  height: 19px;
  border: 1px solid var(--sand);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-top: 4px;
}

.marker i {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 3.6s ease-in-out infinite;
}

/* Audiences */
.audiences-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
  align-items: end;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.card {
  background: var(--surface);
  padding: 28px 26px 30px;
  min-height: 220px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s var(--ease);
}

.card:hover {
  background: #FFFaf2;
}

.card-num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--sand-2);
}

.card h3 {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 400;
  margin: 16px 0 10px;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 28ch;
}

.card-extra {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  color: var(--green);
  font-size: 0.88rem;
  margin-top: 10px;
  transition: max-height 0.4s var(--ease), opacity 0.4s var(--ease);
}

.card:hover .card-extra,
.card:focus-within .card-extra {
  max-height: 80px;
  opacity: 1;
}

.card-pattern {
  position: absolute;
  right: 16px;
  top: 18px;
  width: 54px;
  height: 54px;
  opacity: 0.45;
}

/* Expertise accordion */
.expertise-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.acc {
  border-top: 1px solid var(--line-2);
}

.acc-item {
  border-bottom: 1px solid var(--line);
}

.acc-item summary {
  list-style: none;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: baseline;
  padding: 26px 8px;
  cursor: pointer;
}

.acc-item summary::-webkit-details-marker { display: none; }

.acc-item summary .n {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--sand-2);
}

.acc-item summary h3 {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.acc-item summary .hint {
  color: var(--muted);
  font-size: 13px;
  justify-self: end;
}

.acc-body {
  display: grid;
  grid-template-columns: 72px 1fr 0.8fr;
  gap: 20px;
  padding: 0 8px 36px;
}

.acc-body p {
  max-width: 46ch;
  color: var(--muted);
}

.tasks {
  font-size: 14px;
  color: var(--ink);
}

.tasks li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
}

.tasks li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 8px;
  background: var(--sand);
  flex: none;
}

.acc-item[open] {
  background: linear-gradient(180deg, rgba(23,59,53,0.035), transparent 70%);
}

.acc-item[open] summary h3 {
  color: var(--green);
}

.acc-cta {
  margin-top: 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--green);
  display: inline-flex;
  gap: 8px;
}

/* Method */
.method-line {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 64px;
  position: relative;
}

.method-line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 17px;
  height: 1px;
  background: linear-gradient(90deg, var(--sand), var(--green));
}

.step {
  padding: 0 18px 0 0;
  position: relative;
}

.step-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--green);
  position: relative;
  z-index: 1;
  margin-bottom: 22px;
}

.step[open] .step-dot,
.step:hover .step-dot {
  background: var(--sand);
  border-color: var(--sand);
}

.step summary {
  list-style: none;
  cursor: pointer;
}

.step summary::-webkit-details-marker { display: none; }

.step .n {
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--sand-2);
}

.step h3 {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 400;
  margin: 8px 0 10px;
}

.step p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 28ch;
}

/* Data */
.data {
  background: var(--green);
  color: var(--cream-on-green);
}

.data h2 {
  color: var(--cream-on-green);
  max-width: 14ch;
}

.data .lede {
  color: rgba(239, 232, 220, 0.72);
}

.data-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.metrics {
  display: grid;
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid rgba(239,232,220,0.16);
}

.metric {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid rgba(239,232,220,0.16);
}

.metric b {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--sand);
}

.metric span {
  color: rgba(239,232,220,0.72);
  font-size: 0.95rem;
}

.signal {
  height: 280px;
  border: 1px solid rgba(239,232,220,0.16);
  position: relative;
  overflow: hidden;
}

.signal svg {
  width: 100%;
  height: 100%;
}

.signal figcaption {
  position: absolute;
  left: 18px;
  bottom: 14px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(239,232,220,0.55);
}

/* Geography */
.geo-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.regions {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.region {
  background: var(--surface);
  padding: 26px 28px;
  text-align: left;
  width: 100%;
  transition: background 0.3s var(--ease);
}

.region:hover,
.region.is-active {
  background: #F7F3EA;
}

.region .n {
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--sand-2);
}

.region h3 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  margin: 8px 0 8px;
}

.region p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 40ch;
}

.geo-visual {
  min-height: 420px;
  border: 1px solid var(--line);
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.geo-visual svg {
  width: 100%;
  height: 100%;
  min-height: 420px;
}

/* Clients */
.clients-head {
  max-width: 40rem;
  margin-bottom: 56px;
}

.pull {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-style: italic;
  margin-top: 22px;
  color: var(--green);
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.client {
  background: var(--bg);
  padding: 28px 22px 32px;
  min-height: 260px;
}

.client h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.client li {
  color: var(--muted);
  font-size: 0.92rem;
  padding: 6px 0;
}

/* Quote */
.quote {
  background: var(--ink);
  color: var(--cream-on-green);
}

.quote blockquote {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 18ch;
  font-weight: 400;
}

.quote footer {
  margin-top: 36px;
  display: flex;
  gap: 18px;
  align-items: center;
}

.portrait {
  width: 56px;
  height: 72px;
  background:
    linear-gradient(160deg, #2a2c2a, #111),
    repeating-linear-gradient(90deg, transparent 0 6px, rgba(201,178,138,0.12) 6px 7px);
  border: 1px solid rgba(239,232,220,0.16);
  flex: none;
}

.quote cite {
  font-style: normal;
  display: block;
}

.quote cite b {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  display: block;
}

.quote cite span {
  color: rgba(239,232,220,0.62);
  font-size: 13px;
  display: block;
  margin-top: 4px;
  max-width: 36ch;
}

/* Contact */
.contact {
  background: var(--green);
  color: var(--cream-on-green);
}

.contact h2 {
  color: var(--cream-on-green);
  max-width: 16ch;
}

.contact .lede {
  color: rgba(239,232,220,0.72);
}

.mail {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  margin-top: 40px;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4.5vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--sand);
}

.mail .arrow {
  font-family: var(--sans);
  font-size: 1.2rem;
  transition: transform 0.25s var(--ease);
}

.mail:hover .arrow {
  transform: translateX(6px);
}

.contact-note {
  margin-top: 28px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(239,232,220,0.55);
}

.contact-actions {
  margin-top: 36px;
}

/* Footer */
.site-footer {
  background: var(--green);
  color: rgba(239,232,220,0.7);
  border-top: 1px solid rgba(239,232,220,0.12);
  padding: 36px 0 44px;
  font-size: 13px;
}

.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.site-footer .logo-type,
.site-footer .logo {
  color: var(--cream-on-green);
}

.foot-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer a:hover {
  color: var(--cream-on-green);
}

.copy {
  margin-top: 10px;
  font-size: 12px;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) forwards;
}

.reveal-d1 { animation-delay: 0.08s; }
.reveal-d2 { animation-delay: 0.18s; }
.reveal-d3 { animation-delay: 0.3s; }
.reveal-d4 { animation-delay: 0.42s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

.inview {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.inview.is-in {
  opacity: 1;
  transform: none;
}

/* Mobile nav overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 40;
  display: none;
  padding: calc(var(--header) + 24px) 24px 40px;
}

body.nav-open .nav-overlay {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nav-overlay a {
  font-family: var(--serif);
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 1.2;
}

.nav-overlay .btn {
  width: 100%;
}

/* Legal page */
.legal {
  padding: calc(var(--header) + 64px) 0 96px;
}

.legal h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 24px;
}

.legal p,
.legal li {
  max-width: 68ch;
  color: var(--muted);
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 1100px) {
  .client-grid { grid-template-columns: repeat(3, 1fr); }
  .client:nth-child(4),
  .client:nth-child(5) { min-height: 220px; }
}

@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .audiences-head,
  .expertise-head,
  .data-grid,
  .geo-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .nav { display: none; }
  .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header .wrap { grid-template-columns: 1fr auto; }

  .hero { min-height: auto; padding-bottom: 32px; }
  .hero-grid { min-height: 0; }
  .hero h1 { font-size: clamp(2.6rem, 11vw, 4.2rem); }
  .field { height: 360px; }

  .acc-item summary,
  .acc-body {
    grid-template-columns: 48px 1fr;
  }
  .acc-item summary .hint { display: none; }
  .acc-body { padding-left: 0; }
  .acc-body > :first-child { display: none; }

  .method-line {
    grid-template-columns: 1fr;
    margin-top: 36px;
  }
  .method-line::before {
    left: 5px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 1px;
    height: auto;
  }
  .step {
    padding: 0 0 28px 28px;
  }
  .step-dot {
    position: absolute;
    left: 0;
    top: 6px;
  }

  .client-grid { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --container: min(1220px, calc(100% - 32px)); }
  .cards {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0;
    -webkit-overflow-scrolling: touch;
  }
  .card {
    min-width: 78vw;
    scroll-snap-align: start;
    min-height: 240px;
  }
  .card-extra { max-height: 80px; opacity: 1; }
  .client-grid { grid-template-columns: 1fr; }
  .metric { grid-template-columns: 1fr; gap: 8px; }
  .hero-actions .btn { width: 100%; }
  .proof { gap: 8px 0; }
  .proof span { width: 100%; }
  .proof span + span::before { display: none; }
  .mail { font-size: 1.55rem; word-break: break-all; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .inview, .pulse, .marker i {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
