/* ============================================
   Work cinema — theatrical poster trailer
   ============================================ */

body.has-wrk-cinema {
  background: #050506;
  color: #f3eee6;
}

body.has-wrk-cinema .page-hero-bg,
body.has-wrk-cinema .hero-bg,
body.has-wrk-cinema .hero-grid,
body.has-wrk-cinema .hero-glow {
  display: none !important;
}

.wrk-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #f6f1e8;
}

.wrk-hero-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: #000;
}

.wrk-hero-bloom {
  position: absolute;
  inset: -16%;
  background: center / cover no-repeat url('/assets/cinema/work/hero.jpg?v=fast');
  filter: blur(48px) saturate(1.1) brightness(0.45);
  opacity: 0.85;
}

.wrk-hero-stage.is-live .wrk-hero-bloom {
  opacity: 0;
}

.wrk-hero-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% 62%;
  transform: scale(1.08);
  filter: saturate(1.08) contrast(1.12) brightness(0.88);
  display: block;
}

.wrk-hero-loop,
.wrk-hero-stage .wrk-seam {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% 62%;
  opacity: 0;
  transform: scale(1.08);
  filter: saturate(1.08) contrast(1.12) brightness(0.88);
  transition: opacity 0.5s ease;
}

.wrk-hero-stage.is-live .wrk-hero-loop.is-seam-live,
.wrk-hero-stage.is-live .wrk-seam.is-seam-live {
  opacity: 1;
}

.wrk-hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.28) 46%, rgba(0, 0, 0, 0.18) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, transparent 34%, rgba(0, 0, 0, 0.78) 100%);
}

.wrk-hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 64% at 48% 48%, transparent 20%, rgba(0, 0, 0, 0.78) 100%);
}

.wrk-bars {
  position: absolute;
  left: 0;
  right: 0;
  height: clamp(26px, 6vh, 64px);
  background: #000;
  z-index: 2;
}

.wrk-bars-top { top: 0; }
.wrk-bars-bot { bottom: 0; }

.wrk-hero-copy {
  position: relative;
  z-index: 3;
  padding: 0 0 clamp(4.5rem, 10vh, 7rem);
  max-width: min(44rem, 92vw);
}

.wrk-hero .section-eyebrow,
.wrk-poster-meta,
.wrk-titles-kicker {
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: rgba(237, 210, 150, 0.86);
}

.wrk-hero .section-title {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(3.2rem, 8vw, 7.2rem);
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: #f7f2ea;
  max-width: 10ch;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.wrk-hero .section-desc {
  margin-top: 1.15rem;
  max-width: 32rem;
  color: rgba(243, 238, 230, 0.78);
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.wrk-hero-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.6rem;
  color: rgba(243, 238, 230, 0.62);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
}

.wrk-hero-cue::before {
  content: "";
  width: 1px;
  height: 2.4rem;
  background: linear-gradient(180deg, rgba(237, 210, 150, 0.9), transparent);
}

.wrk-reel {
  position: relative;
  z-index: 3;
  background: #000;
}

.wrk-poster {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #f6f1e8;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.wrk-poster-stage {
  position: absolute;
  inset: 0;
  background: #000;
  pointer-events: none;
}

.wrk-poster-still,
.wrk-poster-stage video,
.wrk-poster-stage .wrk-seam {
  position: absolute;
  inset: -8% -5%;
  width: 110%;
  height: 116%;
  object-fit: cover;
  display: block;
}

.wrk-poster-stage video,
.wrk-poster-stage .wrk-seam {
  opacity: 0;
  transform: scale(1.12);
  filter: saturate(1.05) contrast(1.08) brightness(0.78);
  transition: opacity 0.6s ease, transform 8s linear;
}

.wrk-poster.is-live .wrk-poster-stage video.is-seam-live,
.wrk-poster.is-live .wrk-poster-stage .wrk-seam.is-seam-live {
  opacity: 1;
  transform: scale(1.02);
}

.wrk-poster-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.22) 52%, rgba(0, 0, 0, 0.35) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, transparent 32%, rgba(0, 0, 0, 0.82) 100%);
}

.wrk-poster-copy {
  position: relative;
  z-index: 3;
  width: min(42rem, 92vw);
  padding: 0 0 clamp(4.4rem, 10vh, 7rem);
  margin-left: clamp(1.4rem, 6vw, 5rem);
}

.wrk-poster-index {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.75;
  color: rgba(237, 210, 150, 0.28);
  margin: 0 0 0.85rem;
}

.wrk-logo-plate {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0.2rem 0 1rem;
  padding: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
}

.wrk-logo-plate .project-logo {
  max-height: 3.25rem;
  width: auto;
  max-width: min(14rem, 58vw);
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.55));
}

#scanspe .wrk-logo-plate .project-logo {
  max-height: 3.8rem;
  max-width: 3.8rem;
}

#gcsio .wrk-logo-plate .project-logo {
  max-height: 4.4rem;
}

#abefer .wrk-logo-plate .project-logo {
  max-height: 3.6rem;
}

#oneottawa .wrk-logo-plate .project-logo {
  max-height: 4.2rem;
}

#swisderm .wrk-logo-plate .project-logo {
  max-height: 2.4rem;
  max-width: min(18rem, 70vw);
}

.wrk-poster-copy h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
  margin: 0 0 0.9rem;
  text-shadow: 0 14px 32px rgba(0, 0, 0, 0.5);
}

.wrk-poster-copy > p {
  color: rgba(243, 238, 230, 0.78);
  max-width: 34rem;
  font-size: 1.02rem;
  line-height: 1.65;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

.wrk-poster-scope {
  margin-top: 1.15rem !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(237, 210, 150, 0.8) !important;
}

.wrk-poster-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.45rem;
  color: #f6f1e8;
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(237, 210, 150, 0.45);
  padding-bottom: 0.28rem;
}

.wrk-poster-link:hover,
.wrk-poster-link:focus-visible {
  color: rgba(237, 210, 150, 0.95);
}

.wrk-titles {
  position: relative;
  z-index: 3;
  background: #070708;
  padding: clamp(4.5rem, 10vh, 7.5rem) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.wrk-titles-inner {
  max-width: 40rem;
}

.wrk-titles h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #f6f1e8;
  margin: 0.5rem 0 0.85rem;
}

.wrk-titles-inner > p {
  color: rgba(243, 238, 230, 0.7);
  max-width: 34rem;
}

body.has-wrk-cinema .cta-banner {
  margin-top: 2.4rem;
  background: transparent;
  border: 0;
  padding: 0;
}

.wrk-loop::-webkit-media-controls,
.wrk-loop::-webkit-media-controls-start-playback-button,
.wrk-loop::-webkit-media-controls-overlay-play-button,
.wrk-hero-loop::-webkit-media-controls,
.wrk-hero-loop::-webkit-media-controls-overlay-play-button,
.wrk-seam::-webkit-media-controls,
.wrk-seam::-webkit-media-controls-overlay-play-button {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 900px) {
  .wrk-hero .section-title {
    max-width: none;
  }

  .wrk-poster-copy {
    margin-left: 1.2rem;
    margin-right: 1.2rem;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wrk-hero-loop,
  .wrk-seam,
  .wrk-poster-stage video {
    display: none;
  }

  .wrk-hero-bloom,
  .wrk-hero-still,
  .wrk-poster-still {
    opacity: 1 !important;
  }

  .wrk-poster-stage video,
  .wrk-poster-stage .wrk-seam {
    transition: none;
  }
}
