/* ============================================================
   AMIRSHAYAN ORFI — The Screening Room
   The room has no colour of its own. Every colour on the page
   is light thrown by a film. See DESIGN.md.
   ============================================================ */
@view-transition { navigation: auto; }

@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/assets/fonts/cormorant-garamond-latin-wght.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300 700; font-display: swap;
  src: url(/assets/fonts/cormorant-garamond-latin-wght-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/archivo-latin-wght.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --room: #000;
  --ink: #ECE9E2;
  --ink-2: #A9A69F;
  --ink-3: #7D7A73;
  --line: rgba(236, 233, 226, .14);
  --display: 'Cormorant Garamond', 'Cormorant', Garamond, 'Times New Roman', serif;
  --ui: 'Archivo', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --m: clamp(20px, 3.4vw, 52px);
  --lamp: cubic-bezier(.2, .7, .1, 1);
  --bar-h: 64px;
  --t-xl: clamp(3.75rem, 12vw, 12rem);
  --t-l: clamp(3rem, 7.2vw, 7.75rem);
  --t-m: clamp(2.25rem, 4.4vw, 4.25rem);
  --t-line: clamp(1.25rem, 1.7vw, 1.7rem);
  color-scheme: dark;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--room); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  min-height: 100svh; background: transparent; color: var(--ink);
  font: 350 1.0625rem/1.65 var(--ui); font-stretch: 100%;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, video, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
.num { font-variant-numeric: tabular-nums; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[id] { scroll-margin-top: var(--bar-h); }
.scene[id] { scroll-margin-top: 0; }
.skip { position: fixed; left: var(--m); top: -4rem; z-index: 100; background: var(--ink); color: var(--room); padding: .6rem 1rem; border-radius: 999px; font-size: .875rem; text-decoration: none; }
.skip:focus { top: .75rem; }

/* ---------- the room: ambient light, vignette, grain ---------- */
#ambient {
  position: fixed; z-index: -2; left: -10%; top: -10%; width: 120%; height: 120%;
  filter: blur(64px) saturate(1.35); opacity: 0; transition: opacity 1.2s ease;
  pointer-events: none;
}
#ambient.on { opacity: .62; }
.page-film { --vx: 26%; }
.page-film #ambient.on { opacity: .42; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 90% at var(--vx, 50%) 45%, transparent 35%, rgba(0, 0, 0, .55) 75%, #000 100%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- header ---------- */
.bar {
  position: fixed; z-index: 50; inset: 0 0 auto 0; height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 0 var(--m);
  background: linear-gradient(to bottom, rgba(0, 0, 0, .78), rgba(0, 0, 0, 0));
}
.mark { font: 500 1.25rem/1 var(--display); letter-spacing: .02em; text-decoration: none; white-space: nowrap; }
.bar nav ul { display: flex; gap: clamp(1rem, 2.4vw, 2.25rem); list-style: none; font-size: .875rem; }
.bar nav a { text-decoration: none; color: var(--ink-2); transition: color .16s ease; }
.bar nav a:hover, .bar nav a[aria-current="true"] { color: var(--ink); }
.counter { font-size: .75rem; color: var(--ink-3); min-width: 4.5em; text-align: right; transition: opacity .3s ease; }
.counter b { font-weight: 400; color: var(--ink); }
.bar .back { font-size: .875rem; color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; gap: .55rem; }
.bar .back:hover { color: var(--ink); }
.bar .back svg { width: 14px; height: 10px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: .7rem 1.3rem;
  border-radius: 999px; font-size: .9375rem; line-height: 1; text-decoration: none; white-space: nowrap;
  border: 1px solid var(--line); transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.btn:hover { border-color: rgba(236, 233, 226, .45); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--ink); color: var(--room); border-color: var(--ink); }
.btn.primary:hover { background: #fff; }
.btn svg { width: 10px; height: 12px; fill: currentColor; flex: none; }
.btn .t { color: inherit; opacity: .55; }
.quiet { color: var(--ink); text-underline-offset: .25em; text-decoration-thickness: 1px; text-decoration-color: var(--ink-3); }
.quiet:hover { text-decoration-color: var(--ink); }

/* ---------- screens ---------- */
.screen { position: relative; aspect-ratio: 9 / 16; background: #000; overflow: hidden; }
.screen > img, .screen > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.screen > video { opacity: 0; transition: opacity .8s ease; }
.screen.is-playing > video { opacity: 1; }

/* ---------- hero: the name is the curtain ---------- */
.hero {
  position: relative; min-height: 100svh; padding: calc(var(--bar-h) + 1rem) var(--m) 2.5rem;
  --sh: min(74svh, 860px); --sw: calc(var(--sh) * 9 / 16); --g: clamp(1rem, 2.6vw, 2.75rem);
  display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: 1fr auto; column-gap: var(--g);
  align-items: center; container-type: inline-size;
}
.hero .screen { grid-column: 2; grid-row: 1; height: var(--sh); }
.hero h1 { display: contents; }
.hero .w {
  /* "Amirshayan" is 4.6em wide in Cormorant Light: size both words so it fills its column */
  font: 300 min(calc((100cqw - var(--sw) - 2 * var(--g)) / 2 * .94 / 4.6), 11rem)/.86 var(--display);
  letter-spacing: -.01em; grid-row: 1; white-space: nowrap;
}
.hero .w1 { grid-column: 1; justify-self: end; align-self: start; margin-top: 10svh; }
.hero .w2 { grid-column: 3; justify-self: start; align-self: end; margin-bottom: 9svh; font-style: italic; }
.hero-foot {
  grid-column: 1 / -1; grid-row: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem 3rem;
  flex-wrap: wrap; padding-top: 2rem;
}
.hero-foot .role { color: var(--ink-2); font-size: .9375rem; max-width: 22rem; }
.hero-foot .tag { font: italic 300 clamp(1.35rem, 2vw, 1.9rem)/1.2 var(--display); }
.hero-foot .actions { display: flex; gap: .7rem; flex-wrap: wrap; }

/* ---------- intertitles ---------- */
.intertitle {
  min-height: 80svh; display: grid; place-items: center; padding: 6rem var(--m); text-align: center;
}
.intertitle p, .intertitle blockquote {
  font: 300 var(--t-m)/1.12 var(--display); max-width: 18em; text-wrap: balance;
}
.intertitle figcaption { margin-top: 1.6rem; font: italic 400 1.0625rem/1.4 var(--display); color: var(--ink-3); }

/* ---------- the reel ---------- */
.reel { position: relative; }
.scene {
  position: relative; height: 100svh; min-height: 560px; padding: calc(var(--bar-h) + .75rem) var(--m) 1.75rem;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-rows: minmax(0, 1fr);
  column-gap: clamp(1.5rem, 3.4vw, 3.75rem); align-items: end;
}
.scene .screen { grid-column: 2; grid-row: 1; height: 100%; max-height: 1000px; align-self: center; }
.scene .screen a { position: absolute; inset: 0; z-index: 2; }
.scene .screen a:focus-visible { outline-offset: -1px; }
.scene-text { grid-column: 1; grid-row: 1; padding-bottom: 1rem; max-width: 34rem; justify-self: end; text-align: right; }
.scene-text h3 { font: 300 var(--t-l)/.92 var(--display); letter-spacing: -.012em; text-wrap: balance; margin-bottom: 1.6rem; }
.scene-text h3 a { text-decoration: none; }
.scene-text h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .12em; }
.logline { font: italic 400 var(--t-line)/1.4 var(--display); color: var(--ink-2); text-wrap: pretty; }
.scene-side { grid-column: 3; grid-row: 1; padding-bottom: 1rem; display: flex; flex-direction: column; gap: 1.4rem; align-items: flex-start; }
.scene-side .no { font: 300 clamp(3.5rem, 5vw, 5.5rem)/.8 var(--display); color: var(--ink-3); }
.scene-side .no span { font-size: .4em; margin-left: .15em; }
.facts { display: grid; gap: .35rem; font-size: .8125rem; color: var(--ink-2); }
.facts dt { font: italic 400 .9375rem/1.3 var(--display); color: var(--ink-3); }
.facts dd + dt { margin-top: .5rem; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .15rem .9rem; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .scene .screen { animation: lamp linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    @keyframes lamp { from { filter: brightness(.12); transform: scale(1.035); } to { filter: brightness(1); transform: none; } }
  }
}

/* ---------- index of films ---------- */
.index { padding: 8rem var(--m) 6rem; position: relative; }
.index h2 { font: 300 var(--t-m)/1 var(--display); margin-bottom: 2.5rem; }
.index ol { list-style: none; border-top: 1px solid var(--line); }
.index li a {
  display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; align-items: baseline; gap: 1rem;
  padding: 1.05rem 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: color .16s ease;
}
.index .i-no { color: var(--ink-3); font-size: .8125rem; }
.index .i-title { font: 300 clamp(1.75rem, 3.2vw, 3rem)/1.05 var(--display); }
.index .i-time { color: var(--ink-3); font-size: .8125rem; }
.index ol:hover a { color: var(--ink-3); }
.index ol:hover a:hover, .index a:focus-visible { color: var(--ink); }
.peek {
  position: fixed; z-index: 40; left: 0; top: 0; width: 180px; aspect-ratio: 9 / 16; pointer-events: none;
  border-radius: 999px 999px 0 0; overflow: hidden; opacity: 0; transform: translate3d(-50%, -50%, 0) scale(.92);
  transition: opacity .25s ease, transform .35s var(--lamp); background: #000;
}
.peek.on { opacity: 1; transform: translate3d(-50%, -50%, 0) scale(1); }
.peek img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- end credits ---------- */
.credits { padding: 10rem var(--m) 4rem; display: grid; justify-items: center; text-align: center; gap: 4.5rem; }
.credits h2 { font: 300 var(--t-m)/1.02 var(--display); max-width: 14em; text-wrap: balance; }
.credits .arch { width: min(15rem, 52vw); aspect-ratio: 1088 / 1344; border-radius: 999px 999px 0 0; overflow: hidden; }
.credits .arch img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15); }
.credits figcaption { margin-top: .8rem; font: italic 400 .9375rem/1.3 var(--display); color: var(--ink-3); }
.bio { max-width: 34rem; text-align: left; color: var(--ink-2); }
.roll { display: grid; gap: 1.6rem; width: min(100%, 40rem); }
.roll div { display: grid; gap: .15rem; }
.roll dt { font: italic 400 1.0625rem/1.3 var(--display); color: var(--ink-3); }
.roll dd { font-size: 1.0625rem; color: var(--ink); }
.roll dd.big { font: 300 clamp(2.25rem, 4vw, 3.5rem)/1 var(--display); }
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.4rem 3rem; width: min(100%, 44rem); }
.method { width: min(100%, 60rem); display: grid; gap: 2.6rem; }
.method .lead { font: italic 400 var(--t-line)/1.45 var(--display); color: var(--ink-2); max-width: 32em; margin: 0 auto; text-wrap: balance; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; text-align: left; counter-reset: step; }
.steps li { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.steps .n { font-size: .75rem; color: var(--ink-3); }
.steps h3 { font: 400 1.75rem/1.1 var(--display); margin: .4rem 0 .6rem; }
.steps p { font-size: .875rem; color: var(--ink-2); line-height: 1.7; }
.statement { font: 300 var(--t-m)/1.1 var(--display); max-width: 15em; text-wrap: balance; }

/* ---------- contact ---------- */
.contact { padding: 8rem var(--m) 5rem; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3rem 5rem; align-items: end; }
.contact h2 { font: 300 var(--t-l)/.94 var(--display); text-wrap: balance; }
.contact .sub { color: var(--ink-2); max-width: 34rem; margin-top: 2rem; }
.links { list-style: none; border-top: 1px solid var(--line); }
.links a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.links .l { font: 400 1.75rem/1.1 var(--display); }
.links .d { font-size: .8125rem; color: var(--ink-3); }
.links a:hover .l { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.foot { padding: 2rem var(--m) 2.5rem; display: flex; justify-content: space-between; gap: 1rem; font-size: .75rem; color: var(--ink-3); border-top: 1px solid var(--line); }

/* ---------- screening page ---------- */
.screening {
  min-height: 100svh; padding: calc(var(--bar-h) + 1rem) var(--m) 3rem;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(2rem, 5vw, 6rem); align-items: center;
}
.player { height: min(calc(100svh - var(--bar-h) - 4rem), 1040px); }
.player video { opacity: 1; object-fit: contain; }
.player .big {
  position: absolute; z-index: 3; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  background: var(--ink); color: var(--room); border-color: var(--ink);
}
.player.started .big { display: none; }
.player .big:active { transform: translateX(-50%) scale(.98); }
.controls {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: .6rem;
  padding: 2.4rem .8rem .7rem; background: linear-gradient(to top, rgba(0, 0, 0, .78), transparent);
  opacity: 0; transition: opacity .25s ease;
}
.player.started:hover .controls, .player.paused .controls, .player:focus-within .controls, .player.touch .controls { opacity: 1; }
.player:not(.started) .controls { display: none; }
.controls button { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; flex: none; }
.controls button:hover { background: rgba(255, 255, 255, .1); }
.controls svg { width: 16px; height: 16px; fill: var(--ink); }
.controls .time { font-size: .75rem; color: var(--ink-2); white-space: nowrap; }
.seek { flex: 1; min-width: 0; height: 44px; background: none; -webkit-appearance: none; appearance: none; cursor: pointer; --p: 0%; }
.seek::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(to right, var(--ink) var(--p), rgba(236, 233, 226, .25) var(--p)); }
.seek::-moz-range-track { height: 2px; background: linear-gradient(to right, var(--ink) var(--p), rgba(236, 233, 226, .25) var(--p)); }
.seek::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -5px; border-radius: 50%; background: var(--ink); }
.seek::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--ink); }
.player:fullscreen { height: 100vh; width: 100vw; aspect-ratio: auto; }

.card { max-width: 36rem; display: grid; gap: 1.8rem; align-content: center; }
.card .no { font-size: .8125rem; color: var(--ink-3); }
.card h1 { font: 300 var(--t-l)/.92 var(--display); letter-spacing: -.012em; text-wrap: balance; }
.card .facts { font-size: .9375rem; grid-template-columns: max-content 1fr; column-gap: 1.6rem; row-gap: .55rem; align-items: baseline; }
.card .facts dt { font-size: 1.0625rem; }
.card .facts dd + dt { margin-top: 0; }
.card .facts ul { list-style: none; }
.card .actions { display: flex; flex-wrap: wrap; gap: .7rem; }

.frames { padding: 6rem var(--m) 4rem; }
.frames h2, .more h2 { font: 300 var(--t-m)/1 var(--display); margin-bottom: 2.2rem; }
.frames ul { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.75rem, 1.6vw, 1.5rem); }
.frames button { display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: 999px 999px 0 0; overflow: hidden; }
.frames img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--lamp), filter .4s ease; filter: brightness(.85); }
.frames button:hover img, .frames button:focus-visible img { transform: scale(1.03); filter: brightness(1); }

.more { padding: 4rem var(--m) 6rem; }
.adjacent { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.adjacent a { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1.2rem; align-items: center; padding: 1.4rem 0; text-decoration: none; }
.adjacent a + a { border-left: 1px solid var(--line); padding-left: 1.4rem; }
.adjacent img { width: 4.5rem; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 999px 999px 0 0; }
.adjacent .k { font-size: .8125rem; color: var(--ink-3); }
.adjacent .t { font: 300 clamp(1.5rem, 2.6vw, 2.4rem)/1.05 var(--display); display: block; }
.adjacent a:hover .t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }

dialog.lightbox {
  margin: auto; max-width: none; max-height: none; width: 100vw; height: 100svh; border: 0; padding: 0;
  background: rgba(0, 0, 0, .94); color: var(--ink);
}
dialog.lightbox::backdrop { background: rgba(0, 0, 0, .8); }
.lightbox .lb-inner { width: 100%; height: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; padding: 3.5rem var(--m) 2rem; gap: 1rem; }
.lightbox img { justify-self: center; max-height: calc(100svh - 6rem); width: auto; aspect-ratio: 9 / 16; object-fit: contain; }
.lightbox .lb-close { position: absolute; top: .9rem; right: var(--m); }
.lightbox .lb-k { position: absolute; top: 1.4rem; left: var(--m); font-size: .8125rem; color: var(--ink-3); }

/* ---------- 404 ---------- */
.missing { min-height: 100svh; display: grid; place-content: center; gap: 2rem; text-align: center; padding: 6rem var(--m); }
.missing h1 { font: 300 var(--t-l)/.95 var(--display); }

/* ---------- view transitions ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; }
::view-transition-group(*) { animation-duration: .7s; animation-timing-function: var(--lamp); }

/* ---------- small screens ---------- */
@media (max-width: 899px) {
  :root { --bar-h: 56px; }
  .bar nav ul { gap: 1rem; }
  .bar .counter { display: none; }
  .hero { --sw: min(100%, calc(66svh * 9 / 16)); grid-template-columns: 1fr; grid-template-rows: auto auto auto; padding-top: calc(var(--bar-h) + 1.25rem); row-gap: 1rem; }
  .hero .w { font-size: min(calc(100cqw * .94 / 4.6), 7rem); }
  .hero .w1, .hero .w2 { grid-column: 1; margin: 0; }
  .hero .w1 { grid-row: 1; justify-self: start; }
  .hero .w2 { grid-row: 2; justify-self: end; }
  .hero .screen { grid-column: 1; grid-row: 3; width: var(--sw); height: auto; justify-self: center; }
  .hero-foot { grid-row: 4; flex-direction: column; align-items: flex-start; padding-top: .5rem; }
  .scene { --sw: min(100vw, calc((100svh - var(--bar-h)) * .84 * 9 / 16)); grid-template-columns: 1fr; grid-template-rows: auto; justify-items: center; padding: var(--bar-h) 0 0; height: auto; min-height: 0; }
  .scene .screen { grid-column: 1; grid-row: 1; width: var(--sw); height: auto; max-height: none; }
  .scene-text, .scene-side { grid-column: 1; text-align: left; justify-self: center; width: var(--sw); max-width: none; padding: 0 var(--m); }
  .scene-text { grid-row: 2; margin-top: -9.5rem; position: relative; z-index: 3; padding-bottom: 0; pointer-events: none; }
  .scene-text h3 { font-size: clamp(2.6rem, 12vw, 4rem); margin-bottom: .8rem; }
  .scene-text h3 a { pointer-events: auto; }
  .scene .screen::after { content: ""; position: absolute; inset: 45% 0 0 0; z-index: 1; background: linear-gradient(to top, #000 8%, rgba(0, 0, 0, .55) 45%, transparent); pointer-events: none; }
  .scene-side { grid-row: 3; padding-top: 1.4rem; padding-bottom: 4.5rem; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
  .scene-side .no { display: none; }
  .index li a { grid-template-columns: 2.5rem minmax(0, 1fr) auto; }
  .peek { display: none; }
  .figures { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr; }
  .screening { grid-template-columns: 1fr; padding: var(--bar-h) 0 2rem; gap: 2rem; }
  .player { width: min(100vw, calc((100svh - var(--bar-h)) * .86 * 9 / 16)); height: auto; justify-self: center; }
  .card { padding: 0 var(--m); }
  .frames ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adjacent { grid-template-columns: 1fr; }
  .adjacent a + a { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .lightbox .lb-inner { grid-template-columns: 1fr; padding: 3.5rem .5rem 4.5rem; }
  .lightbox .lb-prev, .lightbox .lb-next { position: absolute; bottom: 1rem; }
  .lightbox .lb-prev { left: var(--m); }
  .lightbox .lb-next { right: var(--m); }
}
@media (min-width: 900px) and (max-height: 640px) {
  .hero .screen { height: 62svh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  @view-transition { navigation: none; }
}
