:root {
    --bg: #ffffff;
    --bg-alt: #f6f6f7;
    --surface: #ffffff;
    --surface-strong: #ffffff;
    --surface-tint: #ececee;
    --ink: #15171a;
    --muted: #5b6169;
    --muted-soft: #8a9099;
    --rule: #e3e3e6;
    --card-border: #e3e3e6;
    --accent: #8a1538;
    --accent-soft: #a31d43;
    --accent-rgb: 138, 21, 56;
    --accent-warm: #9a6a20;
    --llmind: #8a1538;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 1px 3px rgba(0, 0, 0, 0.06);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --max-width: 1120px;
    --font-display: "Space Grotesk", sans-serif;
    --font-body: "IBM Plex Sans", sans-serif;
    --font-mono: "IBM Plex Mono", monospace;

    --chart-c1: #2f5f8f;
    --chart-c2: #2f7d5c;
    --chart-c3: #9a6a20;
    --chart-c4: #6b5b95;
    --chart-c5: #8a1538;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

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

img {
    max-width: 100%;
}

.site {
    min-height: 100vh;
    position: relative;
}

.top-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--rule);
    backdrop-filter: blur(10px);
}

.top-nav__inner {
    width: min(calc(100vw - 56px), var(--max-width));
    margin: 0 auto;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.top-nav__brand,
.top-nav__links,
.top-nav__actions {
    display: flex;
    align-items: center;
}

.top-nav__brand {
    gap: 10px;
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 0.88rem;
    letter-spacing: 0.06em;
}

.brand-mark {
    width: 22px;
    height: 22px;
    display: block;
    object-fit: contain;
}

.top-nav__links {
    gap: 22px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.81rem;
}

.top-nav__actions {
    gap: 10px;
}

.top-nav__actions a {
    padding: 6px 12px;
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease;
}

.top-nav__actions a:hover {
    color: var(--ink);
    border-color: var(--accent);
    background: var(--bg-alt);
}

.content,
.footer {
    width: min(calc(100vw - 56px), var(--max-width));
    margin: 0 auto;
}

.masthead {
    padding: clamp(56px, 7vw, 72px) 0 clamp(42px, 6vw, 60px);
    border-bottom: 1px solid var(--rule);
    position: relative;
}

.masthead__inner {
    width: min(calc(100vw - 56px), var(--max-width));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: clamp(36px, 6vw, 72px);
    align-items: center;
}

.hero-copy {
    min-width: 0;
}

.eyebrow {
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #17864f;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: none;
}

.eyebrow__highlight {
    padding: 0.1rem 0.38rem;
    background: #ffd84d;
    color: #000000;
    letter-spacing: 0.16em;
    transform-origin: center;
    animation: spotlight-pulse 1.6s ease-in-out infinite;
}

@keyframes spotlight-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 216, 77, 0);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(255, 216, 77, 0.28), 0 0 18px rgba(255, 216, 77, 0.5);
        transform: scale(1.05);
    }
}

@media (prefers-reduced-motion: reduce) {
    .eyebrow__highlight {
        animation: none;
    }
}

.affiliation a.affiliation__highlight {
    padding: 0.1rem 0.38rem;
    background: #f2f2f2;
    color: #000000;
    transition: background-color 160ms ease, color 160ms ease;
}

.affiliation a.affiliation__highlight:hover {
    background: #fff3b0;
    color: #000000;
}

.eyebrow__rule {
    width: 26px;
    height: 1px;
    background: #17864f;
}

.title {
    margin: 0;
    color: var(--ink);
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.15rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
}

.title span {
    display: block;
}

.authors-inline {
    margin: 24px 0 6px;
    color: var(--muted);
    font-size: 0.98rem;
    overflow-wrap: anywhere;
}

.authors-inline a {
    color: var(--ink);
    border-bottom: 1px solid var(--muted-soft);
}

.authors-inline a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.author-mark {
    display: inline-block;
    margin-left: 0.08em;
    font-size: 0.78em;
    line-height: 1;
    font-weight: 700;
    vertical-align: 0.45em;
}

.affiliation {
    margin: 0;
    color: var(--muted-soft);
    font-family: var(--font-mono);
    font-size: 0.79rem;
    font-weight: 400;
    padding: 0;
    overflow-wrap: anywhere;
}

.affiliation a {
    color: inherit;
    text-decoration: none;
    border-bottom: 0;
    transition: border-color 160ms ease, color 160ms ease;
    overflow-wrap: anywhere;
}

.affiliation a:hover {
    color: var(--ink);
}

.affiliation-line {
    display: block;
    margin-bottom: 4px;
}

.affiliation-mark {
    color: var(--accent);
    font: 600 0.68em var(--font-mono);
    vertical-align: super;
}

.tldr {
    margin: 24px 0 26px;
    max-width: 680px;
    padding-left: 14px;
    border-left: 2px solid #2f7d5c;
    color: var(--ink);
    font-size: 0.96rem;
    overflow-wrap: anywhere;
}

.tldr strong {
    color: #2f7d5c;
    font-family: var(--font-mono);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.links {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 0;
}

.links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 10px 18px;
    border-radius: 7px;
    border: 1px solid var(--rule);
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 400;
    box-shadow: none;
    transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
    text-align: center;
}

.links a.link-primary {
    color: #ffffff;
    background: var(--ink);
    border-color: var(--ink);
}

.links a:hover {
    color: var(--ink);
    border-color: var(--accent);
    background: var(--bg-alt);
}

.links a.link-primary:hover {
    color: #ffffff;
    background: var(--accent);
    border-color: var(--accent);
}

.links a:active {
    transform: translateY(-1px);
}

.link-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: #f8eef0;
    color: var(--accent);
    border: 1px solid rgba(var(--accent-rgb), 0.18);
    font-size: 0.96rem;
    font-weight: 800;
    line-height: 1;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.link-icon__svg {
    width: 21px;
    height: 21px;
}

.author-footnote {
    margin: 14px 0 0;
    color: var(--muted-soft);
    font-size: 0.86rem;
}

.author-mark--footnote {
    margin-left: 0;
    margin-right: 0.12em;
    font-size: 0.95em;
}

.hero-media {
    margin: 0;
    min-width: 0;
    width: 100%;
    max-width: 360px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.hero-media__image,
.hero-media__pdf,
.hero-media__video {
    display: block;
    width: 100%;
}

.hero-media__link {
    display: block;
    color: inherit;
    background: #ffffff;
}

.hero-media__image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    background: #ffffff;
}

.hero-media__video {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #0f1725;
}

.hero-media__pdf {
    height: min(56vw, 520px);
    min-height: 360px;
    border: 0;
    background: #ffffff;
}

.hero-media figcaption {
    padding: 10px 12px;
    border-top: 1px solid var(--rule);
    color: var(--muted-soft);
    font-family: var(--font-mono);
    font-size: 0.76rem;
}

.content {
    padding: 0 0 clamp(44px, 7vw, 64px);
}

.section {
    margin-bottom: 0;
    padding: clamp(44px, 5.5vw, 56px) 0;
    border-top: 1px solid var(--rule);
    position: relative;
    scroll-margin-top: 76px;
}

.section:last-child {
    margin-bottom: 0;
}

.section__header {
    margin-bottom: 18px;
}

.section__header h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 2.7vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.lead,
.body-text,
.contributions,
.results-table {
    font-size: clamp(1rem, 1.38vw, 1.1rem);
}

.lead,
.body-text {
    margin: 0;
    color: var(--muted);
    text-align: justify;
    text-justify: inter-word;
}

.section--question {
    margin-bottom: 0;
}

.motivation-question {
    margin-bottom: clamp(28px, 4vw, 42px);
}

.research-question,
.info-panel,
.info-card,
.contribution-card,
.bibtex-card,
.quant-card,
.radar-card,
.embed-panel {
    border: 1px solid var(--card-border);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.research-question {
    width: 100%;
    padding: clamp(22px, 3.2vw, 28px);
    border-radius: var(--radius-lg);
    background: var(--bg-alt);
}

.research-question__eyebrow,
.section-kicker,
.section-eyebrow,
.card-kicker,
.contribution-card__index,
.quant-card__dataset {
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--muted-soft);
}

.research-question__text {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.14rem, 1.92vw, 1.42rem);
    font-weight: 500;
    line-height: 1.32;
    color: var(--ink);
    text-align: justify;
    text-justify: inter-word;
}

.content-stack {
    display: grid;
    gap: 20px;
}

.info-panel {
    padding: clamp(20px, 3vw, 26px);
    border-radius: var(--radius-lg);
}

.info-panel--process {
    padding-top: clamp(18px, 2.8vw, 26px);
    padding-bottom: clamp(18px, 2.8vw, 26px);
}

.panel-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.2vw, 1.82rem);
    line-height: 1.22;
    color: var(--ink);
}

.panel-text,
.card-body,
.contribution-card__text {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: clamp(0.99rem, 1.35vw, 1.08rem);
    text-align: justify;
    text-justify: inter-word;
}

.media-frame {
    margin: 18px 0 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.media-frame__image {
    display: block;
    width: 100%;
    height: auto;
}

figure figcaption {
    padding: 10px 4px 0;
    color: var(--muted-soft);
    font-size: 0.78rem;
    font-style: italic;
    line-height: 1.5;
    text-align: center;
}

.hero-media figcaption {
    border-top: 0;
    padding: 10px 4px 0;
    text-align: center;
}

.media-frame--video,
.media-frame__video {
    background: #0f1725;
}

.media-frame__video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 720px;
}

.motivation-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 42px);
    align-items: center;
}

.quantitative-figure {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.75fr);
    gap: clamp(22px, 4vw, 42px);
    align-items: center;
    margin-top: clamp(24px, 4vw, 38px);
    padding-top: clamp(22px, 3vw, 30px);
    border-top: 1px solid var(--rule);
}

.quantitative-figure__media {
    margin: 0;
}

.quantitative-figure__media img {
    display: block;
    width: 100%;
    height: auto;
}

.quantitative-figure__copy h3 {
    margin: 0 0 12px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    line-height: 1.2;
}

.quantitative-figure__copy p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.65;
}

.autoplay-video-frame {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    background: #000000;
    box-shadow: var(--shadow-sm);
}

.autoplay-video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 720px;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

.card-grid,
.contribution-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.info-card,
.contribution-card {
    border-radius: var(--radius-lg);
    padding: clamp(18px, 2.8vw, 24px);
}

.info-card--accent,
.contribution-card--accent {
    background: var(--bg-alt);
}

.card-title {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-size: clamp(1.16rem, 1.76vw, 1.34rem);
    line-height: 1.25;
    color: var(--ink);
}

.card-body + .card-body {
    margin-top: 12px;
}

.tag-strip {
    padding: 18px 0 0;
    border-top: 1px solid rgba(17, 26, 44, 0.11);
}

.tag-strip__label {
    margin: 0 0 12px;
    color: var(--accent-soft);
    font-size: 0.92rem;
    font-weight: 700;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid rgba(17, 26, 44, 0.12);
    border-radius: var(--radius-sm);
    background: #ffffff;
    font-size: 0.92rem;
    color: var(--ink);
}

.contribution-card__index {
    color: var(--llmind);
}

.bibtex-card {
    border-radius: var(--radius-lg);
    padding: clamp(18px, 2.8vw, 26px);
}

.bibtex-block {
    margin: 0;
    padding: 16px 18px;
    overflow-x: auto;
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    background: var(--bg-alt);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 0.84rem;
    line-height: 1.72;
}

.bibtex-block code {
    font: inherit;
}

.results-shell {
    display: grid;
    gap: 16px;
}

.results-intro {
    margin-top: 0;
}

.results-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.results-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4f5e79;
    font-size: 0.8rem;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    background: #ffffff;
    border: 1px solid var(--card-border);
}

.results-legend__dot,
.radar-legend__dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    flex-shrink: 0;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.quant-card {
    padding: 18px;
    border-radius: var(--radius-lg);
}

.quant-card__dataset {
    margin-bottom: 5px;
}

.quant-card__model {
    margin: 0 0 4px;
    font-size: 1rem;
    line-height: 1.24;
    color: #1f355a;
}

.quant-card__fullres {
    margin: 0 0 14px;
    font-size: 0.74rem;
    color: #617089;
}

.quant-card__headers,
.quant-card__row {
    display: grid;
    grid-template-columns: 112px repeat(3, minmax(0, 1fr));
    gap: 6px;
    align-items: center;
}

.quant-card__headers {
    margin-bottom: 6px;
}

.quant-card__header {
    color: #617089;
    font-size: 0.67rem;
    text-align: center;
    letter-spacing: 0.04em;
    line-height: 1.2;
    font-family: var(--font-mono);
}

.quant-card__row {
    padding: 6px 0;
    border-top: 1px solid rgba(17, 26, 44, 0.08);
}

.quant-card__row--ours .quant-card__method,
.quant-card__row--ours .quant-card__value {
    color: var(--chart-c5);
    font-weight: 700;
}

.quant-card__method {
    color: #57647e;
    font-size: 0.66rem;
    line-height: 1.2;
    padding-right: 8px;
    font-family: var(--font-mono);
}

.quant-card__cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.quant-card__track {
    width: 100%;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(17, 26, 44, 0.1);
}

.quant-card__fill {
    height: 100%;
    border-radius: 999px;
}

.quant-card__value {
    color: #617089;
    font-size: 0.62rem;
    line-height: 1;
    font-family: var(--font-mono);
}

.radar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.radar-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(17, 26, 44, 0.12);
    border-radius: var(--radius-sm);
    background: #ffffff;
    font-size: 0.8rem;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.radar-legend__item.is-active {
    border-color: currentColor;
}

.radar-legend__item:not(.is-active) {
    opacity: 0.42;
}

.radar-legend__item:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(14, 26, 50, 0.1);
}

.radar-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.radar-card {
    border-radius: var(--radius-lg);
    padding: 20px 16px 16px;
}

.radar-card__title {
    margin: 0 0 10px;
    font-size: 0.92rem;
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
    color: #31405b;
    text-align: center;
}

.radar-card__canvas {
    display: block;
    width: 100%;
    height: auto;
}

.embed-panel {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.embed-panel__frame {
    display: block;
    width: 100%;
    height: 560px;
    border: 0;
    background: transparent;
}

.section--summary .lead {
    font-size: 1.12rem;
}

.results-table {
    border-top: 1.5px solid rgba(17, 26, 44, 0.66);
    border-bottom: 1.5px solid rgba(17, 26, 44, 0.66);
}

.results-table__row {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
    padding: 12px 4px;
    border-top: 1px solid rgba(17, 26, 44, 0.12);
}

.results-table__row:first-child {
    border-top: 0;
}

.results-table__row--head {
    font-weight: 700;
}

.contributions {
    margin: 0;
    padding-left: 24px;
}

.contributions li + li {
    margin-top: 10px;
}

.footer {
    padding: 0 0 30px;
    color: #60718d;
    font-size: 0.92rem;
    text-align: center;
}

.animate-in {
    opacity: 1;
    transform: none;
    animation: none;
}

.animate-in--1 { animation-delay: 90ms; }
.animate-in--2 { animation-delay: 180ms; }
.animate-in--3 { animation-delay: 280ms; }
.animate-in--4 { animation-delay: 380ms; }
.animate-in--5 { animation-delay: 500ms; }
.animate-in--6 { animation-delay: 620ms; }
.animate-in--7 { animation-delay: 740ms; }

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 520ms ease-out, transform 520ms ease-out;
}

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

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1080px) {
    .top-nav__inner,
    .content,
    .footer {
        width: min(calc(100vw - 34px), var(--max-width));
    }

    .masthead__inner {
        width: min(calc(100vw - 34px), var(--max-width));
    }

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

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

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

    .hero-media {
        max-width: 360px;
    }
}

@media (max-width: 840px) {
    .card-grid,
    .contribution-grid,
    .radar-grid {
        grid-template-columns: 1fr;
    }

    .motivation-layout {
        grid-template-columns: 1fr;
    }

    .links {
        gap: 10px;
    }

    .links a {
        min-width: 0;
        flex: 1 1 calc(50% - 10px);
        justify-content: center;
    }

    .embed-panel__frame {
        height: 640px;
    }
}

@media (max-width: 760px) {
    .top-nav__links {
        gap: 12px;
    }

    .top-nav__links a {
        width: 9px;
        height: 9px;
        overflow: hidden;
        border-radius: 50%;
        background: var(--muted-soft);
        color: transparent;
        text-indent: 999px;
        white-space: nowrap;
    }
}

@media (max-width: 700px) {
    .top-nav__inner,
    .content,
    .footer,
    .masthead__inner {
        width: min(calc(100vw - 48px), 340px);
        margin-left: 24px;
        margin-right: 0;
    }

    .masthead {
        padding: 38px 0 40px;
    }

    .masthead__inner {
        gap: 30px;
    }

    .title {
        font-size: clamp(1.7rem, 7.4vw, 1.9rem);
        line-height: 1.16;
    }

    .authors-inline {
        font-size: 0.9rem;
    }

    .authors-inline a {
        display: inline-block;
        margin-bottom: 3px;
    }

    .affiliation {
        max-width: 100%;
        font-size: 0.78rem;
    }

    .hero-media__pdf {
        height: 440px;
        min-height: 440px;
    }

    .hero-media__link {
        height: 360px;
    }

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

    #quantitative-results .results-grid {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        padding-bottom: 8px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    #quantitative-results .quant-card {
        flex: 0 0 min(86vw, 340px);
        scroll-snap-align: start;
    }

    .quant-card__headers,
    .quant-card__row {
        grid-template-columns: 96px repeat(3, minmax(0, 1fr));
    }

    .section__header h2 {
        font-size: clamp(1.36rem, 6vw, 1.8rem);
    }

    .info-panel,
    .info-card,
    .contribution-card,
    .quant-card,
    .radar-card,
    .bibtex-card,
    .embed-panel,
    .research-question {
        border-radius: var(--radius-lg);
    }

    .embed-panel__frame {
        height: 600px;
    }
}

@media (max-width: 520px) {
    .top-nav__actions {
        display: none;
    }

    .links a {
        flex-basis: 100%;
    }

    .embed-panel__frame {
        height: 560px;
    }

    .author-footnote,
    .footer {
        font-size: 0.88rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .animate-in,
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* AdapToPASS data tables and analysis views */
.analysis-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    background: var(--bg-alt);
}

.results-shell {
    min-width: 0;
}

.analysis-control > span {
    display: block;
    margin-bottom: 7px;
    color: var(--muted-soft);
    font: 500 0.68rem var(--font-mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.analysis-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px;
    border: 1px solid var(--rule);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.analysis-button {
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--muted);
    font: 500 0.74rem var(--font-mono);
    cursor: pointer;
    transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease;
}

.analysis-button:hover,
.analysis-button.is-active {
    border-color: var(--accent);
    background: #f8eef0;
    color: var(--accent);
    box-shadow: 0 1px 2px rgba(var(--accent-rgb), 0.1);
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
    width: 100%;
    max-width: 100%;
}

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

.analysis-table-panel,
.analysis-chart-panel {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.analysis-table-panel {
    padding: 20px 20px 16px;
}

.analysis-chart-panel {
    padding: 20px;
    background: linear-gradient(155deg, #ffffff 0%, #f6f6f7 100%);
}

.analysis-panel-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.analysis-panel-heading .section-kicker {
    margin-bottom: 6px;
}

.analysis-panel-heading h3 {
    margin: 0;
    color: var(--ink);
    font: 600 clamp(1.04rem, 1.7vw, 1.28rem)/1.25 var(--font-display);
}

.analysis-unit,
.analysis-scale {
    flex-shrink: 0;
    padding-top: 3px;
    color: var(--muted-soft);
    font: 500 0.68rem var(--font-mono);
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.table-scroll {
    overflow-x: auto;
    border: 1px solid var(--rule);
    border-radius: var(--radius-md);
}

.analysis-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-collapse: collapse;
    color: var(--muted);
    font-size: 0.83rem;
    line-height: 1.35;
}

.analysis-table th {
    padding: 11px 13px;
    border-bottom: 1px solid var(--rule);
    background: #f6f6f7;
    color: #444b55;
    font: 600 0.68rem var(--font-mono);
    letter-spacing: 0.06em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.analysis-table th:first-child,
.analysis-table td:first-child {
    width: 42%;
}

.analysis-table td {
    padding: 13px;
    border-bottom: 1px solid #ececef;
    color: #4e5662;
    vertical-align: middle;
}

.analysis-table tbody tr:last-child td {
    border-bottom: 0;
}

.analysis-table tbody tr:hover td {
    background: #fbfbfc;
}

.analysis-table td:first-child {
    min-width: 0;
    color: var(--ink);
    font-weight: 500;
    overflow-wrap: anywhere;
}

.analysis-table .text-end {
    text-align: right;
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.analysis-table .analysis-ours td {
    background: #f8eef0;
    color: var(--accent);
}

.analysis-table .analysis-ours td:first-child {
    border-left: 3px solid var(--accent);
    padding-left: 10px;
}

.analysis-table .analysis-best td {
    color: var(--accent);
    font-weight: 600;
}

.analysis-positive {
    color: #2f7d5c !important;
    font-weight: 600;
}

.analysis-negative {
    color: var(--accent) !important;
    font-weight: 600;
}

.analysis-caption,
.analysis-insight {
    margin: 12px 1px 0;
    color: var(--muted-soft);
    font-size: 0.76rem;
    line-height: 1.55;
}

.robustness-dataset + .robustness-dataset {
    margin-top: 18px;
}

.robustness-dataset__title {
    margin: 0 0 7px;
    color: var(--ink);
    font: 600 0.76rem var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (min-width: 841px) {
    .analysis-grid--lower > [aria-labelledby="robustness-title"] {
        margin-top: -108px;
    }
}

.analysis-insight {
    min-height: 38px;
    padding-left: 12px;
    border-left: 2px solid var(--accent);
    color: var(--muted);
}

.benchmark-chart {
    display: grid;
    gap: 12px;
    padding: 3px 0 5px;
}

.benchmark-bar-row {
    display: grid;
    grid-template-columns: minmax(142px, 0.82fr) minmax(0, 1.7fr) 50px;
    gap: 10px;
    align-items: center;
}

.benchmark-bar-label {
    overflow: hidden;
    color: #555e6b;
    font: 0.7rem var(--font-mono);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.benchmark-bar-track {
    height: 13px;
    overflow: hidden;
    border-radius: 999px;
    background: #e9e9ec;
}

.benchmark-bar-fill {
    display: block;
    height: 100%;
    min-width: 2px;
    border-radius: inherit;
    background: #64748b;
    transition: width 260ms ease, background-color 180ms ease;
}

.benchmark-bar-row.is-ours .benchmark-bar-label,
.benchmark-bar-row.is-ours .benchmark-bar-value {
    color: var(--accent);
    font-weight: 700;
}

.benchmark-bar-row.is-ours .benchmark-bar-fill {
    background: var(--accent);
}

.benchmark-bar-value {
    color: #596474;
    font: 600 0.72rem var(--font-mono);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 840px) {
    .analysis-grid,
    .analysis-grid--lower {
        grid-template-columns: 1fr;
    }

    .quantitative-figure {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .analysis-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .analysis-control,
    .analysis-buttons {
        width: 100%;
    }

    .analysis-button {
        flex: 1 1 auto;
    }

    .analysis-table-panel,
    .analysis-chart-panel {
        padding: 15px;
        border-radius: var(--radius-md);
    }

    .analysis-panel-heading h3 {
        font-size: 1rem;
    }

    .analysis-unit,
    .analysis-scale {
        font-size: 0.6rem;
    }

    .benchmark-bar-row {
        grid-template-columns: 120px minmax(0, 1fr) 45px;
        gap: 7px;
    }
}
