:root {
  --page-bg: #ffffff;
  --page-bg-2: #f7f8fb;
  --ink: #22252b;
  --muted: #5c6470;
  --line: #e6e9ef;
  --accent: #724178;
  --accent-2: #5b86e5;
  --shadow: 0 8px 28px rgba(31, 41, 55, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans", sans-serif;
  background:
    radial-gradient(circle at top center, rgba(114, 65, 120, 0.08), transparent 24%),
    radial-gradient(circle at 100% 0%, rgba(91, 134, 229, 0.08), transparent 22%),
    linear-gradient(180deg, var(--page-bg) 0%, var(--page-bg-2) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.content-wrapper {
  width: min(1040px, calc(100% - 28px));
  margin: 0 auto;
}

.title-section {
  padding: 64px 0 26px;
  text-align: center;
}

.title-wrapper {
  padding: 0 12px;
}

.title-header {
  padding-bottom: 14px;
  position: relative;
  display: flex;
  justify-content: center;
}

.project-title {
  margin: 0;
  font-family: "Lobster", cursive;
  font-size: clamp(3.5rem, 7.5vw, 6rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  overflow: visible;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
  font-weight: 400;
  transform: scaleX(0.94);
  transform-origin: center;
  position: relative;
  left: 42px;
}

.title-text {
  display: inline-block;
}

.project-title-animated {
  position: relative;
  display: inline-flex;
}

.word-chart,
.word-judge,
.word-bench {
  display: inline-block;
  padding: 0 0 0.12em;
  position: relative;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: saturate(1.08) brightness(1.05);
}

.word-chart {
  background-image: linear-gradient(
    90deg,
    #c96b34 0%,
    #de8848 16%,
    #df6f74 34%,
    #b06cb4 52%,
    #7b74cd 70%,
    #507fcc 86%,
    #72a5c5 100%
  );
  background-size: 300% 100%;
  animation: titleFlow 4.1s ease-in-out infinite;
}

.word-judge {
  margin-left: 0.04em;
  background-image: linear-gradient(
    90deg,
    #557fc8 0%,
    #6e82cf 18%,
    #8a74c9 34%,
    #c06ea7 52%,
    #d67978 68%,
    #dd8d54 84%,
    #efb06d 100%
  );
  background-size: 300% 100%;
  animation: titleFlow 4.1s ease-in-out infinite reverse;
}

.word-bench {
  margin-left: 0.04em;
  background-image: linear-gradient(
    90deg,
    #8a74c9 0%,
    #ad70b8 24%,
    #cf7898 48%,
    #e28b78 72%,
    #efb06d 100%
  );
  background-size: 300% 100%;
  animation: titleFlow 4.1s ease-in-out infinite;
}

.word-chart::after,
.word-judge::after,
.word-bench::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.12;
  transform: translate(3px, 5px);
  pointer-events: none;
}

.word-chart::after {
  content: "Chart";
  color: rgba(201, 121, 73, 0.18);
}

.word-judge::after {
  content: "Judge";
  color: rgba(87, 127, 186, 0.18);
}

.word-bench::after {
  content: "Bench";
  color: rgba(173, 112, 184, 0.18);
}

.title-mark {
  width: clamp(138px, 14.4vw, 178px);
  height: auto;
  margin-right: 0;
  transform: translateY(4px);
  object-fit: contain;
  position: absolute;
  right: calc(100% + 2px);
}

.subtitle {
  max-width: 820px;
  margin: 16px auto 22px;
  color: var(--muted);
  font-size: clamp(1.12rem, 2vw, 1.6rem);
  font-weight: 500;
  line-height: 1.55;
  text-align: center;
}

@keyframes titleFlow {
  0% {
    background-position: 0% 50%;
    transform: translateY(0px);
  }

  50% {
    background-position: 100% 50%;
    transform: translateY(-1px);
  }

  100% {
    background-position: 0% 50%;
    transform: translateY(0);
  }
}

.authors,
.affiliations {
  max-width: 900px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.88;
  text-align: center;
}

.authors a {
  color: #5e84c6;
  text-decoration: none;
  font-weight: 500;
}

.authors a:hover {
  color: #3f6fb8;
  text-decoration: underline;
}

.affil-1 {
  color: rgb(43, 118, 71);
  font-weight: 700;
}

.affil-2 {
  color: rgb(169, 177, 15);
  font-weight: 700;
}

.affiliations a {
  color: #c79b2d;
  text-decoration: none;
  font-weight: 600;
}

.affiliations a:hover {
  color: #a77e1f;
  text-decoration: underline;
}

.acknowledgements a {
  color: #5e84c6;
  text-decoration: none;
  font-weight: 600;
}

.acknowledgements a:hover {
  color: #3f6fb8;
  text-decoration: underline;
}

.button-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 132px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid #d8deea;
  background: #1f2430;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.outline-button i {
  font-size: 0.88rem;
}

.hf-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}

.outline-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(31, 36, 48, 0.16);
  border-color: #1f2430;
}

.outline-button-disabled {
  cursor: default;
  opacity: 0.72;
}

.outline-button-disabled:hover {
  transform: none;
  box-shadow: none;
  border-color: #1f2430;
}

.main-container {
  padding: 6px 0 52px;
}

.content-box {
  padding: 44px 52px 52px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.text-title {
  margin: 0 0 14px;
  padding-top: 8px;
  font-family: "Castoro", serif;
  font-size: clamp(1.7rem, 2.7vw, 2.35rem);
  line-height: 1.15;
}

.section-title-centered {
  text-align: center;
}

.compact-section-title {
  margin-bottom: 0;
}

.text-content,
.acknowledgements,
.result-list {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.88;
}

.text-content {
  margin: 0 0 18px;
}

.abstract-block {
  margin: 10px auto 34px;
  padding: 28px 32px;
  border-radius: 20px;
  background: #f2f4f7;
}

.results-block {
  margin: 12px auto 34px;
  padding: 12px 16px;
  border-radius: 20px;
  background: #f2f4f7;
  min-height: 760px;
}

.overview-diagram {
  width: min(100%, 860px);
  margin: 8px auto 20px;
}

.overview-caption {
  max-width: 860px;
  margin: -2px auto 120px;
  font-size: 0.7rem;
  line-height: 1.38;
  color: #6c7583;
}

.abstract-text {
  max-width: 920px;
  margin: 0 auto;
  text-align: left;
}

.text-center {
  text-align: center;
}

.responsive-image,
.tab-image {
  width: 100%;
  margin: 14px 0 22px;
  border-radius: 16px;
  border: 1px solid #e8ecf3;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.responsive-image-large {
  max-height: 820px;
  object-fit: contain;
}

.tab-image {
  max-height: 820px;
  object-fit: contain;
}

.tabs-panel {
  margin: 12px 0 38px;
  border: 1px solid #e6eaf1;
  border-radius: 20px;
  background: linear-gradient(180deg, #fafbfe 0%, #ffffff 100%);
  overflow: hidden;
}

.tab-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid #edf1f6;
  background: #f8faff;
}

.tab-link {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: #ffffff;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.tab-link.active {
  background: var(--accent);
  color: #fff;
}

.tab-content {
  padding: 18px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.teaser-stack {
  display: grid;
  gap: 20px;
  margin: 12px 0 34px;
  justify-items: center;
}

.teaser-figure {
  width: min(100%, 700px);
  margin: 0;
}

.teaser-caption {
  margin: 12px 0 0;
  color: #4c5562;
  font-size: 0.98rem;
  line-height: 1.75;
  text-align: left;
}

.stacked-teaser {
  width: 100%;
  border-radius: 16px;
  border: 1px solid #e8ecf3;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}


.highlight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 10px 0 58px;
}

.highlight-card {
  padding: 22px 20px;
  border: 1px solid #e8ecf3;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.highlight-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.72;
  font-size: 1.08rem;
  font-weight: 700;
}

.highlight-number {
  color: var(--accent);
  font-family: "Castoro", serif;
  font-size: 1.55rem;
  font-weight: 700;
}

.result-card {
  margin: 8px 0 34px;
  padding: 22px;
  border: 1px solid #e8ecf3;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.carousel-shell {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 16px;
  margin: 12px 0 12px;
  min-height: 660px;
}

.carousel-arrow {
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
  border: 1px solid #e4e8f0;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.carousel-arrow-light {
  background: #ffffff;
  color: #111111;
  border: 1px solid #e4e8f0;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.carousel-track {
  position: relative;
  min-height: 600px;
}

.carousel-slide {
  display: none;
  text-align: center;
  height: 100%;
}

.carousel-slide.active {
  display: block;
}

.case-slide {
  display: none;
  text-align: center;
  height: 100%;
}

.case-slide.active {
  display: block;
}

.case-study-panel {
  margin: 0 auto 34px;
  padding: 8px 16px 2px;
  border-radius: 20px;
  background: #f2f4f7;
}

.case-study-block {
  max-width: 980px;
  margin: -16px auto 0;
  position: relative;
  padding-top: 74px;
}

.case-study-block-hero {
  max-width: 980px;
  margin: -12px auto 0;
  padding-top: 0;
  padding-bottom: 0;
}

.case-carousel-shell {
  min-height: 790px;
  align-items: center;
  margin-bottom: 0;
}

.case-study-image {
  width: 100%;
  height: auto;
  max-height: 320px;
  border-radius: 16px;
  border: 1px solid #e8ecf3;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  object-fit: contain;
}

.case-study-image-hero {
  width: min(100%, 920px);
  max-height: 610px;
  border-radius: 14px;
}

.case-hero-caption {
  max-width: 920px;
  margin: 8px auto 8px;
  color: #55606f;
  font-size: 0.88rem;
  line-height: 1.6;
  text-align: left;
}

.case-hero-findings {
  max-width: 920px;
  margin: 0 auto 2px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.case-hero-box {
  padding: 10px 12px;
  border: 1px solid #e2e7f0;
  border-radius: 14px;
  background: #fafbfd;
  color: #434b58;
  font-size: 0.88rem;
  line-height: 1.6;
  text-align: left;
}

.case-paired-figures {
  gap: 22px;
  margin-bottom: 4px;
}

.case-figure {
  margin: 0;
}

.case-figure figcaption {
  margin-top: 10px;
  font-size: 0.92rem;
  line-height: 1.4;
  color: #505968;
  text-align: center;
  font-style: italic;
}

.instruction-box {
  max-width: 920px;
  min-height: 58px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f3f6ff;
  border: 1px solid #cdd7ee;
  color: #394152;
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.65;
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
}

.instruction-box-compact {
  min-height: 48px;
  padding: 6px 10px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.case-slide-compact .case-study-block {
  padding-top: 62px;
}

.case-slide-compact .case-study-image {
  max-height: 300px;
}

.case-slide-compact .case-meta {
  min-height: 62px;
  padding: 9px 11px;
}

.case-slide-compact .case-detail p {
  min-height: 84px;
  padding: 9px 11px;
  line-height: 1.72;
}

.case-detail {
  max-width: 920px;
  margin: 0 auto;
  padding-top: 0;
  text-align: left;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 18px;
  margin-bottom: 6px;
  padding: 10px 12px;
  border: 1px solid #e2e7f0;
  border-radius: 14px;
  background: #fafbfd;
  color: #2a2f38;
  font-size: 1rem;
  line-height: 1.6;
  min-height: 68px;
  align-items: center;
}

.case-detail p {
  margin: 6px 0 0;
  padding: 10px 12px;
  border: 1px solid #e2e7f0;
  border-radius: 14px;
  background: #fafbfd;
  color: #434b58;
  font-size: 0.98rem;
  line-height: 1.8;
  min-height: 94px;
}

.citation-block-wrap {
  margin: 12px auto 0;
  padding: 12px 16px 18px;
  border-radius: 20px;
  background: #f2f4f7;
}

.preliminary-section {
  margin: -34px auto 18px;
  padding: 0;
}

.preliminary-intro,
.preliminary-summary {
  max-width: 930px;
  margin-left: auto;
  margin-right: auto;
}

.preliminary-intro {
  margin-top: 22px;
}

h2.section-title-centered + .case-carousel-shell,
h2.section-title-centered + .preliminary-section {
  margin-top: -14px;
}

.preliminary-section .text-title {
  margin-bottom: 0;
}

.preliminary-section .carousel-shell,
.content-box > h2.section-title-centered + .case-carousel-shell {
  margin-top: 0;
}

.content-box > h2.compact-section-title + .case-carousel-shell {
  margin-top: -8px;
}

.results-block + .case-study-panel {
  margin-top: 34px;
}

.case-study-panel + .preliminary-section {
  margin-top: 12px;
}

.preliminary-section .carousel-shell {
  min-height: 540px;
  padding-top: 30px;
  margin-bottom: -8px;
}

.prelim-slide {
  display: none;
  height: 100%;
}

.prelim-slide.active {
  display: block;
}

.prelim-study-block {
  max-width: 940px;
  margin: 0 auto;
}

.prelim-paired-figures {
  gap: 18px;
  margin-bottom: 14px;
}

.prelim-image {
  width: 100%;
  height: 300px;
  border-radius: 16px;
  border: 1px solid #e8ecf3;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  object-fit: contain;
}

.prelim-detail {
  max-width: 920px;
  margin: 0 auto;
  padding: 12px 14px;
  border: 1px solid #e2e7f0;
  border-radius: 14px;
  background: #fafbfd;
  color: #404856;
  text-align: left;
}

.prelim-detail p {
  margin: 6px 0 0;
  line-height: 1.75;
  font-size: 0.98rem;
}

.prelim-detail p:first-child {
  margin-top: 0;
}

.carousel-image {
  width: min(100%, 720px);
  height: 420px;
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid #e8ecf3;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  object-fit: contain;
}

.carousel-image-table {
  width: min(100%, 760px);
  height: 450px;
}

.carousel-image-link {
  display: block;
  width: min(100%, 760px);
  margin: 0 auto;
  border-radius: 16px;
}

.carousel-image-link .carousel-image-table {
  width: 100%;
  margin: 0;
}

.carousel-image-link:focus-visible {
  outline: 3px solid #8b73cd;
  outline-offset: 4px;
}

.carousel-caption {
  max-width: 820px;
  margin: 14px auto 0;
  text-align: center;
  font-size: 0.96rem;
}

.analysis-box {
  max-width: 820px;
  margin: 12px auto 0;
  padding: 9px 11px;
  border-radius: 10px;
  background: #f7f3ff;
  border: 1px solid #d8cdef;
  color: #554c67;
  line-height: 1.75;
  text-align: left;
  box-shadow: none;
  font-size: 0.9rem;
}

.result-copy {
  margin-bottom: 14px;
}

.result-list {
  margin: 0;
  padding-left: 22px;
}

.paired-figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.paired-figures img {
  border-radius: 16px;
  border: 1px solid #e8ecf3;
  background: #fff;
}

.paired-image {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: contain;
}

.paired-figures-wide {
  max-width: 900px;
  margin: 0 auto;
  align-items: start;
}

.paired-image-table {
  min-height: 360px;
  border-radius: 16px;
  border: 1px solid #e8ecf3;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

#citation {
  margin: 14px 0 0;
  padding: 20px 22px;
  overflow-x: auto;
  border: 1px solid #e6eaf1;
  border-radius: 18px;
  background: #fafbfe;
  line-height: 1.65;
}

.acknowledgements {
  margin-top: 18px;
}

.logo-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin: 20px auto 4px;
}

.logo-strip-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo-strip-image {
  width: 132px;
  height: 66px;
  object-fit: contain;
}

@media (max-width: 800px) {
  .content-box {
    padding: 28px 18px 34px;
  }

  .highlight-grid,
  .paired-figures {
    grid-template-columns: 1fr;
  }

  .carousel-shell {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 10px;
    min-height: 470px;
  }

  .carousel-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }

  .results-block {
    min-height: 580px;
  }

  .carousel-track {
    min-height: 410px;
  }

  .carousel-image {
    height: 240px;
  }

  .carousel-image-table {
    height: 260px;
  }

  .paired-image-table {
    min-height: 220px;
  }

  .case-study-block {
    max-width: 100%;
    margin-bottom: 0;
    padding-top: 66px;
  }

  .case-study-block-hero {
    padding-top: 0;
    margin-top: 0;
  }

  .case-carousel-shell {
    min-height: 590px;
    align-items: center;
  }

  .case-study-image {
    max-height: 220px;
  }

  .case-study-image-hero {
    max-height: 420px;
  }

  .case-hero-findings {
    grid-template-columns: 1fr;
  }

  .instruction-box {
    min-height: 52px;
    font-size: 0.88rem;
  }

  .prelim-image {
    height: 220px;
  }

  .case-meta {
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
  }

}

@media (max-width: 560px) {
  .title-section {
    padding-top: 38px;
  }

  .project-title {
    font-size: 2.25rem;
    transform: scaleX(0.96);
    left: 30px;
  }

  .title-mark {
    width: 92px;
    right: calc(100% - 2px);
  }

  .subtitle,
  .authors,
  .affiliations,
  .text-content,
  .acknowledgements,
  .result-list {
    font-size: 1rem;
  }

  .outline-button {
    width: 100%;
  }
}
