/* site.css — design system for the public festival site.
   Sharp, flat, high-contrast, grid-driven — in the language of Berlinale /
   Sundance / Tribeca. Square edges, hairline rules, no gradients, no radii.
   Type: Archivo Black (display) + Archivo (body) + Space Mono (labels).
   Palette: near-black ink, warm white paper, single crimson accent. */

:root {
  --ink: #16151a;
  --ink-2: #201e26;
  --paper: #f0eee9;
  --paper-2: #e7e4db;
  --card: #f7f5f0;
  /* brand brights */
  --yellow: #ffc823;
  --cyan: #65c8d0;
  --pink: #ff5c70;
  --purple: #784c95;
  --accent: #ff5c70;         /* primary accent = pink */
  --accent-bright: #ff5c70;
  --coral: #ff5c70;          /* alias — legacy refs resolve to pink */
  --coral-bright: #ff5c70;   /* alias */
  --muted: #6a655c;
  --muted-d: rgba(240,238,233,0.62);
  --faint: #b2aca1;
  --line: rgba(22,21,26,0.16);
  --line-strong: rgba(22,21,26,0.92);
  --line-d: rgba(240,238,233,0.22);
  --maxw: 1360px;
  --pad: clamp(20px, 5vw, 72px);
  --display: "Archivo Black", "Archivo", system-ui, sans-serif;
  --body: "Archivo", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, Menlo, monospace;
}

/* local accent re-tint utilities */
.acc-yellow { --accent: #ffc823; --accent-bright: #ffc823; }
.acc-cyan   { --accent: #65c8d0; --accent-bright: #65c8d0; }
.acc-pink   { --accent: #ff5c70; --accent-bright: #ff5c70; }
.acc-purple { --accent: #784c95; --accent-bright: #784c95; }

* { box-sizing: border-box; }
button { outline: none; }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* square edges by default — elements override with their own border-radius where needed */

html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #fff; }

/* ── Type ───────────────────────────────────────────────── */
.display {
  font-family: var(--display); font-weight: 400; /* Archivo Black is already heavy */
  line-height: 0.94; letter-spacing: -0.02em; margin: 0;
  text-transform: uppercase;
}
.display.lc { text-transform: none; letter-spacing: -0.025em; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: -0.015em; }
/* Archivo Black has no italic face — keep display text upright (no synthesized slant) */
#root { padding-top: 68px; }
#root .display, #root h1, #root h2, #root h3 { font-style: normal !important; }
.serif-accent { color: var(--accent); }
.dark .serif-accent { color: var(--accent-bright); }
.label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; font-weight: 400;
}
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.dark .eyebrow { color: var(--accent-bright); }
p { margin: 0 0 1em; }
.lead { font-size: clamp(18px, 2vw, 22px); line-height: 1.5; font-weight: 400; }
.muted { color: var(--muted); }
.dark .muted { color: var(--muted-d); }

/* ── Layout ─────────────────────────────────────────────── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); width: 100%; }
.section { padding-block: clamp(64px, 10vw, 140px); }
.section.tight { padding-block: clamp(44px, 6vw, 80px); }
/* Consistent first-section top padding across all page heroes */
.page-hero { padding-top: clamp(54px, 8vw, 110px) !important; }
.dark { background: var(--ink); color: var(--paper); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.rule.strong { height: 2px; background: var(--line-strong); }
.dark .rule { background: var(--line-d); }

/* ── Header / nav ───────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: var(--ink); color: var(--paper);
  border-bottom: 1px solid var(--line-d);
}
.nav-inner { display: flex; align-items: stretch; justify-content: space-between; height: 80px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; cursor: pointer; flex: 1; justify-content: center; }
.brand .mk { font-family: var(--display); font-size: 21px; letter-spacing: -0.01em; text-transform: uppercase; white-space: nowrap; }
.brand .ed { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-d); border-left: 1px solid var(--line-d); padding-left: 12px; white-space: nowrap; }
.nav-links { display: flex; align-items: stretch; }
.nav-link {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0 18px; color: var(--paper); opacity: 0.7; cursor: pointer;
  transition: opacity .14s, color .14s; border: none; background: none; white-space: nowrap;
  display: flex; align-items: center; border-left: 1px solid var(--line-d);
}
.nav-link:hover { opacity: 1; }
.nav-link.active { opacity: 1; color: var(--accent-bright); }
.nav-cta {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0 22px; background: var(--accent); color: #fff; cursor: pointer; border: none;
  display: flex; align-items: center; transition: background .14s;
}
.nav-cta:hover { background: var(--accent-bright); }
.nav-burger { display: none; background: none; border: none; color: var(--paper); cursor: pointer; padding: 8px; align-items: center; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 15px 26px; cursor: pointer; border: none;
  background: var(--accent); color: #fff; transition: background .14s, color .14s;
  text-decoration: none;
}
.btn:hover { background: #fff; color: var(--ink); }
.btn.coral { background: var(--accent); color: #fff; border: none; }
.btn.coral:hover { background: #fff; color: var(--ink); }
.btn.outline { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.outline:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.dark .btn.outline { color: var(--paper); border-color: var(--line-d); }
.dark .btn.outline:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn.lg { padding: 18px 32px; font-size: 13px; }
.btn svg { width: 15px; height: 15px; }

.textlink { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; border-bottom: 2px solid currentColor; padding-bottom: 3px; transition: gap .14s, color .14s; }
.textlink:hover { gap: 13px; color: var(--accent); }
.dark .textlink:hover { color: var(--accent-bright); }

/* ── Tags / chips ───────────────────────────────────────── */
.tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 10px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.dark .tag { border-color: var(--line-d); color: var(--muted-d); }
.tag.solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.tag.ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 11px 18px; border: 1px solid var(--line); background: transparent; color: var(--muted);
  cursor: pointer; transition: all .12s; white-space: nowrap;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ── Image frames (flat + grain, no gradient) ───────────── */
.frame {
  position: relative; overflow: hidden; background: var(--ink-2);
  display: flex; align-items: flex-end; isolation: isolate;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
.frame::after { /* film grain texture (not a gradient) */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.16; mix-blend-mode: overlay;
}
.frame .frame-label {
  position: relative; z-index: 3; margin: 14px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; display: flex; align-items: center; gap: 7px; text-shadow: 0 1px 4px rgba(0,0,0,0.45);
}
.frame .frame-corner { position: absolute; top: 12px; right: 14px; z-index: 3; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.45); }
.frame .play { position: absolute; z-index: 3; inset: 0; display: flex; align-items: center; justify-content: center; }
.frame .play span { width: clamp(36px,8%,66px); height: clamp(36px,8%,66px); background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.5); display: flex; align-items: center; justify-content: center; color: #fff; transition: transform .18s, background .18s, border-color .18s; }ansition: transform .18s, background .18s; }
.frame:hover .play span { transform: scale(1.06); background: var(--accent); border-color: var(--accent); }

.frame .frame-img,
.frame .frame-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; display: block;
}
.frame .frame-img { filter: saturate(0.92) contrast(1.02); }

/* flat brand-colour fills (placeholders; grain only, no gradient) */
.frame.d-ink    { background: #16151a; }
.frame.d-yellow { background: #ffc823; }
.frame.d-cyan   { background: #65c8d0; }
.frame.d-pink   { background: #ff5c70; }
.frame.d-purple { background: #784c95; }
.frame.d-coral  { background: #ff5c70; }  /* alias */
.frame.d-sand   { background: #784c95; } /* alias */
.frame.d-steel  { background: #65c8d0; } /* alias */
.frame.d-plum   { background: #784c95; } /* alias */

/* ── Cards ──────────────────────────────────────────────── */
.film-card { cursor: pointer; display: flex; flex-direction: column; }
.film-card .frame { aspect-ratio: 3/4; }
.film-card .meta { padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--line); }
.dark .film-card .meta { border-color: var(--line-d); }
.film-card .title { font-family: var(--display); font-size: clamp(18px, 1.5vw, 22px); line-height: 1.04; letter-spacing: -0.01em; text-transform: uppercase; transition: color .14s; }
.film-card:hover .title { color: var(--accent); }
.dark .film-card:hover .title { color: var(--accent-bright); }
.film-card .sub { color: var(--muted); font-size: 13.5px; margin-top: 6px; font-family: var(--mono); letter-spacing: 0.02em; }
.dark .film-card .sub { color: var(--muted-d); }
.film-card .toprow { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }

.grid { display: grid; gap: clamp(16px, 2vw, 28px); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Footer ─────────────────────────────────────────────── */
.footer { background: var(--ink); color: var(--paper); padding-block: clamp(56px, 8vw, 96px) 36px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-d); font-weight: 400; margin: 0 0 16px; }
.footer .fcol a { display: block; padding: 6px 0; opacity: 0.82; font-size: 14px; transition: opacity .14s, color .14s; }
.footer .fcol a:hover { opacity: 1; color: var(--accent-bright); }
.footer .bigmark { font-family: var(--display); font-size: clamp(30px, 4vw, 50px); line-height: 0.95; letter-spacing: -0.02em; text-transform: uppercase; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--line-d); font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--muted-d); flex-wrap: wrap; gap: 12px; }

/* ── Cinematic hero (homepage) ──────────────────────────── */
.hero-cine {
  position: relative;
  min-height: min(92vh, 880px);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}
.hero-cine-media {
  position: absolute; inset: 0; z-index: 0;
  background: #0b0a0e;
}
.hero-cine-vid {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
  filter: saturate(0.78) contrast(1.05) brightness(0.78);
}
.hero-cine-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,10,14,0.55) 0%, rgba(11,10,14,0.18) 28%, rgba(11,10,14,0.22) 60%, rgba(11,10,14,0.85) 100%),
    radial-gradient(120% 80% at 50% 50%, rgba(11,10,14,0) 0%, rgba(11,10,14,0.4) 100%);
}
.hero-cine-media::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.12; mix-blend-mode: overlay; pointer-events: none;
}
/* Pixel texture overlay — pixel-effect.png tile */
.hero-cine-media::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background-image: url('../uploads/pixel-effect.png');
  background-repeat: repeat;
  background-size: 51px 51px;
  opacity: 0.85;
}
.hero-cine-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-rows: auto 1fr auto;
  flex: 1;
  padding-block: 28px 36px;
  gap: 32px;
  color: #fff;
}
.hero-cine-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.hero-cine-center { align-self: center; max-width: 1100px; }
.hero-cine-bottom {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: clamp(20px, 4vw, 56px);
}
.hero-cine-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cine-dates { text-align: center; }
.hero-cine-tags { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.dark .hero-cine .btn.outline { color: #fff; border-color: rgba(255,255,255,0.45); background: rgba(0,0,0,0.25); backdrop-filter: blur(6px); }
.dark .hero-cine .btn.outline:hover { background: #fff; color: var(--ink); border-color: #fff; }

@media (max-width: 760px) {
  .hero-cine { min-height: 78vh; }
  .hero-cine-bottom { grid-template-columns: 1fr; align-items: start; gap: 20px; }
  .hero-cine-tags { justify-content: flex-start; }
  .hero-cine-dates { text-align: left; }
}

/* ── Marquee ────────────────────────────────────────────── */
.marquee { overflow: hidden; border-block: 1px solid var(--line-d); white-space: nowrap; }
.marquee-track { display: inline-flex; gap: 0; padding: 14px 0; animation: marq 34s linear infinite; }
.marquee-track span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-d); display: inline-flex; align-items: center; gap: 44px; }
.marquee-track span::after { content: "■"; color: var(--accent-bright); font-size: 8px; margin: 0 44px; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ── Forms ──────────────────────────────────────────────── */
.input, .select, .textarea {
  width: 100%; padding: 15px 16px; border: 1px solid var(--line); background: var(--card);
  font-family: var(--body); font-size: 16px; color: var(--ink); transition: border-color .14s, box-shadow .14s;
}
.input::placeholder { color: rgba(0,0,0,0.45); }
.input.input-dark-ph::placeholder { color: #403e45; }
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.flabel { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.field { margin-bottom: 24px; }

/* ── Detail meta ────────────────────────────────────────── */
.metarow { display: flex; flex-wrap: wrap; gap: 28px; }
.metarow .mi .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.dark .metarow .mi .k { color: var(--muted-d); }
.metarow .mi .v { font-family: var(--display); font-size: 19px; margin-top: 6px; text-transform: uppercase; letter-spacing: -0.01em; }

/* ── Article body ───────────────────────────────────────── */
.article-body { max-width: 720px; margin: 0 auto; }
.article-body p { font-size: 19px; line-height: 1.64; margin: 0 0 1.1em; }
.article-body .a-figure { margin: 40px 0; }
.article-body .a-figure.inset { max-width: 72%; margin-inline: auto; }
.article-body figcaption { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted); margin-top: 12px; text-transform: uppercase; }
.article-body blockquote { margin: 44px 0; padding-left: 28px; border-left: 3px solid var(--accent); }
.article-body blockquote .q { font-family: var(--display); font-size: clamp(24px, 3vw, 36px); line-height: 1.12; letter-spacing: -0.02em; text-transform: uppercase; }
.article-body blockquote .c { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--muted); margin-top: 16px; text-transform: uppercase; }

/* Rich text output (from block editor) */
.article-body .rte-output p    { font-size: 19px; line-height: 1.64; margin: 0 0 1.1em; }
.article-body .rte-output h2   { font-family: var(--display); font-size: clamp(26px,3.2vw,40px); letter-spacing: -.02em; text-transform: uppercase; line-height: 1.04; margin: 1.3em 0 .4em; }
.article-body .rte-output h3   { font-family: var(--display); font-size: clamp(20px,2.5vw,28px); letter-spacing: -.01em; line-height: 1.1; margin: 1.1em 0 .35em; }
.article-body .rte-output h4   { font-family: var(--display); font-size: clamp(17px,2vw,22px); margin: 1em 0 .3em; }
.article-body .rte-output a    { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body .rte-output strong { font-weight: 700; }

/* Standalone heading block */
.article-body .a-heading       { margin: 1.3em 0 .4em; line-height: 1.06; }
.article-body .a-heading-h2    { font-family: var(--display); font-size: clamp(28px,3.5vw,44px); letter-spacing: -.02em; text-transform: uppercase; }
.article-body .a-heading-h3    { font-family: var(--display); font-size: clamp(22px,2.8vw,32px); letter-spacing: -.01em; }
.article-body .a-heading-h4    { font-family: var(--display); font-size: clamp(18px,2.2vw,24px); }

/* Image + Text side-by-side block */
.article-body .a-image-text {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  margin: 44px 0;
  /* break out of the 720px column slightly for breathing room */
  max-width: 860px;
  margin-inline: auto;
}
.article-body .a-image-text-img { margin: 0; }
.article-body .a-image-text-img img { width: 100%; display: block; border-radius: 4px; }
.article-body .a-image-text-body p  { font-size: 19px; line-height: 1.64; margin: 0 0 1em; }
.article-body .a-image-text-body h2 { font-family: var(--display); font-size: clamp(22px,2.8vw,34px); letter-spacing: -.02em; text-transform: uppercase; margin: 0 0 .4em; }
.article-body .a-image-text-body h3 { font-family: var(--display); font-size: clamp(18px,2.2vw,26px); margin: 0 0 .3em; }
.article-body .a-image-text-body a  { color: var(--accent); text-decoration: underline; }

/* Section divider */
.article-body .a-divider { border: none; border-top: 1px solid var(--line); margin: 52px 0; }

/* Float images (left / right) */
.article-body .a-figure.float-img.left  { float: left;  width: 42%; margin: 4px 32px 16px 0; clear: none; }
.article-body .a-figure.float-img.right { float: right; width: 42%; margin: 4px 0 16px 32px; clear: none; }

/* Responsive */
@media (max-width: 720px) {
  .article-body .a-image-text          { grid-template-columns: 1fr !important; }
  .article-body .a-figure.float-img.left,
  .article-body .a-figure.float-img.right { float: none; width: 100%; margin: 24px 0; }
}

/* ── Article footer (category + share) ─────────────────── */
.article-foot {
  max-width: 720px; margin: 52px auto 0;
  padding-top: 32px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 24px;
}
.article-foot-meta {
  display: flex; align-items: center; gap: 12px;
}
.article-foot-share {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.share-btns {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.share-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--line); background: var(--panel);
  font-family: var(--ui); font-size: 13px; font-weight: 500;
  color: var(--ink); cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
  white-space: nowrap;
}
.share-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.copy-btn.copied,
.share-btn.copy-btn:has(span:empty) { background: var(--good-soft); color: var(--good); border-color: var(--good); }

@media (max-width: 640px) {
  .share-btns { gap: 6px; }
  .share-btn span { display: none; }
  .share-btn { padding: 9px 10px; }
}
.kicker-row { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.kicker-row .ln { flex: 1; height: 1px; background: var(--line-strong); }
.dark .kicker-row .ln { background: var(--line-d); }
.fade-in { animation: fade .45s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.empty-note { color: var(--muted); font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; padding: 48px 0; text-align: center; text-transform: uppercase; }

/* ── Prevent horizontal overflow on mobile ─────────────── */
@media (max-width: 959px) {
  body, html { overflow-x: hidden; max-width: 100vw; }
  .arch-strand-btns { width: 100vw; }
}

/* ── Responsive: collapse inline grid layouts (which can't be reached by class
   alone, so these use !important to beat the inline gridTemplateColumns) ── */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr !important; min-height: auto !important; }
  .hero-grid > div:first-child { padding: 36px 0 28px 0 !important; gap: 28px !important; }
  .hero-grid > div:last-child { min-height: 360px; border-left: none !important; border-top: 1px solid var(--line-d); }
  .split-hero { grid-template-columns: 1fr !important; gap: 32px !important; }
  .home-selection { grid-template-columns: 1fr !important; gap: 36px !important; }
  .prog-hero-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .trailer-grid   { grid-template-columns: 1fr !important; }
  .voting-grid    { grid-template-columns: 1fr !important; gap: 24px !important; }
  .voting-aside   { border-left: none !important; padding-left: 0 !important; border-top: 1px solid var(--line-d); padding-top: 24px !important; }
  .strand-lower   { grid-template-columns: 1fr !important; }
  .film-head { grid-template-columns: 1fr !important; gap: 28px !important; }
  .film-head > div:last-child { border-left: none !important; padding-left: 0 !important; border-top: 1px solid var(--line); padding-top: 26px; }
  .film-credits-grid { grid-template-columns: 1fr !important; }
  .reel { grid-template-columns: 1fr !important; gap: 40px !important; }
  .submit-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
  .submit-grid aside { position: static !important; }
  .contact-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .contact-grid aside { position: static !important; }
  .newsletter-grid { grid-template-columns: 1fr !important; }
  .about-hero-grid { grid-template-columns: 1fr !important; }
  .about-hero-grid > div:last-child { border-top: 1px solid var(--line-d); padding-top: 18px; }
  .about-sec-grid { grid-template-columns: 1fr !important; }
  .about-module-grid { grid-template-columns: 1fr !important; }
  .arch-hero-grid { grid-template-columns: 1fr !important; }
  .arch-hero-grid > div:last-child { border-top: 1px solid var(--line-d); padding-top: 16px; }
  .arch-edition-row { grid-template-columns: 1fr !important; }
  .arch-strand-btns { grid-template-columns: repeat(2, 1fr) !important; }
  .arch-trailer-grid { grid-template-columns: 1fr !important; }

  .arch-edition-hero > div:last-child { max-width: 240px; }
  .arch-awards-grid { grid-template-columns: 1fr !important; }
  /* awards video — narrower frame, arrows half overlapping on mobile */
  .awards-vid-wrap { margin: 0 14px; }
  .av-arrow-prev { left: -31px !important; }
  .av-arrow-next { right: -31px !important; }
  .av-arrow { width: 36px !important; height: 36px !important; }
  .av-arrow svg { width: 14px !important; height: 14px !important; }
  /* ── Awards page ──────────────────────────────────────── */
  .winners-grid      { grid-template-columns: 1fr !important; }
  .winners-poster    { max-width: 280px !important; margin: 0 auto !important; }
  .awards-video-grid { grid-template-columns: 1fr !important; }
  .awards-photo-grid { grid-template-columns: 1fr !important; }
  .awards-photo-grid > div:not(:first-child) { display: none !important; }
  .arch-award-row { grid-template-columns: auto 1fr !important; gap: 12px !important; }
  .arch-award-row > span:last-child { display: none; }
  .arch-more-editions { grid-template-columns: repeat(3, 1fr) !important; }
  .news-lead { grid-template-columns: 1fr !important; gap: 24px !important; }
  .dayrow { grid-template-columns: repeat(3, 1fr) !important; }
  .dayrow > div { border-bottom: 1px solid var(--line); }
}
@media (max-width: 700px) {
  .home-cta { grid-template-columns: 1fr !important; }
  .news-row { grid-template-columns: 1fr !important; gap: 12px !important; }
  .news-row .news-row-img { display: none; }
  .arch-tabs { grid-template-columns: repeat(2, 1fr) !important; }
  .mosaic { grid-template-columns: repeat(3, 1fr) !important; }
  .mosaic > * { grid-column: auto !important; grid-row: auto !important; }
}
@media (max-width: 520px) {
  .dayrow { grid-template-columns: repeat(2, 1fr) !important; }
  .arch-tabs { grid-template-columns: 1fr !important; }
  .mosaic { grid-template-columns: repeat(2, 1fr) !important; }
}

@keyframes winners-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.winners-fade { animation: winners-fade-in .35s ease both; }

/* ── Lightbox ───────────────────────────────────── */
.voting-dot { animation: voting-pulse 1.6s ease-in-out infinite; }
@keyframes voting-pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.8); } }
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(12,11,15,0.92); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 64px);
  animation: lb-fade .2s ease both;
  cursor: zoom-out;
}
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox-stage {
  margin: 0; max-width: 100%; max-height: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  cursor: default;
}
.lightbox-img {
  max-width: 100%; max-height: 82vh; object-fit: contain;
  display: block; box-shadow: 0 30px 80px rgba(0,0,0,.5);
  animation: lb-pop .24s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes lb-pop { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.lightbox-caption {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center;
  color: rgba(240,238,233,0.78); font-size: 13px; font-family: var(--mono);
  letter-spacing: .04em; text-align: center;
}
.lightbox-count { color: rgba(240,238,233,0.5); font-size: 12px; }
.lightbox-close {
  position: fixed; top: 18px; right: 20px; z-index: 2;
  width: 46px; height: 46px; border-radius: 0;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font-size: 20px; cursor: pointer; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.lightbox-close:hover { background: var(--accent); border-color: var(--accent); }
.lightbox-nav {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 56px; height: 56px; border-radius: 0;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font-size: 34px; cursor: pointer; line-height: 1; padding-bottom: 4px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.lightbox-nav:hover { background: var(--accent); border-color: var(--accent); }
.lightbox-nav.prev { left: clamp(10px, 3vw, 36px); }
.lightbox-nav.next { right: clamp(10px, 3vw, 36px); }
.img-zoomable { cursor: zoom-in; }
@media (max-width: 640px) {
  .lightbox-nav { width: 44px; height: 44px; font-size: 26px; }
  .lightbox-img { max-height: 74vh; }
}

/* ── Responsive: nav + base grids ───────────────────────── */
@media (max-width: 1000px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .cols-4 { grid-template-columns: repeat(3, 1fr); }
  /* collapse the horizontal nav before it can overflow */
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: fixed; top: 80px; left: 0; right: 0; background: var(--ink); flex-direction: column; border-bottom: 1px solid var(--line-d); z-index: 60; }
  /* backdrop blur overlay behind the open menu */
  .nav-backdrop { display: none; }
  .nav-backdrop.open { display: block; position: fixed; inset: 0; top: 80px; z-index: 55; background: rgba(22,21,26,0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
  .nav-links.open .nav-link { width: 100%; padding: 16px 20px; border-left: none; border-top: 1px solid var(--line-d); }
  .nav-links.open .nav-cta { width: 100%; padding: 16px 20px; justify-content: flex-start; }
  .nav-burger { display: flex; margin-left: auto; }
  .nav-logo-img { max-height: 44px !important; }
  /* compensate burger width so brand appears truly centred */
  .nav-inner { position: relative; height: 68px; }
  .brand { position: absolute; left: 50%; transform: translateX(-50%); height: 100%; display: flex; align-items: center; gap: 12px; cursor: pointer; justify-content: center; }
  .nav-links.open { display: flex; position: fixed; top: 68px; left: 0; right: 0; background: var(--ink); flex-direction: column; border-bottom: 1px solid var(--line-d); z-index: 60; }
  .nav-backdrop.open { display: block; position: fixed; inset: 0; top: 68px; z-index: 55; background: rgba(22,21,26,0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
}
@media (max-width: 900px) {
  .brand .ed { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr 1fr; }
  .article-body p { font-size: 17px; }
  .article-body .a-figure.inset { max-width: 100%; }
}
@media (max-width: 480px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}

/* ── Deep mobile (phones) — spacing, type, overflow ─────── */
@media (max-width: 480px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
  .section { padding-top: 44px; padding-bottom: 44px; }
  .section.tight { padding-top: 32px; padding-bottom: 32px; }
  h1.display { overflow-wrap: break-word; word-break: break-word; }
  .article-body p,
  .article-body .rte-output p { font-size: 16px; line-height: 1.68; }
  .article-body blockquote .q { font-size: 22px; }
  .article-foot { margin-top: 36px; padding-top: 24px; }
  .article-foot-share { flex-direction: column; align-items: flex-start; gap: 12px; }
  .news-row { grid-template-columns: 1fr !important; gap: 8px !important; }
  .news-row .news-row-img { display: none; }
  .dayrow { grid-template-columns: 1fr !important; }
  .chip { font-size: 10px; padding: 5px 10px; }
  .kicker { font-size: 9px; }
  /* footer — brand full-width, 3 link cols below */
  .footer-top { grid-template-columns: 1fr 1fr 1fr !important; gap: 20px !important; }
  .footer-top > div:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--line-d); padding-bottom: 20px; margin-bottom: 4px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
  .footer .bigmark { font-size: clamp(22px,6vw,36px); }
  .footer .fcol a { font-size: 13px; }
  /* editions poster strip — scroll horizontally on phones */
  .editions-poster-grid { grid-template-columns: repeat(6, minmax(110px, 1fr)) !important; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
  .footer-social { flex-wrap: wrap; gap: 8px; }
}
