/* =============================================
   FILMORA VINTAGE — Film & Grain Theme
   ============================================= */

:root {
  --bg:        #1a1510;
  --surface:   #211a13;
  --paper:     #2e2519;
  --text:      #e8dcc8;
  --muted:     #7a6e5e;
  --faint:     #3a3025;
  --amber:     #c8922a;
  --cream:     #f0e6cc;
  --sepia:     #8b6914;
  --red:       #8b2212;
  --nav-h:     58px;
  --max-w:     1300px;
  --gap:       clamp(1rem, 3vw, 2.5rem);

  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-mono:    'DM Mono', 'Courier New', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-mono);
  font-weight: 300;
  line-height: 1.7;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a   { color: inherit; text-decoration: none; }

/* ── GRAIN OVERLAY ── */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  mix-blend-mode: overlay;
}

/* ── NAV ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gap);
  border-bottom: 1px solid transparent;
  transition: background .4s, border-color .4s;
}

#navbar.scrolled {
  background: rgba(26,21,16,.96);
  border-color: var(--faint);
  backdrop-filter: blur(8px);
}

.nav-logo {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--cream);
}

.logo-f {
  color: var(--amber);
  font-style: italic;
}

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

.nav-links a {
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}
.nav-links a:hover { color: var(--amber); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1px;
  background: var(--text);
}

/* ── HERO ── */
.hero {
  min-height: 100svh;
  padding-top: var(--nav-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

/* Film edge strip at top */
.hero-film-strip {
  position: absolute;
  top: var(--nav-h);
  left: 0; right: 0;
  height: 28px;
  background: #000;
  border-bottom: 1px solid #333;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0 1.5rem;
  overflow: hidden;
  font-size: .6rem;
  letter-spacing: .18em;
  color: #555;
  font-family: var(--ff-mono);
}

.hero-photo-wrap {
  position: relative;
  width: min(760px, 90vw);
  aspect-ratio: 3/2;
  margin-top: 1.5rem;
  box-shadow:
    0 0 0 8px var(--surface),
    0 0 0 9px var(--faint),
    0 30px 80px rgba(0,0,0,.7);
  animation: fadeIn 1.2s ease both;
}

.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: sepia(20%) contrast(1.05) brightness(.92);
}

.hero-empty {
  background: var(--paper);
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: .7rem;
  letter-spacing: .1em;
}
.hero-empty::after { content: 'Add: images/featured.jpg'; }

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,.6) 100%);
  pointer-events: none;
}

/* Fake film scratch */
.hero-scratch {
  position: absolute;
  top: 0; bottom: 0;
  left: 38%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.06) 20%, rgba(255,255,255,.03) 60%, transparent);
  pointer-events: none;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: min(760px, 90vw);
  animation: fadeUp .8s .5s both;
}

.hero-frame-num {
  font-size: 3rem;
  font-family: var(--ff-display);
  font-weight: 700;
  color: var(--faint);
  letter-spacing: -.02em;
  user-select: none;
}

.hero-title-wrap { flex: 1; }

.hero-roll {
  font-size: .6rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: .3rem;
}

.hero-title-wrap h1 {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 700;
  line-height: .95;
  color: var(--cream);
  letter-spacing: .04em;
}

.hero-tagline {
  font-size: .85rem;
  color: var(--muted);
  margin-top: .4rem;
}

.hero-btn {
  display: inline-block;
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  border: 1px solid var(--sepia);
  color: var(--amber);
  padding: .75rem 1.6rem;
  white-space: nowrap;
  transition: background .25s, color .25s;
}
.hero-btn:hover {
  background: var(--amber);
  color: var(--bg);
}

/* ── GALLERY — FILM ROLL ── */
.gallery-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  overflow-x: hidden;
}

.gallery-header {
  max-width: var(--max-w);
  margin: 0 auto clamp(2rem, 4vw, 3.5rem);
  padding: 0 var(--gap);
  display: flex;
  align-items: baseline;
  gap: 2rem;
}

.roll-label {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.roll-num {
  font-size: .6rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--amber);
}

.roll-film {
  font-size: .55rem;
  letter-spacing: .15em;
  color: var(--muted);
  text-transform: uppercase;
}

.gallery-header h2 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--cream);
}

/* Film row — mimics physical film strip */
.film-row {
  display: flex;
  align-items: stretch;
  background: #0a0906;
  border-top: 2px solid #111;
  border-bottom: 2px solid #111;
  margin-bottom: 6px;
  min-height: 300px;
}

.sprocket-strip {
  width: 28px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  background: #0d0b08;
  border-right: 1px solid #1a1814;
  border-left:  1px solid #1a1814;
  padding: 1rem 0;
  gap: .6rem;
}
.sprocket-strip.right {
  border-right: none;
  border-left: 1px solid #222;
}

.hole {
  width: 14px; height: 10px;
  background: var(--bg);
  border-radius: 2px;
  border: 1px solid #2a2520;
}

.frames-strip {
  flex: 1;
  display: flex;
  gap: 4px;
  padding: 12px 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.frames-strip::-webkit-scrollbar { display: none; }

.frame {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.frame-sm  { width: 200px; }
.frame-lg  { width: 300px; }
.frame-xl  { width: 420px; }

.frame-inner {
  flex: 1;
  overflow: hidden;
  background: var(--paper);
  position: relative;
}

.frame-inner img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: sepia(15%) contrast(1.08) brightness(.88);
  transition: filter .5s, transform .5s;
}

.frame:hover .frame-inner img {
  filter: sepia(0%) contrast(1.05) brightness(1);
  transform: scale(1.03);
}

/* Vignette per frame */
.frame-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.45) 100%);
  pointer-events: none;
}

.frame figcaption {
  font-size: .55rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: 0 2px;
}

.f-num {
  color: var(--sepia);
  font-weight: 400;
}

/* ── ABOUT ── */
.about-section {
  background: var(--surface);
  padding: clamp(4rem, 8vw, 7rem) var(--gap);
  border-top: 1px solid var(--faint);
}

.about-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.polaroid {
  background: var(--cream);
  padding: 12px 12px 48px;
  box-shadow: 4px 8px 30px rgba(0,0,0,.5);
  transform: rotate(-2deg);
  transition: transform .4s;
}
.polaroid:hover { transform: rotate(0deg); }

.polaroid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: sepia(30%) contrast(1.05);
}

.polaroid-empty {
  background: var(--cream);
}
.polaroid-empty::after {
  content: 'portrait.jpg';
  display: block;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: .7rem;
}

.polaroid-caption {
  text-align: center;
  margin-top: .6rem;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: .9rem;
  color: #5a4a30;
}

.roll-label-sm {
  font-size: .6rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: .6rem;
}

.about-text h2 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--cream);
}

.about-text h2 em {
  font-style: italic;
  color: var(--amber);
}

.about-text p {
  font-size: .85rem;
  color: var(--muted);
  max-width: 500px;
}
.about-text p + p { margin-top: 1rem; }

.film-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--faint);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.stat-n {
  font-family: var(--ff-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
}

.stat-l {
  font-size: .58rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── FOOTER ── */
.site-footer {
  background: #0a0906;
  border-top: 1px solid #1a1510;
  padding: 1.2rem var(--gap);
}

.footer-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .58rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  flex-wrap: wrap;
  justify-content: center;
}

/* ── ANIMATIONS ── */
@keyframes fadeIn  { from { opacity: 0 } to { opacity: 1 } }
@keyframes fadeUp  {
  from { opacity: 0; transform: translateY(20px) }
  to   { opacity: 1; transform: translateY(0) }
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .about-inner { grid-template-columns: 1fr; }
  .polaroid { max-width: 260px; }
  .frame-xl { width: 300px; }
  .frame-lg { width: 220px; }
}

@media (max-width: 600px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(26,21,16,.98);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--faint);
  }
  .nav-links li a {
    display: block;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--faint);
  }
  body.nav-open .nav-links { display: flex; }
  .hero-meta { flex-direction: column; gap: 1rem; }
  .hero-frame-num { display: none; }
  .frame-sm { width: 160px; }
  .frame-lg { width: 200px; }
  .frame-xl { width: 260px; }
  .film-stats { gap: 1.5rem; }
}
