html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0C0C0C;
  --surface: #141414;
  --text: #E8E6E0;
  --muted: #5A5955;
  --muted-2: #888680;
  --accent: #FF3C00;
  --border: rgba(232,230,224,0.07);
  --font-d: 'DM Sans', sans-serif;
  --font-m: 'JetBrains Mono', monospace;
  --max: 1100px;

  --placeholder-bg: #111111;
  --placeholder-border: rgba(255,255,255,0.04);
  --placeholder-text-color: rgba(255,255,255,0.1);
  --sep-bg: rgba(232,230,224,0.15);
  --spec-badge-border: rgba(232,230,224,0.12);
  --glass-btn-border: rgba(255,255,255,0.2);
  --glass-btn-pulse: rgba(255,255,255,0.06);
  --faint-label: rgba(255,255,255,0.3);
  --input-bg: rgba(255,255,255,0.04);
  --input-border: rgba(232,230,224,0.1);
  --input-focus-border: rgba(232,230,224,0.35);
  --input-focus-bg: rgba(255,255,255,0.06);
  --glass-hover-bg: rgba(232,230,224,0.06);
  --glass-hover-border: rgba(232,230,224,0.35);
  --nav-cta-border: rgba(232,230,224,0.25);
  --nav-cta-hover-bg: rgba(232,230,224,0.08);
  --nav-cta-hover-border: rgba(232,230,224,0.4);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-d);
  -webkit-font-smoothing: antialiased;
}

/* NAV */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2.5rem;
  position: relative;
  z-index: 10;
}
.logo {
  font-family: var(--font-d);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration: none;
  text-transform: lowercase;
}
nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}
nav a {
  font-family: var(--font-d);
  font-size: 0.78rem;
  color: var(--muted-2);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
nav a:hover { color: var(--text); }

/* FOOTER */
.site-footer {
  background: var(--surface);
  padding: 3rem 2.5rem 2rem;
  margin-top: 6rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.footer-logo {
  font-family: var(--font-d);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration: none;
  text-transform: lowercase;
}
.footer-email {
  font-family: var(--font-m);
  font-size: 0.7rem;
  color: var(--muted-2);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-email:hover { color: var(--text); }
.footer-nav { display: flex; gap: 1.75rem; }
.footer-nav a {
  font-family: var(--font-d);
  font-size: 0.75rem;
  color: var(--muted-2);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: flex-start; align-items: center; }
.footer-copy {
  font-family: var(--font-m);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  nav { padding: 1rem 1.25rem; }
  nav ul { gap: 1.25rem; }
  .site-footer { padding: 2rem 1.25rem 1.5rem; }
  .footer-top { flex-direction: column; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* SCROLL REVEAL */
@keyframes scrollReveal {
  0%   { filter: blur(10px); opacity: 0; transform: translateY(40px); }
  100% { filter: blur(0px);  opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; }
.reveal.visible { animation: scrollReveal 2.2s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.reveal.visible.delay-1 { animation-delay: 0.15s; }
.reveal.visible.delay-2 { animation-delay: 0.35s; }
.reveal.visible.delay-3 { animation-delay: 0.55s; }

/* GRAIN CANVAS */
#grain-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  width: 100%;
  height: 100%;
  mix-blend-mode: overlay;
  opacity: 1;
  filter: brightness(1.3);
}

/* CONTENT ABOVE GRAIN */
nav, main, section, .hero, .showreel, .tools-outer,
.work-grid, .work-section-label, .reels-section,
.reels-label, .reels-grid, .contact-section,
.contact-wrap, .site-footer, footer {
  position: relative;
  z-index: 2;
}

/* WORK LINE ANIMATION */
@keyframes lineReveal {
  0%   { filter: blur(14px); opacity: 0; transform: translateY(28px); }
  100% { filter: blur(0px);  opacity: 1; transform: translateY(0); }
}
.work-line { display: block; opacity: 0; filter: blur(14px); transform: translateY(28px); }
.work-line.animate { animation: lineReveal 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.work-line:nth-child(1).animate { animation-delay: 0.2s; }
.work-line:nth-child(2).animate { animation-delay: 0.85s; }
.work-line:nth-child(3).animate { animation-delay: 1.3s; }
