/* ============================================
   WILEEY — Shared Stylesheet
   Warm Film Aesthetic
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,900;1,400;1,700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=Space+Mono:wght@400;700&display=swap');

:root {
  --cream:        #f2e8d9;
  --warm-white:   #faf5ee;
  --dark-film:    #0f0d0a;
  --film-brown:   #1c1208;
  --mid-brown:    #2e1e0a;
  --amber:        #c97d2e;
  --gold:         #d4a853;
  --rust:         #7a3018;
  --grain-tan:    #b89a72;
  --muted:        rgba(242,232,217,0.45);
  --nav-h:        80px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--dark-film);
  color: var(--cream);
  font-family: 'Cormorant Garamond', serif;
  overflow-x: hidden;
  cursor: none;
  min-height: 100vh;
}

/* ---- GRAIN TEXTURE ---- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.055;
  pointer-events: none;
  z-index: 9000;
  mix-blend-mode: overlay;
}

/* ---- CUSTOM CURSOR ---- */
.cursor-dot {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--amber);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.25s, height 0.25s, background 0.25s;
}
.cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(201,125,46,0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.4s cubic-bezier(0.23,1,0.32,1), width 0.3s, height 0.3s, border-color 0.3s;
}
.cursor-dot.hover  { width: 16px; height: 16px; background: var(--gold); }
.cursor-ring.hover { width: 60px; height: 60px; border-color: rgba(212,168,83,0.8); }

/* ---- NAVIGATION ---- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  z-index: 800;
  background: linear-gradient(to bottom, rgba(15,13,10,0.9) 0%, transparent 100%);
  backdrop-filter: blur(2px);
  transition: background 0.4s;
}
nav.scrolled {
  background: rgba(15,13,10,0.96);
  border-bottom: 1px solid rgba(200,154,114,0.12);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: var(--cream);
  text-decoration: none;
  text-transform: uppercase;
}
.nav-logo span { color: var(--amber); }

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}
.nav-links a {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--amber);
  transition: width 0.35s cubic-bezier(0.23,1,0.32,1);
}
.nav-links a:hover,
.nav-links a.active { color: var(--cream); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* ---- PAGE TRANSITIONS ---- */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--film-brown);
  z-index: 8000;
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.76,0,0.24,1);
}
.page-transition.enter { transform: translateY(0); }
.page-transition.exit  { transform: translateY(-100%); }

/* ---- SCROLL REVEAL ---- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.23,1,0.32,1),
              transform 0.9s cubic-bezier(0.23,1,0.32,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.9s cubic-bezier(0.23,1,0.32,1),
              transform 0.9s cubic-bezier(0.23,1,0.32,1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.9s cubic-bezier(0.23,1,0.32,1),
              transform 0.9s cubic-bezier(0.23,1,0.32,1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ---- FOOTER ---- */
footer {
  background: var(--film-brown);
  border-top: 1px solid rgba(200,154,114,0.15);
  padding: 60px 48px 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: var(--cream);
  text-decoration: none;
}
.footer-logo span { color: var(--amber); }
.footer-copy {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-align: center;
}
.footer-social {
  display: flex;
  gap: 24px;
  justify-content: flex-end;
}
.footer-social a {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grain-tan);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-social a:hover { color: var(--amber); }

/* ---- FILM STRIP DECORATION ---- */
.film-strip {
  display: flex;
  gap: 3px;
  overflow: hidden;
}
.film-hole {
  width: 14px; height: 20px;
  border: 1.5px solid rgba(200,154,114,0.3);
  border-radius: 3px;
  flex-shrink: 0;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--dark-film); }
::-webkit-scrollbar-thumb { background: var(--amber); border-radius: 2px; }

/* ---- SELECTION ---- */
::selection { background: var(--amber); color: var(--dark-film); }

@media (max-width: 768px) {
  nav { padding: 0 24px; }
  .nav-links { gap: 20px; }
  footer {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 24px 30px;
  }
  .footer-social { justify-content: center; }
}
