/* Layout: a "model card" for a person — a spec sheet with a mono field-label column on the left and content on the right, stacking to one column on phones. */
:root {
  --paper: #EEF1F5;
  --surface: #FFFFFF;
  --ink: #101826;
  --muted: #566174;
  --rule: #D3DAE3;
  --signal: #F2B300;
  --signal-ink: #1A1400;
  --link: #1D4ED8;
  --prohibited: #A3123A;
  --high: #C2410C;
  --limited: #8A6100;
  --minimal: #24774A;
  --deep: #101826;
  --deep-fg: #EEF1F5;

  --f-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: clamp(2.6rem, 7vw, 5.4rem);
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0B111B; --surface: #111A27; --ink: #E6EAF0; --muted: #98A3B5; --rule: #233044;
    --signal: #F5BE22; --signal-ink: #1A1400; --link: #93B4FF;
    --prohibited: #FF7A98; --high: #FF9A5C; --limited: #F2C552; --minimal: #6FD39A;
    --deep: #18233A; --deep-fg: #EEF1F5;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0B111B; --surface: #111A27; --ink: #E6EAF0; --muted: #98A3B5; --rule: #233044;
  --signal: #F5BE22; --signal-ink: #1A1400; --link: #93B4FF;
  --prohibited: #FF7A98; --high: #FF9A5C; --limited: #F2C552; --minimal: #6FD39A;
    --deep: #18233A; --deep-fg: #EEF1F5;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--f-body);
  padding-inline: var(--gutter);
  padding-block: 0 env(safe-area-inset-bottom, 0px);
}
a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 2px;
}
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.mono { font-family: var(--f-mono); }
.label {
  font: 500 var(--step--1)/1.4 var(--f-mono);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.hl {
  background: linear-gradient(transparent 55%, color-mix(in srgb, var(--signal) 55%, transparent) 55%);
  padding-inline: 0.1em;
}

.page { max-width: 68rem; margin-inline: auto; padding-block: 1.25rem 4rem; }

/* ---------- top bar ---------- */
.topbar {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center; justify-content: space-between;
  padding-block: 0.75rem; padding-top: calc(0.75rem + env(safe-area-inset-top, 0px));
}
.brand { display: flex; align-items: center; gap: 0.6rem; font: 600 1rem/1 var(--f-display); color: var(--ink); text-decoration: none; }
.brand svg { width: 1.6rem; height: 1.6rem; flex: none; }
.topbar nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; }
.topbar nav a { font: 500 var(--step--1)/1.4 var(--f-mono); color: var(--muted); text-decoration: none; letter-spacing: 0.04em; }
.topbar nav a:hover { color: var(--ink); }

/* ---------- the card ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 0.75rem;
}
.hazard {
  height: 10px;
  background: repeating-linear-gradient(-45deg, var(--signal) 0 12px, var(--ink) 12px 24px);
}
.card-head {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between;
  padding: 0.9rem clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid var(--rule);
}

.hero { position: relative; padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2.25rem); }
.hero h1 {
  font-size: var(--step-3); font-weight: 800; line-height: 0.95; letter-spacing: -0.035em;
  font-variation-settings: "opsz" 96;
}
.hero .alias { display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.hero .alias span {
  background: var(--signal); color: var(--signal-ink);
  font: 500 var(--step--1)/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.4rem 0.55rem; border-radius: 2px;
}
.hero .thesis { font-size: var(--step-1); line-height: 1.45; max-width: 40rem; margin-top: 1.25rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font: 500 0.9rem/1 var(--f-mono); letter-spacing: 0.02em;
  padding: 0.85rem 1.1rem; border-radius: 3px; text-decoration: none; cursor: pointer;
  border: 1px solid var(--ink); color: var(--ink); background: transparent;
}
.btn.primary { background: var(--ink); color: var(--surface); }
.btn:hover { transform: translateY(-1px); }

/* scan line: one pass over the hero on load, like an eval sweep */
.scan {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.scan::after {
  content: ""; position: absolute; left: 0; right: 0; height: 40%;
  top: -40%;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--signal) 18%, transparent) 85%, color-mix(in srgb, var(--signal) 70%, transparent) 100%);
  animation: sweep 1.8s cubic-bezier(.6,.1,.3,1) 0.3s 1 forwards;
}
@keyframes sweep { to { top: 110%; } }

/* spec rows: label column + value column */
.spec { border-top: 1px solid var(--rule); }
.row {
  display: grid; grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr);
  gap: 0.5rem 2rem;
  padding: 1rem clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid var(--rule);
}
.row:last-child { border-bottom: 0; }
.row > :last-child { min-width: 0; }
.row .label { padding-top: 0.25rem; }
.status { display: inline-flex; align-items: center; gap: 0.5rem; }
.dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--minimal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--minimal) 22%, transparent); flex: none; }

/* ---------- sections ---------- */
section.block { margin-top: clamp(3rem, 7vw, 5rem); scroll-margin-top: 1rem; }
.block-head {
  display: grid; grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr); gap: 0.5rem 2rem; align-items: baseline;
  padding-bottom: 1rem; border-bottom: 2px solid var(--ink); margin-bottom: 1.5rem;
}
.block-head h2 { font-size: var(--step-2); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.block-head .label { color: var(--ink); }
.block-body { display: grid; grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr); gap: 1.25rem 2rem; }
.block-body > .aside { color: var(--muted); font-size: 0.95rem; }
.block-body > :last-child { min-width: 0; }

/* intended use */
.uses { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.uses li { background: var(--surface); padding: 1.25rem; display: grid; gap: 0.4rem; align-content: start; }
.uses h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.uses p { color: var(--muted); font-size: 0.97rem; }
.oos {
  margin-top: 1rem; padding: 1rem 1.25rem; border: 1px dashed var(--high); border-radius: 4px;
  display: flex; gap: 0.75rem; align-items: baseline; flex-wrap: wrap;
}
.oos .label { color: var(--high); }

/* evals */
.evals { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.evals th, .evals td { text-align: left; padding: 0.9rem 0.75rem 0.9rem 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.evals thead th { font: 500 var(--step--1)/1.4 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--ink); }
.evals td.score { font: 800 clamp(1.6rem, 4vw, 2.4rem)/1 var(--f-display); letter-spacing: -0.03em; white-space: nowrap; }
.evals td.src { font: 400 var(--step--1)/1.4 var(--f-mono); color: var(--muted); }
.table-wrap { overflow-x: auto; }

/* timeline */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.chip {
  font: 500 var(--step--1)/1 var(--f-mono); letter-spacing: 0.04em;
  padding: 0.5rem 0.75rem; border-radius: 999px; border: 1px solid var(--rule);
  background: var(--surface); color: var(--muted); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.timeline { display: grid; }
.entry {
  display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0.25rem 1.5rem;
  padding: 1.1rem 0; border-bottom: 1px solid var(--rule);
}
.entry .when { font: 400 var(--step--1)/1.6 var(--f-mono); color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 0.2rem; }
.entry h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.entry .org { color: var(--muted); font-style: italic; }
.entry .tag {
  display: inline-block; margin-left: 0.4rem; vertical-align: 0.15em;
  font: 500 0.68rem/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.25rem 0.4rem; border-radius: 2px; border: 1px solid var(--rule); color: var(--muted); font-style: normal;
}
.entry ul { margin-top: 0.5rem; display: grid; gap: 0.35rem; }
.entry li { padding-left: 1.1rem; position: relative; font-size: 0.98rem; max-width: 46rem; }
.entry li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 0.45rem; height: 2px; background: var(--signal); }

/* capabilities */
.caps { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.6rem; }
.caps li {
  display: flex; gap: 0.6rem; align-items: baseline;
  padding: 0.75rem 0.9rem; background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; font-size: 0.97rem;
}
.caps li::before { content: "✓"; font-family: var(--f-mono); color: var(--minimal); font-weight: 500; }
.frameworks { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.frameworks span {
  font: 500 var(--step--1)/1 var(--f-mono); padding: 0.5rem 0.65rem; border-radius: 2px;
  background: var(--ink); color: var(--surface);
}

/* triage tool */
.triage { background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.triage .hazard { height: 6px; }
.triage-in { padding: 1.25rem; display: grid; gap: 0.75rem; }
.triage textarea {
  width: 100%; min-height: 6.5rem; resize: vertical;
  font: 400 1rem/1.5 var(--f-body); color: var(--ink); background: var(--paper);
  border: 1px solid var(--rule); border-radius: 4px; padding: 0.8rem 0.9rem;
}
.samples { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.samples .label { margin-right: 0.25rem; }
.verdict { border-top: 1px solid var(--rule); padding: 1.25rem; display: grid; gap: 0.9rem; }
.tier { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.tier-badge {
  font: 800 1.5rem/1 var(--f-display); letter-spacing: -0.02em;
  padding: 0.45rem 0.75rem; border-radius: 3px; border: 2px solid currentColor;
}
.tier-badge[data-tier="prohibited"] { color: var(--prohibited); }
.tier-badge[data-tier="high"] { color: var(--high); }
.tier-badge[data-tier="limited"] { color: var(--limited); }
.tier-badge[data-tier="minimal"] { color: var(--minimal); }
.scale { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; max-width: 26rem; }
.scale div { height: 6px; border-radius: 1px; background: var(--rule); }
.scale div.on[data-t="minimal"] { background: var(--minimal); }
.scale div.on[data-t="limited"] { background: var(--limited); }
.scale div.on[data-t="high"] { background: var(--high); }
.scale div.on[data-t="prohibited"] { background: var(--prohibited); }
.flags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.flags span { font: 500 0.75rem/1 var(--f-mono); padding: 0.4rem 0.5rem; border: 1px solid var(--rule); border-radius: 2px; color: var(--muted); }
.checks { display: grid; gap: 0.4rem; }
.checks li { padding-left: 1.4rem; position: relative; font-size: 0.98rem; }
.checks li::before { content: "→"; position: absolute; left: 0; font-family: var(--f-mono); color: var(--muted); }
.fineprint { font: 400 0.78rem/1.5 var(--f-mono); color: var(--muted); }

/* publications */
.pubs { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 0 2rem; }
.pubs li { padding: 0.9rem 0; border-bottom: 1px solid var(--rule); display: grid; gap: 0.2rem; }
.pubs .t { font-weight: 600; line-height: 1.35; }
.pubs .v { font: 400 var(--step--1)/1.5 var(--f-mono); color: var(--muted); }
.pubs a.t { color: var(--ink); text-decoration-color: var(--signal); text-decoration-thickness: 2px; }
.pubs a.t:hover { color: var(--link); }
.pubs a.t::after { content: " ↗"; font-family: var(--f-mono); font-weight: 400; color: var(--muted); }
.pubs .v a { color: var(--muted); }

/* credentials */
.creds { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.5rem 2rem; }
.creds h3 { font: 500 var(--step--1)/1.4 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem; }
.creds li { padding: 0.45rem 0; border-bottom: 1px solid var(--rule); font-size: 0.97rem; display: flex; justify-content: space-between; gap: 1rem; }
.creds li span:last-child { font: 400 var(--step--1)/1.6 var(--f-mono); color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* limitations */
.limits { display: grid; gap: 0.75rem; counter-reset: lim; }
.limits li { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: 1rem; align-items: baseline; font-size: var(--step-1); line-height: 1.4; }
.limits li::before { counter-increment: lim; content: "L-" counter(lim, decimal-leading-zero); font: 500 var(--step--1)/1 var(--f-mono); color: var(--muted); }

/* contact */
.contact {
  background: var(--deep); color: var(--deep-fg); border-radius: 6px; overflow: hidden;
}
.contact-in { padding: clamp(1.5rem, 4vw, 3rem); display: grid; gap: 1.25rem; }
.contact h2 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.contact p { max-width: 38rem; font-size: var(--step-1); opacity: 0.85; }
.contact .label { color: var(--signal); }
.contact .email {
  display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center;
  font: 500 clamp(1rem, 3vw, 1.4rem)/1.2 var(--f-mono); overflow-wrap: anywhere;
}
.contact .email a { color: var(--deep-fg); }
.contact .btn { border-color: var(--deep-fg); color: var(--deep-fg); }
.contact .btn.primary { background: var(--signal); color: var(--signal-ink); border-color: var(--signal); }

footer { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; }

@media (max-width: 720px) {
  .row, .block-head, .block-body { grid-template-columns: minmax(0, 1fr); }
  .row { gap: 0.25rem; }
  .block-body > .aside { order: 2; }
  .entry { grid-template-columns: minmax(0, 1fr); }
  .limits li { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scan::after { animation: none; display: none; }
  .btn:hover { transform: none; }
}

/* ---------- compact-site additions ---------- */
.spec dd { margin: 0; }
.path { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; align-items: baseline; }
.path span { white-space: nowrap; }
.path i { font-style: normal; color: var(--muted); font-family: var(--f-mono); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.label-gap { margin-bottom: 0.5rem; }
.evals .unit { font-size: 0.5em; opacity: 0.6; }

/* current deployment */
.now { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.now article { background: var(--surface); padding: 1.25rem; display: grid; gap: 0.5rem; align-content: start; }
.now h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.now .org { color: var(--muted); font-style: italic; }
.now ul { display: grid; gap: 0.4rem; }
.now li { padding-left: 1.1rem; position: relative; font-size: 0.97rem; }
.now li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 0.45rem; height: 2px; background: var(--signal); }

/* regulatory tracker */
.tracker { background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.tracker .hazard { height: 6px; }
.tracker-bar { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--rule); }
.tracker-bar .filters { margin: 0; }
.live { display: inline-flex; align-items: center; gap: 0.5rem; font: 400 var(--step--1)/1.4 var(--f-mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.feed { display: grid; }
.feed li { display: grid; grid-template-columns: 6.5rem 4.5rem minmax(0, 1fr); gap: 0.25rem 1rem; align-items: baseline; padding: 0.8rem 1.25rem; border-bottom: 1px solid var(--rule); }
.feed li:last-child { border-bottom: 0; }
.feed time { font: 400 var(--step--1)/1.5 var(--f-mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.feed .jur { justify-self: start; font: 500 0.68rem/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 0.3rem 0.4rem; border: 1px solid var(--rule); border-radius: 2px; color: var(--ink); }
.feed a { color: var(--ink); font-weight: 600; line-height: 1.4; text-decoration-color: var(--signal); text-decoration-thickness: 2px; }
.feed a:hover { color: var(--link); }
.feed .src { display: block; font: 400 var(--step--1)/1.5 var(--f-mono); color: var(--muted); }
.feed-empty { padding: 1.5rem 1.25rem; color: var(--muted); }
.tracker-foot { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-top: 1px solid var(--rule); }
@media (max-width: 720px) {
  .feed li { grid-template-columns: auto auto minmax(0, 1fr); }
  .feed li > div { grid-column: 1 / -1; }
}
dl.spec { margin: 0; }
.uses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .uses { grid-template-columns: minmax(0, 1fr); } }
