/* Scrolling web page: black stage, big type, one accent gradient. */
:root {
  --bg: #000000;
  --text: #f5f5f7;
  --secondary: #a1a1a6;
  --eyebrow: #86868b;
  --muted: #6e6e73;
  --source: #7c7c80;
  --line: #3a3a3c;
  --card: #0f1115;
  --grad: linear-gradient(90deg, #f2f6fb 0%, #a8c7ec 55%, #7ba5dc 100%);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --nav-h: 60px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 18px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; height: var(--nav-h); background: rgba(0,0,0,.72); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid #1d1d1f; }
.nav-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-weight: 700; text-decoration: none; letter-spacing: -0.01em; }
.nav nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav nav a { text-decoration: none; color: var(--secondary); }
.nav nav a:hover { color: var(--text); }
.nav .pill { color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; }

/* Type */
.eyebrow { font-size: 18px; font-weight: 600; color: var(--eyebrow); margin: 0 0 8px; }
h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 700; line-height: 1.04; letter-spacing: -0.03em; margin: 0 0 28px; }
h2 { font-size: clamp(40px, 5.4vw, 68px); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 28px; }
h3 { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 8px; }
.subhead { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 32px; }
/* Section description: spans the full width; its first sentence (strong) is the key point */
.lead { font-size: 22px; color: var(--secondary); margin: 0 0 56px; }
.lead strong { color: var(--text); font-weight: 600; }
.hero .lead { margin: 0 0 32px; }
.hero h1 { font-size: clamp(34px, 4.2vw, 56px); text-wrap: balance; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.sec { color: var(--secondary); }
.small { font-size: 0.5em; }
.stat { font-size: clamp(64px, 8vw, 104px); font-weight: 700; line-height: 1; letter-spacing: -0.03em; margin: 0 0 24px; }
.stat.big { font-size: clamp(96px, 12vw, 160px); margin-top: 8px; }
.stat .unit { font-size: 0.42em; color: var(--muted); letter-spacing: 0; }
.cap { font-size: 21px; font-weight: 600; line-height: 1.3; margin: 0 0 8px; }
.sub { font-size: 17px; line-height: 1.5; color: var(--secondary); margin: 0; }
.label { font-size: 20px; font-weight: 600; color: var(--eyebrow); margin: 0 0 14px; }
.cite { font-size: 14px; color: var(--source); margin: 28px 0 0; }
.cite a, .sub a { color: var(--secondary); text-underline-offset: 2px; }
.sub a:hover { color: var(--text); }
.statement { font-size: 23px; font-weight: 600; line-height: 1.4; margin: 56px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.closing { font-size: clamp(34px, 4.4vw, 56px); font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; margin: 88px 0 0; text-wrap: balance; }
.btn { display: inline-block; text-decoration: none; font-weight: 600; font-size: 16px; padding: 11px 22px; border-radius: 999px; background: var(--text); color: #000; }
.btn:hover { background: #fff; }

/* Layout */
.band { padding: 120px 32px 40px; }
.grid { display: grid; gap: 44px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); gap: 56px; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); gap: 32px; }
.grid.c4 .stat { font-size: clamp(56px, 6vw, 84px); }
.split { display: grid; grid-template-columns: 5fr 6fr; gap: 72px; align-items: start; }
.rule { border-top: 1px solid var(--line); padding-top: 18px; }
.stack > .rule { padding: 14px 0; }
.spaced { margin-top: 112px; }
.spaced-sm { margin-top: 80px; margin-bottom: 20px; }
ul.plain { list-style: none; margin: 14px 0 0; padding: 0; }
ul.plain li { font-size: 19px; line-height: 1.35; margin: 0 0 12px; color: var(--secondary); }
ul.plain.strong li { color: var(--text); font-weight: 600; }

/* Hero */
.hero { display: grid; grid-template-columns: 2fr 1fr; gap: 56px; align-items: center; min-height: calc(100vh - var(--nav-h)); padding-top: 48px; padding-bottom: 48px; }
.hero-fig { aspect-ratio: 4 / 5; }

/* Media */
.placeholder { border: 1px dashed var(--line); border-radius: 18px; background: var(--card); display: flex; align-items: center; justify-content: center; text-align: center; color: var(--eyebrow); font-size: 16px; font-style: italic; padding: 0 24px; }
.demos { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
.demos.wide-media { margin-top: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.demo-ph { aspect-ratio: 16 / 9; }
.demo { margin: 0; }
.demo video { width: 100%; border-radius: 22px; background: #0b0b0c; display: block; box-shadow: 0 0 0 1px rgba(255, 255, 255, .07); }
.demo.wide { grid-column: 1 / -1; }
.demo figcaption { font-size: 15px; color: var(--secondary); margin-top: 10px; }

/* Approach: one chapter per step; a big gradient number beside the title, then a video wider than the text */
.chapter { padding-top: 120px; }
.chapter:first-child { padding-top: 24px; }
.chapter-head { display: grid; grid-template-columns: 132px 1fr; gap: 24px; align-items: start; }
.chapter-n { font-size: clamp(56px, 6vw, 84px); font-weight: 700; line-height: .9; letter-spacing: -0.04em; margin: 0; }
.chapter-head h3 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 14px; }
.chapter-head .sub { font-size: 20px; max-width: 760px; }
/* media wider than the text column, centred on the page */
.chapter-media, .wide-media { width: min(1360px, calc(100vw - 64px)); position: relative; left: 50%; translate: -50% 0; }
.chapter-media { margin: 48px 0 0; }
.chapter-media.hw { width: min(1040px, 100%); left: 0; translate: 0 0; margin-left: auto; margin-right: auto; }
.chapter-media.hw figcaption { max-width: 1040px; }
.chapter-media video { width: 100%; display: block; border-radius: 22px; background: #0b0b0c;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 40px 120px -48px rgba(96, 146, 220, .30); }
.chapter-media .vids { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 1100px; margin: 0 auto; }
.chapter-media.two video { aspect-ratio: 4 / 5; object-fit: cover; }
.chapter-media.pair .vids { max-width: none; }
.chapter-media.pair figcaption { max-width: 1360px; }
.chapter-media.photo img { display: block; margin: 0 auto; max-height: 76vh; width: auto; border-radius: 22px; background: #e5eaee; }
.chapter-media figcaption { max-width: 1096px; margin: 16px auto 0; padding: 0 2px; font-size: 15px; line-height: 1.5; color: var(--secondary); }
.chapter-media.two figcaption { max-width: 1100px; }
/* hero: the digital human turning, in place of the hero figure */
.hero-media { position: relative; border-radius: 24px; overflow: hidden; background: #0b0b0c;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 50px 140px -50px rgba(96, 146, 220, .38); }
.hero-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* media rise into place as they scroll in */
.js .reveal { opacity: 0; scale: .96; transition: opacity 1s cubic-bezier(.2,.7,.2,1), scale 1.2s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; scale: 1; }

/* Labs */
.pi { display: flex; align-items: center; gap: 20px; margin: 28px 0 14px; }
.pi p { font-size: 20px; font-weight: 600; line-height: 1.3; margin: 0; }
.avatar { width: 96px; height: 96px; flex: none; border-radius: 50%; object-fit: cover; background: var(--card); }
.pi .role { display: block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--eyebrow); margin-bottom: 4px; }
.pi a, .more a, .pub h3 a { text-decoration: none; }
.pi a:hover, .more a:hover, .pub h3 a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.more { font-size: 16px; font-weight: 600; margin: 18px 0 0; }

/* Publications: venue on the left, paper on the right */
.pubs { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.pub { display: grid; grid-template-columns: 180px 1fr; gap: 40px; padding: 28px 0 32px; border-top: 1px solid var(--line); }
.pub-venue { font-size: 18px; font-weight: 600; margin: 2px 0 0; }
.pub-venue span { display: block; font-size: 15px; font-weight: 400; color: var(--eyebrow); margin-top: 2px; }
.pub h3 { font-size: 22px; line-height: 1.3; margin-bottom: 8px; }
.pub-authors { font-size: 15px; color: var(--eyebrow); margin: 0 0 10px; }

/* Footer */
.foot { border-top: 1px solid #1d1d1f; margin-top: 120px; }
.foot-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 40px; font-size: 14px; color: var(--source); }
.foot p { margin: 0; }

/* Motion: hero rises on load, everything else fades up as it scrolls into view (only when JS runs) */
.rise { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.js .fade { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js .fade.in { opacity: 1; transform: none; }
.d1 { animation-delay: .08s; transition-delay: .08s !important; }
.d2 { animation-delay: .16s; transition-delay: .16s !important; }
.d3 { animation-delay: .24s; transition-delay: .24s !important; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { animation: none; }
  .js .fade { opacity: 1; transform: none; transition: none; }
  .js .reveal { opacity: 1; scale: 1; transition: none; }
}

/* Tablet and phone */
@media (max-width: 900px) {
  .wrap, .band { padding-left: 16px; padding-right: 16px; }
  .band { padding-top: 88px; }
  .nav nav { gap: 14px; }
  .nav nav a:not(.pill) { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 40px; }
  .hero-fig { max-height: 60vh; aspect-ratio: 4 / 3; }
  .hero-media { aspect-ratio: 4 / 5; max-height: 72vh; }
  .lead { font-size: 19px; margin-bottom: 44px; }
  .grid.c2, .grid.c3, .split { grid-template-columns: 1fr; gap: 40px; }
  .pub { grid-template-columns: 1fr; gap: 8px; }
  .grid.c4 { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .statement { font-size: 20px; }
  .closing { margin-top: 64px; }
  .chapter { padding-top: 80px; }
  .chapter-head { grid-template-columns: 1fr; gap: 8px; }
  .chapter-head .sub { font-size: 18px; }
  .chapter-media, .wide-media { width: calc(100vw - 32px); }
  .chapter-media { margin-top: 28px; }
  .chapter-media .vids { gap: 10px; }
  .chapter-media.pair .vids { grid-template-columns: minmax(0, 1fr); }
  .chapter-media video, .demo video { border-radius: 14px; }
}
@media (max-width: 480px) {
  .grid.c4 { grid-template-columns: 1fr; }
}
