:root {
  --bg: #0a0a0b;
  --surface: #131316;
  --surface-2: #1b1b20;
  --line: #26262c;
  --text: #ececee;
  --muted: #8d8d96;
  --accent: #a9a9b2;
  --radius: 14px;
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { line-height: 1.1; font-weight: 500; }
h1, h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; letter-spacing: -0.01em; }
em { font-style: italic; color: var(--accent); }

section { padding: 110px 24px; max-width: var(--max); margin: 0 auto; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px max(24px, calc((100vw - var(--max)) / 2));
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(10,10,11,.8); backdrop-filter: blur(14px); border-color: var(--line); }
.logo { font-weight: 600; letter-spacing: .14em; font-size: .85rem; }
.logo span { color: var(--accent); }
.nav nav { display: flex; align-items: center; gap: 28px; font-size: .9rem; color: var(--muted); }
.nav nav a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 999px;
  background: var(--text); color: var(--bg); font-weight: 500; font-size: .95rem;
  transition: transform .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); background: var(--accent); color: #111; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-small { padding: 8px 18px; font-size: .85rem; color: var(--bg) !important; }

/* Hero */
.hero {
  min-height: 100vh; display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center;
  padding-top: 140px;
  background: radial-gradient(600px 400px at 80% 20%, rgba(255,255,255,.05), transparent 70%);
  max-width: none; padding-inline: max(24px, calc((100vw - var(--max)) / 2));
}
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; margin-bottom: 24px; }
.hero h1 { font-size: clamp(2.8rem, 8vw, 6rem); max-width: 14ch; }
.lead { color: var(--muted); max-width: 52ch; margin: 28px 0 40px; font-size: 1.1rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-photo {
  position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 4 / 5; max-height: 74vh; justify-self: end; width: 100%; max-width: 440px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; filter: contrast(1.03) saturate(.9); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,11,.55), transparent 45%); }

/* Work */
.section-head { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-end; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted); font-size: .88rem; transition: all .2s;
}
.filter:hover { color: var(--text); border-color: #3a3a42; }
.filter.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; align-items: start; }
.card { text-align: left; display: block; animation: fade .5s ease both; }
.thumb {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius);
  background: var(--surface) center / cover; overflow: hidden;
  border: 1px solid var(--line); transition: transform .35s, border-color .35s;
}
.card.is-vertical .thumb { aspect-ratio: 9 / 16; max-height: 420px; margin-inline: auto; }
.thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), transparent 55%); }
.card:hover .thumb { transform: translateY(-4px); border-color: var(--accent); }
.play {
  position: absolute; z-index: 1; top: 50%; left: 50%; translate: -50% -50%;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(10,10,11,.6); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.2);
  transition: background .25s, color .25s, scale .25s;
}
.card:hover .play { background: var(--accent); color: #111; scale: 1.08; }
.info { padding: 16px 4px 0; }
.tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); }
.info h3 { font-size: 1.1rem; margin: 6px 0 2px; font-weight: 500; }
.info p { color: var(--muted); font-size: .88rem; }
.empty { color: var(--muted); text-align: center; padding: 60px 0; }

.note { color: var(--muted); font-size: .9rem; text-align: center; margin-top: 48px; font-style: italic; }

/* Studio */
.studio { border-top: 1px solid var(--line); }
.studio h2 { font-size: clamp(2rem, 5vw, 3.2rem); max-width: 22ch; margin-bottom: 36px; }
.studio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.studio-grid p { color: var(--muted); max-width: 58ch; }

/* About */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; border-top: 1px solid var(--line); }
.about h2 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 24px; }
.about p { color: var(--muted); max-width: 60ch; }
.about p strong { color: var(--text); font-weight: 500; }
.stats { list-style: none; display: flex; gap: 40px; margin-top: 40px; flex-wrap: wrap; }
.stats strong { display: block; font-family: "Instrument Serif", serif; font-size: 2.4rem; font-weight: 400; color: var(--accent); }
.stats span { color: var(--muted); font-size: .85rem; }
.about-tools h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); margin-bottom: 18px; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .88rem; }

/* Contact */
.contact { text-align: center; border-top: 1px solid var(--line); }
.contact h2 { font-size: clamp(2.2rem, 6vw, 4rem); }
.contact p { color: var(--muted); margin: 18px 0 34px; }
.socials { display: flex; gap: 28px; justify-content: center; margin-top: 36px; color: var(--muted); font-size: .92rem; }
.socials a:hover { color: var(--accent); }

.footer { text-align: center; padding: 36px 24px; color: var(--muted); font-size: .82rem; border-top: 1px solid var(--line); }

/* Modal */
.modal {
  position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.92);
  display: grid; place-items: center; padding: 24px; animation: fade .25s ease;
}
.modal[hidden] { display: none; }
.modal-close { position: absolute; top: 18px; right: 26px; font-size: 2.4rem; color: var(--muted); line-height: 1; }
.modal-close:hover { color: var(--text); }
.modal-body { width: min(1100px, 100%); display: grid; place-items: center; }
.player { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.player.is-vertical { aspect-ratio: 9 / 16; width: auto; height: min(86vh, 760px); }
.player iframe { width: 100%; height: 100%; border: 0; }

/* Animations */
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s, transform .8s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }

/* Mobile */
@media (max-width: 800px) {
  section { padding: 80px 20px; }
  .about, .studio-grid { grid-template-columns: 1fr; gap: 40px; }
  .nav nav a:not(.btn) { display: none; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 110px; min-height: 0; }
  .hero-photo { order: -1; justify-self: center; max-width: 300px; max-height: none; }
  .grid { grid-template-columns: 1fr; }
}
