:root {
  --bg: #f5f8fb;
  --bg-soft: #edf3f7;
  --surface: #ffffff;
  --surface-soft: #f8fbfd;
  --ink: #121926;
  --ink-soft: #475467;
  --ink-muted: #667085;
  --line: rgba(18, 25, 38, 0.12);
  --line-strong: rgba(18, 25, 38, 0.18);
  --cyan: #0e9eac;
  --cyan-dark: #087985;
  --blue: #3157d7;
  --coral: #dc675d;
  --amber: #c9891d;
  --sage: #4f8a67;
  --night: #284560;
  --night-soft: #36566f;
  --night-panel: #eef6f9;
  --card-radius: 8px;
  --shadow-sm: 0 10px 24px rgba(18, 25, 38, 0.08);
  --shadow-md: 0 22px 58px rgba(18, 25, 38, 0.14);
  --shadow-lg: 0 34px 90px rgba(5, 12, 22, 0.24);
  --container: min(1180px, calc(100vw - 44px));
  --transition: 180ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 46%, #eef4f8 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body,
button,
input {
  letter-spacing: 0;
}

::selection {
  color: #fff;
  background: var(--cyan-dark);
}

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

figure {
  margin: 0;
}

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

button {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
video:focus-visible {
  outline: 3px solid rgba(14, 158, 172, 0.42);
  outline-offset: 3px;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(18, 25, 38, 0.1);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 32px rgba(18, 25, 38, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
}

.brand::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--amber));
  box-shadow: 0 0 22px rgba(14, 158, 172, 0.54);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  color: rgba(18, 25, 38, 0.68);
  font-size: 0.92rem;
  font-weight: 700;
  transition: color var(--transition), background var(--transition), box-shadow var(--transition);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
  background: rgba(14, 158, 172, 0.1);
  box-shadow: inset 0 0 0 1px rgba(14, 158, 172, 0.12);
}

.scroll-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(14, 158, 172, 0.22);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan-dark), #3157d7);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

.scroll-to-top.is-visible {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.teaser-hero {
  position: relative;
  overflow: hidden;
  padding: 24px 0 54px;
  min-height: 0;
  background:
    linear-gradient(135deg, rgba(14, 158, 172, 0.11) 0%, transparent 34%),
    linear-gradient(225deg, rgba(49, 87, 215, 0.09) 0%, transparent 32%),
    linear-gradient(180deg, #fbfdff 0%, #eef6f9 100%);
}

.teaser-stage {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: clamp(560px, 76svh, 780px);
  min-height: 0;
  background: #eef6f9;
  border-top: 1px solid rgba(18, 25, 38, 0.08);
  border-bottom: 1px solid rgba(18, 25, 38, 0.08);
  box-shadow: 0 28px 78px rgba(36, 75, 97, 0.14);
}

.teaser-stage::before,
.teaser-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.teaser-stage::before {
  background:
    radial-gradient(ellipse at 50% 48%, rgba(255, 255, 255, 0.95) 0%, rgba(250, 253, 254, 0.86) 33%, rgba(239, 247, 249, 0.48) 58%, rgba(232, 244, 248, 0.76) 100%),
    linear-gradient(90deg, rgba(248, 252, 253, 0.82) 0%, rgba(248, 252, 253, 0.28) 42%, rgba(248, 252, 253, 0.76) 100%);
}

.teaser-stage::after {
  display: none;
}

.teaser-grid {
  display: grid;
  width: 100%;
  height: 100%;
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  opacity: 0.72;
  transform: scale(1.01);
}

.teaser-tile {
  position: relative;
  overflow: hidden;
  background: #e6f1f5;
}

.teaser-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.98) contrast(0.94) brightness(1.08);
}

.teaser-tile:nth-child(2n) video {
  filter: saturate(1.02) contrast(0.95) brightness(1.04);
}

.teaser-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 22px;
}

.teaser-copy {
  position: relative;
  isolation: isolate;
  width: min(1480px, 100%);
  color: var(--ink);
  text-align: center;
  text-shadow:
    0 2px 18px rgba(255, 255, 255, 0.92),
    0 1px 0 rgba(255, 255, 255, 0.72);
}

.teaser-copy::before {
  content: "";
  position: absolute;
  inset: -54px max(-7vw, -96px);
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.78) 46%, rgba(255, 255, 255, 0) 74%);
  pointer-events: none;
}

.eyebrow,
.kicker,
.video-label {
  margin: 0;
  color: var(--cyan-dark);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.teaser-copy .eyebrow {
  color: var(--cyan-dark);
  font-size: 1.68rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

.teaser-copy h1 {
  margin-top: 16px;
  color: #143248;
  font-size: clamp(2.25rem, 4.85vw, 4.8rem);
  font-weight: 900;
  line-height: 1;
  text-wrap: balance;
}

.teaser-copy h1 span {
  display: block;
  white-space: nowrap;
}

.teaser-copy h1 small {
  display: block;
  max-width: 980px;
  margin: 20px auto 0;
  color: #2f4f60;
  font: inherit;
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  font-weight: 700;
  line-height: 1.34;
  text-wrap: balance;
}

.tagline {
  max-width: 820px;
  margin: 24px auto 0;
  color: #3f5968;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.66;
  text-wrap: pretty;
}

.hero-actions,
.paper-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.hero-actions {
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform var(--transition),
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.button:hover {
  transform: translateY(-1px);
}

.button-light {
  color: #fff;
  background: linear-gradient(135deg, var(--cyan-dark), #3157d7);
  box-shadow: 0 16px 34px rgba(14, 158, 172, 0.22);
}

.button-ghost {
  color: #183243;
  border: 1px solid rgba(18, 25, 38, 0.14);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
}

.button-resource {
  justify-content: flex-start;
  gap: 12px;
  width: min(250px, calc(50vw - 24px));
  min-height: 64px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  color: #fff;
  font-size: 1.12rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 10px 22px rgba(22, 52, 78, 0.12);
  text-shadow: none;
}

.button-resource:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 12px 26px rgba(22, 52, 78, 0.16);
}

.button-paper {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 42%),
    linear-gradient(135deg, #9b5b53 0%, #497ca3 100%);
}

.button-code {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 44%),
    linear-gradient(135deg, #243c54 0%, #10293f 100%);
}

.button-icon,
.button-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.button-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.button-paper .button-icon {
  background: linear-gradient(135deg, #c04838, #9f2f25);
}

.button-code .button-icon {
  background: rgba(255, 255, 255, 0.14);
}

.button-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.button-arrow {
  width: 34px;
  height: 34px;
  margin-left: auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  font-size: 1.12rem;
  line-height: 1;
}

.button-dark {
  color: #fff;
  background: linear-gradient(135deg, var(--night), #22324f);
  box-shadow: 0 14px 30px rgba(18, 25, 38, 0.18);
}

.button-outline {
  color: var(--night);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.68);
}

.button-outline:hover {
  background: #fff;
}

.section-shell {
  padding: 90px 0;
}

.section-alt {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(237, 243, 247, 0.86)),
    var(--bg-soft);
  border-top: 1px solid rgba(18, 25, 38, 0.06);
  border-bottom: 1px solid rgba(18, 25, 38, 0.06);
}

.section-stress {
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(14, 158, 172, 0.13) 0%, rgba(255, 255, 255, 0.9) 46%, rgba(201, 137, 29, 0.12) 100%),
    #eef6f9;
  border-top: 1px solid rgba(18, 25, 38, 0.08);
  border-bottom: 1px solid rgba(18, 25, 38, 0.08);
}

.paper-hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 96px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(14, 158, 172, 0.1) 0%, transparent 26%),
    linear-gradient(225deg, rgba(220, 103, 93, 0.1) 0%, transparent 24%),
    linear-gradient(180deg, #fbfdff 0%, #f3f7fa 100%);
  border-bottom: 1px solid rgba(18, 25, 38, 0.08);
}

.paper-hero .container {
  position: relative;
  z-index: 1;
}

.paper-heading,
.section-heading {
  max-width: 1120px;
  margin-bottom: 32px;
}

.paper-heading {
  max-width: 1020px;
  margin-right: auto;
  margin-bottom: 28px;
  margin-left: auto;
  text-align: center;
}

.section-heading h2 {
  margin: 10px 0 13px;
  color: var(--ink);
  font-size: clamp(2.2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.04;
  text-wrap: nowrap;
  white-space: nowrap;
}

.section-stress .section-heading h2 {
  color: var(--ink);
}

.paper-heading h2 {
  max-width: 1100px;
  margin: 0 auto 18px;
  color: var(--ink);
  font-size: 3.75rem;
  font-weight: 900;
  line-height: 1.05;
  text-wrap: balance;
}

.paper-title-main,
.paper-title-sub {
  display: block;
}

.paper-title-main {
  color: #2356d4;
  background: linear-gradient(90deg, #2356d4 0%, #0b8fa0 46%, #d45f68 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 1.08em;
  font-weight: 800;
  -webkit-text-fill-color: transparent;
}

.paper-title-sub {
  max-width: 980px;
  margin: 10px auto 0;
  font-size: 0.64em;
  line-height: 1.28;
}

.paper-heading p {
  max-width: 940px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 1.18rem;
  line-height: 1.68;
  text-wrap: pretty;
}

.paper-title-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 7px 13px 7px 7px;
  border: 1px solid rgba(18, 25, 38, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--cyan-dark);
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(18, 25, 38, 0.07);
  backdrop-filter: blur(12px);
}

.paper-title-mark img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.paper-heading p,
.section-heading p,
.metric-card span,
.featured-video figcaption,
.site-footer p {
  color: var(--ink-soft);
}

.section-heading p {
  max-width: 980px;
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.68;
  text-wrap: pretty;
  white-space: normal;
}

.section-stress .section-heading p {
  color: var(--ink-soft);
}

.section-stress .video-label {
  color: var(--cyan-dark);
}

.author-block {
  max-width: 1180px;
  margin: 24px auto 0;
  padding: 24px 0 6px;
  border-top: 1px solid rgba(18, 25, 38, 0.12);
}

.author-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
}

.author-line + .author-line {
  margin-top: 12px;
}

.author-line sup,
.affiliations sup {
  font-size: 0.7em;
  vertical-align: super;
  line-height: 0;
}

.affiliations {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(18, 25, 38, 0.1);
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.affiliation-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 40px;
  padding: 0 18px 0 0;
  white-space: nowrap;
}

.affiliation-item:not(:last-of-type)::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 0;
  bottom: 8px;
  width: 1px;
  background: rgba(18, 25, 38, 0.14);
}

.affiliation-logo-shell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 6px 16px rgba(18, 25, 38, 0.07);
  flex: 0 0 auto;
}

.affiliation-logo-wide {
  width: 50px;
  border-radius: 8px;
}

.affiliation-logo-shell img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.affiliations p {
  margin: 0;
}

.affiliation-note {
  flex-basis: 100%;
  margin: 6px 0 0;
  color: var(--ink-muted);
  text-align: center;
  font-size: 0.88rem;
}

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

.metric-card,
.video-card,
.bibtex-card,
.result-table {
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
}

.metric-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
}

.metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--cyan);
}

.metric-card:nth-child(2)::before {
  background: var(--coral);
}

.metric-card:nth-child(3)::before {
  background: var(--amber);
}

.metric-card:nth-child(4)::before {
  background: var(--sage);
}

.metric-card strong {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 2.4rem;
  line-height: 1;
}

.metric-card:nth-child(1) strong {
  color: var(--cyan-dark);
}

.metric-card:nth-child(2) strong {
  color: var(--coral);
}

.metric-card:nth-child(3) strong {
  color: var(--amber);
}

.metric-card:nth-child(4) strong {
  color: var(--sage);
}

.metric-card span {
  display: block;
  font-size: 0.95rem;
  line-height: 1.58;
}

.result-table {
  overflow: hidden;
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.92);
}

.table-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(88px, 0.35fr) minmax(88px, 0.35fr);
  gap: 12px;
  align-items: center;
  min-height: 52px;
  padding: 0 20px;
  border-top: 1px solid rgba(18, 25, 38, 0.08);
}

.table-row:first-child {
  border-top: 0;
}

.table-row:not(.table-head):nth-child(2n + 1) {
  background: rgba(248, 251, 253, 0.88);
}

.table-head {
  color: #fff;
  background: linear-gradient(90deg, var(--night), #22324f);
  font-weight: 800;
}

.table-row span:nth-child(2),
.table-row span:nth-child(3) {
  font-weight: 800;
  text-align: right;
}

.featured-video {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.featured-video video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #e6f1f5;
}

.featured-video figcaption {
  padding: 15px 18px 16px;
  font-size: 0.95rem;
  line-height: 1.58;
  background: rgba(255, 255, 255, 0.94);
}

.overview-showcase {
  max-width: 1040px;
  margin: 38px auto 0;
  border-color: rgba(18, 25, 38, 0.12);
  box-shadow: 0 26px 68px rgba(18, 25, 38, 0.16);
}

.paper-story-grid {
  display: grid;
  width: 100%;
  max-width: 1120px;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 20px;
  margin: 34px auto 0;
}

.abstract-panel,
.contribution-panel,
.role-card,
.workflow-step,
.result-panel,
.analysis-card {
  border: 1px solid rgba(18, 25, 38, 0.1);
  border-radius: var(--card-radius);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-sm);
}

.abstract-panel,
.contribution-panel {
  padding: 26px;
}

.abstract-panel .kicker,
.contribution-panel .kicker {
  font-size: 1.08rem;
}

.abstract-panel h3,
.contribution-panel h3,
.role-card h3,
.workflow-step h3,
.result-panel-heading h3,
.analysis-card h3 {
  color: var(--ink);
  font-weight: 850;
  line-height: 1.18;
  text-wrap: balance;
}

.abstract-panel h3 {
  margin-top: 10px;
  font-size: 1.75rem;
}

.abstract-panel p:not(.kicker),
.contribution-list,
.role-card p,
.workflow-step p,
.analysis-card p {
  color: var(--ink-soft);
}

.abstract-panel p:not(.kicker) {
  margin: 14px 0 0;
  font-size: 1.01rem;
  line-height: 1.72;
}

.contribution-list {
  display: grid;
  gap: 14px;
  margin: 16px 0 0;
  padding-left: 22px;
  font-size: 0.99rem;
  line-height: 1.65;
}

.contribution-list li::marker {
  color: var(--cyan-dark);
  font-weight: 900;
}

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

.workflow-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan-dark), var(--blue));
  font-size: 0.85rem;
  font-weight: 900;
  line-height: 1;
}

.paper-figure {
  overflow: hidden;
  border: 1px solid rgba(18, 25, 38, 0.1);
  border-radius: var(--card-radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.paper-figure img {
  width: 100%;
  height: auto;
  background: #fff;
}

.paper-figure figcaption {
  padding: 14px 18px 16px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.58;
  background: rgba(255, 255, 255, 0.92);
}

.caption-blue,
.caption-red,
.caption-pink {
  font-weight: 900;
}

.caption-blue {
  color: #38bdf8;
}

.caption-red {
  color: #d3382c;
}

.caption-pink {
  color: #d7609b;
}

.teaser-figure {
  max-width: 1120px;
  margin: 24px auto 0;
}

.section-method {
  background:
    linear-gradient(135deg, rgba(49, 87, 215, 0.08) 0%, rgba(255, 255, 255, 0.96) 35%, rgba(14, 158, 172, 0.08) 100%),
    #f7fbfd;
}

.framework-figure {
  margin-bottom: 22px;
}

.agent-role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.role-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
}

.role-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--cyan);
}

.role-arranger::before {
  background: var(--coral);
}

.role-conductor::before {
  background: var(--amber);
}

.role-label {
  margin: 0;
  color: var(--cyan-dark);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.role-arranger .role-label {
  color: var(--coral);
}

.role-conductor .role-label {
  color: var(--amber);
}

.role-card h3 {
  margin-top: 10px;
  font-size: 1.25rem;
}

.role-card p:not(.role-label) {
  margin: 10px 0 0;
  font-size: 0.96rem;
  line-height: 1.6;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.workflow-step {
  padding: 20px;
}

.workflow-step h3 {
  margin-top: 16px;
  font-size: 1.12rem;
}

.workflow-step p {
  margin: 8px 0 0;
  font-size: 0.94rem;
  line-height: 1.55;
}

.section-results {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(237, 243, 247, 0.9)),
    var(--bg-soft);
  border-top: 1px solid rgba(18, 25, 38, 0.06);
  border-bottom: 1px solid rgba(18, 25, 38, 0.06);
}

.result-metrics {
  margin-bottom: 24px;
}

.results-board {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 20px;
}

.result-panel {
  overflow: hidden;
}

.result-panel-heading {
  padding: 22px 22px 14px;
}

.result-panel-heading h3 {
  margin-top: 9px;
  font-size: 1.28rem;
}

.paper-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}

.paper-table th,
.paper-table td {
  padding: 12px 16px;
  border-top: 1px solid rgba(18, 25, 38, 0.08);
  text-align: left;
  vertical-align: middle;
}

.paper-table thead th {
  color: #fff;
  background: linear-gradient(90deg, var(--night), #22324f);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.paper-table tbody tr:nth-child(2n) {
  background: rgba(248, 251, 253, 0.86);
}

.paper-table td:not(:first-child),
.paper-table th:not(:first-child) {
  text-align: right;
}

.paper-table .table-highlight {
  color: #113c47;
  background: rgba(14, 158, 172, 0.12);
  font-weight: 900;
}

.evidence-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.44fr) minmax(280px, 0.56fr);
  gap: 18px;
  margin-top: 22px;
  align-items: stretch;
}

.evidence-main img {
  object-fit: contain;
}

.evidence-side {
  display: grid;
  gap: 18px;
}

.evidence-side .paper-figure img {
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.supplementary-results {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.supplementary-results .paper-figure img {
  max-height: 720px;
  object-fit: contain;
}

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

.analysis-card {
  padding: 22px;
}

.analysis-card h3 {
  margin-top: 10px;
  font-size: 1.18rem;
}

.analysis-card p:not(.kicker) {
  margin: 10px 0 0;
  font-size: 0.96rem;
  line-height: 1.62;
}

.video-group-heading {
  max-width: 780px;
  margin-bottom: 16px;
}

.video-group-heading h3 {
  margin-top: 7px;
  color: var(--ink);
  font-size: 1.55rem;
  font-weight: 850;
  line-height: 1.14;
  text-wrap: balance;
}

.simulation-videos {
  margin-bottom: 58px;
}

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

.simulation-card {
  border-color: rgba(14, 158, 172, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 253, 0.9));
}

.simulation-card:hover {
  border-color: rgba(49, 87, 215, 0.24);
}

.simulation-card video {
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background:
    linear-gradient(135deg, rgba(230, 241, 245, 0.92), rgba(248, 251, 253, 0.96)),
    #e6f1f5;
}

.real-video-heading {
  margin-bottom: 18px;
}

.video-browser {
  display: grid;
  grid-template-columns: minmax(260px, 0.32fr) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.video-browser-nav,
.video-browser-main {
  border: 1px solid rgba(18, 25, 38, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

.video-browser-nav {
  display: grid;
  overflow: auto;
  gap: 10px;
  grid-template-rows: repeat(6, minmax(0, 1fr));
  height: 100%;
  max-height: none;
  padding: 16px;
}

.task-tab {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 0;
  padding: 12px;
  border: 1px solid rgba(18, 25, 38, 0.08);
  border-radius: 18px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.58);
  text-align: left;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.task-tab:hover,
.task-tab.is-active {
  transform: translateY(-1px);
  border-color: rgba(49, 87, 215, 0.22);
  background: linear-gradient(135deg, rgba(49, 87, 215, 0.12), rgba(255, 255, 255, 0.86));
  box-shadow: 0 14px 30px rgba(48, 62, 101, 0.09);
}

.task-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: #2a4772;
  background: rgba(237, 243, 247, 0.92);
  font-size: 1.04rem;
  font-weight: 900;
}

.task-tab.is-active .task-number {
  color: #fff;
  background: linear-gradient(135deg, #263f73, #5e63d9);
}

.task-tab small,
.clip-button {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.task-tab small {
  display: block;
  margin-bottom: 2px;
  color: var(--ink-muted);
}

.task-tab-copy {
  display: block;
  min-width: 0;
}

.task-tab strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.22;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-browser-main {
  padding: 18px;
}

.task-panel {
  display: none;
}

.task-panel.is-active {
  display: block;
}

.task-video-frame {
  overflow: hidden;
  border-radius: 18px;
  background: #e6f1f5;
  box-shadow: 0 20px 48px rgba(18, 25, 38, 0.14);
}

.task-video-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #e6f1f5;
}

.task-panel-copy {
  margin-top: 18px;
}

.task-panel-copy h3 {
  margin-top: 8px;
  color: var(--ink);
  font-size: 1.65rem;
  font-weight: 850;
  line-height: 1.12;
  text-wrap: balance;
}

.task-prompt {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  max-width: 920px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(14, 158, 172, 0.16);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(14, 158, 172, 0.09), rgba(255, 255, 255, 0.9));
}

.task-prompt span {
  color: var(--cyan-dark);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.task-prompt p {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.task-description {
  max-width: 860px;
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.62;
}

.clip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.clip-button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(18, 25, 38, 0.1);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(248, 251, 253, 0.86);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.clip-button:hover,
.clip-button.is-active {
  color: #263f73;
  border-color: rgba(49, 87, 215, 0.2);
  background: rgba(49, 87, 215, 0.1);
  box-shadow: 0 8px 18px rgba(48, 62, 101, 0.08);
}

.challenge-videos {
  margin-top: 80px;
}

.challenge-heading {
  margin-bottom: 16px;
}

.challenge-heading h3 {
  margin-top: 7px;
  color: var(--ink);
  font-size: 1.7rem;
  font-weight: 850;
  line-height: 1.12;
  text-wrap: balance;
}

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

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

.video-card {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.video-card:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 158, 172, 0.28);
  box-shadow: var(--shadow-md);
}

.video-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #e6f1f5;
  order: -1;
}

.video-card-copy {
  padding: 17px 18px 18px;
}

.video-card h3 {
  margin-top: 6px;
  color: var(--ink);
  font-size: 1.07rem;
  font-weight: 800;
  line-height: 1.3;
  text-wrap: balance;
}

.video-card-copy p {
  margin: 8px 0 0;
}

.video-label {
  color: var(--cyan-dark);
}

.video-card-stress {
  border-color: rgba(14, 158, 172, 0.18);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.video-card-stress:hover {
  border-color: rgba(14, 158, 172, 0.32);
  box-shadow: var(--shadow-md);
}

.video-card-stress h3 {
  color: var(--ink);
}

.video-card-stress .video-card-copy {
  background: rgba(255, 255, 255, 0.78);
}

.section-paper {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(237, 243, 247, 0.88)),
    var(--bg-soft);
}

.paper-actions {
  justify-content: flex-start;
  margin-bottom: 20px;
}

.bibtex-card {
  overflow: auto;
  padding: 20px;
  background: #ffffff;
}

.bibtex-card pre {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.58;
  white-space: pre-wrap;
}

.site-footer {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer p {
  margin: 0;
  font-size: 0.92rem;
}

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

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

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

  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    transform: none;
    opacity: 1;
  }
}

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

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

  .teaser-hero {
    padding: 18px 0 44px;
  }

  .teaser-stage {
    height: clamp(560px, 78svh, 700px);
  }

  .teaser-copy h1 {
    font-size: clamp(2.2rem, 4.6vw, 3rem);
  }

  .teaser-copy h1 small {
    font-size: 1.16rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .paper-heading h2 {
    font-size: 2.65rem;
  }

  .section-heading h2 {
    font-size: 2.3rem;
  }

  .metric-grid,
  .video-grid,
  .simulation-grid,
  .challenge-grid,
  .stress-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .paper-story-grid,
  .results-board,
  .evidence-grid {
    grid-template-columns: 1fr;
  }

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

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

  .video-browser {
    grid-template-columns: 1fr;
  }

  .video-browser-nav {
    display: flex;
    flex-direction: row;
    height: auto;
    max-height: none;
    padding: 12px;
  }

  .task-tab {
    min-width: 210px;
    min-height: 76px;
  }
}

@media (max-width: 680px) {
  :root {
    --container: min(100vw - 28px, 1180px);
  }

  .site-header {
    position: relative;
  }

  .header-inner {
    min-height: 0;
    gap: 10px;
  }

  .brand {
    min-height: 34px;
  }

  .site-nav a {
    min-height: 34px;
    padding: 0 9px;
    font-size: 0.86rem;
  }

  .scroll-to-top {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
  }

  .teaser-hero {
    padding: 12px 0 36px;
  }

  .teaser-stage {
    height: clamp(500px, 78svh, 620px);
  }

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

  .teaser-tile {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .teaser-overlay {
    padding: 36px 18px;
  }

  .teaser-copy h1 {
    font-size: clamp(1.55rem, 6.3vw, 2.25rem);
  }

  .teaser-copy h1 small {
    margin-top: 14px;
    font-size: 1rem;
  }

  .teaser-copy .eyebrow {
    font-size: 1.05rem;
  }

  .tagline {
    margin-top: 18px;
    font-size: 0.96rem;
  }

  .hero-actions,
  .paper-actions {
    width: 100%;
  }

  .button {
    flex: 1 1 140px;
    min-height: 44px;
  }

  .button-resource {
    flex-basis: 100%;
    width: 100%;
    min-height: 62px;
    border-radius: 18px;
    font-size: 1.05rem;
  }

  .button-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .button-arrow {
    width: 34px;
    height: 34px;
  }

  .section-shell {
    padding: 64px 0;
  }

  .paper-hero {
    padding: 66px 0 76px;
  }

  .paper-heading h2 {
    font-size: 2rem;
  }

  .section-heading h2 {
    font-size: 2rem;
    text-wrap: balance;
    white-space: normal;
  }

  .paper-heading p,
  .section-heading p {
    font-size: 1rem;
    white-space: normal;
  }

  .author-block {
    padding-top: 20px;
  }

  .author-line {
    gap: 8px 14px;
    font-size: 0.96rem;
  }

  .affiliations {
    gap: 8px 14px;
    font-size: 0.92rem;
  }

  .affiliation-item {
    width: 100%;
    justify-content: flex-start;
    padding-right: 0;
  }

  .affiliation-item:not(:last-of-type)::after {
    display: none;
  }

  .metric-grid,
  .video-grid,
  .simulation-grid,
  .challenge-grid,
  .stress-grid,
  .agent-role-grid,
  .workflow-grid,
  .analysis-grid {
    grid-template-columns: 1fr;
  }

  .abstract-panel,
  .contribution-panel,
  .role-card,
  .workflow-step,
  .analysis-card {
    padding: 18px;
  }

  .paper-figure figcaption {
    padding: 12px 14px 14px;
  }

  .challenge-heading h3 {
    font-size: 1.4rem;
  }

  .video-group-heading h3 {
    font-size: 1.32rem;
  }

  .simulation-videos {
    margin-bottom: 44px;
  }

  .video-browser-main {
    padding: 12px;
    border-radius: 18px;
  }

  .video-browser-nav {
    border-radius: 18px;
  }

  .task-tab {
    min-width: 190px;
    min-height: 68px;
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .task-number {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .task-panel-copy h3 {
    font-size: 1.35rem;
  }

  .task-prompt {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 12px 13px;
  }

  .task-prompt p {
    font-size: 0.95rem;
  }

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

  .metric-card strong {
    font-size: 2.1rem;
  }

  .table-row {
    grid-template-columns: minmax(0, 1.36fr) minmax(66px, 0.4fr) minmax(66px, 0.4fr);
    min-height: 50px;
    padding: 0 12px;
    font-size: 0.9rem;
  }

  .paper-table {
    font-size: 0.9rem;
  }

  .paper-table th,
  .paper-table td {
    padding: 10px 11px;
  }
}

@media (max-width: 420px) {
  .site-nav {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-nav a {
    justify-content: center;
    background: rgba(14, 158, 172, 0.08);
  }

  .teaser-copy h1 {
    font-size: clamp(1.05rem, 5.3vw, 1.35rem);
  }

  .teaser-copy h1 small {
    font-size: 0.92rem;
  }

  .table-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    align-items: start;
    padding: 12px;
  }

  .table-row span:nth-child(2),
  .table-row span:nth-child(3) {
    text-align: left;
  }

  .table-row span:nth-child(2)::before {
    content: "Success: ";
    color: var(--ink-muted);
  font-weight: 600;
  }

  .table-row span:nth-child(3)::before {
    content: "Time: ";
    color: var(--ink-muted);
  font-weight: 600;
  }

  .table-head {
    display: none;
  }
}
