/* MARK fade — cream plate + ==chip== headlines + soft-masked photo bottom.
   Match Figma: mask fades the IMAGE into cream (no milky overlay band).
   Sizes in cqw — library tile + 2000×2500 export. See docs/MARK-FADE.md */

.slide.layout-mark,
.slide.layout-mark-mid,
.mock-slide.mark-fade {
  --mark-cream: #f7f4ee;
  --mark-ink: #111111;
  --mark-mute: #3a3a3a;
  --mark-chip: #ff4f00;
  background: var(--mark-cream);
  background-color: var(--mark-cream);
  color: var(--mark-ink);
  overflow: hidden;
  font-family: Inter, system-ui, sans-serif;
  container-type: inline-size;
}

.slide.layout-mark .grad,
.slide.layout-mark-mid .grad,
.slide.layout-mark .logo,
.slide.layout-mark-mid .logo,
.slide.layout-mark .bg,
.slide.layout-mark-mid .bg {
  display: none !important;
}

.mark-root {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--mark-cream);
  container-type: inline-size;
  color: var(--mark-ink);
}

.mark-plate {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  /* Keep type in the solid cream zone above the soft photo */
  height: 48%;
}

.mark-plate.is-cover {
  align-items: center;
  justify-content: flex-start;
  padding: 9cqw 6cqw 0;
  text-align: center;
}

.mark-plate.is-mid {
  align-items: flex-start;
  justify-content: flex-start;
  padding: 8cqw 6cqw 0;
  text-align: left;
}

.mark-headline {
  font-family: Inter, system-ui, sans-serif;
  font-weight: 800;
  font-size: 7.2cqw;
  line-height: 1.14;
  letter-spacing: -0.032em;
  color: var(--mark-ink);
  max-width: 88cqw;
}

.mark-plate.is-mid .mark-headline {
  font-size: 6.2cqw;
  max-width: 90cqw;
}

.mark-headline .mark-chip {
  display: inline;
  background: var(--mark-chip);
  color: #fff;
  border-radius: 0.22em;
  padding: 0.04em 0.16em 0.06em;
  margin: 0 0.02em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  white-space: nowrap;
  vertical-align: baseline;
}

.mark-sub {
  margin-top: 2cqw;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 500;
  font-size: 2.55cqw;
  line-height: 1.38;
  letter-spacing: -0.018em;
  color: var(--mark-mute);
  max-width: 78cqw;
}

.mark-plate.is-mid .mark-sub {
  font-size: 2.4cqw;
  max-width: 86cqw;
  text-align: left;
}

.mark-plate.is-cover .mark-sub {
  text-align: center;
}

/*
  Photo: bottom ~58%. Soft top via MASK on the image — buildings dissolve into
  cream. No solid cream ::after band (that looked milky / foggy).
*/
.mark-photo {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 58%;
  z-index: 1;
  overflow: hidden;
  background: transparent;
}

.mark-photo img,
.mark-photo .mark-photo-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  display: block;
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.15) 10%,
    rgba(0, 0, 0, 0.45) 22%,
    rgba(0, 0, 0, 0.78) 38%,
    #000 55%,
    #000 100%
  );
  mask-image: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.15) 10%,
    rgba(0, 0, 0, 0.45) 22%,
    rgba(0, 0, 0, 0.78) 38%,
    #000 55%,
    #000 100%
  );
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.mark-photo.is-empty {
  background: linear-gradient(180deg, var(--mark-cream) 0%, #e4ddd2 50%, #cfc6b8 100%);
}

.mark-photo.is-empty::after {
  display: none;
}
