/* =============================================
   seancine.com — shared stylesheet
   ============================================= */

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

:root {
  --bg:       #111111;
  --text:     #e2d9cc;
  --muted:    #7a7060;
  --accent:   #c8ad8a;
  --max-w:    1080px;
  --nav-h:    60px;
}

/* ── FILM GRAIN ── */
body::after {
  content: '';
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23grain)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  animation: grain 0.12s steps(1) infinite;
}

@keyframes grain {
  0%   { transform: translate(0, 0); }
  11%  { transform: translate(-3%, -4%); }
  22%  { transform: translate(4%,  2%); }
  33%  { transform: translate(-2%,  5%); }
  44%  { transform: translate(3%, -2%); }
  55%  { transform: translate(-4%,  3%); }
  66%  { transform: translate(2%, -4%); }
  77%  { transform: translate(4%,  4%); }
  88%  { transform: translate(-3%,  1%); }
  100% { transform: translate(1%, -3%); }
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Inter:wght@300;400;500&display=swap');

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: var(--bg);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

nav .site-name {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2.2rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

nav ul li a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 1;
  transition: opacity 0.2s;
}

nav ul li a:hover,
nav ul li a.active {
  opacity: 1;
}

/* ── HOMEPAGE NAV (transparent over hero, solid on scroll) ── */
body.home > nav {
  background: rgba(17,17,17,0);
  border-bottom-color: rgba(255,255,255,0);
  transition: background 0.35s ease, border-bottom-color 0.35s ease;
}

body.home > nav.scrolled {
  background: rgba(17,17,17,1);
  border-bottom-color: rgba(255,255,255,0.06);
}

body.home > nav .site-name {
  display: none;
}

body.home > nav ul li a {
  opacity: 1;
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}

body.home > nav.scrolled ul li a {
  text-shadow: none;
  opacity: 1;
}

/* ── HAMBURGER BUTTON ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 10001;
}

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

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HOME HERO ── */
.home-hero {
  position: relative;
  width: 100%;
  height: 58vh;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.home-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 5%;
  box-shadow: 0 12px 48px rgba(0,0,0,0.85);
}

.home-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(17,17,17,0.5) 0%,
    rgba(17,17,17,0.0) 30%,
    rgba(17,17,17,0.0) 50%,
    rgba(17,17,17,0.85) 100%);
}

/* ── HERO TEXT ── */
.hero-text.fade-in {
  animation: heroFade 1s ease forwards;
  opacity: 0;
}

@keyframes heroFade {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-text {
  position: relative;
  z-index: 2;
  padding: 0 2.5rem 2.75rem;
  text-align: left;
}

.hero-name {
  font-family: 'Cormorant', Georgia, serif;
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: #f0ebe3;
  margin-bottom: 0.4rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.8);
}

.hero-roles {
  font-size: clamp(0.75rem, 1.4vw, 0.9rem);
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #e2d9cc;
  text-shadow: 0 1px 12px rgba(0,0,0,0.8);
  margin-top: 0.3rem;
}

.hero-location {
  font-size: clamp(0.68rem, 1.1vw, 0.78rem);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c8ad8a;
  margin-top: 0.45rem;
  text-shadow: 0 1px 12px rgba(0,0,0,0.8);
}

/* ── HERO / BANNER (kept for other pages) ── */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(14,14,14,0.15) 0%,
    rgba(14,14,14,0.05) 40%,
    rgba(14,14,14,0.55) 100%);
}

/* ── PAGE BANNER (non-home pages) ── */
.page-banner {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 300px;
  overflow: hidden;
  margin-top: 0;
}

.page-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-banner .hero-overlay {
  background: linear-gradient(to bottom,
    rgba(14,14,14,0.3) 0%,
    rgba(14,14,14,0.6) 100%);
}

.banner-laurels {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2.5rem;
  align-items: center;
  z-index: 2;
  pointer-events: none;
  white-space: nowrap;
}

.banner-laurels img {
  height: 82px;
  width: auto;
  opacity: 0.92;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.banner-laurels img:last-child {
  height: 115px;
}

/* ── MAIN CONTENT (film sub-pages) ── */
main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── HOMEPAGE ZONE SPLIT ── */
.director-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem 2rem 5rem;
}

.cine-section {
  background: #1a1a1a;
  margin: 0 2rem 4rem;
  border-radius: 4px;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.5), 0 8px 40px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.05);
}

.cine-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── HOME: WORK SECTIONS ── */
.section-label {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  text-align: left;
  padding: 4rem 0 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.section-label:first-of-type {
  border-top: none;
  padding-top: 0;
}

.cine-section .section-label:first-of-type {
  border-top: none;
  padding-top: 3rem;
}

.section-tagline {
  font-size: clamp(0.78rem, 1.4vw, 0.9rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: left;
  margin-top: -1.5rem;
  margin-bottom: 2.5rem;
  font-style: italic;
}

/* Projects grid */
.projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.project {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 6px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.45);
}

.project a {
  display: block;
}

.project-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.4s ease;
  filter: brightness(0.85);
}

.project:hover .project-img {
  transform: scale(1.03);
  filter: brightness(1);
}

.project-info {
  padding: 1rem 0 0.5rem;
}

.project-title {
  font-family: 'Cormorant', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.project-meta {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  line-height: 1.5;
}

.project-award {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
}

/* Client logo row */
.client-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.5rem;
  padding: 1.5rem 0 3rem;
  flex-wrap: wrap;
}

.client-logos img {
  height: 20px;
  width: auto;
  max-width: none;
  opacity: 0.45;
  filter: invert(0);
  transition: opacity 0.2s;
}

.client-logos img:hover {
  opacity: 0.75;
}

/* Cinematography gallery */
.cine-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 5rem;
}

.cine-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 6px;
}

.cine-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: brightness(0.8);
  transition: filter 0.35s ease, transform 0.45s ease;
  display: block;
}

.cine-item:hover img {
  filter: brightness(1);
  transform: scale(1.03);
}

.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.25s;
}

.play-btn svg {
  width: 52px;
  height: 52px;
  fill: rgba(255,255,255,0.85);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
  transition: transform 0.25s, fill 0.25s;
}

.cine-item:hover .play-btn svg {
  fill: #fff;
  transform: scale(1.12);
}

/* ── WORK WITH ME DROPDOWN ── */
.work-with-me {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 1rem;
  margin-bottom: 5rem;
}

.work-with-me summary {
  font-size: clamp(0.8rem, 1.5vw, 0.95rem);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 1.4rem 2rem;
  margin: 2rem auto 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  user-select: none;
  max-width: 280px;
  border: 1px solid rgba(200,173,138,0.3);
  border-radius: 2px;
  transition: border-color 0.2s;
}

.work-with-me summary:hover {
  border-color: rgba(200,173,138,0.7);
}

.work-with-me summary::-webkit-details-marker { display: none; }

.work-with-me summary::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1;
}

.work-with-me[open] summary::after {
  content: '−';
}

.work-with-me-body {
  padding: 2.5rem 0 3rem;
  max-width: 560px;
  margin: 0 auto;
}

.work-with-me-body p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 2rem;
  text-align: left;
}

.gear-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 2rem;
  margin-bottom: 2rem;
}

.gear-list dt {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.15rem;
}

.gear-list dd {
  font-size: 0.9rem;
  color: var(--text);
}

/* ── FILM PAGES ── */
.film-header {
  padding: 4rem 0 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 3rem;
}

.film-tag {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.film-title {
  font-family: 'Cormorant', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.film-subtitle {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.film-desc {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.75;
  max-width: 640px;
  color: var(--text);
  margin-bottom: 2rem;
}

.film-details {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1.5rem;
}

.film-detail dt {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.film-detail dd {
  font-size: 0.9rem;
  color: var(--text);
}

.film-stills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 4rem;
}

.film-stills img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 6px;
}

.film-stills .full-width {
  grid-column: 1 / -1;
  aspect-ratio: 21/9;
}

/* ── SCREENINGS ── */
.film-screenings {
  padding: 3rem 0 4rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.screenings-title {
  font-family: 'Cormorant', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.screenings-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.screenings-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.screenings-list li:last-child {
  border-bottom: none;
}

.screening-venue {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 400;
}

.screening-location {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.coming-soon {
  padding: 3rem 0 5rem;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.btn-link {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.7rem 1.8rem;
  border: 1px solid rgba(226,217,204,0.3);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}

.btn-link:hover {
  border-color: var(--text);
  background: rgba(226,217,204,0.05);
}

/* ── ABOUT PAGE ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  padding: 4rem 0 5rem;
  align-items: start;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 6px;
}

.about-text h1 {
  font-family: 'Cormorant', Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.about-text .title {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
}

.about-text p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.availability {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.95rem;
  color: var(--text);
}

.contact-block {
  margin-top: 1.5rem;
}

.contact-block dt {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.75rem;
}

.contact-block dd {
  font-size: 0.95rem;
  color: var(--text);
  margin-top: 0.1rem;
}

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

.social-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-icons a {
  display: flex;
  align-items: center;
  opacity: 0.65;
  transition: opacity 0.2s;
}

.social-icons a:hover {
  opacity: 1;
  color: var(--accent);
}

.social-icons svg {
  width: 17px;
  height: 17px;
}

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.93);
  z-index: 9998;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.5;
  line-height: 1;
  transition: opacity 0.2s;
}

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

/* ── FOOTER ── */
footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.footer-contact a {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: var(--text);
}

footer .footer-name {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

footer nav ul {
  display: flex;
  gap: 1.8rem;
}

footer nav ul li a {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 1;
  transition: color 0.2s;
}

footer nav ul li a:hover {
  color: var(--text);
}

.footer-social {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-social a {
  color: var(--muted);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.footer-social a:hover {
  color: var(--text);
}

.footer-social svg {
  width: 15px;
  height: 15px;
}

/* ── VIDEO MODAL ── */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.video-modal.open {
  display: flex;
}

.video-modal-inner {
  position: relative;
  width: 90%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
}

.video-modal-inner iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 4px;
}

.video-modal-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  padding: 0;
}

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

/* ── SCROLL FADE-IN ── */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav {
    padding: 0 1.25rem;
  }

  .nav-toggle {
    display: flex;
  }

  /* Only the header nav gets the fullscreen overlay — not the footer nav */
  body > nav ul {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17,17,17,0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 10000;
    backdrop-filter: blur(8px);
  }

  body > nav ul.open {
    display: flex;
  }

  body > nav ul li a {
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    opacity: 0.7;
  }

  body > nav ul li a:hover,
  body > nav ul li a.active {
    opacity: 1;
  }

  /* Homepage mobile: restore overlay behavior + float hamburger right */
  body.home > nav ul {
    position: fixed;
    inset: 0;
    left: 0;
    transform: none;
  }

  body.home > nav .nav-toggle {
    position: absolute;
    right: 1.25rem;
  }

  main {
    padding: 0 1.25rem;
  }

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

  .cine-gallery {
    grid-template-columns: 1fr;
  }

  .play-btn svg {
    width: 40px;
    height: 40px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-photo {
    max-width: 280px;
  }

  .film-stills {
    grid-template-columns: 1fr;
  }

  .film-stills .full-width {
    aspect-ratio: 16/9;
  }

  footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 1.5rem 1.25rem;
  }
}

@media (max-width: 480px) {
  nav .site-name {
    display: none;
  }

  .cine-gallery {
    grid-template-columns: 1fr;
  }
}
