/* ============================================
   Eileen Meyer — Documentary Editor Portfolio
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0a0a;
  --bg-card: #111111;
  --bg-elevated: #161616;
  --text: #ffffff;
  --text-muted: #999999;
  --text-dim: #555555;
  --accent: #d4836b;
  --accent-hover: #e09580;
  --accent-subtle: #b06a55;
  --border: #222222;
  --border-accent: #2a1c18;
  --nav-height: 64px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text);
  text-decoration: none;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.nav-logo {
  display: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  position: absolute;
  right: 24px;
}

.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

/* ---- Hero ---- */
.hero {
  min-height: 30vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--nav-height);
  padding-bottom: 0;
}

.hero + .section {
  padding-top: 0;
}

.hero-label {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(40px, 8vw, 80px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* ---- Sections ---- */
.section {
  padding: 100px 0;
}

.section-title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.section-desc {
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 48px;
}

/* ---- Poster Grid ---- */
.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 40px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.poster-card {
  cursor: pointer;
}

.poster-image {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-card);
}

.poster-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.poster-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.poster-card:hover .poster-image::after {
  opacity: 1;
}

.poster-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.poster-card:hover .poster-placeholder {
  opacity: 1;
}

.poster-placeholder-title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.poster-placeholder-year {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  letter-spacing: 0.1em;
}

.poster-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.poster-card:hover .poster-overlay {
  opacity: 1;
}

.poster-card:hover .poster-image {
  box-shadow: 0 0 0 1px var(--accent-subtle);
}

.play-icon {
  width: 48px;
  height: 48px;
  opacity: 0.9;
  fill: var(--accent);
}

.poster-info {
  padding: 12px 0;
}

.poster-info h3 {
  font-size: 14px;
  font-weight: 500;
}

.poster-info p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ---- Consulting ---- */
#consulting .poster-grid {
  grid-template-columns: repeat(4, 1fr);
}

.consulting-content {
  margin-top: 40px;
}

.consulting-lead {
  font-size: 22px;
  font-weight: 300;
  line-height: 1.5;
  max-width: 600px;
  margin-bottom: 48px;
}

.consulting-services {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px;
  margin-bottom: 64px;
}

.service {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color 0.2s;
}

.service:hover {
  border-color: var(--border-accent);
}

.service h3 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--accent);
}

.service p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.consulting-cta {
  border-top: 1px solid var(--border);
  padding-top: 40px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.consulting-cta p {
  font-size: 15px;
  color: var(--text-muted);
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

/* ---- About ---- */
.about-content {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  margin-top: 40px;
  align-items: start;
}

.about-photo-img {
  width: 280px;
  height: 350px;
  object-fit: cover;
  border-radius: 4px;
}

.about-lead {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* ---- Contact ---- */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 40px;
}

.contact-lead {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.contact-item a,
.contact-item span {
  font-size: 15px;
  color: var(--text-muted);
}

.contact-item a:hover {
  color: var(--accent);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-dim);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent-subtle);
}

.contact-form select {
  -webkit-appearance: none;
  appearance: none;
  color: var(--text-dim);
}

.contact-form select:has(option:checked:not([disabled])) {
  color: var(--text);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  align-self: flex-start;
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 12px;
  color: var(--text-dim);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

/* ---- Modal ---- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg);
  border-radius: 4px;
  padding: 0 0 24px;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  background: none;
  border: none;
  color: var(--text);
  font-size: 28px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.modal-close:hover {
  opacity: 1;
}

.modal-video {
  position: relative;
  padding-bottom: 56.25%;
  background: #000;
  border-radius: 2px;
  overflow: hidden;
}

.modal-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.modal-details {
  padding: 20px 24px 8px;
  text-align: center;
}

.modal-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 6px;
}

.modal-synopsis {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.modal-synopsis:empty {
  display: none;
}

.modal-awards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.modal-awards:empty {
  display: none;
}

.modal-award-badge {
  display: inline-block;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-subtle);
  border-radius: 2px;
}

/* ---- Programming ---- */
.programming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.programming-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color 0.2s;
}

.programming-card:hover {
  border-color: var(--border-accent);
}

.programming-card h3 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
}

.programming-org {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.programming-year {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.programming-bullets {
  list-style: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.programming-bullets li {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
}

.programming-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-subtle);
}

/* Engagements */
.programming-engagements {
  margin-top: 64px;
}

.programming-engagements-title {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 24px;
}

.engagements-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.engagements-list li {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}

.engagements-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-subtle);
}

.engagement-type {
  color: var(--accent);
  font-weight: 500;
  margin-right: 4px;
}

.engagement-type::after {
  content: ' — ';
  color: var(--text-dim);
  font-weight: 400;
}

.engagement-year {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    background: var(--bg);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a {
    font-size: 16px;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    min-height: 40vh;
  }

  .poster-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-photo-img {
    width: 200px;
    height: 250px;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .programming-grid {
    grid-template-columns: 1fr;
  }

  .consulting-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .poster-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .poster-placeholder-title {
    font-size: 14px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .consulting-services {
    grid-template-columns: 1fr;
  }
}
