/* ============================================================================
   AGFA — site styles
   Brand tokens live in :root. Change a color or font here and it follows
   everywhere. See BRAND.md for how they're meant to be used.
   ========================================================================== */

/* Fonts — self-hosted, all SIL Open Font License (licenses in assets/fonts/).
   Two typefaces: Jost (standing in for Futura) for headlines, titles, buttons and
   navigation; IBM Plex Mono (standing in for the Typewriter Condensed on AGFA's
   home video packaging) for all body copy, credits and labels. No paid font services. */
@font-face { font-family: "Jost"; src: url("fonts/jost.woff") format("woff"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/jost-italic.woff") format("woff"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/plex-mono-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/plex-mono-400i.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/plex-mono-500.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/plex-mono-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* Color */
  /* Brand Standards 2025 v1.1: PMS Black C, PMS White C, PMS 7709 C ("aqua"),
     TRUMATCH 11-G ("eggshell"). Everything else is a tint or shade of these. */
  --ink:        #000000;   /* PMS Black C */
  --ink-2:      #1a1a18;   /* raised dark surfaces */
  --paper:      #faf4e2;   /* TRUMATCH 11-G eggshell — page background */
  --paper-2:    #f0e8cf;   /* eggshell, one step darker: bands, stripes */
  --card:       var(--paper);   /* cards, order forms, boxes: eggshell like the page (was a lighter #fffcf2) */
  --line:       #d9cfb2;
  --text:       #111110;
  --muted:      #5c5647;
  --teal:       #75afbb;   /* PMS 7709 C aqua — primary actions */
  --teal-hi:    #93c3cc;
  --teal-ink:   #1d5a64;   /* aqua text on eggshell (AA contrast) */
  --blood:      #1d5a64;   /* retired: not in the brand palette; kept as an alias */

  /* Type */
  --display: "Jost", "Futura PT", Futura, "Century Gothic", system-ui, sans-serif;
  --mono:    "IBM Plex Mono", "Courier New", monospace;
  --body:    var(--mono);

  /* Space & shape */
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --shadow: 0 1px 2px rgba(0,0,0,.08), 0 6px 20px rgba(0,0,0,.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 16px/1.65 var(--body); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-ink); text-underline-offset: .15em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 .4em; color: var(--ink); }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; }
h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.8rem); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }

.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--teal); color: var(--ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.section { margin-top: clamp(40px, 6vw, 72px); }
.muted { color: var(--muted); font-weight: 500; }

.eyebrow {
  font: 700 .78rem/1 var(--display); letter-spacing: .18em; text-transform: uppercase;
  color: var(--blood); margin: 0 0 .8em;
}
.lede { font-size: 1.02rem; line-height: 1.65; color: var(--muted); max-width: 64ch; }
.crumbs { font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .6em; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--teal-ink); }

/* ---- Buttons & chips ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  font: 700 .95rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase;
  background: var(--teal); color: var(--ink); border: 2px solid var(--ink);
  padding: .85em 1.3em; border-radius: var(--radius); cursor: pointer; text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink); transition: transform .08s, box-shadow .08s, background .15s;
}
.btn:hover { background: var(--teal-hi); color: var(--ink); transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-lg { font-size: 1.1rem; padding: 1em 1.6em; }
.btn-block { display: flex; width: 100%; }
.btn-ghost { background: transparent; box-shadow: none; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); box-shadow: none; transform: none; }

.chip {
  display: inline-block; font: 600 .78rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase;
  border: 1.5px solid var(--ink); border-radius: 99px; padding: .45em .8em; margin: 0 .35em .4em 0; color: var(--ink);
}
.chip-link { text-decoration: none; }
.chip-link:hover { background: var(--ink); color: var(--paper); }
.label { display: block; font: 700 .72rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .6em; }

/* ---- Header ----------------------------------------------------------------- */
/* One-color reverse logo on black (Brand Standards p.6). Never narrower than
   125px on screen (p.6), with clear space on every side. */
.site-header { background: var(--ink); color: #fff; position: relative; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 122px; }
/* Clear space ≥ the height of the "R" in GENRE (~12% of the logo's height). */
.logo { display: block; width: 136px; padding: 10px 0 18px; flex: none; }   /* sits a touch high, per AGFA; 10px ≈ the clear-space minimum */
.logo img { width: 100%; }
.site-nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); }
.site-nav a {
  color: #fff; text-decoration: none; font: 700 .9rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase;
  padding: 8px 0; border-bottom: 3px solid transparent;
}
.site-nav a:hover { color: var(--teal-hi); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--teal); }
.site-nav .nav-donate { background: var(--teal); color: var(--ink); padding: 9px 14px; border: 0; border-radius: var(--radius); }
.site-nav .nav-donate:hover { background: var(--teal-hi); color: var(--ink); }
.nav-search { display: inline-flex; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .header-inner { min-height: 114px; }
  .logo { width: 125px; }
  .nav-toggle {
    display: block; background: none; border: 0; width: 44px; height: 44px; position: relative; cursor: pointer; color: #fff;
  }
  .nav-toggle span:first-child, .nav-toggle span:first-child::before, .nav-toggle span:first-child::after {
    position: absolute; left: 10px; width: 24px; height: 2.5px; background: currentColor; content: ""; transition: transform .2s;
  }
  .nav-toggle span:first-child { top: 21px; }
  .nav-toggle span:first-child::before { top: -8px; left: 0; }
  .nav-toggle span:first-child::after { top: 8px; left: 0; }
  .nav-toggle[aria-expanded="true"] span:first-child { background: transparent; }
  .nav-toggle[aria-expanded="true"] span:first-child::before { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:first-child::after { transform: translateY(-8px) rotate(-45deg); }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--ink);
    flex-direction: column; align-items: stretch; gap: 0; padding: 28px var(--gutter) 20px; border-top: 1px solid #333;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid #262626; font-size: 1rem; }
  .site-nav a[aria-current="page"] { color: var(--teal-hi); border-bottom-color: #262626; }
  .site-nav .nav-donate { margin-top: 14px; text-align: center; }
  .nav-search { padding: 14px 0 !important; }
}

/* ---- Page heads -------------------------------------------------------------- */
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(20px, 3vw, 32px); }
.page-head .lede { margin-bottom: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 18px; border-bottom: 3px solid var(--ink); padding-bottom: 10px; }
.section-head h2 { margin: 0; }
.more { font: 700 .85rem/1.3 var(--display); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.section-title { border-bottom: 3px solid var(--ink); padding-bottom: 10px; }

/* ---- Cards & grids ------------------------------------------------------------ */
.grid { display: grid; gap: clamp(16px, 2vw, 28px) clamp(12px, 1.6vw, 22px); }
.film-grid { grid-template-columns: repeat(auto-fill, minmax(min(240px, 45%), 1fr)); }
.disc-grid { grid-template-columns: repeat(auto-fill, minmax(min(180px, 45%), 1fr)); }
.card a { text-decoration: none; color: inherit; display: block; }
.card-img { background: var(--ink-2); overflow: hidden; border-radius: var(--radius); margin-bottom: 10px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, filter .35s; }
.card a:hover .card-img img { transform: scale(1.04); filter: saturate(1.15); }
.card h3 { font-size: .98rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; margin: 0 0 3px; line-height: 1.2; }
.card a:hover h3 { color: var(--teal-ink); }
.card .meta { font-size: .85rem; color: var(--muted); margin: 0; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-cover { aspect-ratio: 4 / 5; }
.disc-card .card-img { background: #fff; }            /* packshots are 3D cases on white — crop to the case */
.disc-card .card-img img { object-fit: cover; }
.buy-link { display: inline-block; margin-top: 8px; font: 700 .78rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; }

/* Collections */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 14px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
.rail-section { margin-top: clamp(16px, 2.5vw, 32px); margin-bottom: 24px; }
.collection-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.collection-card {
  position: relative; display: block; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden;
  background: var(--ink); color: #fff; text-decoration: none; isolation: isolate;
}
.collection-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .62; transition: opacity .3s, transform .4s; z-index: -1; }
.collection-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,0) 65%); z-index: -1; }
.collection-card:hover img { opacity: .8; transform: scale(1.05); }
.collection-card-body { position: absolute; left: 16px; right: 16px; bottom: 14px; }
.collection-card-title { display: block; font: 800 1.35rem/1.05 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.collection-card-count { display: block; margin-top: 6px; font: 600 .75rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--teal-hi); }
.collection-card:hover { color: #fff; }
.collection-tile p { font-size: .95rem; color: var(--muted); margin-top: 10px; }
.collection-grid-lg { grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 28px 20px; }

.collection-head {
  background: var(--ink) var(--bg, none) center / cover; color: #fff; position: relative; isolation: isolate;
  padding: clamp(64px, 10vw, 140px) 0 clamp(28px, 4vw, 48px);
}
.collection-head::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,10,.95), rgba(10,10,10,.45)); z-index: -1; }
.collection-head h1, .collection-head .crumbs, .collection-head .crumbs a { color: #fff; }
.collection-head .lede { color: #ddd; }
.collection-head .count { font: 700 .8rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--teal-hi); margin: 0; }

/* ---- Catalog filters ---------------------------------------------------------- */
.filters { margin-bottom: 26px; }
.filters-search { display: flex; gap: 10px; margin-bottom: 12px; }
.filters-search input, .search-form input {
  flex: 1; min-width: 0; font: 500 1.1rem var(--display); padding: .8em 1em; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper);
}
.filters-facets { display: flex; flex-wrap: wrap; gap: 8px; }
.filters select, .form input, .form textarea {
  font: 500 .95rem var(--display); padding: .6em 2em .6em .8em; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%231a1917'/%3E%3C/svg%3E") no-repeat right .8em center;
  appearance: none; color: var(--text); max-width: 100%;
}
.filters select { border: var(--key); border-radius: 0; }   /* same 2px keyline as the collection blocks */
.filters select:hover { border-color: var(--ink); background-color: var(--paper-2); }
.filters-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 3px solid var(--ink); }
.count { font-size: 1.05rem; margin: 0; }
.clear { font-size: .8rem; margin-left: 10px; letter-spacing: .06em; }
.filters-view { display: flex; align-items: center; gap: 10px; }
.view-toggle { display: inline-flex; border: 1.5px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.view-toggle button { font: 700 .78rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; background: var(--card); border: 0; padding: .75em 1em; cursor: pointer; color: var(--ink); }
.view-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.filters-compact { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 3px solid var(--ink); padding-bottom: 14px; }
.filters-compact .filters-facets { align-items: center; }

.table-wrap { overflow-x: auto; }
.film-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.film-table th { text-align: left; font: 700 .72rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 10px 10px; border-bottom: 2px solid var(--ink); }
.film-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.film-table tr:hover td { background: var(--paper-2); }
.film-table .t a { font-weight: 700; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.film-table .t a:hover { color: var(--teal-ink); text-decoration: underline; }
.book-mini { font: 700 .72rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; background: var(--teal); color: var(--ink); padding: .5em .8em; border-radius: var(--radius); text-decoration: none; white-space: nowrap; }
.book-mini:hover { background: var(--ink); color: var(--paper); }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 44px 0 0; }
.pager a, .pager span { min-width: 42px; padding: .6em .8em; text-align: center; font-weight: 700; border: 1.5px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--card); }
.pager a:hover { border-color: var(--ink); }
.pager [aria-current] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pager .gap { border: 0; background: none; }
.empty { text-align: center; padding: 60px 0; color: var(--muted); }

/* ---- Title page (theatrical) --------------------------------------------------- */

.film-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 5vw, 64px); margin-top: 36px; align-items: start; }
.film-main h1 { margin-bottom: .15em; }
.byline { font: 600 1.05rem var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.4em; }
.prose { font: 400 1.02rem/1.72 var(--body); max-width: 72ch; }
.prose p { margin: 0 0 1.2em; }
.prose h2, .prose h3 { margin-top: 1.4em; }
.prose img { margin: 1em 0; border-radius: var(--radius); }
.trailer { margin-top: 28px; background: #000; }
.trailer iframe { width: 100%; height: 100%; border: 0; display: block; }

.book-card {
  position: sticky; top: 24px; background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 22px; box-shadow: 6px 6px 0 var(--ink);
}
.book-note { font-size: .82rem; color: var(--muted); margin: 10px 0 18px; }
.formats { margin-bottom: 14px; }
.specs { margin: 0 0 16px; border-top: 1px solid var(--line); }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.specs dt { color: var(--muted); font-weight: 500; }
.specs dd { margin: 0; text-align: right; font-weight: 600; }
.in-collections { margin-bottom: 8px; }
.twin { display: flex; gap: 12px; align-items: center; margin-top: 12px; padding: 12px; background: var(--paper-2); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-size: .9rem; }
.twin img { width: 56px; aspect-ratio: 4/5; object-fit: cover; }
.twin:hover { background: var(--ink); color: var(--paper); }

@media (max-width: 900px) {
  .film-body { grid-template-columns: 1fr; margin-top: 24px; }
  .book-card { position: static; order: -1; }   /* booking right under the title block on phones */
  .film-main { display: contents; }
  .film-main > .crumbs, .film-main > h1, .film-main > .byline { order: -2; }
}

/* ---- Home -------------------------------------------------------------------- */
.features { background: var(--ink); position: relative; }
.features-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.features-track::-webkit-scrollbar { display: none; }
.feature { flex: 0 0 100%; scroll-snap-align: start; position: relative; min-height: clamp(420px, 62vh, 640px); display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.feature::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,0) 70%); z-index: -1; }
.feature-body { width: 100%; padding-bottom: clamp(56px, 7vw, 84px); }
.feature h2 { color: #fff; font-size: clamp(2rem, 1.2rem + 3.6vw, 4.2rem); font-weight: 800; max-width: 18ch; margin-bottom: .25em; }
.feature p { font-size: 1.15rem; max-width: 52ch; color: #e8e8e8; }
.feature .eyebrow { color: var(--teal-hi); }
.features-nav { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; align-items: center; gap: 14px; justify-content: flex-end; }
.car-btn { background: rgba(0,0,0,.5); color: #fff; border: 1.5px solid rgba(255,255,255,.6); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; }
.car-btn:hover { background: var(--teal); color: var(--ink); border-color: var(--teal); }
.dots { display: flex; gap: 6px; }
.dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.4); padding: 0; cursor: pointer; }
.dots button[aria-current="true"] { background: var(--teal); width: 24px; border-radius: 5px; }

.book-band { background: var(--teal); border-bottom: 3px solid var(--ink); }
.book-band-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding-top: clamp(36px, 5vw, 56px); padding-bottom: clamp(36px, 5vw, 56px); }
.book-band .eyebrow { color: var(--ink); }
.book-band .lede { color: var(--ink); opacity: .85; margin: 0; }
.book-band .btn { background: var(--ink); color: #fff; }
.book-band .btn:hover { background: #333; color: #fff; }
.search-form { display: flex; gap: 10px; }
.quick-genres { margin: 14px 0 0; }
@media (max-width: 800px) { .book-band-inner { grid-template-columns: minmax(0, 1fr); } }

.disc-band { background: var(--paper-2); padding-bottom: clamp(40px, 6vw, 72px); margin-top: clamp(40px, 6vw, 72px); padding-top: 1px; }
.about-band { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(24px, 5vw, 64px); margin-bottom: clamp(48px, 7vw, 88px); }
.about-band .btn { margin: 0 8px 8px 0; }
@media (max-width: 800px) { .about-band { grid-template-columns: 1fr; } }

/* ---- News / pages / forms ------------------------------------------------------ */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.post-list time { font: 600 .78rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.post-list h2 { font-size: 1.3rem; margin: 8px 0; }
.post-list h2 a { color: var(--ink); text-decoration: none; }
.post-list h2 a:hover { color: var(--teal-ink); }
.page-article { margin-bottom: 80px; }
.page-404 { text-align: center; padding: 100px 0; }
.page-404 .search-form { max-width: 560px; margin: 24px auto; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); margin-bottom: 80px; }
.form label { display: block; font-weight: 600; margin-bottom: 14px; }
.form input, .form textarea { display: block; width: 100%; margin-top: 6px; padding: .8em; background-image: none; font-size: 1rem; }
.form input:focus, .form textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--teal); }
.form [aria-invalid="true"] { border-color: var(--blood); }
.field-err { color: var(--blood); font-size: .88rem; margin: -8px 0 14px; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; border: 2px solid var(--ink); }
.notice-ok { background: #dcefe9; }
.notice-err { background: #f6dcd6; }
.contact-block { padding: 22px; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; }
.contact-booking { border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--teal); }
.contact-block h2 { font-size: 1.1rem; }
address { font-style: normal; margin-bottom: 1em; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---- Footer ------------------------------------------------------------------ */
.site-footer { background: var(--ink); color: #cfcfcf; margin-top: 0; padding-top: 56px; font-size: .95rem; }
.site-footer h2 { color: #fff; font-size: 1rem; letter-spacing: .12em; }
.site-footer a { color: var(--teal-hi); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.signup { display: flex; gap: 8px; max-width: 440px; }
.signup input { flex: 1; min-width: 0; font: 500 1rem var(--display); padding: .75em .9em; border: 0; border-radius: var(--radius); }
.signup .btn { box-shadow: none; border-color: var(--teal); }
.footer-links, .social { list-style: none; margin: 0 0 16px; padding: 0; }
.footer-links li { margin-bottom: 6px; }
.social { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .85rem; }
.footer-base { border-top: 1px solid #2a2a2a; margin-top: 44px; padding-top: 18px; padding-bottom: 28px; font-size: .8rem; color: #8a8a8a; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* ---- Lightbox (home video stills) ---------------------------------------------- */

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


/* ============================================================================
   CASEBOOK — the chosen direction (Sept 2026): Pressbook's layout in Keepcase's
   finish. Layered after the base rules above; see BRAND.md.
   ========================================================================== */

:root {
  --radius: 0;
  --key: 2px solid var(--ink);
  --stars: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='12' viewBox='0 0 14 12'%3E%3Cpath d='M7 .6l1.6 3.9 4.2.3-3.2 2.7 1 4.1L7 9.4 3.4 11.6l1-4.1L1.2 4.8l4.2-.3z' fill='%23000'/%3E%3C/svg%3E");
  --stars-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='12' viewBox='0 0 14 12'%3E%3Cpath d='M7 .6l1.6 3.9 4.2.3-3.2 2.7 1 4.1L7 9.4 3.4 11.6l1-4.1L1.2 4.8l4.2-.3z' fill='%23faf4e2'/%3E%3C/svg%3E");
}

/* ---- Type: pressbook scale, keepcase voice ---------------------------------- */
h1 { font-size: clamp(2.6rem, 1.4rem + 5vw, 5.4rem); font-weight: 900; letter-spacing: -.03em; line-height: .92; }
h2 { font-weight: 900; letter-spacing: -.01em; }
.eyebrow { font-family: var(--mono); font-weight: 500; letter-spacing: .06em; color: var(--ink); }
.byline, .card .meta, .crumbs, .label, .specs dt, .count, .book-note, .collection-card-count {
  font-family: var(--mono); letter-spacing: 0; text-transform: none; font-weight: 500;
}
.byline { font-size: 1rem; color: var(--ink); }
.crumbs { text-transform: uppercase; font-size: .78rem; }
.card .meta { font-size: .78rem; color: var(--muted); }

/* ---- Rules: big pressbook column heads over the star border ----------------- */
.section-head, .section-title { border-bottom: 0; position: relative; padding-bottom: 24px; }
.section-head::after, .section-title::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: var(--stars) repeat-x left center / 14px 12px; }
.section-head h2, .section-title { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem); }
.filters-bar { border-top: 0; padding-top: 26px; position: relative; }
.filters-bar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: var(--stars) repeat-x left center / 14px 12px; }

/* ---- Snipe labels: aqua with a keyline, set straight ------------------------ */
.feature .eyebrow, .book-band .eyebrow {
  display: inline-block; background: var(--teal); color: var(--ink); border: var(--key);
  padding: .5em .75em .45em; font: 700 .8rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase;
}

/* ---- Buttons & chips: square aqua spot color --------------------------------- */
.btn { border-radius: 0; box-shadow: none; border: var(--key); font-weight: 800; }
.btn:hover { background: var(--ink); color: var(--paper); transform: none; box-shadow: none; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: var(--paper); }
.chip { border-radius: 0; font-family: var(--mono); text-transform: none; letter-spacing: 0; font-weight: 500; }

/* ---- Film cards: keyline window + black title slab --------------------------- */
.card-img { border: var(--key); border-radius: 0; background: var(--ink); }
.disc-card .card-img { background: #fff; }
.film-card h3 { display: inline; background: var(--ink); color: var(--paper); padding: .16em .38em; line-height: 1.6; box-decoration-break: clone; -webkit-box-decoration-break: clone; font-weight: 800; }
.card a:hover h3 { color: var(--teal); }
.disc-card h3 { font-weight: 800; }
.film-card .meta { margin-top: 6px; }

/* ---- Collections: ad-mat blocks, aqua duotone photo over an eggshell slab ---- */
.collection-card { border-radius: 0; border: var(--key); background: var(--paper); aspect-ratio: auto; display: flex; flex-direction: column; isolation: isolate; }
.collection-card img { position: relative; inset: auto; z-index: 0; aspect-ratio: 16 / 10; height: auto; opacity: 1;
  filter: grayscale(1) contrast(1.15) brightness(1.35); mix-blend-mode: multiply; background: var(--teal); }
.collection-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 16 / 10; background: var(--teal); z-index: -1; }
.collection-card::after { background: none; }
.collection-card:hover img { filter: grayscale(1) contrast(1.3) brightness(1.2); transform: none; }
.collection-card-body { position: static; background: var(--paper); color: var(--ink); padding: 10px 12px 12px; border-top: var(--key); }
.collection-card-title { font-weight: 900; font-size: 1.2rem; letter-spacing: -.01em; }
.collection-card-count { color: var(--muted); font-size: .78rem; margin-top: 3px; }
.collection-card:hover { color: var(--ink); }

/* ---- Homepage hero: full-bleed color still, stacked headline, snipe ---------- */
.feature { min-height: clamp(460px, 68vh, 680px); }
.feature::before { background: linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.05) 100%); }
.feature h2 { font-size: clamp(2.4rem, 1rem + 4.6vw, 5.2rem); font-weight: 900; line-height: .9; letter-spacing: -.03em; max-width: 14ch; color: var(--paper); }
.feature p { font: 400 1.08rem/1.55 var(--body); color: var(--paper); max-width: 48ch; }
.feature .eyebrow { margin-bottom: 1.2em; }
.features { border-bottom: var(--key); }
.car-btn { border-radius: 0; background: var(--paper); color: var(--ink); border: var(--key); }
.car-btn:hover { background: var(--teal); color: var(--ink); border-color: var(--ink); }
.dots button { border-radius: 0; }
.dots button[aria-current="true"] { background: var(--teal); border-radius: 0; }

/* ---- Booking band: aqua between star rules, oversized black headline --------- */
.book-band { background: var(--teal); border-bottom: 0; position: relative; }
.book-band::before, .book-band::after { content: ""; position: absolute; left: 0; right: 0; height: 12px; background: var(--stars) repeat-x left center / 14px 12px; }
.book-band::before { top: 12px; } .book-band::after { bottom: 12px; }
.book-band-inner { padding-top: clamp(48px, 6vw, 72px); padding-bottom: clamp(48px, 6vw, 72px); }
.book-band h2 { font-size: clamp(1.8rem, .2rem + 3vw, 2.9rem); line-height: .95; text-wrap: balance; }
.book-band .eyebrow { background: var(--paper); margin-bottom: 1em; }
.book-band .lede { color: var(--ink); opacity: 1; font: 400 1.05rem/1.6 var(--body); }
.book-band .btn { background: var(--ink); color: var(--paper); }
.book-band .btn:hover { background: var(--paper); color: var(--ink); }
/* Genre boxes span exactly the width of the search field + button above them. */
.quick-genres { display: flex; flex-wrap: wrap; gap: 6px; }
.quick-genres .chip { flex: 1 1 auto; text-align: center; margin: 0; padding: .55em .6em; }
.book-band .chip { background: var(--paper); border-color: var(--ink); }
.book-band .chip:hover { background: var(--ink); color: var(--paper); }
.search-form input, .filters-search input { border-radius: 0; border: var(--key); background: var(--paper); }

.disc-band { background: var(--paper-2); border-top: var(--key); border-bottom: var(--key); }

/* ---- Title & disc pages: one big image, then text column + order form ----- */
/* The image spans the full content width, so its edges line up with the title
   column on the left and the order form on the right. 2:1 keeps the title above
   the fold on a laptop. */
.title-hero { padding-top: clamp(20px, 3vw, 36px); }
.title-hero .lead-still { aspect-ratio: 2 / 1; border: var(--key); box-shadow: none; background: var(--ink); margin: 0; overflow: hidden; }
.title-hero .lead-still img { width: 100%; height: 100%; object-fit: cover; }
.film-body { margin-top: clamp(28px, 3.5vw, 44px); }
.film-main h1 { margin-bottom: .12em; }
.film-main .prose { max-width: none; font-size: clamp(1rem, .95rem + .2vw, 1.1rem); line-height: 1.72; }   /* synopsis fills the column, flush with the trailer's right edge */
.film-main h1.long-title { font-size: clamp(2.2rem, 1.2rem + 3.2vw, 3.9rem); line-height: .95; }
.order-form > .btn-block + .specs, .order-form > .btn-block + .book-note { margin-top: 14px; }

/* Order form: a cut-out coupon from a vintage ad — dashed border, scissors cue. */
.order-form { border: 3px dashed var(--ink); border-radius: 0; box-shadow: none; background: var(--card); position: sticky; top: 28px; padding: 30px 22px 22px; }
.order-form::before { content: attr(data-form); position: absolute; top: -.85em; left: 14px; background: var(--paper); padding: 0 8px; font: 500 .8rem/1.6 var(--mono); letter-spacing: .02em; }
.order-cover { background: #fff; border: var(--key); margin-bottom: 16px; }
.order-cover img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.specs div { font-size: .9rem; }
.twin { border-radius: 0; border: 1.5px solid var(--ink); background: var(--paper-2); }
@media (max-width: 900px) {
  .title-hero { padding: 0; }
  .title-hero .lead-still { aspect-ratio: 16 / 9; border-left: 0; border-right: 0; }
  .order-form { position: relative; top: 0; margin-top: 12px; }
}

/* ---- Footer: fine-print mission box ----------------------------------------- */
.footer-base { border-top: 0; position: relative; padding-top: 30px; }
.footer-base::before { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: 0; height: 12px; background: var(--stars-white) repeat-x left center / 14px 12px; opacity: .8; }
.footer-base p { font-family: var(--mono); font-size: .8rem; }
.site-footer h2 { font-weight: 900; font-size: 1.15rem; letter-spacing: .03em; }
.signup input { border-radius: 0; }
.signup .btn { border-color: var(--teal); }

/* ---- Collections (both catalogs) --------------------------------------------- */
/* Banner: the cover still in aqua duotone, same keyline window as title pages. */
.collection-hero .lead-still { aspect-ratio: 3 / 1; }
.lead-still.duotone { background: var(--teal); isolation: isolate; }
.lead-still.duotone img { filter: grayscale(1) contrast(1.15) brightness(1.3); mix-blend-mode: multiply; }
.collection-intro { padding-top: clamp(24px, 3vw, 40px); padding-bottom: 0; }
.collection-intro .lede { color: var(--ink); }
.collection-intro .count { margin-top: .6em; color: var(--muted); font-size: .9rem; }
.collection-grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
.collection-tile p { font-size: .9rem; color: var(--muted); margin-top: 10px; }
@media (max-width: 900px) { .collection-hero .lead-still { aspect-ratio: 2 / 1; } }

/* ---- Listing pages: filter bar gets the star rule too ------------------------ */
.filters-compact { border-bottom: 0; position: relative; padding-bottom: 26px; margin-bottom: 26px; }
.filters-compact::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: var(--stars) repeat-x left center / 14px 12px; }
.filters-compact .count { font: 800 1rem/1 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.pager a, .pager span { border-radius: 0; border: 2px solid var(--ink); font-family: var(--display); }

/* ---- Static pages (About, Lab Work) ------------------------------------------- */
.page-article { margin-top: clamp(32px, 5vw, 64px); }
.page-article h1 { margin-bottom: .45em; }
.page-article > p > .btn { margin-top: 12px; }
.prose img { border: var(--key); border-radius: 0; }
.prose h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); position: relative; padding-bottom: 20px; }
.prose h2::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: var(--stars) repeat-x left center / 14px 12px; }

/* Pages built on the title-page layout (About, Lab Work) need their own bottom margin:
   title pages get it from the related-titles row. */
.page-body { margin-bottom: clamp(64px, 8vw, 104px); }

/* ---- Contact ------------------------------------------------------------------ */
.contact-grid { margin-top: 8px; align-items: start; }
.contact-page .page-head { padding-bottom: 8px; }
.form label { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.form input, .form textarea { border: var(--key); border-radius: 0; background: var(--paper); font: 400 1rem/1.5 var(--body); letter-spacing: 0; text-transform: none; }
.form input:focus, .form textarea:focus { box-shadow: 0 0 0 3px var(--teal); }
.contact-block { border: var(--key); border-radius: 0; background: var(--card); }
.contact-block h2 { font-size: 1.05rem; font-weight: 900; }
.contact-booking.order-form { box-shadow: none; padding-top: 26px; margin-bottom: 26px; position: relative; top: 0; }
.notice { border-radius: 0; }
@media (max-width: 600px) {
  /* Two ad-mat blocks per row on phones so the shelves don't push the titles far down. */
  .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .collection-card-title { font-size: .95rem; }
  .collection-card-body { padding: 8px 9px 9px; }
}

/* Every form field on the site sits on eggshell: search boxes, filter dropdowns,
   contact form, footer signup, plus the catalog's view toggle and page numbers.
   background-color only, so the dropdown arrow image survives. */
input, select, textarea, .view-toggle button:not([aria-pressed="true"]), .pager a { background-color: var(--paper); }
.view-toggle { border: var(--key); border-radius: 0; }   /* matches the filter dropdowns */
.view-toggle button + button { border-left: var(--key); }

/* Breathing room above the footer on every page (Oct 2). The homepage ends on the
   home-video band, which sits flush against the footer by design. */
main > :last-child:not(.disc-band) { margin-bottom: clamp(64px, 7vw, 100px); }

/* Flat home video cover art (Oct 2026): 1200 x 1390 px. Shown whole, edge to edge inside the
   keyline; replaces the white backdrop that framed the old 3D case mock-ups. */
.ratio-cover { aspect-ratio: 1200 / 1390; }
.disc-card .card-img { background: var(--paper-2); }
.disc-card .card-img img { object-fit: cover; }
.order-cover { background: var(--paper-2); }
.order-cover img { aspect-ratio: 1200 / 1390; object-fit: cover; display: block; }

/* ---- Round 5 (Oct 2026) ---------------------------------------------------- */
/* Donate button: eggshell box, aqua on hover. */
.site-nav .nav-donate { background: var(--paper); color: var(--ink); }
.site-nav .nav-donate:hover, .site-nav .nav-donate:focus-visible { background: var(--teal); color: var(--ink); }
/* Collections: full-colour photos (the aqua duotone is retired). */
.collection-card img, .collection-card:hover img { filter: none; mix-blend-mode: normal; background: var(--ink); }
.collection-card::before { background: var(--ink); }
.collection-card { isolation: auto; }
.lead-still.duotone { background: var(--ink); isolation: auto; }
.lead-still.duotone img { filter: none; mix-blend-mode: normal; }
/* Collections index: way back to the full catalog. */
.back-to-catalog { margin: 1.2em 0 0; }
/* Footer social icons. */
.social { gap: 10px 18px; align-items: center; }
.social a { display: inline-flex; color: #fff; opacity: .9; }
.social a:hover, .social a:focus-visible { color: var(--teal); opacity: 1; }

/* ---- About: the support page (Oct 2026) ------------------------------------ */
/* First paragraph = the mission statement, set large. */
.page-about-agfa .film-main .prose > p:first-child { font: 900 clamp(1.5rem, 1rem + 1.6vw, 2.2rem)/1.1 var(--display); letter-spacing: -.01em; text-transform: uppercase; margin: .2em 0 .9em; text-wrap: balance; }
/* Lists become keyline cards: What we do, What's next (numbered), Ways to support. */
.page-about-agfa .film-main .prose ul, .page-about-agfa .film-main .prose ol { list-style: none; padding: 0; margin: 1.2em 0 2em; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 14px; counter-reset: goal; }
.page-about-agfa .film-main .prose li { border: var(--key); background: var(--paper); padding: 16px 18px 18px; margin: 0; line-height: 1.6; font-size: .95rem; }
.page-about-agfa .film-main .prose li::before { content: none; }
.page-about-agfa .film-main .prose li strong:first-child { display: block; font: 900 1.15rem/1.15 var(--display); text-transform: uppercase; letter-spacing: -.005em; margin-bottom: .45em; }
.page-about-agfa .film-main .prose ol li { counter-increment: goal; }
.page-about-agfa .film-main .prose ol li::before { content: counter(goal, decimal-leading-zero); display: block; font: 900 2.2rem/1 var(--display); color: var(--teal); margin-bottom: .25em; }
.page-about-agfa .page-body { margin-bottom: 0; }
/* Closing call to action, in the homepage's aqua star band. */
.support-band { background: var(--teal); position: relative; margin-top: clamp(48px, 6vw, 80px); }
.support-band::before, .support-band::after { content: ""; position: absolute; left: 0; right: 0; height: 12px; background: var(--stars) repeat-x left center / 14px 12px; }
.support-band::before { top: 12px; } .support-band::after { bottom: 12px; }
.support-band-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(20px, 4vw, 56px); align-items: center; padding-top: clamp(52px, 6vw, 76px); padding-bottom: clamp(52px, 6vw, 76px); }
.support-band h2 { font-size: clamp(1.9rem, .4rem + 3vw, 3rem); line-height: .95; margin: 0 0 .35em; }
.support-band .eyebrow { background: var(--paper); margin-bottom: 1em; }
.support-band .lede { color: var(--ink); margin: 0; max-width: 46ch; font: 400 1.05rem/1.6 var(--body); }
.support-band-cta { margin: 0; }
.support-band .btn { background: var(--ink); color: var(--paper); min-width: 220px; text-align: center; }
.support-band .btn:hover { background: var(--paper); color: var(--ink); }
main > .support-band:last-child { margin-bottom: 0; }
@media (max-width: 800px) { .support-band-inner { grid-template-columns: minmax(0, 1fr); } }
.support-band .eyebrow { display: inline-block; }
@media (min-width: 600px) { .page-about-agfa .film-main .prose ul:has(> li:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.support-band .eyebrow { border: var(--key); padding: .5em .75em .45em; font: 700 .8rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; }
