/* ==========================================================================
   HOMEWORK 9 — FULL-BLEED OVERRIDE
   One image fills the whole slide; every word floats on the image. This file
   loads AFTER styles.css. It targets only .slide--bleed, so the chrome (intro,
   topbar, panels, overview, lightbox, nav) is untouched.

   The images already carry a soft veil baked into their bottom 40%: a warm
   paper veil on light slides and a deep veil on the four dark slides. So the
   caption sits in that veil, and a matching soft band is laid over the top
   for the title. No text ever sits on the busy middle of the picture.
   ========================================================================== */

/* warm paper / deep ink, matching the two veils in the artwork */
.slide--bleed{
  --fb-ink:   #1a1917;
  --fb-sub:   #5c574e;
  --fb-red:   #a8332a;
  --fb-band:  244,241,232;   /* paper */
  padding:0 !important;
  background:#121316;
  overflow:hidden;
}
.slide--bleed.slide--dark{
  --fb-ink:   #f4f1e8;
  --fb-sub:   #c9c2b2;
  --fb-red:   #e0766a;
  --fb-band:  18,19,22;       /* deep */
}

/* ---- the picture: full bleed, behind everything -------------------------- */
.slide--bleed .bleed{
  position:absolute; inset:0;
  width:100%; height:100%;
  margin:0; padding:0;
  z-index:0; overflow:hidden;
  border:0;
  cursor:zoom-in;
}
.slide--bleed .bleed img{
  display:block;
  width:100%; height:100%;
  object-fit:cover;
  object-position:center center;
  border:0;
  filter:none;
}
.slide--bleed .bleed figcaption{ display:none; }

/* top band: a soft wash so the headline reads over any picture. The bottom
   veil is already in the image, so only the top needs a CSS scrim. */
.slide--bleed .bleed::after{
  content:"";
  position:absolute; inset:0;
  pointer-events:none;
  background:linear-gradient(to bottom,
    rgba(var(--fb-band), .90) 0%,
    rgba(var(--fb-band), .62) 10%,
    rgba(var(--fb-band), .18) 22%,
    rgba(var(--fb-band), 0) 34%);
}

/* ---- the copy: a full-height frame, title up top, caption in the veil --- */
.slide--bleed .slide__inner{
  position:relative;
  z-index:2;
  max-width:none !important;
  width:100%;
  height:100%;
  padding:clamp(96px, 13vh, 148px) clamp(40px, 6vw, 92px)
          clamp(46px, 7vh, 82px);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:0;
}

/* ---- per-slide text placement ------------------------------------------
   Each image has a different subject. data-title / data-cap pick the corner
   whose negative space is largest, so words never sit on the subject.
   The copy frame is a 46%-wide column; "right" pins it to the right edge. */
.slide--bleed .shead,
.slide--bleed .claim{ width:min(46%, 640px); }
.slide--bleed[data-title="right"] .shead{ margin-left:auto; text-align:right; }
.slide--bleed[data-cap="right"] .claim{ margin-left:auto; border-left:0;
  border-right:2px solid var(--fb-red); padding:0 clamp(14px,1.6vw,24px) 0 0; }
/* slide 9: the door is centre-right and a small figure + red sweep own the
   bottom band, so the caption sits in the wide blank area at middle-left */
.slide--bleed[data-cap="lift"] .claim{
  position:absolute;
  left:clamp(40px, 6vw, 92px);
  top:45%;
}

/* eyebrow + headline */
.slide--bleed .shead{ flex:0 0 auto; }
.slide--bleed .shead .eyebrow{
  margin:0 0 clamp(8px, 1.4vh, 16px);
  font-family:var(--num);
  font-size:clamp(.72rem, min(1.05vw, 1.6vh), 1.15rem);
  font-weight:600;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--fb-sub);
}
.slide--bleed .shead .h2,
.slide--bleed .shead .title{
  margin:0;
  font-family:var(--serif);
  font-weight:600;
  font-size:clamp(1.7rem, min(4.1vw, 6.2vh), 4.6rem);
  line-height:1.06;
  letter-spacing:-.01em;
  color:var(--fb-ink);
  white-space:normal;
  text-shadow:0 1px 18px rgba(var(--fb-band), .28);
}
/* the cover's headline may run a little wider than a content title */
.slide--bleed .shead .title{
  width:min(58%, 780px);
  font-size:clamp(2.1rem, min(5.2vw, 7.6vh), 5.8rem);
}
/* a right-anchored headline sits against the right edge */
.slide--bleed[data-title="right"] .shead .h2{ margin-left:auto; }
.slide--bleed .stressed{ color:var(--fb-red); }
.slide--bleed .stressed::before{ background:var(--fb-red); }

/* ---- the caption, sitting in the image's bottom veil --------------------- */
.slide--bleed .claim{
  flex:0 0 auto;
  max-width:30em;
  margin:0;
  padding:0 0 0 clamp(14px, 1.6vw, 24px);
  border-left:2px solid var(--fb-red);
  display:grid;
  gap:clamp(6px, 1vh, 12px);
}
.slide--bleed .claim__line{
  margin:0;
  font-family:var(--serif);
  font-style:italic;
  font-size:clamp(1.25rem, min(3.1vw, 4.4vh), 3.1rem);
  line-height:1.24;
  color:var(--fb-ink);
  max-width:none;
}
.slide--bleed .claim__line em{ color:var(--fb-red); font-style:normal; }
.slide--bleed .claim__src{
  margin:2px 0 0;
  padding-top:clamp(6px, 1vh, 12px);
  border-top:1px solid rgba(var(--fb-band), .28);
  font-family:var(--num);
  font-weight:600;
  font-size:clamp(.68rem, min(.98vw, 1.5vh), 1.05rem);
  letter-spacing:.17em;
  text-transform:uppercase;
  color:var(--fb-sub);
}
.slide--dark .claim__src{ border-top-color:rgba(244,241,232,.22); }

/* ---- cover meta block, also in the veil ---------------------------------- */
.slide--bleed .cover-meta{ flex:0 0 auto; max-width:44em; }
.slide--bleed .profile{
  display:flex; align-items:center; flex-wrap:wrap;
  gap:.7em; margin:0 0 clamp(8px, 1.2vh, 14px);
  /* strip the original grey card so the type sits directly on the veil */
  padding:0; background:none; border:0;
}
.slide--bleed .profile__name{
  font-family:var(--serif); font-weight:600;
  font-size:clamp(1.05rem, min(1.8vw, 2.4vh), 1.9rem);
  color:var(--fb-ink);
}
.slide--bleed .profile__sep{
  display:inline-block; width:26px; height:1px;
  background:var(--fb-red);
}
.slide--bleed .profile__role{
  font-family:var(--sans);
  font-size:clamp(.78rem, min(1.15vw, 1.7vh), 1.25rem);
  color:var(--fb-sub);
}
.slide--bleed .lede{
  margin:0 0 clamp(10px, 1.6vh, 18px);
  font-family:var(--serif); font-style:italic;
  font-size:clamp(.9rem, min(1.5vw, 2.1vh), 1.5rem);
  color:var(--fb-red);
}
.slide--bleed .meta{
  display:flex; flex-wrap:wrap;
  gap:clamp(16px, 2.4vw, 40px);
  margin:0; padding:0;
}
.slide--bleed .meta__item{ display:flex; flex-direction:column; gap:4px; }
.slide--bleed .meta__label{
  font-family:var(--num); font-weight:600;
  font-size:clamp(.62rem, min(.9vw, 1.3vh), .95rem);
  letter-spacing:.18em; text-transform:uppercase;
  color:var(--fb-sub);
}
.slide--bleed .meta__val{
  font-family:var(--sans);
  font-size:clamp(.82rem, min(1.2vw, 1.7vh), 1.2rem);
  color:var(--fb-ink);
}

/* ---- contrast safety: chrome floating over a full-image slide ----------- */
.topbar{ background:rgba(244,241,232,.92); }
/* the page counter used to be a solid card; make it a light chip on the art */
.navbtns .counter{
  background:rgba(244,241,232,.82);
  border:1px solid rgba(28,29,31,.14);
  border-radius:3px;
  padding:5px 10px;
}
/* the thin "FULL BLEED" side tab is harmless but sits oddly on a photo */
.slide--bleed ~ .navbtns .counter{ color:var(--gold-hi); }
/* left-edge vertical folio tab from the shell: keep it quiet */
.slide--bleed::after{ content:none; }

/* ---- narrow / short screens: let the headline wrap, keep the veil -------- */
@media (max-width:900px){
  .slide--bleed .slide__inner{
    padding:100px 28px 40px;
  }
  .slide--bleed .shead .h2,
  .slide--bleed .shead .title{
    white-space:normal;
    font-size:clamp(1.6rem, 6.4vw, 3.2rem);
  }
}
@media (max-height:620px){
  .slide--bleed .slide__inner{
    padding:80px 40px 28px;
  }
  .slide--bleed .shead .h2,
  .slide--bleed .shead .title{
    font-size:clamp(1.5rem, 4.4vw, 2.6rem);
  }
  .slide--bleed .claim__line{ font-size:clamp(1rem, 2.6vh, 1.5rem); }
}
