/* * GSAP related */
/* * Prevent FOUT / FOUC on GSAP animated headings */
.hero__heading .heading,
.hero__heading h1,
#title.heading {
  visibility: hidden;
}

/* * GSAP SplitText characters & words */
.split-char,
.split-word {
  display: inline-block;
}

/* * Header */
.header__details,
.header__link {
  color: inherit;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 800;
  position: relative;
  overflow: hidden;
}

.header__link:focus-visible {
  display: none;
}

.header__text {
  display: block;
  transition: 0.5s;
}

.header__link:hover .header__text {
  transform: translateY(-100%);
}

.header__link::before {
  position: absolute;
  content: attr(data-link-alt);
  top: 100%;
  opacity: 0;
  transition: 0.5s;
}

.header__link:hover:before {
  top: 0;
  opacity: 1;
}

/* * 320px */
@media screen {
  .header,
  .header__nav,
  .header__details {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .header__nav {
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .header__location,
  #header-clock,
  .header__link {
    font-size: var(--text-2xs);
  }

  #header-clock {
    display: none;
  }

  .header__nav {
    gap: var(--space-6);
  }

  /* * Page Title */
  .heading {
    padding-top: var(--space-6);
    font-size: var(--text-fluid-page_title);
  }

  /* * Tags */
  .tag {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-2);
    width: fit-content;
    font-size: var(--text-xs);
    border: 1px solid currentColor;
  }

  .hidden-tag {
    border: 1px solid var(--color-secondary-white);
    color: var(--color-secondary-white);
  }

  /* * More Projects */
  .more-projects__header {
    font-size: var(--text-fluid-more-projects);
    padding-bottom: var(--space-16);
  }

  /* * Footer */
  .footer {
    min-height: 60dvh;
    padding: var(--space-12) 0;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    gap: var(--space-16);
  }

  .footer__cta-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
  }

  .footer__cta {
    font-family: "Vanguard CF", sans-serif;
    font-weight: 600;
    font-size: var(--text-fluid-cta);
  }

  .footer__cta-btn {
    width: 150px;
    height: 150px;
    border: none;
    font-family: "Manrope", sans-serif;
    font-size: var(--text-sm);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    border-radius: 100%;
  }

  .footer__links {
    display: flex;
    gap: var(--space-4);
  }

  .footer__footnotes {
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-4);
    font-size: var(--text-base);
  }

  .footer__back-to-top {
    display: flex;
    gap: var(--space-1);
    align-items: center;
  }

  .footer__link,
  .footer__back-to-top-btn {
    text-decoration: none;
    color: inherit;
  }

  /* * View Live Site */
  .view-site-btn {
    display: inline-block;
    border: 1px solid var(--color-primary-black);
    padding: var(--space-3) var(--space-6);
    background-color: transparent;
    box-shadow: 0 2px 8px 2px rgba(0, 0, 0, 0.08);
    width: fit-content;
    font-size: var(--text-xs);
    font-family: var(--font-body);
    border-radius: var(--space-1);
    text-decoration: none;
    color: var(--color-primary-black);
    margin-top: var(--space-8);
  }
}

@media screen and (min-width: 600px) {
  .header__location,
  #header-clock,
  .header__link {
    font-size: var(--text-base);
  }

  .header__details {
    display: flex;
    gap: var(--space-12);
  }

  /* * Tags */
  .tag {
    font-size: var(--text-sm);
  }

  /* * Footer */
  .footer {
    gap: var(--space-20);
  }

  .footer__footnotes {
    flex-direction: row;
  }
}

@media screen and (min-width: 768px) {
  #header-clock {
    display: inline;
  }

  /* * Sections */
  .section__heading {
    font-size: var(--text-2xl);
  }
}

@media screen and (min-width: 1200px) {
  .footer {
    gap: var(--space-28);
  }
}

/* * Magnetic button (footer CTA) */
.magnetic {
  width: fit-content;
  border-radius: 50%;
}

.magnetic__body {
  cursor: pointer;
  transform: translate(var(--x, 0px), var(--y, 0px)) scale(1);
  transition:
    transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
    background-color 0.4s ease,
    color 0.4s ease;
  will-change: transform;
}

.magnetic__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.magnetic.is-active .magnetic__body {
  transform: translate(var(--x, 0px), var(--y, 0px)) scale(1.1);
  transition:
    transform 0.3s ease-out,
    background-color 0.4s ease,
    color 0.4s ease;
}
