/* ===== Tokens ===== */
:root {
  --bg: #0a0a0a;
  --bg-raised: #121212;
  --fg: #f2f2ef;
  --fg-dim: #9a9a95;
  --line: #2a2a2a;
  --accent: #e4133f;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; display: block; }

.mono-label {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 2rem;
  background: linear-gradient(to bottom, rgba(10,10,10,0.85), transparent);
}
.site-header .brand {
  display: inline-flex;
  align-items: center;
}
.site-header .brand .brand-mark {
  height: 34px;
}
.brand-mark {
  height: 22px;
  width: auto;
}
.site-nav {
  display: flex;
  gap: 2rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}
.site-nav a { padding-bottom: 2px; border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-nav a:hover { border-color: var(--fg); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--fg);
  width: 100%;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  max-width: none;
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  padding: 0 1.5rem;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(228,19,63,0.18), transparent 55%),
    radial-gradient(ellipse at 75% 80%, rgba(60,60,60,0.4), transparent 60%),
    linear-gradient(160deg, #050505, #141414 60%, #050505);
  z-index: -1;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5,5,5,0.45);
  z-index: -1;
}
.hero-title {
  font-family: var(--sans);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.92;
  font-size: clamp(3.2rem, 12vw, 9rem);
}
.hero-tag {
  margin-top: 1.5rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: clamp(0.65rem, 1.6vw, 0.9rem);
  color: var(--fg-dim);
}
.scroll-cue {
  position: absolute;
  bottom: 2rem;
  font-family: var(--mono);
  font-size: 1.3rem;
  color: var(--fg-dim);
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ===== Section shared ===== */
section { padding: 6rem 2rem; max-width: 1400px; margin: 0 auto; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.section-head h2, .work h2, .clients h2, .about h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-weight: 800;
}

/* ===== Filters ===== */
.filters { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filter-btn {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  background: transparent;
  color: var(--fg-dim);
  border: 1px solid var(--line);
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all .2s;
}
.filter-btn:hover { color: var(--fg); border-color: var(--fg-dim); }
.filter-btn.active { color: var(--bg); background: var(--fg); border-color: var(--fg); }

/* ===== Work grid ===== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
}
.project-card { cursor: pointer; }
.project-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a1a, #050505);
}
.project-thumb.tone-red { background: linear-gradient(135deg, #3a0512, #0a0a0a 65%); }
.project-thumb.tone-graphite { background: linear-gradient(135deg, #2a2a2a, #060606 65%); }
.project-thumb.tone-amber { background: linear-gradient(135deg, #3a2a05, #0a0a0a 65%); }

.play-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(242,242,239,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s;
}
.project-card:hover .play-btn { transform: scale(1.1); }
.play-btn::after {
  content: "";
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #0a0a0a;
  margin-left: 4px;
}
.project-caption {
  margin-top: 1rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
}
.project-caption .client {
  display: block;
  color: var(--fg-dim);
  font-size: 0.75rem;
  margin-top: 0.3rem;
}
.project-card.hidden { display: none; }

/* ===== Showcase (full-bleed auto-playing reel) ===== */
.showcase {
  position: relative;
  max-width: none;
  margin: 0;
  padding: 0;
  height: 42vw;
  min-height: 280px;
  max-height: 560px;
  overflow: hidden;
}
.showcase-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1a1a, #050505 65%);
  z-index: -1;
}
.showcase-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Mission ===== */
.mission {
  text-align: center;
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.mission p {
  font-size: clamp(1.3rem, 3vw, 2.1rem);
  font-weight: 500;
  line-height: 1.35;
  max-width: 960px;
  margin: 0 auto;
}
.mission span { color: var(--accent); }

/* ===== Capabilities ===== */
.capabilities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cap-col h3 {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.cap-col p { color: var(--fg-dim); font-size: 0.95rem; }

/* ===== Clients ===== */
.clients { text-align: center; }
.clients h2 { margin-bottom: 2.5rem; }
.client-marquee {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem 3rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
  font-size: 0.95rem;
}
.client-marquee span { transition: color .2s; }
.client-marquee span:hover { color: var(--fg); }

/* ===== About ===== */
.about-inner { max-width: 760px; }
.about h2 { margin-bottom: 2rem; }
.about p { color: var(--fg-dim); font-size: 1.05rem; margin-bottom: 1.2rem; }

/* ===== Footer ===== */
.site-footer {
  padding: 3rem 2rem 2rem;
  border-top: 1px solid var(--line);
}
.footer-top {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 2rem;
}
.footer-top .brand {
  display: inline-flex;
  align-items: center;
}
.footer-top .brand .brand-mark {
  height: 28px;
}
.footer-links {
  display: flex;
  gap: 1.8rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
}
.footer-links a { border-bottom: 1px solid transparent; transition: border-color .2s; }
.footer-links a:hover { border-color: var(--fg); }
.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--fg-dim);
  text-align: center;
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5,5,5,0.96);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.lightbox-content video {
  max-width: min(90vw, 960px);
  max-height: 85vh;
  width: auto;
  height: auto;
  display: block;
  background: #000;
}
.lightbox-placeholder {
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.8rem;
  border: 1px dashed var(--line);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
  text-align: center;
  padding: 2rem;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--fg);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .capabilities { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  section { padding: 4.5rem 1.25rem; }
  .work-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }

  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(75vw, 300px);
    background: var(--bg-raised);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    font-size: 1.1rem;
    transform: translateX(100%);
    transition: transform .3s ease;
    border-left: 1px solid var(--line);
  }
  .site-nav.open { transform: translateX(0); }
}
