/* ═══════════════════════════════════════════════
   shared.css — Al Duffield Cinematographer
   Common styles across all pages
═══════════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; cursor: none !important; }

:root {
  --bg: #050505; --fg: #e2ddd6; --faint: #111; --mid: #181818;
  --mono: 'Share Tech Mono', monospace;
  --serif: 'Crimson Pro', serif;
  --display: 'Bebas Neue', sans-serif;
  --gap: 3px;
}

html { background: var(--bg); }
body { background: var(--bg); color: var(--fg); font-family: var(--mono); }

/* ── CURSOR — hidden on touch/mobile devices ── */
@media (hover: none) {
  *, *::before, *::after { cursor: auto !important; }
  #cur { display: none !important; }
}

#cur {
  position: fixed; z-index: 9999;
  width: 20px; height: 20px;
  pointer-events: none; transform: translate(-50%,-50%);
  transition: width .45s cubic-bezier(.16,1,.3,1), height .45s cubic-bezier(.16,1,.3,1), opacity .3s;
  mix-blend-mode: difference;
  opacity: 0;
}
#cur svg { width: 100%; height: 100%; display: block; }

/* Expanded — image hover */
#cur.no-video,
#cur.on-slide { width: 36px; height: 36px; }

/* Dot — links/buttons */
#cur.small,
#cur.on-link { width: 8px; height: 8px; }
#cur.small svg,
#cur.on-link svg { display: none; }
#cur.small::after,
#cur.on-link::after {
  content: ''; position: absolute; inset: 0;
  background: #fff; border-radius: 50%;
}

/* Spinning arc — video buffering */
@keyframes cursor-spin { to { transform: translate(-50%,-50%) rotate(360deg); } }
#cur.has-video {
  width: 40px; height: 40px;
  animation: cursor-spin 0.9s linear infinite;
}
#cur.has-video svg { display: none; }
#cur.has-video::after {
  content: ''; position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  border-top-color: rgba(255,255,255,0.85);
}

/* ── NAV ── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  padding: 24px 36px;
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(to bottom, rgba(5,5,5,0.97) 60%, transparent);
}
.nav-logo { font-family: var(--display); font-size: 19px; letter-spacing: 0.1em; color: var(--fg); text-decoration: none; line-height: 1; }
.nav-logo small { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: 0.3em; color: rgba(226,221,214,0.28); margin-top: 4px; text-transform: uppercase; }
nav ul { list-style: none; display: flex; gap: 26px; }
nav a { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.32); text-decoration: none; transition: color 0.2s; }
nav a:hover, nav a.active { color: #fff; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--faint); padding: 20px 36px; margin-top: 2px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.14);
}
footer a { color: rgba(255,255,255,0.14); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--fg); }
.footer-links { display: flex; gap: 20px; }

/* ── HAMBURGER ── */
.ham {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px; z-index: 400;
}
.ham span {
  display: block; width: 24px; height: 1px;
  background: rgba(255,255,255,0.65);
  transition: transform 0.3s, opacity 0.3s;
}
.ham.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.ham.open span:nth-child(2) { opacity: 0; }
.ham.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── MOBILE NAV OVERLAY ── */
#mob-nav {
  position: fixed; inset: 0; z-index: 350;
  background: rgba(5,5,5,0.98);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 36px;
  opacity: 0; pointer-events: none; transition: opacity 0.35s;
}
#mob-nav.open { opacity: 1; pointer-events: all; }
#mob-nav a {
  font-family: var(--display);
  font-size: clamp(40px, 12vw, 60px);
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.35);
  text-decoration: none; transition: color 0.2s;
}
#mob-nav a:hover, #mob-nav a.active { color: #fff; }

@media (max-width: 700px) {
  nav { display: none; }
  .ham { display: flex; }
  #nav { padding: 20px 24px; }
}
