:root {
  --ink: #15231d;
  --muted: #5b6b63;
  --paper: #fbfdfb;
  --surface: #ffffff;
  --surface-soft: #f1f7f3;
  --green: #176b4a;
  --green-dark: #0d4d34;
  --green-light: #dff2e8;
  --peach: #fff0e4;
  --line: #dbe8df;
  --shadow: 0 18px 50px rgba(20, 63, 43, 0.09);
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(92, 187, 138, 0.10), transparent 30rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

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

.site-nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 1.1rem 1.5rem;
}

.brand {
  color: var(--green-dark);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  gap: 1.4rem;
}

.nav-links a {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
}

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

.publication-header {
  background:
    linear-gradient(135deg, rgba(223, 242, 232, 0.96), rgba(251, 253, 251, 0.95) 54%, rgba(255, 240, 228, 0.80));
  border-bottom: 1px solid var(--line);
}

.publication-hero .hero-body {
  padding: 4.6rem 1.5rem 5.6rem;
}

.venue-label,
.eyebrow {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}

.publication-title {
  color: var(--ink);
  font-size: clamp(2.25rem, 5vw, 4.35rem) !important;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin: 0 auto 1.8rem !important;
  max-width: 1120px;
}

.publication-authors {
  display: flex;
  flex-wrap: wrap;
  font-size: clamp(1rem, 2vw, 1.18rem);
  gap: 0.35rem 1.2rem;
  justify-content: center;
  margin: 0 auto 1rem;
  max-width: 950px;
}

.publication-authors .author-block {
  display: inline-block;
  font-weight: 650;
}

.publication-authors a {
  color: var(--green-dark);
  text-decoration: underline;
  text-decoration-color: rgba(23, 107, 74, 0.25);
  text-underline-offset: 0.18em;
}

sup {
  color: var(--green);
  font-size: 0.68em;
  font-weight: 800;
}

.affiliations {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 auto;
  max-width: 940px;
}

.affiliations p {
  margin: 0.15rem 0;
}

.affiliations .author-notes {
  margin-top: 0.6rem;
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

.publication-links .button {
  border: 1px solid rgba(21, 35, 29, 0.12);
  font-weight: 750;
  min-width: 150px;
}

.publication-links .button.is-dark {
  background: var(--green-dark);
}

.section {
  padding: 5.5rem 1.5rem;
}

.compact-section {
  padding-top: 2.8rem;
}

.metrics-section {
  margin-top: -2.4rem;
  padding-bottom: 1.5rem;
  padding-top: 0;
  position: relative;
  z-index: 2;
}

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

.metric-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 150px;
  padding: 1.5rem;
}

.metric-card strong {
  color: var(--green-dark);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.metric-card span {
  font-size: 0.98rem;
  font-weight: 750;
  margin-top: 0.6rem;
}

.metric-card small {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: auto;
  padding-top: 0.55rem;
}

.section-heading {
  margin-bottom: 2rem;
}

.section-heading .title {
  color: var(--ink);
  letter-spacing: -0.025em;
  margin-bottom: 0.8rem;
}

.section-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 auto;
  max-width: 800px;
}

.abstract-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 0 20px 20px 0;
  box-shadow: var(--shadow);
  font-size: 1.05rem;
  padding: clamp(1.5rem, 4vw, 2.7rem);
}

.abstract-card p {
  margin: 0;
}

.paper-figure {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  margin: 2.5rem auto;
  overflow: hidden;
  padding: clamp(0.55rem, 2vw, 1.2rem);
}

.paper-figure img {
  display: block;
  height: auto;
  margin: 0 auto;
  width: 100%;
}

.paper-figure figcaption {
  color: var(--muted);
  font-size: 0.88rem;
  padding: 0.8rem 0.8rem 0.25rem;
  text-align: center;
}

.hero-figure {
  max-width: 1240px;
}

.architecture-figure {
  max-width: 1020px;
}

.method-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 2rem auto 3rem;
  max-width: 1050px;
}

.method-card {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2rem;
}

.method-index {
  color: var(--green);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

.method-card h3,
.result-table-card h3 {
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.7rem;
}

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

.experiments-section {
  background: linear-gradient(180deg, #eef7f1 0%, #f8fbf9 100%);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.video-grid {
  display: grid;
  gap: 1.25rem;
}

.video-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.video-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 980px;
}

.video-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(20, 63, 43, 0.07);
  min-width: 0;
  overflow: hidden;
}

.video-card video {
  aspect-ratio: 16 / 10;
  background: #0b1510;
  display: block;
  object-fit: contain;
  width: 100%;
}

.video-card-body {
  padding: 1.1rem 1.2rem 1.3rem;
}

.video-card-body label {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  margin-bottom: 0.45rem;
}

.select-control {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--green) 50%) calc(100% - 17px) calc(50% - 2px) / 6px 6px no-repeat,
    linear-gradient(135deg, var(--green) 50%, transparent 50%) calc(100% - 11px) calc(50% - 2px) / 6px 6px no-repeat,
    #fff;
  border: 1px solid #b9cfc0;
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  padding: 0.65rem 2.4rem 0.65rem 0.75rem;
  width: 100%;
}

.select-control:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(23, 107, 74, 0.12);
  outline: none;
}

.video-description {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
  margin-top: 0.75rem;
  min-height: 2.4em;
}

.aloha-heading {
  margin-top: 5.5rem;
}

.real-world-layout {
  align-items: start;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.featured-video {
  position: sticky;
  top: 1rem;
}

.results-tables {
  display: grid;
  gap: 1.5rem;
}

.result-table-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(20, 63, 43, 0.06);
  padding: 1.25rem;
}

.result-table-card .table {
  font-size: 0.82rem;
  margin-bottom: 0;
}

.result-table-card .table th {
  color: var(--green-dark);
  white-space: nowrap;
}

.result-table-card .table td:not(:first-child),
.result-table-card .table th:not(:first-child) {
  text-align: center;
}

.result-table-card strong {
  color: var(--green-dark);
}

.citation-section {
  background: #12271e;
  color: #f3fbf6;
}

.citation-section .title,
.citation-section .eyebrow {
  color: #f3fbf6;
}

.citation-card {
  background: #0b1a14;
  border: 1px solid rgba(223, 242, 232, 0.18);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.citation-card pre {
  background: transparent;
  color: #dff2e8;
  font-size: 0.85rem;
  line-height: 1.65;
  margin: 0;
  overflow-x: auto;
  padding: 2rem;
}

.copy-button {
  background: rgba(223, 242, 232, 0.12);
  border: 1px solid rgba(223, 242, 232, 0.24);
  border-radius: 8px;
  color: #f3fbf6;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 750;
  padding: 0.48rem 0.7rem;
  position: absolute;
  right: 0.8rem;
  top: 0.8rem;
  z-index: 1;
}

.copy-button:hover {
  background: rgba(223, 242, 232, 0.2);
}

.site-footer {
  background: #0c1913;
  color: #d9e7de;
  padding: 3rem 1.5rem;
}

.site-footer strong {
  color: #ffffff;
}

.footer-note {
  color: #9fb4a7;
  font-size: 0.83rem;
}

@media (max-width: 1023px) {
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .video-grid-three .video-card:last-child {
    grid-column: 1 / -1;
    margin: 0 auto;
    max-width: 560px;
    width: 100%;
  }

  .real-world-layout {
    grid-template-columns: 1fr;
  }

  .featured-video {
    position: static;
  }
}

@media (max-width: 720px) {
  .site-nav {
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .publication-hero .hero-body {
    padding-bottom: 4.7rem;
    padding-top: 3.2rem;
  }

  .publication-title {
    font-size: clamp(2rem, 11vw, 3rem) !important;
  }

  .publication-authors {
    gap: 0.25rem 0.85rem;
  }

  .section {
    padding: 4rem 1rem;
  }

  .metrics-section {
    padding: 0 1rem 1rem;
  }

  .metrics-grid,
  .method-grid,
  .video-grid-three,
  .video-grid-two {
    grid-template-columns: 1fr;
  }

  .video-grid-three .video-card:last-child {
    grid-column: auto;
    max-width: none;
  }

  .metric-card {
    min-height: 130px;
  }

  .paper-figure {
    border-radius: 14px;
    margin-left: -0.3rem;
    margin-right: -0.3rem;
  }

  .abstract-card {
    font-size: 0.98rem;
  }

  .citation-card pre {
    font-size: 0.72rem;
    padding: 3.4rem 1rem 1.4rem;
  }
}

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