/* =========================================================
   DOLLY & RISHI — Visual Diary
   Dark, cinematic, minimal. Monochrome by design.
========================================================= */

:root {
  --bg: #121212;
  --bg-raised: #181818;
  --text: #ffffff;
  --muted: #8e8e93;
  --line: rgba(255, 255, 255, 0.08);
  --serif: 'Playfair Display', serif;
  --sans: 'Inter', sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== HEADER / NAV ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.75rem clamp(1.5rem, 5vw, 4rem);
  background: linear-gradient(to bottom, rgba(18, 18, 18, 0.55), transparent);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
}

.nav-links a {
  transition: color 0.3s var(--ease);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.nav-dot {
  color: var(--muted);
  opacity: 0.6;
  font-size: 0.7rem;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100svh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  animation: heroZoom 16s var(--ease) forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(18,18,18,0.35) 0%, rgba(18,18,18,0.25) 45%, rgba(18,18,18,0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
  opacity: 0;
  animation: heroReveal 1.4s var(--ease) 0.3s forwards;
}

@keyframes heroReveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.75rem, 8vw, 6rem);
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.02em;
}

.scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.scroll-cue span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--text);
  animation: scrollDrop 2.2s ease-in-out infinite;
}

@keyframes scrollDrop {
  0% { transform: translateY(-100%); }
  60% { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}

/* ===== GALLERY ===== */
.gallery-section {
  padding: clamp(5rem, 10vw, 9rem) clamp(1.5rem, 6vw, 5rem);
}

.gallery-intro {
  max-width: 620px;
  margin: 0 auto clamp(4rem, 8vw, 6.5rem);
  text-align: center;
}

.gallery-intro h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.9rem;
}

.gallery-intro p {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 300;
}

.gallery-group {
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-group + .gallery-group {
  margin-top: clamp(4rem, 8vw, 6rem);
}

.group-label {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

/* Masonry via CSS columns — reliable cross-browser, naturally staggered */
.masonry {
  columns: 3 260px;
  column-gap: 1.25rem;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  overflow: hidden;
  background: var(--bg-raised);
  position: relative;
}

.masonry-item img {
  aspect-ratio: 4 / 5;
  transition: transform 1.1s var(--ease), filter 1.1s var(--ease);
  filter: saturate(0.92) brightness(0.96);
}

.masonry-item.tall img { aspect-ratio: 3 / 4.6; }
.masonry-item.short img { aspect-ratio: 4 / 3.2; }

.masonry-item:hover img {
  transform: scale(1.06);
  filter: saturate(1) brightness(1);
}

/* ===== OUR STORY ===== */
.story-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  min-height: 90vh;
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 6vw, 5rem);
  max-width: 1400px;
  margin: 0 auto;
}

.story-media {
  height: clamp(360px, 55vw, 620px);
  overflow: hidden;
  background: var(--bg-raised);
}

.story-media img {
  filter: grayscale(0.35) brightness(0.85);
}

.story-text {
  max-width: 380px;
}

.story-eyebrow {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.story-copy {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
}

/* ===== FOOTER ===== */
.site-footer {
  text-align: center;
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--line);
}

.site-footer p {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

/* =========================================================
   RESPONSIVE
========================================================= */

/* Tablet */
@media (max-width: 1024px) {
  .masonry {
    columns: 2 240px;
  }

  .story-section {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .story-media {
    height: 50vw;
    max-height: 420px;
  }

  .story-text {
    max-width: 100%;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .site-header {
    padding: 1.25rem 1.25rem;
  }

  .nav-name {
    font-size: 1rem;
  }

  .nav-links {
    font-size: 0.75rem;
    gap: 0.6rem;
  }

  .masonry {
    columns: 1 100%;
  }

  .masonry-item.tall img,
  .masonry-item.short img {
    aspect-ratio: 4 / 5;
  }

  .story-media {
    height: 60vw;
  }

  .story-copy {
    font-size: 1.05rem;
  }
}