/* Kairos Lab v4: audits page. Column layout: a sticky side column names the section,
   the main column carries the content. Built on the tokens and components of site.css. */

.au-sec { padding: clamp(64px, 8vw, 128px) 0; }
.au-sec + .au-sec { border-top: 1px solid rgba(242, 241, 236, 0.08); }
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border: 1px solid rgba(242, 241, 236, 0.22);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(242, 241, 236, 0.78); white-space: nowrap;
}
.tag--accent { border-color: rgba(74, 222, 128, 0.5); color: #4ADE80; }
.tag--warn { border-color: rgba(252, 211, 77, 0.5); color: #FCD34D; }
.tlink {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink);
  box-shadow: inset 0 -1px 0 rgba(242, 241, 236, 0.3); transition: color .2s, box-shadow .2s;
}
.tlink:hover { color: #4ADE80; box-shadow: inset 0 -1px 0 #4ADE80; }

/* ── Hero: statement left, case file right ────────────────────────────── */
.au-hero { padding: 140px 0 clamp(40px, 5vw, 72px); }
.au-hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(32px, 5vw, 88px); align-items: end; }
.au-hero h1 { margin: 24px 0 0; font-family: var(--f-display); font-variation-settings: 'wdth' 118, 'wght' 720; font-size: clamp(42px, 5vw, 84px); line-height: 0.95; }
.au-hero .lede { margin-top: 26px; max-width: 540px; }
.au-hero .btn-row { margin-top: 30px; }
.au-avail { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(242, 241, 236, 0.62); }
.au-avail b { font-weight: 400; color: var(--ink); }

.casefile { border: 1px solid rgba(242, 241, 236, 0.16); background: rgba(10, 11, 13, 0.78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.casefile__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid rgba(242, 241, 236, 0.1); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(242, 241, 236, 0.6); }
.casefile__title { margin: 0; padding: 20px 18px 6px; font-family: var(--f-display); font-variation-settings: 'wdth' 108, 'wght' 660; font-size: clamp(22px, 2vw, 30px); line-height: 1.05; }
.casefile__title span { display: block; color: rgba(242, 241, 236, 0.55); }
.trace { margin: 0; padding: 8px 18px 4px; list-style: none; }
.trace li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 4px 14px; padding: 12px 0; border-top: 1px solid rgba(242, 241, 236, 0.08); }
.trace__k { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; color: #4ADE80; padding-top: 2px; }
.trace__v { font-family: var(--f-mono); font-size: 13px; color: var(--ink); overflow-wrap: anywhere; }
.trace__d { grid-column: 2; font-size: 13.5px; line-height: 1.5; color: rgba(242, 241, 236, 0.66); }
.casefile__foot { display: flex; flex-wrap: wrap; gap: 4px 22px; padding: 6px 18px 12px; border-top: 1px solid rgba(242, 241, 236, 0.1); }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(48px, 6vw, 88px); border-top: 1px solid rgba(242, 241, 236, 0.14); }
.kpi, .kpi:hover { display: flex; flex-direction: column; gap: 8px; padding: 20px 20px 26px; border-left: 1px solid rgba(242, 241, 236, 0.1); color: var(--ink); transition: background .25s; }
a.kpi:hover { background: rgba(242, 241, 236, 0.04); }
.kpi__v { font-family: var(--f-display); font-variation-settings: 'wdth' 125, 'wght' 720; font-size: clamp(30px, 2.8vw, 44px); line-height: 0.9; font-variant-numeric: tabular-nums; }
.kpi__v em { font-style: normal; color: #4ADE80; }
.kpi__k { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(242, 241, 236, 0.62); }
.kpi__go { margin-top: auto; padding-top: 6px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(242, 241, 236, 0.5); }
a.kpi:hover .kpi__go { color: #4ADE80; }

/* ── Two-column section frame ─────────────────────────────────────────── */
.cols { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 88px); align-items: start; }
.cols__side { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 18px; }
.cols__n { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(242, 241, 236, 0.6); }
.cols__n b { font-weight: 400; color: #4ADE80; margin-right: 10px; }
.cols__side .h2 { font-size: clamp(28px, 2.9vw, 46px); }
.cols__side .lede { font-size: 16px; }
.cols__main { min-width: 0; }

/* ── Case studies ─────────────────────────────────────────────────────── */
.case { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 20px; padding: 30px 0 34px; border-top: 1px solid rgba(242, 241, 236, 0.14); }
.case:last-child { border-bottom: 1px solid rgba(242, 241, 236, 0.14); }
.case__n { font-family: var(--f-display); font-variation-settings: 'wdth' 110, 'wght' 300; font-size: 30px; line-height: 1; color: rgba(242, 241, 236, 0.38); }
.case__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.case__title { margin: 14px 0 0; font-family: var(--f-display); font-variation-settings: 'wdth' 106, 'wght' 640; font-size: clamp(22px, 2.1vw, 32px); line-height: 1.08; text-wrap: balance; }
.case__title a { color: inherit; }
.case__title a:hover { color: #4ADE80; }
.case__rows { margin: 20px 0 0; }
.case__rows > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px 20px; padding: 12px 0; border-top: 1px solid rgba(242, 241, 236, 0.08); }
.case__rows dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(242, 241, 236, 0.55); padding-top: 3px; }
.case__rows dd { margin: 0; font-size: 15px; line-height: 1.6; color: rgba(242, 241, 236, 0.8); text-wrap: pretty; }
.case__rows dd a { color: #4ADE80; }
.case__rows dd b { font-weight: 500; color: var(--ink); }
.case__links { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 24px; margin-top: 10px; }
.case__hash { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; font-family: var(--f-mono); font-size: 12px; color: rgba(242, 241, 236, 0.6); }
.case__hash code { font-family: var(--f-mono); color: var(--ink); }
.sevline { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sevline span { padding: 2px 7px; border: 1px solid currentColor; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }

/* ── Immunefi standing ────────────────────────────────────────────────── */
.live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #FCD34D; }
.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.live.is-live { color: #4ADE80; }
.ranks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid rgba(242, 241, 236, 0.14); background: rgba(10, 11, 13, 0.76); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.rank { display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 22px; border-left: 1px solid rgba(242, 241, 236, 0.1); }
.rank:first-child { border-left: 0; }
.rank.is-me { background: rgba(74, 222, 128, 0.08); }
.rank__k { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(242, 241, 236, 0.62); }
.rank__v { font-family: var(--f-display); font-variation-settings: 'wdth' 122, 'wght' 740; font-size: clamp(34px, 3.6vw, 58px); line-height: 0.9; font-variant-numeric: tabular-nums; }
.rank.is-me .rank__v { color: #4ADE80; }
.rank__s { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.04em; color: rgba(242, 241, 236, 0.55); }
.board { margin-top: 16px; border: 1px solid rgba(242, 241, 236, 0.14); background: rgba(10, 11, 13, 0.76); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.board__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 14px 20px; border-bottom: 1px solid rgba(242, 241, 236, 0.1); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(242, 241, 236, 0.6); }
.board__head b { font-weight: 400; color: var(--ink); }
.brow { display: grid; grid-template-columns: 52px minmax(0, 1fr) 72px 80px; gap: 10px; align-items: center; padding: 12px 20px; border-bottom: 1px solid rgba(242, 241, 236, 0.06); font-family: var(--f-mono); font-size: 13px; font-variant-numeric: tabular-nums; color: rgba(242, 241, 236, 0.8); }
.brow > :nth-child(n+3) { text-align: right; }
.brow--head { padding: 9px 20px; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(242, 241, 236, 0.5); }
.brow > :first-child { color: rgba(242, 241, 236, 0.5); }
.brow > :nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow.is-me { background: rgba(74, 222, 128, 0.1); color: #4ADE80; }
.brow.is-me > :first-child { color: #4ADE80; }
.board__foot, .board__foot:hover { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; padding: 12px 20px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: #4ADE80; transition: background .25s; }
.board__foot:hover { background: rgba(74, 222, 128, 0.08); color: #FFFFFF; }
.board__note { margin: 14px 0 0; font-size: 13px; line-height: 1.6; color: rgba(242, 241, 236, 0.55); }

/* ── Engagement lanes ─────────────────────────────────────────────────── */
.lanes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.lane, .lane:hover { display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid rgba(242, 241, 236, 0.14); border-top: 2px solid rgba(74, 222, 128, 0.55); background: rgba(10, 11, 13, 0.7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--ink); transition: border-color .25s, background .25s; }
.lane:hover { border-color: rgba(74, 222, 128, 0.6); border-top-color: #4ADE80; background: rgba(74, 222, 128, 0.05); }
.lane__k { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #4ADE80; }
.lane__name { margin: 0; font-family: var(--f-display); font-variation-settings: 'wdth' 110, 'wght' 650; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.1; }
.lane__d { margin: 0; font-size: 14.5px; line-height: 1.6; color: rgba(242, 241, 236, 0.72); }
.lane__meta { margin-top: auto; padding-top: 8px; font-family: var(--f-mono); font-size: 12px; color: rgba(242, 241, 236, 0.6); }
.lane-links { display: flex; flex-wrap: wrap; gap: 2px 26px; margin-top: 18px; }

/* ── Process ──────────────────────────────────────────────────────────── */
.steps { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid rgba(242, 241, 236, 0.14); }
.pstep { display: grid; grid-template-columns: 56px minmax(0, 1fr) 96px; gap: 6px 20px; align-items: baseline; padding: 20px 0 18px; border-top: 1px solid rgba(242, 241, 236, 0.14); }
.pstep__n { font-family: var(--f-mono); font-size: 12px; color: #4ADE80; }
.pstep__name { margin: 0; font-family: var(--f-display); font-variation-settings: 'wdth' 112, 'wght' 660; font-size: clamp(19px, 1.6vw, 24px); }
.pstep__when { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(242, 241, 236, 0.6); text-align: right; }
.pstep__d { grid-column: 2 / 4; margin: 0; font-size: 15px; line-height: 1.6; color: rgba(242, 241, 236, 0.74); }
.pstep__bar { grid-column: 2 / 4; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; height: 4px; margin-top: 8px; background: linear-gradient(rgba(242, 241, 236, 0.07), rgba(242, 241, 236, 0.07)); }
.pstep__bar span { background: #4ADE80; }
.pstep__bar--free { display: block; height: 4px; background: none; border: 1px dashed rgba(74, 222, 128, 0.6); }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1023.98px) {
  .au-hero__grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .cols__side { position: static; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ranks { grid-template-columns: minmax(0, 1fr); }
  .rank { border-left: 0; border-top: 1px solid rgba(242, 241, 236, 0.1); }
  .rank:first-child { border-top: 0; }
  .lanes { grid-template-columns: minmax(0, 1fr); }
  .case { grid-template-columns: minmax(0, 1fr); }
  .case__n { margin-bottom: 12px; }
  .case__rows > div { grid-template-columns: minmax(0, 1fr); }
  .case__hash { margin-left: 0; }
  .trace li { grid-template-columns: minmax(0, 1fr); }
  .trace__d { grid-column: 1; }
  .pstep { grid-template-columns: 36px minmax(0, 1fr); }
  .pstep__when { grid-column: 2; text-align: left; }
  .pstep__d, .pstep__bar { grid-column: 2; }
  .brow { grid-template-columns: 40px minmax(0, 1fr) 52px 60px; padding-left: 14px; padding-right: 14px; }
  .kpi { padding: 16px 14px 20px; }
}

/* ── Audit competitions: our findings only ────────────────────────────── */
.comps { margin-top: 18px; border-top: 1px solid rgba(242, 241, 236, 0.14); }
.comp { display: grid; grid-template-columns: minmax(0, 1fr) 96px repeat(4, 64px); gap: 10px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid rgba(242, 241, 236, 0.08); font-family: var(--f-mono); font-size: 14px; font-variant-numeric: tabular-nums; }
.comp > :nth-child(n+2) { text-align: right; }
.comp--head .sm { display: none; }
.comp--head { padding: 10px 0; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(242, 241, 236, 0.55); }
.comp__name { font-family: var(--f-display); font-variation-settings: 'wdth' 110, 'wght' 640; font-size: 19px; color: var(--ink); }
.comp__name small, .comp__rank small { display: block; margin-top: 3px; font-family: var(--f-mono); font-variation-settings: normal; font-size: 11px; letter-spacing: 0.04em; color: rgba(242, 241, 236, 0.5); }
.comp__rank { font-family: var(--f-display); font-variation-settings: 'wdth' 120, 'wght' 720; font-size: 22px; color: var(--ink); }
.comp.is-top { background: rgba(74, 222, 128, 0.07); }
.comp.is-top .comp__rank { color: #4ADE80; }
.comp--total { border-bottom-color: rgba(242, 241, 236, 0.14); }
.comp--total .comp__name { font-family: var(--f-mono); font-variation-settings: normal; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(242, 241, 236, 0.62); }
.comp--total .comp__rank { font-size: 16px; }
@media (max-width: 640px) {
  .comp { grid-template-columns: minmax(0, 1fr) 62px repeat(4, 34px); gap: 6px; font-size: 13px; }
  .comp--head { font-size: 9.5px; letter-spacing: 0.04em; }
  .comp--head .lg { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .comp--head .sm { display: inline; }
  .comp__name { font-size: 16px; }
  .comp__rank { font-size: 18px; }
}

.comp__name a { color: inherit; box-shadow: inset 0 -1px 0 rgba(242, 241, 236, 0.25); }
.comp__name a:hover { color: #4ADE80; box-shadow: inset 0 -1px 0 #4ADE80; }
