@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500&family=Poppins:wght@300;400;600&display=swap');

:root {
  --bg: #000;
  --fg: #fff;
  --muted: #9a9a9a;
  --line: #2e2e2e;
  --card: #0d0d0d;
  --display: 'Oswald', 'DIN Condensed', sans-serif;
  --body: 'Poppins', sans-serif;
  --gutter: 40px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
main { flex: 1; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Header */
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 40px 20px 26px;
  margin: 0 var(--gutter);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; gap: 24px; }
.nav a {
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: color .2s;
}
.nav a:hover, .nav a.active { color: var(--muted); }
.brand {
  font-family: var(--display);
  font-size: 45px;
  line-height: 1;
  white-space: nowrap;
}
.social { justify-self: end; display: block; transition: color .2s; }
.social svg { width: 22px; height: 22px; display: block; }
.social:hover { color: var(--muted); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Films */
.films {
  max-width: 1280px;
  margin: 0 auto;
  padding: 70px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 90px;
}
.film-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
  background: var(--card);
  border: 0;
  padding: 0;
}
.film-media img, .film-media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), opacity .25s;
}
/* The preview sits under the thumbnail, which fades away once the preview is actually playing.
   Keeping the video itself visible is what lets Safari play it. */
.film-media video { z-index: 0; }
.film-media img { z-index: 1; }
.film-media.is-playing img { opacity: 0; }
.film-media:hover img, .film-media:hover video { transform: scale(1.02); }
.film-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-top: 18px;
}
.film-meta h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: 0.01em;
  line-height: 1.1;
}
.film-meta p {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* About */
.about {
  max-width: 1280px;
  margin: 60px auto 0;
  padding: 70px var(--gutter) 110px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  position: relative;
}
.about::before {
  content: '';
  position: absolute; top: 0; left: var(--gutter); right: var(--gutter);
  border-top: 1px solid var(--line);
}
.about h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 28px;
}
.about p {
  font-size: 20px;
  line-height: 1.7;
  max-width: 720px;
}
.text-link {
  display: inline-block;
  margin-top: 26px;
  font-weight: 600;
  font-size: 15px;
  padding-bottom: 4px;
  border-bottom: 1px solid #fff;
  transition: color .2s, border-color .2s;
}
.text-link:hover { color: var(--muted); border-color: var(--muted); }

/* Photos */
.photos {
  display: grid;
  grid-template-columns: 1fr 1.45fr 1fr;
  gap: 24px;
  padding: 34px 0 80px;
  margin: 0 -60px;
  align-items: start;
}
.photos .col { display: flex; flex-direction: column; gap: 24px; }
.photos button {
  border: 0; padding: 0; background: var(--card); cursor: zoom-in; display: block; width: 100%;
}
.photos img { width: 100%; height: auto; transition: opacity .3s; }
.photos button:hover img { opacity: .85; }

/* Perspective */
.perspective {
  max-width: 820px;
  margin: 0 auto;
  padding: 50px 20px 0;
  text-align: center;
}
.perspective h1 {
  font-weight: 600;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.2;
}
.perspective .soon {
  font-weight: 600;
  font-size: clamp(20px, 3.4vw, 34px);
  line-height: 1.25;
  margin-bottom: 50px;
}
.perspective img { width: 100%; height: auto; }
.perspective-copy {
  max-width: 780px;
  margin: 0 auto;
  padding: 70px 20px 110px;
  font-size: 17px;
  line-height: 1.8;
  text-align: center;
}

/* Contact */
.contact {
  max-width: 600px;
  margin: 0 auto;
  padding: 50px 20px 110px;
  text-align: center;
}
.contact h1 {
  font-weight: 600;
  font-size: 28px;
  margin-bottom: 14px;
}
.contact .email {
  display: inline-block;
  font-weight: 600;
  font-size: 18px;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.contact .email:hover { color: var(--muted); }
.contact > img { width: 100%; height: auto; margin: 44px 0 44px; }
.contact form { max-width: 508px; margin: 0 auto; text-align: left; }
.contact label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 8px;
}
.contact input, .contact textarea {
  width: 100%;
  background: #fff;
  color: #000;
  border: 1px solid #fff;
  font: 400 16px var(--body);
  padding: 8px 12px;
  margin-bottom: 22px;
  border-radius: 0;
  outline: none;
  -webkit-appearance: none;
}
.contact input { height: 44px; }
.contact textarea { height: 120px; resize: vertical; }
.contact input:focus, .contact textarea:focus { box-shadow: 0 0 0 3px var(--muted); }
.contact .hp { display: none; }
.contact button {
  width: 100%;
  height: 48px;
  background: #fff;
  color: #000;
  border: 0;
  font: 600 16px var(--body);
  cursor: pointer;
  transition: background .2s;
}
.contact button:hover { background: #d6d6d6; }
.form-status { margin-top: 16px; font-size: 14px; text-align: center; min-height: 1em; }

/* Footer */
.site-footer {
  margin: 0 var(--gutter);
  border-top: 1px solid var(--line);
  padding: 28px 20px calc(34px + env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 32px;
  font-size: 13px;
  color: var(--muted);
}
.site-footer a { transition: color .2s; }
.site-footer a:hover { color: #fff; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.96);
  display: flex;
  align-items: center; justify-content: center;
  flex-direction: column;
  gap: 18px;
  z-index: 100;
  padding: 64px 24px 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox .stage { max-width: min(1500px, 100%); display: flex; justify-content: center; }
.lightbox .stage img {
  max-width: 100%;
  max-height: calc(100vh - 150px);
  max-height: calc(100dvh - 150px);
  width: auto; height: auto;
}
.lightbox .stage video {
  width: min(1500px, 100vw - 48px, (100vh - 150px) * 16 / 9);
  max-height: calc(100vh - 150px);
  max-height: calc(100dvh - 150px);
  background: #000;
}
.lightbox .title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.02em;
  text-align: center;
}
.lightbox .close, .lightbox .nav-btn {
  position: absolute;
  background: none; border: 0; color: #fff;
  cursor: pointer;
  transition: color .2s;
}
.lightbox .close { top: 14px; right: 18px; font-size: 38px; font-weight: 300; line-height: 1; padding: 6px 10px; }
.lightbox .nav-btn { top: 50%; transform: translateY(-50%); font-size: 44px; font-weight: 300; padding: 20px 14px; }
.lightbox .prev { left: 6px; }
.lightbox .next { right: 6px; }
.lightbox .close:hover, .lightbox .nav-btn:hover { color: var(--muted); }
.lightbox .nav-btn[hidden] { display: none; }

/* Tablet */
@media (max-width: 1000px) {
  :root { --gutter: 24px; }
  .photos { margin: 0 var(--gutter); gap: 16px; }
  .photos .col { gap: 16px; }
}

/* Phone */
@media (max-width: 700px) {
  :root { --gutter: 16px; }
  .site-header {
    position: relative;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
    padding: 28px 0 18px;
  }
  .brand { order: -1; font-size: 38px; }
  .nav { gap: 22px; }
  .nav a { font-size: 16px; }
  .social { position: absolute; top: 14px; right: 0; padding: 6px; }
  .films { padding-top: 32px; gap: 52px; }
  .film-meta { flex-direction: column; gap: 4px; padding-top: 12px; }
  .film-meta h2 { font-size: 24px; }
  .film-meta p { font-size: 12px; }
  .about { grid-template-columns: 1fr; gap: 14px; margin-top: 30px; padding: 44px var(--gutter) 70px; }
  .about p { font-size: 17px; }
  .photos { grid-template-columns: 1fr; padding-top: 20px; }
  .perspective { padding-top: 32px; }
  .perspective .soon { margin-bottom: 30px; }
  .perspective-copy { padding: 44px 20px 70px; font-size: 16px; }
  .contact { padding: 34px var(--gutter) 70px; }
  .contact > img { margin: 32px 0; }
  .site-footer { flex-direction: column; align-items: center; gap: 10px; }
  .lightbox { padding: 56px 0 24px; }
  .lightbox .stage video { width: 100vw; }
  .lightbox .nav-btn { display: none; }
}
