/* ══ Sample-report showcase — 3D fanned deck of real report pages ══════════
   Used by templates/heritage/_report_showcase.html + js/heritage/report-showcase.js */

.hz-sc { position: relative; max-width: 1080px; margin: 0 auto; text-align: center; outline: none;
         overflow-x: clip; padding: 0 16px; }      /* fanned side pages never cause sideways scroll */
.hz-sc-head { margin-bottom: 8px; }
.hz-sc-sub { max-width: 60ch; margin: 6px auto 0; color: #e8d9b4; font-size: 0.98rem; line-height: 1.7; }

.hz-sc-stage {
  position: relative; height: clamp(360px, 62vw, 600px);
  perspective: 1600px; perspective-origin: 50% 40%;
  margin: 26px auto 0; touch-action: pan-y;
}
.hz-sc-card {
  position: absolute; left: 50%; top: 0;
  width: clamp(220px, 38vw, 400px); margin-left: calc(clamp(220px, 38vw, 400px) / -2);
  aspect-ratio: 1 / 1.414;                       /* A4 */
  border-radius: 6px; overflow: hidden; cursor: pointer;
  background: #f6eedb;
  box-shadow: 0 30px 60px rgba(20, 10, 0, 0.45), 0 6px 16px rgba(20, 10, 0, 0.3);
  transform-style: preserve-3d;
  transition: transform 0.75s cubic-bezier(.2, .8, .25, 1), opacity 0.6s ease, box-shadow 0.4s;
  will-change: transform;
}
.hz-sc-card img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.hz-sc-card::after {                              /* page sheen on inactive cards */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, rgba(255,255,255,0) 40%, rgba(255,255,255,0.18) 50%, rgba(255,255,255,0) 60%);
  opacity: 0; transition: opacity 0.6s;
}
.hz-sc-card:not(.is-active) { filter: saturate(0.85) brightness(0.9); }
.hz-sc-card.is-active { box-shadow: 0 40px 80px rgba(20, 10, 0, 0.55), 0 0 0 1px rgba(227, 182, 79, 0.55); }
.hz-sc-card.is-active::after { opacity: 1; animation: hzScSheen 3.8s ease-in-out infinite; }
.hz-sc-card:focus-visible { outline: 3px solid #e3b64f; outline-offset: 4px; }
.hz-sc-zoom {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  background: rgba(29, 27, 58, 0.78); color: #f3e7cb; font-size: 0.74rem; font-weight: 700;
  padding: 5px 10px; border-radius: 99px; opacity: 0; transition: opacity 0.3s;
}
.hz-sc-card.is-active .hz-sc-zoom { opacity: 1; }
@keyframes hzScSheen { 0%, 100% { transform: translateX(-60%); } 50% { transform: translateX(60%); } }

.hz-sc-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; }
.hz-sc-prev, .hz-sc-next {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(227, 182, 79, 0.7);
  background: rgba(29, 20, 6, 0.35); color: #f0cf8e; font-size: 1.3rem; cursor: pointer; transition: background 0.2s;
}
.hz-sc-prev:hover, .hz-sc-next:hover { background: rgba(227, 182, 79, 0.25); }
.hz-sc-caption { min-height: 1.6em; margin: 0; color: #f7ecd4; font-weight: 700; font-size: 1.05rem; }
.hz-sc-counter { color: #c9b38a; font-size: 0.8rem; min-width: 52px; }
.hz-sc-dots { display: flex; justify-content: center; gap: 7px; margin-top: 12px; flex-wrap: wrap; }
.hz-sc-dot { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; background: rgba(240, 207, 142, 0.35); cursor: pointer; transition: all 0.3s; }
.hz-sc-dot.is-active { width: 22px; border-radius: 4px; background: #e3b64f; }

.hz-sc-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.hz-sc-actions .hz-btn-gold { width: auto; padding: 13px 26px; }
.hz-sc-actions .hz-sc-dl {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 10px;
  border: 1px solid #e3b64f; color: #f0cf8e !important; font-weight: 700; text-decoration: none;
  background: rgba(29, 20, 6, 0.3); transition: background 0.2s;
}
.hz-sc-actions .hz-sc-dl:hover { background: rgba(227, 182, 79, 0.2); }
.hz-sc-actions .hz-sc-dl small { font-weight: 600; opacity: 0.75; }
.hz-sc-note { margin-top: 12px; font-size: 0.78rem; color: #c9b38a; }

/* lightbox */
.hz-sc-lightbox {
  position: fixed; inset: 0; z-index: 9999; display: none; flex-direction: column;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(12, 8, 2, 0.92); backdrop-filter: blur(3px);
}
.hz-sc-lightbox.open { display: flex; animation: hzScFade 0.25s ease; }
.hz-sc-lightbox img { max-width: min(92vw, 900px); max-height: 82vh; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,0.6); background: #f6eedb; }
.hz-sc-lb-cap { color: #f3e7cb; margin: 14px 0 0; font-weight: 700; }
.hz-sc-lb-close {
  position: absolute; top: 14px; right: 16px; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(227, 182, 79, 0.6); background: rgba(29, 20, 6, 0.6); color: #f0cf8e; font-size: 1.1rem; cursor: pointer;
}
@keyframes hzScFade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 640px) {
  .hz-sc-stage { height: clamp(330px, 112vw, 470px); }
  .hz-sc-card { width: 62vw; margin-left: -31vw; }
}
@media (prefers-reduced-motion: reduce) {
  .hz-sc-card { transition: opacity 0.2s; }
  .hz-sc-card.is-active::after { animation: none; }
}
