@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&display=swap');

:root {
  --text:   #1a1a1a;
  --muted:  #555;
  --light:  #aaa;
  --bg:     #fff;
  --max-w:  1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
  font-size: 19px;
  line-height: 1.68;
  color: var(--text);
  background: var(--bg);
  padding: 0 28px;
}

/* ─── Navigation ─────────────────────────────────────── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid #e0e0e0;
  /* undo body side-padding so the bar spans full width */
  margin-left: -28px;
  margin-right: -28px;
  padding: 20px 28px 18px;
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-size: 12.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.nav-mobile-details {
  display: none;
}

.nav-left,
.nav-right {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
}

.nav-right {
  margin-left: auto;
  justify-content: flex-end;
}

.nav-triad {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.46);
}

.nav-triad .nav-dot {
  opacity: 0.42;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
}
.site-nav a:hover { text-decoration: underline; }
.site-nav a[aria-current="page"] { font-weight: 700; }
.nav-home { font-weight: 700; letter-spacing: 0.14em; }
.nav-sep  { color: var(--light); margin: 0 11px; font-weight: 300; }
.nav-dot  { color: var(--light); margin: 0 7px; }

.nav-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(124, 170, 166, 0.34);
  border-radius: 999px;
  padding: 7px 12px;
  margin-left: 6px;
  letter-spacing: 0.11em;
  background: rgba(239, 246, 245, 0.96);
  box-shadow: 0 0 0 1px rgba(212, 230, 228, 0.32), 0 8px 20px rgba(113, 153, 150, 0.08);
}

.nav-pill:hover {
  border-color: rgba(102, 149, 145, 0.46);
  background: rgba(244, 249, 248, 0.98);
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(219, 234, 232, 0.34), 0 10px 24px rgba(113, 153, 150, 0.1);
}

.nav-pill[aria-current="page"] {
  background: linear-gradient(180deg, rgba(226, 242, 240, 0.98), rgba(208, 232, 229, 0.98));
  border-color: rgba(108, 150, 146, 0.5);
  color: #335c59;
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(202, 225, 222, 0.34), 0 10px 24px rgba(113, 153, 150, 0.11);
}

.nav-mobile-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  padding: 14px 14px 12px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-mobile-summary::-webkit-details-marker {
  display: none;
}

.nav-mobile-title {
  font-weight: 700;
  letter-spacing: 0.14em;
}

.nav-mobile-toggle {
  color: var(--muted);
}

.nav-mobile-details[open] .nav-mobile-toggle {
  color: var(--text);
}

.nav-mobile-menu {
  display: grid;
  gap: 2px;
  padding: 0 14px 14px;
  border-top: 1px solid #ececec;
}

.nav-mobile-menu a {
  display: block;
  padding: 10px 0;
  color: var(--text);
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  font-size: 16px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-mobile-menu a:last-child {
  border-bottom: none;
}

.nav-mobile-menu a[aria-current="page"] {
  font-weight: 700;
}

.nav-mobile-accent {
  color: #335c59 !important;
}

/* ─── Page scaffold ───────────────────────────────────── */

main {
  max-width: var(--max-w);
  margin: 64px auto 96px;
}

footer {
  max-width: var(--max-w);
  margin: 0 auto 48px;
  border-top: 1px solid #e8e8e8;
  padding-top: 20px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
footer a { color: var(--muted); }

/* ─── Typography ──────────────────────────────────────── */

h1 { font-size: 2.1em;  font-weight: 700; line-height: 1.2; margin-bottom: 0.7em; }
h2 { font-size: 1.35em; font-weight: 700; margin: 1.9em 0 0.5em; }
h3 { font-size: 1.07em; font-weight: 700; margin: 1.5em 0 0.4em; }

p              { margin-bottom: 0.95em; }
p:last-child   { margin-bottom: 0; }

a             { color: var(--text); }
a:hover       { text-decoration-color: var(--muted); }

.muted        { color: var(--muted); }
.small        { font-size: 0.88em; }
.caption      { font-style: italic; font-size: 0.82em; color: var(--muted); margin-top: 6px; }

code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.84em;
  background: #f5f5f5;
  padding: 1px 5px;
  border-radius: 2px;
}

/* ─── Landing split layout ────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

/* ─── Article layout (sub-pages) ─────────────────────── */

.article { max-width: 680px; }

/* ─── Stack sections ─────────────────────────────────── */

.stack-block {
  border-top: 1px solid #e0e0e0;
  padding-top: 40px;
  margin-top: 40px;
}
.stack-block:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }

.tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid #d0d0d0;
  padding: 2px 9px;
  margin-bottom: 14px;
  font-family: 'Courier New', Courier, monospace;
}

/* ─── Benchmark tables ────────────────────────────────── */

.bench-wrap {
  overflow-x: auto;
  margin: 1.5em 0;
  border: 1px solid #e0e0e0;
  background: #fafafa;
  padding: 18px 20px;
}

.bench {
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  line-height: 1.55;
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
}

.bench th {
  text-align: left;
  border-bottom: 1px solid #ccc;
  padding: 4px 16px 6px 0;
  font-weight: 600;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bench td {
  padding: 3px 16px 3px 0;
  vertical-align: top;
}

.bench td.r   { text-align: right; }
.bench .win   { color: #1a6a1a; }
.bench .excl  { color: #224499; font-style: italic; }
.bench .na    { color: var(--light); }
.bench tr.gap td { padding-top: 10px; border-top: 1px solid #ececec; }

/* ─── Callout block ──────────────────────────────────── */

.callout {
  border-left: 3px solid #1a1a1a;
  padding: 14px 20px;
  margin: 1.6em 0;
  background: #f8f8f8;
}
.callout p { margin-bottom: 0; }

/* ─── Ribbon background (landing page only) ─────────── */

#ribbon-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* When ribbon is present, body is transparent and content gets frosted backing */
body.has-ribbon {
  background: transparent;
}

body.has-ribbon .site-nav {
  background: var(--bg);
  border-bottom: 1px solid #e0e0e0;
  margin-left: -28px;
  margin-right: -28px;
  padding-left: 28px;
  padding-right: 28px;
}

body.has-ribbon main {
  background: var(--bg);
  padding: 48px 52px;
  border-radius: 3px;
  border: 1px solid #d4d4d4;
}

body.has-ribbon footer {
  background: var(--bg);
  padding: 20px 52px;
  margin-top: -17px;
  border-radius: 0 0 3px 3px;
  border: 1px solid #d4d4d4;
  border-top: none;
}

/* ─── ORI badge (fixed bottom-right, all pages) ──────── */

.ori-badge {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 200;
  background: var(--bg);
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  padding: 6px 10px 6px 6px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.ori-badge-ring {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 2px;
}
.ori-badge canvas {
  display: block;
}
.ori-badge-label {
  font-size: 9.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.3;
  max-width: 68px;
}

/* ─── About portrait ring ─────────────────────────────── */

.about-portrait-wrap {
  position: relative;
  width: 420px;
  height: 420px;
  margin: 0 auto;
}
.about-portrait-photo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58%;
  height: 58%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 45% 56%;
  display: block;
}
#about-ring-canvas {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
}
@media (max-width: 740px) {
  .about-portrait-wrap { width: 300px; height: 300px; }
}

/* ─── Triptych layout (stack.html) ───────────────────── */

body.has-ribbon.stack-triptych main {
  padding: 0;
  overflow: hidden;
}

/* footer shows below section content */

.triptych {
  display: flex;
  height: 520px;
  gap: 10px;
  padding: 10px;
}

.stack-panel {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: block;
  border: 1px solid #d0d0d0;
  border-radius: 3px;
}
.stack-panel.active {
  flex: 2;
  border-color: #999;
}

.stack-panel canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.stack-panel {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-align: left;
  opacity: 0.48;
  transition: flex 0.50s cubic-bezier(0.34, 1.20, 0.64, 1),
              opacity 0.35s ease,
              border-color 0.35s ease,
              box-shadow 0.35s ease;
}
.stack-panel.active {
  opacity: 1;
  box-shadow: 0 6px 24px rgba(0,0,0,0.07);
}
.stack-panel:hover:not(.active) {
  opacity: 0.72;
}

/* Ripple on click */
.panel-ripple {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0,0,0,0.06);
  transform: translate(-50%, -50%) scale(0);
  animation: panelRipple 0.55s ease-out forwards;
  pointer-events: none;
  z-index: 10;
}
@keyframes panelRipple {
  to { transform: translate(-50%, -50%) scale(55); opacity: 0; }
}

.panel-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px 24px 22px;
  background: linear-gradient(transparent, rgba(255,255,255,0.92));
  pointer-events: none;
  transition: background 0.22s;
}
.stack-panel:hover .panel-label {
  background: linear-gradient(transparent, rgba(255,255,255,0.98));
}

.panel-tag {
  display: block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.38);
  margin-bottom: 5px;
  font-family: 'Courier New', Courier, monospace;
}

.panel-title {
  display: block;
  font-size: 1.55em;
  font-weight: 600;
  color: rgba(0,0,0,0.82);
  line-height: 1.15;
  margin-bottom: 5px;
}

.panel-sub {
  display: block;
  font-size: 0.79em;
  color: rgba(0,0,0,0.28);
  font-style: italic;
  transition: color 0.22s;
}
.stack-panel:hover .panel-sub,
.stack-panel.active .panel-sub { color: rgba(0,0,0,0.50); }

/* ── Content sections — revealed on panel click ──────── */

.stack-section {
  display: none;
  padding: 36px 52px 48px;
  max-width: none;
  border-top: 1px solid #e4e4e4;
}
.stack-section.active {
  display: block;
  animation: sectionReveal 0.28s ease;
}
@keyframes sectionReveal {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.stack-section h2 { margin-top: 0.4em; }
.stack-section > .tag { margin-top: 0; }

/* ─── Stack sub-page nav (verification / storage / learning) */

.stack-subnav {
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2.2em;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
}
.stack-subnav a {
  color: var(--muted);
  text-decoration: none;
}
.stack-subnav a:hover { text-decoration: underline; }
.stack-subnav a[aria-current="page"] { color: var(--text); font-weight: 700; }
.stack-subnav .nav-dot { margin: 0 7px; color: var(--light); }

/* ─── Responsive ─────────────────────────────────────── */

@media (max-width: 980px) {
  body {
    font-size: 17px;
    padding: 0 18px;
  }

  .site-nav {
    position: static;
    align-items: flex-start;
    gap: 10px 14px;
    font-size: 11px;
    margin-left: -18px;
    margin-right: -18px;
    padding: 16px 18px 14px;
  }

  body.has-ribbon main {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  body.has-ribbon .site-nav {
    margin-left: -18px;
    margin-right: -18px;
    padding-left: 18px;
    padding-right: 18px;
  }

  main {
    margin: 34px auto 72px;
  }

  body.has-ribbon main {
    padding: 28px 22px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .triptych {
    flex-direction: column;
    height: auto;
    gap: 12px;
    padding: 12px;
  }

  .stack-panel,
  .stack-panel.active {
    flex: none;
    min-height: 180px;
  }

  .stack-panel.active {
    min-height: 240px;
  }

  .stack-section {
    padding: 28px 22px 34px;
  }

  .site-nav .nav-left,
  .site-nav .nav-right {
    width: 100%;
  }

  .nav-right {
    margin-left: 0;
    padding-top: 4px;
    justify-content: flex-start;
  }

  .nav-sep {
    margin: 0 8px;
  }

  .nav-dot {
    margin: 0 5px;
  }

  .nav-triad {
    flex-wrap: wrap;
    row-gap: 0.35rem;
    padding: 6px 9px;
  }

  .ori-badge {
    display: none;
  }

  .bench {
    font-size: 12px;
  }

  .about-portrait-wrap {
    width: min(320px, 86vw);
    height: min(320px, 86vw);
  }
}

@media (max-width: 740px) {
  body {
    font-size: 16px;
    padding: 0 14px;
  }

  h1 {
    font-size: 1.82em;
    line-height: 1.12;
  }

  h2 {
    font-size: 1.22em;
  }

  h3 {
    font-size: 1.02em;
  }

  .site-nav {
    margin-left: -14px;
    margin-right: -14px;
    padding: 10px 14px;
    font-size: 10.5px;
    letter-spacing: 0.07em;
  }

  body.has-ribbon .site-nav {
    margin-left: -14px;
    margin-right: -14px;
    padding-left: 14px;
    padding-right: 14px;
  }

  body.has-ribbon main {
    padding: 22px 16px;
  }

  .tag {
    font-size: 10px;
    padding: 2px 7px;
  }

  .nav-mobile-details {
    display: block;
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    background: rgba(255,255,255,0.96);
    box-shadow: 0 10px 26px rgba(16, 22, 32, 0.06);
    margin-bottom: 10px;
  }

  .nav-left,
  .nav-right {
    display: none;
  }

  .article {
    max-width: none;
  }

  .stack-subnav {
    gap: 4px 0;
    font-size: 10px;
  }

  .callout {
    padding: 12px 14px;
  }

  .bench-wrap {
    margin: 1.1em 0;
    padding: 14px 14px;
  }

  .piece-source {
    font-size: 12px;
    line-height: 1.48;
  }

  .gallery-card {
    padding: 16px 14px;
    border-radius: 14px;
  }

  .gallery-stage {
    order: -1;
  }

  .gallery-canvas {
    min-height: 280px;
  }

  .gallery-legend {
    gap: 8px 12px;
    font-size: 10px;
  }

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

  .metric-grid > div {
    padding: 10px 11px;
  }

  .metric-grid strong {
    font-size: 1.12em;
  }

  .supporting-deck {
    margin-top: 1.6em;
  }

  .supporting-text h2 {
    font-size: 1.68em;
  }

  .supporting-authors,
  .supporting-abstract,
  .supporting-relation-copy {
    font-size: 0.96em;
  }

  .supporting-visual {
    padding: 0 0 12px;
  }

  .slide-arrow {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .supporting-dots {
    margin-top: 14px;
    gap: 8px;
  }

  .supporting-arxiv-link {
    font-size: 12px;
  }

  .article table {
    display: block;
    width: 100%;
    overflow-x: auto;
  }

  .article code,
  .piece-source,
  .bench {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

@media (max-width: 560px) {
  .nav-mobile-summary {
    padding: 12px 12px 10px;
    font-size: 10.5px;
  }

  .nav-mobile-menu {
    padding: 0 12px 12px;
  }

  .nav-mobile-menu a {
    font-size: 15px;
    padding: 9px 0;
  }

  .stack-panel,
  .stack-panel.active {
    min-height: 160px;
  }

  .stack-panel.active {
    min-height: 208px;
  }

  .panel-label {
    padding: 26px 16px 16px;
  }

  .panel-title {
    font-size: 1.28em;
  }

  .stack-section {
    padding: 22px 16px 28px;
  }

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

  .gallery-canvas {
    min-height: 240px;
  }
}

/* ─── Seeing Code ─────────────────────────────────────── */

.seeing-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 1.5em 0 1.0em;
}

.seeing-card {
  appearance: none;
  text-align: left;
  border: 1px solid #e1e1e1;
  border-radius: 14px;
  background: rgba(255,255,255,0.9);
  padding: 16px 16px 14px;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
  box-shadow: 0 8px 20px rgba(16, 22, 32, 0.04);
}

.seeing-card:hover {
  border-color: #bfcfe8;
  box-shadow: 0 12px 28px rgba(16, 22, 32, 0.06);
}

.seeing-card.active {
  border-color: rgba(124, 170, 166, 0.42);
  background: linear-gradient(180deg, rgba(248, 252, 251, 0.98), rgba(242, 248, 247, 0.98));
  box-shadow: 0 12px 28px rgba(113, 153, 150, 0.08);
}

.seeing-card-title {
  display: block;
  font-size: 1.25em;
  line-height: 1.16;
  font-weight: 700;
  margin-bottom: 6px;
}

.seeing-card-copy {
  display: block;
  font-size: 0.92em;
  line-height: 1.5;
  color: var(--muted);
}

.gallery-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(360px, 1.25fr);
  gap: 28px;
  align-items: start;
  margin-top: 2em;
}

.piece-source {
  margin: 1em 0 0.8em;
  padding: 0;
  border: none;
  background: transparent;
  color: #4a4a4a;
  font-size: 13px;
  line-height: 1.55;
  overflow-x: auto;
}

.gallery-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.gallery-card {
  background: rgba(255,255,255,0.9);
  border: 1px solid #e2e2e2;
  border-radius: 16px;
  padding: 22px 22px 20px;
  box-shadow: 0 10px 24px rgba(16, 22, 32, 0.04);
}

.gallery-card h2,
.gallery-card h3 {
  margin-top: 0.2em;
}

.gallery-copy p:last-of-type {
  margin-bottom: 0;
}

.gallery-stage {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gallery-canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  border: 1px solid #e0e0e0;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(244,246,249,0.98));
}

.gallery-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.legend-chip {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
  margin-right: 6px;
  vertical-align: -1px;
}

.chip-query { background: #1552b4; }
.chip-hit { background: #2d8cff; }
.chip-value { background: #d67518; }
.chip-closure { background: #359a66; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 1.35em 0 1.1em;
}

.metric-grid > div {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ececec;
  background: rgba(250,250,250,0.78);
}

.metric-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
  font-family: 'Courier New', Courier, monospace;
}

.metric-grid strong {
  font-size: 1.3em;
  font-weight: 700;
}

@media (max-width: 980px) {
  .seeing-gallery,
  .gallery-hero,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card {
    padding: 20px 18px;
  }
}

@media (max-width: 680px) {
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .gallery-legend {
    gap: 10px;
    font-size: 11px;
  }
}

/* ─── Supporting Models ───────────────────────────────── */

.supporting-viewer {
  margin-top: 2em;
  padding: 28px 28px 26px;
}

.supporting-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.supporting-counter {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.supporting-actions {
  display: flex;
  gap: 10px;
}

.supporting-nav {
  appearance: none;
  border: 1px solid #d7d7d7;
  background: rgba(255,255,255,0.92);
  color: var(--text);
  border-radius: 999px;
  padding: 9px 15px;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 120ms ease;
}

.supporting-nav:hover:not(:disabled) {
  border-color: #9fb8e6;
  color: #1a1a1a;
}

.supporting-nav:disabled {
  opacity: 0.42;
  cursor: default;
}

.supporting-grid {
  display: grid;
  grid-template-columns: minmax(290px, 0.95fr) minmax(360px, 1.15fr);
  gap: 28px;
  align-items: start;
}

.supporting-copy h2 {
  margin-top: 0.15em;
  margin-bottom: 0.35em;
}

.supporting-authors {
  margin-bottom: 1em;
}

.supporting-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 1.2em;
}

.supporting-links a {
  text-decoration: none;
  border: 1px solid #d7d7d7;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.86);
}

.supporting-links a:hover {
  border-color: #9fb8e6;
}

.supporting-block {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid #e2e2e2;
  background: rgba(249,249,249,0.96);
  margin-bottom: 12px;
}

.supporting-block p:last-child {
  margin-bottom: 0;
}

.supporting-relation {
  background: linear-gradient(180deg, rgba(248,249,252,0.98), rgba(244,247,253,0.98));
}

.supporting-stage {
  display: flex;
  flex-direction: column;
}

.supporting-canvas-frame {
  background: linear-gradient(180deg, #fbfbfb, #f3f4f7);
  border: 1px solid #d9d9d9;
  border-radius: 22px;
  padding: 22px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.55);
}

.supporting-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  background: #fff;
  box-shadow: 0 18px 38px rgba(17, 24, 39, 0.08);
}

@media (max-width: 980px) {
  .supporting-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .supporting-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .supporting-viewer {
    padding: 20px 18px;
  }
}

/* ─── Supporting Models Refresh ──────────────────────── */

.supporting-intro {
  max-width: 950px;
}

.supporting-deck {
  margin-top: 2.3em;
}

.supporting-scene {
  display: grid;
  grid-template-columns: minmax(290px, 0.94fr) minmax(400px, 1.18fr);
  gap: 44px;
  align-items: center;
}

.supporting-text,
.supporting-visual {
  transition: opacity 180ms ease, transform 180ms ease, filter 180ms ease;
  will-change: opacity, transform, filter;
}

.supporting-deck.is-leaving .supporting-text,
.supporting-deck.is-leaving .supporting-visual {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(4px);
}

.supporting-deck.is-entering .supporting-text,
.supporting-deck.is-entering .supporting-visual {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(4px);
}

.supporting-deck.is-entering.is-entering-active .supporting-text,
.supporting-deck.is-entering.is-entering-active .supporting-visual {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition: opacity 340ms ease, transform 340ms cubic-bezier(0.22, 1, 0.36, 1), filter 340ms ease;
}

.supporting-kicker-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 1.1em;
}

.supporting-counter {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: 'Courier New', Courier, monospace;
}

.supporting-text h2 {
  font-size: clamp(1.55em, 2.8vw, 2.3em);
  line-height: 1.12;
  margin: 0 0 0.42em;
  max-width: 16ch;
}

.supporting-authors {
  color: var(--muted);
  font-size: 0.98em;
  margin-bottom: 1.3em;
}

.supporting-abstract {
  font-size: 1.05em;
  line-height: 1.62;
  max-width: 33em;
}

.supporting-rule {
  width: 88px;
  height: 1px;
  background: #d9d9d9;
  margin: 1.6em 0 1.2em;
}

.supporting-relation-head {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: 'Courier New', Courier, monospace;
  margin-bottom: 0.8em;
}

.supporting-relation-copy {
  max-width: 33em;
  font-size: 0.98em;
  line-height: 1.72;
  margin-bottom: 1.4em;
}

.supporting-arxiv-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  padding-bottom: 4px;
  border-bottom: 1px solid #cfcfcf;
}

.supporting-arxiv-link::after {
  content: '\2197';
  font-size: 14px;
}

.supporting-arxiv-link:hover {
  border-bottom-color: #1a1a1a;
}

.supporting-visual {
  position: relative;
  padding: 12px 36px 28px;
}

.supporting-poster-link {
  display: block;
  text-decoration: none;
}

.supporting-image {
  width: 100%;
  height: auto;
  display: block;
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(210, 210, 210, 0.95);
  box-shadow:
    0 22px 44px rgba(17, 24, 39, 0.08),
    0 2px 0 rgba(255,255,255,0.82) inset;
}

.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-58%);
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(207, 207, 207, 0.92);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  color: var(--text);
  font: inherit;
  font-size: 22px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, opacity 160ms ease;
  z-index: 2;
}

.slide-arrow:hover:not(:disabled) {
  transform: translateY(-58%) scale(1.04);
  border-color: #9fb8e6;
  background: rgba(255,255,255,0.98);
}

.slide-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.slide-arrow-prev { left: -2px; }
.slide-arrow-next { right: -2px; }

.supporting-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.supporting-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: none;
  background: rgba(155, 162, 176, 0.36);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.supporting-dot:hover {
  background: rgba(72, 103, 177, 0.5);
}

.supporting-dot.active {
  background: #315db7;
  transform: scale(1.2);
}

@media (max-width: 980px) {
  .supporting-scene {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .supporting-text h2 {
    max-width: none;
  }

  .supporting-visual {
    order: -1;
    padding: 6px 20px 20px;
  }

  .slide-arrow-prev { left: -4px; }
  .slide-arrow-next { right: -4px; }
}

@media (max-width: 680px) {
  .supporting-kicker-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .supporting-text h2 {
    font-size: 2.15em;
  }

  .supporting-abstract,
  .supporting-relation-copy {
    font-size: 1em;
  }

  .supporting-visual {
    padding: 0 10px 18px;
  }

  .slide-arrow {
    width: 46px;
    height: 46px;
    font-size: 19px;
  }
}
