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

html, body { height: 100%; background: #0a0a0a; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; overflow: hidden; }

.split {
  display: flex;
  width: 100vw;
  height: 100vh;
}

.side {
  flex: 1;
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
  cursor: default;
  transition: opacity 0.5s ease, filter 0.5s ease;
}

.side video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
  background: #000;
}

.caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: clamp(1.6rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.9), 0 0 60px rgba(0, 0, 0, 0.6);
  opacity: 0.7;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease, letter-spacing 0.4s ease;
  max-width: 85%;
}

.caption-long {
  font-size: clamp(1rem, 2.2vw, 1.8rem);
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-transform: none;
  max-width: 80%;
}

.split:has(#left:hover) #right,
.split:has(#right:hover) #left {
  opacity: 0.3;
  filter: grayscale(70%) blur(1px);
}

.split:has(.side:hover) .side:hover {
  cursor: pointer;
}

.split:has(.side:hover) .side:hover video {
  transform: scale(1.04);
}

.split:has(.side:hover) .side:hover .caption {
  opacity: 1;
  letter-spacing: 0.08em;
  transform: translate(-50%, -50%) scale(1.06);
  pointer-events: auto;
}

.split:has(.side:hover) .side:hover .caption-long {
  letter-spacing: 0.03em;
  transform: translate(-50%, -50%) scale(1.03);
}

@media (max-width: 700px) {
  .split { flex-direction: column; }
  .caption { font-size: clamp(1.4rem, 5vw, 2.4rem); }
  .caption-long { font-size: clamp(0.9rem, 3.5vw, 1.4rem); }
}

/* ---------- Modal ---------- */

.modal[hidden] { display: none; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.modal.open { opacity: 1; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  padding: 2.5rem 2rem 2rem;
  width: min(92vw, 480px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal.open .modal-content { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: #888;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s ease;
}
.modal-close:hover { color: #fff; }

.modal-subject-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: #666;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.modal-subject {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

#contact-form { display: flex; flex-direction: column; gap: 0.75rem; }

#contact-form input,
#contact-form textarea {
  background: #1a1a1a;
  border: 1px solid #2e2e2e;
  border-radius: 3px;
  color: #fff;
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
  border-color: #666;
  background: #1f1f1f;
}

#contact-form textarea { resize: vertical; min-height: 120px; }

#contact-form input::placeholder,
#contact-form textarea::placeholder { color: #555; }

.send-btn {
  background: #fff;
  color: #000;
  border: none;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.2s ease, transform 0.1s ease;
}
.send-btn:hover { background: #e0e0e0; }
.send-btn:active { transform: scale(0.98); }
.send-btn:disabled { background: #444; color: #888; cursor: wait; }

#form-status {
  min-height: 1.2rem;
  font-size: 0.85rem;
  text-align: center;
  margin-top: 0.25rem;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
#form-status[data-state="idle"] { color: transparent; }
#form-status[data-state="sending"] { color: #888; }
#form-status[data-state="sent"] { color: #6ec06e; }
#form-status[data-state="error"] { color: #d96666; }
