@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #ffffff;
  --bg-alt: #f5f4f1;
  --bg-card: #f7f6f3;
  --fg: #14110e;
  --muted: #5c574f;
  --muted-2: #8c8579;
  --accent: #ff010b;
  --accent-dim: #ff010b1a;
  --border: #e4e0d8;
  --mono: 'JetBrains Mono', monospace;
  --display: 'Space Grotesk', sans-serif;
  --bar-h: 34px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--display);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

/* ---------- Letterbox bars ---------- */
.letterbox {
  height: var(--bar-h);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 40px);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--accent);
  position: sticky;
  z-index: 40;
}
.letterbox-top { top: 0; color: #ffffff; }
.letterbox-bottom {
  position: static;
  color: var(--muted-2);
}
.letterbox span:last-child { color: inherit; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: var(--bar-h);
  z-index: 39;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 60px);
}

.logo {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: .04em;
  display: flex;
  align-items: center;
}
.logo img {
  height: 40px;
  width: auto;
  display: block;
}
.logo span { color: var(--accent); }

.site-nav {
  display: flex;
  gap: 36px;
}
.site-nav a {
  font-size: 13px;
  font-family: var(--mono);
  letter-spacing: .08em;
  color: var(--muted);
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
  transition: color .2s;
}
.site-nav a:hover, .site-nav a.active { color: var(--fg); }
.site-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  padding: 8px 14px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 16px clamp(20px, 5vw, 60px);
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.mobile-nav a.active { color: var(--accent); }

@media (max-width: 780px) {
  .site-nav { display: none; }
  .nav-toggle { display: inline-block; }
}

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 24px;
  letter-spacing: .16em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: '';
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.6s infinite;
  flex-shrink: 0;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.25} }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(42px, 6.3vw, 77px) 0 clamp(50px, 7vw, 90px);
}
.hero h1 {
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.02em;
  max-width: 860px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero .lede {
  font-size: 17px;
  color: var(--muted);
  max-width: 480px;
  margin-top: 26px;
  line-height: 1.65;
}
.hero .cta-row {
  display: flex;
  gap: 16px;
  margin-top: 42px;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s, border-color .2s, color .2s;
}
.btn-primary {
  background: var(--fg);
  color: var(--bg);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost {
  border-color: var(--border);
  color: var(--fg);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Frame strip (film frames) ---------- */
.frame-strip {
  display: flex;
  gap: 1px;
  margin-top: clamp(24px, 3.5vw, 44px);
  overflow-x: auto;
}
.frame {
  flex: 1;
  min-width: 130px;
  aspect-ratio: 16/10;
  background: #ffffff;
  border: 1px solid var(--fg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
}
.frame .fnum { color: var(--accent); margin-bottom: 4px; }

/* ---------- Sections ---------- */
.section {
  padding: clamp(60px, 8vw, 100px) 0;
  border-top: 1px solid var(--border);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -.01em;
  max-width: 620px;
}
.section-head p {
  color: var(--muted);
  max-width: 380px;
  font-size: 15px;
  line-height: 1.6;
}
.section-tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
}

/* ---------- Video grid / cards ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.video-card { display: flex; flex-direction: column; gap: 14px; }
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
  border: 1px solid var(--border);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.video-meta .title { font-weight: 600; font-size: 15px; }
.video-meta .cat {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- Category tabs (work page) ---------- */
.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 50px;
}
.cat-tab {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 10px 18px;
  transition: .2s;
}
.cat-tab:hover { color: var(--fg); border-color: var(--muted); }
.cat-tab.active { background: var(--accent); border-color: var(--accent); color: #14100c; }

.cat-group { margin-bottom: 56px; }
.cat-group-title {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

/* ---------- Testimonial cards ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.testi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0;
  overflow: hidden;
}
.testi-quote {
  padding: 26px 26px 22px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg);
}
.testi-quote .mark { color: var(--accent); font-family: var(--mono); font-size: 22px; display:block; margin-bottom: 6px; }
.testi-who {
  padding: 0 26px 24px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: .04em;
}
.testi-who strong { color: var(--muted); font-weight: 500; }

/* ---------- Client logo strip ---------- */
.client-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 44px;
}
.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.client-logo img {
  max-width: 130px;
  max-height: 42px;
  width: auto;
  height: auto;
}
.client-logo.logo-tall img {
  max-height: 64px;
}
.client-logo.logo-wide img {
  max-width: 260px;
  max-height: 48px;
}
/* Fallback text chip, used only until real logo files are added */
.client-chip {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--muted-2);
  border: 1px solid var(--border);
  padding: 12px 18px;
  transition: .2s;
}
.client-chip:hover { color: var(--fg); border-color: var(--muted-2); }

/* ---------- Founder card ---------- */
.founder-card {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 32px;
  max-width: 560px;
}
.founder-avatar {
  width: 76px; height: 76px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), #5c0f0d);
  color: #14100c;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 22px;
  display: flex; align-items: center; justify-content: center;
}
.founder-name { font-weight: 700; font-size: 17px; margin-bottom: 4px; }
.founder-role { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.founder-bio { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ---------- Stats row ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 30px;
  margin-top: 20px;
}
.stat { border-top: 1px solid var(--border); padding-top: 16px; }
.stat .num { font-family: var(--mono); font-size: 32px; color: var(--accent); font-weight: 600; }
.stat .label { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 15px;
}
.contact-info-item .k {
  color: var(--muted-2);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  min-width: 70px;
}

form.contact-form { display: flex; flex-direction: column; gap: 18px; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 14px 16px;
  font-family: var(--display);
  font-size: 14px;
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent);
  outline: none;
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 12px; color: var(--muted-2); margin-top: 4px; }

/* ---------- Footer ---------- */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 50px 0 40px;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.socials { display: flex; gap: 18px; }
.socials a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 8px 14px;
  transition: .2s;
}
.socials a:hover { color: var(--accent); border-color: var(--accent); }
.copyright {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-2);
}

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
