@font-face {
  font-family: "Pro Bold";
  src: url("fonts/Pro Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #000;
  background: #fff;
  overflow: hidden;
}

.intro-curtain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}

.intro-curtain__panel {
  position: absolute;
  left: 0;
  right: 0;
  height: 50.5%;
  background: #000;
}

.intro-curtain__panel--left {
  top: 0;
  animation: curtain-top 1.1s cubic-bezier(0.65, 0, 0.35, 1) 0.15s forwards;
}

.intro-curtain__panel--right {
  bottom: 0;
  animation: curtain-bottom 1.1s cubic-bezier(0.65, 0, 0.35, 1) 0.15s forwards;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.08) 0%,
      rgba(255, 255, 255, 0) 45%,
      rgba(255, 255, 255, 0.12) 100%
    ),
    url("img/bg-studio.png") center / cover no-repeat;
}

.hero__content {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% - 20vh);
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  color: #000;
}

.hero__title-art {
  width: min(90vw, 1600px);
  display: block;
  opacity: 0;
  transform: scale(0.9);
  animation: reveal-scale 0.55s ease-out 0.45s forwards;
}

.hero__text-image {
  width: min(90vw, 1600px);
  max-width: 100%;
  height: auto;
  display: block;
}

.hero__subtitle {
  --subtitle-gap: 0.6rem;
  padding-top: var(--subtitle-gap);
  font-family: "Pro Bold", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(0.85rem, 3.2vw, 4rem);
  text-transform: lowercase;
  color: #000;
  opacity: 0;
  transform: translateY(14px);
  animation: reveal-up 0.45s ease-out 0.6s forwards;
}

.contact-btn-wrap {
  --btn-speed: 4s;
  --btn-border: 2px;
  position: relative;
  display: inline-flex;
  margin-top: 2.5rem;
  border-radius: 999px;
  isolation: isolate;
  opacity: 0;
  transform: translateY(18px) scale(0.95);
  animation: reveal-up-scale 0.45s ease-out 0.74s forwards;
}

.contact-btn-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: var(--btn-border);
  pointer-events: none;
  background: linear-gradient(
    90deg,
    #ff2d6a,
    #ff7a18,
    #ffe600,
    #2dff88,
    #18cfff,
    #8b5cf6,
    #ff2d6a
  );
  background-size: 300% 100%;
  background-position: 0% 50%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: rainbow-shift var(--btn-speed) linear infinite;
  z-index: 1;
}

.contact-btn-wrap::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: calc(var(--btn-border) + 1px);
  pointer-events: none;
  background: linear-gradient(
    90deg,
    #ff2d6a,
    #ff7a18,
    #ffe600,
    #2dff88,
    #18cfff,
    #8b5cf6,
    #ff2d6a
  );
  background-size: 300% 100%;
  background-position: 0% 50%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  filter: blur(8px);
  opacity: 0.75;
  animation: rainbow-shift var(--btn-speed) linear infinite;
  z-index: 0;
}

.contact-btn {
  position: relative;
  z-index: 2;
  display: block;
  padding: 0.85rem 2.25rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s ease;
}

.contact-btn:hover {
  background: rgba(0, 0, 0, 0.5);
}

.contact-btn.is-email {
  letter-spacing: 0.03em;
  text-transform: none;
}

@keyframes rainbow-shift {
  to {
    background-position: 300% 50%;
  }
}

@keyframes curtain-top {
  to {
    transform: translateY(-101%);
  }
}

@keyframes curtain-bottom {
  to {
    transform: translateY(101%);
  }
}

@keyframes reveal-scale {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes reveal-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reveal-up-scale {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 1.25rem 2rem;
}

.footer__copy {
  text-align: center;
  font-size: 0.8125rem;
  color: rgb(98, 98, 98);
}

.corner-x {
  position: fixed;
  right: clamp(6rem, 6vw, 6rem);
  bottom: 0;
  width: clamp(1.1rem, 20vw, 20rem);
  height: auto;
  z-index: 12;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 640px) {
  .hero__content {
    top: calc(50% - 12vh);
  }
}

@media (max-width: 900px), (max-aspect-ratio: 4/5) {
  .hero__title-art,
  .hero__text-image {
    width: min(90vw, 460px);
  }

  .corner-x {
    right: 1rem;
    bottom: 4.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-curtain__panel--left,
  .intro-curtain__panel--right {
    animation-duration: 0.01ms;
    animation-delay: 0ms;
  }

  .hero__title-art,
  .hero__subtitle,
  .contact-btn-wrap {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
