:root {
  --ink: #1d2522;
  --muted: #62716c;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --band: #eef4f1;
  --line: #d9e1dc;
  --accent: #21745b;
  --accent-strong: #15533f;
  --gold: #d49a2f;
  --blue: #416b8a;
  --shadow: 0 22px 60px rgba(29, 37, 34, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

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

.hero {
  background: linear-gradient(180deg, #f5f2eb 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
  transition: color 160ms ease;
}

.nav a:hover {
  color: var(--accent);
}

.hero-inner {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 44px;
  text-align: center;
}

.venue,
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 980px;
  margin: 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4.8vw, 4.25rem);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: 0;
}

.subtitle {
  max-width: 800px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.25rem);
}

.authors {
  margin: 32px auto 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  color: #264a3f;
  font-weight: 650;
}

.affiliations {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

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

.button {
  min-width: 104px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-weight: 750;
  box-shadow: 0 8px 22px rgba(29, 37, 34, 0.06);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  color: var(--accent);
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.button.primary:hover {
  background: var(--accent-strong);
  color: white;
}

.section {
  padding: 76px 0;
}

.section.compact {
  padding-top: 40px;
}

.band {
  background: var(--band);
  border-block: 1px solid var(--line);
}

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

.content.wide {
  width: min(1180px, calc(100% - 32px));
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

#method .section-heading,
#experiments .section-heading {
  width: min(980px, 100%);
  max-width: 980px;
  margin-right: auto;
  margin-left: auto;
}

#method .method-grid {
  width: min(980px, 100%);
  margin-right: auto;
  margin-left: auto;
}

h2 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 12px;
  font-size: 1.08rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.content > p,
article p {
  color: var(--muted);
  font-size: 1.04rem;
}

.section p,
figcaption {
  text-align: justify;
  text-justify: inter-word;
}

.teaser-section {
  padding: 42px 0 68px;
}

.teaser {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #080808;
  box-shadow: var(--shadow);
}

.teaser img {
  width: 100%;
  object-fit: contain;
  background: #fff;
}

figcaption {
  padding: 14px 18px;
  color: var(--muted);
  background: var(--surface);
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.paper-figure {
  width: min(860px, 100%);
  margin: 0 auto 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 14px 36px rgba(29, 37, 34, 0.07);
}

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

.paper-figure figcaption strong {
  color: var(--ink);
}

.result-block {
  padding: 34px 0 42px;
  border-top: 1px solid var(--line);
}

.result-block:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.result-copy {
  max-width: 100%;
  margin-bottom: 22px;
}

.result-copy h3 {
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.18;
}

.result-copy p {
  color: var(--muted);
  font-size: 1.04rem;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.todo {
  display: inline-block;
  margin-top: 4px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff7df;
  color: #6d531c !important;
  font-weight: 700;
}

.paired-figures {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.paired-figures .paper-figure:first-child {
  width: min(700px, 100%);
}

.paired-figures .paper-figure:last-child {
  width: min(680px, 100%);
}

#method .paper-figure {
  width: min(980px, 100%);
}

#experiments > .content.wide {
  width: min(980px, calc(100% - 32px));
}

#experiments > .content.wide > .paper-figure {
  width: min(780px, 100%);
}

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

.method-grid article,
.metric {
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.step {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #e3efe9;
  color: var(--accent-strong);
  font-weight: 850;
}

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

.metric {
  padding: 22px;
}

.metric strong {
  display: block;
  color: var(--accent-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  letter-spacing: 0;
}

.metric span {
  display: block;
  margin-top: 10px;
  color: var(--blue);
  font-weight: 800;
}

.metric p {
  margin: 10px 0 0;
  font-size: 0.96rem;
}

.figure-row {
  margin-top: 38px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.figure-row figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.figure-row img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  background: #edf1ee;
}

.figure-row figure:first-child img {
  object-fit: contain;
  padding: 12px;
}

.application-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.application-table > div {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.application-table > div:last-child {
  border-bottom: 0;
}

.application-table strong {
  color: var(--accent-strong);
}

.application-table span {
  color: var(--muted);
}

.video {
  background: var(--band);
  color: var(--ink);
  border-block: 1px solid var(--line);
}

.video-section {
  background: #17231f;
  color: white;
}

.video-section .eyebrow,
.video-section .section-heading,
.video-section h2,
.video-section p,
.video-section p {
  color: white;
}

.video .eyebrow,
.video .section-heading,
.video h2 {
  color: var(--ink);
}

.video p {
  color: var(--muted);
}

.video-frame {
  width: min(760px, 100%);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #050606;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.video-frame video,
.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  aspect-ratio: 16 / 9;
  background: #050606;
}

pre {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f0e6;
  color: #29322f;
  font-size: 0.92rem;
  line-height: 1.5;
}

.footer {
  padding: 28px 16px 42px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--line);
}

.footer p {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 860px) {
  .nav {
    justify-content: center;
    gap: 16px;
    overflow-x: auto;
  }

  .method-grid,
  .metrics,
  .figure-row {
    grid-template-columns: 1fr;
  }

  .figure-row img {
    height: auto;
    max-height: 360px;
  }

  .application-table > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .hero-inner {
    padding-top: 36px;
  }

  .section {
    padding: 56px 0;
  }

  .teaser-section {
    padding-top: 24px;
  }

  .button {
    flex: 1 1 120px;
  }

  .method-grid article,
  .metric,
  .application-table > div {
    padding: 18px;
  }
}

.button {
  gap: 8px;
}

.button-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.tag {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(33, 116, 91, 0.12);
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.3;
}

.button.primary .tag {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
