/* Contact page: an interactive project signal composer. */

.contact-page {
  --contact-bg: #0a2427;
  --contact-panel: #0b292c;
  --contact-panel-deep: #061719;
  --contact-warm: #f1c86f;
  background-color: var(--contact-bg);
}

.contact-page main > section {
  scroll-margin-top: calc(var(--header-desktop) + 20px);
}

.contact-page .section-code-label {
  position: absolute;
  inset: 22px auto auto max(22px, calc((100vw - 1160px) / 2));
  z-index: 2;
  color: rgba(var(--green-2-rgb), 0.38);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.68rem;
  direction: ltr;
  pointer-events: none;
}

.contact-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: var(--green);
  font-size: 0.77rem;
  font-weight: 800;
}

.contact-kicker svg {
  width: 18px;
  height: 18px;
}

/* Precise signal-routing backdrop */
.contact-page .mesh-layer {
  background-color: #0a2528;
}

.contact-page .mesh {
  opacity: 0.16;
}

.contact-page .code-rain {
  color: rgba(var(--green-2-rgb), 0.18);
  text-shadow: none;
}

.contact-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-image:
    radial-gradient(circle, rgba(var(--green-rgb), 0.17) 0 1px, transparent 1.6px),
    linear-gradient(rgba(12, 217, 196, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 217, 196, 0.055) 1px, transparent 1px);
  background-position: 18px 18px, 0 0, 0 0;
  background-size: 116px 116px, 58px 58px, 58px 58px;
}

.contact-backdrop::before,
.contact-backdrop::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.contact-backdrop::before {
  inset: 34px;
  border: 1px solid rgba(var(--green-rgb), 0.07);
}

.contact-backdrop::after {
  inset: 0;
  background: repeating-linear-gradient(118deg, transparent 0 210px, rgba(12, 217, 196, 0.04) 210px 211px);
}

.contact-route {
  position: absolute;
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(12, 217, 196, 0.36), transparent);
}

.contact-route b {
  position: absolute;
  top: -2px;
  width: 5px;
  height: 5px;
  background: var(--green);
  box-shadow: 0 0 12px rgba(var(--green-rgb), 0.8);
}

.contact-route--one {
  inset: 18% 0 auto;
}

.contact-route--two {
  inset: 54% 11% auto 0;
  transform: rotate(-8deg);
}

.contact-route--three {
  inset: auto 0 16%;
  background: linear-gradient(90deg, transparent, rgba(var(--green-rgb), 0.3), transparent);
}

.contact-route--one b { animation: backdropPacket 8s linear infinite; }
.contact-route--two b { animation: backdropPacket 10s -4s linear infinite; }
.contact-route--three b { animation: backdropPacket 9s -6s linear infinite; }

.contact-node {
  position: absolute;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid rgba(12, 217, 196, 0.34);
  background: rgba(8, 31, 33, 0.6);
  transform: rotate(45deg);
}

.contact-node i {
  width: 6px;
  height: 6px;
  background: var(--green);
  box-shadow: 0 0 10px rgba(var(--green-rgb), 0.58);
  animation: contactNodePulse 3s ease-in-out infinite;
}

.contact-node--one { inset: 17.2% 22% auto auto; }
.contact-node--two { inset: 53% auto auto 14%; }
.contact-node--two i { animation-delay: -1s; }
.contact-node--three { inset: auto 10% 15.2% auto; }
.contact-node--three i { animation-delay: -2s; }

.contact-backdrop-code {
  position: absolute;
  padding: 7px 10px;
  color: rgba(205, 220, 215, 0.24);
  border-inline-start: 1px solid rgba(12, 217, 196, 0.32);
  background: rgba(5, 20, 22, 0.34);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.56rem;
  white-space: nowrap;
}

.contact-backdrop-code--one { inset: 9% auto auto 4%; }
.contact-backdrop-code--two { inset: auto 3% 8% auto; }

@keyframes backdropPacket {
  0% { right: 0; opacity: 0; }
  12%, 88% { opacity: 1; }
  100% { right: calc(100% - 5px); opacity: 0; }
}

@keyframes contactNodePulse {
  0%, 100% { opacity: 0.35; transform: scale(0.72); }
  50% { opacity: 1; transform: scale(1); }
}

/* Main signal composer */
.contact-console-section {
  position: relative;
  min-height: 920px;
  padding: 26px 0 90px;
  overflow: hidden;
  border-bottom: 1px solid rgba(12, 217, 196, 0.2);
  background:
    linear-gradient(90deg, transparent 49.95%, rgba(12, 217, 196, 0.08) 50%, transparent 50.05%),
    rgba(7, 25, 27, 0.88);
  backdrop-filter: blur(1px);
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  color: var(--muted);
  font-size: 0.76rem;
}

.page-breadcrumb a { color: #fff; }
.page-breadcrumb a:hover,
.page-breadcrumb a:focus-visible { color: var(--green); }
.page-breadcrumb svg { width: 14px; height: 14px; color: var(--green); }

.contact-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 70px;
  align-items: end;
  margin-top: 28px;
}

.contact-heading h1 {
  max-width: 740px;
  margin: 14px 0 0;
  color: #fff;
  font-size: 3.25rem;
  line-height: 1.3;
  font-weight: 900;
}

.contact-heading h1 span {
  display: block;
  color: var(--green);
}

.contact-heading-note {
  padding: 4px 20px 4px 0;
  border-inline-start: 2px solid rgba(12, 217, 196, 0.35);
}

.contact-heading-note > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-2);
  font-size: 0.72rem;
  font-weight: 800;
}

.contact-heading-note > span b {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(var(--green-rgb), 0.72);
  animation: listeningPulse 1.8s ease-in-out infinite;
}

.contact-heading-note p {
  max-width: 430px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.9;
}

.signal-console {
  position: relative;
  margin-top: 42px;
  overflow: hidden;
  border: 1px solid rgba(12, 217, 196, 0.34);
  border-radius: 8px;
  background: rgba(6, 22, 24, 0.97);
  box-shadow: 0 30px 72px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(var(--green-rgb), 0.04);
}

.signal-console::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 3;
  width: 2px;
  background: linear-gradient(transparent, var(--cyan), var(--green), transparent);
  opacity: 0.55;
}

.signal-console-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 52px;
  align-items: center;
  gap: 18px;
  padding: 0 18px;
  color: #9db1ab;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: #081c1e;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.62rem;
}

.console-lights {
  display: flex;
  gap: 6px;
}

.console-lights b {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff816b;
}

.console-lights b:nth-child(2) { background: var(--contact-warm); }
.console-lights b:nth-child(3) { background: var(--green); }

.signal-console-head > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d9e5e1;
}

.signal-console-head svg { width: 15px; height: 15px; color: var(--cyan); }

.console-online {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: 7px;
  color: var(--green-2);
}

.console-online b {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 9px rgba(var(--green-rgb), 0.6);
}

.signal-console-body {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(330px, 0.72fr);
  min-height: 620px;
}

.signal-composer {
  padding: 28px 30px 30px;
}

.composer-heading {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 38px;
  gap: 15px;
  align-items: start;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.composer-heading > span {
  color: rgba(var(--green-2-rgb), 0.52);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.56rem;
  direction: ltr;
}

.composer-heading h2 {
  margin: 0;
  color: #fff;
  font-size: 1.2rem;
}

.composer-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
}

.composer-reset {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  color: #b8c8c3;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.composer-reset:hover,
.composer-reset:focus-visible {
  color: var(--green);
  border-color: rgba(var(--green-rgb), 0.4);
  background: rgba(var(--green-rgb), 0.07);
  transform: rotate(-20deg);
}

.composer-reset svg { width: 17px; height: 17px; }

.signal-fieldset {
  min-width: 0;
  margin: 24px 0 0;
  padding: 0;
  border: 0;
}

.signal-fieldset legend {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 12px;
  color: #f5faf7;
  font-size: 0.77rem;
  font-weight: 800;
}

.signal-fieldset legend span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  color: var(--green);
  border: 1px solid rgba(var(--green-rgb), 0.28);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.55rem;
}

.signal-options {
  display: grid;
  gap: 8px;
}

.signal-options--services { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.signal-options--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.signal-options label {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.signal-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.signal-options label > span {
  position: relative;
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 12px 7px;
  overflow: hidden;
  color: #c9d5d0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  text-align: center;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.signal-options label > span::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 220ms ease;
}

.signal-options svg {
  width: 22px;
  height: 22px;
  color: var(--cyan);
}

.signal-options b {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: inherit;
  font-size: 0.69rem;
}

.signal-options small {
  color: #91a59f;
  font-size: 0.53rem;
}

.signal-options label:hover > span {
  color: #fff;
  border-color: rgba(12, 217, 196, 0.32);
  background: rgba(12, 217, 196, 0.05);
  transform: translateY(-2px);
}

.signal-options input:focus-visible + span {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.signal-options input:checked + span {
  color: #fff;
  border-color: rgba(var(--green-rgb), 0.55);
  background: linear-gradient(145deg, rgba(var(--green-rgb), 0.12), rgba(12, 217, 196, 0.035));
  box-shadow: inset 0 0 22px rgba(var(--green-rgb), 0.035);
}

.signal-options input:checked + span::after { transform: scaleX(1); }
.signal-options input:checked + span svg { color: var(--green); filter: drop-shadow(0 0 8px rgba(var(--green-rgb), 0.3)); }

.signal-options--compact label > span {
  min-height: 54px;
  flex-direction: row;
  gap: 8px;
}

.signal-options--compact svg { width: 18px; height: 18px; }

.signal-details {
  display: grid;
  grid-template-columns: minmax(190px, 0.75fr) minmax(0, 1.25fr);
  gap: 10px;
  margin-top: 24px;
}

.signal-details label {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

.signal-details label > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #f1f7f4;
  font-size: 0.69rem;
  font-weight: 800;
}

.signal-details label > span svg { width: 16px; height: 16px; color: var(--cyan); }
.signal-details label > span small { color: #879b95; font-size: 0.53rem; font-weight: 600; }

.signal-details input,
.signal-details textarea {
  width: 100%;
  min-width: 0;
  padding: 12px 13px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 6px;
  outline: 0;
  background: #071b1d;
  font: inherit;
  font-size: 0.68rem;
  line-height: 1.8;
  resize: vertical;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.signal-details input { min-height: 72px; }
.signal-details textarea { min-height: 72px; max-height: 160px; padding-inline-end: 50px; }

.signal-details input::placeholder,
.signal-details textarea::placeholder { color: #718680; opacity: 1; }

.signal-details input:focus,
.signal-details textarea:focus {
  border-color: rgba(12, 217, 196, 0.55);
  background: #092124;
  box-shadow: 0 0 0 3px rgba(12, 217, 196, 0.07);
}

.note-counter {
  position: absolute;
  inset: auto auto 10px 10px;
  color: #77908a;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.5rem;
  font-weight: 400;
}

/* Live compiled output */
.signal-output {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 28px 26px 24px;
  overflow: hidden;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(rgba(12, 217, 196, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 217, 196, 0.035) 1px, transparent 1px),
    #071d1f;
  background-size: 34px 34px, 34px 34px, auto;
}

.signal-output::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0 48%, rgba(var(--green-rgb), 0.06) 50%, transparent 52%);
  translate: 0 -100%;
}

.signal-console.is-updating .signal-output::after { animation: outputScan 560ms ease-out; }

.signal-output-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(196, 215, 209, 0.55);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.53rem;
  direction: ltr;
}

.signal-output-head > b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-2);
  font-family: "Cairo", system-ui, sans-serif;
  font-size: 0.55rem;
  direction: rtl;
}

.signal-output-head > b i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 9px rgba(var(--green-rgb), 0.7);
}

.signal-visual {
  position: relative;
  width: 230px;
  max-width: 100%;
  height: 150px;
  margin: 18px auto 12px;
}

.signal-core {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 3;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: #04140a;
  border: 1px solid var(--green-2);
  background: var(--green);
  box-shadow: 0 0 28px rgba(var(--green-rgb), 0.25);
  transform: translate(-50%, -50%) rotate(45deg);
}

.signal-core svg {
  width: 21px;
  height: 21px;
  transform: rotate(-45deg);
}

.signal-core span {
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(var(--green-rgb), 0.25);
  animation: coreRing 2.4s ease-out infinite;
}

.signal-path {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 96px;
  height: 1px;
  background: rgba(12, 217, 196, 0.38);
  transform-origin: left center;
}

.signal-path b {
  position: absolute;
  top: -2px;
  width: 5px;
  height: 5px;
  background: var(--green-2);
  box-shadow: 0 0 10px rgba(var(--green-rgb), 0.72);
  animation: signalPacket 1.8s linear infinite;
}

.signal-path--one { transform: rotate(-28deg); }
.signal-path--two { transform: rotate(90deg); }
.signal-path--three { transform: rotate(208deg); }
.signal-path--two b { animation-delay: -0.6s; }
.signal-path--three b { animation-delay: -1.2s; }

.signal-endpoint {
  position: absolute;
  color: rgba(194, 214, 207, 0.5);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.48rem;
  direction: ltr;
}

.signal-endpoint::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border: 1px solid var(--cyan);
  transform: rotate(45deg);
}

.signal-endpoint--one { inset: 24px 1px auto auto; }
.signal-endpoint--two { inset: auto 82px 2px auto; }
.signal-endpoint--three { inset: auto auto 30px 0; }

.compiled-brief {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.compiled-brief > div {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.compiled-brief > div:last-of-type { border-bottom: 0; }
.compiled-brief span { color: #8ba09a; font-size: 0.57rem; }
.compiled-brief b { overflow-wrap: anywhere; color: #fff; font-size: 0.66rem; }

.compiled-brief p {
  min-height: 58px;
  margin: 0;
  padding: 11px 0;
  color: #b6c7c1;
  border-top: 1px dashed rgba(12, 217, 196, 0.2);
  font-size: 0.58rem;
  line-height: 1.8;
}

.signal-strength {
  position: relative;
  z-index: 1;
  margin-top: 18px;
}

.signal-strength > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #d7e3df;
  font-size: 0.58rem;
}

.signal-strength > div b { color: var(--green-2); font-family: Consolas, "Courier New", monospace; }

.signal-strength > span {
  display: block;
  height: 5px;
  margin-top: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.09);
}

.signal-strength > span i {
  display: block;
  width: 75%;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  box-shadow: 0 0 12px rgba(var(--green-rgb), 0.32);
  transition: width 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.signal-strength small {
  display: block;
  margin-top: 7px;
  color: #7f9690;
  font-size: 0.49rem;
}

.signal-submit {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 0 16px;
  color: #041108;
  border: 1px solid var(--green-2);
  border-radius: 6px;
  background: var(--green);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(var(--green-rgb), 0.16);
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.signal-submit span { display: inline-flex; align-items: center; gap: 8px; }
.signal-submit svg { width: 17px; height: 17px; }

.signal-submit:hover,
.signal-submit:focus-visible {
  background: var(--green-2);
  box-shadow: 0 16px 34px rgba(var(--green-rgb), 0.24);
  transform: translateY(-2px);
}

.signal-privacy {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 10px 0 0;
  color: #839892;
  font-size: 0.48rem;
  line-height: 1.7;
}

.signal-privacy svg { width: 14px; height: 14px; flex: 0 0 14px; color: var(--cyan); }

.signal-console.is-transmitting .signal-core {
  animation: signalTransmit 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes listeningPulse {
  0%, 100% { opacity: 0.45; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes outputScan {
  from { translate: 0 -100%; }
  to { translate: 0 100%; }
}

@keyframes coreRing {
  0% { opacity: 0.7; transform: scale(0.72); }
  100% { opacity: 0; transform: scale(1.65); }
}

@keyframes signalPacket {
  0% { left: 0; opacity: 0; }
  15%, 85% { opacity: 1; }
  100% { left: calc(100% - 5px); opacity: 0; }
}

@keyframes signalTransmit {
  0%, 100% { transform: translate(-50%, -50%) rotate(45deg) scale(1); }
  45% { transform: translate(-50%, -50%) rotate(45deg) scale(1.25); box-shadow: 0 0 50px rgba(var(--green-rgb), 0.6); }
}

/* Direct channels */
.contact-channels {
  position: relative;
  padding: 92px 0 100px;
  overflow: hidden;
  border-bottom: 1px solid rgba(var(--green-rgb), 0.2);
  background:
    linear-gradient(rgba(var(--green-rgb), 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--green-rgb), 0.045) 1px, transparent 1px),
    rgba(9, 31, 33, 0.9);
  background-size: 82px 82px, 82px 82px, auto;
  backdrop-filter: blur(1px);
}

.contact-channels::before {
  content: "";
  position: absolute;
  inset: 0 50% 0 auto;
  width: 1px;
  background: rgba(12, 217, 196, 0.1);
}

.channels-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 40px;
  align-items: end;
}

.channels-heading .contact-kicker { grid-column: 1 / -1; }

.channels-heading h2 {
  margin: 0;
  color: #fff;
  font-size: 2.35rem;
  line-height: 1.35;
}

.channels-heading h2 span { color: var(--green); }

.channels-heading p {
  max-width: 390px;
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 0.75rem;
}

.channels-grid {
  display: grid;
  margin-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.channel-link {
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 125px 34px;
  min-height: 104px;
  align-items: center;
  gap: 20px;
  padding: 15px 18px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  transition: background-color 220ms ease, border-color 220ms ease;
}

.channel-link::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--green);
  transform: scaleY(0);
  transition: transform 240ms ease;
}

.channel-link:hover,
.channel-link:focus-visible {
  border-bottom-color: rgba(var(--green-rgb), 0.38);
  outline: 0;
  background: rgba(var(--green-rgb), 0.055);
}

.channel-link:hover::before,
.channel-link:focus-visible::before { transform: scaleY(1); }

.channel-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: var(--cyan);
  border: 1px solid rgba(12, 217, 196, 0.28);
  background: rgba(12, 217, 196, 0.055);
  transition: color 180ms ease, border-color 180ms ease, transform 220ms ease;
}

.channel-icon svg { width: 25px; height: 25px; }
.channel-link--whatsapp .channel-icon { border-color: rgba(var(--green-rgb), 0.34); background: rgba(var(--green-rgb), 0.075); }

.channel-link:hover .channel-icon,
.channel-link:focus-visible .channel-icon {
  color: var(--green);
  border-color: rgba(var(--green-rgb), 0.55);
  transform: rotate(-4deg) scale(1.04);
}

.channel-copy {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(180px, 1fr) minmax(190px, auto);
  align-items: center;
  gap: 18px;
}

.channel-copy small { color: #9aafa9; font-size: 0.64rem; }
.channel-copy b { color: #fff; font-size: 1rem; }
.channel-copy em { color: var(--green-2); font-family: Consolas, "Courier New", monospace; font-size: 0.73rem; font-style: normal; text-align: left; }

.channel-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #b5c7c1;
  font-size: 0.58rem;
}

.channel-state i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(var(--green-rgb), 0.65);
}

.channel-arrow {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.5);
  transition: color 180ms ease, transform 220ms ease;
}

.channel-link:hover .channel-arrow,
.channel-link:focus-visible .channel-arrow { color: var(--green); transform: translate(-3px, -3px); }

.contact-protocol {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 250px;
  gap: 28px;
  align-items: center;
  margin-top: 48px;
  padding: 22px 0;
  border-top: 1px solid rgba(12, 217, 196, 0.2);
  border-bottom: 1px solid rgba(12, 217, 196, 0.2);
}

.protocol-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(var(--green-2-rgb), 0.62);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.57rem;
}

.protocol-label b {
  width: 7px;
  height: 7px;
  border: 1px solid var(--green);
  transform: rotate(45deg);
}

.contact-protocol ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-protocol li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
}

.contact-protocol li > span {
  color: rgba(255, 255, 255, 0.28);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.55rem;
}

.contact-protocol li div { display: flex; flex-direction: column; }
.contact-protocol li b { color: #fff; font-size: 0.68rem; }
.contact-protocol li small { margin-top: 3px; color: #91a59f; font-size: 0.53rem; line-height: 1.7; }
.contact-protocol > code { color: rgba(12, 217, 196, 0.5); font-family: Consolas, "Courier New", monospace; font-size: 0.56rem; text-align: left; direction: ltr; }

.contact-page.motion-ready .contact-backdrop-code--one { animation: contactCodeFloat 8s ease-in-out infinite; }
.contact-page.motion-ready .contact-backdrop-code--two { animation: contactCodeFloat 10s -4s ease-in-out infinite reverse; }

@keyframes contactCodeFloat {
  0%, 100% { translate: 0 0; opacity: 0.55; }
  50% { translate: 0 -10px; opacity: 0.95; }
}

/* Tablet */
@media (max-width: 1024px) {
  .contact-page main > section { scroll-margin-top: calc(var(--header-tablet) + 18px); }

  .contact-heading { grid-template-columns: 1fr; gap: 20px; }
  .contact-heading-note { max-width: 720px; }

  .signal-console-body { grid-template-columns: 1fr; }
  .signal-output { border-inline-start: 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }

  .signal-output {
    display: grid;
    grid-template-columns: minmax(210px, 0.72fr) minmax(300px, 1.28fr);
    gap: 0 28px;
  }

  .signal-output-head { grid-column: 1 / -1; }
  .signal-visual { grid-column: 1; grid-row: 2 / span 3; align-self: center; }
  .compiled-brief { grid-column: 2; margin-top: 18px; }
  .signal-strength { grid-column: 2; }
  .signal-submit,
  .signal-privacy { grid-column: 1 / -1; }

  .channel-link { grid-template-columns: 62px minmax(0, 1fr) 110px 28px; }
  .channel-copy { grid-template-columns: minmax(160px, 1fr) minmax(150px, 0.7fr); }
  .channel-copy em { grid-column: 1 / -1; text-align: right; }

  .contact-protocol { grid-template-columns: 1fr; }
  .protocol-label { justify-self: start; }
  .contact-protocol > code { text-align: right; }
}

/* Mobile */
@media (max-width: 760px) {
  .contact-page main > section { scroll-margin-top: calc(var(--header-mobile) + 16px); }
  .contact-page .section-code-label { inset: 15px 22px auto auto; font-size: 0.58rem; }

  .contact-backdrop { background-size: 92px 92px, 46px 46px, 46px 46px; }
  .contact-route--two,
  .contact-node--two,
  .contact-backdrop-code--two { display: none; }
  .contact-backdrop-code--one { left: 3%; font-size: 0.47rem; }

  .contact-console-section { min-height: 0; padding-block: 20px 64px; background: rgba(7, 25, 27, 0.9); }
  .page-breadcrumb { margin-bottom: 20px; }
  .contact-heading { margin-top: 0; }
  .contact-heading h1 { font-size: 2.26rem; }
  .contact-heading-note { padding-inline-start: 14px; }

  .signal-console { margin-top: 30px; }
  .signal-console-head { grid-template-columns: auto 1fr; padding-inline: 12px; }
  .signal-console-head > span { justify-self: end; }
  .console-online { display: none; }

  .signal-composer { padding: 22px 15px 24px; }
  .composer-heading { grid-template-columns: minmax(0, 1fr) 38px; }
  .composer-heading > span { display: none; }

  .signal-options--services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .signal-options--compact { grid-template-columns: 1fr; }
  .signal-options--compact label > span { min-height: 50px; justify-content: flex-start; padding-inline: 15px; }
  .signal-details { grid-template-columns: 1fr; }
  .signal-details input { min-height: 50px; }

  .signal-output { display: block; padding: 24px 16px 20px; }
  .signal-visual { width: 220px; }

  .contact-channels { padding-block: 72px 78px; background-size: 58px 58px, 58px 58px, auto; }
  .contact-channels::before { display: none; }
  .channels-heading { grid-template-columns: 1fr; }
  .channels-heading h2 { font-size: 1.95rem; }
  .channels-heading p { margin-top: 5px; }

  .channel-link {
    grid-template-columns: 52px minmax(0, 1fr) 24px;
    min-height: 112px;
    gap: 13px;
    padding-inline: 5px;
  }

  .channel-icon { width: 50px; height: 50px; }
  .channel-copy { grid-template-columns: 1fr; gap: 1px; }
  .channel-copy small { order: 2; }
  .channel-copy b { order: 1; font-size: 0.86rem; }
  .channel-copy em { order: 3; grid-column: 1; margin-top: 4px; font-size: 0.61rem; text-align: right; overflow-wrap: anywhere; }
  .channel-state { display: none; }

  .contact-protocol { gap: 18px; margin-top: 36px; }
  .contact-protocol ol { grid-template-columns: 1fr; gap: 16px; }
  .contact-protocol > code { overflow-wrap: anywhere; font-size: 0.5rem; }
}

@media (max-width: 480px) {
  .contact-heading h1 { font-size: 2rem; }
  .contact-kicker { font-size: 0.67rem; }
  .contact-heading-note p { font-size: 0.72rem; }

  .signal-console-head > span { font-size: 0.51rem; }
  .composer-heading h2 { font-size: 1.05rem; }
  .composer-heading p { font-size: 0.62rem; }
  .signal-options label > span { min-height: 80px; }
  .signal-options b { font-size: 0.63rem; }
  .signal-options small { font-size: 0.49rem; }

  .signal-output-head > span { font-size: 0.46rem; }
  .signal-output-head > b { font-size: 0.49rem; }
  .compiled-brief > div { grid-template-columns: 82px minmax(0, 1fr); }

  .channels-heading h2 { font-size: 1.72rem; }
  .channel-copy small { font-size: 0.55rem; }
  .channel-copy em { font-size: 0.54rem; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-route b,
  .contact-node i,
  .contact-heading-note > span b,
  .signal-core span,
  .signal-path b,
  .contact-page.motion-ready .contact-backdrop-code--one,
  .contact-page.motion-ready .contact-backdrop-code--two {
    animation: none !important;
  }

  .signal-options label > span,
  .channel-icon,
  .channel-arrow,
  .signal-submit,
  .signal-strength > span i {
    transition: none !important;
  }
}
