/* The cover fills the viewport; paper content keeps its wider reading gutters. */
:root { --cover-gutter: clamp(24px, 3vw, 64px); }
.header {
  height: 90px;
  padding-inline: var(--cover-gutter);
  color: #f6f8ff;
}
.header.sticky {
  height: 72px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 1px 0 #1826470d;
}
.wordmark {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.025em;
  gap: 11px;
}
nav { gap: 28px; }
nav a { font-size: 11px; letter-spacing: .012em; opacity: .69; }
nav a:hover, nav a.active { color: #fff; opacity: 1; }
nav a:last-child { border: 0; border-radius: 0; padding: 0; }
.sticky nav a:last-child { border: 0; }
.sticky nav a:hover, .sticky nav a.active { color: var(--accent); }

.hero {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  max-height: none;
  background: #000000;
  isolation: isolate;
  color: #f5f7ff;
}
.hero-media {
  inset: 0;
  background: #000000;
  z-index: -3;
}
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
  transform: scale(1.08);
  opacity: 1;
  filter: invert(1) grayscale(1) brightness(1.62) contrast(1.05);
  mix-blend-mode: screen;
}
.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, #000000 0%, #000000f5 24%, #000000d6 40%, #00000066 61%, #00000000 79%),
    linear-gradient(0deg, #000000 0%, #000000a6 9%, #00000000 27%, #00000000 78%, #000000 100%);
}
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
  inset: 0;
  background: none;
}
.hero-content.shell {
  width: calc(100% - 2 * var(--cover-gutter));
  max-width: none;
  padding-block: 112px 96px;
}
.hero h1 {
  font-size: clamp(76px, 7.6vw, 116px);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -.012em;
  margin: 0 0 29px;
  color: #fff;
  white-space: nowrap;
  text-shadow: none;
}
.hero-title {
  max-width: 690px;
  font-size: clamp(20px, 1.85vw, 26px);
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: -.012em;
  color: #fff;
  margin-bottom: 29px;
  text-wrap: balance;
}
.hero-credits { width: min(100%, 790px); margin-block: 0 25px; }
.hero-authors {
  margin: 0 0 15px;
  color: #f5f5f8;
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 400;
  letter-spacing: .002em;
  line-height: 1.85;
  text-wrap: balance;
  text-shadow: 0 1px 8px #000000;
}
.hero-authors > span { display: inline-block; white-space: nowrap; }
.hero-credits sup {
  position: relative;
  top: -.05em;
  margin-left: 2px;
  color: #b4c2ff;
  font-size: .68em;
  line-height: 0;
}
.hero-affiliations {
  --logo-height: 26px;
  display: grid;
  width: min(100%, 710px);
  grid-template-columns: 1.36fr 1.04fr .96fr .96fr 1fr .62fr;
  gap: 12px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #c7cbd4;
  font-size: 11px;
  line-height: 1.5;
}
.hero-affiliations li { display: flex; align-items: flex-start; gap: 5px; min-width: 0; }
.hero-affiliations sup { top: 4px; margin: 0; font-size: 8px; color: #b4b7c2; }
.hero-affiliations img {
  display: block;
  width: calc(100% - 12px);
  height: var(--logo-height);
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
  opacity: .72;
}
.hero-affiliations .affiliation-logo {
  display: block;
  flex: none;
  width: calc(var(--logo-height) * 245 / 122);
  height: var(--logo-height);
  overflow: hidden;
}
.hero-affiliations .affiliation-nus img {
  width: auto;
  max-width: none;
  height: 100%;
  filter: grayscale(1) invert(1);
  opacity: .86;
}
.hero-author-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 10px 0 0;
  color: #b4b7c2;
  font-size: 11px;
  line-height: 1.45;
}
.hero-author-notes > span { white-space: nowrap; }
.hero-author-notes sup { margin-left: 0; font-size: .9em; }
.hero-actions { gap: 9px; }
.hero .button {
  border-radius: 999px;
  padding: 11px 19px;
  min-height: 43px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .015em;
}
.hero .hero-actions .button { font-size: var(--hero-button-size, 12px); }
.hero .button.primary {
  background: #fff;
  color: #15171d;
  box-shadow: none;
  border: 1px solid #fff;
}
.hero .button.primary:hover { background: #e7e9ed; border-color: #e7e9ed; }
.hero .button.glass {
  border: 1px solid #ffffff3d;
  background: #ffffff09;
  backdrop-filter: blur(8px);
  color: #e1e3ea;
}
.hero .button.glass:hover { background: #ffffff12; color: #fff; }
.hero .button:disabled { cursor: default; transform: none; }
.hero .button.glass:disabled:hover { background: #ffffff09; color: #e1e3ea; }
.hero-bottom.shell {
  bottom: 27px;
  width: calc(100% - 2 * var(--cover-gutter));
  max-width: none;
  padding-top: 22px;
  border-top: none;
  justify-content: center;
  gap: 26px;
}
.scroll-hint { color: #a0a4ad; }
.scroll-hint span { width: auto; height: auto; border: none; font-size: 19px; color: #b0b4bd; }
.motion-control { position: absolute; right: 0; padding: 3px 0; color: #7d828d; font-size: 9px; }
.motion-control:hover { color: #fff; }

@media (min-width: 1600px) {
  .hero-content.shell { padding-top: 140px; }
  .hero h1 { margin-block: 0 32px; }
  .hero-media video { object-position: 68% 42%; }
}
@media (max-width: 1100px) {
  .header { padding-inline: var(--cover-gutter); }
  nav { gap: 20px; }
  .hero-content.shell, .hero-bottom.shell { width: calc(100% - 2 * var(--cover-gutter)); }
  .hero h1 { font-size: 9vw; }
  .hero-title { font-size: 23px; max-width: 610px; }
  }
@media (max-width: 800px) {
  .header { height: 76px; padding-inline: var(--cover-gutter); }
  .header.sticky { height: 64px; }
  .wordmark { font-size: 15px; }
  nav { top: 64px; padding-inline: 26px; gap: 0; }
  nav a { font-size: 13px; padding-block: 14px; }
  nav a:hover, nav a.active { color: var(--accent); }
  nav a:last-child { border-radius: 0; padding: 18px 2px 0; }
  .hero-content.shell, .hero-bottom.shell { width: calc(100% - 2 * var(--cover-gutter)); }
  .hero-content.shell { padding-block: 112px 110px; }
    .hero h1 { font-size: clamp(48px, 10.8vw, 80px); letter-spacing: -.012em; margin-block: 0 29px; }
  .hero-title { font-size: clamp(19px, 3.3vw, 24px); line-height: 1.65; max-width: 530px; margin-bottom: 25px; text-wrap: pretty; }
  .hero .desktop-break { display: none; }
  .hero-credits { margin-bottom: 24px; }
  .hero-authors { font-size: 12px; line-height: 1.85; margin-bottom: 15px; }
  .hero-affiliations {
    --logo-height: 25px;
    width: min(100%, 420px);
    grid-template-columns: 1.24fr 1fr 1fr;
    gap: 11px 16px;
  }
  .hero .button { padding: 12px 16px; font-size: 10px; min-height: 43px; }
  .hero-actions { --hero-button-size: 10px; gap: 9px; max-width: 450px; }
  .hero-media video { transform: scale(1.18); object-position: 67% center; filter: invert(1) grayscale(1) brightness(1.6) contrast(1.05); }
  .hero-shade { background: linear-gradient(90deg, #000000ed 0%, #000000d9 30%, #0000008c 70%, #00000066 100%), linear-gradient(0deg, #000000, #00000000 45%, #00000040 85%, #00000099); }
  .hero-bottom.shell { bottom: 26px; padding-top: 20px; }
  .motion-control { font-size: 8px; }
  .scroll-hint { font-size: 7px; gap: 11px; }
}
@media (max-width: 420px) {
  .hero h1 { font-size: 10.55vw; letter-spacing: -.005em; }
  .hero-title { font-size: 19px; }
  .hero-actions { max-width: 330px; }
  .hero .button { padding-inline: 14px; }
}
@media (max-width: 600px) {
  .hero-content.shell { padding-block: 94px 78px; }
  .hero h1 { margin-bottom: 18px; }
  .hero-title { font-size: 18px; line-height: 1.5; margin-bottom: 20px; }
  .hero-credits { margin-bottom: 21px; }
  .hero-authors { font-size: 11.5px; line-height: 1.9; margin-bottom: 15px; }
  .hero-affiliations { grid-template-columns: 1fr 1fr; width: min(100%, 300px); gap: 10px 16px; }
  .hero-affiliations li { gap: 4px; }
  .hero-affiliations { --logo-height: 22px; }
  .hero-affiliations img { width: calc(100% - 10px); }
  .hero-affiliations sup { font-size: 7px; }
  .hero-actions { gap: 6px; max-width: none; }
  .hero .button { min-height: 41px; padding: 10px 11px; gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-media { background: #000000; }
  .hero-media::before { content: ""; position: absolute; inset: 0; background: url('assets/hero-urdf576-poster.webp') 68% center / cover; transform: scale(1.08); filter: invert(1) grayscale(1) brightness(1.62) contrast(1.05); mix-blend-mode: screen; }
}

@media (max-height: 650px) {
  .hero-content.shell { padding-block: 86px 64px; }
  .hero h1 { font-size: clamp(48px, 11vh, 78px); margin-bottom: 20px; }
  .hero-title { font-size: 20px; line-height: 1.5; margin-bottom: 18px; }
  .hero-credits { margin-bottom: 20px; }
  .hero-authors { margin-bottom: 12px; line-height: 1.75; }
  .hero-affiliations { gap: 10px 16px; }
  .hero .button { min-height: 42px; padding-block: 10px; }
  .hero-bottom.shell { bottom: 17px; padding-top: 0; }
}
@media (max-width: 800px) and (max-height: 650px) {
  .hero h1 { font-size: clamp(34px, 10.4vw, 60px); }
  .hero-title { font-size: 17px; max-width: 510px; }
  .hero-content.shell { padding-block: 84px 60px; }
}
@media (max-width: 600px) and (max-height: 720px) {
  .hero-content.shell { padding-block: 82px 72px; }
  .hero h1 { margin-bottom: 14px; }
  .hero-title { font-size: 16.5px; line-height: 1.45; margin-bottom: 16px; }
  .hero-credits { margin-bottom: 18px; }
  .hero-authors { font-size: 11px; line-height: 1.8; margin-bottom: 14px; }
  .hero-affiliations { gap: 10px 16px; }
  .hero-affiliations { --logo-height: 21px; }
  .hero-actions { --hero-button-size: 9.5px; }
  .hero .button { min-height: 38px; font-size: 9.5px; padding: 9px; gap: 6px; }
}
@media (min-width: 600px) and (max-height: 500px) {
  .header { height: 64px; }
  .hero-content.shell { padding-block: 74px 42px; }
  .hero h1 { font-size: 34px; margin-bottom: 12px; }
  .hero-title { font-size: 16px; line-height: 1.4; max-width: none; margin-bottom: 12px; }
  .hero .desktop-break { display: none; }
  .hero-credits { margin-bottom: 14px; }
  .hero-authors { font-size: 11px; line-height: 1.75; margin-bottom: 10px; }
  .hero-affiliations { gap: 10px 16px; }
  .hero-affiliations { --logo-height: 22px; }
  .hero .button { min-height: 34px; padding: 8px 12px; }
  .hero-bottom.shell { bottom: 12px; }
}
