/* ========================================
   PROJECTS PAGE STYLES
======================================== */

/* === HERO === */
.hero {
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-block: 38rem;
  position: relative;
}

@media screen and (orientation: portrait) {
  .hero {
    min-height: 500px;
    padding-block: 0rem;
    position: relative;
    max-height: 900px;
    overflow: hidden;
  }
}

.hero .hero-background {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  mask-image: linear-gradient(black 50%, transparent);
  -webkit-mask-image: linear-gradient(black 50%, transparent);
  opacity: 0;
  visibility: hidden;
}

.hero .hero-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media screen and (orientation: portrait) {
  .hero .hero-flex {
    width: 100%;
  }
}

.hero .hero-flex .uptown-link-t1 {
  position: relative;
  margin-bottom: 3.5rem;
  opacity: 0;
  visibility: hidden;
}

@media screen and (orientation: portrait) {
  .hero .hero-flex .uptown-link-t1 {
    margin-bottom: 0.7rem;
  }
}

.hero .hero-flex .hero-heading {
  color: #fdfdfd;
  font-size: var(--font-180);
  line-height: 80%;
  text-transform: uppercase;
  margin-bottom: 4.5rem;
  opacity: 0;
  visibility: hidden;
}

@media screen and (orientation: portrait) {
  .hero .hero-flex .hero-heading {
    font-size: 5rem;
    line-height: 120%;
    margin-bottom: 1rem;
  }
}

.hero .hero-flex .hero-description {
  color: #fdfdfd;
  text-align: center;
  font-size: var(--font-25);
  line-height: normal;
  max-width: 67.6rem;
  margin-bottom: 5rem;
  opacity: 0;
  visibility: hidden;
}

@media screen and (orientation: portrait) {
  .hero .hero-flex .hero-description {
    font-size: 1.4rem;
    max-width: 25rem;
    margin-bottom: 2.6rem;
  }
}

.hero .hero-flex .CTA-btn {
  opacity: 0;
  visibility: hidden;
}

.hero .hero-flex .CTA-btn .CTA-btn__border::after {
  background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0) 10%, rgba(255, 255, 255, 0) 89.92%, #ffffff 100%);
}

.hero .hero-flex .CTA-btn .CTA-btn__inner {
  display: flex;
  align-items: center;
  padding: 1rem 2.5rem;
  gap: 1.5rem;
}

@media screen and (orientation: portrait) {
  .hero .hero-flex .CTA-btn .CTA-btn__inner {
    gap: 0.8rem;
    padding: 1rem 2.5rem;
  }
}
.hero .hero-flex .CTA-btn .CTA-btn__icon {
  background: #fff;
  width: 1rem;
  height: 1rem;
}

@media screen and (orientation: portrait) {
  .hero .hero-flex .CTA-btn .CTA-btn__icon {
    width: 0.8rem;
    height: 0.8rem;
  }
}

.hero .hero-flex .CTA-btn .CTA-btn__text {
  color: #fff;
}

/* === PROJECTS === */
.projects {
  width: 100%;
  padding-inline: 6.8rem;
  margin-top: 16.5rem;
  padding-bottom: 11rem;
  position: relative;
}

.projects::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url(/assets/images/patterns/lines-2.webp);
  mask-image: linear-gradient(transparent 5%, black 30%, black 90%, transparent 99%);
  user-select: none;
  pointer-events: none;
}

@media screen and (orientation: portrait) {
  .projects {
    padding-inline: 1.5rem;
    margin-top: 5.9rem;
    padding-bottom: 6rem;
  }

  .projects::before {
    background-image: url(/assets/images/patterns/lines-2-portrait.webp);
    mask-image: linear-gradient(transparent 5%, black 30%, black 90%, transparent 99%);
  }
}

/* heading wrapper  */
.projects .projects-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4rem;
}

@media screen and (orientation: portrait) {
  .projects .projects-heading {
    margin-bottom: 5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }
}

/* heading text  */
.projects .projects-heading p {
  color: #f7f5f3;
  font-size: var(--font-50);
  line-height: 135%;
  text-transform: uppercase;
}

@media screen and (orientation: portrait) {
  .projects .projects-heading p {
    font-size: 3.5rem;
    line-height: 120%;
    width: 19rem;
    flex-shrink: 0;
  }
}

/* filters  */
.projects .projects-heading .projects-filters {
  display: flex;
  align-items: center;
  gap: 1.7rem;
}
.projects .projects-filters__item {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  cursor: pointer;
}
.projects .projects-filters__item-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  transform: scale(0) rotate(0deg);
  background: #009ca8;
  transition: 0.3s var(--ease);
}
.projects .projects-filters__item-text {
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--font-22);
  line-height: normal;
  transition: var(--transition);
}

@media screen and (orientation: portrait) {
  .projects .projects-heading .projects-filters {
    gap: 1.4rem;
  }
  .projects .projects-filters__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
  }
  .projects .projects-filters__item-icon {
    width: 0.6rem;
    height: 0.6rem;
  }

  .projects .projects-filters__item-text {
    font-size: 1.4rem;
  }
}

/* active state  */
.projects .projects-filters__item.--is-active .projects-filters__item-icon {
  transform: scale(1) rotate(-45deg);
}
.projects .projects-filters__item.--is-active .projects-filters__item-text {
  color: #fff;
}

/* hover states  */
.projects .projects-filters:hover .projects-filters__item-icon {
  transform: scale(0);
}
.projects .projects-filters:hover .projects-filters__item-text {
  color: rgba(255, 255, 255, 0.5);
}

.projects .projects-filters__item:hover .projects-filters__item-icon {
  transform: scale(1) rotate(-45deg);
}
.projects .projects-filters__item:hover .projects-filters__item-text {
  color: #fff;
}

/* grid  */
.projects .projects-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 63.3rem;
  gap: 10rem 6.5rem;
  margin-bottom: min(18rem, 18vh);
}

@media screen and (orientation: portrait) {
  .projects .projects-grid {
    grid-auto-rows: 16rem;
    gap: 3.8rem 1rem;
    margin-bottom: 7.5rem;
  }
}

/* project item  */
.projects .projects-grid__item {
  position: relative;
}

.projects .projects-grid__item:hover .projects-grid__image img {
  opacity: 0.4;
}

.projects-grid__image {
  width: 100%;
  height: 50rem;
  margin-bottom: 5rem;
  background: #171717;
}

@media screen and (orientation: portrait) {
  .projects .projects-grid__item:hover .projects-grid__image img {
    opacity: 1;
  }

  .projects-grid__image {
    height: 10rem;
    margin-bottom: 1.6rem;
  }
}

.projects-grid__image img {
  transition: var(--transition);
}

/* tags  */
.projects__tags {
  display: flex;
  align-items: center;
  gap: 3.4rem;
  position: absolute;
  top: 4rem;
  left: 3.5rem;
}

@media screen and (orientation: portrait) {
  .projects__tags {
    gap: 0.6rem;
    top: 0.9rem;
    left: 0.6rem;
  }
}

.projects__tags .projects__tag {
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.9rem;
  padding: 1.2rem 1.5rem;
  border-radius: 4.674px;
  background: rgba(133, 133, 133, 0.22);
  backdrop-filter: blur(24.926315307617188px);
  -webkit-backdrop-filter: blur(24.926315307617188px);
  min-width: 19rem;
}
.projects__tags .projects__tag-icon {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
}
.projects__tags .projects__tag-text {
  color: #f0f0f0;
  font-size: 2.4rem;
  line-height: normal;
}

@media screen and (orientation: portrait) {
  .projects__tags .projects__tag {
    gap: 0.35rem;
    padding: 0.25rem 0.3rem;
    border-radius: 0.9px;
    backdrop-filter: blur(4.81px);
    -webkit-backdrop-filter: blur(4.81px);
    min-width: 3.7rem;
  }
  .projects__tags .projects__tag-icon {
    width: 0.6rem;
    height: 0.6rem;
    flex-shrink: 0;
  }
  .projects__tags .projects__tag-text {
    font-size: 0.49rem;
  }
}

/* info  */
.projects-grid__info {
}

.projects-grid__info .projects-grid__info-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.2rem;
  padding-right: 1.4rem;
}

@media screen and (orientation: portrait) {
  .projects-grid__info .projects-grid__info-top {
    margin-bottom: 0.5rem;
    padding-right: 0.88rem;
  }
}

.projects-grid__info .projects-grid__info-date {
  color: rgba(255, 255, 255, 0.5);
  font-size: 2rem;
  line-height: normal;
}

@media screen and (orientation: portrait) {
  .projects-grid__info .projects-grid__info-date {
    font-size: 0.67rem;
  }
}

.projects-grid__info .projects-grid__info-link {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  cursor: pointer;
}

@media screen and (orientation: portrait) {
  .projects-grid__info .projects-grid__info-link {
    gap: 0.5rem;
  }
}

.projects-grid__info .projects-grid__info-link .projects-grid__info-icon {
  width: 1rem;
  height: 1rem;
  transform: rotate(-45deg);
  background: #009ca8;
  flex-shrink: 0;
  transition: 0.6s var(--ease);
}

@media screen and (orientation: portrait) {
  .projects-grid__info .projects-grid__info-link .projects-grid__info-icon {
    width: 0.38rem;
    height: 0.38rem;
  }
}

.projects-grid__info .projects-grid__info-link .projects-grid__info-text {
  color: #fff;
  font-size: 2.2rem;
  line-height: normal;
  transition: var(--transition);
}

@media screen and (orientation: portrait) {
  .projects-grid__info .projects-grid__info-link .projects-grid__info-text {
    font-size: 0.68rem;
  }
}

.projects-grid__info .projects-grid__info-link:hover .projects-grid__info-icon {
  transform: rotate(-225deg);
}
.projects-grid__info .projects-grid__info-link:hover .projects-grid__info-text {
  opacity: 0.6;
}

.projects-grid__info .projects-grid__info-title {
  color: #fff;
  font-size: var(--font-40);
  line-height: 70%;
  text-transform: uppercase;
}

@media screen and (orientation: portrait) {
  .projects-grid__info .projects-grid__info-title {
    font-size: 1.21rem;
    line-height: 120%;
    max-width: 11rem;
  }
}

/* navigation  */
.projects-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 3rem;
  height: 5rem;
}

@media screen and (orientation: portrait) {
  .projects-navigation {
    transform: scale(0.8);
  }
}

.projects-navigation .projects-navigation-btn {
  width: 4.4rem;
  height: 4.4rem;
  transform: rotate(-45deg);
  flex-shrink: 0;
  border: 1px solid #009ca8;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
  cursor: pointer;
}
.projects-navigation .projects-navigation-btn svg {
  width: 1.5rem;
  height: 1.5rem;
}

.projects-navigation .projects-navigation-btn-prev:hover,
.projects-navigation .projects-navigation-btn-next:hover {
  background-color: #009ca8;
}

@media screen and (orientation: portrait) {
}

/* === CONTACT === */
.contact {
  position: relative;
  padding: 20rem 10rem;
  isolation: isolate;
}

@media screen and (orientation: portrait) {
  .contact {
    padding: 11rem 1.5rem 12rem;
  }
}

/* background image  */
.contact .contact-background {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  user-select: none;
  mask-image: linear-gradient(transparent 10%, black);
}
.contact .contact-background img {
}

/* flex wrapper  */
.contact .contact-flex {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3rem;
}
@media screen and (orientation: portrait) {
  .contact .contact-flex {
    gap: 2rem;
  }
}

.contact .contact-flex .contact-tagline {
  font-size: var(--font-22);
  line-height: 90%;
  text-transform: uppercase;
  color: #fff;
}

@media screen and (orientation: portrait) {
  .contact .contact-flex .contact-tagline {
    font-size: 1.4rem;
    line-height: 66%;
  }
}

.contact .contact-flex .contact-heading {
  display: grid;
}

.contact .contact-heading span {
  color: #009ca8;
  font-size: var(--font-90);
  line-height: normal;
  text-transform: uppercase;
}

@media screen and (orientation: portrait) {
  .contact .contact-heading span {
    font-size: 3.5rem;
  }
}

.contact .contact-heading span:nth-child(2) {
  color: #fff;
}

.contact .CTA-btn .CTA-btn__border::after {
  background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0) 10%, rgba(255, 255, 255, 0) 89.92%, #ffffff 100%);
}

.contact .CTA-btn .CTA-btn__icon {
  background: #fff;
  width: 1rem;
  height: 1rem;
}

@media screen and (orientation: portrait) {
  .contact .CTA-btn {
    margin-top: 1rem;
    margin-left: 1rem;
  }

  .contact .CTA-btn .CTA-btn__icon {
    width: 0.8rem;
    height: 0.8rem;
  }
}
