@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");
* {
  text-rendering: geometricPrecision;
}

.webgl {
  position: fixed;
  inset: 0;
  z-index: -1;
}

.page {
  width: 100%;
  height: 100lvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  position: relative;
  width: 720px;
  height: 565px;
  border-radius: 36px;
  border: 2px solid transparent;
  overflow: visible;
  transform-style: preserve-3d;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.12)) border-box;
  /* border gradient */
  background-clip: padding-box, border-box;
  background-origin: padding-box, border-box;
}
.card:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 36px;
  background: url("https://assets.codepen.io/3165458/pattern.png");
  opacity: .95;
}
.card:after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: 36px;
  background: linear-gradient(to top, rgba(255,255,255,1) 0%, rgba(255,255,255,.96) 34%, rgba(255,255,255,0) 100%);
}

.card .quest {
  position: absolute;
  z-index: 3;
  top: -18%;
  left: 50%;
  transform: translateX(-50%);
  perspective: 1000px;
  transform-style: preserve-3d;
}

.quest img {
  position: relative;
  display: block;
  width: 610px;
  aspect-ratio: 552/468;
  transform: translateZ(50px);
}

.card article {
  position: absolute;
  z-index: 3;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px;
  text-align: center;
  perspective: 1000px;
  transform-style: preserve-3d;
}
.card article h2 {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  font-size: 48px;
  line-height: 1.2;
  margin: 0;
  color: #1c2b33;
  transform: translateZ(50px);
}
.card article p {
  margin: 0;
  color: #1c2b33;
  max-width: 70%;
  margin: 0 auto;
  transform: translateZ(50px);
}
.card article p,
.card article a {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 1.44;
}
.card article a {
  margin-top: 12px;
  padding: 18px 24px;
  background: #0081fa;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  transform: translateZ(50px);
}

html, body {
  margin: 0;
  min-height: 100%;
  overflow: hidden;
  background: transparent;
}
.webgl {
  z-index: 0;
  opacity: var(--hover-fluid-opacity, 1);
  filter: saturate(var(--hover-fluid-saturation, 1.35)) brightness(var(--hover-fluid-brightness, 1.2));
  transform: scale(var(--hover-fluid-scale, 1.06));
  transform-origin: center;
}
.page {
  position: relative;
  z-index: 1;
}
@media (max-width: 760px) {
  .card {
    width: min(684px, calc(100vw - 36px));
    height: min(550px, calc((100vw - 36px) * .804));
    min-height: 430px;
  }
  .quest img { width: min(552px, 88vw); }
  .card .quest { top: -13%; }
  .card article { padding: 28px 22px; }
  .card article h2 { font-size: clamp(2rem, 8vw, 3rem); }
  .card article p { max-width: 92%; }
}
