:root {
  --paper: #f8f4ec;
  --ink: #171513;
  --muted: #68615a;
  --line: rgba(23, 21, 19, 0.18);
  --rust: #a8462a;
  --blue: #1f607f;
  --panel: rgba(255, 252, 246, 0.72);
  --soft: #efe6d8;
  --shadow: 0 18px 46px rgba(49, 34, 20, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 0%, rgba(168, 70, 42, 0.14), transparent 24rem),
    radial-gradient(circle at 88% 8%, rgba(31, 96, 127, 0.12), transparent 26rem),
    linear-gradient(180deg, #fbf6ed 0%, var(--paper) 42%, #efe4d4 100%);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.58;
}

a {
  color: inherit;
}

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

.hero {
  padding: 24px clamp(18px, 4vw, 56px) 42px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto 44px;
  font-family: "Trebuchet MS", Verdana, sans-serif;
}

.brand {
  color: var(--rust);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--rust);
}

.hero-intro {
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

.hero-copy {
  display: grid;
  justify-items: center;
}

.venue,
.eyebrow {
  margin: 0 0 12px;
  color: var(--rust);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 1000px;
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5.8rem);
}

h2 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.authors {
  margin: 20px 0 0;
  color: #3c3732;
  font-size: clamp(1.08rem, 1.8vw, 1.32rem);
}

.subtitle {
  max-width: 850px;
  margin: 22px 0 26px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  cursor: pointer;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-weight: 700;
  text-decoration: none;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(168, 70, 42, 0.5);
  background: #fffaf2;
}

.button.primary {
  border-color: transparent;
  background: var(--ink);
  color: #fffaf0;
}

.teaser-figure {
  max-width: 1160px;
  margin: 44px auto 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0 14px;
}

.teaser-figure img {
  width: 100%;
}

figcaption {
  padding: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 58px clamp(18px, 4vw, 56px);
}

.section.narrow {
  max-width: 900px;
}

#abstract {
  padding-top: 44px;
}

#abstract p {
  font-size: clamp(1.08rem, 1.7vw, 1.24rem);
}

.section.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.05fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}

.section p {
  font-size: 1.08rem;
}

.card,
.algorithm-card,
.result-figure,
.video-card {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.card,
.algorithm-card,
.video-card {
  padding: 10px;
}

.card img,
.algorithm-card img,
.result-figure img {
  width: 100%;
}

.video-card video {
  display: block;
  width: 100%;
  background: #161310;
}

.algorithm-card {
  max-width: 760px;
}

.note {
  max-width: 760px;
  color: var(--muted);
}

.core-visuals {
  display: grid;
  gap: 18px;
}

.core-triptych {
  padding-top: 4px;
}

.result-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.36fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: start;
  margin: 30px 0;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.featured-result {
  align-items: center;
}

.side-caption {
  position: sticky;
  top: 22px;
}

.side-caption p {
  color: var(--muted);
}

.triptych {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.triptych figure {
  margin: 0;
  background: rgba(255, 255, 255, 0.45);
}

.triptych figcaption {
  padding: 8px 0 0;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-weight: 800;
  text-align: center;
}

.result-figure {
  padding: 12px;
}

.tall-result {
  max-width: 760px;
}

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

.mini-triptych {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.coefficient {
  align-self: start;
}

.bibtex {
  overflow-x: auto;
  padding: 20px;
  border: 1px solid var(--line);
  background: #1d1915;
  color: #f7efe3;
  font-size: 0.9rem;
  line-height: 1.5;
}

.copy {
  margin-top: 12px;
}

.footer {
  max-width: 1120px;
  margin: 40px auto 0;
  padding: 30px clamp(18px, 4vw, 56px) 54px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.footer a {
  color: var(--rust);
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-intro {
    text-align: left;
  }

  .hero-copy {
    justify-items: start;
  }

  .actions {
    justify-content: flex-start;
  }

  .section.split,
  .result-block,
  .result-grid,
  .triptych {
    grid-template-columns: 1fr;
  }
}
