/* ============================================================
   JEREMY CHI-HANG AU — site stylesheet
   Matched to the original Squarespace design:
   black background, white text, Syne typeface (Google Fonts),
   huge uppercase titles, rows of three 16:9 stills.
   ============================================================ */
:root {
  --bg: #000000;
  --text: #ffffff;
  --dim: #bbbbbb;
  --font: "Syne", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .6; }

/* ---------- header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 4vw;
}
.logo {
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.03em;
}
.site-nav { display: flex; gap: 26px; }
.site-nav a { font-size: 14px; font-weight: 500; letter-spacing: .05em; }
.site-nav a.active { border-bottom: 1px solid var(--text); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; }

/* ---------- narrative / commercial listings ---------- */
.listing { padding: 30px 0 60px; }

.work-row { position: relative; margin-bottom: 46px; }
.work-row .thumbs {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; padding: 0 4vw;
}
.work-row .thumbs img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
}
.work-title h1 {
  position: absolute; top: 14px;
  font-size: clamp(38px, 7.6vw, 110px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.03em;
  line-height: 1;
  text-shadow: 0 0 24px rgba(0,0,0,.55);
  pointer-events: none;
}
.work-row .work-title { position: absolute; inset: 0; }
.work-row.s1 .work-title h1 { left: 13vw; }
.work-row.s2 .work-title h1 { left: 18vw; }
.work-row.s3 .work-title h1 { left: 9vw; }
.work-row.s4 .work-title h1 { left: 22vw; }
.work-type {
  padding: 6px 4vw 0;
  font-size: 13px; color: var(--dim); letter-spacing: .06em;
}

/* ---------- project pages ---------- */
.project { padding-bottom: 60px; }
.hero-img { width: 100%; max-height: 92vh; object-fit: cover; }

.project-info { padding: 44px 4vw 10px; max-width: 980px; }
.project-info h1 {
  font-size: clamp(40px, 6.5vw, 96px);
  font-weight: 700; text-transform: uppercase; letter-spacing: -.03em;
  line-height: 1.05; margin-bottom: 26px;
}
.project-info p { margin-bottom: 14px; }
.project-info .status { color: var(--dim); letter-spacing: .08em; }
.project-info h4 {
  margin: 30px 0 10px;
  font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}
.project-info .awards a { border-bottom: 1px solid #555; }
.project-info .request { margin-top: 30px; }
.project-info .request a {
  display: inline-block;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px; letter-spacing: .05em;
  border: 1px solid #444; background: #111;
  padding: 12px 18px;
}
.project-info .request a:hover { border-color: var(--text); opacity: 1; }

.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; padding: 40px 4vw 0;
}
.gallery .g-item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.trailer-heading {
  padding: 70px 4vw 26px;
  font-size: clamp(40px, 6.5vw, 96px);
  font-weight: 700; text-transform: uppercase; letter-spacing: -.03em;
}
.project .video-embed { margin: 0 4vw; }

/* ---------- showreel ---------- */
.showreel { padding: 10px 0 60px; }
.big-heading {
  font-size: clamp(48px, 12vw, 180px);
  font-weight: 700; text-transform: uppercase; letter-spacing: -.03em;
  text-align: center; line-height: 1;
  margin-bottom: -1.2vw; position: relative; z-index: 2;
}
.showreel .video-embed { margin: 0 11vw; }

.video-embed { position: relative; aspect-ratio: 16 / 9; background: #0a0a0a; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- stills ---------- */
.stills { padding: 20px 4vw 60px; }
.masonry { columns: 2; column-gap: 10px; }
.masonry .g-item { display: block; margin-bottom: 10px; break-inside: avoid; }

/* ---------- contact ---------- */
.contact { padding: 30px 4vw 70px; max-width: 1250px; margin: 0 auto; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 5vw; align-items: start; }
.contact-bio p { margin-bottom: 18px; }
.contact-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 50px; }
.contact-imgs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.contact-heading { margin: 60px 0 6px; font-size: 17px; font-weight: 700; letter-spacing: .06em; }
.contact-email a { border-bottom: 1px solid var(--text); }

/* ---------- footer ---------- */
.site-footer { padding: 60px 4vw 40px; text-align: center; }
.footer-social { display: flex; justify-content: center; gap: 22px; margin-bottom: 22px; }
.footer-social svg { width: 18px; height: 18px; fill: var(--text); opacity: .85; }
.site-footer p { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }

/* ---------- lightbox ---------- */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(0,0,0,.94);
  display: flex; align-items: center; justify-content: center;
}
.lightbox img { max-width: 92vw; max-height: 92vh; }
.lb-close {
  position: absolute; top: 14px; right: 24px;
  background: none; border: 0; color: #fff;
  font-size: 40px; cursor: pointer;
}

/* ---------- responsive ---------- */
@media (max-width: 700px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; top: 70px; left: 0; right: 0;
    background: var(--bg);
    flex-direction: column; padding: 16px 5vw 26px;
    z-index: 10;
  }
  .site-nav.open { display: flex; }
  .site-header { position: relative; }
  .work-row .thumbs, .gallery { grid-template-columns: 1fr; }
  .work-title h1 { position: static; }
  .work-row .work-title { position: static; display: block; padding: 12px 4vw 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
}
