/* ===== 1984show — Poster / Constructivist theme ===== */

/* Bebas Neue — только латиница; кириллица в hero/заголовках через Oswald (резерв с CDN). */
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/oswald@5.2.8/cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/oswald@5.2.8/latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/oswald@5.2.8/cyrillic-700-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/oswald@5.2.8/latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Латиница при том же font-weight:400 визуально тоньше кириллицы — подключаем Medium */
@font-face {
  font-family: "IBM Plex Sans Condensed";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans-condensed@5.2.8/latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans Condensed";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans-condensed@5.2.8/latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@property --accent {
  syntax: "<color>";
  inherits: true;
  initial-value: #d0101a;
}

@property --red {
  syntax: "<color>";
  inherits: true;
  initial-value: #d0101a;
}

:root {
  --black: #060606;
  --bg: #0a0a0a;
  --bg-card: #111111;
  --bg-elevated: #1a1a1a;
  --gray: #6b6b6b;
  --gray-light: #a3a3a3;
  --white: #f2f2f2;
  --accent: #d0101a;
  --accent-dark: #9a0b12;
  --accent-dim: rgba(208, 16, 26, 0.12);
  --red: #d0101a;
  --red-dark: #9a0b12;
  --red-dim: rgba(208, 16, 26, 0.12);
  --border: rgba(255, 255, 255, 0.1);
  --font-display: "Bebas Neue", "Oswald", sans-serif;
  /* Название 1984 — сменить здесь: Staatliches | Big Shoulders Display | Anton | Alumni Sans */
  --font-year: "Staatliches", "Bebas Neue", sans-serif;
  --font-body: "IBM Plex Sans Condensed", sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-mono: "IBM Plex Mono", monospace;
  --header-h: 64px;
  --radius: 0;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: min(1140px, calc(100% - 40px));
  /* Титул: чёткий силуэт внизу-справа + лёгкое размытие */
  --hero-read-shadow:
    1px 2px 0 rgba(6, 6, 6, 0.92),
    2px 5px 10px rgba(6, 6, 6, 0.48);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-synthesis: none;
  background: var(--bg);
  color: var(--white);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }

.container { width: var(--container); margin-inline: auto; }

/* ----- Atmosphere: rays + grain (like poster) ----- */
.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.atmosphere__rays {
  position: absolute;
  inset: -20% -10% auto;
  height: 70vh;
  background: conic-gradient(
    from 0deg at 50% 100%,
    transparent 0deg,
    rgba(255, 255, 255, 0.03) 10deg,
    transparent 20deg,
    rgba(255, 255, 255, 0.02) 30deg,
    transparent 40deg,
    rgba(255, 255, 255, 0.04) 50deg,
    transparent 60deg,
    rgba(255, 255, 255, 0.02) 70deg,
    transparent 80deg
  );
  mask-image: linear-gradient(to bottom, black 0%, transparent 85%);
}

.atmosphere__grain,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body::after { z-index: 10000; mix-blend-mode: overlay; }

main, .header, .footer, .surveillance-hud, .slogans-strip {
  position: relative;
  z-index: 2;
}

/* ----- Surveillance ----- */
.surveillance-hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
}

.hud-corner--tr {
  position: fixed;
  top: calc(var(--header-h) + 8px);
  right: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gray);
}

.hud-watch {
  color: var(--red);
  letter-spacing: 0.15em;
  font-size: 9px;
}

.hud-rec { color: var(--red); font-weight: 700; }

.hud-rec__dot {
  display: inline-block;
  margin-right: 0.2em;
  font-size: 1.45em;
  line-height: 1;
  vertical-align: -0.05em;
  animation: hud-rec-blink 1.9s ease-in-out infinite;
}

@keyframes hud-rec-blink {
  0%, 45% { opacity: 1; }
  50%, 95% { opacity: 0.2; }
  100% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hud-rec__dot { animation: none; }
}

/* ----- Header ----- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 8000;
  background: rgba(6, 6, 6, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--red);
}

.header__logo,
.header__aside {
  position: relative;
  z-index: 1;
}

.header__aside {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__logo { display: flex; align-items: baseline; gap: 10px; line-height: 1; }

.header__logo-num {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.06em;
  color: var(--white);
}

.header__logo-sub {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--red);
}

.header__nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 24px;
}

.header__nav a {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-light);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.header__nav a:hover {
  color: var(--white);
  transform: translateY(-2px);
}

.header__nav-tickets {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.header__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
}

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 7500;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.1em;
}

.mobile-nav[hidden] { display: none; }

@media (max-width: 900px) {
  .header__nav { display: none; }
  .header__burger { display: flex; }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background 0.85s var(--ease),
    color 0.35s var(--ease),
    border-color 0.85s var(--ease),
    box-shadow 0.85s var(--ease),
    transform 0.2s var(--ease);
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn--primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn--ghost:hover {
  background: var(--white);
  color: var(--black);
}

.btn--sm { padding: 10px 18px; font-size: 0.75rem; }
.btn--full { width: 100%; }

/* ----- Hero (poster layout) ----- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header-h) + 24px) 20px 64px;
  max-width: 1280px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
}

.hero__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  flex: 1;
}

.hero__title-stack {
  --title-size: clamp(5.5rem, 18vw, 11.5rem);
  --title-tracking: -0.03em;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  margin-bottom: 4px;
}

.hero__author {
  width: 100%;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.6vw, 2.35rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--red);
  text-shadow: var(--hero-read-shadow);
}

.hero__title {
  width: 100%;
  margin-bottom: 0;
  text-align: center;
}

.hero__year {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  font-family: var(--font-year);
  font-weight: 400;
  font-size: var(--title-size);
  line-height: 0.85;
  letter-spacing: var(--title-tracking);
  font-variant-numeric: tabular-nums;
  color: var(--white);
  text-shadow: var(--hero-read-shadow);
  position: relative;
  z-index: 0;
  isolation: isolate;
  text-align: center;
}

.hero__title-stack .hero__genre {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 20px);
  width: 100%;
  margin: 4px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.2vw, 1.35rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: var(--hero-read-shadow);
}

.hero__title-stack .hero__genre::before,
.hero__title-stack .hero__genre::after {
  content: "";
  flex: 0 1 56px;
  width: 56px;
  height: 1px;
  background: currentColor;
  opacity: 0.65;
}

.hero__genre {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 24px;
  text-shadow: var(--hero-read-shadow);
}

.hero__tagline {
  font-size: 1.05rem;
  color: var(--gray-light);
  max-width: 400px;
  margin-bottom: 28px;
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hero__domain {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  color: var(--red);
}

.hero__poster-frame {
  position: relative;
  border: 3px solid var(--border);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 24px 80px rgba(0, 0, 0, 0.7),
    inset 0 0 60px rgba(0, 0, 0, 0.4);
}

.hero__poster-img {
  width: 100%;
  height: auto;
  display: block;
  filter: contrast(1.05) saturate(0.85);
}

.hero__poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 50%,
    rgba(6, 6, 6, 0.3) 80%,
    rgba(6, 6, 6, 0.7) 100%
  );
  pointer-events: none;
}

.hero__scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gray);
}

/* TV glitch — три слоя + clip-path (CSS-Tricks / Lucas Bebber) */
.hero__year::before,
.hero__year::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: baseline;
  justify-content: center;
  font: inherit;
  letter-spacing: inherit;
  color: var(--white);
  pointer-events: none;
  clip-path: inset(0 0 100% 0);
  opacity: 0;
}

.hero__year::before {
  z-index: -2;
  left: -3px;
}

.hero__year::after {
  z-index: -1;
  left: 3px;
}

.hero__year.glitch-edge-before-red::before {
  color: var(--red);
  text-shadow:
    2px 0 var(--red),
    4px 0 color-mix(in srgb, var(--accent) 52%, transparent),
    0 0 16px color-mix(in srgb, var(--accent) 58%, transparent);
}

.hero__year.glitch-edge-before-blue::before {
  color: #5ab4ff;
  text-shadow:
    2px 0 #5ab4ff,
    4px 0 rgba(90, 180, 255, 0.55),
    0 0 16px rgba(90, 180, 255, 0.5);
}

.hero__year.glitch-edge-after-red::after {
  color: color-mix(in srgb, var(--accent) 88%, white);
  text-shadow:
    -2px 0 var(--red),
    -4px 0 color-mix(in srgb, var(--accent) 58%, transparent),
    0 0 18px color-mix(in srgb, var(--accent) 52%, transparent);
}

.hero__year.glitch-edge-after-blue::after {
  color: #6ec2ff;
  text-shadow:
    -2px 0 #5ab4ff,
    -4px 0 rgba(90, 180, 255, 0.55),
    0 0 18px rgba(90, 180, 255, 0.5);
}

.hero__title-main.is-glitch,
.hero__year.is-glitch {
  animation: hero-glitch-main 0.58s steps(2) 1;
}

.hero__year.is-glitch::before {
  opacity: 1;
  animation: hero-glitch-1 0.58s steps(1) 1;
}

.hero__year.is-glitch::after {
  opacity: 1;
  animation: hero-glitch-2 0.58s steps(1) 1;
}

@keyframes hero-glitch-main {
  0%, 100% { transform: translate(0); }
  12% { transform: translate(-2px, 0); }
  28% { transform: translate(2px, 1px); }
  44% { transform: translate(-1px, -1px); }
  60% { transform: translate(3px, 0); }
  76% { transform: translate(-2px, 1px); }
}

@keyframes hero-glitch-1 {
  0% { clip-path: inset(38% 0 42% 0); transform: translate(0); opacity: 1; }
  7% { clip-path: inset(8% 0 78% 0); transform: translate(-3px, 1px); }
  14% { clip-path: inset(62% 0 14% 0); transform: translate(2px, 0); }
  21% { clip-path: inset(22% 0 58% 0); transform: translate(-2px, -1px); }
  28% { clip-path: inset(76% 0 6% 0); transform: translate(4px, 0); }
  35% { clip-path: inset(4% 0 88% 0); transform: translate(-3px, 2px); }
  42% { clip-path: inset(48% 0 32% 0); transform: translate(2px, -1px); }
  49% { clip-path: inset(28% 0 52% 0); transform: translate(-4px, 0); }
  56% { clip-path: inset(68% 0 18% 0); transform: translate(3px, 1px); }
  63% { clip-path: inset(12% 0 72% 0); transform: translate(-2px, -2px); }
  70% { clip-path: inset(54% 0 28% 0); transform: translate(2px, 0); }
  77% { clip-path: inset(34% 0 46% 0); transform: translate(-3px, 1px); }
  84% { clip-path: inset(86% 0 4% 0); transform: translate(2px, -1px); }
  91% { clip-path: inset(18% 0 64% 0); transform: translate(-2px, 0); }
  100% { clip-path: inset(0 0 100% 0); transform: translate(0); opacity: 0; }
}

@keyframes hero-glitch-2 {
  0% { clip-path: inset(52% 0 30% 0); transform: translate(0); opacity: 1; }
  7% { clip-path: inset(14% 0 68% 0); transform: translate(3px, 0); }
  14% { clip-path: inset(72% 0 10% 0); transform: translate(-2px, 1px); }
  21% { clip-path: inset(32% 0 48% 0); transform: translate(2px, -1px); }
  28% { clip-path: inset(6% 0 82% 0); transform: translate(-3px, 0); }
  35% { clip-path: inset(58% 0 24% 0); transform: translate(4px, 1px); }
  42% { clip-path: inset(24% 0 56% 0); transform: translate(-2px, 0); }
  49% { clip-path: inset(84% 0 2% 0); transform: translate(3px, -1px); }
  56% { clip-path: inset(44% 0 36% 0); transform: translate(-4px, 1px); }
  63% { clip-path: inset(2% 0 90% 0); transform: translate(2px, 0); }
  70% { clip-path: inset(66% 0 16% 0); transform: translate(-3px, -1px); }
  77% { clip-path: inset(36% 0 44% 0); transform: translate(3px, 1px); }
  84% { clip-path: inset(10% 0 76% 0); transform: translate(-2px, 0); }
  91% { clip-path: inset(78% 0 8% 0); transform: translate(2px, -1px); }
  100% { clip-path: inset(0 0 100% 0); transform: translate(0); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__title-main.is-glitch,
  .hero__year.is-glitch,
  .hero__year.is-glitch::before,
  .hero__year.is-glitch::after {
    animation: none;
  }

  .hero__year::before,
  .hero__year::after {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
  }
}

@media (max-width: 900px) {
  .hero__layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__tagline, .hero__actions { margin-inline: auto; justify-content: center; }
  .hero__visual { order: -1; max-width: 320px; margin-inline: auto; }
  .hero__scroll { display: none; }
}

/* ----- Slogans strip ----- */
.slogans-strip {
  --slogan-size: 1.1rem;
  --slogan-pad-y: 15px;
  display: flex;
  align-items: center;
  border-block: 3px solid var(--red);
  background: var(--black);
  padding-block: var(--slogan-pad-y);
  overflow: hidden;
  line-height: 0;
}

.slogans-strip__track {
  display: flex;
  align-items: center;
  align-self: center;
  width: max-content;
  line-height: 1;
  animation: slogans-scroll 53s linear infinite;
  will-change: transform;
}

.slogans-strip__loop {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: clamp(32px, 6vw, 64px);
  padding-inline: clamp(20px, 4vw, 40px);
  line-height: 1;
}

.slogan-pillar {
  flex-shrink: 0;
  display: inline-block;
  margin: 0;
  padding: 0;
  font-family: var(--font-display);
  font-size: var(--slogan-size);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--white);
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

@supports (text-box-trim: trim-both) {
  .slogan-pillar {
    transform: translateY(-0.04em);
  }
}

@supports not (text-box-trim: trim-both) {
  .slogan-pillar {
    transform: translateY(0.04em);
  }
}

.slogan-pillar span,
.slogan-pillar em {
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.slogan-pillar span { color: var(--red); }
.slogan-pillar em { font-style: normal; color: var(--white); }

@keyframes slogans-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ----- Sections ----- */
.section { padding: 88px 0; }

.section-header {
  position: relative;
  z-index: 5;
  margin-bottom: 40px;
  overflow: visible;
}

.section-header--center { text-align: center; }
.section-header--center .section-desc { margin-inline: auto; }

.section--tour {
  --tour-width: 864px;
}

.section-header--tour {
  width: min(100%, var(--tour-width));
  max-width: var(--tour-width);
  margin-inline: auto;
  margin-bottom: 40px;
  text-align: left;
}

.section-header__tour-band {
  display: block;
  width: 100%;
  text-align: left;
}

.section-header--tour .section-label {
  display: block;
  text-align: left;
}

.section-header__tour-title {
  white-space: nowrap;
}

.section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--gray);
  margin-bottom: 10px;
}

.section-label--ministry { color: var(--red); }

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  overflow: visible;
  padding-block: 0.12em 0.06em;
}

.section-header h2 .title-glitch-line,
.section-header h2 .title-glitch-word,
.title-glitch-heading,
.title-glitch-heading .title-glitch-line,
.title-glitch-heading > .title-glitch-word {
  font-weight: 700;
}

.section-header h2 em {
  font-style: normal;
  color: var(--red);
}

/* Title word glitch — фиксированное число строк */
.title-glitch-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: visible;
}

.title-glitch-heading .title-glitch-line,
.title-glitch-heading > .title-glitch-word {
  display: block;
  min-height: 1em;
  line-height: 1;
  white-space: nowrap;
}

.title-glitch-heading--row {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.3em;
}

.title-glitch-heading--row .title-glitch-line,
.title-glitch-heading--row > .title-glitch-word {
  display: inline-block;
  min-height: 0;
  white-space: nowrap;
}

.title-glitch-word {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-style: normal;
  color: var(--red);
  min-width: var(--glitch-min-ch, 10ch);
  text-align: left;
  overflow: visible;
}

.title-glitch-heading:not(.title-glitch-heading--row) > .title-glitch-word {
  display: block;
}

[data-title-glitch="cast"] { --glitch-min-ch: 12ch; }
[data-title-glitch="director"] { --glitch-min-ch: 10ch; }
[data-title-glitch="contact"] { --glitch-min-ch: 10ch; }
[data-title-glitch="tour"] { --glitch-min-ch: 9ch; }
[data-title-glitch="about"] { --glitch-min-ch: 10ch; }
[data-title-glitch="creators"] { --glitch-min-ch: 10ch; }

.title-glitch-word::before,
.title-glitch-word::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  font: inherit;
  letter-spacing: inherit;
  pointer-events: none;
  opacity: 0;
  clip-path: inset(0 0 100% 0);
}

.title-glitch-word::before {
  left: -2px;
  z-index: -2;
  color: var(--red);
  text-shadow: 2px 0 var(--red), 0 0 12px color-mix(in srgb, var(--accent) 48%, transparent);
}

.title-glitch-word::after {
  left: 2px;
  z-index: -1;
  color: #5ab4ff;
  text-shadow: -2px 0 #5ab4ff, 0 0 12px rgba(90, 180, 255, 0.4);
}

.title-glitch-word.is-glitch {
  animation: hero-glitch-main 0.5s steps(2) infinite;
}

.title-glitch-word.is-glitch::before {
  opacity: 1;
  animation: hero-glitch-1 0.5s steps(1) infinite;
}

.title-glitch-word.is-glitch::after {
  opacity: 1;
  animation: hero-glitch-2 0.5s steps(1) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .title-glitch-word.is-glitch,
  .title-glitch-word.is-glitch::before,
  .title-glitch-word.is-glitch::after {
    animation: none !important;
  }
}

.section-desc {
  margin-top: 12px;
  color: var(--gray-light);
  max-width: 480px;
}

.lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 16px;
}

/* ----- About ----- */
.section--about {
  background: linear-gradient(180deg, var(--bg) 0%, #0e0e0e 50%, var(--bg) 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
}

.about-text p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--gray-light);
  margin-bottom: 14px;
}

.about-quote {
  margin: 20px 0 0;
  padding: 16px 0 0 20px;
  border-left: 3px solid var(--red);
}

.about-quote p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--white);
  margin: 0;
}

.newspeak-line {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.rewrite-line {
  margin-top: 16px;
  padding: 14px 16px;
  border-left: 3px solid var(--red);
  background: var(--red-dim);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gray-light);
}

.rewrite-line [data-rewrite] {
  color: var(--white);
  font-weight: 600;
}

.rewrite-line [data-rewrite].is-flipping {
  animation: rewrite-flip 0.3s ease;
}

@keyframes rewrite-flip {
  50% { opacity: 0; transform: translateY(-4px); }
}

.about-spec {
  align-self: start;
  margin-left: 10%;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.about-spec__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-spec__title { color: var(--gray-light); }

.about-spec__meta { color: var(--gray-light); }

.about-spec__list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0;
  padding: 0;
  background: var(--border);
}

.about-spec__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0 0.35em;
  margin: 0;
  padding: 16px 18px;
  background: var(--bg);
  box-sizing: border-box;
  transition: background 0.45s var(--ease);
}

.about-spec__row:hover {
  background: #0d0d0d;
}

.about-spec__code {
  flex: 0 0 auto;
  min-width: 4.2ch;
  margin-right: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 78%, transparent);
}

.about-spec__term {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}

.about-spec__detail {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-light);
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }

  .about-spec { margin-left: 0; }
}

/* ----- Creators manifest (broadcast rundown) ----- */
.manifest {
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.manifest__body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.manifest__grid {
  display: grid;
  column-gap: 1px;
  row-gap: 0;
  background: var(--border);
  align-items: stretch;
}

.manifest__grid--lead {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.manifest__grid--stage {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr);
  border-top: 1px solid var(--border);
}

.manifest-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
  padding: 22px 22px 20px;
  background: var(--bg);
  border-left: 3px solid transparent;
  transition:
    background 0.55s var(--ease),
    border-color 0.55s var(--ease);
}

.manifest-card:hover,
.manifest-card:focus-within {
  background: #0d0d0d;
  border-left-color: var(--red);
}

.manifest-card__dept {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 1px;
}

.manifest-card__name {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.8vw, 1.75rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
}

.manifest-card__body {
  flex: 1;
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--gray-light);
}

.manifest-card__meta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
}

@media (max-width: 960px) {
  .manifest__grid--stage {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .manifest__grid--lead,
  .manifest__grid--stage {
    grid-template-columns: 1fr;
  }

  .manifest-card {
    padding: 18px;
  }
}

.manifest-crew {
  margin-top: 1px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.manifest-crew__head {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
}

.manifest-crew__title {
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.manifest-crew__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0;
  padding: 0;
  background: var(--border);
}

.manifest-crew__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 100%;
  padding: 16px 18px;
  background: var(--bg);
  border-left: 3px solid transparent;
  transition:
    background 0.55s var(--ease),
    border-color 0.55s var(--ease);
}

.manifest-crew__item:hover,
.manifest-crew__item:focus-within {
  background: #0d0d0d;
  border-left-color: var(--red);
}

.manifest-crew__role {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  line-height: 1.4;
}

.manifest-crew__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--white);
}

@media (max-width: 960px) {
  .manifest-crew__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .manifest-crew__grid {
    grid-template-columns: 1fr;
  }

  .manifest-crew__head,
  .manifest-crew__item {
    padding-inline: 16px;
  }
}

/* ----- Telescreen ----- */
.telescreen {
  max-width: 900px;
  margin-inline: auto;
  border: 2px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.telescreen__bar {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--black);
  border-bottom: 2px solid var(--red);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.telescreen__status { color: var(--red); }

.telescreen__viewport {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
}

.telescreen__viewport::before {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  z-index: 2;
}

.telescreen__placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--gray);
  text-align: center;
}

.telescreen__play {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white);
  transition: color 0.2s, transform 0.2s;
}

.telescreen__play:hover { color: var(--red); transform: scale(1.06); }

.telescreen__scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.02) 2px, rgba(255, 255, 255, 0.02) 4px);
  pointer-events: none;
}

.telescreen__caption {
  padding: 14px 16px;
  text-align: center;
  font-style: italic;
  color: var(--gray-light);
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

/* ----- Cast ----- */
.section--cast {
  background: var(--black);
}

/* ----- Dossiers ----- */
.dossier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}

@media (max-width: 1100px) {
  .dossier-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .dossier-grid {
    grid-template-columns: 1fr;
  }
}

.dossier {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: visible;
  box-sizing: border-box;
  box-shadow: 0 0 0 0 transparent;
  transition:
    border-color 0.55s var(--ease),
    box-shadow 0.55s var(--ease);
}

.dossier:hover,
.dossier:focus-within {
  border-color: var(--red);
  box-shadow: none;
}

.dossier__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #1c1c1c;
}

.dossier__header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.dossier__id,
.dossier__status {
  display: block;
  line-height: 1.35;
  color: var(--gray-light);
}

.dossier__status-value {
  color: var(--red);
  font-weight: 600;
  transition: none;
}

.dossier:hover .dossier__status-value,
.dossier:focus-within .dossier__status-value {
  color: var(--red);
  font-weight: 600;
}

.dossier__photo-img,
.dossier__photo-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  filter: sepia(0.55) saturate(0.88) contrast(1.08) brightness(0.94);
  transition: filter 0.45s var(--ease);
}

.dossier__photo-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--photo);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  user-select: none;
  -webkit-user-drag: none;
}

.dossier__photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--gray);
}

.dossier:hover .dossier__photo-img,
.dossier:hover .dossier__photo-placeholder,
.dossier:focus-within .dossier__photo-img,
.dossier:focus-within .dossier__photo-placeholder {
  filter: sepia(0.1) saturate(1) contrast(1.12) brightness(1.06);
}

.dossier__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.15;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.dossier__role {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
  transition: none;
  font-synthesis: none;
}

.dossier:hover .dossier__role,
.dossier:focus-within .dossier__role {
  color: var(--red);
  font-weight: 600;
}

.dossier__bio {
  font-size: 0.9rem;
  color: var(--gray-light);
  line-height: 1.5;
}

.dossier__censored {
  display: grid;
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--font-mono), ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-synthesis: none;
}

.dossier__censored-redacted,
.dossier__censored-secret {
  grid-area: 1 / 1;
  margin: 0;
  white-space: pre-wrap;
}

.dossier__censored-ch {
  display: inline-block;
  width: 1ch;
  text-align: center;
  vertical-align: top;
  overflow: hidden;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: 0;
}

.dossier__censored-redacted {
  z-index: 1;
  color: var(--gray);
  user-select: none;
  opacity: 1;
  filter: blur(0);
  transition: opacity 0.4s ease-in, filter 0.4s ease-in;
}

.dossier__censored-secret {
  z-index: 0;
  color: var(--gray-light);
  font-style: italic;
  font-synthesis: style;
  opacity: 0;
  transition: opacity 0.15s ease-out;
}

.dossier:hover .dossier__censored-redacted,
.dossier:focus-within .dossier__censored-redacted {
  opacity: 0;
  filter: blur(3px);
  transition: opacity 1.55s ease-out, filter 1.55s ease-out;
}

.dossier:hover .dossier__censored-secret,
.dossier:focus-within .dossier__censored-secret {
  opacity: 1;
  transition: opacity 0s;
}

@media (prefers-reduced-motion: reduce) {
  .dossier__censored-redacted,
  .dossier__censored-secret {
    filter: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}

.dossier--add {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  border-style: dashed;
}

.dossier--add:hover { transform: none; }

.dossier__add-inner {
  text-align: center;
  color: var(--gray);
}

.dossier__add-inner span {
  font-size: 2rem;
  display: block;
  color: var(--red);
  font-family: var(--font-display);
}

/* ----- Gallery ----- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

.gallery__item--hero { grid-column: span 2; grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }

.gallery__placeholder {
  aspect-ratio: 4/3;
  min-height: 120px;
  background: #141414;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  color: var(--gray);
  filter: grayscale(1) contrast(1.15);
  transition: filter 0.4s, transform 0.4s;
}

.gallery__item:hover .gallery__placeholder {
  filter: grayscale(0.3) contrast(1.2);
  transform: scale(1.02);
}

.gallery__item--hero .gallery__placeholder { min-height: 100%; aspect-ratio: auto; height: 100%; }

.gallery figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}

.gallery__cam { color: var(--red); margin-right: 6px; }

@media (max-width: 768px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery__item--hero { grid-column: span 2; grid-row: span 1; }
}

/* ----- Censored quote ----- */
.section--censored-quote {
  background: linear-gradient(180deg, var(--bg) 0%, #0e0e0e 50%, var(--bg) 100%);
  padding-block: clamp(28px, 4vw, 40px);
  overflow: visible;
}

.section--censored-quote .container {
  width: min(1200px, calc(100% - 32px));
  overflow: visible;
}

.censored-quote {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  padding: 4px clamp(12px, 2vw, 20px);
  text-align: center;
  overflow: visible;
}

.censored-quote__text {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0;
  overflow: visible;
}

.censored-quote__line {
  display: inline-block;
  white-space: nowrap;
  vertical-align: top;
  padding-inline-end: 12px;
}

.censored-quote__redact {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  margin: 0.15em 0.25em;
  white-space: nowrap;
  overflow: visible;
}

.censored-quote__ghost {
  color: transparent;
  user-select: none;
}

.censored-quote__stamp {
  position: absolute;
  inset: -3px -7px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  background: var(--bg);
  border: 2px solid var(--red);
  font-family: var(--font-display);
  font-size: clamp(0.72rem, 1.6vw, 0.95rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--red);
  white-space: nowrap;
  pointer-events: none;
}

/* ----- Director ----- */
.director {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 760px;
  margin-inline: auto;
  padding: 40px;
  border: 2px solid var(--border);
  background: var(--bg-card);
}

.director .section-header {
  flex-shrink: 0;
  margin-bottom: 28px;
}

.director .section-header h2 {
  min-height: calc(3 * 0.95em + 0.15em);
}

.director__quote {
  flex: 1 1 auto;
  margin: 0;
  min-height: 0;
}

.director__light {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--red);
  transition: background-color 0.55s ease;
}

.director__quote p {
  color: var(--gray-light);
  margin-bottom: 18px;
  line-height: 1.7;
}

.director__quote p:first-child {
  font-size: 1.15rem;
  color: var(--white);
}

.director__sign {
  margin-top: auto;
  flex-shrink: 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.director__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
}

.director__title {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  transition: color 0.55s ease;
}

.director[data-director-protocol] {
  overflow: visible;
}

.director[data-director-protocol] .section-header {
  padding-right: 8.5rem;
  overflow: hidden;
}

.director[data-director-protocol] [data-director-title] {
  min-width: 0;
  overflow: hidden;
}

.director[data-director-protocol] .director__quote {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  z-index: 1;
}

.director[data-director-protocol] .director__quote p {
  overflow-wrap: anywhere;
}

.director[data-director-protocol] .director__quote::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2.75rem;
  background: linear-gradient(180deg, transparent 0%, var(--bg-card) 88%);
  pointer-events: none;
}

.director[data-director-protocol] .director__sign {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 20px;
  padding-right: 17rem;
  background: var(--bg-card);
}

.director-protocol__badge-wrap {
  position: absolute;
  top: -1.1rem;
  right: -1.45rem;
  z-index: 5;
  width: 9.25rem;
  height: 3.35rem;
  transform: rotate(14deg);
  transform-origin: top right;
  pointer-events: none;
}

.director-protocol__badge-shell {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  color: var(--red);
  border: 2px solid var(--red);
  background: var(--red-dim);
  transition:
    color 0.55s ease,
    border-color 0.55s ease,
    background-color 0.55s ease;
}

.director.is-director-protocol-official .director-protocol__badge-shell {
  color: #1b9e4b;
  border-color: #1b9e4b;
  background-color: rgba(27, 158, 75, 0.14);
}

.director-protocol__badge {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0.55rem 0.9rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.14rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1.1;
  text-transform: uppercase;
  text-align: center;
  color: inherit;
  border: 0;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  filter: blur(6px);
  transition:
    opacity 0.48s ease,
    filter 0.48s ease,
    visibility 0.48s ease;
}

.director-protocol__badge.is-badge-visible {
  opacity: 1;
  visibility: visible;
  filter: blur(0);
}

.director-protocol__badge.is-badge-fading {
  opacity: 0;
  filter: blur(6px);
}

.director-protocol__badge-line {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .director-protocol__badge-shell,
  .director[data-director-protocol] .director__light,
  .director[data-director-protocol] .director__title {
    transition: none;
  }

  .director-protocol__badge {
    transition: none;
    filter: none;
  }
}

.director-protocol__actions {
  position: absolute;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 4;
  margin: 0;
  padding: 0;
  text-align: right;
}

.director-protocol__toggle {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.85rem;
  color: #1b9e4b;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
  transition: color 0.55s ease;
}

.director-protocol__toggle:hover:not(:disabled) {
  color: #24c45a;
}

.director.is-director-protocol-official .director-protocol__toggle {
  color: var(--red);
}

.director.is-director-protocol-official .director-protocol__toggle:hover:not(:disabled) {
  color: #ff4a4a;
}

.director-protocol__toggle:disabled {
  opacity: 0.55;
  cursor: wait;
}

.director[data-director-protocol] .vt-active,
.director[data-director-protocol] .director-protocol__morphing {
  color: var(--vt-morph-color, var(--director-morph-color, var(--red))) !important;
  text-shadow: 0 0 10px color-mix(in srgb, var(--vt-morph-color, var(--director-morph-color, var(--red))) 38%, transparent);
  transition: color 0s, text-shadow 0s !important;
}

.director.is-director-protocol-official .section-header h2 .title-glitch-word,
.director.is-director-protocol-official [data-director-title] .title-glitch-word,
.director.is-director-protocol-official .director__title {
  color: #1b9e4b;
}

.director.is-director-protocol-official .director__light {
  background: #1b9e4b;
}

.director-protocol--locked {
  box-sizing: border-box;
}

/* ----- Tickets ----- */
.tour-list {
  --ticket-stub-ch: 25.2ch; /* город, −10% к прежней ширине */
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(100%, var(--tour-width));
  max-width: var(--tour-width);
  margin-inline: auto;
}

.ticket {
  display: grid;
  grid-template-columns: minmax(0, var(--ticket-stub-ch)) 1fr auto;
  border: 2px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.25s, transform 0.25s;
}

.ticket:hover {
  border-color: var(--red);
  transform: translateX(6px);
}

.ticket__stub {
  padding: 18px;
  background: var(--red);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ticket__city {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.ticket__country {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-top: 4px;
}

.ticket__body {
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
}

.ticket__date {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

.ticket__time {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--red);
}

.ticket__venue {
  width: 100%;
  font-size: 0.85rem;
  color: var(--gray-light);
}

.ticket .btn { align-self: center; margin-right: 16px; }

.tour-note {
  width: min(100%, var(--tour-width));
  max-width: var(--tour-width);
  margin-inline: auto;
  margin-top: 28px;
  text-align: center;
  color: var(--gray-light);
}

.tour-note a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 640px) {
  .ticket { grid-template-columns: 1fr; }
  .ticket__stub { flex-direction: row; gap: 12px; }
  .ticket .btn { margin: 0 16px 16px; width: calc(100% - 32px); }
}

/* ----- Contact ----- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

#contact .contact-head {
  box-sizing: border-box;
  overflow: hidden;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
  flex-shrink: 0;
  margin-top: 0;
  width: 100%;
  min-width: 0;
  align-self: start;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form label span {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
}

.contact-form input,
.contact-form textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.contact-form input {
  height: 46px;
}

.contact-form textarea {
  resize: none;
  min-height: 118px;
  height: 118px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--red);
}

.form-status {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--red);
  text-align: center;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ----- Footer ----- */
.footer {
  padding: 28px 0;
  border-top: 3px solid var(--red);
  background: var(--black);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 17px;
}

.footer__domain {
  display: block;
  font-family: var(--font-display);
  font-size: 1.28rem;
  letter-spacing: 0.15em;
  color: var(--red);
}

.footer__copy {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--gray);
}

.footer__social-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 7px;
}

.social-links { display: flex; gap: 7px; }

.social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
  color: var(--gray-light);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.social-link__icon {
  width: 17px;
  height: 17px;
  display: block;
}

.social-link:hover {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

@media (prefers-reduced-motion: reduce) {
  .slogans-strip__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .slogans-strip__loop { flex-wrap: wrap; justify-content: center; }
}

/* ===== Premium Broadway layout (Wicked-inspired) ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header over hero — --header-scroll: 0…1 задаётся в main.js */
.header--over-hero {
  --header-scroll: 0;
  background: rgba(
    6, 6, 6,
    calc((1 - var(--header-scroll)) * 0.38 + var(--header-scroll) * 0.94)
  );
  border-bottom-color: color-mix(in srgb, var(--accent) calc(var(--header-scroll) * 100%), transparent);
  backdrop-filter: blur(calc(var(--header-scroll) * 12px));
  -webkit-backdrop-filter: blur(calc(var(--header-scroll) * 12px));
}

.header--over-hero.is-scrolled {
  background: rgba(6, 6, 6, 0.94);
  border-bottom-color: var(--red);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header--over-hero .header__nav a { color: rgba(255, 255, 255, 0.85); }

/* Cinematic hero */
.hero--cinematic {
  position: relative;
  max-width: none;
  width: 100%;
  margin-inline: 0;
  min-height: auto;
  padding: 0;
  display: grid;
  grid-template-areas: "hero-stack";
  overflow: hidden;
  text-align: center;
}

.hero--cinematic .hero__media,
.hero--cinematic .hero__inner {
  grid-area: hero-stack;
}

.hero--cinematic .hero__layout,
.hero--cinematic .hero__visual,
.hero--cinematic .hero__scroll,
.hero--cinematic .hero__domain,
.hero--cinematic .hero__tagline { display: none; }

.hero__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  z-index: 0;
}

.hero__media-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: contrast(1.06) saturate(0.85) brightness(0.82);
}

.hero__media-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.45) 75%),
    linear-gradient(180deg, rgba(6, 6, 6, 0.12) 0%, rgba(6, 6, 6, 0.55) 100%);
}

.hero--cinematic .hero__inner {
  position: relative;
  z-index: 1;
  align-self: center;
  justify-self: center;
  width: min(900px, 100%);
  padding: calc(var(--header-h) + 24px) clamp(16px, 4vw, 40px) clamp(20px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.hero--cinematic .hero__actions,
.hero--cinematic .hero__actions a {
  pointer-events: auto;
}

.hero--cinematic .hero__title-stack {
  margin-bottom: 6px;
  --title-size: clamp(5.5rem, 21vw, 13.5rem);
  --title-tracking: -0.04em;
}

.hero--cinematic .hero__author {
  margin-bottom: 4px;
}

.hero--cinematic .hero__title-stack .hero__genre {
  margin: 2px 0 clamp(12px, 2.5vh, 20px);
}

.hero__hook {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2.75rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.25;
  color: var(--white);
  margin-bottom: clamp(28px, 5vh, 44px);
  text-shadow: var(--hero-read-shadow);
}

.hero__hook span {
  display: block;
  text-shadow: var(--hero-read-shadow);
}

.hero__hook span:last-child {
  font-style: italic;
  opacity: 0.92;
}

.hero--cinematic .hero__actions {
  justify-content: center;
}

.btn--lg {
  padding: 18px 48px;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  min-width: 280px;
}

/* Promo band */
.promo-band {
  padding: 0;
  margin-top: -1px;
  background: var(--black);
  border-bottom: 1px solid var(--border);
}

.promo-band__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.promo-card {
  padding: clamp(32px, 5vw, 48px) clamp(28px, 4vw, 40px);
  border-right: 1px solid var(--border);
  transition: background 0.35s var(--ease);
}

.promo-card:last-child { border-right: none; }

.promo-card:hover { background: rgba(255, 255, 255, 0.02); }

.promo-card--accent {
  background: linear-gradient(135deg, var(--red-dim), transparent);
}

.promo-card__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.promo-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 14px;
}

.promo-card__text {
  color: var(--gray-light);
  font-size: 1rem;
  max-width: 420px;
  margin-bottom: 20px;
  line-height: 1.55;
}

.promo-card__link {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  border-bottom: 1px solid var(--red);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.promo-card__link:hover {
  color: var(--red);
  border-color: var(--white);
}

/* Spotlight cards */
.spotlight {
  padding: clamp(48px, 8vw, 80px) 0;
  background: var(--bg);
}

.spotlight__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.spotlight-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.35s, box-shadow 0.45s;
  min-height: 380px;
}

.spotlight-card:hover {
  transform: translateY(-8px);
  border-color: color-mix(in srgb, var(--accent) 48%, transparent);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.spotlight-card__media {
  flex: 1;
  min-height: 220px;
  overflow: hidden;
  background-color: #1a1a1a;
  background-image: url("assets/poster.png");
  background-size: cover;
  background-position: center;
  filter: grayscale(0.35) contrast(1.1);
  transition: filter 0.5s var(--ease), transform 0.6s var(--ease);
  transform-origin: center center;
}

.spotlight-card__media--1 { background-position: center 30%; }
.spotlight-card__media--2 { background-position: center 55%; }
.spotlight-card__media--3 { background-position: center 75%; }

.spotlight-card:hover .spotlight-card__media {
  filter: grayscale(0) contrast(1.05);
  transform: scale(1.04);
}

.spotlight-card__body {
  padding: 24px 22px 28px;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.5));
  margin-top: -48px;
  position: relative;
}

.spotlight-card__body h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.spotlight-card__body p {
  font-size: 0.95rem;
  color: var(--gray-light);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 16px;
}

.spotlight-card__cta {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}

/* Newsletter */
.newsletter {
  padding: clamp(56px, 8vw, 88px) 0;
  background: linear-gradient(180deg, var(--bg-card), var(--black));
  border-top: 3px solid var(--red);
}

.newsletter__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.newsletter__copy h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.newsletter__copy p {
  color: var(--gray-light);
  font-size: 1.05rem;
  max-width: 400px;
}

.newsletter__form {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}

.newsletter__form input {
  flex: 1;
  min-width: 200px;
  padding: 16px 18px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-right: none;
}

.newsletter__form input:focus {
  outline: none;
  border-color: var(--red);
}

.newsletter__form .btn {
  border: 2px solid var(--red);
  white-space: nowrap;
}

.newsletter__status {
  width: 100%;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gray-light);
}

/* Refined sections spacing */
.section { padding: clamp(72px, 10vw, 100px) 0; }

@media (max-width: 960px) {
  .promo-band__grid { grid-template-columns: 1fr; }
  .promo-card { border-right: none; border-bottom: 1px solid var(--border); }
  .promo-card:last-child { border-bottom: none; }
  .spotlight__grid { grid-template-columns: 1fr; }
  .spotlight-card { min-height: 320px; }
  .newsletter__inner { grid-template-columns: 1fr; gap: 24px; }
  .newsletter__form { flex-direction: column; }
  .newsletter__form input { border-right: 2px solid var(--border); }
}

@media (max-width: 768px) {
  .hero--cinematic .hero__year {
    font-size: clamp(3rem, 18vw, 5.5rem);
  }

  .hero--cinematic .hero__title-stack .hero__genre {
    margin-bottom: 10px;
    font-size: clamp(0.72rem, 2.6vw, 0.95rem);
    letter-spacing: 0.04em;
  }

  .hero--cinematic .hero__author {
    font-size: clamp(1.15rem, 3.4vw, 1.65rem);
  }

  .hero--cinematic .hero__hook {
    font-size: clamp(1rem, 4.5vw, 1.25rem);
    margin-bottom: 16px;
  }

  .hero--cinematic .hero__inner {
    padding-top: calc(var(--header-h) + 12px);
    padding-bottom: 16px;
  }

  .hero--cinematic .btn--lg {
    padding: 14px 28px;
    font-size: 0.78rem;
    min-width: 0;
  }
}

@media (max-width: 600px) {
  .hero:not(.hero--cinematic) .hero__hook { font-size: 1.35rem; }
  .hero--cinematic .btn--lg { width: 100%; }
  .btn--lg { min-width: 100%; }
}

/* ----- 404 page ----- */
.page-404__main {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: calc(var(--header-h) + 56px) 0 64px;
  background: linear-gradient(180deg, var(--bg) 0%, #0e0e0e 50%, var(--bg) 100%);
}

.page-404__inner {
  max-width: 680px;
}

.page-404__inner .section-label {
  display: block;
  margin-bottom: 20px;
}

.page-404__code {
  font-family: var(--font-year);
  font-size: clamp(5rem, 22vw, 10rem);
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: 0.04em;
  color: var(--red);
  margin-bottom: 28px;
}

.page-404__text p {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--gray-light);
  margin-bottom: 12px;
  max-width: 52ch;
}

.page-404__memory {
  margin-top: 20px;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--red);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--gray-light);
  max-width: none;
}

.page-404__actions {
  margin-top: 56px;
}

@media (max-width: 600px) {
  .page-404__actions .btn--lg {
    width: 100%;
    text-align: center;
  }
}
