html, body {
  margin: 0;
  padding: 0;
  background: white;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  color: black;
}

a,
a:visited,
a:hover,
a:active {
  color: inherit;
}

.project-link {
  color: inherit;
  text-decoration: underline;
}

.project-link:hover {
  opacity: 0.5;
}

header {
  text-align: center;
  padding: 30px 20px 10px 20px;
}

.project {
  margin-bottom: 100px;
}

.project > h2 {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  margin: 0;
  padding: 0 70px;
  font-size: 48px;
  font-weight: 900;
  text-align: right;
  color: black;
  background: transparent;
}

.project > h2::before {
  content: "";
  flex: 1;
  max-width: 420px;
  height: 34px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 34'><path d='M6 17 C 22 4, 48 4, 64 17 S 106 30, 122 17 S 164 4, 180 17 S 222 30, 238 17 S 280 4, 296 17 S 338 30, 354 17 S 396 4, 412 17' fill='none' stroke='black' stroke-width='8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

.project-layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 80vh;
  padding-top: 30px;
}

.project-text {
  width: 30%;
  padding: 60px 40px 0 90px;
  box-sizing: border-box;
}

.project-text p {
  margin: 0;
  font-size: 18px;
  line-height: 1.65;
}

.stack,
.screen {
  width: 70%;
  height: 75vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  box-sizing: border-box;
}

.stack {
  cursor: ew-resize;
  overflow: hidden;
}

.stack img,
.stack video {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 65vh;
  max-width: calc(100% - 80px);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease, filter 0.5s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.logo {
  display: flex;
  justify-content: center;
  margin: 0px 0px 20px 0px;
}

.logo img {
  width: 90px; 
  height: auto;
  opacity: 0.5;
}

.stack img.top {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(-1deg) scale(1);
  z-index: 5;
}

.stack img.second {
  opacity: 0.72;
  transform: translate(-48%, -52%) rotate(2.2deg) scale(0.96);
  z-index: 4;
}

.stack img.third {
  opacity: 0.42;
  transform: translate(-46%, -54%) rotate(-2deg) scale(0.92);
  z-index: 3;
}

.stack img.fourth {
  opacity: 0.24;
  transform: translate(-44%, -56%) rotate(1.6deg) scale(0.88);
  z-index: 2;
}

.stack img.hidden {
  opacity: 0;
  transform: translate(-42%, -58%) scale(0.85);
  pointer-events: none;
  z-index: 1;
}

.stack video.top {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
  z-index: 5;
}

.stack video.second {
  opacity: 0.72;
  transform: translate(-48%, -52%) rotate(0deg) scale(0.96);
  z-index: 4;
}

.stack video.third {
  opacity: 0.42;
  transform: translate(-46%, -54%) rotate(0deg) scale(0.92);
  z-index: 3;
}

.stack video.fourth {
  opacity: 0.24;
  transform: translate(-44%, -56%) rotate(0deg) scale(0.88);
  z-index: 2;
}

.stack video.hidden {
  opacity: 0;
  transform: translate(-42%, -58%) rotate(0deg) scale(0.85);
  pointer-events: none;
  z-index: 1;
}

.screen iframe {
  width: 90%;
  height: 65vh;
  border: none; 
  background: white;
}

.site-screen {
  position: relative;
}

.site-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  height: 65vh;
  transform: translate(-50%, -50%);
  background: black;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  cursor: pointer;
}

.site-start {
  font-size: 48px;
  font-weight: 900;
  color: white;
  text-align: center;
}

.site-overlay:hover .site-start {
  opacity: 0.6;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background: #FFD84D;
}

@media screen and (max-width: 900px) {
  .project > h2 {
    font-size: 34px;
    padding: 0 24px;
    gap: 14px;
  }

  .project > h2::before {
    max-width: 120px;
    height: 16px;
  }

  .project-layout {
    flex-direction: column;
  }

  .project-text {
    width: 100%;
    padding: 30px;
  }

  .stack,
  .screen {
    width: 100%;
    height: 65vh;
  }

  .stack img,
  .stack video,
  .screen iframe,
  .site-overlay {
    height: 55vh;
    max-width: calc(100% - 30px);
  }

  .screen iframe,
  .site-overlay {
    width: calc(100% - 30px);
  }

  .site-start {
    font-size: 36px;
  }
}