@import url("./global.built.css");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  background: #FFFFFF;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }

  50% {
    transform: none;
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }

}

.body-background-clouds {
  width: 100%;
  height: 256px;
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1;
  image-rendering: pixelated;
  overflow: hidden;
}

@keyframes moveCloud {
  0% {
    translate: var(--xpos) var(--ypos);
  }

  100% {
    translate: 110vw var(--ypos);
  }
}

.cloud1,
.cloud2,
.cloud3,
.cloud4,
.cloud5 {
  animation-name: moveCloud;
  animation-duration: var(--duration);
  animation-timing-function: var(--ease-linear);
  animation-iteration-count: infinite;
  animation-delay: var(--animation-delay);
  scale: var(--x-scale) var(--y-scale);
}

.body-background-texture {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 999999999;
  opacity: 1;
  background: url(../assets/global/noise-texture.png);
  background-repeat: repeat;
  background-position: center;
  background-size: calc(512px / 2);
  pointer-events: none;
  mix-blend-mode: overlay;
}

@keyframes page-load {

  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }

}

main {
  position: relative;
  z-index: 2;
  margin: auto;
  animation: page-load 500ms var(--ease-linear);
}

.header-section {
  position: relative;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-section-content {
  position: relative;
  z-index: 2;
  margin: auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 1440px;
  padding: 0 24px;
}

.ruler-double {
  width: 100%;
  height: 7px;
  border-top: 2px solid #121212;
  border-right: none;
  border-bottom: 1px solid #121212;
  border-left: none;
}

.header-logo {
  min-width: max-content;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-family-display);
  font-size: var(--font-size-medium);
  font-weight: var(--font-weight-regular);
  line-height: var(--font-leading-medium);
  letter-spacing: var(--font-tracking-tighter);
  color: #121212;
  text-decoration: underline dashed;
  text-decoration-thickness: calc(0.125em / 2);
  text-underline-offset: calc(0.125em / 2);
}

.header-logo:hover {
  text-decoration: underline;
  text-decoration-thickness: calc(0.125em / 2);
  text-underline-offset: calc(0.125em / 2);
}

.avatar {
  width: 32px;
  height: auto;
  background-position: top;
  background-size: cover;
  background-repeat: no-repeat;
  background-image: url(../assets/global/me.webp);
  outline: none;
  border: none;
  overflow: hidden;
  border-radius: 999px;
  aspect-ratio: 4/4;
  box-shadow: inset 0 0 0 1px #121212;
}


/* ---------- */

.intro-section {
  padding: 64px 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-section-content {
  position: relative;
  z-index: 2;
  margin: auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  max-width: 1440px;
  padding: 0 24px;
}

.intro {
  max-width: var(--max-width-outset);
  font-family: var(--font-family-display);
  font-size: var(--font-size-xxxlarge);
  font-weight: var(--font-weight-regular);
  line-height: var(--font-leading-xxxlarge);
  letter-spacing: var(--font-tracking-tightest);
  text-align: center;
  color: #121212;
  transition: text-decoration 500ms var(--ease-out-cubic), color 500ms var(--ease-out-cubic);
}

.intro-link {
  color: inherit;
  text-decoration: underline dashed;
  text-decoration-thickness: calc(0.125em / 2);
  text-underline-offset: calc(0.125em / 2);
  transition: text-decoration 500ms var(--ease-out-cubic), color 500ms var(--ease-out-cubic);
}

.intro-link:hover {
  text-decoration: underline;
  text-decoration-thickness: calc(0.125em / 2);
  text-underline-offset: calc(0.125em / 2);
}



/* ---------- */

.work-section {
  padding: 64px 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-section-content {
  position: relative;
  z-index: 2;
  margin: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 1440px;
  padding: 0 24px;
}

.projects {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 16px;
}

.project {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  gap: 16px;
  transition: transform 500ms var(--ease-out-cubic);
}

.project:hover .project-title {
  text-decoration: underline;
  text-decoration-thickness: calc(0.125em / 2);
  text-underline-offset: calc(0.125em / 2);
}

.project-media {
  position: relative;
  width: 100%;
  height: auto;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  outline: none;
  border: none;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.10);
  aspect-ratio: 4/3;
  transition: transform 500ms var(--ease-out-cubic), box-shadow 250ms var(--ease-out-cubic);
}

.project-media-gopi-ghee {
  background-position: top;
  background-image: url(../assets/global/increasedordervolume-gopighee-animall.png);
}

.project-media-groto {
  background-position: center;
  background-image: url(../assets/global/groto-cover.png);
}

.project-media-netflix {
  background-position: center;
  background-image: url(../assets/global/netflix-cover.png);
}

.project-media-worksafe-manager {
  background-position: bottom;
  background-image: url(../assets/global/worksafemanager-cover.png);
}

.project-media-morphix-studio {
  background-position: center;
  background-image: url(../assets/global/shipped-work/morphix-studio-cover.webp);
}

.project-media-morphix-design-system {
  background-position: center;
  background-image: url(../assets/global/shipped-work/morphixdesignsystem-cover.png);
}

.project-media-invoke {
  background-position: bottom;
  background-image: url(../assets/global/shipped-work/invoke-cover.webp);
}

.project-information {
  display: flex;
  flex-direction: column;
  padding: 0;
  gap: 8px;
}

.project-title {
  width: 100%;
  font-family: var(--font-family-display);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-regular);
  line-height: var(--font-leading-small);
  letter-spacing: var(--font-tracking-tight);
  color: #121212;
  text-decoration: underline dashed;
  text-decoration-thickness: calc(0.125em / 2);
  text-underline-offset: calc(0.125em / 2);
  transition: text-decoration 500ms var(--ease-out-cubic);
}

.project-tag {
  width: 100%;
  font-family: var(--font-family-mono);
  font-size: var(--font-size-xxxsmall);
  font-weight: var(--font-weight-regular);
  line-height: var(--font-leading-xxxsmall);
  letter-spacing: var(--font-tracking-wide);
  text-transform: uppercase;
  color: #121212;
}


/* ---------- */

.outro-section {
  padding: 64px 0 128px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.outro-section-content {
  position: relative;
  z-index: 2;
  margin: auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  max-width: 1440px;
  padding: 0 24px;
}

.outro {
  max-width: var(--max-width-outset);
  font-family: var(--font-family-display);
  font-size: var(--font-size-xxxlarge);
  font-weight: var(--font-weight-regular);
  line-height: var(--font-leading-xxxlarge);
  letter-spacing: var(--font-tracking-tightest);
  text-align: center;
  color: #121212;
  transition: text-decoration 500ms var(--ease-out-cubic), color 500ms var(--ease-out-cubic);
}

.outro-link {
  color: inherit;
  text-decoration: underline dashed;
  text-decoration-thickness: calc(0.125em / 2);
  text-underline-offset: calc(0.125em / 2);
  transition: text-decoration 500ms var(--ease-out-cubic), color 500ms var(--ease-out-cubic);
}

.outro-link:hover {
  text-decoration: underline;
  text-decoration-thickness: calc(0.125em / 2);
  text-underline-offset: calc(0.125em / 2);
}


@media (max-width: 1024px) {

  .header-section-content {
    padding: 0 40px;
  }


  /* ---------- */

  .intro-section-content {
    padding: 0 40px;
  }

  .intro {
    font-size: var(--font-size-xxlarge);
    line-height: var(--font-leading-xxlarge);
    letter-spacing: var(--font-tracking-tightest);
  }


  /* ---------- */

  .work-section-content {
    padding: 0 40px;
  }

  .projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }


  /* ---------- */

  .outro-section-content {
    padding: 0 40px;
  }

  .outro {
    font-size: var(--font-size-xxxlarge);
    line-height: var(--font-leading-xxxlarge);
    letter-spacing: var(--font-tracking-tightest);
  }

}

@media (max-width: 768px) {

  .header-section-content {
    padding: 0 24px;
  }


  /* ---------- */

  .intro-section-content {
    padding: 0 24px;
  }

  .intro {
    font-size: var(--font-size-xlarge);
    line-height: var(--font-leading-xlarge);
    letter-spacing: var(--font-tracking-tighter);
  }


  /* ---------- */

  .work-section-content {
    padding: 0 24px;
  }

  .projects {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .project-media {
    aspect-ratio: 4/4;
  }


  /* ---------- */

  .outro-section-content {
    flex-direction: column;
    padding: 0 24px;
  }

  .outro {
    font-size: var(--font-size-xlarge);
    line-height: var(--font-leading-xlarge);
    letter-spacing: var(--font-tracking-tighter);
  }

}