/* ═══════════════════════════════════════════════════
   HERO V2 — 置中構圖 + 30% 遮罩按鈕 + 橫排 dots
   前衛東方官網 V2
   ═══════════════════════════════════════════════════ */

/* ── Container ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Slides wrapper ── */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.6s var(--ease-out);
  will-change: opacity;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  transition: transform 9s linear;
  will-change: transform;
}

.hero-slide.active img {
  transform: scale(1.13);
}

/* ── Overlay - 低調置中可讀 ── */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at center,
      rgba(28, 27, 24, 0.35) 0%,
      rgba(28, 27, 24, 0.55) 60%,
      rgba(28, 27, 24, 0.75) 100%
    );
  pointer-events: none;
}

/* ── Hero caption 放左下，小字 (optional) ── */
.hero-caption {
  position: absolute;
  left: 6%;
  bottom: 72px;
  z-index: 8;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Noto Sans TC', sans-serif;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s var(--ease-out) 0.3s, transform 0.8s var(--ease-out) 0.3s;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

.hero-slide.active .hero-caption {
  opacity: 1;
  transform: translateY(0);
}

.caption-tag {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.caption-name {
  display: block;
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.08em;
}

/* ── Content — 置中構圖 ── */
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 780px;
  padding: 0 24px;
  text-align: center;
  margin: 0 auto;
}

/* SIGNATURE × BY MODERNEAST */
.hero-signature {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.5em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  margin-bottom: 28px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

/* 塗上你的空間語言 */
.hero-title {
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(1.9rem, 3.6vw, 2.25rem);
  font-weight: 500;
  color: #ffffff;
  line-height: 1.6;
  letter-spacing: 0.25em;
  margin: 0 0 14px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
}

/* Where Design Meets Craftsmanship */
.hero-sub-en {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  font-weight: 300;
  font-style: italic;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.15em;
  margin: 0 0 36px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

/* 描述三行 */
.hero-desc {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.08em;
  line-height: 2;
  margin: 0 0 42px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero-desc span {
  display: block;
}

/* ── CTA 雙按鈕 (30% 遮罩 .btn-outline 金線) ── */
.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Dots - 手機桌機都橫排置中 ── */
.hero-dots {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: row;
  gap: 12px;
}

.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition:
    background var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    width var(--duration-normal) var(--ease-out);
}

.hero-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  width: 22px;
  border-radius: 4px;
}

.hero-dot:hover:not(.active) {
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.25);
}

/* Progress bar 保留 */
.hero-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: 2px;
  background: rgba(200, 191, 176, 0.15);
}

.hero-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transform-origin: left;
  transition: none;
}

.hero-progress-bar.running {
  animation: heroProgressFill 5.5s linear forwards;
}

@keyframes heroProgressFill {
  from { width: 0%; }
  to   { width: 100%; }
}

/* ── 響應式 ── */
@media (max-width: 768px) {
  .hero {
    min-height: 580px;
  }

  .hero-signature {
    font-size: 11px;
    letter-spacing: 0.4em;
    margin-bottom: 22px;
  }

  .hero-title {
    font-size: clamp(1.4rem, 6.8vw, 1.9rem);
    letter-spacing: 0.18em;
    line-height: 1.7;
  }

  .hero-sub-en {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    margin-bottom: 28px;
  }

  .hero-desc {
    font-size: 12.5px;
    line-height: 1.95;
    margin-bottom: 32px;
  }

  .hero-actions {
    gap: 14px;
  }

  .hero-caption {
    left: 5%;
    bottom: 68px;
    max-width: 70%;
  }
  .caption-tag {
    font-size: 0.6rem;
  }
  .caption-name {
    font-size: 0.72rem;
  }

  .hero-dots {
    bottom: 24px;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.35rem;
    letter-spacing: 0.14em;
  }

  .hero-desc span:nth-child(2),
  .hero-desc span:nth-child(3) {
    font-size: 11.5px;
  }

  .hero-caption {
    display: none;
  }
}
