* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'EB Garamond', serif;
  background: black;
}

/* Main container */
.container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  cursor: pointer;
}

/* Background video */
.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
}

/* Overlay layer */
.overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.9s ease;
}

.container:hover .overlay {
  background: rgba(0,0,0,0.45);
}

.container.form-active .overlay {
  background: rgba(0,0,0,0.6);
}

/* Intro text */
.intro {
  position: absolute;
  color: white;
  font-size: 2.2rem;
  letter-spacing: 0.03em;
  text-align: center;
  font-style: italic;

  /* precise vertical placement */
  transform: translateY(130px);

  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.container:hover .intro {
  transform: translateY(130px) scale(1.06);
}

.container.form-active .intro {
  opacity: 0;
  transform: translateY(130px) scale(1.1);
  pointer-events: none;
  transition-delay: 0.05s;
}

/* Contact form */
.contact-form {
  opacity: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  width: 90%;
  max-width: 420px;

  transition: opacity 0.9s ease;
  transition-delay: 0s;
}

.container.form-active .contact-form {
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0.45s;
}

/* Form fields */
.contact-form input,
.contact-form textarea {
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(255,255,255,0.6);
  color: white;

  font-size: 1.05rem;
  font-weight: 500;
  font-style: normal;

  padding: 0.8rem 0;
  font-family: 'EB Garamond', serif;
}

.contact-form textarea {
  min-height: 110px;
  resize: none;
}

/* Placeholder text */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,0.5);
  font-weight: 400;
}

/* Submit button */
.contact-form button {
  background: none;
  border: 1.5px solid rgba(255,255,255,0.8);
  color: white;

  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.18em;

  padding: 0.9rem;
  cursor: pointer;
  font-family: 'EB Garamond', serif;

  transition: background 0.4s ease;
}

.contact-form button:hover {
  background: rgba(255,255,255,0.12);
}
