/* DiffWorldMimic project page.
   Neutral page so the renders carry the color; the name carries the paper's
   teal -> violet gradient (the two accent colors of the supplementary video). */

:root {
  --bg: #ffffff;
  --ink: #16181d;
  --muted: #5d6470;
  --border: #e6e7ec;
  --teal: #0e9384;
  --violet: #6a4fe0;
  --grad: linear-gradient(90deg, var(--teal), var(--violet));
  --radius: 14px;
  --maxw: 1000px;
  --narrow: 720px;
  --wide: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: var(--narrow); }
.container--wide { max-width: var(--wide); }

/* The name, wherever it appears, is set in the gradient. */
.name, .wordmark {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.name { font-weight: 600; }

/* ---------- hero ---------- */
.hero {
  text-align: center;
  padding: 104px 0 44px;
  background:
    radial-gradient(700px 300px at 38% -12%, rgba(14, 147, 132, 0.08), transparent 70%),
    radial-gradient(700px 300px at 62% -12%, rgba(106, 79, 224, 0.09), transparent 70%),
    var(--bg);
}
.wordmark {
  display: inline-block;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0 0 14px;
  padding-bottom: 0.04em; /* keeps descenders inside the clipped gradient */
}
.subtitle {
  font-size: clamp(1.15rem, 2.6vw, 1.65rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink);
  max-width: 900px;
  margin: 0 auto;
  text-wrap: balance;
}

/* ---------- media ---------- */
figure { margin: 0; }
.media {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
video.media { background: #fff; aspect-ratio: 16 / 9; }
figcaption {
  color: var(--muted);
  font-size: 0.97rem;
  text-align: center;
  max-width: 820px;
  margin: 18px auto 0;
  text-wrap: balance;
}

.teaser-section { padding: 12px 0 8px; }

/* ---------- sections ---------- */
.section { padding: 64px 0 24px; }
#tracking { padding-bottom: 96px; }
.section h2 {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin: 0 0 24px;
}
.section h2::after {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  margin: 12px auto 0;
  border-radius: 2px;
  background: var(--grad);
}

.abstract {
  font-size: 1.07rem;
  line-height: 1.7;
  text-wrap: pretty;
  margin: 0;
}

.abstract + .abstract { margin-top: 1em; }

/* ---------- tracker galleries ---------- */
.group {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
  margin: 8px 0 4px;
}
.group-note {
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
  margin: 0 0 20px;
}
.tiles + .group { margin-top: 56px; }
.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.tile video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #eeedf5;
}
.tile figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: left;
  margin: 6px 2px 0;
  text-wrap: nowrap;
}

@media (max-width: 600px) {
  .hero { padding: 72px 0 32px; }
  .section { padding: 48px 0 16px; }
  .abstract { font-size: 1rem; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
