/* =========================================================
   星语礼 / StarGift — Luxury Atelier Homepage Styles
   ========================================================= */

/* ---------- Architectural Full-Bleed Hero ---------- */
.hero-carousel {
  position: relative;
  width: 100%;
  height: clamp(460px, 50vw, 620px);
  overflow: hidden;
  background: #0a0714;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.95s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img.hero-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% center;
  transform: scale(1.07);
  transition: transform 7s ease-out;
}

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

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(96deg, rgba(10, 7, 20, 0.88) 0%, rgba(10, 7, 20, 0.56) 44%, rgba(10, 7, 20, 0.12) 100%),
    linear-gradient(0deg, rgba(10, 7, 20, 0.45) 0%, transparent 28%);
}

.hero-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.hero-caption-inner {
  width: min(1160px, 90vw);
  margin-inline: auto;
  color: #faf5ec;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--latin);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.2em;
  color: #e9c987;
  margin-bottom: 14px;
}

.hero-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e9c987);
}

.hero-caption h1,
.hero-caption h2 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4.3vw, 56px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: 0.03em;
  max-width: 600px;
}

.hero-desc {
  margin: 0 0 20px;
  max-width: 480px;
  color: rgba(250, 245, 236, 0.78);
  font-size: 15px;
  line-height: 1.75;
}

.hero-strip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 240, 212, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(233, 201, 135, 0.28);
  color: #f4e2be;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-champagne {
  background: linear-gradient(125deg, #f7e6bf 0%, #dfc082 55%, #c49a52 100%);
  color: #1c130d;
  border: 1px solid rgba(255, 246, 224, 0.6);
  box-shadow: 0 14px 32px -12px rgba(212, 168, 92, 0.65);
}

.btn-champagne:hover {
  box-shadow: 0 18px 38px -10px rgba(226, 184, 108, 0.85);
}

.btn-hero-outline {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  color: #faf5ec;
  border: 1px solid rgba(255, 240, 212, 0.34);
}

.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(233, 201, 135, 0.7);
}

/* Editorial Hero Controls (Bottom-right counter + chevrons) */
.hero-controls {
  position: absolute;
  right: max(5vw, 24px);
  bottom: 26px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-counter {
  font-family: var(--latin);
  font-size: 15px;
  letter-spacing: 0.14em;
  color: rgba(250, 245, 236, 0.85);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-dot {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  border: none;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  padding: 0;
  transition: width 0.35s var(--ease-smooth), background 0.25s;
}

.hero-dot.active {
  width: 36px;
  background: #e9c987;
}

.hero-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 240, 212, 0.28);
  background: rgba(16, 11, 26, 0.45);
  backdrop-filter: blur(8px);
  color: #faf5ec;
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, border-color 0.2s;
}

.hero-nav-btn:hover {
  background: rgba(233, 201, 135, 0.24);
  border-color: #e9c987;
}

/* ---------- 4-Column Architectural Craftsmanship Ribbon ---------- */
.craft-ribbon {
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.craft-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.craft-item {
  padding: 22px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-right: 1px solid var(--line);
}

.craft-item:last-child {
  border-right: none;
}

.craft-num {
  font-family: var(--latin);
  font-style: italic;
  font-size: 15px;
  color: var(--champagne);
  font-weight: 700;
  line-height: 1.4;
}

.craft-item strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
  color: var(--ink);
}

.craft-item span {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Gallery-Grade 4:5 Portrait Scene Cards ---------- */
.section-block {
  padding: 84px 0 36px;
}

.section-head {
  text-align: center;
  margin-bottom: 44px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--latin);
  font-style: italic;
  letter-spacing: 0.2em;
  color: var(--champagne);
  font-size: 13.5px;
  margin-bottom: 10px;
}

.section-eyebrow::before,
.section-eyebrow::after {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--champagne);
  opacity: 0.55;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.scenes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.scene-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  overflow: hidden;
  background: #120d1d;
  box-shadow: 0 28px 60px -30px rgba(20, 12, 28, 0.52);
  transition: transform 0.45s var(--ease-smooth), box-shadow 0.45s ease;
}

.scene-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 15px;
  border: 1px solid rgba(244, 220, 172, 0.24);
  pointer-events: none;
  z-index: 3;
  transition: border-color 0.35s ease;
}

.scene-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 34px 72px -28px rgba(24, 14, 34, 0.65);
}

.scene-card:hover::after {
  border-color: rgba(244, 220, 172, 0.55);
}

.scene-media {
  position: absolute;
  inset: 0;
}

.scene-media img.scene-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% center;
  transition: transform 1s var(--ease-smooth);
}

.scene-card:hover .scene-media img.scene-cover-img {
  transform: scale(1.07);
}

.scene-badge {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 4;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(16, 11, 26, 0.62);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(233, 201, 135, 0.36);
  color: #f6e4be;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.scene-body {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 4;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(18, 13, 29, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 232, 192, 0.2);
  color: #faf5ec;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.scene-num {
  font-family: var(--latin);
  font-style: italic;
  font-size: 12.5px;
  color: #e9c987;
  letter-spacing: 0.14em;
}

.scene-body h3 {
  margin: 2px 0 3px;
  font-size: clamp(18px, 1.9vw, 22px);
  font-weight: 600;
}

.scene-body p {
  margin: 0;
  font-size: 12.5px;
  color: rgba(250, 245, 236, 0.72);
}

.scene-go {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(233, 201, 135, 0.42);
  background: rgba(233, 201, 135, 0.12);
  color: #f6e4be;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}

.scene-card:hover .scene-go {
  background: #e9c987;
  color: #1c130d;
  transform: translateX(3px);
}

/* ---------- Midnight Velvet Atelier Showcase Band ---------- */
.diy-section {
  margin-top: 76px;
  padding: 82px 0 78px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(164, 96, 210, 0.22), transparent 68%),
    linear-gradient(170deg, #120d1f 0%, #1a122a 60%, #100b1a 100%);
  color: #faf5ec;
  border-top: 1px solid rgba(233, 201, 135, 0.2);
  border-bottom: 1px solid rgba(233, 201, 135, 0.2);
  overflow: hidden;
}

.diy-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
}

.diy-headline {
  margin: 8px 0 14px;
  font-size: clamp(26px, 3.6vw, 44px);
  font-weight: 600;
  line-height: 1.28;
}

.diy-gold-accent {
  background: linear-gradient(120deg, #fff6df 0%, #e9c987 52%, #f4b7cf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.diy-sub {
  margin: 0 auto 28px;
  color: rgba(246, 238, 228, 0.74);
  max-width: 540px;
}

.poster-marquee {
  position: relative;
  overflow: hidden;
  padding: 12px 0 18px;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.poster-track {
  display: flex;
  gap: 22px;
  width: max-content;
  animation: posterSlide 38s linear infinite;
}

.poster-marquee:hover .poster-track {
  animation-play-state: paused;
}

.poster-card {
  width: 248px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(233, 201, 135, 0.22);
  box-shadow: 0 20px 44px -22px rgba(0, 0, 0, 0.75);
  transition: transform 0.35s var(--ease-smooth), border-color 0.3s;
  flex-shrink: 0;
}

.poster-card:hover {
  transform: translateY(-7px);
  border-color: rgba(233, 201, 135, 0.62);
}

.poster-card img {
  width: 248px;
  height: 168px;
  object-fit: cover;
  object-position: 66% center;
}

.poster-meta {
  padding: 14px 16px 16px;
}

.poster-meta strong {
  display: block;
  font-size: 14.5px;
  color: #faf5ec;
  margin-bottom: 4px;
}

.poster-meta span {
  font-family: var(--sans);
  font-size: 12px;
  color: rgba(233, 201, 135, 0.8);
}

@keyframes posterSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Couture Framed Manifesto Outro ---------- */
.brand-outro {
  padding: 84px 0 24px;
}

.manifesto-card {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 54px 36px;
  border-radius: 26px;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--champagne-soft);
  box-shadow: var(--shadow-card);
}

.manifesto-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 18px;
  border: 1px solid var(--champagne-soft);
  pointer-events: none;
}

.outro-seal {
  width: 66px;
  height: 66px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff1bf, #d69d3b 58%, #8f5c14);
  box-shadow: 0 14px 30px rgba(176, 118, 30, 0.3), inset 0 2px 5px rgba(255, 255, 255, 0.72);
  display: grid;
  place-items: center;
  color: #542d04;
}

.outro-badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  color: var(--champagne);
  font-weight: 600;
  margin-bottom: 12px;
}

.outro-slogan {
  margin: 0 0 16px;
  font-family: var(--latin);
  font-style: italic;
  font-size: clamp(28px, 3.8vw, 46px);
  font-weight: 500;
}

.outro-desc {
  max-width: 560px;
  margin: 0 auto 28px;
  color: var(--muted);
  line-height: 1.85;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .craft-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .craft-item {
    border-bottom: 1px solid var(--line);
  }
  .scenes-grid {
    grid-template-columns: 1fr;
  }
  .scene-card {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 640px) {
  .hero-carousel {
    height: min(116vw, 480px);
  }
  .hero-scrim {
    background: linear-gradient(0deg, rgba(10, 7, 20, 0.92) 0%, rgba(10, 7, 20, 0.45) 56%, rgba(10, 7, 20, 0.14) 100%);
  }
  .hero-caption {
    align-items: flex-end;
    padding-bottom: 66px;
  }
  .hero-desc {
    display: none;
  }
  .hero-strip {
    font-size: 11px;
    margin-bottom: 16px;
  }
  .hero-controls {
    left: 5vw;
    right: 5vw;
    bottom: 16px;
    justify-content: space-between;
  }
  .craft-grid {
    grid-template-columns: 1fr;
  }
  .craft-item {
    border-right: none;
  }
  .manifesto-card {
    padding: 38px 22px;
  }
}
