:root {
  color-scheme: light;
  --ink: #1e2528;
  --muted: #5c686d;
  --line: #dce5e4;
  --panel: #f7faf9;
  --paper: #ffffff;
  --accent: #12766f;
  --accent-strong: #0b5f59;
  --accent-soft: #e4f3f0;
  --gold: #b88a2b;
  --blue: #2f6fb0;
  --shadow: 0 16px 48px rgba(31, 48, 45, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(228, 243, 240, 0.72), rgba(255, 255, 255, 0) 30rem),
    linear-gradient(90deg, rgba(184, 138, 43, 0.08), rgba(255, 255, 255, 0) 38rem),
    var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(220, 229, 228, 0.82);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1180px, calc(100% - 40px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
}

.nav-links {
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
}

.nav-links a:hover {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 76px 0;
}

.narrow {
  width: min(820px, calc(100% - 40px));
}

.hero {
  min-height: calc(92svh - 68px);
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(420px, 1.02fr);
  align-items: center;
  gap: 64px;
  padding-top: 58px;
  padding-bottom: 48px;
}

.venue,
.eyebrow {
  width: fit-content;
  margin: 0 0 14px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid rgba(18, 118, 111, 0.16);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.venue {
  color: #7a5a13;
  background: #fbf2dd;
  border-color: #ead19b;
}

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

h1 {
  max-width: 9.5ch;
  margin-bottom: 16px;
  font-size: clamp(3.5rem, 9vw, 7.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

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

h3 {
  margin-bottom: 8px;
  font-size: 1.12rem;
}

.subtitle {
  max-width: 720px;
  margin-bottom: 16px;
  color: #314145;
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  line-height: 1.16;
}

.thesis {
  max-width: 680px;
  margin-bottom: 24px;
  color: #425358;
  font-size: 1.08rem;
  line-height: 1.55;
}

.authors,
.affiliation {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 1rem;
}

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

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid #15191b;
  border-radius: 999px;
  padding: 9px 18px;
  background: #15191b;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(21, 25, 27, 0.18);
}

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

.button.primary {
  border-color: #15191b;
  background: #15191b;
  color: white;
}

.button-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: currentColor;
}

.hf-mark {
  font-size: 1.05rem;
  line-height: 1;
}

.hero-visual,
.wide-figure,
.split-figures figure {
  margin: 0;
}

.hero-visual {
  background: var(--paper);
  border: 1px solid rgba(18, 118, 111, 0.16);
  border-radius: 8px;
  box-shadow: 0 22px 64px rgba(31, 48, 45, 0.15);
  overflow: hidden;
}

.hero-visual img {
  width: 100%;
  padding: clamp(22px, 5vw, 54px);
  background: linear-gradient(180deg, #ffffff, #f4faf8);
}

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

.section-heading {
  max-width: 820px;
  margin-bottom: 30px;
}

.section-heading p:not(.eyebrow),
.narrow p {
  color: var(--muted);
  font-size: 1.06rem;
}

.wide-figure,
.split-figures figure,
.feature-grid article,
.resource-list a,
pre {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(31, 48, 45, 0.07);
}

.wide-figure img {
  display: block;
  width: 100%;
}

.figure-reveal {
  position: relative;
  overflow: hidden;
  background: #fbfdfd;
}

.figure-reveal img {
  animation: figure-reveal 1.05s cubic-bezier(0.2, 0.72, 0.24, 1) both;
  transform-origin: left center;
}

.reveal-soft img {
  animation-duration: 0.82s;
}

.reveal-delay img,
.reveal-delay::after {
  animation-delay: 0.16s;
}

.figure-reveal::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 28%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  transform: translateX(-120%);
  animation: figure-sheen 1.25s 0.12s ease-out both;
  pointer-events: none;
}

@keyframes figure-reveal {
  from {
    clip-path: inset(0 100% 0 0);
    opacity: 0.92;
  }

  to {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

@keyframes figure-sheen {
  from {
    transform: translateX(-120%);
  }

  to {
    transform: translateX(430%);
  }
}

.claim-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 34px;
  padding-bottom: 34px;
}

.claim-strip article {
  position: relative;
  min-height: 154px;
  padding: 24px 24px 24px 28px;
  background: var(--paper);
  border: 1px solid rgba(18, 118, 111, 0.18);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(31, 48, 45, 0.08);
}

.claim-strip article::before {
  content: "";
  position: absolute;
  inset: 18px auto 18px 0;
  width: 4px;
  background: var(--accent);
  border-radius: 0 999px 999px 0;
}

.claim-strip small {
  display: block;
  margin-bottom: 16px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
}

.claim-strip span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-strong);
  font-size: 0.92rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.claim-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.evidence-lead {
  padding-top: 84px;
}

.evidence-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 18px;
  align-items: stretch;
}

.lead-metrics {
  display: grid;
  gap: 14px;
}

.lead-metrics article {
  position: relative;
  min-height: 0;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(31, 48, 45, 0.06);
}

.lead-metrics article:first-child {
  background: #f2faf7;
  border-color: rgba(18, 118, 111, 0.22);
}

.lead-metrics article:nth-child(2) span {
  color: var(--gold);
}

.lead-metrics article:nth-child(3) span {
  color: var(--blue);
}

.lead-metrics small {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead-metrics span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-strong);
  font-size: clamp(2.05rem, 4vw, 3.4rem);
  font-weight: 900;
  line-height: 0.96;
}

.lead-metrics p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.feature-grid article {
  padding: 22px;
}

.feature-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.split-figures {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  align-items: stretch;
}

.data-efficiency {
  margin-top: 58px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
}

.data-efficiency .section-heading {
  margin-bottom: 22px;
}

.data-figures {
  grid-template-columns: 1fr 1fr;
}

.data-figures .figure-reveal {
  background: #ffffff;
}

.data-figures .figure-reveal img {
  height: auto;
  min-height: 0;
  object-fit: initial;
}

.split-figures figure {
  display: flex;
  flex-direction: column;
}

.split-figures img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: contain;
  background: #fbfdfd;
}

.gallery .split-figures {
  grid-template-columns: 1fr 1fr;
  margin-top: 18px;
}

.resource-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.resource-list a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-color: #15191b;
  border-radius: 999px;
  padding: 9px 18px;
  background: #15191b;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(21, 25, 27, 0.16);
}

.resource-list a:hover {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
}

.resource-list strong,
.resource-list span {
  display: block;
}

.resource-list span {
  color: rgba(255, 255, 255, 0.74);
  overflow-wrap: anywhere;
}

.resource-list strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
}

.resource-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: currentColor;
}

.resource-hf {
  color: inherit;
  font-size: 1.05rem;
  line-height: 1;
}

.model-selector {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.model-selector-header {
  margin-bottom: 16px;
}

.model-selector-header h3 {
  margin-bottom: 6px;
  font-size: 1.5rem;
}

.model-selector-header p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.model-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.model-tab {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--paper);
  color: var(--muted);
  font: inherit;
  font-size: 0.94rem;
  font-weight: 800;
  cursor: pointer;
}

.model-tab:hover,
.model-tab.is-active {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  color: #ffffff;
}

.checkpoint-list {
  display: grid;
  gap: 10px;
}

.checkpoint-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(31, 48, 45, 0.05);
}

.checkpoint-link:hover {
  border-color: rgba(18, 118, 111, 0.32);
  background: #f8fcfb;
}

.checkpoint-link strong,
.checkpoint-link small {
  display: block;
}

.checkpoint-link small,
.checkpoint-host {
  color: var(--muted);
  font-size: 0.9rem;
}

.checkpoint-meta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.checkpoint-accuracy {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.95rem;
  font-weight: 850;
  white-space: nowrap;
}

.checkpoint-accuracy small {
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 800;
  opacity: 0.82;
}

.checkpoint-host {
  font-weight: 750;
  white-space: nowrap;
}

pre {
  padding: 20px;
  overflow-x: auto;
  color: #243335;
  background: #f5f8f7;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
}

.footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 42px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer p {
  margin: 0;
}

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

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .claim-strip,
  .evidence-layout {
    grid-template-columns: 1fr;
  }

  .claim-strip article,
  .claim-strip article:first-child,
  .claim-strip article:last-child {
    min-height: 0;
    padding: 22px;
  }

  .feature-grid,
  .split-figures,
  .gallery .split-figures {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .nav {
    width: min(100% - 28px, 1180px);
    min-height: 62px;
  }

  .nav-links {
    display: none;
  }

  .section,
  .narrow,
  .footer {
    width: min(100% - 28px, 1180px);
  }

  .section {
    padding: 52px 0;
  }

  .hero {
    padding-top: 36px;
  }

  .claim-strip {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .evidence-lead {
    padding-top: 52px;
  }

  h1 {
    font-size: clamp(3.1rem, 18vw, 4.8rem);
  }

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

  .button {
    width: 100%;
  }

  .feature-grid,
  .split-figures,
  .gallery .split-figures,
  .resource-list {
    grid-template-columns: 1fr;
  }

  .checkpoint-link {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .checkpoint-meta {
    width: 100%;
    justify-content: space-between;
  }

  .split-figures img {
    min-height: 0;
  }

  .footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .figure-reveal img,
  .figure-reveal::after {
    animation: none;
  }
}
