/* ============================================
   Michele Finimondo Scarella — Photography Portfolio
   Design: pure grayscale, editorial serif/sans pairing,
   signature motif = 35mm contact-sheet frame numbers
   and sprocket-hole ticks, echoing analog B&W process.
   ============================================ */


:root {
  --bg: #ffffff;
  --bg-soft: #f4f4f2;
  --ink: #121212;
  --ink-soft: #6e6e6c;
  --line: #dedede;
  --serif: 'Aptos', 'Segoe UI', Georgia, sans-serif;
  --sans: 'Aptos', 'Segoe UI', Georgia, sans-serif;
  --hero-font: 'Aptos', 'Segoe UI', Georgia, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; display: block; }

/* Sprocket-hole tick row — signature motif referencing 35mm film edge */
.sprockets {
  display: flex;
  gap: 10px;
  padding: 0 32px;
  overflow: hidden;
  height: 6px;
  align-items: center;
}
.sprockets span {
  width: 4px;
  height: 4px;
  background: var(--line);
  flex: 0 0 auto;
  border-radius: 1px;
}

/* Header / Nav */
header.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  z-index: 50;
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.brand .initial {
  font-size: 19px;
  vertical-align: -1px;
}
.brand em {  }
nav.links {
  display: flex;
  gap: 32px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
nav.links a {
  color: var(--ink-soft);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
nav.links a:hover,
nav.links a.active {
  color: var(--ink);
  border-color: var(--ink);
}
.nav-toggle { display: none; }

@media (max-width: 720px) {
  nav.links { gap: 18px; font-size: 11px; }
}

/* Photo hero — full-bleed image, centered overlay text, nothing else */
.hero-photo {
  position: relative;
  height: 92vh;
  min-height: 560px;
  overflow: hidden;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) blur(6px);
  transform: scale(1.05);
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.42);
}
.hero-photo h1 {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: #fff;
  font-family: var(--hero-font);
  font-weight: 500;
  font-size: clamp(72px, 13vw, 190px);
  letter-spacing: -0.01em;
  z-index: 2;
  text-align: center;
}

/* Sections */
section { padding: 96px 32px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}
.section-head h2 {
  font-family: var(--serif);
  
  font-weight: 400;
  font-size: clamp(28px, 4vw, 42px);
  margin: 0;
}
.section-head .note {
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.04em;
  max-width: 320px;
  text-align: right;
}
@media (max-width: 700px) {
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head .note { text-align: left; }
  section { padding: 64px 20px; }
}

/* Frame — the signature card used across grids. Masonry columns so each
   photo keeps its true aspect ratio; nothing gets cropped. */
.frame {
  position: relative;
  background: var(--bg-soft);
  cursor: pointer;
  overflow: hidden;
}
.frame img {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(1);
  transition: transform 0.5s ease;
}
.frame:hover img { transform: scale(1.02); }
.frame .frame-no {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(0,0,0,0.55);
  padding: 3px 9px;
}

/* Grid preview on home */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
@media (max-width: 720px) {
  .grid-3 { grid-template-columns: 1fr; }
}

/* Gallery grid — original aspect ratio preserved (vertical + horizontal),
   ordered masonry columns so nothing gets cropped */
.grid-4 {
  column-count: 3;
  column-gap: 6px;
}
@media (max-width: 900px) {
  .grid-4 { column-count: 2; }
}
@media (max-width: 560px) {
  .grid-4 { column-count: 1; }
}
.frame {
  break-inside: avoid;
  margin-bottom: 6px;
}
.frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* Intro / About text blocks */
.lede {
  font-family: var(--serif);
  
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.35;
  max-width: 780px;
  margin: 0 0 24px;
}
.prose {
  max-width: 640px;
  color: var(--ink-soft);
  font-size: 16px;
}
.prose p { margin: 0 0 18px; }
.prose strong { color: var(--ink); font-weight: 500; }

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}
.about-portrait img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  filter: grayscale(1);
}

.stat-row {
  display: flex;
  gap: 48px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.stat-row div { border-top: 1px solid var(--line); padding-top: 12px; min-width: 140px; }
.stat-row .num { font-family: var(--serif);  font-size: 30px; display: block; }
.stat-row .label { font-size: 12px; color: var(--ink-soft); letter-spacing: 0.05em; text-transform: uppercase; }

/* Contact */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
@media (max-width: 800px) { .contact-wrap { grid-template-columns: 1fr; } }
.contact-link {
  display: block;
  font-family: var(--serif);
  
  font-size: clamp(26px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  transition: opacity 0.2s;
}
.contact-link:hover { opacity: 0.55; }
.contact-meta { color: var(--ink-soft); font-size: 13px; letter-spacing: 0.04em; margin-top: 6px; }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 0.04em;
}
@media (max-width: 600px) { footer { flex-direction: column; gap: 8px; text-align: center; } }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 88vh;
  filter: grayscale(1);
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-transform: uppercase;
}
.lightbox-cap {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  text-align: center;
  color: #eee;
  font-family: var(--serif);
  
  font-size: 18px;
  letter-spacing: 0.01em;
}
