:root {
  --ink: #11110f;
  --ink-soft: #1d1c19;
  --paper: #f3efe6;
  --paper-bright: #fbf8f1;
  --paper-dark: #ded8cc;
  --muted: #787268;
  --line: rgba(17, 17, 15, 0.18);
  --cream-line: rgba(243, 239, 230, 0.2);
  --red: #ff4d2d;
  --red-dark: #d83017;
  --blue: #3d5afe;
  --blue-soft: #b9c5ff;
  --lime: #c7f36b;
  --orange: #ffb259;
  --max-width: 1440px;
  --page-pad: clamp(1.25rem, 4vw, 4.5rem);
  --section-pad: clamp(5.5rem, 10vw, 10rem);
  --radius: 1.15rem;
  --display: "Bricolage Grotesque", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "Azeret Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(17, 17, 15, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 15, 0.022) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

::selection {
  color: var(--paper-bright);
  background: var(--blue);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 9999;
  padding: 0.75rem 1rem;
  color: var(--paper-bright);
  background: var(--blue);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 5.25rem;
  padding: 0.9rem var(--page-pad);
  color: var(--paper-bright);
  border-bottom: 1px solid transparent;
  transition: color 240ms ease, background-color 240ms ease, border-color 240ms ease, backdrop-filter 240ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(243, 239, 230, 0.9);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.brand-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.brand-mark i {
  position: absolute;
  width: 0.38rem;
  height: 0.38rem;
  background: var(--red);
  border-radius: 50%;
}

.brand-mark i:nth-child(1) {
  transform: translateY(-0.6rem);
}

.brand-mark i:nth-child(2) {
  transform: rotate(120deg) translateY(-0.6rem);
}

.brand-mark i:nth-child(3) {
  transform: rotate(240deg) translateY(-0.6rem);
}

.site-nav {
  display: flex;
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  align-items: center;
}

.site-nav a {
  position: relative;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.site-nav > a:not(.nav-paper)::after {
  position: absolute;
  right: 0;
  bottom: -0.35rem;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.site-nav > a:hover::after,
.site-nav > a[aria-current="true"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-paper {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  padding: 0.7rem 1rem;
  color: var(--ink);
  background: var(--lime);
  border: 1px solid var(--ink);
  border-radius: 100px;
  transition: transform 180ms ease, background-color 180ms ease;
}

.nav-paper:hover {
  background: var(--paper-bright);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  gap: 0.7rem;
  align-items: center;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.75rem;
}

.menu-lines {
  position: relative;
  display: inline-block;
  width: 1.75rem;
  height: 1rem;
}

.menu-lines i {
  position: absolute;
  right: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform 200ms ease, top 200ms ease;
}

.menu-lines i:first-child {
  top: 0.2rem;
}

.menu-lines i:last-child {
  top: 0.75rem;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(28rem, 0.98fr);
  grid-template-rows: 1fr auto;
  gap: 2rem 4rem;
  align-items: center;
  min-height: max(760px, 100svh);
  padding: 8rem var(--page-pad) 9.5rem;
  overflow: hidden;
  color: var(--paper-bright);
  background:
    radial-gradient(circle at 73% 40%, rgba(61, 90, 254, 0.19), transparent 28%),
    radial-gradient(circle at 88% 78%, rgba(255, 77, 45, 0.12), transparent 26%),
    var(--ink);
}

.hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

.hero-grain {
  position: absolute;
  inset: -50%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  animation: grain 0.4s steps(2) infinite;
}

@keyframes grain {
  0% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(3%, -2%, 0); }
  50% { transform: translate3d(-2%, 3%, 0); }
  75% { transform: translate3d(2%, 4%, 0); }
  100% { transform: translate3d(-3%, -3%, 0); }
}

.hero-copy,
.hero-visual,
.hero-metrics,
.scroll-cue {
  position: relative;
  z-index: 2;
}

.hero-copy {
  max-width: 48rem;
}

.eyebrow,
.mono-label {
  margin: 0 0 1.25rem;
  font-family: var(--mono);
  font-size: clamp(0.66rem, 0.85vw, 0.78rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  color: rgba(251, 248, 241, 0.62);
}

.eyebrow span {
  padding: 0.32rem 0.6rem;
  color: var(--ink);
  background: var(--lime);
  border-radius: 2px;
}

.hero h1 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(5rem, 10.2vw, 10.8rem);
  font-weight: 750;
  line-height: 0.72;
  letter-spacing: -0.085em;
}

.hero h1 em {
  position: relative;
  z-index: 1;
  margin-left: clamp(1rem, 4vw, 4.5rem);
  color: var(--red);
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.055em;
  transform: translateY(0.38em);
}

.hero h1 em::after {
  position: absolute;
  right: 1%;
  bottom: -0.16em;
  left: 4%;
  height: 0.06em;
  content: "";
  background: var(--red);
  transform: rotate(-2deg);
}

.hero-deck {
  max-width: 41rem;
  margin: clamp(3.5rem, 7vw, 7rem) 0 2rem;
  color: rgba(251, 248, 241, 0.74);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.hero-deck strong {
  color: var(--paper-bright);
  font-weight: 650;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  gap: 1.2rem;
  align-items: center;
  justify-content: space-between;
  min-width: 12.5rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(251, 248, 241, 0.55);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 0.72rem;
  transition: color 190ms ease, background-color 190ms ease, transform 190ms ease;
}

.button-primary {
  color: var(--ink);
  background: var(--paper-bright);
  border-color: var(--paper-bright);
}

.button-ghost {
  color: var(--paper-bright);
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary:hover {
  background: var(--lime);
  border-color: var(--lime);
}

.button-ghost:hover {
  color: var(--ink);
  background: var(--paper-bright);
}

.authors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin: 2.25rem 0 0;
  color: rgba(251, 248, 241, 0.58);
  font-size: 0.88rem;
}

.authors span {
  position: relative;
}

.authors span:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -0.9rem;
  width: 0.28rem;
  height: 0.28rem;
  content: "";
  background: var(--red);
  border-radius: 50%;
  transform: translateY(-50%);
}

.hero-visual {
  display: grid;
  place-items: center;
  min-width: 0;
}

.cycle-stage {
  position: relative;
  width: min(42vw, 36rem);
  min-width: 29rem;
  aspect-ratio: 1;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(251, 248, 241, 0.17);
  border-radius: 50%;
}

.orbit-outer {
  inset: 3%;
}

.orbit-inner {
  inset: 26%;
  border-color: rgba(199, 243, 107, 0.22);
  border-style: dashed;
  animation: spin 22s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.cycle-arrows {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  color: rgba(251, 248, 241, 0.7);
  pointer-events: none;
}

.cycle-arrows path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-dasharray: 5 8;
  marker-end: url(#arrowhead);
  animation: dash 2s linear infinite;
}

@keyframes dash {
  to { stroke-dashoffset: -26; }
}

.cycle-core {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 9.6rem;
  height: 9.6rem;
  color: var(--ink);
  background: var(--lime);
  border: 1px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(199, 243, 107, 0.18);
  transform: translate(-50%, -50%);
  animation: core-pulse 3s ease-in-out infinite;
}

@keyframes core-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(199, 243, 107, 0); }
  50% { box-shadow: 0 0 0 1.35rem rgba(199, 243, 107, 0.08); }
}

.cycle-core span,
.cycle-core small,
.cycle-node small,
.cycle-node .node-index {
  font-family: var(--mono);
  font-size: 0.59rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.cycle-core span {
  align-self: end;
}

.cycle-core strong {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 400;
  line-height: 0.7;
}

.cycle-core sub {
  font-size: 0.45em;
}

.cycle-core small {
  align-self: start;
  opacity: 0.62;
}

.cycle-node {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  width: 10.5rem;
  min-height: 5.8rem;
  padding: 0.9rem 1rem;
  color: var(--ink);
  background: var(--paper-bright);
  border: 1px solid var(--ink);
  border-radius: 0.75rem;
  box-shadow: 0.55rem 0.55rem 0 rgba(0, 0, 0, 0.25);
}

.cycle-node strong {
  margin: 0.28rem 0 0.12rem;
  font-size: 1.05rem;
  line-height: 1.1;
}

.cycle-node small {
  opacity: 0.55;
  text-transform: none;
}

.cycle-node .node-index {
  color: var(--red-dark);
}

.node-generate {
  top: 0;
  left: 50%;
  background: var(--blue-soft);
  transform: translateX(-50%) rotate(-2deg);
}

.node-distill {
  top: 56%;
  right: -1%;
  background: #ffcaa8;
  transform: rotate(2deg);
}

.node-repeat {
  top: 61%;
  left: -2%;
  background: #bff4c4;
  transform: rotate(-3deg);
}

.language-token {
  position: absolute;
  z-index: 4;
  padding: 0.33rem 0.55rem;
  color: var(--paper-bright);
  background: rgba(17, 17, 15, 0.84);
  border: 1px solid rgba(251, 248, 241, 0.35);
  border-radius: 2px;
  font-size: 0.78rem;
  box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.2);
}

.token-hin {
  top: 17%;
  left: 4%;
  animation: float-token 5s ease-in-out infinite;
}

.token-ben {
  top: 35%;
  right: 2%;
  animation: float-token 5.5s 0.7s ease-in-out infinite;
}

.token-mal {
  right: 28%;
  bottom: 1%;
  animation: float-token 4.8s 1.1s ease-in-out infinite;
}

@keyframes float-token {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.55rem); }
}

.hero-metrics {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  align-self: end;
  margin-top: clamp(1rem, 4vh, 3rem);
  border-top: 1px solid rgba(251, 248, 241, 0.2);
  border-bottom: 1px solid rgba(251, 248, 241, 0.2);
}

.hero-metrics > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: center;
  min-height: 5.25rem;
  padding: 0.9rem 1.4rem;
  border-right: 1px solid rgba(251, 248, 241, 0.2);
}

.hero-metrics > div:first-child {
  padding-left: 0;
}

.hero-metrics > div:last-child {
  border-right: 0;
}

.hero-metrics strong {
  color: var(--lime);
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 3.35rem);
  font-weight: 400;
  line-height: 1;
}

.hero-metrics span {
  max-width: 10rem;
  color: rgba(251, 248, 241, 0.56);
  font-family: var(--mono);
  font-size: 0.62rem;
  line-height: 1.35;
  text-transform: uppercase;
}

.scroll-cue {
  position: absolute;
  right: var(--page-pad);
  bottom: 1.6rem;
  display: flex;
  gap: 0.65rem;
  align-items: center;
  color: rgba(251, 248, 241, 0.5);
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
}

.scroll-cue i {
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border: 1px solid rgba(251, 248, 241, 0.35);
  border-radius: 50%;
  font-style: normal;
  animation: cue 1.7s ease-in-out infinite;
}

@keyframes cue {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(0.35rem); }
}

.section-pad {
  width: 100%;
  padding: var(--section-pad) var(--page-pad);
}

.section-pad > * {
  width: min(100%, var(--max-width));
  margin-right: auto;
  margin-left: auto;
}

.section-kicker {
  display: flex;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: clamp(3.5rem, 7vw, 6.5rem);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.section-kicker span:last-child {
  color: var(--muted);
}

.overview-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.72fr;
  gap: clamp(3rem, 9vw, 9rem);
  align-items: end;
}

.display-note {
  margin: 0 0 1rem;
  color: var(--red-dark);
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.overview h2,
.results-heading h2,
.figures-heading h2,
.citation-heading h2 {
  margin: 0;
  font-size: clamp(3.65rem, 7.7vw, 8.3rem);
  font-weight: 700;
  line-height: 0.87;
  letter-spacing: -0.075em;
}

.overview h2 em,
.results-heading h2 em,
.figures-heading h2 em,
.citation-heading h2 em {
  color: var(--blue);
  font-family: var(--serif);
  font-weight: 400;
}

.overview-copy {
  max-width: 40rem;
  padding-top: 2rem;
  border-top: 4px solid var(--ink);
}

.overview-copy p {
  margin: 0 0 1.5rem;
  color: #4f4b44;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
}

.overview-copy .lead {
  color: var(--ink);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 560;
  line-height: 1.3;
  letter-spacing: -0.035em;
}

.equation-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 1.25rem;
  align-items: center;
  margin-top: clamp(4rem, 8vw, 8rem);
  padding: 1.2rem;
  color: var(--paper-bright);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
}

.equation-strip > div {
  display: flex;
  flex-direction: column;
  min-height: 8.75rem;
  padding: 1.3rem 1.45rem;
  border: 1px solid rgba(251, 248, 241, 0.17);
  border-radius: 0.65rem;
}

.strip-label {
  margin-bottom: auto;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.equation-strip strong {
  margin-top: 1.5rem;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.2;
}

.equation-strip small {
  color: rgba(251, 248, 241, 0.52);
  font-family: var(--mono);
  font-size: 0.62rem;
}

.strip-arrow {
  color: var(--red);
  font-family: var(--serif);
  font-size: 2.25rem;
}

.contribution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.contribution-card {
  position: relative;
  min-height: 23rem;
  padding: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
}

.contribution-card::after {
  position: absolute;
  right: -5rem;
  bottom: -6rem;
  width: 15rem;
  height: 15rem;
  content: "";
  border: 1px solid rgba(17, 17, 15, 0.24);
  border-radius: 50%;
  box-shadow: 0 0 0 2.2rem rgba(17, 17, 15, 0.04), 0 0 0 4.4rem rgba(17, 17, 15, 0.025);
}

.card-red { background: #ff6b4e; }
.card-blue { background: var(--blue-soft); }
.card-lime { background: var(--lime); }

.card-number {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.64rem;
}

.contribution-card h3 {
  max-width: 12ch;
  margin: clamp(6rem, 9vw, 8.5rem) 0 1rem;
  font-size: clamp(1.75rem, 2.4vw, 2.55rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.contribution-card p {
  position: relative;
  z-index: 1;
  max-width: 32rem;
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.45;
}

.section-dark {
  color: var(--paper-bright);
  background:
    radial-gradient(circle at 5% 45%, rgba(255, 77, 45, 0.1), transparent 26%),
    radial-gradient(circle at 88% 72%, rgba(61, 90, 254, 0.11), transparent 25%),
    var(--ink);
}

.section-dark .section-kicker {
  border-color: var(--cream-line);
}

.section-dark .section-kicker span:last-child {
  color: rgba(251, 248, 241, 0.5);
}

.method-intro {
  display: grid;
  grid-template-columns: 1.2fr 0.55fr;
  gap: 4rem;
  align-items: end;
}

.method-intro h2 {
  margin: 0;
  font-size: clamp(4rem, 9vw, 9rem);
  font-weight: 720;
  line-height: 0.78;
  letter-spacing: -0.08em;
}

.method-intro h2 em {
  color: var(--lime);
  font-family: var(--serif);
  font-weight: 400;
}

.method-intro > p {
  padding: 1.25rem 0 0;
  margin: 0 0 0.2rem;
  color: rgba(251, 248, 241, 0.64);
  border-top: 3px solid var(--lime);
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  line-height: 1.35;
}

.method-steps {
  padding: 0;
  margin: clamp(5rem, 10vw, 10rem) 0 0;
  list-style: none;
}

.method-step {
  display: grid;
  grid-template-columns: 5rem minmax(17rem, 0.72fr) minmax(22rem, 1fr);
  gap: clamp(1.5rem, 4vw, 5rem);
  min-height: 25rem;
  padding: 3rem 0;
  border-top: 1px solid var(--cream-line);
}

.method-step:last-child {
  border-bottom: 1px solid var(--cream-line);
}

.step-marker {
  position: relative;
  display: flex;
  justify-content: center;
}

.step-marker span {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  color: var(--ink);
  background: var(--lime);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.step-marker i {
  position: absolute;
  top: 3rem;
  bottom: -5rem;
  left: 50%;
  width: 1px;
  background: linear-gradient(var(--lime), rgba(199, 243, 107, 0));
}

.step-copy {
  padding-top: 0.1rem;
}

.step-copy .mono-label {
  display: block;
  margin-bottom: 2.25rem;
  color: var(--red);
}

.step-copy h3 {
  max-width: 18ch;
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.step-copy p {
  max-width: 37rem;
  margin: 0;
  color: rgba(251, 248, 241, 0.6);
  font-size: 1rem;
}

.step-art {
  position: relative;
  align-self: center;
  min-height: 19rem;
  overflow: hidden;
  color: var(--ink);
  background: #ded8cc;
  border: 1px solid rgba(251, 248, 241, 0.4);
  border-radius: var(--radius);
}

.art-dataset {
  display: grid;
  gap: 0.55rem;
  align-content: center;
  padding: clamp(1rem, 3vw, 2.5rem);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), transparent),
    var(--blue-soft);
}

.art-dataset > div {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  min-height: 4.2rem;
  padding: 0.9rem 1rem;
  background: var(--paper-bright);
  border: 1px solid var(--ink);
  border-radius: 0.4rem;
  box-shadow: 0.35rem 0.35rem 0 rgba(17, 17, 15, 0.12);
}

.art-dataset > div:nth-child(2) { transform: translateX(1rem); }
.art-dataset > div:nth-child(3) { transform: translateX(-0.7rem); }

.art-dataset span {
  font-size: clamp(0.72rem, 1.2vw, 0.98rem);
  line-height: 1.25;
}

.art-dataset b {
  color: var(--red);
}

.art-distill {
  display: grid;
  grid-template-columns: 1fr 0.72fr 1fr;
  gap: 1rem;
  place-items: center;
  padding: 2rem;
  background: #f0e6d4;
}

.model-block {
  display: grid;
  place-items: center;
  width: min(100%, 9.5rem);
  aspect-ratio: 0.86;
  border: 1px solid var(--ink);
  border-radius: 0.8rem;
  box-shadow: 0.5rem 0.5rem 0 rgba(17, 17, 15, 0.14);
}

.model-block span {
  align-self: end;
  font-family: var(--mono);
  font-size: 0.6rem;
  text-transform: uppercase;
}

.model-block strong {
  align-self: start;
  font-family: var(--serif);
  font-size: clamp(3rem, 5vw, 5.5rem);
  font-weight: 400;
  line-height: 1;
}

.model-block.teacher { background: var(--blue-soft); }
.model-block.student { background: #ffc9a5; }

.transfer-lines {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
  width: 100%;
}

.transfer-lines i {
  position: relative;
  width: 100%;
  height: 1px;
  background: var(--ink);
}

.transfer-lines i::after {
  position: absolute;
  top: -0.22rem;
  right: 0;
  width: 0.45rem;
  height: 0.45rem;
  content: "";
  border-top: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
  transform: rotate(45deg);
}

.transfer-lines span {
  font-family: var(--mono);
  font-size: 0.55rem;
}

.art-repeat {
  display: grid;
  place-items: center;
  background: #161614;
}

.repeat-ring {
  position: absolute;
  border: 1px solid rgba(199, 243, 107, 0.7);
  border-radius: 50%;
}

.ring-one {
  width: 9rem;
  height: 9rem;
  border-style: dashed;
  animation: spin 10s linear infinite;
}

.ring-two {
  width: 15rem;
  height: 15rem;
  border-color: rgba(185, 197, 255, 0.35);
  animation: spin 16s reverse linear infinite;
}

.art-repeat span {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 6rem;
  height: 6rem;
  color: var(--ink);
  background: var(--lime);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 2rem;
}

.art-repeat b {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  color: var(--red);
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 400;
}

.soft-distill {
  display: grid;
  grid-template-columns: minmax(20rem, 0.75fr) minmax(35rem, 1.25fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
  margin-top: clamp(6rem, 12vw, 12rem);
  padding: clamp(2rem, 5vw, 5.5rem);
  color: var(--ink);
  background: var(--lime);
  border-radius: var(--radius);
}

.soft-copy .mono-label {
  color: var(--red-dark);
}

.soft-copy h3 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.4rem, 4.7vw, 5rem);
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.soft-copy h3 em {
  font-family: var(--serif);
  font-weight: 400;
}

.soft-copy p {
  max-width: 34rem;
  margin: 0;
  font-size: 1rem;
}

.token-visual {
  display: grid;
  grid-template-columns: 1fr 0.5fr 1fr;
  gap: 1.3rem;
  align-items: center;
}

.prob-panel {
  padding: 1.25rem;
  background: var(--paper-bright);
  border: 1px solid var(--ink);
  border-radius: 0.75rem;
  box-shadow: 0.55rem 0.55rem 0 rgba(17, 17, 15, 0.15);
}

.prob-panel > span {
  display: block;
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.prob-panel > div {
  display: grid;
  grid-template-columns: 3.4rem 1fr 2rem;
  gap: 0.45rem;
  align-items: center;
  margin: 0.7rem 0;
}

.prob-panel b {
  font-size: 0.75rem;
}

.prob-panel i {
  width: var(--prob);
  height: 0.68rem;
  background: var(--blue-soft);
  border: 1px solid var(--ink);
}

.student-prob i { background: #ffbd8d; }

.prob-panel small {
  font-family: var(--mono);
  font-size: 0.57rem;
}

.loss-bridge {
  display: grid;
  grid-template-rows: auto 2rem auto;
  place-items: center;
  font-family: var(--mono);
  text-align: center;
}

.loss-bridge > span {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  color: var(--paper-bright);
  background: var(--blue);
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.loss-bridge i {
  width: 1px;
  height: 100%;
  background: var(--ink);
}

.loss-bridge small {
  font-size: 0.52rem;
  line-height: 1.3;
}

.results-heading,
.figures-heading {
  display: grid;
  grid-template-columns: 1fr 0.48fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
}

.results-heading h2,
.figures-heading h2 {
  max-width: 13ch;
}

.results-heading p,
.figures-heading p {
  padding-top: 1.25rem;
  margin: 0;
  color: #575149;
  border-top: 3px solid var(--ink);
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  line-height: 1.4;
}

.results-explorer {
  margin-top: clamp(4rem, 8vw, 8rem);
  overflow: hidden;
  color: var(--paper-bright);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
}

.explorer-topbar {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--cream-line);
}

.model-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.model-tabs button {
  padding: 0.65rem 0.85rem;
  color: rgba(251, 248, 241, 0.62);
  background: transparent;
  border: 1px solid rgba(251, 248, 241, 0.25);
  border-radius: 100px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.63rem;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.model-tabs button[aria-selected="true"] {
  color: var(--ink);
  background: var(--lime);
  border-color: var(--lime);
}

.explorer-topbar > p {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin: 0;
  color: rgba(251, 248, 241, 0.58);
  font-family: var(--mono);
  font-size: 0.57rem;
  text-transform: uppercase;
}

.legend-dot {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  margin-left: 0.55rem;
  border: 1px solid rgba(251, 248, 241, 0.4);
}

.legend-dot:first-child { margin-left: 0; }
.dot-base { background: var(--blue-soft); }
.dot-cycle { background: var(--red); }

.chart-shell {
  display: grid;
  grid-template-columns: 2.3rem minmax(30rem, 1fr) minmax(14rem, 0.3fr);
  gap: 1.5rem;
  min-height: 34rem;
  padding: 2.5rem 2rem 1.5rem;
}

.chart-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 25rem;
  color: rgba(251, 248, 241, 0.4);
  font-family: var(--mono);
  font-size: 0.55rem;
  text-align: right;
}

.chart-plot {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 3.5rem);
  height: 29rem;
  padding: 0 1.5rem;
  border-bottom: 1px solid rgba(251, 248, 241, 0.34);
}

.chart-grid {
  position: absolute;
  inset: 0 0 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.chart-grid i {
  width: 100%;
  height: 1px;
  background: rgba(251, 248, 241, 0.1);
}

.bar-group {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 1fr auto auto;
  min-width: 0;
  text-align: center;
}

.bar-pair {
  display: flex;
  gap: clamp(0.4rem, 1vw, 0.9rem);
  align-items: end;
  justify-content: center;
  min-height: 0;
}

.result-bar {
  position: relative;
  width: min(4rem, 40%);
  height: var(--height);
  min-height: 1px;
  border: 1px solid rgba(251, 248, 241, 0.65);
  transition: height 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.base-bar { background: var(--blue-soft); }
.cycle-bar { background: var(--red); }

.result-bar span {
  position: absolute;
  top: -1.75rem;
  left: 50%;
  font-family: var(--mono);
  font-size: 0.62rem;
  transform: translateX(-50%);
}

.bar-group > strong {
  margin-top: 0.9rem;
  font-family: var(--mono);
  font-size: 0.65rem;
}

.bar-group > small {
  color: rgba(251, 248, 241, 0.48);
  font-size: 0.65rem;
}

.chart-callout {
  align-self: center;
  padding: 1.4rem;
  color: var(--ink);
  background: var(--lime);
  border-radius: 0.7rem;
  box-shadow: 0.55rem 0.55rem 0 rgba(61, 90, 254, 0.5);
  transform: rotate(1.5deg);
}

.chart-callout > span,
.chart-callout > small {
  display: block;
  font-family: var(--mono);
  font-size: 0.6rem;
  text-transform: uppercase;
}

.chart-callout > strong {
  display: block;
  margin: 0.65rem 0 0.15rem;
  font-family: var(--serif);
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.05em;
}

.chart-callout p {
  padding-top: 1rem;
  margin: 1rem 0 0;
  border-top: 1px solid rgba(17, 17, 15, 0.25);
  font-size: 0.72rem;
  line-height: 1.4;
}

.chart-note {
  margin: 0;
  padding: 0.8rem 2rem 1.2rem;
  color: rgba(251, 248, 241, 0.38);
  font-family: var(--mono);
  font-size: 0.56rem;
  text-align: center;
  text-transform: uppercase;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.insight {
  position: relative;
  min-height: 22rem;
  padding: 1.5rem;
  overflow: hidden;
  background: var(--paper-bright);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
}

.insight-wide {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: auto 1fr auto;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  min-height: 18rem;
  background: var(--blue-soft);
}

.insight-index {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.65rem;
}

.insight h3 {
  max-width: 20ch;
  margin: clamp(5rem, 9vw, 8rem) 0 1rem;
  font-size: clamp(2rem, 3.2vw, 3.3rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.insight p {
  max-width: 38rem;
  margin: 0;
}

.insight-wide h3 {
  margin: 0 0 0.7rem;
}

.insight-stat {
  font-family: var(--serif);
  font-size: clamp(4rem, 9vw, 9rem);
  font-weight: 400;
  line-height: 1;
}

.insight-dark {
  color: var(--paper-bright);
  background: var(--ink);
}

.insight-dark p { color: rgba(251, 248, 241, 0.58); }
.insight-accent { background: #ff7a5e; }

.mini-meter {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mini-meter i {
  width: var(--meter);
  height: 0.6rem;
  background: var(--blue);
  border: 1px solid var(--ink);
}

.mini-meter i:last-child { background: var(--red); }

.cycle-ticks {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  left: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.cycle-ticks span {
  padding: 0.5rem;
  border-top: 4px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.62rem;
}

.cycle-ticks span:nth-child(2) { border-color: var(--blue); }
.cycle-ticks span:nth-child(3) { border-style: dotted; opacity: 0.45; }

.section-paper {
  background: var(--paper-bright);
}

.figures-heading h2 em {
  color: var(--red);
}

.figure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(4rem, 8vw, 8rem);
}

.paper-figure {
  margin: 0;
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
}

.figure-wide {
  grid-column: 1 / -1;
}

.figure-frame {
  display: grid;
  place-items: center;
  min-height: 26rem;
  padding: clamp(1rem, 3vw, 2.5rem);
  overflow: hidden;
  background:
    linear-gradient(rgba(17, 17, 15, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 15, 0.035) 1px, transparent 1px),
    #fff;
  background-size: 20px 20px;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
}

.figure-wide .figure-frame { min-height: 32rem; }

.figure-frame img {
  width: 100%;
  max-height: 29rem;
  object-fit: contain;
  filter: saturate(0.9) contrast(1.04);
  transition: transform 380ms ease;
}

.paper-figure:hover img {
  transform: scale(1.025);
}

.paper-figure figcaption {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem 0.2rem 0.2rem;
  color: #4d4942;
  font-size: 0.85rem;
}

.paper-figure figcaption span {
  flex: 0 0 auto;
  color: var(--red-dark);
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.figure-credit {
  margin-top: 1.3rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.58rem;
  text-align: right;
}

.citation {
  color: var(--paper-bright);
  background: var(--blue);
}

.citation-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.citation .section-kicker {
  margin-bottom: 4rem;
  border-color: rgba(251, 248, 241, 0.28);
}

.citation .section-kicker span:last-child {
  color: rgba(251, 248, 241, 0.56);
}

.citation-heading h2 {
  font-size: clamp(4rem, 7vw, 7rem);
}

.citation-heading h2 em {
  color: var(--lime);
}

.citation-links {
  display: flex;
  flex-direction: column;
  margin-top: 4rem;
  border-top: 1px solid rgba(251, 248, 241, 0.3);
}

.citation-links a {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(251, 248, 241, 0.3);
  font-family: var(--mono);
  font-size: 0.7rem;
  transition: padding 180ms ease, color 180ms ease;
}

.citation-links a:hover {
  padding-right: 0.7rem;
  padding-left: 0.7rem;
  color: var(--lime);
}

.bibtex-card {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper-bright);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0.75rem 0.75rem 0 var(--lime);
}

.bibtex-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  color: var(--paper-bright);
  background: var(--ink);
  border-bottom: 1px solid var(--ink);
}

.bibtex-topbar span {
  font-family: var(--mono);
  font-size: 0.65rem;
}

.bibtex-topbar button {
  padding: 0.55rem 0.75rem;
  color: var(--ink);
  background: var(--lime);
  border: 1px solid var(--lime);
  border-radius: 2px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.6rem;
  transition: background-color 180ms ease;
}

.bibtex-topbar button:hover {
  background: var(--paper-bright);
}

.bibtex-card pre {
  padding: clamp(1.25rem, 3vw, 2.5rem);
  margin: 0;
  overflow-x: auto;
  white-space: pre-wrap;
}

.bibtex-card code {
  font-family: var(--mono);
  font-size: clamp(0.62rem, 0.9vw, 0.78rem);
  line-height: 1.75;
}

.copy-status {
  position: absolute;
  right: 1rem;
  bottom: 0.65rem;
  margin: 0;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.58rem;
}

.site-footer {
  padding: clamp(3rem, 6vw, 5.5rem) var(--page-pad) 2rem;
  color: var(--paper-bright);
  background: var(--ink);
}

.footer-top,
.footer-bottom {
  width: min(100%, var(--max-width));
  margin-right: auto;
  margin-left: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 0.65fr 1fr auto;
  gap: 2rem;
  align-items: start;
  padding-bottom: clamp(4rem, 8vw, 8rem);
}

.footer-top > p {
  max-width: 35rem;
  margin: 0;
  color: rgba(251, 248, 241, 0.58);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.footer-up {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.65rem;
}

.footer-up span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  color: var(--ink);
  background: var(--lime);
  border-radius: 50%;
  transition: transform 180ms ease;
}

.footer-up:hover span { transform: translateY(-0.3rem); }

.footer-bottom {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  color: rgba(251, 248, 241, 0.38);
  border-top: 1px solid var(--cream-line);
  font-family: var(--mono);
  font-size: 0.55rem;
  text-transform: uppercase;
}

.footer-bottom p { margin: 0; }

.js .reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .site-nav {
    gap: 1.1rem;
  }

  .site-nav a {
    font-size: 0.65rem;
  }

  .hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(25rem, 0.8fr);
    gap: 2rem;
  }

  .cycle-stage {
    width: min(43vw, 31rem);
    min-width: 25rem;
  }

  .cycle-node {
    width: 9.2rem;
  }

  .cycle-core {
    width: 8.3rem;
    height: 8.3rem;
  }

  .hero-metrics > div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .method-step {
    grid-template-columns: 4rem minmax(15rem, 0.7fr) minmax(19rem, 1fr);
    gap: 2rem;
  }

  .soft-distill {
    grid-template-columns: 1fr;
  }

  .token-visual {
    max-width: 50rem;
  }

  .chart-shell {
    grid-template-columns: 2rem 1fr;
  }

  .chart-callout {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: auto auto auto 1fr;
    gap: 1rem;
    align-items: baseline;
    transform: none;
  }

  .chart-callout > strong {
    font-size: 4rem;
  }

  .chart-callout p {
    padding: 0 0 0 1rem;
    margin: 0;
    border-top: 0;
    border-left: 1px solid rgba(17, 17, 15, 0.25);
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 4.75rem;
  }

  .site-header {
    min-height: 4.75rem;
  }

  .menu-toggle {
    display: flex;
    z-index: 2;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    justify-content: center;
    padding: 6rem var(--page-pad) 2rem;
    color: var(--paper-bright);
    visibility: hidden;
    background: var(--ink);
    opacity: 0;
    transform: translateY(-1rem);
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms;
  }

  .nav-open .site-nav {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-open .site-header {
    color: var(--paper-bright);
  }

  .nav-open .menu-lines i:first-child {
    top: 0.5rem;
    transform: rotate(45deg);
  }

  .nav-open .menu-lines i:last-child {
    top: 0.5rem;
    transform: rotate(-45deg);
  }

  .site-nav > a {
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(251, 248, 241, 0.18);
    font-family: var(--display);
    font-size: clamp(1.9rem, 7vw, 3.5rem);
    font-weight: 650;
    letter-spacing: -0.055em;
  }

  .site-nav > a::after {
    display: none;
  }

  .site-nav .nav-paper {
    align-self: flex-start;
    margin-top: 1.2rem;
    padding: 0.8rem 1.2rem;
    color: var(--ink);
    border-bottom: 1px solid var(--ink);
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 3rem;
    width: 100%;
    min-height: auto;
    padding-top: 8rem;
  }

  .hero-copy {
    width: 100%;
    min-width: 0;
    max-width: 52rem;
  }

  .hero h1 {
    font-size: clamp(5.5rem, 18vw, 9rem);
  }

  .hero-visual {
    width: 100%;
    min-width: 0;
    min-height: 32rem;
    overflow: hidden;
  }

  .cycle-stage {
    width: min(100%, 34rem);
    min-width: 28rem;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 0;
  }

  .hero-metrics > div:nth-child(2) {
    border-right: 0;
  }

  .hero-metrics > div:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(251, 248, 241, 0.2);
  }

  .hero-metrics > div:first-child,
  .hero-metrics > div:nth-child(3) {
    padding-left: 0;
  }

  .overview-grid,
  .method-intro,
  .results-heading,
  .figures-heading,
  .citation-layout {
    grid-template-columns: 1fr;
  }

  .overview-copy {
    max-width: 47rem;
  }

  .contribution-grid {
    grid-template-columns: 1fr;
  }

  .contribution-card {
    min-height: 18rem;
  }

  .contribution-card h3 {
    margin-top: 4rem;
  }

  .method-intro > p,
  .results-heading p,
  .figures-heading p {
    max-width: 40rem;
  }

  .method-step {
    grid-template-columns: 4rem 1fr;
  }

  .step-art {
    grid-column: 2;
    width: 100%;
  }

  .citation-heading h2 {
    max-width: 9ch;
  }

  .citation-links {
    max-width: 32rem;
  }

  .footer-top {
    grid-template-columns: 1fr auto;
  }

  .footer-top > p {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 680px) {
  :root {
    --page-pad: 1rem;
  }

  .brand {
    font-size: 0.95rem;
  }

  .hero {
    padding-right: 1rem;
    padding-bottom: 8rem;
    padding-left: 1rem;
  }

  .hero h1 {
    display: block;
    font-size: clamp(4.7rem, 23vw, 7rem);
    line-height: 0.68;
  }

  .hero h1 em {
    display: block;
    margin: 0.42em 0 0 0.15em;
    transform: none;
  }

  .hero-deck {
    margin-top: 4rem;
  }

  .button {
    width: 100%;
  }

  .authors span {
    width: 100%;
  }

  .authors span::after {
    display: none;
  }

  .hero-visual {
    min-height: 25rem;
  }

  .cycle-stage {
    width: 25rem;
    min-width: 25rem;
    transform: scale(0.88);
  }

  .cycle-node {
    width: 8.5rem;
    min-height: 5.2rem;
    padding: 0.7rem;
  }

  .cycle-core {
    width: 7.2rem;
    height: 7.2rem;
  }

  .cycle-core strong {
    font-size: 2.5rem;
  }

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

  .hero-metrics > div {
    min-height: 7rem;
    padding: 0.8rem;
  }

  .hero-metrics > div:nth-child(odd) {
    padding-left: 0;
  }

  .scroll-cue {
    right: 1rem;
  }

  .section-kicker {
    align-items: end;
  }

  .section-kicker span:last-child {
    max-width: 9rem;
    text-align: right;
  }

  .overview h2,
  .results-heading h2,
  .figures-heading h2,
  .citation-heading h2 {
    font-size: clamp(3.4rem, 17vw, 5.5rem);
  }

  .equation-strip {
    grid-template-columns: 1fr;
  }

  .equation-strip > div {
    min-height: 7.5rem;
  }

  .strip-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }

  .method-intro h2 {
    font-size: clamp(4rem, 20vw, 6rem);
  }

  .method-step {
    grid-template-columns: 2.75rem 1fr;
    gap: 1rem;
    padding: 2.5rem 0;
  }

  .step-marker span {
    width: 2.5rem;
    height: 2.5rem;
  }

  .step-marker i {
    top: 2.5rem;
  }

  .step-copy .mono-label {
    margin-bottom: 1.4rem;
  }

  .step-copy h3 {
    font-size: 2.25rem;
  }

  .step-art {
    grid-column: 1 / -1;
    min-height: 16rem;
  }

  .art-dataset {
    padding: 1rem;
  }

  .art-dataset > div {
    gap: 0.45rem;
    padding: 0.7rem;
  }

  .art-dataset > div:nth-child(2),
  .art-dataset > div:nth-child(3) {
    transform: none;
  }

  .art-distill {
    gap: 0.5rem;
    padding: 1rem;
  }

  .soft-distill {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }

  .token-visual {
    grid-template-columns: 1fr;
  }

  .loss-bridge {
    grid-template-rows: auto;
    grid-template-columns: 1fr auto 1fr;
  }

  .loss-bridge i {
    width: 100%;
    height: 1px;
  }

  .explorer-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .model-tabs {
    width: 100%;
  }

  .model-tabs button {
    flex: 1 1 auto;
  }

  .chart-shell {
    grid-template-columns: 1.5rem minmax(0, 1fr);
    gap: 0.5rem;
    padding: 2.5rem 0.8rem 1rem;
  }

  .chart-plot {
    gap: 0.4rem;
    height: 25rem;
    padding: 0 0.35rem;
  }

  .bar-pair {
    gap: 0.25rem;
  }

  .result-bar {
    width: min(2.4rem, 43%);
  }

  .chart-callout {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .chart-callout > strong {
    grid-row: 1 / 3;
    grid-column: 2;
    align-self: center;
  }

  .chart-callout p {
    grid-column: 1 / -1;
    padding: 0.8rem 0 0;
    border-top: 1px solid rgba(17, 17, 15, 0.25);
    border-left: 0;
  }

  .insight-grid {
    grid-template-columns: 1fr;
  }

  .insight-wide {
    grid-column: auto;
    grid-template-columns: auto 1fr;
  }

  .insight-wide .insight-stat {
    grid-column: 1 / -1;
    font-size: 6rem;
  }

  .figure-grid {
    grid-template-columns: 1fr;
  }

  .figure-wide {
    grid-column: auto;
  }

  .figure-frame,
  .figure-wide .figure-frame {
    min-height: 18rem;
    padding: 1rem;
  }

  .paper-figure figcaption {
    flex-direction: column;
    gap: 0.35rem;
  }

  .figure-credit {
    text-align: left;
  }

  .bibtex-card {
    box-shadow: 0.4rem 0.4rem 0 var(--lime);
  }

  .bibtex-card pre {
    white-space: pre;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-up {
    grid-row: 3;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 430px) {
  .cycle-stage {
    width: 23.5rem;
    min-width: 23.5rem;
    transform: scale(0.8);
  }

  .hero-visual {
    min-height: 22rem;
  }

  .language-token {
    font-size: 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .scroll-cue,
  .menu-toggle,
  .hero-visual,
  .hero-grain,
  .citation-links,
  .site-footer {
    display: none !important;
  }

  .hero,
  .section-dark,
  .citation {
    color: #000;
    background: #fff;
  }

  .hero {
    display: block;
    min-height: auto;
    padding: 2rem;
  }

  .section-pad {
    padding: 2rem;
  }
}
