/* Transparent 3D artwork: the supplied perspective is kept intact. */
.hero-inner {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(38px, 6.5vw, 95px);
  padding-block: clamp(32px, 3.1vw, 55px);
}
.hero-copy { min-width: 0; }
.hero-art {
  --float-distance: -4px;
  width: 100%;
  max-width: 500px;
  min-width: 0;
  padding: 0;
  justify-self: end;
}
.cover-topline { margin-bottom: 8px; }
.cover-bottomline {
  border: 0;
  margin-top: 3px;
  padding-top: 0;
}
.mockup-scene {
  position: relative;
  isolation: isolate;
  width: 100%;
  padding-bottom: 12%;
}
.mockup-glow {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: -3% -17% 1%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 52% 48%,
    rgb(201 141 75 / 30%) 0%,
    rgb(182 119 58 / 19%) 28%,
    rgb(156 97 45 / 8%) 48%,
    transparent 70%);
  filter: blur(clamp(15px, 2.2vw, 32px));
}
.hero .cover-button,
.hero .cover-button:hover,
.hero .cover-button:active {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  transition: none;
  cursor: zoom-in;
  outline-offset: 0;
}
.hero .cover-button {
  animation: merito-float 8s ease-in-out infinite;
}
.hero .cover-button img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
}
.mockup-shadow {
  position: absolute;
  z-index: 0;
  width: 83%;
  height: 7%;
  left: 12%;
  bottom: 2.6%;
  border-radius: 50%;
  background: radial-gradient(ellipse,
    rgb(0 0 0 / 78%) 0%,
    rgb(0 0 0 / 57%) 29%,
    rgb(0 0 0 / 26%) 48%,
    transparent 72%);
  filter: blur(clamp(5px, .7vw, 10px));
  pointer-events: none;
  animation: merito-shadow 8s ease-in-out infinite;
}
.mockup-scene:hover .cover-button,
.mockup-scene:focus-within .cover-button,
.mockup-scene:hover .mockup-shadow,
.mockup-scene:focus-within .mockup-shadow,
body.dialog-open .cover-button,
body.dialog-open .mockup-shadow {
  animation-play-state: paused;
}
@keyframes merito-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(var(--float-distance)); }
}
@keyframes merito-shadow {
  0%, 100% { opacity: .9; transform: scaleX(1); }
  50% { opacity: .74; transform: scaleX(.97); }
}
/* Native dialog provides modal keyboard focus. The caption keeps its own row. */
.lightbox-content {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 64px clamp(12px, 3vw, 40px) max(20px, env(safe-area-inset-bottom));
}
.lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
}
.lightbox[data-transparent="true"] {
  background: radial-gradient(ellipse at 50% 45%, #493525 0%, #211b16 50%, #171411 100%);
}
.lightbox[data-transparent="true"] img {
  background: transparent;
  border: 0;
  box-shadow: none;
}
.lightbox .dialog-close {
  width: 44px;
  height: 44px;
}
@media (min-width: 1600px) {
  .hero-art { max-width: 520px; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .hero h1 { font-size: clamp(52px, 5.8vw, 64px); }
}
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 35px;
    padding-top: 36px;
    padding-bottom: 26px;
  }
  .hero-art {
    width: min(100%, 500px);
    max-width: none;
    justify-self: center;
  }
  .hero-copy { width: 100%; }
  .mockup-glow { inset-inline: -12%; }
}
@media (max-width: 760px) {
  .hero-inner { gap: 28px; padding-top: 34px; }
  .hero-art {
    --float-distance: -3px;
    width: 100%;
    max-width: 460px;
  }
  .cover-topline { margin-bottom: 5px; }
  .cover-bottomline { margin-top: 3px; }
  .mockup-scene { padding-bottom: 13%; }
  .mockup-glow {
    inset: -1% -9% 1%;
    filter: blur(16px);
    opacity: .84;
  }
  .mockup-shadow {
    width: 82%;
    left: 12%;
    height: 7%;
    bottom: 3%;
    filter: blur(6px);
  }
  .lightbox-content { gap: 10px; padding-top: 64px; }
  .lightbox p { font-size: 10px; padding: 0 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .cover-button,
  .mockup-shadow { animation: none !important; transform: none !important; }
}
