@font-face {
  font-family: 'Angelic War';
  src: url('assets/fonts/AngelicWar.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: var(--page-bg, #0a0a0a);
}

body {
  font-family: sans-serif;
  overflow-x: hidden;
  background: var(--page-bg, #0a0a0a);
  opacity: 0;
  transition: opacity 0.4s ease;
}

body.page-loaded {
  opacity: 1;
}

body.page-leaving {
  opacity: 0;
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  background: #0a0a0a;
  overflow: hidden;
}

.hero-video-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0a0a0a;
}

.hero-char-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% center;
  animation: floatVideo 6s ease-in-out infinite, glitchFX 7s linear infinite;
  transform-origin: center center;
}

@keyframes floatVideo {
  0%, 100% { transform: scale(0.92) translateY(0); }
  50% { transform: scale(0.92) translateY(-14px); }
}

@keyframes glitchFX {
  0%, 96%, 100% {
    filter: contrast(1.2) brightness(0.78);
  }
  96.5% {
    filter: contrast(1.6) brightness(1.2) hue-rotate(8deg)
      drop-shadow(4px 0 rgba(255,0,60,0.6)) drop-shadow(-4px 0 rgba(0,200,255,0.6));
  }
  97% {
    filter: contrast(0.8) brightness(0.7) hue-rotate(-6deg)
      drop-shadow(-3px 0 rgba(255,0,60,0.5)) drop-shadow(3px 0 rgba(0,200,255,0.5));
  }
  97.5% {
    filter: contrast(1.4) brightness(1.1)
      drop-shadow(2px 0 rgba(255,0,60,0.5)) drop-shadow(-2px 0 rgba(0,200,255,0.5));
  }
  98% {
    filter: contrast(1.2) brightness(0.78);
  }
}

.vhs-overlay {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(255,255,255,0.04) 0px,
    rgba(255,255,255,0.04) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
  pointer-events: none;
}

.grain-overlay {
  position: absolute;
  inset: -20%;
  width: 140%;
  height: 140%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
  opacity: 0.35;
  mix-blend-mode: overlay;
  pointer-events: none;
  animation: grainShift 0.5s steps(4) infinite;
}

@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-3%, 2%); }
  50%  { transform: translate(2%, -3%); }
  75%  { transform: translate(-2%, -2%); }
  100% { transform: translate(0, 0); }
}

.hero-video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
}

.hero-menu {
  position: absolute;
  top: 8%;
  right: 13%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.hero-logo {
  font-family: 'Angelic War', 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  letter-spacing: normal;
  color: #b3b3b3;
  text-transform: none;
  margin-bottom: 190px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
  filter: url(#thin-logo);
  animation: logoFloat 4s ease-in-out infinite;
  position: relative;
  left: -25px;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.start-menu {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-end;
}

.menu-item {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  letter-spacing: 4px;
  margin-right: -4px;
  text-transform: uppercase;
  color: #eee;
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  text-shadow: 0 0 8px rgba(0,0,0,0.9), 0 2px 5px rgba(0,0,0,0.85);
  transition: color 0.3s ease, letter-spacing 0.3s ease;
}

@media (min-width: 700px) {
  .hero-logo { font-size: 5.5rem; }
  .menu-item { font-size: 1.4rem; letter-spacing: 5px; margin-right: -5px; }
  .start-menu { gap: 28px; }
}

@media (max-width: 699px) {
  .hero-logo { font-size: 3.5rem; }
}

.menu-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: #f2f2f2;
  transition: all 0.35s ease;
  transform: translateX(-50%);
}

.menu-item:hover {
  color: #fff;
  letter-spacing: 6px;
}
.menu-item:hover::after { width: 100%; }

.hero-date {
  margin-top: 60px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: #666;
  animation: flicker 2.5s infinite;
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  45% { opacity: 1; }
  46% { opacity: 0.3; }
  47% { opacity: 1; }
  92% { opacity: 1; }
  93% { opacity: 0.2; }
  94% { opacity: 1; }
}

.sound-toggle {
  position: absolute;
  left: 24px;
  top: 24px;
  z-index: 6;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(0,0,0,0.35);
  color: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.sound-toggle:hover {
  background: rgba(0,0,0,0.55);
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}

.sound-toggle .sound-wave {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.sound-toggle .sound-mute {
  opacity: 1;
  transition: opacity 0.2s ease;
}

.sound-toggle.is-playing .sound-wave {
  opacity: 1;
}

.sound-toggle.is-playing .sound-mute {
  opacity: 0;
}

