:root {
  --ink: #14120f;
  --paper: #ede6d6;
  --paper-dim: #c9c1ae;
  --safelight: #b33a2a;
  --safelight-light: #d97a68;
  --sage: #6b7268;
  --hair: rgba(237,230,214,0.16);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: 'Space Grotesk', sans-serif;
  overflow-x: hidden;
}
h1, h2, .display {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 48px;
  z-index: 10;
  background: rgba(20, 18, 15, 0.88);
  transform: translateY(0);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
nav.nav-hidden { transform: translateY(-100%); }
nav .name { font-family: 'Fraunces', serif; font-size: 18px; }
nav .links { display: flex; gap: 32px; font-size: 13px; letter-spacing: 0.04em; }
nav a { color: var(--paper); text-decoration: none; transition: color 0.25s ease; }
nav a.active { color: var(--safelight); }
nav a:hover, nav a.active:hover { color: var(--safelight-light); }

/* HERO - parallax */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -10% 0 0 0;
  height: 120%;
  will-change: transform;
}
.hero-bg-img {
  /* No filter here on purpose — this is a workaround for a Firefox-only
     performance bug where a live grayscale/contrast/brightness filter
     made scrolling past the header very slow (fine on Chrome/Safari).
     The same look is baked into images/hero/* as real pixels instead;
     see the "HOW TO ADD A NEW PHOTO" note in main.js. */
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,18,15,0.15) 0%, rgba(20,18,15,0.85) 88%);
}
.hero-content {
  position: relative;
  padding: 0 48px 72px;
  max-width: 720px;
}
.hero-content .eyebrow { margin-bottom: 18px; }
.hero-content h1 {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
}
.hero-content p {
  margin-top: 20px;
  color: var(--paper-dim);
  font-size: 15px;
  max-width: 46ch;
  line-height: 1.6;
}
.scroll-cue {
  position: absolute;
  bottom: 32px;
  right: 48px;
  font-size: 12px;
  color: var(--sage);
  writing-mode: vertical-rl;
  letter-spacing: 0.1em;
}

section { padding: 120px 48px; max-width: 1180px; margin: 0 auto; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 56px; border-bottom: 1px solid var(--hair); padding-bottom: 24px; }
.section-head h2 { font-size: 32px; }
.section-head .eyebrow { text-align: right; }

/* FILMSTRIP SPROCKETS */
.sprocket-strip {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  opacity: 0.5;
  flex-wrap: wrap;
}
.sprocket-strip span {
  width: 8px; height: 12px;
  background: var(--paper);
  opacity: 0.25;
  flex-shrink: 0;
}

/* CONTACT SHEET GRID */
.contact-sheet {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--hair);
  border: 1px solid var(--hair);
}
.frame {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--ink);
}
.frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1), filter 0.4s ease;
}
/* Basic deterrent against casual saving — not real protection (view-source,
   dev tools, and screenshots all still work), just blocks the obvious
   right-click/drag route. See the lightbox watermark for screenshots. */
.frame img,
.lightbox-img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.frame-overlay {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  background: linear-gradient(180deg, rgba(20,18,15,0) 40%, rgba(20,18,15,0.9) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.frame:hover img { transform: scale(1.06); }
.frame:hover .frame-overlay { opacity: 1; }
.frame-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  color: var(--safelight);
  letter-spacing: 0.05em;
  align-self: flex-start;
}
.frame-caption {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  color: var(--paper-dim);
  letter-spacing: 0.02em;
  align-self: flex-start;
}
.frame-link {
  font-size: 12px;
  color: var(--paper);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  align-self: flex-end;
}
.frame-link:hover { color: var(--safelight); }

/* MUSIC SECTION */
/* Bandcamp's "large" embed has a fixed native width (~700px) and doesn't
   stretch to fill a wider container, so the list is capped and centered
   to that width instead of leaving dead space to the right of each embed. */
.track-list { display: flex; flex-direction: column; max-width: 750px; margin: 0 auto; }
.track {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 20px;
  padding: 8px 0;
  border-bottom: 1px solid var(--hair);
}
.track:first-child { padding-top: 0; }
.track-idx { color: var(--sage); font-size: 13px; }
.track-embed iframe { display: block; }

/* ABOUT / FOOTER */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-grid p { color: var(--paper-dim); line-height: 1.75; font-size: 15px; margin-bottom: 16px; }
.inline-link { color: var(--paper); }
footer {
  padding: 56px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--hair);
  font-size: 13px;
  color: var(--sage);
}
footer a { color: var(--paper); text-decoration: none; }

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 18, 15, 0.95);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-img {
  max-width: 88vw;
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: none;
  border: none;
  color: var(--paper);
  cursor: pointer;
  transition: color 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover,
.lightbox-nav:hover { color: var(--safelight-light); }
.lightbox-close {
  top: 28px;
  right: 48px;
  font-size: 32px;
  line-height: 1;
  padding: 8px;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  line-height: 1;
  padding: 12px 20px;
}
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

@media (max-width: 720px) {
  /* Bigger tap targets than the glyph size alone would give — comfortably
     above the ~44px minimum recommended touch target. */
  .lightbox-close { top: 12px; right: 12px; font-size: 26px; padding: 16px; }
  .lightbox-nav { font-size: 30px; padding: 20px 18px; }
}

@media (max-width: 900px) {
  .contact-sheet { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .contact-sheet { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  nav, section { padding-left: 24px; padding-right: 24px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .section-head .eyebrow { text-align: left; }
}
@media (max-width: 480px) {
  nav { flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 20px; padding-bottom: 20px; }
  nav .name { font-size: 16px; }
  nav .links { gap: 20px; font-size: 12px; }
}
