/* ============================================================
   PHOTOGRAPHY PORTFOLIO — 2026 EDITORIAL BLACK & WHITE
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black:      #090909;
  --dark:       #111111;
  --charcoal:   #1a1a1a;
  --mid:        #2c2c2c;
  --gray-dark:  #3a3a3a;
  --gray:       #666666;
  --gray-light: #999999;
  --silver:     #c8c8c8;
  --off-white:  #f0ede8;
  --white:      #ffffff;

  --font-serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;

  --nav-h:  76px;
  --ease:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-o: cubic-bezier(0.0, 0.0, 0.2, 1);
  --dur:    0.45s;
}

/* ── Base ─────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--black);
  color: var(--off-white);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: none;
}

/* Film grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
  z-index: 9997;
  mix-blend-mode: overlay;
}

a    { color: inherit; text-decoration: none; }
img  { display: block; width: 100%; height: 100%; object-fit: cover; }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

/* ── Custom Cursor ────────────────────────────────────────── */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--white);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s;
  will-change: transform;
}

.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease), height 0.35s var(--ease), border-color 0.3s;
  will-change: transform;
}

.cursor.active { width: 4px; height: 4px; }
.cursor-ring.active { width: 60px; height: 60px; border-color: var(--white); }

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: var(--nav-h);
  transition: background var(--dur) var(--ease), backdrop-filter var(--dur);
}

.nav.scrolled {
  background: rgba(9,9,9,0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  cursor: none;
}

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

.nav-links a {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray-light);
  transition: color 0.3s;
  position: relative;
  cursor: none;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0;
  width: 0; height: 1px;
  background: var(--white);
  transition: width 0.35s var(--ease);
}

.nav-links a:hover,
.nav-links a.active { color: var(--white); }

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px; height: 1px;
  background: var(--white);
  transition: transform 0.35s var(--ease), opacity 0.3s;
}

/* ── Hero (Home) ──────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--dark);
}

.hero-bg img {
  opacity: 0.48;
  filter: grayscale(100%) contrast(1.05);
  transition: transform 9s ease, opacity 1s;
}

.hero:hover .hero-bg img {
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(9,9,9,0.97) 0%,
    rgba(9,9,9,0.40) 45%,
    rgba(9,9,9,0.12) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 3.5rem 6rem;
  width: 100%;
}

.hero-eyebrow {
  font-size: 0.63rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 1.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-eyebrow::before {
  content: '';
  width: 2.5rem; height: 1px;
  background: var(--gray-light);
}

.hero-name {
  font-size: clamp(3.8rem, 10.5vw, 10rem);
  color: var(--white);
  font-weight: 300;
  font-style: italic;
  line-height: 0.92;
  margin-bottom: 2rem;
  letter-spacing: -0.03em;
}

.hero-tagline {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gray-light);
  font-weight: 300;
}

.scroll-indicator {
  position: absolute;
  bottom: 2.8rem;
  right: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gray);
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 55px;
  background: linear-gradient(to bottom, transparent, var(--gray));
  animation: scroll-pulse 2.2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%   { opacity: 0.3; transform: translateY(0); }
  50%  { opacity: 1;   transform: translateY(6px); }
  100% { opacity: 0.3; transform: translateY(0); }
}

/* ── Home — Intro ─────────────────────────────────────────── */
.intro {
  padding: 8rem 3.5rem;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 4rem;
  max-width: 1240px;
  margin: 0 auto;
  align-items: start;
}

.intro-label {
  font-size: 0.63rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gray);
  padding-top: 0.6rem;
  line-height: 1.6;
}

.intro-text {
  font-size: 1.3rem;
  line-height: 1.85;
  color: var(--silver);
  font-weight: 300;
}

.intro-text strong {
  color: var(--white);
  font-weight: 400;
}

/* ── Home — Featured ──────────────────────────────────────── */
.featured {
  padding: 0 3.5rem 7rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  max-width: 1240px;
  margin: 0 auto;
  align-items: end;
  border-top: 1px solid var(--gray-dark);
  padding-top: 4rem;
}

.featured-photo {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--charcoal);
  position: relative;
}

.featured-photo img {
  filter: grayscale(20%) contrast(1.05);
  transition: filter 0.6s, transform 0.8s var(--ease);
}

.featured-photo:hover img {
  filter: grayscale(0%) contrast(1);
  transform: scale(1.04);
}

.featured-info { padding-bottom: 0.5rem; }

.featured-label {
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 1rem;
}

.featured-title {
  font-size: 2.2rem;
  color: var(--white);
  margin-bottom: 1.8rem;
  font-style: italic;
}

.contact-email {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--gray-light);
  border-bottom: 1px solid var(--gray-dark);
  padding-bottom: 0.4rem;
  transition: color 0.3s, border-color 0.3s;
  display: inline-block;
  cursor: none;
}

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

/* ── Page Header (shared) ─────────────────────────────────── */
.page-header {
  padding-top: calc(var(--nav-h) + 5rem);
  padding-bottom: 4rem;
  padding-left: 3.5rem;
  padding-right: 3.5rem;
  border-bottom: 1px solid var(--gray-dark);
  max-width: 1240px;
  margin: 0 auto;
}

.page-header-label {
  font-size: 0.62rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.page-header-label::before {
  content: '';
  width: 2.5rem; height: 1px;
  background: var(--gray);
}

.page-header h1 {
  font-size: clamp(3.2rem, 7.5vw, 7rem);
  color: var(--white);
}

/* ── Portfolio Page ───────────────────────────────────────── */
.portfolio-grid {
  padding: 4rem 3.5rem;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
  cursor: none;
}

.portfolio-item::before {
  content: '';
  display: block;
  padding-bottom: 100%;
}

/* Wide accent items */
.portfolio-item.wide { grid-column: span 2; }
.portfolio-item.wide::before { padding-bottom: 50%; }

/* Tall accent items */
.portfolio-item.tall { grid-row: span 2; }

.portfolio-item img,
.photo-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--charcoal);
  color: var(--gray-dark);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  z-index: 0;
}

.photo-placeholder span {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-style: italic;
  color: var(--mid);
}

.portfolio-item img {
  object-fit: cover;
  filter: grayscale(30%) contrast(1.05);
  transition: filter 0.55s, transform 0.65s var(--ease);
  z-index: 1;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9,9,9,0.65);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.35s;
  z-index: 2;
}

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

.portfolio-item:hover img {
  filter: grayscale(0%) contrast(1);
  transform: scale(1.06);
}

.photo-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.photo-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--white);
  font-style: italic;
  line-height: 1;
  opacity: 0.5;
}

.photo-tag {
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gray-light);
}

/* ── About Page ───────────────────────────────────────────── */
.about-split {
  padding: 5rem 3.5rem;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 6rem;
  max-width: 1240px;
  margin: 0 auto;
  align-items: start;
}

.about-photo {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--charcoal);
  cursor: none;
}

.about-photo img {
  filter: grayscale(25%) contrast(1.05);
  transition: filter 0.6s, transform 0.7s var(--ease);
}

.about-photo:hover img {
  filter: grayscale(0%) contrast(1);
  transform: scale(1.04);
}

.about-text-section { padding-top: 0.5rem; }

.section-label {
  font-size: 0.62rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-label::before {
  content: '';
  width: 2.5rem; height: 1px;
  background: var(--gray);
}

.about-name {
  font-size: 2.8rem;
  color: var(--white);
  margin-bottom: 0.4rem;
  font-style: italic;
}

.about-role {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 3rem;
}

.about-intro {
  font-size: 1.05rem;
  line-height: 1.95;
  color: var(--silver);
  margin-bottom: 3rem;
}

.divider {
  width: 3.5rem; height: 1px;
  background: var(--gray-dark);
  margin: 3rem 0;
}

.artist-statement-label {
  font-size: 0.62rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 1.8rem;
}

.artist-statement {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  line-height: 1.75;
  color: var(--off-white);
  font-style: italic;
}

/* ── Contact Page ─────────────────────────────────────────── */
.contact-section {
  padding: 5rem 3.5rem;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7rem;
}

.contact-intro {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-style: italic;
  color: var(--white);
  line-height: 1.55;
  margin-bottom: 3.5rem;
}

.contact-item {
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--gray-dark);
}

.contact-item:last-child { border-bottom: none; margin-bottom: 0; }

.contact-item-label {
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.5rem;
}

.contact-item-value {
  font-size: 1rem;
  color: var(--off-white);
}

.contact-item-value a {
  transition: color 0.3s;
  cursor: none;
}

.contact-item-value a:hover { color: var(--white); }

.social-links {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--gray-light);
  transition: color 0.3s, gap 0.35s var(--ease);
  cursor: none;
}

.social-link::before {
  content: '';
  width: 1.5rem; height: 1px;
  background: currentColor;
  transition: width 0.35s var(--ease);
  flex-shrink: 0;
}

.social-link:hover {
  color: var(--white);
  gap: 1.6rem;
}

.social-link:hover::before { width: 2.5rem; }

.contact-banner {
  grid-column: 1 / -1;
  padding-top: 4rem;
  border-top: 1px solid var(--gray-dark);
  overflow: hidden;
}

.contact-huge {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 11vw, 11rem);
  color: var(--charcoal);
  line-height: 1;
  font-style: italic;
  white-space: nowrap;
  user-select: none;
  letter-spacing: -0.03em;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  padding: 2.5rem 3.5rem;
  border-top: 1px solid var(--gray-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-name {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--gray);
  font-style: italic;
}

.footer-copy {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--gray-dark);
}

/* ── Reveal Animation ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

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

.r-d1 { transition-delay: 0.08s; }
.r-d2 { transition-delay: 0.16s; }
.r-d3 { transition-delay: 0.24s; }
.r-d4 { transition-delay: 0.32s; }

/* ── Page Transition ──────────────────────────────────────── */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 9996;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.page-transition.loading { opacity: 1; pointer-events: all; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-photo {
    position: static;
    aspect-ratio: 4 / 5;
    max-height: 500px;
  }

  .contact-section {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }

  .nav { padding: 0 1.5rem; }

  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    height: 100vh; width: 72%;
    background: rgba(9,9,9,0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    transition: right 0.45s var(--ease);
    border-left: 1px solid var(--gray-dark);
  }

  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1rem; letter-spacing: 0.3em; }
  .nav-toggle { display: flex; z-index: 200; }

  .hero-content { padding: 0 1.5rem 4.5rem; }
  .scroll-indicator { right: 1.5rem; }

  .intro {
    grid-template-columns: 1fr;
    padding: 4.5rem 1.5rem;
    gap: 1.5rem;
  }

  .featured {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem 5rem;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 3rem 1.5rem;
    gap: 0.8rem;
  }

  .portfolio-item.wide {
    grid-column: span 1;
  }

  .portfolio-item.wide::before { padding-bottom: 100%; }

  .page-header {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .about-split, .contact-section {
    padding: 3rem 1.5rem;
  }

  .footer {
    padding: 2rem 1.5rem;
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .contact-section { padding: 2.5rem 1.5rem; }
}
