:root {
  color-scheme: light;
  --ink: #17201d;
  --muted: #5b6762;
  --line: #d8dfd7;
  --paper: #f7f6f1;
  --panel: #ffffff;
  --accent: #247a68;
  --accent-dark: #0d4d43;
  --gold: #c28b2c;
  --danger: #b65245;
  --shadow: 0 20px 60px rgba(26, 39, 34, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(247, 246, 241, 0.88);
  border-bottom: 1px solid rgba(216, 223, 215, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  font-weight: 800;
  letter-spacing: 0;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 20px;
  color: var(--muted);
  font-size: 0.94rem;
}

nav a:hover,
footer a:hover {
  color: var(--accent-dark);
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 64px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(10, 17, 16, 0.86), rgba(10, 17, 16, 0.46) 52%, rgba(10, 17, 16, 0.12)),
    linear-gradient(0deg, rgba(247, 246, 241, 0.88) 0%, rgba(247, 246, 241, 0) 24%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  align-self: center;
  width: min(880px, 92vw);
  padding: 8vh clamp(18px, 4vw, 56px) 16vh;
  color: white;
}

.venue,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 10px;
  font-size: clamp(3.8rem, 10vw, 8.8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.3rem;
  line-height: 1.2;
}

.subtitle {
  max-width: 760px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.2rem, 2.4vw, 2.1rem);
  line-height: 1.24;
}

.authors,
.affiliation {
  max-width: 760px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button,
.material-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-weight: 750;
  line-height: 1.1;
  backdrop-filter: blur(12px);
}

.button:hover {
  background: rgba(255, 255, 255, 0.22);
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(62px, 9vw, 112px) 0;
}

.abstract {
  max-width: 920px;
  font-size: clamp(1.14rem, 2vw, 1.42rem);
  line-height: 1.65;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.split p,
.section-heading p,
.evidence p {
  color: var(--muted);
  font-size: 1.04rem;
}

.three-points {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.three-points div {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 3px 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.three-points span {
  grid-row: span 2;
  color: var(--accent);
  font-weight: 900;
}

.three-points strong {
  font-size: 1.02rem;
}

.three-points p {
  margin: 0;
  color: var(--muted);
}

.paper-figure,
.wide-figure,
.task-card,
.video-section video,
pre {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.paper-figure img,
.wide-figure img {
  width: 100%;
  background: white;
}

figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.86rem;
}

.evidence {
  display: grid;
  gap: 26px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.8fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 34px;
}

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

.task-card {
  padding: 14px;
}

.task-card h3,
.task-card p {
  padding: 0 4px;
}

.task-card p {
  margin-bottom: 4px;
  color: var(--muted);
}

.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.compare figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #eef1ed;
  aspect-ratio: 1;
}

.compare img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare figcaption {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 5px 8px;
  border-radius: 5px;
  background: rgba(9, 18, 15, 0.72);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
}

.compare figure:first-child figcaption {
  background: rgba(147, 55, 45, 0.82);
}

.compare figure:last-child figcaption {
  background: rgba(22, 110, 91, 0.84);
}

.results {
  width: 100%;
  padding-right: max(18px, calc((100% - 1180px) / 2));
  padding-left: max(18px, calc((100% - 1180px) / 2));
  background: #14211d;
  color: white;
}

.results .section-kicker,
.results h2 {
  color: white;
}

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

.metric {
  min-height: 210px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.metric span {
  display: block;
  margin-bottom: 18px;
  color: #9ee0ce;
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  font-weight: 900;
  line-height: 0.95;
}

.metric p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.video-section video {
  width: 100%;
  max-height: 78vh;
  background: #09120f;
}

.video-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.video-note code {
  overflow-wrap: anywhere;
}

.materials {
  display: grid;
  gap: 24px;
}

.material-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.material-links a {
  border-color: var(--line);
  background: white;
  color: var(--accent-dark);
  box-shadow: 0 8px 28px rgba(26, 39, 34, 0.08);
}

.material-links a:hover {
  border-color: var(--accent);
}

pre {
  margin: 0;
  padding: 22px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #e7f3ef;
  background: #13201c;
  font-size: 0.9rem;
  line-height: 1.55;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 18px;
  padding: 30px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 760px;
  }

  .hero-media::after {
    background:
      linear-gradient(0deg, rgba(10, 17, 16, 0.9), rgba(10, 17, 16, 0.38)),
      linear-gradient(0deg, rgba(247, 246, 241, 0.82) 0%, rgba(247, 246, 241, 0) 20%);
  }

  .hero-content {
    align-self: end;
    padding-bottom: 120px;
  }

  .split,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .task-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  nav {
    gap: 6px 14px;
    font-size: 0.88rem;
  }

  .hero {
    min-height: 700px;
  }

  .actions,
  .material-links {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button,
  .material-links a {
    width: 100%;
  }

  .compare {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .task-card {
    padding: 10px;
  }
}
