/* ─── Reset & Base ─────────────────────────────────────────────── */

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0a0a0a;
  cursor: none;
}

/* ─── Custom Cursor ─────────────────────────────────────────────── */

body::after {
  content: '';
  position: fixed;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  left: var(--cursor-x, 50%);
  top: var(--cursor-y, 50%);
  z-index: 1000;
  transition: opacity 0.3s;
}

/* ─── Hero Container ────────────────────────────────────────────── */

#hero {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* ─── Slides ────────────────────────────────────────────────────── */

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
  background-color: #1a1a1a;
}

.slide.active {
  opacity: 1;
}

.slide picture {
  position: absolute;
  inset: 0;
}

.slide picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Subtle dark overlay on all slides */
.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
}

/* ─── Header / Wordmark ─────────────────────────────────────────── */

header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  padding: 42px 48px;
}

#wordmark {
  display: block;
  text-decoration: none;
  line-height: 0;
}

#wordmark img {
  display: block;
  width: 140px;
  height: auto;
}

/* ─── Scroll Hint ───────────────────────────────────────────────── */

#scroll-hint {
  position: fixed;
  bottom: 42px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: hint-fade 3s ease-in-out 2s infinite;
  opacity: 0;
}

#scroll-hint span {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.55rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
}

#scroll-hint::before {
  content: '';
  display: block;
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.3);
  animation: line-drop 3s ease-in-out 2s infinite;
}

@keyframes hint-fade {
  0%   { opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes line-drop {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ─── Transition overlay (navigating away) ──────────────────────── */

#transition-overlay {
  position: fixed;
  inset: 0;
  background: #f5f4f2;
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.5s ease-in-out;
}

#transition-overlay.fade-in {
  opacity: 1;
  pointer-events: all;
}

/* ─── Responsive ─────────────────────────────────────────────────── */

@media (max-width: 600px) {
  header {
    padding: 28px 24px;
  }

  #wordmark img {
    width: 120px;
  }
}
