:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --accent-color: #8b1538;
  --text-primary: #16253b;
  --text-secondary: #4d5c72;
  --text-light: #7b8698;
  --background-primary: #ffffff;
  --background-secondary: #f8fafc;
  --background-tertiary: #f0f4f8;
  --background-results: linear-gradient(180deg, #f6f9fc 0%, #fbfdff 100%);
  --border-color: #d7e0ea;
  --border-strong: #c4d1df;
  --shadow-sm: 0 2px 8px rgba(22, 37, 59, 0.04);
  --shadow-md: 0 10px 24px rgba(22, 37, 59, 0.07);
  --shadow-lg: 0 18px 36px rgba(22, 37, 59, 0.09);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --transition: 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.04), transparent 24%),
    radial-gradient(circle at top right, rgba(139, 21, 56, 0.035), transparent 28%),
    var(--background-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--primary-color);
}

code,
pre code {
  font-family: "SF Mono", "Monaco", "Cascadia Code", "Roboto Mono", monospace;
}

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

.page-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
  padding: 48px 28px;
  background: rgba(255, 255, 255, 0.84);
  border-right: 1px solid rgba(219, 229, 241, 0.9);
  backdrop-filter: blur(12px);
  z-index: 40;
}

.sidebar-progress-track {
  position: absolute;
  left: 18px;
  top: 56px;
  bottom: 56px;
  width: 4px;
  background: rgba(194, 210, 232, 0.55);
  border-radius: 999px;
  overflow: hidden;
}

.sidebar-progress-fill {
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, #2563eb 0%, #7c3aed 100%);
  border-radius: inherit;
  transition: height 120ms linear;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.sidebar-link {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 12px 12px 20px;
  color: var(--text-light);
  text-decoration: none;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: var(--transition);
  font-family: "Source Sans 3", sans-serif;
}

.sidebar-link:hover {
  color: var(--text-primary);
  background: rgba(241, 245, 249, 0.8);
}

.sidebar-link.is-active {
  color: var(--text-primary);
  background: rgba(235, 243, 255, 0.95);
  border-color: rgba(148, 184, 255, 0.65);
  box-shadow: var(--shadow-sm);
}

.sidebar-link-index {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7f93b3;
}

.sidebar-link.is-active .sidebar-link-index {
  color: var(--primary-color);
}

.sidebar-link-label {
  font-size: 0.98rem;
  font-weight: 600;
}

.page-main {
  width: 100%;
  margin-left: 240px;
}

.hero,
.section {
  position: relative;
}

.hero-body {
  padding: 4.5rem 1.5rem;
}

.section {
  padding: 5rem 1.5rem;
}

.publication-hero .hero-body {
  padding-top: 4.3rem;
  padding-bottom: 3.4rem;
}

.hero-intro-shell {
  max-width: 1160px !important;
}

.publication-title {
  max-width: 1000px;
  margin: 0 auto 1.55rem !important;
  font-family: "Source Serif 4", Georgia, serif !important;
  font-size: clamp(2.3rem, 3.25vw, 3.3rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.025em;
  color: var(--text-primary) !important;
}

.author-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  max-width: 980px;
  margin: 0 auto 1.8rem;
}

.author-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1.4rem 1.75rem;
  width: 100%;
}

.author-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 136px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.author-photo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 104px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(215, 224, 234, 0.9);
  box-shadow: 0 6px 16px rgba(22, 37, 59, 0.08);
  background: #eef3f8;
}

.author-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-meta {
  margin-top: 0.75rem;
  text-align: center;
}

.author-name {
  display: inline-block;
  color: var(--text-primary);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.34;
  text-decoration: none;
  transition: var(--transition);
}

.author-name:hover {
  color: var(--primary-color);
}

.author-name-static {
  cursor: default;
}

.affiliation-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0.95rem auto 1.7rem;
}

.affiliation-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  min-height: 62px;
  padding: 0.8rem 0.95rem;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(219, 229, 241, 0.52);
  border-radius: 16px;
  box-shadow: none;
}

.affiliation-tile img {
  max-height: 32px;
  width: auto;
}

.publication-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.link-block {
  display: inline-flex;
}

.button {
  border-radius: 999px !important;
  font-family: "Source Sans 3", sans-serif !important;
  font-weight: 700 !important;
  transition: var(--transition) !important;
  border: 1px solid transparent !important;
}

.button.is-dark {
  background: #173055 !important;
  color: #ffffff !important;
  box-shadow: var(--shadow-sm);
}

.button.is-dark:hover {
  transform: translateY(-2px);
  background: #20447a !important;
  box-shadow: var(--shadow-md);
}

.section-shell {
  position: relative;
}

.teaser .hero-body {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.section-panel {
  background: rgba(247, 249, 252, 0.82);
  border-top: 1px solid rgba(219, 229, 241, 0.95);
  border-bottom: 1px solid rgba(219, 229, 241, 0.95);
}

.title.is-3 {
  position: relative;
  text-align: center;
  margin-bottom: 1.4rem !important;
  padding-bottom: 1rem;
  color: var(--text-primary) !important;
  font-family: "Source Serif 4", Georgia, serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
}

.title.is-3::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 72px;
  height: 4px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #2563eb 0%, #7c3aed 100%);
}

.content.has-text-justified,
.centered-copy {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

.content.has-text-justified p:last-child,
.centered-copy p:last-child {
  margin-bottom: 0;
}

.centered-copy {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.centered-figure {
  max-width: 860px;
  margin: 0 auto 1.8rem;
}

.hero-figure {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.section-subtitle,
.summary-caption {
  max-width: 820px;
  margin: 1rem auto 0;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.section-method {
  padding-top: 4.85rem;
  padding-bottom: 5.2rem;
}

.results-section {
  background: var(--background-results);
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
}

.results-section .hero-body {
  padding-top: 4.7rem;
  padding-bottom: 4.8rem;
}

.summary-figure {
  max-width: 720px;
  margin: 0 auto 1.25rem;
}

.summary-figure-media {
  position: relative;
}

.summary-highlight-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.summary-highlight-box {
  position: absolute;
  border-radius: 16px;
  border: 2.5px solid rgba(15, 23, 42, 0.92);
  background: rgba(15, 23, 42, 0.04);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.72), 0 16px 30px rgba(15, 23, 42, 0.12);
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 220ms ease, transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.summary-highlight-box[data-highlight-tone="red"] {
  border-color: rgba(159, 18, 57, 0.95);
  background: rgba(225, 29, 72, 0.12);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.72), 0 16px 32px rgba(159, 18, 57, 0.18);
}

.summary-highlight-box[data-highlight-tone="green"] {
  border-color: rgba(5, 150, 105, 0.95);
  background: rgba(16, 185, 129, 0.12);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.72), 0 16px 32px rgba(5, 150, 105, 0.18);
}

.summary-highlight-box.is-active {
  opacity: 1;
  transform: scale(1);
}

.finding-transition-copy {
  max-width: 760px;
  margin: 0 auto 1.25rem;
  text-align: center;
}

.finding-transition-copy p {
  margin: 0;
  padding: 1rem 1.15rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(219, 229, 241, 0.88);
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
}

.findings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1.35rem;
  align-items: start;
}

.findings-panel {
  min-width: 0;
}

.results-slider {
  max-width: none;
  margin: 0;
}

.slider-window {
  overflow: hidden;
  border-radius: 18px;
  transition: height 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.slider-track {
  display: flex;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.result-slide {
  flex: 0 0 100%;
  padding: 0.55rem;
}

.result-slide-figure,
.result-slide-copy {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(219, 229, 241, 0.92);
  border-radius: 18px;
  box-shadow: none;
}

.result-slide-figure {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  padding: 0.9rem;
}

.result-slide-figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.result-slide-copy {
  margin-top: 0.75rem;
  padding: 0.95rem 1.1rem;
  text-align: center;
}

.result-slide-copy h3 {
  margin: 0;
  color: var(--text-primary);
  font-family: "Source Sans 3", sans-serif;
  font-size: 1.04rem;
  line-height: 1.6;
  font-weight: 600;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 1.3rem;
}

.slider-arrow {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #ffffff;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
}

.slider-arrow:hover {
  transform: translateY(-2px);
  background: var(--primary-color);
  color: #ffffff;
}

.slider-dots {
  display: flex;
  gap: 10px;
}

.slider-dot {
  width: 11px;
  height: 11px;
  border: none;
  border-radius: 50%;
  padding: 0;
  background: rgba(124, 136, 157, 0.45);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.is-active {
  transform: scale(1.2);
  background: var(--primary-color);
}

@media screen and (max-width: 1023px) {
  .findings-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .summary-figure {
    max-width: 720px;
    margin: 0 auto 0.75rem;
  }

  .results-slider {
    max-width: 720px;
    margin: 0 auto;
  }
}

.results-table {
  border-collapse: separate;
  border-spacing: 0 6px;
  font-size: 0.94rem;
}

.qualitative-section {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.92) 0%, rgba(255, 255, 255, 0.98) 100%);
  padding-top: 4.65rem;
  padding-bottom: 3.25rem;
}

.qualitative-intro {
  max-width: 860px;
  margin: 0 auto 1rem;
  color: var(--text-secondary);
  text-align: center;
  font-size: 1.02rem;
  line-height: 1.72;
}

.qual-case-metadata {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.qualitative-root {
  max-width: 1080px;
  margin: 0 auto;
}

.qualitative-loading,
.qualitative-error {
  padding: 1.2rem 1.35rem;
  text-align: center;
  color: var(--text-secondary);
  border: 1px solid rgba(215, 224, 234, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
}

.qualitative-carousel {
  margin-top: 0.8rem;
  margin-bottom: 0;
}

.qualitative-carousel-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.slider-controls-top {
  margin-top: 0;
  justify-content: center;
}

.qualitative-window {
  border-radius: 20px;
}

.qualitative-track {
  align-items: flex-start;
}

.qual-slide {
  flex: 0 0 100%;
  padding: 0.45rem 0.45rem 0;
}

.qual-slide-header {
  max-width: 900px;
  margin: 0 auto 1.3rem;
  text-align: center;
}

.qual-finding-id {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.8rem;
  margin-bottom: 0.8rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 700;
}

.qual-slide-title {
  margin: 0 0 0.65rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.6rem;
  line-height: 1.25;
  color: var(--text-primary);
}

.qual-slide-claim,
.qual-slide-relationship {
  margin: 0.3rem auto 0;
  max-width: 860px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.qual-comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.qual-case-card {
  height: 100%;
  padding: 1.2rem;
  border: 1px solid rgba(215, 224, 234, 0.95);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.qual-case-header {
  margin-bottom: 0.95rem;
  text-align: center;
}

.qual-case-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  background: rgba(139, 21, 56, 0.08);
  color: var(--accent-color);
  font-size: 0.84rem;
  font-weight: 700;
}

.qual-case-topic {
  margin: 0.8rem 0 0.25rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.28rem;
  color: var(--text-primary);
}

.qual-case-model {
  margin: 0;
  color: var(--text-light);
  font-size: 0.94rem;
}

.case-meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  background: rgba(240, 244, 248, 0.92);
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.35;
}

.qual-case-summaries {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1rem 0 1.1rem;
}

.qual-case-summaries div {
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.92);
}

.qual-case-summaries dt {
  margin: 0 0 0.2rem;
  color: var(--text-primary);
  font-weight: 700;
}

.qual-case-summaries dd {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.55;
}

.qual-case-agreement {
  margin: 1rem 0 1rem;
  text-align: center;
}

.agreement-label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 700;
}

.agreement-trajectory {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.agreement-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.36rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(215, 224, 234, 0.95);
  background: #ffffff;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
}

.agreement-chip-round {
  color: var(--text-light);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.agreement-chip-1,
.agreement-chip-2 {
  background: #fdeeee;
  color: #a73143;
}

.agreement-chip-3 {
  background: #fff6df;
  color: #9b6b00;
}

.agreement-chip-4,
.agreement-chip-5 {
  background: #e9f8ef;
  color: #17633f;
}

.qual-transcript h5 {
  margin: 0 0 0.75rem;
  color: var(--text-primary);
  font-size: 0.98rem;
  font-weight: 700;
}

.utterance-list {
  display: grid;
  gap: 0.7rem;
}

.utterance-round {
  padding: 0.8rem;
  border-radius: 14px;
  background: rgba(250, 252, 254, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.88);
}

.utterance-round-label {
  margin-bottom: 0.55rem;
  color: var(--text-light);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.utterance-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  margin-top: 0.55rem;
}

.utterance-row:first-of-type {
  margin-top: 0;
}

.utterance-speaker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.35rem 0.45rem;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary-color);
  font-size: 0.82rem;
  font-weight: 700;
}

.utterance-text {
  margin: 0;
  padding: 0.68rem 0.8rem;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.9);
  color: var(--text-secondary);
  line-height: 1.65;
}

.transcript-empty {
  color: var(--text-secondary);
  line-height: 1.7;
}

.results-table thead th {
  border: none;
  padding: 0.62rem 0.72rem;
  color: var(--text-primary);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center !important;
}

.results-table thead th:first-child {
  text-align: left !important;
}

.table-container {
  margin-top: 1.35rem;
  padding: 0.75rem 0.85rem 0.65rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(215, 224, 234, 0.94);
  box-shadow: var(--shadow-sm);
}

.family-label td {
  padding: 0.72rem 0 0.28rem !important;
  border: none !important;
  background: transparent !important;
  color: var(--text-primary);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.model-row td {
  border-top: 1px solid rgba(228, 235, 242, 0.95) !important;
  border-bottom: 1px solid rgba(228, 235, 242, 0.95) !important;
  background: rgba(255, 255, 255, 0.98);
  text-align: center;
  vertical-align: middle;
  padding: 0.56rem 0.68rem;
  line-height: 1.25;
}

.model-row td:first-child {
  text-align: left;
  font-weight: 700;
  color: var(--text-primary);
  border-left: 1px solid rgba(228, 235, 242, 0.95) !important;
  border-radius: 14px 0 0 14px;
  padding-left: 0.88rem;
}

.model-row td:last-child {
  border-right: 1px solid rgba(228, 235, 242, 0.95) !important;
  border-radius: 0 14px 14px 0;
}

.model-row td:not(:first-child) {
  font-weight: 700;
}

.pass-cell {
  background: #eef8f3 !important;
  color: #17633f;
}

.fail-cell {
  background: #fbf0f2 !important;
  color: #ab2438;
}

.bibtex-header {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

pre {
  margin: 0;
  padding: 1.5rem !important;
  overflow-x: auto;
  border-radius: 18px !important;
  border: 1px solid rgba(219, 229, 241, 0.96) !important;
  background: #f4f7fb !important;
  box-shadow: var(--shadow-sm);
}

code {
  background: transparent !important;
  color: var(--text-primary) !important;
}

.copy-bibtex-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 999px;
  background: var(--primary-color);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.copy-bibtex-btn:hover {
  transform: translateY(-2px);
  background: var(--primary-hover);
}

.copy-bibtex-btn.copied {
  background: #15955c;
}

.footer {
  background: var(--background-secondary);
  border-top: 1px solid rgba(219, 229, 241, 0.95);
  padding: 2rem 1.5rem 2.2rem;
}

.footer .content {
  color: var(--text-light);
  font-size: 0.94rem;
  line-height: 1.7;
  text-align: center;
}

.footer .content a {
  color: #4a6ea8;
  text-decoration: none;
}

.footer .content a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.scroll-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: var(--primary-color);
  color: #ffffff;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 60;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-3px);
  background: var(--primary-hover);
}

.reveal-section {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-section .section-shell > * {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 560ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

.reveal-section.is-visible .section-shell > *:nth-child(1) { transition-delay: 40ms; }
.reveal-section.is-visible .section-shell > *:nth-child(2) { transition-delay: 100ms; }
.reveal-section.is-visible .section-shell > *:nth-child(3) { transition-delay: 160ms; }
.reveal-section.is-visible .section-shell > *:nth-child(4) { transition-delay: 220ms; }
.reveal-section.is-visible .section-shell > *:nth-child(5) { transition-delay: 280ms; }

.button:focus-visible,
.sidebar-link:focus-visible,
.slider-arrow:focus-visible,
.slider-dot:focus-visible,
.copy-bibtex-btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal-section,
  .reveal-section .section-shell > * {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media screen and (max-width: 1180px) {
  .page-sidebar {
    width: 210px;
    padding-left: 24px;
    padding-right: 20px;
  }

  .page-main {
    margin-left: 210px;
  }

  .author-grid {
    max-width: 840px;
  }
}

@media screen and (max-width: 900px) {
  .page-sidebar {
    display: none;
  }

  .page-main {
    margin-left: 0;
  }
}

@media screen and (max-width: 768px) {
  .hero-body,
  .section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .publication-hero .hero-body {
    padding-top: 3rem;
  }

  .publication-title {
    max-width: 100%;
    font-size: 2.35rem !important;
  }

  .author-grid {
    gap: 0.9rem;
  }

  .author-row {
    flex-wrap: wrap;
    gap: 0.9rem 1rem;
  }

  .author-card {
    width: 118px;
  }

  .author-photo-link {
    width: 92px;
    height: 92px;
  }

  .affiliation-tile {
    min-width: 0;
    width: 100%;
  }

  .result-slide {
    padding: 0.5rem;
  }

  .result-slide-figure {
    aspect-ratio: 4 / 3;
  }

  .result-slide-copy h3 {
    font-size: 1.08rem;
  }

  .results-table {
    min-width: 760px;
  }

  .qual-comparison-grid {
    grid-template-columns: 1fr;
  }

  .qual-case-summaries {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 520px) {
  .publication-title {
    font-size: 1.95rem !important;
  }

  .author-row {
    gap: 0.85rem;
  }

  .publication-links {
    flex-direction: column;
    align-items: stretch;
  }

  .link-block,
  .link-block .button {
    width: 100%;
  }

  .bibtex-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .qual-slide-title {
    font-size: 1.35rem;
  }

  .utterance-row {
    grid-template-columns: 1fr;
  }

  .utterance-speaker {
    width: fit-content;
  }
}
