/* =============================================
   zombi.zone — static portfolio stylesheet
   Edit the variables below to change the look
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700;800&family=Syne+Mono&display=swap');

/* ── DESIGN TOKENS (edit here) ─────────────── */
:root {
  --bg:          #080808;
  --bg-surface:  #111111;
  --fg:          #e8e4df;
  --fg-muted:    #888880;
  --accent:      #f0cc00;        /* orange highlight */
  --border:      #222222;
  --font-display: 'Roboto Mono', sans-serif;
  --font-mono:    'Roboto Mono', monospace;
  --nav-height:   56px;
  --max-width:    1400px;
  --gap:          2px;           /* gap between grid images */
}

/* ── RESET ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ── NAVIGATION ─────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 100;
}
.nav-logo {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--accent);
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--fg-muted);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--fg); }

/* ── PAGE WRAPPER ───────────────────────────── */
.page {
  padding-top: var(--nav-height);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ── PAGE HEADER ────────────────────────────── */
.page-header {
  padding: 3rem 2rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--fg-muted);
  margin-bottom: 0.5rem;
}
.breadcrumb a:hover { color: var(--accent); }
.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* ── IMAGE GRID ─────────────────────────────── */
.grid {
  display: grid;
  gap: var(--gap);
  padding: var(--gap);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }

.grid-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-surface);
  cursor: pointer;
}
.grid-item.portrait  { aspect-ratio: 3/4; }
.grid-item.square    { aspect-ratio: 1/1; }
.grid-item.wide      { aspect-ratio: 16/9; }
.grid-item.wide-span { grid-column: span 2; aspect-ratio: 16/9; }

.grid-item img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.4s ease;
}
.grid-item:hover img { transform: scale(1.04); }

.grid-item .caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem 1rem 0.75rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
}
.grid-item .caption span { color: var(--accent); margin-left: 0.5rem; }
.grid-item:hover .caption { opacity: 1; transform: translateY(0); }

/* ── SERIES INDEX (overview page) ───────────── */
.series-index {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--gap);
  padding: var(--gap);
}
.series-card {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  padding:20%;
  background: var(--bg-surface);
}
.series-card img { transition: transform 0.6s ease; }
.series-card:hover img { transform: scale(1.06); }
.series-card .series-label {
  position: absolute;
  top: 30%; left: 0; right: 0;
  padding: 3rem 1.25rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
}
.series-card .series-label h2 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

/* ── VIDEO PLAYER ───────────────────────────── */
.video-wrap {
  margin: var(--gap);
  background: #000;
}
.video-wrap video {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

/* ── HOME PAGE ──────────────────────────────── */
.home-hero {
  height: calc(100vh - var(--nav-height));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem 2rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.home-hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.home-hero-content { position: relative; z-index: 1; }
.home-title {
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  margin-bottom: 1.5rem;
}
.home-title em {
  font-style: normal;
  color: var(--accent);
}
.home-subtitle {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: lowercase;
  color: var(--fg-muted);
  margin-bottom: 2.5rem;
}
.home-nav-grid {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.home-nav-btn {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  border: 1px solid var(--border);
  padding: 0.6rem 1.2rem;
  color: var(--fg-muted);
  transition: all 0.2s;
}
.home-nav-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── INFO PAGE ──────────────────────────────── */
.info-body {
  padding: 3rem 2rem;
  max-width: 680px;
  line-height: 1.7;
  font-size: 1rem;
  color: var(--fg-muted);
}
.info-body p { margin-bottom: 1.2rem; }
.info-gallery {
  display: flex;
  gap: var(--gap);
  padding: var(--gap);
}
.info-gallery .grid-item { flex: 1; }

/* ── LIGHTBOX ───────────────────────────────── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 200;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
#lightbox.open { display: flex; }
#lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  width: auto;
  height: auto;
}
#lightbox-close {
  position: absolute;
  top: 1.5rem; right: 2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: lowercase;
  color: var(--fg-muted);
  cursor: pointer;
  border: none;
  background: none;
}
#lightbox-close:hover { color: var(--accent); }

/* ── FOOTER ─────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--fg-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
footer a:hover { color: var(--accent); }

/* ── FADE-IN ANIMATION ──────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.6s ease forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
.grid-item:nth-child(1) { animation-delay: 0.05s; }
.grid-item:nth-child(2) { animation-delay: 0.10s; }
.grid-item:nth-child(3) { animation-delay: 0.15s; }
.grid-item:nth-child(4) { animation-delay: 0.20s; }
.grid-item:nth-child(5) { animation-delay: 0.25s; }
.grid-item:nth-child(6) { animation-delay: 0.30s; }
.series-card:nth-child(1) { animation-delay: 0.05s; }
.series-card:nth-child(2) { animation-delay: 0.10s; }
.series-card:nth-child(3) { animation-delay: 0.15s; }
.series-card:nth-child(4) { animation-delay: 0.20s; }
.series-card:nth-child(5) { animation-delay: 0.25s; }
.series-card:nth-child(6) { animation-delay: 0.30s; }

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 0 1rem; }
  .nav-links { gap: 1rem; }
  .nav-links li:nth-child(n+4) { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-item.wide-span { grid-column: span 1; }
  .page-header { padding: 2rem 1rem 1rem; }
  .home-hero { padding: 2rem 1rem; }
  footer { flex-direction: column; }
}
