/* =============================================
   CONTACT SECTION
   ============================================= */
#contact {
  position: relative;
  padding: 100px 0 110px;
  overflow: hidden;
  z-index: 5;
}
 
/* top divider */
/* #contact::before {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(91,163,208,0.2) 30%,
    rgba(91,163,208,0.2) 70%,
    transparent);
} */
 
/* ambient glows */
#contact .ct-glow-l {
  position: absolute;
  top: 20%; left: 0;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(91,163,208,0.07) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
#contact .ct-glow-r {
  position: absolute;
  bottom: 10%; right: 0;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(56,189,248,0.05) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
 
/* ── wrapper ── */
.ct-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 40px);
  display: grid;
  grid-template-columns: 1.2fr 1.5fr;
  gap: 48px;
  align-items: start;
}
 
/* ── section heading above grid ── */
.ct-heading-wrap {
  max-width: 1200px;
  margin: 0 auto 28px;
  padding: 0 clamp(16px, 3vw, 40px);
  opacity: 0;
  transform: translateX(-18px) translateY(22px); /* Added horizontal shift */
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.ct-heading-wrap.visible {
  opacity: 1;
  transform: translateX(-18px) translateY(0); /* Maintains left shift when visible */
}
.ct-eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ct-eyebrow::before {
  content: '';
  display: inline-block;
  width: 30px; height: 1px;
  background: linear-gradient(90deg, var(--c-accent), transparent);
}
.ct-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.06;
  color: var(--c-frost);
}
.ct-title span {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(179,207,229,0.42);
}
 
/* ── LEFT: info panel ── */
.ct-info {
  opacity: 0;
  margin-left: -18px; /* Pulls content 24px further left */
  transform: translateX(-40px);
  transition: opacity 850ms var(--ease) 100ms,
              transform 850ms var(--ease) 100ms,
              margin 850ms var(--ease) 100ms;
}

.ct-info.visible { 
  opacity: 1; 
  transform: translateX(0); 
}

/* @media (max-width: 900px) {
  .ct-heading-wrap {
    transform: translateY(22px);
  }
  .ct-heading-wrap.visible {
    transform: translateY(0);
  }
  .ct-info {
    margin-left: 0;
  }
} */
 
.ct-tagline {
  font-size: 15px;
  line-height: 1.82;
  color: rgba(179,207,229,0.58);
  margin-bottom: 25px;
  max-width: 500px;
}
.ct-tagline strong { color: var(--c-frost); font-weight: 600; }
 
/* info items */
.ct-info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 25px;
}
.ct-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.ct-info-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: rgba(91,163,208,0.08);
  border: 1px solid rgba(91,163,208,0.18);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.ct-info-icon:hover {
  background: rgba(91,163,208,0.16);
  border-color: rgba(91,163,208,0.38);
}
.ct-info-icon svg { width: 18px; height: 18px; color: var(--c-accent); }
.ct-info-text { }
.ct-info-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(179,207,229,0.4);
  margin-bottom: 3px;
}
.ct-info-value {
  font-size: 14px;
  color: var(--c-frost);
  font-weight: 500;
}
.ct-info-value a {
  color: var(--c-frost);
  text-decoration: none;
  transition: color 0.25s ease;
}
.ct-info-value a:hover { color: var(--c-accent); }
 
/* social icons */
.ct-socials-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(179,207,229,0.4);
  margin-bottom: 5px;
}
.ct-socials {
  display: flex;
  gap: 10px;
}
.ct-social {
  width: 42px; height: 42px;
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(135deg,
    rgba(255,255,255,0.08) 0%,
    rgba(255,255,255,0.03) 50%,
    rgba(91,163,208,0.06) 100%);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  box-shadow:
    0 4px 16px rgba(0,0,0,0.3),
    0 1px 0 rgba(255,255,255,0.18) inset,
    0 -1px 0 rgba(0,0,0,0.15) inset;
  display: flex; align-items: center; justify-content: center;
  color: rgba(179,207,229,0.65);
  text-decoration: none;
  transition: all 0.25s ease;
}
.ct-social:hover {
  border-color: rgba(91,163,208,0.5);
  color: var(--c-frost);
  background: linear-gradient(135deg,
    rgba(91,163,208,0.18) 0%,
    rgba(91,163,208,0.08) 100%);
  transform: translateY(-3px);
  box-shadow:
    0 0 14px rgba(91,163,208,0.5),
    0 0 28px rgba(91,163,208,0.2),
    0 1px 0 rgba(255,255,255,0.18) inset;
}
.ct-social svg { width: 17px; height: 17px; }
 
/* availability badge */
.ct-available {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  padding: 8px 16px;
  background: rgba(74,222,128,0.06);
  border: 1px solid rgba(74,222,128,0.18);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: rgba(74,222,128,0.8);
  text-transform: uppercase;
}
.ct-available-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 8px rgba(74,222,128,0.7);
  animation: livePulse 2s ease-in-out infinite;
}
 
/* ── RIGHT: glass form ── */
.ct-form-wrap {
  margin-left: auto;
  margin-top: -90px;
  opacity: 0;
  margin-right: -20px;
  transform: translateX(40px) translateX(30px);
  transition: opacity 850ms var(--ease) 200ms,
              transform 850ms var(--ease) 200ms;
}
.ct-form-wrap.visible { opacity: 1; transform: translateX(0); }
 
.ct-form-card {
  background: rgba(10,22,46,0.48);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(179,207,229,0.10);
  border-radius: 24px;
  padding: 40px 38px;
  box-shadow:
    0 32px 80px rgba(0,0,0,0.45),
    0 1px 0 rgba(255,255,255,0.06) inset;
}
 
/* form grid */
.ct-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.ct-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}
.ct-field:last-of-type { margin-bottom: 0; }
 
.ct-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(179,207,229,0.45);
}
 
.ct-input,
.ct-textarea {
  width: 100%;
  background: rgba(6,14,32,0.55);
  border: 1px solid rgba(179,207,229,0.1);
  border-radius: 11px;
  padding: 13px 16px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--c-frost);
  outline: none;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
  -webkit-appearance: none;
}
.ct-input::placeholder,
.ct-textarea::placeholder {
  color: rgba(179,207,229,0.25);
  font-size: 13.5px;
}
.ct-input:focus,
.ct-textarea:focus {
  border-color: rgba(91,163,208,0.5);
  background: rgba(6,14,32,0.75);
  box-shadow:
    0 0 0 3px rgba(91,163,208,0.08),
    0 0 16px rgba(91,163,208,0.08);
}
.ct-input:hover,
.ct-textarea:hover {
  border-color: rgba(179,207,229,0.2);
}
 
.ct-textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.7;
}
 
/* send button — sweep hover effect */
.ct-submit {
  width: 100%;
  margin-top: 24px;
  padding: 14px 28px;
  background: transparent;
  color: var(--c-steel);
  border: 1.5px solid rgba(91,163,208,0.38);
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color 0.4s ease, border-color 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.ct-submit::before,
.ct-submit::after {
  content: '';
  display: block;
  height: 100%;
  width: 100%;
  transform: skew(90deg) translate(-50%, -50%);
  position: absolute;
  inset: 50%;
  left: 25%;
  z-index: -1;
  transition: 0.45s ease-out;
  background: var(--c-blue);
}
.ct-submit::before {
  top: -50%;
  left: -25%;
  transform: skew(90deg) rotate(180deg) translate(-50%, -50%);
}
.ct-submit:hover::before {
  transform: skew(45deg) rotate(180deg) translate(-50%, -50%);
}
.ct-submit:hover::after {
  transform: skew(45deg) translate(-50%, -50%);
}
.ct-submit:hover {
  color: #fff;
  border-color: var(--c-blue);
}
.ct-submit:active {
  filter: brightness(0.78);
  transform: scale(0.99);
}
.ct-submit svg { width: 16px; height: 16px; }
 
/* success message */
.ct-success {
  display: none;
  text-align: center;
  padding: 24px 0 8px;
}
.ct-success-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.25);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.ct-success-icon svg { width: 24px; height: 24px; color: #4ADE80; }
.ct-success-title {
  font-size: 17px; font-weight: 600;
  color: var(--c-frost); margin-bottom: 6px;
}
.ct-success-msg {
  font-size: 13px;
  color: rgba(179,207,229,0.55);
  line-height: 1.7;
}
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
 

  /* =========================================================
   SECURITY — CONTACT FORM HONEYPOT
   ========================================================= */

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}


/* ── responsive ── */
@media (max-width: 900px) {
  #contact {
    padding: 70px 0 80px; /* was fixed 100px/110px on every screen size */
  }

  .ct-wrap {
    grid-template-columns: 1fr;
    gap: 48px;
  
  }

  .ct-info {
    transform: translateY(36px);
    padding-left: 20px;
  }
  .ct-heading-wrap{
    padding-left: 20px;
    margin-left: 20px;
  }
  .ct-info.visible { transform: translateY(0); }

  .ct-form-wrap {
    margin-top: 0;    /* was -90px — desktop-only alignment hack, caused overlap with .ct-info once stacked */
    margin-left: 0;   /* was auto */
    margin-right: 0;  /* was -20px — caused right-edge clipping against #contact's overflow: hidden */
    transform: translateY(36px);
  }
  .ct-form-wrap.visible { transform: translateY(0); }
}

@media (max-width: 560px) {
  #contact {
    padding: 60px 0 70px;
  }

  .ct-form-row {
    grid-template-columns: 1fr;
  }

  .ct-form-card {
    padding: 28px 22px;
  }
}.ct-field-error { color: #ffb4ab; font-size: 0.85rem; margin-top: 0.35rem; }
.ct-status { color: #e5f4ff; margin-bottom: 0.75rem; }
.ct-status:empty { display: none; }
.ct-input[aria-invalid="true"], .ct-textarea[aria-invalid="true"] { border-color: #ffb4ab; }
/* Match the footer's contact and social icon colors. */
.ct-info-icon svg { color: var(--indigo-l); }
.ct-social { color: #cbd5e1; }
.ct-social:hover { color: #38bdf8; }
/* Match the contact button's existing hover fill to the hero button. */
.ct-submit::before, .ct-submit::after { background: #326b98; }
.ct-submit:hover { border-color: #326b98; }
/* Individual contact reveals, prepared only when the observer is available. */
@media (prefers-reduced-motion: no-preference) {
  #contact.ct-sequenced .ct-info, #contact.ct-sequenced .ct-form-wrap { opacity: 1; transform: none; }
  #contact.ct-sequenced :is(.ct-tagline, .ct-info-item, .ct-socials-label, .ct-socials, .ct-available, .ct-form-card, .ct-field, .ct-submit) {
    transition: opacity .85s cubic-bezier(.22,1,.36,1) var(--ct-delay, 0ms), translate .85s cubic-bezier(.22,1,.36,1) var(--ct-delay, 0ms), scale .85s cubic-bezier(.22,1,.36,1) var(--ct-delay, 0ms);
  }
  #contact.ct-sequenced .ct-entrance-pending { opacity: 0; translate: 0 18px; }
  #contact.ct-sequenced .ct-tagline.ct-entrance-pending, #contact.ct-sequenced .ct-info-item:nth-child(1).ct-entrance-pending { translate: -22px 0; }
  #contact.ct-sequenced .ct-info-item:nth-child(2).ct-entrance-pending { translate: 18px 0; }
  #contact.ct-sequenced .ct-info-item:nth-child(3).ct-entrance-pending, #contact.ct-sequenced .ct-available.ct-entrance-pending { translate: 0 0; scale: .94; }
  #contact.ct-sequenced .ct-form-card.ct-entrance-pending { translate: 20px 0; scale: .97; }
  #contact.ct-sequenced .ct-submit.ct-entrance-pending { translate: 16px 0; }
  #contact.ct-sequenced .ct-entrance-pending:focus-within { opacity: 1; translate: none; scale: 1; transition-delay: 0s; }
}
@media (prefers-reduced-motion: no-preference) {
  #contact .ct-socials.ct-entrance-visible .ct-social {
    animation: contact-social-entrance .7s cubic-bezier(.22,1,.36,1) both;
  }
  #contact .ct-socials.ct-entrance-visible .ct-social:nth-child(2) { animation-delay: .25s; }
  #contact .ct-socials.ct-entrance-visible .ct-social:nth-child(3) { animation-delay: .5s; }
  #contact .ct-socials.ct-entrance-visible .ct-social:focus-visible { animation: none; opacity: 1; translate: none; }
  @keyframes contact-social-entrance {
    from { opacity: 0; translate: 0 16px; }
    to { opacity: 1; translate: 0 0; }
  }
}
/* Footer reveals as each column or bar enters the screen. */
@media (prefers-reduced-motion: no-preference) {
  .footer-wrap :is(.footer-main > div, .footer-status, .footer-bottom) {
    transition: opacity 1s cubic-bezier(.22,1,.36,1) var(--footer-delay, 0ms), translate 1s cubic-bezier(.22,1,.36,1) var(--footer-delay, 0ms);
  }
  .footer-wrap .footer-reveal-pending { opacity: 0; translate: 0 22px; }
  .footer-wrap .f-brand.footer-reveal-pending { translate: -18px 0; }
  .footer-wrap .footer-reveal-pending:focus-within { opacity: 1; translate: none; transition-delay: 0s; }
}
@media (prefers-reduced-motion: no-preference) {
  .footer-wrap .f-socials.footer-socials-revealed .f-social {
    animation: footer-social-entrance .55s cubic-bezier(.22,1,.36,1) both;
  }
  .footer-wrap .f-socials.footer-socials-revealed .f-social:nth-child(2) { animation-delay: .18s; }
  .footer-wrap .f-socials.footer-socials-revealed .f-social:nth-child(3) { animation-delay: .36s; }
  .footer-wrap .f-socials.footer-socials-revealed .f-social:nth-child(4) { animation-delay: .54s; }
  .footer-wrap .f-socials.footer-socials-revealed .f-social:nth-child(5) { animation-delay: .72s; }
  .footer-wrap .f-socials.footer-socials-revealed .f-social:focus-visible { animation: none; opacity: 1; translate: none; }
  @keyframes footer-social-entrance {
    from { opacity: 0; translate: 0 16px; }
    to { opacity: 1; translate: 0 0; }
  }
}

@media (prefers-reduced-motion: no-preference) {
  .footer-wrap .footer-socials-pending .f-social { opacity: 0; translate: 0 16px; }
  .footer-wrap .footer-socials-pending .f-social:focus-visible { opacity: 1; translate: none; }
}
/* Consistent contact reveal speed across screen sizes. */
@media (prefers-reduced-motion: no-preference) {
  #contact.ct-sequenced :is(.ct-tagline, .ct-info-item, .ct-socials-label, .ct-socials, .ct-available, .ct-form-card, .ct-field, .ct-submit) {
    transition-duration: .42s, .42s, .42s;
  }
  #contact .ct-socials.ct-entrance-visible .ct-social { animation-duration: .4s; }
  #contact .ct-socials.ct-entrance-visible .ct-social:nth-child(2) { animation-delay: .12s; }
  #contact .ct-socials.ct-entrance-visible .ct-social:nth-child(3) { animation-delay: .24s; }
}
