:root {
  --ink: #181815;
  --muted: #77766f;
  --paper: #f6f5f0;
  --card: #fbfaf6;
  --line: #d9d7cf;
  --accent: #ff5c35;
  --yellow: #f3d65c;
  --shadow: 0 16px 45px rgba(31, 29, 20, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Manrope, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
a { color: inherit; }
button, select { cursor: pointer; }
.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 20; opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.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; }
.site-header {
  height: 74px; padding: 0 clamp(20px, 4vw, 64px); border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  font-family: "DM Mono", monospace; font-size: 11px; letter-spacing: .12em;
}
.brand { display: flex; gap: 11px; align-items: center; font-weight: 500; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 29px; height: 29px; font-family: system-ui, sans-serif; font-size: 25px; line-height: 1; }
.header-meta { display: flex; gap: 9px; align-items: center; color: var(--muted); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #4fa94d; box-shadow: 0 0 0 4px rgba(79,169,77,.12); }
.github-link { justify-self: end; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 3px; }
main { overflow: hidden; }
.hero { max-width: 1320px; margin: 0 auto; padding: clamp(76px, 11vw, 155px) clamp(20px, 6vw, 92px) clamp(70px, 10vw, 126px); position: relative; }
.hero::after { content: "HF"; position: absolute; right: -1vw; top: 10px; font-size: clamp(230px, 34vw, 490px); font-weight: 800; letter-spacing: -.11em; color: transparent; -webkit-text-stroke: 1px rgba(24,24,21,.055); z-index: -1; }
.eyebrow { margin: 0 0 25px; font: 500 11px/1 "DM Mono", monospace; letter-spacing: .18em; color: var(--accent); }
h1 { max-width: 880px; margin: 0; font-size: clamp(58px, 8.8vw, 126px); line-height: .88; letter-spacing: -.075em; font-weight: 700; }
h1 em { font-family: Georgia, serif; font-weight: 400; letter-spacing: -.06em; }
.hero-copy { max-width: 430px; margin: 38px 0 0 auto; padding-left: 42px; border-left: 1px solid var(--line); color: var(--muted); font-size: 15px; line-height: 1.7; }
.explorer { max-width: 1440px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 64px) 100px; }
.toolbar { min-height: 72px; display: grid; grid-template-columns: minmax(260px, 1fr) auto 54px; border: 1px solid var(--ink); background: var(--card); box-shadow: var(--shadow); }
.search-wrap { display: flex; align-items: center; gap: 15px; padding: 0 22px; border-right: 1px solid var(--line); }
.search-wrap svg, .icon-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.search-wrap input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 15px; }
kbd { color: var(--muted); border: 1px solid var(--line); background: #efeee8; border-radius: 3px; padding: 3px 7px; font: 10px "DM Mono", monospace; white-space: nowrap; }
.select-wrap { display: flex; align-items: center; gap: 12px; padding: 0 20px; }
.select-label { color: var(--muted); font: 10px "DM Mono", monospace; letter-spacing: .1em; }
select { appearance: none; border: 0; outline: 0; background: transparent; padding-right: 20px; font-size: 13px; font-weight: 700; background-image: linear-gradient(45deg,transparent 50%,var(--ink) 50%),linear-gradient(135deg,var(--ink) 50%,transparent 50%); background-position: calc(100% - 7px) 50%,calc(100% - 3px) 50%; background-size: 4px 4px; background-repeat: no-repeat; }
.icon-button { border: 0; border-left: 1px solid var(--line); background: transparent; display: grid; place-items: center; }
.icon-button:hover svg { transform: rotate(90deg); transition: transform .3s; }
.filter-row { min-height: 85px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--ink); }
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.filter { white-space: nowrap; border: 1px solid var(--line); border-radius: 99px; padding: 8px 13px; background: transparent; color: var(--muted); font: 500 9px "DM Mono", monospace; letter-spacing: .08em; transition: .18s ease; }
.filter:hover, .filter.active { background: var(--ink); border-color: var(--ink); color: white; }
.result-count { flex: none; margin: 0; color: var(--muted); font: 10px "DM Mono", monospace; letter-spacing: .08em; }
.model-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.model-card { min-width: 0; min-height: 288px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; background: transparent; transition: background .2s, transform .2s, box-shadow .2s; }
.model-card:nth-child(3n) { border-right: 0; }
.model-card:hover { z-index: 2; background: var(--card); transform: translateY(-3px); box-shadow: var(--shadow); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.author { min-width: 0; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; }
.avatar { width: 26px; height: 26px; flex: none; object-fit: cover; border-radius: 50%; background: var(--line); }
.avatar-fallback { display: grid; place-items: center; color: white; font-size: 10px; font-weight: 700; }
.badges { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.badge { border: 1px solid var(--line); border-radius: 2px; padding: 4px 6px; font: 8px "DM Mono", monospace; letter-spacing: .07em; color: var(--muted); }
.badge.gated { color: var(--accent); border-color: rgba(255,92,53,.35); }
.model-name { display: block; margin: 27px 0 8px; color: var(--ink); text-decoration: none; font-size: clamp(18px, 2vw, 25px); line-height: 1.15; font-weight: 700; letter-spacing: -.04em; overflow-wrap: anywhere; }
.model-name:hover { color: var(--accent); }
.model-task { margin: 0; color: var(--muted); font: 10px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }
.card-bottom { position: absolute; bottom: 27px; left: 28px; right: 28px; display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.stats { display: flex; flex-wrap: wrap; gap: 15px; }
.stat { display: flex; align-items: center; gap: 5px; color: var(--muted); font: 10px "DM Mono", monospace; }
.stat svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.providers { display: flex; }
.provider { width: 24px; height: 24px; margin-left: -5px; border: 2px solid var(--paper); border-radius: 50%; display: grid; place-items: center; color: white; font: 700 8px "DM Mono", monospace; text-transform: uppercase; }
.empty { grid-column: 1/-1; padding: 80px 20px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--ink); margin-bottom: 8px; font-size: 22px; }
.load-more-wrap { display: flex; justify-content: center; padding-top: 42px; }
.load-more { border: 1px solid var(--ink); background: transparent; padding: 16px 23px; font: 500 10px "DM Mono", monospace; letter-spacing: .1em; transition: .2s; }
.load-more:hover { background: var(--ink); color: white; }
.error-panel { margin: 24px 0; padding: 20px; border: 1px solid #d95a3d; background: #fff5f1; display: flex; align-items: center; gap: 18px; }
.error-panel[hidden] { display: none; }
.error-panel > span { font: 700 22px Georgia; color: var(--accent); }
.error-panel strong { font-size: 13px; }
.error-panel p { margin: 3px 0 0; font-size: 11px; color: var(--muted); }
.error-panel button { margin-left: auto; border: 0; background: none; font: 500 9px "DM Mono", monospace; text-decoration: underline; }
footer { min-height: 100px; padding: 0 clamp(20px,4vw,64px); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: var(--muted); font: 10px "DM Mono", monospace; letter-spacing: .08em; }
footer a { color: var(--ink); }
.skeleton-card { display: block; }
.skeleton { background: linear-gradient(90deg,#e9e7df 25%,#f3f1eb 50%,#e9e7df 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 3px; }
.sk-line { width: 70%; height: 10px; margin-bottom: 28px; }.sk-line.short { width: 34%; }.sk-title { width: 85%; height: 27px; margin-bottom: 12px; }.skeleton-stats { position: absolute; bottom: 28px; display: flex; gap: 10px; }.sk-pill { width: 62px; height: 15px; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (max-width: 900px) {
  .model-grid { grid-template-columns: repeat(2,1fr); }
  .model-card:nth-child(3n) { border-right: 1px solid var(--line); }
  .model-card:nth-child(2n) { border-right: 0; }
  .header-meta { display: none; }
  .site-header { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .site-header { height: 62px; }
  .github-link { font-size: 9px; }
  .hero { padding-top: 72px; }
  .hero-copy { margin-left: 0; padding-left: 20px; }
  .toolbar { grid-template-columns: 1fr 52px; }
  .select-wrap { grid-column: 1/-1; grid-row: 2; min-height: 53px; border-top: 1px solid var(--line); }
  .icon-button { grid-column: 2; grid-row: 1; }
  .search-wrap { border-right: 0; min-height: 62px; }
  .filter-row { align-items: flex-start; flex-direction: column; padding: 10px 0 16px; }
  .filters { max-width: 100%; }
  .model-grid { grid-template-columns: 1fr; }
  .model-card, .model-card:nth-child(3n), .model-card:nth-child(2n) { border-right: 0; min-height: 265px; padding-inline: 10px; }
  .card-bottom { left: 10px; right: 10px; }
  footer { padding-block: 28px; gap: 20px; align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* LLM intelligence layer */
.capability-bar { display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:14px 0 18px; border-bottom:1px solid var(--line); }
.capability-label { margin-right:7px; color:var(--accent); font:500 9px "DM Mono",monospace; letter-spacing:.13em; }
.capability-bar label { display:flex; align-items:center; gap:6px; padding:7px 10px; border:1px solid var(--line); border-radius:3px; background:var(--card); color:var(--muted); font:500 9px "DM Mono",monospace; text-transform:uppercase; letter-spacing:.04em; cursor:pointer; }
.capability-bar label:has(input:checked) { border-color:var(--ink); background:var(--ink); color:white; }
.capability-bar input { accent-color:var(--accent); }
.provider-select { margin-left:auto; text-transform:none !important; }
.provider-select select { border:0; outline:0; background:transparent; color:inherit; font:inherit; }
.clear-filters { border:0; background:transparent; color:var(--muted); font:500 9px "DM Mono",monospace; text-decoration:underline; }
.dataset-summary { display:grid; grid-template-columns:repeat(6,1fr); border-bottom:1px solid var(--line); }
.dataset-summary div { min-height:82px; display:flex; flex-direction:column; justify-content:center; padding:14px; border-right:1px solid var(--line); }
.dataset-summary div:last-child { border-right:0; }
.dataset-summary strong { font-size:21px; letter-spacing:-.04em; }
.dataset-summary span { margin-top:5px; color:var(--muted); font:8px "DM Mono",monospace; letter-spacing:.07em; }
.model-card { cursor:pointer; }
.model-card:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
.model-card h2.model-name { margin-top:0; }
.card-signals { display:flex; flex-wrap:wrap; gap:5px; margin-top:15px; }
.signal { padding:4px 6px; border:1px solid var(--line); border-radius:2px; color:var(--muted); font:500 8px "DM Mono",monospace; }
.provider-more { background:#aaa; font-size:8px; }
.model-dialog { width:min(1100px,calc(100vw - 32px)); max-height:calc(100vh - 32px); padding:0; border:1px solid var(--ink); background:var(--paper); color:var(--ink); box-shadow:0 30px 100px rgba(0,0,0,.3); }
.model-dialog::backdrop { background:rgba(24,24,21,.62); backdrop-filter:blur(5px); }
.dialog-head { position:relative; padding:30px clamp(20px,4vw,50px) 34px; border-bottom:1px solid var(--line); }
.dialog-close { position:absolute; top:18px; right:20px; width:36px; height:36px; border:1px solid var(--line); border-radius:50%; background:transparent; font-size:22px; line-height:1; }
.detail-author { display:flex; align-items:center; gap:12px; margin-bottom:34px; }
.avatar-large { width:42px; height:42px; }
.detail-author div { display:flex; flex-direction:column; }
.detail-author span { font-size:12px; font-weight:700; }
.detail-author small { margin-top:3px; color:var(--muted); font:9px "DM Mono",monospace; text-transform:uppercase; }
.detail-eyebrow { margin:0 0 8px; color:var(--accent); font:500 9px "DM Mono",monospace; letter-spacing:.12em; text-transform:uppercase; }
.dialog-head h2 { max-width:900px; margin:0; padding-right:30px; overflow-wrap:anywhere; font-size:clamp(30px,5vw,62px); line-height:.98; letter-spacing:-.055em; }
.detail-actions { display:flex; align-items:center; gap:10px; margin-top:24px; }
.detail-actions a { padding-bottom:3px; border-bottom:1px solid; font:500 9px "DM Mono",monospace; text-decoration:none; }
.badge.open { color:#477c45; border-color:#8db28b; }
.detail-metrics { display:grid; grid-template-columns:repeat(6,1fr); border-bottom:1px solid var(--line); }
.detail-metrics div { min-height:92px; padding:18px; border-right:1px solid var(--line); display:flex; flex-direction:column; justify-content:space-between; }
.detail-metrics div:last-child { border-right:0; }
.detail-metrics span { color:var(--muted); font:8px "DM Mono",monospace; letter-spacing:.08em; }
.detail-metrics strong { font-size:14px; overflow-wrap:anywhere; }
.provider-section { padding:32px clamp(20px,4vw,50px) 50px; }
.section-heading { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:22px; }
.section-heading p { margin:0 0 7px; color:var(--accent); font:9px "DM Mono",monospace; letter-spacing:.12em; }
.section-heading h3 { margin:0; font-size:26px; letter-spacing:-.04em; }
.section-heading > span { max-width:360px; color:var(--muted); font-size:10px; line-height:1.5; text-align:right; }
.provider-table-wrap { overflow-x:auto; border:1px solid var(--line); }
.provider-table { width:100%; border-collapse:collapse; min-width:760px; font-size:11px; }
.provider-table th { padding:11px 14px; border-bottom:1px solid var(--line); color:var(--muted); font:8px "DM Mono",monospace; letter-spacing:.08em; text-align:left; }
.provider-table td { padding:15px 14px; border-bottom:1px solid var(--line); vertical-align:top; }
.provider-table tr:last-child td { border-bottom:0; }
.provider-table td > strong { display:block; font-size:12px; }
.provider-table small { display:block; margin-top:4px; max-width:210px; color:var(--muted); font-size:8px; overflow-wrap:anywhere; }
.row-flags { display:flex; flex-wrap:wrap; gap:3px; margin-top:7px; }
.row-flags span { padding:3px 4px; background:var(--yellow); font:7px "DM Mono",monospace; }
.status-dot { display:inline-block; width:6px; height:6px; margin-right:6px; border-radius:50%; background:#aaa; }
.status-dot.live { background:#4fa94d; }
.feature-list { display:flex; gap:8px; flex-wrap:wrap; }
.feature-list span { padding:4px 6px; border:1px solid var(--line); font:8px "DM Mono",monospace; }
.feature-list .yes { color:#477c45; border-color:#8db28b; }
.feature-list .no { color:#999; }
.no-provider { padding:30px; border:1px solid var(--line); }
.no-provider p { margin:6px 0 0; color:var(--muted); font-size:11px; }
.model-preview { margin:0; padding:30px clamp(20px,4vw,50px) 0; }
.model-preview img { width:100%; max-height:390px; object-fit:cover; border:1px solid var(--line); }
.model-preview figcaption { margin-top:6px; color:var(--muted); font:8px "DM Mono",monospace; text-transform:uppercase; }
@media (max-width:900px) { .dataset-summary { grid-template-columns:repeat(3,1fr); }.dataset-summary div:nth-child(3) { border-right:0; }.detail-metrics { grid-template-columns:repeat(3,1fr); }.detail-metrics div:nth-child(3) { border-right:0; } }
@media (max-width:640px) { .provider-select { margin-left:0; }.dataset-summary { grid-template-columns:repeat(2,1fr); }.dataset-summary div:nth-child(3) { border-right:1px solid var(--line); }.dataset-summary div:nth-child(2n) { border-right:0; }.detail-metrics { grid-template-columns:repeat(2,1fr); }.detail-metrics div:nth-child(3) { border-right:1px solid var(--line); }.detail-metrics div:nth-child(2n) { border-right:0; }.section-heading { align-items:start; flex-direction:column; }.section-heading > span { text-align:left; }.model-dialog { width:100vw; max-height:100vh; height:100vh; border:0; }.dialog-head { padding-top:24px; }.detail-author { padding-right:42px; }.detail-author small { line-height:1.5; } }
