:root {
  --paper: #ffffff;
  --ink: #1a1a1a;
  --muted: #626262;
  --accent: #262626;
  --accent-dark: #454545;
  --soft: #f6f6f6;
  --line: #dedede;
  --max: clamp(1280px, 88vw, 1920px);
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { --header-height: 72px; --nav-offset: var(--header-height); --anchor-offset: 98px; scroll-behavior: smooth; scroll-padding-top: var(--anchor-offset); }
body { margin: 0; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 5px; }
button { font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible, video:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
button:disabled { cursor: default; }
[hidden] { display: none !important; }
h1, h2, h3, strong, b { font-weight: 400; }
.container { max-width: var(--max); margin-inline: auto; padding-inline: 36px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: -80px; background: var(--ink); color: var(--paper); padding: 10px 18px; }
.skip-link:focus { top: 10px; }

.site-header, .intro {
  --paper: #080808;
  --ink: #f2f2f2;
  --muted: #a8a8a8;
  --accent: #e5e5e5;
  --accent-dark: #c5c5c5;
  --line: #2c2c2c;
  background: var(--paper);
  color: var(--ink);
  color-scheme: dark;
}
.intro { --paper: #000000; }
.intro .overview { padding-bottom: 0; border-top: 0; }
.credits-stage { min-height: 150svh; scroll-margin-top: calc(-1 * var(--anchor-offset)); }
.research-content { position: relative; z-index: 2; margin-top: -50svh; border-radius: 28px 28px 0 0; overflow: clip; background: var(--paper); }
.research-content::before { content: ""; position: absolute; top: 21px; left: calc(50% - 20px); width: 40px; height: 3px; border-radius: 3px; background: #b8b8b8; }
.research-content > .section:first-child { border-top: 0; }

.site-header {
  height: var(--header-height);
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  border-bottom: 1px solid #ffffff16;
  background: #080808f2;
  backdrop-filter: blur(16px);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
  transition: opacity .25s, transform .25s, visibility .25s;
}
.site-header.is-visible { visibility: visible; opacity: 1; transform: translateY(0); pointer-events: auto; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.header-brand-group { display: flex; align-items: center; gap: 28px; }
.brand { text-decoration: none; font-size: 18px; letter-spacing: -.5px; white-space: nowrap; }
.brand span { color: var(--muted); }
.works-menu { position: relative; }
.works-menu summary { display: flex; align-items: center; gap: 7px; padding-block: 7px; list-style: none; cursor: pointer; font-size: 12px; white-space: nowrap; color: var(--muted); }
.works-menu summary::-webkit-details-marker { display: none; }
.works-menu summary:hover, .works-menu[open] summary { color: var(--ink); }
.works-menu summary svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.2; transition: transform .18s; }
.works-menu[open] summary svg { transform: rotate(180deg); }
.works-dropdown { position: absolute; top: calc(100% + 12px); left: 0; width: 210px; padding: 6px; border: 1px solid var(--line); border-radius: 4px; background: #151515; box-shadow: 0 10px 30px #00000030; }
.works-dropdown a { display: flex; align-items: center; justify-content: space-between; padding: 11px 12px; border-radius: 2px; font-size: 13px; text-decoration: none; }
.works-dropdown a:hover, .works-dropdown a:focus-visible { background: #ffffff0d; }
.works-dropdown a span { color: var(--muted); }
.site-header nav { display: flex; align-items: center; gap: 26px; }
.site-header nav a { font-size: 12px; text-decoration: none; color: var(--muted); white-space: nowrap; transition: color .18s; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--ink); }
.header-code { border-left: 1px solid var(--line); padding-left: 24px; color: var(--ink) !important; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #181818;
}
.hero-video { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, #050505d9 0%, #08080880 32%, #0808080d 63%, transparent 100%), linear-gradient(0deg, #000000 0%, #08080812 42%, #08080820 100%); }
.hero-content { width: 100%; position: relative; padding-top: 0; padding-bottom: 36px; }
h1 { font-size: clamp(50px, 4.8vw, 106px); line-height: 1.05; letter-spacing: -.045em; margin: 0; }
h1 span { color: #dcdcdc; }
.subtitle { font-size: clamp(18px, 1.55vw, 28px); line-height: 1.45; letter-spacing: -.025em; max-width: 46%; margin: 24px 0 30px; color: #e3e3e3; }
.hero-links { display: flex; flex-wrap: wrap; gap: 11px; max-width: 46%; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 45px; padding: 11px 21px; text-decoration: none; font-size: 12px; border: 1px solid #a7a7a766; background: #08080820; border-radius: 2px; transition: background .18s, border-color .18s, color .18s; }
.button:hover { background: #ffffff0d; border-color: var(--ink); }
.button.primary { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.button.primary:hover { background: #dedede; border-color: #dedede; }
.button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.section { padding-block: 84px; border-top: 1px solid var(--line); }
.demo-frame { position: relative; overflow: hidden; background: #000; }
.demo-frame video { display: block; width: 100%; aspect-ratio: 16/9; background: #000; }
.film-sound { position: absolute; top: 16px; right: 16px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 14px; border: 1px solid #ffffff30; border-radius: 999px; background: #00000099; color: #f2f2f2; font-size: 12px; line-height: 1.4; backdrop-filter: blur(8px); }
.film-sound:hover { background: #000000cc; border-color: #ffffff66; }
.film-sound svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.film-sound:not([data-audible="true"]) .sound-waves, .film-sound[data-audible="true"] .sound-slash { display: none; }

.showcase { --category-height: 69px; background: var(--soft); scroll-margin-top: -26px; }
.showcase .container { max-width: min(var(--max), 1800px); }
.showcase-heading { text-align: center; margin-bottom: 30px; }
.showcase-heading h2 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(34px, 3.5vw, 48px); line-height: 1.2; letter-spacing: -.025em; margin: 0; }
.showcase-tabs { position: sticky; top: var(--nav-offset); z-index: 5; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; padding-block: 12px; margin-top: -12px; margin-bottom: 24px; background: var(--soft); }
.category-choice { position: relative; overflow: hidden; padding: 11px 24px; border: 1px solid #d3d3d3; border-radius: 999px; background: transparent; color: var(--muted); font-size: 15px; line-height: 1.4; transition: background .18s, border-color .18s, color .18s; }
.category-progress { position: absolute; inset: auto 12px 0; height: 2px; background: #777; transform: scaleX(0); transform-origin: left; }
.category-choice:hover { color: var(--ink); border-color: #aaaaaa; }
.category-choice[aria-pressed="true"] { color: var(--ink); background: #ffffff; border-color: #888888; }
.showcase-caption { margin-bottom: 24px; }
.showcase-caption p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.result-group { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; align-items: start; }
.motion-result { min-width: 0; scroll-margin-top: var(--category-height); }
.showcase-player { overflow: hidden; border-radius: 10px; background: #ffffff; }
.showcase-player video { display: block; width: 100%; aspect-ratio: 16/9; object-fit: contain; background: #ffffff; color-scheme: light; }
.motion-result .showcase-player video:fullscreen { position: static; width: 100%; height: 100%; object-fit: contain; background: #000; }
.mobile-video-tools button { min-height: 44px; padding: 8px 2px; border: 0; background: transparent; color: var(--muted); font-size: 12px; }
.mobile-video-tools .motion-play { display: flex; width: 44px; justify-content: flex-start; align-items: center; }
.motion-play svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.motion-play .pause-icon { stroke-width: 2; }
.motion-play[data-playing="true"] .play-icon, .motion-play:not([data-playing="true"]) .pause-icon { display: none; }
.framing-toggle { margin-left: auto; }
.result-controls { position: relative; }
.motion-result .mobile-video-tools { position: absolute; inset: 0 auto auto 0; z-index: 1; display: flex; align-items: center; gap: 8px; }
.result-controls .framing-toggle { margin-left: 0; }
.showcase-prompts { border-bottom: 1px solid var(--line); }
.showcase-prompts summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; min-height: 44px; padding: 0 0 0 174px; color: var(--muted); font-size: 12px; cursor: pointer; }
.showcase-prompts summary::-webkit-details-marker { display: none; }
.showcase-prompts summary::after { content: '+'; font-size: 19px; line-height: 1; }
.showcase-prompts[open] summary::after { content: '−'; }
.prompt-list { max-width: 850px; list-style: none; margin: 0 auto 18px; padding: 0; }
.prompt-step { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; text-align: left; border: 0; border-left: 2px solid transparent; background: transparent; width: 100%; padding: 10px 12px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.prompt-step:hover { color: var(--ink); }
.prompt-step[aria-current="step"] { background: #ffffff; border-left-color: #777777; color: var(--ink); }
.prompt-time { color: var(--muted); font-size: 11px; line-height: 1.9; white-space: nowrap; font-variant-numeric: tabular-nums; }
.prompt-static { padding: 8px 12px; color: var(--muted); font-size: 13px; }

.viewer-open { overflow: hidden; }
.viewer-open body { padding-right: var(--viewer-scrollbar); }
.motion-viewer { --ink: #f2f2f2; --muted: #b5b5b5; --line: #ffffff24; --accent: #e5e5e5; width: min(1280px, calc(100vw - 48px)); max-width: none; max-height: calc(100svh - 48px); padding: 20px 24px; border: 1px solid #ffffff24; border-radius: 16px; background: #141414; color: var(--ink); color-scheme: dark; overscroll-behavior: contain; }
.motion-viewer::backdrop { background: #000000bd; backdrop-filter: blur(8px); }
.viewer-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 16px; touch-action: pan-y; }
.viewer-heading h2 { margin: 0; font-size: 18px; line-height: 1.4; }
.viewer-close { display: inline-flex; flex-shrink: 0; align-items: center; gap: 12px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font-size: 12px; }
.viewer-close span { font-size: 22px; line-height: 1; }
.viewer-close:hover { background: #ffffff0d; border-color: #ffffff66; }
.viewer-navigation { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); touch-action: pan-y; }
.viewer-navigation button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font-size: 12px; }
.viewer-navigation button:hover { background: #ffffff0d; border-color: #ffffff66; }
.viewer-previous { justify-self: start; }
.viewer-next { justify-self: end; }
.viewer-position { text-align: center; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.viewer-swipe-hint { display: none; margin-top: 3px; font-size: 11px; white-space: nowrap; }
@media (pointer: coarse) { .viewer-swipe-hint { display: block; } }
.motion-viewer .motion-result .mobile-video-tools { display: none; }
.motion-viewer .showcase-player { border-radius: 6px; }
.motion-viewer .showcase-player video { aspect-ratio: auto; max-height: calc(100svh - 268px); }
.motion-viewer .showcase-player video:fullscreen { max-height: none; }
.motion-viewer .showcase-prompts summary { padding-left: 0; }
.motion-viewer .prompt-step[aria-current="step"] { background: #ffffff0a; }
.motion-viewer .prompt-list { max-width: none; }

@media (max-height: 500px) and (orientation: landscape) {
  .motion-viewer[open] { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; max-height: calc(100svh - 16px); padding: 12px; }
  .motion-viewer .viewer-heading { display: contents; }
  .motion-viewer .viewer-heading h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .viewer-close { grid-column: 2; grid-row: 1; }
  .motion-viewer .viewer-navigation { grid-column: 1; grid-row: 1; display: flex; gap: 14px; margin: 0; padding: 0; border: 0; }
  .viewer-navigation .viewer-swipe-hint { display: none; }
  .viewer-content { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
  .motion-viewer .showcase-player video { max-height: calc(100svh - 140px); }
}

.team-credits { position: sticky; top: var(--header-height); min-height: calc(100svh - var(--header-height)); display: flex; flex-direction: column; justify-content: flex-start; padding-top: 44px; padding-bottom: 24px; }
.team-credits h2 { margin: 0 0 22px; font-family: Georgia, 'Times New Roman', serif; font-size: 32px; line-height: 1.15; letter-spacing: -.025em; text-align: center; color: var(--ink); }
.explore-cue { position: absolute; bottom: max(40px, 6svh); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 10px; color: var(--muted); font-size: 12px; text-decoration: none; }
.explore-cue:hover { color: var(--ink); }
.explore-cue svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.authors { max-width: 1050px; margin-inline: auto; display: flex; flex-wrap: wrap; justify-content: center; column-gap: 20px; row-gap: 0; font-size: 17px; line-height: 1.7; color: #c8c8c8; }
.authors > span:not(.author-break) { white-space: nowrap; }
.authors > span:not(.author-break):not(:last-child)::after { content: ','; }
.authors a { text-decoration: none; border-bottom: 1px solid #ffffff30; transition: color .18s, border-color .18s; }
.authors a:hover { color: var(--ink); border-color: var(--accent); }
.author-break { flex-basis: 100%; height: 0; }


@media (min-width: 1101px) {
  .hero-links .button { min-height: clamp(45px, 3vw, 60px); padding: clamp(11px, .8vw, 16px) clamp(21px, 1.3vw, 30px); font-size: clamp(12px, .75vw, 16px); }
}

@media (max-width: 1100px) {
  .site-header nav { gap: 18px; }
  .header-code { padding-left: 18px; }
  .result-group { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .site-header nav { gap: 15px; }
  .site-header nav a { font-size: 11px; }
  .header-code { padding-left: 15px; }
  .brand { font-size: 16px; }
  .header-inner { gap: 18px; }
  .container { padding-inline: 28px; }
  .section { padding-block: 65px; }
}

@media (max-width: 720px) {
  .motion-viewer { width: calc(100vw - 24px); max-height: calc(100svh - 24px); padding: 12px; border-radius: 12px; }
  .viewer-heading { gap: 12px; margin-bottom: 12px; }
  .viewer-heading h2 { font-size: 15px; }
  .viewer-navigation { gap: 10px; }
  .viewer-navigation button { gap: 6px; padding-inline: 10px; }
  html { --header-height: 91px; --anchor-offset: 113px; }
  html.demo-nav-collapsed { --nav-offset: 0px; --anchor-offset: 22px; }
  .demo-nav-collapsed .site-header { visibility: hidden; opacity: 0; transform: translateY(-100%); pointer-events: none; }
  .container { padding-inline: 22px; }
  .site-header { height: auto; min-height: var(--header-height); }
  .header-inner { align-items: flex-start; flex-direction: column; gap: 11px; padding-block: 13px 12px; }
  .header-brand-group { width: 100%; justify-content: space-between; gap: 18px; }
  .works-dropdown { left: auto; right: 0; }
  .brand { font-size: 17px; }
  .site-header nav { width: 100%; gap: 22px; overflow-x: auto; scrollbar-width: none; padding-bottom: 1px; }
  .site-header nav::-webkit-scrollbar { display: none; }
  .header-code { padding-left: 21px; }
  .hero-links { gap: 9px; }
  .button { padding: 10px 15px; min-height: 44px; font-size: 11px; gap: 8px; }
  .section { padding-block: 50px; }
  .demo-frame { padding-top: 48px; }
  .film-sound { top: 0; right: 0; }
  .showcase { --category-height: 105px; scroll-margin-top: -22px; }
  .showcase-heading { margin-bottom: 24px; }
  .showcase-tabs { transition: top .25s; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-block: 8px; margin-top: -8px; margin-bottom: 16px; }
  .category-choice { padding: 10px 12px; font-size: 13px; }
  .showcase-caption { margin-bottom: 20px; }
  .showcase-caption p { font-size: 13px; }
  .result-group { grid-template-columns: 1fr; gap: 24px; }
  .showcase-player { border-radius: 6px; }
  .team-credits { padding-top: 34px; padding-bottom: 18px; }
  .team-credits h2 { margin-bottom: 18px; font-size: 28px; }
  .authors { font-size: 15px; gap: 8px 16px; }
  .author-break { display: none; }
}

@media (max-width: 390px) {
  .container { padding-inline: 18px; }
  .button { padding-inline: 13px; }
}

@media (orientation: portrait) {
  .hero { min-height: max(100svh, 740px); align-items: flex-start; background: #000; }
  .hero-video { top: 200px; height: calc(100% - 200px); }
  .hero-shade { background: linear-gradient(180deg, #000 215px, #000000b8 280px, transparent 410px), linear-gradient(0deg, #000 0%, transparent 25%); }
  .hero-content { padding-top: clamp(40px, 7svh, 84px); padding-bottom: 0; }
  .hero h1 { font-size: clamp(40px, 7vw, 106px); letter-spacing: -.05em; }
  .hero .subtitle { max-width: none; font-size: clamp(17px, 2.7vw, 28px); margin: 16px 0 20px; }
  .hero-links { max-width: 620px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .credits-stage { min-height: 0; padding-bottom: 10svh; }
  .team-credits { position: relative; top: 0; min-height: 70svh; }
  .research-content { margin-top: 0; }
}
