:root {
  --c-text: #ffffff;
  --c-muted: rgba(255, 255, 255, 0.85);
  --c-icon: rgba(255, 255, 255, 0.9);
  --font-title: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  height: 100dvh;
  font-family: var(--font-body);
  color: var(--c-text);
  background-color: #0d0d0d;
  overflow: hidden;
  display: grid;
  place-items: center;
}

/* Background image (LQIP placeholder under full image) */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background-color: #0d0d0d;
}

.bg__placeholder {
  position: absolute;
  inset: 0;
  background-image: url('../assets/bg-lqip.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(24px);
  transform: scale(1.15);
}

.bg__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.bg.is-loaded .bg__image {
  opacity: 1;
}

/* Particle canvas */
#particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Dark gradient overlay for legibility */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.15) 38%,
    rgba(0, 0, 0, 0.32) 78%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

/* Brand / logo */
.brand {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 4;
  padding: 26px 34px;
}

.brand a {
  display: inline-block;
}

.brand__logo {
  display: block;
  width: clamp(150px, 20vw, 230px);
  height: auto;
}

/* Centered stage (tilt target) */
.stage {
  position: relative;
  z-index: 3;
  max-width: 960px;
  padding: 24px;
  text-align: center;
  will-change: transform;
  transform-style: preserve-3d;
}

.stage__title {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 1.06;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45);
}

.stage__caption {
  margin: 1.4rem 0 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--c-muted);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

/* Social links */
.social {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  justify-content: center;
  padding: 22px 24px;
}

.social__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
}

.social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--c-icon);
  border-radius: 50%;
  transition: transform 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}

.social__link:hover {
  color: #ffffff;
  transform: scale(1.12);
  background-color: rgba(255, 255, 255, 0.12);
}

.social__link:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Entrance reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
}

.is-ready .reveal {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 600px) {
  .brand {
    padding: 18px 20px;
  }

  .brand__logo {
    width: clamp(140px, 44vw, 200px);
  }

  .stage {
    padding: 20px;
  }

  .social {
    padding: 16px;
  }
}

/* Reduced motion: no entrance animation, no tilt/particles */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .bg__image {
    transition: none;
  }
}
