/* Photography portfolio – minimal, editorial */

:root {
  --bg: #0d0d0c;
  --bg-soft: #161614;
  --text: #f5f3ef;
  --text-muted: #9a968f;
  --accent: #c9a962;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --space: clamp(1.5rem, 4vw, 3rem);
  --max-width: 1400px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space) clamp(1.5rem, 5vw, 3rem);
  background: linear-gradient(to bottom, rgba(13, 13, 12, 0.9), transparent);
  transition: background 0.3s ease;
}

.header.scrolled {
  background: rgba(13, 13, 12, 0.95);
}

.logo {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
}

.menu-btn span {
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--space) * 2);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--bg-soft) var(--hero-image) center / cover no-repeat;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13, 13, 12, 0.4) 0%, rgba(13, 13, 12, 0.85) 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(13, 13, 12, 0.5) 100%);
  pointer-events: none;
}

.hero-title {
  position: relative;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 12vw, 8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}

.hero-title .line {
  display: block;
  opacity: 0;
  transform: translateY(1.2em);
  animation: reveal 1s ease forwards;
}

.hero-title .line:nth-child(2) {
  animation-delay: 0.15s;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  position: relative;
  margin: 1rem 0 2rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0;
  animation: reveal 0.8s ease 0.4s forwards;
}

.hero-cta {
  position: relative;
  display: inline-block;
  padding: 0.9rem 2rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid rgba(245, 243, 239, 0.4);
  opacity: 0;
  animation: reveal 0.8s ease 0.6s forwards;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.hero-cta:hover {
  border-color: var(--accent);
  background: rgba(201, 169, 98, 0.1);
}

/* Section common */
.section-label {
  font-family: var(--serif);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

/* Gallery */
.gallery {
  padding: calc(var(--space) * 3) clamp(1.5rem, 5vw, 3rem);
  max-width: var(--max-width);
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.gallery-item {
  cursor: pointer;
}

.gallery-image-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.gallery-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover .gallery-image-wrap img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 13, 12, 0.7) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

/* About */
.about {
  padding: calc(var(--space) * 3) clamp(1.5rem, 5vw, 3rem);
  background: var(--bg-soft);
}

.about-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-inner {
    grid-template-columns: 0.9fr 1fr;
    gap: 4rem;
  }
}

.about-image {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-lead {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.35;
  margin: 0 0 1.5rem;
  color: var(--text);
}

.about-content p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  max-width: 52ch;
}

/* Contact */
.contact {
  padding: calc(var(--space) * 3) clamp(1.5rem, 5vw, 3rem);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-lead {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 1rem;
}

.contact-email {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.contact-links a {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(13, 13, 12, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: var(--space);
  right: clamp(1.5rem, 5vw, 3rem);
  width: 48px;
  height: 48px;
  font-size: 2rem;
  line-height: 1;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.lightbox-close:hover {
  color: var(--accent);
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.lightbox-content img {
  max-height: 75vh;
  width: auto;
  object-fit: contain;
}

.lightbox-caption {
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* Footer */
.footer {
  padding: var(--space) clamp(1.5rem, 5vw, 3rem);
  text-align: center;
  border-top: 1px solid rgba(245, 243, 239, 0.08);
}

.footer p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Mobile nav */
@media (max-width: 767px) {
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 80%;
    max-width: 280px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: var(--bg);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 2rem;
  }

  .nav.open {
    transform: translateX(0);
  }

  .menu-btn {
    display: flex;
    z-index: 101;
  }

  .menu-btn.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-btn.open span:nth-child(2) {
    opacity: 0;
  }

  .menu-btn.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}
