.page-5 {
  background-image: url('../assets/PAGE-5/bg-page-5.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.page-5__content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 120px 80px 80px 80px;
}

/* ---------- Let's Talk Heading ---------- */
.page-5__heading {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.0;
  margin-bottom: 0;
  padding-top: 40px;
  opacity: 0;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 100%);
  -webkit-mask-size: 100% 300%;
  mask-size: 100% 300%;
  -webkit-mask-position: 0 100%;
  mask-position: 0 100%;
  transition: opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1),
              -webkit-mask-position 1.5s cubic-bezier(0.16, 1, 0.3, 1),
              mask-position 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, -webkit-mask-position;
}

/* ---------- Bottom Section ---------- */
.page-5__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

/* ---------- Address ---------- */
.page-5__address {
  max-width: 400px;
  opacity: 0;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 100%);
  -webkit-mask-size: 100% 300%;
  mask-size: 100% 300%;
  -webkit-mask-position: 0 100%;
  mask-position: 0 100%;
  transition: opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1),
              -webkit-mask-position 1.5s cubic-bezier(0.16, 1, 0.3, 1),
              mask-position 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, -webkit-mask-position;
}

.page-5__address-label {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.page-5__address-text {
  font-size: 0.9rem;
  color: var(--color-navy);
  line-height: 1.8;
  opacity: 0.7;
  font-weight: 400;
}

/* ---------- Right Column (Social + Copyright) ---------- */
.page-5__right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  opacity: 0;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 100%);
  -webkit-mask-size: 100% 300%;
  mask-size: 100% 300%;
  -webkit-mask-position: 0 100%;
  mask-position: 0 100%;
  transition: opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1),
              -webkit-mask-position 1.5s cubic-bezier(0.16, 1, 0.3, 1),
              mask-position 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, -webkit-mask-position;
}

.page-5__social {
  display: flex;
  gap: 20px;
  align-items: center;
}

.page-5__social-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-navy);
  pointer-events: none;
  transition: color 0.25s ease 0s, transform 0.25s ease 0s;
  cursor: pointer;
}

.page-5__social-icon:hover {
  color: var(--color-cyan) !important;
  transform: translateY(-2px) !important;
}

.page-5__social-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-5__copyright {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-navy);
  opacity: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.page-5__copyright-logo {
  height: 18px;
}

.page-5__sitemap {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-navy);
  letter-spacing: 1px;
  cursor: pointer;
  pointer-events: none;
  transition: opacity 0.25s ease 0s;
  margin-top: 70px;
  text-decoration: none;
}

.page-5__sitemap:hover {
  opacity: 0.6 !important;
}

/* ---------- Active In-View State for Page 5 ---------- */
.page-5.in-view .page-5__heading {
  opacity: 1;
  -webkit-mask-position: 0 0%;
  mask-position: 0 0%;
  transition-delay: 0.15s;
}

.page-5.in-view .page-5__address {
  opacity: 1;
  -webkit-mask-position: 0 0%;
  mask-position: 0 0%;
  transition-delay: 0.45s;
}

.page-5.in-view .page-5__right {
  opacity: 1;
  -webkit-mask-position: 0 0%;
  mask-position: 0 0%;
  transition-delay: 0.70s;
}

/* Enable hover after entrance animation completes */
.page-5.in-view.anim-done .page-5__social-icon,
.page-5.in-view.anim-done .page-5__sitemap {
  pointer-events: auto;
}

.page-5.in-view .page-5__social-icon,
.page-5.in-view .page-5__sitemap {
  animation: enablePage5Hover 0.01s forwards;
  animation-delay: 2.0s;
}

@keyframes enablePage5Hover {
  to {
    pointer-events: auto;
  }
}

@media (max-width: 768px) {
  .page-5__content {
    padding: clamp(75px, 12vh, 90px) 24px clamp(25px, 4vh, 35px);
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .page-5__heading {
    font-size: clamp(2.8rem, 11vw, 3.8rem);
    line-height: 1.0;
    padding-top: 0;
    margin-top: auto;
    margin-bottom: auto;
    text-align: left;
    width: 100%;
  }

  .page-5__bottom {
    flex-direction: column;
    gap: clamp(18px, 3vh, 26px);
    margin-top: 0;
  }

  .page-5__address {
    max-width: 100%;
  }

  .page-5__address-label {
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 8px;
  }

  .page-5__address-text {
    font-size: clamp(0.78rem, 3.2vw, 0.86rem);
    line-height: 1.55;
    opacity: 0.8;
  }

  .page-5__right {
    align-items: flex-start;
    gap: 12px;
  }

  .page-5__social {
    gap: 16px;
  }

  .page-5__social-icon {
    width: 28px;
    height: 28px;
  }

  .page-5__social-icon svg {
    width: 20px;
    height: 20px;
  }

  .page-5__copyright {
    font-size: 0.8rem;
    gap: 8px;
    margin-top: 2px;
  }

  .page-5__copyright-logo {
    height: 15px;
  }

  .page-5__sitemap {
    font-size: 0.9rem;
    margin-top: 8px;
  }
}
