/* ════════════════════════════════════════════════════════
   ZASVET — FILM AESTHETIC CSS
   Аналоговая плёнка · пересвет · зерно · перфорация
   Palette: near-black / warm amber / washed white
   Fonts: Unbounded (display) + Martian Mono (mono/body)
════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@200;300;400;700&family=Martian+Mono:wght@300;400&display=swap');

:root {
  --bg:           #080705;
  --bg2:          #100e0b;
  --bg3:          #1a1710;
  --border:       rgba(255,240,200,0.07);
  --border-warm:  rgba(220,170,80,0.25);
  --amber:        #D4A850;
  --amber-bright: #f0c865;
  --amber-dim:    rgba(212,168,80,0.12);
  --text:         #e8e0ce;
  --text-muted:   #7a6f58;
  --text-dim:     #3d3826;
  --white:        #f5f0e0;
  --nav-h:        68px;
  --t:            0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Martian Mono', monospace;
  font-weight: 300;
  font-size: 13px;
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* ── Film grain ─────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.052;
  mix-blend-mode: overlay;
}

/* ── Vignette ───────────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  background: radial-gradient(ellipse 100% 100% at 50% 50%,
    transparent 40%, rgba(4,3,2,0.6) 100%);
}

/* ── Global light leak ──────────────────────────────── */
.film-leak {
  position: fixed;
  z-index: 9996;
  pointer-events: none;
  inset: 0;
  overflow: hidden;
}
.film-leak::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 50%; height: 60%;
  background: radial-gradient(ellipse at 30% 20%,
    rgba(212,168,80,0.07) 0%, rgba(200,120,40,0.03) 40%, transparent 70%);
  animation: leakA 18s ease-in-out infinite alternate;
}
.film-leak::after {
  content: '';
  position: absolute;
  bottom: -20%; right: -15%;
  width: 50%; height: 60%;
  background: radial-gradient(ellipse at 60% 70%,
    rgba(180,100,30,0.05) 0%, transparent 65%);
  animation: leakB 22s ease-in-out infinite alternate;
}
@keyframes leakA { 0%{transform:translate(0,0) scale(1)} 100%{transform:translate(5%,8%) scale(1.1)} }
@keyframes leakB { 0%{transform:translate(0,0) scale(1)} 100%{transform:translate(-4%,-6%) scale(1.08)} }

/* ── Navigation ─────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(8,7,5,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
/* Film perforations on top */
.nav::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: repeating-linear-gradient(90deg,
    var(--amber) 0px, var(--amber) 5px,
    transparent 5px, transparent 16px);
  opacity: 0.3;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-name {
  font-family: 'Unbounded', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.04em;
  text-shadow: 0 0 20px rgba(212,168,80,0.45), 0 0 40px rgba(212,168,80,0.2);
}
.nav-logo-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--t);
  font-family: 'Martian Mono', monospace;
}
.nav-links a:hover, .nav-links a.active { color: var(--amber); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  z-index: 100000;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.25s;
  transform-origin: center;
}

/* ── Page wrapper ───────────────────────────────────── */
.page { padding-top: var(--nav-h); min-height: 100vh; }

/* ── Section header ─────────────────────────────────── */
.section-header { padding: 72px 40px 40px; }
.section-label { font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--amber); margin-bottom: 20px; display: block; opacity: 0.8; }
.section-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(26px, 4vw, 56px);
  font-weight: 200;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.section-title em {
  font-style: normal;
  font-weight: 700;
  color: var(--amber);
  text-shadow: 0 0 30px rgba(212,168,80,0.4);
}
.section-desc { margin-top: 20px; color: var(--text-muted); max-width: 480px; font-size: 11px; line-height: 1.9; }

/* ── Video Grid ─────────────────────────────────────── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2px;
  padding: 0 0 80px;
}
.video-grid.vertical-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.video-card {
  position: relative;
  overflow: hidden;
  background: var(--bg2);
  cursor: pointer;
}
/* Overexposure glow on hover */
.video-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 40%,
    rgba(240,200,100,0.18) 0%, rgba(240,200,100,0.04) 55%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  z-index: 2;
}
.video-card:hover::after { opacity: 1; }

.video-thumb {
  position: relative;
  overflow: hidden;
  background: var(--bg3);
}
.video-thumb::before { content: ''; display: block; padding-bottom: 56.25%; }
.vertical-grid .video-thumb::before { padding-bottom: 177.78%; }

.video-thumb img {
  position: absolute;
  inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4,0,0.2,1), filter 0.5s;
  filter: brightness(0.7) saturate(0.55) sepia(0.18);
}
.video-card:hover .video-thumb img {
  transform: scale(1.05);
  filter: brightness(0.92) saturate(0.85) sepia(0.08);
}

/* Film scanlines placeholder */
.video-thumb-placeholder {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg,
      rgba(255,255,255,0.01) 0px, rgba(255,255,255,0.01) 1px,
      transparent 1px, transparent 4px),
    linear-gradient(135deg, #0d0b08 0%, #1a1610 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--t);
  z-index: 3;
}
.video-card:hover .video-play-btn { opacity: 1; }
.play-circle {
  width: 58px; height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(212,168,80,0.7);
  display: flex; align-items: center; justify-content: center;
  background: rgba(212,168,80,0.1);
  transform: scale(0.8);
  transition: transform var(--t);
  backdrop-filter: blur(4px);
}
.video-card:hover .play-circle { transform: scale(1); }
.play-icon {
  width: 0; height: 0;
  border-style: solid;
  border-width: 9px 0 9px 16px;
  border-color: transparent transparent transparent var(--amber);
  margin-left: 3px;
}

.video-info {
  padding: 16px 18px;
  border-top: 1px solid var(--border);
  position: relative;
}
.video-info::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  transition: width 0.5s;
}
.video-card:hover .video-info::after { width: 100%; }

.video-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: var(--white);
  line-height: 1.45;
  margin-bottom: 5px;
  letter-spacing: -0.02em;
}
.video-desc { font-size: 10px; color: var(--text-muted); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-meta { display: flex; align-items: center; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.video-date { font-size: 9px; letter-spacing: 0.08em; color: var(--text-dim); text-transform: uppercase; }
.video-tag { font-size: 9px; letter-spacing: 0.1em; color: var(--amber); text-transform: uppercase; padding: 2px 7px; border: 1px solid var(--border-warm); }

/* ── Modal (VK player) ──────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(4,3,2,0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(24px);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg,
    rgba(255,255,255,0.004) 0px, rgba(255,255,255,0.004) 1px,
    transparent 1px, transparent 3px);
  pointer-events: none;
}

.modal-inner {
  width: min(92vw, 1080px);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  position: relative;
}
.modal-inner.vertical-layout {
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.modal-overlay.open .modal-inner { transform: translateY(0) scale(1); }

.modal-close {
  position: fixed;
  top: 20px; right: 28px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--t);
  font-family: 'Martian Mono', monospace;
  z-index: 1010;
}
.modal-close:hover { color: var(--amber); }

.modal-video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  background: #000;
  border: 1px solid var(--border);
}
.modal-video-wrap.vertical-modal {
  padding-bottom: 0;
  height: 92vh;
  width: calc(92vh * 0.5);
  max-width: 90vw;
  margin: 0 auto;
}
.modal-video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

.modal-mute-btn {
  position: absolute;
  bottom: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
  color: #fff;
  font-size: 16px;
}
.modal-mute-btn:hover { background: rgba(0,0,0,0.8); }

.modal-caption {
  padding: 14px 2px 0;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.modal-caption h2 { font-family: 'Unbounded', sans-serif; font-size: 13px; font-weight: 300; color: var(--white); flex: 1; letter-spacing: -0.02em; }
.modal-caption p { font-size: 11px; color: var(--text-muted); max-width: 400px; line-height: 1.7; }

/* ── Filter tabs ────────────────────────────────────── */
.filter-bar { padding: 0 40px 32px; display: flex; gap: 6px; flex-wrap: wrap; }
.filter-btn {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 7px 14px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--t);
  font-family: 'Martian Mono', monospace;
}
.filter-btn:hover { border-color: var(--border-warm); color: var(--text); }
.filter-btn.active { border-color: var(--amber); color: var(--amber); background: var(--amber-dim); }

/* ── Buttons ────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 16px 36px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; transition: all var(--t); font-family: 'Martian Mono', monospace; }
.btn-primary { background: var(--amber); color: #08070a; font-weight: 400; }
.btn-primary:hover { background: var(--amber-bright); box-shadow: 0 0 24px rgba(212,168,80,0.35); }
.btn-outline { border: 1px solid var(--border-warm); color: var(--amber); }
.btn-outline:hover { background: var(--amber-dim); }
.btn-ghost { border: 1px solid var(--border); color: var(--text-muted); }
.btn-ghost:hover { border-color: var(--text-muted); color: var(--text); }

/* ── Hero ───────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 80px 40px;
  text-align: center;
}
.hero-leak {
  position: absolute; inset: 0; pointer-events: none;
}
.hero-leak::before {
  content: '';
  position: absolute;
  top: -40%; left: 5%;
  width: 70%; height: 90%;
  background: radial-gradient(ellipse at 40% 20%,
    rgba(212,168,80,0.1) 0%, rgba(200,120,40,0.04) 40%, transparent 70%);
  animation: heroLeak 9s ease-in-out infinite alternate;
}
.hero-leak::after {
  content: '';
  position: absolute;
  bottom: -30%; right: 0;
  width: 55%; height: 80%;
  background: radial-gradient(ellipse at 70% 80%,
    rgba(180,90,20,0.07) 0%, transparent 60%);
}
@keyframes heroLeak {
  0%   { opacity: 0.7; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.08) translate(2%,3%); }
}
.hero-scanlines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg,
    rgba(255,255,255,0.01) 0px, rgba(255,255,255,0.01) 1px,
    transparent 1px, transparent 4px);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 3; max-width: 860px; }
.hero-eyebrow { font-size: 9px; letter-spacing: 0.38em; text-transform: uppercase; color: var(--amber); margin-bottom: 36px; opacity: 0.9; }
.hero-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(56px, 10vw, 128px);
  font-weight: 700;
  color: var(--white);
  line-height: 0.88;
  letter-spacing: -0.06em;
  margin-bottom: 40px;
  text-shadow: 0 0 60px rgba(212,168,80,0.2), 0 0 120px rgba(212,168,80,0.1);
}
.hero-title-sub {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.hero-title .overexposed {
  color: rgba(255,248,230,0.9);
  text-shadow:
    0 0 20px rgba(255,240,180,0.9),
    0 0 60px rgba(212,168,80,0.6),
    0 0 120px rgba(212,168,80,0.3);
  animation: overexposed-pulse 4s ease-in-out infinite;
}
@keyframes overexposed-pulse {
  0%, 100% {
    text-shadow:
      0 0 20px rgba(255,240,180,0.9),
      0 0 60px rgba(212,168,80,0.6),
      0 0 120px rgba(212,168,80,0.3);
  }
  50% {
    text-shadow:
      0 0 25px rgba(255,240,180,1),
      0 0 70px rgba(212,168,80,0.75),
      0 0 140px rgba(212,168,80,0.45);
  }
}
.hero-sub { font-size: 11px; color: var(--text-muted); max-width: 420px; margin: 0 auto 48px; line-height: 2; letter-spacing: 0.02em; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Hero distortion canvas ────────────────────────── */
.hero-distortion {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  touch-action: none;
}
/* Hide HTML text on desktop — canvas renders it instead */
@media (min-width: 901px) {
  .hero-eyebrow, .hero-title, .hero-sub { visibility: hidden; }
}
/* Hide canvas on mobile — no mouse cursor */
@media (max-width: 900px) {
  .hero-distortion { display: none; }
}
.hero-cta { position: relative; z-index: 4; }

/* ── About / Team page ──────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2px;
  margin-bottom: 80px;
}
.team-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: background var(--t);
}
.team-card:hover { background: var(--bg3); }
.team-card::before {
  content: '';
  position: absolute;
  top: -40%; left: -20%;
  width: 100%; height: 100%;
  background: radial-gradient(ellipse at 40% 30%, rgba(212,168,80,0.1) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.5s;
}
.team-card:hover::before { opacity: 1; }

.team-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75) saturate(0.6) sepia(0.15);
  transition: transform 0.7s cubic-bezier(0.4,0,0.2,1), filter 0.5s;
}
.team-card:hover .team-photo img {
  transform: scale(1.04);
  filter: brightness(0.9) saturate(0.8) sepia(0.08);
}
.team-body {
  padding: 24px 28px 28px;
  border-top: 1px solid var(--border);
  position: relative;
}
.team-role { font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--amber); margin-bottom: 10px; }
.team-name { font-family: 'Unbounded', sans-serif; font-size: 18px; font-weight: 300; color: var(--white); margin-bottom: 12px; letter-spacing: -0.03em; }
.team-desc { font-size: 11px; color: var(--text-muted); line-height: 1.8; }

.manifesto-block { padding: 80px 40px; border-top: 1px solid var(--border); max-width: 760px; }
.manifesto-text { font-family: 'Unbounded', sans-serif; font-size: clamp(17px, 2.4vw, 30px); font-weight: 200; color: var(--white); line-height: 1.55; letter-spacing: -0.03em; }
.manifesto-text em { color: var(--amber); font-style: normal; font-weight: 700; text-shadow: 0 0 30px rgba(212,168,80,0.4); }

/* ── Contacts page ──────────────────────────────────── */
.contacts-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
  border-top: 1px solid var(--border);
}
.contacts-left { padding: 56px 40px; border-right: 1px solid var(--border); }
.contacts-right { padding: 56px 40px; }
.contact-links { margin-top: 40px; display: flex; flex-direction: column; gap: 2px; }
.contact-link-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  transition: all var(--t);
  color: var(--text);
  position: relative;
  overflow: hidden;
}
.contact-link-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--amber-dim);
  transition: width 0.4s;
}
.contact-link-item:hover::before { width: 100%; }
.contact-link-item:hover { border-color: var(--border-warm); }
.contact-link-item > * { position: relative; z-index: 1; }
.contact-link-icon { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; border: 1px solid var(--border); }
.contact-link-text strong { display: block; font-size: 11px; color: var(--white); margin-bottom: 2px; font-family: 'Unbounded', sans-serif; font-weight: 300; }
.contact-link-text span { font-size: 10px; color: var(--text-muted); }
.contact-link-arrow { color: var(--amber); margin-left: auto; font-size: 13px; }

/* ── Form ───────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.form-input, .form-textarea {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 11px 14px;
  font-family: 'Martian Mono', monospace;
  font-size: 12px;
  transition: border-color var(--t);
  outline: none;
}
.form-input:focus, .form-textarea:focus { border-color: var(--amber); background: var(--bg3); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-dim); }
.form-textarea { resize: vertical; min-height: 90px; }

.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.service-checkbox { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); cursor: pointer; transition: all var(--t); user-select: none; font-size: 10px; color: var(--text-muted); }
.service-checkbox:hover { border-color: var(--border-warm); color: var(--text); }
.service-checkbox input { display: none; }
.service-checkbox .check-box { width: 13px; height: 13px; border: 1px solid var(--text-dim); flex-shrink: 0; position: relative; transition: all var(--t); }
.service-checkbox input:checked ~ .check-box { border-color: var(--amber); background: var(--amber); box-shadow: 0 0 8px rgba(212,168,80,0.4); }
.service-checkbox input:checked ~ .check-box::after { content: ''; position: absolute; top: 2px; left: 4px; width: 3px; height: 5px; border: 1.5px solid #000; border-top: none; border-left: none; transform: rotate(45deg); }
.service-checkbox input:checked ~ span { color: var(--text); }

.form-success { display: none; padding: 14px 18px; border: 1px solid var(--border-warm); background: var(--amber-dim); color: var(--amber); font-size: 11px; margin-top: 14px; }
.form-error { color: #c46060; font-size: 10px; margin-top: 6px; }

.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; text-align: left; padding: 13px 0; font-size: 11px; color: var(--text); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: 'Martian Mono', monospace; }
.faq-q::after { content: '+'; color: var(--amber); font-size: 16px; flex-shrink: 0; }
.faq-q.open::after { content: '−'; }
.faq-a { font-size: 11px; color: var(--text-muted); line-height: 1.8; padding-bottom: 13px; display: none; }
.faq-a.visible { display: block; }

/* ── Footer ─────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 30px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--amber) 0px, var(--amber) 5px, transparent 5px, transparent 15px);
  opacity: 0.18;
}
.footer-logo { font-family: 'Unbounded', sans-serif; font-size: 13px; font-weight: 700; color: var(--text-muted); letter-spacing: -0.04em; }
.footer-copy { font-size: 9px; letter-spacing: 0.12em; color: var(--text-dim); text-transform: uppercase; }

/* ── Animations ─────────────────────────────────────── */
@keyframes fadeUp { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }
.fade-up { animation: fadeUp 0.7s cubic-bezier(0.4,0,0.2,1) both; }
.fade-up-1{animation-delay:.08s} .fade-up-2{animation-delay:.18s} .fade-up-3{animation-delay:.28s}
.fade-up-4{animation-delay:.38s} .fade-up-5{animation-delay:.48s}

/* ── Scrollbar ──────────────────────────────────────── */
::-webkit-scrollbar{width:3px} ::-webkit-scrollbar-track{background:var(--bg)} ::-webkit-scrollbar-thumb{background:var(--bg3)}

/* ── Responsive ─────────────────────────────────────── */

/* ── Tablet ≤900px ──────────────────────────────────── */
@media (max-width: 900px) {
  :root { --nav-h: 58px; }

  /* ─ Nav → fullscreen film-aesthetic overlay ─ */
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: #080705;
    padding: 0 32px;
    gap: 0;
    overflow-y: auto;
    z-index: 99999;
    list-style: none;
  }
  .nav-links.open li {
    width: 100%;
    max-width: 400px;
    border-bottom: 1px solid var(--border);
    text-align: center;
    position: relative;
    z-index: 1;
  }
  .nav-links.open li:first-child {
    border-top: 1px solid var(--border);
  }
  .nav-links.open a {
    display: block;
    padding: 28px 0;
    font-size: 18px;
    letter-spacing: 0.25em;
    color: var(--text);
    transition: color 0.3s;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-links.open a.active {
    color: var(--amber);
  }
  .nav-links.open a.active::before {
    content: '▸ ';
    color: var(--amber);
  }

  /* ─ Section headers ─ */
  .section-header { padding: 48px 20px 28px; }
  .section-desc { font-size: 11px; line-height: 1.9; }

  /* ─ Filter bar: horizontal scroll ─ */
  .filter-bar {
    padding: 0 20px 28px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
  }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-btn { flex-shrink: 0; white-space: nowrap; }

  /* ─ Video grids ─ */
  .video-grid { grid-template-columns: 1fr; gap: 1px; }
  .video-grid.vertical-grid { grid-template-columns: 1fr 1fr; gap: 1px; }

  /* ─ Video cards — enhanced for mobile ─ */
  .video-info { padding: 14px 16px; }
  .video-title { font-size: 13px; }
  .video-desc { font-size: 10px; }
  .video-meta { margin-top: 8px; }

  /* ─ Contacts ─ */
  .contacts-layout { grid-template-columns: 1fr; }
  .contacts-left {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 40px 20px;
  }
  .contacts-right { padding: 40px 20px; }
  .contact-link-item { padding: 14px 16px; gap: 14px; }
  .contact-link-icon { width: 40px; height: 40px; }
  .contact-link-text strong { font-size: 12px; margin-bottom: 3px; }
  .contact-link-text span { font-size: 10px; }

  /* ─ Hero — cinematic mobile feel ─ */
  .hero {
    padding: 48px 24px 60px;
    min-height: calc(100dvh - var(--nav-h));
  }
  .hero-eyebrow { font-size: 8px; letter-spacing: 0.35em; margin-bottom: 28px; }
  .hero-sub { font-size: 11px; line-height: 2; margin-bottom: 40px; max-width: 340px; }
  .hero-cta {
    flex-direction: column;
    align-items: center;
    max-width: 300px;
    margin: 0 auto;
    gap: 10px;
  }
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 26px;
  }

  /* ─ Showreel ─ */
  .showreel { padding: 0 20px 60px; }
  .showreel-frame::after { width: 8px; }

  /* ─ Stats ─ */
  .stats-section { grid-template-columns: 1fr 1fr; }
  .stat-cell { padding: 24px 20px; }
  .stat-num { font-size: 34px; }
  .stat-label { font-size: 8px; letter-spacing: 0.2em; }

  /* ─ Services ─ */
  .service-row { padding: 20px; gap: 16px; }
  .service-name { min-width: unset; font-size: 16px; }
  .service-detail { display: none; }
  .service-num { font-size: 10px; }

  /* ─ Modal — immersive mobile ─ */
  .modal-inner { width: 100vw; padding: 0 12px; }
  .modal-caption { flex-direction: column; gap: 6px; padding: 12px 4px 0; }
  .modal-caption h2 { font-size: 14px; }
  .modal-caption p { max-width: 100%; font-size: 11px; line-height: 1.7; }
  .modal-video-wrap.vertical-modal {
    height: 78dvh;
    width: calc(78dvh * 0.5625);
    max-width: 96vw;
  }
  .modal-close {
    top: 10px; right: 14px;
    font-size: 11px;
    background: rgba(8,7,5,0.7);
    padding: 8px 14px;
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  /* ─ Team ─ */
  .team-grid { grid-template-columns: 1fr; gap: 1px; }
  .team-card { padding: 28px 20px; }
  .team-name { font-size: 17px; margin-bottom: 10px; }
  .team-desc { font-size: 11px; line-height: 1.8; }

  /* ─ Manifesto ─ */
  .manifesto-block { padding: 48px 20px; }
  .manifesto-text { font-size: clamp(16px, 4.5vw, 24px); line-height: 1.6; }

  /* ─ Process steps ─ */
  .process-step { padding: 20px; gap: 18px; }
  .process-title { font-size: 15px; margin-bottom: 6px; }
  .process-desc { font-size: 11px; line-height: 1.8; }

  /* ─ About CTA ─ */
  .about-cta { padding: 36px 20px 60px; }
  .about-cta .btn { width: 100%; justify-content: center; }

  /* ─ Featured CTA ─ */
  .featured-cta {
    padding: 0 20px 60px;
    flex-direction: column;
  }
  .featured-cta .btn { width: 100%; justify-content: center; }

  /* ─ Footer — film strip bottom ─ */
  footer {
    padding: 32px 20px;
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .footer-logo { font-size: 14px; }
  .footer-copy { font-size: 9px; }
}

/* ── Phone ≤600px ───────────────────────────────────── */
@media (max-width: 600px) {
  /* Hero tighter */
  .hero { padding: 36px 20px 48px; }
  .hero-title { margin-bottom: 28px; }
  .hero-sub { margin-bottom: 32px; }
  .hero-eyebrow { margin-bottom: 22px; }

  /* Services tighter */
  .service-row { padding: 18px 16px; gap: 12px; }
  .service-name { font-size: 14px; }

  /* Form — iOS zoom fix (font-size ≥16px) */
  .form-input, .form-textarea {
    font-size: 16px;
    padding: 14px 16px;
    border-radius: 0;
    -webkit-appearance: none;
  }
  .form-label { font-size: 10px; margin-bottom: 10px; }
  .services-grid { grid-template-columns: 1fr; gap: 8px; }
  .service-checkbox {
    padding: 14px 14px;
    font-size: 11px;
    min-height: 48px;
  }

  /* FAQ — bigger touch zones */
  .faq-q { padding: 18px 0; min-height: 52px; font-size: 11px; }
  .faq-a { font-size: 11px; padding-bottom: 16px; }

  /* Video grid */
  .video-grid { padding: 0 0 48px; }

  /* Section header */
  .section-header { padding: 40px 16px 24px; }
  .section-label { font-size: 8px; letter-spacing: 0.28em; margin-bottom: 14px; }

  /* Contacts spacing */
  .contacts-left { padding: 32px 16px; }
  .contacts-right { padding: 32px 16px; }
  .contact-links { margin-top: 28px; gap: 1px; }

  /* Buttons full-width on phone */
  .btn { padding: 14px 22px; font-size: 10px; letter-spacing: 0.14em; }
  .btn-primary { font-weight: 400; }

  /* Video info tighter */
  .video-info { padding: 12px 14px; }
  .video-title { font-size: 12px; }

  /* Stat cells */
  .stat-cell { padding: 20px 16px; }
  .stat-num { font-size: 30px; }

  /* Modal fullscreen-ish */
  .modal-inner { padding: 0 8px; }
  .modal-close { top: 8px; right: 10px; font-size: 10px; padding: 6px 12px; }
}

/* ── Small phone ≤400px ─────────────────────────────── */
@media (max-width: 400px) {
  .hero-title { font-size: clamp(38px, 13vw, 56px); }
  .hero-sub { font-size: 10px; max-width: 280px; }
  .section-title { font-size: clamp(22px, 7vw, 36px); }

  /* Stats 1 col */
  .stats-section { grid-template-columns: 1fr !important; }
  .stat-cell { border-right: none !important; border-bottom: 1px solid var(--border); padding: 20px 16px; }
  .stat-cell:last-child { border-bottom: none; }
  .stat-num { font-size: 28px; }

  /* Vertical grid 1 col */
  .video-grid.vertical-grid { grid-template-columns: 1fr; }

  /* Nav links bigger on tiny screens */
  .nav-links.open a { font-size: 18px; padding: 28px 0; }

  /* Buttons compact */
  .btn { padding: 12px 18px; font-size: 9px; }

  /* Team */
  .team-name { font-size: 15px; }
  .team-card { padding: 24px 16px; }

  /* Process */
  .process-step { padding: 16px; gap: 14px; }
  .process-title { font-size: 14px; }

  /* Manifesto */
  .manifesto-text { font-size: clamp(15px, 4.2vw, 20px); }

  /* Contact link items */
  .contact-link-item { padding: 12px 14px; gap: 12px; }
  .contact-link-icon { width: 36px; height: 36px; }
  .contact-link-text strong { font-size: 11px; }
}

/* ── Touch devices ──────────────────────────────────── */
@media (hover: none) and (pointer: coarse) {
  /* Play button always visible */
  .video-play-btn { opacity: 1; }
  .play-circle {
    transform: scale(1);
    width: 52px; height: 52px;
    background: rgba(8,7,5,0.6);
    border-color: rgba(212,168,80,0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  .play-icon {
    border-width: 8px 0 8px 14px;
  }

  /* Bigger touch targets */
  .filter-btn { min-height: 42px; display: inline-flex; align-items: center; padding: 8px 16px; }
  .faq-q { min-height: 52px; }
  .contact-link-item { min-height: 60px; }
  .service-row { min-height: 56px; }

  /* Disable hover-only effects — clean mobile look */
  .video-card::after { display: none; }
  .video-card:hover .video-thumb img { transform: none; filter: brightness(0.75) saturate(0.55) sepia(0.18); }
  .video-card:hover .video-info::after { width: 0; }
  .service-row::before { display: none; }
  .contact-link-item::before { display: none; }
  .contact-link-item:hover { border-color: var(--border); }
  .team-card:hover { background: var(--bg2); }
  .team-card::before { display: none; }
  .process-step::before { display: none; }

  /* Active states for touch feedback */
  .video-card:active { opacity: 0.85; }
  .service-row:active { background: var(--amber-dim); }
  .contact-link-item:active { background: var(--amber-dim); }
  .filter-btn:active { background: var(--amber-dim); border-color: var(--amber); }
  .btn:active { transform: scale(0.97); }
  .faq-q:active { color: var(--amber); }
}

/* ── Landscape phone ────────────────────────────────── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: auto; padding: 28px 24px; }
  .hero-title { font-size: clamp(32px, 8vw, 56px); margin-bottom: 14px; }
  .hero-sub { margin-bottom: 18px; }
  .hero-eyebrow { margin-bottom: 14px; }
  .hero-cta { flex-direction: row; max-width: 100%; }
  .hero-cta .btn { width: auto; }
  .modal-video-wrap.vertical-modal { max-width: 50vw; }
  .nav-links.open { flex-direction: column; gap: 0; }
  .nav-links.open li { width: 100%; max-width: 400px; border-bottom: 1px solid var(--border); }
  .nav-links.open a { padding: 16px 0; font-size: 14px; }
}

/* ── Safe area (notch phones) ──────────────────────── */
@supports (padding-top: env(safe-area-inset-top)) {
  @media (max-width: 900px) {
    .nav { padding-top: env(safe-area-inset-top); padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
    footer { padding-bottom: max(32px, env(safe-area-inset-bottom)); }
    .nav-links.open { padding-top: env(safe-area-inset-top); }
  }
}
