/* Reusable immersive product hero. The intelligence edition supplies the
   Rolex media and copy; the block itself makes no maison-specific assumptions. */

.product-hero {
  position: relative;
  width: 100vw;
  min-height: clamp(34rem, 68vw, 52rem);
  margin-inline: calc(50% - 50vw);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 27rem);
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas: "copy panel" "copy cta";
  isolation: isolate;
  overflow: hidden;
  background: #11110f;
  color: #faf8f2;
}

.product-hero-montage,
.product-hero-scrim {
  position: absolute;
  inset: 0;
}

.product-hero-montage {
  z-index: -2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 0;
  transform: scale(1.04);
  animation: product-hero-drift 22s ease-in-out infinite alternate;
}

.product-hero-frame {
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #282724;
}
.product-hero-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.88) contrast(1.05);
}

@keyframes product-hero-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.085) translate3d(-.65%, .45%, 0); }
}

@keyframes product-hero-drift-mobile {
  from { transform: translate3d(0, -.35%, 0); }
  to { transform: translate3d(0, .35%, 0); }
}

.product-hero-empty { width: 100%; height: 100%; background: #1b1a18; }
.product-hero-scrim { z-index: -1; background: rgb(17 17 15 / 56%); }

/* A candidate without reviewed media still gets the shared hero structure, but
   it should not reserve an immersive image wall for a visual that does not
   exist. Rich montage pages keep the base geometry above. */
.product-hero--no-media {
  min-height: clamp(26rem, 48vw, 36rem);
}
.product-hero--no-media .product-hero-montage {
  transform: none;
  animation: none;
}
.product-hero--no-media .product-hero-empty {
  background: linear-gradient(135deg, rgb(250 248 242 / 5%), transparent 58%), #1b1a18;
}
.product-hero--no-media .product-hero-scrim { background: rgb(17 17 15 / 72%); }
.product-hero-copy {
  grid-area: copy;
  align-self: end;
  max-width: 66rem;
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1.1rem, 6vw, 5.5rem);
}

.product-hero-eyebrow,
.product-hero-panel-label,
.product-hero-metric dt {
  margin: 0;
  font: 500 .7rem/1.3 "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.product-hero-eyebrow { color: rgb(250 248 242 / 70%); }
.product-hero h1 {
  max-width: 8ch;
  margin: .7rem 0 1.1rem;
  font: 500 clamp(3.8rem, 11vw, 10rem)/.86 "Kumbh Sans", "Arial Narrow", sans-serif;
  letter-spacing: -.08em;
  text-transform: uppercase;
}
.product-hero--no-media h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 7.5vw, 7.5rem);
}

.product-hero-description {
  max-width: 30rem;
  margin: 0;
  color: rgb(250 248 242 / 82%);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.35;
}

.product-hero-panel {
  grid-area: panel;
  align-self: start;
  justify-self: end;
  width: min(22rem, calc(100% - 2.2rem));
  margin: clamp(1.1rem, 4vw, 4rem);
  padding: 1rem;
  border: 1px solid rgb(250 248 242 / 35%);
  background: rgb(17 17 15 / 82%);
  backdrop-filter: blur(10px);
}

.product-hero-panel-label { color: #ef2f2f; }
.product-hero-panel h2 {
  margin: .65rem 0 1rem;
  font: 500 1.35rem/1.05 "Kumbh Sans", sans-serif;
  letter-spacing: -.04em;
}

.product-hero-panel dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin: 0; }
.product-hero-metric { min-width: 0; padding-top: .65rem; border-top: 1px solid rgb(250 248 242 / 20%); }
.product-hero-metric dt { color: rgb(250 248 242 / 60%); font-size: .58rem; }
.product-hero-metric dd { margin: .25rem 0 0; font: 500 1.2rem/1.1 "IBM Plex Mono", ui-monospace, monospace; }
.product-hero-metric small { display: block; margin-top: .25rem; color: rgb(250 248 242 / 56%); font-size: .7rem; }
.product-hero-panel-note { margin: 1rem 0 0; color: rgb(250 248 242 / 66%); font-size: .78rem; line-height: 1.4; }

.product-hero-cta {
  grid-area: cta;
  justify-self: end;
  align-self: end;
  margin: 0 clamp(1.1rem, 6vw, 5.5rem) clamp(1.1rem, 4vw, 3rem) 0;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: .8rem;
  padding: .75rem 1rem;
  border: 1px solid #faf8f2;
  color: #faf8f2;
  font: 500 .72rem/1 "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}

.product-hero-cta:hover { background: #faf8f2; color: #11110f; }
.product-hero-cta:focus-visible { outline: 2px solid #ef2f2f; outline-offset: 4px; }

@media (max-width: 720px) {
  .product-hero {
    min-height: 42rem;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 1fr auto auto;
    grid-template-areas: "copy" "panel" "cta";
  }
  .product-hero-montage {
    inset: -1% 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    opacity: .8;
    transform: translate3d(0, -.35%, 0);
    animation-name: product-hero-drift-mobile;
  }
  .product-hero-copy { align-self: end; padding: 2rem 1.1rem 1rem; }
  .product-hero h1 {
    max-width: 100%;
    font-size: clamp(2.75rem, 14vw, 4.4rem);
  }
  .product-hero-panel { position: static; align-self: stretch; justify-self: stretch; width: auto; margin: 0 1.1rem; }
  .product-hero-panel dl { gap: .55rem; }
  .product-hero-cta { justify-self: start; margin: 1rem 1.1rem 1.2rem; }

  .product-hero--no-media {
    min-height: 0;
    grid-template-rows: auto auto auto;
  }
  .product-hero--no-media .product-hero-montage { opacity: 1; }
  .product-hero--no-media .product-hero-copy { align-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .product-hero-montage { transform: none; }
  .product-hero-montage { animation: none; }
}

@media print {
  .product-hero { min-height: 28rem; break-inside: avoid; }
  .product-hero-montage { opacity: .45; }
  .product-hero-panel { background: #11110f; }
}
