@font-face {
  font-family: "Fraunces";
  src: url("assets/fraunces.woff2") format("woff2");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("assets/fraunces-italic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/manrope.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #17181c;
  --night: #1f2127;
  --cream: #f7f5f1;
  --paper: #fffefa;
  --mist: #e9e6df;
  --brass: #c69749;
  --brass-deep: #a97c33;
  --green: #4a7a52;
  --green-soft: #dce8dd;
  --amber: #d98a2b;
  --red: #9f4a43;
  --muted: #6f706f;
  --line: #d8d4cc;
  --surface: #fffefa;
  --surface-raised: #ffffff;
  --text: #17181c;
  --text-muted: #686963;
  --radius: 2px;
  --content: 1440px;
  --page-x: clamp(20px, 4vw, 64px);
  --section-y: clamp(56px, 7vw, 104px);
  --row-height: 72px;
  --shadow: 0 24px 70px rgb(23 24 28 / 0.12);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-width: 320px;
  background: var(--cream);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  transition: background-color 180ms ease, color 180ms ease;
}

button, input, select { font: inherit; }
button { color: inherit; }
a { color: inherit; }

button, input, select, .table-shell, .table-scrollbar-top {
  outline: none;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
.table-shell:focus-visible,
.table-scrollbar-top:focus-visible,
a:focus-visible {
  box-shadow: 0 0 0 3px var(--cream), 0 0 0 6px var(--brass-deep);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--cream);
  color: var(--ink);
  padding: 12px 18px;
  font-weight: 700;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--page-x);
  background: var(--ink);
  color: var(--cream);
  border-bottom: 1px solid rgb(198 151 73 / 0.46);
}

.brand { display: inline-flex; min-height: 44px; align-items: center; }
.brand img { display: block; width: 210px; max-width: 44vw; height: auto; }

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgb(247 245 241 / 0.7);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.preview-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgb(198 151 73 / 0.58);
  border-radius: 999px;
  color: var(--cream);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
}

main { overflow: clip; }

.hero {
  position: relative;
  max-width: var(--content);
  margin: 0 auto;
  padding: clamp(76px, 10vw, 150px) var(--page-x) clamp(64px, 8vw, 112px);
}

.hero-copy { max-width: 980px; }

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--page-x);
  width: 1px;
  height: 52px;
  background: var(--brass);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--brass-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.17em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1, h2, h3, p { text-wrap: pretty; }

h1 {
  margin: 0;
  max-width: 920px;
  font-family: "Fraunces", serif;
  font-size: clamp(44px, 5.4vw, 78px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
}

h1 em { color: var(--brass-deep); font-weight: 500; }

.hero-lede {
  max-width: 820px;
  margin: 32px 0 0;
  color: var(--text-muted);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.65;
}

.roadmap h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.workspace {
  max-width: calc(var(--content) + (var(--page-x) * 2));
  margin: 0 auto;
  padding: 24px var(--page-x) var(--section-y);
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.matrix-helper {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.search-field > span,
.sort-field > span {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(180px, 230px) auto auto;
  align-items: end;
  gap: 12px;
  padding: 18px;
  background: var(--ink);
  color: var(--cream);
}

.toolbar label > span { color: rgb(247 245 241 / 0.66); }

.toolbar input,
.toolbar select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgb(247 245 241 / 0.23);
  border-radius: 0;
  background: var(--night);
  color: var(--cream);
  padding: 0 14px;
}

.toolbar input::placeholder { color: rgb(247 245 241 / 0.42); }

.reset-button,
.filter-toggle {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgb(247 245 241 / 0.28);
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.filter-toggle { display: none; }
.filter-toggle span { color: var(--brass); }
.reset-button:hover, .filter-toggle:hover { border-color: var(--brass); }

.workspace-grid {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-top: 0;
}

.filters {
  padding: 8px 22px 32px;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--cream) 82%, var(--surface));
}

.filter-heading {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.filter-heading button { display: none; }

.filters fieldset {
  margin: 0;
  padding: 22px 0 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.filters legend {
  padding: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter-help { margin: 5px 0 12px; color: var(--text-muted); font-size: 11px; }

.check-option {
  min-height: 36px;
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 12px;
}

.check-option input {
  appearance: none;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1px solid #a8a59f;
  border-radius: 2px;
  background: var(--surface-raised);
}

.check-option input:checked {
  border-color: var(--brass-deep);
  background: var(--brass-deep);
  box-shadow: inset 0 0 0 3px var(--surface-raised);
}

.check-option:has(input:checked) { color: var(--text); font-weight: 700; }

.results-panel { min-width: 0; }

.results-summary {
  min-height: 55px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 12px;
}

.results-summary strong { color: var(--text); font-size: 13px; }

.table-shell {
  width: 100%;
  overflow: auto;
  background: var(--surface-raised);
  scrollbar-color: var(--brass) var(--mist);
}

.table-scrollbar-top {
  width: 100%;
  height: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--mist);
  scrollbar-color: var(--brass-deep) var(--mist);
}

.table-scrollbar-top > div { height: 1px; }

table {
  width: 100%;
  min-width: 3180px;
  border-collapse: collapse;
  font-size: 12px;
}

th, td {
  height: var(--row-height);
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  height: 52px;
  background: var(--cream);
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

tbody tr { transition: background-color 120ms ease; }
tbody tr:hover { background: color-mix(in srgb, var(--brass) 7%, var(--surface-raised)); }
.sample-label-row { background: color-mix(in srgb, var(--brass) 8%, var(--surface-raised)); }
.sample-label-row:hover { background: color-mix(in srgb, var(--brass) 8%, var(--surface-raised)); }
.sample-label-row td {
  height: auto;
  padding: 10px 14px 5px;
  border-bottom: 0;
  color: var(--brass-deep);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.public-sample-row { background: color-mix(in srgb, var(--brass) 8%, var(--surface-raised)); }
.public-sample-row:hover { background: color-mix(in srgb, var(--brass) 13%, var(--surface-raised)); }
tbody th { min-width: 112px; }
tbody td:nth-child(2) { min-width: 92px; }
tbody td:nth-child(3) { min-width: 170px; }
tbody td:nth-child(4) { min-width: 180px; }
tbody td:nth-child(5) { min-width: 180px; }
tbody td:nth-child(6) { min-width: 140px; }
tbody td:nth-child(7) { min-width: 190px; }
tbody td:nth-child(8) { min-width: 170px; }
tbody td:nth-child(9) { min-width: 190px; }
tbody td:nth-child(10) { min-width: 220px; }

.profile-link,
.row-open {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.row-open {
  padding: 0 12px;
  border: 1px solid var(--line);
  text-decoration: none;
}

.row-open:hover { border-color: var(--brass-deep); }

.protected-cell { color: var(--text-muted); }
.protected-cell-wide { min-width: 190px; }

.redaction-mask {
  display: grid;
  gap: 7px;
  width: 100%;
  min-width: 118px;
  max-width: 190px;
}

.mask-bar {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: #d3d0c9;
  box-shadow: inset 0 0 0 1px rgb(23 24 28 / 0.025);
}

.mask-bar-xshort { width: 28%; }
.mask-bar-short { width: 44%; }
.mask-bar-medium { width: 62%; }
.mask-bar-long { width: 78%; }
.mask-bar-xlong { width: 94%; }

.redaction-mask-bio,
.redaction-mask-professionalExperience { min-width: 160px; }

.public-field {
  display: block;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.5;
  white-space: normal;
}

.public-field-wide { min-width: 210px; font-weight: 500; }

.public-contact {
  color: var(--ink);
  font-weight: 800;
  overflow-wrap: anywhere;
  text-decoration-color: var(--brass-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.public-sample-identity { display: grid; gap: 9px; color: var(--ink); }
.public-sample-identity > strong { font-family: "Fraunces", serif; font-size: 17px; line-height: 1.15; }

.signal-cell { min-width: 148px; padding-left: 8px; padding-right: 8px; text-align: center; }

.signal {
  display: inline-grid;
  place-items: center;
  min-width: 64px;
  height: 28px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.signal-yes { background: var(--green-soft); color: #315f39; }
.signal-no { background: #f2dcda; color: #8a3933; }
.signal-unknown { background: #eeece7; color: #74736e; }

.empty-state { padding: 70px 30px; text-align: center; }
.empty-state strong { font-family: "Fraunces", serif; font-size: 28px; }
.empty-state p { color: var(--text-muted); }

.roadmap {
  max-width: var(--content);
  margin: 0 auto;
  padding: var(--section-y) var(--page-x) 24px;
}

.roadmap header { max-width: 880px; }

.roadmap-line {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.roadmap-step {
  position: relative;
  min-height: 235px;
  padding: 27px 24px 24px 0;
  border-right: 1px solid var(--line);
}

.roadmap-step + .roadmap-step { padding-left: 24px; }
.roadmap-step:last-child { border-right: 0; }

.roadmap-step::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  width: 11px;
  height: 11px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--cream);
}

.roadmap-step + .roadmap-step::before { left: 24px; }
.roadmap-step-complete::before { border-color: var(--green); background: var(--green); }

.roadmap-number { color: var(--brass-deep); font-size: 11px; font-weight: 800; letter-spacing: 0.12em; }
.roadmap-step strong { display: block; margin-top: 16px; font-family: "Fraunces", serif; font-size: 21px; line-height: 1.15; }
.roadmap-step p { margin: 12px 0 18px; color: var(--text-muted); font-size: 12px; }
.roadmap-status { color: var(--text-muted); font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.roadmap-step-complete .roadmap-status { color: var(--green); }

footer {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 26px var(--page-x);
  background: var(--ink);
  color: rgb(247 245 241 / 0.6);
  font-size: 11px;
}

footer img { width: 190px; }

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgb(23 24 28 / 0.55);
  backdrop-filter: blur(3px);
}

.profile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 21;
  width: min(620px, 94vw);
  height: 100dvh;
  overflow: auto;
  padding: 0 clamp(22px, 5vw, 54px) 52px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: -24px 0 70px rgb(23 24 28 / 0.22);
  transform: translateX(105%);
  transition: transform 220ms cubic-bezier(.2,.7,.2,1);
}

.profile-drawer[aria-hidden="false"] { transform: translateX(0); }
.drawer-open { overflow: hidden; }

.profile-drawer > header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 116px;
  padding: 26px 0 18px;
  background: var(--cream);
  border-bottom: 1px solid var(--ink);
}

.profile-drawer h2 { margin: 0; font-family: "Fraunces", serif; font-size: 36px; line-height: 1; }
.profile-drawer .eyebrow { margin-bottom: 9px; }
.drawer-subtitle { margin: 8px 0 0; color: var(--text-muted); font-size: 13px; font-weight: 700; }

#drawer-close,
.filter-heading button {
  min-width: 66px;
  min-height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

#drawer-close:hover { border-color: var(--brass-deep); }

.drawer-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 30px;
  background: var(--line);
  border: 1px solid var(--line);
}

.drawer-summary > div { min-height: 106px; padding: 18px; background: var(--paper); }
.drawer-summary span { display: block; color: var(--text-muted); font-size: 10px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.drawer-summary strong { display: block; margin-top: 10px; font-size: 14px; line-height: 1.35; }

.drawer-section { padding: 34px 0 4px; }
.drawer-section h3 { margin: 0; font-family: "Fraunces", serif; font-size: 25px; }
.drawer-section > p { margin: 9px 0 22px; color: var(--text-muted); font-size: 13px; }

.protected-list { border-top: 2px solid var(--ink); }
.protected-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.protected-row span { color: var(--text-muted); }
.protected-row strong { font-weight: 800; }
.protected-row .redaction-mask { align-self: center; }

.drawer-signals { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--ink); }
.drawer-signal { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.drawer-signal:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line); }

.drawer-note { margin-top: 34px; padding: 20px 22px; border: 1px solid var(--brass-deep); background: #f3ead9; }
.drawer-note strong { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.drawer-note p { margin: 8px 0 0; color: #5e5545; font-size: 12px; }

.public-summary { margin-top: 22px; }

.public-profile-list,
.public-evidence-list { border-top: 2px solid var(--ink); }

.public-profile-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.65fr) minmax(0, 1.35fr);
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.public-profile-row > span { color: var(--text-muted); }
.public-profile-row > strong { font-weight: 700; line-height: 1.55; }

.public-evidence-row { padding: 17px 0; border-bottom: 1px solid var(--line); }
.public-evidence-row > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.public-evidence-row > div > span:first-child { font-size: 12px; font-weight: 800; }
.public-evidence-row p { margin: 9px 0 0; color: var(--text-muted); font-size: 12px; }

.source-section ol { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.source-section li { border-bottom: 1px solid var(--line); }
.source-section a {
  display: flex;
  min-height: 48px;
  align-items: center;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-decoration-color: var(--brass-deep);
  text-underline-offset: 4px;
}
.source-check-label { margin: 14px 0 0; color: var(--text-muted); font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }

@media (max-width: 1100px) {
  .workspace-grid { grid-template-columns: 210px minmax(0, 1fr); }
  .roadmap-line { grid-template-columns: repeat(3, 1fr); border-top: 0; }
  .roadmap-step { border-top: 1px solid var(--ink); }
  .roadmap-step:nth-child(4) { padding-left: 0; }
  .roadmap-step:nth-child(4)::before { left: 0; }
}

@media (max-width: 820px) {
  :root { --page-x: 20px; }
  .topbar-meta > span:last-child { display: none; }
  .toolbar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .search-field, .sort-field { grid-column: 1 / -1; }
  .filter-toggle { display: block; }
  .workspace-grid { display: block; }
  .filters {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 30;
    width: min(380px, 94vw);
    height: 100dvh;
    overflow: auto;
    border: 0;
    box-shadow: -20px 0 60px rgb(23 24 28 / 0.24);
    transform: translateX(105%);
    transition: transform 180ms ease;
  }
  .filters-open .filters { transform: translateX(0); }
  .filter-heading button { display: block; }
  .results-summary { min-height: 50px; }
  .roadmap-line { grid-template-columns: 1fr 1fr; }
  .roadmap-step:nth-child(odd) { padding-left: 0; }
  .roadmap-step:nth-child(odd)::before { left: 0; }
  .roadmap-step:nth-child(even) { padding-left: 20px; }
  .roadmap-step:nth-child(even)::before { left: 20px; }
  footer { align-items: start; flex-direction: column; }
}

@media (max-width: 560px) {
  .topbar { min-height: 66px; }
  .brand img { width: 170px; }
  .preview-badge { padding-inline: 9px; }
  .hero { padding-top: 78px; }
  h1 { font-size: clamp(41px, 13vw, 62px); }
  .hero-lede { font-size: 16px; }
  .toolbar { grid-template-columns: 1fr 1fr; }
  .search-field, .sort-field { grid-column: 1 / -1; }
  .reset-button, .filter-toggle { width: 100%; }
  .results-summary { align-items: start; flex-direction: column; gap: 2px; padding-block: 12px; }
  .roadmap-line { display: block; }
  .roadmap-step, .roadmap-step + .roadmap-step, .roadmap-step:nth-child(odd), .roadmap-step:nth-child(even) { min-height: 0; padding: 24px 0 28px; border-right: 0; }
  .roadmap-step::before, .roadmap-step + .roadmap-step::before, .roadmap-step:nth-child(odd)::before, .roadmap-step:nth-child(even)::before { left: 0; }
  .drawer-summary, .drawer-signals { grid-template-columns: 1fr; }
  .drawer-signal:nth-child(even) { padding-left: 0; border-left: 0; }
  .protected-row { grid-template-columns: 1fr; gap: 4px; }
  .public-profile-row { grid-template-columns: 1fr; gap: 5px; }
  .public-evidence-row > div { align-items: start; flex-direction: column; gap: 8px; }
}

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