/* ======================== FULL BLEED — immersive, image-first ================
   All selectors scoped to .pg-fullbleed.
   Signature palette: darkroom (#0c0c0c / #eeeeea / #ff4d00).
   Design: the site as a sequence of full-width photographs with typography
   floating above and between them. Hero name rides on top of the image using
   mix-blend-mode: difference — guaranteed contrast on any image and any palette
   without a dark scrim. Image rhythm: 16:9 full-width singles + edge-to-edge
   3-column strips, numbered in DM Mono. Bio and productions break the image
   scroll on inverted slabs. Hairline discipline throughout; zero border-radius.
   ============================================================================= */

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

.pg-fullbleed {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
}

/* — Shared kicker label — DM Mono, uppercase, muted ------------------------ */

.pg-fullbleed .fb-kicker {
  margin: 0 0 clamp(1rem, 2.5cqw, 1.6rem);
  font: 500 8px / 1.5 var(--font-mono);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.pg-fullbleed .fb-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-fullbleed .fb-nav .logo {
  max-height: 34px;
  width: auto;
}

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

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

/* — Hero: full-bleed image with name overlay ------------------------------- */
/* isolation: isolate confines the mix-blend-mode to this section only.       */

.pg-fullbleed .fb-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* ~16:9 ratio minimum, never shorter than 220px, never taller than 840px */
  min-height: clamp(220px, 56cqw, 840px);
  overflow: hidden;
  background: var(--bg);
}

/* The photograph: stretches to fill whatever height the hero needs */
.pg-fullbleed .fb-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: contrast(1.06) brightness(.9);
  transition: filter .8s ease;
}

.pg-fullbleed .fb-hero:hover .fb-hero-img {
  filter: contrast(1) brightness(1);
}

/* mix-blend-mode: difference makes white text invert the image pixels below.
   Result: near-white on dark image areas, near-black on light areas.
   Text is visible on every image and every palette with no opaque overlay. */
.pg-fullbleed .fb-hero-copy {
  position: relative;
  z-index: 1;
  mix-blend-mode: difference;
  color: #fff;
  padding: clamp(1.4rem, 3cqw, 2.4rem) clamp(1.2rem, 3.5cqw, 2.4rem);
}

/* Artist name: Bebas Neue fills the width — huge, tracked, uppercase */
.pg-fullbleed .fb-name {
  font: 400 clamp(3.8rem, 16cqw, 14rem) / .86 'Bebas Neue', var(--font-sans);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 0 0 .35em;
  word-break: break-word;
}

/* Tagline: mono micro-text below the name, slightly transparent */
.pg-fullbleed .fb-hero-sub {
  font: 500 8px / 1 var(--font-mono);
  letter-spacing: .26em;
  text-transform: uppercase;
  margin: 0;
  opacity: .7;
}

/* — Stats strip — horizontal bar on surface ground ------------------------- */

.pg-fullbleed .fb-stats {
  display: flex;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.pg-fullbleed .fb-stat {
  flex: 1;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .3rem;
  padding: 1rem clamp(1.2rem, 3.5cqw, 2.4rem);
  border-right: 1px solid var(--line);
}

.pg-fullbleed .fb-stat:last-child {
  border-right: 0;
}

.pg-fullbleed .fb-stat b {
  display: block;
  font: 400 clamp(1.6rem, 4.2cqw, 2.6rem) / 1 'Bebas Neue', var(--font-sans);
  letter-spacing: .04em;
  color: var(--accent);
}

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

/* — Image sequence sections ------------------------------------------------ */

.pg-fullbleed .fb-seq {
  /* no padding — images run edge to edge */
}

/* 16:9 full-width single frame */
.pg-fullbleed .fb-single {
  display: block;
  margin: 0;
  position: relative;
}

.pg-fullbleed .fb-single img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: contrast(1.04) brightness(.95);
  transition: filter .7s ease;
}

.pg-fullbleed .fb-single:hover img {
  filter: contrast(1) brightness(1);
}

/* Mono frame label: bottom-left corner, white on subtle dark ghost */
.pg-fullbleed .fb-frame-label {
  position: absolute;
  left: clamp(.5rem, 1.2cqw, 1rem);
  bottom: clamp(.4rem, 1cqw, .8rem);
  font: 400 8px / 1 var(--font-mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
  background: rgba(0, 0, 0, .22);
  padding: 3px 6px;
  pointer-events: none;
}

/* Edge-to-edge multi-column strip — auto-fit fills based on item count */
.pg-fullbleed .fb-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 2px;
}

.pg-fullbleed .fb-strip-item {
  display: block;
  margin: 0;
  position: relative;
}

.pg-fullbleed .fb-strip-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(.1) contrast(1.04);
  transition: filter .5s ease;
}

.pg-fullbleed .fb-strip-item:hover img {
  filter: grayscale(0) contrast(1);
}

/* Strip frame numbers: bottom-left, no background pill */
.pg-fullbleed .fb-strip-item figcaption {
  position: absolute;
  left: .5rem;
  bottom: .4rem;
  font: 400 7px / 1 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
  pointer-events: none;
}

/* — Bio slab — inverted ground, Spectral prose ----------------------------- */

.pg-fullbleed .fb-bio {
  padding: clamp(3.2rem, 8cqw, 5.6rem) clamp(1.8rem, 6cqw, 5.5rem);
  background: var(--ink);
  color: var(--bg);
}

.pg-fullbleed .fb-bio .fb-kicker {
  color: color-mix(in srgb, var(--bg) 58%, var(--ink));
}

.pg-fullbleed .fb-bio-text {
  max-width: 680px;
  margin: 0;
  font: 400 clamp(1.05rem, 2.5cqw, 1.5rem) / 1.72 'Spectral', var(--font-serif);
  letter-spacing: .005em;
}

/* — Archive overflow note -------------------------------------------------- */

.pg-fullbleed .fb-archive-note {
  padding: clamp(.8rem, 1.8cqw, 1.2rem) clamp(1.2rem, 3.5cqw, 2.4rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font: 400 8px / 1 var(--font-mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* — Productions — inverted-ground numbered index --------------------------- */

.pg-fullbleed .fb-prods {
  padding: clamp(2.8rem, 6.5cqw, 5rem) clamp(1.2rem, 3.5cqw, 2.4rem);
  background: var(--ink);
  color: var(--bg);
  border-top: 1px solid color-mix(in srgb, var(--bg) 16%, transparent);
}

.pg-fullbleed .fb-prods .fb-kicker {
  color: color-mix(in srgb, var(--bg) 58%, var(--ink));
}

.pg-fullbleed .fb-prod-list {
  border-top: 1px solid color-mix(in srgb, var(--bg) 18%, transparent);
}

.pg-fullbleed .fb-prod-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: .65rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--bg) 14%, transparent);
}

.pg-fullbleed .fb-prod-num {
  font: 400 7px / 1 var(--font-mono);
  letter-spacing: .06em;
  color: color-mix(in srgb, var(--bg) 50%, var(--ink));
  flex-shrink: 0;
  min-width: 1.8rem;
}

.pg-fullbleed .fb-prod-row strong {
  font: 500 clamp(.78rem, 1.6cqw, .9rem) / 1.35 var(--font-sans);
  letter-spacing: .01em;
}

.pg-fullbleed .fb-more {
  margin-top: .9rem;
  font: 400 7px var(--font-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--bg) 50%, var(--ink));
}

/* — YouTube reel — hairline-framed full-width embed ------------------------ */

.pg-fullbleed .fb-reel {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

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

.pg-fullbleed .fb-meta-col {
  flex: 1;
  padding: clamp(2rem, 4.5cqw, 3.2rem) clamp(1.2rem, 3.5cqw, 2.4rem);
  border-right: 1px solid var(--line);
}

.pg-fullbleed .fb-meta-col:last-child {
  border-right: 0;
}

.pg-fullbleed .fb-meta ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pg-fullbleed .fb-meta li {
  padding: .5rem 0;
  border-bottom: 1px solid var(--line);
  font: 400 clamp(.74rem, 1.5cqw, .84rem) / 1.45 var(--font-sans);
}

.pg-fullbleed .fb-meta li:last-child {
  border-bottom: 0;
}

/* — Contact footer — inverted ground --------------------------------------- */

.pg-fullbleed .fb-contact {
  padding: clamp(3.2rem, 8cqw, 5.6rem) clamp(1.2rem, 3.5cqw, 2.4rem) 2.8rem;
  background: var(--ink);
  color: var(--bg);
}

.pg-fullbleed .fb-contact .fb-kicker {
  color: color-mix(in srgb, var(--bg) 55%, var(--ink));
  margin-bottom: clamp(.8rem, 2cqw, 1.2rem);
}

/* Display heading: Fraunces italic blend against Bebas hero */
.pg-fullbleed .fb-contact-hed {
  font: 400 clamp(2.6rem, 7cqw, 5.5rem) / .9 'Fraunces', var(--font-serif);
  letter-spacing: -.01em;
  margin: 0 0 clamp(1.6rem, 4cqw, 2.8rem);
}

.pg-fullbleed .fb-contact-hed em {
  font-style: italic;
  color: var(--accent);
}

/* Social links row */
.pg-fullbleed .fb-soc {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid color-mix(in srgb, var(--bg) 22%, transparent);
}

.pg-fullbleed .fb-contact .soc {
  color: var(--bg);
  font-size: .8rem;
  text-decoration: none;
}

.pg-fullbleed .fb-contact .soc:hover {
  color: var(--accent);
}

/* Colophon */
.pg-fullbleed .colophon {
  margin: clamp(2rem, 5cqw, 3.5rem) 0 0;
  font: 400 8px / 1 var(--font-mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--bg) 38%, var(--ink));
}

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

@container page (max-width: 620px) {

  /* Stats: single column */
  .pg-fullbleed .fb-stats { flex-direction: column; }
  .pg-fullbleed .fb-stat  { border-right: 0; border-bottom: 1px solid var(--line); }
  .pg-fullbleed .fb-stat:last-child { border-bottom: 0; }

  /* Strip: two columns on narrow containers */
  .pg-fullbleed .fb-strip { grid-template-columns: 1fr 1fr; }

  /* Bio: tighter side padding */
  .pg-fullbleed .fb-bio {
    padding-left: clamp(1.4rem, 5cqw, 3rem);
    padding-right: clamp(1.4rem, 5cqw, 3rem);
  }

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

}

@container page (max-width: 390px) {

  /* Strip: single column on very narrow containers */
  .pg-fullbleed .fb-strip { grid-template-columns: 1fr; }

  /* Reduce name tracking so long names don't clip */
  .pg-fullbleed .fb-name { letter-spacing: .02em; }

  /* Hero single-column minimum height */
  .pg-fullbleed .fb-hero { min-height: 220px; }

}

/* ── Motion polish ─────────────────────────────────────────────────────────── */

/* Text selection */
.pg-fullbleed ::selection { background: var(--accent); color: var(--bg); }

/* Image hover scale — overflow:hidden on each frame clips the scaled image.
   Extends existing filter transitions to include transform. */
.pg-fullbleed .fb-single { overflow: hidden; }
.pg-fullbleed .fb-single img {
  transition: filter .7s ease, transform .7s ease;
}
.pg-fullbleed .fb-single:hover img { transform: scale(1.02); }

.pg-fullbleed .fb-strip-item { overflow: hidden; }
.pg-fullbleed .fb-strip-item img {
  transition: filter .5s ease, transform .5s ease;
}
.pg-fullbleed .fb-strip-item:hover img { transform: scale(1.02); }

/* Scroll-triggered strip stagger + frame label type-in;
   ambient hero name drift. All gated by prefers-reduced-motion. */
@media (prefers-reduced-motion: no-preference) {

  /* Strip columns: 3-way stagger when the parent .fb-seq enters the viewport */
  .animate .pg-fullbleed .fb-seq .fb-strip-item {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .45s ease, transform .45s ease;
  }
  .animate .pg-fullbleed .fb-seq.in .fb-strip-item {
    opacity: 1;
    transform: none;
  }
  .animate .pg-fullbleed .fb-seq.in .fb-strip-item:nth-child(2) { transition-delay: .14s; }
  .animate .pg-fullbleed .fb-seq.in .fb-strip-item:nth-child(3) { transition-delay: .28s; }

  /* Frame labels: stepped clip-path gives a typewriter reveal on .in */
  .animate .pg-fullbleed .fb-seq .fb-frame-label {
    clip-path: inset(0 100% 0 0);
    transition: clip-path .6s steps(6, end);
  }
  .animate .pg-fullbleed .fb-seq.in .fb-frame-label {
    clip-path: inset(0 0% 0 0);
    transition-delay: .3s;
  }

  /* Ambient: hero name drifts a hair wider via scaleX — no letter-spacing reflow,
     transform-origin left keeps the left edge anchored. 22 s period.
     One ambient loop per template. */
  @keyframes fb-name-drift {
    0%, 100% { transform: scaleX(1); }
    50%       { transform: scaleX(1.018); }
  }
  .pg-fullbleed .fb-name {
    transform-origin: left center;
    animation: fb-name-drift 22s ease-in-out infinite;
  }
}
