/* Hero lot deck: 2D card stack (Codrops card stacks, no 3D). */

.hero-cards {
  align-items: stretch;
  overflow: hidden;
}

.hero-cards .hero-media {
  overflow: hidden;
}

.hero-cards .hero-media img {
  object-position: 50% 38%;
  transform: none;
  animation: none;
}

.hero-cards .hero-media::after {
  background:
    linear-gradient(180deg, rgba(8, 12, 11, 0.52), rgba(8, 12, 11, 0.28) 38%, rgba(8, 12, 11, 0.78)),
    linear-gradient(90deg, rgba(8, 12, 11, 0.78) 0%, rgba(8, 12, 11, 0.42) 46%, rgba(8, 12, 11, 0.36) 100%);
}

.hero-cards h1,
.hero-cards .hero-lead {
  text-shadow: 0 2px 22px rgba(8, 12, 11, 0.55);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem 2rem;
  align-items: end;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 6.2rem 0 3rem;
  min-height: 100svh;
}

.hero-cards .hero-content {
  width: auto;
  margin: 0;
  padding: 0 0 0.4rem;
  animation: rise 0.9s ease both;
}

.lotdeck {
  --paper: #fffcf7;
  --photo-ink: #1a140a;
  --photo-muted: rgba(26, 20, 10, 0.58);
  display: none;
  width: min(100%, 320px);
  margin-left: auto;
  user-select: none;
  touch-action: pan-y;
}

.lotdeck-stage {
  display: grid;
}

.lotdeck-sizer,
.lotdeck-item {
  grid-area: 1 / 1;
}

.lotdeck-sizer {
  width: 100%;
  aspect-ratio: 3 / 4.25;
  visibility: hidden;
  pointer-events: none;
}

.lotdeck-item {
  position: relative;
  width: calc(100% - 22px);
  margin: 0;
  padding: 0.55rem 0.55rem 0.65rem;
  background: var(--paper);
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(6, 10, 8, 0.34);
  opacity: 0;
  transform: translate(22px, 22px) scale(0.94);
  pointer-events: none;
  z-index: 0;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
}

.lotdeck-item.is-b2 {
  opacity: 0.5;
  z-index: 1;
  transform: translate(22px, 22px) scale(0.94);
}

.lotdeck-item.is-b1 {
  opacity: 0.82;
  z-index: 2;
  transform: translate(11px, 11px) scale(0.97);
}

.lotdeck:not(.is-ready) .lotdeck-item:nth-of-type(1),
.lotdeck-item.is-current {
  opacity: 1;
  z-index: 3;
  transform: translate(0, 0) scale(1);
  pointer-events: auto;
}

.lotdeck-item a {
  display: block;
  color: var(--photo-ink);
  text-decoration: none;
}

.lotdeck-item a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.lotdeck-img {
  display: block;
  aspect-ratio: 3 / 3.5;
  overflow: hidden;
  border-radius: 8px;
  background: #e8e2d6;
}

.lotdeck-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lotdeck-item figcaption {
  padding: 0.5rem 0.12rem 0.04rem;
}

.lotdeck-item strong {
  display: block;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  color: var(--photo-ink);
}

.lotdeck-item span {
  display: block;
  margin-top: 0.12rem;
  color: var(--photo-muted);
  font-size: 0.78rem;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lotdeck-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.85rem;
  width: calc(100% - 22px);
}

.lotdeck-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: 1px solid rgba(244, 239, 230, 0.35);
  border-radius: 999px;
  background: rgba(8, 12, 11, 0.28);
  color: #f4efe6;
  cursor: pointer;
}

.lotdeck-btn:hover,
.lotdeck-btn:focus-visible {
  background: rgba(8, 12, 11, 0.46);
  outline: none;
}

.lotdeck-btn svg {
  width: 1.05rem;
  height: 1.05rem;
}

.lotdeck-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
}

.lotdeck-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(244, 239, 230, 0.38);
  cursor: pointer;
}

.lotdeck-dot.is-active {
  width: 18px;
  background: var(--accent);
}

@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
    align-items: end;
    gap: 1.15rem;
    min-height: 0;
    padding: 5.4rem 0 1.6rem;
  }

  .lotdeck {
    width: min(100%, 340px);
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lotdeck-item {
    transition: none;
  }
}
