* { box-sizing: border-box; }
html, body { height: 100%; }
html {
  cursor: url("../images/cursor.png") 0 0, auto;
}
/* Ensure all elements inherit the custom cursor */
*, *::before, *::after { cursor: inherit; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: #ffffff;
  background-color: #000000;
}

@font-face {
  font-family: "MERCY";
  src: url("../fonts/MERCY.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.background {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: none;
  transition: opacity 2000ms ease;
  opacity: 0; /* layers start hidden until JS sets */
  cursor: inherit;
}

/* Two stacked layers; only one visible at a time. */
.background--a { z-index: 0; }
.background--b { z-index: 0; }

/* Visible state applied from JS */
.background.is-visible { opacity: 1; }

.site-title {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 2;
  font-family: "MERCY", sans-serif;
  font-size: clamp(32px, 6vw, 80px);
  line-height: 1;
  letter-spacing: 1px;
  text-transform: none;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  pointer-events: none;
}

.content {
  position: relative;
  min-height: 100vh;
  padding: 48px 24px;
  display: grid;
  place-items: center;
  text-align: center;
  backdrop-filter: none;
  z-index: 1;
  cursor: inherit;
}

.content h1 {
  margin: 0 0 8px 0;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 56px);
}

.content p { opacity: 0.9; }

/* Wave text animation */
.wave-text {
  position: relative;
  z-index: 2;
}

.wave-text span {
  display: inline-block;
  font-family: "MERCY", sans-serif;
  font-size: clamp(32px, 6vw, 96px);
  animation: wave 2s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

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