/* ====================== WIDESCREEN — cinematic, letterboxed ==================
   All selectors scoped to .pg-widescreen.
   Signature palette: darkroom (#0c0c0c / #eeeeea / #ff4d00).
   Design intention: A24 title sequence — generous bars, wide-tracked name,
   end-credits production list, 2.39:1 stills, Spectral bio, negative space.
   =========================================================================== */

/* — Base ------------------------------------------------------------------ */

.pg-widescreen {
  font-family: var(--font-body);
}

/* — Navigation bar -------------------------------------------------------- */

.pg-widescreen .ws-nav {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(1.2rem, 3.5cqw, 2.4rem);
  border-bottom: 1px solid var(--line);
}

.pg-widescreen .ws-nav .logo { max-height: 34px; }

.pg-widescreen .ws-init {
  font: 700 10px/1 var(--font-mono);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
}

.pg-widescreen .ws-nav-tag {
  font: 400 8px/1 var(--font-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* — Letterboxed hero ------------------------------------------------------ */

.pg-widescreen .ws-hero {
  /* Bars share the page ground — on darkroom this reads as pure cinematic black.
     On light palettes the bars become light frames; both are intentional. */
  background: var(--bg);
}

.pg-widescreen .ws-bar {
  padding-left: clamp(1.2rem, 3.5cqw, 2.4rem);
  padding-right: clamp(1.2rem, 3.5cqw, 2.4rem);
}

.pg-widescreen .ws-bar--top {
  height: clamp(2.8rem, 7cqh, 5rem);
}

.pg-widescreen .ws-bar--btm {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  padding-top: 1.2rem;
  padding-bottom: clamp(2.4rem, 6cqh, 4.5rem);
}

/* 2.39:1 widescreen image */
.pg-widescreen .ws-lensbar {
  display: block;
  width: 100%;
  aspect-ratio: 2.39 / 1;
  overflow: hidden;
  margin: 0;
}

.pg-widescreen .ws-lensbar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: grayscale(.12) contrast(1.04) brightness(.97);
  transition: filter .7s ease;
}

.pg-widescreen .ws-lensbar:hover img {
  filter: grayscale(0) contrast(1) brightness(1);
}

/* void frame when no image is present */
.pg-widescreen .ws-lensbar--void {
  background: color-mix(in srgb, var(--ink) 5%, var(--bg));
}

/* single accent rule — the punctuation mark of the design */
.pg-widescreen .ws-rule {
  display: block;
  width: clamp(30px, 4.5cqw, 60px);
  height: 1px;
  background: var(--accent);
}

/* name: wide-tracked caps, small and precise, not loud */
.pg-widescreen .ws-title {
  font: 800 clamp(.78rem, 1.55cqw, 1rem) / 1 var(--font-sans);
  letter-spacing: .44em;
  text-transform: uppercase;
  margin: 0;
}

.pg-widescreen .ws-sub {
  font: 400 8px/1 var(--font-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

/* — Shared kicker label --------------------------------------------------- */

.pg-widescreen .ws-kicker {
  font: 500 8px/1.5 var(--font-mono);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 clamp(1.4rem, 3.5cqw, 2rem);
}

/* — Stats strip ----------------------------------------------------------- */

.pg-widescreen .ws-stats {
  display: flex;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pg-widescreen .ws-stat {
  flex: 1;
  min-height: 68px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .35rem;
  padding: .9rem clamp(1.2rem, 3.5cqw, 2.4rem);
  border-right: 1px solid var(--line);
}

.pg-widescreen .ws-stat:last-child { border-right: 0; }

.pg-widescreen .ws-stat b {
  display: block;
  font: 400 clamp(1.3rem, 3.8cqw, 2rem) / 1 'Bebas Neue', var(--font-sans);
  letter-spacing: .05em;
  color: var(--accent);
}

.pg-widescreen .ws-stat span {
  font: 400 7px/1.4 var(--font-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* — Productions — end-credits two-column list ----------------------------- */

.pg-widescreen .ws-credits {
  padding: clamp(3.4rem, 8cqw, 5.4rem) clamp(1.2rem, 3.5cqw, 2.4rem);
  border-bottom: 1px solid var(--line);
}

.pg-widescreen .ws-credits-body {
  columns: 2;
  column-gap: clamp(1.6rem, 4cqw, 3rem);
  column-rule: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.pg-widescreen .ws-credit {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--line);
  break-inside: avoid;
}

.pg-widescreen .ws-num {
  font: 400 7px/1 var(--font-mono);
  letter-spacing: .06em;
  color: var(--muted);
  flex-shrink: 0;
  padding-top: .1em;
}

.pg-widescreen .ws-ctitle {
  font: 500 clamp(.75rem, 1.7cqw, .88rem) / 1.35 var(--font-sans);
  letter-spacing: .01em;
}

.pg-widescreen .ws-more {
  margin-top: 1.1rem;
  font: 400 7px var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* — Stills — strict 2.39:1 film row --------------------------------------- */

.pg-widescreen .ws-stills {
  padding: clamp(3.4rem, 8cqw, 5.4rem) clamp(1.2rem, 3.5cqw, 2.4rem);
  border-bottom: 1px solid var(--line);
}

.pg-widescreen .ws-filmrow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.pg-widescreen .ws-still {
  margin: 0;
}

.pg-widescreen .ws-still img {
  width: 100%;
  aspect-ratio: 2.39 / 1;
  object-fit: cover;
  display: block;
  filter: grayscale(.18);
  transition: filter .5s ease;
}

.pg-widescreen .ws-still:hover img { filter: grayscale(0); }

.pg-widescreen .ws-still figcaption {
  margin-top: .45rem;
  font: 400 7px var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* "+N more" overflow cell */
.pg-widescreen .ws-still--more {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 2.39 / 1;
  background: var(--surface);
  font: 500 9px var(--font-mono);
  letter-spacing: .1em;
  color: var(--muted);
}

/* — YouTube reel ---------------------------------------------------------- */

.pg-widescreen .ws-reel {
  padding: 0 clamp(1.2rem, 3.5cqw, 2.4rem) clamp(3.4rem, 8cqw, 5rem);
}

/* — Bio — centered quiet Spectral paragraph ------------------------------- */

.pg-widescreen .ws-bio {
  padding: clamp(4.4rem, 11cqw, 7.2rem) clamp(2.8rem, 10cqw, 7.6rem);
  background: var(--surface);
  text-align: center;
}

.pg-widescreen .ws-bio .ws-kicker {
  display: block;
  text-align: center;
}

.pg-widescreen .ws-statement {
  max-width: 680px;
  margin: 0 auto;
  font: 400 clamp(1.05rem, 2.4cqw, 1.45rem) / 1.72 'Spectral', var(--font-serif);
  letter-spacing: .01em;
}

/* — Meta: publishers / territories / works -------------------------------- */

.pg-widescreen .ws-meta {
  display: flex;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pg-widescreen .ws-meta-col {
  flex: 1;
  padding: clamp(2.2rem, 5cqw, 3.4rem) clamp(1.2rem, 3.5cqw, 2.4rem);
  border-right: 1px solid var(--line);
}

.pg-widescreen .ws-meta-col:last-child { border-right: 0; }

.pg-widescreen .ws-meta ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pg-widescreen .ws-meta li {
  padding: .5rem 0;
  border-bottom: 1px solid var(--line);
  font: 400 clamp(.72rem, 1.5cqw, .82rem) / 1.45 var(--font-sans);
}

.pg-widescreen .ws-meta li:last-child { border-bottom: 0; }

/* — Contact footer -------------------------------------------------------- */

.pg-widescreen .ws-contact {
  padding: clamp(3.4rem, 9cqw, 5.6rem) clamp(1.2rem, 3.5cqw, 2.4rem) 2.4rem;
  background: var(--ink);
  color: var(--bg);
}

.pg-widescreen .ws-contact .ws-kicker {
  color: color-mix(in srgb, var(--bg) 62%, var(--ink));
  margin-bottom: 0;
}

.pg-widescreen .ws-soc-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: clamp(1.8rem, 4cqw, 2.8rem);
  padding-top: 1.2rem;
  border-top: 1px solid color-mix(in srgb, var(--bg) 26%, transparent);
}

.pg-widescreen .ws-contact .soc { color: var(--bg); }

/* — Responsive — @container page queries (no @media) --------------------- */

@container page (max-width: 620px) {
  /* stats: stack single column */
  .pg-widescreen .ws-stats { flex-direction: column; }
  .pg-widescreen .ws-stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .pg-widescreen .ws-stat:last-child { border-bottom: 0; }

  /* credits: single column */
  .pg-widescreen .ws-credits-body { columns: 1; column-rule: none; }

  /* stills: 2-across */
  .pg-widescreen .ws-filmrow { grid-template-columns: 1fr 1fr; }

  /* bio: tighter horizontal padding */
  .pg-widescreen .ws-bio {
    padding-left: clamp(1.4rem, 5cqw, 3rem);
    padding-right: clamp(1.4rem, 5cqw, 3rem);
  }

  /* meta: stack columns */
  .pg-widescreen .ws-meta { flex-direction: column; }
  .pg-widescreen .ws-meta-col { border-right: 0; border-bottom: 1px solid var(--line); }
  .pg-widescreen .ws-meta-col:last-child { border-bottom: 0; }
}

@container page (max-width: 390px) {
  /* stills: single column on very narrow containers */
  .pg-widescreen .ws-filmrow { grid-template-columns: 1fr; }

  /* reduce tracking on tiny screens so the name doesn't clip */
  .pg-widescreen .ws-title { letter-spacing: .28em; }
}

/* ── Widescreen · filmic motion ──────────────────────────────────────────── */

/* Accent selection tint */
.pg-widescreen ::selection { background: var(--accent); color: var(--bg); }

/* Film grain on the 2.39:1 lens bar — needs position:relative to anchor ::after */
.pg-widescreen .ws-lensbar { position: relative; }
.pg-widescreen .ws-lensbar::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Ken Burns on the hero image — one-shot, 22 s ease-out.
   The lensbar's overflow:hidden safely clips the 6% expansion. */
@keyframes ws-ken-burns {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}
@media (prefers-reduced-motion: no-preference) {
  .pg-widescreen .ws-lensbar img {
    animation: ws-ken-burns 22s ease-out both;
  }
}

/* Letterbox bars ease open when the hero scroll-reveals.
   Top bar drops down, bottom bar rises up (controlled by max-height clip). */
@media (prefers-reduced-motion: no-preference) {
  .stage.animate .pg-widescreen .ws-bar--top {
    overflow: hidden;
    max-height: 0;
    transition: max-height .72s cubic-bezier(.4,0,.2,1);
  }
  .stage.animate .pg-widescreen .ws-hero.in .ws-bar--top {
    max-height: clamp(2.8rem, 7cqh, 5rem);
  }
  .stage.animate .pg-widescreen .ws-bar--btm {
    overflow: hidden;
    max-height: 0;
    transition: max-height .88s cubic-bezier(.4,0,.2,1);
    transition-delay: .16s;
  }
  .stage.animate .pg-widescreen .ws-hero.in .ws-bar--btm {
    /* generous cap: padding-top 1.2rem + title + sub + padding-bottom ~4.5rem */
    max-height: 14rem;
  }
}

/* Credits stagger — rows cascade in when the section scroll-reveals */
@media (prefers-reduced-motion: no-preference) {
  .stage.animate .pg-widescreen .ws-credits .ws-credit {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .4s ease, transform .4s ease;
  }
  .stage.animate .pg-widescreen .ws-credits.in .ws-credit { opacity: 1; transform: none; }
  .stage.animate .pg-widescreen .ws-credits.in .ws-credit:nth-child(1)  { transition-delay: .04s; }
  .stage.animate .pg-widescreen .ws-credits.in .ws-credit:nth-child(2)  { transition-delay: .08s; }
  .stage.animate .pg-widescreen .ws-credits.in .ws-credit:nth-child(3)  { transition-delay: .12s; }
  .stage.animate .pg-widescreen .ws-credits.in .ws-credit:nth-child(4)  { transition-delay: .16s; }
  .stage.animate .pg-widescreen .ws-credits.in .ws-credit:nth-child(5)  { transition-delay: .20s; }
  .stage.animate .pg-widescreen .ws-credits.in .ws-credit:nth-child(6)  { transition-delay: .24s; }
  .stage.animate .pg-widescreen .ws-credits.in .ws-credit:nth-child(7)  { transition-delay: .28s; }
  .stage.animate .pg-widescreen .ws-credits.in .ws-credit:nth-child(8)  { transition-delay: .32s; }
  .stage.animate .pg-widescreen .ws-credits.in .ws-credit:nth-child(9)  { transition-delay: .36s; }
  .stage.animate .pg-widescreen .ws-credits.in .ws-credit:nth-child(10) { transition-delay: .40s; }
}

/* Stills: deepen the starting grade; brighten fully on hover */
.pg-widescreen .ws-still img {
  filter: grayscale(.22) contrast(1.04) brightness(.91);
  transition: filter .55s ease;
}
.pg-widescreen .ws-still:hover img {
  filter: grayscale(0) contrast(1.02) brightness(1.06);
}

/* Contact links: accent underline draws in on hover */
.pg-widescreen .ws-contact .soc {
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1px;
  background-position: left bottom;
  background-repeat: no-repeat;
  transition: background-size .32s ease;
}
.pg-widescreen .ws-contact .soc:hover { background-size: 100% 1px; }
