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

:root {
  --bone:   #F5F0E8;
  --stone:  #E6DFD3;
  --ink:    #1C1915;
  --rust:   #7A4530;
  --mid:    #8A8078;
  --serif:  'Cormorant Garamond', Georgia, serif;
  --sans:   'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

/* ── Navigation ───────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  transition: background 0.3s, backdrop-filter 0.3s, transform 0.4s;
}

#nav.scrolled {
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#nav.hidden { transform: translateY(-100%); }

.nav-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--bone);
  transition: color 0.3s;
}

#nav.scrolled .nav-name { color: var(--ink); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone);
  opacity: 0.75;
  transition: opacity 0.2s, color 0.3s;
}

#nav.scrolled .nav-links a { color: var(--ink); }
.nav-links a:hover { opacity: 1; }

/* ── Hero ─────────────────────────────────────────── */
#hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.06);
  transition: transform 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-image.loaded { transform: scale(1); }

.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(28, 25, 21, 0.1) 0%,
    rgba(28, 25, 21, 0.5) 100%
  );
}

.hero-text {
  position: absolute;
  bottom: 13vh;
  left: 3rem;
  color: var(--bone);
  z-index: 2;
}

.hero-text h1 {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-top: 1.25rem;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  right: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--bone);
  opacity: 0.55;
  z-index: 2;
}

.hero-scroll span {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 56px;
  background: var(--bone);
  transform-origin: top;
  animation: scrollPulse 2.2s ease-in-out infinite;
}

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

/* ── Work ─────────────────────────────────────────── */
#work { padding: 6rem 0 0; }

.series {
  padding: 5rem 3rem 6rem;
  max-width: 1400px;
  margin: 0 auto;
}

.series--alt {
  background: var(--stone);
  max-width: none;
  margin: 0;
  padding: 5rem max(3rem, calc((100vw - 1400px) / 2 + 3rem)) 6rem;
}

.series-header {
  max-width: 580px;
  margin-bottom: 2.5rem;
}

.series-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.series-award {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 1.25rem;
}

.series-desc {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.85;
}

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

.gallery--pair {
  grid-template-columns: repeat(2, 1fr);
  max-width: 720px;
  grid-auto-rows: 420px;
}

.gallery-item {
  overflow: hidden;
  cursor: zoom-in;
  background: var(--stone);
}

.gallery-item img {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img { transform: scale(1.05); }

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

/* ── Instagram ────────────────────────────────────── */
#instagram {
  padding: 6rem 3rem;
  background: var(--stone);
}

.instagram-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.instagram-heading {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.35;
  margin-bottom: 3rem;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.instagram-grid .instagram-media {
  width: 100% !important;
  min-width: unset !important;
  max-width: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

.instagram-follow {
  display: inline-block;
  margin-top: 3rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.15rem;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.instagram-follow:hover { opacity: 1; }

@media (max-width: 900px) {
  #instagram { padding: 4rem 2rem; }
  .instagram-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

@media (max-width: 600px) {
  #instagram { padding: 3.5rem 1.5rem; }
  .instagram-grid { grid-template-columns: 1fr; }
}

/* ── About ────────────────────────────────────────── */
#about {
  padding: 8rem 3rem;
  background: var(--ink);
  color: var(--bone);
}

.about-inner {
  max-width: 660px;
  margin: 0 auto;
}

#about h2 {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 3rem;
  opacity: 0.35;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.95;
  margin-bottom: 1.5rem;
  opacity: 0.82;
}

.about-text p:last-of-type { margin-bottom: 0; }

.about-links {
  margin-top: 3rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.about-links a {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(245, 240, 232, 0.25);
  padding-bottom: 0.15rem;
  transition: border-color 0.2s;
  opacity: 0.7;
}

.about-links a:hover {
  border-color: rgba(245, 240, 232, 0.8);
  opacity: 1;
}

/* ── Contact ──────────────────────────────────────── */
#contact {
  padding: 8rem 3rem;
}

.contact-inner {
  max-width: 520px;
  margin: 0 auto;
}

#contact h2 {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  opacity: 0.35;
}

.contact-intro {
  font-size: 0.9rem;
  color: var(--mid);
  margin-bottom: 3rem;
}

.form-group { margin-bottom: 2rem; }

.form-group label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  opacity: 0.5;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--stone);
  padding: 0.5rem 0;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s;
  resize: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--ink);
}

button[type="submit"] {
  display: inline-block;
  background: var(--ink);
  color: var(--bone);
  border: none;
  padding: 1rem 3rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.25s;
}

button[type="submit"]:hover { background: var(--rust); }

.contact-direct {
  margin-top: 2.5rem;
  font-size: 0.85rem;
  color: var(--mid);
}

.contact-direct a {
  color: var(--ink);
  border-bottom: 1px solid var(--stone);
  transition: border-color 0.2s;
}

.contact-direct a:hover { border-color: var(--ink); }

/* ── Footer ───────────────────────────────────────── */
footer {
  padding: 2rem 3rem;
  border-top: 1px solid var(--stone);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  text-align: center;
}

/* ── Lightbox ─────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 21, 0.97);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

#lightbox-img {
  max-width: 92vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--bone);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
  padding: 0.5rem;
}

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

/* ── Scroll reveal ────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 900px) {
  #nav { padding: 1.25rem 2rem; }

  .hero-text { left: 2rem; }

  .series { padding: 4rem 2rem 5rem; }
  .series--alt { padding: 4rem 2rem 5rem; }

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

  .gallery--pair { max-width: 100%; }
}

@media (max-width: 600px) {
  #nav { padding: 1.25rem 1.5rem; }
  .nav-links { gap: 1.25rem; }

  .hero-text { left: 1.5rem; bottom: 10vh; }
  .hero-scroll { right: 1.5rem; }

  .series { padding: 3.5rem 1.5rem 4rem; }
  .series--alt { padding: 3.5rem 1.5rem 4rem; }

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

  .gallery-item--wide { grid-column: span 1; }
  .gallery--pair { grid-template-columns: 1fr; }

  #about { padding: 5rem 1.5rem; }
  #contact { padding: 5rem 1.5rem; }
}

@media (max-width: 380px) {
  .nav-links { display: none; }
}
