:root {
  --ink: #182226;
  --muted-ink: #5d6a70;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --soft: #edf4f2;
  --line: #d8e1de;
  --green: #0d6b62;
  --red: #b94b47;
  --amber: #c0892b;
  --blue: #25637c;
  --shadow: 0 18px 50px rgba(24, 34, 38, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

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

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

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.container.narrow {
  width: min(880px, calc(100% - 32px));
}

.hero-section {
  padding: 72px 0 38px;
  background:
    linear-gradient(180deg, rgba(237, 244, 242, 0.95) 0%, rgba(251, 250, 247, 1) 76%),
    radial-gradient(circle at 18% 0%, rgba(37, 99, 124, 0.14), transparent 30%);
}

.hero-content {
  text-align: center;
}

.venue-label {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 1060px;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.25;
  background: linear-gradient(90deg, #1e293b, #0d6b62, #c0892b, #0d6b62, #1e293b);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleGradientShift 6s ease infinite;
}

@keyframes titleGradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.hero-subtitle {
  width: min(860px, 100%);
  margin: 16px auto 0;
  color: var(--muted-ink);
  font-size: clamp(1rem, 1.7vw, 1.28rem);
  font-weight: 600;
  line-height: 1.42;
}

.authors {
  width: min(980px, 100%);
  margin-top: 24px;
  margin-right: auto;
  margin-left: auto;
  color: var(--muted-ink);
  font-size: 1rem;
}

.authors p {
  margin: 4px 0;
}

.affiliation {
  font-size: 0.94rem;
}

.author-notes {
  font-size: 0.9rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.action-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  padding: 0 20px;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(24, 34, 38, 0.08);
}

.action-button svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.3;
}

.action-button:hover {
  border-color: rgba(13, 107, 98, 0.45);
  color: var(--green);
}

.action-button.primary {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.hero-figure,
.paper-figure {
  margin: 40px auto 0;
}

.hero-figure img,
.paper-figure img,
.paper-table-image,
.result-grid figure,
.main-video {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-figure figcaption,
.paper-figure figcaption,
.paper-table-figure figcaption,
.result-grid figcaption,
.media-caption {
  margin-top: 14px;
  color: var(--muted-ink);
  font-size: 0.95rem;
  line-height: 1.55;
}

.media-section {
  padding: 18px 0 70px;
}

.main-video {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
}

.media-caption {
  text-align: center;
}

.section {
  padding: 76px 0;
}

.section.muted {
  background: var(--soft);
}

h2 {
  margin-bottom: 24px;
  color: #13282c;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 800;
  text-align: center;
}

h3 {
  margin-top: 8px;
  font-size: 1.1rem;
  font-weight: 800;
}

p {
  margin: 0 0 18px;
}

.section-lead {
  width: min(780px, 100%);
  margin: 0 auto 28px;
  color: var(--muted-ink);
  text-align: center;
}

.paper-table-figure {
  margin: 34px auto 0;
}

.paper-table-image {
  width: 100%;
  background: #fff;
  object-fit: contain;
}

.paper-table-figure figcaption {
  width: min(980px, 100%);
  margin-right: auto;
  margin-left: auto;
  text-align: left;
}

#viewer3d-root {
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 24px rgba(24, 34, 38, 0.11);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 34px;
}

.result-grid figure {
  margin: 0;
  padding: 18px;
}

.result-grid img {
  width: 100%;
  border-radius: 6px;
}

.result-grid.wide {
  align-items: stretch;
}

.result-grid.equal-height figure {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.qualitative-media {
  display: flex;
  height: 360px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #fff;
}

.qualitative-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

pre {
  overflow-x: auto;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #122126;
  color: #edf7f5;
  padding: 22px;
  font-size: 0.92rem;
  line-height: 1.55;
  box-shadow: var(--shadow);
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  color: var(--muted-ink);
  font-size: 0.92rem;
  text-align: center;
}

.scroll-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(13, 107, 98, 0.35);
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(24, 34, 38, 0.2);
}

.scroll-top svg {
  width: 20px;
  height: 20px;
}

.scroll-top.visible {
  display: block;
}

@media (max-width: 820px) {
  .hero-section {
    padding: 48px 0 34px;
  }

  .section {
    padding: 56px 0;
  }

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

  .qualitative-media {
    height: min(62vw, 340px);
  }

  .viewer3d-root {
    height: 68vh;
    min-height: 380px;
  }

  .hero-figure,
  .paper-figure {
    margin-top: 30px;
  }
}
