/* Chiaroscuro Film Fest — global styles */

:root {
  /* brand */
  --ink: #181818;
  --paper: #FAF9F6;
  --paper-dim: #F2F1ED;
  --paper-line: #E6E4DE;
  --yellow: #FFC200;
  --yellow-soft: #FFE08A;

  /* current theme (overridden by data-theme=dark) */
  --bg: var(--paper);
  --fg: var(--ink);
  --fg-dim: rgba(24, 24, 24, 0.55);
  --fg-faint: rgba(24, 24, 24, 0.28);
  --line: rgba(24, 24, 24, 0.14);
  --line-strong: rgba(24, 24, 24, 0.85);

  /* density — symmetric top/bottom, so the gap between two sections is ~2× this */
  --sect-py: clamp(60px, 6.2vw, 104px);
  --gutter: clamp(20px, 4vw, 56px);

  /* fonts */
  --f-sans: "General Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-display: "General Sans", ui-sans-serif, system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --f-serif: "Instrument Serif", "Times New Roman", serif;
}

[data-theme="dark"] {
  --bg: var(--ink);
  --fg: var(--paper);
  --fg-dim: rgba(250, 249, 246, 0.6);
  --fg-faint: rgba(250, 249, 246, 0.3);
  --line: rgba(250, 249, 246, 0.16);
  --line-strong: rgba(250, 249, 246, 0.9);
}

[data-density="compact"] { --sect-py: clamp(44px, 4.6vw, 76px); }
[data-density="comfy"]   { --sect-py: clamp(84px, 9vw, 148px); }

[data-font="serif"] {
  --f-display: "Instrument Serif", "Times New Roman", serif;
}
[data-font="display"] {
  --f-display: "Cabinet Grotesk", "General Sans", ui-sans-serif, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
/* Anchor targets clear the sticky nav so headings aren't hidden under it */
section[id] { scroll-margin-top: 92px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  font-family: var(--f-sans);
  font-feature-settings: "ss01", "ss02", "cv01";
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.45;
  transition: background 280ms ease, color 280ms ease;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
img { display: block; max-width: 100%; }
::selection { background: var(--yellow); color: var(--ink); }

/* layout */
.shell { width: 100%; max-width: 1680px; margin: 0 auto; padding: 0 var(--gutter); }
.row { display: flex; }

/* type */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  font-weight: 500;
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  margin-right: 8px;
  vertical-align: 1px;
}
.kicker {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

/* albo d'oro — collapsible palmarès */
.albo-collapse { border-top: 1px solid var(--line); }
.albo-collapse > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  user-select: none;
}
.albo-collapse > summary::-webkit-details-marker { display: none; }
.albo-summary-label {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg);
}
.albo-summary-label::before { content: attr(data-closed); }
.albo-collapse[open] .albo-summary-label::before { content: attr(data-open); }
.albo-summary-count {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.albo-chevron {
  margin-left: auto;
  width: 12px;
  height: 12px;
  border-right: 1.5px solid var(--fg-dim);
  border-bottom: 1.5px solid var(--fg-dim);
  transform: rotate(45deg);
  transition: transform 220ms ease, border-color 200ms ease;
}
.albo-collapse > summary:hover .albo-chevron { border-color: var(--fg); }
.albo-collapse[open] > summary .albo-chevron { transform: rotate(225deg); }
.h-display {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(56px, 11vw, 192px);
  line-height: 0.88;
  letter-spacing: -0.04em;
  margin: 0;
}
[data-font="serif"] .h-display { font-weight: 400; letter-spacing: -0.02em; }
.h-1 {
  font-family: var(--f-display);
  font-weight: 500;
  white-space: pre-line;
  font-size: clamp(36px, 5.4vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  margin: 0;
}
.h-2 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
}
.h-3 {
  font-weight: 600;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}
.lede {
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--fg);
}
.body { font-size: 16px; line-height: 1.55; color: var(--fg); }
.muted { color: var(--fg-dim); }
.tabular { font-variant-numeric: tabular-nums; }

/* hairlines */
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }
.hr-strong { height: 1px; background: var(--line-strong); border: 0; margin: 0; }

/* buttons / links */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.005em;
  white-space: nowrap;
  transition: transform 200ms ease, background 200ms ease, color 200ms ease;
}
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--fg); }
.btn-ghost:hover { background: var(--fg); color: var(--bg); }
.btn .arrow {
  display: inline-block; width: 14px; height: 14px;
  position: relative;
}
.btn .arrow::before {
  content: ""; position: absolute; inset: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path d='M3 11L11 3M11 3H5M11 3V9' stroke='black' stroke-width='1.5' fill='none' stroke-linecap='square'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path d='M3 11L11 3M11 3H5M11 3V9' stroke='black' stroke-width='1.5' fill='none' stroke-linecap='square'/></svg>") center/contain no-repeat;
}
.link-u { border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.link-arrow:hover .arrow { transform: translate(2px, -2px); }
.link-arrow .arrow { transition: transform 200ms ease; }

/* placeholder image */
.placeholder {
  position: relative;
  background:
    repeating-linear-gradient(135deg, var(--paper-line), var(--paper-line) 1px, transparent 1px, transparent 14px),
    var(--paper-dim);
  color: var(--fg-dim);
  overflow: hidden;
  border-radius: 2px;
}
[data-theme="dark"] .placeholder,
.dark-sect .placeholder {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.05) 1px, transparent 1px, transparent 14px),
    rgba(255,255,255,.04);
}
.placeholder .ph-label {
  position: absolute;
  bottom: 10px; left: 12px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.placeholder .ph-tag {
  position: absolute;
  top: 10px; right: 10px;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--bg);
  color: var(--fg);
  padding: 4px 7px;
}

/* nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 80;
  padding: 16px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background 200ms ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logotype { height: 22px; width: auto; display: block; }
@media (max-width: 540px) { .nav-logotype { height: 18px; } }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 13px; color: var(--fg); position: relative; white-space: nowrap; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px;
  height: 1px; background: var(--fg); transform: scaleX(0); transform-origin: left;
  transition: transform 240ms ease;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-aux { display: flex; gap: 10px; align-items: center; }
.lang-toggle {
  display: inline-flex; gap: 2px; padding: 3px;
  border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase;
}
.lang-toggle button {
  padding: 4px 9px; border-radius: 999px; color: var(--fg-dim);
}
.lang-toggle button.on { background: var(--fg); color: var(--bg); }

/* ticker */
.ticker {
  position: fixed; top: 56px; left: 0; right: 0; z-index: 70;
  border-block: 1px solid var(--line);
  background: var(--bg);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow: hidden;
  height: 30px;
  display: flex; align-items: center;
}
.ticker-track {
  display: inline-flex; gap: 40px;
  white-space: nowrap;
  animation: ticker 38s linear infinite;
  padding-left: 40px;
}
.ticker-track span { display: inline-flex; align-items: center; gap: 12px; }
.ticker-track .pip { width: 5px; height: 5px; border-radius: 50%; background: var(--yellow); }
@keyframes ticker {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* sections */
section { padding-block: var(--sect-py); }
section + section { border-top: 1px solid var(--line); }

/* ── Consistent vertical rhythm ──
   Every section breathes equally top & bottom from a single token, so the
   gap between any two blocks is predictable. Dark blocks take a small,
   SYMMETRIC bump so their inverted colour never feels cramped against the
   hairline. No asymmetric / stacked calc() overrides — one rule each. */
.dark-sect { padding-block: calc(var(--sect-py) + clamp(16px, 2vw, 36px)); }

/* Light sections put .shell directly on the <section>, whose
   `padding: 0 var(--gutter)` shorthand would zero the vertical padding and
   glue content to the hairline. This higher-specificity rule restores the
   same symmetric vertical rhythm the bare `section` rule intends. */
section.shell { padding-block: var(--sect-py); }

/* Full-bleed atmosphere divider (video / image) sits flush to its neighbours */
.atmosphere { padding-block: 0; }

/* The footer supplies its own generous top air after the last section */
footer.foot { padding-top: clamp(72px, 7.5vw, 112px); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: end;
  margin-bottom: clamp(36px, 4.5vw, 60px);
}
.section-head .lhs { display: flex; flex-direction: column; gap: 16px; }
.section-head .rhs { color: var(--fg-dim); max-width: 44ch; justify-self: end; white-space: pre-line; }
@media (max-width: 760px) {
  .section-head { grid-template-columns: 1fr; }
  .section-head .rhs { justify-self: start; }
}

/* index number */
.idx {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
}

/* ========== HERO ========== */
.hero { position: relative; padding: 0; padding-top: 110px; min-height: 100vh; display: flex; flex-direction: column; }
.hero[data-variant="countdown"] { padding-bottom: 64px; }
.hero[data-variant="manifesto"] { padding-bottom: 80px; }
.hero[data-variant="chiaroscuro"] { padding-bottom: 0; }

/* Hero header strip (meta + countdown) */
.hero-meta {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px;
  align-items: end;
  padding: 24px var(--gutter);
  border-bottom: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.hero-meta .right { text-align: right; }
.hero-meta .center { text-align: center; }
@media (max-width: 760px) { .hero-meta { grid-template-columns: 1fr; gap: 8px; } .hero-meta .right, .hero-meta .center { text-align: left; } }

.hero-stage { flex: 1; padding: clamp(40px, 7vw, 90px) var(--gutter); display: flex; flex-direction: column; gap: 32px; }

/* Variant A — countdown */
.cd-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2.4vw, 36px);
  align-items: end;
  margin-block: clamp(20px, 4vw, 60px);
}
.cd-cell { display: flex; flex-direction: column; gap: 8px; }
.cd-cell .num {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(64px, 14vw, 220px);
  line-height: 0.85;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
}
.cd-cell .label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.hero-top-line { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.hero-title-stack { display: flex; flex-direction: column; gap: 18px; }
.hero-headline { font-family: var(--f-display); font-weight: 500; line-height: 0.9; letter-spacing: -0.035em; font-size: clamp(48px, 8vw, 144px); margin: 0; }
.hero-headline em { font-style: normal; color: var(--fg-dim); }

.hero-foot { display: grid; grid-template-columns: 1fr; gap: 24px; padding-top: 24px; border-top: 1px solid var(--line); align-items: start; }
.hero-foot .col { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.hero-foot .col .k { font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg-dim); }
@media (max-width: 760px) { .hero-foot { grid-template-columns: 1fr 1fr; } }

/* Variant B — manifesto */
.manifesto-stack { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 60px); align-items: flex-start; }
.manifesto-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(48px, 8.6vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0;
  max-width: 18ch;
}
.manifesto-title .o-mark {
  display: inline-flex; vertical-align: -0.05em;
  width: 1em; height: 1em;
  position: relative;
}
.manifesto-title .o-mark svg { width: 100%; height: 100%; }
.manifesto-byline { display: flex; gap: 32px; align-items: end; flex-wrap: wrap; }

/* Shared CTA row */
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* Variant D — countdown compact */
.hero[data-variant="compact"] { padding-bottom: 64px; }
.cd-strip {
  display: flex; align-items: baseline; gap: clamp(16px, 3vw, 40px);
  flex-wrap: wrap;
  padding: clamp(16px, 2vw, 24px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cd-strip-kicker {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-dim);
}
.cd-strip-nums { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.cd-strip-nums > span { display: inline-flex; align-items: baseline; gap: 7px; }
.cd-strip-nums b {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(30px, 4.4vw, 56px); line-height: 1;
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--fg);
}
.cd-strip-nums i {
  font-family: var(--f-mono); font-style: normal;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-dim);
}
.cd-strip-nums .sep { color: var(--fg-faint); font-family: var(--f-display); font-size: clamp(22px, 3vw, 38px); }
@media (max-width: 560px) { .cd-strip-nums .sep { display: none; } .cd-strip-nums { gap: 18px 24px; } }

/* Variant E — editorial index */
.hero[data-variant="editorial"] { padding-bottom: 80px; }
.ed-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.ed-main { display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }
.ed-headline {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(44px, 6.6vw, 116px); line-height: 0.94;
  letter-spacing: -0.035em; margin: 0; max-width: 14ch;
}
.ed-index { border-top: 2px solid var(--line-strong); }
.ed-symbol { padding: 18px 0; color: var(--fg); }
.ed-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 16px 0; border-top: 1px solid var(--line);
}
.ed-row .k { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-dim); }
.ed-row .v { font-size: 17px; text-align: right; }
@media (max-width: 860px) { .ed-grid { grid-template-columns: 1fr; } }

/* Variant F — marquee */
.hero[data-variant="marquee"] { padding-bottom: 0; }
.marquee-stage { padding: 0; gap: 0; overflow: hidden; }
.marquee-band { overflow: hidden; border-block: 1px solid var(--line); padding: 14px 0; }
.marquee-band.bottom { margin-top: auto; }
.marquee-track {
  display: inline-flex; white-space: nowrap; will-change: transform;
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(28px, 4vw, 56px); letter-spacing: -0.02em;
  animation: marqueeMove 30s linear infinite;
}
.marquee-band.bottom .marquee-track { animation-direction: reverse; }
.marquee-seq { display: inline-flex; }
.marquee-track span { padding: 0 0.35em; }
.marquee-track .star { color: var(--yellow); }
@keyframes marqueeMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
.marquee-center {
  flex: 1; display: flex; flex-direction: column; gap: 22px;
  align-items: center; justify-content: center; text-align: center;
  padding: clamp(40px, 6vw, 80px) var(--gutter);
}
.marquee-title {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(56px, 11vw, 200px); line-height: 0.86;
  letter-spacing: -0.045em; margin: 0;
}
.marquee-meta-line { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-dim); }

/* Variant C — chiaroscuro mouse */
.chiaro-stage {
  position: relative;
  flex: 1;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chiaro-stage .ph-bg {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.04) 1px, transparent 1px, transparent 18px),
    radial-gradient(ellipse at 50% 40%, rgba(255,255,255,.08), transparent 60%);
}
.chiaro-stage .ph-label {
  position: absolute; bottom: 16px; left: 18px;
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,.35);
}
.chiaro-layer-dark, .chiaro-layer-light {
  position: relative;
  z-index: 2;
  padding: clamp(20px, 5vw, 60px);
  text-align: center;
}
.chiaro-text {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(48px, 9vw, 168px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 0;
}
.chiaro-sub {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 18px;
  color: rgba(250,249,246,.5);
}
.chiaro-stage .light-mask {
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(circle 280px at var(--mx, 50%) var(--my, 50%),
    rgba(255, 194, 0, 0.55) 0%,
    rgba(255, 194, 0, 0.18) 30%,
    rgba(255, 194, 0, 0) 70%);
  mix-blend-mode: screen;
  transition: opacity 200ms ease;
}
.chiaro-stage .vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,.5) 100%);
}

/* mouse spot — light reveal layer */
.chiaro-reveal {
  position: absolute; inset: 0; z-index: 3;
  color: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  -webkit-mask: radial-gradient(circle 240px at var(--mx, 50%) var(--my, 50%), black, transparent 70%);
          mask: radial-gradient(circle 240px at var(--mx, 50%) var(--my, 50%), black, transparent 70%);
}

/* hero double-O — interactive */
.bigO {
  display: inline-block;
  position: relative;
  vertical-align: middle;
  line-height: 1;
}
.bigO svg { display: block; }
.bigO .ring { stroke: currentColor; fill: none; }
.bigO[data-anim="on"] .ring-1 { animation: ringPulse 7s ease-in-out infinite; transform-origin: center; }
.bigO[data-anim="on"] .ring-2 { animation: ringPulse 7s ease-in-out infinite reverse; transform-origin: center; }
@keyframes ringPulse {
  0%, 100% { transform: scaleX(1) scaleY(1); }
  50% { transform: scaleX(0.93) scaleY(1.03); }
}

/* ========== Manifesto / about section ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-grid .item .num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
  display: block;
}
.about-grid .item h3 { font-size: 22px; font-weight: 600; margin: 0 0 10px; letter-spacing: -0.01em; }
.about-grid .item p { color: var(--fg-dim); font-size: 15px; line-height: 1.55; margin: 0; }

/* ========== Numbers / stats strip ========== */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-bottom: 0;
}
.stats .stat {
  padding: 32px 24px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
}
.stats .stat:last-child { border-right: 0; }
.stats .stat .big {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stats .stat .lab {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats .stat:nth-child(2) { border-right: 0; }
}

/* ========== Atmosphere gallery ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  grid-template-areas:
    "big a"
    "big b";
  gap: clamp(12px, 1.4vw, 24px);
  min-height: clamp(420px, 50vw, 640px);
}
@media (max-width: 800px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas: "big" "a" "b";
    min-height: 0;
  }
  .gallery-cell { aspect-ratio: 3 / 2; }
}
.gallery-cell {
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
  display: block;
}
.gallery-cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 700ms cubic-bezier(.2,.7,.2,1), filter 400ms ease;
}
.gallery-cell:hover img { transform: scale(1.03); }
.gallery-cap {
  position: absolute; left: 14px; bottom: 12px;
  font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--paper);
  background: rgba(0,0,0,0.45);
  padding: 5px 9px;
  backdrop-filter: blur(4px);
}

/* atmosphere divider hover (optional subtle effect) */
.atmosphere img { transition: transform 1200ms cubic-bezier(.2,.7,.2,1); }
.jury-lead {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(28px, 4vw, 72px);
  align-items: stretch;
  padding-bottom: clamp(40px, 5vw, 80px);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(40px, 5vw, 80px);
}
@media (max-width: 900px) { .jury-lead { grid-template-columns: 1fr; } }
.jury-lead-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #0a0a0a;
}
.jury-lead-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.0) contrast(1.0);
}
.jury-lead-tag {
  position: absolute; top: 16px; left: 16px;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--yellow);
  color: var(--ink);
  padding: 7px 12px;
}
.jury-lead-tag .award-mark { font-family: var(--f-sans); }
.jury-lead-text { display: flex; flex-direction: column; justify-content: center; }
.jury-lead-text .lede { white-space: pre-line; }

.jury-rest {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 2.6vw, 44px);
}
@media (max-width: 900px) { .jury-rest { grid-template-columns: 1fr; } }
@media (min-width: 901px) and (max-width: 1100px) { .jury-rest { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.juror { display: flex; flex-direction: column; gap: 14px; }
.juror-portrait {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
  background: #0a0a0a;
}
.juror-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.04);
  transition: filter 320ms ease, transform 600ms cubic-bezier(.2,.7,.2,1);
}
.juror:hover .juror-portrait img { filter: grayscale(0) contrast(1); transform: scale(1.02); }
.juror-meta { display: flex; flex-direction: column; gap: 6px; }
.juror-name {
  font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin: 0;
}
.juror-role {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--fg-dim);
}
.juror-bio {
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-dim);
  margin: 8px 0 0;
}
.winners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.4vw, 36px);
}
@media (max-width: 1100px) { .winners-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .winners-grid { grid-template-columns: 1fr; } }
.winner { display: flex; flex-direction: column; gap: 16px; }
.winner-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #0a0a0a;
}
.winner-poster img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms cubic-bezier(.2,.7,.2,1), filter 600ms ease;
}
.winner:hover .winner-poster img { transform: scale(1.03); filter: brightness(0.55); }
.winner-badge {
  position: absolute; top: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--yellow);
  color: var(--ink);
  padding: 6px 10px;
  z-index: 2;
}
.winner-badge .award-mark { font-family: var(--f-sans); }
.winner-hover {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.75) 50%, rgba(0,0,0,0.92) 100%);
  display: flex; align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 320ms ease;
  z-index: 1;
}
.winner:hover .winner-hover { opacity: 1; }
.winner-hover-inner { color: var(--paper); }
.winner-hover-inner p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--paper);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.winner-meta { display: flex; flex-direction: column; gap: 6px; }
.winner-title { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin: 0; line-height: 1.15; }
.winner-byline {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--fg);
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.winner-byline .dot { color: var(--fg-faint); }
.winner-byline .muted { color: var(--fg-dim); }
.films {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
@media (max-width: 1100px) { .films { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .films { grid-template-columns: 1fr; } }
.film {
  display: flex; flex-direction: column; gap: 14px;
  cursor: pointer;
}
.film .thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.film .thumb .placeholder { position: absolute; inset: 0; }
.film .thumb .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.45) 100%);
  opacity: 0;
  transition: opacity 280ms ease;
}
.film:hover .thumb .scrim { opacity: 1; }
.film .thumb .play {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(.9);
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 320ms ease, transform 320ms ease;
}
.film:hover .thumb .play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.film .thumb .play::before {
  content: ""; width: 0; height: 0;
  border-left: 12px solid var(--ink);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  margin-left: 3px;
}
.film .award {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: -2px;
}
[data-theme="dark"] .film .award { color: var(--yellow); }
.film .title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.film .meta {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: flex; gap: 10px; flex-wrap: wrap;
}
.film .meta .sep::before { content: "·"; margin-right: 10px; }

/* ========== Jury & guests ========== */
.people {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2vw, 32px) clamp(16px, 2vw, 28px);
}
@media (max-width: 1000px) { .people { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .people { grid-template-columns: 1fr 1fr; gap: 18px 14px; } }
.person { display: flex; flex-direction: column; gap: 12px; }
.person .portrait-wrap {
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
}
.person .portrait-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.04);
  transition: filter 320ms ease, transform 600ms cubic-bezier(.2,.7,.2,1);
}
.person:hover .portrait-img { filter: grayscale(0) contrast(1); transform: scale(1.02); }
.person .portrait {
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
}
.person .name { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.person .role {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--fg-dim);
  line-height: 1.4;
}
.person.lead { grid-column: span 2; grid-row: span 2; }
.person.lead .portrait { aspect-ratio: 4 / 5; }
.person.lead .name { font-size: 26px; }

/* ========== Dark section (Chiaroscuro Incontra) ========== */
.dark-sect {
  background: var(--ink);
  color: var(--paper);
}
.dark-sect.section--full {
  border-top: 0;
  margin-top: 0;
}
.dark-sect {
  --fg: var(--paper);
  --bg: var(--ink);
  --fg-dim: rgba(250, 249, 246, 0.6);
  --fg-faint: rgba(250, 249, 246, 0.3);
  --line: rgba(250, 249, 246, 0.16);
  --line-strong: rgba(250, 249, 246, 0.9);
}

/* press / news */
.press {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
}
@media (max-width: 900px) { .press { grid-template-columns: 1fr; } }
.press-card {
  border: 1px solid var(--line);
  padding: 28px 28px 32px;
  display: flex; flex-direction: column; gap: 14px;
  background: var(--bg);
  position: relative;
  transition: border-color 200ms ease, transform 200ms ease;
}
.press-card:hover { border-color: var(--line-strong); }
.press-card .pub { display: flex; justify-content: space-between; align-items: baseline; }
.press-card .pub-name { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg); }
.press-card .pub-date { font-family: var(--f-mono); font-size: 11px; color: var(--fg-dim); }
.press-card .headline { font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; margin: 4px 0 0; }
.press-card .blurb { font-size: 14px; color: var(--fg-dim); line-height: 1.5; }

/* partners */
.partners {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-bottom: 0;
}
@media (max-width: 800px) { .partners { grid-template-columns: repeat(2, 1fr); } }
.partner {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 36px 24px;
  min-height: 140px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
  position: relative;
}
.partner:last-child { border-right: 0; }
@media (max-width: 800px) {
  .partner:nth-child(2n) { border-right: 0; }
}
.partner .name {
  font-size: 18px; font-weight: 600; letter-spacing: -0.005em;
}
.partner .role {
  font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-dim);
}

/* CTA strip */
.cta-strip {
  background: var(--yellow);
  color: var(--ink);
  padding: clamp(48px, 6vw, 88px) var(--gutter);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 32px;
}
@media (max-width: 800px) { .cta-strip { grid-template-columns: 1fr; } }
.cta-strip h2 { font-family: var(--f-display); font-weight: 500; font-size: clamp(36px, 5vw, 72px); line-height: 0.96; letter-spacing: -0.03em; margin: 0; }
.cta-strip .rhs { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.cta-strip .rhs .deadline { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.cta-strip .btn-dark { background: var(--ink); color: var(--paper); }

/* footer */
footer.foot {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(56px, 7vw, 96px) var(--gutter) 28px;
  position: relative;
  --fg: var(--paper);
  --fg-dim: rgba(250, 249, 246, 0.55);
  --line: rgba(250, 249, 246, 0.16);
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 72px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid h4 { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,.5); margin: 0 0 14px; font-weight: 500; }
.foot-grid a, .foot-grid p { font-size: 14px; color: var(--paper); line-height: 1.65; display: block; }
.foot-grid a:hover { color: var(--yellow); }
.foot-grid p { color: rgba(255,255,255,.7); margin: 0; }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: end;
  padding-top: 28px;
  gap: 24px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.foot-wordmark {
  padding-block: clamp(40px, 6vw, 80px) 12px;
  display: flex;
  justify-content: center;
}
.foot-wordmark img {
  width: 100%;
  max-width: 1400px;
  height: auto;
  display: block;
  opacity: 0.95;
}

/* small util */
.tag {
  display: inline-flex;
  font-family: var(--f-mono);
  font-size: 10.5px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
}
.tag.solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tag.yellow { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }

/* tweaks-launcher icon */
.tweaks-fab {
  position: fixed; right: 16px; bottom: 16px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  z-index: 60;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

/* page header for sub pages */
.page-head {
  padding: 140px var(--gutter) clamp(48px, 6vw, 96px);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { margin: 0; }
.page-head .meta-row {
  display: flex; justify-content: space-between; align-items: end;
  gap: 32px; padding-top: 32px;
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-dim);
}

/* programme schedule */
.day-tabs {
  display: flex; gap: 6px;
  margin-bottom: 32px; flex-wrap: wrap;
}
.day-tabs button {
  padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-dim);
  transition: all 180ms ease;
}
.day-tabs button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
[data-theme="dark"] .day-tabs button.on { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.cat-tabs { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; }
.cat-tabs button {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-dim);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}
.cat-tabs button.on { color: var(--fg); border-bottom-color: var(--yellow); }

.schedule { border-top: 1px solid var(--line); }
.slot {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  transition: background 180ms ease, padding 180ms ease;
}
.slot:hover { background: var(--paper-dim); padding-inline: 12px; }
[data-theme="dark"] .slot:hover { background: rgba(255,255,255,.04); }
.slot .time {
  font-family: var(--f-mono); font-size: 13px;
  letter-spacing: 0.04em; font-variant-numeric: tabular-nums;
  color: var(--fg);
}
.slot .body { display: flex; flex-direction: column; gap: 4px; }
.slot .body .name { font-size: 18px; font-weight: 600; letter-spacing: -0.005em; }
.slot .body .meta { font-family: var(--f-mono); font-size: 11px; color: var(--fg-dim); letter-spacing: 0.06em; text-transform: uppercase; }
.slot .cat {
  font-family: var(--f-mono); font-size: 10px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-dim);
  white-space: nowrap;
}
#albo .slot .cat { white-space: pre-line; }
.slot .cat[data-cat="talk"] { color: var(--fg); border-color: var(--fg); }

/* burger + mobile menu */
.nav-burger {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border: 1px solid var(--line); border-radius: 10px;
  background: transparent; cursor: pointer;
  padding: 0;
}
.nav-burger span {
  display: block; width: 18px; height: 1.5px; background: var(--fg);
  transition: transform 240ms ease, opacity 200ms ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed; left: 0; right: 0; top: 0;
  padding: 80px var(--gutter) 32px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 48px -24px rgba(0,0,0,0.25);
  z-index: 70;
  flex-direction: column; gap: 4px;
  animation: navMobileIn 260ms cubic-bezier(.2,.7,.2,1);
}
.nav-mobile.open { display: flex; }
@keyframes navMobileIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.nav-mobile-links { display: flex; flex-direction: column; }
.nav-mobile-links a {
  font-family: var(--f-display); font-size: 26px; font-weight: 500; letter-spacing: -0.02em;
  color: var(--fg); padding: 12px 0; border-bottom: 1px solid var(--line);
}
.nav-mobile-links a:active { opacity: 0.6; }

/* hide desktop nav links on small; reveal burger */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}
@media (max-width: 600px) {
  .nav-submit-btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-mobile { animation: none; }
}

/* ── Mobile layout safeguards for inline-styled grids ─────────────────── */
@media (max-width: 760px) {
  /* Submit: categories + sticky deadlines box stack */
  .submit-grid { grid-template-columns: 1fr !important; }
  .submit-grid > div:last-child { position: static !important; }
}
@media (max-width: 520px) {
  /* Submit category rows: label over description */
  .submit-grid ul li { grid-template-columns: 1fr !important; gap: 4px !important; }
}
@media (max-width: 640px) {
  /* Contacts: stack the 3 columns, drop the vertical dividers */
  .contact-grid { grid-template-columns: 1fr !important; }
  .contact-grid > div {
    border-right: 0 !important;
    border-bottom: 1px solid var(--line);
    padding-right: 0 !important;
  }
  .contact-grid > div:last-child { border-bottom: 0; }
}
@media (max-width: 700px) {
  /* Albo d'oro: the 4-column palmarès row collapses to a readable stack */
  #albo .slot { grid-template-columns: 1fr !important; gap: 6px !important; }
  #albo .slot .time { text-align: left !important; }
  #albo .slot .cat { justify-self: start; }
}
@media (max-width: 560px) {
  /* Countdown: 4 across overflows with 3-digit day counts — go 2×2 */
  .cd-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
  .cd-cell .num { font-size: clamp(56px, 22vw, 120px); }
}
