/* =========================================================================
   Research Wise Africa
   1. Tokens          6. Approach
   2. Reset & base    7. Methods / stats
   3. Layout          8. Testimonials
   4. Components      9. Work / contact / cta
   5. Header & hero  10. Footer, utilities, motion
   ========================================================================= */

/* 1 ── tokens ─────────────────────────────────────────────────────────── */
:root {
  /* colour */
  --ink: #0d1f25;
  --ink-2: #16323a;
  --ink-3: #1d4550;
  --muted: #5c7178;
  --paper: #fcfbf9;
  --sand: #f4f1eb;
  --sand-2: #eae5db;
  --line: #e4dfd5;
  --teal: #0e7c8c;
  --teal-deep: #0a6b79;
  --teal-bright: #50c8dc;
  --teal-wash: #e7f5f7;
  --clay: #c0714b;
  --clay-ink: #8f4a28;

  /* type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* space & shape */
  --shell: 78rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8.5rem);
  --radius: 1.25rem;
  --radius-lg: 1.75rem;
  --shadow-sm: 0 1px 2px rgb(13 31 37 / 5%), 0 4px 14px -6px rgb(13 31 37 / 8%);
  --shadow-md: 0 2px 4px rgb(13 31 37 / 4%), 0 18px 40px -18px rgb(13 31 37 / 18%);

  /* motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2 ── reset & base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* a whisper of paper grain — keeps large flat areas from feeling sterile */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

p { text-wrap: pretty; }
a { color: var(--teal-deep); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2.5px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--teal-bright); color: var(--ink); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.ico--flip { transform: rotate(180deg); }

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.9rem;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus-visible { transform: none; color: var(--paper); }

/* 3 ── layout ─────────────────────────────────────────────────────────── */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--sand { background: var(--sand); }
.section--ink { background: var(--ink); color: #e7ecec; }
.section--ink h2, .section--ink h3 { color: var(--paper); }

.section__head { max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.15rem); }
.section__intro { margin-top: 1.1rem; color: var(--muted); }
.section__head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
  color: var(--teal-deep);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 2px;
  border-radius: 2px;
  background: var(--teal-bright);
}
.section--ink .eyebrow { color: var(--teal-bright); }

/* 4 ── components ─────────────────────────────────────────────────────── */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: 0 12px 24px -14px rgb(13 31 37 / 45%); }
.btn .ico { transition: transform 0.25s var(--ease-out); }
.btn:hover .ico { transform: translateX(3px); }

.btn--primary { --btn-bg: var(--teal-deep); }
.btn--primary:hover { --btn-bg: var(--ink); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { --btn-bg: var(--paper); border-color: var(--ink); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: var(--paper); border-color: rgb(255 255 255 / 35%); }
.btn--outline-light:hover { --btn-bg: rgb(255 255 255 / 12%); border-color: rgb(255 255 255 / 60%); }
.btn--whatsapp { --btn-bg: #128c7e; }
.btn--whatsapp:hover { --btn-bg: #0c6f64; }
.btn--sm { padding: 0.7rem 1.15rem; font-size: 0.9rem; }
.btn--block { width: 100%; justify-content: center; }
.btn__play {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--teal-wash);
  color: var(--teal-deep);
}
.btn__play .ico { width: 0.85rem; height: 0.85rem; margin-left: 0.1rem; }

.tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.1rem; }
.tags li {
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

.round-btn {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease-out);
}
.round-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); transform: translateY(-2px); }
.section--ink .round-btn { border-color: rgb(255 255 255 / 22%); color: var(--paper); }
.section--ink .round-btn:hover { background: var(--teal-bright); border-color: var(--teal-bright); color: var(--ink); }

/* 5 ── header & hero ──────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
/* the blur lives on a pseudo-element on purpose: backdrop-filter on the header
   itself would make it a containing block for the fixed mobile drawer */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(252 251 249 / 82%);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  transition: background-color 0.3s;
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.site-header.is-stuck::before { background: rgb(252 251 249 / 94%); }
body.nav-open .site-header::before { background: #fff; }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h, 5rem);
  transition: min-height 0.3s var(--ease);
}
.site-header.is-stuck .site-header__inner { --header-h: 4.25rem; }

.brand { display: inline-flex; border-radius: 8px; }
.brand img { width: auto; height: 2.4rem; transition: height 0.3s var(--ease); }
.site-header.is-stuck .brand img { height: 2.1rem; }

.nav__brand { display: none; } /* drawer-only logo, shown in the mobile sheet */

.nav { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3rem); }
.nav__list { display: flex; align-items: center; gap: clamp(1.25rem, 2.4vw, 2.4rem); }
.nav__list a {
  position: relative;
  color: var(--ink-2);
  font-size: 0.95rem;
  text-decoration: none;
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav__list a:hover { color: var(--teal-deep); }
.nav__list a:hover::after, .nav__list a[aria-current="true"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 2.9rem;
  height: 2.9rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  place-items: center;
  gap: 0;
}
.nav-toggle span {
  display: block;
  width: 1.05rem;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle span + span { margin-top: 0.32rem; }

.hero { position: relative; padding-top: clamp(2.5rem, 6vw, 5rem); }
.hero__inner {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}
.hero__copy h1 {
  font-size: clamp(2.7rem, 1.35rem + 5.2vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.028em;
  font-weight: 500;
  max-width: 18ch;
}
.hero__copy h1 em { font-style: normal; color: var(--teal); }
.lede { max-width: 34rem; margin-top: 1.5rem; color: var(--muted); font-size: clamp(1.02rem, 0.98rem + 0.2vw, 1.15rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.25rem; }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.5rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero__trust li { position: relative; }
.hero__trust li + li::before {
  content: "";
  position: absolute;
  left: -0.85rem;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--teal-bright);
  transform: translateY(-50%);
}

.hero__media { position: relative; }
.hero__frame {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--sand-2);
  box-shadow: var(--shadow-md);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }

.hero__card {
  position: absolute;
  left: clamp(-1rem, -1.4vw, -2.5rem);
  bottom: clamp(-1.5rem, -2vw, -2.75rem);
  max-width: 15rem;
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-md);
}
.hero__card-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--teal-bright);
}
.hero__card figcaption { margin-top: 0.5rem; font-size: 0.85rem; line-height: 1.45; color: rgb(231 236 236 / 78%); }

.hero__badge {
  position: absolute;
  top: clamp(-1.25rem, -1.6vw, -2.25rem);
  right: clamp(-0.5rem, -1vw, -1.5rem);
  display: grid;
  gap: 0.1rem;
  padding: 0.9rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--muted);
  text-align: right;
}
.hero__badge-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1;
  color: var(--teal-deep);
}

.hero__marquee {
  padding-block: 1.1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.hero__marquee-track {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  width: max-content;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: marquee 46s linear infinite;
}
.hero__marquee-track span:nth-child(even) { color: var(--teal-bright); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 6 ── approach ───────────────────────────────────────────────────────── */
.approach__inner {
  display: grid;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.approach__media { position: relative; }
.approach__media > img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 6 / 5;
  object-fit: cover;
}
.approach__note {
  position: relative;
  margin: -3.5rem 1.5rem 0;
  padding: 1.5rem 1.6rem;
  border-radius: var(--radius);
  background: var(--teal-deep);
  color: var(--paper);
  box-shadow: var(--shadow-md);
}
.approach__note-mark { display: block; color: var(--teal-bright); margin-bottom: 0.5rem; }
.approach__note-mark .ico { width: 1.5rem; height: 1.5rem; }
.approach__note blockquote { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.4; }

.approach__copy h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.15rem); margin-bottom: 1.5rem; }
.approach__copy > p { color: var(--muted); }
.approach__copy > p + p { margin-top: 1rem; }

.steps { position: relative; margin-top: 2.5rem; display: grid; gap: 1.75rem; }
.steps::before {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 0.6rem;
  bottom: 1.6rem;
  width: 2px;
  background: linear-gradient(var(--teal-bright), var(--line));
}
.step { position: relative; display: grid; grid-template-columns: 2.2rem 1fr; gap: 1.25rem; }
.step__num {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--teal-bright);
  color: var(--teal-deep);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.step h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.step p { color: var(--muted); font-size: 0.98rem; }

/* 7 ── services & methods ─────────────────────────────────────────────── */
.cards { display: grid; gap: clamp(1.25rem, 2vw, 1.75rem); }
.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.card:hover .card__media img { transform: scale(1.05); }
.card__num {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: rgb(252 251 249 / 92%);
  backdrop-filter: blur(6px);
  color: var(--teal-deep);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.card__body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.5rem 1.75rem; }
.card__body h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.card__body p { color: var(--muted); font-size: 0.98rem; }
.card__body .tags { margin-top: auto; padding-top: 0.35rem; }

.methods__inner { display: grid; gap: clamp(2rem, 4vw, 4rem); }
.methods__head h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.15rem); }
.methods__list { border-top: 1px solid var(--line); }
.method { border-bottom: 1px solid var(--line); }
.method > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0.25rem;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.012em;
  transition: color 0.2s;
}
.method > summary::-webkit-details-marker { display: none; }
.method > summary:hover { color: var(--teal-deep); }
.method abbr, .method__abbr { font-family: var(--font-body); font-size: 0.7em; font-weight: 500; font-style: normal; color: var(--muted); letter-spacing: 0.06em; }
.method__toggle {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--teal-deep);
  transition: transform 0.35s var(--ease-out), background-color 0.25s, color 0.25s, border-color 0.25s;
}
.method__toggle .ico { width: 1.05rem; height: 1.05rem; }
.method[open] .method__toggle { transform: rotate(180deg); background: var(--teal-deep); border-color: var(--teal-deep); color: var(--paper); }
.method[open] > summary { color: var(--teal-deep); }
.method__body { padding: 0 0.25rem 1.6rem; max-width: 56ch; color: var(--muted); }
.method[open] .method__body { animation: fade-up 0.45s var(--ease-out); }

/* 8 ── numbers ────────────────────────────────────────────────────────── */
.numbers { padding-block: clamp(3.5rem, 6vw, 5.5rem); background: var(--teal-wash); border-block: 1px solid rgb(14 124 140 / 12%); }
.numbers__grid { display: grid; gap: clamp(2rem, 4vw, 2.5rem); }
.number { display: grid; gap: 0.35rem; }
.number__value {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 1.8rem + 3vw, 3.9rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--teal-deep);
  font-variant-numeric: tabular-nums;
}
.number__label { max-width: 20ch; color: var(--ink-2); font-size: 0.95rem; }

/* 9 ── testimonials ───────────────────────────────────────────────────── */
.voices .section__head h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.15rem); }
.voices__nav { display: flex; gap: 0.6rem; }
.voices__rail {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-inline: max(var(--gutter), calc((100% - var(--shell)) / 2 + var(--gutter)));
  padding-block: 0.5rem 1rem;
}
.voices__rail::-webkit-scrollbar { display: none; }
.voices__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(30rem, 84vw);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.voice {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: var(--radius-lg);
  background: var(--ink-2);
}
.voice__mark { width: 2rem; height: 2rem; color: var(--teal-bright); opacity: 0.85; }
.voice blockquote {
  margin: 1rem 0 1.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1rem + 0.55vw, 1.4rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--paper);
}
.voice figcaption { display: flex; align-items: center; gap: 0.85rem; margin-top: auto; }
.voice__avatar {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  flex: none;
  border-radius: 50%;
  background: var(--teal-deep);
  color: var(--teal-bright);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.voice figcaption span:last-child { display: grid; }
.voice figcaption strong { font-size: 0.95rem; font-weight: 500; color: var(--paper); }
.voice figcaption small { font-size: 0.82rem; color: rgb(231 236 236 / 60%); }

/* 10 ── work ──────────────────────────────────────────────────────────── */
.work__grid { display: grid; gap: clamp(1.25rem, 2vw, 1.75rem); }
.work-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.work-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.work-card__media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--sand-2); }
.work-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.work-card:hover .work-card__media img { transform: scale(1.05); }
.work-card__tag {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  background: rgb(13 31 37 / 82%);
  backdrop-filter: blur(6px);
  color: var(--paper);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.work-card__body { padding: 1.4rem 1.5rem 1.6rem; }
.work-card__body h3 { font-size: 1.2rem; margin-bottom: 0.45rem; }
.work-card__body p { color: var(--muted); font-size: 0.96rem; }

/* 11 ── contact ───────────────────────────────────────────────────────── */
.contact__grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.contact__intro h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.15rem); margin-bottom: 1.25rem; }
.contact__intro > p { color: var(--muted); max-width: 34rem; }
.contact__list { display: grid; gap: 1.25rem; margin: 2.25rem 0; }
.contact__list li { display: flex; align-items: flex-start; gap: 0.9rem; }
.contact__icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  flex: none;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--teal-deep);
}
.contact__list span:last-child { display: grid; gap: 0.1rem; }
.contact__list strong { font-weight: 500; font-size: 1.02rem; }
.contact__list small { color: var(--muted); font-size: 0.88rem; }

.contact__form-wrap {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 1.1rem; }
.field { position: relative; display: grid; }
.field input, .field textarea {
  width: 100%;
  padding: 1.5rem 0.95rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 8.5rem; }
.field input:hover, .field textarea:hover { border-color: #cfc8bb; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgb(14 124 140 / 12%);
}
.field label {
  position: absolute;
  left: 1rem;
  top: 1.05rem;
  color: var(--muted);
  font-size: 1rem;
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.18s var(--ease-out), color 0.18s;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-0.62rem) scale(0.78);
  color: var(--teal-deep);
}
.field__opt { font-size: 0.85em; color: #9aa8ac; }
.field__error { min-height: 0; color: #a33a2a; font-size: 0.82rem; }
.field__error:empty { display: none; }
.field--error input, .field--error textarea { border-color: #c2543f; }
.field--error input:focus, .field--error textarea:focus { box-shadow: 0 0 0 4px rgb(194 84 63 / 14%); }

.form__note { color: var(--muted); font-size: 0.86rem; line-height: 1.5; }
.form__note a { color: var(--teal-deep); }
.form__note.is-error { color: #a33a2a; }

.contact__map {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  line-height: 0;
}
.contact__map iframe { width: 100%; height: clamp(240px, 34vw, 340px); filter: grayscale(0.35) contrast(1.02); }

/* 12 ── cta ───────────────────────────────────────────────────────────── */
.cta {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  background: linear-gradient(135deg, var(--teal-deep), var(--ink-2) 78%);
  color: var(--paper);
}
.cta__inner { display: grid; gap: clamp(1.5rem, 3vw, 3rem); align-items: center; }
.cta h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem); }
.cta p { margin-top: 0.85rem; max-width: 40rem; color: rgb(231 236 236 / 78%); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* 13 ── footer ────────────────────────────────────────────────────────── */
.footer { padding-top: clamp(3.5rem, 6vw, 5.5rem); background: var(--ink); color: rgb(231 236 236 / 72%); }
.footer__inner { display: grid; gap: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.brand--light img { height: 2.4rem; filter: brightness(0) invert(1); }
.footer__brand p { max-width: 34rem; margin-top: 1.25rem; font-size: 0.95rem; }
.footer__social { display: flex; gap: 0.6rem; margin-top: 1.5rem; }
.footer__social a {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 50%;
  color: rgb(231 236 236 / 80%);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease-out);
}
.footer__social a:hover { background: var(--teal-bright); border-color: var(--teal-bright); color: var(--ink); transform: translateY(-3px); }

.footer__nav { display: grid; gap: 2rem; }
.footer__nav h3 {
  margin-bottom: 1rem;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer__nav ul { display: grid; gap: 0.6rem; }
.footer__nav a, .footer__nav span { font-size: 0.95rem; }
.footer__nav a { color: rgb(231 236 236 / 72%); text-decoration: none; transition: color 0.2s; }
.footer__nav a:hover { color: var(--teal-bright); }

.footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  padding-block: 1.75rem;
  border-top: 1px solid rgb(255 255 255 / 10%);
  font-size: 0.85rem;
}
.footer__base a { color: rgb(231 236 236 / 80%); }
.footer__credits { color: rgb(231 236 236 / 50%); }

/* 14 ── back to top ───────────────────────────────────────────────────── */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.75rem);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s var(--ease-out), background-color 0.2s;
}
.to-top .ico { transform: rotate(180deg); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--teal-deep); color: var(--paper); }

body.nav-open { overflow: hidden; }

/* 15 ── motion ────────────────────────────────────────────────────────── */
@keyframes fade-up { from { opacity: 0; transform: translateY(-6px); } }
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: calc(var(--reveal-delay, 0) * 90ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* 16 ── responsive ────────────────────────────────────────────────────── */
@media (min-width: 62rem) {
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; }
  .form__row { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .numbers__grid { grid-template-columns: repeat(4, 1fr); }
  .work__grid { grid-template-columns: repeat(3, 1fr); }
  .work-card--wide { grid-column: span 2; }
  .work-card--wide .work-card__media { aspect-ratio: 16 / 9; }
  .approach__inner { grid-template-columns: 0.85fr 1fr; }
  .contact__grid { grid-template-columns: 1fr 1fr; }
  .footer__nav { grid-template-columns: repeat(3, 1fr); }
  .cta__inner { grid-template-columns: 1.4fr auto; }
  .method__body { padding-bottom: 1.75rem; }
  .methods__inner { grid-template-columns: 0.8fr 1.2fr; align-items: start; }
  .methods__head { position: sticky; top: 7rem; }
}

@media (min-width: 48rem) and (max-width: 61.99rem) {
  .cards, .work__grid { grid-template-columns: repeat(2, 1fr); }
  .numbers__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__nav { grid-template-columns: repeat(3, 1fr); }
  .form__row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 61.99rem) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__copy h1 { max-width: 20ch; }
  .hero__media { max-width: 34rem; }
  .hero__frame { aspect-ratio: 4 / 3; }
}

@media (max-width: 47.99rem) {
  html { scroll-padding-top: 4.5rem; }

  /* the toggle stays above the drawer so the menu can still be closed */
  .nav-toggle { display: grid; position: relative; z-index: 95; }
  /* white sheet: covers the header and logo, ends just past the last menu item
     so the rest of the page stays visible below it */
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    max-height: calc(100vh - 1.5rem);
    max-height: calc(100dvh - 1.5rem);
    padding: calc(var(--header-h, 5rem) + 1.5rem) var(--gutter) 2rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    border-radius: 0 0 0.85rem 0.85rem;
    box-shadow: 0 24px 40px -26px rgb(13 31 37 / 34%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-1rem);
    transition: opacity 0.32s var(--ease), transform 0.32s var(--ease), visibility 0.32s;
  }
  .nav__brand {
    position: absolute;
    top: calc(var(--header-h, 5rem) / 2);
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    border-radius: 8px;
  }
  .nav__brand img { width: auto; height: 2.4rem; }
  /* the header logo sits behind the sheet, so drop it from the tab order too */
  .nav-open .brand { visibility: hidden; }
  .nav__list { display: grid; gap: 0.15rem; }
  .nav__list a {
    display: block;
    padding: 0.3rem 0;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 7.5vw, 2.3rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
  }
  .nav__list a::after { display: none; }
  .nav__cta { margin-top: 0.35rem; }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open .nav-toggle span:first-child { transform: translateY(0.36rem) rotate(45deg); }
  .nav-open .nav-toggle span:last-child { transform: translateY(-0.36rem) rotate(-45deg); }

  .hero__card { position: static; margin-top: 1rem; max-width: none; }
  .hero__badge { top: 0.75rem; right: 0.75rem; padding: 0.6rem 0.8rem; }
  .hero__badge-num { font-size: 1.25rem; }
  .hero__trust { gap: 0.5rem 1.2rem; }
  .hero__trust li + li::before { left: -0.7rem; }
  .work-card--wide { grid-column: auto; }
  .work-card--wide .work-card__media { aspect-ratio: 16 / 11; }
  .section__head--split { align-items: flex-start; }
}

@media (max-width: 30rem) {
  .hero__actions .btn { width: 100%; justify-content: center; }
  .cta__actions .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero__marquee-track { animation: none; }
}
