/* ================================================================
   AIYA'S GEM: showcase.css
   Original hero layout preserved; WebGL stage replaced by photo cutout fade.
================================================================ */

@property --tint { syntax: '<color>'; inherits: true; initial-value: #2b3550; }

/* ── shared ── */
[data-stage] { position: relative; }

/* text that fades in briefly when the product changes */
[data-live].swap { animation: liveIn 0.35s ease both; }
@keyframes liveIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* colour swatches (kept for original markup; usually hidden on photo hero) */
.swatch-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 24px; }
.swatches { display: flex; gap: 14px; flex-wrap: wrap; }
.swatches[hidden] { display: none; }
.swatch {
  position: relative; width: 30px; height: 30px; border-radius: 50%;
  background: var(--swatch, #888); border: 1px solid rgba(255,255,255,0.28);
  transition: transform 0.25s var(--ease);
}
.swatch::before { content: ''; position: absolute; inset: -9px; }
.swatch::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid transparent; transition: border-color 0.25s var(--ease);
}
.swatch:hover { transform: scale(1.1); }
.swatch[aria-pressed="true"]::after { border-color: var(--gold); }
.swatch:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 7px; }
.swatch-label { font-size: 13px; letter-spacing: 0.04em; color: var(--text-muted); min-height: 1.4em; }


/* ================================================================
   1. HOMEPAGE HERO (original layout)
================================================================ */
.hero.hero-watch {
  height: 100vh; height: 100svh; min-height: 640px;
  padding: calc(var(--header-h) + 4px) var(--gutter) 28px;
  display: grid; grid-template-columns: 1fr; grid-template-rows: minmax(0, 1.15fr) auto;
  align-items: center; justify-items: center;
  background:
    radial-gradient(ellipse 72% 58% at 50% 32%, color-mix(in srgb, var(--tint) 85%, transparent) 0%, transparent 74%),
    linear-gradient(180deg, #0b1a30 0%, #0a1628 55%, #08111f 100%);
  background-color: #0a1628;
  --tint: #2b3550;
  transition: --tint 0.9s var(--ease);
}
.hero-watch .hero-stage { grid-row: 1; width: 100%; height: 100%; max-width: 720px; min-height: 0; }
.hero-watch .hero-content { grid-row: 2; position: relative; z-index: 2; padding: 0; text-align: center; max-width: 560px; }

.hero-watch .hero-title { font-size: clamp(32px, 9vw, 72px); margin-bottom: 10px; color: var(--white); }
.hero-watch .hero-sub { margin-bottom: 20px; }
.hero-product { min-height: 3.4em; }
.hero-product-name { font-family: var(--font-serif); font-size: clamp(19px, 2.3vw, 28px); font-weight: 400; line-height: 1.25; color: var(--white); }
.hero-product-meta { margin-top: 6px; font-size: 12px; letter-spacing: 0.06em; color: var(--text-muted); white-space: pre-wrap; }
.hero-watch .swatch-row { justify-content: center; margin-top: 16px; }
.hero-watch .hero-cta { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; margin-top: 22px; }
.hero-link {
  font-size: 13px; letter-spacing: 0.06em; color: var(--gold-light);
  border-bottom: 1px solid var(--gold-border); padding-bottom: 2px; transition: border-color 0.25s var(--ease);
}
.hero-link:hover { border-color: var(--gold-light); }
.hero-watch .hero-scroll { display: none; }

/* Photo cutout carousel (replaces WebGL canvas) */
.hero-carousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 4% 6%;
  opacity: 0;
  transition: opacity var(--hero-fade-ms, 1400ms) cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.hero-slide img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.55));
  animation: cutoutFloat 8s ease-in-out infinite;
}
@keyframes cutoutFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero-carousel::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 50% 48%, transparent 35%, rgba(8, 17, 31, 0.25) 100%);
}

.hero-callouts {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.hero-callout {
  position: absolute;
  max-width: min(220px, 44vw);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.7s var(--ease) var(--callout-delay, 0.35s),
    transform 0.7s var(--ease) var(--callout-delay, 0.35s);
}
.hero-callout.is-visible {
  opacity: 1;
  transform: none;
}
.hero-callout-label {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(12px, 1.5vw, 14px);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.35;
  color: #f2efe8;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.75), 0 0 1px rgba(0, 0, 0, 0.9);
  padding: 0 0 0 12px;
  border-left: 1px solid var(--gold);
  background: linear-gradient(90deg, rgba(10, 22, 40, 0.55), transparent);
}
.hero-callout--tl { top: 12%; left: 4%; }
.hero-callout--tr { top: 18%; right: 4%; text-align: right; }
.hero-callout--tr .hero-callout-label {
  padding: 0 12px 0 0;
  border-left: none;
  border-right: 1px solid var(--gold);
  background: linear-gradient(270deg, rgba(10, 22, 40, 0.55), transparent);
}
.hero-callout--bl { bottom: 18%; left: 5%; }
.hero-callout--br { bottom: 14%; right: 5%; text-align: right; }
.hero-callout--br .hero-callout-label {
  padding: 0 12px 0 0;
  border-left: none;
  border-right: 1px solid var(--gold);
  background: linear-gradient(270deg, rgba(10, 22, 40, 0.55), transparent);
}
.hero-callout--ml { top: 42%; left: 3%; }
.hero-callout--mr { top: 48%; right: 3%; text-align: right; }
.hero-callout--mr .hero-callout-label {
  padding: 0 12px 0 0;
  border-left: none;
  border-right: 1px solid var(--gold);
  background: linear-gradient(270deg, rgba(10, 22, 40, 0.55), transparent);
}

.hero-fade-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 8px;
  padding: 6px 10px;
}
.hero-fade-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.45);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.hero-fade-dot[aria-selected="true"] {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.25);
}
.hero-fade-dot:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 4px;
}

@media (min-width: 960px) {
  .hero.hero-watch {
    grid-template-columns: minmax(360px, 5fr) 7fr; grid-template-rows: minmax(0, 1fr);
    padding: var(--header-h) max(var(--gutter), 5vw) 0; column-gap: 1vw; justify-items: stretch;
    background:
      radial-gradient(ellipse 54% 70% at 69% 50%, color-mix(in srgb, var(--tint) 88%, transparent) 0%, transparent 74%),
      linear-gradient(180deg, #0b1a30 0%, #0a1628 55%, #08111f 100%);
  }
  .hero-watch .hero-content { grid-column: 1; grid-row: 1; text-align: left; align-self: center; max-width: 520px; }
  .hero-watch .hero-stage { grid-column: 2; grid-row: 1; max-width: none; height: min(100%, 880px); align-self: center; }
  .hero-watch .hero-title { font-size: clamp(34px, 4.6vw, 66px); }
  .hero-watch .swatch-row { justify-content: flex-start; }
  .hero-watch .hero-cta { justify-content: flex-start; }
  .hero-watch .hero-scroll { display: flex; }
  .hero-slide { padding: 6% 8%; }
  .hero-callout { max-width: 220px; }
  .hero-callout-label { font-size: 13px; }
  .hero-fade-dots { bottom: 20px; }
}
@media (max-height: 700px) and (max-width: 959px) {
  .hero.hero-watch { min-height: 560px; grid-template-rows: minmax(0, 1fr) auto; }
  .hero-watch .hero-sub { margin-bottom: 12px; }
  .hero-callout--tl, .hero-callout--tr { top: 8%; }
  .hero-callout--bl, .hero-callout--br { bottom: 12%; }
}


@media (prefers-reduced-motion: reduce) {
  .swatch, .hero-link { transition: none; }
  [data-live].swap { animation: none; }
  .hero-slide { transition: none; }
  .hero-slide img { animation: none; }
  .hero-callout { transition: none; }
  .hero.hero-watch { transition: none; }
}
