:root {
  color-scheme: light dark;
  --ink: #161616;
  --muted: #5d6268;
  --paper: #f7f4ee;
  --white: #fffdf8;
  --line: rgba(22, 22, 22, 0.14);
  --dark: #08090c;
  --dark-soft: #14171d;
  --cyan: #5ec8d8;
  --green: #7bbf78;
  --red: #cf5d55;
  --gold: #d5a743;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
  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;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.55;
}

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

img,
video {
  display: block;
  width: 100%;
}

video {
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 94svh;
  overflow: hidden;
  color: white;
  background: var(--dark);
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.34) 48%, rgba(0, 0, 0, 0.08) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 36%);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media video {
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.92;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.75rem, 3vw, 2rem);
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
  font-size: 0.88rem;
  letter-spacing: 0;
}

.topbar a {
  color: rgba(255, 255, 255, 0.78);
}

.topbar a:hover {
  color: white;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(88px, 15vh, 170px) 0 140px;
}

.venue,
.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 850px;
  margin-bottom: 20px;
  font-size: clamp(4.3rem, 14vw, 9.6rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.subtitle {
  max-width: 660px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.12rem, 2vw, 1.55rem);
  line-height: 1.38;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-weight: 700;
  backdrop-filter: blur(16px);
}

.button:hover {
  border-color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.16);
}

.button.primary {
  border-color: var(--cyan);
  background: var(--cyan);
  color: #041114;
}

.band {
  padding: clamp(54px, 8vw, 100px) max(16px, calc((100vw - 1180px) / 2));
}

.section-copy {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-copy h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4.4vw, 4.35rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-copy p a {
  color: #0f7f91;
  font-weight: 750;
  border-bottom: 2px solid currentColor;
  text-decoration: none;
}

.section-copy p a:hover {
  color: #075f6d;
  border-bottom-color: transparent;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  gap: clamp(28px, 6vw, 90px);
  background: var(--white);
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-content: end;
  color: var(--muted);
  font-size: 1.04rem;
}

.abstract-band {
  background: var(--dark-soft);
  color: white;
  padding-top: clamp(36px, 5vw, 72px);
}

.wide-figure {
  margin: 0;
}

.wide-figure img {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.graphical-abstract img {
  background: white;
  object-fit: contain;
}

figcaption {
  margin-top: 12px;
  color: color-mix(in srgb, currentColor 66%, transparent);
  font-size: 0.95rem;
}

.video-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.video-row video,
.video-mosaic video {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #050505;
  object-fit: contain;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.qm9-section {
  background: #101217;
  color: white;
}

.qm9-section .section-copy p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.04rem;
}

.visual-pair .section-copy p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.04rem;
}

.qm9-section .wide-figure {
  margin-bottom: 22px;
}

.qm9-trajectory-figure {
  max-width: min(60%, 720px);
  margin-right: auto;
  margin-left: auto;
}

.qm9-videos {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metrics-figure {
  margin: 22px 0 0;
}

.metrics-figure img,
.qm9-section .wide-figure img {
  border-radius: 8px;
  background: #050505;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.gallery {
  background: var(--dark-soft);
  color: white;
}

.gallery .eyebrow {
  color: var(--green);
}

.gallery .section-copy p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.04rem;
}

.gallery .section-copy p a,
.visual-pair .section-copy p a {
  color: #9ef3ff;
}

.gallery .section-copy p a:hover,
.visual-pair .section-copy p a:hover {
  color: #ffffff;
  border-bottom-color: transparent;
}

.video-mosaic {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.gallery .wide-figure + .wide-figure {
  margin-top: 22px;
}

.visual-pair {
  background: var(--white);
  color: var(--ink);
}

.visual-pair .section-copy p:not(.eyebrow) {
  color: var(--muted);
}

.visual-pair .wide-figure + .wide-figure {
  margin-top: 22px;
}

.laproteina-videos {
  grid-template-columns: 1fr;
  gap: 0;
  margin: 22px 0;
}

.laproteina-videos video {
  aspect-ratio: auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.resources {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(28px, 6vw, 88px);
  background: #101217;
  color: white;
}

.resources .eyebrow {
  color: var(--red);
}

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

.resource-list a {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: center;
  min-height: 74px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.resource-list a:hover {
  border-color: rgba(158, 243, 255, 0.55);
  background: rgba(255, 255, 255, 0.09);
}

.resource-list span {
  font-weight: 800;
}

.resource-list small {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.95rem;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px max(16px, calc((100vw - 1180px) / 2));
  background: #111;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

footer p {
  margin: 0;
}

footer a {
  margin-left: 16px;
  color: white;
}

@media (max-width: 860px) {
  .topbar {
    justify-content: center;
    overflow-x: auto;
    padding-top: 18px;
    white-space: nowrap;
  }

  .hero {
    min-height: 84svh;
  }

  .hero::after {
    background:
      linear-gradient(0deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.28) 70%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.18));
  }

  .hero-media video {
    object-position: center center;
  }

  .hero-content {
    padding-top: 68px;
    padding-bottom: 84px;
  }

  h1 {
    font-size: clamp(3.55rem, 17vw, 6.1rem);
  }

  .intro,
  .resources {
    grid-template-columns: 1fr;
  }

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

  .video-row,
  .video-mosaic,
  .qm9-videos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .laproteina-videos {
    grid-template-columns: 1fr;
  }

  .qm9-trajectory-figure {
    max-width: 100%;
  }

  .resource-list a {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 540px) {
  .topbar {
    justify-content: flex-start;
  }

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

  .button {
    width: 100%;
    min-height: 40px;
  }

  .video-row,
  .video-mosaic,
  .qm9-videos,
  .laproteina-videos {
    grid-template-columns: 1fr;
  }

  footer {
    display: block;
  }

  footer p + p {
    margin-top: 10px;
  }

  footer a {
    margin-left: 0;
    margin-right: 14px;
  }
}
