@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&family=Rajdhani:wght@500;600;700&display=swap");

body[data-page="contact"] {
  background: #000;
  color: #f1f4f8;
}

.contact-main {
  position: relative;
  isolation: isolate;
  gap: 28vh;
  padding-top: 18vh;
  padding-bottom: 26vh;
  perspective: 1200px;
}

.contact-main::before,
.contact-main::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  height: 22vh;
  pointer-events: none;
  z-index: 2;
}

.contact-main::before {
  top: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0));
}

.contact-main::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0));
}

.credit-block {
  min-height: 84vh;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: var(--roll-opacity, 1);
  transform: translate3d(0, var(--roll-shift, 0px), 0) rotateX(var(--roll-tilt, 0deg));
  filter: blur(var(--roll-blur, 0px));
  transform-origin: center bottom;
  will-change: transform, opacity, filter;
  transition: transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 620ms ease, filter 620ms ease;
}

.credit-block.compact {
  min-height: 74vh;
}

.contact-main .story-section {
  scroll-snap-align: none;
  scroll-snap-stop: normal;
}

.credit-content {
  width: min(900px, 92vw);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  text-align: center;
}

.team-roll-block {
  min-height: 420vh;
  align-items: flex-start;
}

.team-roll-content {
  position: sticky;
  top: clamp(14vh, 18vh, 22vh);
  padding-top: 6vh;
}

.credit-kicker {
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.78rem;
  color: rgba(255, 45, 85, 0.92);
}

.credit-title {
  font-family: "Orbitron", "Segoe UI", sans-serif;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.04;
  color: #f7fafc;
}

.credit-copy {
  margin: 0 auto;
  max-width: 58ch;
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: clamp(1.05rem, 1.9vw, 1.28rem);
  line-height: 1.72;
  color: rgba(214, 222, 234, 0.9);
}

.credit-list {
  list-style: none;
  margin: 1.6rem auto 0;
  padding: 0;
  width: min(700px, 90vw);
  position: relative;
  min-height: clamp(190px, 24vh, 280px);
}

.credit-list li {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  display: grid;
  gap: 0.18rem;
  justify-items: center;
  transform: translate3d(-50%, calc(-50% + 26px), 0);
  opacity: 0;
  filter: blur(10px);
  transition: opacity 560ms ease, transform 560ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 560ms ease;
}

.credit-list li.is-visible {
  opacity: 1;
  transform: translate3d(-50%, -50%, 0);
  filter: blur(0);
}

.credit-name {
  font-family: "Orbitron", "Segoe UI", sans-serif;
  font-size: clamp(1.2rem, 2.3vw, 1.9rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f2f6fb;
}

.credit-role {
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 45, 85, 0.86);
}

.strategy-content {
  gap: 1.2rem;
}

.strategy-title {
  margin-bottom: 0.4rem;
}

.contact-form {
  width: min(680px, 92vw);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  text-align: left;
  font-family: "Rajdhani", "Segoe UI", sans-serif;
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(215, 223, 235, 0.96);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.78rem 0;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #ffffff;
  font: inherit;
  outline: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(196, 205, 218, 0.72);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: rgba(255, 45, 85, 0.92);
  box-shadow: 0 1px 0 rgba(255, 45, 85, 0.6);
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-form .button.primary {
  justify-self: center;
  min-width: 260px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-family: "Orbitron", "Segoe UI", sans-serif;
}

.contact-status {
  text-align: center;
  color: rgba(219, 227, 239, 0.94);
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  font-weight: 600;
}

@media (max-width: 900px) {
  .contact-main {
    gap: 18vh;
    padding-top: 12vh;
    padding-bottom: 18vh;
  }

  .credit-block {
    min-height: 80vh;
  }

  .team-roll-block {
    min-height: 360vh;
  }

  .team-roll-content {
    top: clamp(11vh, 15vh, 18vh);
    padding-top: 4vh;
  }

  .contact-main::before,
  .contact-main::after {
    height: 18vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .credit-list li,
  .credit-list li.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}
