:root {
  color-scheme: dark;
  --bg: #080807;
  --bg-soft: #12110f;
  --paper: #f2eee5;
  --paper-muted: #ded5c7;
  --ink: #141311;
  --text: #f7f2e9;
  --muted: #bdb5a8;
  --muted-dark: #5c554d;
  --line: rgba(247, 242, 233, 0.18);
  --line-dark: rgba(20, 19, 17, 0.14);
  --accent: #d96743;
  --teal: #48b8ad;
  --gold: #bca86e;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.modal-open {
  overflow: hidden;
}

body::selection {
  background: rgba(217, 103, 67, 0.42);
}

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

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

button,
input,
textarea,
select {
  font: inherit;
  letter-spacing: 0;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px max(24px, calc((100vw - var(--max)) / 2 + 24px));
  color: rgba(247, 242, 233, 0.92);
  border-bottom: 1px solid rgba(247, 242, 233, 0.08);
  background: linear-gradient(180deg, rgba(8, 8, 7, 0.78), rgba(8, 8, 7, 0.42));
  backdrop-filter: blur(20px);
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.03rem;
  font-weight: 500;
  color: rgba(255, 249, 239, 0.96);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 23px;
  padding: 0;
  border: 0;
  background: transparent;
}

.nav-links a {
  position: relative;
  padding: 5px 0;
  color: rgba(247, 242, 233, 0.78);
  font-size: 0.84rem;
  font-weight: 650;
  transition:
    color 180ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  background: rgba(247, 242, 233, 0.62);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  outline: none;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  min-height: 100svh;
  height: 100svh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 120px 24px 96px;
  isolation: isolate;
}

.hero-backdrop,
.hero-mosaic,
.hero-prerendered {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 420ms ease;
}

.hero-backdrop {
  z-index: -3;
  background-position: center;
  background-size: cover;
  transform: scale(1.08);
  filter: blur(22px) saturate(1.06) contrast(1.08);
}

.hero-prerendered {
  z-index: -2;
  object-fit: cover;
  filter: saturate(0.96) contrast(1.06);
}

.hero.is-prerendered .hero-backdrop,
.hero.is-prerendered .hero-mosaic {
  display: none;
}

.hero-mosaic {
  z-index: -2;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: saturate(0.96) contrast(1.06);
  pointer-events: none;
}

.hero-edge-fill {
  position: absolute;
  inset: 0;
  z-index: 0;
  --hero-board-w: min(100vw, calc(100svh * var(--hero-board-aspect-value, 1.77778)));
  --hero-board-h: min(100svh, calc(100vw / var(--hero-board-aspect-value, 1.77778)));
  --hero-edge-x: max(0px, calc((100vw - var(--hero-board-w)) / 2));
  --hero-edge-y: max(0px, calc((100svh - var(--hero-board-h)) / 2));
}

.hero-edge-strip {
  position: absolute;
  display: grid;
  gap: 3px;
  overflow: hidden;
}

.hero-edge-strip.is-left {
  left: 0;
  top: var(--hero-edge-y);
  width: var(--hero-edge-x);
  height: var(--hero-board-h);
  grid-template-rows: repeat(var(--hero-rows, 1), minmax(0, 1fr));
}

.hero-edge-strip.is-right {
  right: 0;
  top: var(--hero-edge-y);
  width: var(--hero-edge-x);
  height: var(--hero-board-h);
  grid-template-rows: repeat(var(--hero-rows, 1), minmax(0, 1fr));
}

.hero-edge-strip.is-top {
  left: var(--hero-edge-x);
  top: 0;
  width: var(--hero-board-w);
  height: var(--hero-edge-y);
  grid-template-columns: repeat(var(--hero-cols, 1), minmax(0, 1fr));
}

.hero-edge-strip.is-bottom {
  left: var(--hero-edge-x);
  bottom: 0;
  width: var(--hero-board-w);
  height: var(--hero-edge-y);
  grid-template-columns: repeat(var(--hero-cols, 1), minmax(0, 1fr));
}

.hero-edge-cell {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: rgba(8, 8, 7, 0.5);
  background-image: var(--edge-poster);
  background-position: var(--edge-position, center);
  background-size: cover;
}

.hero-mosaic-board {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(100vw, calc(100svh * var(--hero-board-aspect-value, 1.77778)));
  height: min(100svh, calc(100vw / var(--hero-board-aspect-value, 1.77778)));
  grid-template-columns: repeat(var(--hero-cols, 1), minmax(0, 1fr));
  grid-template-rows: repeat(var(--hero-rows, 1), minmax(0, 1fr));
  gap: var(--hero-gap, 0);
  aspect-ratio: var(--hero-board-aspect, 16 / 9);
}

.hero-mosaic[data-count="4"] .hero-mosaic-board,
.hero-mosaic[data-count="16"] .hero-mosaic-board {
  --hero-gap: 3px;
}

.hero-tile {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background-color: rgba(8, 8, 7, 0.45);
  background-image: var(--tile-fill-poster);
  background-position: center;
  background-size: cover;
}

.hero-tile::before {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: 0;
  background-image: var(--tile-fill-poster);
  background-position: center;
  background-size: cover;
  filter: none;
  opacity: 0.42;
  transform: scale(1.08);
}

.hero-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at center, rgba(247, 242, 233, 0.04), transparent 54%),
    linear-gradient(90deg, rgba(8, 8, 7, 0.2), rgba(8, 8, 7, 0.04) 28%, rgba(8, 8, 7, 0.04) 72%, rgba(8, 8, 7, 0.2));
}

.hero-tile video {
  width: 100%;
  height: 100%;
  max-width: none;
  background: transparent;
}

.hero-main-video {
  position: relative;
  z-index: 3;
  object-fit: contain;
  object-position: var(--tile-position, center);
}

.hero-backdrop.is-active,
.hero-mosaic.is-active,
.hero-prerendered.is-active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 8, 7, 0.56), rgba(8, 8, 7, 0.08) 34%, rgba(8, 8, 7, 0.72)),
    linear-gradient(90deg, rgba(8, 8, 7, 0.72), rgba(8, 8, 7, 0.16) 42%, rgba(8, 8, 7, 0.72));
}

.hero-content {
  width: min(1320px, 100%);
  margin: 0 auto;
  text-align: center;
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.92rem;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  color: #fff9ef;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.1rem;
  line-height: 1.03;
  font-weight: 400;
  text-wrap: balance;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.52);
}

.title-lead,
.title-rest,
.title-tail {
  display: block;
}

.title-mark {
  color: #eaf8f6;
  text-shadow:
    0 0 30px rgba(72, 184, 173, 0.22),
    0 18px 60px rgba(0, 0, 0, 0.52);
}

.title-rest,
.title-tail {
  width: min(1180px, 100%);
  margin: 8px auto 0;
  font-size: 0.74em;
  line-height: 1.08;
}

.title-rest {
  white-space: nowrap;
}

.title-tail {
  margin-top: 6px;
}

.title-highlight {
  color: #f2c466;
  text-shadow:
    0 0 28px rgba(242, 196, 102, 0.34),
    0 18px 60px rgba(0, 0, 0, 0.52);
}

.authors {
  margin: 30px 0 0;
  color: rgba(247, 242, 233, 0.94);
  font-size: 1.25rem;
  font-weight: 650;
}

.authors a {
  border-bottom: 1px solid rgba(247, 242, 233, 0.32);
  transition:
    color 180ms ease,
    border-color 180ms ease;
}

.authors a:hover,
.authors a:focus-visible {
  color: #eaf8f6;
  border-color: rgba(234, 248, 246, 0.72);
  outline: none;
}

.affiliations {
  margin: 8px auto 0;
  max-width: 760px;
  color: rgba(247, 242, 233, 0.76);
  font-size: 1rem;
}

.hero-lead {
  width: min(860px, 100%);
  margin: 22px auto 0;
  color: rgba(247, 242, 233, 0.82);
  font-size: 1.03rem;
  line-height: 1.58;
  text-wrap: balance;
  text-shadow: 0 14px 42px rgba(0, 0, 0, 0.42);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(247, 242, 233, 0.22);
  font-weight: 700;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button-primary {
  background: #f7f2e9;
  color: #16120f;
  border-color: #f7f2e9;
}

.button-secondary {
  background: rgba(8, 8, 7, 0.32);
  color: #f7f2e9;
  backdrop-filter: blur(16px);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(247, 242, 233, 0.48);
  background: rgba(247, 242, 233, 0.1);
}

.button-resource {
  position: relative;
  min-width: 126px;
  padding-inline: 23px;
  background:
    radial-gradient(circle at 50% 0%, rgba(170, 203, 232, 0.16), transparent 56%),
    linear-gradient(180deg, rgba(239, 247, 255, 0.11), rgba(239, 247, 255, 0.035)),
    rgba(10, 13, 16, 0.58);
  color: rgba(238, 247, 255, 0.92);
  border-color: rgba(178, 207, 232, 0.46);
  font-size: 0.98rem;
  font-weight: 760;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 16px 38px rgba(0, 0, 0, 0.26),
    0 0 24px rgba(150, 190, 225, 0.08);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.button-resource::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.075);
  pointer-events: none;
}

.button-resource:hover,
.button-resource:focus-visible {
  border-color: rgba(190, 222, 248, 0.68);
  color: rgba(246, 251, 255, 0.98);
  background:
    radial-gradient(circle at 50% 0%, rgba(170, 203, 232, 0.24), transparent 58%),
    linear-gradient(180deg, rgba(239, 247, 255, 0.15), rgba(239, 247, 255, 0.05)),
    rgba(11, 15, 19, 0.66);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 18px 42px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(150, 190, 225, 0.14);
}

.hero-meta {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: min(860px, calc(100% - 48px));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(247, 242, 233, 0.16);
  background: rgba(8, 8, 7, 0.42);
  backdrop-filter: blur(18px);
}

.hero-meta span {
  min-width: 0;
  padding: 14px 18px;
  color: rgba(247, 242, 233, 0.82);
  font-size: 0.92rem;
  text-align: center;
  white-space: normal;
  overflow-wrap: break-word;
}

.hero-meta span + span {
  border-left: 1px solid rgba(247, 242, 233, 0.16);
}

.intro-band {
  background: var(--paper);
  color: var(--ink);
  padding: 88px 24px 72px;
}

.content-grid,
.section-heading,
.method-section,
.citation-section,
.site-footer {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.content-grid,
.section-heading {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
}

.intro-copy h2,
.section-heading h2,
.method-intro h2,
.citation-section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  line-height: 1.05;
  font-weight: 500;
  text-wrap: balance;
}

.intro-copy p,
.section-heading p,
.method-intro p {
  margin: 22px 0 0;
  max-width: 840px;
  color: var(--muted-dark);
  font-size: 1.14rem;
  line-height: 1.75;
}

.highlight-row {
  width: min(var(--max), 100%);
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.highlight-row article {
  padding: 34px 42px 34px 0;
}

.highlight-row article + article {
  padding-left: 42px;
  border-left: 1px solid var(--line-dark);
}

.highlight-row p {
  margin: 12px 0 0;
  color: #3d3933;
  line-height: 1.55;
}

.claim-kicker {
  display: block;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
}

.highlight-row h3 {
  margin: 12px 0 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.72rem;
  line-height: 1.08;
  font-weight: 500;
  text-wrap: balance;
}

.demo-section {
  padding: 92px 24px 104px;
  background:
    linear-gradient(180deg, #080807, #12100d 48%, #080807),
    var(--bg);
  color: var(--text);
}

.demo-section .section-heading p {
  color: var(--muted);
}

.demo-stage {
  width: min(var(--max), 100%);
  margin: 56px auto 0;
  display: grid;
  grid-template-areas: "media copy";
  grid-template-columns: minmax(0, 1.58fr) minmax(320px, 0.72fr);
  gap: 18px;
  align-items: start;
  scroll-margin-top: 92px;
}

.stage-media {
  grid-area: media;
  position: relative;
  z-index: 1;
  aspect-ratio: var(--stage-aspect, 16 / 9);
  overflow: hidden;
  border: 1px solid rgba(247, 242, 233, 0.2);
  border-radius: 8px;
  background: #050505;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
}

.stage-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050505;
}

.stage-copy {
  grid-area: copy;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  max-height: 100%;
  padding: 30px;
  border: 1px solid rgba(247, 242, 233, 0.16);
  border-radius: 8px;
  background: rgba(247, 242, 233, 0.06);
}

.stage-copy h3 {
  margin: 0;
  color: #fff7ea;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.35rem;
  line-height: 1.05;
  font-weight: 500;
  text-wrap: balance;
}

.stage-copy > p:not(.eyebrow) {
  display: -webkit-box;
  margin: 18px 0 0;
  overflow: hidden;
  color: rgba(247, 242, 233, 0.74);
  line-height: 1.72;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
}

.prompt-action {
  align-self: flex-start;
  margin-top: 18px;
  padding: 9px 12px;
  border: 1px solid rgba(247, 242, 233, 0.18);
  border-radius: 999px;
  color: rgba(247, 242, 233, 0.82);
  background: rgba(247, 242, 233, 0.06);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.prompt-action:hover,
.prompt-action:focus-visible {
  border-color: rgba(72, 184, 173, 0.76);
  color: #fff7ea;
  background: rgba(72, 184, 173, 0.12);
  outline: none;
}

.speed-control {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
  padding: 6px;
  border: 1px solid rgba(247, 242, 233, 0.14);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
}

.speed-control span {
  padding: 0 7px;
  color: rgba(247, 242, 233, 0.58);
  font-size: 0.72rem;
  font-weight: 700;
}

.speed-control button {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(247, 242, 233, 0.74);
  background: transparent;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
}

.speed-control button:hover,
.speed-control button:focus-visible,
.speed-control button.is-active {
  border-color: rgba(72, 184, 173, 0.68);
  color: #fff7ea;
  background: rgba(72, 184, 173, 0.13);
  outline: none;
}

.stage-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 26px;
}

.stage-facts span {
  padding: 8px 10px;
  border: 1px solid rgba(247, 242, 233, 0.14);
  border-radius: 999px;
  color: rgba(247, 242, 233, 0.8);
  font-size: 0.82rem;
  background: rgba(0, 0, 0, 0.2);
}

.demo-wall {
  width: min(var(--max), 100%);
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.demo-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(247, 242, 233, 0.16);
  border-radius: 6px;
  background: rgba(247, 242, 233, 0.055);
  cursor: pointer;
  box-shadow: 0 18px 68px rgba(0, 0, 0, 0.36);
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.demo-card:hover,
.demo-card:focus-visible,
.demo-card.is-active {
  transform: translateY(-2px);
  border-color: rgba(247, 242, 233, 0.38);
  outline: none;
}

.card-media {
  position: relative;
  flex: 0 0 auto;
  aspect-ratio: 16 / 9;
  background: #050505;
}

.card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #050505;
  filter: saturate(1.04) contrast(1.04);
}

.card-copy {
  flex: 0 0 auto;
  padding: 10px 11px 12px;
  background: rgba(8, 8, 7, 0.94);
}

.card-copy h3 {
  margin: 4px 0 0;
  color: #fff7ea;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.88rem;
  line-height: 1.12;
  font-weight: 500;
  text-wrap: balance;
}

.card-copy .prompt-action {
  margin-top: 8px;
  padding: 6px 8px;
  font-size: 0.72rem;
  pointer-events: auto;
}

.demo-card .prompt,
.demo-card .prompt-action {
  display: none;
}

.scene-label {
  margin: 0;
  color: var(--teal);
  font-size: 0.7rem;
  font-weight: 700;
}

.prompt {
  display: -webkit-box;
  max-width: 760px;
  margin: 8px 0 0;
  overflow: hidden;
  color: rgba(247, 242, 233, 0.68);
  font-size: 0.8rem;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.card-facts {
  margin: 9px 0 0;
  color: rgba(247, 242, 233, 0.52);
  font-size: 0.68rem;
  font-weight: 700;
}

.diverse-section {
  width: min(var(--max), 100%);
  margin: 96px auto 0;
  padding-top: 74px;
  border-top: 1px solid rgba(247, 242, 233, 0.14);
}

.diverse-section .section-heading {
  width: 100%;
}

.diverse-section .section-heading p {
  color: var(--muted);
}

.diverse-stage {
  display: grid;
  grid-template-areas: "media copy";
  grid-template-columns: minmax(0, 1.58fr) minmax(320px, 0.72fr);
  gap: 18px;
  align-items: start;
  margin-top: 46px;
  scroll-margin-top: 92px;
}

.diverse-stage-media {
  grid-area: media;
  overflow: hidden;
  aspect-ratio: var(--diverse-stage-aspect, 16 / 9);
  border: 1px solid rgba(247, 242, 233, 0.2);
  border-radius: 8px;
  background: #050505;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.44);
}

.diverse-stage-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050505;
}

.diverse-stage-copy {
  grid-area: copy;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  max-height: 100%;
  padding: 30px;
  border: 1px solid rgba(247, 242, 233, 0.16);
  border-radius: 8px;
  background: rgba(247, 242, 233, 0.06);
}

.diverse-stage-copy h3 {
  margin: 0;
  color: #fff7ea;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.1rem;
  line-height: 1.05;
  font-weight: 500;
  text-wrap: balance;
}

.diverse-stage-copy > p:not(.eyebrow) {
  display: -webkit-box;
  margin: 18px 0 0;
  overflow: hidden;
  color: rgba(247, 242, 233, 0.74);
  line-height: 1.72;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
}

.diverse-groups {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.diverse-board {
  display: grid;
  grid-template-columns: 164px minmax(190px, 0.32fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(247, 242, 233, 0.14);
  border-radius: 6px;
  background: rgba(247, 242, 233, 0.052);
}

.source-frame {
  align-self: start;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(247, 242, 233, 0.12);
  border-radius: 6px;
  background: #050505;
}

.source-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.diverse-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.diverse-copy h3 {
  margin: 0;
  color: #fff7ea;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.12;
  font-weight: 500;
  text-wrap: balance;
}

.diverse-copy .prompt {
  margin-top: 0;
  -webkit-line-clamp: 1;
}

.variant-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(112px, 130px);
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 2px;
}

.variant-card {
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(247, 242, 233, 0.12);
  border-radius: 6px;
  color: rgba(247, 242, 233, 0.78);
  background: rgba(8, 8, 7, 0.86);
  cursor: pointer;
  text-align: left;
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.variant-card:hover,
.variant-card:focus-visible,
.variant-card.is-active {
  transform: translateY(-2px);
  border-color: rgba(72, 184, 173, 0.72);
  outline: none;
}

.variant-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #050505;
}

.variant-card span {
  display: block;
  padding: 6px 8px 7px;
  font-size: 0.68rem;
  font-weight: 700;
}

.method-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  padding: 92px 24px;
}

.method-intro p {
  color: var(--muted);
}

.method-steps {
  display: grid;
  gap: 14px;
}

.method-steps article {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  column-gap: 22px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

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

.method-steps span {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
}

.method-steps h3 {
  margin: 0;
  font-size: 1.1rem;
}

.method-steps p {
  grid-column: 2;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.62;
}

.citation-section {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 36px;
  align-items: start;
  padding: 72px 24px 96px;
  border-top: 1px solid var(--line);
}

.citation-section pre {
  margin: 0;
  overflow-x: auto;
  padding: 22px;
  border: 1px solid rgba(247, 242, 233, 0.14);
  border-radius: 8px;
  background: rgba(247, 242, 233, 0.06);
  color: rgba(247, 242, 233, 0.86);
  line-height: 1.6;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border-top: 1px solid var(--line);
  color: rgba(247, 242, 233, 0.58);
  font-size: 0.9rem;
}

.prompt-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.prompt-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(8, 8, 7, 0.72);
  backdrop-filter: blur(18px);
  cursor: pointer;
}

.modal-panel {
  position: relative;
  width: min(860px, 100%);
  max-height: min(760px, calc(100svh - 48px));
  overflow: auto;
  padding: 28px;
  border: 1px solid rgba(247, 242, 233, 0.18);
  border-radius: 8px;
  background: rgba(14, 13, 11, 0.96);
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.58);
}

.modal-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(247, 242, 233, 0.14);
}

.modal-header h2 {
  margin: 0;
  color: #fff7ea;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.1rem;
  line-height: 1.08;
  font-weight: 500;
}

.modal-close {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid rgba(247, 242, 233, 0.18);
  border-radius: 999px;
  color: rgba(247, 242, 233, 0.82);
  background: rgba(247, 242, 233, 0.06);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
}

.modal-close:hover,
.modal-close:focus-visible {
  border-color: rgba(217, 103, 67, 0.72);
  color: #fff7ea;
  outline: none;
}

#modalPrompt {
  margin: 22px 0 0;
  color: rgba(247, 242, 233, 0.78);
  font-size: 1rem;
  line-height: 1.78;
}

@media (max-width: 1000px) {
  .site-nav {
    padding: 16px 18px;
  }

  .hero {
    min-height: 100svh;
    height: 100svh;
  }

  .hero h1 {
    font-size: 3.25rem;
  }

  .content-grid,
  .section-heading,
  .demo-stage,
  .diverse-stage,
  .method-section,
  .citation-section {
    grid-template-columns: 1fr;
  }

  .demo-stage,
  .diverse-stage {
    grid-template-areas:
      "media"
      "copy";
  }

  .stage-copy,
  .diverse-stage-copy {
    min-height: auto;
    max-height: none;
  }

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

  .diverse-board {
    grid-template-columns: 138px minmax(150px, 0.38fr) minmax(0, 1fr);
    gap: 16px;
  }
}

@media (max-width: 720px) {
  .site-nav {
    align-items: flex-start;
  }

  .nav-links {
    max-width: 64vw;
    justify-content: flex-end;
    overflow-x: auto;
    border-radius: 8px;
  }

  .nav-links a {
    padding: 8px 10px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .hero {
    min-height: 100svh;
    height: 100svh;
    padding: 92px 18px 92px;
  }

  .hero h1 {
    font-size: 2.34rem;
    line-height: 1.04;
  }

  .title-rest {
    white-space: normal;
  }

  .authors {
    font-size: 1.05rem;
  }

  .affiliations {
    font-size: 0.92rem;
  }

  .hero-lead {
    margin-top: 18px;
    font-size: 0.94rem;
    line-height: 1.52;
  }

  .hero-meta {
    width: calc(100% - 24px);
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-meta span {
    padding: 10px 8px;
    font-size: 0.78rem;
  }

  .hero-meta span + span {
    border-left: 1px solid rgba(247, 242, 233, 0.16);
    border-top: 0;
  }

  .intro-band,
  .demo-section,
  .method-section,
  .citation-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .intro-copy h2,
  .section-heading h2,
  .method-intro h2,
  .citation-section h2 {
    font-size: 2.2rem;
  }

  .demo-stage {
    gap: 12px;
  }

  .stage-copy {
    padding: 22px;
  }

  .stage-copy h3 {
    font-size: 1.75rem;
  }

  .highlight-row {
    grid-template-columns: 1fr;
  }

  .highlight-row article,
  .highlight-row article + article {
    padding: 24px 0;
    border-left: 0;
  }

  .highlight-row article + article {
    border-top: 1px solid var(--line-dark);
  }

  .demo-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .diverse-section {
    margin-top: 72px;
    padding-top: 52px;
  }

  .diverse-stage {
    gap: 12px;
  }

  .diverse-stage-copy {
    padding: 22px;
  }

  .diverse-stage-copy h3 {
    font-size: 1.75rem;
  }

  .diverse-board {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .variant-grid {
    grid-auto-columns: minmax(128px, 150px);
  }

  .card-copy h3 {
    font-size: 1.65rem;
  }

  .prompt {
    -webkit-line-clamp: 2;
  }

  .method-steps article {
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 14px;
  }

  .method-steps p {
    grid-column: 1 / -1;
  }

  .site-footer {
    flex-direction: column;
  }
}
