:root {
  --paper: #f2efe7;
  --paper-bright: #faf8f2;
  --ink: #17201d;
  --muted: #65706b;
  --line: #c8cdc7;
  --accent: #315f50;
  --accent-dark: #20483b;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --shell: min(1120px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(23, 32, 29, 0.035) 0.7px, transparent 0.7px);
  background-size: 8px 8px;
  content: "";
  pointer-events: none;
}

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

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--accent-dark);
  text-decoration-color: currentColor;
}

a:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  transform: translateY(-160%);
  background: var(--ink);
  color: white;
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(23, 32, 29, 0.16);
  background: rgba(242, 239, 231, 0.94);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-name {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: clamp(16px, 3vw, 36px);
  font-size: 0.86rem;
}

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

.eyebrow,
.mini-label,
.project__meta,
.publication__venue {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero {
  display: grid;
  min-height: min(700px, calc(100vh - 68px));
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.38fr);
  align-items: center;
  gap: clamp(56px, 10vw, 130px);
  padding-block: 100px 120px;
}

.hero h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(4rem, 10vw, 8.75rem);
  letter-spacing: -0.065em;
}

.hero__headline {
  max-width: 700px;
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  line-height: 1.3;
}

.hero__summary {
  max-width: 580px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 1.05rem;
}

.text-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
}

.text-links a {
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.hero__aside {
  padding: 28px 0 4px 30px;
  border-left: 1px solid var(--line);
}

.hero__aside ul {
  display: grid;
  gap: 14px;
  margin: 20px 0 40px;
  padding: 0;
  list-style: none;
}

.hero__aside li {
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.35;
}

.hero__aside a {
  text-decoration: none;
}

.hero__location {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.section {
  padding-block: 105px;
}

.section--ruled {
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(250px, 0.75fr) minmax(300px, 1fr);
  column-gap: clamp(50px, 9vw, 130px);
  margin-bottom: 72px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
}

.section-heading > p:last-child {
  align-self: end;
  max-width: 560px;
  margin-bottom: 0.6em;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading--compact {
  grid-template-columns: 1fr;
}

.project-list {
  border-top: 1px solid var(--ink);
}

.project {
  display: grid;
  grid-template-columns: 52px minmax(300px, 0.95fr) minmax(280px, 1.05fr);
  gap: clamp(24px, 4vw, 58px);
  padding-block: 48px;
  border-bottom: 1px solid var(--line);
}

.project__number {
  padding-top: 5px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 0.85rem;
}

.project__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 16px;
  margin-bottom: 20px;
}

.project__status {
  color: var(--muted);
}

.project__title {
  margin-bottom: 14px;
  font-size: clamp(1.7rem, 3vw, 2.65rem);
}

.project__title a {
  text-decoration: none;
}

.project__subtitle {
  margin-bottom: 24px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.4;
}

.project__summary {
  display: grid;
  gap: 7px;
  margin: 0 0 25px;
  padding-left: 1.1em;
  color: var(--muted);
  font-size: 0.94rem;
}

.project__media {
  display: grid;
  min-height: 260px;
  overflow: hidden;
  align-self: start;
  background: transparent;
}

.project__media--split {
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--paper);
}

.project__media--placeholder {
  place-items: center;
  padding: 32px;
  border: 1px dashed var(--line);
  background: var(--paper-bright);
  color: var(--muted);
  text-align: center;
}

.project__media a {
  display: contents;
}

.project__media.project__media--video {
  min-height: 0;
  align-self: center;
  aspect-ratio: 16 / 9;
}

.project__media .project-video {
  position: relative;
  display: block;
  height: 100%;
}

.project__media.project__media--video img,
.project__media.project__media--video iframe {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  border: 0;
}

.project__media.project__media--video img {
  object-fit: cover;
}

.project-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 68px;
  height: 48px;
  transform: translate(-50%, -50%);
  place-items: center;
  border-radius: 14px;
  background: #ff0033;
  color: white;
  font-size: 1.35rem;
  line-height: 1;
  text-indent: 0.12em;
}

.project__media img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  max-height: 400px;
  object-fit: cover;
  filter: saturate(0.82) contrast(0.98);
}

.project__media--contain img {
  object-fit: contain;
}

.project__media--split img {
  min-width: 0;
}

.project__media--compact {
  width: min(100%, 200px);
  min-height: 0;
  align-self: center;
  justify-self: center;
  background: transparent;
}

.project__media--compact img {
  height: auto;
  min-height: 0;
  max-height: 160px;
  object-fit: contain;
}

.publication-list {
  border-top: 1px solid var(--ink);
}

.publication {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) minmax(350px, 1fr) auto;
  align-items: baseline;
  gap: 30px;
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
}

.publication p,
.publication h3 {
  margin-bottom: 0;
}

.publication h3 {
  font-size: clamp(1.25rem, 2.3vw, 1.8rem);
}

.publication > a {
  font-size: 0.85rem;
  font-weight: 650;
  white-space: nowrap;
  text-decoration: none;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.65fr);
  gap: clamp(60px, 10vw, 140px);
}

.about .section-heading {
  display: block;
  margin-bottom: 0;
}

.about .section-heading .eyebrow {
  margin-bottom: 30px;
}

.about .section-heading h2 {
  margin-bottom: 30px;
}

.about__lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: end;
  gap: 30px;
}

.about__lists ul {
  display: grid;
  gap: 7px;
  margin: 15px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.9rem;
  list-style: none;
}

.contact {
  padding-block: 120px 135px;
  border-top: 1px solid var(--ink);
}

.contact h2 {
  max-width: 850px;
  margin-bottom: 20px;
  font-size: clamp(3.3rem, 8vw, 7rem);
}

.contact > p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 1.05rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

.site-footer__inner {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 24px;
}

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

.detail-shell {
  padding-block: 72px 120px;
}

.back-link {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 650;
  text-decoration: none;
}

.detail__header {
  max-width: 900px;
  padding-block: 90px 80px;
}

.detail__header h1 {
  margin-bottom: 30px;
  font-size: clamp(3rem, 7.5vw, 7rem);
}

.detail__lede {
  max-width: 720px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
}

.detail__links {
  margin-top: 30px;
}

.prose {
  max-width: 760px;
  font-size: 1.05rem;
}

.prose h2 {
  margin: 2.6em 0 0.7em;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.prose h3 {
  margin: 2.2em 0 0.7em;
  font-size: 1.6rem;
}

.prose p,
.prose li {
  color: #39423f;
}

.prose img {
  margin-block: 42px;
}

.detail__footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 90px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}

.detail__footer a {
  font-weight: 650;
  text-decoration: none;
}

.paper-page {
  background: #fff;
}

.paper-page::before {
  display: none;
}

.paper-return {
  width: min(1180px, calc(100vw - 48px));
  margin: 24px auto 0;
}

.paper-return a {
  color: #59605d;
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
}

.paper-shell {
  width: min(960px, calc(100vw - 48px));
  margin-inline: auto;
  padding-block: 100px 140px;
}

.paper-return:not([hidden]) + .paper-shell {
  padding-top: 65px;
}

.paper-hero {
  margin-bottom: 90px;
  text-align: center;
}

.paper-hero h1 {
  margin: 22px auto 32px;
  font-family: var(--sans);
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  font-weight: 720;
  letter-spacing: -0.05em;
}

.paper-hero__authors {
  margin-bottom: 10px;
  font-size: 1.08rem;
  font-weight: 650;
}

.paper-hero__affiliations {
  color: #69716e;
  font-size: 0.92rem;
}

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

.paper-actions a {
  padding: 9px 18px;
  border: 1px solid #cfd4d1;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 650;
  text-decoration: none;
}

.paper-content {
  margin-inline: auto;
}

@media (max-width: 860px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 64px;
    padding-block: 90px;
  }

  .hero__aside {
    max-width: 560px;
  }

  .section-heading,
  .about {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 24px;
  }

  .project {
    grid-template-columns: 40px 1fr;
  }

  .project__media {
    grid-column: 2;
    margin-top: 8px;
  }

  .publication {
    grid-template-columns: 145px 1fr;
  }

  .publication > a {
    grid-column: 2;
  }

  .about__lists {
    margin-top: 10px;
  }
}

@media (max-width: 600px) {
  :root {
    --shell: min(100% - 30px, 1120px);
  }

  html {
    scroll-padding-top: 120px;
  }

  .site-header__inner {
    min-height: 82px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
    padding-block: 10px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.78rem;
  }

  .hero {
    padding-block: 70px 85px;
  }

  .hero h1 {
    font-size: clamp(3.7rem, 20vw, 6rem);
  }

  .hero__aside {
    padding-left: 20px;
  }

  .section {
    padding-block: 80px;
  }

  .section-heading {
    margin-bottom: 48px;
  }

  .project {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-block: 38px;
  }

  .project__number,
  .project__media {
    grid-column: 1;
  }

  .project__media,
  .project__media img {
    min-height: 220px;
  }

  .project__media--compact,
  .project__media--compact img {
    min-height: 0;
  }

  .project__media--split {
    grid-template-columns: 1fr;
  }

  .project__media--split img {
    max-height: 270px;
  }

  .publication {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .publication > a {
    grid-column: 1;
    margin-top: 8px;
  }

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

  .contact {
    padding-block: 90px;
  }

  .site-footer__inner {
    min-height: 110px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
  }

  .detail__header {
    padding-block: 65px 55px;
  }

  .detail__footer {
    flex-direction: column;
  }

  .paper-shell {
    width: min(100% - 30px, 960px);
    padding-block: 70px 100px;
  }

  .paper-return {
    width: min(100% - 30px, 1180px);
  }
}

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