:root {
  --page-max: 1040px;
  --wide-max: 1260px;
  --narrow-max: 820px;
  --ink: #192235;
  --text: #2e3a4e;
  --muted: #667085;
  --soft: #f5f7fc;
  --soft-2: #fbfcff;
  --line: rgba(25, 34, 53, 0.08);
  --blue: #2c71db;
  --blue-dark: #174e91;
  --coral: #f06a53;
  --lilac: #7b68db;
  --cyan: #48b9d1;
  --card: #ffffff;
  --shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 20px 54px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  color: var(--text);
  background: #ffffff;
  font-family: "Google Sans", "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: var(--blue-dark);
  text-underline-offset: 0.16em;
}

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

.inline-paper-link {
  color: inherit;
  font-weight: inherit;
  text-decoration-color: rgba(44, 113, 219, 0.55);
  text-decoration-thickness: 0.08em;
}

.inline-paper-link:hover {
  color: var(--blue);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.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;
}

.page-container,
.wide-container,
.narrow-container {
  width: min(calc(100% - 2.5rem), var(--page-max));
  margin: 0 auto;
}

.wide-container {
  width: min(calc(100% - 2.5rem), var(--wide-max));
}

.narrow-container {
  width: min(calc(100% - 2.5rem), var(--narrow-max));
}

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, #fbfcff 0%, #f3f6fc 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(44, 113, 219, 0.18), transparent);
}

.hero-glow {
  position: absolute;
  z-index: -1;
  width: 32rem;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(4px);
  opacity: 0.65;
  pointer-events: none;
}

.hero-glow-left {
  top: -17rem;
  left: -13rem;
  background: radial-gradient(circle, rgba(72, 185, 209, 0.22), transparent 68%);
}

.hero-glow-right {
  top: -15rem;
  right: -12rem;
  background: radial-gradient(circle, rgba(123, 104, 219, 0.18), transparent 68%);
}

.hero-content {
  padding-top: 4.8rem;
  padding-bottom: 3.2rem;
  text-align: center;
}

.publication-title {
  max-width: 1120px;
  margin: 0 auto 1rem;
  color: #162033;
  font-size: clamp(2.55rem, 5.55vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.047em;
  line-height: 1.03;
}

.gradient-word {
  display: inline-block;
  padding-right: 0.04em;
  color: transparent;
  background: linear-gradient(135deg, var(--blue) 0%, var(--lilac) 52%, var(--coral) 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.title-separator {
  margin-right: 0.05em;
}

.title-rest {
  color: #162033;
}

.venue-line {
  margin: 0 0 1.25rem;
  color: #53627e;
  font-size: clamp(1.15rem, 2.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.publication-authors {
  max-width: 1080px;
  margin: 0 auto;
  color: #29354a;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.85;
}

.publication-authors a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(41, 53, 74, 0.22);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.publication-authors a:hover {
  color: var(--blue);
  border-color: rgba(44, 113, 219, 0.6);
}

.author-block {
  display: inline-block;
  white-space: nowrap;
}

.author-separator {
  display: inline-block;
  margin: 0 0.22rem;
  color: #9aa4b5;
}

sup {
  position: relative;
  top: -0.18em;
  margin-left: 0.08em;
  font-size: 0.65em;
  font-weight: 700;
}

.affiliations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.15rem;
  max-width: 1100px;
  margin: 0.55rem auto 0;
  color: var(--muted);
  font-size: 0.97rem;
}

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

.project-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  min-height: 2.8rem;
  padding: 0.66rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(22, 32, 51, 0.94);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.13);
  font-size: 0.97rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

a.project-button:hover {
  color: #ffffff;
  background: #0f172a;
  box-shadow: 0 15px 32px rgba(15, 23, 42, 0.17);
  transform: translateY(-2px);
}

.button-icon {
  display: inline-grid;
  width: 1.1rem;
  place-items: center;
  font-size: 1rem;
}

.hero-subtitle {
  max-width: 900px;
  margin: 1.55rem auto 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.24rem);
  line-height: 1.75;
}

.hero-subtitle strong {
  color: #31405a;
}

.section {
  padding: 4.5rem 0;
}

.soft-section {
  background: linear-gradient(180deg, var(--soft-2) 0%, var(--soft) 100%);
}

.teaser-section {
  padding-top: 2.2rem;
  padding-bottom: 4.5rem;
}

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

.centered-heading {
  max-width: 980px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading h2,
.acknowledgments h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.13;
}

.section-intro {
  max-width: 920px;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.78;
}

.pill {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.95rem;
  padding: 0.42rem 0.82rem;
  border-radius: 999px;
  color: #3155a3;
  background: #eaf1ff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.figure-card {
  margin: 0;
  padding: 1rem;
  border: 1px solid rgba(21, 32, 51, 0.055);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-strong);
}

.figure-card.dark-figure {
  border-color: rgba(255, 255, 255, 0.08);
  background: #050609;
}

.figure-link {
  display: block;
  border-radius: 17px;
  cursor: zoom-in;
  overflow: hidden;
}

.main-figure {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 17px;
}

.figure-card figcaption {
  max-width: 1080px;
  margin: 1rem auto 0.2rem;
  padding: 0 0.5rem;
  color: #5f6b7a;
  font-size: 1.04rem;
  line-height: 1.72;
  text-align: center;
}

.dark-figure figcaption {
  color: #c6cedb;
}

.teaser-card {
  padding: 0.8rem;
}

.teaser-card figcaption {
  padding-bottom: 0.35rem;
}

.figure-scroll {
  overflow-x: auto;
  border-radius: 17px;
  overscroll-behavior-inline: contain;
  scrollbar-color: rgba(70, 86, 115, 0.35) transparent;
  scrollbar-width: thin;
}

.figure-scroll::-webkit-scrollbar {
  height: 8px;
}

.figure-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(70, 86, 115, 0.28);
}

.scroll-hint {
  display: none;
  margin: 0.75rem 0 0;
  color: #8a95a7;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
}

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

.highlight-card {
  min-height: 100%;
  padding: 1.45rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 21px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.055);
}

.highlight-card.card-blue {
  background: linear-gradient(180deg, #ffffff, #f1f6ff);
}

.highlight-card.card-lilac {
  background: linear-gradient(180deg, #ffffff, #f7f3ff);
}

.highlight-card.card-cyan {
  background: linear-gradient(180deg, #ffffff, #effbfe);
}

.highlight-card.card-rose {
  background: linear-gradient(180deg, #ffffff, #fff3f1);
}

.card-kicker {
  margin: 0 0 0.55rem;
  color: #71809b;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.highlight-card h3,
.method-step h3,
.prompt-panel h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.22rem;
  line-height: 1.25;
}

.highlight-card p:last-child {
  margin: 0.75rem 0 0;
  color: #5d6a7b;
  line-height: 1.7;
}

.abstract-card {
  padding: 2rem 2.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #fafbff);
  box-shadow: var(--shadow);
  font-family: "Noto Sans", sans-serif;
  font-size: 1.08rem;
  line-height: 1.85;
}

.abstract-card p {
  margin: 0;
}

.abstract-card p + p {
  margin-top: 1.15rem;
}

.method-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.method-step {
  display: flex;
  gap: 1rem;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.055);
}

.step-number {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.method-step p {
  margin: 0.55rem 0 0;
  color: #657186;
  line-height: 1.65;
}

.shot-summary {
  display: grid;
  grid-template-columns: 1fr auto 1fr 1.05fr;
  gap: 1rem;
  align-items: stretch;
  max-width: 930px;
  margin: 1.3rem auto 0;
}

.shot-stat,
.shot-gain {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 145px;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.055);
  text-align: center;
}

.featured-stat {
  background: linear-gradient(150deg, #edf4ff, #f5f1ff);
  box-shadow: 0 13px 30px rgba(44, 113, 219, 0.12);
}

.shot-stat strong,
.shot-gain strong {
  color: var(--ink);
  font-size: 2.3rem;
  line-height: 1;
}

.shot-label {
  margin-bottom: 0.5rem;
  color: #53627e;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.shot-stat > span:last-child,
.shot-gain span {
  margin-top: 0.45rem;
  color: #68758a;
  font-size: 0.88rem;
}

.shot-gain {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue-dark), #2d71ce 55%, #6963cb);
}

.shot-gain strong,
.shot-gain span {
  color: #ffffff;
}

.shot-arrow {
  align-self: center;
  color: var(--blue);
  font-size: 2rem;
  font-weight: 700;
}

.results-section {
  position: relative;
  overflow: hidden;
  color: #e7edf8;
  background:
    radial-gradient(circle at 5% 5%, rgba(72, 185, 209, 0.18), transparent 28%),
    radial-gradient(circle at 95% 15%, rgba(123, 104, 219, 0.22), transparent 30%),
    #111a2b;
}

.results-section .inline-paper-link {
  color: inherit;
  text-decoration-color: rgba(154, 198, 255, 0.72);
}

.results-section .inline-paper-link:hover {
  color: #ffffff;
}

.light-heading h2 {
  color: #ffffff;
}

.light-heading .section-intro {
  color: #b9c4d6;
}

.light-pill {
  color: #d7e5ff;
  background: rgba(124, 168, 246, 0.15);
}

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

.metric-card {
  display: flex;
  flex-direction: column;
  min-height: 148px;
  justify-content: center;
  padding: 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.065);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(12px);
  text-align: center;
}

.metric-card strong {
  color: #ffffff;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.metric-card span {
  margin-top: 0.55rem;
  color: #bdc8da;
  line-height: 1.45;
}

.results-panel,
.prompt-panel {
  margin-top: 1.25rem;
  padding: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.065);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(12px);
}

.table-wrap {
  overflow-x: auto;
  border-radius: 15px;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  color: #e9eef8;
  background: rgba(12, 20, 34, 0.3);
}

th,
td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

th {
  color: #aebcd1;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

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

td:last-child {
  color: #ffffff;
}

.efficiency-note {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.05rem 0.35rem 0.05rem;
}

.efficiency-note p {
  margin: 0;
  color: #c1ccdd;
}

.efficiency-note strong {
  color: #ffffff;
}

.efficiency-icon {
  display: grid;
  flex: 0 0 2.6rem;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.prompt-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
}

.prompt-panel h3 {
  color: #ffffff;
  font-size: 1.45rem;
}

.prompt-panel > div:first-child > p:last-child {
  margin-bottom: 0;
  color: #bbc6d8;
}

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

.prompt-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.06);
}

.prompt-column > span {
  grid-column: 1 / -1;
  margin-bottom: 0.5rem;
  color: #ffffff;
  font-weight: 700;
  text-align: center;
}

.prompt-column strong {
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1.3;
}

.prompt-column small {
  align-self: center;
  color: #aebbd0;
  text-align: right;
}

.active-prompt {
  background: linear-gradient(150deg, rgba(44, 113, 219, 0.25), rgba(123, 104, 219, 0.22));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.citation-card {
  position: relative;
  overflow: hidden;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: #141d2e;
  box-shadow: var(--shadow);
}

.citation-card pre {
  overflow-x: auto;
  margin: 0;
  padding: 0.35rem;
  color: #e8eef8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.88rem;
  line-height: 1.65;
  white-space: pre;
}

.copy-button {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 1;
  padding: 0.42rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #dfe7f5;
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease;
}

.copy-button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.copy-button:focus-visible,
.project-button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(72, 185, 209, 0.65);
  outline-offset: 3px;
}

.acknowledgments {
  padding-top: 2.6rem;
  padding-bottom: 2.8rem;
}

.acknowledgments h2 {
  font-size: 1.35rem;
  letter-spacing: -0.015em;
}

.acknowledgments p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.75;
}

footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  color: #6d798c;
  background: #fafbfe;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-content p {
  margin: 0;
}

#back-to-top {
  color: #53627e;
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 1024px) {
  .highlights-grid,
  .metric-callouts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .prompt-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-container,
  .wide-container,
  .narrow-container {
    width: min(calc(100% - 1.35rem), var(--page-max));
  }

  .hero-content {
    padding-top: 3.3rem;
    padding-bottom: 2.5rem;
  }

  .publication-title {
    font-size: clamp(2.25rem, 11vw, 3.35rem);
  }

  .author-separator {
    display: none;
  }

  .author-block {
    margin: 0.08rem 0.3rem;
  }

  .affiliations {
    display: block;
  }

  .affiliations span {
    display: block;
    margin: 0.22rem 0;
  }

  .section {
    padding: 3.35rem 0;
  }

  .teaser-section {
    padding-top: 1.2rem;
  }

  .section-intro,
  .figure-card figcaption,
  .abstract-card {
    font-size: 1rem;
  }

  .figure-card {
    padding: 0.55rem;
    border-radius: 18px;
  }

  .figure-link,
  .main-figure,
  .figure-scroll {
    border-radius: 12px;
  }

  .detail-figure,
  .analysis-figure {
    width: 900px;
    max-width: none;
  }

  .qualitative-figure {
    width: 720px;
    max-width: none;
  }

  .scroll-hint {
    display: block;
  }

  .abstract-card {
    padding: 1.4rem;
  }

  .shot-summary {
    grid-template-columns: 1fr 1fr;
  }

  .shot-arrow {
    display: none;
  }

  .shot-gain {
    grid-column: 1 / -1;
    min-height: 115px;
  }

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

  .citation-card {
    padding-top: 3.4rem;
  }

  .footer-content {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 540px) {
  .highlights-grid,
  .metric-callouts,
  .shot-summary {
    grid-template-columns: 1fr;
  }

  .shot-gain {
    grid-column: auto;
  }

  .publication-links {
    gap: 0.45rem;
  }

  .project-button {
    min-height: 2.65rem;
    padding: 0.58rem 0.85rem;
    font-size: 0.9rem;
  }

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

  .efficiency-note {
    align-items: flex-start;
  }
}

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

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