/* ADAPT visual system ------------------------------------------------------ */

:root {
  --ink: #101828;
  --ink-soft: #475467;
  --navy: #081526;
  --navy-2: #0d2340;
  --blue: #397bff;
  --blue-soft: #eaf1ff;
  --orange: #f5a524;
  --orange-deep: #e48b08;
  --paper: #ffffff;
  --surface: #f5f7fb;
  --surface-blue: #eef4ff;
  --line: #dfe6ef;
  --radius: 18px;
  --shadow: 0 24px 64px rgba(16, 24, 40, 0.11);
  --shadow-soft: 0 12px 32px rgba(16, 24, 40, 0.08);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.25rem;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Noto Sans', sans-serif;
  overflow-x: hidden;
}

::selection {
  background: rgba(245, 165, 36, 0.28);
  color: var(--navy);
}

a {
  transition: color 180ms ease, opacity 180ms ease;
}

.section {
  padding: 6.5rem 1.5rem;
}

.title {
  color: var(--ink);
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  letter-spacing: -0.025em;
}

.scroll-progress {
  height: 3px;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 100;
}

.scroll-progress span {
  background: linear-gradient(90deg, var(--orange), #ffd166);
  display: block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

/* Navigation -------------------------------------------------------------- */

.site-nav {
  color: #fff;
  left: 0;
  padding: 0 1.5rem;
  position: fixed;
  right: 0;
  top: 0;
  transition: background 220ms ease, box-shadow 220ms ease, color 220ms ease;
  z-index: 90;
}

.site-nav.is-scrolled,
.site-nav.menu-open {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.08);
  color: var(--ink);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-inner {
  align-items: center;
  display: flex;
  height: 4.5rem;
  justify-content: space-between;
}

.nav-brand {
  align-items: center;
  color: inherit;
  display: inline-flex;
  font-family: 'Google Sans', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  gap: 0.65rem;
  letter-spacing: 0.12em;
}

.nav-brand:hover {
  color: inherit;
}

.nav-brand-mark {
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(245, 165, 36, 0.15);
  height: 9px;
  position: relative;
  width: 9px;
}

.nav-brand-mark::after {
  background: currentColor;
  content: '';
  height: 1px;
  left: 9px;
  opacity: 0.45;
  position: absolute;
  top: 4px;
  width: 22px;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 1.65rem;
}

.nav-links a {
  color: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  opacity: 0.74;
  position: relative;
}

.nav-links a::after {
  background: var(--orange);
  bottom: -0.55rem;
  content: '';
  height: 2px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
  width: 100%;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: inherit;
  opacity: 1;
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: none;
  height: 40px;
  padding: 8px;
  width: 40px;
}

.nav-toggle span {
  background: currentColor;
  display: block;
  height: 2px;
  margin: 5px 0;
  transition: transform 180ms ease, opacity 180ms ease;
  width: 24px;
}

/* Hero -------------------------------------------------------------------- */

.publication-header {
  background:
    radial-gradient(circle at 12% 20%, rgba(57, 123, 255, 0.26), transparent 28%),
    radial-gradient(circle at 88% 76%, rgba(245, 165, 36, 0.16), transparent 30%),
    linear-gradient(145deg, var(--navy), var(--navy-2));
  color: #fff;
  overflow: hidden;
  padding-top: 4.5rem;
  position: relative;
}

.publication-header::before {
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 26px 26px;
  content: '';
  inset: 0;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 92%);
  opacity: 0.32;
  pointer-events: none;
  position: absolute;
}

.publication-header .hero-body {
  padding: 6.5rem 1.5rem 6.8rem;
  position: relative;
  z-index: 2;
}

.hero-orbit {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
  position: absolute;
}

.hero-orbit::after {
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(245, 165, 36, 0.65);
  content: '';
  height: 7px;
  position: absolute;
  width: 7px;
}

.hero-orbit-one {
  height: 420px;
  left: -210px;
  top: 100px;
  width: 420px;
}

.hero-orbit-one::after {
  right: 56px;
  top: 42px;
}

.hero-orbit-two {
  bottom: -270px;
  height: 560px;
  right: -180px;
  width: 560px;
}

.hero-orbit-two::after {
  left: 65px;
  top: 88px;
}

.hero-kicker {
  color: #aebed4;
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.hero-kicker span {
  color: var(--orange);
  padding: 0 0.45rem;
}

.publication-title {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  margin: 0 auto;
  max-width: 960px;
}

.publication-acronym {
  background: linear-gradient(105deg, #fff 25%, #b9d0ff 62%, #ffd78d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  font-size: clamp(4.5rem, 11vw, 8.5rem);
  font-weight: 850;
  letter-spacing: -0.075em;
  line-height: 0.86;
  padding-right: 0.06em;
}

.publication-full-title {
  color: #e9eef6;
  display: block;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 520;
  line-height: 1.26;
  margin: 1.7rem auto 0;
  max-width: 900px;
}

.hero-tagline {
  color: var(--orange);
  font-family: 'Google Sans', sans-serif;
  font-size: 1.12rem;
  font-weight: 650;
  letter-spacing: 0.025em;
  margin: 1.15rem 0 1.75rem;
}

.publication-authors {
  color: #d8e0eb;
  line-height: 1.75;
  margin-top: 0.5rem;
}

.publication-authors a {
  color: #fff !important;
  text-decoration-color: rgba(245, 165, 36, 0.55);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.publication-authors a:hover {
  color: #ffd78d !important;
  text-decoration: underline;
}

.affiliation {
  color: #9fb0c7;
  font-size: 0.95rem !important;
  margin-top: 0.15rem;
}

.equal-contribution {
  color: #7f93ad;
  margin-top: 0;
}

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

.link-block a.hero-button {
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 999px;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 650;
  height: 2.8rem;
  margin: 0;
  padding: 0 1.15rem;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.link-block a.hero-button:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  transform: translateY(-2px);
}

.link-block a.hero-button .icon {
  color: var(--orange);
}

.link-block a.hero-button-primary {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--navy);
}

.link-block a.hero-button-primary:hover {
  background: #ffb942;
  border-color: #ffb942;
  color: var(--navy);
}

.link-block a.is-coming-soon {
  opacity: 0.58;
}

/* Metrics ----------------------------------------------------------------- */

.metrics-band {
  height: 0;
  position: relative;
  z-index: 5;
}

.metrics-grid {
  background: #fff;
  border: 1px solid rgba(16, 24, 40, 0.07);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  transform: translateY(-50%);
}

.metric {
  align-items: center;
  display: flex;
  flex-direction: column;
  min-height: 116px;
  justify-content: center;
  padding: 1.25rem 1rem;
  position: relative;
  text-align: center;
}

.metric + .metric::before {
  background: var(--line);
  content: '';
  height: 48px;
  left: 0;
  position: absolute;
  top: calc(50% - 24px);
  width: 1px;
}

.metric-value {
  color: var(--navy);
  font-family: 'Google Sans', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.metric-value small {
  color: var(--blue);
  font-size: 0.75rem;
  letter-spacing: 0;
}

.metric-flow {
  font-size: 1.25rem;
  letter-spacing: -0.015em;
}

.metric-flow svg,
.metric-flow i {
  color: var(--orange);
  font-size: 0.72rem;
  margin: 0 0.3rem;
}

.metric-label {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.055em;
  margin-top: 0.65rem;
  text-transform: uppercase;
}

/* Shared sections --------------------------------------------------------- */

.section-heading {
  margin: 0 auto 3.25rem;
  max-width: 760px;
  text-align: center;
}

.section-heading .title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.08;
  margin: 0.65rem 0 0.9rem;
}

.section-heading > p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 auto;
  max-width: 660px;
}

.section-eyebrow {
  color: var(--blue);
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.teaser {
  padding-top: 8.5rem;
}

.media-frame {
  border: 6px solid #fff;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow);
}

.publication-video {
  background: var(--navy);
  border-radius: var(--radius) !important;
}

.figure-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  margin-top: 3rem;
  overflow: hidden;
  padding: 0.7rem;
}

.figure-card img {
  border-radius: 12px;
  display: block;
}

.figure-card .caption {
  color: var(--ink-soft);
  margin: 0 !important;
  padding: 1rem 1.15rem 0.85rem;
}

.caption {
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.55;
}

.abstract-section {
  background:
    linear-gradient(115deg, rgba(57, 123, 255, 0.07), transparent 62%),
    var(--surface);
}

.abstract-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 2.75rem 3.25rem;
  position: relative;
  text-align: left;
}

.abstract-card::after {
  color: var(--blue-soft);
  content: '“';
  font-family: Georgia, serif;
  font-size: 8rem;
  line-height: 1;
  position: absolute;
  right: 1.5rem;
  top: 0.6rem;
  z-index: 0;
}

.abstract-card > * {
  position: relative;
  z-index: 1;
}

.abstract-card .title {
  margin: 0.45rem 0 1.1rem;
}

.abstract-card .content {
  color: #344054;
  font-size: 0.98rem;
  line-height: 1.8;
}

/* Method ------------------------------------------------------------------ */

.method-section {
  background: #fff;
}

.key-idea {
  align-items: flex-start;
  background: linear-gradient(135deg, var(--navy), #102b4c);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: #dbe5f2;
  display: grid;
  gap: 2rem;
  grid-template-columns: auto 1fr;
  margin-bottom: 1.5rem;
  overflow: hidden;
  padding: 2.75rem 3rem;
  position: relative;
}

.key-idea::after {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: '';
  height: 260px;
  position: absolute;
  right: -110px;
  top: -120px;
  width: 260px;
}

.idea-number {
  color: var(--orange);
  font-family: 'Google Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  padding-top: 0.35rem;
}

.key-idea .content {
  color: #c9d5e5;
  margin: 0;
  max-width: 820px;
}

.key-idea .content h3 {
  color: #fff;
  font-family: 'Google Sans', sans-serif;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.key-idea .content p {
  line-height: 1.75;
}

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

.method-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(16, 24, 40, 0.055);
  display: flex;
  flex-direction: column;
  padding: 1.7rem;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.method-card:hover {
  border-color: #b8c9e4;
  box-shadow: var(--shadow-soft);
  transform: translateY(-5px);
}

.method-card-topline {
  align-items: center;
  color: var(--blue);
  display: flex;
  font-size: 0.67rem;
  font-weight: 800;
  justify-content: space-between;
  letter-spacing: 0.12em;
  margin-bottom: 1.15rem;
  text-transform: uppercase;
}

.method-card-topline svg,
.method-card-topline i {
  color: #8baeff;
  font-size: 1rem;
}

.method-card h3 {
  color: var(--navy);
  font-family: 'Google Sans', sans-serif;
  font-size: 1.17rem;
  line-height: 1.35;
  margin-bottom: 0.65rem;
}

.method-card p {
  color: var(--ink-soft);
  font-size: 0.85rem;
  line-height: 1.65;
}

.method-card .challenge-copy {
  min-height: 3.4rem;
}

.solution-divider {
  align-items: center;
  display: flex;
  gap: 0.7rem;
  margin: 1.2rem 0 1rem;
}

.solution-divider::before,
.solution-divider::after {
  background: var(--line);
  content: '';
  flex: 1;
  height: 1px;
}

.solution-divider span {
  background: var(--blue-soft);
  border-radius: 999px;
  color: var(--blue);
  font-size: 0.61rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  padding: 0.35rem 0.55rem;
}

.method-card h4 {
  color: var(--orange-deep);
  font-family: 'Google Sans', sans-serif;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.method-figure {
  margin-top: 3rem;
}

/* Results ----------------------------------------------------------------- */

.results-section {
  background:
    radial-gradient(circle at 10% 15%, rgba(57, 123, 255, 0.09), transparent 25%),
    var(--surface);
}

.results-section > .hero-body {
  padding: 0;
}

.result-subtitle {
  color: var(--navy);
  display: inline-flex;
  font-size: 1.7rem !important;
  gap: 0.65rem;
  margin-top: 3.5rem;
  position: relative;
}

.result-subtitle::before {
  background: var(--orange);
  border-radius: 999px;
  content: '';
  height: 9px;
  margin-top: 0.6rem;
  width: 9px;
}

.results-section .subtitle {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 auto 1.6rem;
  max-width: 740px;
}

video {
  background: #dfe6ef;
  border-radius: 14px;
  display: block;
  height: auto;
  width: 100%;
}

video.lazy-video:not([data-loaded="true"]) {
  min-height: 180px;
}

.results-carousel {
  overflow: hidden;
  padding: 0.4rem 0 1rem;
}

.results-carousel .item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
  font-size: 0;
  margin: 8px;
  overflow: hidden;
  padding: 0;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.results-carousel .item:hover {
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.13);
  transform: translateY(-3px);
}

.results-carousel .item video {
  border-radius: 0;
}

.results-carousel .item .caption {
  background: #fff;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 650;
  margin: 0 !important;
  min-height: 3.4rem;
  padding: 0.85rem 0.75rem;
}

.results-section .columns.is-centered > .column {
  position: relative;
}

.results-section .columns.is-centered > .column video {
  border: 5px solid #fff;
  box-shadow: var(--shadow-soft);
}

.results-section .columns.is-centered > .column .caption {
  font-weight: 650;
  margin-top: 0.75rem !important;
}

.slider-navigation-previous,
.slider-navigation-next {
  background: var(--navy) !important;
  border: 2px solid #fff !important;
  color: #fff !important;
  box-shadow: 0 7px 18px rgba(8, 21, 38, 0.2);
}

.slider-pagination .slider-page {
  background: #aab7c8 !important;
}

.slider-pagination .slider-page.is-active {
  background: var(--orange) !important;
}

/* BibTeX and footer ------------------------------------------------------- */

.bibtex-section {
  background: #fff;
}

.bibtex-section .title {
  margin-top: 0.6rem;
}

.bibtex-section pre {
  background: var(--navy);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  color: #dbe5f2;
  padding: 1.5rem;
}

.bibtex-section pre code {
  color: inherit;
}

.bibtex-section > .container > p {
  color: var(--ink-soft);
  margin-top: 2.4rem;
}

.footer {
  background: var(--navy);
  color: #9fb0c7;
  padding: 3.5rem 1.5rem;
}

.footer a {
  color: #d9e4f2;
}

.footer a:hover {
  color: var(--orange);
}

/* Motion and accessibility ------------------------------------------------ */

body.motion-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

a:focus-visible,
button:focus-visible,
video:focus-visible {
  outline: 3px solid rgba(245, 165, 36, 0.7);
  outline-offset: 3px;
}

/* Responsive -------------------------------------------------------------- */

@media screen and (max-width: 900px) {
  .section {
    padding: 5rem 1.25rem;
  }

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

  .method-card .challenge-copy {
    min-height: auto;
  }

  .metrics-grid {
    margin-left: 1.25rem;
    margin-right: 1.25rem;
  }
}

@media screen and (max-width: 768px) {
  html {
    scroll-padding-top: 4.5rem;
  }

  .site-nav {
    padding: 0 1rem;
  }

  .nav-inner {
    height: 4.25rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    align-items: stretch;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(16, 24, 40, 0.1);
    color: var(--ink);
    display: none;
    flex-direction: column;
    gap: 0;
    left: 0;
    padding: 0.7rem 1.25rem 1rem;
    position: absolute;
    right: 0;
    top: 4.25rem;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    border-bottom: 1px solid #eef1f5;
    padding: 0.85rem 0;
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .publication-header {
    padding-top: 4.25rem;
  }

  .publication-header .hero-body {
    padding: 4rem 1.25rem 5.75rem;
  }

  .publication-acronym {
    font-size: clamp(4.2rem, 24vw, 6.2rem);
  }

  .publication-full-title {
    font-size: 1.25rem;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .publication-links {
    gap: 0.5rem;
  }

  .link-block a.hero-button {
    height: 2.65rem;
    padding: 0 0.9rem;
  }

  .metrics-band {
    height: auto;
    padding: 0 1rem;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    margin: -2rem 0 0;
    transform: none;
  }

  .metric {
    min-height: 104px;
  }

  .metric:nth-child(3)::before {
    display: none;
  }

  .metric:nth-child(n+3)::after {
    background: var(--line);
    content: '';
    height: 1px;
    left: 16%;
    position: absolute;
    right: 16%;
    top: 0;
  }

  .metric-value {
    font-size: 1.55rem;
  }

  .metric-flow {
    font-size: 1.05rem;
  }

  .teaser {
    padding-top: 4.5rem;
  }

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

  .section-heading .title {
    font-size: 2.15rem;
  }

  .media-frame {
    border-width: 4px;
  }

  .figure-card {
    margin-top: 2rem;
    padding: 0.4rem;
  }

  .figure-card .caption {
    padding: 0.85rem;
  }

  .abstract-card {
    padding: 2.25rem 1.6rem;
  }

  .key-idea {
    gap: 0.75rem;
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
  }

  .key-idea .content h3 {
    font-size: 1.35rem;
  }

  .result-subtitle {
    font-size: 1.45rem !important;
    margin-top: 2.5rem;
  }

  .results-carousel .item {
    margin: 5px;
  }

  .bibtex-section pre {
    font-size: 0.72rem;
    padding: 1rem;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  body.motion-ready .reveal {
    opacity: 1;
    transform: none;
  }
}
