#top.hero {
  position: relative;
  isolation: isolate;
  padding: 0;
  background: #17131f;
  color: #fff;
  min-height: 0;
}
.opening-video, #top.hero::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.opening-video { object-fit: cover; }
#top.hero::before {
  content: "";
  display: block;
  z-index: 1;
  opacity: 1;
  mask-image: none;
  background: linear-gradient(155deg, rgba(9,7,17,.84), transparent 61%),
    linear-gradient(0deg, rgba(9,7,17,.94), transparent 52%),
    linear-gradient(220deg, rgba(9,7,17,.38), transparent 40%);
  pointer-events: none;
}
#top.hero::after { display: none; }
.opening-layout {
  --edge: clamp(20px, 4vw, 84px);
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto minmax(88px, 1fr) auto;
  gap: 0 28px;
  padding: clamp(126px, 15vh, 185px) var(--edge) max(32px, 5vh);
}
#top h1 {
  margin: 0;
  max-width: 19ch;
  font-size: clamp(43px, 4.6vw, 86px);
  line-height: 1.06;
  letter-spacing: -.025em;
  text-wrap: balance;
}
#top .hero-aside {
  margin: 6px 0 0;
  align-self: start;
  justify-self: end;
  text-align: right;
  display: grid;
  gap: 6px;
  color: #fff;
  text-shadow: 0 1px 5px #121018;
}
#top .hero-aside .small-line { display: none; }
.opening-copy { grid-row: 3; align-self: end; }
#top .hero-desc { max-width: 51ch; color: #fff; margin: 0 0 20px; line-height: 1.5; }
#top .hero-buttons { align-items: center; gap: 12px 20px; }
#top .hero-buttons .btn { width: auto; letter-spacing: 0; }
#top .hero-buttons a:nth-child(2) { background: transparent; color: white; padding-inline: 0; border: none; }
.opening-controls { grid-row: 3; justify-self: end; align-self: end; display: flex; gap: 8px; }
.opening-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  color: white;
  border-radius: 32px;
  border: 1px solid #ffffff80;
  background: rgba(17,14,25,.72);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 0 18px;
  cursor: pointer;
}
.opening-controls button:hover { background: #25212f; }
#opening-motion { min-width: 46px; padding: 0; }
#opening-motion[hidden] { display: none; }
#top :focus-visible { outline: 3px solid #c5f397; outline-offset: 3px; }
@media (max-width: 760px) {
  .opening-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(74px, 1fr) auto auto;
    padding-top: 108px;
    padding-bottom: max(22px, env(safe-area-inset-bottom));
  }
  #top h1 { font-size: clamp(38px, 7.7vw, 56px); max-width: 18ch; }
  #top .hero-aside { display: none; }
  #top .hero-desc { font-size: 15px; margin-bottom: 14px; }
  #top .hero-buttons { gap: 4px 16px; }
  .opening-controls { grid-row: 4; margin-top: 16px; width: 100%; justify-content: space-between; }
  #top.hero::before {
    background: linear-gradient(155deg, rgba(9,7,17,.78), transparent 58%),
      linear-gradient(0deg, rgba(9,7,17,.96) 5%, rgba(9,7,17,.73) 30%, transparent 61%);
  }
}
@media (max-width: 360px) {
  .opening-layout {
    --edge: 16px;
    padding-top: 90px;
    grid-template-rows: auto minmax(32px, 1fr) auto auto;
  }
  #top h1 { font-size: 34px; }
  #top .hero-desc { font-size: 14px; }
  #top .hero-buttons { gap: 4px 10px; }
  #top .hero-buttons .btn { font-size: 12px; }
}
