/* ============================================================
   IMMERSIVE — Timeline horizontal · 3D cards · Map cinematic
============================================================ */

/* ══════════════════════════════════════
   HORIZONTAL TIMELINE
══════════════════════════════════════ */
.htl-section {
  background: #0a0a0a;
  overflow: hidden;
}

.htl-header {
  padding-top: 5rem;
  padding-bottom: 3rem;
}

.htl-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #e30b17;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.75rem;
}
.htl-eyebrow::before {
  content: '';
  display: block;
  width: 28px; height: 2px;
  background: #e30b17;
}

.htl-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

.htl-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
}

.htl-scroll-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 1.5rem;
}
.htl-scroll-hint__line {
  display: block;
  width: 40px; height: 1px;
  background: rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}
.htl-scroll-hint__line::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: #e30b17;
  animation: slideRight 1.8s ease-in-out infinite;
}
@keyframes slideRight {
  0%   { left: -100%; }
  100% { left: 100%; }
}
.htl-scroll-hint__text {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* Track wrapper — sticky while scrolling */
.htl-track-wrapper {
  position: relative;
  padding-bottom: 4rem;
}

/* Horizontal scrolling track */
.htl-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0 max(2rem, calc((100vw - 1200px) / 2));
  padding-bottom: 2rem;
  cursor: grab;
  /* Hide scrollbar — still scrollable */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.htl-track::-webkit-scrollbar { display: none; }
.htl-track.is-dragging { cursor: grabbing; }

/* ── CARD ── */
.htl-card {
  flex: 0 0 340px;
  width: 340px;
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
  will-change: transform;
}
.htl-card--featured {
  flex: 0 0 440px;
  width: 440px;
}
.htl-card:hover { transform: translateY(-8px) scale(1.01); }

/* Image */
.htl-card__img-wrap {
  position: absolute;
  inset: 0;
}
.htl-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.7s cubic-bezier(0.16,1,0.3,1);
  filter: brightness(0.65) saturate(0.9);
}
.htl-card:hover .htl-card__img {
  transform: scale(1.07);
  filter: brightness(0.8) saturate(1.05);
}

/* Gradient overlay */
.htl-card__img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.92) 0%,
    rgba(0,0,0,0.4)  50%,
    rgba(0,0,0,0.1)  100%
  );
}

/* Content — bottom */
.htl-card__content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem 1.75rem;
  z-index: 2;
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.htl-card:hover .htl-card__content {
  transform: translateY(-6px);
}

.htl-card__date {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #e30b17;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.htl-card__date::before {
  content: '';
  display: block;
  width: 20px; height: 1.5px;
  background: #e30b17;
}

.htl-card__badge {
  display: inline-flex;
  align-items: center;
  background: #e30b17;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.htl-card__title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.htl-card__desc {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease 0.05s, transform 0.4s ease 0.05s;
}
.htl-card:hover .htl-card__desc {
  opacity: 1;
  transform: translateY(0);
}

/* Big number watermark */
.htl-card__number {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-family: 'Poppins', sans-serif;
  font-size: 4.5rem;
  font-weight: 900;
  color: rgba(255,255,255,0.07);
  line-height: 1;
  z-index: 2;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
}

/* Progress bar */
.htl-progress {
  height: 2px;
  background: rgba(255,255,255,0.08);
  margin: 1.5rem max(2rem, calc((100vw - 1200px) / 2));
  border-radius: 2px;
  overflow: hidden;
}
.htl-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #e30b17, #f39204);
  border-radius: 2px;
  transition: width 0.1s linear;
}

/* Mobile */
@media (max-width: 640px) {
  .htl-card { flex: 0 0 280px; width: 280px; height: 420px; }
  .htl-card--featured { flex: 0 0 320px; width: 320px; }
}


/* ══════════════════════════════════════
   3D MUSEUM CARDS
══════════════════════════════════════ */
.mc-3d-wrapper {
  perspective: 1200px;
  transform-style: preserve-3d;
}

/* The .mc card gets 3D transform via JS */
.mc {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.1s ease, box-shadow 0.3s ease !important;
}
.mc.is-tilting {
  transition: none !important;
}

/* Glare effect overlay */
.mc__glare {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  pointer-events: none;
  z-index: 20;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255,255,255,0.12) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  mix-blend-mode: overlay;
}
.mc:hover .mc__glare { opacity: 1; }


/* ══════════════════════════════════════
   CINEMATIC MAP — pin animations
══════════════════════════════════════ */

/* Pin drop-in entrance */
@keyframes pinDrop {
  0%   { opacity: 0; transform: translateY(-30px) scale(0.5); }
  70%  { transform: translateY(4px) scale(1.08); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.mp-pin {
  opacity: 0;
  animation: pinDrop 0.6s cubic-bezier(0.34,1.56,0.64,1) forwards;
  transform-box: fill-box;
  transform-origin: center bottom;
}

/* Stagger delays for dramatic entrance */
.mp-pin:nth-child(1)  { animation-delay: 0.1s; }
.mp-pin:nth-child(2)  { animation-delay: 0.18s; }
.mp-pin:nth-child(3)  { animation-delay: 0.26s; }
.mp-pin:nth-child(4)  { animation-delay: 0.34s; }
.mp-pin:nth-child(5)  { animation-delay: 0.42s; }
.mp-pin:nth-child(6)  { animation-delay: 0.5s; }
.mp-pin:nth-child(7)  { animation-delay: 0.58s; }
.mp-pin:nth-child(8)  { animation-delay: 0.66s; }
.mp-pin:nth-child(9)  { animation-delay: 0.74s; }
.mp-pin:nth-child(10) { animation-delay: 0.82s; }
.mp-pin:nth-child(11) { animation-delay: 0.9s; }
.mp-pin:nth-child(12) { animation-delay: 0.98s; }
.mp-pin:nth-child(13) { animation-delay: 1.06s; }
.mp-pin:nth-child(14) { animation-delay: 1.14s; }
.mp-pin:nth-child(15) { animation-delay: 1.22s; }
.mp-pin:nth-child(16) { animation-delay: 1.3s; }
.mp-pin:nth-child(17) { animation-delay: 1.38s; }
.mp-pin:nth-child(18) { animation-delay: 1.46s; }
.mp-pin:nth-child(19) { animation-delay: 1.54s; }

/* Pause animation when section not in view */
.mp-pin.paused { animation-play-state: paused; }


/* ══════════════════════════════════════
   SOUND INDICATOR
══════════════════════════════════════ */
.mc__sound {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 25;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}
.mc:hover .mc__sound {
  opacity: 1;
  transform: scale(1);
}
.mc__sound__bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}
.mc__sound__bar {
  width: 3px;
  border-radius: 2px;
  background: #fff;
  animation: soundBar 0.8s ease-in-out infinite alternate;
}
.mc__sound__bar:nth-child(1) { height: 4px;  animation-delay: 0s; }
.mc__sound__bar:nth-child(2) { height: 10px; animation-delay: 0.15s; }
.mc__sound__bar:nth-child(3) { height: 6px;  animation-delay: 0.3s; }
.mc__sound__bar:nth-child(4) { height: 12px; animation-delay: 0.1s; }
@keyframes soundBar {
  from { transform: scaleY(0.4); }
  to   { transform: scaleY(1); }
}
