:root {
  --ink: #16231c;
  --muted: #5d6c63;
  --line: #dce6de;
  --paper: #ffffff;
  --wash: #f5f8f5;
  --green: #4f7d60;
  --green-dark: #31563f;
  --green-soft: #dcebdd;
  --pink: #d96d9f;
  --blue: #3f7fd9;
  --orange: #d38244;
  --shadow: 0 24px 70px rgba(39, 68, 49, 0.10);
  --content: 1180px;
  --narrow: 860px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

a {
  color: var(--green-dark);
  text-underline-offset: 0.18em;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 24px 78px;
  background:
    radial-gradient(circle at 12% 18%, rgba(79, 125, 96, 0.14), transparent 28%),
    radial-gradient(circle at 87% 14%, rgba(217, 109, 159, 0.09), transparent 25%),
    linear-gradient(180deg, #f8fbf8 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(79, 125, 96, 0.16);
  pointer-events: none;
}

.hero::before {
  width: 280px;
  height: 180px;
  top: -52px;
  left: -70px;
  transform: rotate(-8deg);
}

.hero::after {
  width: 330px;
  height: 210px;
  right: -105px;
  bottom: -104px;
  transform: rotate(12deg);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  margin: 0 auto;
  text-align: center;
}

.venue,
.eyebrow,
.result-card__index {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.venue {
  display: inline-flex;
  padding: 8px 13px;
  border: 1px solid #bfd1c3;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 940px;
  margin: 0 auto 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.45rem, 5.5vw, 4.7rem);
  font-weight: 500;
  letter-spacing: -0.042em;
  line-height: 1.03;
}

h1 span {
  color: var(--green-dark);
}

.hero-authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px 10px;
  margin: 0 auto;
  color: var(--ink);
  font-size: clamp(1rem, 1.8vw, 1.13rem);
  font-weight: 650;
  line-height: 1.5;
}

.hero-authors span {
  white-space: nowrap;
}

.hero-affiliations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 18px;
  max-width: 940px;
  margin: 9px auto 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.hero-authors sup,
.hero-affiliations sup {
  position: relative;
  top: -0.15em;
  color: var(--green-dark);
  font-size: 0.66em;
  font-weight: 750;
}

.resource-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.resource-button {
  min-width: 138px;
  padding: 11px 20px 10px;
  border: 1px solid #ccd9cf;
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(50, 83, 62, 0.06);
  text-align: left;
}

.resource-button--active {
  cursor: pointer;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.resource-button--active:hover {
  border-color: #91ad99;
  box-shadow: 0 10px 28px rgba(50, 83, 62, 0.12);
  transform: translateY(-1px);
}

.resource-button--active:focus-visible {
  outline: 3px solid rgba(44, 105, 66, 0.28);
  outline-offset: 3px;
}

.resource-button:disabled {
  cursor: default;
  opacity: 1;
}

.resource-button__label,
.resource-button__status {
  display: block;
}

.resource-button__label {
  font-size: 0.98rem;
  font-weight: 720;
  line-height: 1.25;
}

.resource-button__status {
  margin-top: 2px;
  color: #7a887e;
  font-size: 0.72rem;
  line-height: 1.3;
}

main {
  overflow: hidden;
}

.section {
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto;
  padding: 90px 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section--narrow {
  width: min(calc(100% - 48px), var(--narrow));
}

.section--results {
  width: min(calc(100% - 32px), 1300px);
}

.section__heading {
  margin-bottom: 32px;
}

.section__heading--centered {
  max-width: 820px;
  margin-right: auto;
  margin-bottom: 36px;
  margin-left: auto;
  text-align: center;
}

.eyebrow {
  margin-bottom: 10px;
}

h2 {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.section__intro {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.04rem;
}

.figure-frame,
.result-card__media,
.application-panel__media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.figure-frame {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.figure-frame img {
  width: 100%;
  height: auto;
}

.zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  color: #fff;
  background: rgba(22, 35, 28, 0.72);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.js-lightbox-trigger:hover .zoom-hint,
.js-lightbox-trigger:focus-visible .zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

.js-lightbox-trigger:focus-visible {
  outline: 3px solid rgba(63, 127, 217, 0.45);
  outline-offset: 4px;
}

.caption {
  max-width: 980px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

.abstract-copy {
  color: #34423a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 2vw, 1.22rem);
  line-height: 1.82;
}

.abstract-copy p:last-child {
  margin-bottom: 0;
}

.method-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.method-steps article {
  min-height: 205px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--wash);
}

.method-steps article:nth-child(2) {
  background: #fbf6f8;
}

.method-steps article:nth-child(3) {
  background: #f5f8fc;
}

.step-index {
  display: block;
  margin-bottom: 28px;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.method-steps p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

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

.result-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(39, 68, 49, 0.08);
}

.result-card__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
}

.result-card__header h3 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 500;
}

.result-card__index {
  margin-bottom: 3px;
  font-size: 0.65rem;
}

.result-card__header > span {
  color: var(--muted);
  font-size: 0.78rem;
}

.result-card__media {
  background: #fff;
}

.result-card__media img {
  width: 100%;
  height: auto;
}

.application-panel {
  overflow: hidden;
  border: 1px solid #cbd9ce;
  border-radius: 22px;
  background: linear-gradient(135deg, #eff6f0 0%, #fff 48%, #faf4f7 100%);
  box-shadow: var(--shadow);
}

.application-panel__copy {
  max-width: 780px;
  padding: 42px 44px 26px;
}

.application-panel__copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.application-panel__media {
  padding: 0 24px 24px;
}

.application-panel__media img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

footer {
  padding: 42px 24px 50px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--wash);
  font-size: 0.82rem;
  text-align: center;
}

footer p {
  margin-bottom: 4px;
}

.footer-note {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

.lightbox {
  width: min(96vw, 1500px);
  max-width: none;
  height: min(94vh, 1080px);
  max-height: none;
  margin: auto;
  padding: 54px 18px 18px;
  border: 0;
  border-radius: 18px;
  background: #f8faf8;
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.34);
}

.lightbox::backdrop {
  background: rgba(10, 18, 13, 0.78);
  backdrop-filter: blur(5px);
}

.lightbox__viewport {
  width: 100%;
  height: 100%;
  overflow: auto;
  border-radius: 10px;
  background: #fff;
}

.lightbox__viewport img {
  width: auto;
  min-width: 100%;
  max-width: none;
  height: auto;
}

.lightbox__close {
  position: absolute;
  top: 12px;
  right: 16px;
  padding: 6px 12px;
  border: 1px solid #cbd7cd;
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 820px) {
  .hero {
    padding-top: 70px;
    padding-bottom: 62px;
  }

  .section {
    width: min(calc(100% - 32px), var(--content));
    padding: 68px 0;
  }

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

  .method-steps article {
    min-height: 0;
  }

  .step-index {
    margin-bottom: 14px;
  }

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

  .application-panel__copy {
    padding: 32px 26px 20px;
  }

  .application-panel__media {
    padding: 0 12px 12px;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-right: 18px;
    padding-left: 18px;
  }

  .resource-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    gap: 8px;
  }

  .resource-button {
    min-width: 0;
    padding: 10px 9px;
    text-align: center;
  }

  .resource-button__status {
    font-size: 0.64rem;
  }

  .result-card__header {
    align-items: start;
    flex-direction: column;
    gap: 4px;
  }

  .zoom-hint {
    display: none;
  }

  .lightbox {
    width: 100vw;
    height: 100vh;
    padding-right: 8px;
    padding-bottom: 8px;
    padding-left: 8px;
    border-radius: 0;
  }
}

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

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