/* =====================
   FONTS
   ===================== */

@font-face {
  font-family: 'Thunder';
  src: url('assets/Thunder-MediumLC.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('assets/BeVietnamPro-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('assets/BeVietnamPro-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* =====================
   BASE & RESET
   ===================== */

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

:root {
  --bg: #141210;
  --surface: #1c1916;
  --border: #2a2420;
  --text-primary: #F3F3E3;
  --text-secondary: #C5C1B3;
  --text-muted: #936D57;
  --accent: #913A21;
  --font-sans: 'Be Vietnam Pro', sans-serif;
  --font-display: 'Thunder', sans-serif;
  --header-h: 64px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =====================
   HEADER
   ===================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  border-bottom: 1px solid var(--border);
  background-color: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
}


/* =====================
   HERO
   ===================== */

.hero {
  min-height: 100vh;
  padding-top: var(--header-h);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 40px;
  padding-right: 40px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.hero-content {
  max-width: 700px;
  margin-top: auto;
  padding-top: 120px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(80px, 12vw, 160px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 40px;
}

.hero-sub {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 380px;
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  gap: 32px;
  margin-top: auto;
  padding-top: 60px;
}

.hero-meta span {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* =====================
   GALLERY
   ===================== */

.gallery {
  padding: 80px 40px;
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 48px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.gallery-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.gallery-count {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* Grid */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 340px;
  gap: 2px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item--large {
  grid-column: span 2;
}

.gallery-item--wide {
  grid-column: span 2;
}

/* Image placeholder */

.gallery-image {
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1),
              filter 0.4s ease;
  filter: brightness(0.85);
}

/* Overlay info */

.gallery-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  transform: translateY(8px);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.gallery-title {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.gallery-tag {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.9;
}

/* Hover state */

.gallery-item:hover .gallery-image {
  transform: scale(1.03);
  filter: brightness(1);
}

.gallery-item:hover .gallery-info {
  opacity: 1;
  transform: translateY(0);
}

/* Thin border between tiles */
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  pointer-events: none;
}

/* =====================
   FOOTER
   ===================== */

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 40px;
  border-top: 1px solid var(--border);
}

.footer-logo img {
  height: 20px;
  width: auto;
  opacity: 0.4;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

/* =====================
   RESPONSIVE
   ===================== */

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 280px;
  }

  .hero-title {
    font-size: clamp(48px, 12vw, 100px);
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 0 20px;
  }

  .hero {
    padding-left: 20px;
    padding-right: 20px;
  }

  .gallery {
    padding: 60px 20px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  .gallery-item--large,
  .gallery-item--wide {
    grid-column: span 1;
  }

  .site-footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 24px 20px;
  }
}
