/* Appily Fortynine — Vault Switchboard contact (unique layout + kinetic UI) */
@keyframes a49-wire-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes a49-wire-bar {
  0%, 100% { transform: scaleY(.35); opacity: .45; }
  50% { transform: scaleY(1); opacity: 1; }
}
@keyframes a49-wire-pulse {
  0% { transform: scale(0.9); opacity: .8; }
  70% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}
@keyframes a49-wire-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200,245,66,.4); }
  50% { box-shadow: 0 0 0 10px rgba(200,245,66,0); }
}

.page-contact {
  --wire-deep: #0B2B33;
  --wire-accent: #C8F542;
  --wire-coral: #FF5C39;
  --wire-mist: #F4F8F7;
  --wire-line: #D5E1E3;
  --wire-muted: #5E757A;
}

.a49-wire { overflow: clip; background: var(--wire-mist); }

/* Mast with equalizer bars */
.a49-wire-mast {
  position: relative; isolation: isolate;
  background:
    radial-gradient(circle at 78% 30%, rgba(200,245,66,.16), transparent 30%),
    linear-gradient(148deg, #071F24 0%, #0B2B33 48%, #134E4A 100%);
  color: #F4F8F7;
  padding: clamp(2.2rem, 5vw, 3.6rem) 0 3.2rem;
  overflow: hidden;
}
.a49-wire-mast::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 52px;
  background: var(--wire-mist);
  clip-path: polygon(0 50%, 100% 0, 100% 100%, 0 100%);
  z-index: 2;
}
.a49-wire-bars {
  position: absolute; right: max(4vw, 20px); bottom: 70px;
  display: flex; align-items: flex-end; gap: 6px; height: 88px;
  z-index: 0; pointer-events: none; opacity: .85;
}
.a49-wire-bars span {
  width: 8px; height: 100%; border-radius: 999px;
  background: linear-gradient(180deg, var(--wire-accent), rgba(255,92,57,.7));
  transform-origin: bottom center;
  animation: a49-wire-bar 1.4s ease-in-out infinite;
}
.a49-wire-bars span:nth-child(1) { animation-delay: 0s; }
.a49-wire-bars span:nth-child(2) { animation-delay: .1s; height: 70%; }
.a49-wire-bars span:nth-child(3) { animation-delay: .2s; height: 95%; }
.a49-wire-bars span:nth-child(4) { animation-delay: .05s; height: 55%; }
.a49-wire-bars span:nth-child(5) { animation-delay: .25s; height: 80%; }
.a49-wire-bars span:nth-child(6) { animation-delay: .15s; height: 100%; }
.a49-wire-bars span:nth-child(7) { animation-delay: .3s; height: 60%; }
.a49-wire-bars span:nth-child(8) { animation-delay: .18s; height: 88%; }

.a49-wire-mast-grid {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: 1.2fr .9fr; gap: 28px; align-items: end;
}
.a49-wire-kicker {
  margin: 0 0 12px; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--wire-accent); font-weight: 800;
}
.a49-wire-intro h1 {
  margin: 0 0 14px;
  font-family: var(--font-display, 'Bricolage Grotesque', sans-serif);
  font-size: clamp(2.1rem, 4.4vw, 3.3rem); line-height: 1.05; letter-spacing: -0.03em;
  max-width: 12ch;
}
.a49-wire-intro h1 em { font-style: normal; color: var(--wire-accent); }
.a49-wire-lede {
  margin: 0; color: rgba(244,248,247,.74); max-width: 44ch; font-size: 1.02rem;
}

.a49-wire-channels {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 10px;
  animation: a49-wire-rise .55s ease both;
}
.a49-wire-channels li {
  display: grid; grid-template-columns: 14px 1fr; gap: 4px 10px;
  padding: 14px 16px; border-radius: 18px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
}
.a49-wire-channels li.is-live {
  border-color: rgba(200,245,66,.45);
  background: rgba(200,245,66,.1);
}
.a49-wire-dot {
  grid-row: 1 / span 2; align-self: center;
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(244,248,247,.35); position: relative;
}
.a49-wire-channels li.is-live .a49-wire-dot {
  background: var(--wire-accent);
  animation: a49-wire-glow 2s ease-in-out infinite;
}
.a49-wire-channels li.is-live .a49-wire-dot::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid rgba(200,245,66,.5);
  animation: a49-wire-pulse 1.8s ease-out infinite;
}
.a49-wire-channels em {
  grid-column: 2; font-style: normal; font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(244,248,247,.55); font-weight: 800;
}
.a49-wire-channels a,
.a49-wire-channels strong {
  grid-column: 2; color: #fff; font-weight: 700; text-decoration: none;
  word-break: break-word; font-size: .95rem;
}
.a49-wire-channels a:hover { color: var(--wire-accent); }

/* Stage — console + station (not equal dual panels) */
.a49-wire-stage {
  display: grid; grid-template-columns: 1.35fr .75fr; gap: 18px;
  padding: 8px 0 72px; align-items: start;
}

.a49-wire-console {
  background: #fff; border: 1px solid var(--wire-line); border-radius: 28px;
  padding: clamp(18px, 3vw, 28px);
  box-shadow: 0 18px 36px rgba(11,43,51,.07);
  position: relative; overflow: hidden;
  animation: a49-wire-rise .5s ease both;
}
.a49-wire-console::before {
  content: "";
  position: absolute; width: 200px; height: 200px; border-radius: 40%;
  right: -50px; top: -60px;
  background: radial-gradient(circle, rgba(200,245,66,.16), transparent 70%);
  pointer-events: none;
}
.a49-wire-console-head {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  align-items: end; margin-bottom: 18px;
}
.a49-wire-tag {
  display: inline-block; margin-bottom: 8px; padding: 5px 10px; border-radius: 999px;
  background: rgba(200,245,66,.22); color: var(--wire-deep);
  font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.a49-wire-console-head h2,
.a49-wire-station h2 {
  margin: 0 0 6px;
  font-family: var(--font-display, 'Bricolage Grotesque', sans-serif);
  font-size: 1.45rem; color: var(--wire-deep); letter-spacing: -0.02em;
}
.a49-wire-console-head p { margin: 0; color: var(--wire-muted); max-width: 42ch; }
.a49-wire-console-links {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.a49-wire-console-links a {
  color: var(--wire-coral); font-weight: 700; text-decoration: none; font-size: .9rem;
}
.a49-wire-console-links a:hover { text-decoration: underline; }

.a49-wire-alert {
  position: relative; z-index: 1;
  margin-bottom: 14px; padding: 14px 16px 14px 42px; border-radius: 16px; font-weight: 700;
}
.a49-wire-alert.is-ok {
  background: #EEF9D4; color: #2F4A0E;
}
.a49-wire-alert.is-err {
  background: #FFE8E1; color: #9A2E16; padding-left: 16px;
}
.a49-wire-alert-pulse {
  position: absolute; left: 16px; top: 50%; width: 12px; height: 12px;
  margin-top: -6px; border-radius: 50%; background: #6FA012;
}
.a49-wire-alert-pulse::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid rgba(111,160,18,.45);
  animation: a49-wire-pulse 1.6s ease-out infinite;
}

.a49-wire-form { position: relative; z-index: 1; }
.a49-wire-fields {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px;
}
.a49-wire-fields label {
  display: grid; gap: 6px;
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 800; color: var(--wire-muted);
}
.a49-wire-fields label small {
  text-transform: none; letter-spacing: 0; font-weight: 600; opacity: .8;
}
.a49-wire-span { grid-column: 1 / -1; }
.a49-wire-fields input,
.a49-wire-fields textarea {
  width: 100%; border: 1px solid var(--wire-line); border-radius: 14px;
  padding: 12px 14px; font: inherit; font-weight: 600; color: var(--wire-deep);
  background: #F7FBFA; text-transform: none; letter-spacing: 0;
}
.a49-wire-fields textarea { min-height: 130px; resize: vertical; }
.a49-wire-fields input:focus,
.a49-wire-fields textarea:focus {
  outline: 2px solid rgba(200,245,66,.65); border-color: transparent; background: #fff;
}
.a49-wire-actions {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
}
.a49-wire-actions p {
  margin: 0; color: var(--wire-muted); font-size: .85rem; max-width: 36ch;
}
.a49-wire-sent-actions {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; position: relative; z-index: 1;
}

.a49-wire-btn-ghost {
  background: transparent !important;
  border: 1px solid rgba(11,43,51,.2) !important;
  color: var(--wire-deep) !important;
}

/* Station plate — stacked identity, not a twin form panel */
.a49-wire-station {
  position: sticky; top: 96px;
  background: var(--wire-deep); color: #F4F8F7;
  border-radius: 28px; padding: 22px;
  box-shadow: 0 18px 36px rgba(11,43,51,.16);
  animation: a49-wire-rise .55s .06s ease both;
  overflow: hidden;
}
.a49-wire-station::before {
  content: "";
  position: absolute; width: 160px; height: 160px; border-radius: 40%;
  right: -40px; bottom: -40px;
  background: radial-gradient(circle, rgba(255,92,57,.28), transparent 70%);
  pointer-events: none;
}
.a49-wire-station .a49-wire-tag {
  background: rgba(200,245,66,.2); color: var(--wire-accent);
}
.a49-wire-station h2 { color: #fff; position: relative; z-index: 1; }

.a49-wire-plate {
  margin: 14px 0 18px; padding: 0; display: grid; gap: 12px; position: relative; z-index: 1;
}
.a49-wire-plate > div {
  padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.12);
}
.a49-wire-plate > div:last-child { border-bottom: 0; padding-bottom: 0; }
.a49-wire-plate dt {
  margin: 0 0 4px; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(244,248,247,.5); font-weight: 800;
}
.a49-wire-plate dd {
  margin: 0; font-weight: 600; line-height: 1.45; color: rgba(244,248,247,.92);
}

.a49-wire-bento {
  display: grid; gap: 8px; position: relative; z-index: 1;
}
.a49-wire-bento a {
  display: grid; grid-template-columns: 32px 1fr; gap: 2px 10px;
  padding: 12px 14px; border-radius: 16px; text-decoration: none;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  color: #fff; transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.a49-wire-bento a:hover {
  transform: translateX(3px);
  border-color: rgba(200,245,66,.5);
  background: rgba(200,245,66,.1);
}
.a49-wire-bento span {
  grid-row: 1 / span 2; align-self: center;
  font-family: var(--font-display, 'Bricolage Grotesque', sans-serif);
  font-size: .8rem; font-weight: 800; color: var(--wire-accent);
}
.a49-wire-bento strong {
  font-family: var(--font-display, 'Bricolage Grotesque', sans-serif);
  font-size: .95rem;
}
.a49-wire-bento em {
  font-style: normal; font-size: .75rem; color: rgba(244,248,247,.55);
}

@media (max-width: 960px) {
  .a49-wire-mast-grid,
  .a49-wire-stage { grid-template-columns: 1fr; }
  .a49-wire-station { position: static; }
  .a49-wire-bars { opacity: .4; }
  .a49-wire-intro h1 { max-width: none; }
}
@media (max-width: 560px) {
  .a49-wire-fields { grid-template-columns: 1fr; }
  .a49-wire-bars { display: none; }
}
