/* ======================================================================
   normal.css — "semi-anti-aesthetic" mode, restyled to match the ICML
   2026 poster: dotted starfield ground, dull clashing palette (olive /
   mustard washes vs dusty plum / brick / petrol accents), WordArt title
   with a muted rainbow, a bright rainbow nav band, caution-stripe jobs
   banners, wash section headings, organic-corner cards, doodles, and
   analog glitch artifacts. Same content and structure as before — only
   the design changed. The previous clean look lives in normal_bak.css.
   ====================================================================== */

:root {
  --ink: #21304a;          /* body text */
  --fg: #21304a;
  --muted: #6c7a92;
  --plum: #7a4671;         /* primary accent */
  --brick: #a8552f;        /* secondary accent */
  --mustard: #a8862e;      /* numerals, labels */
  --petrol: #38766e;       /* "good"/faithful */
  --olive: #87a36b;        /* background shapes */
  --mlime: #b3ad5e;
  --slate: #5a6fa0;
  --ground: #fdfff6;
  --card: rgba(179, 173, 94, 0.16);
  --border: #b3ad5e;
  --wash-olive: rgba(179, 173, 94, 0.35);
  --wash-sage: rgba(136, 167, 109, 0.28);
  --wash-mauve: rgba(154, 110, 160, 0.20);
  --dark: #2b291f;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Helvetica Neue", "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  /* tiled dot starfield over a faint diagonal wash, like the poster */
  background-color: var(--ground);
  background-image:
    radial-gradient(rgba(43, 41, 31, 0.10) 1.6px, transparent 2.6px),
    radial-gradient(rgba(122, 70, 113, 0.09) 1.3px, transparent 2.2px),
    linear-gradient(135deg, #fbfdf0 0%, #fdfff6 50%, #f4f6e8 100%);
  background-size: 30px 30px, 56px 56px, auto;
  background-position: 0 0, 15px 22px, 0 0;
  background-attachment: fixed;
}

/* faint scanlines + grain over everything, analog style */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  opacity: 0.12;
  background:
    repeating-linear-gradient(0deg,
      rgba(20, 30, 55, 0.25) 0 1px,
      transparent 1px 5px),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='0.5'/></svg>");
  mix-blend-mode: multiply;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

a { color: var(--plum); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brick); }

code {
  font-family: "Courier New", monospace;
  font-size: 0.92em;
  background: var(--card);
  padding: 1px 5px;
  border-radius: 4px;
}
code.bibkey { color: var(--brick); }

sub, sup { line-height: 0; }

.muted { color: var(--muted); }

/* ---------------------------------------------------------------- */
/* Jobs banners (caution stripes, like the poster's bottom band)     */
/* ---------------------------------------------------------------- */
.jobs-banner {
  display: block;
  text-align: center;
  text-decoration: none;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-weight: 700;
  color: var(--dark) !important;
  background: repeating-linear-gradient(45deg, #b3973a 0 16px, #2b291f 16px 20px) !important;
  padding: 0 !important;
  border-bottom: none !important;
}
.jobs-banner .plate {
  display: block;
  background: #cdb968;
  margin: 4px;
  padding: 8px 16px;
  border: 2px dashed #6e2f1d;
}
.jobs-banner.qy {
  background: repeating-linear-gradient(45deg, #87a36b 0 16px, #2b291f 16px 20px) !important;
}
.jobs-banner.qy .plate { background: #b9c89b; }
.jobs-banner b { color: #8a2f17; }

/* ---------------------------------------------------------------- */
/* Top nav: the bright rainbow band                                   */
/* ---------------------------------------------------------------- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg,
    #ff3b30, #ff9500, #ffe600, #34c759, #2f9cf4, #9b59d0);
  border-bottom: 3px solid var(--dark);
}
.topnav .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topnav .left { display: flex; flex-wrap: wrap; gap: 2px 10px; }
.topnav .left a {
  font-family: "Courier New", monospace;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #141414;
  text-decoration: none;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
  padding: 2px 4px;
}
.topnav .left a::before { content: "★"; margin-right: 3px; font-size: 9px; }
.topnav .left a:first-child::before { content: "★彡"; }
.topnav .left a:hover { background: var(--dark); color: #ffe600; text-shadow: none; }
.topnav .right { display: flex; align-items: center; gap: 10px; }

/* flashy Y2K gel pill */
.spotlight-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7a1500;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.14em;
  padding: 3px 13px;
  border-radius: 999px;
  background: linear-gradient(180deg,
    #ffffff 0%, #ffe95c 38%, #ffb300 52%, #ff8a00 56%, #ffd34d 100%);
  border: 1px solid #c75600;
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.95),
    inset 0 -2px 3px rgba(160, 60, 0, 0.55),
    0 0 8px rgba(255, 220, 60, 0.95);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}
.spotlight-pill .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #d40000;
  animation: pulse 1.2s infinite;
}
.mode-toggle {
  font-family: "Courier New", monospace;
  font-weight: 700;
  font-size: 12px;
  color: #141414;
  text-decoration: none;
  padding: 3px 10px;
  border: 2px dashed var(--dark);
  background: rgba(255, 255, 255, 0.55);
}
.mode-toggle:hover { background: var(--dark); color: #ffe600; }

/* ---------------------------------------------------------------- */
/* Hero                                                               */
/* ---------------------------------------------------------------- */
header.hero {
  position: relative;
  padding: 64px 0 86px;
  background: linear-gradient(180deg,
    rgba(179, 173, 94, 0.55) 0%,
    rgba(179, 173, 94, 0.30) 45%,
    rgba(136, 167, 109, 0.12) 80%,
    transparent 100%);
  overflow: hidden;
}
header.hero::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 26px;
  background:
    radial-gradient(circle at 12% 0, rgba(154, 110, 160, 0.35) 0 38%, transparent 40%),
    radial-gradient(circle at 34% 0, rgba(179, 173, 94, 0.5) 0 30%, transparent 32%),
    radial-gradient(circle at 61% 0, rgba(136, 167, 109, 0.45) 0 34%, transparent 36%),
    radial-gradient(circle at 86% 0, rgba(168, 134, 46, 0.4) 0 30%, transparent 32%);
  pointer-events: none;
}
header.hero::after {
  content: "✦ ✧ ✦";
  position: absolute;
  right: 28px;
  bottom: 18px;
  color: var(--mustard);
  text-shadow: 0 0 6px rgba(90, 111, 160, 0.6), 0 0 2px #fff;
  font-size: 18px;
  letter-spacing: 8px;
  pointer-events: none;
}

.kicker {
  font-family: "Courier New", monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 13px;
  color: var(--brick);
  margin-bottom: 14px;
}
.kicker::before { content: "★彡 "; }

/* WordArt title: Impact, muted rainbow fill, outline, hard shadow */
h1.title {
  margin: 0 0 18px;
  font-family: "Impact", "Arial Black", "Helvetica Neue", sans-serif;
  font-weight: 900;
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  background: linear-gradient(180deg,
    #c2a83e 0%, #b3703a 40%, #9a5577 72%, #715a9e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.5px var(--dark);
  filter:
    drop-shadow(3px 3px 0 rgba(43, 41, 31, 0.8))
    drop-shadow(0 0 5px rgba(154, 110, 160, 0.45));
}
/* the emphasized word gets the boxed-correction treatment */
h1.title em {
  display: inline-block;
  font-style: normal;
  background: #8a3b24;
  -webkit-text-fill-color: #cdb968;
  -webkit-text-stroke: 0;
  padding: 0 14px 2px;
  border: 3px dashed #b3973a;
  transform: rotate(-2deg);
  margin: 0 4px;
}

.subtitle {
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
  font-size: 19px;
  line-height: 1.55;
  max-width: 880px;
  color: var(--ink);
}
.subtitle .hl, .hl {
  font-style: normal;
  font-family: "Courier New", monospace;
  font-size: 0.88em;
  color: var(--plum);
  font-weight: 700;
  background: var(--wash-mauve);
  border: 1px dashed var(--plum);
  border-radius: 4px;
  padding: 0 6px;
}

.authors { margin-top: 22px; font-size: 17px; }
.authors b { font-weight: 600; }
.affil { color: var(--muted); margin-top: 6px; font-size: 14px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* Y2K gel buttons */
.btn {
  display: inline-block;
  font-family: "Courier New", monospace;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--dark);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 8px;
  background: linear-gradient(180deg, #f4eec9 0%, #d9cb8a 48%, #c4b264 52%, #e3d9a5 100%);
  border: 1px solid #8f7c33;
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, 0.85),
    inset 0 -2px 3px rgba(110, 90, 30, 0.4),
    2px 2px 0 rgba(43, 41, 31, 0.55);
}
.btn:hover {
  background: linear-gradient(180deg, #fdf7d4 0%, #e6d894 48%, #d2c070 52%, #efe5b1 100%);
  transform: translate(-1px, -1px);
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, 0.85),
    inset 0 -2px 3px rgba(110, 90, 30, 0.4),
    3px 3px 0 rgba(43, 41, 31, 0.55);
}
.btn.primary {
  color: #f6ead9;
  background: linear-gradient(180deg, #c87a50 0%, #a8552f 48%, #8a3b24 52%, #b9663c 100%);
  border-color: #5e2613;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}
.btn.primary:hover {
  background: linear-gradient(180deg, #d68a5e 0%, #b9663c 48%, #9a4429 52%, #c87a50 100%);
}

/* ---------------------------------------------------------------- */
/* Sections                                                           */
/* ---------------------------------------------------------------- */
section { position: relative; padding: 58px 0; }
section:nth-of-type(even) {
  background:
    linear-gradient(115deg, rgba(154, 110, 160, 0.10) 0%, transparent 45%),
    linear-gradient(295deg, rgba(179, 173, 94, 0.16) 0%, transparent 50%);
}
section[id] { scroll-margin-top: 70px; }
.section-anchor { position: relative; top: -70px; }

.eyebrow {
  font-family: "Courier New", monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12.5px;
  color: var(--brick);
  margin-bottom: 10px;
}
.eyebrow::before { content: "✦ "; color: var(--mustard); }

section h2 {
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
  display: inline-block;
  padding: 4px 18px 5px 12px;
  border-radius: 14px 0 0 14px;
  background: linear-gradient(90deg,
    var(--wash-olive) 0%, var(--wash-sage) 55%, transparent 100%);
}
section h2 em { color: var(--plum); }
section h3 {
  font-family: "Times New Roman", Times, serif;
  font-size: 20px;
  margin: 26px 0 10px;
}
section .lead { font-size: 18.5px; line-height: 1.6; max-width: 920px; }
section p { max-width: 920px; }
section p b, section p strong { color: var(--plum); }
section p em, section p i { font-style: italic; }

#abstract p:not(.lead):first-of-type::first-letter {
  font-family: "Times New Roman", Times, serif;
  font-size: 3.1em;
  line-height: 0.85;
  float: left;
  padding: 4px 8px 0 0;
  color: var(--brick);
}

/* TL;DR receipt */
.tldr {
  position: relative;
  margin: 26px 0;
  padding: 20px 22px 16px;
  max-width: 920px;
  background: linear-gradient(135deg, rgba(179, 173, 94, 0.30), rgba(136, 167, 109, 0.14) 75%);
  border: 2px dashed var(--brick);
  border-radius: 10px 30px 10px 26px;
}
.tldr::before {
  content: "★ TL;DR !!";
  position: absolute;
  top: -12px;
  left: 18px;
  font-family: "Courier New", monospace;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  background: var(--mustard);
  color: #1f1d14;
  padding: 2px 10px;
}
.tldr > b:first-child { color: var(--plum); }
.tldr ul { margin: 10px 0 0; padding: 0; list-style: none; }
.tldr li { padding-left: 18px; position: relative; margin: 4px 0; }
.tldr li::before { content: "▸"; position: absolute; left: 0; color: var(--brick); }
.tldr li:first-child { margin-top: 0; }

/* figure panels with EXHIBIT stamps */
.figure-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.figure-row.stacked { grid-template-columns: 1fr; }
.figure-row .panel {
  position: relative;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 6px 18px 6px 14px;
  padding: 10px;
  box-shadow: 3px 4px 10px rgba(50, 70, 30, 0.30);
  transform: rotate(-0.5deg);
}
.figure-row .panel:nth-child(even) { transform: rotate(0.6deg); }
.figure-row .panel:hover { transform: rotate(0deg); }
.figure-row .panel::before {
  content: "EXHIBIT";
  position: absolute;
  top: 4px; left: 4px;
  z-index: 2;
  font-family: "Courier New", monospace;
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  background: #b3973a;
  color: #1f1d14;
  padding: 2px 8px;
}
.figure-row .panel img { width: 100%; display: block; border-radius: 4px; }
.figure-row .panel.wide img { max-height: 560px; object-fit: contain; }
.figure-row .panel .meta { font-size: 13px; color: var(--muted); padding: 10px 4px 2px; }
.figure-row .panel .meta .label { font-weight: 700; color: var(--ink); }
.figure-row .panel .meta .prompt { display: block; margin-top: 4px; }

.fig { max-width: 980px; }
.fig img {
  width: 100%;
  display: block;
  border-radius: 8px;
  box-shadow: 3px 4px 10px rgba(50, 70, 30, 0.30);
}
.fig .cap {
  font-family: "Courier New", monospace;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 10px;
}

/* card grids: wash tints, organic corners, slight tilt */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.card {
  padding: 18px 18px 14px;
  border-radius: 8px 22px 8px 18px;
  background: linear-gradient(135deg, var(--wash-olive), rgba(136, 167, 109, 0.10) 80%);
  border-top: 3px solid var(--mustard);
  transform: rotate(-0.35deg);
}
.grid-3 .card:nth-child(3n+2), .grid-2 .card:nth-child(even) {
  background: linear-gradient(135deg, var(--wash-mauve), rgba(154, 110, 160, 0.08) 80%);
  border-top-color: var(--plum);
  transform: rotate(0.4deg);
}
.grid-3 .card:nth-child(3n) {
  background: linear-gradient(135deg, rgba(136, 167, 109, 0.30), rgba(179, 173, 94, 0.10) 80%);
  border-top-color: var(--petrol);
  transform: rotate(-0.2deg);
}
.card:hover { transform: rotate(0deg); }
.card h3 {
  margin: 0 0 8px;
  font-family: "Times New Roman", Times, serif;
  font-size: 18px;
}
.card h3 em { color: var(--brick); }
.card p { margin: 0; font-size: 14.5px; }
.card p em { color: var(--plum); font-style: italic; }

/* risk grid */
.risk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.risk {
  position: relative;
  padding: 18px 18px 14px 18px;
  border-radius: 8px 20px 8px 16px;
  background: linear-gradient(135deg, rgba(179, 173, 94, 0.26), rgba(136, 167, 109, 0.10) 80%);
  border-left: 4px solid var(--mustard);
  transform: rotate(-0.4deg);
}
.risk:nth-child(even) {
  background: linear-gradient(135deg, var(--wash-mauve), rgba(154, 110, 160, 0.08) 80%);
  border-left-color: var(--plum);
  transform: rotate(0.45deg);
}
.risk:hover { transform: rotate(0deg); }
.risk .num {
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 26px;
  color: var(--mustard);
  line-height: 1;
}
.risk h4 { margin: 6px 0 8px; font-family: "Times New Roman", Times, serif; font-size: 17px; }
.risk p { margin: 0; font-size: 14px; }
.risk p em, .risk p i { font-style: italic; color: var(--plum); }

blockquote {
  position: relative;
  margin: 34px auto 0;
  max-width: 760px;
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  padding: 16px 22px;
  border-left: 5px solid var(--plum);
  background: linear-gradient(135deg, var(--wash-mauve), transparent 85%);
  border-radius: 0 22px 0 18px;
}
blockquote::before {
  content: "“";
  position: absolute;
  top: -18px; left: 8px;
  font-size: 64px;
  color: var(--brick);
  opacity: 0.5;
}
blockquote cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 13.5px;
  color: var(--muted);
}

/* tables */
.table-wrap { overflow-x: auto; max-width: 920px; }
table.results {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  font-variant-numeric: tabular-nums;
}
table.results th {
  font-family: "Courier New", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  text-align: right;
  color: #1f1d14;
  background: linear-gradient(90deg, rgba(179, 173, 94, 0.65), rgba(136, 167, 109, 0.45));
  padding: 8px 10px;
  border-bottom: 2px solid var(--dark);
}
table.results th:first-child { text-align: left; }
table.results td {
  padding: 6px 10px;
  text-align: right;
  border-bottom: 1px dashed rgba(108, 122, 146, 0.4);
}
table.results td:first-child { text-align: left; }
table.results tbody tr:hover { background: rgba(179, 173, 94, 0.18); }
table.results td.bold { color: var(--brick); font-weight: 700; }
table.results tr.best td { color: var(--petrol); font-weight: 600; background: rgba(56, 118, 110, 0.08); }
table.results tr.best:hover td { background: rgba(56, 118, 110, 0.14); }
table.results tr.pending td { color: var(--muted); font-style: italic; }
table.results tr.pending:hover td { background: transparent; }

/* ---------------------------------------------------------------- */
/* Galleries (classes generated by gallery.js)                        */
/* ---------------------------------------------------------------- */
.gallery-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 14px;
}
.gallery-controls .legend { font-size: 13px; color: var(--muted); max-width: 700px; }

.pair-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.thumb-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.pair, .thumb {
  background: linear-gradient(135deg, rgba(179, 173, 94, 0.22), rgba(136, 167, 109, 0.08) 80%);
  border-radius: 6px 16px 6px 14px;
  padding: 8px;
  transform: rotate(-0.3deg);
}
.pair:nth-child(even), .thumb:nth-child(even) {
  background: linear-gradient(135deg, var(--wash-mauve), rgba(154, 110, 160, 0.06) 80%);
  transform: rotate(0.35deg);
}
.pair:hover, .thumb:hover { transform: rotate(0deg); }

.pair .imgs, .thumb .imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pair .cell, .thumb .cell {
  position: relative;
  background: #1d1b14;
  border-radius: 4px;
  overflow: hidden;
  min-height: 120px;
}
.pair img, .thumb img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.pair img.loading { opacity: 0.45; }

.pair .lbl, .thumb .lbl {
  position: absolute;
  top: 0; left: 0;
  z-index: 2;
  font-family: "Courier New", monospace;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff8e8;
  background: var(--slate);
  padding: 2px 7px;
}
.pair .cell:first-child .lbl { background: var(--petrol); }
.pair .cell:last-child .lbl { background: var(--brick); }

.pair .score, .thumb .score, .df-imgwrap .score {
  position: absolute;
  right: 4px; bottom: 4px;
  z-index: 2;
  font-family: "Courier New", monospace;
  font-weight: 700;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  color: #fff8e8;
}
.pair .score.win, .thumb .score.win { background: var(--petrol); }
.pair .score.lose, .thumb .score.lose, .df-imgwrap .score.lose { background: var(--brick); }

.pair .meta, .thumb .meta { font-size: 12px; color: var(--muted); padding: 8px 4px 4px; }
.pair .meta .dim, .thumb .meta .dim, .df-dims .dim {
  display: inline-block;
  font-family: "Courier New", monospace;
  font-size: 10.5px;
  border: 1px dashed var(--slate);
  border-radius: 3px;
  color: var(--slate);
  padding: 0 5px;
  margin: 0 4px 3px 0;
}
.thumb .meta .dim.primary { border-color: var(--brick); color: var(--brick); }

/* DanceFlux gallery */
.df-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 20px; }
.df-card {
  background: linear-gradient(135deg, rgba(179, 173, 94, 0.22), rgba(136, 167, 109, 0.08) 80%);
  border-radius: 6px 16px 6px 14px;
  padding: 7px;
  transform: rotate(-0.35deg);
}
.df-card:nth-child(even) { transform: rotate(0.4deg); }
.df-card:hover { transform: rotate(0deg); }
.df-imgwrap { position: relative; border-radius: 4px; overflow: hidden; background: #1d1b14; }
.df-imgwrap img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.df-stamp {
  position: absolute;
  top: 0; left: 0;
  z-index: 2;
  font-family: "Courier New", monospace;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff8e8;
  background: var(--brick);
  padding: 2px 7px;
}
.df-meta { padding: 7px 3px 3px; }
.df-dims { margin-bottom: 3px; }
.df-pa { font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.df-pa b { color: var(--plum); }

/* Newspeak gallery */
.newspeak-gallery { display: flex; flex-direction: column; gap: 18px; margin-top: 20px; }
.ns-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
  align-items: start;
  background: linear-gradient(135deg, rgba(179, 173, 94, 0.22), rgba(136, 167, 109, 0.08) 85%);
  border-radius: 8px 22px 8px 18px;
  padding: 12px;
}
.ns-row:nth-child(even) {
  background: linear-gradient(135deg, var(--wash-mauve), rgba(154, 110, 160, 0.06) 85%);
}
.ns-topic { padding: 4px 2px; }
.ns-tag {
  display: inline-block;
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 21px;
  color: var(--mustard);
  margin-bottom: 8px;
}
.ns-prompt { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.ns-prompt b { color: var(--plum); }
.ns-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ns-panel { position: relative; margin: 0; }
.ns-panel img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  box-shadow: 2px 3px 8px rgba(50, 70, 30, 0.30);
}
.ns-panel figcaption {
  font-family: "Courier New", monospace;
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.ns-stamp {
  position: absolute;
  top: 0; left: 0;
  z-index: 2;
  font-family: "Courier New", monospace;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff8e8;
  padding: 2px 8px;
  border-radius: 4px 0 6px 0;
}
.ns-stamp.lose { background: var(--brick); }
.ns-stamp.win { background: var(--petrol); }

/* VSF placeholders: dulled caution stripes */
.vsf-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.vsf-card {
  margin: 0;
  background: linear-gradient(135deg, rgba(179, 173, 94, 0.22), rgba(136, 167, 109, 0.08) 80%);
  border-radius: 6px 16px 6px 14px;
  padding: 7px;
}
.vsf-imgwrap {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  background: repeating-linear-gradient(45deg,
    rgba(179, 173, 94, 0.4) 0 14px, rgba(43, 41, 31, 0.25) 14px 18px);
}
.vsf-imgwrap::before {
  content: "PENDING ··· run in progress";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Courier New", monospace;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--dark);
}
.vsf-card.has-image .vsf-imgwrap { background: #1d1b14; overflow: hidden; }
.vsf-card.has-image .vsf-imgwrap::before { content: none; }
.vsf-card figcaption { padding: 7px 3px 3px; display: flex; flex-direction: column; gap: 2px; }
.vsf-stamp {
  font-family: "Courier New", monospace;
  font-weight: 700;
  font-size: 11px;
  color: var(--petrol);
}
.vsf-note { font-size: 11.5px; color: var(--muted); font-style: italic; }

/* LAPIS art gallery */
.art-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.art-card {
  background: linear-gradient(135deg, rgba(179, 173, 94, 0.22), rgba(136, 167, 109, 0.08) 80%);
  border-radius: 6px 16px 6px 14px;
  padding: 7px;
  transform: rotate(-0.3deg);
}
.art-card:nth-child(even) { transform: rotate(0.35deg); }
.art-card:hover { transform: rotate(0deg); }
.art-card .art-frame {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: #1d1b14;
}
.art-card .art-frame::before {
  content: "REAL ART · BELOW ZERO";
  position: absolute;
  top: 0; left: 0;
  z-index: 2;
  font-family: "Courier New", monospace;
  font-weight: 700;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: #fff8e8;
  background: var(--plum);
  padding: 2px 7px;
}
.art-card .art-frame img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.art-card .meta { padding: 7px 3px 3px; font-size: 11.5px; color: var(--muted); }
.art-card .score-row { margin-bottom: 3px; }
.art-card .score-badge {
  font-family: "Courier New", monospace;
  font-weight: 700;
  font-size: 11px;
  color: #fff8e8;
  background: var(--brick);
  border-radius: 4px;
  padding: 1px 7px;
}
.art-card .caption { line-height: 1.45; }

/* ---------------------------------------------------------------- */
/* Sponsors                                                           */
/* ---------------------------------------------------------------- */
.sponsors h2 { background: linear-gradient(90deg, var(--wash-mauve) 0%, transparent 100%); }
.sponsor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.sponsor {
  padding: 16px;
  border-radius: 8px 20px 8px 16px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 3px 4px 10px rgba(50, 70, 30, 0.22);
  transform: rotate(-0.3deg);
}
.sponsor:nth-child(even) { transform: rotate(0.35deg); }
.sponsor:hover { transform: rotate(0deg); }
.sponsor .logo-wrap {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.sponsor .logo-wrap img, .sponsor .logo-wrap svg { max-height: 52px; max-width: 80%; object-fit: contain; }
.sponsor .role {
  font-family: "Courier New", monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  color: var(--mustard);
  margin: 10px 0 6px;
}
.sponsor .body { font-size: 13.5px; color: var(--muted); margin: 0; }
.sponsor .body b { color: var(--ink); }

/* ---------------------------------------------------------------- */
/* BibTeX                                                             */
/* ---------------------------------------------------------------- */
#bibtex pre {
  font-family: "Courier New", monospace;
  line-height: 1.5;
}
#bibtex pre code.bibkey { background: none; }

/* ---------------------------------------------------------------- */
/* Footer: caution-stripe top edge, dark plate                        */
/* ---------------------------------------------------------------- */
footer {
  margin-top: 30px;
  background: var(--dark);
  color: #d8d4c2;
  padding: 40px 0 30px;
  border-top: 14px solid transparent;
  border-image: repeating-linear-gradient(45deg, #b3973a 0 16px, #2b291f 16px 20px) 14;
}
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 26px; }
footer h5 {
  font-family: "Courier New", monospace;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: var(--mustard);
  margin: 0 0 10px;
}
footer h5::before { content: "★ "; }
footer p { font-size: 13.5px; line-height: 1.7; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin: 4px 0; font-size: 13.5px; }
footer li::before { content: "▸ "; color: var(--brick); }
footer a { color: #cdb968; }
footer a:hover { color: #ffe600; }
footer b { color: #f0ecd8; }

/* ---------------------------------------------------------------- */
/* Decorative doodles + glitch artifacts (svgs injected in the html)  */
/* ---------------------------------------------------------------- */
.doodle {
  position: absolute;
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(1px 1px 0 rgba(20, 45, 15, 0.45)) drop-shadow(0 0 4px rgba(90, 111, 160, 0.4));
}
.glitchsvg { position: absolute; pointer-events: none; z-index: 3; }

/* ---------------------------------------------------------------- */
/* Loading states                                                     */
/* ---------------------------------------------------------------- */
.skeleton {
  background: linear-gradient(100deg,
    rgba(179, 173, 94, 0.25) 30%, rgba(255, 255, 255, 0.5) 50%, rgba(179, 173, 94, 0.25) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -80% 0; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .skeleton { animation: none; }
  .spotlight-pill .dot { animation: none; }
}

/* ---------------------------------------------------------------- */
/* Responsive                                                         */
/* ---------------------------------------------------------------- */
@media (max-width: 1000px) {
  .df-gallery { grid-template-columns: repeat(2, 1fr); }
  .art-gallery { grid-template-columns: repeat(3, 1fr); }
  .pair-gallery, .thumb-gallery { grid-template-columns: repeat(2, 1fr); }
  .risk-grid, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .sponsor-grid { grid-template-columns: 1fr; }
  .doodle, .glitchsvg { display: none; }
}
@media (max-width: 760px) {
  .figure-row { grid-template-columns: 1fr; }
  .ns-row { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .vsf-gallery { grid-template-columns: 1fr; }
  footer .cols { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .risk-grid, .grid-3, .pair-gallery, .thumb-gallery, .df-gallery { grid-template-columns: 1fr; }
  .art-gallery { grid-template-columns: repeat(2, 1fr); }
  h1.title { -webkit-text-stroke: 1px var(--dark); }
}
