:root {
  --bg: #0b0b0c;
  --bg-2: #131315;
  --line: #26262a;
  --text: #f3f1ec;
  --muted: #9a978f;
  --accent: #ff4b2b;
  --radius: 14px;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 999px;
  background: var(--text); color: var(--bg);
  font-weight: 600; font-size: 16px; text-decoration: none;
  border: 1px solid var(--text);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-small { padding: 9px 18px; font-size: 15px; }
.btn-big { padding: 18px 34px; font-size: 18px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 11, 12, .75);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 20px; letter-spacing: -0.02em; font-weight: 500; }
.logo b { font-weight: 700; }
.logo-mark {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--text); position: relative;
}
.logo-mark::after {
  content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--accent);
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--muted); font-size: 15px; transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--text); }

/* Hero */
.hero { padding: 120px 0 100px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 28px; color: var(--muted);
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
}
.rec { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.hero h1 { font-size: clamp(44px, 8vw, 104px); max-width: 13ch; }
.hero h1 em { color: var(--accent); }
.lede { color: var(--muted); font-size: clamp(17px, 2vw, 20px); max-width: 52ch; margin: 28px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* Work */
.work { padding: 40px 0 120px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(36px, 5vw, 60px); }
.section-head p { margin: 0; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 0; padding: 0; margin: 0;
  border-radius: var(--radius);
  background: var(--bg-2);
  cursor: pointer; color: inherit; font: inherit; text-align: left;
}
.card.portrait { aspect-ratio: 9 / 16; }
.grid-tall { max-width: 900px; }
.sub-head {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  font-size: 22px; margin: 64px 0 20px;
}
.sub-head span { color: var(--muted); font-size: 14px; font-weight: 500; letter-spacing: .04em; }
.card video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .4s ease;
  filter: brightness(.82);
}
.card:hover video, .card:focus-visible video { transform: scale(1.04); filter: brightness(1); }
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.card-info {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px;
  background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
}
.card-title { font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.play {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.14); backdrop-filter: blur(6px);
  position: relative; transition: background .2s ease, transform .2s ease;
}
.play::after {
  content: ""; position: absolute; left: 16px; top: 13px;
  border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent;
}
.card:hover .play { background: var(--accent); transform: scale(1.08); }

/* About / services */
.about { padding: 110px 0; border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.about h2 { font-size: clamp(36px, 5vw, 60px); }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.service { border-top: 1px solid var(--line); padding-top: 22px; }
.service .num { color: var(--accent); font-size: 14px; font-weight: 600; letter-spacing: .08em; }
.service h3 { font-size: 22px; margin: 12px 0 10px; }
.service p { margin: 0; color: var(--muted); font-size: 16px; }

/* Contact */
.contact { padding: 130px 0; background: var(--bg-2); border-top: 1px solid var(--line); text-align: center; }
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact h2 { font-size: clamp(42px, 7vw, 92px); }
.contact h2 em { color: var(--accent); }
.contact .lede { margin-left: auto; margin-right: auto; }
.contact-form {
  width: 100%; max-width: 640px; margin-top: 44px;
  display: flex; flex-direction: column; gap: 16px; text-align: left;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field span { font-size: 14px; color: var(--muted); font-weight: 500; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 75, 43, .2); }
.field.invalid input, .field.invalid textarea { border-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { align-self: center; margin-top: 8px; cursor: pointer; font-family: inherit; }
.contact-form .btn:disabled { opacity: .6; cursor: wait; transform: none; }
.form-status { margin: 0; min-height: 1.6em; text-align: center; color: var(--muted); }
.form-status.ok { color: #7ee2a8; }
.form-status.err { color: var(--accent); }
.fb {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 36px;
  color: var(--muted); text-decoration: none; font-weight: 500; transition: color .2s;
}
.fb:hover { color: #fff; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(0,0,0,.92);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: fade .25s ease;
}
.lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.lightbox-inner { width: 100%; max-width: 1200px; }
.lightbox.tall .lightbox-inner { max-width: min(100%, calc((100vh - 120px) * 9 / 16)); }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.lightbox-title { font-weight: 600; font-size: 18px; }
.lightbox-close {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: #fff;
  font-size: 18px; cursor: pointer;
}
.lightbox-close:hover { background: var(--accent); border-color: var(--accent); }
.lightbox video { width: 100%; max-height: calc(100vh - 120px); border-radius: 10px; background: #000; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .rec { animation: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .grid-wide { grid-template-columns: 1fr 1fr; }
  .grid-wide .card:first-child { grid-column: span 2; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .services { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 72px 0 64px; }
  .grid-wide { grid-template-columns: 1fr; gap: 14px; }
  .grid-wide .card:first-child { grid-column: auto; }
  .grid-tall { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 8px; }
  .grid-tall .card { flex: 0 0 62%; scroll-snap-align: start; }
  .about, .contact { padding: 80px 0; }
  .field-row { grid-template-columns: 1fr; }
  .contact-form .btn { align-self: stretch; }
  .lightbox { padding: 12px; }
}
