@import url(fontawesome-all.min.css);
@import "myriad_pro.css";

:root {
  --ink: #172a2a;
  --ink-soft: #355252;
  --muted: #657474;
  --line: #dce5e1;
  --paper: #ffffff;
  --wash: #f5f8f7;
  --wash-strong: #edf4f1;
  --accent: #8a174a;
  --accent-dark: #641237;
  --teal: #176f70;
  --teal-soft: #dff0ee;
  --gold: #b88418;
  --shadow: 0 18px 44px rgba(23, 42, 42, 0.11);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Myriad-Pro", "Open Sans", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.62;
}

a {
  color: inherit;
}

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

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 12px 28px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(220, 229, 225, 0.9);
  backdrop-filter: blur(14px);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-size: 0.78rem;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink-soft);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--wash-strong);
  color: var(--ink);
}

.hero-section {
  padding: 56px 0 52px;
  background:
    linear-gradient(180deg, rgba(245, 248, 247, 0.92) 0%, rgba(255, 255, 255, 1) 70%),
    var(--wash);
  overflow: hidden;
}

.hero-kicker,
.section-eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-section h1 {
  max-width: 1040px;
  margin: 0;
  color: var(--ink);
  font-size: 3.3rem;
  line-height: 1.05;
  font-weight: 850;
}

.hero-lede {
  max-width: 870px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 1.24rem;
  line-height: 1.56;
}

.publication-authors {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  margin: 26px 0 0;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 750;
}

.publication-affiliations {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 18px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.publication-authors sup,
.publication-affiliations sup {
  font-size: 0.7em;
}

.publication-authors sup {
  margin-left: 1px;
}

.publication-affiliations sup {
  margin-right: 2px;
}

.publication-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.publication-meta span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 0;
}

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(23, 42, 42, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.action-button:hover,
.action-button:focus-visible {
  border-color: rgba(138, 23, 74, 0.35);
  color: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(23, 42, 42, 0.12);
}

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

.action-button.disabled {
  color: #758181;
  cursor: not-allowed;
  opacity: 0.7;
  box-shadow: none;
}

.action-button.disabled:hover,
.action-button.disabled:focus-visible {
  border-color: var(--line);
  color: #758181;
  transform: none;
  box-shadow: none;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 42px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.hero-metrics div {
  min-height: 108px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.9);
}

.hero-metrics strong {
  display: block;
  color: var(--accent);
  font-size: 2rem;
  line-height: 1;
}

.hero-metrics span {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.28;
}

.hero-visual {
  margin: 32px 0 0;
}

.hero-visual img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.45;
}

.section-block {
  padding: 82px 0;
}

.problem-section,
.analysis-section,
.real-section {
  background: var(--wash);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-size: 2.15rem;
  line-height: 1.14;
  font-weight: 840;
}

h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.25;
  font-weight: 800;
}

.copy-stack p {
  margin: 0;
  color: var(--ink-soft);
}

.copy-stack p + p {
  margin-top: 18px;
}

.section-heading {
  max-width: 850px;
  margin: 0 0 34px;
}

.section-heading.compact {
  margin-bottom: 28px;
}

.section-heading p:not(.section-eyebrow) {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.phase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}

.phase-card {
  min-height: 252px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(23, 42, 42, 0.07);
}

.phase-index {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 850;
}

.phase-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.54;
}

.paper-figure {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(23, 42, 42, 0.08);
}

.paper-figure.large {
  padding: 16px;
}

.paper-figure img {
  width: 100%;
  border-radius: 6px;
}

.analysis-grid,
.figure-pair,
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.analysis-grid .paper-figure {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.analysis-grid .paper-figure img {
  object-fit: contain;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.result-grid article {
  min-height: 152px;
  padding: 20px;
  border-top: 4px solid var(--teal);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.result-grid strong {
  display: block;
  color: var(--accent);
  font-size: 2rem;
  line-height: 1;
}

.result-grid span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.35;
}

.figure-pair {
  margin-top: 22px;
}

.supplemental {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.supplemental summary {
  cursor: pointer;
  padding: 16px 18px;
  color: var(--ink);
  font-weight: 800;
}

.supplemental .paper-figure {
  margin: 0 16px 16px;
  box-shadow: none;
}

.paper-figure.cropped {
  overflow: hidden;
}

.paper-figure.cropped img {
  height: 430px;
  object-fit: cover;
  object-position: center bottom;
}

.video-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(23, 42, 42, 0.08);
}

.video-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #101616;
  object-fit: cover;
}

.video-card div {
  padding: 18px;
}

.video-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.video-card strong {
  color: var(--accent);
}

.bib-section {
  background: #ffffff;
}

.bibtex-block {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #102222;
  color: #eef7f4;
  font-family: "Source Code Pro", Consolas, monospace;
  font-size: 0.92rem;
  line-height: 1.55;
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: var(--wash);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--accent);
  font-weight: 750;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 980px) {
  .hero-section h1 {
    font-size: 2.55rem;
  }

  .hero-metrics,
  .result-grid,
  .phase-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .two-column,
  .analysis-grid,
  .figure-pair,
  .video-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(100% - 28px, 1160px);
  }

  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero-section {
    padding: 44px 0 36px;
  }

  .hero-section h1 {
    font-size: 2.05rem;
    line-height: 1.11;
  }

  .hero-lede {
    font-size: 1.05rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .action-button {
    width: 100%;
  }

  .hero-metrics,
  .result-grid,
  .phase-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics div {
    min-height: 92px;
  }

  .section-block {
    padding: 58px 0;
  }

  h2 {
    font-size: 1.72rem;
  }

  .paper-figure,
  .paper-figure.large {
    padding: 10px;
  }

  .paper-figure.cropped img {
    height: 310px;
  }
}
