/* SnarkyFilms — screening room
   Ink black, bone paper, brass. Source Serif for titles, Plex Mono for details. */
:root {
  --ink: #0c0b0a;
  --bone: #ede6d8;
  --bone-dim: #b8b0a2;
  --line: rgba(237, 230, 216, .18);
  --brass: #c7a25a;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --gutter: 16px;
  --wrap: 1280px;
  color-scheme: dark;
}
@media (min-width: 720px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--bone);
  font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--brass); color: var(--ink); }

.mono { font: 500 13px/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.pad { padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap { max-width: var(--wrap); margin: 0 auto; }

/* Top bar */
.bar {
  position: sticky; top: 0; z-index: 50; display: flex; justify-content: space-between; align-items: center;
  height: 64px; padding: 0 var(--gutter); background: rgba(12, 11, 10, .94); border-bottom: 1px solid var(--line);
}
.wordmark { font: 700 23px/1 var(--serif); text-decoration: none; letter-spacing: -.01em; }
.bar nav { display: flex; gap: 28px; }
.bar nav a { text-decoration: none; padding: 4px 0; color: var(--bone-dim); border-bottom: 1px solid transparent; }
.bar nav a:hover { color: var(--bone); }
.bar nav a[aria-current="page"] { color: var(--bone); border-color: var(--brass); }
@media (max-width: 480px) { .bar nav { gap: 18px; } }

/* Section label: "01 — The Studio" */
.label { display: flex; gap: 14px; align-items: baseline; color: var(--bone-dim); }
.label b { color: var(--brass); font-weight: 500; }

/* ---------- Home hero: still, title, details ---------- */
.hero { padding-top: 32px; }
.hero__img { aspect-ratio: 21 / 9; max-height: 44vh; width: 100%; overflow: hidden; background: #000; }
@media (max-width: 720px) { .hero__img { aspect-ratio: 16 / 10; max-height: none; } }
.hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero__title { margin: 28px 0 0; font: 600 clamp(44px, 7vw, 112px)/1.0 var(--serif); letter-spacing: -.02em; }
.details { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 32px; }
.details > * { padding: 16px 0 16px 20px; border-left: 1px solid var(--line); }
.details > *:first-child { padding-left: 0; border-left: 0; }
.details span { display: block; color: var(--bone-dim); margin-bottom: 6px; }
.details strong { font: 600 15px/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.details a { text-decoration: none; color: var(--brass); }
.details a:hover strong { border-bottom: 1px solid var(--brass); }
@media (max-width: 720px) {
  .details { grid-template-columns: 1fr 1fr; }
  .details > *:nth-child(3) { padding-left: 0; border-left: 0; }
  .details > *:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Statement ---------- */
.statement { display: grid; gap: 28px; padding-top: 112px; padding-bottom: 112px; }
@media (min-width: 900px) { .statement { grid-template-columns: 220px 1fr; gap: 40px; } }
.statement p { margin: 0; max-width: 20ch; font: 500 clamp(34px, 5.4vw, 76px)/1.08 var(--serif); letter-spacing: -.015em; }
.statement em { color: var(--brass); font-style: italic; }

/* ---------- Film cards ---------- */
.index-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; padding-bottom: 36px; }
.index-head h2 { margin: 14px 0 0; font: 600 clamp(44px, 7vw, 96px)/1.0 var(--serif); letter-spacing: -.02em; }
.grid { display: grid; gap: 48px 28px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; gap: 40px; } }
.card { display: block; text-decoration: none; }
.card__img { aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
a.card:hover .card__img img { opacity: .8; }
a.card:focus-visible { outline: 2px solid var(--brass); outline-offset: 6px; }
.card__title { margin: 18px 0 8px; font: 600 26px/1.2 var(--serif); }
.card__meta { margin: 0 0 12px; font: 500 13px/1.5 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--bone-dim); }
.card__cta { font: 500 13px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--brass); border-bottom: 1px solid transparent; transition: border-color .2s; }
a.card:hover .card__cta { border-color: var(--brass); }
.card--soon .card__img img { opacity: .45; }
.card--soon .card__cta { color: var(--bone-dim); }

.more { display: flex; justify-content: flex-end; padding-top: 48px; }
.textlink { font: 500 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--brass); padding-bottom: 4px; }
.textlink:hover { color: var(--brass); }

/* ---------- Contact ---------- */
.contact { padding-top: 140px; padding-bottom: 100px; }
.contact h2 { margin: 20px 0 32px; font: 500 clamp(44px, 8vw, 120px)/1.08 var(--serif); letter-spacing: -.015em; max-width: 12ch; }
.contact h2 em { color: var(--brass); }
.contact__mail { font: 600 clamp(22px, 4vw, 44px)/1.2 var(--serif); text-decoration: none; border-bottom: 1px solid var(--brass); word-break: break-word; }
.contact__mail:hover { color: var(--brass); }

/* ---------- Footer ---------- */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 32px; padding-top: 28px; padding-bottom: 36px; border-top: 1px solid var(--line); color: var(--bone-dim); }
.foot nav { display: flex; flex-wrap: wrap; gap: 24px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--bone); }

/* ---------- Inner page head ---------- */
.pagehead { padding-top: 88px; padding-bottom: 48px; }
.pagehead h1 { margin: 18px 0 0; font: 600 clamp(56px, 11vw, 168px)/1.0 var(--serif); letter-spacing: -.02em; }
.pagehead p { max-width: 34em; margin: 24px 0 0; color: var(--bone-dim); font-size: 19px; }

/* Catalog filter */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 48px; }
.filter { font: 500 14px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--bone-dim); background: none; border: 0; border-bottom: 1px solid transparent; padding: 6px 0; cursor: pointer; }
.filter:hover { color: var(--bone); }
.filter[aria-pressed="true"] { color: var(--brass); border-color: var(--brass); }
.count { margin-left: auto; color: var(--bone-dim); }

/* ---------- About ---------- */
.essay { display: grid; gap: 28px; padding-top: 24px; padding-bottom: 96px; }
@media (min-width: 900px) { .essay { grid-template-columns: 220px minmax(0, 720px); gap: 40px; } }
.essay p { margin: 0 0 22px; font-size: 20px; line-height: 1.65; }
.essay p:first-child::first-letter { float: left; font: 700 88px/.8 var(--serif); margin: 8px 14px 0 0; color: var(--brass); }
.essay a { color: var(--brass); }

.figures { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.figures > div { padding: 36px 0 36px 24px; border-left: 1px solid var(--line); }
.figures > div:first-child { padding-left: 0; border-left: 0; }
.figures strong { display: block; font: 600 clamp(52px, 7vw, 104px)/1.0 var(--serif); letter-spacing: -.02em; margin-bottom: 12px; }
.figures span { color: var(--bone-dim); }
@media (max-width: 720px) {
  .figures { grid-template-columns: 1fr; }
  .figures > div { padding-left: 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .figures > div:last-child { border-bottom: 0; }
}

/* Credits block */
.credits { padding-top: 112px; padding-bottom: 112px; text-align: center; }
.credits__avatar { width: 120px; height: 120px; margin: 0 auto 48px; border-radius: 50%; background: #fff; overflow: hidden; }
.credits__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 2% 20%; transform: scale(1.9); transform-origin: 18% 26%; }
.credits dl { margin: 0 auto; max-width: 760px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 36px; }
.credits dt { text-align: right; color: var(--bone-dim); font: 500 13px/2.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.credits dd { margin: 0; text-align: left; font: 600 clamp(24px, 3.2vw, 36px)/1.2 var(--serif); }
.credits dd a { text-decoration: none; border-bottom: 1px solid var(--brass); }
.credits dd a:hover { color: var(--brass); }
@media (max-width: 560px) {
  .credits dl { grid-template-columns: 1fr; gap: 2px; }
  .credits dt, .credits dd { text-align: center; }
  .credits dd { margin-bottom: 20px; word-break: break-word; }
}

/* Partner card */
.assoc { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 32px; padding: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; }
.assoc img { width: 140px; aspect-ratio: 4 / 3; object-fit: cover; }
.assoc strong { display: block; font: 600 clamp(24px, 3vw, 34px)/1.2 var(--serif); margin-top: 8px; }
.assoc .card__cta { margin-left: auto; }
.assoc:hover .card__cta { border-color: var(--brass); }

/* Gentle fade-in on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s, transform .8s; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* 404 */
.notfound { min-height: 62vh; padding-top: 120px; }
.notfound__links { display: flex; flex-wrap: wrap; gap: 20px 36px; margin-top: 40px; }
