/* Layout: one page. Giant serif wordmark pinned over everything, full-bleed hero video,
   centered sections on grainy black, floating serif menu bottom-right. */
:root {
  --bg: #070707;
  --fg: #f2f2ef;
  --muted: #8d8d89;
  --line: rgba(242, 242, 239, 0.35);
  --serif: "Times New Roman", Times, "Liberation Serif", serif;
  --grot: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --gutter: max(16px, 3vw);
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* Background below the hero: mottled photocopy black with coarse grain */
:root {
  --grain-coarse: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='1' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='3.2' intercept='-1.75'/%3E%3CfeFuncG type='linear' slope='3.2' intercept='-1.75'/%3E%3CfeFuncB type='linear' slope='3.2' intercept='-1.75'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E");
  --blotch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.006' numOctaves='5' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='2.6' intercept='-1.05'/%3E%3CfeFuncG type='linear' slope='2.6' intercept='-1.05'/%3E%3CfeFuncB type='linear' slope='2.6' intercept='-1.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23b)'/%3E%3C/svg%3E");
}
body { background: #0a0a0a; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image: var(--grain-coarse), var(--blotch);
  background-size: 720px 720px, 1400px 1400px;
}

/* Section photo backgrounds: fixed behind content, cross-fade on scroll */
.bg-photos { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.bg-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.9s ease;
}
/* Darken + vignette so text and covers stay readable */
.bg-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 85% 75% at 50% 50%, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.85)),
    rgba(0, 0, 0, 0.2);
}
.bg-photo.is-on { opacity: 1; }

/* Film grain over the whole page */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.13;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-2%, -1%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Wordmark + menu ---------- */
.wordmark {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  z-index: 80;
  text-align: center;
  white-space: nowrap;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(52px, 11.5vw, 190px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 0 24px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  padding-top: 0.08em;
  width: fit-content;
  margin-inline: auto;
}
/* After the hero: same place, one third of the size */
.wordmark {
  transform-origin: 50% 0;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.wordmark.is-small { transform: scale(0.3333); }

.menu {
  position: fixed;
  right: max(var(--gutter), env(safe-area-inset-right, 0px));
  top: 50%;
  transform: translateY(-50%);
  z-index: 85;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
}
.menu a {
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
}
.menu a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 480px;
  overflow: hidden;
  background: transparent; /* the photo behind shows through the fade */
}
.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Soft fade at the bottom into the section photo below */
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
}
.hero-tagline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.25em;
  margin: 0;
  padding-inline: var(--gutter);
  text-align: center;
  font-family: var(--grot);
  font-stretch: 62%;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-size: 12vw; /* JS подгоняет точно по ширине */
  white-space: nowrap;
  line-height: 0.95;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 24px rgba(0, 0, 0, 0.25);
}
.hero-tagline span { display: inline-block; }

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(80px, 11vw, 160px) 0;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  scroll-margin-top: clamp(32px, 5vw, 80px);
}
.inner { max-width: 1080px; margin-inline: auto; }

.h-section {
  margin: 0 0 clamp(28px, 4vw, 48px);
  text-align: center;
  font-family: var(--grot);
  font-stretch: 62%;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1;
  text-transform: uppercase;
  text-wrap: balance;
}
/* Heading with a dot on each side, centered on the cap height */
.h-section--dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
}
.h-section--dots::before,
.h-section--dots::after {
  content: "";
  flex: none;
  width: 0.16em;
  height: 0.16em;
  border-radius: 50%;
  background: currentColor;
}
.eyebrow {
  margin: 0;
  font-family: var(--grot);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 6px 2px;
  border: 0;
  background: none;
  color: var(--fg);
  font-family: var(--grot);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  white-space: nowrap;
}
.btn:hover { text-decoration-line: underline; }

/* ---------- Releases: 3 x 2 ---------- */
.release-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 56px) clamp(16px, 3vw, 40px);
}
.release { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
/* Text sits above the cover's shadow */
.release > :not(.release-cover) { position: relative; z-index: 1; }
.release-cover { --cover-radius: 7%; position: relative; display: block; width: 100%; margin-bottom: 10px; transition: transform 0.3s; }
/* Film grain on top of each cover (colors stay) */
.release-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.75;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 300px 300px;
  border-radius: var(--cover-radius);
}
.release-cover img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  /* Deep layered shadow: covers the grain around the sleeve so it reads as lifted */
  box-shadow:
    0 3px 6px rgba(0, 0, 0, 0.95),
    0 20px 40px rgba(0, 0, 0, 1),
    0 50px 110px rgba(0, 0, 0, 1),
    0 0 160px 20px rgba(0, 0, 0, 0.9);
  transition: box-shadow 0.3s;
  border-radius: var(--cover-radius); /* rounded like a CRT / VHS screen */
}
.release-cover:hover { transform: translateY(-4px) scale(1.02); }
.release-cover:hover img {
  box-shadow:
    0 6px 10px rgba(0, 0, 0, 0.95),
    0 30px 56px rgba(0, 0, 0, 1),
    0 70px 140px rgba(0, 0, 0, 1),
    0 0 190px 30px rgba(0, 0, 0, 0.9);
}
.release-title {
  margin: 2px 0 10px;
  font-family: var(--grot);
  font-stretch: 62%;
  font-weight: 900;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* ---------- Live video ---------- */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  /* Whole Live block (title + video + caption) fits on screen, so the menu can center it */
  width: min(100%, calc((100svh - 300px) * 16 / 9));
  margin-inline: auto;
  background: #000;
}
.video-frame iframe, .video-frame video { display: block; width: 100%; height: 100%; border: 0; background: #000; }
.video-poster {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
}
.video-poster img { width: 100%; height: 100%; object-fit: cover; }
.play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 76px;
  height: 76px;
  border: 1px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.3);
}
.play::after {
  content: "";
  position: absolute;
  left: 30px;
  top: 24px;
  border-style: solid;
  border-width: 14px 0 14px 21px;
  border-color: transparent transparent transparent #fff;
}
.video-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--grot);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.video-caption { margin: 14px 0 0; text-align: center; font-weight: 700; font-size: 17px; }

/* ---------- About ---------- */
.about-text {
  /* Same width as the video above */
  font-weight: 700;
  font-size: clamp(18px, 2.1vw, 26px);
  line-height: 1.35;
  text-align: center;
  hyphens: none;
  text-wrap: pretty;
}
.about-text p { margin: 0; }
.about-text p + p { margin-top: 0.9em; }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: clamp(12px, 2vw, 24px);
  margin-top: clamp(32px, 5vw, 64px);
}
.photo-grid:empty { display: none; }
.photo-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- Contact ---------- */
.socials-big {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 32px;
  font-family: var(--grot);
  font-stretch: 62%;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: clamp(30px, 4.6vw, 72px);
  line-height: 1.05;
  text-transform: uppercase;
}
.socials-big a { display: inline-flex; align-items: center; gap: 0.22em; text-decoration: none; }
.socials-big svg { flex: none; width: 0.72em; height: 0.72em; }
.socials-big a:hover span { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 56px;
  margin-top: clamp(40px, 5vw, 64px);
  text-align: center;
}
.contact a { display: inline-block; margin-top: 6px; font-size: clamp(19px, 2.2vw, 24px); font-weight: 700; text-underline-offset: 4px; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.footer {
  margin-top: clamp(80px, 11vw, 160px);
  padding-block: 24px calc(24px + env(safe-area-inset-bottom, 0px));
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  border-top: 1px solid var(--line);
  font-weight: 700;
  font-size: 13px;
}
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer p { margin: 0; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Keep content clear of the side menu on desktop (symmetric, so it stays centered) */
@media (min-width: 721px) {
  .section {
    padding-left: max(120px, env(safe-area-inset-left, 0px));
    padding-right: max(120px, env(safe-area-inset-right, 0px));
  }
}

/* ---------- Phones ---------- */
@media (max-width: 720px) {
  .release-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .release-title { font-size: 20px; }

  .menu { top: auto; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: none; flex-direction: row; gap: 16px; left: 0; right: 0; justify-content: center; }
  .menu a { font-size: 16px; }
  .hero-tagline { bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
  .play { width: 56px; height: 56px; }
  .play::after { left: 22px; top: 17px; border-width: 11px 0 11px 16px; }
  .footer { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {

  body::after { animation: none; }
  .release-cover, .release-cover img, .wordmark, .bg-photo { transition: none; }
}
