@font-face {
  font-family: 'GR NORCH';
  font-style: normal;
  font-weight: 400;
  src: local('GR NORCH'), url('../fonts/GR NORCH.woff') format('woff');
}

@font-face {
  font-family: 'Bigger';
  src: local('Bigger'), url('../fonts/BiggerDisplay.otf');
}

@font-face {
  font-family: 'Akkurat Mono';
  src: local('Akkurat Mono'), url('../fonts/Akkurat.ttf') format('truetype');
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


html{

}

body {
  background-color: var(--theme--color);
  overflow-x: hidden;
  --theme--color: #f40c3f;
}

body::-webkit-scrollbar {
  display: none;
}

a{
  text-decoration:  none;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.outro {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #f40c3f;
  color: #000;

  p{
    font-size: 10px;

    line-height: 1.5;
    opacity: 0.5;
    font-weight: bolder;
  }

  p#logo{
    opacity: 1;
    font-size: 25px;
    color: #fff;
    font-family: 'GR NORCH', sans-serif;
    font-weight: lighter;
  }

  nav{
    position: absolute;
    top: 0;
    width: 100vw;
    padding: 1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;

  }

  .nav-links{
    display: flex;
    gap: 1em;
  }

  footer{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
  }


}
h2{
  font-family: 'GR NORCH', sans-serif;
  font-size: 4vh;
  font-weight: 400;

}
.outro h1 {
  font-family: 'GR NORCH', sans-serif;
  font-size: 6vw;
  font-weight: normal;
}

.outro h2 {
  color: #fff;
  font-size: 4vw;
  margin-bottom: 2em;
}

.top{
  display: flex;
  justify-content: space-between;
  span{
    font-family: 'GR NORCH', sans-serif;
    font-size: 8vh;
    font-weight: lighter;

  }
  .s{
    color: #fff;
  }
  padding: 0 1em;
}

.why{
  display: flex;
  align-items: end;
  padding-right: 1em;
  a{
    text-decoration: none;

    color: #000;
    font-size: 1em;
  }
}



.work {
  background-color: #000;
  overflow: hidden;
}

canvas {
  position: absolute;
  top: 0;
  left: 0;
}

#grid-canvas {
  z-index: 0;
}

#letters-canvas {
  z-index: 1;
}

.text-container {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
  perspective: 2500px;
  perspective-origin: center;
}

.letter {
  position: absolute;
  font-family: 'Bigger', sans-serif;
  font-size: 14rem;
  font-weight: bold;
  color: #f40c3f;
  z-index: 2;
  transform-origin: center;
  transform-style: preserve-3d;
  will-change: transform;
}

.cards {
  position: relative;
  width: 500vw;
  height: 100vh;
  padding-left: 100vw;
  overflow: hidden;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 10;
}

.card {
  width: 40em;
  height: 30em;
  padding: 8px;
  background-color: #000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  position: relative;
  transition: 300ms ease-in-out;
}

.go{
  position: absolute;
  top: calc(50% - 40px);
  left: calc(50% - 100px);
  width: 200px;
  height: 80px;
  color: #000;
  text-align: center;
  font-weight: bold;
  font-size: 40px;
  border-radius: 40px;
  border: 3px solid #000;
  visibility: hidden;
  transition: 300ms ease-in-out;
}

.go:hover{
  background-color: #000;
  color: #fff;
}

.card:hover .go{
  visibility: visible;
}

.card:before:hover{
  background: #000;
}

.card-img {
  flex: 1;
  overflow: hidden;
}

.card-copy {
  height: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;

  font-family: 'Akkurat Mono', sans-serif;
  font-size: 12px;
  color: #f40c3f;
}


nav{
  width: 100vw;
  padding: 2em;
  display: flex;
}

.nav-items{
  flex: 1;
}

.nav-items:nth-child(2){
  display: flex;
  justify-content: center;
  gap: 2em;
}

.nav-items:nth-child(3){
  display: flex;
  justify-content: flex-end;
}

.filters{
  top: 10%;
  right: 0;
  margin: 1em;
  padding: 1em;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5em;
}

button{
  width: max-content;
  border: none;
  outline: none;
  padding: 0.5em 1em;
  font-size: 12px;

  cursor: pointer;
}

button.active{
  background-color: #000;
  color: #fff;
}

.items {
  position: absolute;
  top: 72%;
  left: 0;
  transform: translateY(-50%);
  padding: 0.5em;
  display: flex;
  gap: 0.5em;
}

.item {
  width: 250px;
  padding-top: 25px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background-color: #000;
  overflow: hidden;
  will-change: width;
}

.item img{
  object-fit: cover;
  width: 250px;
}

.btn-box{
  position: absolute;
  left: calc(50% - 10em);
  top: 33%;
}
.btn {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.btn span {
  position: absolute;
  text-decoration: none;

  color: #000;
  font-size: 2em;
  transition: 0.5s;
  letter-spacing: 0.2em;
  background-color: #fff;
  padding: 15px 25px;
  border-radius: 20px;
}

.btn:hover span {
  color: #fff;
  background-color: transparent;
  letter-spacing: 0.3em;
}

.box {
  position: relative;
  width: 200px;
  height: 60px;
  background-color: #f00;
  border-radius: 10px;
  transition: 0.5s;
  filter: url(#gooey);
}

.particle {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: #f00;
  border-radius: 50%;
  pointer-events: none;
  animation: animate 2s linear forwards;
}

@keyframes animate {
  0% {
    transform: translate(0,0) scale(1);
  }
  100% {
    transform: translate(var(--dx), var(--dy)) scale(0.5);
  }
}

.btn2 {
  width: 10vh;

  font-weight: bolder;
  background: transparent;
  border: none;
  padding: 1em 1em;
  color: #fff;

  position: relative;
  transition: 0.5s ease;
  cursor: pointer;
}

.btn2::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background-color: #fff;
  transition: 0.5s ease;
  z-index: 99;
}

.btn2:hover {
  color: #1e1e2b;
  transition-delay: 0.5s;
}

.btn2:hover::before {
  width: 10vh !important;
}

.btn2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 0;
  width: 100%;
  background-color: #fff;
  transition: 0.4s ease;
  z-index: -1;
}

.btn2:hover::after {
  height: 100%;
  transition-delay: 0.4s;
  color: #fff;
}

/* 模态窗口样式 */
.dialog {
  position: fixed;
  display: none;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 9999;
}

.dialog.active {
  display: flex;
}

.dialog::before {
  width: 1000vw;
  height: 1000vh;
  left: -500vw;
  top: -500vh;
  content: '';
  position: absolute;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  z-index: -1;
}

.dialog img {
  width: 28%;
  height: auto;
  margin-bottom: 100px;
  pointer-events: none; /* 防止图片干扰点击事件 */
}

