.home-hero {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  color: var(--ink);
  min-height: calc(100vh - 137px);
  direction: rtl;
  text-align: right;
  font-family: "Vazirmatn", "Plus Jakarta Sans", sans-serif;
}

.hero-slides {
  position: relative;
  min-height: inherit;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: 50px 70px;
  background: var(--cream);
  visibility: hidden;
  pointer-events: none;
}

.hero-slide.is-active,
.hero-slide.is-leaving {
  visibility: visible;
}

.hero-slide.is-active {
  position: relative;
  pointer-events: auto;
  z-index: 2;
}

.hero-slide.is-leaving {
  z-index: 1;
}

.hero-copy {
  flex: 0 1 42%;
  max-width: 560px;
  padding-bottom: 20px;
}

.hero-eyebrow {
  margin: 0 0 20px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 28px;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateX(30px);
}

.hero-slide.is-active .hero-eyebrow {
  animation: heroFadeIn 1s ease 0.5s forwards;
}

.hero-title {
  margin: 0 0 34px;
  color: var(--ink);
  font-size: 57px;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -1px;
  opacity: 0;
  transform: translateX(40px);
}

.hero-slide.is-active .hero-title {
  animation: heroFadeIn 1s ease 0.87s forwards;
}

.hero-title span {
  position: relative;
  color: var(--accent);
}

.hero-title span::after {
  content: "";
  position: absolute;
  top: 85%;
  right: -3%;
  width: 110%;
  height: 0.32em;
  background: url("../images/hero/underline.svg") no-repeat center / 100% 100%;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px 28px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 44px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 54px;
  text-decoration: none;
  border: 2px solid var(--ink);
  border-radius: var(--card-radius);
  opacity: 0;
  transform: translateY(100%);
}

.hero-slide.is-active .hero-btn {
  animation: heroRise 1.2s cubic-bezier(0.22, 1, 0.36, 1) 1.23s forwards;
}

.hero-btn:hover {
  color: #fff;
  background: var(--ink);
}

.hero-socials {
  display: flex;
  align-items: center;
  gap: 22px;
}

.hero-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--ink);
  text-decoration: none;
  opacity: 0;
  transform: translateY(100%);
}

.hero-socials svg,
.hero-socials img {
  display: block;
  width: 20px;
  height: 20px;
}

.hero-socials img {
  object-fit: cover;
  border-radius: 50%;
}

.hero-slide.is-active .hero-socials a {
  animation: heroRise 1.2s cubic-bezier(0.22, 1, 0.36, 1) 1.23s forwards;
}

.hero-slide.is-active .hero-socials a:nth-child(2) { animation-delay: 1.31s; }
.hero-slide.is-active .hero-socials a:nth-child(3) { animation-delay: 1.39s; }
.hero-slide.is-active .hero-socials a:nth-child(4) { animation-delay: 1.48s; }

.hero-socials a:hover {
  color: rgba(0, 0, 0, 0.6);
}

.hero-media {
  flex: 1 1 52%;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hero-photos {
  display: flex;
  gap: 0;
  overflow: hidden;
}

.hero-photo {
  flex: 1 1 50%;
  overflow: hidden;
  margin: 0;
  aspect-ratio: 550 / 719;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateY(105%) skewY(2deg);
}

.hero-slide.is-active .hero-photo:nth-child(1) img {
  animation: heroPhotoIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.13s forwards;
}

.hero-slide.is-active .hero-photo:nth-child(2) img {
  animation: heroPhotoIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.32s forwards;
}

.hero-slide.is-leaving .hero-photo img {
  animation: heroPhotoOut 1s cubic-bezier(0.4, 0, 1, 1) forwards;
}

.hero-media-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
}

.hero-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero-prev,
.hero-next,
.hero-scroll {
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.hero-prev svg,
.hero-next svg {
  display: block;
  width: 47px;
  height: 26px;
}

.hero-prev:hover,
.hero-next:hover,
.hero-scroll:hover {
  opacity: 0.7;
}

.hero-scroll {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  line-height: 25px;
}

.hero-mouse {
  display: inline-flex;
  width: 13px;
  height: 22px;
  animation: heroMouse 6s ease-in-out infinite alternate;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes heroRise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroPhotoIn {
  to {
    transform: translateY(0) skewY(0);
  }
}

@keyframes heroPhotoOut {
  to {
    transform: translateY(-130%) skewY(0);
  }
}

@keyframes heroMouse {
  from { transform: translateY(-6px); }
  to { transform: translateY(4px); }
}

@media (max-width: 1200px) {
  .hero-title {
    font-size: 47px;
  }

  .hero-slide {
    padding: 40px 40px 32px;
  }
}

@media (max-width: 1024px) {
  .home-hero {
    min-height: 0;
  }

  .hero-slide {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 20px 20px 28px;
    min-height: 0;
  }

  .hero-copy {
    flex: none;
    max-width: none;
    padding-bottom: 0;
  }

  .hero-title {
    font-size: 43px;
    margin-bottom: 20px;
  }

  .hero-socials,
  .hero-scroll {
    display: none;
  }

  .hero-media-bar {
    position: static;
    padding-top: 16px;
  }

  .hero-photos {
    display: flex;
  }

  .hero-photo {
    flex: 1 1 50%;
    max-width: none;
    margin-inline-start: 0;
  }

  .hero-btn {
    padding: 0 36px;
    line-height: 50px;
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 36px;
  }

  .hero-eyebrow {
    font-size: 11px;
    margin-bottom: 12px;
  }
}
