/* ─── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #111111;
  --bg-light: #1a1a1a;
  --text: #ffffff;
  --text-muted: #888888;
  --accent: #cccccc;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

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

/* ─── HEADER ────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
  transition: background 0.3s ease;
}

.site-header.scrolled {
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(4px);
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: var(--text);
  white-space: nowrap;
}

nav {
  display: flex;
  gap: 2.5rem;
}

nav a {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--text);
}

/* ─── HERO ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-logo {
  font-family: var(--font-serif);
  font-size: clamp(5rem, 15vw, 12rem);
  font-weight: 300;
  letter-spacing: 0.3em;
  /* letter-spacing adds space after each letter but not before the first,
     so the text looks shifted right. text-indent compensates by pushing
     the block left by the same amount, keeping it visually centred. */
  text-indent: 0.3em;
  line-height: 1;
  color: var(--text);
}

.hero-tagline {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-indent: 0.4em; /* same fix as hero-logo — compensates for letter-spacing offset */
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 1rem;
}

/* scroll-down arrow */
.scroll-down {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
}

.scroll-down span,
.scroll-down span::before {
  display: block;
  width: 1px;
  height: 2.5rem;
  background: var(--accent);
  margin: 0 auto;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* ─── SECTION TITLES ────────────────────────────────────────── */
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-align: center;
  color: var(--text);
  margin-bottom: 3rem;
}

/* ─── GALLERY / MASONRY ─────────────────────────────────────── */
.gallery-section {
  padding: 6rem 2rem;
  background: var(--bg);
}

.masonry-grid {
  column-count: 3;
  column-gap: 0.75rem;
  max-width: 1400px;
  margin: 0 auto;
}

.photo-item {
  position: relative;
  break-inside: avoid;
  margin-bottom: 0.75rem;
  overflow: hidden;
  cursor: pointer;
  /* reveal: start hidden, slide up */
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.photo-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.photo-item img {
  display: block;
  width: 100%;
  /* taller than container so parallax movement doesn't show gaps */
  height: 110%;
  object-fit: cover;
  will-change: transform;
  /* no transition here — parallax is driven by JS on every frame */
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.photo-overlay span {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,0.5);
  padding-bottom: 0.2em;
}

.photo-item:hover .photo-overlay {
  opacity: 1;
}

/* ─── VIDEO ITEMS IN GALLERY ────────────────────────────────── */
/* The <video> inside a video-item fills the same space as an img */
.video-item video {
  display: block;
  width: 100%;
  height: 110%;
  object-fit: cover;
  will-change: transform;
}

/* Play icon instead of "View" text */
.video-item .photo-overlay span {
  font-size: 1.6rem;
  border-bottom: none;
  padding-bottom: 0;
  letter-spacing: 0;
}

/* Lightbox video — matches the lightbox image sizing */
#lightbox-video {
  max-width: 90vw;
  max-height: 85vh;
  outline: none;
  background: #000;
}

/* Responsive masonry */
@media (max-width: 900px) {
  .masonry-grid {
    column-count: 2;
  }
}

@media (max-width: 520px) {
  .masonry-grid {
    column-count: 1;
  }
}

/* ─── ABOUT ─────────────────────────────────────────────────── */
.about-section {
  padding: 6rem 2rem;
  background: var(--bg-light);
}

.about-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.about-text {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-muted);
  font-style: italic;
}

/* ─── CONTACT ───────────────────────────────────────────────── */
.contact-section {
  padding: 6rem 2rem;
  background: var(--bg);
  text-align: center;
}

.contact-text {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: var(--text);
  border-bottom: 1px solid var(--text-muted);
  padding-bottom: 0.2em;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.contact-email:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.social-links {
  margin-top: 2.5rem;
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.social-link {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.social-link:hover {
  color: var(--text);
}

/* ─── FOOTER ────────────────────────────────────────────────── */
.site-footer {
  padding: 2rem;
  text-align: center;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg);
  border-top: 1px solid #222;
}

/* ─── LIGHTBOX ──────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  display: block;
}

.lightbox-caption {
  margin-top: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.2s ease;
  z-index: 1000;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.2s ease;
  padding: 1rem;
  z-index: 1000;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
}

/* ─── MOBILE HEADER ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .site-header {
    padding: 1.2rem 1.5rem;
  }

  nav {
    gap: 1.5rem;
  }
}
