@font-face {
  font-family: 'Roboto Flex';
  src: url('./media/roboto-flex.woff2') format('woff2');
  font-weight: 100 1000;
  font-stretch: 75% 125%;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto Flex';
  src: url('./media/roboto-flex-cyrillic.woff2') format('woff2');
  font-weight: 100 1000;
  font-stretch: 75% 125%;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --white: #fff;
  --muted: #ccc;
  --deck-background: radial-gradient(ellipse at 15% 100%, #272d46 0%, transparent 63%),
                     linear-gradient(150deg, #12151f 0%, #08090e 73%);
  --deck-height: 100dvh;
  --stage-width: min(100vw, 1920px, calc(var(--deck-height) * 16 / 9));
  color-scheme: dark;
  font-family: 'Roboto Flex', Arial, sans-serif;
  background: var(--deck-background);
  color: var(--white);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
h1, h2, p, figure { margin: 0; }
h1, h2, strong, .greeting { font-weight: 640; font-variation-settings: 'GRAD' 66; }
a { color: inherit; text-decoration: none; }
button { border: 0; padding: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
img, video { display: block; }

.comparing {
  --version-bar-height: calc(46px + env(safe-area-inset-top));
  --deck-height: calc(100dvh - var(--version-bar-height));
}
.comparing .chapters { top: calc(var(--version-bar-height) + var(--deck-height) / 2); }
.version-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--version-bar-height);
  padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  border-bottom: 1px solid #363638;
  background: #171719;
  color: #f4f4f2;
  color-scheme: dark;
  font-size: 14px;
  line-height: 1;
}
.version-caption { color: #aaa9a9; }
.version-links { display: flex; align-items: center; gap: 2px; }
.version-links a, .version-direct { display: inline-flex; align-items: center; min-height: 32px; }
.version-links a { padding: 0 12px; border-radius: 4px; color: #c6c6c6; }
.version-links a:hover { background: #303033; color: white; }
.version-links a[aria-current] { background: #ecece9; color: #171719; }
.version-direct { margin-left: auto; gap: 6px; white-space: nowrap; }
.version-direct:hover { text-decoration: underline; text-underline-offset: 3px; }
.version-bar select { display: none; }
@media (max-width: 720px) {
  .version-bar { gap: 8px; padding-inline: max(10px, env(safe-area-inset-left)) max(10px, env(safe-area-inset-right)); font-size: 13px; }
  .version-links { display: none; }
  .version-bar select {
    display: block;
    min-width: 0;
    min-height: 36px;
    padding-inline: 6px;
    border: 1px solid #505054;
    border-radius: 4px;
    background: #262628;
    color: #f4f4f2;
    font: inherit;
  }
}
#deck {
  position: relative;
  width: 100%;
  height: var(--deck-height);
  overflow: hidden auto;
  overscroll-behavior-y: contain;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}
#deck::-webkit-scrollbar { display: none; }
.slide { display: grid; place-items: center; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.stage {
  --gutter: 4.375%;
  position: relative;
  isolation: isolate;
  container-type: size;
  width: var(--stage-width);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.stage-header {
  position: absolute;
  z-index: 2;
  top: 7.5%;
  right: var(--gutter);
  left: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.logo { display: inline-block; flex: none; }
.logo img { max-width: 100%; height: auto; }
.shortcuts { display: flex; align-items: center; gap: clamp(13px, 2.5cqw, 40px); font-size: 16px; }
.shortcuts a:hover, .back:hover { color: var(--muted); }
.wall, .wall-blur, .wall-shade, .community-shade { position: absolute; inset: 0; pointer-events: none; }
.wall img, .wall video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wall-blur {
  backdrop-filter: blur(10.5px);
  mask-image: linear-gradient(90deg, #000 29%, transparent 45%);
}
.wall-shade {
  background: linear-gradient(90deg, #000a 0%, #0007 34%, #0001 68%, transparent 100%),
              linear-gradient(180deg, transparent 0%, #0001 45%, #0006 77%, #000b 100%);
}
.cover-copy { position: absolute; inset: auto var(--gutter) 8%; }
.greeting { font-size: 2.8125cqw; line-height: 1.07; margin-bottom: .26em; }
.cover-copy h1 { font-size: 6.09375cqw; line-height: .98; }
.tagline { margin-top: .9em; color: var(--muted); font-size: 2.03125cqw; font-weight: 240; line-height: 1.2; }

.community-picture {
  position: absolute;
  display: block;
  top: -27.778%;
  left: 0;
  width: 157.03125%;
  height: 157.037%;
}
.community-picture img { width: 100%; height: 100%; object-fit: contain; }
.community-shade { background: linear-gradient(90deg, #000d 0%, #000b 37%, #0006 63%, #0005 100%); }
.community-copy { position: absolute; inset: 30.28% var(--gutter) auto; }
.community-copy h2, .works h2 { font-size: 5.46875cqw; line-height: 1.04; }
.community-copy p { margin-top: 3.9cqw; max-width: 44.3cqw; font-size: 1.875cqw; line-height: 1.36; color: var(--muted); }
.mobile-copy { display: none; }

.mosaic {
  position: absolute;
  inset: 20.97% var(--gutter) 7.64%;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 1.094cqw;
}
.work-tile {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  grid-column: span 3;
  min-width: 0;
  overflow: hidden;
  padding: 1.4cqw;
  background: #151515;
}
.work-tile:nth-child(-n+3) { grid-column: span 4; }
.work-tile img, .case-picture, .film-choice-poster { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work-tile img { transition: transform .28s ease; }
.work-tile::after, .project-cover::after, .film-choice::after { content: ''; position: absolute; z-index: -1; inset: 0; }
.work-tile::after { background: linear-gradient(180deg, transparent, #0002 39%, #000e); }
.work-tile strong { display: block; font-size: 2.265625cqw; line-height: 1.1; }
.work-tile strong span { margin-left: .15em; font-weight: 400; }
@media (hover: hover) and (pointer: fine) { .work-tile:hover img { transform: scale(1.035); } }
.work-tile:focus-visible { outline-offset: -3px; }

.back { font-size: 16px; }
.project-cover {
  position: absolute;
  isolation: isolate;
  inset: 14.1667% var(--gutter) 6.389%;
  overflow: hidden;
  background: #111;
}
.project-cover::after { background: linear-gradient(180deg, transparent, #0001 32%, #000a 62%, #000f); }
.case-copy {
  position: absolute;
  inset: 64.3% 2.4cqw 4.2%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.case-copy h2, .project-films h2 { font-size: 4.53125cqw; line-height: 1.05; }
.cover-action { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover-action:focus-visible { outline-offset: -5px; }
.play-caption { display: flex; align-items: center; gap: 16px; }
.play-caption span { display: inline-grid; place-items: center; width: 126px; min-height: 42px; background: #191919; }
.play-caption small, .film-choice small { color: #c7c7c7; font-variant-numeric: tabular-nums; }
.project-films {
  position: absolute;
  inset: 15% var(--gutter) 8%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.1cqw;
}
.film-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25cqw; }
.film-choice {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  padding: clamp(14px, 1.8cqw, 32px);
  background: #191919;
  text-align: left;
}
.film-choice::after { background: linear-gradient(180deg, transparent 36%, #0003 57%, #000e); }
.film-choice:focus-visible { outline-offset: -3px; }
.film-choice-copy { display: grid; gap: .35em; }
.film-choice strong { font-size: clamp(22px, 2.4cqw, 44px); line-height: 1; }
.film-choice-play {
  flex: none;
  display: grid;
  place-items: center;
  width: clamp(44px, 4.2cqw, 72px);
  aspect-ratio: 1;
  border: 1px solid #fff5;
  border-radius: 50%;
  background: #0a0a0a8c;
  transition: background .2s ease;
}
.film-choice-play img { width: 13px; height: auto; margin-left: 2px; }
.film-choice:is(:hover, :focus-visible) .film-choice-play { background: #ffffff30; }

.chapters {
  --dot: 6px;
  --dot-pitch: 14px;
  position: fixed;
  z-index: 3;
  top: 50%;
  right: calc((100vw - var(--stage-width)) / 2 + 6px);
  width: 28px;
  transform: translateY(-50%);
  opacity: .62;
  transition: opacity .9s ease;
}
.chapters:is(.is-moving, :hover, :has(:focus-visible)) { opacity: 1; transition-duration: .2s; }
.chapters a { display: grid; place-items: center; width: 100%; height: var(--dot-pitch); }
.chapters a::before, .chapter-thumb { width: var(--dot); border-radius: 999px; }
.chapters a::before { content: ''; height: var(--dot); background: rgba(247, 238, 229, .38); }
.chapters a:is(:hover, :focus-visible)::before { background: rgba(247, 238, 229, .8); }
.chapters a:focus-visible { outline-offset: -2px; border-radius: 4px; }
.chapter-thumb {
  position: absolute;
  top: calc((var(--dot-pitch) - var(--dot)) / 2);
  left: calc((100% - var(--dot)) / 2);
  height: var(--dot);
  background: #f7eee5;
  pointer-events: none;
}

.player {
  --accent: #89a7ff;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #08090c;
  color: #fff;
}
.player::backdrop { background: #08090c; }
.player-surface {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 50% 115%, #1a2033 0%, #0b0d15 56%, #07080b 100%);
}
.player[open] .player-surface { animation: player-in .3s cubic-bezier(.2,.7,.2,1); }
@keyframes player-in { from { opacity: 0; } to { opacity: 1; } }
.player-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; cursor: pointer; }
.player { --cue-scale: 1; --cue-plate: rgb(8 8 11 / .82); }
.player[data-caption-size='small'] { --cue-scale: .8; }
.player[data-caption-size='large'] { --cue-scale: 1.32; }
.player[data-caption-background='solid'] { --cue-plate: #080808; }
.player[data-caption-background='clear'] { --cue-plate: transparent; }
.player-video::cue { background-color: var(--cue-plate); color: #fff; font-size: calc(1.1em * var(--cue-scale)); }
.player-title {
  position: absolute;
  z-index: 3;
  top: max(25px, calc(env(safe-area-inset-top) + 16px));
  left: max(24px, calc(env(safe-area-inset-left) + 12px));
  right: 76px;
  color: #fff;
  font-size: clamp(15px, 1.5vw, 21px);
  line-height: 1.15;
  pointer-events: none;
  text-shadow: 0 1px 6px #000;
}
.player.loader-active .player-loader { opacity: 1; }
.player-loader { position: absolute; z-index: 2; display: flex; gap: 12px; opacity: 0; pointer-events: none; }
.player-loader i { width: 9px; height: 9px; border-radius: 50%; background: #f7eee5; }
.player-loader i:nth-child(3) { background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.loader-active .player-loader i { animation: player-wave 1.1s ease-in-out var(--phase, 0s) infinite; }
.player-loader i:nth-child(2) { --phase: .14s; }
.player-loader i:nth-child(3) { --phase: .28s; }
@keyframes player-wave { 0%, 60%, 100% { translate: 0 0; } 30% { translate: 0 -10px; } }

.player-captions {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: var(--caption-bottom, 90px);
  width: var(--caption-width, 88%);
  transform: translateX(-50%);
  pointer-events: none;
  color: #fff;
  font: 600 calc(clamp(15px, 1.75vw, 30px) * var(--cue-scale))/1.42 'Noto Sans JP', 'Hiragino Sans', system-ui, sans-serif;
  text-align: center;
  text-shadow: 0 1px 4px #000;
  white-space: pre-line;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.player-captions span {
  padding: .13em .42em;
  border-radius: .22em;
  background: var(--cue-plate);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.player-captions.replaces-english {
  top: var(--replacement-center); bottom: auto; width: var(--picture-width);
  transform: translate(-50%,-50%); display: flex; justify-content: center;
  font-weight: 500; font-size: calc(var(--replacement-font) * var(--cue-scale)); line-height: 1.25; text-shadow: none;
}
.player-captions.replaces-english span {
  display: grid; place-content: center; min-width: calc(100% * var(--replacement-width));
  max-width: 96%; min-height: var(--replacement-height); padding: .08em .45em;
  color: #fff; background: #000; border-radius: 0;
}
.player-controls {
  position: absolute;
  z-index: 4;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, calc(env(safe-area-inset-bottom) + 8px), var(--protected-bottom,0px));
  left: max(16px, env(safe-area-inset-left));
  max-width: 1100px;
  min-height: 58px;
  margin-inline: auto;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-auto-flow: column;
  grid-auto-columns: auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 18px;
  background: rgba(8, 8, 8, .58);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .28);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  backdrop-filter: blur(18px) saturate(125%);
  transform: translateY(10px);
}
.player-controls, .player-close, .player-title { opacity: 0; transition: opacity .2s ease, transform .2s ease; }
.player-controls, .player-close { pointer-events: none; }
.has-visible-controls :is(.player-controls, .player-close, .player-title),
.player-controls:has(:focus-visible), .player-close:focus-visible { opacity: 1; transform: none; }
.has-visible-controls :is(.player-controls, .player-close),
.player-controls:has(:focus-visible), .player-close:focus-visible { pointer-events: auto; }
.player-control, .player-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: background .18s ease, color .18s ease, opacity .2s ease;
}
.player-control:is(:hover, :focus-visible) { background: rgba(255,255,255,.14); }
.subtitle-control { display: flex; align-items: center; }
#toggle-captions { position: relative; }
#toggle-captions[aria-pressed='true'], #caption-options[aria-expanded='true'] { color: var(--accent); }
#toggle-captions[aria-pressed='true']::after {
  content: ''; position: absolute; bottom: 4px; width: 14px; height: 2px; border-radius: 1px; background: currentColor;
}
.caption-menu {
  position: absolute; z-index: 5; right: max(16px, calc((100% - 1100px) / 2 + 56px));
  bottom: max(83px, calc(env(safe-area-inset-bottom) + 75px), var(--protected-settings,0px)); width: min(300px, calc(100% - 32px));
  max-height: calc(100% - 96px); overflow-y: auto; overscroll-behavior: contain;
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px 12px;
  padding: 12px 14px 16px; color: #f5f4ef; background: #17191d; border: 1px solid #46474c; border-radius: 12px;
  box-shadow: 0 8px 30px #0005; color-scheme: dark;
}
.caption-menu header { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.caption-menu h3 { margin: 0; font-size: 18px; font-weight: 650; }
.caption-menu header button { width: 32px; height: 32px; color: #dddddc; font-size: 23px; }
.caption-menu label { font-size: 13px; color: #d0d0cd; }
.caption-menu select {
  min-width: 0; width: 100%; min-height: 35px; padding: 0 6px; border: 1px solid #52545a;
  border-radius: 5px; color: #f5f4ef; background: #26282d; font: inherit; font-size: 13px;
}
.caption-menu :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.player-control svg + svg,
#toggle-play[data-playing='true'] svg:first-child,
#toggle-sound[data-muted='true'] svg:first-child,
#fullscreen[aria-pressed='true'] svg:first-child { display: none; }
#toggle-play[data-playing='true'] svg + svg,
#toggle-sound[data-muted='true'] svg + svg,
#fullscreen[aria-pressed='true'] svg + svg { display: block; }
.player-close {
  position: absolute;
  z-index: 4;
  top: max(14px, calc(env(safe-area-inset-top) + 10px));
  right: max(14px, env(safe-area-inset-right));
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(8,8,8,.64);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.player-close:is(:hover, :focus-visible) { background: #35446c; }
.player-clock { min-width: 79px; color: #ffffffc2; font-size: 12px; font-variant-numeric: tabular-nums; text-align: center; white-space: nowrap; }
.player-volume { display: flex; align-items: center; gap: 4px; }
.player-timeline, .player-volume-slider { min-width: 0; height: 30px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.player-timeline { width: 100%; touch-action: none; }
.player-volume-slider { width: 72px; }
.player-status {
  position: absolute;
  z-index: 5;
  max-width: min(460px, 86%);
  padding: 12px 18px;
  border: 1px solid #fff3;
  border-radius: 16px;
  background: #080808dc;
  text-align: center;
  font-size: 14px;
  pointer-events: none;
}
.fullscreen-notice { top: max(72px, calc(env(safe-area-inset-top) + 65px)); }

@media (max-width: 640px) {
  :root { --stage-width: 100vw; }
  .stage { --gutter: 5.64%; height: 100%; aspect-ratio: auto; }
  .stage-header { top: 3.35%; }
  .shortcuts { gap: 14px; font-size: min(16px, 4cqw); }
  .wall-blur { backdrop-filter: blur(6.5px); mask-image: linear-gradient(90deg, #000 20%, transparent 53%); }
  .wall-shade { background: linear-gradient(90deg, #0008, transparent 65%), linear-gradient(180deg, transparent 45%, #0005 76%, #000b 100%); }
  .cover-copy { bottom: 7%; }
  .greeting { font-size: 6.41cqw; }
  .cover-copy h1 { font-size: 13.333cqw; }
  .cover-copy h1 span { display: block; }
  .tagline { font-size: 5.128cqw; }
  .community-picture { inset: 0; width: 100%; height: 100%; }
  .community-picture img { object-fit: cover; object-position: center; }
  .community-shade { background: linear-gradient(180deg, #0002, #0005 36%, #000b 73%, #000e); }
  .community-copy { top: auto; bottom: 7.4%; }
  .community-copy h2 { font-size: 10.256cqw; }
  .community-copy p { margin-top: 7.2cqw; max-width: none; font-size: 4.36cqw; }
  .desktop-copy { display: none; }
  .mobile-copy { display: block; }
  .works h2 { font-size: 8.72cqw; }
  .mosaic { inset-block: 11.15% 4%; grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: repeat(4,minmax(0,1fr)); gap: 9px; }
  .work-tile:nth-child(n) { grid-column: span 1; padding: 12px; }
  .work-tile:nth-child(1) { grid-column: span 2; }
  .work-tile strong { font-size: 4.87cqw; }
  .back { font-size: 16px; }
  .project-cover { inset-block: 10.48% 6.2%; }
  .case-copy { inset: 64% 5.128cqw 7.6%; }
  .case-copy h2, .project-films h2 { font-size: 9.74cqw; }
  .project-films { inset-block: 11% 7%; gap: 16px; }
  .film-choices { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .film-choice { height: min(50cqw, 31cqh); }
  .chapters { --dot: 5px; --dot-pitch: 16px; right: max(0px, calc(env(safe-area-inset-right) - 7px)); width: 22px; }
  .player-controls {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, calc(env(safe-area-inset-bottom) + 6px), var(--protected-bottom,0px));
    left: max(10px, env(safe-area-inset-left));
    min-height: 52px;
    padding: 5px 7px;
    gap: 4px;
    grid-template-columns: 40px minmax(0,1fr) auto 40px 40px;
    grid-template-rows: 22px 40px;
    grid-auto-flow: row;
    border-radius: 15px;
  }
  .player-timeline { grid-area: 1 / 1 / 2 / -1; height: 22px; }
  #toggle-play { grid-area: 2 / 1; }
  .player-clock { grid-area: 2 / 2; display: block; min-width: 0; font-size: 10px; text-align: left; }
  .subtitle-control { grid-area: 2 / 3; }
  .player-volume { grid-area: 2 / 4; }
  #fullscreen { grid-area: 2 / 5; }
  .player-controls .player-control { width: 40px; height: 40px; }
  .player-volume-slider { display: none; }
  .caption-menu { right: 10px; bottom: max(99px, calc(env(safe-area-inset-bottom) + 93px), var(--protected-settings,0px)); max-height: calc(100% - max(112px,var(--protected-settings,0px)) - 5px); }
  .player-title { left: max(16px, env(safe-area-inset-left)); }
}

@media (prefers-reduced-motion: reduce) {
  .chapters, .player-controls, .player-title, .player-close { transition: none; }
  .player[open] .player-surface, .loader-active .player-loader i { animation: none; }
}

:root {
  --paper: #f1efe8;
  --ink: #141412;
  --deck-background: var(--ink);
  --stage-width: 100vw;
  color-scheme: light;
}

.stage {
  --gutter: clamp(20px, 2.6vw, 72px);
  --header-height: clamp(46px, 9dvh, 98px);
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  color: var(--paper);
  background: var(--ink);
}
.stage.cover, .stage.works { background: var(--paper); color: var(--ink); }
.stage-header {
  position: absolute;
  inset: 0 var(--gutter) auto;
  height: var(--header-height);
}
.stage .logo img { width: clamp(55px, 5.5cqw, 110px); height: auto; }
:is(.cover, .works) .logo img { filter: brightness(0); }
.stage :is(a, button):focus-visible { outline-color: currentColor; }
.stage :is(h1, h2, strong) { font-optical-sizing: none; font-variation-settings: 'GRAD' 0; }
.stage :is(h1, h2) { font-weight: 850; letter-spacing: -.042em; }
.shortcuts, .back, .greeting, .tagline { font-size: clamp(14px, 1.45cqw, 26px); line-height: 1.1; }
.shortcuts { gap: clamp(18px, 2cqw, 42px); }
.shortcuts a:hover, .back:hover { color: inherit; text-decoration: underline; text-underline-offset: .2em; }

.cover {
  display: grid;
  grid-template-rows: var(--header-height) auto minmax(0, 1fr);
}
.cover .stage-header { position: static; grid-row: 1; padding-inline: var(--gutter); }
.cover-copy {
  position: static;
  grid-row: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: 'greeting tagline' 'title title';
  align-items: baseline;
  gap: 1.7cqh 12px;
  padding: 2cqh var(--gutter) 3.7cqh;
}
.greeting { grid-area: greeting; margin: 0; }
.tagline { grid-area: tagline; margin: 0; text-align: right; color: inherit; }
.greeting, .tagline { font-weight: 480; letter-spacing: -.035em; font-variation-settings: normal; }
.cover-copy h1 {
  grid-area: title;
  margin-left: -.045em;
  font-size: min(14.45cqw, 25.7cqh);
  line-height: .85;
  white-space: nowrap;
}
.cover-copy h1 span { display: inline; }
.cover .wall { position: relative; grid-row: 3; min-height: 0; background: var(--ink); }
.cover .wall :is(img, video) { object-position: 50% 50%; }
.wall-blur, .wall-shade, .community-shade { display: none; }

.community {
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr);
  grid-template-rows: var(--header-height) minmax(0, 1fr);
  column-gap: 3.25cqw;
  padding: 0 var(--gutter) 4cqh;
}
.community .stage-header { position: static; grid-column: 1 / -1; grid-row: 1; }
.community-picture {
  position: relative;
  inset: auto;
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.community-picture img { object-fit: cover; object-position: 50% 47%; }
.community-copy {
  position: static;
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 1cqh 0 1cqh;
}
.community-copy h2 { font-size: min(7.15cqw, 14cqh); line-height: .91; }
.community-copy p {
  max-width: 34ch;
  margin: 0;
  color: var(--paper);
  font-size: clamp(16px, min(1.65cqw, 3.5cqh), 29px);
  line-height: 1.3;
  letter-spacing: -.025em;
}
.community-copy .desktop-copy { display: none; }
.community-copy .mobile-copy { display: block; }

.works .stage-header { top: 2.75cqh; align-items: baseline; height: auto; }
.works h2 { margin-left: -.04em; font-size: min(7.5cqw, 13cqh); line-height: .94; }
.mosaic {
  inset: 19% var(--gutter) 4.5%;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 2.6cqh clamp(8px, 1cqw, 22px);
}
.mosaic .work-tile:nth-child(n) {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  grid-column: auto;
  align-items: stretch;
  gap: clamp(5px, .85cqh, 10px);
  min-height: 0;
  padding: 0;
  background: none;
}
.mosaic .work-tile:first-child { grid-row: span 2; }
.work-tile img, .case-picture, .film-choice-poster { position: static; z-index: auto; min-height: 0; }
.work-tile img { grid-row: 1; transition: none; }
.work-tile:first-child img { object-position: 69% 47%; }
.work-tile::after, .project-cover::after, .film-choice::after { content: none; }
.work-tile:hover img { transform: none; }
.work-tile strong {
  font-size: clamp(14px, 1.45cqw, 28px);
  font-weight: 585;
  line-height: 1.05;
  letter-spacing: -.025em;
}
.work-tile strong span { display: none; }
.work-tile:hover strong, .film-choice:hover strong { text-decoration: underline; text-underline-offset: .16em; }

.project-cover {
  inset: var(--header-height) 0 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: var(--ink);
}
.case-picture { grid-row: 1; object-fit: cover; object-position: center; }
.case-copy {
  position: static;
  grid-row: 2;
  flex-direction: row;
  align-items: baseline;
  gap: 24px;
  padding: 3cqh var(--gutter) 4cqh;
}
.case-copy h2, .project-films h2 { font-size: min(8cqw, 13cqh); line-height: .95; }
.case-copy h2 { margin-left: -.035em; }
.play-caption { align-items: baseline; flex: none; gap: clamp(12px, 1.5cqw, 34px); }
.play-caption span {
  display: inline-flex;
  align-items: baseline;
  gap: .5em;
  width: auto;
  min-height: unset;
  background: none;
  font-size: clamp(15px, 1.55cqw, 29px);
  font-weight: 545;
  letter-spacing: -.035em;
}
.play-caption span::before { content: ''; width: .7em; height: .72em; background: url('./media/play.svg') center / contain no-repeat; }
.project-cover:has(.cover-action:is(:hover, :focus-visible)) .play-caption span { text-decoration: underline; text-underline-offset: .16em; }
.play-caption small, .film-choice small { color: #cccac2; font-size: clamp(12px, 1.05cqw, 20px); font-weight: 420; }
.project-films { inset: var(--header-height) var(--gutter) 4cqh; justify-content: center; gap: 3.5cqh; }
.film-choices { gap: clamp(10px, 1.4cqw, 26px); }
.film-choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: baseline;
  gap: 1.2cqh 12px;
  height: auto;
  padding: 0;
  aspect-ratio: auto;
  background: none;
}
.film-choice-poster { grid-column: 1 / -1; width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 57cqh; object-fit: cover; }
.film-choice-copy { display: flex; align-items: baseline; gap: clamp(10px, 1.3cqw, 22px); }
.film-choice strong { font-size: clamp(23px, 2.65cqw, 50px); font-weight: 720; letter-spacing: -.055em; }
.film-choice-play { width: 22px; align-self: center; border: 0; border-radius: 0; }
.film-choice-play, .film-choice:is(:hover, :focus-visible) .film-choice-play { background: none; }
.film-choice-play img { width: 13px; margin: 0; }

.chapters { right: 0; mix-blend-mode: difference; }
.chapters a::before { background: rgb(255 255 255 / .56); }
.chapter-thumb { background: white; }
.player { color-scheme: dark; }

@media (max-width: 640px), (max-width: 900px) and (orientation: portrait) {
  .stage { --gutter: clamp(16px, 4.6vw, 32px); --header-height: clamp(50px, 8dvh, 80px); }
  .stage .logo img { width: clamp(51px, 13.2cqw, 82px); }
  .shortcuts, .back, .greeting, .tagline { font-size: clamp(13px, 3.55cqw, 20px); }
  .shortcuts { gap: clamp(14px, 4cqw, 26px); }
  .cover-copy { grid-template-areas: 'greeting' 'title' 'tagline'; grid-template-columns: 1fr; gap: 1.9cqh; padding-block: 2.6cqh 3cqh; }
  .cover-copy h1 { font-size: min(25.3cqw, 16cqh); line-height: .84; }
  .cover-copy h1 span { display: block; }
  .tagline { text-align: left; }
  .community { display: grid; grid-template-columns: 1fr; grid-template-rows: var(--header-height) minmax(0, 1fr) auto auto; gap: 0; padding-bottom: 3.5cqh; }
  .community-picture { grid-column: 1; grid-row: 2; }
  .community-picture img { object-position: center 12%; }
  .community-copy { display: contents; }
  .community-copy h2 { grid-row: 3; margin: 2.5cqh 0 1.6cqh; font-size: min(12.1cqw, 9cqh); line-height: .92; }
  .community-copy p { grid-row: 4; max-width: 39ch; font-size: clamp(14px, min(4cqw, 2.7cqh), 21px); }
  .works .stage-header { top: 2.7cqh; align-items: center; }
  .works h2 { font-size: min(11.4cqw, 7.5cqh); }
  .mosaic { inset: 12% var(--gutter) 3%; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 1.17fr repeat(3, minmax(0, 1fr)); gap: 1.35cqh 9px; }
  .mosaic .work-tile:first-child { grid-column: 1 / -1; grid-row: 1; }
  .work-tile strong { font-size: clamp(12px, 3.55cqw, 20px); }
  .case-copy { flex-direction: column; gap: 2.2cqh; padding-block: 2.6cqh 4cqh; }
  .case-copy h2, .project-films h2 { font-size: min(13.2cqw, 9.5cqh); }
  .play-caption { width: 100%; justify-content: space-between; }
  .play-caption span { font-size: clamp(16px, 4cqw, 24px); }
  .project .case-picture { object-fit: contain; }
  .project-films { gap: 2.25cqh; }
  .film-choices { grid-template-columns: 1fr; gap: 2.15cqh; }
  .film-choice { gap: 1cqh 8px; }
  .film-choice-poster { max-height: 27cqh; }
  .film-choice strong { font-size: clamp(23px, 6.5cqw, 36px); }
  .chapters { --dot: 4px; --dot-pitch: 14px; width: 16px; }
}

@media (max-height: 420px) and (orientation: landscape) {
  .stage { --header-height: 38px; }
  .stage .logo img { width: 46px; }
  .cover-copy { grid-template-areas: 'greeting tagline' 'title title'; grid-template-columns: 1fr auto; gap: 2cqh; padding-block: 0 3cqh; }
  .cover-copy h1 { font-size: min(14.8cqw, 25cqh); }
  .cover-copy h1 span { display: inline; }
  .tagline { text-align: right; }
}

@font-face {
  font-family: "Barlow Condensed"; src: url('./media/barlow-condensed-black.woff2') format('woff2');
  font-style: normal; font-weight: 900; font-display: swap;
}
@font-face {
  font-family: "Screening Druk";
  src: local("DrukWideTrial-BoldItalic"), local("Druk Wide Trial Bold Italic");
  font-style: italic; font-weight: 700; font-display: swap;
}

:root { --theatre: #000; --deck-background: #000; --screen-type: #f2f0e9; --screen-muted: #a5a5a0; --signal: #c6ff45; --screen-safe-top: env(safe-area-inset-top, 0px); color-scheme: dark; }
:root.comparing { --screen-safe-top: 0px; }
.stage, .stage.cover, .stage.works {
  --gutter: max(clamp(22px, 3.1vw, 78px), calc(env(safe-area-inset-left) + 5px), calc(env(safe-area-inset-right) + 5px));
  --header-height: calc(var(--screen-safe-top) + clamp(44px, 8dvh, 84px));
  --opening-footer: max(20.28cqh, calc(8.2cqw + 38px));
  color: var(--screen-type);
  background: var(--theatre);
}
.stage .logo img { width: clamp(50px, 4.8cqw, 92px); filter: none; }
.stage :is(h1, h2) { font-weight: 490; letter-spacing: -.052em; }
.shortcuts, .back, .tagline, .greeting { font-size: clamp(14px, 1.3cqw, 23px); }
.stage .greeting, .tagline { font-weight: 430; }
.greeting, .back { color: var(--screen-muted); }
.cover .greeting { color: var(--signal); }
.cover, .community { grid-template-rows: var(--header-height) minmax(0,1fr) var(--opening-footer); }
.cover .wall { grid-row: 2; background: var(--theatre); overflow: hidden; }
.cover .wall :is(img, video) {
  inset: 0 auto auto 50%; width: auto; max-width: none; height: 100%;
  transform: translateX(-50%); object-fit: contain;
}
.cover-copy {
  grid-row: 3; grid-template-columns: minmax(0,1fr) auto;
  grid-template-areas: 'greeting greeting' 'title tagline';
  align-content: end; align-items: end; gap: clamp(7px, 1.6cqh, 16px) 16px;
  padding: 0 var(--gutter) 5.55cqh;
}
.cover-copy h1 { line-height: 0; margin: 0; }
.cover-copy h1 img { display: block; width: 71.7cqw; max-width: 100%; height: auto; }
.tagline { align-self: end; text-align: right; }

.community {
  grid-template-columns: minmax(0, 1fr);
  padding: 0; gap: 0;
}
.community .stage-header { padding: 0 var(--gutter); }
.community-picture { grid-area: 2 / 1; }
.community-picture img { object-position: 51% 42%; }
.community-copy {
  grid-area: 3 / 1; display: grid; grid-template-columns: minmax(0,1.82fr) minmax(0,1fr);
  align-items: start; align-content: end; gap: 4cqw; padding: 2.5cqh var(--gutter) 3.2cqh;
}
.community-copy h2 { margin: 0; line-height: 0; }
.community-copy h2 img { display: block; width: min(100%, 59cqw, 114cqh); height: auto; }
.community-copy p { align-self: start; max-width: 44ch; font-size: max(14px, 1.37cqw); line-height: 1.21; color: var(--screen-muted); }
.community-copy .desktop-copy { display: block; }
.community-copy .mobile-copy { display: none; }

.works .stage-header { inset: 0 var(--gutter) auto; height: var(--header-height); align-items: center; }
.works h2 { margin: 0; font-size: clamp(19px, 2.25cqw, 42px); letter-spacing: -.035em; }
.works { display: grid; grid-template-rows: var(--header-height) minmax(0,1fr) auto; }
.work-feature, .screening-watch {
  display: block; position: relative; isolation: isolate; width: 100%; min-height: 0;
  background: var(--theatre); overflow: hidden; text-align: left; padding: 0;
}
.work-feature { grid-row: 2; inset: auto; align-self: center; height: min(42.1875cqw, 100%); min-width: 0; }
.work-feature > img, .film-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.work-feature::after, .screening-watch::after {
  content: ''; position: absolute; z-index: 1; inset: 44% 0 0; pointer-events: none;
  background: linear-gradient(transparent, rgb(0 0 0 / .46));
}
.feature-caption { position: absolute; z-index: 2; inset: auto var(--gutter) 1.6cqh; display: flex; align-items: end; justify-content: space-between; gap: 14px; }
.feature-title, .film-display {
  min-width: 0; font-size: clamp(24px, min(6.25cqw, 11.11cqh), 165px); line-height: 0;
}
.poster-lettering { display: block; max-width: 100%; }
.poster-lettering img { display: block; width: auto; max-width: 100%; height: 1.62em; object-fit: contain; object-position: left bottom; }
.feature-time, .film-length { font-size: clamp(13px,1.1cqw,20px); white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--signal); }
.mosaic {
  position: relative; inset: auto; grid-row: 3; padding: 1.3cqh var(--gutter) 2.5cqh;
  grid-template-columns: repeat(7,minmax(0,1fr)); grid-template-rows: auto; gap: clamp(7px, 1cqw, 18px);
  --tile-inset: clamp(6px, .625cqw, 16px);
  --tile-shade: linear-gradient(to bottom, transparent 36%, rgb(0 0 0 / .29) 54%, rgb(0 0 0 / .68) 72%, rgb(0 0 0 / .86));
}
.mosaic .work-tile:nth-child(n) {
  grid-area: auto; grid-template: minmax(0,1fr) / minmax(0,1fr); align-self: end;
  width: 100%; aspect-ratio: 161 / 105; max-height: 20cqh; overflow: hidden; gap: 0;
}
.mosaic .work-tile img { grid-area: 1 / 1; display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.mosaic .work-tile::after { content: ''; position: absolute; inset: 0; z-index: 1; background: var(--tile-shade); pointer-events: none; }
.work-tile strong { color: var(--screen-muted); font-size: clamp(10px,.95cqw,18px); }
.work-tile strong {
  font-family: "Screening Druk", "Barlow Condensed", sans-serif;
  font-weight: 700; font-style: italic; letter-spacing: -.033em;
}
.player-title { font-family: "Roboto Flex", sans-serif; font-weight: 600; letter-spacing: -.01em; }
.mosaic .work-runtime { display: none; }
.mosaic .index-title {
  position: absolute; z-index: 2; inset: auto var(--tile-inset) var(--tile-inset); pointer-events: none;
  min-width: 0; color: var(--screen-type); font-size: clamp(10px,1.015625cqw,18px); line-height: 1;
}
.mosaic .index-title .title-line { display: block; margin: 0; white-space: nowrap; }
@supports (mask-image: url("")) {
  .mosaic .index-title .title-line { height: 0; overflow: hidden; }
  .mosaic .index-title::before {
    content: ''; display: block; width: 12.385em; max-width: 100%; height: 2.308em; background: currentColor;
    mask: var(--index-art) left center / contain no-repeat;
  }
}
.mosaic .work-tile:focus-visible { outline: 2px solid var(--screen-type); outline-offset: 2px; }
@media (forced-colors: active) { .mosaic .work-tile:focus-visible { outline: 2px solid Highlight; } }
.mosaic .work-tile:is(.is-featured,:hover,:focus-visible) strong { color: var(--signal); text-decoration: none; }

.screening-project {
  position: absolute; inset: 0; margin: 0;
  display: grid; grid-template-rows: minmax(0,1fr) auto minmax(0,1fr);
  --caption-space: clamp(78px, 12.5cqh, 148px);
}
.screening-picture {
  position: relative; width: 100%;
  grid-row: 2; aspect-ratio: 64 / 27; min-height: 0;
  max-height: calc(100cqh - 2 * max(var(--header-height), var(--caption-space)));
}
.screening-watch { width: 100%; height: 100%; cursor: pointer; }
.with-trailers .film-display { max-width: calc(100% - 2*var(--gutter) - 170px); }
.film-display { position: absolute; z-index: 2; inset: auto auto 2.25cqh var(--gutter); max-width: calc(100% - 2*var(--gutter) - 70px); }
.film-play {
  position: absolute; z-index: 2; right: var(--gutter); bottom: 2.3cqh;
  display: grid; place-items: center; width: clamp(36px,3.8cqw,68px); aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.75); border-radius: 50%;
}
.film-play img { display: block; width: 29%; height: auto; margin-left: 5%; }
.screening-watch:hover .film-play, .film-play:focus-visible { background: #ffffff22; }
.film-play:focus-visible { outline: 2px solid white; outline-offset: 3px; }
.screening-logo, .work-navigation {
  position: fixed; z-index: 4;
  top: calc(var(--version-bar-height,0px) + var(--screen-safe-top) + clamp(22px,4dvh,42px)); transform: translateY(-50%);
}
.screening-logo { right: max(clamp(16px,1.953125vw,60px),env(safe-area-inset-right)); display: grid; align-items: center; min-height: 44px; }
.screening-logo img { display: block; width: clamp(50px,4.765625vw,92px); height: auto; }
.works #work-title { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); }
.work-navigation {
  --large: clamp(19px,2.25vw,42px); --small: clamp(14px,1.3vw,23px);
  left: max(clamp(22px,3.1vw,78px),env(safe-area-inset-left)); min-height: 44px;
  display: inline-flex; align-items: center; padding-left: 0; white-space: nowrap; text-decoration: none;
  color: var(--screen-type); font-size: var(--large); font-weight: 490; line-height: 1; letter-spacing: -.035em;
  transition: font-size .28s ease-out, font-weight .28s ease-out, padding-left .28s ease-out, color .28s ease-out, letter-spacing .28s ease-out;
}
.work-navigation[data-state='index'] { pointer-events: none; }
.work-navigation[data-state='case'] { padding-left: 1.45em; color: var(--screen-muted); font-weight: 400; font-size: var(--small); letter-spacing: 0; }
.work-nav-arrow {
  position: absolute; left: 0; opacity: 0; transform: translateX(-4px); font-size: var(--small);
  transition: opacity .22s ease-out, transform .28s ease-out;
}
.work-navigation[data-state='case'] .work-nav-arrow { opacity: 1; transform: none; }
.work-navigation:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.trailer-switch {
  position: absolute; z-index: 3; right: calc(var(--gutter) + clamp(36px,3.8cqw,68px) + 12px);
  bottom: 2.3cqh; height: clamp(36px,3.8cqw,68px); display: flex; align-items: center; gap: 6px;
}
.trailer-switch button {
  display: grid; place-items: center; width: clamp(34px,3cqw,45px); aspect-ratio: 1;
  color: white; background: rgb(10 10 10 / .8); border: 1px solid rgb(255 255 255 / .7); border-radius: 50%;
  font-size: clamp(13px,1.1cqw,17px); font-weight: 550; line-height: 1; font-variant-numeric: tabular-nums;
}
.trailer-switch button:hover, .trailer-switch button:focus-visible { border-color: var(--screen-type); }
.trailer-switch button[aria-pressed='true'] { color: var(--theatre); background: var(--signal); border-color: var(--signal); }
[data-switch='compact'] .trailer-switch {
  --trailer-width: clamp(70px, 6.25cqw, 124px);
  --trailer-height: clamp(34px, 2.8125cqw, 52px);
  --trailer-target: max(44px, calc(var(--trailer-height) + 4px));
  --trailer-type: clamp(13px, 1.09375cqw, 20px);
  --trailer-radius: clamp(8px, .625cqw, 12px);
  left: calc(var(--gutter) + min(21.64cqw,38.47cqh)); right: auto;
  bottom: calc(2.25cqh + min(.7cqw,1.24cqh)); height: var(--trailer-target); gap: clamp(6px,.625cqw,12px);
}
[data-switch='compact'] .trailer-switch button {
  width: var(--trailer-width); height: var(--trailer-target); padding: 0; border: 0; border-radius: var(--trailer-radius);
  color: white; background: none; font-size: var(--trailer-type); font-weight: 550;
}
[data-switch='compact'] .trailer-switch span {
  display: grid; place-items: center; width: 100%; height: var(--trailer-height); border: 1px solid rgb(255 255 255 / .58);
  border-radius: var(--trailer-radius); color: white; background: rgb(10 10 10 / .84);
}
[data-switch='compact'] button[aria-pressed='true'] span { color: #101010; background: var(--signal); border-color: var(--signal); }
[data-switch='compact'] button:is(:hover,:focus-visible) span { border-color: white; }
[data-switch='pill'] .trailer-switch { gap: 0; }
[data-switch='pill'] .trailer-switch button {
  width: 68px; height: 36px; aspect-ratio: auto; border-radius: 0 24px 24px 0; font-size: 13px;
}
[data-switch='pill'] .trailer-switch button:first-child { border-radius: 24px 0 0 24px; }
[data-switch='stills'] .trailer-switch button {
  position: relative; overflow: hidden; width: 62px; height: 44px; border-radius: 4px; isolation: isolate;
  place-items: end start; padding: 4px 6px; color: white; background: #111;
}
[data-switch='stills'] .trailer-switch img { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: cover; }
[data-switch='stills'] .trailer-switch span { padding: 2px 3px; border-radius: 2px; background: #000b; }
[data-switch='stills'] .trailer-switch button[aria-pressed='true'] { outline: 2px solid var(--signal); outline-offset: -2px; }
.trailer-switch button:focus-visible { outline: 2px solid white; outline-offset: 3px; }
.screening-meta {
  grid-row: 3; align-self: start; padding: clamp(12px, 2.65cqh, 26px) var(--gutter) 4px;
  display: grid; grid-template-columns: minmax(0,1fr) auto;
  gap: clamp(6px, 1cqh, 12px) 16px; align-items: baseline;
}
.case-name, .contact-status, .clipboard-field {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.clipboard-field { position: fixed; inset: 0 auto auto 0; }
.film-description {
  grid-column: 1; min-width: 0; max-width: 81.25cqw; color: var(--screen-muted);
  font-size: clamp(14px, 1.25cqw, 21px); font-weight: 400; line-height: 1.35; letter-spacing: -.01em;
}
.contact { --contact-light: var(--signal); }
.contact-content { display: contents; }
.contact-still { position: absolute; inset: 0; pointer-events: none; }
.contact-still img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .25; }
.contact #contact-title {
  position: absolute; inset: auto var(--gutter) 49.6%; display: grid; justify-items: center;
}
.contact #contact-title img { width: min(57.1cqw,106cqh); height: auto; }
.contact-links {
  position: absolute; inset: 55.28% var(--gutter) auto; display: flex; justify-content: center; align-items: center; gap: clamp(12px,1.25cqw,24px);
}
.contact-divider { width: 1px; height: 1.45em; background: rgb(242 240 233 / .28); }
.contact-link {
  --proximity: 0; --other-contact: 0; --icon-size: 1em; --icon-gap: .38em;
  position: relative; display: inline-flex; justify-content: center; align-items: center; gap: var(--icon-gap); min-height: 44px;
  color: color-mix(in srgb, var(--contact-light) calc(var(--proximity) * 100%), var(--screen-type));
  opacity: calc(1 - var(--other-contact) * .25);
  font-size: clamp(16px,1.66cqw,32px); line-height: 1.15; letter-spacing: -.01em; font-weight: 400;
  transition: color .25s, opacity .25s;
}
.contact-link:focus-visible { outline: 2px solid var(--contact-light); outline-offset: 3px; }
.contact-link svg { width: var(--icon-size); height: var(--icon-size); flex: none; }
.contact-label { display: inline-block; position: relative; }
.contact-label::after {
  content: ''; position: absolute; inset: auto 0 -.08em; height: 1px;
  background: var(--contact-light); transform: scaleX(var(--proximity)); transform-origin: left center; transition: transform .25s;
}
.contact-link small {
  position: absolute; left: 0; top: calc(100% + clamp(9px, .65cqw, 13px)); white-space: nowrap;
  font: 500 10px/1.25 "Roboto Flex", sans-serif; letter-spacing: .14em; text-transform: uppercase;
  pointer-events: none; opacity: var(--proximity); color: var(--contact-light); transition: opacity .25s;
}
@media (prefers-reduced-motion: reduce) {
  .contact-link, .contact-label::after, .contact-link small, .work-navigation, .work-nav-arrow, .mosaic .work-tile:nth-child(n) { transition: none; }
}
.chapters { right: env(safe-area-inset-right); mix-blend-mode: normal; }
.chapter-thumb { background: var(--signal); }
.player { --accent: var(--signal); }

@media (min-width: 641px) and (orientation: landscape) {
  .stage.community { grid-template-rows: var(--header-height) minmax(0,1fr) auto; }
  .community-copy .desktop-copy { font-size: clamp(14px, min(1.37cqw, 2.44cqh), 32px); }
}

@media (min-width: 901px), (min-width: 641px) and (orientation: landscape) {
  .works:is([data-layout='grid'],[data-layout='feature']) {
    grid-template-rows: var(--header-height) minmax(0,1fr);
  }
  .works:is([data-layout='grid'],[data-layout='feature']) .mosaic {
    grid-row: 2; min-height: 0; padding: 1cqh var(--gutter) 2.8cqh;
    gap: clamp(8px,.8cqw,18px); --tile-inset: clamp(12px,1.25cqw,32px);
    --tile-shade: linear-gradient(transparent 47%, rgb(0 0 0 / .22) 69%, rgb(0 0 0 / .76));
  }
  .works:is([data-layout='grid'],[data-layout='feature']) .work-tile {
    min-height: 0; max-height: none; aspect-ratio: auto; align-self: stretch;
  }
  .works[data-layout='grid'] .mosaic {
    grid-template-columns: repeat(12,minmax(0,1fr)); grid-template-rows: minmax(0,1.1fr) minmax(0,1fr);
  }
  .works[data-layout='grid'] .work-tile:nth-child(-n+3) { grid-column: span 4; }
  .works[data-layout='grid'] .work-tile:nth-child(n+4) { grid-column: span 3; }
  .works[data-layout='feature'] .mosaic {
    grid-template-columns: minmax(0,2fr) repeat(3,minmax(0,1fr)); grid-template-rows: repeat(2,minmax(0,1fr));
  }
  .works[data-layout='feature'] .work-tile:first-child { grid-row: 1 / 3; }
  .works:is([data-layout='grid'],[data-layout='feature']) .index-title {
    font-size: clamp(16px,1.5625cqw,40px);
  }
  .works[data-layout='grid'] .work-tile:nth-child(-n+3) .index-title,
  .works[data-layout='feature'] .work-tile:first-child .index-title { font-size: clamp(22px,2.1875cqw,58px); }
  .works:is([data-layout='grid'],[data-layout='feature']) .index-title::before { height: 2.3em; width: 100%; mask-position: left bottom; }
  .works:is([data-layout='grid'],[data-layout='feature']) .work-tile:is(:hover,:focus-visible) .index-title { color: var(--screen-type); }
  .screening-watch:has(.film-photo[data-still='ballad-06']) .film-display { transform: scale(.68); transform-origin: left bottom; }
}
@media (min-width: 901px) and (min-aspect-ratio: 2/1) {
  .community-picture img { object-position: 51% 52%; }
  .community-copy .desktop-copy { max-width: 22em; }
}

@media (max-width: 640px), (max-width: 900px) and (orientation: portrait) {
  .stage, .stage.cover, .stage.works {
    --gutter: max(clamp(16px, 4.6vw, 30px), calc(env(safe-area-inset-left) + 5px), calc(env(safe-area-inset-right) + 5px));
    --header-height: calc(var(--screen-safe-top) + clamp(46px,7.5dvh,78px));
    --opening-footer: max(23.925cqh, calc(11cqw + 135px));
  }
  .stage .logo img { width: clamp(48px, 12.5cqw, 75px); }
  .cover-copy { grid-template-areas: 'greeting' 'title' 'tagline'; grid-template-columns: minmax(0,1fr); align-content: start; gap: clamp(5px,.9cqh,10px); padding-block: 2.82cqh 0; }
  .cover-copy h1 img { width: 100%; }
  .tagline { margin-top: clamp(6px,1cqh,10px); text-align: left; }
  .works { grid-template-rows: var(--header-height) minmax(0,1fr); }
  .works .work-feature { display: none; }
  .works .mosaic {
    grid-row: 2; grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: minmax(0,1.1fr) repeat(3,minmax(0,1fr));
    min-height: 0; padding: 1cqh var(--gutter) max(2.4cqh,env(safe-area-inset-bottom)); gap: 1.2cqh 9px;
    --tile-inset: clamp(7px, 2.3cqw, 14px);
    --tile-shade: linear-gradient(to bottom, transparent 46%, rgb(0 0 0 / .26) 66%, rgb(0 0 0 / .61) 78%, rgb(0 0 0 / .82));
  }
  .mosaic .work-tile:nth-child(n) {
    aspect-ratio: auto; align-self: stretch; min-height: 0; max-height: none;
  }
  .mosaic .work-tile:first-child { grid-column: 1 / -1; }
  .mosaic .work-tile .index-title { font-size: clamp(10px, 3.08cqw, 18px); }
  .mosaic .work-tile:is(.is-featured,:hover,:focus-visible) .index-title { color: var(--screen-type); }
  .mosaic .index-title::before { width: 100%; height: 2em; mask-image: var(--index-mobile); mask-position: left bottom; }
  .mosaic .work-tile:first-child .index-title { bottom: calc(var(--tile-inset) + 1px); font-size: clamp(13px, 4.36cqw, 30px); }
  .mosaic .work-tile:first-child .index-title::before { width: 100%; height: .764706em; }
  @supports not (mask-image: url("")) {
    .mosaic .work-tile:first-child .title-line { display: inline; }
  }
  .mosaic .work-runtime { display: none; }
  .screening-project { grid-template-rows: var(--header-height) minmax(0,min(133.333cqw,calc(100% - var(--header-height) - max(100px,14cqh)))) 1fr; }
  .screening-picture { height: 100%; max-height: none; aspect-ratio: auto; }
  .film-display { font-size: clamp(27px,8.46cqw,72px); }
  .long-lettering img { height: 2.48em; }
  .feature-caption { bottom: 12px; }
  .film-display { bottom: 3.1cqh; max-width: calc(100% - 2*var(--gutter)); }
  .film-play { inset: 50% auto auto 50%; transform: translate(-50%,-50%); width: clamp(44px,12.3cqw,64px); background: rgb(0 0 0 / .25); }
  .screening-meta { gap: 7px 18px; align-items: start; padding-top: 2.55cqh; }
  .screening-meta .film-length { padding-top: 2px; }
  .film-description { max-width: 100%; }
  .screening-logo, .work-navigation { top: calc(var(--version-bar-height,0px) + var(--screen-safe-top) + clamp(23px,3.78dvh,39px)); }
  .screening-logo { right: max(clamp(10px,2.5641vw,24px),env(safe-area-inset-right)); }
  .screening-logo img { width: clamp(48px,12.5641vw,75px); }
  .work-navigation { --large: clamp(19px,4.87vw,32px); --small: clamp(14px,3.55vw,20px); left: max(clamp(16px,4.6vw,30px),env(safe-area-inset-left)); }
  .with-trailers .film-display { max-width: calc(100% - 2*var(--gutter)); }
  .with-trailers .screening-picture { --switch-width: 95px; --play-size: clamp(44px,12.3cqw,64px); }
  .with-trailers [data-switch='pill'] { --switch-width: 136px; }
  .with-trailers [data-switch='stills'] { --switch-width: 131px; }
  .with-trailers .film-play { left: calc(50% + (var(--switch-width) + 12px) / 2); }
  .trailer-switch { top: 50%; left: calc(50% - (var(--play-size) + 12px) / 2); bottom: auto; right: auto; transform: translate(-50%,-50%); height: 46px; gap: 7px; }
  .trailer-switch button { width: 44px; }
  [data-switch='pill'] .trailer-switch button { height: 44px; }
  [data-switch='compact'] .trailer-switch {
    --trailer-width: 70px; --trailer-height: 32px; --trailer-target: 44px; --trailer-type: 13px; --trailer-radius: 8px;
    top: auto; bottom: calc(3.1cqh + 1.62 * clamp(27px,8.46cqw,72px) + 15.5px);
    left: var(--gutter); right: auto; transform: none; gap: 6px;
  }
}

@media (max-width: 900px) and (orientation: portrait) {
  .stage.community { grid-template-rows: var(--header-height) minmax(0,1fr) auto; }
  .community-picture img { object-position: center 42%; }
  .community-copy { display: contents; }
  .community-copy h2 {
    position: relative; grid-area: 2 / 1; align-self: end; justify-self: start;
    margin: 0 var(--gutter) clamp(18px, 3.2cqh, 36px);
  }
  .community-copy h2 img { width: min(calc(100cqw - 2 * var(--gutter)), 76cqh, 650px); filter: brightness(0); }
  .community-copy .mobile-copy {
    display: block; grid-area: 3 / 1; max-width: 44ch; box-sizing: content-box;
    padding: clamp(16px,2.7cqh,30px) var(--gutter) max(clamp(24px,5cqh,60px),env(safe-area-inset-bottom));
    margin: 0; font-size: clamp(14px,3.65cqw,20px); line-height: 1.3;
  }
  .community-copy .desktop-copy { display: none; }

  .contact-content {
    position: absolute; inset: 49% 0 auto; transform: translateY(-50%);
    display: grid; gap: clamp(20px,3.8cqh,38px); width: min(81cqw,460px); margin-inline: auto;
  }
  .contact #contact-title { position: static; margin: 0; }
  .contact #contact-title img { display: block; width: 100%; }
  .contact-links { position: static; display: grid; grid-template-columns: minmax(0,1fr); align-items: stretch; gap: 0; }
  .contact-divider { width: 100%; height: 1px; background: rgb(242 240 233 / .21); }
  .contact-link {
    min-height: clamp(52px,7.5cqh,66px); justify-content: start; gap: 10px;
    font-size: clamp(15px,4.36cqw,22px); text-align: left;
  }
  .contact-link svg { width: 20px; height: 20px; }
  .contact-label { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
  .contact-label::after { content: none; }
  .contact-link small {
    position: static; opacity: 1; color: var(--screen-muted);
    font-size: 10px; line-height: 1.2; letter-spacing: .085em;
  }
  .contact-link:is(:active, :focus-visible, [data-pressed], [data-feedback]),
  .contact-link:is(:active, :focus-visible, [data-pressed], [data-feedback]) small { color: var(--contact-light); }
  .contact-link:focus-visible { outline-offset: 1px; }
}
@media (max-height: 480px) and (orientation: landscape) {
  .stage, .stage.cover { --opening-footer: clamp(96px,32cqh,152px); }
  .cover-copy { gap: 5px 16px; padding-bottom: 2cqh; }
  .cover-copy h1 img { width: min(68cqw,135cqh); }
}

.works .stage-header:has(.layout-picker) { justify-content: center; z-index: 5; pointer-events: none; }
.stage > .stage-header { padding-block-start: var(--screen-safe-top); }
.layout-picker {
  pointer-events: auto; max-width: 39%; min-height: 30px; padding: 3px 5px; border: 0;
  color: var(--screen-muted); background: var(--theatre); font: inherit; font-size: clamp(12px,1.1cqw,16px);
}
.layout-picker:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.works[data-layout='marquee'] {
  display: grid; grid-template-rows: var(--header-height) minmax(0,1fr) auto;
  --shelf-gap: clamp(8px,.8cqw,16px);
  --shelf-card-width: min(calc((100cqw - 2 * var(--gutter)) * .235), 45cqh);
}
.marquee-hero {
  grid-row: 2; position: relative; isolation: isolate; min-height: 0; overflow: hidden; display: flex;
  align-items: flex-end; padding: 0 var(--gutter) clamp(18px,4.3cqh,58px); color: var(--screen-type);
}
.marquee-hero > img, .marquee-hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.marquee-hero > img { z-index: -2; object-fit: cover; }
.marquee-photo:is([data-framing='inset'], [data-framing='raised']) {
  bottom: auto; height: 74%; mask-image: linear-gradient(to bottom, #000 var(--fade-start, 80%), transparent 100%);
}
.marquee-photo[data-framing='raised'] { transform: translateY(-20%); --fade-start: 83%; }
.marquee-hero::after {
  content: ''; z-index: -1;
  background: linear-gradient(to top,#000,transparent 47%),linear-gradient(to right,rgb(0 0 0 / .83),rgb(0 0 0 / .44) 38%,transparent 75%);
}
.marquee-hit { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; color: inherit; }
.marquee-hit:focus-visible { outline: 2px solid var(--screen-type); outline-offset: -3px; }
.marquee-copy { position: relative; z-index: 2; max-width: min(52cqw,850px); pointer-events: none; }
.marquee-title { font-size: clamp(36px,min(5.45cqw,9.4cqh),136px); line-height: 0; margin: 0; }
.marquee-title .poster-lettering img { width: auto; height: 1.74em; max-width: 100%; object-position: left bottom; }
.marquee-copy .marquee-description {
  max-width: 43ch; margin: clamp(8px,1.35cqh,19px) 0 clamp(12px,1.65cqh,22px); color: #e1dfda;
  font-size: clamp(14px,1.25cqw,23px); line-height: 1.31; text-wrap: balance;
}
.marquee-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.marquee-action {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; gap: .52em; padding: .5em 1.06em;
  border: 1px solid transparent; border-radius: 6px; color: var(--theatre); background: var(--screen-type);
  font-size: clamp(14px,1.18cqw,20px); font-weight: 580; line-height: 1; pointer-events: auto;
}
.marquee-action svg { width: .83em; height: .83em; flex: none; }
.marquee-action[aria-pressed='false'] { background: rgb(18 18 18 / .76); border-color: rgb(255 255 255 / .55); color: var(--screen-type); }
.marquee-action:focus-visible { outline: 2px solid var(--screen-type); outline-offset: 3px; }
.marquee-shelf { grid-row: 3; min-width: 0; background: var(--theatre); padding: .8cqh 0 max(2.8cqh,env(safe-area-inset-bottom)); }
.shelf-header { height: clamp(32px,4.6cqh,54px); display: flex; align-items: center; justify-content: space-between; margin: 0 var(--gutter) .6cqh; }
.shelf-header h3 { font: 530 clamp(16px,1.45cqw,29px)/1 "Roboto Flex",sans-serif; margin: 0; letter-spacing: -.025em; }
.shelf-controls { display: flex; align-items: center; }
.shelf-controls button { display: grid; place-items: center; min-width: 44px; min-height: 44px; color: var(--screen-type); font: 400 clamp(25px,2cqw,34px)/1 "Roboto Flex",sans-serif; }
.shelf-controls button:disabled { opacity: .23; cursor: default; }
.works[data-layout='marquee'] .marquee-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: var(--shelf-card-width); grid-template: auto / none;
  align-items: start; gap: var(--shelf-gap); margin: 0; padding: 3px var(--gutter);
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; scrollbar-width: none;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); --tile-inset: clamp(9px,1cqw,20px);
}
.works[data-layout='marquee'] .marquee-rail::-webkit-scrollbar { display: none; }
.works[data-layout='marquee'] .marquee-rail .work-tile:nth-child(n) {
  grid-area: auto; height: auto; max-height: none; aspect-ratio: 16 / 9; align-self: start; scroll-snap-align: start;
}
.works[data-layout='marquee'] .marquee-rail .index-title {
  inset: auto var(--tile-inset) var(--tile-inset); font-size: clamp(14px,1.39cqw,27px); color: var(--screen-type);
}
.works[data-layout='marquee'] .marquee-rail .index-title::before {
  width: min(100%,12.385em); height: 2.308em; mask-image: var(--index-art); mask-position: left bottom;
}
@media (max-width: 640px), (max-width: 900px) and (orientation: portrait) {
  .works[data-layout='marquee'] { --shelf-card-width: min(calc((100cqw - 2 * var(--gutter)) * .74), 46cqh); }
  .marquee-copy { max-width: min(100%,38rem); }
  .marquee-hero { padding-bottom: clamp(12px,2.8cqh,22px); }
  .marquee-hero::after { background: linear-gradient(to top,#000 1%,rgb(0 0 0 / .59) 35%,transparent 76%); }
  .marquee-title { font-size: clamp(30px,9.4cqw,63px); }
  .marquee-title .long-lettering img { height: 2.43em; }
  .marquee-copy .marquee-description { font-size: clamp(14px,3.65cqw,19px); }
  .works[data-layout='marquee'] .marquee-rail .index-title { font-size: clamp(14px,4.2cqw,23px); }
}
@media (max-height: 450px) and (orientation: landscape) {
  .marquee-hero { padding-bottom: 2cqh; }
  .marquee-title { font-size: clamp(20px,6.5cqh,30px); }
  .marquee-copy { max-width: 72cqw; }
  .marquee-copy .marquee-description { font-size: 13px; line-height: 1.18; margin-block: 5px; }
}
@media (max-height: 350px) and (orientation: landscape) {
  .works[data-layout='marquee'] { --shelf-card-width: min(23cqw, 36cqh); }
}
@media (max-width: 300px) {
  .stage.works[data-layout='marquee'] { --gutter: max(12px, env(safe-area-inset-left), env(safe-area-inset-right)); }
  .marquee-copy .marquee-description { font-size: 13px; }
}

.works[data-layout='marquee'] .marquee-rail .work-tile { text-align: left; }
.works[data-layout='marquee'] .marquee-rail .work-tile[aria-current='true'] .index-title {
  color: var(--signal);
}

.marquee-copy .marquee-description { max-width: 100%; text-wrap: initial; }
.marquee-description > span { display: block; }
html:lang(ja) { font-family: "Roboto Flex", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif; }
html:lang(ja) .community-copy p { line-height: 1.48; }
html:lang(ja) .marquee-description { line-height: 1.48; }

.site-language-trigger {
  position: absolute; z-index: 4; top: calc(var(--screen-safe-top) + clamp(22px,4dvh,42px));
  right: calc(max(clamp(16px,1.953125vw,60px),env(safe-area-inset-right)) + clamp(50px,4.765625vw,92px) + 10px);
  transform: translateY(-50%); min-width: 44px; min-height: 44px; color: var(--screen-muted);
  font: 570 clamp(13px,1vw,16px)/1 "Roboto Flex", sans-serif; letter-spacing: .045em;
}
.slide[inert] .site-language-trigger { visibility: hidden; }
.site-language-trigger:is(:hover,:focus-visible) { color: var(--signal); }
.site-languages {
  position: fixed; inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: var(--theatre); color: var(--screen-type);
}
.site-languages::backdrop { background: #000; }
.language-inner {
  --language-edge: max(clamp(22px, 5vw, 96px), env(safe-area-inset-left), env(safe-area-inset-right));
  position: relative; min-height: 100%; display: grid; align-content: center;
  padding: max(65px,calc(env(safe-area-inset-top) + 46px)) var(--language-edge) max(28px,env(safe-area-inset-bottom));
}
.language-wordmark {
  position: absolute; top: max(22px,calc(env(safe-area-inset-top) + 12px)); right: var(--language-edge);
  width: clamp(49px,5.4vw,96px); height: auto;
}
.language-choices { width: min(100%,40rem); margin-inline: auto; }
.language-choices h2 { margin: 0 0 clamp(22px,4.6vh,58px); color: var(--screen-muted); font: 470 clamp(16px,1.55vw,24px)/1.3 "Roboto Flex",sans-serif; }
.language-choices h2:lang(ja), .language-list button:lang(ja) { font-family: "Hiragino Sans","Yu Gothic",Meiryo,sans-serif; }
.language-list { display: grid; }
.language-list button {
  display: block; min-height: 48px; width: 100%; padding: clamp(8px,1.7vh,20px) 0;
  border-top: 1px solid #30302e; text-align: left; color: var(--screen-type);
  font: 560 clamp(29px,min(5.7vw,7.5vh),76px)/1.13 "Roboto Flex",sans-serif; letter-spacing: -.045em;
}
.language-list button:lang(ja) { letter-spacing: -.035em; }
.language-list button:is(:focus-visible,[aria-pressed='true']) { color: var(--signal); }
@media (hover:hover) { .language-list button:hover { color: var(--signal); } }
.language-close {
  position: absolute; inset: max(12px,env(safe-area-inset-top)) auto auto var(--language-edge);
  min-width: 44px; min-height: 44px; margin-inline-start: -10px; color: var(--screen-muted);
  font: 320 30px/1 "Roboto Flex",sans-serif;
}
@media (max-width: 640px), (max-width: 900px) and (orientation: portrait) {
  .site-language-trigger {
    top: calc(var(--screen-safe-top) + clamp(23px,3.78dvh,39px));
    right: calc(max(clamp(10px,2.5641vw,24px),env(safe-area-inset-right)) + clamp(48px,12.5641vw,75px) + 5px);
  }
  .language-list button { font-size: clamp(30px,7.8vw,57px); }
}
@media (max-height: 450px) and (orientation: landscape) {
  .language-inner { padding-block: max(42px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-bottom)); }
  .language-choices { width: min(62%,36rem); }
  .language-choices h2 { margin-bottom: 10px; }
}

@media (max-width: 640px) and (max-height: 450px) and (orientation: landscape) {
  .stage.community { grid-template-rows: var(--header-height) minmax(0,1fr) auto; }
  .community-copy { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; padding-block: 8px; }
  .community-copy :is(h2,p) { grid-row: auto; margin: 0; }
  .community-copy h2 img { width: min(100%,70cqh); }
  .community-copy .desktop-copy { display: none; }
  .community-copy .mobile-copy { display: block; font-size: 14px; }
}

.works[data-layout='cinema'] {
  --cinema-footer: max(20px, env(safe-area-inset-bottom));
  grid-template-rows: var(--header-height) minmax(0, 1fr) var(--cinema-footer);
}

.works[data-layout='cinema'] > .mosaic {
  --cinema-gap: clamp(9px, .78125cqw, 18px);
  --cinema-gutter: clamp(22px, 3.125cqw, 78px);
  --cinema-height: calc(100cqh - var(--header-height) - var(--cinema-footer));
  /* Three landscape cards form the top block. Four equal cards form the bottom row. */
  --cinema-max-width: calc((var(--cinema-height) - var(--cinema-gap) * 103 / 192) * 64 / 33);
  --quarter: calc((100% - 3 * var(--cinema-gap)) / 4);
  --tile-inset: clamp(10px, 1.1cqw, 28px);
  --tile-shade: linear-gradient(transparent 45%, rgb(0 0 0 / .24) 69%, rgb(0 0 0 / .79));
  grid-row: 2;
  place-self: center;
  width: min(calc(100% - 2 * var(--cinema-gutter)), var(--cinema-max-width));
  height: auto;
  min-height: 0;
  padding: 0;
  gap: var(--cinema-gap);
  grid-template-rows: repeat(3, auto);
  /* Splitting the third column lets the two rows meet at different horizontal positions. */
  grid-template-columns: var(--quarter) var(--quarter)
    calc(100% / 6 - var(--cinema-gap) * 31 / 54) minmax(0, 1fr) var(--quarter);
  grid-template-areas:
    'lead lead lead two   two'
    'lead lead lead three three'
    'four five six  six   seven';
}

.works[data-layout='cinema'] .work-tile:nth-child(n) {
  align-self: start;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: 16 / 9;
}

.works[data-layout='cinema'] .work-tile:nth-child(1) { grid-area: lead; }
.works[data-layout='cinema'] .work-tile:nth-child(2) { grid-area: two; }
.works[data-layout='cinema'] .work-tile:nth-child(3) { grid-area: three; }
.works[data-layout='cinema'] .work-tile:nth-child(4) { grid-area: four; }
.works[data-layout='cinema'] .work-tile:nth-child(5) { grid-area: five; }
.works[data-layout='cinema'] .work-tile:nth-child(6) { grid-area: six; }
.works[data-layout='cinema'] .work-tile:nth-child(7) { grid-area: seven; }

@media (min-width: 901px), (min-width: 641px) and (orientation: landscape) {
  .works[data-layout='cinema'] .work-tile .index-title {
    font-size: clamp(12px, min(1.55cqw, 2.76cqh), 40px);
  }
  .works[data-layout='cinema'] .work-tile:first-child .index-title {
    font-size: clamp(24px, min(3.1cqw, 5.5cqh), 80px);
  }
  .works[data-layout='cinema'] .index-title::before {
    width: 100%;
    height: 2.3em;
    mask-position: left bottom;
  }
  .works[data-layout='cinema'] .work-tile:is(:hover, :focus-visible) .index-title {
    color: var(--screen-type);
  }
}

@media (min-width: 641px) and (min-aspect-ratio: 43/20) {
  .works[data-layout='cinema'] {
    --cinema-footer: max(32px, env(safe-area-inset-bottom));
  }
  .works[data-layout='cinema'] > .mosaic {
    --cinema-gap: 16px;
    --cinema-max-width: calc((var(--cinema-height) - var(--cinema-gap) / 8) * 80 / 27);
    grid-template-columns: minmax(0, 1fr) repeat(2, calc(20% - var(--cinema-gap) * 10 / 9));
    grid-template-areas:
      'lead two three'
      'lead four five'
      'lead six seven';
  }
}

@media (max-width: 640px), (max-width: 900px) and (orientation: portrait) {
  .works[data-layout='cinema'] > .mosaic {
    --cinema-gap: 9px;
    --cinema-gutter: clamp(16px, 4.615385cqw, 30px);
    --cinema-max-width: calc((var(--cinema-height) - var(--cinema-gap) * 69 / 32) * 32 / 45);
    --tile-inset: clamp(7px, 2.3cqw, 14px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(4, auto);
    grid-template-areas:
      'lead lead'
      'two three'
      'four five'
      'six seven';
  }
}
