:root {
  --pink: #ff2d9b;
  --blue: #1f5cff;
  --jade: #12b37d;
  --violet: #8b3fd9;
  --violet-ink: #6a2caf;
  --jade-ink: #0a7a54;
  --gray: #6f6f6f;
  --ink: #111111;
  --white: #ffffff;
  --oxblood: #451018;
  --line: rgba(17, 17, 17, 0.15);
  --line-soft: rgba(17, 17, 17, 0.1);
  --mono: "Space Mono", monospace;
  --grot: "Space Grotesk", sans-serif;
  --serif: "Cormorant", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--grot);
  background: var(--white);
  color: var(--ink);
  line-height: 1.5;
  position: relative;
  min-height: 100vh;
}

::selection { background: var(--pink); color: #fff; }

/* dot-field canvas */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.bg-glow { display: none; }

.page {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* nav / brand */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 30px 0 22px;
}
.brand { display: flex; flex-direction: column; gap: 3px; }
.wordmark {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.wordmark .dot { color: var(--pink); }
.wordmark-logo { height: 46px; width: auto; align-self: flex-start; display: block; }
.tagline {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.62;
}
.rule { display: none; }

/* header */
header {
  padding: 60px 0 0;
  text-align: left;
}
header h1 {
  margin: 0;
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1;
  letter-spacing: -0.03em;
  word-spacing: -0.16em;
  color: var(--ink);
  max-width: 16ch;
}
header h1 .dot { color: var(--pink); }
.subtitle {
  margin: 22px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(19px, 2.3vw, 27px);
  line-height: 1.35;
  color: var(--ink);
  opacity: 0.9;
  max-width: 44ch;
}

/* stat strip */
.stat-strip {
  display: flex;
  flex-wrap: wrap;
  margin-top: 44px;
  box-shadow: inset 0 0 0 1px var(--ink);
}
.stat-pill {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 20px 30px;
  flex: 1;
  min-width: 150px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.62);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  box-shadow: inset 1px 0 0 var(--line);
}
.stat-pill:first-child { box-shadow: none; }
.stat-pill strong {
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.stat-pill.stat-all { background: var(--ink); color: rgba(255,255,255,0.7); }
.stat-pill.stat-all strong { color: #fff; }
.stat-pill.stat-Image strong { color: var(--pink); }
.stat-pill.stat-Video strong { color: var(--blue); }
.stat-pill.stat-Audio strong { color: var(--jade-ink); }
.stat-pill.stat-Text strong { color: var(--violet-ink); }
.stat-pill:hover { background: rgba(17,17,17,0.04); }
.stat-pill.stat-all:hover { background: #000; }
.stat-pill.stat-Image.active { background: var(--pink); color: #fff; }
.stat-pill.stat-Image.active strong { color: #fff; }
.stat-pill.stat-Video.active { background: var(--blue); color: #fff; }
.stat-pill.stat-Video.active strong { color: #fff; }
.stat-pill.stat-Audio.active { background: var(--jade); color: #04140e; }
.stat-pill.stat-Audio.active strong { color: #04140e; }
.stat-pill.stat-Text.active { background: var(--violet); color: #fff; }
.stat-pill.stat-Text.active strong { color: #fff; }

main {
  max-width: none;
  margin: 0;
  padding: 0;
}

/* search bar */
.search-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--ink);
  padding: 20px 22px;
  margin: 40px 0 16px;
}
.search-icon { color: var(--pink); flex: none; }
#search {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--ink);
  font-family: var(--grot);
  font-size: 17px;
}
#search:focus { outline: none; }
#search::placeholder { color: var(--gray); }
.search-kbd {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gray);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 3px 8px;
  flex: none;
}

/* filter panel — four columns split by vertical rules */
.filter-panel {
  display: flex;
  flex-wrap: wrap;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--ink);
  margin-bottom: 24px;
}
.filter-col {
  flex: 1 1 200px;
  min-width: 180px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: inset 1px 0 0 var(--line);
}
.filter-col:first-child { box-shadow: none; }
.filter-col.col-license { flex: 1.6 1 300px; }
.filter-label {
  color: var(--gray);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  white-space: nowrap;
}
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }

.chip {
  padding: 9px 14px;
  border: none;
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--mono);
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: all 0.12s ease;
}
.chip:not(.active):hover { background: var(--white); box-shadow: inset 0 0 0 1px var(--ink), 4px 4px 0 var(--ink); transform: translate(-2px, -2px); }
.chip.active { background: var(--ink); color: #fff; box-shadow: inset 0 0 0 1px var(--ink); }

#commercial-filter, #sort-by {
  border: none;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 24px 4px 0;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ff2d9b' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 1px;
}
#commercial-filter { background-position: right center; }
#sort-by { background-position: right center; }
#commercial-filter:focus, #sort-by:focus { outline: none; }

/* result / reset bar */
.result-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--ink);
}
.result-count {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
}
#reset-filters {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.12s ease;
}
#reset-filters svg { stroke: var(--pink); transition: transform 0.4s ease; }
#reset-filters:hover { color: var(--pink); }
#reset-filters:active svg { transform: rotate(-180deg); }

/* card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.card {
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--ink);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.13s ease, box-shadow 0.13s ease;
  animation: card-in 0.35s ease backwards;
  position: relative;
}
.card:hover {
  transform: translate(-4px, -4px);
  box-shadow: inset 0 0 0 1px var(--ink), 9px 9px 0 var(--ink);
}
.card:active { transform: translate(-1px, -1px); }

@keyframes card-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.card-bar { height: 8px; flex: none; }
.card.modality-Image .card-bar { background: var(--pink); }
.card.modality-Video .card-bar { background: var(--blue); }
.card.modality-Audio .card-bar { background: var(--jade); }
.card.modality-Text .card-bar { background: var(--violet); }

.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.card-modality {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.card.modality-Image .card-modality { color: var(--pink); }
.card.modality-Video .card-modality { color: var(--blue); }
.card.modality-Audio .card-modality { color: var(--jade-ink); }
.card.modality-Text .card-modality { color: var(--violet-ink); }
.card-license {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.62;
}
.card h3 {
  margin: 0;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.card .developer {
  color: rgba(17, 17, 17, 0.6);
  font-size: 14px;
  margin: 0;
}
.card-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}
.commercial {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.card.modality-Image .comm-ok { color: var(--pink); }
.card.modality-Video .comm-ok { color: var(--blue); }
.card.modality-Audio .comm-ok { color: var(--jade-ink); }
.card.modality-Text .comm-ok { color: var(--violet-ink); }
.comm-no { color: var(--gray); }

.no-results {
  text-align: center;
  color: var(--gray);
  font-family: var(--mono);
  letter-spacing: 0.06em;
  padding: 4rem 0;
}
.no-results-emoji { display: none; }

footer {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 26px 40px 48px;
  border-top: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.6);
}
footer p { margin: 0 0 8px; }
footer .funder { color: var(--ink); }

/* modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 50;
  animation: overlay-in 0.18s ease;
}
.modal-overlay[hidden] { display: none; }
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--ink), 12px 12px 0 var(--ink);
  max-width: 660px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px;
  animation: modal-in 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.modal h2 {
  margin: 0 0 0.3rem;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.01em;
}
.modal .developer { color: rgba(17, 17, 17, 0.6); font-size: 14px; margin: 0; }

/* modal call-to-action: link out to the model */
.model-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.4rem;
  padding: 12px 18px;
  background: var(--pink);
  color: #fff;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.12s ease;
}
.model-link:hover { color: #fff; }
.model-link:active { opacity: 0.78; }

.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  background: var(--white);
  border: none;
  box-shadow: inset 0 0 0 1.5px var(--ink);
  color: var(--ink);
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.modal-close:hover { background: var(--pink); color: #fff; box-shadow: inset 0 0 0 1.5px var(--pink); }

.modal-tabs { display: flex; gap: 0; margin-bottom: 1.2rem; box-shadow: inset 0 0 0 1.5px var(--ink); width: fit-content; }
.modal-tab {
  padding: 9px 16px;
  background: transparent;
  border: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  color: rgba(17, 17, 17, 0.62);
  box-shadow: inset 1px 0 0 var(--line);
}
.modal-tab:first-child { box-shadow: none; }
.modal-tab.active { background: var(--ink); color: #fff; }

.modal-tab-panel.hidden { display: none; }

.modal-section { margin-bottom: 1.3rem; }
.modal-section-title {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--pink);
  margin: 0 0 0.6rem;
  font-weight: 700;
}
.modal dl { display: grid; grid-template-columns: 180px 1fr; gap: 0.6rem 1rem; margin: 0; }
.modal dt { color: rgba(17, 17, 17, 0.62); font-size: 14px; font-family: var(--grot); }
.modal dd { margin: 0; font-size: 14px; }

.workflow-img { width: 100%; height: auto; box-shadow: inset 0 0 0 1px var(--ink); display: block; }
.workflow-json-wrap { max-height: 50vh; overflow: auto; box-shadow: inset 0 0 0 1px var(--ink); }
.workflow-json { font-family: var(--mono); font-size: 12px; padding: 16px; margin: 0; white-space: pre-wrap; word-break: break-word; }
.wf-loading { color: var(--gray); }

@media (max-width: 600px) {
  .page, footer { padding-left: 22px; padding-right: 22px; }
  .modal dl { grid-template-columns: 1fr; }
  .modal dt { margin-top: 0.6rem; }
}

/* ============ NAV LINKS ============ */
.nav-links {
  display: flex;
  gap: 26px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav-links a {
  color: var(--ink);
  opacity: 0.65;
  text-decoration: none;
  padding-bottom: 3px;
  transition: color 0.12s ease, opacity 0.12s ease;
}
.nav-links a:hover { color: var(--pink); opacity: 1; }
.nav-links a.active { opacity: 1; border-bottom: 2px solid var(--pink); }

/* ============ SUBPAGES ============ */
.sub-hero { padding: 60px 0 0; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 22px;
}
.sub-h1 {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1;
  letter-spacing: -0.03em;
  word-spacing: -0.16em;
  margin: 0;
  max-width: 16ch;
}
.sub-h1 .dot { color: var(--pink); }
.lead {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(19px, 2.3vw, 28px);
  line-height: 1.35;
  margin: 22px 0 0;
  opacity: 0.9;
  max-width: 42ch;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 64px 0 22px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.section-label .rule-fill { flex: 1; height: 1px; background: var(--ink); }
.section-label .count { font-weight: 400; color: var(--gray); }
.section-label.uk { color: var(--pink); }
.section-label.us { color: var(--blue); }

.mission {
  margin-top: 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: start;
}
.mission-title {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.mission-body p { font-family: var(--grot); font-size: 17px; line-height: 1.62; margin: 0 0 18px; }
.mission-body p:last-child { margin-bottom: 0; }
.mission-body a { color: var(--pink); border-bottom: 1.5px solid var(--pink); text-decoration: none; }
@media (max-width: 720px) { .mission { grid-template-columns: 1fr; gap: 20px; } }

.steps { display: flex; flex-wrap: wrap; box-shadow: inset 0 0 0 1px var(--ink); background: var(--white); }
.step {
  flex: 1;
  min-width: 220px;
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: inset 1px 0 0 var(--line);
}
.step:first-child { box-shadow: none; }
.step-title { font-family: var(--serif); font-weight: 600; font-size: 24px; }
.step p { font-family: var(--grot); font-size: 15px; line-height: 1.55; opacity: 0.7; margin: 0; }

.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.principle { box-shadow: inset 0 0 0 1px var(--ink); padding: 26px; background: var(--white); display: flex; flex-direction: column; }
.principle .tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px; }
.principle .p-title { font-family: var(--serif); font-weight: 600; font-size: 24px; margin-bottom: 8px; }
.principle p { font-family: var(--grot); font-size: 14px; line-height: 1.5; opacity: 0.7; margin: 0; }
.principle.dark { background: var(--ink); color: #fff; }
.principle.dark .p-title { color: #fff; }
.principle.dark p { opacity: 0.65; }

.fed-toggle { margin-top: auto; display: flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; padding-top: 20px; }
.switch { display: inline-flex; align-items: center; justify-content: flex-start; width: 52px; height: 26px; box-shadow: inset 0 0 0 1.5px #fff; padding: 3px; transition: all 0.16s ease; }
.switch .knob { width: 18px; height: 18px; background: #fff; display: block; }
.fed-toggle.on .switch { justify-content: flex-end; background: var(--jade); }
.switch-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.fed-toggle.on .switch-label { color: var(--jade); }

.cta { margin-top: 80px; background: var(--pink); color: #fff; padding: 64px 52px; }
.cta h2 { font-family: var(--mono); font-weight: 700; font-size: clamp(30px, 4vw, 52px); line-height: 1.05; letter-spacing: -0.02em; word-spacing: -0.14em; margin: 0; max-width: 16ch; }
.cta .lead { color: #fff; opacity: 0.95; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.btn-solid { font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; background: #fff; color: var(--pink); padding: 14px 20px; text-decoration: none; }
.btn-outline { font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; padding: 14px 20px; box-shadow: inset 0 0 0 1.5px #fff; text-decoration: none; }

.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 16px; }
.person { box-shadow: inset 0 0 0 1px var(--ink); display: flex; flex-direction: column; background: var(--white); }
.person .bar { height: 8px; }
.person.uk .bar { background: var(--pink); }
.person.us .bar { background: var(--blue); }
.person-photo {
  aspect-ratio: 1;
  border-bottom: 1px solid var(--ink);
  background: #f2efe8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  overflow: hidden;
}
.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.person-photo.tbd {
  font-size: 40px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  opacity: 0.62;
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person-info { padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.person-role { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.person.uk .person-role { color: var(--pink); }
.person.us .person-role { color: var(--blue); }
.person-name { font-family: var(--mono); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.person-name a { color: inherit; text-decoration: none; transition: color 0.15s ease; }
.person-name a:hover { color: var(--pink); }
.person-aff { font-family: var(--grot); font-size: 14px; opacity: 0.65; }
.person-bio { font-family: var(--grot); font-size: 13px; line-height: 1.5; opacity: 0.6; margin: 8px 0 0; }

/* compact person chip — no photo, for supporting team members */
.person-chip {
  box-shadow: inset 0 0 0 1px var(--ink);
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px 20px;
  align-self: start;
  border-top: 8px solid var(--blue);
}
.person-chip.uk { border-top-color: var(--pink); }
.person-chip.us { border-top-color: var(--blue); }
.person-chip .chip-role { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }
.person-chip.uk .chip-role { color: var(--pink); }
.person-chip .chip-name { font-family: var(--mono); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; transition: color 0.15s ease; }
.person-chip .chip-name:hover { color: var(--pink); }
.person-chip .chip-aff { font-family: var(--grot); font-size: 14px; opacity: 0.65; }

.partners-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(244px, 1fr)); gap: 16px; }
.partner { box-shadow: inset 0 0 0 1px var(--ink); display: flex; flex-direction: column; background: var(--white); }
.partner .bar { height: 6px; }
.partner.uk .bar { background: var(--pink); }
.partner.us .bar { background: var(--blue); }
.partner.de .bar { background: var(--jade); }
.partner-info { padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.partner-name { font-family: var(--mono); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.partner-loc { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.62; }
.partner-desc { font-family: var(--grot); font-size: 13px; line-height: 1.5; opacity: 0.65; margin-top: 4px; }

.legal-panel { display: flex; flex-wrap: wrap; box-shadow: inset 0 0 0 1px var(--ink); background: var(--white); }
.legal-col { flex: 1; min-width: 220px; padding: 28px 30px; box-shadow: inset 1px 0 0 var(--line); }
.legal-col:first-child { box-shadow: none; }
.legal-name { font-family: var(--mono); font-weight: 700; font-size: 17px; }
.legal-aff { font-family: var(--grot); font-size: 14px; opacity: 0.6; margin-top: 4px; }

.sub-foot { margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6; padding-bottom: 80px; }

/* ============================================================================
   Mobile optimisation — placed last so it overrides subpage base styles.
   Fits wide mono headings to the viewport and enlarges the smallest text.
   ============================================================================ */
@media (max-width: 600px) {
  html, body { overflow-x: hidden; }

  /* keep wide mono headings inside the viewport */
  header h1, .sub-h1 { font-size: clamp(26px, 7.6vw, 38px); word-spacing: -0.08em; }
  .cta h2 { font-size: clamp(26px, 7vw, 40px); }

  /* section labels wrap instead of clipping the count */
  .section-label { flex-wrap: wrap; gap: 10px 14px; }
  .rule-fill { flex: 1 1 30px; }

  /* two even stat cells per row */
  .stat-pill { min-width: 45%; padding: 16px 18px; }

  /* larger, easier-to-read small text on mobile */
  .tagline { font-size: 11px; letter-spacing: 0.08em; }
  .partner-loc,
  .filter-label,
  .card-modality,
  .card-license,
  .modal-section-title,
  .principle .tag,
  .person-role,
  .eyebrow,
  .section-label > span,
  .section-label .count { font-size: 12px; }
  .person-bio,
  .partner-desc,
  .step p,
  .principle p,
  .card .developer { font-size: 14px; line-height: 1.55; }
  .person-aff { font-size: 15px; }
  .mission-body p { font-size: 16px; }
}

/* ============================================================================
   Accessibility — focus visibility, skip link, reduced motion
   ============================================================================ */

/* Skip-to-content link (visible on keyboard focus) */
.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 10px 16px;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 8px; }

/* Visible keyboard focus for every interactive element */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}
/* the search field and selects clear the default outline; restore it for keyboard */
#search:focus-visible,
#commercial-filter:focus-visible,
#sort-by:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}
/* chips and stat pills are <button> — strip native chrome, keep the design */
button.chip,
button.stat-pill {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  text-align: left;
}
/* keyboard focus for the card (role="button") */
.card:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

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

.workflow-audio {
  display: block;
  width: 100%;
  margin: 1rem auto;
}

.workflow-video {
  display: block;
  max-width: 100%;
  max-height: 60vh;
  margin: 0 auto;
  box-shadow: inset 0 0 0 1px var(--ink);
}
.credits {
   position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  color: gray;
  font-size: .7em;
}