/* The first slide retains the original artwork and its original sizing. */
.hero-frame { background: #fff; }
.hero-slide {
  flex: 0 0 100%;
  min-width: 0;
  min-height: 0;
  height: clamp(300px, 52vw, 560px);
  overflow: hidden;
  background: #fff;
}
.hero-slide-original { display: block; }
.hero-slide-readable { position: relative; }
.hero-readable-copy {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
.hero-slide picture { display: block; min-width: 0; min-height: 0; }
.hero-slide picture img { display: block; width: 100%; height: 100%; object-fit: contain; }
.hero-slide-original > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-slide-original > picture { width: 100%; height: 100%; }

/* Equal columns and shared caption rows keep both product views aligned. */
.hero-offer-slide { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 24px 42px 62px; }
.hero-offer-card { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-width: 0; min-height: 0; text-align: center; }
.hero-offer-caption { width: 100%; margin: 0 auto; padding: 6px 0 10px; text-align: center; line-height: 1.15; }
.hero-offer-caption span { display: block; font-size: clamp(20px, 2.25vw, 29px); font-weight: 400; }
.hero-offer-caption strong { display: block; margin-top: 4px; font-size: clamp(27px, 3.15vw, 41px); font-weight: 600; letter-spacing: -0.035em; }
.hero-frame.desktop-only .hero-offer-caption { height: 106px; }
.hero-project-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}
.hero-offer-caption .hero-project-word {
  margin-top: 0;
  letter-spacing: normal;
}
.hero-project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 134px;
  min-height: 41px;
  padding: 6px 18px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.hero-project-link:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.hero-project-link:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

@media (min-width: 761px) and (max-width: 1000px) {
  .hero-offer-slide { padding: 14px 32px 44px; gap: 10px; }
}

@media (max-width: 760px) {
  .hero-frame.mobile-only .hero-slide { height: auto; aspect-ratio: 768 / 625; }
  .hero-frame.mobile-only .hero-slide-original { display: flex; align-items: center; justify-content: center; background: #efefef; }
  .hero-frame.mobile-only .hero-slide-original > picture > img { width: 100%; height: 100%; object-fit: contain; }
  .hero-frame.mobile-only .hero-offer-slide {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    padding: 8px 10px 34px;
    gap: 0;
    text-align: center;
  }
  .hero-offer-caption { padding: 0 10px 8px; }
  .hero-offer-caption span { font-size: clamp(21px, 5.5vw, 31px); }
  .hero-offer-caption strong { font-size: clamp(30px, 7.5vw, 44px); }
  .hero-project-link { min-width: 121px; min-height: 37px; padding: 4px 12px; gap: 10px; }
}

@media (max-width: 760px) and (orientation: landscape) {
  .hero-frame.mobile-only .hero-slide { height: min(62vh, 360px); aspect-ratio: auto; }
  .hero-frame.mobile-only .hero-offer-slide { grid-template-columns: 57% 43%; grid-template-rows: 1fr; padding: 8px 28px 26px; align-items: center; }
  .hero-frame.mobile-only .hero-offer-slide picture { height: 100%; }
  .hero-offer-caption { padding: 0 10px 0 6px; }
  .hero-offer-caption span { font-size: 21px; }
  .hero-offer-caption strong { font-size: 29px; }
  .hero-project-action { gap: 8px; }
  .hero-project-link { min-width: 94px; padding-inline: 6px; gap: 6px; font-size: 18px; }
}
