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

/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --gap: 4px;
  --black: #000;
  --white: #fff;
  --font: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
}

html, body {
  background: var(--white);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  font-family: var(--font);
  font-weight: 300;
}

/* ─── HEADER ─── */
header {
  text-align: center;
  padding: 26px 20px 12px;
  position: relative;
}

.site-title {
  font-family: var(--font);
  font-weight: 300;
  font-size: 18px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  display: inline-block;
  line-height: 1;
  transition: opacity 0.2s;
}
.site-title:hover { opacity: 0.45; }

/* ─── NAV ─── */
nav {
  text-align: center;
  padding: 0 20px 20px;
}

.nav-inner {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-inner a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--black);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: opacity 0.15s;
}
.nav-inner a:hover { opacity: 0.45; }
.nav-inner a.active { border-bottom-color: var(--black); }

.nav-sep {
  color: #aaa;
  font-size: 11px;
  margin: 0 10px;
  user-select: none;
}

/* ─── CONTENT WIDTH ─── */
#projects,
.video-embed,
.stills {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── TRIPTYCH STRIP ─── */
.triptych {
  display: block;
  width: 100%;
  margin-bottom: var(--gap);
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  background: var(--white);
  position: relative;
}

.triptych img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s;
}

/* Title overlay — hidden by default, shown on hover */
.triptych-title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.triptych-title span {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--black);
}

.triptych:hover img { opacity: 0; }
.triptych:hover .triptych-title { opacity: 1; }

/* Placeholder for projects without thumbnails */
.triptych.placeholder {
  aspect-ratio: 5.45 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
}

.thumb-label {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #aaa;
}

/* ─── VIDEO PAGE ─── */
.video-back {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px 12px;
}
.video-back a {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: #999;
  transition: color 0.2s;
}
.video-back a:hover { color: var(--black); }

#embeds {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.video-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-embed iframe {
  width: 100%; height: 100%;
  border: none; display: block;
}

/* Stills below video */
.stills {
  margin-top: var(--gap);
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}
.still-strip {
  width: 100%;
  background: #000;
  overflow: hidden;
}
.still-strip img {
  width: 100%; height: 100%;
  display: block;
  object-fit: contain;
}
.still-strip:empty { display: none; }

/* ─── CONTACT ─── */
.contact-layout {
  display: flex;
  align-items: flex-start;
  max-width: 800px;
  margin: 0 auto;
  padding: 44px 28px 80px;
  gap: 52px;
}

.contact-photo {
  flex: 0 0 42%;
}
.contact-photo img {
  width: 100%;
  display: block;
  filter: grayscale(15%);
}

.contact-wrap {
  flex: 1;
  padding-top: 4px;
}
.contact-wrap p {
  font-size: 14px;
  line-height: 1.85;
  color: #383838;
  font-weight: 300;
  margin-bottom: 14px;
}
.contact-email {
  display: inline-block;
  margin-top: 18px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid var(--black);
  padding-bottom: 1px;
  transition: opacity 0.2s;
}
.contact-email:hover { opacity: 0.4; }

@media (max-width: 600px) {
  .contact-layout {
    flex-direction: column;
    gap: 28px;
    padding: 32px 20px 60px;
  }
  .contact-photo { flex: 0 0 auto; width: 100%; }
}

/* ─── FOOTER ─── */
footer {
  text-align: center;
  padding: 32px 20px 40px;
}
.footer-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}
.footer-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border: 1px solid #ccc;
  border-radius: 50%;
  color: var(--black);
  text-decoration: none;
  transition: opacity 0.2s;
}
.footer-icons a:hover { opacity: 0.45; }
.footer-icons svg { width: 14px; height: 14px; fill: currentColor; }
.footer-copy {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #aaa;
}

/* ─── MOBILE MENU ─── */
.hamburger {
  display: none;
  position: absolute;
  top: 26px; right: 18px;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span { display: block; width: 20px; height: 1px; background: var(--black); }

.mobile-menu {
  display: none;
  position: fixed; inset: 0;
  background: var(--white);
  z-index: 500;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
  font-family: var(--font);
  font-weight: 300;
  font-size: 22px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--black);
}
.mobile-close {
  position: absolute; top: 18px; right: 20px;
  font-size: 28px; line-height: 1;
  background: none; border: none; cursor: pointer; color: var(--black);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 700px) {
  .hamburger { display: flex; }
  .nav-inner { display: none; }
}
@media (max-width: 420px) {
  .site-title { font-size: 16px; }
}
