:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-100: #f6f6f6;
  --gray-300: #d7d7d7;
  --gray-700: #4a4a4a;
  --accent: #ff3b3b;
  --container: 1200px;
  --pad: clamp(16px, 2.5vw, 32px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  font-family: Futura, futura, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.5;
  font-size: 18px;
}

/* ====== Header / Nav ====== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--pad);
  transition: background 200ms ease, box-shadow 200ms ease, color 200ms ease;
  background: transparent; color: var(--white);
}
.site-header.scrolled { background: rgba(255,255,255,0.9); box-shadow: 0 2px 12px rgba(0,0,0,0.08); backdrop-filter: saturate(180%) blur(8px); color: var(--black); }
.logo { font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 14px; }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { text-decoration: none; color: inherit; font-size: 14px; opacity: 0.85; }
.nav-links a:hover, .nav-links a:focus { opacity: 1; }

.hamburger { display: none; background: none; border: 0; font-size: 24px; color: inherit; }
@media (max-width: 880px) {
  .hamburger { display: block; }
  .nav-links { position: fixed; inset: 60px var(--pad) auto var(--pad); right: var(--pad); top: 64px; background: rgba(255,255,255,0.95); color: var(--black); border: 1px solid var(--gray-300); border-radius: 12px; padding: 16px; display: none; flex-direction: column; gap: 14px; }
  .nav-links.open { display: flex; }
}

/* ====== Sections ====== */
.section {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: calc(var(--pad) * 4) var(--pad);
}
.section p {
  font-family: 'Inconsolata', Courier, monospace;
}
.inner { width: 100%; max-width: var(--container); margin: 0 auto; }
.kicker { text-transform: uppercase; letter-spacing: 0.08em; font-size: 16px; opacity: 0.75; }
h1, h2, h3 { line-height: 1.12; margin: 0.5em 0; }
h1 {
  font-size: clamp(32px, 6vw, 80px); /* smaller min, smaller max, less aggressive vw */
  letter-spacing: 0.01em;
}

h2 {
  font-size: clamp(22px, 3.5vw, 40px); /* likewise for h2 */
}
p { margin: 0.75em 0; max-width: 75ch; }

/* Alternating backgrounds */
.section.white { background: var(--white); color: var(--black); }
.section.black { background: var(--black); color: var(--white); }

/* ====== Fullscreen 16:9 Image Slides ====== */
.section.slide {           /* your slide section */
  margin: 0;
  padding: 0;              /* kill inherited .section padding */
  background: #000;
}



/* Slides should not inherit .section's min-height:100vh mismatch */
.section.slide {
  margin: 0;
  padding: 0;
  background: #000;

  /* kill the global .section min-height */
  min-height: 0;

  /* lock the slide to the visible viewport height */
  height: 100vh;
  height: 100svh;  /* iOS address bar visible */
  height: 100dvh;  /* dynamic viewport */
}

/* media-wrap fills the slide section exactly */
.slide .media-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background: #000;
}

/* image pins to all edges */
.slide .media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}



/*=======LINKS=======*/

/* Paragraph links */
p a {
  color: inherit;
  font-weight: bold;
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
  transition: border-color 0.25s ease, color 0.25s ease;
}

p a:hover,
p a:focus {
  border-bottom-color: currentColor; /* fade in the dotted underline */
}


/* ====== HERO (replacement) ====== */

/* Section fills viewport and centers content */
.section.hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  margin: 0;
  min-height: 100vh;
  height: 100vh;
  height: 100svh;  /* iOS-safe */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Kill the .inner width limit for hero only */
.section.hero .inner {
  max-width: none;
  width: 100%;
  padding: 0;
  margin: 0 auto;
}

/* Background layers */
.hero .media-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.35));
}

/* Content centered, responsive padding */
.hero .content {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  text-align: center;

  /* vertical spacing (responsive) */
  padding-block: clamp(60px, 18vh, 220px) clamp(40px, 14vh, 160px);
  padding-inline: 0;  /* no side padding */
  width: 100%;
  max-width: 100vw;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Headings wrap instead of clipping */
.section.hero h1,
.section.hero h2,
.section.hero h3 {
  color: var(--white);
  overflow-wrap: anywhere;
  word-wrap: break-word;
  max-width: 90vw;
  margin: 0 auto;
}

/* Paragraph responsive width */
.hero p {
  color: var(--white);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  max-width: 68ch;
  width: 90vw;
  margin: 2% auto;
}

/* Buttons */
.cta {
  display: inline-flex;
  gap: 14px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.btn {
  appearance: none;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
}

.btn.primary {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.btn.primary:hover {
  filter: brightness(0.95);
}


/* ====== Media Grid ====== */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(12, 1fr); }
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }
.col-3 { grid-column: span 3; }
.thumb { aspect-ratio: 16 / 9; background: var(--gray-100); border: 1px solid var(--gray-300); border-radius: 12px; }
@media (max-width: 900px) { .col-6, .col-4, .col-3 { grid-column: span 12; } }

/* ====== Screenings ====== */
.screenings { margin-top: 10px; }
.screening-card { display: grid; grid-template-columns: 160px 1fr; gap: 14px; padding: 12px; border: 1px solid var(--gray-300); border-radius: 12px; background: rgba(255,255,255,0.04); }
.screening-thumb { width: 100%; /*aspect-ratio: 16 / 9;*/ border-radius: 10px; background: var(--gray-100); border: 1px solid var(--gray-300); cursor: zoom-in; }
.screening-meta h3 { margin: 0; font-size: 18px; }
.screening-meta p { margin: 6px 0 0; }

/* ====== Lightbox ====== */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.9); display: none; align-items: center; justify-content: center; z-index: 2000; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 92vh; object-fit: contain; }
.lightbox .close { position: absolute; top: 20px; right: 24px; background: none; color: #fff; border: 0; font-size: 28px; cursor: pointer; }

footer { padding: 32px var(--pad); font-size: 13px; border-top: 1px solid var(--gray-300); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }



/* ====== Media (10-up) ====== */
#media.section { min-height: auto; } /* allow growth */
.media-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 640px) {
  .media-grid {
    grid-template-columns: 1fr;
  }
}

.phc-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;            /* black letterbox while poster loads */
  border: 1px solid var(--gray-300);
  border-radius: 12px;
  object-fit: cover;           /* posters fill nicely */
  cursor: pointer;
}
.video-item .caption { margin-top: 6px; font-size: 14px; opacity: 0.9; }




/* Typewriter under hero title */
.typewriter {
  color: var(--white);
  font-family: 'Inconsolata', Courier, monospace;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  line-height: 1.35;
  max-width: 90vw;
  margin: 10px auto 0;
  text-align: center;
}
.typewriter .tw-text { white-space: pre-wrap; }
.typewriter .tw-caret {
  display: inline-block;
  width: 0.6ch;
  border-right: 2px solid currentColor;
  animation: tw-blink 1s step-end infinite;
  translate: 0 .08em;
}
@keyframes tw-blink { 50% { border-color: transparent; } }






/* ===== Mobile-only slide image fix ===== */
@media (max-width: 768px) {
  .slide .media-wrap {
    height: auto;
    min-height: 100svh; /* stable viewport height on mobile */
  }

  .slide .media {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
  }
}
