/* ── PAGE-SPECIFIC: HERO SLIDER ── */
.hero-wrapper {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #070707;
}

.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* Backgrounds */
.bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Each .bg-s is a fading plate; the .bg-img inside it is the parallax surface.
   opacity / translate / scale are driven per-frame by hero.js — the values
   below are the no-JS fallback. */
.bg-s {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.bg-s.on { opacity: 1; }

.bg-img {
  position: absolute;
  /* Bleed past the frame so pointer + scroll parallax never expose an edge. */
  inset: -12%;
  background-size: cover;
  background-position: center;
  transform-origin: 50% 50%;
  scale: 1.04;
  will-change: translate, scale;
}

/* Slide visual placeholders (no external img needed) */
.slide-vis {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8vw;
}

.slide-vis::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(200, 169, 110, 0.04) 0, rgba(200, 169, 110, 0.04) 1px, transparent 1px, transparent 22px);
  opacity: 0.6;
}

/* Grain & vignette */
.grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.vig {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to bottom, rgba(7, 7, 7, 0.7) 0%, transparent 22%, transparent 52%, rgba(7, 7, 7, 0.88) 100%),
    linear-gradient(to right, rgba(7, 7, 7, 0.92) 0%, rgba(7, 7, 7, 0.25) 44%, transparent 68%);
}

/* Big ghost text */
.ghost {
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-54%);
  z-index: 3;
  font-family: var(--font-playfair-display), serif;
  font-size: clamp(100px, 16vw, 230px);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.045);
  letter-spacing: -0.03em;
  line-height: 0.88;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  transition: opacity 0.45s ease, transform 0.45s ease;
  will-change: translate, opacity;
}

.ghost.fade-out {
  opacity: 0;
  transform: translateY(-54%) scale(0.97);
}

/* Content layer */
.content {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  padding: 0 50px;
}

.txt {
  max-width: 510px;
  padding-top: 50px;
  will-change: translate, opacity;
}

.s-cat {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 17px;
  overflow: hidden;
}

.s-cat .dash {
  width: 26px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.s-cat .lbl {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
}

.s-title .ln {
  display: block;
  overflow: hidden;
  line-height: 1;
}

.s-title .ln-in {
  display: block;
  font-family: var(--font-playfair-display), serif;
  font-size: clamp(44px, 6.2vw, 84px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.025em;
  line-height: 1;
}

.s-desc {
  font-size: 13px;
  line-height: 1.78;
  color: var(--text-mute);
  max-width: 380px;
  margin: 22px 0 34px;
  text-wrap: pretty;
}

.s-acts {
  display: flex;
  align-items: center;
  gap: 13px;
}

.btn-play {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  flex-shrink: 0;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-play:hover {
  transform: scale(1.12);
  box-shadow: 0 0 36px var(--gold-dim);
}

.btn-play svg {
  width: 15px;
  height: 15px;
  fill: #070707;
  margin-left: 2px;
}

.btn-more {
  padding: 13px 27px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-plus-jakarta-sans), sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: none;
  text-decoration: none;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.btn-more:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
  background: var(--gold-glow);
}

/* Cards */
.cards-zone {
  position: absolute;
  right: 0;
  bottom: 88px;
  z-index: 20;
  width: 62%;
  padding-left: 14px;
  overflow: hidden;
}

.cards-row {
  display: flex;
  gap: 13px;
  padding-right: 50px;
  will-change: translate;
}

.card {
  flex: 0 0 206px;
  height: 295px;
  border-radius: 21px;
  overflow: hidden;
  position: relative;
  cursor: none;
  background: #1a1410;
  transition: box-shadow 0.45s ease;
  border: none;
  padding: 0;
  text-align: left;
}

.card:first-child {
  flex: 0 0 224px;
}

.card:hover {
  box-shadow: 0 26px 65px rgba(0, 0, 0, 0.58);
}

.card:hover .card-img {
  transform: scale(1.1);
}

.card:hover .play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.45s var(--ease);
}

.card:hover .card-inner {
  transform: scale(1.04) translateY(-5px);
}

.card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 8s ease;
}

.card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.88) 0%,
      rgba(0, 0, 0, 0.15) 45%,
      transparent 100%);
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s, transform 0.4s var(--ease-spring);
}

.card:first-child .play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.play-btn svg {
  width: 13px;
  height: 13px;
  fill: #fff;
  margin-left: 2px;
}

.card-foot {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px 16px;
  backdrop-filter: blur(5px);
  background: rgba(0, 0, 0, 0.1);
}

.card-sub {
  display: block;
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 3px;
  font-weight: 600;
}

.card-name {
  font-family: var(--font-playfair-display), serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* Bottom controls */
.controls {
  position: absolute;
  bottom: 30px;
  left: 50px;
  right: 50px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 26px;
}

.arr-g {
  display: flex;
  gap: 9px;
  flex-shrink: 0;
}

.arr {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.17);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: border-color 0.3s, background 0.3s, transform 0.18s;
}

.arr:hover {
  border-color: var(--gold-dim);
  background: var(--gold-glow);
}

.arr svg {
  width: 16px;
  height: 16px;
  stroke: rgba(255, 255, 255, 0.7);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s;
}

.arr:hover svg {
  stroke: var(--gold);
}

.prog {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.11);
  position: relative;
  border-radius: 1px;
}

.prog-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--gold);
  border-radius: 1px;
  transition: width 0.85s var(--ease);
  box-shadow: 0 0 12px var(--gold-dim);
}

.dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  cursor: none;
  transition: background 0.35s, transform 0.35s;
  border: none;
  padding: 0;
}

.dot.on {
  background: var(--gold);
  transform: scale(1.5);
}

.counter {
  font-family: var(--font-playfair-display), serif;
  font-size: 42px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.12);
  letter-spacing: -0.04em;
  line-height: 1;
  flex-shrink: 0;
  width: 68px;
  text-align: right;
  overflow: hidden;
  height: 50px;
  position: relative;
}

.cnt-n {
  position: absolute;
  right: 0;
  top: 0;
  line-height: 50px;
  transition: transform 0.5s var(--ease), opacity 0.4s ease;
  animation: fup 0.52s ease forwards;
}

/* ── Animations ──
   Enter/exit are class-driven (not inline styles) so that adding .leaving can
   override the enter animation mid-flight. Per-item stagger comes from --i,
   set inline on each line/card. */
@keyframes up {
  from { transform: translateY(110%); }
  to { transform: translateY(0); }
}
@keyframes fup {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes fin {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}
@keyframes cardIn {
  from { transform: translateX(40px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes upOut {
  from { transform: translateY(0); }
  to { transform: translateY(-115%); }
}
@keyframes finOut {
  from { transform: scaleX(1); opacity: 1; }
  to { transform: scaleX(0); opacity: 0; }
}
@keyframes fupOut {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(-16px); opacity: 0; }
}
@keyframes cardOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(-28px); opacity: 0; }
}

/* Enter */
.s-cat .dash {
  transform-origin: left;
  opacity: 0;
  animation: fin 0.5s 0.18s ease forwards;
}
.s-cat .lbl {
  transform: translateY(110%);
  animation: up 0.7s 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.s-title .ln-in {
  transform: translateY(110%);
  animation: up 0.85s calc(0.28s + var(--i, 0) * 0.13s) var(--ease) forwards;
}
.s-desc {
  opacity: 0;
  animation: fup 0.7s 0.58s ease forwards;
}
.s-acts {
  opacity: 0;
  animation: fup 0.7s 0.7s ease forwards;
}
.card {
  animation: cardIn 0.65s calc(var(--i, 0) * 0.1s) cubic-bezier(0.34, 1.2, 0.64, 1) both;
}

/* Exit — plays while the outgoing background is still pushing across */
.content.leaving .dash {
  animation: finOut 0.26s ease forwards;
}
.content.leaving .lbl {
  animation: upOut 0.34s var(--ease) forwards;
}
.content.leaving .s-title .ln-in {
  animation: upOut 0.4s calc(var(--i, 0) * 0.06s) var(--ease) forwards;
}
.content.leaving .s-desc,
.content.leaving .s-acts {
  animation: fupOut 0.28s ease forwards;
}
.cards-row.leaving .card {
  animation: cardOut 0.3s calc(var(--i, 0) * 0.04s) ease forwards;
}

/* Home about section */
.home-about {
  padding: 100px 50px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
}

.home-about-txt h2 {
  font-family: var(--font-playfair-display), serif;
  font-size: clamp(32px, 5vw, 56px);
  margin-bottom: 24px;
  line-height: 1.1;
}

.home-about-txt p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-mute);
  margin-bottom: 32px;
}

.home-about-img img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.5);
}

@media (prefers-reduced-motion: reduce) {
  .bg-img { inset: 0; scale: 1; translate: none !important; }
  .ghost, .txt, .cards-row { translate: none !important; }
  .hero *, .hero *::before, .hero *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1024px) {
  .home-about {
    grid-template-columns: 1fr;
    padding: 80px 24px;
    gap: 48px;
  }
  .cards-zone {
    width: 85%;
    bottom: 100px;
  }
}
@media (max-width: 768px) {
  .hero {
    height: 100svh;
  }
  .content {
    padding: 0 24px;
  }
  .cards-zone {
    display: none;
  }
  .controls {
    left: 24px;
    right: 24px;
  }
}
