@font-face {
  font-family: "DM Sans";
  src: url("asset/type/dm-sans.woff") format("woff");
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #192e25;
  --soft: #495c51;
  --line: #c9d6ca;
  --rust: #a33b10;
  --page: #f5f7f4;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
}
* { box-sizing: border-box; }
body, h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover, button:hover { text-decoration: underline; text-underline-offset: .22em; }
a:focus-visible, button:focus-visible, video:focus-visible { outline: 3px solid #db8424; outline-offset: 4px; }
img { display: block; max-width: 100%; }
.wrap { width: min(85rem, 90%); margin-inline: auto; }
.skip { position: fixed; top: -6rem; left: 1rem; z-index: 3; padding: 1rem; background: white; }
.skip:focus { top: .5rem; }
.masthead-inner, .masthead nav, footer, footer div { display: flex; align-items: center; }
.masthead { background: var(--page); color: var(--ink); }
.masthead-inner { justify-content: space-between; min-height: 4rem; gap: 1.5rem; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-size: 1.5rem; font-weight: 700; letter-spacing: -.06em; white-space: nowrap; }
.brand img { width: 1.8rem; height: 1.8rem; object-fit: contain; }
.masthead nav { gap: clamp(1rem, 2.5vw, 2.6rem); color: var(--soft); }
.masthead nav a { padding-block: .45rem; }
.masthead nav a:hover, .org-link:hover { color: #225139; }
.masthead nav a, .org-link, footer div a { font-size: .91rem; font-weight: 550; }
.org-link { padding: .4rem .85rem; border: 1px solid #98ad9c; border-radius: 2rem; }
.hero { background: var(--page); color: var(--ink); }
.hero-inner {
  display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  align-items: center; gap: clamp(1.8rem, 4vw, 4.5rem);
  padding-block: clamp(2.4rem, 4.2vw, 4.5rem);
}
.benchmark {
  min-width: 0; padding: clamp(1rem, 1.7vw, 1.6rem);
  background: var(--page); border: 1px solid #bfcebf; border-radius: .8rem;
}
.benchmark-image img { width: 100%; height: auto; }
.kicker, .model-id, .report time, .paper-meta time, .year, .specs dt {
  font-family: var(--mono);
}
.kicker { display: flex; align-items: center; gap: .7rem; font-size: .84rem; text-transform: uppercase; letter-spacing: .11em; color: var(--rust); }
.kicker span { width: 2rem; height: 2px; background: #f97423; }
.hero h1 { display: flex; align-items: baseline; gap: .14em; margin-top: 1.1rem; font-size: clamp(3.65rem, 6.75vw, 7.1rem); font-weight: 720; letter-spacing: -.055em; line-height: 1; white-space: nowrap; }
.hero h1 span { color: #c2521f; }
.model-id { color: var(--soft); font-size: .94rem; margin-top: .75rem; }
.intro { font-size: clamp(1.02rem, 1.4vw, 1.3rem); line-height: 1.58; max-width: 32rem; margin: 1.45rem 0 1.6rem; color: #364c40; }
.hero-actions, .paper-links { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.button { padding: .82rem 1.22rem; font-size: .95rem; font-weight: 630; border: 1px solid transparent; border-radius: .4rem; }
.primary { background: #c8eaca; color: #172a22; }
.secondary { color: var(--ink); border-color: #94a899; background: transparent; }
.specs { display: flex; margin-top: clamp(2.1rem, 3.7vw, 4rem); width: fit-content; gap: 0; }
.specs div { display: flex; flex-direction: column-reverse; padding: 0 clamp(1.2rem, 2.2vw, 2.2rem); border-left: 1px solid var(--line); }
.specs div:first-child { padding-left: 0; border: 0; }
.specs dt { color: var(--soft); font-size: .8rem; margin-top: .28rem; }
.specs dd { font-weight: 500; font-size: clamp(1.45rem, 2.2vw, 2.1rem); letter-spacing: -.055em; }
.directions { background: var(--page); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.direction-grid { display: grid; grid-template-columns: .76fr 1fr 1fr 1.14fr; padding-block: 2.1rem; gap: 2rem; }
.direction-grid > h3 { font-size: clamp(1.5rem, 2vw, 2.15rem); font-weight: 610; line-height: 1.04; letter-spacing: -.055em; }
.direction-grid div { border-left: 1px solid #bdcec0; padding-left: 1.5rem; }
.direction-grid h4 { font-size: 1.07rem; font-weight: 650; margin-bottom: .4rem; }
.direction-grid p, .report p, .paper p, .archive-note { color: var(--soft); line-height: 1.6; }
.section { padding-block: clamp(3rem, 5.5vw, 6rem); }
.section-heading { display: flex; gap: 1rem; justify-content: space-between; align-items: baseline; margin-bottom: 1.8rem; }
.section-heading h2 { font-weight: 650; font-size: clamp(2.45rem, 4.6vw, 4.6rem); line-height: 1.04; letter-spacing: -.066em; }
.section-heading h2 em { margin-left: .035em; font-family: Georgia, serif; font-weight: 400; letter-spacing: -.08em; color: var(--rust); }
.text-link { color: var(--rust); font-weight: 650; font-size: .93rem; text-decoration: underline; text-underline-offset: .3em; text-decoration-color: #dcab91; }
.text-link:hover { text-decoration-color: currentColor; }
.report-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, 1.8vw, 2rem); }
.report { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: .7rem; overflow: hidden; background: white; }
.figure-link { display: block; position: relative; cursor: zoom-in; }
.report-image { width: 100%; flex: none; aspect-ratio: 1.9; border-bottom: 1px solid var(--line); }
.report-image img, .paper .figure-link img { width: 100%; height: 100%; object-fit: contain; }
.report-image img { position: absolute; inset: 0; padding: .9rem; }
.expand { position: absolute; right: .55rem; bottom: .55rem; font: 1.22rem/1 var(--mono); background: white; border: 1px solid var(--line); border-radius: .35rem; padding: .23rem; color: var(--soft); }
.expand::after { content: "+"; }
.figure-link:hover .expand { background: #e3efe1; }
.report-body { padding: 1.35rem 1.45rem 1.5rem; flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.report time, .paper-meta time { font-size: .82rem; color: var(--soft); }
.report h3 { margin: .55rem 0; font-size: 1.65rem; font-weight: 580; letter-spacing: -.05em; }
.report .text-link { margin-top: auto; padding-top: 1.2rem; }
.archive { background: var(--page); }
.archive .section-heading { margin-bottom: .65rem; }
.archive-note { font-size: .95rem; }
.years, footer div { display: flex; flex-wrap: wrap; gap: 1.45rem; }
.years a { color: var(--rust); font-family: var(--mono); font-size: .93rem; text-decoration: underline; text-underline-offset: .25em; }
.year { margin: 2.8rem 0 0; padding-bottom: .7rem; color: var(--rust); font-size: 1rem; letter-spacing: .07em; border-bottom: 1px solid #dea784; scroll-margin-top: 1rem; }
.paper { display: grid; grid-template-columns: 1.45fr 1fr; align-items: center; gap: clamp(2rem, 6vw, 7rem); padding-block: 2.2rem; border-bottom: 1px solid var(--line); }
.paper-meta { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.paper-meta span { color: #1d513e; background: #e2ece1; padding: .28rem .55rem; border-radius: .24rem; font-size: .85rem; font-weight: 650; }
.paper h4 { margin: .8rem 0; font-weight: 560; font-size: clamp(1.45rem, 2.2vw, 2.15rem); letter-spacing: -.044em; line-height: 1.15; }
.paper-links { gap: 1.3rem; margin-top: 1rem; }
.paper .figure-link, .paper video { border: 1px solid var(--line); border-radius: .45rem; background: white; width: 100%; height: auto; aspect-ratio: 1.95; }
.paper .figure-link { padding: .6rem; }
.paper video { display: block; background: #241f1d; object-fit: contain; aspect-ratio: 16 / 9; }
figcaption { font-size: .83rem; color: var(--soft); margin-top: .5rem; line-height: 1.4; }
footer { justify-content: space-between; gap: 1rem; padding-block: 2.1rem; }
dialog { border: 0; border-radius: .65rem; width: min(70rem, 94vw); max-height: 92vh; padding: 1.2rem; color: var(--ink); }
dialog::backdrop { background: rgb(8 22 25 / .8); }
.viewer-bar { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.viewer-bar p { font-weight: 600; }
.viewer-bar button { font: inherit; background: var(--page); border: 1px solid var(--line); border-radius: .35rem; padding: .5rem .9rem; cursor: pointer; }
.original { display: inline-block; margin-block: .5rem 1rem; color: var(--rust); text-decoration: underline; }
.viewer-image { margin: auto; max-height: 65vh; object-fit: contain; }
@media (max-width: 60rem) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .hero-copy { max-width: 44rem; }
  .benchmark { width: min(100%, 45rem); }
}
@media (max-width: 52rem) {
  .direction-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .report-grid { gap: .6rem; }
  .report-body { padding: 1rem; }
  .paper { gap: 1.5rem; }
}
@media (max-width: 48rem) {
  .masthead-inner { flex-wrap: wrap; padding-block: .65rem .25rem; gap: .25rem .75rem; }
  .masthead nav { order: 3; width: 100%; justify-content: space-between; flex-wrap: wrap; gap: 0 .5rem; }
  .masthead nav a { font-size: .84rem; }
}
@media (max-width: 22rem) {
  .masthead-inner { width: calc(100% - 1rem); }
  .masthead nav { gap: 0 .25rem; }
  .masthead nav a { font-size: .8rem; }
}
@media (max-width: 40rem) {
  .hero-inner { padding-block: 2rem; gap: 1.6rem; }
  .intro { max-width: 26rem; }
  .hero h1 { font-size: clamp(3.3rem, 12vw, 4.4rem); }
  .specs { margin-top: 1.6rem; }
  .specs div { padding-inline: .85rem; }
  .specs dt { font-size: .76rem; }
  .direction-grid { display: block; padding-block: 1.55rem; }
  .direction-grid div { margin-top: 1rem; padding-left: .85rem; }
  .direction-grid h4 { margin-bottom: .12rem; }
  .direction-grid p { line-height: 1.4; }
  .section-heading { flex-wrap: wrap; }
  .report-grid, .paper { grid-template-columns: 1fr; }
  .report-grid { gap: 1.3rem; }
  .report-image { aspect-ratio: 1.94; }
  .report-body { padding: 1.25rem; }
  .paper { gap: 1.1rem; }
  footer { flex-wrap: wrap; gap: 1.4rem; }
}

@media (max-width: 35rem) {
  .benchmark { padding: .95rem .75rem; }
  .benchmark-image img { aspect-ratio: 322 / 519; }
}

/* Full-height introductions share the same document scroll as the paper archive. */
.hero, .chapter {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 4rem);
  min-height: calc(100svh - 4rem);
}
.hero-inner, .report-content { margin-block: auto; }
.chapter { min-height: 100vh; min-height: 100svh; }
.chapter, .archive {
  position: relative;
  background: var(--page);
  border-top: 1px solid var(--line);
}
.chapter-end { position: relative; border-top: 1px solid var(--line); }
.chapter-end a {
  display: inline-flex; align-items: center; gap: .85rem;
  padding-block: 1rem; font-size: .9rem; font-weight: 600;
}
.chapter-end span { color: var(--rust); font-size: 1.15rem; }
.archive .directions { margin-block: 2rem; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
/* The outgoing content lingers as the next opaque section slides over it. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section-heading h2 {
      animation: heading-enter linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }
    @keyframes heading-enter {
      from { opacity: .55; translate: 0 .65rem; }
      to { opacity: 1; translate: 0 0; }
    }
  }
  @media (min-width: 60.01rem) and (min-height: 34rem) and (prefers-reduced-motion: no-preference) {
    .hero, .chapter { overflow: clip; view-timeline: --chapter block; }
    .hero-inner, .report-content {
      animation: chapter-exit linear both;
      animation-timeline: --chapter;
      animation-range: exit 0% exit 100%;
    }
    @keyframes chapter-exit {
      from { transform: translateY(0); }
      to { transform: translateY(48svh); opacity: .45; }
    }
  }
}
