@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Inter:wght@400;500;600&family=Nunito+Sans:wght@400;500;600;700;800&family=Oswald:wght@400;500;600&display=swap');

:root {
  color-scheme: dark;
  --ink: #f4f1ea;
  --muted: #989898;
  --black: #222222;
  --panel: #131313;
  --line: rgba(255,255,255,.15);
  --accent: #ff4a2f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #222222; }
body { margin: 0; background: #222222; color: var(--ink); font-family: Inter, Arial, sans-serif; font-size: 16px; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }

.nav {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px clamp(22px, 4vw, 64px);
  mix-blend-mode: difference; color: white; pointer-events: none;
}
.nav a { pointer-events: auto; }
.brand { font-family: "Archivo Black", Impact, sans-serif; font-size: 1.1rem; letter-spacing: -.06em; }
.nav nav { display: flex; gap: 30px; text-transform: uppercase; font-size: .76rem; letter-spacing: .14em; }
.nav nav a { border-bottom: 1px solid transparent; padding-bottom: 4px; }
.nav nav a:hover { border-color: currentColor; }

.hero { position: relative; height: clamp(440px, 64vh, 600px); display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.hero-film { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: -3; object-fit: cover; filter: saturate(.78) contrast(1.01) brightness(.72); transform: scale(1.08); pointer-events: none; }
.hero-shade { position: absolute; inset: 0; z-index: -2; background: rgba(0,0,0,.16); }
.hero-content { position: relative; width: min(100%, 1200px); height: 100%; padding-inline: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.hero h1 { font-family: "Nunito Sans", Inter, sans-serif; font-size: clamp(3.1rem, 4.2vw, 4.8rem); font-weight: 800; line-height: .95; letter-spacing: -.045em; text-transform: uppercase; margin: 0; }
.role { margin: 20px 0 0; font-family: "Nunito Sans", Inter, sans-serif; font-size: clamp(1rem, 1.35vw, 1.35rem); font-weight: 400; letter-spacing: .01em; color: rgba(255,255,255,.82); }
.contact-link { position: static; transform: none; display: inline-flex; align-items: center; justify-content: center; margin-top: 22px; min-width: 100px; color: rgba(255,255,255,.88); font-family: "Nunito Sans", Inter, sans-serif; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; border: 1px solid rgba(255,255,255,.7); border-radius: 999px; padding: 8px 17px; transition: color .2s ease, background-color .2s ease, border-color .2s ease; }
.contact-link:hover { color: #222; background: white; border-color: white; }

.work { max-width: 1100px; margin: 0 auto; padding: clamp(62px, 7.5vw, 74px) clamp(18px, 3vw, 46px) clamp(90px, 10vw, 160px); }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(40px, 4vw, 72px); row-gap: clamp(56px, 6vw, 88px); }
.project-card { appearance: none; display: block; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; min-width: 0; }
.project-image { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #1a1a1a; border-radius: 0; }
.project-image img { width: 100%; height: 100%; display: block; object-fit: cover; filter: brightness(1.025) contrast(1.025) saturate(1.035); transition: transform .55s cubic-bezier(.2,.7,.2,1), filter .35s ease; }
.project-card:hover img { transform: scale(1.022); filter: brightness(1.08) contrast(1.025) saturate(1.04); }
.project-meta { display: flex; justify-content: center; padding-top: 12px; line-height: 1.15; }
.project-meta h3 { font-family: "Oswald", Impact, sans-serif; font-size: clamp(1rem, 1.45vw, 1.35rem); font-weight: 400; color: #a7a7a7; letter-spacing: .01em; margin: 0; }

footer { border-top: 1px solid var(--line); margin: 0 clamp(18px, 4vw, 64px); padding: 28px 0 46px; color: #8d8d8d; font-size: .75rem; letter-spacing: .02em; text-align: center; }
footer p { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 9px; margin: 0; line-height: 1.5; }
footer a { color: inherit; }
footer .footer-separator { color: #666; }
footer a:hover { color: white; }

.project-dialog { inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0a0a0a; color: var(--ink); overflow: auto; }
.project-dialog::backdrop { background: #000; }
.project-dialog[open] { animation: reveal .36s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(10px); } }
.close-button { position: fixed; z-index: 4; right: clamp(20px, 3vw, 48px); top: 24px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(10,10,10,.45); backdrop-filter: blur(12px); cursor: pointer; }
.close-button span { position: absolute; left: 13px; top: 22px; width: 20px; height: 1px; background: white; transform: rotate(45deg); }
.close-button span:last-child { transform: rotate(-45deg); }
.dialog-shell { min-height: 100%; display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .65fr); }
.film-stage { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; background: #030303; overflow: hidden; }
.film-stage img, .film-stage iframe { width: 100%; height: 100%; border: 0; object-fit: contain; }
.film-stage img { max-height: 100vh; }
.project-info { padding: clamp(100px, 12vh, 150px) clamp(30px, 5vw, 76px) 60px; display: flex; flex-direction: column; }
.project-info h2 { font-family: "Archivo Black", Impact, sans-serif; font-size: clamp(2.3rem, 4vw, 4.8rem); line-height: .91; letter-spacing: -.06em; text-transform: uppercase; margin: 0 0 clamp(34px, 6vh, 64px); }
.credits { display: flex; flex-direction: column; gap: 9px; }
.credit-row { margin: 0; font-size: .82rem; line-height: 1.45; }
.credit-role { color: #777; margin-right: .65em; }
.credit-name { color: var(--ink); }
.dialog-nav { margin-top: auto; padding-top: 50px; display: flex; justify-content: space-between; }
.dialog-nav button { background: none; border: 0; padding: 8px 0; cursor: pointer; text-transform: uppercase; font-size: .68rem; letter-spacing: .12em; color: #999; }
.dialog-nav button:hover { color: white; }
body.dialog-open { overflow: hidden; }

@media (max-width: 900px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dialog-shell { grid-template-columns: 1fr; }
  .film-stage { position: relative; height: min(64vh, 680px); }
  .project-info { min-height: 60vh; }
}
@media (max-width: 600px) {
  .nav { padding: 20px; }
  .nav nav { gap: 20px; }
  .hero { height: clamp(360px, 58vh, 460px); }
  .hero h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .contact-link { margin-top: 18px; }
  .project-grid { grid-template-columns: 1fr; }
  footer p { gap: 6px; padding-inline: 8px; }
  .project-info { padding-inline: 22px; }
}

@media (max-width: 600px) {
  .hero-film { pointer-events: none; }
  .hero-film::-webkit-media-controls,
  .hero-film::-webkit-media-controls-enclosure,
  .hero-film::-webkit-media-controls-panel { display: none !important; }
  .film-stage { height: min(56vw, 360px); min-height: 220px; }
  .film-stage iframe { pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
