/* The hall is the page backdrop. Keep the masthead's gutters on its content,
   rather than applying those gutters to the hall artwork. */
body.home-overhaul > main {
  width:100% !important;
  max-width:none !important;
  margin-left:0 !important;
  margin-right:0 !important;
  padding-left:0 !important;
  padding-right:0 !important;
}
body.home-overhaul .hero.harbor-hero {
  width:100% !important;
  max-width:none !important;
  margin-left:0 !important;
  margin-right:0 !important;
  border-radius:0 !important;
  background-size:cover, cover !important;
  background-position:center top, center top !important;
}
@media(max-width:760px) {
  body.home-overhaul .hero.harbor-hero {
    height:calc(100dvh - var(--guild-masthead-height,170px)) !important;
    min-height:calc(100dvh - var(--guild-masthead-height,170px)) !important;
  }
}
/* Keep the scenery still while the crest and language controls reveal in order. */
body .language-gate.opening-scene[data-language-gate] {
  isolation:isolate;
  background:#090909 !important;
  transform:none !important;
  filter:none !important;
  transition:opacity 240ms cubic-bezier(.23,1,.32,1) !important;
}
body .language-gate.opening-scene[data-language-gate]::before,
body .language-gate.opening-scene[data-language-gate]::after { content:none !important; }
.opening-art {
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(180deg,rgba(10,7,5,.13),transparent 30%,transparent 58%,#090909 98%),
    url("assets/gul-opening-landscape.webp") center 44% / cover no-repeat;
}
.opening-crest {
  position:absolute;
  left:50%;
  top:44%;
  width:min(76vw,960px,115vh);
  aspect-ratio:1717 / 916;
  pointer-events:none;
  transform:translate(-50%,-50%);
  animation:gulCrestReveal 1650ms cubic-bezier(.42,0,.58,1) both;
}
.opening-crest span {
  position:absolute;
  inset:0;
  background:url("assets/gul-opening-mark.webp") center / 100% 100% no-repeat;
}
.opening-mark {
  clip-path:inset(0 14% 0 12%);
}
.opening-cloth {
  animation:gulClothRipple 820ms 1550ms cubic-bezier(.77,0,.175,1) both;
}
.opening-cloth-left {
  clip-path:inset(0 87.8% 0 0);
  transform-origin:12% 43%;
}
.opening-cloth-right {
  clip-path:inset(0 0 0 85.8%);
  transform-origin:86% 65%;
  animation-direction:reverse;
}
.opening-crest .opening-glint {
  background:none;
  overflow:hidden;
  mask:url("assets/gul-opening-mark.webp") center / 100% 100% no-repeat;
  mix-blend-mode:screen;
}
.opening-glint::before {
  content:"";
  position:absolute;
  inset:-30% 0;
  background:linear-gradient(105deg,transparent 38%,rgba(255,174,80,.12) 46%,rgba(255,223,167,.62) 50%,rgba(255,174,80,.12) 54%,transparent 62%);
  animation:gulCrestGlint 860ms 1380ms cubic-bezier(.42,0,.58,1) both;
}
.opening-scene .language-question {
  animation:gulOpeningWording 360ms 2050ms cubic-bezier(.23,1,.32,1) both;
}
.opening-scene .rune-choice {
  animation:gulOpeningWording 360ms 2500ms cubic-bezier(.23,1,.32,1) both !important;
}
body .language-gate.opening-scene[data-language-gate] .gate-panel {
  margin:0 auto clamp(22px,7vh,74px) !important;
  transition:none !important;
}
body .language-gate.opening-scene.is-leaving .gate-panel {
  transform:none !important;
  opacity:1 !important;
}
@keyframes gulCrestReveal {
  from { opacity:0; filter:blur(14px); transform:translate(-50%,-50%) scale(.97); }
  35% { opacity:.7; }
  to { opacity:1; filter:blur(0); transform:translate(-50%,-50%) scale(1); }
}
@keyframes gulClothRipple {
  0%,100% { transform:rotate(0); }
  42% { transform:rotate(1.7deg) scaleY(1.03); }
  70% { transform:rotate(-.7deg); }
}
@keyframes gulCrestGlint {
  from { opacity:0; transform:translateX(-66%); }
  24%,72% { opacity:1; }
  to { opacity:0; transform:translateX(66%); }
}
@keyframes gulOpeningWording {
  from { opacity:0; transform:translateY(8px); }
  to { opacity:1; transform:translateY(0); }
}
@media (max-width:760px) {
  .opening-art { background-position:center,center top; }
  .opening-crest { width:min(105vw,670px); top:39%; }
  body .language-gate.opening-scene[data-language-gate] .gate-panel {
    margin-bottom:clamp(34px,10vh,84px) !important;
  }
}
@media (prefers-reduced-motion:reduce) {
  .opening-scene :is(.opening-crest,.opening-cloth,.language-question,.rune-choice) {
    animation:none !important;
  }
  .opening-glint::before { content:none; }
}
