/* Sound toggle (bottom left), after unseen.co's mute button: white disc, five bars that dance
   while sound is on and lie flat when muted. */
.ec-mute {
  position: fixed;
  left: 1.75rem;
  bottom: 1.75rem;
  z-index: 140;
  width: 2.65rem;
  height: 2.65rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ec-mute__bg {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 6px rgba(16, 16, 16, 0.08);
  transition: transform 0.25s cubic-bezier(0.19, 1, 0.22, 1);
}
.ec-mute:hover .ec-mute__bg { transform: scale(1.15); }
.ec-mute:active .ec-mute__bg { transform: scale(0.9); }
.ec-mute__bars {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
  transform: translate(-50%, -50%);
}
.ec-mute__bar {
  width: 2px;
  height: 100%;
  background: #101010;
  transform-origin: 50% 100%;
  transform: scaleY(var(--s));
  animation: ec-mute-bar 0.9s ease-in-out calc(var(--i) * -0.17s) infinite alternate;
}
.ec-mute.is-muted .ec-mute__bar {
  animation: none;
  transform: scaleY(0.15);
  transition: transform 0.3s ease;
}
@keyframes ec-mute-bar {
  0% { transform: scaleY(var(--s)); }
  50% { transform: scaleY(calc(1.15 - var(--s))); }
  100% { transform: scaleY(calc(var(--s) * 0.6 + 0.2)); }
}
@media (max-width: 767px) {
  .ec-mute { left: 1rem; bottom: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ec-mute__bar { animation: none; }
}

/* First-visit gate (after unseen.co's loader): logo, line, "Enter" / "Enter without audio" */
/* First visit: the gate's colour until the gate exists (lifts by itself if the script never runs) */
html.ec-gate-wait::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 299;
  background: #e5e5e5;
  pointer-events: none;
  animation: ec-gate-wait 0.3s ease 8s forwards;
}
@keyframes ec-gate-wait { to { opacity: 0; visibility: hidden; } }
.ec-gate {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  padding: 2rem;
  background: #e5e5e5;
  color: #101010;
  font-family: "Helvetica Now Subset", "Helvetica Neue", Arial, sans-serif;
  text-align: center;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.ec-gate.is-visible { opacity: 1; }
.ec-gate__logo { width: clamp(7rem, 12vw, 10rem); color: #0038ff; }
.ec-gate__logo svg { display: block; width: 100%; height: auto; }
.ec-gate__name { margin: 0; font-size: 1.05rem; letter-spacing: 0.02em; text-transform: uppercase; }
.ec-gate__text { max-width: 24rem; margin: -0.9rem 0 0; font-size: 0.95rem; line-height: 1.3; opacity: 0.8; }
.ec-gate__enter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #101010;
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 1px 8px rgba(16, 16, 16, 0.06);
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.ec-gate__enter:hover { transform: scale(1.06); }
.ec-gate__enter svg { width: 0.7em; height: 0.7em; }
.ec-gate__mute {
  position: absolute;
  bottom: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
}
