:root {
  --bg: #0e0e10;
  --fg: #f4f1ea;
  --muted: #a8a49c;
  --line: #2a2a2f;
  --panel: #17171a;
  --accent: #e62a1e;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.8; }
img { display: block; max-width: 100%; }

.cond { font-family: Archivo, sans-serif; font-stretch: 62%; text-transform: uppercase; }
.mono { font-family: 'JetBrains Mono', monospace; }
.section { padding: 56px var(--gutter); }
.title {
  margin: 0;
  font-family: Archivo, sans-serif; font-stretch: 62%; text-transform: uppercase;
  font-weight: 900; font-size: clamp(56px, 7vw, 112px); line-height: 0.9;
}
.muted { color: var(--muted); }

/* Floating nav */
.nav-wrap { position: sticky; top: 0; z-index: 10; padding: 16px var(--gutter) 0; }
.nav {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px;
  padding: 10px 10px 10px 24px; border-radius: 999px;
  background: rgba(14, 14, 16, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
}
.nav .logo { font-weight: 900; font-size: 26px; line-height: 1; letter-spacing: 0.02em; }
.nav .links { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; font-size: 14px; font-weight: 500; }
.btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px;
}
.btn-accent { background: var(--accent); color: #fff; }
.btn-light { background: #fff; color: #111; }
.btn-outline { border: 1.5px solid #fff; color: #fff; }
@media (max-width: 960px) {
  .nav { flex-wrap: nowrap; padding: 8px 8px 8px 18px; }
  .nav .logo { font-size: 19px; white-space: nowrap; }
  .nav .links a:not(.btn) { display: none; }
  .nav .btn { padding: 10px 16px; font-size: 13px; white-space: nowrap; }
}

/* Hero: full-bleed frame dressed like a viewfinder */
.hero { padding: 16px var(--gutter) 0; }
.frame {
  position: relative; height: min(86vh, 860px); min-height: 520px;
  border-radius: 20px; overflow: hidden; background: #000;
}
.frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.frame .shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 55%, rgba(0,0,0,.75) 100%);
}
.frame .hud {
  position: absolute; top: 24px; left: 28px; right: 28px;
  display: flex; justify-content: space-between; font-size: 14px; color: rgba(255,255,255,.85);
}
.frame .rec { color: var(--accent); animation: blink 1.6s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .frame .rec { animation: none; } }
.frame .corner { position: absolute; top: 64px; width: 36px; height: 36px; border-top: 2px solid rgba(255,255,255,.7); }
.frame .corner.l { left: 28px; border-left: 2px solid rgba(255,255,255,.7); }
.frame .corner.r { right: 28px; border-right: 2px solid rgba(255,255,255,.7); }
.frame .content {
  position: absolute; left: clamp(20px, 4vw, 56px); right: clamp(20px, 4vw, 56px); bottom: clamp(24px, 4vw, 48px);
  display: flex; flex-direction: column; gap: 20px; color: #fff;
}
.kicker { font-size: 14px; font-weight: 600; letter-spacing: 0.4em; text-transform: uppercase; color: var(--accent); }
.hero h1 { margin: 0; font-weight: 900; font-size: clamp(56px, 10vw, 168px); line-height: 0.86; }
.hero .actions {
  display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center;
  font-size: 15px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.hero .actions .place { font-weight: 500; letter-spacing: 0.2em; opacity: 0.8; }

/* Clients strip */
.clients {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 18px 40px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0;
}
.clients .label { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.clients .name { font-weight: 800; font-size: 34px; }

/* Projects */
.head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filters button {
  min-height: 44px; padding: 12px 22px; border-radius: 999px; cursor: pointer;
  font: 600 14px Inter, sans-serif; letter-spacing: 0.08em; text-transform: uppercase;
  background: transparent; color: var(--fg); border: 1.5px solid var(--fg);
}
.filters button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 560px), 1fr)); gap: 28px; }
.card { display: flex; flex-direction: column; gap: 14px; }
.card[hidden] { display: none; }
.card .media { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .media img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .card .media img { transition: none; } .card:hover .media img { transform: none; } }
.card .big {
  position: absolute; left: 22px; right: 22px; bottom: 6px; color: #fff;
  font-weight: 900; font-size: clamp(56px, 6.4vw, 104px); line-height: 0.85; text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.card .meta { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.card .meta strong { font-size: 18px; font-weight: 600; }
.card .meta .mono { font-size: 13px; color: var(--muted); white-space: nowrap; }

/* Vertical formats */
.reels { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 20px; }
.reels figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.reels img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 14px; }
.reels figcaption { font-size: 15px; font-weight: 600; }
.reels figcaption span { font-weight: 400; color: var(--muted); }

/* Services */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); border-top: 1px solid var(--line); }
.services > div { padding: 32px 32px 32px 0; display: flex; flex-direction: column; gap: 14px; border-bottom: 1px solid var(--line); }
.services .num { font-size: 13px; color: var(--accent); }
.services h3 { margin: 0; font-weight: 800; font-size: 44px; line-height: 0.95; }
.services p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }
.tagline { margin: 28px 0 0; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* Film list */
.films .row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.films .row:first-child {
  padding: 0 0 14px; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.films .t { font-weight: 800; font-size: clamp(30px, 3.4vw, 48px); line-height: 1; }
.films .mono { font-size: 14px; color: var(--muted); text-align: right; }

/* About */
.about { display: flex; flex-direction: column; gap: 22px; max-width: 900px; }
.about p { margin: 0; max-width: 640px; font-size: 19px; line-height: 1.65; }

/* Contact */
.cta {
  border-radius: 24px; background: var(--accent); color: #fff;
  padding: clamp(32px, 6vw, 80px); display: flex; flex-direction: column; gap: 32px;
}
.cta h2 { margin: 0; font-weight: 900; font-size: clamp(64px, 10vw, 176px); line-height: 0.84; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; font-size: 16px; font-weight: 500; }
footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 32px 0 8px;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
