/* Home hero flip-book */
.yl-hero-art.yl-flipbook-wrap {
  min-height: 0;
  display: block;
  align-items: stretch;
  justify-content: stretch;
}

.yl-flipbook {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-left: auto;
  perspective: 1800px;
  --flip-duration: 1.45s;
}

.yl-flipbook-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  background: #0f2744;
  box-shadow:
    0 22px 48px rgba(15, 39, 68, .28),
    0 2px 0 rgba(255, 255, 255, .35) inset;
  transform-style: preserve-3d;
}

.yl-flipbook-stage::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 14px;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, .22), transparent);
}

.yl-flip-leaf {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: none;
  z-index: 1;
}

.yl-flip-leaf.is-under {
  z-index: 1;
}

.yl-flip-leaf.is-current {
  z-index: 3;
}

.yl-flip-leaf.is-flipping {
  z-index: 4;
  transition: transform var(--flip-duration) cubic-bezier(.55, .04, .2, 1);
  transform: rotateY(-180deg);
  box-shadow: -18px 0 36px rgba(0, 0, 0, .28);
}

.yl-flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.yl-flip-face.front {
  background: #123054;
}

.yl-flip-face.front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yl-flip-face.back {
  transform: rotateY(180deg);
  background:
    linear-gradient(135deg, #0d2440 0%, #163a63 48%, #0f2c4d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.yl-flip-watermark {
  position: absolute;
  inset: -20%;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 28px 36px;
  transform: rotate(-28deg);
  opacity: .22;
  pointer-events: none;
}

.yl-flip-watermark span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 2.4vw, 26px);
  letter-spacing: .12em;
  color: #fff;
  white-space: nowrap;
  text-transform: none;
}

.yl-flip-back-brand {
  position: relative;
  z-index: 1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .88);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}

.yl-flip-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 28px 18px 14px;
  background: linear-gradient(180deg, transparent, rgba(8, 22, 40, .78));
  color: #fff;
  pointer-events: none;
}

.yl-flip-caption strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: 2px;
}

.yl-flip-caption span {
  display: block;
  font-size: 12.5px;
  opacity: .88;
  line-height: 1.35;
}

.yl-flipbook-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.yl-flipbook-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.yl-flipbook-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(0, 86, 179, .28);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.yl-flipbook-dots button[aria-current="true"] {
  background: var(--yl-blue, #0056b3);
  transform: scale(1.25);
}

.yl-flipbook-nav {
  display: flex;
  gap: 8px;
}

.yl-flipbook-nav button {
  border: 1px solid rgba(0, 86, 179, .28);
  background: #fff;
  color: var(--yl-blue-deep, #0b3263);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: background .2s ease, border-color .2s ease;
}

.yl-flipbook-nav button:hover {
  background: #eef4fb;
  border-color: var(--yl-blue, #0056b3);
}

.yl-flipbook-nav button:disabled {
  opacity: .45;
  cursor: default;
}

@media (max-width: 900px) {
  .yl-hero-art.yl-flipbook-wrap {
    display: block !important;
    min-height: 0;
    margin-top: 8px;
  }

  .yl-flipbook {
    max-width: none;
    margin: 0 auto;
  }
}
