* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: #111;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}
a { color: inherit; }

/* ---------- Top nav ---------- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 36px 6vw;
}
.top .wordmark {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: #000;
}
.top nav {
  display: flex;
  gap: 26px;
}
.top nav a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #a8a8a8;
  transition: color 0.15s ease;
}
.top nav a:hover,
.top nav a.on { color: #000; }

@media (max-width: 640px) {
  .top { padding: 26px 6vw; }
  .top nav { gap: 16px; }
}

/* ---------- Landing page: one title image per series, stacked ---------- */
main.landing {
  padding: 8vh 6vw 16vh;
  max-width: 900px;
  margin: 0 auto;
}
.series-stack {
  display: flex;
  flex-direction: column;
  gap: 90px;
}
.series-block {
  display: block;
  text-decoration: none;
  color: #111;
}
.series-block .cover {
  display: block;
}
.series-block .cover img {
  width: auto;
  max-width: 100%;
  max-height: min(600px, 75vh);
  height: auto;
  display: block;
  transition: opacity 0.25s ease;
}
.series-block:hover .cover img {
  opacity: 0.85;
}
.series-block .name {
  display: block;
  margin-top: 18px;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}
.series-block .meta {
  display: block;
  margin-top: 2px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a3a3a3;
}

@media (max-width: 640px) {
  main.landing { padding: 5vh 6vw 12vh; }
  .series-stack { gap: 56px; }
}

/* ---------- Series page: back link, title, grid ---------- */
main.series-page {
  padding: 2vh 6vw 14vh;
  max-width: 1200px;
  margin: 0 auto;
}
.back-link {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: #a8a8a8;
  margin-bottom: 46px;
  transition: color 0.15s ease;
}
.back-link:hover { color: #000; }
main.series-page h1 {
  margin: 0 0 6px;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
main.series-page .meta {
  margin: 0 0 46px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a3a3a3;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 26px;
  align-items: end;
}
.gallery a {
  display: block;
}
.gallery a img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.2s ease;
}
.gallery a:hover img { opacity: 0.85; }

@media (max-width: 640px) {
  .gallery { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  main.series-page h1 { font-size: 1.3rem; }
}

/* ---------- Lightbox ---------- */
#lb {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
#lb.on { display: flex; }
#lb img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: none;
  border: none;
  color: #222;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 14px 18px;
  opacity: 0.6;
  transition: opacity 0.15s ease;
  z-index: 2;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { opacity: 1; }
.lb-close { top: 8px; right: 8px; font-size: 1.6rem; z-index: 5; }
.lb-prev { left: 0; top: 0; bottom: 0; font-size: 2.4rem; }
.lb-next { right: 0; top: 0; bottom: 0; font-size: 2.4rem; }
@media (max-width: 640px) {
  .lb-prev, .lb-next { font-size: 1.8rem; padding: 10px; }
}

/* ---------- About / Contact ---------- */
main.page {
  padding: 2vh 6vw 14vh;
  max-width: 620px;
  margin: 0 auto;
}
main.page h1 {
  margin: 0 0 26px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #222;
}
main.page p {
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.72;
  color: #111;
  margin: 0 0 18px;
}
main.page a.mail {
  color: #000;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border-bottom: 1px solid #000;
}
main.page a.mail:hover { opacity: 0.6; }

/* ---------- Film ---------- */
.film-block video {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
  aspect-ratio: 16 / 9;
}

/* Centre each cover on the Work page; caption sits under the picture */
.series-stack { align-items: center; }
.series-block { max-width: 100%; }
@media (max-width: 640px) {
  .series-stack { align-items: stretch; }
}

/* ---------- Entry page ---------- */
body.splash {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.splash-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 40px;
  text-decoration: none;
  color: #000;
  animation: splash-in 1.2s ease both;
}
.splash-name {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: letter-spacing 0.4s ease, opacity 0.3s ease;
}
.splash-sub {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a3a3a3;
}
.splash-logo:hover .splash-name { letter-spacing: 0.12em; }
@keyframes splash-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .splash-logo { animation: none; }
  .splash-name { transition: none; }
}
.film-block { width: 100%; }
.series-block .credits {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: #777;
}

/* ---------- Legal note on Contact ---------- */
.legal {
  margin-top: 90px;
  padding-top: 24px;
  border-top: 1px solid #e6e6e6;
}
.legal h2 {
  margin: 0 0 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a3a3a3;
}
main.page .legal p {
  font-size: 0.8rem;
  line-height: 1.6;
  color: #8a8a8a;
}
