/* Hallmark · macrostructure: index-slab (one grade letter as the room, desk on top, archive rows below) · theme: studied-DNA (source: Creative Reference Library, Awwwards SOTD; stone #A1A098, ink #0E0D12, aqua #23E5CC) · nav: N3 tool strip · footer: Ft6 giant mark · contrast: pass (40–41) · slop: pass (42–45) · honest: pass (46) · chrome: pass (47) · tokens: pass (48) · responsive: pass (49) · mobile: pass (34, 49, 50–57) */
/* VETR: an index of devs. Stone field, black letter slabs, one aqua signal. */
@font-face { font-family: "Switzer"; src: url("/assets/fonts/switzer-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("/assets/fonts/switzer-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("/assets/fonts/switzer-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "JB Mono"; src: url("/assets/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --stone: #A1A098;
  --stone-deep: #8C8B83;
  --stone-lit: #AEADA5;
  --ink: #0E0D12;
  --ink-soft: #2A2930;
  --aqua: #23E5CC;
  --cream: #EDE6D6;
  --rust: #B4452F;
  --rust-ink: #661A0F;
  --rule: rgba(14, 13, 18, .35);
  --hint: #4F4E48;
  --stone-clear: rgba(161, 160, 152, 0);
  --pad: clamp(16px, 2.2vw, 44px);
  --ease: cubic-bezier(.7, 0, .2, 1);
  --sans: "Switzer", "Helvetica Neue", Arial, sans-serif;
  --mono: "JB Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }
html { overflow-x: clip; background: var(--stone); color: var(--ink); scrollbar-color: var(--ink) var(--stone-deep); scrollbar-width: thin; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--stone-deep); }
::-webkit-scrollbar-thumb { background: var(--ink); border: 2px solid var(--stone-deep); }
::selection { background: var(--ink); color: var(--aqua); }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.45; font-weight: 400; overflow-x: clip; overflow-wrap: normal; word-break: normal; hyphens: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
svg { width: 1em; height: 1em; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 5px var(--aqua); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--ink); color: var(--cream); padding: 12px 16px; }
.skip:focus { left: 8px; }
.mono { font-family: var(--mono); font-size: .92em; letter-spacing: 0; }
[hidden] { display: none !important; }

/* ---------- header ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 16px var(--pad); color: var(--ink); background: var(--stone); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 7px; }
.brand__name { font-weight: 600; font-size: 15px; line-height: 1.1; }
.brand__name span { font-weight: 400; font-size: 13px; color: var(--ink-soft); }
.nav { display: flex; gap: clamp(16px, 2vw, 32px); }
.nav__a { text-decoration: none; font-weight: 500; font-size: 15px; position: relative; padding: 4px 0; }
.nav__a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav__a:hover::after, .nav__a.is-on::after { transform: scaleX(1); transform-origin: left; }
.nav sup { font-size: 11px; margin-left: 2px; font-weight: 500; }
.tools { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.icon { width: 38px; height: 38px; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 50%; font-size: 17px; transition: background .25s, color .25s; }
.icon:hover { background: var(--ink); color: var(--stone); }
.ca, .buy, .phantom { height: 38px; padding: 0 16px; border: 1.5px solid var(--ink); background: transparent; border-radius: 19px; font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .25s, color .25s; }
.ca:disabled { cursor: default; border-style: dashed; color: var(--ink-soft); }
.ca span { font-family: var(--mono); font-size: 12.5px; }
.buy { background: var(--ink); color: var(--cream); }
.buy[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.phantom:hover, .ca:not(:disabled):hover { background: var(--ink); color: var(--cream); }
.phantom.is-on { background: var(--aqua); border-color: var(--ink); }

/* ---------- desk (hero) ---------- */
.desk { position: relative; min-height: 100svh; padding: 88px var(--pad) 116px; display: grid; grid-template-rows: auto 1fr auto auto auto; overflow: hidden; isolation: isolate; }
.glyph { position: absolute; inset: 88px 0 var(--glyph-floor, 260px) 0; z-index: -1; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.glyph__l { font-weight: 600; color: var(--ink); line-height: .74; font-size: min(calc((100svh - 330px) * 1.36), 64vw); letter-spacing: -.06em; transform-origin: 50% 60%; will-change: transform; user-select: none; }
.desk__intro { max-width: 45ch; font-size: clamp(16px, 1.25vw, 22px); font-weight: 500; margin: 0; line-height: 1.32; }
.desk__row { align-self: center; display: grid; grid-template-columns: 1fr minmax(280px, 640px) 1fr; align-items: center; gap: clamp(12px, 2vw, 40px); }
.big { font-weight: 600; font-size: clamp(44px, 7.4vw, 188px); line-height: .9; letter-spacing: -.045em; color: var(--ink); white-space: nowrap; }
.big--r { text-align: right; }
.vet { display: flex; background: var(--cream); border: 2px solid var(--ink); border-radius: 999px; padding: 8px; box-shadow: 0 0 0 0 var(--aqua); transition: box-shadow .35s var(--ease); }
.vet:focus-within { box-shadow: 0 0 0 6px var(--aqua); }
.vet input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 20px; font-size: 17px; font-family: var(--mono); outline: none; }
.vet input::placeholder { font-family: var(--sans); color: var(--hint); }
.vet__go { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; background: var(--ink); color: var(--cream); padding: 16px 24px; font-weight: 600; font-size: 17px; cursor: pointer; }
.vet__go svg { transition: transform .35s var(--ease); }
.vet__go:hover svg { transform: translateX(4px); }
.vet__go:disabled, .btn:disabled, .phantom:disabled { opacity: .55; cursor: not-allowed; }
.btn:active:not(:disabled), .vet__go:active:not(:disabled), .phantom:active, .buy:active, .ca:active:not(:disabled), .icon:active, .row:active, .link:active, .x:active { transform: translateY(1px); }
.x:hover { background: var(--cream); color: var(--ink); }
.link:hover { text-decoration-thickness: 2px; }
.desk__status { justify-self: center; text-align: center; min-height: 1.5em; margin: 16px 0 0; font-weight: 500; max-width: 70ch; }
.desk__status:not(:empty) { background: var(--cream); padding: 8px 16px; border-radius: 18px; border: 1.5px solid var(--ink); }
.desk__status.is-bad { color: var(--rust-ink); }
.counts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 28px 0 0; padding: 0; font-size: clamp(15px, 1.05vw, 19px); font-weight: 500; }
.counts b { font-weight: 600; }
.desk__how { max-width: 72ch; margin: 20px 0 0; color: var(--ink-soft); font-size: 15px; }
.desk__tick { position: absolute; right: var(--pad); bottom: 116px; font-weight: 600; font-size: clamp(22px, 2vw, 34px); letter-spacing: -.02em; }

/* ---------- shared blocks ---------- */
main > section:not(.desk) { padding: clamp(80px, 9vw, 160px) var(--pad); border-top: 1.5px solid var(--ink); }
.h2 { overflow-wrap: anywhere; min-width: 0; font-weight: 600; font-size: clamp(36px, 5.4vw, 112px); line-height: .94; letter-spacing: -.04em; margin: 0; max-width: 16ch; text-wrap: balance; }
.h3 { font-weight: 600; font-size: clamp(20px, 1.6vw, 28px); letter-spacing: -.02em; margin: 0 0 20px; }
.h3--gap { margin-top: clamp(56px, 6vw, 96px); }
.lede { max-width: 52ch; font-size: clamp(16px, 1.15vw, 20px); margin: 24px 0 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(36px, 4vw, 72px); }
.sec-head .btn { justify-self: start; }
.btn { height: 46px; padding: 0 20px; border: 1.5px solid var(--ink); border-radius: 23px; background: transparent; font-weight: 600; font-size: 15px; cursor: pointer; transition: background .25s, color .25s; }
.btn:hover { background: var(--ink); color: var(--cream); }
.btn--ink { background: var(--ink); color: var(--cream); }
.btn--ink:hover { background: var(--aqua); color: var(--ink); }
.btn.is-on { background: var(--aqua); color: var(--ink); }
.link { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-weight: 500; }

/* ---------- dossier ---------- */
.dossier__empty .lede { max-width: 60ch; }
.dossier__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 4vw, 80px); align-items: start; }
.grade { font-weight: 600; font-size: clamp(160px, 22vw, 420px); line-height: .76; letter-spacing: -.06em; min-width: 1ch; }
.grade.g-A, .grade.g-B { color: var(--ink); text-shadow: .03em .03em 0 var(--aqua); }
.grade.g-D, .grade.g-F { color: var(--ink); text-shadow: .03em .03em 0 var(--rust); }
.grade.g-none { font-size: clamp(64px, 8vw, 150px); line-height: 1; color: var(--ink-soft); }
.addr { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; margin: 16px 0 0; }
.score { font-weight: 500; margin: 20px 0 0; font-size: 18px; }
.evidence { list-style: none; padding: 0; margin: 20px 0 0; border-top: 1.5px solid var(--ink); }
.evidence li { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: clamp(15px, 1.1vw, 19px); }
.evidence li.is-miss { color: var(--ink-soft); font-style: italic; }
.note-line { margin: 16px 0 0; color: var(--ink-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.block { margin-top: clamp(56px, 6vw, 112px); }
.block--split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 80px); }

.table { border-top: 1.5px solid var(--ink); overflow-x: auto; }
.tr { display: grid; grid-template-columns: minmax(180px, 2.2fr) 1fr 1.3fr 1fr 1fr 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); align-items: baseline; min-width: 760px; }
.th { font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.tr .coin { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr .coin small { font-weight: 400; color: var(--ink-soft); margin-left: 8px; }
.tr .bad { color: var(--rust-ink); font-weight: 600; }
.tr .grad { background: var(--aqua); padding: 1px 8px; border-radius: 4px; font-weight: 600; }
.tr .miss { color: var(--ink-soft); font-style: italic; }
.tr a { text-decoration: none; }
.tr a:hover { text-decoration: underline; }

.funding p { margin: 0 0 12px; }
.sib { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.sib .bad { color: var(--rust-ink); font-weight: 600; }

.notes { list-style: none; padding: 0; margin: 0 0 20px; border-top: 1.5px solid var(--ink); }
.notes li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.notes .who { font-size: 13px; color: var(--ink-soft); display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.notes .flag { color: var(--rust-ink); font-weight: 600; }
.notes p { margin: 0; overflow-wrap: anywhere; }
.noteform textarea { width: 100%; resize: vertical; min-height: 92px; background: var(--stone-lit); border: 1.5px solid var(--ink); border-radius: 14px; padding: 12px 16px; outline: none; }
.noteform textarea:focus { box-shadow: 0 0 0 4px var(--aqua); }
.kind { display: flex; gap: 20px; margin-bottom: 12px; font-weight: 500; }
.kind input { accent-color: var(--ink); }
.noteform__row { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 12px; }
.noteform__msg { min-height: 1.4em; margin: 8px 0 0; font-weight: 500; }

/* ---------- feed rows ---------- */
.rows { border-top: 1.5px solid var(--ink); }
.row { display: grid; grid-template-columns: 4.2ch minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--rule); cursor: pointer; position: relative; background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; }
.row > * { transition: transform .4s var(--ease); }
.row:hover > * { transform: translateX(12px); }
.row::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .4s var(--ease); z-index: -1; }
.rows { position: relative; z-index: 0; }
.row:hover { color: var(--cream); }
.row:hover::before { transform: scaleY(1); }
.row .g { font-weight: 600; font-size: clamp(30px, 2.6vw, 52px); line-height: 1; letter-spacing: -.04em; }
.row .g.g-D, .row .g.g-F { text-shadow: .05em .05em 0 var(--rust); }
.row:hover .g.g-A, .row:hover .g.g-B { color: var(--aqua); }
.row .t { font-weight: 600; font-size: clamp(17px, 1.3vw, 23px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .t small { font-weight: 400; margin-left: 8px; }
.row .m { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .a { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; font-size: 14px; white-space: nowrap; }
.row .x { background: none; border: 1.5px solid currentColor; border-radius: 16px; padding: 4px 12px; cursor: pointer; font-size: 13px; }
.empty { padding: 28px 0; color: var(--ink-soft); border-bottom: 1px solid var(--rule); max-width: 70ch; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--stone); padding: clamp(48px, 6vw, 100px) var(--pad) var(--pad); overflow: hidden; }
.foot__mark { font-weight: 600; font-size: clamp(90px, 25vw, 640px); line-height: .78; letter-spacing: -.065em; color: var(--stone); white-space: nowrap; }
.foot__cols { display: grid; grid-template-columns: 2fr 1.2fr auto; gap: 24px 48px; margin-top: clamp(32px, 4vw, 64px); font-size: 15px; }
.foot__cols p { margin: 0; max-width: 60ch; }
.foot a { color: var(--aqua); }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 60; background: var(--ink); color: var(--cream); padding: 12px 20px; border-radius: 22px; font-weight: 500; max-width: calc(100vw - 32px); box-shadow: 0 0 0 3px var(--aqua); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .desk { --glyph-floor: 320px; }
  .top { grid-template-columns: auto 1fr; }
  .nav { display: none; }
  .desk__row { grid-template-columns: 1fr; justify-items: stretch; }
  .big--r { text-align: left; }
  .big--l { display: none; }
  .block--split, .sec-head { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .desk { display: flex; flex-direction: column; }
  .desk__row { align-self: stretch; }
  .glyph { position: relative; inset: auto; order: 3; height: clamp(200px, 34svh, 320px); justify-content: flex-end; align-items: flex-end; margin-top: -64px; }
  .glyph__l { font-size: clamp(270px, 46svh, 440px); }
  .desk__intro { order: 0; } .desk__row { order: 1; margin-top: 28px; } .desk__status { order: 2; align-self: center; } .counts { order: 4; } .desk__how { order: 5; } .desk__tick { order: 6; }
  .row { grid-template-columns: 3.6ch minmax(0, 1fr) auto; row-gap: 2px; }
  .row .g { grid-row: 1 / span 2; }
  .row .t, .row .m { grid-column: 2; }
  .row .a { grid-column: 3; grid-row: 1 / span 2; }
  .row .a:not(:has(.x)) { display: none; }
  .brand__name span, .ca { display: none; }
  .tools { gap: 8px; }
  .icon { width: 34px; height: 34px; font-size: 15px; }
  .buy, .phantom { height: 34px; padding: 0 12px; font-size: 13px; }
  .desk { padding-top: 92px; }
  .vet { flex-direction: column; border-radius: 22px; gap: 8px; }
  .vet input { padding: 12px 12px; font-size: 15px; }
  .vet__go { justify-content: center; }
  .dossier__head { grid-template-columns: 1fr; }
  .row .m.m2 { display: none; }
  .foot__cols { grid-template-columns: 1fr; }
  .desk__tick { position: static; margin-top: 20px; }
}
@media (max-width: 420px) {
  .brand__name { display: none; }
  .buy { display: none; }
}
@media (min-width: 1900px) {
  body { font-size: 18px; }
  .desk__how { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (min-width: 1900px) {
  .top { padding-top: 20px; padding-bottom: 20px; }
  .brand img { width: 40px; height: 40px; }
  .brand__name { font-size: 18px; } .brand__name span { font-size: 15px; }
  .nav__a { font-size: 18px; }
  .icon { width: 46px; height: 46px; font-size: 20px; }
  .ca, .buy, .phantom { height: 46px; border-radius: 23px; font-size: 16px; padding: 0 20px; }
  .ca span { font-size: 14px; }
}
