:root {
  --ink: #141414;
  --charcoal: #252421;
  --paper: #f4efe6;
  --paper-2: #e8dfd0;
  --white: #fffaf2;
  --muted: #736d63;
  --line: rgba(20, 20, 20, 0.16);
  --line-strong: rgba(20, 20, 20, 0.32);
  --red: #d95435;
  --teal: #097b78;
  --green: #6d8738;
  --amber: #d5a21f;
  --blue: #2d6f9f;
  --shadow: 0 24px 70px rgba(20, 20, 20, 0.12);
  --radius: 8px;
  --max: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(90deg, rgba(20, 20, 20, 0.035) 1px, transparent 1px) 0 0 / 96px 96px,
    var(--paper);
}

body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.16em; }
button { cursor: pointer; font: inherit; }
::selection { background: var(--red); color: var(--white); }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-140%);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
  transition: transform 180ms var(--ease);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid rgba(255, 250, 242, 0.16);
  background: rgba(20, 20, 20, 0.84);
  color: var(--white);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 250, 242, 0.24);
  border-radius: 50%;
  background: rgba(255, 250, 242, 0.08);
  font-family: Georgia, serif;
  font-weight: 700;
}

.brand-text { display: grid; gap: 0; }
.brand-name { font-weight: 760; line-height: 1; }
.brand-sub {
  color: rgba(255, 250, 242, 0.68);
  font-size: 0.77rem;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: uppercase;
}

.primary-nav { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.primary-nav a {
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(255, 250, 242, 0.78);
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1;
  padding: 10px 12px;
  text-decoration: none;
  transition: border-color 180ms var(--ease), color 180ms var(--ease), background 180ms var(--ease);
}
.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a[aria-current="page"] {
  border-color: rgba(255, 250, 242, 0.28);
  background: rgba(255, 250, 242, 0.08);
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 250, 242, 0.24);
  border-radius: 50%;
  background: rgba(255, 250, 242, 0.08);
  color: var(--white);
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms var(--ease), opacity 180ms var(--ease);
}
.nav-toggle span { position: relative; }
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { transform: rotate(45deg); }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(90deg); }
.nav-open .nav-toggle span::after { opacity: 0; }

main { overflow: clip; }

.hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - 72px);
  --hero-image: url("../img/home-evidence-workbench.jpg");
  --hero-position: center;
  color: var(--white);
  isolation: isolate;
}
.hero-home { --hero-image: url("../img/home-evidence-workbench.jpg"); }
.hero-ford { --hero-image: url("../img/fordpass-pro-hero.jpg"); }
.hero-neatsphere {
  --hero-image: url("../img/neatsphere-architectural-visualisation.png");
  --hero-position: center 48%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--hero-image) var(--hero-position) / cover no-repeat;
  transform: scale(1.02);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 12, 12, 0.88), rgba(12, 12, 12, 0.58) 42%, rgba(12, 12, 12, 0.18)),
    linear-gradient(0deg, rgba(12, 12, 12, 0.72), transparent 42%);
}
.hero-inner {
  display: grid;
  align-content: end;
  gap: 34px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 130px) 0 clamp(32px, 8vw, 88px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: max-content;
  color: rgba(255, 250, 242, 0.78);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 2px; background: currentColor; }
.hero h1,
.page-hero h1,
.case-hero h1 {
  max-width: 1040px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5.8rem;
  font-weight: 520;
  letter-spacing: 0;
  line-height: 0.92;
}
.hero-home h1 { font-weight: 460; }
.hero-lede,
.page-lede,
.case-lede {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 250, 242, 0.84);
  font-size: 1.42rem;
  line-height: 1.36;
}
.hero-actions,
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 760;
  line-height: 1;
  padding: 13px 18px;
  text-decoration: none;
  transition: transform 180ms var(--ease), background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease);
}
.button:hover,
.button:focus-visible { transform: translateY(-2px); background: var(--red); border-color: var(--red); }
.button.light { border-color: rgba(255, 250, 242, 0.48); background: rgba(255, 250, 242, 0.1); color: var(--white); }
.button.light:hover,
.button.light:focus-visible { background: var(--white); border-color: var(--white); color: var(--ink); }
.button.ghost { background: transparent; color: var(--ink); }
.button.ghost:hover,
.button.ghost:focus-visible { background: var(--ink); color: var(--white); }
.dark .button.ghost { border-color: rgba(255, 250, 242, 0.42); color: var(--white); }

.hero-proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto 18px;
  background: transparent;
}
.proof-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 166px;
  border: 1px solid rgba(255, 250, 242, 0.28);
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  color: var(--white);
}
.proof-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus-x, 50%) var(--focus-y, 50%);
  opacity: 1;
  filter: brightness(1.22) contrast(1.08) saturate(1.04);
  transform: scale(var(--zoom, 1.18));
  transition: transform 520ms var(--ease), filter 220ms var(--ease);
}
.proof-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(12, 12, 12, 0.02), rgba(12, 12, 12, 0.24) 40%, rgba(12, 12, 12, 0.76)),
    linear-gradient(90deg, rgba(12, 12, 12, 0.48), rgba(12, 12, 12, 0.08));
}
.proof-card:hover img {
  filter: brightness(1.34) contrast(1.06) saturate(1.08);
  transform: scale(var(--zoom-hover, 1.24));
}
.proof-copy {
  display: grid;
  gap: 7px;
  padding: 18px;
  color: rgba(255, 250, 242, 0.9);
}
.proof-copy strong {
  font-size: 0.95rem;
  line-height: 1.12;
  font-weight: 760;
}
.proof-copy small {
  max-width: 26ch;
  color: rgba(255, 250, 242, 0.72);
  font-size: 0.78rem;
  line-height: 1.32;
}

.band { padding: clamp(64px, 9vw, 120px) 0; }
.band.dark { background: var(--charcoal); color: var(--white); }
.band.white { background: var(--white); }
.band.tinted { background: var(--paper-2); }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(24px, 5vw, 84px);
  align-items: end;
  margin-bottom: clamp(30px, 5vw, 62px);
}
.section-label,
.meta {
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 830;
  letter-spacing: 0;
  text-transform: uppercase;
}
.section-label { margin: 0 0 10px; }
.section-head h2,
.text-block h2,
.case-section h2,
.article h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.9rem;
  font-weight: 520;
  letter-spacing: 0;
  line-height: 0.98;
}
.section-head p,
.text-block p,
.case-section p,
.article p {
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.72;
}
.dark .section-head p,
.dark .text-block p,
.dark .case-section p,
.dark .article p,
.dark .muted { color: rgba(255, 250, 242, 0.68); }

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.proof-item {
  min-height: 220px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(20px, 3vw, 28px);
}
.proof-item strong {
  display: block;
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4rem;
  font-weight: 520;
  line-height: 0.95;
}
.proof-item span { color: var(--muted); font-weight: 650; }

.feature-grid,
.signal-grid,
.thinking-grid,
.lab-grid,
.evidence-grid { display: grid; gap: 16px; }
.feature-grid,
.signal-grid,
.thinking-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lab-grid,
.evidence-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.feature,
.work-card,
.thinking-card,
.signal,
.lab-item,
.evidence,
.contact-card,
.image-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.feature,
.work-card { position: relative; overflow: hidden; color: var(--ink); text-decoration: none; }
.feature { min-height: 400px; }
.feature figure,
.work-card figure,
.evidence figure { margin: 0; }
.feature img { width: 100%; height: 220px; object-fit: cover; }
.feature-content,
.work-card-content,
.evidence-text { display: grid; gap: 12px; padding: 22px; }
.feature h3,
.work-card h3,
.signal h3,
.thinking-card h3,
.evidence h3,
.lab-item h3 { margin: 0; font-size: 1.14rem; line-height: 1.18; }
.feature p,
.work-card p,
.signal p,
.thinking-card p,
.evidence p,
.lab-item p,
.caption { margin: 0; color: var(--muted); font-size: 0.96rem; line-height: 1.58; }
.video-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.video-link {
  display: grid;
  gap: 12px;
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}
.video-link:hover,
.video-link:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(216, 71, 39, 0.36);
  box-shadow: 0 24px 70px rgba(30, 26, 20, 0.13);
}
.video-link h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.18;
}
.video-link p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.58;
}
.visual-note-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.visual-note-card figure { margin: 0; }
.visual-note-card img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--paper-2);
}
.visual-note-copy {
  display: grid;
  gap: 12px;
  padding: clamp(22px, 4vw, 34px);
}
.visual-note-copy h3 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(1.38rem, 2.2vw, 1.9rem);
  line-height: 1.12;
}
.visual-note-copy p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.68;
}
.pd-product-visual {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 360px;
  padding: clamp(22px, 4vw, 42px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.08), transparent 32%),
    repeating-linear-gradient(90deg, rgba(255, 250, 242, 0.055) 0 1px, transparent 1px 82px),
    repeating-linear-gradient(0deg, rgba(255, 250, 242, 0.045) 0 1px, transparent 1px 82px),
    #202621;
  color: var(--white);
}
.pd-product-visual.compact {
  height: 235px;
  min-height: 235px;
  padding: 18px;
}
.work-card.wide .pd-product-visual.compact {
  height: 320px;
}
.pd-product-map {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 760px);
  margin: 0 auto;
}
.pd-map-label {
  grid-column: 1 / -1;
  max-width: 620px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 520;
  line-height: 0.98;
  letter-spacing: 0;
}
.pd-node,
.pd-system-note {
  border: 1px solid rgba(255, 250, 242, 0.24);
  background: rgba(255, 250, 242, 0.07);
  color: rgba(255, 250, 242, 0.86);
  font-size: 0.82rem;
  font-weight: 760;
  line-height: 1.16;
  padding: 12px;
}
.pd-node {
  min-height: 68px;
  display: grid;
  align-items: end;
}
.pd-node.primary {
  grid-column: 1 / span 2;
  min-height: 86px;
  border-color: rgba(244, 75, 42, 0.78);
  background: rgba(244, 75, 42, 0.16);
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 520;
}
.pd-rail {
  grid-column: 1 / -1;
  height: 2px;
  margin: 8px 0;
  background: linear-gradient(90deg, rgba(244, 75, 42, 0.9), rgba(255, 250, 242, 0.16));
}
.pd-thread {
  grid-column: 3 / span 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}
.pd-thread span {
  min-height: 86px;
  border: 1px solid rgba(255, 250, 242, 0.18);
  border-top-color: rgba(244, 75, 42, 0.78);
}
.pd-system-note {
  grid-column: 1 / -1;
  color: rgba(255, 250, 242, 0.66);
}
.pd-product-visual.compact .pd-product-map { gap: 7px; }
.pd-product-visual.compact .pd-map-label { font-size: 1.8rem; max-width: 340px; }
.pd-product-visual.compact .pd-node,
.pd-product-visual.compact .pd-system-note {
  min-height: 44px;
  padding: 8px;
  font-size: 0.68rem;
}
.pd-product-visual.compact .pd-node.primary {
  min-height: 56px;
  font-size: 1rem;
}
.pd-product-visual.compact .pd-thread span { min-height: 56px; }
.paysend-system-visual {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 360px;
  overflow: hidden;
  padding: clamp(22px, 4vw, 42px);
  background:
    radial-gradient(circle at 84% 28%, rgba(216, 71, 39, 0.22), transparent 30%),
    radial-gradient(circle at 12% 78%, rgba(9, 123, 120, 0.2), transparent 32%),
    repeating-linear-gradient(90deg, rgba(255, 250, 242, 0.045) 0 1px, transparent 1px 76px),
    #20211f;
  color: var(--white);
}
.paysend-system-visual.compact {
  height: 235px;
  min-height: 235px;
  padding: 16px;
}
.ps-system-map {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 1.25fr) minmax(0, 1fr);
  gap: 12px;
  width: min(100%, 820px);
  margin: 0 auto;
}
.ps-map-label {
  grid-column: 1 / -1;
  max-width: 580px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 4vw, 4.35rem);
  font-weight: 520;
  line-height: 0.96;
}
.ps-node {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  min-height: 132px;
  border: 1px solid rgba(255, 250, 242, 0.2);
  background: rgba(255, 250, 242, 0.075);
  padding: 16px;
}
.ps-node span,
.ps-system-row span {
  color: rgba(255, 250, 242, 0.56);
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}
.ps-node strong {
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 520;
  line-height: 1;
}
.ps-node em {
  margin-top: 8px;
  color: rgba(255, 250, 242, 0.66);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 720;
  line-height: 1.25;
}
.ps-hub {
  min-height: 152px;
  border-color: rgba(216, 71, 39, 0.72);
  background: rgba(216, 71, 39, 0.14);
}
.ps-hub strong { font-size: 1.85rem; }
.ps-flow-line {
  grid-column: 1 / -1;
  height: 2px;
  margin: 8px 0;
  background: linear-gradient(90deg, rgba(255, 250, 242, 0.16), rgba(216, 71, 39, 0.95), rgba(255, 250, 242, 0.16));
}
.ps-system-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.ps-system-row span {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 250, 242, 0.18);
  background: rgba(255, 250, 242, 0.045);
}
.paysend-system-visual.compact .ps-system-map { gap: 7px; }
.paysend-system-visual.compact .ps-map-label {
  max-width: 300px;
  font-size: 1.65rem;
}
.paysend-system-visual.compact .ps-node {
  min-height: 76px;
  padding: 10px;
}
.paysend-system-visual.compact .ps-node span,
.paysend-system-visual.compact .ps-system-row span { font-size: 0.55rem; }
.paysend-system-visual.compact .ps-node strong { font-size: 1rem; }
.paysend-system-visual.compact .ps-hub strong { font-size: 1.08rem; }
.paysend-system-visual.compact .ps-node em { display: none; }
.paysend-system-visual.compact .ps-system-row span { min-height: 28px; }
.feature::after,
.work-card::after {
  content: "Open";
  position: absolute;
  right: 16px;
  bottom: 16px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}
.feature:hover::after,
.feature:focus-visible::after,
.work-card:hover::after,
.work-card:focus-visible::after { opacity: 1; transform: translateY(0); }
.work-card::after { content: none; }

.essay-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
[data-essay-section] { scroll-margin-top: 92px; }
.essay-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: border-color 220ms var(--ease), box-shadow 220ms var(--ease), background 220ms var(--ease);
}
.essay-card.is-open {
  grid-column: 1 / -1;
  border-color: rgba(216, 71, 39, 0.34);
  background: #fffaf2;
  box-shadow: 0 32px 90px rgba(30, 26, 20, 0.14);
}
.essay-preview {
  display: grid;
  gap: 13px;
  grid-template-rows: auto auto 1fr auto;
  width: 100%;
  min-height: 260px;
  padding: 24px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.essay-preview:hover,
.essay-preview:focus-visible { background: rgba(216, 71, 39, 0.045); outline: none; }
.essay-preview h3 {
  max-width: 15ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.85rem, 2.45vw, 2.9rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.essay-preview p {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.5;
}
.essay-action {
  align-self: end;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}
.essay-card.is-open .essay-preview {
  min-height: auto;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  grid-template-rows: auto auto;
  align-items: end;
  border-bottom: 1px solid var(--line);
}
.essay-card.is-open .essay-preview .meta,
.essay-card.is-open .essay-preview h3 { grid-column: 1; }
.essay-card.is-open .essay-preview h3 {
  max-width: 15ch;
  font-size: clamp(2.1rem, 3vw, 3.35rem);
}
.essay-card.is-open .essay-preview p {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
}
.essay-card.is-open .essay-action { display: none; }
.essay-body-wrap {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  overflow: hidden;
  transition: grid-template-rows 360ms var(--ease), opacity 240ms var(--ease);
}
.essay-card.is-open .essay-body-wrap {
  grid-template-rows: 1fr;
  opacity: 1;
}
.essay-body {
  display: grid;
  gap: 18px;
  min-height: 0;
  overflow: hidden;
  max-width: 900px;
  padding: 0 clamp(24px, 4vw, 46px);
  transition: padding 360ms var(--ease);
}
.essay-card.is-open .essay-body {
  padding: clamp(24px, 4vw, 46px);
}
.essay-body p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.72;
}
.essay-body blockquote {
  margin: 14px 0 2px;
  border-left: 4px solid var(--red);
  padding: 12px 0 12px 22px;
}
.essay-body blockquote p {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  line-height: 1.22;
}
.essay-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-top: 8px;
}
.essay-evidence span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}
.essay-evidence a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 760;
  text-decoration: none;
}
.essay-evidence a:hover,
.essay-evidence a:focus-visible {
  border-color: var(--red);
  color: var(--red);
}
.essay-close {
  justify-self: start;
  margin-top: 8px;
}

.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(30px, 6vw, 92px); align-items: center; }
.text-block,
.image-stack { display: grid; gap: 18px; }
.image-frame { overflow: hidden; background: var(--white); }
.image-frame img { width: 100%; object-fit: cover; }
.about-portrait {
  position: relative;
  background: var(--charcoal);
}
.about-portrait img {
  display: block;
  aspect-ratio: 4 / 5;
  filter: grayscale(0.1) sepia(0.14) saturate(0.82) contrast(1.08) brightness(0.92);
  object-position: center 38%;
}
.about-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(28, 26, 22, 0.04), rgba(28, 26, 22, 0.28)),
    radial-gradient(circle at 78% 12%, rgba(232, 72, 43, 0.16), transparent 34%);
  mix-blend-mode: multiply;
}

.page-hero,
.case-hero { background: var(--charcoal); color: var(--white); }
.page-hero .wrap,
.case-hero .wrap { display: grid; gap: clamp(24px, 4vw, 42px); padding: clamp(76px, 10vw, 130px) 0 clamp(54px, 8vw, 96px); }
.page-hero h1,
.case-hero h1 { font-size: 5.3rem; }
.page-lede,
.case-lede { color: rgba(255, 250, 242, 0.78); }
.case-hero-visual .wrap {
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
  align-items: center;
}
.case-hero-copy { display: grid; gap: clamp(24px, 4vw, 42px); }
.case-hero-media {
  overflow: hidden;
  border: 1px solid rgba(255, 250, 242, 0.16);
  border-radius: var(--radius);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}
.case-hero-media.image-hero img {
  display: block;
  width: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: 68% 50%;
}
.case-hero-media .paysend-system-visual {
  min-height: 420px;
  background:
    radial-gradient(circle at 84% 28%, rgba(216, 71, 39, 0.26), transparent 30%),
    radial-gradient(circle at 12% 78%, rgba(9, 123, 120, 0.22), transparent 32%),
    repeating-linear-gradient(90deg, rgba(255, 250, 242, 0.05) 0 1px, transparent 1px 76px),
    #191a18;
}
.case-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.case-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid rgba(255, 250, 242, 0.24);
  border-radius: 999px;
  color: rgba(255, 250, 242, 0.76);
  font-size: 0.82rem;
  font-weight: 720;
  padding: 7px 11px;
}

.work-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  padding: 8px 13px;
}
.filter-button[aria-pressed="true"],
.filter-button:hover,
.filter-button:focus-visible { border-color: var(--ink); background: var(--ink); color: var(--white); }
.work-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.work-card { display: grid; grid-column: span 4; min-height: 420px; }
.work-card.is-hidden { display: none; }
.work-card.wide { grid-column: span 8; }
.work-card img { width: 100%; height: 235px; object-fit: cover; }
.work-card img[src*="fordpass-pro-preview"] { object-position: 72% 50%; }
.work-card img[src*="orange-apps-preview"] {
  object-position: 68% 50%;
  filter: brightness(0.92) contrast(1.06);
}
.work-card img[src*="santander-private-banking-gateway"],
.feature img[src*="santander-private-banking-gateway"] { object-position: 50% 0%; }
.work-card.wide img { height: 320px; }

.pd-product-panel {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.pd-product-panel-copy {
  display: grid;
  gap: 10px;
  padding: clamp(20px, 3vw, 28px);
}
.pd-product-panel-copy h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.18;
}
.pd-product-panel-copy p { margin: 0; }
.money-system-panel {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.money-system-copy {
  display: grid;
  gap: 10px;
  padding: clamp(20px, 3vw, 28px);
}
.money-system-copy h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.18;
}
.money-system-copy p { margin: 0; }

.case-layout { display: grid; grid-template-columns: minmax(210px, 0.36fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 88px); }
.case-aside { position: sticky; top: 98px; align-self: start; display: grid; gap: 18px; color: var(--muted); }
.case-aside dl { display: grid; gap: 14px; margin: 0; }
.case-aside dt { color: var(--ink); font-size: 0.76rem; font-weight: 820; letter-spacing: 0; text-transform: uppercase; }
.case-aside dd { margin: 2px 0 0; }
.case-content { display: grid; gap: clamp(40px, 6vw, 76px); }
.case-section { display: grid; gap: 18px; }
.case-section h2 { font-size: 3.2rem; }
.callout { border-left: 4px solid var(--red); background: var(--white); padding: clamp(20px, 3vw, 30px); }
.callout p { color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 1.95rem; line-height: 1.18; }
.evidence { overflow: hidden; }
.evidence.full { grid-column: 1 / -1; }
.evidence img { width: 100%; height: 300px; object-fit: cover; background: var(--paper-2); }
.evidence.full img { height: auto; max-height: 660px; object-fit: contain; }
.expandable-evidence {
  transition: border-color 220ms var(--ease), box-shadow 220ms var(--ease), background 220ms var(--ease);
}
.expandable-evidence.is-open {
  grid-column: 1 / -1;
  border-color: rgba(216, 71, 39, 0.34);
  background: #fffaf2;
  box-shadow: 0 32px 90px rgba(30, 26, 20, 0.14);
}
.evidence-preview {
  display: grid;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}
.evidence-preview:hover,
.evidence-preview:focus-visible {
  background: rgba(216, 71, 39, 0.045);
  outline: none;
}
.evidence-preview .essay-action { justify-self: start; }
.expandable-evidence.is-open .evidence-preview {
  grid-template-columns: minmax(220px, 0.46fr) minmax(0, 0.54fr);
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}
.expandable-evidence.is-open .evidence-preview img {
  height: 100%;
  min-height: 260px;
}
.expandable-evidence.is-open .evidence-preview .evidence-text { align-content: end; }
.expandable-evidence.is-open .essay-action { display: none; }
.evidence-body-wrap {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  overflow: hidden;
  transition: grid-template-rows 360ms var(--ease), opacity 240ms var(--ease);
}
.expandable-evidence.is-open .evidence-body-wrap {
  grid-template-rows: 1fr;
  opacity: 1;
}
.evidence-body {
  display: grid;
  gap: 18px;
  min-height: 0;
  overflow: hidden;
  padding: 0 clamp(22px, 4vw, 38px);
  transition: padding 360ms var(--ease);
}
.expandable-evidence.is-open .evidence-body {
  padding: clamp(22px, 4vw, 38px);
}
.evidence-expanded-image { margin: 0; }
.evidence-expanded-image img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}
.evidence-expanded-copy {
  display: grid;
  gap: 14px;
  max-width: 900px;
}
.evidence-expanded-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.68;
}
.evidence-close {
  justify-self: start;
  margin-top: 4px;
}
.game-evidence-grid { align-items: start; }
.game-evidence .evidence-preview figure {
  background: #ece9e3;
}
.game-evidence .evidence-preview img {
  object-position: 50% 50%;
}
.game-expanded-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.36fr) minmax(0, 0.64fr);
  gap: clamp(22px, 4vw, 42px);
  align-items: start;
}
.game-expanded-copy {
  display: grid;
  gap: 18px;
}
.game-expanded-copy > div:not(.game-source-links) {
  display: grid;
  gap: 8px;
}
.game-expanded-copy span,
.game-source-links span {
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.game-expanded-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.68;
}
.game-expanded-copy .game-source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.game-source-links span {
  flex-basis: 100%;
}
.game-source-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 760;
  text-decoration: none;
}
.game-source-links a:hover,
.game-source-links a:focus-visible {
  border-color: rgba(216, 71, 39, 0.5);
  color: var(--red);
}
.game-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.game-shot {
  display: grid;
  gap: 8px;
  margin: 0;
}
.game-shot-frame {
  height: clamp(180px, 22vw, 260px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
  background: #e9e6df;
}
.game-shot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--game-pos, 50% 50%);
  transform: scale(var(--game-scale, 1));
  transform-origin: var(--game-pos, 50% 50%);
}
.game-shot figcaption {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.28;
}
.resilience-model {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: var(--shadow);
}
.resilience-scale {
  display: grid;
  grid-template-columns: auto minmax(80px, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 28px;
  background: var(--ink);
  color: var(--white);
}
.resilience-scale span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.6rem;
  font-weight: 750;
  line-height: 0.92;
}
.resilience-scale i {
  position: relative;
  height: 2px;
  background: rgba(255, 250, 242, 0.34);
}
.resilience-scale i::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 11px;
  height: 11px;
  border-top: 2px solid rgba(255, 250, 242, 0.72);
  border-right: 2px solid rgba(255, 250, 242, 0.72);
  transform: translateY(-50%) rotate(45deg);
}
.resilience-intro {
  display: grid;
  gap: 12px;
  padding: clamp(24px, 4vw, 36px);
  background: #fffaf2;
}
.resilience-intro h3 {
  max-width: 16ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.35rem;
  font-weight: 600;
  line-height: 1.04;
}
.resilience-intro p { max-width: 48rem; margin: 0; color: var(--muted); }
.resilience-lanes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
}
.resilience-lanes article {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 190px;
  padding: 22px;
  background: var(--white);
}
.resilience-lanes strong {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}
.resilience-lanes p { margin: 0; color: var(--muted); line-height: 1.55; }
.resilience-outcome {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  padding: 26px 28px;
  background: var(--ink);
  color: rgba(255, 250, 242, 0.76);
}
.resilience-outcome span {
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}
.resilience-outcome p { margin: 0; color: rgba(255, 250, 242, 0.78); line-height: 1.55; }

.steps { display: grid; gap: 1px; border: 1px solid var(--line); background: var(--line); }
.step { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 18px; background: var(--white); padding: 20px; }
.step strong { color: var(--red); font-size: 0.78rem; letter-spacing: 0; text-transform: uppercase; }
.step h3 { margin: 0 0 6px; }
.step p { margin: 0; color: var(--muted); }
.signal { padding: clamp(20px, 3vw, 28px); box-shadow: none; }
.signal .dot { width: 14px; height: 14px; margin-bottom: 32px; border-radius: 50%; background: var(--teal); }
.signal:nth-child(2n) .dot { background: var(--red); }
.signal:nth-child(3n) .dot { background: var(--amber); }
.thinking-card { display: grid; gap: 34px; min-height: 360px; padding: clamp(22px, 3vw, 30px); }
.article { display: grid; max-width: 860px; gap: 20px; margin: 0 auto; }
.article + .article { margin-top: clamp(72px, 10vw, 130px); }
.article h2 { font-size: 3.5rem; }

.lab-item {
  display: grid;
  gap: 16px;
  min-height: 350px;
  border-color: rgba(255, 250, 242, 0.16);
  background: rgba(255, 250, 242, 0.06);
  box-shadow: none;
  padding: clamp(22px, 3vw, 34px);
}
.lab-diagram { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: center; }
.lab-node {
  display: grid;
  place-items: center;
  min-height: 92px;
  border: 1px solid rgba(255, 250, 242, 0.18);
  border-radius: var(--radius);
  color: rgba(255, 250, 242, 0.78);
  font-weight: 760;
  text-align: center;
}
.lab-node:nth-child(1) { background: rgba(217, 84, 53, 0.24); }
.lab-node:nth-child(2) { background: rgba(9, 123, 120, 0.24); }
.lab-node:nth-child(3) { background: rgba(213, 162, 31, 0.24); }

.contact-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.contact-card { display: grid; gap: 18px; padding: clamp(24px, 4vw, 42px); }
.contact-link { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid var(--line); text-decoration: none; }
.contact-link span { color: var(--muted); font-size: 0.86rem; font-weight: 750; letter-spacing: 0; text-transform: uppercase; }
.contact-link strong { font-size: 1.35rem; }

.site-footer { border-top: 1px solid var(--line); background: var(--paper); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding: 34px 0; color: var(--muted); font-size: 0.94rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: flex-end; }
.footer-links a { text-decoration: none; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 560ms var(--ease), transform 560ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    display: grid;
    justify-content: stretch;
    gap: 0;
    max-height: calc(100svh - 72px);
    overflow: auto;
    border-bottom: 1px solid rgba(255, 250, 242, 0.16);
    background: rgba(20, 20, 20, 0.96);
    padding: 14px 16px 22px;
    transform: translateY(-115%);
    transition: transform 220ms var(--ease);
  }
  .nav-open .primary-nav { transform: translateY(0); }
  .primary-nav a { border-radius: var(--radius); padding: 16px; }
  .hero-proof,
  .proof-grid,
  .essay-grid,
  .feature-grid,
  .signal-grid,
  .thinking-grid,
  .lab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head,
  .split,
  .case-layout,
  .case-hero-visual .wrap,
  .contact-panel { grid-template-columns: 1fr; }
  .case-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--line); padding-bottom: 24px; }
  .work-card,
  .work-card.wide { grid-column: span 6; }
  .resilience-lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h1,
  .page-hero h1,
  .case-hero h1 { font-size: 4.35rem; }
  .hero-lede,
  .page-lede,
  .case-lede { font-size: 1.24rem; }
  .section-head h2,
  .text-block h2,
  .case-section h2,
  .article h2 { font-size: 2.85rem; }
  .proof-item strong { font-size: 3rem; }
  .callout p { font-size: 1.6rem; }
  .case-hero-media .paysend-system-visual { min-height: 360px; }
  .pd-product-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-node.primary,
  .pd-thread { grid-column: 1 / -1; }
  .expandable-evidence.is-open .evidence-preview { grid-template-columns: 1fr; }
  .expandable-evidence.is-open .evidence-preview img { height: auto; min-height: 0; }
  .game-expanded-grid { grid-template-columns: 1fr; }
  .game-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .nav-shell { width: min(var(--max), calc(100% - 24px)); }
  .brand-sub { display: none; }
  .hero { min-height: calc(100svh - 72px); }
  .hero::after {
    background:
      linear-gradient(90deg, rgba(12, 12, 12, 0.9), rgba(12, 12, 12, 0.52)),
      linear-gradient(0deg, rgba(12, 12, 12, 0.86), transparent 54%);
  }
  .hero-proof,
  .proof-grid,
  .essay-grid,
  .feature-grid,
  .evidence-grid,
  .video-link-grid,
  .signal-grid,
  .thinking-grid,
  .lab-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .essay-card.is-open .essay-preview { grid-template-columns: 1fr; }
  .essay-card.is-open .essay-preview .meta,
  .essay-card.is-open .essay-preview h3,
  .essay-card.is-open .essay-preview p {
    grid-column: auto;
    grid-row: auto;
  }
  .essay-preview { min-height: 220px; padding: 22px; }
  .essay-preview h3 { max-width: 15ch; font-size: 2.2rem; }
  .evidence-body,
  .expandable-evidence.is-open .evidence-body { padding: 20px; }
  .game-gallery { grid-template-columns: 1fr; }
  .game-shot-frame { height: 220px; }
  .proof-item { min-height: auto; }
  .work-grid { display: grid; grid-template-columns: 1fr; }
  .work-card,
  .work-card.wide { grid-column: auto; }
  .work-card img,
  .work-card.wide img,
  .feature img,
  .evidence img { height: auto; min-height: 180px; }
  .pd-product-visual,
  .pd-product-visual.compact,
  .work-card.wide .pd-product-visual.compact {
    height: auto;
    min-height: 240px;
  }
  .pd-product-visual { padding: 20px; }
  .pd-product-visual.compact .pd-map-label,
  .pd-map-label { font-size: 1.78rem; }
  .pd-node.primary,
  .pd-product-visual.compact .pd-node.primary { font-size: 1.08rem; }
  .pd-thread span,
  .pd-product-visual.compact .pd-thread span { min-height: 44px; }
  .paysend-system-visual,
  .paysend-system-visual.compact {
    height: auto;
    min-height: 260px;
    padding: 20px;
  }
  .ps-system-map { grid-template-columns: 1fr; }
  .paysend-system-visual.compact .ps-map-label,
  .ps-map-label { font-size: 1.82rem; }
  .ps-node,
  .paysend-system-visual.compact .ps-node {
    min-height: 84px;
    padding: 12px;
  }
  .ps-node em,
  .paysend-system-visual.compact .ps-node em { display: block; }
  .ps-system-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-hero-media .paysend-system-visual { min-height: 300px; }
  .resilience-scale { grid-template-columns: auto minmax(48px, 1fr) auto; padding: 22px; }
  .resilience-scale span { font-size: 3.25rem; }
  .resilience-intro { padding: 22px; }
  .resilience-intro h3 { font-size: 1.95rem; }
  .resilience-lanes { grid-template-columns: 1fr; }
  .resilience-lanes article { min-height: auto; }
  .resilience-outcome { grid-template-columns: 1fr; gap: 10px; padding: 22px; }
  .case-aside,
  .step { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .hero h1,
  .page-hero h1,
  .case-hero h1 { font-size: 3.05rem; }
  .hero-lede,
  .page-lede,
  .case-lede { font-size: 1.08rem; }
  .section-head h2,
  .text-block h2,
  .case-section h2,
  .article h2 { font-size: 2.2rem; }
  .proof-item strong { font-size: 2.5rem; }
  .callout p { font-size: 1.35rem; }
}

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