:root {
  color-scheme: dark;
  --paper: #110e0e;
  --ink: #f4e7da;
  --muted: #c8b8ab;
  --line: #594843;
  --accent: #efac92;
  --display: "Barlow Condensed", Impact, "Arial Narrow", sans-serif;
  --sans: "Work Sans", system-ui, sans-serif;
  --gutter: clamp(20px, 5.1vw, 84px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.55 var(--sans); }
html:has(dialog[open]) { overflow: hidden; }
img { display: block; width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: .9; }
a { color: inherit; text-underline-offset: .24em; }
a:hover { color: var(--accent); }
button { cursor: pointer; font: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.shell { width: min(calc(100% - var(--gutter) * 2), 1300px); margin-inline: auto; }
.skip { position: fixed; top: 10px; left: 12px; z-index: 1; padding: 12px; background: var(--paper); }
.skip:not(:focus) { clip-path: inset(50%); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 76px;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}
.wordmark { font: 700 2.05rem/1 var(--display); letter-spacing: -.01em; white-space: nowrap; text-decoration: none; text-transform: uppercase; }
.site-header nav { display: flex; gap: clamp(16px, 3.7vw, 60px); align-items: center; margin-left: auto; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: .9rem; text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--accent); text-decoration: underline; }
.language-switch {
  display: inline-grid;
  place-items: center;
  flex: 0 0 44px;
  min-width: 44px;
  min-height: 44px;
  border-left: 1px solid var(--line);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-decoration: none;
}
.language-switch:hover { text-decoration: underline; }

.home-hero, .show-head {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(545px, calc(87svh - 76px), 820px);
}
.hero-art, .show-cover { position: absolute; z-index: -2; inset: 0 0 0 24%; overflow: hidden; }
.hero-art img, .show-cover img { width: 100%; height: 100%; object-fit: cover; object-position: 57% 38%; }
.hero-art[data-art="08"] img { object-position: 55% 48%; }
.hero-art[data-art="11"] img, .show-cover img { object-position: 53% 41%; }
.home-hero::after, .show-head::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, var(--paper) 24%, #110e0ef5 29%, #110e0eb0 35%, #110e0e33 53%, transparent 69%),
              linear-gradient(0deg, var(--paper), #110e0e80 12%, transparent 31%);
  pointer-events: none;
}
.hero-type { padding-block: clamp(42px, 6vw, 88px); }
.printed-name { width: clamp(270px, 35vw, 510px); }
.hero-intro { margin-top: clamp(23px, 2.7vw, 42px); }
.hero-intro p { font-size: clamp(1.06rem, 1.45vw, 1.36rem); line-height: 1.35; }
.text-link { display: inline-block; margin-top: 1.1rem; font-size: .92rem; font-weight: 500; text-decoration-thickness: 1px; }
.primary-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 21px;
  padding: .65rem 1rem;
  border: 1px solid #cba596;
  color: var(--ink);
  background: #1a1211c9;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}
.primary-link:hover, .primary-link:focus-visible { color: var(--paper); background: var(--ink); }
.hero-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 13px 19px;
  border-block: 1px solid var(--line);
}
.art-series { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 5px 13px; font: 700 clamp(1.85rem, 4vw, 3.4rem)/1 var(--display); text-decoration: none; }
.art-series span { color: var(--muted); font: 400 .9rem/1.4 var(--sans); }
.hero-choices:not([hidden]) { display: flex; gap: 12px; }
.hero-choice {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 10px 5px 5px;
  min-height: 56px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: .87rem;
}
.hero-choice img { width: 75px; aspect-ratio: 3/2; object-fit: cover; }
.hero-choice:hover, .hero-choice[aria-pressed="true"] { border-color: var(--accent); color: var(--ink); }
.hero-choice[aria-pressed="true"] { background: #251816; }

.home-film { padding-top: clamp(56px, 9vw, 124px); }
.home-film-link { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); background: #271917; text-decoration: none; }
.home-film-image { align-self: stretch; height: 100%; aspect-ratio: 16/9; object-fit: cover; }
.home-film-copy { display: grid; align-content: center; gap: clamp(12px, 2vw, 25px); padding: clamp(23px, 4vw, 57px); }
.home-film-copy h2 img { width: min(100%, 270px); }
.feature-link { justify-self: start; font-weight: 600; border-bottom: 1px solid var(--accent); }
.home-film-link:hover .feature-link { color: var(--accent); }

.home-about { display: grid; grid-template-columns: 1fr 1.3fr; gap: 35px; padding-block: clamp(60px, 10vw, 134px); }
.home-about h2, .contact h2 { font-size: clamp(4rem, 7.5vw, 8rem); letter-spacing: -.025em; }
.home-about p, .show-intro p { max-width: 44ch; font-size: clamp(1.06rem, 1.43vw, 1.3rem); }
.home-about p + p { margin-top: 1.15rem; }
.contact { background: #251714; color: var(--ink); }
.contact-inner { display: grid; grid-template-columns: 1fr 1.3fr; gap: 35px; align-items: end; padding-block: clamp(50px, 8vw, 112px); }
.contact p { margin-top: 6px; }
.contact a { display: inline-block; font: 700 clamp(1.8rem, 4vw, 3.9rem)/1.05 var(--display); text-decoration-thickness: 1px; }
.contact a:hover { color: #e6b7a4; }

.show-head { min-height: clamp(495px, 73svh, 780px); }
.show-cover { inset-inline-start: 25%; }
.show-type { padding-block: clamp(34px, 5.7vw, 82px); }
.eyebrow { font-size: .9rem; font-weight: 600; color: var(--accent); }
.show-title { width: min(96%, 820px); margin-block: clamp(16px, 2vw, 26px); }
.show-date { color: var(--ink); font-size: .95rem; }
.show-intro { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; gap: 26px; padding-block: clamp(25px, 5vw, 70px); border-top: 1px solid var(--line); }
.show-intro .text-link { margin-top: .3rem; justify-self: end; }
.gallery { background: #1c1513; color: var(--ink); padding-block: 22px clamp(55px, 8vw, 110px); scroll-margin-top: 18px; }
.gallery-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 25px; color: #d2c6bb; }
.gallery-label { font: 600 .95rem/1.45 var(--sans); }
.gallery-head p { font-size: .89rem; }
.gallery-works {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: clamp(37px, 6vw, 95px) clamp(12px, 2vw, 29px);
}
.gallery-works > :nth-child(1) { grid-column: 1 / span 7; }
.gallery-works > :nth-child(2) { grid-column: 9 / span 4; }
.gallery-works > :nth-child(3) { grid-column: 2 / span 4; }
.gallery-works > :nth-child(4) { grid-column: 7 / span 6; }
.gallery-works > :nth-child(5) { grid-column: 2 / span 4; }
.gallery-works > :nth-child(6) { grid-column: 7 / span 5; }
.gallery-works > :nth-child(7) { grid-column: 1 / span 6; }
.gallery-works > :nth-child(8) { grid-column: 7 / span 6; }
.gallery-works > :nth-child(9) { grid-column: 3 / span 4; }
.gallery-works > :nth-child(10) { grid-column: 7 / span 4; }
.gallery-works > :nth-child(11) { grid-column: 2 / span 10; }
.artwork { display: block; cursor: zoom-in; }
.artwork:hover { outline: 1px solid var(--accent); outline-offset: 4px; }

.film-section { padding-block: clamp(24px, 4vw, 65px) clamp(60px, 9vw, 130px); }
.printed-film { width: clamp(68px, 8vw, 118px); margin-bottom: clamp(24px, 4.2vw, 54px); }
.film-lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.45fr); gap: clamp(22px, 3.6vw, 54px); align-items: center; }
.lead-meta { margin-bottom: clamp(10px, 1.4vw, 20px); color: var(--accent); }
.film-lead h2 { margin-bottom: clamp(12px, 1.5vw, 23px); }
.film-lead h2 img { width: min(100%, 335px); }
.film-lead .primary-link { margin-top: 12px; }
.selected-films { margin-top: clamp(56px, 8vw, 115px); padding-top: 24px; border-top: 1px solid var(--line); }
.selected-films > h2 { margin-bottom: 25px; font-size: clamp(2.3rem, 5vw, 4.5rem); }
.film-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(32px, 4.85vw, 64px) clamp(14px, 2vw, 28px); }
.film-card { grid-column: span 2; }
.film-card:is(:nth-child(-n+2), :nth-last-child(-n+2)) { grid-column: span 3; }
.film-frame { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; color: #fff5e9; background: #2b1b19; }
.film-frame img { height: 100%; object-fit: cover; transition: transform .28s ease; }
.film-frame:hover img { transform: scale(1.035); }
.play { position: absolute; bottom: 0; left: 0; display: grid; place-items: center; width: clamp(40px, 4vw, 57px); aspect-ratio: 1; background: #242120; color: #f3eee7; }
.play::after { content: ""; margin-left: 3px; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 10px solid currentColor; }
.film-frame:hover .play { background: #f8eadd; color: #241d21; }
.provider { position: absolute; right: 0; bottom: 0; background: #242120; color: #f3eee7; padding: .35rem .55rem; font-size: .83rem; }
.film-caption { padding-top: 13px; }
.film-label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: .87rem; color: var(--muted); }
.film-year { white-space: nowrap; }
.film-caption h3 { margin-top: 7px; font-size: clamp(2rem, 3.25vw, 3.7rem); overflow-wrap: anywhere; }
.film-caption p { margin-top: 9px; }

.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 22px; padding-block: 21px 25px; border-top: 1px solid var(--line); color: var(--muted); font-size: .87rem; }

dialog {
  --dialog-ink: #fff2e7;
  --dialog-bg: #231c1d;
  color: var(--dialog-ink);
  background: var(--dialog-bg);
  overscroll-behavior: contain;
}
dialog::backdrop { background: #161114df; }
.dialog-close, .art-controls button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .25rem .8rem;
  border: 1px solid #8d7578;
  background: var(--dialog-bg);
  color: var(--dialog-ink);
}
.dialog-close:hover, .art-controls button:hover { background: var(--dialog-ink); color: var(--dialog-bg); }
.art-dialog { width: min(95vw, 1240px); max-width: none; max-height: 95dvh; margin: auto; padding: 12px; border: 0; }
.art-dialog[open] { display: grid; justify-items: center; gap: 10px; }
.art-dialog .dialog-close { justify-self: end; }
.art-full { height: 100%; max-height: calc(95dvh - 130px); object-fit: contain; }
.art-controls { display: flex; align-items: center; gap: clamp(12px, 3vw, 26px); }
.art-count { min-width: 3.3rem; text-align: center; }
.film-dialog { width: min(94vw, max(420px, calc((100dvh - 180px) * 16 / 9)), 1080px); max-height: calc(100dvh - 16px); padding: 13px; border: 1px solid #745d62; }
.film-dialog-head { display: flex; gap: 15px; justify-content: space-between; align-items: center; padding-bottom: 12px; }
.film-dialog-head h2 { font-size: clamp(1.5rem, 3vw, 2.65rem); }
.player { aspect-ratio: 16/9; background: #0a090a; }
.player iframe { display: block; width: 100%; height: 100%; border: none; }
.film-external { display: inline-block; margin-top: 10px; font-size: .9rem; }
.not-found { padding-block: 60px; }
.not-found h1 { font-size: clamp(4rem, 10vw, 8rem); }

@media (max-width: 900px) {
  .film-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .film-grid .film-card { grid-column: auto; }
  .hero-choice { flex-direction: column; gap: 4px; padding: 4px; }
}
@media (max-width: 740px) {
  .site-header { min-height: 65px; gap: 10px; }
  .wordmark { font-size: 1.7rem; }
  .site-header nav { gap: clamp(12px, 4vw, 24px); }
  .site-header nav a { font-size: .865rem; }
  .home-hero, .show-head { min-height: clamp(490px, 72svh, 670px); }
  .hero-art, .show-cover { inset-inline-start: 0; }
  .hero-art img { object-position: 61% 40%; }
  .hero-art[data-art="08"] img { object-position: 53% 40%; }
  .hero-art[data-art="11"] img, .show-cover img { object-position: 52% 38%; }
  .home-hero::after, .show-head::after {
    background: linear-gradient(0deg, var(--paper) 2%, #110e0eed 11%, #110e0e99 30%, #110e0e2b 61%, transparent 85%);
  }
  .hero-type, .show-type { padding-block: 26px; }
  .printed-name { width: min(100%, 500px); }
  .hero-intro { margin-top: 12px; }
  .hero-intro p br { display: none; }
  .primary-link { margin-top: 12px; }
  .hero-rail { flex-direction: column; align-items: flex-start; gap: 13px; }
  .hero-choices:not([hidden]) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-self: stretch; gap: 8px; }
  .hero-choice img { width: 100%; }
  .home-film-link { grid-template-columns: 1fr; }
  .home-film-copy h2 img { width: min(68%, 260px); }
  .home-about, .contact-inner, .show-intro { grid-template-columns: 1fr; gap: 20px; }
  .home-about h2, .contact h2 { font-size: clamp(3.6rem, 11vw, 6rem); }
  .show-title { width: 100%; }
  .show-intro .text-link { justify-self: start; }
  .gallery-works { display: flex; flex-direction: column; align-items: stretch; gap: 28px; }
  .gallery-works > :is(:nth-child(3), :nth-child(5), :nth-child(9), :nth-child(10)) { width: 82%; align-self: center; }
  .film-section { padding-top: 27px; }
  .film-lead { grid-template-columns: 1fr; }
  .film-lead-copy { padding-bottom: 0; }
  .film-lead h2 img { width: clamp(175px, 55%, 300px); }
}
@media (max-width: 480px) {
  .film-grid { grid-template-columns: minmax(0, 1fr); }
  .film-caption h3 { font-size: 2.45rem; }
  .film-caption p { margin-top: 6px; }
  .site-footer a:first-of-type { order: 1; }
}
@media (max-width: 430px) {
  .site-header { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding-top: 12px; }
  .site-header nav { grid-column: 1; grid-row: 2; margin-left: 0; gap: 22px; }
  .language-switch { grid-column: 2; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
