/* ============================================================
   CAESAR'S ANGELS — HOME PAGE (index.css)
   ============================================================ */

body {
  overflow: hidden;
  height: 100dvh;
}

/* ── Loader colours match lifted bg ── */
#loader { background: var(--void); }

/* ── Hero ── */
.hero { position: fixed; inset: 0; z-index: 0; }

.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1400ms cubic-bezier(0.4,0,0.2,1); }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }

.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, rgba(42,51,36,0.84) 0%, rgba(42,51,36,0.28) 45%, rgba(42,51,36,0.06) 100%),
    linear-gradient(to right, rgba(42,51,36,0.44) 0%, rgba(42,51,36,0.0) 55%);
}
.hero-grain {
  position: absolute; inset: 0; z-index: 2; opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px; pointer-events: none;
}

/* ── Nav (homepage version — absolute, not fixed) ── */
.nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  padding: clamp(1.2rem, 3vw, 2rem) clamp(1.4rem, 4vw, 3.5rem);
  display: flex; align-items: center; justify-content: space-between;
  opacity: 0;
  animation: ui-in 900ms 2000ms cubic-bezier(0.16,1,0.3,1) forwards;
}
.nav-logo {
  height: clamp(14px, 1.9vw, 22px); width: auto; display: block;
  opacity: 0.92; transition: opacity 250ms;
}
.nav-logo:hover { opacity: 1; }
.nav-right { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 2.8rem); }
.nav-link {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(0.58rem, 0.85vw, 0.68rem);
  font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(243,238,230,0.6); transition: color 280ms;
}
.nav-link:hover { color: #F3EEE6; }
.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 4px; cursor: none; }
.nav-burger span {
  display: block; width: 20px; height: 1px;
  background: rgba(243,238,230,0.75);
  transition: transform 300ms, opacity 300ms;
}
.nav-burger.open span:nth-child(1) { transform: rotate(45deg) translate(4px,4px); }
.nav-burger.open span:nth-child(2) { opacity: 0; }

/* ── Home drawer (uses absolute, not fixed) ── */
.drawer-overlay {
  display: none; position: absolute; inset: 0;
  background: rgba(0,0,0,0.5); z-index: 15;
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}
.drawer-overlay.show { display: block; }
.mobile-drawer {
  position: absolute; top: 0; right: 0;
  width: min(320px, 100vw); height: 100dvh;
  background: rgba(42,51,36,0.98);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid rgba(255,255,255,0.07);
  z-index: 20;
  transform: translateX(100%);
  transition: transform 500ms cubic-bezier(0.16,1,0.3,1);
  display: flex; flex-direction: column;
  padding: clamp(1.2rem, 4vw, 2rem);
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer__top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: clamp(2.5rem, 8vw, 4rem);
}
.drawer-logo { height: 14px; width: auto; }
.mobile-drawer__close { font-size: 1rem; color: rgba(243,238,230,0.45); cursor: none; transition: color 200ms; }
.mobile-drawer__close:hover { color: #F3EEE6; }
.mobile-drawer__links { display: flex; flex-direction: column; flex: 1; }
.mobile-drawer__link {
  display: flex; align-items: center; gap: 1rem;
  padding: clamp(0.85rem, 3vw, 1.15rem) 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-family: 'Outfit', sans-serif;
  font-size: clamp(0.65rem, 2.5vw, 0.78rem);
  font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(243,238,230,0.55);
  transition: color 250ms, padding-left 250ms;
}
.mobile-drawer__link:hover { color: #F3EEE6; padding-left: 0.5rem; }
.mobile-drawer__num { font-family: 'Outfit', sans-serif; font-size: 0.58rem; font-weight: 400; letter-spacing: 0.2em; color: var(--label); }
.mobile-drawer__footer { padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.06); }
.mobile-drawer__tagline { font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-weight: 300; font-size: 0.8rem; line-height: 1.7; color: rgba(240,237,228,0.55); }

/* ── Bottom UI ── */
.hero-ui {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 10;
  padding: clamp(1.4rem, 4vw, 2.8rem) clamp(1.4rem, 4vw, 3.5rem);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
  opacity: 0;
  animation: ui-in 900ms 2200ms cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes ui-in { to { opacity: 1; } }

/* Tagline */
.hero-tagline { display: flex; flex-direction: column; gap: 0.1em; }
.hero-tagline__line {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-style: italic; font-weight: 300;
  font-size: clamp(0.6rem, 0.9vw, 0.76rem);
  letter-spacing: 0.06em; color: rgba(240,237,228,0.75); line-height: 1.65;
}

/* Enter CTA — no box, just text + arrow */
.hero-enter {
  display: inline-flex; align-items: center; gap: 0.65em;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(0.58rem, 0.85vw, 0.66rem);
  font-weight: 400; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold);
  padding: 0;
  border: none; background: none;
  transition: color 280ms, gap 280ms; white-space: nowrap;
}
.hero-enter:hover { color: var(--gold-hi); gap: 1em; }
.hero-enter__arr { transition: transform 300ms cubic-bezier(0.34,1.56,0.64,1); display: inline-block; }
.hero-enter:hover .hero-enter__arr { transform: translateX(4px); }

/* Slide dots */
.hero-dots {
  position: absolute; bottom: clamp(1rem, 3vw, 1.8rem); left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 10;
  opacity: 0; animation: ui-in 900ms 2400ms cubic-bezier(0.16,1,0.3,1) forwards;
}
.hero-dot {
  width: 18px; height: 1px; background: rgba(243,238,230,0.18);
  transition: background 400ms, width 400ms; cursor: none;
  border: none; padding: 5px 0; position: relative;
}
.hero-dot::after { content: ''; position: absolute; left: 0; right: 0; top: -6px; bottom: -6px; }
.hero-dot.active { background: var(--gold); width: 32px; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-right .nav-link { display: none; }
  .nav-burger { display: flex; }
  .hero-ui { flex-direction: column; align-items: flex-start; gap: 1rem; padding-bottom: clamp(3.2rem, 10vw, 4.5rem); }
}
@media (max-width: 480px) {
  .hero-tagline__line { font-size: 0.68rem; }
  .hero-enter { font-size: 0.62rem; }
}
@media (hover:none) and (pointer:coarse) {
  body { cursor: auto; }
  a, button { cursor: pointer; }
}
@media (prefers-reduced-motion:reduce) {
  .slide { transition: none; }
}
