/* ═══════════════════════════════════════════════════
   XCompany — contact.css
   Immersive contact · pixel deco · animated inputs
═══════════════════════════════════════════════════ */

/* ══ HERO ══ */
.ct-hero {
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  padding: 9rem var(--px) 4rem;
  position: relative;
  overflow: hidden;
}
.ct-hero-inner { position: relative; z-index: 2; }

.ct-hero-label {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .2rem;
  text-transform: uppercase;
  color: var(--gray);
  opacity: 0;
  animation: fadeUp .7s var(--ease) .3s forwards;
}

.ct-hero-title {
  font-family: 'aspekta', 'Orbitron', sans-serif;
  font-size: clamp(5rem, 18vw, 15rem);
  font-weight: 800;
  line-height: .88;
  letter-spacing: -.03em;
}

.ct-word-mask {
  display: block;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 700px;
}
.ct-word-mask.ct-indent { padding-left: clamp(3rem, 10vw, 12rem); }

.ct-word {
  display: inline-block;
  transform: rotateX(88deg) translateZ(.4em);
  transform-origin: top center;
  opacity: 0;
  animation: w3d 1s var(--ease) forwards;
}
.ct-word-mask:nth-child(1) .ct-word { animation-delay: .2s; }
.ct-word-mask:nth-child(2) .ct-word { animation-delay: .36s; }

/* Hero pixel canvas */
.ct-hero-px {
  position: absolute;
  right: 0; bottom: 0;
  width: 45%; height: 100%;
  pointer-events: none;
  z-index: 1;
}
#ctHeroCanvas { width: 100%; height: 100%; display: block; opacity: .4; }

/* ══ MAIN CONTENT (2 col) ══ */
.ct-main {
  padding: 6rem var(--px) 8rem;
  border-top: 1px solid var(--div);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 6rem;
  align-items: start;
}

/* ══ FORM ══ */
.ct-form-header { margin-bottom: 3rem; }

.ct-section-label {
  display: block;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .2rem;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 1rem;
}
.ct-form-title {
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
}

.ct-form {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.ct-field { display: flex; flex-direction: column; gap: .75rem; }

.ct-label {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .14rem;
  text-transform: uppercase;
  color: var(--gray);
  transition: color .3s;
}
.ct-field:focus-within .ct-label { color: var(--violet); }

.ct-input-wrap {
  position: relative;
}

.ct-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--div);
  padding: .875rem 0;
  font-family: var(--F);
  font-size: .9375rem;
  font-weight: 500;
  color: var(--text);
  outline: none;
  transition: border-color .3s;
  -webkit-appearance: none;
  appearance: none;
}
.ct-input::placeholder { color: var(--gray); opacity: .4; }
.ct-input:focus { border-color: transparent; }

/* Animated underline on focus */
.ct-input-line {
  position: absolute;
  bottom: 0; left: 0;
  width: 0%; height: 1px;
  background: var(--violet);
  transition: width .5s var(--ease);
  box-shadow: 0 0 8px rgba(139,92,246,.5);
}
.ct-field:focus-within .ct-input-line { width: 100%; }

/* Pixel corner on focus */
.ct-input-px {
  position: absolute;
  bottom: -1px; right: 0;
  width: 6px; height: 6px;
  background: var(--violet);
  opacity: 0;
  transition: opacity .3s .3s;
}
.ct-field:focus-within .ct-input-px { opacity: 1; }

/* Textarea */
.ct-textarea {
  resize: none;
  line-height: 1.7;
}

/* Select */
.ct-select-wrap::after {
  content: '↓';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: .75rem;
  color: var(--gray);
  pointer-events: none;
}
.ct-select { cursor: pointer; padding-right: 1.5rem; }
.ct-select option { background: var(--bg2); color: var(--text); }

/* Submit */
.ct-form-submit { display: flex; flex-direction: column; gap: 1rem; }

.ct-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: .875rem;
  padding: 1.1rem 2.5rem;
  background: var(--violet);
  color: #fff;
  font-family: var(--F);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08rem;
  border: 1px solid var(--violet);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: box-shadow .3s, transform .4s var(--ease);
  align-self: flex-start;
}
.ct-submit-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,.15);
  transform: translateX(-100%);
  transition: transform .5s var(--ease);
}
.ct-submit-btn:hover::before { transform: translateX(0); }
.ct-submit-btn:hover {
  box-shadow: 0 0 40px rgba(139,92,246,.45);
  transform: translateY(-2px);
}
.ct-submit-btn svg { transition: transform .35s var(--ease); flex-shrink: 0; }
.ct-submit-btn:hover svg { transform: translateX(4px); }

.ct-form-note {
  font-size: .75rem;
  color: var(--gray);
  opacity: .5;
}

/* ══ INFO COLUMN ══ */
.ct-info-col {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding-top: 5.5rem;
  position: relative;
}

.ct-info-block { display: flex; flex-direction: column; gap: .75rem; }

.ct-info-label {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .14rem;
  text-transform: uppercase;
  color: var(--gray);
  opacity: .5;
}

.ct-info-email {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  color: var(--light);
  border-bottom: 1px solid var(--div);
  padding-bottom: .2rem;
  align-self: flex-start;
  transition: color .3s, border-color .3s;
}
.ct-info-email:hover { color: var(--violet); border-color: var(--vmid); }

.ct-address {
  font-style: normal;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--light);
  opacity: .6;
}
.ct-address strong { color: var(--text); opacity: 1; font-weight: 700; }

.ct-socials { display: flex; flex-direction: column; gap: .5rem; }

.ct-social-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--gray);
  transition: color .25s, gap .3s var(--ease);
}
.ct-social-link:hover { color: var(--violet); gap: .75rem; }

/* Pixel info decoration */
.ct-info-px {
  position: absolute;
  right: -2rem; top: 0;
  width: 120px; height: 200px;
  pointer-events: none;
  opacity: .6;
}
#ctInfoCanvas { width: 100%; height: 100%; display: block; }

/* ══ RESPONSIVE ══ */
@media (max-width: 960px) {
  .ct-main { grid-template-columns: 1fr; gap: 4rem; }
  .ct-info-col { padding-top: 0; }
  .ct-info-px { display: none; }
  .ct-hero-px { width: 35%; }
}
@media (max-width: 768px) {
  body { overflow-x: hidden; }
  .ct-hero { padding: 6rem var(--pxs) 3rem; min-height: 55vh; }
  .ct-word-mask.ct-indent { padding-left: clamp(1.5rem, 6vw, 5rem); }
  .ct-hero-title { font-size: clamp(2.5rem, 12vw, 5rem); }
  .ct-main { padding: 4rem var(--pxs) 6rem; gap: 3rem; }
  .ct-form input, .ct-form textarea, .ct-form select {
    font-size: 1rem;
  }
}
@media (max-width: 600px) {
  .ct-hero { min-height: 50vh; padding-bottom: 3rem; }
  .ct-hero-px { display: none; }
  .ct-main { padding: 4rem var(--pxs) 6rem; }
  .ct-word-mask.ct-indent { padding-left: clamp(1rem, 5vw, 3rem); }
}
@media (max-width: 390px) {
  .ct-hero { padding: 5rem var(--pxs) 2rem; }
  .ct-hero-title { font-size: clamp(2rem, 13vw, 3rem); }
  .ct-main { gap: 2.5rem; }
}
