:root {
  --void: #000000;
  --blood: #8b0000;
  --bone: #e8e8e8;
  --ash: #666666;
}

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

body {
  background: var(--void);
  color: var(--bone);
  font-family: "Libre Bodoni", serif;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Grain texture overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.03) 2px,
      rgba(255, 255, 255, 0.03) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.03) 2px,
      rgba(255, 255, 255, 0.03) 4px
    );
  opacity: 0.5;
  pointer-events: none;
  z-index: 1000;
  mix-blend-mode: overlay;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--void);
}

::-webkit-scrollbar-thumb {
  background: var(--blood);
  border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
  background: #a00000;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* Logo section */
.logo {
  text-align: center;
  margin-bottom: 80px;
  animation: fadeIn 1.5s ease-out 0.3s forwards;
}

.logo img {
  max-width: 650px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 40px rgba(139, 0, 0, 0.3));
}

/* Tagline */
.incantation {
  text-align: center;
  margin-bottom: 100px;
  animation: fadeIn 1.8s ease-out 0.8s forwards;
}

.incantation-line {
  font-size: clamp(0.825rem, 1.75vw, 1.025rem);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.incantation-line:last-child {
  margin-top: 1.5rem;
  font-weight: 600;
  color: var(--bone);
  letter-spacing: 0.2em;
}

/* Video section */
.rituals {
  margin-top: 80px;
}

.ritual-title {
  font-family: "UnifrakturMaguntia", cursive;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: 60px;
  color: var(--blood);
  letter-spacing: 0.05em;
  opacity: 0;
  animation: fadeIn 1.5s ease-out 1.8s forwards;
}

.video-grid {
  display: flex;
  flex-direction: column;
  gap: 60px;
  max-width: 720px;
  margin: 0 auto;
}

.video-container {
  aspect-ratio: 16/9;
  width: 100%;
  max-width: 720px;
  background: rgba(139, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.video-container:nth-child(1) {
  animation: fadeIn 1.2s ease-out 1.3s forwards;
}
.video-container:nth-child(2) {
  animation: fadeIn 1.2s ease-out 1.5s forwards;
}
.video-container:nth-child(3) {
  animation: fadeIn 1.2s ease-out 1.7s forwards;
}
.video-container:nth-child(4) {
  animation: fadeIn 1.2s ease-out 1.9s forwards;
}
.video-container:nth-child(5) {
  animation: fadeIn 1.2s ease-out 2.1s forwards;
}
.video-container:nth-child(6) {
  animation: fadeIn 1.2s ease-out 2.3s forwards;
}
.video-container:nth-child(7) {
  animation: fadeIn 1.2s ease-out 2.5s forwards;
}

/* Links section */
.links {
  text-align: center;
  margin-top: 100px;
  animation: fadeIn 1.5s ease-out 2.7s forwards;
}

.links a {
  display: block;
  color: var(--bone);
  text-decoration: none;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  transition: color 0.3s ease;
}

.links a:hover {
  color: var(--blood);
}

.symbol {
  text-align: center;
  margin-top: 100px;
  padding-bottom: 60px;
  animation: fadeIn 1.5s ease-out 2.9s forwards;
}

.symbol img {
  max-width: 650px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 30px rgba(139, 0, 0, 0.2));
}

.video-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(139, 0, 0, 0.1) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Video placeholder styling */
.video-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease;
}

.video-placeholder:hover img {
  filter: brightness(0.7);
}

.video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(139, 0, 0, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  border: 2px solid var(--bone);
  transition: all 0.3s ease;
}

.video-play-icon {
  color: var(--bone);
  font-size: 20px;
  margin-left: 3px;
}

.video-placeholder:hover .video-play-button {
  background: rgba(139, 0, 0, 1);
  transform: translate(-50%, -50%) scale(1.1);
}

/* Fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    padding: 40px 20px;
  }

  .logo {
    margin-bottom: 60px;
  }

  .incantation {
    margin-bottom: 80px;
  }

  .incantation-line {
    margin-bottom: 1.5rem;
  }

  .incantation-line:last-child {
    margin-top: 2rem;
  }

  .video-grid {
    gap: 40px;
  }

  .ritual-title {
    margin-bottom: 40px;
  }

  .links {
    margin-top: 60px;
  }

  .links a {
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
  }

  .symbol {
    margin-top: 80px;
  }

  .symbol img {
    max-width: 500px;
  }
}

/* Animation class - added by JS for progressive enhancement */
.animate .logo,
.animate .incantation,
.animate .video-container,
.animate .links,
.animate .symbol {
  opacity: 0;
}