/* ============================================
   SIENA PARALLAX — Exact replica of reference
   
   Key observations from the reference:
   1. Hero: Pure B&W image, NO text overlay, fills viewport
   2. As you scroll: clip-path shrinks image into rounded rect
   3. Content section: cream #fcfbf6, rounded top, slides over
   4. Content: small uppercase label + HUGE bold title + arrow
   5. Below title: another image in rounded container
   6. No accents — pure black text on cream
   ============================================ */

/* ── The Scroll Container (200vh trick) ──────── */
.parallax-scroll-container {
  position: relative;
  height: 150vh;
  height: 150dvh;
  background: #000;
}

/* ── Sticky Hero (pinned to viewport) ──────── */
.parallax-sticky-hero {
  position: sticky;
  top: 0;
  height: 75vh;
  height: 75dvh;
  width: 100%;
  overflow: hidden;
  background: #000;
  z-index: 0;
}

/* ── The Mask (animated via GSAP clip-path) ──── */
.parallax-mask {
  width: 100%;
  height: 100%;
  clip-path: inset(0% 0% 0% 0% round 0px);
  /* Will be animated to: inset(10% 5% 20% 5% round 32px) */
}

/* ── The Image (B&W, parallax zoom) ──────────── */
.parallax-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Shifted slightly up from center to ensure the face stays in frame */
  object-position: 50% 25%;
  opacity: 0.85;
  transform: scale(1);
  will-change: transform;
}


/* ══════════════════════════════════════════════
   Content Section — slides OVER the hero
   The -100vh margin pulls it up into the scroll space
   ══════════════════════════════════════════════ */
.parallax-content-section {
  position: relative;
  z-index: 10;
  margin-top: -85vh;
  margin-top: -85dvh;
  background-color: #fcfbf6;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem 2rem 6rem;
  text-align: center;

  /* Rounded top corners (round cut out at edges) */
  border-radius: 80px 80px 0 0;
}

/* Footer: break out of the centred column, span full width, sit flush at the bottom */
.parallax-content-section > .site-footer {
  align-self: stretch;
  margin: 6rem -2rem -6rem;
  text-align: left;
}

.parallax-content-section > .site-footer .container {
  max-width: none;
  padding: 0 clamp(2rem, 5vw, 5rem);
}


/* ── Label (e.g. "DOCUMENTARY" or "ACTOR") ──── */
.parallax-content-label {
  font-family: var(--font-label, 'Outfit', sans-serif);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 1.5rem;
}


/* ── Title (e.g. "MY PROJECT X" or "MADS MIKKELSEN") ── */
.parallax-content-title {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: clamp(2rem, 6.5vw, 5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: #000;
  margin-bottom: 2.5rem;
}


/* ── Scroll Down Button (black circle + arrow) ── */
.parallax-scroll-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
}

.parallax-scroll-btn:hover {
  transform: scale(1.1);
}


/* ══════════════════════════════════════════════
   Second Parallax Image Section
   (the rounded image that appears below the title
    as seen in the reference when scrolled further)
   ══════════════════════════════════════════════ */
.parallax-second-image {
  width: 100%;
  max-width: 900px;
  margin: 8vh auto 0;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.parallax-second-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Shifted slightly to show the wine glass while keeping the head */
  object-position: 50% 20%;
  filter: grayscale(100%);
  opacity: 0.85;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.parallax-second-image:hover img {
  transform: scale(1.03);
}


/* ══════════════════════════════════════════════
   Additional sections below the parallax
   (for the rest of the home page content)
   ══════════════════════════════════════════════ */

/* Section on cream background */
.home-section {
  padding: 6rem 0;
  background: #fcfbf6;
}

.home-section-dark {
  padding: 6rem 0;
  background: #000;
  color: #fff;
}

/* Section header pattern matching the reference style */
.home-section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.home-section-header .section-label {
  font-family: var(--font-label, 'Outfit', sans-serif);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #555;
  display: block;
  margin-bottom: 1.25rem;
}

.home-section-header h2 {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: inherit;
}

/* Divider line */
.section-divider {
  width: 50px;
  height: 2px;
  background: #000;
  margin: 1.5rem auto 0;
}

.home-section-dark .section-divider {
  background: #fff;
}


/* ── Film cards grid ────────────────────────── */
.film-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1050px;
  margin: 0 auto;
}

.film-card {
  display: flex;
  flex-direction: column;
  width: calc(33.333% - 1.35rem);
  cursor: pointer;
}

.film-card-image {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 2/3;
  margin-bottom: 1.25rem;
}

.film-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.film-card:hover .film-card-image img {
  transform: scale(1.06);
}

.film-card-info {
  text-align: center;
  padding: 0 0.5rem;
}

.film-card-info .year {
  font-family: var(--font-label, 'Outfit', sans-serif);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 0.4rem;
  display: block;
}

.film-card-info h3 {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: 1.15rem;
  font-weight: 800;
  color: #000;
  text-transform: uppercase;
  line-height: 1.2;
}

.film-card-info .role {
  font-size: 0.85rem;
  color: #555;
  margin-top: 0.35rem;
  font-style: italic;
}


/* ── Gallery category cards ─────────────────── */
.gallery-cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1050px;
  margin: 0 auto;
}

.gallery-cat {
  position: relative;
  display: block;
  aspect-ratio: 3/4;
  border-radius: 12px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: #111;
}

.gallery-cat img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-cat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.25) 45%, rgba(0,0,0,0) 70%);
  transition: background 0.4s;
}

.gallery-cat-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.gallery-cat-label .count {
  display: block;
  font-family: var(--font-label, 'Outfit', sans-serif);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.5rem;
}

.gallery-cat-label h3 {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.gallery-cat-label .arrow {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--font-label, 'Outfit', sans-serif);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s, transform 0.4s;
}

.gallery-cat:hover img,
.gallery-cat:focus-visible img {
  transform: scale(1.07);
}

.gallery-cat:hover::after,
.gallery-cat:focus-visible::after {
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 55%, rgba(0,0,0,0.1) 100%);
}

.gallery-cat:hover .arrow,
.gallery-cat:focus-visible .arrow {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .gallery-cats { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}

@media (max-width: 600px) {
  .gallery-cats {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }
  .gallery-cat {
    aspect-ratio: 16 / 9;
    border-radius: 14px;
  }
  .gallery-cat-label {
    padding: 1.25rem 1.25rem;
  }
  .gallery-cat-label h3 {
    font-size: 1.15rem;
  }
  .gallery-cat-label .count {
    font-size: 0.55rem;
    margin-bottom: 0.25rem;
  }
  .gallery-cat .arrow {
    opacity: 1;
    transform: none;
    margin-top: 0.35rem;
  }
}


/* ── Gallery mosaic ─────────────────────────── */
.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(60%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

/* Varied heights for the mosaic */
.gallery-item:nth-child(1) { aspect-ratio: 3/4; }
.gallery-item:nth-child(2) { aspect-ratio: 1/1; }
.gallery-item:nth-child(3) { aspect-ratio: 3/4; }
.gallery-item:nth-child(4) { aspect-ratio: 1/1; }
.gallery-item:nth-child(5) { aspect-ratio: 3/4; }
.gallery-item:nth-child(6) { aspect-ratio: 1/1; }


/* ── News cards ─────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.news-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.3s, box-shadow 0.3s;
}

/* Staggered entrance (cards use the global .reveal class) */
.news-card.reveal {
  transition: opacity 0.7s var(--ease-out, ease), transform 0.7s var(--ease-out, ease), box-shadow 0.3s;
}
.news-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.news-card.reveal:nth-child(3) { transition-delay: 0.2s; }
.news-card.reveal.visible:hover { transition-delay: 0s; }

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

.news-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: 50% 15%;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover img {
  transform: scale(1.04);
}

/* News section as a standalone panel */
#news-section {
  border-radius: 24px;
  margin-bottom: 5rem;
}

.news-card-body {
  padding: 1.25rem;
}

.news-card-body .date {
  font-family: var(--font-label, 'Outfit', sans-serif);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.5rem;
  display: block;
}

.news-card-body h3 {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: #000;
}

.news-card-body p {
  font-size: 0.8rem;
  color: #777;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ── CTA button matching reference aesthetic ── */
.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-label, 'Outfit', sans-serif);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: #000;
  color: #fff;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.btn-dark:hover {
  transform: translateY(-2px);
  background: #222;
}

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-label, 'Outfit', sans-serif);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: transparent;
  color: #000;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  border: 1.5px solid #000;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline-dark:hover {
  background: #000;
  color: #fff;
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-label, 'Outfit', sans-serif);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: transparent;
  color: #fff;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline-light:hover {
  background: #fff;
  color: #000;
}


/* ── Fanclub CTA ────────────────────────────── */
.fanclub-cta {
  position: relative;
  padding: 8rem 2rem;
  text-align: center;
  overflow: hidden;
  background: #000;
  border-radius: 24px;
}

.fanclub-cta-bg {
  position: absolute;
  inset: 0;
}

.fanclub-cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.25);
}

.fanclub-cta-content {
  position: relative;
  z-index: 1;
  max-width: 550px;
  margin: 0 auto;
}

.fanclub-cta-content .section-label {
  font-family: var(--font-label, 'Outfit', sans-serif);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  display: block;
  margin-bottom: 1.25rem;
}

.fanclub-cta-content h2 {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 1.25rem;
}

.fanclub-cta-content p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 2rem;
}


/* ── Responsive ─────────────────────────────── */
@media (max-width: 1024px) {
  .film-card { width: calc(50% - 1rem); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Scroll Container & Parallax Section */
  .parallax-scroll-container {
    height: 130vh;
    height: 130dvh;
  }

  .parallax-sticky-hero {
    height: 65vh;
    height: 65dvh;
  }

  .parallax-content-section {
    margin-top: -68vh;
    margin-top: -68dvh;
    border-radius: 28px 28px 0 0;
    padding: 2.5rem 1.25rem 4rem;
  }

  .parallax-content-label {
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    margin-bottom: 1rem;
  }

  .parallax-content-title {
    font-size: clamp(1.85rem, 7.5vw, 2.85rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
  }

  .parallax-second-image {
    width: 100%;
    margin: 1.5rem auto 0;
    border-radius: 16px;
    aspect-ratio: 16 / 10;
  }

  .parallax-content-section > .site-footer {
    margin: 3.5rem -1.25rem -4rem;
  }

  /* 2-Column Editorial Grid for Filmography */
  .film-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 0.85rem;
    max-width: 580px;
    margin: 0 auto;
  }

  .film-card {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  /* Odd card count: centre the last poster instead of leaving an empty slot */
  .film-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 0.425rem);
  }

  .film-card-image {
    margin-bottom: 0.75rem;
    border-radius: 10px;
    aspect-ratio: 2 / 3;
  }

  .film-card-info {
    padding: 0 0.25rem;
  }

  .film-card-info .year {
    font-size: 0.58rem;
    letter-spacing: 0.15em;
    margin-bottom: 0.2rem;
  }

  .film-card-info h3 {
    font-size: 0.95rem;
    line-height: 1.2;
  }

  .film-card-info .role {
    font-size: 0.78rem;
    margin-top: 0.2rem;
  }

  /* News Cards */
  #news-section {
    border-radius: 20px;
    margin-bottom: 3.5rem;
    padding: 3.5rem 0;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .news-card {
    border-radius: 14px;
  }

  .news-card img {
    aspect-ratio: 16 / 9;
  }

  .news-card-body {
    padding: 1.1rem;
  }

  .news-card-body h3 {
    font-size: 0.98rem;
  }

  .news-card-body p {
    font-size: 0.8rem;
  }

  /* Gallery Mosaic */
  .gallery-mosaic {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  /* Fanclub CTA */
  .fanclub-cta {
    padding: 3.5rem 1.25rem;
    border-radius: 20px;
    margin-bottom: 2rem;
  }

  .fanclub-cta-content h2 {
    font-size: clamp(1.85rem, 7vw, 2.5rem);
    margin-bottom: 0.85rem;
  }

  .fanclub-cta-content p {
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
  }

  /* General Home Sections */
  .home-section, .home-section-dark {
    padding: 3.5rem 0;
  }

  .home-section-header {
    margin-bottom: 2.5rem;
  }

  .home-section-header h2 {
    font-size: clamp(1.85rem, 7vw, 2.5rem);
  }

  /* Buttons */
  .btn-dark, .btn-outline-dark, .btn-outline-light {
    padding: 0.85rem 1.75rem;
    font-size: 0.62rem;
  }

  .container {
    padding: 0 1.25rem;
  }
}

@media (max-width: 400px) {
  .film-grid {
    gap: 1.25rem 0.65rem;
  }

  .film-card:last-child:nth-child(odd) {
    width: calc(50% - 0.325rem);
  }

  .film-card-info h3 {
    font-size: 0.88rem;
  }

  .film-card-info .role {
    font-size: 0.72rem;
  }
}

