/* ===== 1984show — Mobile (отдельная вёрстка, десктоп не затрагивается) ===== */

/* 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-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.14);
  --red: #d0101a;
  --red-dark: #9a0b12;
  --red-dim: rgba(208, 16, 26, 0.14);
  --border: rgba(255, 255, 255, 0.1);
  --font-display: "Bebas Neue", "Oswald", sans-serif;
  --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;
  --m-header: 52px;
  --bb-banner-h: 0px;
  --bb-banner-max-width: 560px;
  --bb-tour-msg-color: #ff2e3a;
  --bb-banner-border: color-mix(in srgb, var(--red-dark) 72%, #000 28%);
  --bb-banner-bg-mid: color-mix(in srgb, var(--red) 82%, var(--red-dark) 18%);
  --bb-banner-bg-top: color-mix(in srgb, var(--bb-banner-bg-mid) 91%, var(--red) 9%);
  --bb-banner-bg-bottom: color-mix(in srgb, var(--bb-banner-bg-mid) 87%, var(--red-dark) 13%);
  --bb-modal-bg: #353234;
  --bb-modal-border: rgba(255, 255, 255, 0.14);
  --m-header-offset: calc(var(--m-header) + var(--safe-t));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --hero-read-shadow:
    0 1px 0 rgba(0, 0, 0, 0.9),
    1px 2px 0 rgba(6, 6, 6, 0.98),
    2px 4px 2px rgba(6, 6, 6, 0.82),
    0 5px 14px rgba(0, 0, 0, 0.72),
    0 10px 28px rgba(0, 0, 0, 0.52),
    0 0 36px rgba(0, 0, 0, 0.38);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--m-header-offset) + var(--bb-banner-h) + 12px);
  overflow-x: clip;
  max-width: 100%;
}

body.m-page {
  font-family: var(--font-body);
  font-size: 1rem;
  font-synthesis: none;
  background: var(--bg);
  color: var(--white);
  line-height: 1.5;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--safe-b);
}

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

.m-wrap {
  --m-wrap-pad: 16px;
  width: min(100%, 480px);
  max-width: 100%;
  margin-inline: auto;
  padding-inline: var(--m-wrap-pad);
  box-sizing: border-box;
}

/* ----- Atmosphere ----- */
.m-atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 55%),
    var(--bg);
}

.m-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  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");
}

.m-page > main {
  position: relative;
  z-index: 1;
  padding-top: var(--m-header-offset);
  overflow-x: clip;
  max-width: 100%;
}

.m-footer {
  position: relative;
  z-index: 1;
  max-width: 100%;
  overflow-x: clip;
}

/* ----- HUD strip (под закреплённой шапкой) ----- */
.m-hud {
  position: fixed;
  top: var(--m-header-offset);
  right: 0;
  left: 0;
  z-index: 99;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  color: var(--gray);
  pointer-events: none;
}

.m-hud__rec {
  color: var(--red);
  font-weight: 700;
}

.m-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; }
}

/* ----- Header — всегда на экране ----- */
.m-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  box-sizing: border-box;
  min-height: var(--m-header-offset);
  padding-top: var(--safe-t);
  padding-inline: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(10, 10, 10, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.45);
}

.m-header__logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.m-header__logo-num {
  font-family: var(--font-year);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--white);
}

.m-header__logo-sub {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gray);
}

.m-header__tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.m-header__burger {
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.m-header__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: transform 0.25s var(--ease), opacity 0.25s;
}

.m-header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.m-header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.m-header__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----- Drawer ----- */
.m-drawer {
  position: fixed;
  inset: var(--m-header-offset) 0 var(--safe-b);
  z-index: 95;
  padding: 20px 16px 24px;
  background: rgba(6, 6, 6, 0.97);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
}

.m-drawer[hidden] {
  display: none;
}

.m-drawer:not([hidden]) {
  display: block;
  transform: translateX(0);
}

.m-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}

.m-drawer__nav a {
  padding: 14px 12px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.m-drawer__nav a.m-drawer__tickets {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition:
    transform 0.2s var(--ease),
    background 0.85s var(--ease),
    color 0.35s var(--ease),
    border-color 0.85s var(--ease),
    box-shadow 0.85s var(--ease);
}

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

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

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

.btn strong { font-weight: 600; }
.btn em { font-style: italic; }
.btn .bb-msg-uline {
  text-decoration: underline;
  text-underline-offset: 0.12em;
  text-decoration-thickness: 1px;
}

.btn:active { transform: scale(0.98); }

/* ----- Hero (cinematic, vertical poster) ----- */
.m-hero--cinematic {
  position: relative;
  z-index: 3;
  margin-top: calc(-1 * var(--m-header-offset));
  min-height: 100svh;
  min-height: 100dvh;
  max-height: none;
  max-width: 100%;
  padding: 0;
  display: grid;
  grid-template-areas: "hero-stack";
  overflow: hidden;
  overflow-x: clip;
  text-align: center;
}

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

.m-hero--cinematic .m-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.m-hero--cinematic .m-hero__media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: contrast(1.04) saturate(0.94) brightness(0.88);
}

.m-hero--cinematic .m-hero__media-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 6, 6, 0.28) 0%, rgba(6, 6, 6, 0.04) 22%, rgba(6, 6, 6, 0.2) 58%, rgba(6, 6, 6, 0.82) 100%);
  pointer-events: none;
}

.m-hero--cinematic .m-hero__inner {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  min-height: 100dvh;
  padding:
    calc(var(--m-header-offset) + clamp(6px, 1.5vh, 14px))
    16px
    clamp(18px, 4vh, 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  pointer-events: none;
}

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

.m-hero--cinematic .m-hero__center {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  width: 100%;
  min-height: 100%;
}

.m-hero--cinematic .m-hero__intro,
.m-hero--cinematic .m-hero__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.m-hero--cinematic .m-hero__intro {
  flex: 0 0 auto;
  overflow: visible;
}

.m-hero--cinematic .m-hero__intro {
  margin-top: clamp(10vh, 16vw, 18vh);
  gap: clamp(6px, 1.5vh, 10px);
}

.m-hero--cinematic .m-hero__intro .hero__author {
  font-size: clamp(1.68rem, 7.44vw, 2.4rem);
  margin-bottom: 0;
}

.m-hero--cinematic .m-hero__intro .hero__title {
  margin: clamp(4px, 1.2vh, 10px) 0 0;
}

.m-hero--cinematic .m-hero__bottom {
  margin-top: auto;
  margin-bottom: clamp(10vh, 18vw, 22vh);
}

.m-hero--cinematic .m-hero__intro .hero__genre {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1ch;
  width: 100%;
  margin: 2px 0 0;
  font-size: clamp(0.77rem, 3.56vw, 0.97rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: var(--hero-read-shadow);
}

.m-hero--cinematic .m-hero__intro .hero__genre::before,
.m-hero--cinematic .m-hero__intro .hero__genre::after {
  content: "●";
  flex: none;
  width: auto;
  height: auto;
  background: none;
  line-height: 1;
  font-size: 1.214em;
  opacity: 0.9;
  transform: translateY(-3px);
}

.m-hero--cinematic .hero__title {
  overflow: visible;
}

.m-hero--cinematic .hero__year {
  font-size: clamp(5.5rem, 36vw, 8.5rem);
  margin-bottom: 0;
  line-height: 0.8;
  letter-spacing: -0.04em;
  overflow: visible;
}

.hero__author {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 4.5vw, 1.45rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--red);
  margin-bottom: 4px;
  text-shadow: var(--hero-read-shadow);
}

.hero__genre {
  font-family: var(--font-display);
  font-size: clamp(0.68rem, 2.8vw, 0.82rem);
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 6px;
  text-shadow: var(--hero-read-shadow);
}

body.m-drawer-open { overflow: hidden; }

.hero__year {
  display: block;
  font-family: var(--font-year);
  font-size: clamp(3.25rem, 20vw, 4.75rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.03em;
  color: var(--white);
  position: relative;
  margin-bottom: 10px;
  text-shadow: var(--hero-read-shadow);
}

.hero__hook {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 4.2vw, 1.2rem);
  font-style: italic;
  color: var(--gray-light);
  margin-bottom: 18px;
  line-height: 1.35;
  text-shadow: var(--hero-read-shadow);
}

.m-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Hero glitch — TV slice + RGB split (Lucas Bebber / CSS-Tricks) */
.hero__year::before,
.hero__year::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: max-content;
  height: 100%;
  font: inherit;
  letter-spacing: inherit;
  font-variant-numeric: inherit;
  white-space: nowrap;
  color: var(--white);
  pointer-events: none;
  clip-path: inset(0 0 100% 0);
  opacity: 0;
  will-change: transform, clip-path, opacity;
}

.hero__year::before { z-index: -2; left: -4px; }
.hero__year::after { z-index: -1; left: 4px; }

.hero__year.glitch-edge-before-red::before {
  color: var(--red);
  text-shadow:
    3px 0 var(--red),
    6px 0 color-mix(in srgb, var(--accent) 50%, transparent),
    0 0 12px color-mix(in srgb, var(--accent) 48%, transparent);
}

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

.hero__year.glitch-edge-after-red::after {
  color: color-mix(in srgb, var(--accent) 88%, white);
  text-shadow:
    -3px 0 var(--red),
    -6px 0 color-mix(in srgb, var(--accent) 58%, transparent),
    0 0 22px color-mix(in srgb, var(--accent) 55%, transparent);
}

.hero__year.glitch-edge-after-blue::after {
  color: #5ab4ff;
  text-shadow:
    -3px 0 #5ab4ff,
    -6px 0 rgba(90, 180, 255, 0.5),
    0 0 12px rgba(90, 180, 255, 0.42);
}

.hero__year.is-glitch {
  will-change: transform;
  animation: m-hero-glitch-main 0.62s steps(1) 1;
}

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

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

@keyframes m-hero-glitch-main {
  0%, 100% { transform: translate3d(0, 0, 0); }
  12% { transform: translate3d(-4px, 0, 0); }
  28% { transform: translate3d(5px, 2px, 0); }
  44% { transform: translate3d(-3px, -2px, 0); }
  60% { transform: translate3d(6px, 0, 0); }
  76% { transform: translate3d(-5px, 2px, 0); }
}

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

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

/* ----- Sections ----- */
.m-section {
  max-width: 100%;
  overflow-x: clip;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  box-sizing: border-box;
}

.m-section--tour {
  padding-top: 28px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 120px);
}

#cast.m-section {
  background: var(--black);
}

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

.m-title {
  position: relative;
  z-index: 5;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 7vw, 2.1rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
  overflow: visible;
  padding-block: 0.12em 0.06em;
}

.m-title > span,
.m-title > em,
.m-title .title-glitch-word {
  font-weight: 700;
}

.m-title em {
  font-style: normal;
  color: var(--red);
}

.m-title:not(.m-title--row) > span,
.m-title:not(.m-title--row) > em {
  display: block;
}

.m-title--row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25em 0.35em;
  align-items: baseline;
}

.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: wrap;
  align-items: baseline;
  gap: 0.25em 0.35em;
}

.title-glitch-heading--row .title-glitch-line,
.title-glitch-heading--row > .title-glitch-word {
  display: inline-block;
  min-height: 0;
  white-space: normal;
  max-width: 100%;
}

.title-glitch-word {
  position: relative;
  z-index: 1;
  display: inline-block;
  color: var(--red);
  font-style: normal;
  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: m-hero-glitch-main 0.5s steps(1) infinite;
}

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

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

/* ----- Tour tickets ----- */
.tour-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ticket {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.ticket__stub {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35em 0.65em;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

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

.ticket__country,
.ticket__time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--gray);
}

.ticket__country {
  text-transform: uppercase;
}

.ticket__body {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.ticket__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ticket__when {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 10px;
  min-width: 0;
}

.ticket__buy {
  flex-shrink: 0;
  align-self: center;
  width: auto;
  margin: 0;
  padding: 9px 14px;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  line-height: 1.15;
  white-space: nowrap;
}

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

.ticket__badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.2;
}

.ticket__badge--red { color: var(--red); }
.ticket__badge--green { color: #4fd68a; }
.ticket__badge--yellow { color: #e8c547; }
.ticket__badge--cyan { color: #6ec8ff; }
.ticket__badge--white { color: var(--white); }

.btn--ticket-disabled,
.btn--ticket-disabled:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  filter: grayscale(0.35);
  pointer-events: none;
}

.ticket__venue {
  margin: 0;
  font-size: 0.82rem;
  color: var(--gray-light);
  line-height: 1.35;
  overflow-wrap: anywhere;
}


.tour-note {
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--gray-light);
  text-align: center;
}

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

/* ----- Ticket box-office modal ----- */
@keyframes ticket-modal-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ticket-modal-backdrop-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes ticket-modal-panel-in {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes ticket-modal-panel-out {
  from {
    opacity: 1;
    transform: none;
  }
  to {
    opacity: 0;
    transform: scale(0.98) translateY(8px);
  }
}

.ticket-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 16px;
}

.ticket-modal[hidden] {
  display: none;
}

.ticket-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  opacity: 0;
}

.ticket-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 400px);
  padding: 30px 24px 24px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: scale(0.96) translateY(14px);
}

.ticket-modal.is-active:not(.is-closing) .ticket-modal__backdrop {
  animation: ticket-modal-backdrop-in 0.3s ease forwards;
}

.ticket-modal.is-active:not(.is-closing) .ticket-modal__panel {
  animation: ticket-modal-panel-in 0.34s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.ticket-modal.is-closing .ticket-modal__backdrop {
  animation: ticket-modal-backdrop-out 0.24s ease forwards;
}

.ticket-modal.is-closing .ticket-modal__panel {
  animation: ticket-modal-panel-out 0.24s ease forwards;
}

.ticket-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gray-light);
  font-size: 2.15rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.ticket-modal__title {
  margin: 0 0 18px;
  padding-right: 32px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ticket-modal__links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ticket-modal__link {
  width: 100%;
  text-align: center;
}

body.is-ticket-modal-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .ticket-modal__backdrop,
  .ticket-modal__panel {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
}

/* ----- About ----- */
.about-text p {
  font-size: 0.92rem;
  color: var(--gray-light);
  margin-bottom: 12px;
  line-height: 1.55;
}

.about-text p:last-child { margin-bottom: 0; }

.about-spec {
  margin-top: 20px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.about-spec__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.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.3em;
  margin: 0;
  padding: 12px;
  background: var(--bg);
  font-size: 0.72rem;
  box-sizing: border-box;
}

.about-spec__code {
  flex: 0 0 auto;
  min-width: 4.2ch;
  margin-right: 0.45em;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  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.68rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}

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

/* ----- Cast dossiers ----- */
.dossier-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dossier {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  min-height: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.dossier__header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--gray);
}

.dossier__id,
.dossier__status {
  font-size: inherit;
  letter-spacing: inherit;
}

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

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

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

.dossier__photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: #1a1a1a;
  background-image: var(--photo);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  filter: sepia(0.55) saturate(0.88) contrast(1.08) brightness(0.94);
  transition: filter 0.75s var(--ease);
  will-change: filter;
}

.dossier.is-revealed .dossier__photo-img {
  filter: sepia(0.05) saturate(1.05) contrast(1.14) brightness(1.08);
}

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

.dossier__role {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}

.dossier__bio {
  font-size: 0.82rem;
  color: var(--gray-light);
  line-height: 1.45;
  flex: 1;
}

.dossier__censored {
  display: grid;
  margin-top: 10px;
  padding-top: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.dossier__censored-redacted,
.dossier__censored-secret { grid-area: 1 / 1; }

.dossier__censored-ch {
  display: inline-block;
  width: 1ch;
  text-align: center;
}

.dossier__censored-redacted {
  z-index: 1;
  color: var(--gray);
  opacity: 1;
  transition: opacity 0.35s ease;
}

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

.dossier.is-revealed .dossier__censored-redacted,
.dossier:focus-within .dossier__censored-redacted {
  opacity: 0;
  transition: opacity 0.9s ease;
}

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

/* ----- Manifest / creators ----- */
.manifest-card {
  padding: 14px;
  margin-bottom: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  cursor: pointer;
  transition:
    background 0.55s var(--ease),
    border-color 0.55s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.manifest-card.is-revealed {
  background: #0d0d0d;
  border-left-color: var(--red);
}

.manifest-card__dept {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 5vw, 1.3rem);
  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.55rem, 6.5vw, 1.9rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
  margin: 0 0 10px;
}

.manifest-card__body {
  font-size: 0.85rem;
  color: var(--gray-light);
  line-height: 1.5;
  margin-bottom: 8px;
}

.manifest-card__meta {
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--gray);
  letter-spacing: 0.06em;
  line-height: 1.4;
}

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

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

.manifest-crew__title {
  color: var(--white);
  font-weight: 600;
}

.manifest-crew__grid {
  list-style: none;
}

.manifest-crew__item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid transparent;
  font-size: 0.82rem;
  background: var(--bg-card);
  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__item:last-child { border-bottom: none; }
.manifest-crew__role { color: var(--red); flex-shrink: 0; max-width: 48%; }
.manifest-crew__name { text-align: right; color: var(--white); }

/* ----- Director ----- */
.director.m-wrap,
.m-wrap.director {
  display: flex;
  flex-direction: column;
}

.director .m-title,
.m-wrap.director .m-title {
  flex-shrink: 0;
  min-height: calc(3 * 0.95em + 0.2em);
}

.m-wrap.director .director__quote {
  flex: 0 0 auto;
  margin: 0;
  min-height: 0;
  padding-bottom: 4px;
}

.director__quote p {
  font-size: 0.9rem;
  color: var(--gray-light);
  margin-bottom: 12px;
  line-height: 1.6;
}

.director__quote p:last-child {
  margin-bottom: 0;
  padding-bottom: 2px;
}

.director__sign,
.m-wrap.director .director__sign {
  margin-top: 16px;
  flex-shrink: 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

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

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

.m-wrap.director[data-director-protocol] .director__title {
  color: var(--red);
}

.m-wrap.director[data-director-protocol] {
  position: relative;
  overflow: visible;
}

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

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

.m-wrap.director.is-director-protocol-morphing [data-director-title] {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.1;
}

.m-wrap.director.is-director-protocol-morphing [data-director-title] .title-glitch-line,
.m-wrap.director.is-director-protocol-morphing [data-director-title] > .title-glitch-word {
  white-space: normal;
  max-width: 100%;
  overflow: hidden;
}

.director__head {
  position: relative;
  flex-shrink: 0;
  margin-bottom: 20px;
  font-size: clamp(1.75rem, 7vw, 2.1rem);
}

.m-wrap.director[data-director-protocol] .director__head {
  padding-right: 1rem;
}

.m-wrap.director[data-director-protocol] .director__head .m-title {
  position: relative;
  z-index: 1;
  padding-right: 0;
  margin-bottom: 0;
  overflow: visible;
}

.m-wrap.director[data-director-protocol] .director__quote {
  position: relative;
  flex: 0 0 auto;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding-bottom: 6px;
  overflow: visible;
  z-index: 1;
  box-sizing: border-box;
}

.m-wrap.director.director-protocol--locked .director__quote {
  overflow: hidden;
}

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

.m-wrap.director[data-director-protocol] .director__quote::after {
  display: none;
}

.m-wrap.director[data-director-protocol] .director__sign {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  flex-shrink: 0;
  margin-top: 16px;
  padding-top: 16px;
  background: var(--bg-card);
}

.director__sign-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 16px;
  width: 100%;
}

.director__sign-row .director__title {
  margin: 0;
  line-height: 1;
}

.m-wrap.director .director__sign-spacer {
  flex-shrink: 0;
  width: 100%;
  pointer-events: none;
}

.m-wrap.director.director-protocol--locked .director__sign.director__sign--pinned {
  position: absolute;
  top: var(--director-sign-top);
  left: var(--m-wrap-pad);
  right: var(--m-wrap-pad);
  margin-top: 0;
  box-sizing: border-box;
}

.director-protocol__badge-wrap {
  position: absolute;
  z-index: 5;
  width: 8.25rem;
  height: 3rem;
  pointer-events: none;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.director-protocol__badge-wrap.is-badge-hidden {
  opacity: 0;
  visibility: hidden;
}

.director-protocol__badge-wrap.is-badge-hiding {
  opacity: 0;
}

.director-protocol__badge-wrap.is-badge-hiding .director-protocol__badge {
  transition-duration: 0.2s;
}

.director-protocol__badge-wrap.is-badge-appearing {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.76s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.76s ease;
}

.director-protocol__badge-wrap.is-badge-appearing .director-protocol__badge.is-badge-visible {
  transition: none;
  animation: director-protocol-badge-in 0.76s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes director-protocol-badge-in {
  from {
    opacity: 0;
    filter: blur(5px);
    transform: scale(0.94);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

.m-wrap.director[data-director-protocol] .director__head .director-protocol__badge-wrap,
.m-wrap.director[data-director-protocol] .section-header .director-protocol__badge-wrap {
  top: calc(10px + 0.85rem + 0.1em);
  right: auto;
  left: 11.5ch;
  z-index: 30;
  transform: translate(-24%, -46%) rotate(14deg);
  transform-origin: center center;
}

.director-protocol__badge-shell {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  color: var(--red);
  border: 2px solid var(--red);
  background: color-mix(in srgb, var(--bg-card) 94%, var(--red) 6%);
  transition:
    color 0.55s ease,
    border-color 0.55s ease,
    background-color 0.55s ease;
}

.m-wrap.director.is-director-protocol-official:not(.is-director-protocol-morphing) .director-protocol__badge-shell {
  color: #1b9e4b;
  border-color: #1b9e4b;
  background-color: color-mix(in srgb, var(--bg-card) 94%, #1b9e4b 6%);
  transition: none;
}

.director-protocol__badge {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0.45rem 0.72rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.1;
  text-transform: uppercase;
  text-align: center;
  color: inherit;
  border: 0;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  filter: blur(5px);
  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(5px);
}

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

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

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

  .director-protocol__badge-wrap.is-badge-appearing .director-protocol__badge.is-badge-visible {
    animation: none;
  }

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

.director-protocol__actions {
  margin: 0;
  padding: 0;
  text-align: right;
}

.director-protocol__toggle {
  display: inline-block;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
  vertical-align: baseline;
  color: #1b9e4b;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  cursor: pointer;
  transition: color 0.55s ease;
}

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

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

.m-wrap.director[data-director-protocol] .vt-active,
.m-wrap.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;
}

.m-wrap.director.is-director-protocol-official:not(.is-director-protocol-morphing) .m-title .title-glitch-word,
.m-wrap.director.is-director-protocol-official:not(.is-director-protocol-morphing) [data-director-title] .title-glitch-word {
  color: #1b9e4b;
  transition: none;
}

.m-wrap.director.is-director-protocol-official .director__title,
.m-wrap.director.is-director-protocol-official .director__light,
.m-wrap.director.is-director-protocol-official .director-protocol__toggle {
  transition:
    color 0.55s ease,
    background-color 0.55s ease,
    border-color 0.55s ease;
}

.m-wrap.director.is-director-protocol-official .director__title {
  color: #1b9e4b;
}

/* ----- Slogans ----- */
.slogans-strip {
  --slogan-size: 0.85rem;
  --slogan-pad-y: 11px;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
  border-block: 2px solid var(--red);
  background: var(--black);
  padding-block: var(--slogan-pad-y);
  overflow: hidden;
  overflow-x: clip;
  contain: paint;
  line-height: 0;
}

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

.slogans-strip__loop {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 28px;
  padding-inline: 20px;
  line-height: 1;
}

.slogan-pillar {
  display: inline-block;
  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;
  transform: translateY(1.5px);
}

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

.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%); }
}

/* ----- Contact ----- */
.section-desc {
  font-size: 0.88rem;
  color: var(--gray-light);
  margin-bottom: 16px;
}

#contact .m-wrap {
  display: flex;
  flex-direction: column;
}

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

#contact .contact-head .section-label {
  display: block;
  margin-bottom: 10px;
}

.contact-form__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.contact-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
  flex-shrink: 0;
  margin-top: 0;
  width: 100%;
  min-width: 0;
}

.contact-form label span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 6px;
}

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

.contact-form input:not(:-webkit-autofill),
.contact-form textarea:not(:-webkit-autofill) {
  background-color: var(--bg-card);
  -webkit-box-shadow: none;
  box-shadow: none;
}

.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);
}

.contact-form input:-webkit-autofill,
.contact-form input:-webkit-autofill:hover,
.contact-form input:-webkit-autofill:focus,
.contact-form input:-webkit-autofill:active,
.contact-form textarea:-webkit-autofill,
.contact-form textarea:-webkit-autofill:hover,
.contact-form textarea:-webkit-autofill:focus,
.contact-form textarea:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px var(--bg-card) inset !important;
  box-shadow: 0 0 0 1000px var(--bg-card) inset !important;
  -webkit-text-fill-color: var(--white) !important;
  caret-color: var(--white);
  transition: background-color 99999s ease-out 0s;
}

.contact-form input:autofill,
.contact-form textarea:autofill {
  box-shadow: 0 0 0 1000px var(--bg-card) inset !important;
  -webkit-text-fill-color: var(--white) !important;
  caret-color: var(--white);
}

.contact-form .form-status {
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-align: center;
  white-space: pre-line;
  color: var(--red);
}

.contact-form .form-status.is-success {
  color: #3dca6a;
  font-weight: 700;
}

/* ----- Footer ----- */
.m-footer {
  padding: 22px 0 17px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.m-footer__domain {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 8px;
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--gray);
  margin-bottom: 14px;
}

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

.social-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}

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

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

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

.section-header {
  position: relative;
  margin-bottom: 20px;
}

@media (prefers-reduced-motion: reduce) {
  .m-hud__rec-dot {
    animation: none;
  }

  .dossier__photo-img {
    transition-duration: 0.01ms;
    will-change: auto;
  }

  .hero__year.is-glitch,
  .hero__year.is-glitch::before,
  .hero__year.is-glitch::after,
  .page-404__code.is-glitch,
  .page-404__code.is-glitch::before,
  .page-404__code.is-glitch::after,
  .title-glitch-word.is-glitch,
  .title-glitch-word.is-glitch::before,
  .title-glitch-word.is-glitch::after,
  .slogans-strip__track {
    animation: none !important;
  }

  html { scroll-behavior: auto; }
  .m-drawer { transition: none; }
}

/* ----- Mobile 404 ----- */
.m-page-404 {
  min-height: 70dvh;
  display: flex;
  align-items: center;
}

.m-page-404__inner {
  text-align: center;
}

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

.m-page-404 .page-404__code {
  position: relative;
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 8px auto 20px;
  font-family: var(--font-year);
  font-size: clamp(5rem, 22vw, 7.5rem);
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  color: var(--red);
  text-shadow: 0 0 14px color-mix(in srgb, var(--red) 38%, transparent);
}

.m-page-404 .page-404__code::before,
.m-page-404 .page-404__code::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: max-content;
  height: 100%;
  font: inherit;
  letter-spacing: inherit;
  font-variant-numeric: inherit;
  white-space: nowrap;
  pointer-events: none;
  clip-path: inset(0 0 100% 0);
  opacity: 0;
}

.m-page-404 .page-404__code::before {
  left: -4px;
  z-index: -2;
  color: var(--red);
  text-shadow:
    3px 0 var(--red),
    6px 0 color-mix(in srgb, var(--accent) 50%, transparent),
    0 0 12px color-mix(in srgb, var(--accent) 48%, transparent);
}

.m-page-404 .page-404__code::after {
  left: 4px;
  z-index: -1;
  color: #5ab4ff;
  text-shadow:
    -3px 0 #5ab4ff,
    -6px 0 rgba(90, 180, 255, 0.5),
    0 0 12px rgba(90, 180, 255, 0.42);
}

.m-page-404 .page-404__code.is-glitch {
  animation: m-hero-glitch-main 0.82s steps(2) infinite;
}

.m-page-404 .page-404__code.is-glitch::before {
  opacity: 1;
  animation: m-hero-glitch-1 0.82s steps(1) infinite;
}

.m-page-404 .page-404__code.is-glitch::after {
  opacity: 1;
  animation: m-hero-glitch-2 0.82s steps(1) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .m-page-404 .page-404__code::before,
  .m-page-404 .page-404__code::after {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
  }
}

.m-page-404__inner .page-404__text {
  text-align: left;
  max-width: 36ch;
  margin: 0 auto 28px;
}

.m-page-404__inner .page-404__text p {
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--gray-light);
  margin-bottom: 12px;
}

.m-page-404__inner .page-404__memory {
  margin-top: 20px;
  margin-bottom: 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--red);
}

/* Urgent site announcement (mobile) */
@keyframes bb-banner-enter {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.bb-banner-host {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    max(12px, env(safe-area-inset-top, 0px))
    max(12px, env(safe-area-inset-right, 0px))
    max(12px, env(safe-area-inset-bottom, 0px))
    max(12px, env(safe-area-inset-left, 0px));
  pointer-events: none;
  box-sizing: border-box;
}

.bb-banner-host:not(:empty) {
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.58);
}

.bb-banner {
  width: min(80%, var(--bb-banner-max-width));
  margin: 0 auto;
}

.bb-banner__card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 7px 10px 8px;
  border: 1px solid var(--bb-banner-border);
  background: linear-gradient(
    180deg,
    var(--bb-banner-bg-top) 0%,
    var(--bb-banner-bg-mid) 34%,
    var(--bb-banner-bg-mid) 66%,
    var(--bb-banner-bg-bottom) 100%
  );
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.24),
    0 6px 18px color-mix(in srgb, var(--bb-banner-bg-mid) 38%, transparent),
    0 12px 28px rgba(0, 0, 0, 0.26);
  animation: bb-banner-enter 0.42s var(--ease) both;
}

.bb-banner__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.bb-banner__from {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.28;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.bb-banner__from strong,
.bb-banner__from em {
  color: #fff;
  -webkit-text-fill-color: #fff;
}

.bb-banner__row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.bb-banner__text {
  width: 100%;
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.34;
  color: rgba(255, 255, 255, 0.91);
}

.bb-banner__text strong {
  font-weight: 700;
}

.bb-banner__text .bb-msg-uline {
  text-decoration: underline;
  text-underline-offset: 0.14em;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(255, 255, 255, 0.92);
}

/* mobile.css: a { text-decoration: none } — явно подчёркиваем ссылки в текстах из таблицы */
.bb-msg-link {
  text-decoration: underline;
  text-underline-offset: 0.12em;
  text-decoration-thickness: 1px;
}

.bb-banner__from .bb-msg-link,
.bb-banner__text .bb-msg-link {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.85);
}

.bb-banner__from .bb-msg-link:hover,
.bb-banner__from .bb-msg-link:focus-visible,
.bb-banner__text .bb-msg-link:hover,
.bb-banner__text .bb-msg-link:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: #fff;
}

.bb-banner__more {
  flex-shrink: 0;
  align-self: flex-end;
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  background: #0a0a0a;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.bb-banner__more:hover,
.bb-banner__more:focus-visible {
  background: #fff;
  color: var(--red-dark);
}

.bb-banner__close {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -8px -10px -8px 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.55rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.bb-tour-slot {
  margin-bottom: 14px;
}

.bb-tour-slot[data-announcement-above]:not([hidden]) + .tour-list {
  margin-top: 0;
  padding-top: 0.5em;
}

.tour-list + .bb-tour-slot {
  margin-top: 16px;
  margin-bottom: 0;
}

.bb-tour-msg {
  margin: 0;
  padding: 0;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.52;
  letter-spacing: 0.015em;
  color: var(--bb-tour-msg-color);
  overflow-wrap: break-word;
  word-break: break-word;
}

.bb-tour-msg strong {
  font-style: italic;
  font-weight: 700;
  color: inherit;
}

.bb-tour-msg strong.bb-tour-accent {
  font-style: normal;
  font-weight: 700;
  color: var(--bb-tour-msg-color);
}

.bb-tour-msg .bb-msg-uline {
  text-decoration: underline;
  text-underline-offset: 0.12em;
  text-decoration-thickness: 1.5px;
  text-decoration-color: currentColor;
}

.bb-tour-msg .bb-msg-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: currentColor;
}

.bb-tour-msg .bb-msg-link:hover,
.bb-tour-msg .bb-msg-link:focus-visible {
  color: var(--white);
  text-decoration: underline;
}

.bb-modal {
  position: fixed;
  inset: 0;
  z-index: 201;
  display: grid;
  place-items: center;
  padding: 16px;
}

.bb-modal[hidden] { display: none; }

.bb-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.bb-modal__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(calc(100vw - 32px), 864px);
  max-width: 864px;
  max-height: min(85vh, 720px);
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--bb-modal-border);
  background: var(--bb-modal-bg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.bb-modal__close {
  position: absolute;
  top: 2px;
  right: 8px;
  z-index: 30;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--gray-light);
  font-size: 1.85rem;
  cursor: pointer;
}

.bb-modal__viewport {
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(85vh, 720px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  box-sizing: border-box;
  padding: 40px 0 20px 20px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.5) rgba(255, 255, 255, 0.16);
}

.bb-modal__viewport::-webkit-scrollbar {
  width: 6px;
}

.bb-modal__viewport::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.16);
}

.bb-modal__viewport::-webkit-scrollbar-thumb {
  min-height: 48px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.bb-modal__title .bb-msg-link {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.55);
}

.bb-modal__title .bb-msg-link:hover,
.bb-modal__title .bb-msg-link:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.bb-modal__title {
  flex-shrink: 0;
  margin: 0 0 14px;
  padding-right: 44px;
  font-family: var(--font-display);
  font-size: 1.95rem;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: transparent;
  box-shadow: none;
}

.bb-modal__title strong {
  color: var(--white);
  font-weight: 600;
}

.bb-modal__title em {
  color: var(--white);
  font-style: italic;
}

.bb-modal__body {
  overflow: visible;
  padding-right: 12px;
  color: var(--gray-light);
  font-size: 0.94rem;
  line-height: 1.55;
  overflow-wrap: break-word;
  word-break: break-word;
}

.bb-modal__body strong {
  color: #e6e2e3;
}

.bb-modal__body em {
  font-style: italic;
  color: #b8b2b4;
}

.bb-modal__body .bb-msg-uline {
  text-decoration: underline;
  text-underline-offset: 0.14em;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(255, 255, 255, 0.45);
}

.bb-modal__body .bb-msg-link {
  color: #e6e2e3;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.5);
}

.bb-modal__body .bb-msg-link:hover,
.bb-modal__body .bb-msg-link:focus-visible {
  color: #fff;
  text-decoration: underline;
}

body.is-bb-modal-open { overflow: hidden; }

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