/* =========================================================
   SOSO — Street & Documentary Photography
   Dark cinematic theme. Static-only. No build step.
   ========================================================= */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --text: #e8e6e1;
  --text-dim: #8b8a85;
  --line: rgba(255,255,255,0.08);
  --accent: #d8b46a;        /* warm brass — sparingly */
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;

  --max: 1400px;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

::selection { background: var(--accent); color: #000; }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem var(--pad);
  z-index: 50;
  transition: background 0.4s ease, padding 0.3s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
}
.nav.is-scrolled {
  background: rgba(10,10,10,0.78);
  border-bottom-color: var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}
.nav__logo {
  display: inline-flex;
  align-items: baseline;
  letter-spacing: 0.14em;
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .nav__logo { font-size: 0.78rem; letter-spacing: 0.1em; }
  .logo-mark { font-size: 1.35rem !important; }
}
.logo-mark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 1;
  margin-right: 2px;
  color: var(--accent);
}
.nav__links {
  display: flex;
  gap: 2.2rem;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nav__links a {
  position: relative;
  padding-bottom: 4px;
  color: var(--text-dim);
  transition: color 0.25s ease;
}
.nav__links a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.35s ease;
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }

.nav__burger {
  display: none;
  width: 28px; height: 22px;
  position: relative;
}
.nav__burger span {
  position: absolute; left: 0; width: 100%; height: 1px;
  background: var(--text); transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav__burger span:nth-child(1) { top: 2px; }
.nav__burger span:nth-child(2) { top: 50%; }
.nav__burger span:nth-child(3) { bottom: 2px; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__media {
  position: absolute; inset: 0;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.05) brightness(0.8);
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(0,0,0,0.25), rgba(0,0,0,0.7) 70%),
    linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.2) 30%, rgba(10,10,10,0.9) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 var(--pad);
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}
.hero__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.5rem 0;
  opacity: 0;
  animation: fadeUp 1s ease 0.3s forwards;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 0;
}
.hero__title .line {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1.1s ease forwards;
}
.hero__title .line:nth-child(1) { animation-delay: 0.5s; }
.hero__title .line:nth-child(2) { animation-delay: 0.75s; }
.hero__title .italic { font-style: italic; color: var(--text-dim); }
.hero__sub {
  max-width: 540px;
  margin: 1.8rem 0 2.5rem 0;
  color: rgba(232,230,225,0.78);
  font-size: 1.05rem;
  opacity: 0;
  animation: fadeUp 1.1s ease 1s forwards;
}
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid rgba(255,255,255,0.3);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  transition: background 0.3s, color 0.3s, border-color 0.3s, padding 0.3s;
  opacity: 0;
  animation: fadeUp 1.1s ease 1.2s forwards;
}
.hero__cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  padding-right: 2rem;
}
.hero__cta svg { transition: transform 0.3s; }
.hero__cta:hover svg { transform: translateY(3px); }

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
  z-index: 2;
}
.hero__scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(180deg, var(--text-dim), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%      { opacity: 1;   transform: scaleY(1.15); }
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Sections shared ---------- */
.work, .about, .contact {
  padding: clamp(5rem, 12vw, 10rem) var(--pad);
  max-width: var(--max);
  margin: 0 auto;
}
.section-head {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.section-head__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}
.section-head__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}
.section-head__sub {
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto;
}

/* ---------- Series ---------- */
.series {
  margin-bottom: clamp(4rem, 8vw, 7rem);
}
.series:last-child { margin-bottom: 0; }

.series__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.series__title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0;
  letter-spacing: -0.01em;
}
.series__meta {
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0;
}

/* ---------- Gallery (masonry-ish CSS grid) ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery__item {
  margin: 0;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--bg-2);
  cursor: zoom-in;
}
.gallery__item.span-2 {
  grid-column: span 2;
  aspect-ratio: 16 / 10;
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.2, 0.6, 0.2, 1), filter 0.5s;
  filter: grayscale(0.1) brightness(0.95);
}
.gallery__item:hover img {
  transform: scale(1.04);
  filter: grayscale(0) brightness(1.05);
}
.gallery__item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.45));
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.gallery__item:hover::after { opacity: 1; }

/* ---------- Parallax (scroll-linked movement) ---------- */
.parallax {
  position: relative;
  overflow: hidden;
  will-change: transform;
}
.parallax > img {
  width: 100%;
  height: 130%;            /* extra height so we can translate without exposing edges */
  object-fit: cover;
  position: absolute;
  top: -15%;
  left: 0;
  will-change: transform;
  transform: translate3d(0, 0, 0);  /* JS will set this */
}

/* Full-bleed quote band between galleries */
.parallax-band {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);   /* break out of section padding */
  height: 70vh;
  margin-top: clamp(2rem, 5vw, 4rem);
  margin-bottom: clamp(3rem, 7vw, 5rem);
}
.parallax-band__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.55), rgba(10,10,10,0.85));
  z-index: 1;
}
.parallax-band__quote {
  position: absolute;
  inset: 0;
  z-index: 2;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.6rem, 4vw, 3rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  padding: 0 var(--pad);
  color: rgba(232,230,225,0.95);
}
.parallax-band__quote .italic { font-style: italic; color: var(--accent); }
.parallax-band__quote small {
  display: block;
  margin-top: 1.2rem;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---------- About ---------- */
.about { background: linear-gradient(180deg, var(--bg), var(--bg-2) 40%, var(--bg)); }
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.about__photo {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.about__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.4) contrast(1.05);
}
.about__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0.6rem 0 1.5rem;
}
.about__text p { color: rgba(232,230,225,0.78); margin: 0 0 1rem; }
.about__facts {
  list-style: none;
  padding: 0;
  margin: 2.2rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
.about__facts li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.about__facts span {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.about__facts strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.05rem;
}

/* ---------- Events / For Hire ---------- */
.events {
  padding: 0 0 clamp(5rem, 12vw, 9rem);
}
.events__hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 85vh;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: clamp(3rem, 7vw, 5rem);
}
.events__hero > img {
  width: 100%;
  height: 130%;
  object-fit: cover;
  position: absolute;
  top: -15%;
  left: 0;
  filter: grayscale(0.25) contrast(1.05) brightness(0.7);
}
.events__hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0.35), rgba(0,0,0,0.85) 75%),
    linear-gradient(180deg, rgba(10,10,10,0.4), rgba(10,10,10,0.8));
  z-index: 1;
}
.events__hero-text {
  position: relative;
  z-index: 2;
  max-width: 880px;
  padding: 0 var(--pad);
  text-align: center;
}
.events__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin: 1rem 0 1.6rem;
}
.events__title .line { display: block; }
.events__title .italic { font-style: italic; color: var(--text-dim); }
.events__sub {
  max-width: 600px;
  margin: 0 auto;
  color: rgba(232,230,225,0.82);
  font-size: 1.05rem;
}

.events__grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.event-card {
  border: 1px solid var(--line);
  padding: 2rem 1.8rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  transition: border-color 0.3s, transform 0.4s, background 0.3s;
}
.event-card:hover {
  border-color: rgba(216,180,106,0.45);
  background: linear-gradient(180deg, rgba(216,180,106,0.04), rgba(255,255,255,0));
  transform: translateY(-4px);
}
.event-card__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--accent);
  margin: 0 0 0.4rem;
  letter-spacing: 0.1em;
}
.event-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.6rem;
  margin: 0 0 1rem;
}
.event-card p {
  color: rgba(232,230,225,0.75);
  margin: 0 0 1rem;
  font-size: 0.95rem;
}
.event-card__meta {
  font-size: 0.72rem !important;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim) !important;
  margin: 1.2rem 0 0 !important;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.events__cta {
  text-align: center;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding: 0 var(--pad);
}

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact__inner { max-width: 720px; margin: 0 auto; }
.contact__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.8rem, 7vw, 5rem);
  margin: 0.5rem 0 1rem;
  letter-spacing: -0.01em;
}
.contact__sub { color: var(--text-dim); margin: 0 0 2.5rem; }
.contact__email {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  color: var(--accent);
  border-bottom: 1px solid rgba(216,180,106,0.35);
  padding-bottom: 4px;
  transition: border-color 0.3s, color 0.3s;
}
.contact__email:hover { border-color: var(--accent); color: #f0d18a; }
.contact__social {
  list-style: none;
  padding: 0;
  margin: 3rem 0 0;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.contact__social a:hover { color: var(--text); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 2rem var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.footer p { margin: 0; }
.footer__meta { font-style: italic; font-family: var(--serif); font-size: 0.9rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.96);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox.is-open {
  display: flex;
  opacity: 1;
}
.lightbox__figure {
  margin: 0;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.lightbox__figure img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
}
.lightbox__figure figcaption {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  color: var(--text);
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, transform 0.25s;
}
.lightbox__close { top: 1.5rem; right: 1.5rem; }
.lightbox__nav--prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255,255,255,0.1); }
.lightbox__nav--prev:hover { transform: translateY(-50%) translateX(-3px); }
.lightbox__nav--next:hover { transform: translateY(-50%) translateX(3px); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .gallery__item.span-2 { grid-column: span 2; aspect-ratio: 16/10; }
  .about__inner { grid-template-columns: 1fr; }
  .about__photo { max-width: 420px; margin: 0 auto; }
  .about__facts { grid-template-columns: 1fr 1fr; }
  .events__grid { grid-template-columns: 1fr; gap: 1rem; }
  .events__hero { height: 70vh; min-height: 460px; }
  .parallax-band { height: 55vh; }
}
@media (max-width: 640px) {
  .nav__links {
    position: fixed;
    inset: 0;
    background: rgba(10,10,10,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    font-size: 1.2rem;
    transform: translateX(100%);
    transition: transform 0.4s ease;
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__burger { display: block; z-index: 60; position: relative; }
  .nav__burger.is-open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
  .nav__burger.is-open span:nth-child(2) { opacity: 0; }
  .nav__burger.is-open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

  .gallery { grid-template-columns: 1fr; }
  .gallery__item, .gallery__item.span-2 { aspect-ratio: 4/5; grid-column: span 1; }
  .about__facts { grid-template-columns: 1fr; }
  .footer { flex-direction: column; align-items: flex-start; }
  .contact__social { flex-wrap: wrap; gap: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
