/* Javis Bashabula — photography and film.
   Scoped to /javis/. Fixed dark regardless of the site theme: a cream page competes with
   every frame on it. Inherits the site's two faces, nothing else. */

.pf {
  --pf-bg: #0B0B0C;
  --pf-raise: #141416;
  --pf-line: #26262A;
  --pf-text: #E9E5DD;
  --pf-muted: #908B82;
  --pf-accent: #D9784F;

  /* site.css colours headings with --ink and rules with --line. Those are tuned for the cream
     page and render near-invisible here, so the shared tokens are re-pointed rather than fought
     with per-element overrides. */
  --bg: var(--pf-bg);
  --panel: var(--pf-raise);
  --line: var(--pf-line);
  --ink: var(--pf-text);
  --text: var(--pf-text);
  --muted: var(--pf-muted);
  --accent: var(--pf-accent);
  --accent-ink: var(--pf-accent);

  background: var(--pf-bg);
  color: var(--pf-text);
}

.pf h1, .pf h2, .pf h3, .pf h4 { color: var(--pf-text); }

.pf main { padding-bottom: 14vh; }

.pf a { color: inherit; }
.pf a:hover { color: var(--pf-accent); }

/* ---------------------------------------------------------------- masthead */

.pf-top {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(48px, 9vh, 96px) var(--gutter) clamp(26px, 4vh, 48px);
}

.pf-top h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0;
}

.pf-top .kicker {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pf-muted);
  margin: 0 0 1.4rem;
}

.pf-top .territory {
  font-family: var(--sans);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.6;
  max-width: 44ch;
  color: var(--pf-text);
  margin: 1.5rem 0 0;
}

.pf-top .meta,
.pf .meta {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--pf-muted);
  margin: 0.9rem 0 0;
}

/* ---------------------------------------------------------------- frames */

.pf picture { display: block; }

.pf img {
  display: block;
  width: 100%;
  height: auto;
  background-size: cover;
  background-position: center;
}

.pf-hero { margin: 0 0 clamp(48px, 8vh, 96px); }
/* Not .hero: that class belongs to the site's homepage band and paints an opaque
   navy gradient over whatever sits inside it. */
.pf-hero .pf-frame img { max-height: 86vh; object-fit: cover; }

.pf .placeholder {
  aspect-ratio: 16 / 9;
  background:
    repeating-linear-gradient(135deg, #131315 0 14px, #0F0F11 14px 28px);
  border: 1px solid var(--pf-line);
}

.pf-hero .pf-frame.placeholder, .pf-hero .placeholder { aspect-ratio: 21 / 9; border-left: 0; border-right: 0; }

/* ---------------------------------------------------------------- sections */

.pf-section {
  max-width: 1100px;
  margin: 0 auto clamp(56px, 9vh, 104px);
  padding: 0 var(--gutter);
}

.pf-section > h2 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pf-muted);
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--pf-line);
  margin: 0 0 clamp(32px, 5vh, 56px);
}

.pf h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.15;
  margin: 1.1rem 0 0;
}

.pf p { font-family: var(--sans); line-height: 1.68; margin: 0.8rem 0 0; }
.pf .role { color: var(--pf-muted); font-size: 0.88rem; }

/* ---------------------------------------------------------------- film list */

.films { list-style: none; margin: 0; padding: 0; }

.films > li {
  padding: clamp(28px, 5vh, 48px) 0;
  border-top: 1px solid var(--pf-line);
  max-width: 62ch;
}
.films > li:first-child { border-top: 0; padding-top: 0; }
.films > li > h3:first-child { margin-top: 0; }

.embed {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 1.4rem 0 0;
  background: var(--pf-raise);
}
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------------------------------------------------------------- bodies of work */

.bodies {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .bodies { grid-template-columns: 1fr 1fr; } }

.body-card > h3 { margin-top: 1.2rem; }
.body-card p { max-width: 46ch; }

.sequence {
  margin-top: clamp(48px, 8vh, 88px);
  padding-top: clamp(28px, 4vh, 44px);
  border-top: 1px solid var(--pf-line);
  max-width: 62ch;
}
.sequence h3 { margin-top: 0; }

/* ---------------------------------------------------------------- held notice */

.pf .held {
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--pf-muted);
  background: var(--pf-raise);
  border-left: 2px solid var(--pf-accent);
  padding: 0.85rem 1.1rem;
  margin-top: 1.3rem;
  max-width: 54ch;
}
.pf .held span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pf-accent);
  margin-bottom: 0.3rem;
}

/* ---------------------------------------------------------------- project pages */

.pf .intro {
  max-width: 1100px;
  margin: 0 auto clamp(48px, 9vh, 96px);
  padding: 0 var(--gutter);
}
.pf .intro p { max-width: 58ch; font-size: 1.04rem; }

.plates { margin: 0; }

.plate {
  max-width: 1100px;
  margin: 0 auto clamp(52px, 9vh, 112px);
  padding: 0 var(--gutter);
}

.plate figcaption {
  font-family: var(--sans);
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--pf-muted);
  margin-top: 0.9rem;
  max-width: 48ch;
}

.pf .back {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  font-size: 0.9rem;
}

.pf-about p { max-width: 58ch; }
.pf-about .contact { margin-top: 1.8rem; font-size: 0.95rem; max-width: none; }
.pf-about .contact a { white-space: nowrap; }

/* ---------------------------------------------------------------- motion */

/* No entrance animation anywhere. A scroll-driven fade held plates invisible in any
   context that does not scroll (full-page capture, print, reader modes) and is unsupported
   in several browsers; a load-time fade composites over the colour placeholder and washes
   the frame out. The pictures are the show. They just appear. */

/* Once a frame has decoded, drop the placeholder so it can never show through. */
.pf img { background-repeat: no-repeat; }
