:root {
  --ink: #f5f3ed;
  --muted: rgba(245, 243, 237, 0.7);
  --black: #050505;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--black);
}

body {
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

a { color: inherit; text-decoration: none; }

.landing {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--black);
}

.film {
  position: absolute;
  inset: 0;
  z-index: -3;
  display: grid;
  place-items: center;
  opacity: 1;
  transition: opacity 420ms ease;
}

.film--fading { opacity: 0; }

.film::before,
.film::after {
  position: absolute;
  inset-block: 0;
  z-index: 1;
  width: max(0px, calc((100vw - 56.25svh) / 2));
  content: "";
  pointer-events: none;
}

.film::before {
  left: 0;
  background: linear-gradient(90deg, #050505 68%, rgba(5, 5, 5, 0));
}

.film::after {
  right: 0;
  background: linear-gradient(-90deg, #050505 68%, rgba(5, 5, 5, 0));
}

.film__video {
  display: block;
  width: auto;
  height: 100svh;
  max-width: 100vw;
  object-fit: contain;
  background: #050505;
}

.shade {
  position: absolute;
  inset-inline: 0;
  z-index: -1;
  display: none;
  height: 36svh;
  pointer-events: none;
}

.shade--top { top: 0; background: linear-gradient(#050505 0%, rgba(5, 5, 5, 0) 100%); }
.shade--bottom { bottom: 0; background: linear-gradient(0deg, #050505 0%, rgba(5, 5, 5, 0) 100%); }

.grain {
  position: absolute;
  inset: -50%;
  z-index: 1;
  width: 200%;
  height: 200%;
  pointer-events: none;
  opacity: 0.24;
  background-image: url("data:image/svg+xml,%3Csvg width='170' height='170' viewBox='0 0 170 170' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' seed='9' stitchTiles='stitch'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='1.65' intercept='-.32'/%3E%3CfeFuncG type='linear' slope='1.65' intercept='-.32'/%3E%3CfeFuncB type='linear' slope='1.65' intercept='-.32'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.92'/%3E%3C/svg%3E");
  background-size: 170px 170px;
  animation: grain-shift 0.16s steps(2) infinite;
  mix-blend-mode: soft-light;
}

@keyframes grain-shift {
  0% { transform: translate3d(0, 0, 0); }
  20% { transform: translate3d(-2.5%, 1.5%, 0); }
  40% { transform: translate3d(2%, -2.5%, 0); }
  60% { transform: translate3d(-1.5%, 2.5%, 0); }
  80% { transform: translate3d(2.5%, 1%, 0); }
  100% { transform: translate3d(-1%, -2%, 0); }
}

.masthead,
.footer {
  position: absolute;
  inset-inline: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-inline: clamp(20px, 3.1vw, 52px);
}

.masthead { top: 0; padding-top: clamp(22px, 3vw, 44px); }

.identity {
  display: flex;
  flex-direction: column;
  font-size: clamp(31px, 3.65vw, 64px);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.075em;
  text-transform: uppercase;
}

.launch,
.eyebrow,
.location,
.contacts,
.playback {
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.playback {
  position: absolute;
  right: 50%;
  bottom: clamp(22px, 3vw, 42px);
  z-index: 3;
  display: flex;
  gap: 16px;
  align-items: center;
  transform: translateX(50%);
}

.swipe-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.swipe-layer:active { cursor: grabbing; }

.playback__button {
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  color: inherit;
  font: inherit;
  line-height: 1;
  background: transparent;
  cursor: pointer;
  opacity: 0.62;
  place-items: center;
  transition: opacity 180ms ease, transform 180ms ease;
}

.playback__button:hover,
.playback__button:focus-visible {
  opacity: 1;
  transform: scale(1.12);
}

.playback__button:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 2px;
}

.playback__counter {
  min-width: 48px;
  text-align: center;
}

.launch {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
  margin-top: 3px;
  text-align: right;
}

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

.moscow-time {
  color: var(--muted);
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e7ff44;
  box-shadow: 0 0 0 4px rgba(231, 255, 68, 0.14);
}

.statement {
  position: absolute;
  left: clamp(20px, 3.1vw, 52px);
  bottom: clamp(76px, 10vh, 116px);
  z-index: 2;
  width: min(31vw, 470px);
}

.eyebrow { margin: 0 0 16px; color: var(--muted); }

.statement h1 {
  margin: 0;
  font-size: clamp(27px, 3vw, 52px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.about {
  max-width: 410px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(12px, 0.92vw, 15px);
  line-height: 1.48;
}

.footer { bottom: 0; align-items: center; padding-bottom: clamp(22px, 3vw, 42px); }
.location { margin: 0; }
.contacts { display: flex; gap: 25px; }

.contacts a { position: relative; padding-bottom: 5px; }
.contacts a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.contacts a:hover::after,
.contacts a:focus-visible::after { transform: scaleX(1); transform-origin: left; }

@media (max-width: 900px) {
  .film::before,
  .film::after { display: none; }
  .film__video { width: 100vw; height: 100svh; object-fit: cover; }
  .shade { display: block; }
  .statement { right: 20px; bottom: 88px; width: auto; max-width: 570px; }
  .statement h1 { max-width: 540px; font-size: clamp(34px, 8.5vw, 58px); }
  .about { max-width: 470px; font-size: 13px; }
}

@media (max-width: 560px) {
  .identity { font-size: 34px; }
  .launch { max-width: 152px; justify-content: flex-end; line-height: 1.25; }
  .launch__status { align-items: flex-start; }
  .statement { bottom: 86px; }
  .statement h1 { max-width: 92vw; font-size: 10.2vw; }
  .about { max-width: 90vw; }
  .contacts { gap: 16px; }
  .playback { right: auto; bottom: 55px; left: 20px; transform: none; }
}

@media (max-height: 690px) and (max-width: 900px) {
  .about { display: none; }
  .statement { bottom: 78px; }
}

@media (prefers-reduced-motion: reduce) {
  .film__video { display: none; }
  .film { background: url("/posters/teko3.jpg") center / cover no-repeat; }
  .grain { animation: none; }
}
