:root {
  --ink: #15171b;
  --ink-2: #4a4f57;
  --ink-3: #6a6f77;
  --paper: #f7f5f1;
  --card: #ffffff;
  --line: #e6e3de;
  --brand: #a11d33;
  --brand-ink: #7f1628;
  --brand-tint: #f6e9eb;
  --brand-soft: #f2c4cc;
  --forest: #13201a;
  --radius: 14px;
  --max: 1200px;
  --font: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-ink); }
img, svg { max-width: 100%; display: block; }
img { height: auto; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; z-index: 10; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible, .hero :focus-visible, .site-header.over :focus-visible { outline-color: #ffffff; }

/* Type */
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; margin: 0; font-weight: 600; }
h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.04; letter-spacing: -0.025em; }
h2 { font-size: clamp(30px, 3.6vw, 44px); }
h3 { font-size: 19px; letter-spacing: -0.01em; }
p { margin: 0; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); margin: 0 0 14px; }
.dark .eyebrow, .hero .eyebrow { color: var(--brand-soft); }
.lede { font-size: clamp(18px, 1.6vw, 20px); color: var(--ink-2); max-width: 36em; }

section { padding: 96px 0; scroll-margin-top: 72px; }
@media (max-width: 640px) { section { padding: 64px 0; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px;
  border-radius: 999px; background: var(--brand); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 16px; border: 1px solid var(--brand);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
.btn.outline { background: transparent; border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.btn.outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn.light { background: #fff; border-color: #fff; color: var(--ink); }
.btn.light:hover { background: #ebe8e3; border-color: #ebe8e3; color: var(--ink); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

/* Header: sits over the hero, turns solid once scrolled */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 5; transition: background 0.2s ease, border-color 0.2s ease; border-bottom: 1px solid transparent; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo { display: inline-flex; background: #fff; padding: 8px 12px; border-radius: 8px; }
.logo img { height: 16px; width: auto; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { color: #fff; text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--brand-soft); }
.nav .pill { color: var(--ink); background: #fff; font-size: 14px; font-weight: 600; padding: 10px 16px; border-radius: 999px; }
.nav .pill:hover { color: var(--ink); background: #ebe8e3; }
.site-header.solid { background: rgba(247, 245, 241, 0.94); -webkit-backdrop-filter: saturate(140%) blur(8px); backdrop-filter: saturate(140%) blur(8px); border-bottom-color: var(--line); }
.site-header.solid .nav a { color: var(--ink-2); }
.site-header.solid .nav a:hover { color: var(--ink); }
.site-header.solid .nav .pill { background: var(--brand); color: #fff; }
.site-header.solid .nav .pill:hover { background: var(--brand-ink); }
.site-header.solid .logo { padding-left: 0; padding-right: 0; background: transparent; }
@media (max-width: 760px) { .nav a:not(.pill) { display: none; } }

/* Hero */
.hero { position: relative; min-height: 760px; display: flex; align-items: flex-end; overflow: hidden; background: #0f1a14; color: #fff; padding: 0; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 16, 12, 0.55) 0%, rgba(10, 16, 12, 0.25) 35%, rgba(10, 16, 12, 0.85) 100%); }
.hero-grid { position: relative; z-index: 1; width: 100%; padding-top: 140px; padding-bottom: 72px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: end; }
.hero h1 { color: #fff; }
.hero .lede { margin-top: 24px; color: #e4e8e3; }
@media (max-width: 860px) { .hero { min-height: 0; } .hero-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 120px; padding-bottom: 48px; } }

/* Example record card */
.record { margin: 0; background: #fff; color: var(--ink); border-radius: 18px; padding: 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
@media (max-width: 640px) { .record { padding: 16px; } }
.record-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.record-top .label { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }
.record-top .value { font-weight: 600; font-size: 17px; }
.badge { font-size: 12px; font-weight: 600; color: var(--brand-ink); background: var(--brand-tint); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.record ol { list-style: none; margin: 12px 0 0; padding: 0; }
.record li { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 6px 0; }
.record li img { width: 52px; height: 40px; object-fit: cover; border-radius: 8px; }
.record .what { font-weight: 600; font-size: 15px; line-height: 1.35; }
.record .who, .record .when { font-size: 13px; color: var(--ink-3); }
.record .when { font-variant-numeric: tabular-nums; white-space: nowrap; }
.record figcaption { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }

/* Journey strip */
.journey-sec { padding-bottom: 40px; }
.journey-sec h2 { max-width: 18em; }
.journey { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.journey li { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; background: #1b231e; }
.journey img { width: 100%; height: 100%; object-fit: cover; }
.journey .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.78) 100%); color: #fff; }
.journey .n { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--brand-soft); }
.journey .t { font-weight: 600; font-size: 17px; }
.journey .d { font-size: 13px; color: #dfe3df; line-height: 1.4; }
@media (max-width: 1000px) { .journey { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); } .journey li:last-child { grid-column: span 2; aspect-ratio: 16 / 9; } }

/* Outcomes */
.outcomes { padding-top: 56px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card svg { width: 28px; height: 28px; color: var(--brand); }
.card h3 { margin: 14px 0 8px; }
.card p { color: var(--ink-2); font-size: 16px; }

/* How it works */
.how { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: 56px; align-items: center; }
.how .lede { margin-top: 16px; }
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 48px; }
.steps3 .num { font-size: 13px; font-weight: 600; color: var(--brand); letter-spacing: 0.06em; }
.steps3 h3 { margin: 8px 0; font-size: 21px; }
.steps3 p { color: var(--ink-2); font-size: 16px; }
.how-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; }
@media (max-width: 1000px) { .how-grid { grid-template-columns: 1fr; } .how-img { aspect-ratio: 16 / 9; } }
@media (max-width: 860px) { .steps3 { grid-template-columns: 1fr; gap: 28px; } }

/* Sectors */
.sectors-sec h2 { margin-bottom: 48px; max-width: 18em; }
.sectors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .sectors { grid-template-columns: 1fr; } }
.sector { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.sector img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.sector div { padding: 22px 24px 26px; }
.sector h3 { margin-bottom: 6px; font-size: 20px; }
.sector p { color: var(--ink-2); font-size: 16px; }

/* Case study */
.case-sec { background: var(--forest); color: #eef1ec; }
.case-sec h2 { color: #fff; }
.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; gap: 32px; } }
.case-body p { color: #c9d1ca; margin-top: 14px; }
.case-body h2 + p { margin-top: 24px; }
.case-list { list-style: none; padding: 0; margin: 28px 0 0; }
.case-list li { padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.14); color: #e4e8e3; }
.case-list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.case-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } }
.stat { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius); padding: 18px; }
.stat .n { font-size: 30px; font-weight: 600; color: #fff; line-height: 1.1; white-space: nowrap; letter-spacing: -0.02em; }
.stat .l { font-size: 14px; color: #c9d1ca; margin-top: 6px; line-height: 1.45; }
.source { margin-top: 14px; font-size: 13px; color: #a9b3ab; }
.case-sec a { color: #fff; }

/* Contact */
.contact { background: var(--ink); color: #f3f1ee; }
.contact h2 { color: #fff; }
.contact .lede { margin-top: 16px; color: #c9c6c1; }
.contact-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 40px; }
.contact-grid > div { flex: 1 1 520px; min-width: 0; }
.contact dl { margin: 0; display: grid; gap: 14px; flex: 0 1 300px; }
.contact dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: #9c9893; }
.contact dd { margin: 2px 0 0; }

/* Footer */
.site-footer { background: var(--ink); color: #9c9893; font-size: 14px; border-top: 1px solid #2a2d33; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 32px; }
.site-footer a { color: #c9c6c1; }

/* Inner pages (legal, 404) use a solid header */
.inner { padding-top: 72px; }

/* Legal page */
.legal { padding: 56px 0 96px; }
.legal .wrap { max-width: 820px; }
.legal section { padding: 0; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 8px; }
.legal h2 { font-size: 24px; margin: 40px 0 12px; }
.legal h3 { font-size: 18px; margin: 24px 0 8px; }
.legal p, .legal li, .legal address { color: var(--ink-2); font-size: 16px; }
.legal p { margin: 0 0 14px; }
.legal address { font-style: normal; margin: 0 0 14px; }
.legal ul, .legal ol { padding-left: 22px; margin: 0 0 14px; }
.legal li { margin: 4px 0; }
.legal .toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px 20px 44px; margin: 24px 0 8px; }
.legal [id] { scroll-margin-top: 88px; }
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 15px; display: block; overflow-x: auto; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px; vertical-align: top; text-align: left; }
.legal th { background: var(--card); font-weight: 600; color: var(--ink); }
.legal a { word-break: break-word; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound p { margin: 16px 0 28px; color: var(--ink-2); }

/* Contact form */
.contact-grid { align-items: flex-start; }
.contact-intro dl { margin-top: 36px; }
.contact-intro dd a { color: #fff; }
.contact-form { flex: 1 1 420px; min-width: 0; max-width: 520px; background: #fff; color: var(--ink); border-radius: 18px; padding: 28px; display: grid; gap: 16px; }
@media (max-width: 640px) { .contact-form { padding: 20px; } }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--ink-3); }
.field input, .field textarea { font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid #cfcac3; border-radius: 10px; padding: 11px 12px; width: 100%; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.field [aria-invalid="true"] { border-color: var(--brand); }
.field-error { font-size: 14px; color: var(--brand); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { min-height: 65px; }
.contact-form .btn { justify-self: start; cursor: pointer; }
.contact-form .btn:disabled { opacity: 0.6; cursor: default; }
.contact-form :focus-visible { outline-color: var(--brand); }
.form-status { font-size: 15px; color: var(--ink-2); min-height: 1.4em; }
.form-status.ok { color: #1d6b3a; font-weight: 600; }
.form-status.error { color: var(--brand); }
.form-status a { color: var(--brand); }
