/* ==========================================================================
   Kitchen Films — shared stylesheet
   Tokens, base, shared shell (social bar, header, footer, contact dialog),
   buttons and links, home page sections, and the shared film-card grid.
   Page-specific styles live in catalogue.css, film-page.css, story.css,
   submit.css and merch.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts (self-hosted, SIL Open Font License — see assets/fonts/)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/instrument-sans-latin-wght-normal.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: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/instrument-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/instrument-sans-latin-wght-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/instrument-serif-latin-400-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: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/instrument-serif-latin-ext-400-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
}

/* --------------------------------------------------------------------------
   2. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand palette */
  --paper: #f5f1e9;
  --paper-2: #ede8de;   /* tinted section backgrounds */
  --paper-3: #e6e0d4;   /* panels, inset boxes */
  --ink: #242320;
  --ink-2: #4a4843;     /* body copy on paper */
  --muted: #605b54;     /* captions, meta — 6:1 on paper, 5.1:1 on the panel tint */
  --red: #a9323d;
  --red-deep: #8f2632;  /* small red text on pink or panel backgrounds (5.4:1) */
  --pink: #e7c6dc;
  --pink-2: #f1dde8;
  --line: #d8d3c9;
  --line-strong: #bdb5a8;
  --night: #161718;     /* letterboxing behind thumbnails */

  /* Type */
  --font-sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-mono: "Courier New", Courier, monospace;
  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 15px;
  --text-md: 17px;
  --text-lg: clamp(19px, 1.6vw, 23px);
  --display-xl: clamp(60px, 7.4vw, 124px);
  --display-lg: clamp(44px, 5.2vw, 84px);
  --display-md: clamp(36px, 4.2vw, 64px);
  --display-sm: clamp(28px, 2.8vw, 42px);
  --tracking-display: -0.04em;
  --tracking-serif: -0.015em;

  /* Layout */
  --gutter: clamp(20px, 4.5vw, 80px);
  --header-height: 92px;
  --section: clamp(64px, 8vw, 120px);
  --measure: 62ch;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --fast: 0.18s;
  --slow: 0.45s;
}

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; padding: 0; }
button:disabled { cursor: default; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; border-radius: 2px; }
.hero :focus-visible, .contact-section :focus-visible { outline-color: var(--paper); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link {
  position: fixed; z-index: 100; top: -120px; left: 20px;
  padding: 14px 18px; background: var(--ink); color: var(--paper);
  font-size: var(--text-sm); font-weight: 500; transition: top var(--fast);
}
.skip-link:focus { top: 12px; }

/* Type scale */
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { font-weight: 500; letter-spacing: var(--tracking-display); line-height: 1.02; text-wrap: balance; }
h2 { font-size: var(--display-lg); margin-bottom: 0; }
h3 { font-size: var(--display-sm); }
h1 em, h2 em, h3 em, .serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: var(--tracking-serif); }
p { line-height: 1.6; }
.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.index-label { display: block; margin-bottom: 22px; color: var(--red); }
.section-pad { padding: var(--section) var(--gutter); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 44px; }
.section-intro { font-size: var(--text-base); margin: 0 0 6px; color: var(--muted); max-width: 32ch; }

/* --------------------------------------------------------------------------
   4. Buttons and links
   -------------------------------------------------------------------------- */
.button {
  min-height: 50px; padding: 15px 24px; display: inline-flex; justify-content: center; align-items: center; gap: 16px;
  font-size: 14px; font-weight: 500; letter-spacing: -0.005em; border: 1px solid transparent;
  transition: background var(--fast), color var(--fast), transform var(--fast) var(--ease), box-shadow var(--fast);
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button-light { background: var(--paper); color: var(--ink); }
.button-light:hover { background: var(--pink); color: var(--red); }
.button-red { background: var(--red); color: var(--paper); }
.button-red:hover { background: var(--red-deep); }
.button-ghost { border-color: currentColor; background: transparent; }
.play-icon { font-size: 10px; }
.text-link {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 22px;
  border-bottom: 1px solid currentColor; padding: 9px 0; font-size: 14px; font-weight: 500; line-height: 1.4; text-align: left;
  transition: color var(--fast), border-color var(--fast);
}
.text-link:hover { color: var(--red); }
.text-link span[aria-hidden] { transition: transform var(--fast) var(--ease); }
.text-link:hover span[aria-hidden] { transform: translate(2px, -2px); }
.light-link { color: var(--paper); }
.light-link:hover { color: var(--pink); }

/* --------------------------------------------------------------------------
   5. Shared shell: social bar, header, navigation
   -------------------------------------------------------------------------- */
.social-nav {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 4px var(--gutter);
  background: var(--pink); color: var(--red);
}
.social-nav a { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; transition: background var(--fast), color var(--fast); }
.social-nav svg { width: 36px; height: 28px; fill: currentColor; pointer-events: none; }
.social-nav a:hover { background: var(--red); color: var(--paper); }
.social-nav a:focus-visible { outline-offset: 1px; }

.header {
  position: sticky; top: 0; z-index: 30;
  height: var(--header-height); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 28px;
  padding: 0 var(--gutter); background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
@supports not (background: color-mix(in srgb, red, blue)) { .header { background: var(--paper); } }
.brand { display: flex; gap: 10px; align-items: center; justify-self: start; color: var(--red); line-height: 0.86; font-weight: 700; font-size: 23px; letter-spacing: -0.05em; }
.brand img { width: 28px; height: 46px; object-fit: contain; }
.desktop-nav { display: flex; align-items: center; justify-content: center; gap: clamp(32px, 2.4vw, 48px); font-size: 17px; font-weight: 500; margin: 0; white-space: nowrap; }
.desktop-nav a { padding: 12px 0; border-bottom: 1px solid transparent; transition: color var(--fast), border-color var(--fast); }
.desktop-nav a:hover { color: var(--red); border-color: var(--red); }
.desktop-nav [aria-current="page"], .desktop-nav [aria-current="location"] { border-bottom-color: var(--red); }
.desktop-nav .submit-nav { color: var(--red); }
.submit-nav span { margin-left: 6px; }
.contact-nav {
  display: inline-flex; align-items: center; justify-self: end; gap: 18px; border: 1px solid var(--ink); padding: 0 18px; min-height: 44px;
  font-size: 14px; font-weight: 500; white-space: nowrap; transition: background var(--fast), color var(--fast), border-color var(--fast);
}
.contact-nav span { font-size: 18px; line-height: 1; }
.contact-nav:hover { background: var(--ink); color: var(--paper); }
.menu-toggle { display: none; }
.mobile-nav {
  position: absolute; top: 100%; left: 0; right: 0; background: var(--paper);
  border-bottom: 1px solid var(--line); padding: 10px var(--gutter) 22px; box-shadow: 0 24px 40px -20px rgba(36, 35, 32, 0.25);
  max-height: calc(100vh - var(--header-height) - 52px);
  max-height: var(--mobile-nav-height, calc(100dvh - var(--header-height) - 52px));
  overflow-y: auto; overscroll-behavior: contain;
}
.mobile-nav a { display: block; padding: 15px 0; width: 100%; border-bottom: 1px solid var(--line); font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav .submit-nav { color: var(--red); }
.mobile-nav [aria-current="page"] { color: var(--red); }

/* --------------------------------------------------------------------------
   6. Home: hero and manifesto strip
   -------------------------------------------------------------------------- */
.hero {
  position: relative; min-height: 620px; height: calc(100svh - var(--header-height) - 48px); max-height: 860px;
  color: var(--paper); overflow: hidden; background: #0f1416;
}
.hero-image, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 44%; }
.hero-shade {
  background:
    linear-gradient(90deg, rgba(10, 13, 15, 0.72), rgba(10, 13, 15, 0.28) 50%, transparent 75%),
    linear-gradient(0deg, rgba(5, 10, 12, 0.62), transparent 40%, rgba(0, 0, 0, 0.08));
}
.hero-top { position: absolute; top: 30px; left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); margin-right: 10px; vertical-align: 1px; }
.hero-edition { font-size: 11px; letter-spacing: 0.18em; font-weight: 500; }
.hero-content { position: relative; padding: clamp(110px, 14vh, 150px) var(--gutter) 180px; max-width: 1100px; }
.hero h1 { font-size: var(--display-xl); letter-spacing: -0.045em; line-height: 0.95; margin: 0 0 28px; font-weight: 500; }
.hero h1 em { color: #f3dde0; }
.hero-content p { font-size: var(--text-md); line-height: 1.6; margin-bottom: 30px; color: #eee9e1; max-width: 46ch; }
.hero-actions { display: flex; gap: 30px; align-items: center; flex-wrap: wrap; }
.hero-bottom { position: absolute; bottom: 30px; left: var(--gutter); right: var(--gutter); display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.vertical-note { font-size: 11px; letter-spacing: 0.2em; font-weight: 500; }
.spotlight { text-align: left; margin-left: auto; min-width: 250px; color: var(--paper); border-top: 1px solid rgba(228, 219, 215, 0.5); padding: 16px 0 0; }
.spotlight .eyebrow { font-size: 10px; display: block; margin-bottom: 10px; color: #e8ded3; }
.spotlight-title { font-family: var(--font-serif); font-style: italic; font-size: 38px; letter-spacing: -0.02em; line-height: 1; display: flex; justify-content: space-between; gap: 60px; }
.spotlight-title span { font-family: var(--font-sans); font-size: 24px; font-style: normal; transition: transform var(--fast) var(--ease); }
.spotlight:hover .spotlight-title span { transform: translate(2px, -2px); }
.spotlight-credit { display: block; font-size: var(--text-xs); margin-top: 10px; color: #e8ded3; }
.frame-number { font-size: 11px; margin-left: 42px; letter-spacing: 0.1em; font-weight: 500; }

.manifesto-strip {
  display: flex; align-items: center; justify-content: space-around; gap: 25px; padding: 20px var(--gutter);
  background: var(--pink); color: var(--red-deep); font-size: var(--text-sm); font-weight: 500; letter-spacing: 0.02em;
}
.strip-star { font-size: 20px; line-height: 1; }

/* --------------------------------------------------------------------------
   7. Film cards and the catalogue toolbar (shared by Home and catalogues)
   -------------------------------------------------------------------------- */
.catalogue-toolbar {
  display: flex; gap: 20px; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0;
}
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
  font-size: var(--text-sm); font-weight: 500; border-radius: 999px; padding: 11px 16px; min-height: 42px;
  border: 1px solid var(--line-strong); white-space: nowrap; transition: background var(--fast), color var(--fast), border-color var(--fast);
}
.filter sup { font-size: 10px; margin-left: 5px; vertical-align: 2px; opacity: 0.7; }
.filter.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filter:hover:not(.active) { border-color: var(--ink); }
.search { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line-strong); min-width: 240px; padding: 8px 0; transition: border-color var(--fast); }
.search:focus-within { border-color: var(--red); }
.search svg { flex: 0 0 auto; color: var(--muted); }
.search input { width: 100%; max-width: 230px; background: none; border: 0; outline-offset: 8px; font-size: 14px; color: var(--ink); padding: 4px 0; }
.search input::placeholder { color: #76716a; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.results-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: var(--text-xs); padding: 18px 0; color: var(--muted); }
.results-line p { margin: 0; }
.results-line button { font-size: var(--text-xs); text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.results-line button:hover { color: var(--red); }

.film-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 26px; }
.film-card { text-align: left; width: 100%; padding: 0; display: block; }
.film-picture { position: relative; aspect-ratio: 1.6; overflow: hidden; background: var(--paper-3); }
.film-picture img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--slow) var(--ease); }
.film-card:hover .film-picture img, .film-card:focus-visible .film-picture img { transform: scale(1.035); }
.film-card:focus-visible { outline-offset: 6px; }
.film-picture::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, 0.42), transparent 46%); pointer-events: none; }
.film-rank {
  position: absolute; top: 12px; left: 12px; z-index: 1; font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  background: var(--paper); color: var(--red); padding: 6px 8px; line-height: 1; font-variant-numeric: tabular-nums;
}
.film-duration {
  position: absolute; right: 12px; bottom: 12px; z-index: 1; color: #fff; font-size: 11px; font-weight: 500; letter-spacing: 0.04em;
  background: rgba(22, 23, 24, 0.78); padding: 5px 7px; line-height: 1.2; font-variant-numeric: tabular-nums;
}
.film-play {
  position: absolute; left: 14px; bottom: 12px; z-index: 1; color: #fff; font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px; opacity: 0; transform: translateY(6px);
  transition: opacity var(--fast), transform var(--fast) var(--ease);
}
.film-card:hover .film-play, .film-card:focus-visible .film-play { opacity: 1; transform: none; }
.film-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 16px; }
.film-meta h3 { font-size: 24px; letter-spacing: -0.03em; line-height: 1.1; margin: 0; font-weight: 500; text-wrap: pretty; }
.film-arrow { font-size: 20px; line-height: 1; color: var(--red); flex: 0 0 auto; transition: transform var(--fast) var(--ease); }
.film-card:hover .film-arrow { transform: translate(2px, -2px); }
.film-caption { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: var(--text-sm); color: var(--muted); margin-top: 8px; line-height: 1.5; }
.film-views { white-space: nowrap; color: var(--red); font-variant-numeric: tabular-nums; }
.film-card[hidden] { display: none !important; }
.catalogue-footer { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 26px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.catalogue-footer p { font-size: var(--text-sm); color: var(--muted); margin: 0; }
.empty-state { padding: 70px 20px; text-align: center; border-bottom: 1px solid var(--line); }
.empty-state > span { font-size: 36px; color: var(--red); }
.empty-state h2, .empty-state h3 { font-size: var(--display-sm); margin: 14px 0; }
.empty-state p { color: var(--muted); margin-bottom: 24px; }

/* --------------------------------------------------------------------------
   8. Home: collections, about, contact
   -------------------------------------------------------------------------- */
.collections { background: var(--paper-2); }
.collection-heading h2 { font-size: var(--display-md); }
.collection-heading p { font-size: var(--text-base); margin: 0; color: var(--muted); max-width: 30ch; }
.collection-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 22px; }
.collection {
  position: relative; min-height: 420px; overflow: hidden; text-align: left; padding: 26px; color: #fff; background: #292d2b;
  display: flex; flex-direction: column; justify-content: space-between; isolation: isolate;
  transition: transform var(--fast) var(--ease), box-shadow var(--fast);
}
.collection:hover { transform: translateY(-4px); box-shadow: 0 30px 40px -28px rgba(36, 35, 32, 0.6); }
.collection > img, .collection-shade { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; z-index: -1; }
.collection > img { transition: transform var(--slow) var(--ease); }
.collection:hover > img { transform: scale(1.03); }
.collection-love > img { object-position: 50% 30%; }
.collection-shade { background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), transparent 70%), linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 32%); }
.collection-tag { position: relative; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; line-height: 1.5; }
.collection-bottom { margin-top: auto; position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.collection-bottom > span:first-child { font-size: clamp(30px, 3vw, 46px); letter-spacing: -0.035em; line-height: 1; font-weight: 500; text-wrap: balance; }
.round-arrow { border: 1px solid rgba(255, 255, 255, 0.6); flex-shrink: 0; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; font-size: 22px; transition: background var(--fast), color var(--fast); }
.collection:hover .round-arrow { background: var(--paper); color: var(--red); border-color: var(--paper); }
.collection-sub { position: relative; font-size: var(--text-xs); margin-top: 20px; color: rgba(255, 255, 255, 0.85); }
.collection-short > img { object-position: 50% 0; }
.collection-time { position: relative; align-self: flex-start; margin-top: 18px; padding: 7px 10px; background: var(--paper); color: var(--red-deep); font-size: 11px; font-weight: 600; line-height: 1.3; }
.collection-music > img { object-position: 47%; }

.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 8vw; align-items: center; }
.about-art {
  position: relative; background: var(--pink); color: var(--red); min-height: 520px; padding: 30px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; transform: rotate(-1.5deg); max-width: 480px;
  box-shadow: 0 40px 60px -40px rgba(169, 50, 61, 0.35);
}
.about-art::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(169, 50, 61, 0.25); pointer-events: none; }
.about-art img { width: 160px; height: 300px; object-fit: contain; }
.about-art > span:last-child { font-size: 12px; letter-spacing: 0.14em; font-weight: 600; color: var(--red-deep); }
.about-art .eyebrow { font-size: 11px; color: var(--red-deep); }
.about-copy h2 { font-size: var(--display-md); margin-bottom: 26px; }
.about-copy > p { font-size: var(--text-base); max-width: 48ch; color: var(--ink-2); }
.about-copy .about-lead { font-size: var(--text-lg); line-height: 1.45; color: var(--ink); letter-spacing: -0.015em; max-width: 30ch; }
.founders { display: flex; gap: 28px; flex-wrap: wrap; border-top: 1px solid var(--line); padding: 24px 0 22px; margin-top: 24px; }
.founders > div { display: flex; gap: 12px; align-items: center; font-size: var(--text-sm); font-weight: 500; }
.founders small { display: block; font-size: var(--text-xs); color: var(--muted); margin-top: 3px; font-weight: 400; }
.founder-monogram { height: 42px; width: 42px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; font-family: var(--font-serif); font-style: italic; font-size: 16px; }

.contact-section { background: var(--red); color: var(--paper); padding-top: 42px; padding-bottom: 42px; }
.contact-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid rgba(245, 241, 233, 0.3); padding-bottom: 24px; }
.contact-top > span:last-child { font-size: 11px; letter-spacing: 0.12em; font-weight: 500; }
.contact-main { display: flex; justify-content: space-between; align-items: center; padding: 44px 0; }
.contact-main h2 { font-size: clamp(78px, 10.7vw, 168px); line-height: 0.86; letter-spacing: -0.05em; }
.contact-main h2 em { color: var(--pink); }
.contact-circle {
  color: var(--red); width: clamp(90px, 13vw, 196px); height: clamp(90px, 13vw, 196px); border-radius: 50%; background: var(--pink);
  display: grid; place-items: center; margin-right: 4vw; transition: transform var(--fast) var(--ease), background var(--fast);
}
.contact-circle span { font-size: clamp(55px, 7vw, 110px); font-weight: 300; line-height: 1; transform: translateY(-3px); }
.contact-circle:hover { transform: rotate(8deg) scale(1.03); background: var(--paper); }
.contact-bottom { border-top: 1px solid rgba(245, 241, 233, 0.3); padding-top: 24px; display: flex; justify-content: space-between; gap: 30px; align-items: flex-end; }
.contact-bottom p { margin: 0; font-size: var(--text-base); }
.contact-bottom a { font-size: 19px; letter-spacing: -0.01em; border-bottom: 1px solid rgba(245, 241, 233, 0.5); padding-bottom: 5px; font-weight: 500; }
.contact-bottom a:hover { color: var(--pink); border-color: var(--pink); }
.contact-bottom a span { margin-left: 20px; }

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */
.footer { padding: 64px var(--gutter) 26px; }
.footer-wordmark { display: block; text-align: center; font-size: clamp(48px, 12.5vw, 210px); font-weight: 700; letter-spacing: -0.065em; line-height: 0.9; color: var(--red); white-space: nowrap; }
.footer-bottom { margin-top: 44px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: var(--text-xs); color: var(--muted); border-top: 1px solid var(--line); padding-top: 22px; }
.footer-bottom nav { display: flex; gap: 22px; flex-wrap: wrap; row-gap: 10px; }
.footer-bottom a:hover { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.audit-link { color: var(--red); }

/* --------------------------------------------------------------------------
   10. Dialogs: contact composer (the photo dialog lives in film-page.css)
   -------------------------------------------------------------------------- */
dialog { padding: 0; border: 0; box-shadow: 0 30px 120px rgba(0, 0, 0, 0.3); background: var(--paper); color: var(--ink); max-height: 90svh; max-width: calc(100% - 32px); overflow: auto; }
dialog::backdrop { background: rgba(21, 21, 22, 0.78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dialog-close { position: absolute; z-index: 4; right: 14px; top: 14px; width: 42px; height: 42px; background: var(--paper); color: var(--ink); border-radius: 50%; font-size: 26px; line-height: 1; box-shadow: 0 0 0 1px rgba(36, 35, 32, 0.15); transition: background var(--fast), color var(--fast); }
.dialog-close:hover { background: var(--pink); color: var(--red); }
.contact-dialog { padding: 48px; width: 640px; }
.contact-dialog > .eyebrow { font-size: 11px; color: var(--red); display: block; max-width: 28ch; }
.contact-dialog h2 { font-size: clamp(36px, 4vw, 48px); line-height: 1; margin: 22px 0; }
.contact-dialog > p { font-size: var(--text-sm); color: var(--muted); }
.contact-dialog form { margin-top: 24px; }
.contact-dialog label { display: block; font-size: var(--text-xs); font-weight: 500; margin-bottom: 18px; }
.contact-dialog input, .contact-dialog select, .contact-dialog textarea {
  width: 100%; display: block; margin-top: 8px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.5); color: var(--ink);
  padding: 13px; font-size: 14px; border-radius: 0; transition: border-color var(--fast), box-shadow var(--fast);
}
.contact-dialog input:focus, .contact-dialog select:focus, .contact-dialog textarea:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 3px rgba(169, 50, 61, 0.15); }
.contact-dialog textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: var(--text-xs); line-height: 1.6; color: var(--muted); margin: 14px 0 0; }
.contact-dialog h3 { font-size: 26px; margin-bottom: 10px; }
#inquiry-review { padding-top: 20px; }
#inquiry-review > p { font-size: var(--text-sm); }
#inquiry-preview { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--paper-3); padding: 20px; font: 13px/1.7 var(--font-sans); max-height: 240px; overflow: auto; margin: 0 0 20px; }
.review-actions { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.review-actions .text-link { font-size: var(--text-sm); }

/* --------------------------------------------------------------------------
   11. Responsive
   -------------------------------------------------------------------------- */
@media (min-width: 1800px) {
  .hero-content { padding-top: 170px; }
  .film-grid { gap: 52px 32px; }
}

@media (min-width: 1201px) and (max-width: 1399px) {
  .header { gap: 20px; }
  .desktop-nav { gap: 24px; font-size: 16px; }
  .contact-nav { font-size: 13px; padding: 0 12px; gap: 10px; }
}

@media (max-width: 1200px) {
  :root { --header-height: 80px; }
  .header { display: flex; justify-content: space-between; gap: 18px; }
  .desktop-nav, .contact-nav { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 500; padding: 10px 0; min-height: 44px; }
  .menu-toggle span { font-size: 24px; line-height: 1; width: 1em; text-align: center; }
}

@media (max-width: 1050px) {
  .hero { min-height: 600px; height: 75svh; }
  .hero h1 { font-size: clamp(62px, 8vw, 92px); }
  .hero-content { padding-top: 120px; }
  .hero-edition { display: none; }
  .catalogue-toolbar { align-items: stretch; flex-direction: column; gap: 12px; }
  .search { max-width: 320px; }
  .search input { max-width: none; }
  .film-grid { gap: 32px 20px; }
  .film-meta h3 { font-size: 22px; }
  .collection-grid { gap: 16px; grid-template-columns: 1fr 1fr 1fr; }
  .collection { min-height: 370px; padding: 22px; }
  .collection-bottom > span:first-child { font-size: 32px; }
  .about { gap: 6vw; }
  .about-art { min-height: 460px; }
  .founders { gap: 18px; }
  .contact-bottom a { font-size: 16px; }
}

@media (max-width: 760px) {
  :root { --header-height: 72px; --section: 60px; }
  html { scroll-padding-top: calc(var(--header-height) + 12px); }
  .header { gap: 15px; }
  .brand { font-size: 21px; }
  .brand img { height: 40px; width: 25px; }
  .social-nav { gap: 2px; padding-inline: 8px; }
  .hero { height: 680px; min-height: 0; max-height: none; }
  .hero-image { object-position: 60% 50%; }
  .hero-shade { background: linear-gradient(90deg, rgba(9, 14, 18, 0.66), rgba(9, 14, 18, 0.12)), linear-gradient(0deg, rgba(9, 14, 18, 0.82), transparent 55%); }
  .hero-top { top: 22px; }
  .hero-top .eyebrow { font-size: 10px; letter-spacing: 0.1em; }
  .hero-content { padding: 120px var(--gutter) 0; }
  .hero h1 { font-size: clamp(52px, 11vw, 78px); line-height: 0.96; margin-bottom: 22px; }
  .hero-content p { font-size: var(--text-base); }
  .hero-actions { gap: 18px; }
  .hero .button { font-size: 13px; padding: 13px 18px; min-height: 48px; }
  .hero .text-link { font-size: 13px; gap: 14px; }
  .hero-bottom { bottom: 24px; align-items: flex-end; }
  .vertical-note { display: none; }
  .spotlight { margin: 0; min-width: 0; flex: 1 1 auto; }
  .spotlight-title { font-size: 32px; gap: 30px; }
  .frame-number { font-size: 10px; margin-left: 12px; text-align: right; max-width: 120px; line-height: 1.5; }
  .manifesto-strip { font-size: 11px; gap: 10px; padding: 16px 20px; justify-content: space-between; }
  .strip-star { font-size: 15px; }
  .final-star { display: none; }
  .section-heading { gap: 18px; align-items: flex-start; flex-direction: column; margin-bottom: 30px; }
  .section-intro br { display: none; }
  .index-label { margin-bottom: 18px; }
  .catalogue-toolbar { padding: 13px 0; gap: 14px; }
  .filters { gap: 6px; }
  .filter { font-size: var(--text-xs); padding: 10px 13px; min-height: 42px; }
  .search { max-width: none; min-width: 0; padding: 8px 2px; }
  .search input { font-size: 16px; }
  .results-line { padding: 16px 0; flex-wrap: wrap; }
  .film-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  /* A little more width preserves title artwork on the two-column home cards. */
  .film-picture { aspect-ratio: 1.2; }
  .film-rank { top: 8px; left: 8px; font-size: 10px; padding: 5px 6px; }
  .film-duration { right: 8px; bottom: 8px; font-size: 10px; padding: 4px 5px; }
  .film-play { display: none; }
  .film-meta { margin-top: 12px; gap: 8px; }
  .film-meta h3 { font-size: 19px; line-height: 1.08; }
  .film-arrow { font-size: 17px; }
  .film-caption { flex-direction: column; gap: 2px; font-size: var(--text-xs); margin-top: 6px; }
  .catalogue-footer { flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 32px; }
  .collection-heading p br { display: none; }
  .collection-grid { grid-template-columns: 1fr; gap: 16px; }
  .collection { min-height: 340px; padding: 22px; }
  .collection-bottom > span:first-child { font-size: 38px; }
  .collection-short, .collection-music { min-height: 300px; }
  .about { grid-template-columns: 1fr; gap: 56px; }
  .about-art { min-height: 360px; margin: 0 12px; max-width: none; }
  .about-art img { height: 230px; width: 140px; }
  .about-copy .about-lead { max-width: none; }
  .founders { gap: 20px; }
  .contact-top { align-items: flex-start; }
  .contact-top > span:last-child { max-width: 160px; line-height: 1.7; text-align: right; font-size: 10px; }
  .contact-main { padding: 40px 0; }
  .contact-main h2 { font-size: clamp(66px, 15vw, 110px); }
  .contact-circle { width: 78px; height: 78px; margin: 0; }
  .contact-circle span { font-size: 48px; }
  .contact-bottom { flex-direction: column; align-items: flex-start; gap: 20px; }
  .contact-bottom a { font-size: 17px; }
  .footer { padding-top: 48px; }
  .footer-wordmark { font-size: clamp(42px, 12vw, 90px); letter-spacing: -0.06em; }
  .footer-bottom { margin-top: 32px; gap: 18px; }
  .footer-bottom > span { width: 100%; }
  .contact-dialog { padding: 48px 24px 28px; }
  .contact-dialog h2 { font-size: 36px; }
  .contact-dialog input, .contact-dialog select, .contact-dialog textarea { font-size: 16px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .dialog-close { right: 12px; top: 12px; }
  .empty-state { padding: 45px 10px; }
}

@media (max-width: 400px) {
  .social-nav a { width: 40px; height: 40px; flex-basis: 40px; }
  .social-nav svg { width: 32px; height: 26px; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
