/* ════════════════════════════════════════════════
   CONTACT — paper, tech grid
════════════════════════════════════════════════ */
#contact {
  background: var(--paper);
  padding: 96px 0;
  border-top: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}

#contact > .wrap {
  position: relative;
  z-index: 1;
}

.ct-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 72px;
  margin-top: 48px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.ct-desc {
  font-size: .93rem;
  color: var(--ink-3);
  line-height: 1.8;
  margin-bottom: 28px;
  font-weight: 300;
}

.ct-list { display: flex; flex-direction: column; }
.ct-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  transition: padding-left .18s;
}
.ct-row:first-child { border-top: 1px solid var(--rule); }
.ct-row:hover { padding-left: 4px; }

.ct-ico {
  width: 28px; height: 28px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--arc);
  font-size: .72rem;
  flex-shrink: 0;
  transition: all .2s;
}
.ct-row:hover .ct-ico {
  border-color: var(--arc);
  box-shadow: 0 0 8px var(--arc-dim);
}
.ct-k {
  font-family: var(--mono);
  font-size: .52rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 1px;
}
.ct-v,
.ct-v a {
  font-size: .84rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color .2s;
}
.ct-v a:hover { color: var(--arc); }

/* ── Contact form ── */
.ctf { border: 1px solid var(--rule); }

.ctf-head {
  padding: 12px 18px;
  border-bottom: 1px solid var(--rule);
  background: var(--linen);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ctf-title {
  font-family: var(--mono);
  font-size: .56rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.ctf-dots { display: flex; gap: 5px; }
.ctf-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--rule);
}
.ctf-dot:last-child {
  background: var(--arc);
  box-shadow: 0 0 5px var(--arc);
}

.f2 { display: grid; grid-template-columns: 1fr 1fr; }
.fg {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--rule);
}
.fg + .fg { border-left: 1px solid var(--rule); }
.fg-full { grid-column: 1/-1; border-left: none !important; }
.fg-last { border-bottom: none; }

.fg label {
  font-family: var(--mono);
  font-size: .52rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding: 10px 15px 0;
}
.fg input,
.fg textarea {
  background: transparent;
  border: none;
  outline: none;
  padding: 5px 15px 11px;
  font-size: .88rem;
  color: var(--ink);
  font-family: var(--body);
  resize: none;
  width: 100%;
  transition: background .2s;
}
.fg input:focus,
.fg textarea:focus { background: rgba(0,229,255,.03); }
.fg input::placeholder,
.fg textarea::placeholder { color: var(--ink-4); font-weight: 300; }
.fg textarea { min-height: 106px; }

.f-status {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .06em;
  padding: 9px 15px;
  display: none;
  border-top: 1px solid var(--rule);
}
.f-status.ok {
  display: block;
  color: var(--arc);
  background: var(--arc-dim);
  border-color: rgba(0,229,255,.2);
}
.f-status.err {
  display: block;
  color: #ff6b6b;
  background: rgba(255,107,107,.05);
  border-color: rgba(255,107,107,.14);
}

.f-send {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 13px 22px;
  background: var(--ink);
  color: var(--linen);
  border: none;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: all .24s var(--ease);
  border-top: 1px solid var(--rule);
}
.f-send:hover {
  background: var(--arc);
  color: var(--void);
  box-shadow: 0 0 22px var(--arc-glo);
}
.f-send:disabled { opacity: .5; cursor: not-allowed; }

/* ════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════ */
footer {
  background: var(--void);
  border-top: 1px solid var(--wire);
  padding: 20px 0;
}
.ft-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.ft-brand {
  font-family: var(--display);
  font-size: .95rem;
  font-weight: 400;
  color: rgba(255,255,255,.75);
}
.ft-copy {
  font-family: var(--mono);
  font-size: .56rem;
  letter-spacing: .08em;
  color: rgba(255,255,255,.62);
}
.ft-links { display: flex; gap: 16px; }
.ft-links a {
  font-family: var(--mono);
  font-size: .56rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.68);
  transition: color .2s;
}
.ft-links a:hover { color: var(--arc); }

/* ── Scroll-to-top button ── */
#stb {
  position: fixed;
  bottom: 20px; right: 20px;
  width: 34px; height: 34px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink-3);
  font-size: .74rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 2px;
  opacity: 0;
  transform: translateY(8px);
  transition: all .28s var(--ease);
  z-index: 400;
}
#stb.on { opacity: 1; transform: none; }
#stb:hover {
  border-color: var(--arc);
  color: var(--arc);
  box-shadow: 0 0 10px var(--arc-dim);
}
