/* style.css */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: #000; overflow: hidden; }

/* ===== HERO ===== */
.hero{
  position: fixed;
  inset: 0;
  overflow: hidden;
}

/* фон: cover, без полос */
.hero__bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 0;
}

/* stage: “виртуальный артборд” 16:9, вписанный в окно */
.stage{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  width: min(100vw, calc(100vh * 16 / 9));
  aspect-ratio: 16 / 9;

  z-index: 1;
}

/* ЛОГО (X=977 Y=556 W=605 на 2560×1440) */
.stage__logo{
  position: absolute;
  left: 38.1640625%;
  top: 38.6111111%;
  width: 23.6328125%;
  height: auto;
  display: block;
}

/* ===== BUTTONS ===== */
.stage__btn{
  position: absolute;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: block;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.stage__btn img{
  width: 100%;
  height: auto;
  display: block;
}

/* SHOWREEL (X=1068 Y=910 W=423) */
.stage__btn--showreel{
  left: 41.71875%;
  top: 63.1944444%;
  width: 16.5234375%;
}

.stage__btn:hover{ opacity: 0.97; }
.stage__btn:active{ opacity: 0.92; }

.stage__btn:focus-visible{
  outline: 2px solid rgba(180,255,0,0.55);
  outline-offset: 4px;
  border-radius: 6px;
}

/* ===== MODAL (центр + больше) ===== */
.modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;

  place-items: center;
  padding: clamp(12px, 3vw, 28px);
}

.modal.is-open{
  display: grid;
}

.modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(6px);
}

.modal__panel{
  position: relative;
  z-index: 1;

  width: min(1200px, 94vw, calc(80vh * 16 / 9));
  background: rgba(10,10,10,0.65);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  overflow: hidden;
}

.modal__close{
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.85);
  font-size: 22px;
  cursor: pointer;
}

.modal__ratio{
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.modal__ratio iframe{
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}
