:root {
  --bg: #08080a;
  --surface: #101014;
  --surface-soft: rgba(16, 16, 20, 0.74);
  --ink: #f7f0e3;
  --muted: #b8afa1;
  --line: rgba(247, 240, 227, 0.16);
  --gold: #f1b43f;
  --paper: #f7f0e3;
  --paper-soft: #fffaf0;
  --paper-line: rgba(8, 8, 10, 0.14);
  --paper-muted: #62594f;
  --dark: #050506;
  --radius: 6px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

a,
button {
  font: inherit;
}

button {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 52px);
  background: linear-gradient(180deg, rgba(5, 5, 6, 0.86), rgba(5, 5, 6, 0));
  border-bottom: 1px solid transparent;
  transition: background 160ms ease, border-color 160ms ease;
}

.site-header.is-scrolled {
  background: rgba(5, 5, 6, 0.88);
  border-color: var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.brand img {
  width: 46px;
  height: auto;
  filter: invert(1);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a,
.nav-button {
  padding: 10px 11px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.nav-button:hover,
.nav-button:focus-visible {
  color: var(--ink);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  padding: 112px clamp(26px, 7vw, 104px) 72px;
  overflow: hidden;
}

.hero-bg,
.theme-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/home2026.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.72;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 6, 0.88), rgba(5, 5, 6, 0.52) 48%, rgba(5, 5, 6, 0.76)),
    linear-gradient(180deg, rgba(5, 5, 6, 0.1), var(--bg) 97%);
}

.hero-content,
.hero-panel {
  position: relative;
  z-index: 1;
}

.hero-content {
  transform: translate(34px, -2vh);
}

.kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 790px;
  margin-bottom: 22px;
  font-size: clamp(3.35rem, 8.4vw, 7.8rem);
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-logo-projector {
  position: relative;
  width: fit-content;
  margin: 4px 0 clamp(18px, 2.8vw, 30px);
}

.hero-logo-projector::before {
  content: "";
  position: absolute;
  left: 91%;
  top: 53%;
  z-index: -1;
  width: min(64vw, 880px);
  height: clamp(190px, 26vw, 360px);
  background:
    radial-gradient(ellipse at left, rgba(255, 255, 244, 0.48), rgba(255, 250, 224, 0.24) 38%, rgba(255, 245, 204, 0.05) 78%, rgba(255, 245, 204, 0)),
    linear-gradient(90deg, rgba(255, 255, 242, 0.36), rgba(255, 247, 212, 0.16) 44%, rgba(255, 247, 212, 0));
  clip-path: polygon(0 43%, 100% -8%, 100% 108%, 0 57%);
  filter: blur(15px);
  mix-blend-mode: screen;
  opacity: 0.56;
  pointer-events: none;
  transform: translateY(-50%);
}

.hero-logo-projector::after {
  content: "";
  position: absolute;
  left: 84%;
  top: 53%;
  z-index: -1;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(255, 252, 232, 0.36);
  filter: blur(34px);
  mix-blend-mode: screen;
  pointer-events: none;
  transform: translateY(-50%);
}

.hero-logo {
  position: relative;
  z-index: 1;
  width: clamp(220px, 28vw, 360px);
  height: auto;
  filter: invert(1) drop-shadow(0 18px 38px rgba(0, 0, 0, 0.36));
}

.hero h1 {
  max-width: 650px;
  margin-bottom: 18px;
  font-size: clamp(2.45rem, 4.2vw, 3.625rem);
  line-height: 0.94;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4.4vw, 4.1rem);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.hero-copy {
  max-width: 650px;
  color: #e7ddcc;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
}

.hero-actions,
.cta-actions,
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid rgba(247, 240, 227, 0.26);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:hover,
.button:focus-visible {
  border-color: var(--ink);
  background: rgba(247, 240, 227, 0.1);
}

.button-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #181006;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.button-ghost.dark {
  border-color: rgba(8, 8, 10, 0.2);
  color: var(--dark);
}

.button-ghost.dark:hover,
.button-ghost.dark:focus-visible {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}

.hero-panel {
  align-self: center;
  padding: 22px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

.status-pill {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-facts {
  display: grid;
  margin: 0;
}

.hero-facts div {
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.hero-facts dt {
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1;
}

.hero-facts dd {
  margin: 0;
  color: var(--muted);
}

.release-card {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.release-card span,
.download-strip span,
.film-card span,
.countdown-head span,
.reveal-grid span,
.signup-card span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.release-card strong,
.signup-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.25rem;
}

.section {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(70px, 9vw, 118px) 0;
}

.film-showcase,
.cta-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.65fr);
  gap: clamp(28px, 6vw, 82px);
}

.film-showcase,
.program-section,
.rules,
.process,
.schedule {
  border-top: 1px solid var(--line);
}

.schedule,
.film-showcase,
.program-section,
.process,
.rules {
  color: var(--dark);
  border-color: var(--paper-line);
  background: var(--paper);
  box-shadow: 0 0 0 100vmax var(--paper);
  clip-path: inset(0 -100vmax);
}

.film-showcase,
.program-section {
  background: var(--paper-soft);
  box-shadow: 0 0 0 100vmax var(--paper-soft);
}

.process {
  background: var(--paper-soft);
  box-shadow: 0 0 0 100vmax var(--paper-soft);
}

.festival-section {
  width: 100%;
  margin: 0;
  padding: clamp(76px, 9vw, 122px) max(18px, calc((100% - var(--max)) / 2));
  color: var(--dark);
  background:
    linear-gradient(180deg, #f7f0e3 0%, #fffaf0 48%, #f2eadc 100%);
  border-top: 1px solid var(--paper-line);
}

.festival-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.44fr);
  align-items: end;
  gap: clamp(28px, 6vw, 80px);
  margin-bottom: clamp(34px, 6vw, 70px);
}

.festival-hero .kicker,
.festival-card span,
.festival-columns span,
.festival-closing span {
  color: #9f701e;
}

.festival-hero h2 {
  max-width: 780px;
}

.festival-lead {
  margin: 0 0 8px;
  padding-left: 22px;
  border-left: 4px solid var(--gold);
  color: #4f463d;
  font-size: clamp(1.1rem, 1.7vw, 1.36rem);
  font-weight: 750;
}

.festival-story,
.festival-columns,
.festival-numbers {
  display: grid;
  gap: 1px;
  background: rgba(8, 8, 10, 0.14);
  border: 1px solid rgba(8, 8, 10, 0.14);
}

.festival-story {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.82fr) minmax(0, 0.82fr);
}

.festival-card,
.festival-columns article {
  min-height: 270px;
  padding: clamp(24px, 4vw, 42px);
  background: #fffaf0;
}

.festival-card span,
.festival-columns span,
.festival-closing span {
  display: block;
  margin-bottom: 20px;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.festival-card h3,
.festival-columns h3 {
  max-width: 520px;
  margin-bottom: 14px;
  font-size: clamp(1.55rem, 2.5vw, 2.55rem);
  line-height: 1;
  text-transform: uppercase;
}

.festival-card p,
.festival-columns p {
  max-width: 68ch;
  margin-bottom: 0;
  color: #5c5349;
}

.festival-featured {
  background:
    linear-gradient(135deg, rgba(5, 5, 6, 0.94), rgba(5, 5, 6, 0.72)),
    url("../images/galeria6.jpg") center / cover;
  color: #fff;
}

.festival-featured h3 {
  max-width: 480px;
  color: #fff;
  font-size: clamp(2rem, 3.7vw, 4rem);
}

.festival-featured p {
  color: #dfd4c4;
}

.festival-numbers {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1px;
  background: var(--dark);
  border-color: var(--dark);
}

.festival-numbers div {
  min-height: 150px;
  padding: clamp(20px, 3vw, 30px);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.festival-numbers strong {
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: clamp(2.1rem, 3.4vw, 3.7rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.festival-numbers strong.is-word {
  font-size: clamp(1.45rem, 2.4vw, 2.25rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.festival-numbers span {
  display: block;
  max-width: 160px;
  color: #d8cec0;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.festival-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(42px, 7vw, 76px);
}

.festival-closing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  margin-top: 1px;
  padding: clamp(24px, 4vw, 42px);
  background: var(--dark);
  color: #fff;
}

.festival-closing p {
  max-width: 640px;
  margin: 0;
  color: #ded4c5;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.25;
}

.festival-closing strong,
.festival-closing small {
  display: block;
  white-space: nowrap;
}

.festival-closing strong {
  font-size: 1.04rem;
}

.festival-closing small {
  color: var(--muted);
}

.rules {
  position: relative;
  width: 100%;
  margin: 0;
  padding: clamp(70px, 9vw, 118px) max(18px, calc((100% - var(--max)) / 2));
  overflow: hidden;
  color: #fff;
  border-color: rgba(247, 240, 227, 0.18);
  background:
    linear-gradient(90deg, rgba(5, 5, 6, 0.84), rgba(5, 5, 6, 0.48) 50%, rgba(5, 5, 6, 0.76)),
    linear-gradient(180deg, rgba(5, 5, 6, 0.2), rgba(5, 5, 6, 0.7)),
    url("../images/home2026-2.jpg") center / cover fixed;
  box-shadow: none;
  clip-path: none;
}

.rules h2 {
  color: #fff;
}

.rules .download-strip {
  border-top: 1px solid rgba(247, 240, 227, 0.28);
}

.rules .download-strip span {
  color: rgba(247, 240, 227, 0.72);
}

.festival-section .kicker,
.process .kicker,
.schedule .kicker,
.film-showcase .kicker,
.program-section .kicker,
.rules .kicker {
  color: #9f701e;
}

.theme-copy p:not(.kicker),
.showcase-copy p:not(.kicker),
.cta-content p:not(.kicker),
.signup-card p {
  color: var(--muted);
  font-size: 1.05rem;
}

.film-showcase .showcase-copy p:not(.kicker),
.cta-content p:not(.kicker),
.signup-card p {
  color: var(--paper-muted);
}

.compact {
  max-width: 680px;
  margin-bottom: 32px;
}

.step-list,
.timeline,
.rules-grid,
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  margin: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
}

.timeline,
.rules-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step-list li,
.timeline article,
.rules-grid article,
.film-card,
.program-grid article,
.countdown,
.reveal-grid article,
.signup-card {
  background: var(--surface);
}

.process .step-list,
.schedule .timeline,
.rules .rules-grid {
  background: var(--paper-line);
  border-color: var(--paper-line);
}

.process .step-list li,
.schedule .timeline article,
.rules .rules-grid article,
.film-showcase .film-card,
.program-section .program-grid article {
  background: #fff;
  color: var(--dark);
}

.step-list li,
.timeline article,
.rules-grid article,
.program-grid article {
  min-height: 190px;
  padding: 22px;
}

.step-list span,
.timeline time,
.program-grid span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.step-list strong {
  display: block;
  margin: 34px 0 10px;
  font-size: 1.15rem;
}

.step-list p,
.timeline p,
.rules-grid p,
.film-card p,
.program-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.process .step-list p,
.schedule .timeline p,
.rules .rules-grid p,
.film-showcase .film-card p,
.program-section .program-grid p {
  color: var(--paper-muted);
}

.program-grid {
  background: var(--paper-line);
  border: 1px solid var(--paper-line);
}

.program-grid strong {
  display: block;
  margin: 34px 0 10px;
  font-size: 1.15rem;
}

.program-section {
  position: relative;
  overflow: hidden;
  background: #f4eee2;
}

.program-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.5fr);
  align-items: end;
  gap: clamp(24px, 5vw, 64px);
  margin-bottom: 30px;
}

.program-heading h2 {
  max-width: 680px;
}

.program-heading > p {
  margin: 0 0 8px;
  color: var(--paper-muted);
  font-size: 1.05rem;
}

.program-soon {
  display: grid;
  gap: 10px;
  min-height: 260px;
  padding: clamp(28px, 6vw, 58px);
  border: 1px solid rgba(8, 8, 10, 0.12);
  background:
    linear-gradient(135deg, rgba(8, 8, 10, 0.9), rgba(8, 8, 10, 0.7)),
    linear-gradient(90deg, rgba(241, 180, 63, 0.2), rgba(255, 250, 240, 0));
  color: #fff;
  place-content: end start;
}

.program-soon span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.program-soon strong {
  max-width: 760px;
  font-size: clamp(1.8rem, 4.5vw, 4rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.program-soon p {
  max-width: 560px;
  margin: 0;
  color: #d8cec0;
  font-size: 1.05rem;
}

.program-section.is-program-live .program-soon,
.program-section:not(.is-program-live) .program-live {
  display: none;
}

.program-live {
  display: grid;
  gap: 1px;
  border: 1px solid rgba(8, 8, 10, 0.12);
  background: rgba(8, 8, 10, 0.12);
}

.program-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: rgba(8, 8, 10, 0.12);
}

.program-tab {
  min-height: 86px;
  padding: 18px;
  border: 0;
  background: #fffaf0;
  color: var(--dark);
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.program-tab span {
  display: block;
  margin-bottom: 6px;
  color: #9f701e;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

.program-tab.is-active {
  background: var(--dark);
  color: #fff;
}

.program-tab.is-active span {
  color: var(--gold);
}

.program-panels {
  background: #fffaf0;
}

.program-panel {
  display: grid;
  grid-template-columns: minmax(360px, 0.52fr) minmax(0, 1fr);
  min-height: 420px;
}

.program-day-intro {
  display: grid;
  align-content: end;
  gap: 14px;
  min-width: 0;
  overflow: hidden;
  padding: clamp(24px, 4vw, 42px);
  background: var(--dark);
  color: #fff;
}

.program-day-intro span {
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.program-day-intro h3 {
  max-width: 100%;
  margin: 0;
  color: #fff;
  font-size: clamp(1.85rem, 2.45vw, 2.75rem);
  line-height: 1.04;
  overflow-wrap: break-word;
  text-transform: uppercase;
}

.program-day-intro p {
  max-width: 330px;
  margin: 0;
  color: #d8cec0;
}

.program-list {
  display: grid;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fffaf0;
}

.program-list li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 22px;
  padding: clamp(20px, 3vw, 30px);
  border-bottom: 1px solid var(--paper-line);
}

.program-list li:last-child {
  border-bottom: 0;
}

.program-list time {
  color: #9f701e;
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1;
}

.program-list strong {
  display: block;
  margin-bottom: 6px;
  color: var(--dark);
  font-size: 1.12rem;
}

.program-list p {
  margin: 0;
  color: #4f463d;
}

.program-event {
  min-width: 0;
}

.film-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 20px;
  background: rgba(8, 8, 10, 0.12);
  border: 1px solid rgba(8, 8, 10, 0.12);
}

.film-list article {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 142px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.74);
}

.film-list span {
  color: #9f701e;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.film-list h4 {
  margin: 0;
  color: var(--dark);
  font-size: clamp(1.08rem, 1.6vw, 1.42rem);
  line-height: 1.08;
  text-transform: uppercase;
}

.film-list p {
  color: #4f463d;
  font-size: 0.95rem;
  line-height: 1.45;
}

.film-list.is-long {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rules .kicker {
  color: var(--gold);
}

.rules .rules-grid {
  background: rgba(247, 240, 227, 0.24);
  border-color: rgba(247, 240, 227, 0.24);
}

.rules .rules-grid article {
  background: rgba(255, 250, 240, 0.9);
  color: var(--dark);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(10px);
}

.rules .rules-grid p {
  color: #5a5147;
}

.theme-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(5, 5, 6, 0.82), rgba(5, 5, 6, 0.42) 52%, rgba(5, 5, 6, 0.64)),
    linear-gradient(180deg, rgba(5, 5, 6, 0.06), rgba(5, 5, 6, 0.52) 96%),
    url("../images/BG-TEMA2024.jpg") center / cover fixed;
  min-height: 92vh;
}

.theme-bg {
  background: transparent;
  opacity: 1;
  transform: none;
  backdrop-filter: blur(2px);
}

.theme-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.7fr);
  align-items: center;
  gap: 22px;
  min-height: 92vh;
}

.theme-copy p:not(.kicker) {
  max-width: 560px;
  color: #d1c8bb;
}

.countdown,
.reveal-grid article {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(16, 16, 20, 0.58);
  backdrop-filter: blur(10px);
}

.countdown {
  padding: 22px;
}

.countdown-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.countdown-head strong {
  color: var(--gold);
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.time-grid div {
  padding: 16px 8px;
  background: rgba(8, 8, 10, 0.72);
  text-align: center;
}

.time-grid strong {
  display: block;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1;
}

.time-grid span {
  color: #aaa39a;
  font-size: 0.82rem;
}

.reveal-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.reveal-grid article {
  min-height: 150px;
  padding: 22px;
}

.reveal-grid strong {
  display: block;
  margin-top: 18px;
  font-size: clamp(1.45rem, 3vw, 2.6rem);
  line-height: 1;
  text-transform: uppercase;
}

.film-grid {
  display: grid;
  gap: 12px;
}

.film-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 136px;
  overflow: hidden;
  border: 1px solid var(--paper-line);
}

.film-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.film-card div {
  padding: 18px;
}

.download-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 18px 0 0;
  border-top: 1px solid var(--paper-line);
}

.download-strip a {
  color: var(--gold);
  font-weight: 900;
}

.cta-section {
  width: auto;
  max-width: none;
  margin: 0;
  padding: clamp(70px, 9vw, 112px) max(18px, calc((100vw - var(--max)) / 2));
  background: #f7f0e3;
  color: var(--dark);
}

.cta-content {
  max-width: 760px;
}

.cta-content .kicker {
  color: #9f701e;
}

.signup-card {
  align-self: start;
  padding: 22px;
  border: 1px solid rgba(8, 8, 10, 0.16);
  background: #fffaf0;
}

.signup-card p,
.cta-content p:not(.kicker) {
  color: #62594f;
}

.signup-card .button {
  width: 100%;
  margin-top: 10px;
}

.site-footer {
  display: grid;
  gap: 18px;
  justify-items: center;
  padding: 38px 18px;
  background: var(--dark);
  color: #fff;
  text-align: center;
}

.site-footer img {
  width: min(620px, 92vw);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
}

.developer-credit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
  text-transform: uppercase;
}

.developer-credit strong {
  color: var(--ink);
}

.developer-credit img {
  width: 46px;
  height: auto;
  filter: invert(1);
  opacity: 0.82;
  transition: opacity 160ms ease;
}

.developer-credit:hover,
.developer-credit:focus-visible {
  color: var(--ink);
}

.developer-credit:hover img,
.developer-credit:focus-visible img {
  opacity: 1;
}

.rules-modal {
  width: min(920px, calc(100% - 32px));
  max-height: min(760px, calc(100vh - 32px));
  padding: 24px;
  border: 1px solid rgba(8, 8, 10, 0.14);
  border-radius: var(--radius);
  background: #f7f0e3;
  color: var(--dark);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
}

.rules-modal::backdrop {
  background: rgba(5, 5, 6, 0.72);
  backdrop-filter: blur(4px);
}

.modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.modal-close {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(8, 8, 10, 0.18);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus-visible {
  border-color: var(--dark);
}

.rules-modal h2 {
  font-size: clamp(1.8rem, 4vw, 3.3rem);
}

.modal-body {
  display: grid;
  gap: 22px;
  margin-top: 22px;
  color: #62594f;
  max-height: min(470px, 56vh);
  overflow: auto;
  padding-right: 10px;
}

.modal-body section {
  display: grid;
  gap: 9px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(8, 8, 10, 0.14);
}

.modal-body h3 {
  margin: 0;
  color: var(--dark);
  font-size: 1rem;
  text-transform: uppercase;
}

.modal-body p {
  margin: 0;
}

.modal-body ol,
.modal-body ul {
  margin: 0;
  padding-left: 22px;
}

.modal-body li {
  margin-bottom: 8px;
}

@media (max-width: 960px) {
  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    inset: 76px 18px auto;
    display: none;
    padding: 12px;
    background: rgba(5, 5, 6, 0.96);
    border: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a,
  .nav-button {
    width: 100%;
    text-align: left;
  }

  .hero,
  .festival-hero,
  .program-heading,
  .program-panel,
  .theme-wrap,
  .film-showcase,
  .cta-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 118px;
  }

  .hero-logo,
  .hero-logo-projector {
    width: clamp(220px, 44vw, 330px);
  }

  .hero-logo-projector::before {
    left: 88%;
    width: min(74vw, 560px);
    height: clamp(150px, 30vw, 230px);
    opacity: 0.5;
  }

  .theme-bg {
    display: none;
  }

  .theme-section {
    background:
      linear-gradient(90deg, rgba(5, 5, 6, 0.84), rgba(5, 5, 6, 0.42)),
      url("../images/BG-TEMA2024.jpg") center / cover scroll;
    min-height: auto;
  }

  .rules {
    background:
      linear-gradient(90deg, rgba(5, 5, 6, 0.86), rgba(5, 5, 6, 0.5)),
      linear-gradient(180deg, rgba(5, 5, 6, 0.24), rgba(5, 5, 6, 0.74)),
      url("../images/home2026-2.jpg") center / cover scroll;
  }

  .theme-wrap {
    min-height: auto;
  }

  .program-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .program-tab {
    min-width: 150px;
  }

  .program-panel {
    min-height: auto;
  }

  .program-day-intro h3,
  .program-day-intro p {
    max-width: 620px;
  }

  .film-list.is-long {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .festival-story,
  .festival-columns {
    grid-template-columns: 1fr;
  }

  .festival-card,
  .festival-columns article {
    min-height: auto;
  }

  .festival-closing {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-content {
    transform: none;
  }

  .step-list,
  .timeline,
  .rules-grid,
  .program-grid,
  .festival-numbers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .brand span {
    display: none;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.6rem);
  }

  .hero-logo,
  .hero-logo-projector {
    width: min(76vw, 300px);
    margin-bottom: 18px;
  }

  .hero-logo-projector::before,
  .hero-logo-projector::after {
    opacity: 0.3;
  }

  .hero h1 {
    font-size: clamp(2.28rem, 11vw, 3.35rem);
  }

  h2 {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .hero-facts div,
  .film-card,
  .download-strip {
    grid-template-columns: 1fr;
  }

  .step-list,
  .timeline,
  .rules-grid,
  .program-grid,
  .festival-numbers,
  .reveal-grid,
  .time-grid {
    grid-template-columns: 1fr;
  }

  .program-heading {
    margin-bottom: 24px;
  }

  .program-soon {
    min-height: 230px;
  }

  .program-list li {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .film-list,
  .film-list.is-long {
    grid-template-columns: 1fr;
  }

  .program-day-intro h3 {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .film-card img {
    height: 170px;
  }

  .developer-credit {
    flex-direction: column;
  }
}

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