@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600;700&display=swap');

html {
  font-family: 'Inter', sans-serif;
  background: #f0f7ff;
  color: #000000d1;
  scrollbar-color: #dadce0 transparent;
  scrollbar-width: thin;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
}

::-webkit-scrollbar {
  width: 16px;
}

::-webkit-scrollbar-thumb {
  background: #dadce0;
  background-clip: padding-box;
  border: 4px solid transparent;
  border-radius: 8px;
  box-shadow: none;
  min-height: 50px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #bfc3ca;
}

::-webkit-scrollbar-track {
  background: none;
  border: none;
}

.left {
  width: calc(50vw - 50px);
  position: fixed;
  left: 20px;
  top: 20px;
  height: calc(100vh - 20px);
  font-weight: 400;
  display: grid;
  place-content: center;
}

h1 {
  margin: 0;
  font-size: 102px;
  font-weight: 400;
}

h1 span {
  position: relative;
  display: inline-block;
  animation: .7s rotate;
  top: 0;
}

h3 {
  font-size: 27px;
  font-weight: 400;
  color: #c2c2c2;
  text-align: center;
}

h3.subhead {
  color: #000000d1;
}

a {
  color: #7ab6ff;
  text-decoration: none;
  display: inline-block;
}

a:hover span {
  position: relative;
  animation: .7s rotate-small;
}

.works {
  position: absolute;
  right: 20px;
  top: 20px;
  width: calc(50vw - 20px);
  display: flex;
  flex-flow: wrap;
  justify-content: center;
}

.works.float {
  user-select: text;
}

h2 {
  font-size: 55px;
  font-weight: 400;
  position: sticky;
  background: #f0f7ff;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  top: 0;
  padding: 10px 10px; 
  padding-top: 0;
  width: 50vw;
  margin-left: -20px;
  z-index: 1;
  display: flex;
  justify-content: center;
}

h2::after {
  content: '';
  border-radius: 5px;
  width: 100px;
  height: 4px;
  background: #000000d1;
  display: block;
  position: absolute;
  bottom: 10px;
  margin-left: -40px;
  display: block;
}

.work {
  padding: 20px;
  border-radius: 5px;
  background: #f0f7ff;
  box-shadow: -8px -9px 8px 0px white, 5px 7px 8px 0px #7272720f;
  margin: 16px;
  font-size: 24px;
  display: block;
  color: currentColor;
  width: 245px;
  height: max-content;
}

.work img {
  width: 100%;
  height: 137px;
  border-radius: 5px;
  object-fit: cover;
  background: #ffffff96;
}

.work img.open {
  width: 100vw !important;
  height: 100vh !important;
  position: fixed;
  border-radius: 0;
  left: 0 !important;
  top: 0 !important;
  cursor: default;
  z-index: 1;
  transition: .5s cubic-bezier(.1,.82,.25,1);
}

.work svg {
  color: #828689;
  flex-shrink: 0;
}

.wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-radius: 5px;
  background: #f0f7ff;
  box-shadow: -8px -9px 8px 0px white, 5px 7px 8px 0px #7272720f;
  margin: 15px 0;
  margin-bottom: 0;
  font-size: 20px;
  transition: .2s ease-in-out;
}

.work:not(.pre):hover .wrapper {
  box-shadow: 0 0 0 rgba(55, 84, 170, 0.15), 0 0 0 white, inset 0 0 0 rgba(255, 255, 255, 0.2), inset -1.5px 2px 1.5px #0000000f, inset 1.5px -2px 1.5px #ffffff99;
}

.work.pre {
  box-shadow: none;
}

.work.pre img {
  filter: blur(10px);
}

.work.pre .wrapper {
  box-shadow: none;
  filter: blur(10px);
}

.work.pre::after {
  content: 'Coming soon';
  position: absolute;
  margin-top: -160px;
  margin-left: 40px;
  text-align: center;
  color: white;
}

hr {
  width: 50%;
  border: 0;
  border-top: 1px solid #656565;
  margin-bottom: 8vh;
  margin-top: 8vh;
}

h4 {
  font-weight: 600;
  letter-spacing: -0.2;
}

@media (max-width: 481px)  {
  .left {
    height: auto;
    width: auto;
    left: auto;
    position: relative;
  }
  .left.head {
    position: fixed;
    width: 100%;
  }
  h1 {
    text-align: center;
    margin: auto;
    font-size: 85px;
  }
  h3.subhead {
    font-size: 21px;
  }
  .works {
    position: relative;
    top: auto;
    right: auto;
    width: auto;
  }
  .works.float {
    background: linear-gradient(180deg, transparent 0px, #f0f7ff 45px);
  }
  h2 {
    width: 100vw;
    margin-left: 0;
    background: linear-gradient(0deg, transparent 0, #f0f7ff 10px);
    padding-bottom: 20px;
    margin-bottom: 0;
    margin-top: 45px;
  }
  h2::after {
    margin-left: 0;
    bottom: 20px;
  }
  .desktop {
    display: none !important;
  }
}

@supports (backdrop-filter: none) {
  h2 {
    background: #f0f7ffd6;
  }
}
@supports (-webkit-backdrop-filter: none) {
  h2 {
    background: #f0f7ffd6;
  }
}

@keyframes rotate {
  from {
    clip-path: inset(0 0 0 0);
    position: relative;
    top: 0;
  }
  49.99% {
    clip-path: inset(100% 0 0 0);
    position: relative;
    top: -50px;
  }
  50% {
    clip-path: inset(0 0 100% 0);
    position: relative;
    top: 50px;
  }
  to {
    clip-path: inset(0 0 0 0);
    position: relative;
    top: 0;
  }
}

@keyframes rotate-small {
  from {
    clip-path: inset(0 0 0 0);
    position: relative;
    top: 0;
  }
  49.99% {
    clip-path: inset(100% 0 0 0);
    position: relative;
    top: -20px;
  }
  50% {
    clip-path: inset(0 0 100% 0);
    position: relative;
    top: 20px;
  }
  to {
    clip-path: inset(0 0 0 0);
    position: relative;
    top: 0;
  }
}
