@font-face {
  font-family: "Repro Variable";
  src: url("./fonts/CargoReproVariable.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}

@font-face {
  font-family: "Repro Variable";
  src: url("./fonts/CargoReproItalicVariable.woff2") format("woff2-variations");
  font-style: italic;
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: rgba(0, 0, 0, .75);
  --muted: rgba(0, 0, 0, .4);
  --paper: #fff;
  --pad: 2rem;
  font-family: "Repro Variable", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 350;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.3; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a:active { opacity: .7; }
a:focus-visible, button:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
img, video { display: block; width: 100%; }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  padding: var(--pad);
  pointer-events: none;
}
.site-header a, .site-header button { pointer-events: auto; }
.brand-logo { width: 2.4rem; height: 2.1rem; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.desktop-nav { display: flex; gap: 2.65rem; padding-top: .1rem; font-size: 1rem; letter-spacing: .1em; }
.desktop-nav a:hover { color: rgba(0, 0, 0, .45); }
.menu-button { display: none; border: 0; padding: 0; color: var(--ink); background: transparent; font: inherit; font-size: 2rem; font-weight: 300; cursor: pointer; }

.menu-overlay { position: fixed; inset: 0; z-index: 15; padding: 7rem var(--pad) var(--pad); background: #fff; }
.menu-overlay[hidden] { display: none; }
.menu-overlay nav { display: grid; gap: .15rem; font-size: 3rem; font-weight: 300; line-height: 1.2; }
.menu-social { position: absolute; bottom: var(--pad); left: var(--pad); display: grid; gap: .25rem; font-size: 1rem; }

.hero-reel { position: relative; width: calc(100% - 4rem); aspect-ratio: 16 / 9; margin: 0 var(--pad); overflow: hidden; background: #eee; }
.hero-reel video { position: absolute; inset: 0; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s linear; }
.hero-reel video.is-active { opacity: 1; }

.home-intro { display: flex; justify-content: flex-end; padding: 4.8rem var(--pad) 8rem; text-align: right; }
.home-intro-inner { max-width: 48rem; }
.home-intro h1 { margin: 0 0 1.8rem; font-size: 3rem; font-weight: 300; line-height: 1.2; letter-spacing: 0; }
.home-intro p { margin: 0; font-size: 1rem; }

.work-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1rem; padding: 0 var(--pad) 8rem; }
.work-grid::after { content: ""; flex: 999 1 20rem; }
.project-card { flex: var(--card-aspect) 1 var(--card-basis); min-width: 0; margin-bottom: 3.8rem; }
.media-frame { overflow: hidden; background: #eee; }
.media-frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.media-frame video { width: 100%; height: auto; aspect-ratio: var(--media-aspect); object-fit: contain; }
.card-meta { display: flex; justify-content: space-between; gap: 1rem; padding-top: .65rem; font-size: 1rem; }
.card-meta span:last-child { color: var(--muted); }
.project-card a:hover .card-meta span:first-child { text-decoration: underline; text-underline-offset: .18em; }

.project-main { padding-top: 8rem; }
.project-heading { padding: 0 var(--pad) 4rem; }
.project-heading h1 { margin: 0 0 1.6rem; font-size: 2rem; font-weight: 300; line-height: 1; }
.project-heading .year { margin: 0 0 .35rem; color: var(--muted); font-size: 1rem; }
.project-copy { max-width: 42rem; margin-left: auto; }
.project-copy p { margin: 0; }
.project-hero { margin: 0 var(--pad); background: #eee; }
.project-hero img { max-height: 85vh; object-fit: cover; }
.project-hero video { width: auto; max-width: 100%; height: auto; max-height: 85vh; margin-inline: auto; aspect-ratio: var(--media-aspect); object-fit: contain; }
.project-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; padding: 3.5rem var(--pad) 9rem; color: var(--muted); font-size: 2rem; font-weight: 350; }
.project-nav a:nth-child(2) { justify-self: center; }
.project-nav a:last-child { justify-self: end; text-align: right; }
.project-nav a:hover { color: var(--ink); }

.contact-page { padding: 9rem var(--pad) 8rem; }
.contact-page > h1 { margin: 0 0 6rem; font-size: 3rem; font-weight: 300; line-height: 1.2; }
.contact-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 6rem; }
.contact-grid h2 { margin: 0 0 1.25rem; font-size: 2rem; font-weight: 300; }
.contact-grid p { max-width: 48rem; margin: 0 0 1.3rem; }
.contact-links { display: grid; align-content: start; gap: .25rem; font-size: 1rem; }
.contact-links a { text-decoration: underline; text-underline-offset: .18em; }

.site-footer { display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem; padding: 4rem var(--pad); font-size: 1rem; }
.site-footer .footer-mail { justify-self: center; text-decoration: underline; text-underline-offset: .18em; }
.footer-social { justify-self: end; display: grid; text-align: right; }
.footer-social a:hover { text-decoration: underline; }

@media (min-width: 761px) and (max-width: 1100px) {
  .project-card { margin-bottom: 3.2rem; }
}

@media (max-width: 760px) {
  :root { --pad: 1.25rem; font-size: 16px; }
  .site-header { position: relative; padding-top: 1.5rem; padding-bottom: 1.5rem; background: #fff; }
  .brand-logo { width: 3rem; height: 2.55rem; }
  .desktop-nav { display: none; }
  .menu-button { display: block; justify-self: end; }
  .hero-reel { width: calc(100% - 2.5rem); margin: 0 var(--pad); }
  .home-intro { padding-top: 4.2rem; padding-bottom: 5rem; }
  .home-intro h1 { font-size: 3rem; }
  .work-grid { display: block; padding-bottom: 4rem; }
  .project-card, .project-card:nth-child(n) { margin-bottom: 3.2rem; }
  .media-frame img { aspect-ratio: 4 / 3; }
  .project-main { padding-top: 3rem; }
  .project-heading { padding-bottom: 2.5rem; }
  .project-heading h1 { font-size: 3rem; }
  .project-copy { margin-left: 0; }
  .project-nav { grid-template-columns: 1fr 1fr; padding-top: 2.5rem; padding-bottom: 5rem; font-size: 1.5rem; }
  .project-nav a:nth-child(2) { display: none; }
  .project-nav a:last-child { justify-self: end; }
  .contact-page { padding-top: 3rem; }
  .contact-page > h1 { margin-bottom: 4rem; font-size: 3rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 4rem; }
  .site-footer { grid-template-columns: 1fr; gap: 2rem; padding-top: 3rem; }
  .site-footer .footer-mail, .footer-social { justify-self: start; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-reel video { transition: none; }
}
