@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/sora-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/sora-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/sora-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/sora-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/syne-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/syne-latin.woff2") format("woff2");
}

:root {
  --ink: #102029;
  --ink-soft: #3a4a55;
  --mist: #eef4f6;
  --paper: #f7fafb;
  --line: rgba(16, 32, 41, 0.12);
  --teal: #0f8f86;
  --teal-deep: #0b6e68;
  --amber: #d9892b;
  --glow: rgba(15, 143, 134, 0.18);
  --shadow: 0 24px 60px rgba(16, 32, 41, 0.12);
  --max: 1080px;
  --font-display: "Syne", sans-serif;
  --font-body: "Sora", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(15, 143, 134, 0.16), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(217, 137, 43, 0.1), transparent 50%),
    linear-gradient(180deg, #e8f1f3 0%, var(--paper) 38%, #f4f7f8 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(115deg, transparent 0 46%, rgba(15, 143, 134, 0.05) 46% 47%, transparent 47% 100%),
    linear-gradient(155deg, transparent 0 62%, rgba(16, 32, 41, 0.04) 62% 63%, transparent 63% 100%);
  background-size: 140px 140px, 180px 180px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 85%);
}

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

a {
  color: var(--teal-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--teal);
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(247, 250, 251, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(247, 250, 251, 0.92);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.6rem;
  gap: 1rem;
}

.nav-brand {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--teal-deep);
}

/* Hero: one composition */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 5.5rem 0 0;
  isolation: isolate;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.04);
  filter: saturate(0.92) contrast(1.02);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(238, 244, 246, 0.55) 0%, rgba(238, 244, 246, 0.2) 28%, rgba(16, 32, 41, 0.55) 72%, rgba(16, 32, 41, 0.86) 100%),
    linear-gradient(90deg, rgba(16, 32, 41, 0.35), transparent 55%);
}

.hero-content {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 0 0 3.2rem;
  color: #f4f8f9;
}

.hero-brand {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4.2rem, 12vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  animation: riseIn 0.9s ease both;
}

.hero-title {
  margin: 0 0 0.85rem;
  max-width: 18ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  animation: riseIn 0.9s ease 0.1s both;
}

.hero-lead {
  margin: 0 0 1.5rem;
  max-width: 46ch;
  color: rgba(244, 248, 249, 0.86);
  font-size: 1.02rem;
  animation: riseIn 0.9s ease 0.18s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  animation: riseIn 0.9s ease 0.26s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.7rem;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: var(--teal);
  color: #fff;
}

.btn-primary:hover {
  background: var(--teal-deep);
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.meta-bar {
  margin-top: 1.6rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  gap: 0.55rem;
  animation: riseIn 0.9s ease 0.34s both;
}

.venue {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #f0d3a4;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.authors {
  margin: 0;
  color: rgba(244, 248, 249, 0.9);
  font-size: 0.92rem;
}

.affils {
  margin: 0;
  color: rgba(244, 248, 249, 0.68);
  font-size: 0.82rem;
}

section {
  padding: 4.5rem 0;
  position: relative;
  z-index: 1;
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  max-width: 62ch;
  color: var(--ink-soft);
}

.section-head .results-summary,
.section-head .gallery-summary {
  max-width: none;
  white-space: nowrap;
}

.abstract {
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.abstract p {
  margin: 0;
  max-width: 68ch;
}

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

.method-figure {
  margin: 0;
}

.method-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: transparent;
}

.method-figure figcaption,
.gallery figure figcaption,
.results-figure figcaption {
  margin-top: 0.7rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

.pillar {
  padding: 1rem 0.15rem 0;
  border-top: 2px solid var(--teal);
}

.pillar h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.pillar p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin: 1.5rem 0 2rem;
}

.metric {
  padding: 0.85rem 0 0;
  border-top: 1px solid var(--line);
}

.metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  letter-spacing: -0.03em;
  color: var(--teal-deep);
  line-height: 1.1;
}

.metric span {
  display: block;
  margin-top: 0.3rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  font-size: 0.88rem;
}

th,
td {
  padding: 0.7rem 0.75rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

th:first-child,
td:first-child {
  text-align: left;
}

thead th {
  background: rgba(15, 143, 134, 0.08);
  font-weight: 600;
}

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

tbody tr.is-ours {
  background: rgba(15, 143, 134, 0.1);
  font-weight: 600;
}

.table-note {
  margin: 0.7rem 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.gallery {
  display: grid;
  gap: 2.4rem;
}

.video-group h3 {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.video-strip {
  display: grid;
  grid-auto-flow: column;
  gap: 0.8rem;
  overflow-x: auto;
  padding: 0 0 0.7rem;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
  scrollbar-color: rgba(15, 143, 134, 0.45) transparent;
  scrollbar-width: thin;
}

.video-strip--svd {
  grid-auto-columns: minmax(164px, 1fr);
}

.video-strip--wan22 {
  grid-auto-columns: minmax(200px, 1fr);
}

.video-card {
  margin: 0;
  min-width: 0;
  scroll-snap-align: start;
}

.video-card video {
  display: block;
  width: 100%;
  height: auto;
  background: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 14px 32px rgba(16, 32, 41, 0.14);
}

.video-card figcaption {
  margin-top: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.4;
}

.results-figure img {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tab {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink-soft);
  min-height: 2.3rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tab.is-active,
.tab:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.panel[hidden] {
  display: none;
}

.bibtex {
  position: relative;
  margin: 0;
  padding: 1.1rem 1.15rem;
  overflow-x: auto;
  background: #13232c;
  color: #d7e6ea;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.84rem;
  line-height: 1.55;
}

.copy-btn {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 999px;
  min-height: 2rem;
  padding: 0.25rem 0.75rem;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.site-footer {
  padding: 2.2rem 0 2.8rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.2%, -1%, 0);
  }
}

@media (max-width: 960px) {
  .section-head .results-summary,
  .section-head .gallery-summary {
    white-space: normal;
  }

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

@media (max-width: 860px) {
  .pillars,
  .metrics {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 4.5rem;
  }

  .hero-visual {
    position: relative;
    min-height: 48vh;
  }

  .hero-visual::after {
    background:
      linear-gradient(180deg, rgba(238, 244, 246, 0.15) 0%, rgba(16, 32, 41, 0.72) 70%, rgba(16, 32, 41, 0.92) 100%);
  }

  .hero-content {
    margin-top: -7rem;
    padding-bottom: 2.4rem;
  }
}

@media (max-width: 620px) {
  .wrap,
  .hero-content {
    width: min(var(--max), calc(100% - 1.5rem));
  }

  .nav-links {
    display: none;
  }

  .pillars,
  .metrics {
    grid-template-columns: 1fr;
  }

  .hero-brand {
    font-size: clamp(3.4rem, 18vw, 5rem);
  }

  section {
    padding: 3.2rem 0;
  }
}

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

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

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