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

:root {
  --mono: 'Space Mono', monospace;
  --serif: 'Cormorant', serif;
  --gap: 3px;

  --bg: #fff;
  --lightbox-bg: #fff;
  --fg: #000;
  --fg-dim: rgba(0, 0, 0, 0.45);
  --rule: rgba(0, 0, 0, 0.05);
  --veil: rgba(240, 240, 240, 0.25);
  --glass: rgba(255, 255, 255, 0.62);
  --glass-edge: rgba(255, 255, 255, 0.8);
  --glass-shadow: 0 12px 48px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);

  color-scheme: light dark;
}

/* Follows the visitor's system setting */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0b;
    --lightbox-bg: #000;
    --fg: #fff;
    --fg-dim: rgba(255, 255, 255, 0.5);
    --rule: rgba(255, 255, 255, 0.1);
    --veil: rgba(20, 20, 20, 0.35);
    --glass: rgba(34, 34, 34, 0.6);
    --glass-edge: rgba(255, 255, 255, 0.12);
    --glass-shadow: 0 12px 48px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

/* ---- Four-corner nav ---------------------------------------------------- */
.nav {
  position: fixed;
  z-index: 10;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}
.nav a {
  color: var(--fg);          /* JS forces #fff while over a thumbnail */
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.nav a:hover { opacity: 0.4; }
/* fixed height + centring gives TL and TR the same vertical centre */
.nav-tl { top: 28px; left: 40px; font-size: 11px; letter-spacing: 0.18em; display: flex; align-items: center; height: 11px; }
.nav-tr { top: 28px; right: 40px; display: flex; align-items: center; gap: 28px; height: 11px; }
.nav-bl { bottom: 28px; left: 40px; }
.nav-br { bottom: 28px; right: 40px; }

/* Nav on small screens */
@media (max-width: 768px) {
  .nav-tl { left: 16px; }
  .nav-tr { right: 16px; }
  .nav-bl { left: 16px; }
  .nav-br { right: 16px; }
}

/* ---- Contact modal ------------------------------------------------------ */
.contact {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--veil);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  backdrop-filter: blur(28px) saturate(160%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}
.contact.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.35s ease;
}

.contact-box {
  position: relative;
  width: 40%;
  max-width: 430px;
  padding: 56px 64px;
  text-align: center;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
}
.contact-close {
  position: absolute;
  top: 24px;
  right: 28px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.4;
  transition: opacity 0.2s;
}
.contact-close:hover { opacity: 1; }

.contact-section { margin-bottom: 32px; }
.contact-section:last-child { margin-bottom: 0; }
.contact-label {
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg);
}
.contact-agency {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.8;
}
.contact-detail {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  line-height: 1.8;
  color: var(--fg-dim);
}
.contact-detail a { color: inherit; text-decoration: none; }
.contact-detail a:hover { opacity: 0.5; }
.contact-divider { border: 0; border-top: 1px solid var(--rule); margin: 28px 0; }

@media (max-width: 768px) {
  .contact-box { width: calc(100% - 32px); padding: 48px 24px 32px; }
}

/* ---- Lightbox: video fills the window, no player chrome ------------------ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--lightbox-bg);   /* shows through the player's transparent letterbox */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.active { opacity: 1; pointer-events: auto; }

.lightbox-scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}
.lightbox-scroll::-webkit-scrollbar { display: none; }

.video { width: 100%; height: 100vh; height: 100dvh; scroll-snap-align: start; }
.video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  /* The Vimeo page is light-scheme. If the iframe's scheme differs from the page's (dark mode),
     browsers paint an opaque white backdrop behind it, which is what showed as white bars. */
  color-scheme: light;
}

.lightbox-close {
  position: fixed;
  top: 22px;
  right: 30px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  mix-blend-mode: difference;   /* legible over light or dark footage */
  opacity: 0.7;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }
