/* ============================================================
   template-hero-slider.css — Raviera Ceylon v5.1
   ✅ ONLY real variables from main.css :root are used
      --color-gold · --color-obsidian · --color-white-* 
      --font-display · --font-primary · --font-elegant
      --font-weight-* · --text-* · --leading-* · --shadow-*
      --transition-premium · --transition-elegant
      --bg-primary · --bg-dark · --radius-*
   ✅ Scoped to #heroVideoContainer — zero global leakage
   ✅ No @import fonts — loaded by index.html
   ============================================================ */

#heroVideoContainer {
  --hc-gold:   var(--color-gold);
  --hc-ink:    var(--text-primary);
  --hc-muted:  var(--color-white-60);
  --hc-dim:    var(--color-white-35);
  --hc-border: var(--color-white-18);
  --hc-bg:     var(--color-obsidian);
  --hc-h:      100vh;
}

/* ── SHELL ── */
.tt-hero-section {
  position: relative;
  width: 100%;
  height: var(--hc-h);
  min-height: 560px;
  overflow: hidden;
  background: var(--bg-dark);
  opacity: 1 !important;
  transform: none !important;
}

/* ── VIDEO ── */
.tt-hero-video,
.tt-hero-fallback-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: translateZ(0);
}
.tt-hero-video {
  will-change: transform;
  animation: hc-kb 28s ease-in-out infinite alternate;
}
@keyframes hc-kb {
  from { transform: scale(1.0); }
  to   { transform: scale(1.05); }
}

/* ── VIGNETTE — bottom-left only ── */
.tt-hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to top,
      rgba(10,10,10,0.90) 0%,
      rgba(10,10,10,0.52) 28%,
      rgba(10,10,10,0.10) 58%,
      transparent 85%
    ),
    linear-gradient(
      to right,
      rgba(10,10,10,0.75) 0%,
      rgba(10,10,10,0.30) 34%,
      transparent 62%
    );
  pointer-events: none;
}

/* ── AUTOPLAY PROMPT ── */
.tt-hero-play-prompt {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-dark-50);
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 4.5rem;
  transition: var(--transition-base);
}
.tt-hero-play-prompt:hover { background: var(--color-dark-70); }
.tt-hero-play-prompt[hidden] { display: none; }

/* ── CONTENT — floats on video, no background ── */
.tt-hero-content {
  position: absolute;
  bottom: 96px;
  left: 60px;
  z-index: 5;
  max-width: 580px;
}

/* Fade out on slide change */
.tt-hero-content.is-fading .tt-hero-label,
.tt-hero-content.is-fading .tt-hero-title,
.tt-hero-content.is-fading .tt-hero-desc,
.tt-hero-content.is-fading .tt-hero-inline-controls {
  opacity: 0;
  transform: translateY(14px);
}

/* ── CATEGORY LABEL ── */
.tt-hero-label {
  display: block;
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 16px;
  transition: opacity 480ms var(--transition-elegant), transform 480ms var(--transition-elegant);
  transition-delay: 0ms;
}
.tt-hero-label::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--color-gold);
  vertical-align: middle;
  margin-right: 10px;
  opacity: 0.75;
}

/* ── TITLE — massive thin serif ── */
.tt-hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  font-weight: var(--font-weight-normal);
  line-height: var(--leading-none);
  color: var(--text-white);
  margin: 0 0 20px;
  letter-spacing: -0.03em;
  transition: opacity 480ms var(--transition-elegant), transform 480ms var(--transition-elegant);
  transition-delay: 55ms;
}

/* ── DESCRIPTION ── */
.tt-hero-desc {
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-white-60);
  font-weight: var(--font-weight-light);
  margin: 0 0 28px;
  max-width: 420px;
  letter-spacing: 0.015em;
  transition: opacity 480ms var(--transition-elegant), transform 480ms var(--transition-elegant);
  transition-delay: 100ms;
}

/* ── INLINE CONTROLS — directly below text ── */
.tt-hero-inline-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 480ms var(--transition-elegant), transform 480ms var(--transition-elegant);
  transition-delay: 140ms;
}

/* Play / mute — minimal circle buttons */
.tt-hero-ic-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--color-white-08);
  border: 1px solid var(--color-white-18);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: var(--text-sm);
  transition: var(--transition-elegant);
  flex-shrink: 0;
}
.tt-hero-ic-btn:hover {
  background: var(--color-white-20);
  border-color: var(--color-white-40);
  transform: scale(1.08);
}
.tt-hero-ic-btn:active  { transform: scale(0.94); }
.tt-hero-ic-btn:disabled { opacity: 0.28; pointer-events: none; }

/* Separator */
.tt-hero-ic-sep {
  width: 1px;
  height: 20px;
  background: var(--color-white-18);
  margin: 0 4px;
}

/* CTA text link */
.tt-hero-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--color-gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(201,168,76,0.30);
  padding-bottom: 2px;
  transition: var(--transition-elegant);
}
.tt-hero-cta-link:hover {
  color: var(--color-gold-light);
  border-color: var(--color-gold);
  gap: 11px;
  text-decoration: none;
}
.tt-hero-cta-link i { font-size: 0.72rem; }

/* ── VERTICAL DOTS — right edge ── */
.tt-hero-dots {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.tt-hero-dot {
  width: 4px;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--color-white-30);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: height 400ms var(--transition-premium), background 400ms ease;
  flex-shrink: 0;
}
.tt-hero-dot:hover  { background: var(--color-white-60); }
.tt-hero-dot.active { height: 28px; background: var(--color-gold); }

/* ── SLIDE COUNTER — bottom right ── */
.tt-hero-counter {
  position: absolute;
  bottom: 108px;
  right: 52px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.tt-hero-counter__cur {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-normal);
  color: var(--text-primary);
  line-height: 1;
}
.tt-hero-counter__line {
  width: 1px;
  height: 28px;
  background: var(--color-white-20);
}
.tt-hero-counter__tot {
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  color: var(--color-white-35);
  letter-spacing: 0.08em;
}

/* ── PROGRESS BAR — very bottom ── */
.tt-hero-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 6;
  height: 2px;
  background: var(--color-white-08);
}
.tt-hero-progress__fill {
  height: 100%;
  width: 0%;
  background: var(--color-gold);
  transition: width linear;
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  .tt-hero-video { animation: none; }
  .tt-hero-label,
  .tt-hero-title,
  .tt-hero-desc,
  .tt-hero-inline-controls,
  .tt-hero-dot,
  .tt-hero-ic-btn,
  .tt-hero-cta-link { transition: none; }
  .tt-hero-progress__fill { transition: none; }
}

/* ── RESPONSIVE ── */
@media (max-width: 991.98px) {
  .tt-hero-content { left: 36px; bottom: 88px; max-width: 480px; }
  .tt-hero-title   { font-size: clamp(2.8rem, 8vw, 4.5rem); }
  .tt-hero-counter { right: 36px; bottom: 96px; }
  .tt-hero-dots    { right: 16px; }
}
@media (max-width: 767.98px) {
  .tt-hero-content { left: 20px; right: 20px; bottom: 72px; max-width: none; }
  .tt-hero-title   { font-size: clamp(2.4rem, 10vw, 3.8rem); }
  .tt-hero-counter { display: none; }
  .tt-hero-dots    { right: 12px; gap: 9px; }
}
@media (max-width: 575.98px) {
  .tt-hero-section  { min-height: 580px; }
  .tt-hero-title    { font-size: var(--text-5xl); line-height: 1.0; }
  .tt-hero-desc     { font-size: var(--text-xs); }
  .tt-hero-dots     { display: none; }
  .tt-hero-inline-controls { flex-wrap: wrap; gap: 8px; }
}
