:root {
  --bg: #f4efe6;
  --bg-soft: #fbf8f2;
  --paper: rgba(255, 251, 245, 0.82);
  --paper-strong: #fffaf3;
  --line: rgba(25, 36, 43, 0.12);
  --line-strong: rgba(25, 36, 43, 0.2);
  --ink: #132127;
  --ink-soft: #4d5a60;
  --rust: #c76747;
  --rust-deep: #9d4a31;
  --teal: #216b70;
  --teal-soft: #d9ece8;
  --gold: #d0a85c;
  --shadow: 0 24px 60px rgba(37, 44, 58, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --content-width: min(1180px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(33, 107, 112, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(199, 103, 71, 0.18), transparent 32%),
    linear-gradient(180deg, #efe7da 0%, var(--bg) 24%, #f8f4ed 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(19, 33, 39, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 33, 39, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  content: "";
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(244, 239, 230, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(244, 239, 230, 0.88);
}

.header-inner {
  width: var(--content-width);
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.section-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.section-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.section-nav a:hover,
.section-nav a.is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  transform: translateY(-1px);
}

main {
  width: var(--content-width);
  margin: 0 auto;
}

.section-block {
  padding: 72px 0;
}

.section-tinted {
  padding-left: clamp(18px, 3vw, 34px);
  padding-right: clamp(18px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-xl) + 4px);
  background: linear-gradient(180deg, rgba(255, 250, 243, 0.92), rgba(255, 247, 238, 0.78));
  box-shadow: var(--shadow);
}

.hero {
  display: block;
  padding-top: 56px;
}

.hero-header {
  grid-column: 1 / -1;
  padding: clamp(30px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-xl) + 6px);
  background:
    radial-gradient(circle at top right, rgba(33, 107, 112, 0.12), transparent 34%),
    radial-gradient(circle at left center, rgba(199, 103, 71, 0.12), transparent 28%),
    var(--paper);
  box-shadow: var(--shadow);
}

.hero-summary-card {
  margin-top: 22px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-summary-card h2 {
  margin: 0 0 12px;
  font-family: "Fraunces", serif;
  font-size: 1.38rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-summary-list {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 10px;
}

.hero-summary-list li {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.8;
}

.hero-abstract-card .content-text {
  font-size: 1rem;
}

.stats-strip,
.info-card,
.figure-card,
.exploiter-card,
.pattern-card,
.case-card,
.bibtex-card,
.callout {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.eyebrow,
.section-kicker,
.placeholder-label,
.model-family,
.mini-label,
.stat-note {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--rust);
}

.hero h1,
.section-head h2,
.exploiter-head h3,
.pattern-card h3 {
  font-family: "Fraunces", serif;
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0;
}

.hero h1 {
  font-size: clamp(1.28rem, 2.7vw, 2.35rem);
  max-width: none;
  width: 100%;
  line-height: 1.1;
}

.hero-authors,
.hero-affiliations {
  margin: 18px 0 0;
  color: var(--ink-soft);
  line-height: 1.75;
}

.hero-authors {
  font-size: 1.04rem;
  font-weight: 700;
}

.hero-affiliations {
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(33, 107, 112, 0.4);
}

.button-primary {
  background: linear-gradient(135deg, var(--teal), #184c52);
  color: #f8faf8;
  border-color: transparent;
}

.teaser-shell,
.figure-shell,
.terminal-shell {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 242, 233, 0.92));
  border: 1px solid var(--line);
}

.shell-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 800;
}

.shell-note {
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

.teaser-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 16px;
  padding: 18px;
}

.placeholder-card {
  min-height: 240px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(33, 107, 112, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(232, 243, 239, 0.92)),
    var(--paper-strong);
  padding: 18px;
}

.workflow-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.workflow-lane {
  display: grid;
  gap: 12px;
}

.workflow-lane span {
  position: relative;
  display: block;
  padding: 14px 16px 14px 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-weight: 700;
}

.workflow-lane span::before {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--rust);
  transform: translateY(-50%);
  content: "";
  box-shadow: 0 0 0 6px rgba(199, 103, 71, 0.12);
}

.heatmap-mock {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.heatmap-mock.dense {
  grid-template-columns: repeat(6, 1fr);
  width: min(100%, 520px);
  margin: 0 auto;
}

.heatmap-mock span {
  aspect-ratio: 1;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(199, 103, 71, 0.16), rgba(33, 107, 112, 0.58));
}

.heatmap-mock span:nth-child(4n),
.heatmap-mock.dense span:nth-child(5n) {
  background: linear-gradient(135deg, rgba(208, 168, 92, 0.22), rgba(199, 103, 71, 0.78));
}

.heatmap-mock span:nth-child(3n),
.heatmap-mock.dense span:nth-child(2n) {
  background: linear-gradient(135deg, rgba(33, 107, 112, 0.2), rgba(33, 107, 112, 0.8));
}

.caption {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.stats-strip {
  margin-top: 10px;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.overview-stats {
  margin-top: 0;
  margin-bottom: 24px;
}

.stat-card {
  padding: 18px 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(19, 33, 39, 0.08);
  display: grid;
  gap: 8px;
}

.stat-value {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.stat-label {
  margin: 0;
  font-weight: 800;
  line-height: 1.45;
}

.section-head {
  max-width: 820px;
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.45rem);
  max-width: 13ch;
}

.text-grid,
.overview-grid,
.results-grid,
.results-stack,
.exploiters-grid,
.patterns-grid,
.cases-grid {
  display: grid;
  gap: 22px;
}

.text-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-text {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.85;
}

.overview-grid {
  grid-template-columns: 1fr;
}

.modality-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.info-card,
.pattern-card,
.case-card,
.exploiter-card,
.bibtex-card {
  padding: 24px;
}

.info-card h3,
.pattern-card h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.task-link-meta {
  margin: -2px 0 16px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.task-link-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.task-link-list li {
  margin: 0;
}

.task-link-list a {
  color: var(--teal);
  font-weight: 700;
  text-decoration: none;
}

.task-link-list a:hover {
  text-decoration: underline;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.mini-grid div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(19, 33, 39, 0.08);
}

.mini-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 1.35rem;
}

.figure-card {
  overflow: hidden;
}

.figure-card-wide {
  grid-column: 1 / -1;
}

.overview-teaser-card {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding: 0;
  margin-top: 24px;
  margin-bottom: 18px;
}

.figure-shell {
  min-height: 300px;
  margin: 0 18px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.figure-shell-large {
  min-height: 340px;
}

.teaser-figure-shell {
  min-height: 0;
  padding: 12px 18px 18px;
}

.teaser-image {
  display: block;
  width: min(100%, 80%);
  margin: 0 auto;
  height: auto;
  border-radius: 0;
}

.workflow-list {
  margin-top: 10px;
  margin-bottom: 18px;
  padding-left: 22px;
}

.workflow-list li {
  font-size: 1.12rem;
  line-height: 1.9;
  color: var(--ink-soft);
}

.table-mock {
  width: 100%;
  display: grid;
  gap: 10px;
}

.table-mock span {
  display: block;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(33, 107, 112, 0.15), rgba(33, 107, 112, 0.55), rgba(208, 168, 92, 0.3));
}

.table-mock span:nth-child(3n) {
  width: 84%;
}

.table-mock span:nth-child(4n) {
  width: 91%;
}

.results-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.results-stack {
  grid-template-columns: 1fr;
}

.result-figure-card {
  display: grid;
  gap: 0;
}

.result-summary-card {
  display: grid;
  gap: 0;
}

.result-explorer-card {
  scroll-margin-top: 108px;
}

.result-explorer-card .explorer-shell {
  padding: 24px;
}

.paper-figure-shell {
  min-height: 0;
  margin: 0;
  padding: 18px;
}

.paper-figure {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
}

.figure-analysis {
  padding: 0 24px 24px;
}

.pressure-grid,
.defense-grid {
  display: grid;
  gap: 18px;
  padding: 20px 24px 0;
}

.pressure-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.defense-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pressure-card,
.defense-card {
  border: 1px solid rgba(19, 33, 39, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.8);
  padding: 20px;
}

.pressure-label,
.pressure-big-label {
  margin: 0;
}

.pressure-compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px minmax(0, 1fr);
  gap: 14px 18px;
  padding: 20px 24px 0;
  align-items: center;
}

.pressure-compare-head {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 16px;
  border: 1px solid rgba(19, 33, 39, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 800;
  text-align: center;
}

.pressure-compare-head-center {
  font-family: "Fraunces", serif;
  font-size: 1.18rem;
}

.pressure-compare-metric {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.pressure-compare-metric-left {
  justify-content: flex-end;
}

.pressure-compare-metric-right {
  justify-content: flex-start;
}

.pressure-compare-track {
  position: relative;
  flex: 1;
  height: 16px;
  border-radius: 999px;
  background: rgba(19, 33, 39, 0.08);
  overflow: hidden;
  display: flex;
}

.pressure-compare-track-left {
  justify-content: flex-end;
}

.pressure-compare-track-right {
  justify-content: flex-start;
}

.pressure-compare-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.pressure-compare-value {
  min-width: 54px;
  font-family: "Fraunces", serif;
  font-size: 1.08rem;
  line-height: 1;
  color: var(--ink);
}

.pressure-compare-level {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(19, 33, 39, 0.05);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  text-transform: lowercase;
}

.pressure-big-number {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.95;
}

.pressure-big-label {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
}

.pressure-metrics {
  display: grid;
  gap: 10px;
}

.pressure-metrics div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.pressure-metrics strong {
  color: var(--ink);
  font-size: 1rem;
}

.family-note,
.defense-note {
  font-size: 0.96rem;
  line-height: 1.7;
}

.family-faceoff {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px minmax(0, 1fr);
  gap: 14px 18px;
  padding: 22px 24px 0;
  align-items: stretch;
}

.family-faceoff-head,
.family-faceoff-label,
.family-faceoff-value,
.family-pattern-cell {
  min-width: 0;
}

.family-faceoff-head {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border: 1px solid rgba(19, 33, 39, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  font-family: "Fraunces", serif;
  font-size: 1.42rem;
  line-height: 1.08;
}

.family-faceoff-gpt {
  grid-column: 1;
  background:
    radial-gradient(circle at top right, rgba(199, 103, 71, 0.12), transparent 36%),
    rgba(255, 255, 255, 0.86);
}

.family-faceoff-claude {
  grid-column: 3;
  background:
    radial-gradient(circle at top right, rgba(33, 107, 112, 0.14), transparent 36%),
    rgba(255, 255, 255, 0.86);
}

.family-faceoff-center {
  color: var(--ink-soft);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.family-faceoff-value {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  border: 1px solid rgba(19, 33, 39, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  text-align: center;
}

.family-faceoff-value strong {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(1.72rem, 3.3vw, 2.42rem);
  line-height: 0.95;
}

.family-faceoff-label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  padding: 18px 16px;
  border-radius: 20px;
  background: rgba(19, 33, 39, 0.05);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
}

.family-faceoff-label-pattern {
  min-height: 100%;
}

.family-pattern-cell {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(19, 33, 39, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
}

.family-pattern-cell-gpt {
  background:
    radial-gradient(circle at top right, rgba(199, 103, 71, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.86);
}

.family-pattern-cell-claude {
  background:
    radial-gradient(circle at top right, rgba(33, 107, 112, 0.14), transparent 34%),
    rgba(255, 255, 255, 0.86);
}

.family-pattern-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 700;
  color: var(--ink);
}

.family-terminal {
  margin: 0;
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 42px rgba(7, 14, 16, 0.12);
}

.family-terminal-code {
  margin: 0;
  overflow-x: auto;
  white-space: pre;
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.82rem;
  line-height: 1.72;
}

.family-terminal-code .tok-comment {
  color: #7dc9b5;
}

.family-terminal-code .tok-keyword {
  color: #ffb86c;
  font-weight: 700;
}

.family-terminal-code .tok-string {
  color: #a5d6ff;
}

.family-terminal-code .tok-number {
  color: #ffd37a;
}

.family-terminal-code .tok-call {
  color: #f98f6f;
}

.family-code-block {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(19, 33, 39, 0.08);
  border-radius: 18px;
  background: rgba(252, 249, 245, 0.96);
  color: var(--ink);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.84rem;
  line-height: 1.62;
  overflow-x: auto;
  white-space: pre;
}

.pressure-label {
  color: var(--rust);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rate-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: rgba(19, 33, 39, 0.08);
  overflow: hidden;
}

.rate-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.pressure-fill-low {
  background: linear-gradient(90deg, rgba(33, 107, 112, 0.45), rgba(33, 107, 112, 0.8));
}

.pressure-fill-medium {
  background: linear-gradient(90deg, rgba(208, 168, 92, 0.45), rgba(208, 168, 92, 0.92));
}

.pressure-fill-high {
  background: linear-gradient(90deg, rgba(199, 103, 71, 0.5), rgba(199, 103, 71, 0.96));
}

.pressure-fill-xhigh {
  background: linear-gradient(90deg, rgba(77, 90, 96, 0.45), rgba(77, 90, 96, 0.88));
}

.defense-fill-default {
  background: linear-gradient(90deg, rgba(157, 74, 49, 0.7), rgba(199, 103, 71, 1));
}

.defense-fill-heldout {
  background: linear-gradient(90deg, rgba(208, 168, 92, 0.55), rgba(208, 168, 92, 0.95));
}

.defense-fill-anti {
  background: linear-gradient(90deg, rgba(33, 107, 112, 0.65), rgba(33, 107, 112, 1));
}

.result-list {
  margin-top: 0;
}

.result-list strong {
  color: var(--ink);
}

.scatter-mock {
  position: relative;
  width: min(100%, 420px);
  height: 240px;
  border-radius: 18px;
  background:
    linear-gradient(rgba(19, 33, 39, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 33, 39, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(236, 248, 245, 0.9));
  background-size: 48px 48px, 48px 48px, auto;
  overflow: hidden;
}

.scatter-mock span {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--rust);
  box-shadow: 0 0 0 6px rgba(199, 103, 71, 0.14);
}

.scatter-mock span:nth-child(1) { left: 10%; bottom: 18%; }
.scatter-mock span:nth-child(2) { left: 20%; bottom: 30%; background: var(--teal); box-shadow: 0 0 0 6px rgba(33, 107, 112, 0.15); }
.scatter-mock span:nth-child(3) { left: 28%; bottom: 38%; }
.scatter-mock span:nth-child(4) { left: 36%; bottom: 34%; background: var(--gold); box-shadow: 0 0 0 6px rgba(208, 168, 92, 0.16); }
.scatter-mock span:nth-child(5) { left: 42%; bottom: 44%; }
.scatter-mock span:nth-child(6) { left: 49%; bottom: 52%; background: var(--teal); box-shadow: 0 0 0 6px rgba(33, 107, 112, 0.15); }
.scatter-mock span:nth-child(7) { left: 57%; bottom: 48%; }
.scatter-mock span:nth-child(8) { left: 62%; bottom: 62%; }
.scatter-mock span:nth-child(9) { left: 68%; bottom: 58%; background: var(--gold); box-shadow: 0 0 0 6px rgba(208, 168, 92, 0.16); }
.scatter-mock span:nth-child(10) { left: 75%; bottom: 70%; }
.scatter-mock span:nth-child(11) { left: 82%; bottom: 76%; background: var(--teal); box-shadow: 0 0 0 6px rgba(33, 107, 112, 0.15); }
.scatter-mock span:nth-child(12) { left: 88%; bottom: 84%; }

.callout {
  margin-top: 24px;
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: baseline;
  background: linear-gradient(135deg, rgba(33, 107, 112, 0.12), rgba(255, 255, 255, 0.78));
}

.explorer-shell {
  display: grid;
  gap: 22px;
}

.explorer-intro {
  max-width: 78ch;
}

.explorer-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.select-control {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
}

.select-control select {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(19, 33, 39, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  appearance: none;
}

.select-control select:focus {
  outline: 2px solid rgba(33, 107, 112, 0.22);
  border-color: rgba(33, 107, 112, 0.35);
}

.toolbar-status {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: left;
}

.viewer-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  min-height: 0;
  padding: 18px;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.panel-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--rust);
}

.panel-header h3,
.viewer-title {
  margin: 6px 0 0;
  font-family: "Fraunces", serif;
  font-size: 1.8rem;
  line-height: 1.05;
}

.task-tags,
.task-item-metrics,
.viewer-kpis,
.round-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.task-pill,
.kpi-pill,
.status-pill,
.round-chip,
.note-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
}

.task-pill,
.kpi-pill,
.note-pill {
  background: rgba(33, 107, 112, 0.1);
  color: var(--teal);
}

.status-pill {
  background: rgba(19, 33, 39, 0.08);
  color: var(--ink-soft);
}

.status-pill.is-exploit {
  background: rgba(199, 103, 71, 0.14);
  color: var(--rust-deep);
}

.status-pill.is-safe {
  background: rgba(33, 107, 112, 0.12);
  color: var(--teal);
}

.viewer-empty {
  height: 100%;
  min-height: 180px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(19, 33, 39, 0.16);
  border-radius: 24px;
  color: var(--ink-soft);
  text-align: center;
  padding: 24px;
}

.viewer-content {
  display: grid;
  gap: 18px;
  min-height: 0;
}

.viewer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.viewer-subtitle {
  margin-top: 10px;
  max-width: 70ch;
}

.viewer-scroll-shell {
  max-height: min(78vh, 1600px);
  overflow-y: auto;
  padding-right: 6px;
}

.viewer-scroll-shell::-webkit-scrollbar {
  width: 10px;
}

.viewer-scroll-shell::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(19, 33, 39, 0.18);
}

.rounds-accordion,
.tool-event-list {
  display: grid;
  gap: 14px;
}

.round-entry,
.round-section,
.tool-event,
.file-snapshot {
  border: 1px solid rgba(19, 33, 39, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  overflow: hidden;
}

.round-entry.is-exploit {
  border-color: rgba(199, 103, 71, 0.2);
  box-shadow: inset 0 0 0 1px rgba(199, 103, 71, 0.08);
}

.round-entry-summary,
.round-section summary,
.file-snapshot summary {
  cursor: pointer;
  list-style: none;
}

.round-entry-summary::-webkit-details-marker,
.round-section summary::-webkit-details-marker,
.file-snapshot summary::-webkit-details-marker {
  display: none;
}

.round-entry-summary {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.round-summary-main,
.round-summary-title,
.round-summary-meta,
.tool-event-header,
.tool-event-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.round-summary-main {
  justify-content: space-between;
  width: 100%;
}

.round-summary-title strong {
  font-size: 1rem;
}

.round-entry-body {
  display: grid;
  gap: 12px;
  padding: 0 18px 18px;
}

.round-section summary {
  padding: 13px 16px;
  font-weight: 800;
}

.round-section-body,
.tool-event-body,
.file-snapshot-body {
  display: grid;
  gap: 12px;
  padding: 0 16px 16px;
}

.tool-event-header {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(19, 33, 39, 0.08);
}

.file-snapshot-summary {
  padding: 12px 14px;
  font-weight: 800;
  font-family: "Courier New", Courier, monospace;
  color: var(--ink);
}

.tool-step {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(33, 107, 112, 0.12);
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.long-text-details {
  border: 1px solid rgba(19, 33, 39, 0.08);
  border-radius: 16px;
  background: rgba(255, 250, 243, 0.68);
  overflow: hidden;
}

.long-text-details summary {
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 800;
}

.long-text-block {
  margin: 0;
  padding: 0 16px 16px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--ink-soft);
  font-family: "Courier New", Courier, monospace;
}

.round-pre {
  padding: 0;
  color: var(--ink-soft);
}

.tool-payload {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 250, 243, 0.78);
  border: 1px solid rgba(19, 33, 39, 0.08);
}

.tool-payload-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.tool-payload-pre {
  padding: 0;
  max-height: 420px;
  overflow: auto;
}

.notes-stack,
.action-log,
.outcome-grid {
  display: grid;
  gap: 12px;
}

.note-pill {
  min-height: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(33, 107, 112, 0.12);
  color: var(--ink-soft);
  line-height: 1.6;
}

.outcome-item {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(19, 33, 39, 0.08);
}

.outcome-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.action-name,
.outcome-label {
  font-weight: 800;
}

.action-target,
.outcome-value,
.judge-box p,
.feedback-box p {
  margin: 0;
}

.action-target {
  color: var(--ink);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.9rem;
  word-break: break-word;
}

.action-summary,
.judge-box .content-text,
.feedback-box .content-text,
.outcome-value {
  color: var(--ink-soft);
}

.judge-label,
.feedback-reason {
  font-weight: 800;
  color: var(--ink);
}

.empty-card {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
  border: 1px dashed rgba(19, 33, 39, 0.12);
}

.exploiters-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.exploiter-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.exploiter-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exploiter-head h3 {
  font-size: 2rem;
}

.metric-stack {
  display: grid;
  gap: 10px;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(19, 33, 39, 0.08);
}

.metric-row strong {
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
}

.patterns-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bullet-list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.bars-mock {
  width: min(100%, 520px);
  display: grid;
  gap: 14px;
}

.bars-mock span {
  display: block;
  width: var(--w);
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(199, 103, 71, 0.8), rgba(33, 107, 112, 0.7));
}

.cases-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.terminal-shell {
  margin: 0 0 18px;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #1b252b;
}

.terminal-bar span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #ef7d5c;
}

.terminal-bar span:nth-child(2) {
  background: #efc15c;
}

.terminal-bar span:nth-child(3) {
  background: #58b995;
}

.terminal-body {
  padding: 20px;
  background: #11181c;
  color: #dfe9e5;
  font-family: "Courier New", Courier, monospace;
  line-height: 1.7;
}

.terminal-body p {
  margin: 0;
}

.bibtex-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 250, 243, 0.95), rgba(237, 247, 244, 0.86));
}

.copy-button {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(19, 33, 39, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  cursor: pointer;
}

.copy-button:hover {
  border-color: rgba(33, 107, 112, 0.4);
}

.copy-button.is-copied {
  background: rgba(33, 107, 112, 0.14);
  color: var(--teal);
}

.bibtex-card pre {
  margin: 0;
  overflow-x: auto;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink);
  font-family: "Courier New", Courier, monospace;
}

.site-footer {
  width: var(--content-width);
  margin: 0 auto;
  padding: 20px 0 48px;
  color: var(--ink-soft);
}

.footer-note {
  margin-top: 6px;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero,
  .text-grid,
  .overview-grid,
  .results-grid,
  .results-stack,
  .exploiters-grid,
  .patterns-grid,
  .cases-grid,
  .viewer-grid {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .section-head h2 {
    max-width: none;
  }

  .teaser-grid {
    grid-template-columns: 1fr;
  }

  .family-faceoff,
  .pressure-compare,
  .defense-grid {
    grid-template-columns: minmax(0, 1fr) 160px minmax(0, 1fr);
  }

  .pressure-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .explorer-controls {
    grid-template-columns: 1fr;
  }

  .teaser-image {
    width: min(100%, 92%);
  }

}

@media (max-width: 820px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-nav {
    justify-content: flex-start;
  }

  .stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-block {
    padding: 56px 0;
  }

  .section-tinted {
    padding-left: 18px;
    padding-right: 18px;
  }

  .explorer-controls,
  .viewer-header {
    grid-template-columns: 1fr;
    display: grid;
  }

  .modality-grid {
    grid-template-columns: 1fr;
  }

  .family-faceoff {
    grid-template-columns: 1fr;
  }

  .family-faceoff-gpt,
  .family-faceoff-claude {
    grid-column: auto;
  }

  .family-faceoff-center {
    display: none;
  }

  .family-faceoff-label,
  .family-faceoff-label-pattern {
    min-height: 56px;
  }

  .pressure-compare-level {
    min-height: 56px;
  }

  .pressure-compare {
    grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr);
    gap: 12px 12px;
  }

  .pressure-compare-head {
    font-size: 0.88rem;
  }

  .pressure-compare-head-center {
    font-size: 1.02rem;
  }

  .pressure-compare-value {
    min-width: 46px;
    font-size: 1rem;
  }

  .pressure-grid {
    grid-template-columns: 1fr;
  }

  .toolbar-status {
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 560px) {
  :root {
    --content-width: min(1180px, calc(100vw - 24px));
  }

  .site-header {
    position: static;
  }

  .info-card,
  .viewer-panel,
  .pattern-card,
  .case-card,
  .exploiter-card,
  .bibtex-card {
    padding: 20px;
  }

  .stats-strip {
    grid-template-columns: 1fr;
  }

  .mini-grid {
    grid-template-columns: 1fr;
  }

  .section-nav a {
    padding: 8px 12px;
  }

  .hero h1 {
    font-size: 0.98rem;
  }

  .hero-authors,
  .hero-affiliations {
    font-size: 0.95rem;
  }

  .hero-summary-card {
    padding: 20px;
  }

  .stats-strip {
    grid-template-columns: 1fr;
  }

  .teaser-image {
    width: 100%;
  }

  .paper-figure {
    border-radius: 14px;
  }

  .family-code-block {
    font-size: 0.78rem;
  }

  .family-terminal-code {
    font-size: 0.76rem;
  }

  .pressure-compare-value {
    min-width: 46px;
    font-size: 1rem;
  }

  .pressure-compare {
    grid-template-columns: 1fr;
  }

  .pressure-compare-head-center {
    display: none;
  }

  .pressure-compare-metric-left,
  .pressure-compare-metric-right {
    justify-content: flex-start;
  }

  .pressure-compare-track-left {
    justify-content: flex-start;
  }
}
