:root {
  color-scheme: dark;
  --ink: #f4f1ea;
  --black: #080808;
  --line: rgba(244, 241, 234, 0.28);
  --mono: "DM Mono", monospace;
  --sans: "Inter", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--black); color: var(--ink); font-family: var(--sans); }
a { color: inherit; text-decoration: none; }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: grid; grid-template-columns: 1fr auto;
  align-items: start; padding: 24px 28px;
  mix-blend-mode: difference;
}
.brand { display: flex; align-items: baseline; gap: 12px; width: max-content; }
.brand span { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.04em; }
.brand small, nav a, .menu-button { font: 300 .72rem/1 var(--mono); letter-spacing: .08em; }
nav { display: flex; gap: 28px; padding-top: 5px; }
nav a { position: relative; }
nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1px; background: currentColor; transition: right .25s; }
nav a:hover::after, nav a:focus-visible::after { right: 0; }
.menu-button { display: none; color: inherit; border: 0; background: none; padding: 5px 0; }

.hero { position: relative; min-height: 100svh; overflow: hidden; display: flex; align-items: flex-end; padding: 10vh 28px 9vh; }
.hero-film { position: absolute; inset: 0; background: #0a0a0a; overflow: hidden; }
.hero-reel { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.08) 30%, rgba(0,0,0,.58) 100%); }
.hero h1 { position: relative; z-index: 2; margin: 0; max-width: 10ch; font-size: clamp(3.6rem, 9vw, 9.3rem); line-height: .82; letter-spacing: -.075em; font-weight: 500; }
.hero-meta { position: absolute; z-index: 2; right: 28px; bottom: 9vh; display: grid; gap: 18px; text-align: right; font: 300 .72rem/1 var(--mono); letter-spacing: .07em; }

.work { padding: 120px 28px 180px; }
.section-label { display: flex; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); font: 300 .72rem/1 var(--mono); letter-spacing: .08em; }
.section-label h2 { margin: 0; font: inherit; }
.project-list { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; padding-top: 14px; }
.project { appearance: none; grid-column: span 6; width: 100%; color: var(--ink); text-align: left; font: inherit; background: #111; padding: 0; cursor: pointer; display: block; aspect-ratio: 16/10; border: 0; position: relative; overflow: hidden; isolation: isolate; }
.project:nth-child(1), .project:nth-child(2) { grid-column: span 12; aspect-ratio: 16/7.5; }
.project::after { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, transparent 48%, rgba(0,0,0,.68) 100%); transition: background .35s; }
.project:hover::after, .project:focus-visible::after { background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.56) 100%); }
.project:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.project-still { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.001); filter: saturate(.92) contrast(1.03); transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .5s; }
.project:hover .project-still, .project:focus-visible .project-still { transform: scale(1.035); filter: saturate(1.05) contrast(1.02); }
.project > span { position: absolute; z-index: 2; }
.project-index { top: 22px; left: 24px; }
.project-copy { left: 24px; right: 100px; bottom: 22px; display: grid; gap: 6px; }
.project-title { font-size: clamp(1rem, 1.45vw, 1.5rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; text-wrap: balance; }
.project-type, .project-index, .project-play { font: 300 .7rem/1.4 var(--mono); letter-spacing: .07em; }
.project-type { opacity: .78; }
.project-play { right: 24px; bottom: 25px; }
.film-frame iframe { width: 100%; height: 100%; border: 0; }

.about { min-height: 90svh; padding: 140px 28px; display: grid; grid-template-columns: minmax(320px, 1fr) minmax(0, 1.35fr); gap: clamp(48px, 7vw, 120px); align-items: start; background: var(--ink); color: var(--black); }
.about-visual { position: sticky; top: 100px; display: grid; gap: 18px; }
.about-image-frame { margin: 0; aspect-ratio: 954 / 826; overflow: hidden; background: #c9c7c1; }
.about-image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: contrast(1.025); }
.about-copy { align-self: start; padding-top: 30px; }
.eyebrow { font: 300 .72rem/1 var(--mono); letter-spacing: .08em; }
.about h2 { margin: 0; max-width: 17ch; font-size: clamp(2.7rem, 4.4vw, 5.3rem); line-height: .94; letter-spacing: -.06em; font-weight: 500; text-transform: uppercase; }
.about-body { display: grid; gap: 20px; max-width: 620px; margin-top: 62px; }
.about-body p { margin: 0; font-size: 1.05rem; line-height: 1.62; }

footer { min-height: 90svh; padding: 120px 28px 35px; display: flex; flex-direction: column; justify-content: space-between; }
footer > p { margin: 0; font-size: clamp(3.8rem, 10vw, 10rem); line-height: .82; letter-spacing: -.075em; font-weight: 500; }
.contact-links { display: flex; gap: 28px; flex-wrap: wrap; margin: auto 0 70px; font: 300 .82rem/1.2 var(--mono); letter-spacing: .05em; }
.contact-links a { display: inline-flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 7px; transition: border-color .25s, opacity .25s; }
.contact-links a:hover, .contact-links a:focus-visible { border-color: currentColor; }
.contact-icon { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.contact-icon-dot { fill: currentColor; stroke: none; }
.footer-meta { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 18px; font: 300 .68rem/1 var(--mono); letter-spacing: .07em; }

.film-dialog { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 22px 28px 28px; border: 0; background: #050505; color: var(--ink); }
.film-dialog::backdrop { background: rgba(0,0,0,.9); }
.film-dialog-bar { display: flex; justify-content: space-between; align-items: center; height: 50px; }
.film-dialog-bar h2, .film-close { font: 300 .72rem/1 var(--mono); letter-spacing: .08em; }
.film-dialog-bar h2 { margin: 0; }
.film-close { appearance: none; border: 0; background: none; color: inherit; cursor: pointer; padding: 12px 0 12px 20px; }
.film-frame { height: calc(100dvh - 100px); display: grid; place-items: center; }
.film-frame iframe { max-width: calc((100dvh - 100px) * 16 / 9); max-height: calc(100vw * 9 / 16); aspect-ratio: 16/9; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media (max-width: 720px) {
  .site-header { padding: 20px; }
  .brand small { display: none; }
  .menu-button { display: block; }
  nav { display: none; position: fixed; inset: 0; background: var(--black); padding: 100px 20px; flex-direction: column; gap: 26px; z-index: -1; }
  nav.open { display: flex; }
  nav a { font-size: 2rem; }
  .hero { padding: 120px 20px 35px; }
  .hero-reel { object-position: 50% 50%; }
  .hero h1 { font-size: clamp(3.2rem, 17vw, 5.5rem); }
  .hero-meta { right: 20px; bottom: 34px; }
  .hero-meta > span { display: none; }
  .work { padding: 90px 20px 120px; }
  .project-list { display: block; padding-top: 10px; }
  .project, .project:nth-child(1), .project:nth-child(2) { aspect-ratio: 4/3; margin-bottom: 10px; }
  .project-index { top: 16px; left: 16px; }
  .project-copy { left: 16px; right: 55px; bottom: 16px; gap: 6px; }
  .project-title { font-size: 1.05rem; line-height: 1.1; }
  .project-play { right: 16px; bottom: 18px; font-size: 0; }
  .project-play::after { content: "↗"; font-size: .8rem; }
  .about { padding: 100px 20px; display: block; }
  .about-visual { position: static; gap: 24px; }
  .about-image-frame { width: 100%; }
  .about-copy { padding-top: 64px; }
  .about h2 { font-size: clamp(2.7rem, 12.5vw, 4.5rem); }
  .about-body { margin-top: 46px; gap: 18px; }
  footer { padding: 100px 20px 30px; min-height: 75svh; }
  footer > p { font-size: clamp(3.3rem, 16vw, 5.5rem); }
  .contact-links { display: grid; gap: 18px; margin: 70px 0; font-size: .72rem; }
  .film-dialog { padding: 16px 20px 20px; }
}
