/* ============================================================
   H. — photography portfolio
   Design system: darkroom / 35mm contact-sheet vernacular
   ============================================================ */

:root{
  --ink:        #ffffff;   /* page background — now white */
  --ink-raised: #f5f2ea;   /* warm off-white for raised panels/placeholders */
  --paper:      #121110;   /* primary text — near-black */
  --ash:        #5b564d;   /* secondary text, warm gray, readable on white */
  --ash-dark:   #a39c8c;   /* decorative — hairlines, dots, corner brackets */
  --line:       #e2ddd0;   /* subtle divider/border on white */
  --line-paper: #d9d3c6;
  --safelight:  #c1443c;   /* darkroom safelight red — the one accent, unchanged */
  --safelight-dim: #8a332d;

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1240px;
}

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

html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

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

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

:focus-visible{
  outline: 2px solid var(--safelight);
  outline-offset: 3px;
}

.eyebrow{
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--safelight);
}

/* ---------- sprocket strip ---------- */
.sprocket-row{
  height: 14px;
  width: 100%;
  background-image: radial-gradient(circle, rgba(18,17,16,0.55) 1.6px, transparent 1.7px);
  background-size: 22px 14px;
  background-position: center;
}

/* ---------- header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark{
  font-family: var(--display);
  font-weight: 600;
  font-size: 28px;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.wordmark .dot{ color: var(--safelight); }

.site-nav{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.site-nav a{
  text-decoration: none;
  color: var(--ash);
  padding: 6px 2px;
  position: relative;
  transition: color 0.2s ease;
}
.site-nav a:hover{ color: var(--paper); }
.site-nav a.active{ color: var(--paper); }
.site-nav a.active::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--safelight);
}
.site-nav .sep{ color: var(--line); }

.nav-toggle{
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--paper);
  font-size: 18px;
  width: 40px; height: 36px;
  cursor: pointer;
}

@media (max-width: 760px){
  .site-nav{
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px var(--gutter) 24px;
    display: none;
    gap: 14px;
  }
  .site-nav.open{ display: flex; }
  .site-nav .sep{ display: none; }
  .nav-toggle{ display: block; }
}

/* ---------- hero ---------- */
.hero{
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 10vw, 108px) var(--gutter) clamp(40px, 7vw, 72px);
  border-bottom: 1px solid var(--line);
}
.hero-mark{
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(84px, 18vw, 220px);
  line-height: 0.9;
  margin: 18px 0 0;
  letter-spacing: -0.02em;
}
.hero-mark .dot{ color: var(--safelight); }
.hero-sub{
  max-width: 46ch;
  margin: 24px 0 0;
  color: var(--ash);
  font-size: 17px;
}
.hero-links{
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hero-links a{
  text-decoration: none;
  border-bottom: 1px solid var(--ash-dark);
  padding-bottom: 3px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.hero-links a:hover{ border-color: var(--safelight); color: var(--paper); }

.page-hero{
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 8vw, 72px) var(--gutter) clamp(28px, 5vw, 40px);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.page-hero h1{
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(38px, 6vw, 64px);
  margin: 10px 0 0;
}
.page-hero p{
  max-width: 42ch;
  color: var(--ash);
  margin: 12px 0 0;
}
.frame-count{
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ash);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* ---------- sections ---------- */
.section{
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 88px) var(--gutter);
}
.section-head{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}
.section-head h2{
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(26px, 4vw, 36px);
  margin: 8px 0 0;
}
.section-head a{
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--ash);
  border-bottom: 1px solid var(--ash-dark);
  padding-bottom: 2px;
}
.section-head a:hover{ color: var(--paper); border-color: var(--safelight); }

.intro-block{
  max-width: 62ch;
  color: var(--ash);
  font-size: 17px;
  margin-bottom: 8px;
}
.intro-block strong{ color: var(--paper); font-weight: 600; }

/* ---------- frame grid / gallery ---------- */
.frame-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 2vw, 18px);
}
@media (max-width: 980px){ .frame-grid{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px){ .frame-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px){ .frame-grid{ grid-template-columns: 1fr; } }

.frame{
  display: block;
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ink-raised);
  border: 1px solid var(--line);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.25s ease;
}
.frame.in-view{ opacity: 1; transform: translateY(0); }
.frame:hover{ border-color: var(--ash-dark); }
.frame img{
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.frame::before, .frame::after{
  content: "";
  position: absolute;
  width: 9px; height: 9px;
  border: 1px solid var(--ash-dark);
  opacity: 0.7;
  pointer-events: none;
}
.frame::before{ top: 6px; left: 6px; border-right: none; border-bottom: none; }
.frame::after{ bottom: 6px; right: 6px; border-left: none; border-top: none; }

/* ---------- teaser strip (home) ---------- */
.teaser-grid{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(8px, 1.6vw, 14px);
}
@media (max-width: 900px){ .teaser-grid{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px){ .teaser-grid{ grid-template-columns: repeat(2, 1fr); } }
.teaser-grid .frame{ aspect-ratio: 1 / 1; }

/* ---------- about / statement ---------- */
.statement{
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 88px) var(--gutter);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(24px, 5vw, 64px);
}
@media (max-width: 760px){ .statement{ grid-template-columns: 1fr; } }
.statement blockquote{
  margin: 12px 0 0;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.3;
}
.statement .statement-body{ color: var(--ash); font-size: 16px; }
.statement .statement-body p + p{ margin-top: 14px; }

/* ---------- contact page ---------- */
.contact-grid{
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 8vw, 80px) var(--gutter) clamp(64px, 10vw, 110px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
}
@media (max-width: 800px){ .contact-grid{ grid-template-columns: 1fr; } }

.call-sheet{
  border: 1px solid var(--line);
  padding: clamp(20px, 3vw, 32px);
  background: var(--ink-raised);
}
.call-sheet-title{
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ash);
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
}
.field{ margin-bottom: 20px; }
.field label{
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 8px;
}
.field input, .field textarea{
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ash-dark);
  color: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  padding: 8px 0;
  resize: vertical;
}
.field input:focus, .field textarea:focus{
  outline: none;
  border-bottom-color: var(--safelight);
}
.submit-btn{
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--safelight);
  color: var(--ink);
  border: none;
  padding: 13px 26px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.submit-btn:hover{ background: #d95a51; }
.form-note{
  margin-top: 14px;
  font-size: 13px;
  color: var(--ash);
  display: none;
}
.form-note.show{ display: block; }

.contact-info h2{
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(28px, 4vw, 38px);
  margin: 0 0 18px;
}
.contact-info .info-line{
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.contact-info .info-line span:first-child{
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ash);
}
.contact-info a{ text-decoration: none; border-bottom: 1px solid var(--ash-dark); }
.contact-info a:hover{ border-color: var(--safelight); }

/* ---------- album index (Events landing page) ---------- */
.album-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 2.4vw, 26px);
}
@media (max-width: 700px){ .album-grid{ grid-template-columns: 1fr; } }

.album-card{
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-raised);
}
.album-card img{
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: saturate(0.85) brightness(0.85);
}
.album-card:hover img{
  transform: scale(1.035);
  filter: saturate(1) brightness(0.95);
}
.album-card .album-scrim{
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(14,14,13,0.92) 100%);
  pointer-events: none;
}
.album-card .album-meta{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: clamp(16px, 3vw, 28px);
}
.album-card .album-eyebrow{
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--safelight);
  display: block;
  margin-bottom: 6px;
}
.album-card h3{
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(20px, 2.6vw, 28px);
  margin: 0 0 4px;
  color: var(--paper);
}
.album-card .album-count{
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ash);
  letter-spacing: 0.06em;
}

/* ---------- lightbox viewer ---------- */
.frame.is-clickable{ cursor: zoom-in; }

.lightbox{
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6,6,5,0.96);
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 56px);
}
.lightbox.open{ display: flex; }

.lightbox-figure{
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox img{
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border: 1px solid var(--line);
}
.lightbox-caption{
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ash);
  text-transform: uppercase;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next{
  position: absolute;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--paper);
  cursor: pointer;
  font-family: var(--mono);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover{ border-color: var(--safelight); color: var(--safelight); }

.lightbox-close{
  top: clamp(10px, 2vw, 24px);
  right: clamp(10px, 2vw, 24px);
  width: 40px; height: 40px;
  font-size: 18px;
}
.lightbox-prev,
.lightbox-next{
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  font-size: 20px;
}
.lightbox-prev{ left: clamp(6px, 2vw, 20px); }
.lightbox-next{ right: clamp(6px, 2vw, 20px); }
@media (max-width: 640px){
  .lightbox-prev, .lightbox-next{ width: 38px; height: 38px; font-size: 16px; }
}

/* ---------- home nav tiles ---------- */
.tile-grid{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(10px, 1.6vw, 18px);
}
@media (max-width: 900px){ .tile-grid{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px){ .tile-grid{ grid-template-columns: repeat(2, 1fr); } }

.nav-tile{
  display: block;
  text-decoration: none;
  color: inherit;
  text-align: center;
  border: 1px solid var(--line);
  background: var(--ink-raised);
  padding: clamp(26px, 4vw, 40px) clamp(14px, 2vw, 20px);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.nav-tile:hover{
  border-color: var(--safelight);
  transform: translateY(-2px);
}
.nav-tile h3{
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(18px, 2.2vw, 26px);
  margin: 0;
}

/* ---------- bio section ---------- */
.bio-section{
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 88px) var(--gutter);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 0.8fr 1.6fr;
  gap: clamp(24px, 5vw, 64px);
}
@media (max-width: 760px){ .bio-section{ grid-template-columns: 1fr; } }
.bio-section h2{
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(28px, 4vw, 38px);
  margin: 10px 0 0;
}
.bio-section .bio-body{
  color: var(--paper);
  font-size: 17px;
  line-height: 1.7;
}
.bio-section .bio-body p + p{ margin-top: 16px; }

/* ---------- inline page comment (studio/location note etc.) ---------- */
.page-note{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(32px, 5vw, 56px);
}
.page-note p{
  max-width: 68ch;
  color: var(--paper);
  font-size: 17px;
  line-height: 1.7;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 2.2vw, 22px);
}

/* ---------- link list (Events page) ---------- */
.link-list{
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.link-list-item{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(20px, 3vw, 30px) 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.2s ease, border-color 0.2s ease;
}
.link-list-item:hover{
  padding-left: 14px;
  border-color: var(--safelight);
}
.link-list-item h3{
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(22px, 3vw, 32px);
  margin: 0;
}
.link-list-item .link-arrow{
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ash);
  white-space: nowrap;
  transition: color 0.2s ease;
}
.link-list-item:hover .link-arrow{ color: var(--safelight); }

/* ---------- no-access page ---------- */
.no-access-main{
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(48px, 8vw, 88px) var(--gutter);
}
.no-access-card{ max-width: 520px; text-align: center; }
.no-access-card h1{
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(28px, 4vw, 40px);
  margin: 12px 0 20px;
}
.no-access-card p{
  color: var(--ash);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 34px;
}
.no-access-card a.email-inline{
  color: var(--paper);
  border-bottom: 1px solid var(--ash-dark);
  text-decoration: none;
}
.no-access-card a.email-inline:hover{ color: var(--safelight); border-color: var(--safelight); }
.back-btn{
  display:inline-block;
  font-family: var(--mono);
  font-size:12px;
  letter-spacing:.1em;
  text-transform:uppercase;
  text-decoration:none;
  color: var(--paper);
  border: 1px solid var(--line);
  padding: 13px 26px;
  transition: border-color .2s ease, color .2s ease;
}
.back-btn:hover{ color: var(--safelight); border-color: var(--safelight); }

/* ---------- footer ---------- */
.site-footer{ border-top: 1px solid var(--line); margin-top: 20px; }
.footer-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px var(--gutter);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ash);
  letter-spacing: 0.04em;
}
.footer-links{ display: flex; gap: 22px; }
.footer-links a{ text-decoration: none; color: var(--ash); }
.footer-links a:hover{ color: var(--paper); }
