/* ===========================================================
   Amanda Metzger — Site Stylesheet
   Organized by: variables, base/reset, layout, components, page-specific, responsive
   =========================================================== */

/* ---------- Variables ---------- */
:root {
  --black: #1A1A1A;
  --white: #FFFFFF;
  --cream: #F5F1EA;
  --sand: #D9CFBF;
  --accent: #1B2A4A;
  --muted: #8A8578;
  --text-secondary: #5F5E5A;

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Helvetica Neue', Arial, sans-serif;

  --nav-height: 76px;
  --transition: 0.3s ease;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Layout helpers ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.eyebrow.on-image { color: rgba(255,255,255,0.9); }
.section { padding: 108px 0; }
.section.tight { padding: 52px 0; }
.section.cream { background: var(--cream); }
.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--black);
  text-align: center;
  margin-bottom: 22px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: 32px;
  text-align: center;
  margin-bottom: 40px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 17px 34px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
}
.btn-primary:hover { background: var(--white); color: var(--black); }
.btn-secondary {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--black);
}
.btn-secondary:hover { background: var(--black); color: var(--white); }
.btn-on-image.btn-secondary {
  color: #fff; border-color: rgba(255,255,255,0.7);
}
.btn-on-image.btn-secondary:hover { background: rgba(255,255,255,0.15); color: #fff; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Placeholder image blocks ---------- */
.placeholder-img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  background: repeating-linear-gradient(135deg, #EDE8DE, #EDE8DE 10px, #E4DDD0 10px, #E4DDD0 20px);
  border: 1px dashed var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-secondary);
  padding: 16px;
}
.placeholder-img .ph-icon { font-size: 22px; margin-bottom: 8px; opacity: 0.6; }
.placeholder-img .ph-label {
  font-size: 11px;
  letter-spacing: 0.04em;
  font-family: 'Courier New', monospace;
  background: rgba(255,255,255,0.7);
  padding: 3px 8px;
  border-radius: 3px;
  margin-top: 4px;
}
.placeholder-img .ph-note { font-size: 10px; color: var(--muted); margin-top: 6px; max-width: 200px; }

/* ---------- Nav ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  transition: background var(--transition), box-shadow var(--transition), height var(--transition);
  background: transparent;
}
.site-nav.solid {
  background: rgba(255,255,255,0.96);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  height: 64px;
}
.site-nav .wordmark {
  font-size: 16px;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--white);
  transition: color var(--transition);
}
.site-nav.solid .wordmark { color: var(--black); }
.nav-links {
  display: flex;
  gap: 30px;
}
.nav-links a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 4px;
}
.site-nav.solid .nav-links a { color: var(--black); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
}
.nav-toggle span {
  height: 1.5px;
  background: var(--white);
  transition: background var(--transition);
}
.site-nav.solid .nav-toggle span { background: var(--black); }

.mobile-drawer {
  position: fixed;
  top: 0; right: -100%;
  width: 78%;
  max-width: 340px;
  height: 100vh;
  background: var(--white);
  z-index: 1100;
  transition: right 0.35s ease;
  padding: 100px 40px;
  box-shadow: -8px 0 30px rgba(0,0,0,0.08);
}
.mobile-drawer.open { right: 0; }
.mobile-drawer a {
  display: block;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 0;
  border-bottom: 1px solid var(--sand);
}
.drawer-close {
  position: absolute;
  top: 30px; right: 30px;
  font-size: 22px;
}
.drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero .hero-bg { position: absolute; inset: 0; }
.hero .hero-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.38);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 640px;
  padding: 0 24px;
  opacity: 0;
  transform: translateY(16px);
  animation: heroIn 1s ease forwards 0.2s;
}
@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: 64px;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
.hero .subhead {
  font-size: 18px;
  font-weight: 500;
  color: rgba(255,255,255,0.95);
  margin-bottom: 36px;
  letter-spacing: 0.04em;
}
.hero .btn-row { justify-content: center; }
.scroll-cue {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.85);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}
.scroll-cue .line { width: 1px; height: 26px; background: rgba(255,255,255,0.6); }

/* ---------- Fade-in on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Featured Work grid (aspect-ratio based — no forced slivers) ---------- */
.fg-subhead {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.fg-subhead-spaced { margin-top: 40px; }
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.featured-grid .fg-item { overflow: hidden; aspect-ratio: 3 / 4; }
.featured-grid .fg-item img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform 0.6s ease; }
.featured-grid .fg-item:hover img { transform: scale(1.04); }

/* ---------- Credits (visual + list) ---------- */
.credits-layout {
  display: grid;
  grid-template-columns: 40fr 60fr;
  gap: 56px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.credits-layout .credits-img { height: 460px; overflow: hidden; }
.credits-layout .credits-img img { width: 100%; height: 100%; object-fit: cover; }
.credits-list { list-style: none; }
.credits-list li {
  padding: 20px 0 20px 20px;
  border-bottom: 1px solid var(--sand);
  border-left: 2px solid transparent;
  transition: border-color var(--transition), padding-left var(--transition);
}
.credits-list li:hover { border-left-color: var(--black); padding-left: 26px; }
.credits-list li:first-child { border-top: 1px solid var(--sand); }
.credits-list .credit-name {
  display: block;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 3px;
}
.credits-list .credit-detail { display: block; color: var(--text-secondary); font-size: 15px; }
.credits-note { grid-column: 1 / -1; margin-top: 8px; font-size: 12.5px; letter-spacing: 0.03em; color: var(--muted); }
.section-intro {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 44px;
  font-size: 17px;
}
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 28px;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.link-more:hover { border-color: var(--black); }
.center { text-align: center; }

/* ---------- Portfolio preview grid (aspect-ratio based) ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.portfolio-grid .pg-item { overflow: hidden; aspect-ratio: 7 / 10; }
.portfolio-grid .pg-item img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; transition: transform 0.6s ease; }
.portfolio-grid .pg-item:hover img { transform: scale(1.045); }

/* ---------- Performance / video section ---------- */
.perf-video-section {
  position: relative;
  height: 640px;
  overflow: hidden;
  background: var(--black);
}
.perf-video-section video, .perf-video-section .poster-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.perf-video-section video { display: none; cursor: pointer; }
.perf-video-section .perf-shade {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.28);
  pointer-events: none;
}
.play-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 76px; height: 76px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition);
  z-index: 3;
}
.play-btn:hover { transform: translate(-50%, -50%) scale(1.08); background: #fff; }
.play-btn svg { margin-left: 4px; }
.play-btn.hidden { opacity: 0; pointer-events: none; }
.perf-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 40px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
  color: #fff;
}
.perf-caption p { font-size: 16px; max-width: 560px; color: rgba(255,255,255,0.92); margin-bottom: 6px; }
.perf-caption .perf-eyebrow { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.72); margin-bottom: 10px; }
.perf-caption .link-more { color: #fff; }

/* ---------- Media & Press — editorial press layout (photo leads, typography carries the rest) ---------- */
.press-feature {
  overflow: hidden;
}
.press-feature img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center center;
}
.press-feature-caption {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--sand);
  margin-top: 20px;
}
.press-mentions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  margin-top: 56px;
}
.press-mention {
  padding-top: 22px;
  border-top: 1px solid var(--sand);
}
.pm-title { font-family: var(--font-serif); font-size: 22px; margin-bottom: 6px; }
.pm-sub { font-size: 13.5px; letter-spacing: 0.03em; color: var(--text-secondary); }
.press-feature-caption .pm-title { font-size: 19px; margin-bottom: 0; }
.press-feature-caption .pm-sub { font-size: 13px; }

/* ---------- Credits & Press columns (merged section) ---------- */
.cp-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px;
  max-width: 900px;
  margin: 44px auto 0;
}
.cp-col .fg-subhead { text-align: left; }
.cp-col .credits-list li { padding: 16px 0 16px 16px; }
.cp-col .credits-list li:hover { padding-left: 22px; }

/* ---------- Contact credential block ---------- */
.credential-block {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--sand);
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.credential-block .cred-location { font-size: 14px; color: var(--text-secondary); }
.credential-block .cred-rep { font-size: 16px; font-weight: 700; letter-spacing: 0.01em; }
.credential-block .cred-email { font-size: 14px; }
.credential-block .cred-email a { border-bottom: 1px solid var(--muted); transition: border-color var(--transition); }
.credential-block .cred-email a:hover { border-color: var(--black); }

/* ---------- About preview (2-col) ---------- */
.split {
  display: grid;
  grid-template-columns: 45fr 55fr;
  gap: 60px;
  align-items: center;
}
.split.reverse { grid-template-columns: 55fr 45fr; }
.split .split-img { height: 480px; overflow: hidden; }
.split .split-img img { width: 100%; height: 100%; object-fit: cover; }
.split-text h2 {
  font-family: var(--font-serif);
  font-size: 30px;
  margin-bottom: 18px;
}
.split-text p { font-size: 17px; color: var(--text-secondary); margin-bottom: 20px; max-width: 480px; }

/* ---------- Closing CTA ---------- */
.closing-cta { text-align: center; }
.closing-cta h2 { font-family: var(--font-serif); font-size: 38px; margin-bottom: 18px; }
.closing-cta p { max-width: 560px; margin: 0 auto 8px; color: var(--text-secondary); font-size: 17px; }

/* ---------- Site footer ---------- */
.site-footer {
  padding: 40px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-top: 1px solid var(--sand);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 28px; }
  .split .split-img { height: 340px; order: -1; }
  .credits-layout { grid-template-columns: 1fr; gap: 28px; }
  .credits-layout .credits-img { height: 300px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .perf-video-section { height: 480px; }
}
@media (max-width: 720px) {
  .container { padding: 0 24px; }
  .site-nav { padding: 0 20px; }
  .site-nav .wordmark { font-size: 14px; letter-spacing: 0.1em; }
  .hero h1 { font-size: 38px; }
  .hero .subhead { font-size: 15px; }
  .section { padding: 56px 0; }
  .section-title { font-size: 26px; }
  .featured-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .press-mentions { grid-template-columns: 1fr; gap: 28px; }
  .cp-columns { grid-template-columns: 1fr; gap: 28px; }
  .press-feature img { aspect-ratio: 4/3; object-fit: contain; background: var(--cream); }
  .press-feature-caption { flex-direction: column; align-items: flex-start; gap: 4px; }
  .credits-list .credit-name { font-size: 17px; }
  .perf-video-section { height: 460px; }
  .perf-caption { padding: 22px 20px; }
  .perf-caption p { font-size: 14px; max-width: 100%; }
  .perf-caption .perf-eyebrow { margin-bottom: 6px; }
  .perf-caption .link-more { margin-top: 14px; }
  .play-btn { width: 60px; height: 60px; }
}
