/* ──────────────────────────────────────────────────────────────
   Benchmark Arena — editorial minimalism
   cream canvas · ink text · serif headlines · hairline borders
   fonts: Source Serif 4 (headlines) · Inter (UI) · JetBrains Mono (labels)
   ────────────────────────────────────────────────────────────── */

:root {
  /* palette */
  --ink: #141413;
  --ink-soft: #3D3D3A;
  --muted: #5E5D59;
  --secondary: #B0AEA5;
  --canvas: #FAF9F5;
  --canvas-2: #F0EEE6;
  --line: rgba(20, 20, 19, .14);
  --line-strong: rgba(20, 20, 19, .28);

  /* accents — one per block, never mixed */
  --clay: #D97757;
  --fig: #C46686;
  --cactus: #BCD1CA;
  --sky: #6A9BCC;
  --heather: #CBCADB;
  --olive: #788C5D;
  --manilla: #EBDBBC;
  --kraft: #D4A27F;

  /* semantic */
  --bg: var(--canvas);
  --surface: var(--canvas);
  --surface-2: var(--canvas-2);
  --text: var(--ink);
  --dim: var(--muted);
  --dimmer: var(--secondary);
  --border: var(--line);
  --accent: var(--clay);

  /* type */
  --font-serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --mono: var(--font-mono);

  /* shape */
  --r: 16px;
  --r-sm: 10px;
  --wrap: 1200px;
}

/* ── Dark band inverts semantic tokens ── */
.band.dark, .invert {
  --bg: var(--ink);
  --surface: var(--ink);
  --surface-2: #1F1F1D;
  --text: var(--canvas);
  --dim: var(--secondary);
  --dimmer: #7C7A73;
  --border: rgba(250, 249, 245, .16);
  --line-strong: rgba(250, 249, 245, .34);
  background: var(--bg);
  color: var(--text);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; }
body {
  font: 15px/1.6 var(--font-sans);
  background: var(--canvas);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01", "tnum";
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
code, pre, .mono { font-family: var(--font-mono); font-size: 13px; }
h1, h2, h3, .serif { font-family: var(--font-serif); font-weight: 500; letter-spacing: -.01em; }
h1 { font-size: 56px; line-height: 1.05; letter-spacing: -.02em; font-weight: 500; }
h2 { font-size: 30px; line-height: 1.15; }
h3 { font-size: 19px; line-height: 1.3; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--manilla); color: var(--ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* labels: mono, all caps, small */
.eyebrow, .kpi-label, .badge, .tag, th, .panel > h2, .panel-head h2, .copy, .hint code {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
  font-weight: 500;
}
.eyebrow { display: block; color: var(--dim); margin-bottom: 12px; }

/* ── Header ── */
.site-header { border-bottom: 1px solid var(--line); background: rgba(250, 249, 245, .92); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 10; }
.header-row { display: flex; justify-content: space-between; align-items: center; height: 64px; gap: 24px; }
.brand { font-family: var(--font-serif); font-size: 21px; font-weight: 500; letter-spacing: -.01em; color: var(--ink); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.header-links { display: flex; align-items: center; gap: 24px; }
.header-links a { color: var(--muted); font-size: 14px; font-weight: 500; }
.header-links a:hover { color: var(--ink); text-decoration: none; }
.header-links a.on { color: var(--ink); }
.header-links .mono-link { font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em; }
.header-sep { width: 1px; height: 18px; background: var(--line); }
@media (max-width: 640px) { .header-links { gap: 14px; } .header-links a { font-size: 13px; } .header-sep { display: none; } }

/* ── Bands ── */
main { min-height: 60vh; }
.band { padding: 80px 0; }
.band.tight { padding: 48px 0; }
.band + .band:not(.dark) { border-top: 1px solid var(--line); }
.band.dark { padding: 88px 0; }
@media (max-width: 860px) { .band, .band.dark { padding: 56px 0; } }
.band-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.band-head h2 { max-width: 640px; }
.band-head p { color: var(--dim); max-width: 560px; margin-top: 10px; }
.band-head .more { font-size: 14px; color: var(--dim); white-space: nowrap; }
.band-head .more:hover { color: var(--text); }

/* ── Footer ── */
.site-footer { background: var(--canvas-2); color: var(--ink); border-top: 1px solid var(--line); padding: 88px 0 40px; margin-top: 0; }
.site-footer .eyebrow { color: var(--muted); }
.footer-top { display: grid; grid-template-columns: 1.1fr 1.4fr; gap: 64px; padding-bottom: 64px; border-bottom: 1px solid var(--line); }
.footer-claim { font-family: var(--font-serif); font-size: 30px; line-height: 1.25; letter-spacing: -.01em; max-width: 520px; color: var(--ink); }
.footer-statement .cta { margin-top: 28px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col .eyebrow { margin-bottom: 6px; }
.footer-col a { color: var(--ink-soft); font-size: 14.5px; width: fit-content; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.footer-col a.mono { font-family: var(--font-mono); font-size: 13px; }
.footer-note { color: var(--muted); font-size: 13.5px; line-height: 1.6; max-width: 280px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding-top: 28px; flex-wrap: wrap; }
.footer-brand { font-family: var(--font-serif); font-size: 22px; letter-spacing: -.01em; }
.footer-meta { display: flex; gap: 20px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr; gap: 48px; } .footer-claim { font-size: 26px; } }
@media (max-width: 640px) { .site-footer { padding: 56px 0 32px; } .footer-cols { grid-template-columns: 1fr 1fr; } .footer-col:last-child { grid-column: 1 / -1; } .footer-note { max-width: none; } }

/* ── Hero ── */
.hero { max-width: 880px; }
.hero h1 { margin-bottom: 24px; }
.hero .lede { color: var(--ink-soft); font-size: 20px; line-height: 1.5; max-width: 640px; font-family: var(--font-serif); font-weight: 400; }
.hero .lede code { font-size: 15px; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }
@media (max-width: 860px) { h1 { font-size: 40px; } .hero .lede { font-size: 18px; } }
@media (max-width: 480px) { h1 { font-size: 34px; } }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin-top: 56px; border-top: 1px solid var(--line); }
.kpi { padding: 20px 20px 20px 0; border-right: 1px solid var(--line); margin-right: 20px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; color: var(--dim); }
.kpi:last-child { border-right: 0; }
.kpi b { display: block; font-family: var(--font-serif); font-weight: 500; font-size: 40px; line-height: 1; letter-spacing: -.02em; color: var(--text); margin-bottom: 10px; text-transform: none; }
.kpis.compact { margin-top: 0; border-top: 0; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0 28px; }
.kpis.compact .kpi { padding: 8px 0; border-right: 0; margin-right: 0; }
.kpis.compact .kpi b { font-size: 28px; margin-bottom: 6px; }

/* ── Toolbar / filters ── */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar input, .toolbar select { background: var(--surface); border: 1px solid var(--line-strong); color: var(--text); padding: 11px 16px; border-radius: 999px; font-size: 14px; outline: none; transition: border-color .15s; }
.toolbar input:focus, .toolbar select:focus { border-color: var(--ink); }
.toolbar input::placeholder { color: var(--dimmer); }
.toolbar input { flex: 1; min-width: 240px; }
.toolbar select { cursor: pointer; appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23141413' stroke-width='1.2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-size: 13px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink-soft); cursor: pointer; background: transparent; transition: background .15s, color .15s, border-color .15s; line-height: 1.3; }
.chip:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--canvas); }
.band.dark .chip { color: var(--dim); border-color: var(--border); }
.band.dark .chip.on { background: var(--canvas); color: var(--ink); border-color: var(--canvas); }
label.chip { display: inline-flex; align-items: center; }

/* ── Cards / catalog grid ── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
@media (max-width: 400px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s; cursor: pointer; }
.card:hover { border-color: var(--ink); }
.card-img { height: 160px; background: var(--canvas-2); overflow: hidden; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line); }
.card-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(.98); }
.card-img .placeholder { width: 100%; height: 100%; }
.card-body { padding: 24px 24px 16px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.card h3 { font-size: 21px; }
.card .tagline { color: var(--muted); font-size: 14px; line-height: 1.5; flex: 1; }
.card-meta { display: flex; gap: 14px; color: var(--muted); font-size: 12.5px; flex-wrap: wrap; margin-top: 4px; }
.card-meta b { color: var(--ink); font-weight: 500; }
.card-foot { display: flex; gap: 6px; flex-wrap: wrap; padding: 14px 24px 20px; border-top: 1px solid var(--line); }

/* ── Badges & tags ── */
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft); white-space: nowrap; background: transparent; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--secondary); }
.badge.active::before { background: var(--olive); }
.badge.upcoming::before { background: var(--sky); }
.badge.ended::before { background: var(--secondary); }
.badge.ended, .badge.unknown { color: var(--muted); }
.badge.open { border-color: var(--clay); color: var(--clay); }
.badge.open::before { background: var(--clay); }
.tag { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.tag.compute { color: var(--ink-soft); border-color: var(--line-strong); }
.tag.domain { color: var(--ink); background: var(--canvas-2); border-color: transparent; }
.tag.prize { color: var(--ink); border-color: var(--kraft); background: rgba(212, 162, 127, .18); }
.band.dark .tag.domain { background: var(--surface-2); }
.openpill { color: var(--clay); font-weight: 600; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }

.empty { color: var(--dim); padding: 56px 24px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--r); font-family: var(--font-serif); font-size: 18px; }

/* ── Model-family chips ── */
.fam { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; padding: 3px 10px 3px 8px; border-radius: 999px; color: var(--text); border: 1px solid var(--line); white-space: nowrap; background: var(--surface); }
.fam::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex-shrink: 0; }
.fams { display: flex; gap: 6px; flex-wrap: wrap; }
.conf-low .fam { opacity: .55; } .conf-medium .fam { opacity: .8; }

/* ── Panels ── */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 28px 28px; }
.panel > h2, .panel-head h2 { color: var(--dim); margin-bottom: 20px; font-family: var(--font-mono); font-weight: 500; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; gap: 12px; }
.panel-head h2 { margin: 0; }
.panel-head a { font-size: 13px; color: var(--dim); }
.panel-head a:hover { color: var(--text); }
.panel.fill { background: var(--surface-2); border-color: transparent; }
.hint { color: var(--dim); font-size: 13px; margin-top: 16px; line-height: 1.6; }
.hint b { color: var(--text); font-weight: 500; }
.hint code { font-size: 11px; color: var(--text); text-transform: none; letter-spacing: 0; background: var(--surface-2); padding: 1px 6px; border-radius: 4px; }
.dim { color: var(--dim); } .small { font-size: 12.5px; }
.two { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }

/* stacked share bar */
.stack { display: flex; height: 12px; border-radius: 999px; overflow: hidden; gap: 2px; margin-bottom: 20px; background: var(--surface-2); }
.stack span { display: block; min-width: 3px; }

/* ── Tables ── */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; padding: 10px 14px; color: var(--dim); border-bottom: 1px solid var(--line-strong); font-weight: 500; }
td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tr.is-best td { background: rgba(120, 140, 93, .08); }
td.val { font-family: var(--font-mono); font-weight: 500; white-space: nowrap; }
tr.is-best td.val { color: var(--olive); }
td.desc { color: var(--dim); font-size: 13px; }
td.links a { margin-right: 10px; font-size: 12.5px; font-family: var(--font-mono); color: var(--dim); }
tr.is-baseline td { color: var(--dimmer); }
table.mini { font-size: 13.5px; } table.mini th, table.mini td { padding: 9px 10px; } table.mini td:first-child, table.mini th:first-child { padding-left: 0; }
table.wide td, table.wide th { padding: 14px 14px; }
table.wide td:first-child, table.wide th:first-child { padding-left: 0; }
.crown { color: var(--clay); font-size: 12px; font-weight: 600; font-family: var(--font-mono); }

/* ── People ── */
.people { display: grid; gap: 0; }
.person { display: flex; align-items: center; gap: 12px; font-size: 14px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.people .person:last-child { border-bottom: 0; }
.person.inline { gap: 10px; padding: 0; border: 0; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); flex-shrink: 0; object-fit: cover; }
.person .n { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.person .pm { flex: 1; min-width: 0; }
.person .sub { color: var(--dim); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person .c { color: var(--dim); font-size: 12px; white-space: nowrap; }

/* ── Open problems ── */
.open-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.open-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; color: var(--text); transition: border-color .15s; }
.open-card:hover { text-decoration: none; border-color: var(--clay); }
.oc-top { display: flex; justify-content: space-between; margin-bottom: 18px; gap: 8px; flex-wrap: wrap; }
.oc-name { font-family: var(--font-serif); font-weight: 500; font-size: 22px; line-height: 1.2; margin-bottom: 6px; }
.oc-comp { color: var(--dim); font-size: 13px; margin-bottom: 10px; }
.oc-desc { color: var(--muted); font-size: 13.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.oc-foot { color: var(--dim); font-size: 12.5px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.oc-foot b { color: var(--ink); }

/* ── Detail page ── */
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--dim); font-size: 13px; margin-bottom: 32px; font-family: var(--font-mono); letter-spacing: .02em; }
.back:hover { color: var(--text); text-decoration: none; }
.detail-hero { display: grid; grid-template-columns: 1fr 360px; gap: 64px; align-items: start; }
@media (max-width: 960px) { .detail-hero { grid-template-columns: 1fr; gap: 32px; } }
.detail-hero h1 { font-size: 52px; margin: 20px 0 16px; }
@media (max-width: 860px) { .detail-hero h1 { font-size: 38px; } }
.detail-hero .tagline { color: var(--ink-soft); font-size: 22px; line-height: 1.4; margin-bottom: 20px; font-family: var(--font-serif); font-weight: 400; }
.detail-hero .desc { line-height: 1.7; margin-bottom: 20px; max-width: 640px; color: var(--ink-soft); font-size: 16px; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.org { color: var(--dim); font-size: 14px; margin-top: 8px; }
.org a { color: var(--ink); }
.cta { display: flex; gap: 10px; margin-top: 32px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-size: 14px; font-weight: 500; border: 1px solid var(--line-strong); background: transparent; color: var(--text); cursor: pointer; transition: background .15s, color .15s, border-color .15s; line-height: 1.2; }
.btn:hover { text-decoration: none; border-color: var(--ink); background: var(--canvas-2); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--canvas); }
.btn.primary:hover { background: var(--ink-soft); border-color: var(--ink-soft); }
.btn.small { padding: 7px 13px; font-size: 12.5px; gap: 6px; font-family: inherit; }
.btn svg, .ask svg.chev, .line-ico { width: 14px; height: 14px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.btn.small svg { width: 12px; height: 12px; }
.brand-ico { width: 15px; height: 15px; flex-shrink: 0; fill: currentColor; }

/* Ask {agent}: split pill, main action + agent picker */
.ask { display: inline-flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: 999px; transition: border-color .15s; }
.ask:hover { border-color: var(--ink); }
.ask button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 14px; font-weight: 500; line-height: 1.2; cursor: pointer; transition: background .15s; }
.ask button:hover, .ask-caret[aria-expanded] { background: var(--canvas-2); }
.ask-main { padding: 12px 12px 12px 18px; border-radius: 999px 0 0 999px; }
.ask-main .brand-ico { color: var(--clay); }
.ask-caret { padding: 0 14px 0 10px; border-left: 1px solid var(--line) !important; border-radius: 0 999px 999px 0; }
.ask-caret .chev { transform: rotate(90deg); transition: transform .15s; }
.ask-caret[aria-expanded] .chev { transform: rotate(-90deg); }
.ask.small button { font-size: 12.5px; gap: 6px; }
.ask.small .ask-main { padding: 7px 8px 7px 12px; }
.ask.small .ask-caret { padding: 0 10px 0 7px; }
.ask.small .brand-ico { width: 13px; height: 13px; }
.ask.small svg.chev { width: 12px; height: 12px; }
.card-cta { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 24px 20px; cursor: default; }
.mini-cta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.open-card .mini-cta { margin-top: 16px; }

.ask-menu { position: fixed; z-index: 120; min-width: 210px; padding: 6px; background: var(--canvas); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 12px 32px rgba(20, 20, 19, .14); display: flex; flex-direction: column; }
.ask-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.ask-menu button:hover, .ask-menu button:focus-visible { background: var(--canvas-2); outline: none; }
.ask-menu button.on { font-weight: 600; }
.ask-menu button.on .brand-ico { color: var(--clay); }
.ask-menu button span { flex: 1; }
.ask-menu small { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
.ask-menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 4px; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 130; max-width: min(520px, calc(100vw - 32px)); padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--canvas); font-size: 13.5px; line-height: 1.35; text-align: center; box-shadow: 0 10px 28px rgba(20, 20, 19, .25); opacity: 0; transform: translate(-50%, 8px); pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 480px) { .toast { border-radius: 16px; } .card-cta { padding-left: 20px; padding-right: 20px; } }

.gallery { display: grid; gap: 10px; }
.gallery img { width: 100%; border-radius: var(--r); border: 1px solid var(--line); background: var(--canvas-2); cursor: zoom-in; display: block; }
.gallery img:first-child { grid-column: 1 / -1; }
.gallery.multi { grid-template-columns: 1fr 1fr; }

.facts { display: grid; grid-template-columns: 140px 1fr; gap: 0 20px; font-size: 14.5px; }
.facts dt { color: var(--dim); padding: 10px 0; border-bottom: 1px solid var(--border); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; padding-top: 13px; }
.facts dd { color: var(--text); padding: 10px 0; border-bottom: 1px solid var(--border); }
.facts dt:nth-last-of-type(1), .facts dd:last-of-type { border-bottom: 0; }
.facts dd.na { color: var(--dimmer); font-style: italic; }
.facts dd b { font-weight: 500; }
.req-list { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } .facts dt { border-bottom: 0; padding-bottom: 0; } }

.cols { display: grid; grid-template-columns: 1fr 360px; gap: 64px; align-items: start; }
@media (max-width: 960px) { .cols { grid-template-columns: 1fr; gap: 32px; } }
.section { margin-bottom: 48px; }
.section:last-child { margin-bottom: 0; }
.section > h2 { margin-bottom: 20px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.section > h2 small { color: var(--dim); font-size: 13px; font-weight: 400; font-family: var(--font-sans); letter-spacing: 0; }
aside .panel.section { margin-bottom: 20px; }
.section .panel p { margin-bottom: 10px; line-height: 1.6; }
.section .panel p:last-child { margin-bottom: 0; }
.section .panel p b { font-weight: 500; color: var(--dim); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin-right: 6px; }

pre.quick { background: var(--ink); color: var(--canvas); border-radius: var(--r-sm); padding: 18px 20px; overflow-x: auto; position: relative; line-height: 1.65; margin-top: 16px; font-size: 13px; }
pre.quick code { color: inherit; }
.copy { position: absolute; top: 10px; right: 10px; padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(250, 249, 245, .3); background: transparent; color: var(--canvas); cursor: pointer; }
.copy:hover { background: rgba(250, 249, 245, .12); }

.problem { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 16px; overflow: hidden; }
.problem.is-open { border-color: var(--clay); }
.problem-head { padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; transition: background .15s; }
.problem-head:hover { background: var(--canvas-2); }
.problem-head h3 { font-size: 22px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.problem-head .sub { color: var(--dim); font-size: 13px; margin-top: 6px; line-height: 1.5; }
.best { text-align: right; white-space: nowrap; flex-shrink: 0; }
.best .v { font-family: var(--font-serif); font-size: 30px; color: var(--ink); font-weight: 500; letter-spacing: -.01em; line-height: 1; margin-bottom: 6px; }
.best .v.open { color: var(--clay); }
.best .by { color: var(--dim); font-size: 12.5px; }
.best .by + .by { margin-top: 4px; }
.improve { font-size: 11px; color: var(--olive); font-family: var(--font-mono); letter-spacing: .04em; margin-top: 6px; }
.problem-body { display: none; border-top: 1px solid var(--line); }
.problem.open .problem-body { display: block; }
.problem-body table { font-size: 13.5px; }
.problem-body th { padding: 10px 24px; }
.problem-body td { padding: 12px 24px; }
.spark { display: block; width: calc(100% - 48px); height: 48px; margin: 16px 24px 8px; }
@media (max-width: 640px) { .problem-head { flex-direction: column; align-items: flex-start; } .best { text-align: left; } .problem-body { overflow-x: auto; } }

.links-list a { display: block; font-size: 14px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.links-list a:last-child { border-bottom: 0; }
.agent-box { font-size: 13px; }
.agent-box code { display: block; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; margin: 8px 0; color: var(--text); word-break: break-all; font-size: 12.5px; }
.agent-box.invert { border-color: transparent; }
.agent-box.invert h2 { color: var(--dim); }

.lightbox { position: fixed; inset: 0; background: rgba(20, 20, 19, .92); display: flex; align-items: center; justify-content: center; z-index: 100; cursor: zoom-out; }
.lightbox img { max-width: 92vw; max-height: 92vh; border-radius: var(--r-sm); }

/* ── Agents page ── */
.agent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 20px; }
@media (max-width: 420px) { .agent-grid { grid-template-columns: 1fr; } }
.agent-grid .panel-head h2 { font-family: var(--font-sans); text-transform: none; letter-spacing: 0; }
.agent-grid .sub { font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); margin-bottom: 8px; }
.agent-grid .sub b { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); font-weight: 500; margin-right: 6px; }
.agent-grid .sub:last-child { margin-bottom: 0; }

/* ── Table scroll on narrow ── */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── Responsive fixes ── */
.two > *, .grid > *, .agent-grid > *, .cols > *, .open-grid > *, .detail-hero > * { min-width: 0; }
.panel { min-width: 0; }
.table-scroll table { min-width: 480px; }
.table-scroll.loose table { min-width: 0; }
table.mini td.mono, table.mini td .crown { white-space: nowrap; }
@media (max-width: 720px) {
  .header-links .mono-link, .header-sep { display: none; }
  .wrap { padding: 0 16px; }
  .band-head { margin-bottom: 28px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kpi { margin-right: 16px; padding-right: 8px; }
  .kpi:nth-child(2n) { border-right: 0; }
  .kpi b { font-size: 32px; }
  .panel { padding: 20px; }
  .card-body, .open-card { padding-left: 20px; padding-right: 20px; }
  .card-foot { padding-left: 20px; padding-right: 20px; }
  .hero h1 br { display: none; }
}
.hero h1 { max-width: 18ch; }
.person .fams { flex-shrink: 1; min-width: 0; justify-content: flex-end; }
@media (max-width: 480px) {
  .brand { font-size: 18px; }
  .header-links { gap: 12px; }
  .header-links a { font-size: 13px; }
  .header-row { gap: 12px; }
  .hero h1 { max-width: none; }
}

/* ── Hero with photo ── */
.hero-band { position: relative; overflow: hidden; min-height: 600px; display: flex; align-items: center; padding: 96px 0; }
.hero-band .wrap { position: relative; z-index: 2; width: 100%; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 45%; display: block; filter: saturate(.88) contrast(.96); }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(250, 249, 245, 0) 70%, var(--canvas) 100%),
    linear-gradient(90deg, rgba(250, 249, 245, .97) 0%, rgba(250, 249, 245, .93) 34%, rgba(250, 249, 245, .55) 56%, rgba(250, 249, 245, .04) 82%, rgba(250, 249, 245, 0) 100%);
}
.hero-band .hero { max-width: 620px; }
.hero-band .lede { color: var(--ink); }
.kpi-band { padding: 0 0 72px; }
.kpi-band .kpis { margin-top: 0; }
.band.kpi-band + .band:not(.dark) { border-top: 1px solid var(--line); }
@media (max-width: 860px) {
  .hero-band { min-height: 0; padding: 64px 0 220px; align-items: flex-start; }
  .hero-bg img { object-position: 50% 70%; }
  .hero-bg::after {
    background:
      linear-gradient(180deg, rgba(250, 249, 245, .97) 0%, rgba(250, 249, 245, .93) 45%, rgba(250, 249, 245, .35) 70%, rgba(250, 249, 245, 0) 100%),
      linear-gradient(0deg, var(--canvas) 0%, rgba(250, 249, 245, 0) 22%);
  }
  .kpi-band { padding-bottom: 48px; }
}
.band.kpi-band { border-top: 0; }

/* ── Soft band: cream section with warm filled panels (replaces the dark band) ── */
.band.soft { background: var(--canvas); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band.soft + .band:not(.dark) { border-top: 0; }
.panel.fill { background: var(--canvas-2); border-color: transparent; }
.panel.fill .stack { background: rgba(20, 20, 19, .08); }
.panel.fill .person { border-bottom-color: rgba(20, 20, 19, .1); }
.panel.fill th { border-bottom-color: rgba(20, 20, 19, .3); }
.panel.fill td { border-bottom-color: rgba(20, 20, 19, .1); }
.panel.fill .fam { background: var(--canvas); border-color: rgba(20, 20, 19, .1); }
.panel.fill .hint code { background: var(--canvas); }

/* ── Family page ── */
a.fam:hover { text-decoration: none; border-color: var(--ink); }
.fam-title { display: flex; align-items: center; gap: 20px; }
.fam-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--c); flex-shrink: 0; display: inline-block; }
@media (max-width: 860px) { .fam-dot { width: 20px; height: 20px; } .fam-title { gap: 14px; } }
.fam-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.chip.static { cursor: default; }
.chip.static:hover { border-color: var(--line-strong); color: var(--ink-soft); }
.fam-comp { background: var(--canvas); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 20px; overflow: hidden; }
.fam-comp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 24px 24px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.fam-comp-head h3 { font-size: 24px; margin-bottom: 4px; }
.fam-comp-head .sub { color: var(--dim); font-size: 14px; max-width: 640px; }
.fam-comp-meta { color: var(--dim); font-size: 13px; white-space: nowrap; }
.fam-table th { padding: 10px 24px; }
.fam-table td { padding: 12px 24px; }
.fam-table td.track a { font-weight: 500; }
.fam-table td.rank { white-space: nowrap; }
.fam-table td.desc { max-width: 360px; }
.fam-table .badge { padding: 2px 8px; font-size: 10px; vertical-align: middle; }

/* ── Clickable KPI tiles, shorter hero ── */
a.kpi { color: var(--dim); position: relative; transition: color .15s; }
a.kpi:hover { text-decoration: none; color: var(--ink); }
a.kpi:hover b { color: var(--clay); }
.kpi-arrow { margin-left: 8px; opacity: 0; transition: opacity .15s, transform .15s; display: inline-block; transform: translateX(-4px); }
a.kpi:hover .kpi-arrow { opacity: 1; transform: translateX(0); }
.hero-band { min-height: 520px; padding: 72px 0; }
.hero-band .cta { margin-top: 28px; }
.band-head .dim.small { align-self: flex-end; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
html { scroll-behavior: smooth; }
#catalog, #open, #attribution { scroll-margin-top: 64px; }
@media (max-width: 860px) { .hero-band { padding: 56px 0 200px; } }

/* ── Mobile tables: drop secondary columns, wrap long tokens ── */
.section .panel p, .hint, .oc-desc, .card .tagline, td.desc, .agent-grid .sub, .footer-note { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .c-desc, .c-links, .c-hint, .c-model, .c-comps { display: none; }
  .problem-body table, .fam-table, .table-scroll table { min-width: 0; }
  .problem-body th, .problem-body td, .fam-table th, .fam-table td { padding-left: 16px; padding-right: 16px; }
  .problem-body td:first-child, .problem-body th:first-child, .fam-table td:first-child, .fam-table th:first-child { padding-left: 20px; }
  table.wide td, table.wide th { padding: 12px 8px; }
  .person.inline .n { white-space: normal; }
  .fam-comp-head { padding: 20px 20px 16px; }
  .fam-comp-meta { white-space: normal; }
  .problem-head { padding: 18px 20px; }
  .problem-head h3 { font-size: 19px; }
  .best .v { font-size: 24px; }
  .facts dd { padding-top: 4px; }
  pre.quick { font-size: 12px; padding: 14px 16px; }
}
@media (max-width: 480px) {
  .c-date { display: none; }
  .problem-body td.desc { display: none; }
}
.m-only { display: none; }
@media (max-width: 640px) {
  .c-bests, .c-of { display: none; }
  .m-only { display: inline; }
  .fam-table th, .fam-table td { padding: 12px 10px; font-size: 13px; }
  .fam-table td:first-child, .fam-table th:first-child { padding-left: 16px; }
  .fam-table td.track { min-width: 120px; }
  table.wide .fams { gap: 4px; }
  table.wide .fam { font-size: 11px; padding: 2px 8px 2px 7px; }
}
@media (max-width: 640px) {
  .c-idx { display: none; }
  table.wide td, table.wide th { padding: 12px 6px; }
  table.wide td:first-child, table.wide th:first-child { padding-left: 0; }
  table.wide .person.inline { gap: 8px; }
  table.wide .avatar { width: 28px; height: 28px; }
  .fam-table td, .fam-table th { overflow-wrap: anywhere; }
  .fam-table td.rank { white-space: nowrap; }
}
@media (max-width: 640px) {
  .fam-table th { white-space: nowrap; overflow-wrap: normal; }
  .fam-table td.track { min-width: 96px; font-size: 13px; }
  .fam-table td.val { white-space: nowrap; }
}

/* ── Liquid-metal buttons (hero) ──
   A rotating warm-metal ring (kraft → manilla → cream → clay) under a flat face.
   Pure CSS; hover speeds the shimmer, press sinks the face, click ripples. */
.lm {
  --lm-h: 48px;
  --lm-speed: 7s;
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  height: var(--lm-h); padding: 0 24px; border-radius: 999px; overflow: hidden;
  font-family: var(--font-sans); font-size: 14.5px; font-weight: 500; letter-spacing: .01em; white-space: nowrap;
  color: var(--canvas); cursor: pointer; isolation: isolate; user-select: none;
  box-shadow: 0 1px 2px rgba(20, 20, 19, .18), 0 6px 14px -6px rgba(20, 20, 19, .28);
  transition: box-shadow .2s ease, transform .2s cubic-bezier(.34, 1.56, .64, 1);
}
.lm:hover { text-decoration: none; box-shadow: 0 1px 2px rgba(20, 20, 19, .22), 0 10px 22px -8px rgba(20, 20, 19, .35); --lm-speed: 2.8s; }
.lm:active { transform: translateY(1px) scale(.985); }
.lm-ring {
  position: absolute; inset: -60%; z-index: 0; border-radius: 50%;
  background: conic-gradient(from 0deg,
    #D4A27F 0%, #EBDBBC 14%, #FAF9F5 22%, #D4A27F 34%, #B0AEA5 46%,
    #D97757 56%, #EBDBBC 68%, #FAF9F5 76%, #D4A27F 88%, #D4A27F 100%);
  filter: blur(4px) saturate(.9);
  animation: lm-spin var(--lm-speed) linear infinite;
}
.lm.lm-burst .lm-ring { animation-duration: 1.1s; }
.lm-face {
  position: absolute; inset: 2px; z-index: 1; border-radius: 999px;
  background: linear-gradient(180deg, #2C2C2A 0%, #141413 100%);
  box-shadow: inset 0 1px 0 rgba(250, 249, 245, .12);
  transition: box-shadow .15s ease;
}
.lm:active .lm-face { box-shadow: inset 0 2px 4px rgba(0, 0, 0, .45), inset 0 1px 2px rgba(0, 0, 0, .3); }
.lm-label { position: relative; z-index: 2; text-shadow: 0 1px 1px rgba(0, 0, 0, .35); }
.lm-cream { color: var(--ink); }
.lm-cream .lm-face { background: linear-gradient(180deg, #FFFEFB 0%, #F3F1EA 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9); }
.lm-cream:active .lm-face { box-shadow: inset 0 2px 4px rgba(20, 20, 19, .18); }
.lm-cream .lm-label { text-shadow: none; }
.lm-ripple {
  position: absolute; z-index: 3; width: 24px; height: 24px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(250, 249, 245, .55) 0%, rgba(250, 249, 245, 0) 70%);
  animation: lm-ripple .6s ease-out forwards;
}
.lm-cream .lm-ripple { background: radial-gradient(circle, rgba(212, 162, 127, .55) 0%, rgba(212, 162, 127, 0) 70%); }
@keyframes lm-spin { to { transform: rotate(360deg); } }
@keyframes lm-ripple { from { transform: translate(-50%, -50%) scale(0); opacity: .8; } to { transform: translate(-50%, -50%) scale(5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .lm-ring { animation: none; } }
@media (max-width: 480px) { .lm { --lm-h: 46px; padding: 0 20px; font-size: 14px; } .hero-band .cta { gap: 8px; } }
.lm { overflow: visible; }
.lm-body { position: absolute; inset: 0; border-radius: 999px; overflow: hidden; clip-path: inset(0 round 999px); z-index: 0; }
.lm-ring { filter: blur(3px) saturate(.9); will-change: transform; }

/* primary liquid button: clay instead of ink */
.lm-ink { color: #FFF8F2; }
.lm-ink .lm-face {
  background: linear-gradient(180deg, #E48D6C 0%, #D97757 55%, #C9653F 100%);
  box-shadow: inset 0 1px 0 rgba(255, 244, 235, .45), inset 0 -1px 0 rgba(120, 50, 25, .25);
}
.lm-ink:active .lm-face { box-shadow: inset 0 2px 5px rgba(120, 50, 25, .45), inset 0 1px 2px rgba(120, 50, 25, .3); }
.lm-ink .lm-label { text-shadow: 0 1px 1px rgba(120, 50, 25, .35); }
.lm-ink .lm-ring {
  background: conic-gradient(from 0deg,
    #C9653F 0%, #EBDBBC 14%, #FAF9F5 22%, #D4A27F 34%, #B0AEA5 46%,
    #F0A585 56%, #EBDBBC 68%, #FAF9F5 76%, #D4A27F 88%, #C9653F 100%);
}
.lm-ink { box-shadow: 0 1px 2px rgba(120, 50, 25, .2), 0 6px 14px -6px rgba(217, 119, 87, .45); }
.lm-ink:hover { box-shadow: 0 1px 2px rgba(120, 50, 25, .25), 0 10px 24px -8px rgba(217, 119, 87, .6); }

/* primary liquid button: warm umber (track colour), not black, not clay */
.lm-ink { color: #FAF3EA; box-shadow: 0 1px 2px rgba(40, 24, 16, .22), 0 6px 14px -6px rgba(40, 24, 16, .4); }
.lm-ink:hover { box-shadow: 0 1px 2px rgba(40, 24, 16, .26), 0 10px 24px -8px rgba(40, 24, 16, .5); }
.lm-ink .lm-face {
  background: linear-gradient(180deg, #5A4438 0%, #3E2C23 55%, #2A1D17 100%);
  box-shadow: inset 0 1px 0 rgba(250, 240, 226, .18), inset 0 -1px 0 rgba(0, 0, 0, .25);
}
.lm-ink:active .lm-face { box-shadow: inset 0 2px 5px rgba(0, 0, 0, .5), inset 0 1px 2px rgba(0, 0, 0, .35); }
.lm-ink .lm-label { text-shadow: 0 1px 1px rgba(0, 0, 0, .35); }
.lm-ink .lm-ring {
  background: conic-gradient(from 0deg,
    #D4A27F 0%, #EBDBBC 14%, #FAF9F5 22%, #D4A27F 34%, #B0AEA5 46%,
    #E0B48F 56%, #EBDBBC 68%, #FAF9F5 76%, #D4A27F 88%, #D4A27F 100%);
}

/* ══════════════════════════════════════════════════════════════
   App mode: left sidebar + topbar, catalog first.
   Landing mode keeps the marketing page; the shell just collapses.
   ══════════════════════════════════════════════════════════════ */
.shell { display: flex; min-height: 100vh; }
.shell-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sidebar, .sidebar-scrim, .topbar { display: none; }
.open-app { padding: 8px 14px; font-size: 13px; }
@media (max-width: 720px) { .open-app { display: none; } }

body.app .site-header, body.app .site-footer { display: none; }
body.app .sidebar { display: flex; }
body.app .topbar { display: flex; }
body.app { background: var(--canvas); }

/* sidebar */
.sidebar {
  width: 260px; flex-shrink: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--canvas-2); border-right: 1px solid var(--line); padding: 14px 12px 16px;
  flex-direction: column; gap: 18px; scrollbar-width: none;
}
.sidebar::-webkit-scrollbar { display: none; }
.sb-brand { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 6px 10px; }
.sb-brand a { display: flex; align-items: center; gap: 10px; font-family: var(--font-serif); font-size: 18px; letter-spacing: -.01em; color: var(--ink); }
.sb-brand a:hover { text-decoration: none; }
.sb-mark { width: 24px; height: 24px; border-radius: 7px; background: var(--ink); color: var(--canvas); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 14px; }
.sb-collapse { width: 28px; height: 28px; border-radius: 7px; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.sb-collapse:hover { background: rgba(20, 20, 19, .06); color: var(--ink); }
.sb-group { display: flex; flex-direction: column; gap: 2px; }
.sb-heading { padding: 0 10px; margin-bottom: 6px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--secondary); }
.sb-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 8px;
  color: var(--ink-soft); font-size: 13.5px; cursor: pointer; user-select: none; transition: background .12s, color .12s; line-height: 1.3;
}
.sb-item:hover { background: rgba(20, 20, 19, .05); color: var(--ink); text-decoration: none; }
.sb-item.on { background: rgba(20, 20, 19, .07); color: var(--ink); font-weight: 500; }
.sb-item .l { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sb-item .l span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-item svg { width: 16px; height: 16px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); }
.sb-item.on svg, .sb-item:hover svg { color: var(--ink); }
.sb-item .n { font-family: var(--font-mono); font-size: 11px; color: var(--secondary); flex-shrink: 0; }
.sb-item.on .n { color: var(--muted); }
.sb-item .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex-shrink: 0; margin: 0 3px; }
.sb-item kbd { font-family: var(--font-mono); font-size: 10px; color: var(--secondary); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
.sb-sub { padding-left: 14px; margin-left: 17px; border-left: 1px solid var(--line); display: none; flex-direction: column; gap: 2px; margin-top: 2px; }
.sb-group.open .sb-sub { display: flex; }
.sb-group .sb-item .chev { transition: transform .2s; color: var(--secondary); width: 14px; height: 14px; }
.sb-group.open .sb-item.parent .chev { transform: rotate(90deg); }
.sb-bottom { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.sb-item.mono span { font-family: var(--font-mono); font-size: 12.5px; }

/* topbar */
.topbar {
  position: sticky; top: 0; z-index: 9; height: 56px; align-items: center; justify-content: space-between; gap: 16px; padding: 0 24px;
  background: rgba(250, 249, 245, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.tb-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tb-crumb { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.tb-crumb b { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.tb-crumb a:hover { color: var(--ink); text-decoration: none; }
.tb-toggle { display: none; width: 32px; height: 32px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; align-items: center; justify-content: center; }
.tb-toggle svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tb-right { display: flex; align-items: center; gap: 12px; }
.tb-search { display: flex; align-items: center; gap: 8px; width: 280px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--canvas); }
.tb-search svg { width: 15px; height: 15px; stroke: var(--muted); fill: none; stroke-width: 1.6; flex-shrink: 0; }
.tb-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 13.5px; }
.tb-search input::placeholder { color: var(--dimmer); }
.tb-search kbd { font-family: var(--font-mono); font-size: 10px; color: var(--secondary); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
.tb-search:focus-within { border-color: var(--ink); }
.tb-link { font-size: 13px; color: var(--muted); white-space: nowrap; }
.tb-link:hover { color: var(--ink); text-decoration: none; }

/* page density in app mode */
body.app .band { padding: 28px 0; }
body.app .band.soft { border-top: 0; }
body.app .band + .band:not(.dark) { border-top: 1px solid var(--line); }
body.app .wrap { max-width: 1320px; margin: 0; padding: 0 28px; }
body.app .hero h1 { font-size: 34px; }
body.app .hero .lede { font-size: 16px; font-family: var(--font-sans); color: var(--muted); }
body.app .detail-hero h1 { font-size: 36px; }
body.app .kpis { margin-top: 24px; }
body.app .kpi b { font-size: 28px; }
body.app h2 { font-size: 24px; }
body.app .band-head { margin-bottom: 20px; }
body.app .back { margin-bottom: 16px; }
body.app main { min-height: calc(100vh - 56px); }

/* app home */
.ah-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.ah-head h1 { font-size: 30px; line-height: 1.1; }
.ah-head p { color: var(--muted); margin-top: 6px; font-size: 14px; max-width: 560px; }
.ah-strip { border: 1px solid var(--line); border-radius: var(--r); padding: 18px 22px 14px; margin-bottom: 24px; background: var(--canvas); }
.ah-strip-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.ah-strip-head .t { font-size: 14px; font-weight: 500; }
.ah-strip-head .s { color: var(--muted); font-size: 12.5px; }
.ah-strip-head a { color: var(--muted); font-size: 12.5px; }
.ah-strip-head a:hover { color: var(--ink); }
.ah-bars { display: flex; align-items: flex-end; gap: 10px; height: 118px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.ah-bars::-webkit-scrollbar { display: none; }
.ah-bar { flex: 1 0 64px; max-width: 110px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; color: var(--ink); text-decoration: none; }
.ah-bar:hover { text-decoration: none; }
.ah-bar .v { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
.ah-bar .b { width: 100%; border-radius: 6px 6px 3px 3px; background: var(--c); min-height: 4px; transition: filter .15s; }
.ah-bar:hover .b { filter: brightness(.92); }
.ah-bar .f { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-soft); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.ah-bar .f i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex-shrink: 0; }
.ah-toolbar { margin-bottom: 14px; }
.ah-active { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.ah-active .chip { font-size: 12px; padding: 5px 10px; }
.ah-active .chip .x { margin-left: 6px; opacity: .6; }
body.app .grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
body.app .card-body { padding: 20px 20px 14px; }
body.app .card h3 { font-size: 19px; }

@media (max-width: 960px) {
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; height: 100vh; z-index: 30; transform: translateX(-100%); transition: transform .22s ease; box-shadow: 0 0 0 1px var(--line); }
  body.app.nav-open .sidebar { transform: none; }
  body.app.nav-open .sidebar-scrim { display: block; position: fixed; inset: 0; z-index: 29; background: rgba(20, 20, 19, .35); }
  .tb-toggle { display: inline-flex; }
  .tb-search { width: 160px; }
  .tb-search kbd { display: none; }
  body.app .wrap { padding: 0 16px; }
}
@media (max-width: 560px) { .tb-search { display: none; } .tb-link { display: none; } }

/* app-mode fixes */
.sb-collapse svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 961px) { .sb-collapse { display: none; } }
body.app .panel > h2, body.app .panel-head h2 { font-size: 11px; }
body.app .agent-grid .panel-head h2 { font-size: 13px; }
.ah-strip-head a { white-space: nowrap; }
.ah-strip-head { flex-wrap: nowrap; }
.ah-strip-head > div { min-width: 0; }

/* ── Art: covers, page headers, empty states, easter eggs ── */
.card-art { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.92); transition: transform .5s ease; }
.card:hover .card-art { transform: scale(1.03); }
.detail-art { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; }
.detail-art .card-art { height: 100%; }

.art-band { position: relative; overflow: hidden; }
.art-band .wrap { position: relative; z-index: 2; }
.art-band .hero { max-width: 640px; }
.art-bg img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.9) contrast(.97); }
.art-band .art-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(250, 249, 245, 0) 72%, var(--canvas) 100%),
    linear-gradient(90deg, rgba(250, 249, 245, .97) 0%, rgba(250, 249, 245, .92) 38%, rgba(250, 249, 245, .5) 58%, rgba(250, 249, 245, .05) 84%, rgba(250, 249, 245, 0) 100%);
}
body.app .art-band { padding: 36px 0 44px; }
@media (max-width: 860px) {
  .art-band { padding-bottom: 180px; }
  body.app .art-band { padding-bottom: 150px; }
  .art-band .art-bg::after { background: linear-gradient(180deg, rgba(250, 249, 245, .97) 0%, rgba(250, 249, 245, .93) 52%, rgba(250, 249, 245, .3) 76%, rgba(250, 249, 245, 0) 100%), linear-gradient(0deg, var(--canvas) 0%, rgba(250, 249, 245, 0) 20%); }
  .art-bg img { object-position: 78% 100% !important; }
}

.ah-art { position: relative; height: 150px; border-radius: var(--r); overflow: hidden; margin-bottom: 20px; border: 1px solid var(--line); }
.ah-art .art-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(250, 249, 245, .35) 0%, rgba(250, 249, 245, 0) 45%); }

.empty-art { display: flex; align-items: center; gap: 28px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--canvas); }
.empty-art img { width: 46%; max-width: 420px; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.empty-art > div { padding: 24px 28px 24px 0; }
.ea-title { font-family: var(--font-serif); font-size: 26px; line-height: 1.2; margin-bottom: 8px; }
.ea-text { color: var(--muted); font-size: 14.5px; max-width: 360px; }
@media (max-width: 640px) { .empty-art { flex-direction: column; align-items: stretch; gap: 0; } .empty-art img { width: 100%; max-width: none; } .empty-art > div { padding: 20px; } }

.egg { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(20, 20, 19, .82); backdrop-filter: blur(6px); animation: egg-in .35s ease; cursor: zoom-out; }
.egg figure { margin: 0; max-width: min(1040px, 94vw); background: var(--canvas); border-radius: 20px; overflow: hidden; cursor: default; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); animation: egg-rise .5s cubic-bezier(.2, .8, .2, 1); }
.egg img { display: block; width: 100%; max-height: 70vh; object-fit: cover; }
.egg figcaption { display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; align-items: end; padding: 22px 28px 24px; }
.egg-cap { font-family: var(--font-serif); font-size: 28px; line-height: 1.15; letter-spacing: -.01em; font-style: italic; }
.egg-note { grid-column: 1; color: var(--muted); font-size: 14px; }
.egg-nav { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.egg-nav button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; font-size: 15px; color: var(--ink); }
.egg-nav button:hover { background: var(--canvas-2); border-color: var(--ink); }
@keyframes egg-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes egg-rise { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .egg figcaption { grid-template-columns: 1fr; padding: 18px 20px 20px; } .egg-nav { grid-column: 1; grid-row: auto; margin-top: 10px; } .egg-cap { font-size: 22px; } }
.sb-mark, .footer-brand { cursor: pointer; user-select: none; }

/* ── Brand marks (lobehub static SVG, self-hosted) ── */
.fam-ico { display: inline-block; flex-shrink: 0; vertical-align: middle; object-fit: contain; }
.fam-dot-sm { display: inline-block; border-radius: 50%; background: var(--c); flex-shrink: 0; margin: 0 2px; }
.fam.has-ico::before { display: none; }
.fam.has-ico { padding-left: 7px; gap: 6px; }
.sb-ico { width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ah-bar .f { gap: 6px; }
.fam-logo { width: 56px; height: 56px; border-radius: 14px; border: 1px solid var(--line); background: var(--canvas); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
@media (max-width: 860px) { .fam-logo { width: 44px; height: 44px; border-radius: 11px; } .fam-logo img { width: 30px; height: 30px; } }
.btn-ico { filter: invert(1); opacity: .95; }
.fam-stats { border-top: 0 !important; padding-top: 0 !important; }
.fam-stats .kpis { margin-top: 0; }

/* ── Repo images sit whole on a cream mat: no brutal crops, white backgrounds melt into the mat ── */
.card-img { background: var(--canvas-2); }
.card-img > img:not(.card-art) { object-fit: contain; padding: 16px 20px; mix-blend-mode: multiply; filter: none; background: transparent; }
.gallery img { object-fit: contain; background: var(--canvas-2); padding: 10px; mix-blend-mode: normal; }

/* ── Category banner over the catalog ── */
.ah-art { height: 190px; }
.ah-art .art-bg::after { background: linear-gradient(90deg, rgba(250, 249, 245, .94) 0%, rgba(250, 249, 245, .8) 30%, rgba(250, 249, 245, .25) 55%, rgba(250, 249, 245, 0) 75%); }
.ah-art-cap { position: absolute; left: 28px; top: 50%; transform: translateY(-50%); z-index: 2; max-width: 46%; }
.ah-art-cap .eyebrow { margin-bottom: 6px; }
.ah-art-cap .t { font-family: var(--font-serif); font-size: 30px; line-height: 1.1; letter-spacing: -.01em; }
.ah-art-cap .q { font-family: var(--font-serif); font-style: italic; color: var(--ink-soft); margin-top: 8px; font-size: 16px; }
@media (max-width: 720px) { .ah-art { height: 170px; } .ah-art-cap { left: 18px; max-width: 70%; } .ah-art-cap .t { font-size: 24px; } .ah-art-cap .q { font-size: 14px; } .ah-art .art-bg::after { background: linear-gradient(90deg, rgba(250, 249, 245, .95) 0%, rgba(250, 249, 245, .82) 50%, rgba(250, 249, 245, .1) 100%); } }
.ah-art + .ah-head h1 { display: none; }

/* ── Submit a competition ── */
.submit-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 960px) { .submit-grid { grid-template-columns: 1fr; } }
.submit-form { display: flex; flex-direction: column; gap: 24px; padding: 32px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field .eyebrow { margin: 0; display: flex; gap: 8px; align-items: baseline; }
.field .eyebrow b { color: var(--clay); font-weight: 500; }
.field input, .field textarea { width: 100%; background: var(--canvas); border: 1px solid var(--line-strong); border-radius: 12px; padding: 13px 16px; font: inherit; font-size: 15px; color: var(--ink); outline: none; transition: border-color .15s; resize: vertical; }
.field input#sf-repo { font-family: var(--font-mono); font-size: 14px; }
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: var(--dimmer); }
.field-state { font-size: 13.5px; line-height: 1.5; color: var(--muted); min-height: 0; }
.field-state:empty { display: none; }
.field-state code { font-size: 12.5px; background: var(--canvas-2); padding: 1px 6px; border-radius: 5px; }
.field-state.bad { color: #A8452B; }
.field-state.dup, .field-state.warn { color: #8A6A2B; }
.field-state a { text-decoration: underline; text-underline-offset: 3px; }
.repo-preview { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-left: 3px solid var(--olive); border-radius: 12px; padding: 12px 14px; background: var(--canvas); color: var(--ink); }
.repo-preview img { border-radius: 8px; flex-shrink: 0; }
.rp-name { font-weight: 500; font-family: var(--font-mono); font-size: 13.5px; }
.rp-desc { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.rp-note { margin-top: 8px; color: #8A6A2B; }
.submit-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 4px; }
.submit-actions .btn[disabled] { opacity: .4; cursor: not-allowed; }
.submit-side { display: flex; flex-direction: column; gap: 20px; }
.ticks, .steps { list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 12px; height: 6px; border-left: 1.6px solid var(--olive); border-bottom: 1.6px solid var(--olive); transform: rotate(-45deg); }
.steps { counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-left: 38px; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 2px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: var(--secondary); }
.steps li b { color: var(--ink); font-weight: 500; }
.steps code { font-size: 12px; background: var(--canvas-2); padding: 1px 6px; border-radius: 5px; }
.tb-add { gap: 6px; }
.tb-add svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }
.btn.primary .btn-ico { filter: invert(1); }
@media (max-width: 720px) { .tb-add span { display: none; } .tb-add { padding: 8px; } .submit-form { padding: 22px; } }

/* ── The standard: PROBLEM.md / SUBMISSION.md ── */
.mono-title { font-family: var(--font-mono); font-size: .78em; letter-spacing: -.02em; font-weight: 500; background: var(--canvas-2); border: 1px solid var(--line); border-radius: 12px; padding: 2px 12px 4px; white-space: nowrap; }
.art-band .mono-title { background: rgba(250, 249, 245, .8); }
.std-badge { display: inline-flex; align-items: center; gap: 5px; width: fit-content; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .04em; padding: 3px 9px 3px 7px; border-radius: 999px; border: 1px solid var(--olive); color: #55663F; background: rgba(120, 140, 93, .1); white-space: nowrap; }
.std-badge:hover { text-decoration: none; background: rgba(120, 140, 93, .18); }
.std-badge svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.std-badge.static { vertical-align: middle; }
.std-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.std-grid .panel > h2 { font-family: var(--font-serif); text-transform: none; letter-spacing: -.01em; font-size: 21px !important; color: var(--ink); margin-bottom: 10px; }
.std-grid .panel p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }
.std-files { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1000px) { .std-files { grid-template-columns: 1fr; } }
.std-file { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--ink); min-width: 0; }
.std-file-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px 12px 18px; border-bottom: 1px solid rgba(250, 249, 245, .14); color: var(--canvas); font-size: 13px; }
.std-file-head .btn { color: var(--canvas); border-color: rgba(250, 249, 245, .3); background: transparent; }
.std-file-head .btn:hover { background: rgba(250, 249, 245, .12); border-color: var(--canvas); }
.std-pre { margin: 0; padding: 18px; max-height: 460px; overflow: auto; color: #E9E6DC; font-size: 12.5px; line-height: 1.65; white-space: pre; }
.std-report { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; color: var(--ink-soft); }
.std-report li { padding-left: 22px; position: relative; }
.std-report li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--secondary); }
.std-report li.ok::before { background: var(--olive); }
.std-report li.warn::before { background: var(--kraft); }
.std-report li.miss::before { background: transparent; border: 1.5px solid var(--secondary); }
.std-verdict { margin-top: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--canvas); color: var(--ink-soft); font-size: 13.5px; line-height: 1.5; }
.std-verdict.ok { border-color: var(--olive); background: rgba(120, 140, 93, .08); color: #44552F; }
.std-verdict a { text-decoration: underline; text-underline-offset: 3px; }
.card .std-badge { margin-top: -2px; }

/* ══ Liquid-metal buttons everywhere (same language as the landing hero) ══
   ::before is the rotating warm-metal ring, ::after is the face; content sits above both.
   Large buttons shimmer slowly all the time; small ones only wake up on hover. */
.btn { position: relative; overflow: hidden; isolation: isolate; border: 0; background: transparent; color: var(--ink);
  box-shadow: 0 1px 2px rgba(20, 20, 19, .10), 0 5px 12px -7px rgba(20, 20, 19, .22);
  transition: box-shadow .2s ease, transform .2s cubic-bezier(.34, 1.56, .64, 1); }
.btn::before { content: ""; position: absolute; inset: -90% -20%; z-index: -2; border-radius: 50%;
  background: conic-gradient(from 0deg, #D4A27F 0%, #EBDBBC 14%, #FAF9F5 22%, #D4A27F 34%, #B0AEA5 46%, #E0B48F 56%, #EBDBBC 68%, #FAF9F5 76%, #D4A27F 88%, #D4A27F 100%);
  animation: lm-spin 8s linear infinite; }
.btn::after { content: ""; position: absolute; inset: 1.5px; z-index: -1; border-radius: 999px;
  background: linear-gradient(180deg, #FFFEFB 0%, #F3F1EA 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9); transition: box-shadow .15s ease; }
.btn:hover { background: transparent; border-color: transparent; text-decoration: none;
  box-shadow: 0 1px 2px rgba(20, 20, 19, .14), 0 9px 20px -9px rgba(20, 20, 19, .32); }
.btn:hover::before { animation-duration: 2.8s; }
.btn:active { transform: translateY(1px) scale(.985); }
.btn:active::after { box-shadow: inset 0 2px 4px rgba(20, 20, 19, .18); }

.btn.primary { background: transparent; border-color: transparent; color: #FAF3EA; text-shadow: 0 1px 1px rgba(0, 0, 0, .35);
  box-shadow: 0 1px 2px rgba(40, 24, 16, .22), 0 6px 14px -6px rgba(40, 24, 16, .4); }
.btn.primary::after { inset: 2px; background: linear-gradient(180deg, #5A4438 0%, #3E2C23 55%, #2A1D17 100%);
  box-shadow: inset 0 1px 0 rgba(250, 240, 226, .18), inset 0 -1px 0 rgba(0, 0, 0, .25); }
.btn.primary:hover { background: transparent; border-color: transparent; box-shadow: 0 1px 2px rgba(40, 24, 16, .26), 0 10px 24px -8px rgba(40, 24, 16, .5); }
.btn.primary:active::after { box-shadow: inset 0 2px 5px rgba(0, 0, 0, .5), inset 0 1px 2px rgba(0, 0, 0, .35); }
.btn.primary svg { stroke: currentColor; }
.btn[disabled], .btn[disabled]:hover { opacity: .45; cursor: not-allowed; transform: none; }
.btn[disabled]::before { animation-play-state: paused; }

/* small buttons (cards, tracks, topbar): static ring, shimmer only on hover */
.btn.small { box-shadow: 0 1px 1px rgba(20, 20, 19, .08); }
.btn.small::before { animation-play-state: paused; }
.btn.small:hover::before { animation-play-state: running; animation-duration: 2.4s; }
.btn.small:hover { box-shadow: 0 1px 2px rgba(20, 20, 19, .12), 0 6px 14px -8px rgba(20, 20, 19, .3); }
.btn.small::after { inset: 1px; }

/* the Ask-agent split pill gets the same face so the pair reads as one family */
.ask { position: relative; overflow: hidden; isolation: isolate; border: 0; box-shadow: 0 1px 1px rgba(20, 20, 19, .08); }
.ask::before { content: ""; position: absolute; inset: -120% -20%; z-index: -2; border-radius: 50%;
  background: conic-gradient(from 40deg, #D4A27F 0%, #EBDBBC 14%, #FAF9F5 22%, #D4A27F 34%, #B0AEA5 46%, #E0B48F 56%, #EBDBBC 68%, #FAF9F5 76%, #D4A27F 88%, #D4A27F 100%);
  animation: lm-spin 8s linear infinite paused; }
.ask:hover::before { animation-play-state: running; animation-duration: 2.4s; }
.ask::after { content: ""; position: absolute; inset: 1px; z-index: -1; border-radius: 999px; background: linear-gradient(180deg, #FFFEFB 0%, #F3F1EA 100%); }
.ask:hover { box-shadow: 0 1px 2px rgba(20, 20, 19, .12), 0 6px 14px -8px rgba(20, 20, 19, .3); }

/* buttons on the dark template header stay flat */
.std-file-head .btn { box-shadow: none; border: 1px solid rgba(250, 249, 245, .3); overflow: visible; }
.std-file-head .btn::before, .std-file-head .btn::after { display: none; }

/* click ripple for every button */
.btn .lm-ripple, .ask .lm-ripple { z-index: 1; background: radial-gradient(circle, rgba(212, 162, 127, .5) 0%, rgba(212, 162, 127, 0) 70%); }
.btn.primary .lm-ripple { background: radial-gradient(circle, rgba(250, 249, 245, .5) 0%, rgba(250, 249, 245, 0) 70%); }
@media (prefers-reduced-motion: reduce) { .btn::before, .ask::before { animation: none; } }

/* ── Announcement pill ── */
.intro-pill { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: 10px; width: fit-content; max-width: 100%;
  padding: 5px 14px 5px 5px; border-radius: 999px; font-size: 13.5px; color: var(--ink); margin-bottom: 22px;
  box-shadow: 0 1px 2px rgba(20, 20, 19, .08), 0 6px 16px -10px rgba(20, 20, 19, .3); transition: box-shadow .2s ease, transform .2s ease; }
.intro-pill::before { content: ""; position: absolute; inset: -200% -10%; z-index: -2; border-radius: 50%;
  background: conic-gradient(from 0deg, #D4A27F 0%, #EBDBBC 14%, #FAF9F5 22%, #D4A27F 34%, #B0AEA5 46%, #D97757 56%, #EBDBBC 68%, #FAF9F5 76%, #D4A27F 88%, #D4A27F 100%);
  animation: lm-spin 9s linear infinite; }
.intro-pill::after { content: ""; position: absolute; inset: 1.5px; z-index: -1; border-radius: 999px; background: linear-gradient(180deg, rgba(255, 254, 251, .97) 0%, rgba(245, 243, 236, .97) 100%); }
.intro-pill:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 1px 2px rgba(20, 20, 19, .12), 0 10px 22px -10px rgba(20, 20, 19, .4); }
.intro-pill:hover::before { animation-duration: 3s; }
.ip-tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #FAF3EA; padding: 4px 9px; border-radius: 999px;
  background: linear-gradient(180deg, #5A4438 0%, #2A1D17 100%); }
.ip-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ip-text b { font-family: var(--font-mono); font-weight: 500; font-size: 12.5px; letter-spacing: -.01em; }
.ip-arrow { color: var(--muted); transition: transform .2s ease, color .2s ease; }
.intro-pill:hover .ip-arrow { transform: translateX(3px); color: var(--ink); }
.ah-intro .intro-pill { margin-bottom: 16px; }
@media (max-width: 480px) { .intro-pill { font-size: 12.5px; gap: 8px; } .ip-text b { font-size: 11.5px; } }
@media (prefers-reduced-motion: reduce) { .intro-pill::before { animation: none; } }

/* ── Template blocks: cream paper instead of a black terminal ── */
.std-file { background: #FDFCF8; border: 1px solid var(--line); box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 10px 30px -22px rgba(20, 20, 19, .35); }
.std-file-head { color: var(--ink); background: var(--canvas-2); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.std-file-head .mono { font-weight: 500; font-size: 13.5px; }
.std-where { flex: 1; min-width: 0; color: var(--muted); font-size: 12.5px; margin-left: 4px; }
.std-file-head .btn { color: var(--ink); border: 0; overflow: hidden; box-shadow: 0 1px 1px rgba(20, 20, 19, .08); }
.std-file-head .btn::before, .std-file-head .btn::after { display: block; }
.std-pre { color: var(--ink-soft); background: transparent; font-size: 12.5px; line-height: 1.7; scrollbar-width: thin; scrollbar-color: var(--secondary) transparent; }
.std-pre .y-k { color: #8A4B2F; }
.std-pre .y-c { color: var(--secondary); font-style: italic; }
.std-pre .y-sep { color: var(--secondary); }
.std-pre .y-h { color: var(--ink); font-weight: 500; }

/* hero headline: two balanced lines on desktop */
.hero-band .hero { max-width: 760px; }
.hero-band .hero h1 { max-width: 15em; text-wrap: balance; }
.hero-band .hero .lede { max-width: 620px; }
