/* Black & white, ambient + cinematic.
   EDIT: change colors here and they update everywhere */
:root {
  --bg: #000;
  --text: #fff;
  --muted: #8c8c8c;
  --line: rgba(255, 255, 255, 0.12);
  --panel: #0a0a0a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  animation: fadein 1.8s ease both; /* fade up from black on load */
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
a { color: inherit; text-decoration: none; }
::selection { background: #fff; color: #000; }

/* ---------- Ambient background ---------- */
.glow, .beam, .spot, .vignette, .grain, #dust { position: fixed; pointer-events: none; }
.glow { border-radius: 50%; z-index: -4; background: radial-gradient(circle, rgba(255,255,255,0.13), transparent 65%); }
.glow-a { width: 900px; height: 900px; top: -350px; left: -300px; animation: drift 20s ease-in-out infinite alternate; }
.glow-b { width: 800px; height: 800px; bottom: -300px; right: -300px; opacity: 0.7; animation: drift 26s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(120px, 90px) scale(1.2); } }

/* slow light beams sweeping across, like light through a window */
.beam {
  z-index: -3; top: -20vh; height: 140vh; width: 22vw;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent);
  transform: rotate(18deg); opacity: 0;
}
.beam-a { left: 5vw; animation: sweep 16s ease-in-out infinite; }
.beam-b { left: 40vw; width: 14vw; animation: sweep 22s ease-in-out 6s infinite; }
@keyframes sweep {
  0%   { transform: translateX(-20vw) rotate(18deg); opacity: 0; }
  35%  { opacity: 1; }
  70%  { opacity: 0.6; }
  100% { transform: translateX(55vw) rotate(18deg); opacity: 0; }
}

#dust { inset: 0; z-index: -2; width: 100%; height: 100%; }

.spot {
  z-index: -1; width: 600px; height: 600px; left: 0; top: 0; opacity: 0; transition: opacity 0.6s;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 60%);
}
.vignette { inset: 0; z-index: 1; background: radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,0.75)); }
.grain {
  inset: 0; z-index: 2; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.8s steps(4) infinite;
}
@keyframes grain { 25% { transform: translate(-2%, 1%); } 50% { transform: translate(1%, -2%); } 75% { transform: translate(2%, 2%); } }

.progress { top: 0; left: 0; right: 0; height: 2px; z-index: 20; background: #fff; transform-origin: left; transform: scaleX(0); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 5vw;
  background: linear-gradient(#000 60%, rgba(0,0,0,0));
}
.logo { font-family: "Anton", sans-serif; font-weight: 400; letter-spacing: 0.16em; font-size: 1.15rem; }
.logo span { color: transparent; -webkit-text-stroke: 1px #fff; }
.nav nav { display: flex; gap: 30px; align-items: center; font-size: 0.9rem; color: var(--muted); }
.nav nav a { transition: color 0.2s; }
.nav nav a:hover { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 14px 30px; border-radius: 999px; border: 1px solid #fff; cursor: pointer;
  font: 700 0.85rem "Inter", sans-serif; letter-spacing: 0.08em; text-transform: uppercase;
  color: #000; background: #fff;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, color 0.25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(255,255,255,0.35); }
.btn-small { padding: 9px 20px; font-size: 0.82rem; color: #000 !important; }
.btn-ghost { background: transparent; color: #fff; border-color: var(--line); }
.btn-ghost:hover { border-color: #fff; box-shadow: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding: 120px 5vw 80px; max-width: 1100px; margin: 0 auto;
  transform: translateY(calc(var(--p, 0) * 70px)); opacity: calc(1 - var(--p, 0) * 1.1);
}
.eyebrow { color: var(--muted); text-transform: uppercase; letter-spacing: 0.32em; font-size: 0.75rem; margin-bottom: 26px; }
h1 { font-family: "Anton", sans-serif; font-weight: 400; text-transform: uppercase; font-size: clamp(3rem, 10.5vw, 8.4rem); line-height: 0.98; letter-spacing: 0.01em; }
h1 em { font-style: normal; color: transparent; -webkit-text-stroke: 2px #fff; }
.w { display: inline-block; opacity: 0; transform: translateY(40px); filter: blur(14px);
  animation: wordin 1.2s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(0.5s + var(--i) * 0.13s); }
@keyframes wordin { to { opacity: 1; transform: none; filter: blur(0); } }
.rise { opacity: 0; transform: translateY(20px); animation: rise 1s ease forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }
.lead { color: var(--muted); font-size: 1.15rem; max-width: 540px; margin: 30px 0 38px; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; }

.scroll-cue { position: absolute; left: 5vw; bottom: 36px; width: 22px; height: 36px; border: 1px solid var(--line); border-radius: 12px; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; white-space: nowrap; }
.track { display: inline-flex; gap: 38px; animation: marquee 32s linear infinite; font-family: "Anton", sans-serif; font-size: 1.7rem; text-transform: uppercase; letter-spacing: 0.08em; }
.track span { color: #fff; }
.track i { font-style: normal; color: var(--muted); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Strip ---------- */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; max-width: 1100px; margin: 0 auto; padding: 40px 5vw; }
.strip strong { display: block; font-family: "Anton", sans-serif; font-size: 1.6rem; font-weight: 400; text-transform: uppercase; letter-spacing: 0.04em; }
.strip span { color: var(--muted); font-size: 0.9rem; }

/* ---------- Sections ---------- */
.section { max-width: 1100px; margin: 0 auto; padding: 110px 5vw 0; }
h2 { font-family: "Anton", sans-serif; font-weight: 400; text-transform: uppercase; font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1; letter-spacing: 0.01em; margin-bottom: 44px; }
.sub { color: var(--muted); margin: -24px 0 40px; max-width: 520px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }

.card {
  position: relative; overflow: hidden; background: rgba(10,10,10,0.7); border: 1px solid var(--line); border-radius: 18px; padding: 34px;
  transition: transform 0.35s, border-color 0.35s;
}
.card > * { position: relative; }
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.35s; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.12), transparent 60%);
}
.card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.4); }
.card:hover::before { opacity: 1; }
.num { color: var(--muted); font-family: "Space Grotesk", sans-serif; font-size: 0.85rem; letter-spacing: 0.15em; }
.card h3 { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.4rem; margin: 12px 0; }
.card p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Steps ---------- */
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.steps li { counter-increment: s; position: relative; padding-top: 20px; }
.steps li::after { content: ""; position: absolute; top: 0; left: 0; height: 1px; width: 100%; background: var(--line); }
.steps li::before { content: "0" counter(s); color: var(--muted); font-family: "Space Grotesk", sans-serif; font-size: 0.85rem; letter-spacing: 0.15em; }
.steps b { display: block; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.4rem; margin: 6px 0; }
.steps span { color: var(--muted); font-size: 0.95rem; }

/* ---------- Work ---------- */
.shot { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 14px; border: 1px solid var(--line); background: #050505; }
.shot::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,0.07) 50%, transparent 70%); animation: shimmer 4.5s ease-in-out infinite; }
@keyframes shimmer { 60%, 100% { transform: translateX(100%); } }
.work p { color: var(--muted); font-size: 0.9rem; margin-top: 10px; }

/* ---------- Form ---------- */
.contact { padding-bottom: 110px; }
.form { display: grid; gap: 18px; max-width: 560px; }
label { display: grid; gap: 8px; font-size: 0.85rem; color: var(--muted); }
input, textarea { background: rgba(10,10,10,0.8); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: #fff; font: inherit; transition: border-color 0.2s, box-shadow 0.2s; }
input:focus, textarea:focus { outline: none; border-color: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,0.08); }
.form .btn { justify-self: start; }
.alt { color: var(--muted); font-size: 0.9rem; }
.alt a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

footer { display: flex; justify-content: space-between; padding: 30px 5vw; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.82rem; letter-spacing: 0.1em; }
footer a:hover { color: #fff; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 640px) {
  .nav nav a:not(.btn) { display: none; }
  .scroll-cue { display: none; }
  .beam { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .w, .rise, .reveal { opacity: 1; transform: none; filter: none; }
  html { scroll-behavior: auto; }
}
