:root {
  --ink: #15110e;
  --ink-2: #1f1a16;
  --ink-3: #2b241f;
  --paper: #f3ebe0;
  --muted: #b5a899;
  --red: #d7263d;
  --red-2: #b81d32;
  --sun: #f2b705;
  --teal: #1f8a8a;
  --radius: 10px;
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sun); color: var(--ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 64px);
  background: linear-gradient(var(--ink) 0%, rgba(21,17,14,.7) 60%, transparent);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-star {
  display: grid; place-items: center; width: 34px; height: 34px;
  background: var(--red); color: #fff; border-radius: 6px; font-size: 18px;
}
.logo-word { font: 26px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.logo-word b { color: var(--sun); font-weight: 400; }
.topnav { display: flex; gap: clamp(14px, 3vw, 32px); font-size: 14px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.topnav a { text-decoration: none; opacity: .8; }
.topnav a:hover { opacity: 1; color: var(--sun); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(92vh, 860px);
  display: flex; align-items: flex-end;
  padding: 120px clamp(20px, 5vw, 64px) clamp(48px, 8vh, 96px);
  overflow: hidden; isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background: center 30% / cover no-repeat;
  filter: grayscale(.35) contrast(1.05);
  transform: scale(1.04);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(21,17,14,.95) 0%, rgba(21,17,14,.75) 38%, rgba(21,17,14,.15) 75%),
    linear-gradient(0deg, var(--ink) 0%, transparent 45%);
}
.hero::after { /* film grain */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .12; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-inner { max-width: 640px; }
.eyebrow {
  display: inline-block; margin: 0 0 18px; padding: 4px 10px;
  background: var(--red); color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.hero-title {
  margin: 0; font: clamp(48px, 8vw, 104px)/.92 var(--display);
  text-transform: uppercase; letter-spacing: .005em; text-wrap: balance;
}
.hero-title span {
  display: block; margin-top: 14px;
  font: italic 400 clamp(20px, 2.4vw, 28px)/1.2 var(--serif); text-transform: none; color: var(--sun);
}
.hero-meta { margin: 18px 0 0; color: var(--muted); font-size: 15px; letter-spacing: .02em; }
.hero-blurb { margin: 14px 0 0; font: 400 clamp(17px, 1.6vw, 19px)/1.55 var(--serif); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 15px/1 var(--sans); letter-spacing: .02em; text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-2); transform: translateY(-1px); }
.btn-ghost { background: rgba(243,235,224,.08); color: var(--paper); box-shadow: inset 0 0 0 1px rgba(243,235,224,.25); }
.btn-ghost:hover { background: rgba(243,235,224,.16); }
.btn-sm { padding: 10px 16px; font-size: 13px; }

/* ---------- Catalogue ---------- */
.catalogue { padding: 72px clamp(20px, 5vw, 64px) 96px; max-width: 1440px; margin: 0 auto; }
.cat-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-title {
  margin: 0; font: clamp(40px, 5vw, 64px)/1 var(--display); text-transform: uppercase;
}
.section-title::after { content: ""; display: block; width: 64px; height: 5px; margin-top: 14px; background: linear-gradient(90deg, var(--red) 0 33%, var(--paper) 33% 66%, var(--teal) 66%); }
.section-sub { margin: 16px 0 0; color: var(--muted); max-width: 52ch; }
.controls { display: flex; flex-wrap: wrap; gap: 10px; }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: var(--muted); }
.search input, .sort select {
  height: 44px; border-radius: 999px; border: 1px solid var(--ink-3);
  background: var(--ink-2); color: var(--paper); font: 14px var(--sans);
}
.search input { width: min(300px, 80vw); padding: 0 16px 0 40px; }
.sort select { padding: 0 36px 0 16px; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23b5a899'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; }
.search input:focus, .sort select:focus { border-color: var(--sun); outline: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--paper); border: 1px solid var(--ink-3);
  font: 500 14px var(--sans);
}
.chip small { font-size: 12px; color: var(--muted); }
.chip:hover { border-color: var(--muted); }
.chip[aria-selected="true"] { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.chip[aria-selected="true"] small { color: rgba(21,17,14,.65); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 36px 24px; }
.card-link { display: block; text-decoration: none; }
.thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; border-radius: var(--radius); background: var(--ink-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s ease; filter: saturate(.85); }
.dur {
  position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: 4px;
  background: rgba(21,17,14,.82); font: 600 12px var(--sans); letter-spacing: .03em; font-variant-numeric: tabular-nums;
}
.play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(21,17,14,.35); opacity: 0; transition: opacity .25s ease;
}
.play svg { width: 60px; height: 60px; padding: 14px; border-radius: 50%; background: var(--red); fill: #fff; box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.card-link:hover .thumb img, .card-link:focus-visible .thumb img { transform: scale(1.05); filter: saturate(1); }
.card-link:hover .play, .card-link:focus-visible .play { opacity: 1; }
.card-body { padding-top: 14px; }
.card-kicker { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.card-body h3 { margin: 6px 0 0; font: 600 22px/1.2 var(--serif); }
.card-en { margin: 2px 0 0; font: italic 15px var(--serif); color: var(--muted); }
.card-dir { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.card-link:hover h3 { color: var(--sun); }

.empty { padding: 48px 0; color: var(--muted); text-align: center; }
.empty button { background: none; border: 0; color: var(--sun); font: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- About ---------- */
.about { background: var(--paper); color: var(--ink); }
.about-inner { max-width: 760px; margin: 0 auto; padding: 88px clamp(20px, 5vw, 64px); }
.about p { font: 19px/1.65 var(--serif); }
.about .section-title { margin-bottom: 28px; }

/* ---------- Footer ---------- */
.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding: 28px clamp(20px, 5vw, 64px); font-size: 13px; color: var(--muted); border-top: 1px solid var(--ink-3);
}

/* ---------- Player dialog ---------- */
.player {
  width: min(1120px, 94vw); max-height: 94vh; padding: 0; border: 0; border-radius: 14px;
  background: var(--ink-2); color: var(--paper); overflow: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.player::backdrop { background: rgba(10,8,6,.88); backdrop-filter: blur(4px); }
.ratio { position: relative; aspect-ratio: 16/9; background: #000; }
.ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-info { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding: 24px 28px 28px; }
.player-info h3 { margin: 0; font: 600 26px/1.2 var(--serif); }
.player-info h3 span { font-style: italic; font-weight: 400; color: var(--muted); font-size: .75em; }
.p-meta { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.p-blurb { margin: 12px 0 0; max-width: 64ch; font: 17px/1.55 var(--serif); }
.p-blurb:empty { display: none; }
.p-actions { display: flex; gap: 8px; align-items: flex-start; }
.close {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(21,17,14,.75); color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}
.close:hover { background: var(--red); }

@media (max-width: 640px) {
  .topnav a:not(:first-child) { display: none; }
  .hero { min-height: 82vh; }
  .hero::before { background: linear-gradient(0deg, var(--ink) 10%, rgba(21,17,14,.55) 70%, rgba(21,17,14,.3)); }
  .controls, .search input { width: 100%; }
  .search { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
