/* ========================================
   VPKT Gallery — The Captivity of Stills
   Vlad Popov · vpkt.me
   ======================================== */

/* --- 0. CUSTOM PROPERTIES --- */
:root {
  --font-headline: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Lora', Georgia, serif;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --text-xs: 0.694rem;
  --text-sm: 0.833rem;
  --text-base: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.563rem;
  --text-2xl: 1.953rem;
  --text-3xl: 2.441rem;
  --text-4xl: 3.052rem;
  --text-5xl: 3.815rem;

  --color-bg: #111111;
  --color-surface: #1A1A1A;
  --color-text: #E8E8E8;
  --color-text-secondary: #999999;
  --color-text-tertiary: #666666;
  --color-accent: #C4553A;
  --color-accent-hover: #E07050;
  --color-rule: rgba(255, 255, 255, 0.12);
  --color-rule-dark: rgba(255, 255, 255, 0.25);

  --nav-height: 64px;
  --max-width: 1280px;
  --gutter: 2rem;
}

/* --- 1. RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}

/* --- 2. NAVIGATION --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.nav.scrolled {
  background: rgba(17, 17, 17, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--color-rule);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--nav-height);
}
.logo {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.12em;
  color: #000;
  white-space: nowrap;
  background: var(--color-accent);
  padding: 0.3rem 0.6rem;
}
.menu {
  display: flex;
  gap: 2.5rem;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.menu a {
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}
.menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}
.menu a:hover {
  color: var(--color-accent);
}
.menu a:hover::after {
  width: 100%;
}
.nav-right {
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.nav-right a {
  transition: color 0.2s ease;
}
.nav-right a:hover {
  color: var(--color-accent);
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(17, 17, 17, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}
.menu-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-text);
  cursor: pointer;
  line-height: 1;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.mobile-menu-nav a {
  font-family: var(--font-headline);
  font-size: var(--text-2xl);
  font-weight: 700;
  padding: 0.6rem 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
}
.mobile-menu.open .mobile-menu-nav a {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu.open .mobile-menu-nav a:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.open .mobile-menu-nav a:nth-child(2) { transition-delay: 0.10s; }
.mobile-menu.open .mobile-menu-nav a:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-menu-nav a:nth-child(4) { transition-delay: 0.20s; }
.mobile-menu.open .mobile-menu-nav a:nth-child(5) { transition-delay: 0.25s; }
.mobile-menu.open .mobile-menu-nav a:nth-child(7) { transition-delay: 0.35s; }
.mobile-menu.open .mobile-menu-nav a:nth-child(8) { transition-delay: 0.40s; }
.mobile-menu-nav a:hover {
  color: var(--color-accent);
}
.mobile-menu-nav hr {
  width: 40px;
  border: none;
  border-top: 1px solid var(--color-rule);
  margin: 0.8rem 0;
}

/* --- 3. MASTHEAD --- */
.masthead {
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem var(--gutter) 1.5rem;
}
.hero-overline {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-text-secondary);
  margin-bottom: 0.8rem;
}
.hero-headline {
  font-family: var(--font-headline);
  font-size: var(--text-4xl);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}
.hero-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-text-secondary);
}

/* --- 4. MAIN 3-COLUMN GRID --- */
.main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem var(--gutter) 4rem;
  align-items: start;
}
.column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.column-title {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-bottom: 1.5px solid var(--color-rule-dark);
  padding-bottom: 0.4rem;
}

/* --- 5. CENTER COLUMN — HERO IMAGE --- */
.column-center {
  align-items: center;
}
.hero-image-wrapper {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  position: relative;
  cursor: crosshair;
  border: 1px solid var(--color-rule);
}
.hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center 30%;
}
.hero-grayscale-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  border-radius: 8px;
}

/* --- 6. SIDEBAR CARDS --- */
.sidebar-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-rule);
}
.sidebar-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.sidebar-image-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 0.2rem;
  border: 1px solid var(--color-rule);
}
.sidebar-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.sidebar-card:hover .sidebar-image-wrapper img {
  transform: scale(1.03);
}
.card-category {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
}
.sidebar-card-title {
  font-family: var(--font-headline);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.3;
}
.card-excerpt {
  font-size: var(--text-xs);
  line-height: 1.45;
  color: var(--color-text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
}

/* Text-only sidebar cards */
.sidebar-card--text {
  padding-top: 0.5rem;
}

/* --- 7. FEATURED BAND (compact) --- */
.featured-band {
  background: #0A0A0A;
  color: var(--color-text);
  margin-top: 3rem;
  border-top: 1px solid var(--color-rule);
  border-bottom: 1px solid var(--color-rule);
}
.featured-inner {
  display: flex;
  flex-direction: column;
  max-width: var(--max-width);
  margin: 0 auto;
}
.featured-image-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.featured-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.featured-text {
  padding: 1.5rem var(--gutter) 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.6rem;
}
.featured-label {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
}
.featured-title {
  font-family: var(--font-headline);
  font-size: var(--text-xl);
  font-weight: 900;
  line-height: 1.15;
}
.featured-excerpt {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 480px;
}
.featured-cta {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  transition: color 0.2s ease;
  cursor: pointer;
}
.featured-cta:hover {
  color: var(--color-accent-hover);
}

/* --- 8. CONTACT SECTION --- */
.contact-section {
  border-top: 1px solid var(--color-rule);
  padding: 4rem var(--gutter);
  text-align: center;
}
.contact-inner {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.contact-label {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
}
.contact-headline {
  font-family: var(--font-headline);
  font-size: var(--text-3xl);
  font-weight: 900;
  line-height: 1.1;
}
.contact-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}
.contact-email {
  font-family: var(--font-ui);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text);
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 2px;
  transition: color 0.2s ease;
}
.contact-email:hover {
  color: var(--color-accent);
}
.contact-socials {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}
.contact-social-link {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-tertiary);
  transition: color 0.2s ease;
}
.contact-social-link:hover {
  color: var(--color-text);
}

/* --- 9. FOOTER --- */
.footer {
  border-top: 1px solid var(--color-rule);
  padding: 3rem var(--gutter);
  text-align: center;
}
.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-brand {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}
.footer-copy {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
}

/* --- 9. SCROLL REVEAL --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- 10. RESPONSIVE: TABLET (768px+) --- */
@media (min-width: 768px) {
  .main-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .column-center {
    grid-column: 1 / -1;
    order: -1;
  }

  .featured-inner {
    flex-direction: row;
  }
  .featured-image-wrapper {
    width: 40%;
    aspect-ratio: auto;
    min-height: 220px;
  }
  .featured-text {
    width: 60%;
    padding: 2rem 2.5rem;
  }
  .featured-title {
    font-size: var(--text-2xl);
  }

  .hero-headline {
    font-size: var(--text-4xl);
  }
}

/* --- 11. RESPONSIVE: DESKTOP (1024px+) --- */
@media (min-width: 1024px) {
  .menu-toggle {
    display: none !important;
  }
  .nav-menu,
  .nav-right {
    display: flex;
  }

  .main-grid {
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2.5rem;
  }
  .column-left {
    grid-column: 1;
    grid-row: 1;
  }
  .column-center {
    grid-column: 2;
    grid-row: 1;
    padding-top: 2.4rem;
  }
  .column-right {
    grid-column: 3;
    grid-row: 1;
  }

  .hero-headline {
    font-size: var(--text-5xl);
  }
  .masthead {
    padding: 3rem var(--gutter) 1.5rem;
  }
}

/* --- 12. RESPONSIVE: MOBILE (<768px) --- */
@media (max-width: 767px) {
  .nav-menu,
  .nav-right {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }

  .masthead {
    padding: 1.5rem var(--gutter) 1rem;
  }
  .hero-headline {
    font-size: var(--text-3xl);
  }

  .main-grid {
    gap: 2rem;
  }

  .sidebar-image-wrapper {
    aspect-ratio: 16 / 10;
  }

  .featured-text {
    padding: 1.5rem var(--gutter) 2rem;
  }
}

/* --- 13. RESPONSIVE: LARGE (1440px+) --- */
@media (min-width: 1440px) {
  :root {
    --max-width: 1400px;
  }
  .hero-headline {
    font-size: 4.5rem;
  }
}
