/* ============================================================
   MARKETPLACE PAGE OVERRIDES
   Loaded only by index-marketplace.html, after css/style.css.
   1. Hero band that fades from dark (behind the text) to white
      (behind the cover image)
   2. Video + customer comments row in the gallery section
   ============================================================ */

/* ---------- 1. Hero split band ----------
   Dark band behind the text, white panel behind the cover, meeting
   on a hard angled edge (desktop) or a straight edge (phone).
   Both halves use the same top/bottom (-48px = .hero__inner's
   vertical padding) so they always line up, and the cover image
   sits flush on the bottom of the band. */
.hero--fade .hero__inner {
  align-items: stretch;            /* both columns share one height */
}
.hero--fade .hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero--fade .hero__content::before {
  top: -48px;
  bottom: -48px;
  right: -110px;                   /* runs on under the white panel's angled edge */
  background: rgba(0, 0, 0, 0.4);
}

/* The cover column IS the white panel: it is stretched to the band's
   top/bottom, out into the grid gap on the left and to the screen edge
   on the right, then clipped to the angle. Because the image lives
   inside it, the same clip trims the image, so the image can sit hard
   against the angled edge. */
.hero--fade .hero__art {
  --slant: 60px;                   /* how far the angled edge leans */
  position: relative;
  z-index: 1;                      /* paints over the end of the dark band */
  display: block;
  margin: -48px calc((min(100vw, var(--container-width)) - 100vw) / 2 - 24px) -48px -48px;
  background: #fff;
  clip-path: polygon(var(--slant) 0, 100% 0, 100% 100%, 0 100%);
}
.hero--fade .hero__passport {
  position: absolute;              /* doesn't affect the band height; the text sets that */
  left: 0;                         /* flush with the bottom of the angled edge */
  bottom: 0;                       /* reflection sits on the bottom of the band */
  height: calc(100% - 16px);       /* fill the panel, small gap at the top */
  width: auto;
  max-width: none;                 /* never shrink to fit: wide images bleed off the right */
  max-height: none;                /* edge of the screen, trimmed by the panel's clip */
  filter: none;                    /* a drop shadow would outline the image's white box */
  mix-blend-mode: multiply;        /* the image's white background melts into the panel */
}

@media (max-width: 900px) {
  /* Stacked: full-width white panel with the cover on top, straight edge,
     dark text band directly below */
  .hero--fade .hero__art {
    margin: -24px -24px 0;         /* out to the screen edges (container padding) */
    padding-top: 24px;
    clip-path: none;
    overflow: hidden;              /* the wide image's right-hand blend runs off the screen */
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
  }
  .hero--fade .hero__passport {
    position: static;
    height: auto;
    width: 346px;                  /* keeps the book itself ~220px wide, as before */
    max-width: none;
    flex-shrink: 0;
    margin-left: calc(50% - 113px); /* centre the book (not the whole image) on screen */
  }
  .hero--fade .hero__content::before {
    left: -100vw;
    right: -100vw;
    top: -48px;                    /* close the grid gap up to the white panel */
  }
}

/* ---------- 2. Video + customer comments row ---------- */
.media-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 48px;
}

.media-row__video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-md);
}
.media-row__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.quote-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* reusable: .quote — one customer comment */
.quote {
  margin: 0;
  padding: 16px 20px 14px;
  background: var(--color-white);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.quote__text {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.5;
  font-style: italic;
  color: var(--color-ink);
}
.quote__text::before { content: "\201C"; }   /* “ */
.quote__text::after  { content: "\201D"; }   /* ” */
.quote__text::before,
.quote__text::after {
  font-family: var(--font-heading);
  font-style: normal;
  font-weight: 800;
  color: var(--color-primary);
  font-size: 1.9em;                /* bigger marks... */
  line-height: 0;                  /* ...that don't make their line taller than the others */
  vertical-align: -0.32em;         /* sit the marks level with the text's cap height */
}
.quote__text::before { margin-right: 0.06em; }
.quote__text::after  { margin-left: 0.04em; }
.quote__name {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
}
.quote__name::before { content: "\2014\00a0"; }  /* — */

@media (max-width: 900px) {
  .media-row { grid-template-columns: 1fr; }
}
