/* Banked Frames */

:root {
  --bg: #000;
  --white: #f0f0f0;
  --red: #6822f2;
  --muted: #383838;
  --muted-light: #787878;
  --border: rgba(255,255,255,0.07);
  --font: 'Inter', sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  animation: pagein 0.7s ease both;
}
@keyframes pagein {
  from { opacity: 0; }
  to   { opacity: 1; }
}


a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; color: inherit; }

img {
  display: block;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

.protect {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
}

/* ---- Nav ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 48px;
  height: 56px;
  background: rgba(8,8,8,0.88);
  border-bottom: 1px solid var(--border);
}

.nav-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--muted-light);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.15s, transform 0.2s cubic-bezier(0.23,1,0.32,1);
  will-change: transform;
}
.nav-links a:hover { color: var(--white); }

/* scroll progress */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--red);
  z-index: 200;
  pointer-events: none;
}

/* custom cursor */
@media (hover: hover) {
  *, *::before, *::after { cursor: none !important; }
  .cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 5px; height: 5px;
    background: var(--white);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    will-change: transform;
    transform: translate(-50%, -50%);
    transition: opacity 0.15s;
  }
  .cursor-ring {
    position: fixed;
    top: 0; left: 0;
    width: 32px; height: 32px;
    border: 1px solid rgba(240,240,240,0.28);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    will-change: left, top;
    transform: translate(-50%, -50%);
    transition: border-color 0.3s, width 0.35s cubic-bezier(0.23,1,0.32,1),
                height 0.35s cubic-bezier(0.23,1,0.32,1), opacity 0.15s;
  }
  body.cursor-hover .cursor-dot { opacity: 0; }
  body.cursor-hover .cursor-ring { width: 46px; height: 46px; border-color: var(--red); }
  body.cursor-out .cursor-dot,
  body.cursor-out .cursor-ring { opacity: 0; }
}

/* page exit */
@keyframes pageout { to { opacity: 0; } }
body.page-exit { animation: pageout 0.35s ease forwards; pointer-events: none; }

/* nav auto-hide */
.nav { transition: transform 0.45s cubic-bezier(0.76,0,0.24,1); }
.nav.nav--hidden { transform: translateY(-100%); }

/* mute button */
.nav-mute {
  position: absolute;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--muted-light);
  transition: color 0.15s;
}
.nav-mute:hover { color: var(--white); }
.nav-mute svg { width: 16px; height: 16px; }
.nav-mute .mute-icon-off { display: none; }
.nav-mute.muted .mute-icon-on  { display: none; }
.nav-mute.muted .mute-icon-off { display: block; }

/* nav logo */
.nav-brand-img {
  height: 20px;
  width: auto;
  opacity: 0.6;
  pointer-events: none;
  display: block;
  filter: brightness(0) invert(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  z-index: 60;
  position: absolute;
  right: 24px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

/* ---- Dump Grid ---- */
.dump {
  padding-top: 104px;
  padding-left: 2px;
  padding-right: 2px;
  padding-bottom: 2px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.shot {
  position: relative;
  overflow: hidden;
  background: #111;
  cursor: pointer;
}

.shot-img {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.shot-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.85) contrast(1.1);
  transition: filter 0.55s cubic-bezier(0.16,1,0.3,1);
}
.shot:hover .shot-img img {
  filter: grayscale(0%) brightness(1) contrast(1);
}

/* reveal */
.shot {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.shot.visible {
  opacity: 1;
  transform: none;
}

/* ---- Footer ---- */
.footer {
  margin-top: 80px;
  padding: 24px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bf-logo {
  height: 16px;
  width: auto;
  opacity: 0.22;
  pointer-events: none;
  transition: opacity 0.2s;
  filter: brightness(0) invert(1);
}
.footer-bf-logo:hover { opacity: 0.5; }

.footer-ig {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-light);
  transition: color 0.15s;
}
.footer-ig:hover { color: var(--white); }

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4,4,4,0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lb-stage {
  position: relative;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-stage img {
  max-width: 92vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lb-close {
  position: absolute;
  top: 20px; right: 24px;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-light);
  transition: color 0.15s;
}
.lb-close:hover { color: var(--white); }

.lb-prev, .lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  font-weight: 200;
  color: var(--muted);
  padding: 24px 20px;
  transition: color 0.15s;
}
.lb-prev { left: 0; }
.lb-next { right: 0; }
.lb-prev:hover, .lb-next:hover { color: var(--white); }

/* ==============================
   MOBILE
   ============================== */
@media (max-width: 768px) {
  .nav { padding: 0 20px; }

  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    background: var(--bg);
    transform: translateY(-100%);
    transition: transform 0.35s cubic-bezier(0.76,0,0.24,1);
    z-index: 55;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { font-size: 0.85rem; color: var(--white); }

  .nav-toggle { display: flex; }
  .nav-toggle.open span:first-child { transform: translateY(3px) rotate(45deg); }
  .nav-toggle.open span:last-child  { transform: translateY(-3px) rotate(-45deg); }

  .dump {
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    padding-top: 88px;
    padding-left: 2px;
    padding-right: 2px;
    padding-bottom: 2px;
  }

  .nav-mute { right: 60px; }
  .footer { padding: 20px 24px; }
}

@media (max-width: 480px) {
  .dump { grid-template-columns: repeat(2, 1fr); }
}
