/* Wire Desk — switchboard contact (exclusive to contact.php) */
:root {
  /* Tideboard-aligned Wire Desk */
  --wd-ink: #042A28;
  --wd-ink-soft: #2F5C58;
  --wd-ice: #EFFFFA;
  --wd-paper: #F4FBF8;
  --wd-blue: #024E4A;
  --wd-blue-deep: #013533;
  --wd-acid: #B8F2E0;
  --wd-coral: #FF9B71;
  --wd-shadow: 0 24px 50px rgba(1, 53, 51, 0.12);
  --wd-font-display: "Bricolage Grotesque", "Space Grotesk", system-ui, sans-serif;
  --wd-font-body: "Plus Jakarta Sans", "IBM Plex Serif", Georgia, serif;
}

body.wd-wire {
  margin: 0;
  min-height: 100vh;
  color: var(--wd-ink);
  font-family: var(--wd-font-body);
  background:
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(2, 78, 74, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 35% at 0% 80%, rgba(255, 155, 113, 0.14), transparent 50%),
    linear-gradient(160deg, #EFFFFA 0%, var(--wd-ice) 42%, var(--wd-paper) 100%);
}

body.wd-wire a {
  color: inherit;
  text-decoration: none;
}

body.wd-wire a:hover {
  color: var(--wd-blue);
}

.wd-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.95rem clamp(1rem, 4vw, 2.5rem);
  background: var(--wd-ink);
  color: #EFFFFA;
}

.wd-brand {
  font-family: var(--wd-font-display);
  font-size: clamp(1.2rem, 2.3vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #EFFFFA !important;
}

.wd-brand em {
  font-style: normal;
  font-weight: 500;
  color: var(--wd-acid);
}

.wd-strip-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.85rem;
  font-family: var(--wd-font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wd-strip-nav a {
  color: rgba(239, 255, 250, 0.7);
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}

.wd-strip-nav a.is-here,
.wd-strip-nav a:hover {
  color: #fff !important;
  border-bottom-color: var(--wd-acid);
}

.wd-board {
  max-width: 1140px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.75rem) clamp(1rem, 4vw, 2.5rem) 3rem;
}

.wd-hero {
  max-width: 38rem;
  margin-bottom: 2rem;
}

.wd-kicker,
.wd-map-kicker {
  margin: 0 0 0.45rem;
  font-family: var(--wd-font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wd-blue);
}

.wd-hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--wd-font-display);
  font-size: clamp(2.3rem, 5.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.wd-hero h1 em {
  font-style: italic;
  font-family: var(--wd-font-body);
  font-weight: 500;
  color: var(--wd-blue);
}

.wd-lede {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--wd-ink-soft);
}

.wd-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: start;
}

.wd-bay {
  padding: 1.4rem 1.35rem 1.5rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(2, 78, 74, 0.1);
  border-radius: 4px 28px 4px 28px;
  box-shadow: var(--wd-shadow);
  position: relative;
  overflow: hidden;
}

.wd-bay::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: repeating-linear-gradient(
    180deg,
    var(--wd-ink) 0 10px,
    var(--wd-blue) 10px 14px,
    var(--wd-acid) 14px 18px,
    var(--wd-ink) 18px 28px
  );
}

.wd-bay-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.65rem 1rem;
  margin: 0 0 1.1rem 0.35rem;
}

.wd-port-tag {
  font-family: var(--wd-font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  background: var(--wd-acid);
  color: var(--wd-ink);
  border-radius: 2px;
}

.wd-bay-head h2,
.wd-cables h2,
.wd-map h2 {
  margin: 0;
  font-family: var(--wd-font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.wd-flash {
  margin: 0 0 1rem 0.35rem;
  padding: 0.85rem 1rem;
  border-radius: 4px;
  font-size: 0.95rem;
}

.wd-flash strong {
  display: block;
  font-family: var(--wd-font-display);
  margin-bottom: 0.2rem;
}

.wd-flash p {
  margin: 0;
}

.wd-flash.is-ok {
  background: #e8f8ef;
  border-left: 4px solid #1f9a6d;
  color: #145c42;
}

.wd-flash.is-bad {
  background: #fdecea;
  border-left: 4px solid var(--wd-coral);
  color: #8a2414;
}

.wd-patch {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-left: 0.35rem;
  position: relative;
}

.wd-jack {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.75rem;
  align-items: stretch;
  padding: 0.55rem 0.65rem 0.55rem 0.35rem;
  background: linear-gradient(90deg, rgba(2, 78, 74, 0.04), transparent 40%);
  border-radius: 4px;
  cursor: text;
}

.wd-jack-port {
  display: grid;
  place-items: center;
  font-family: var(--wd-font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--wd-ink);
  border-radius: 999px;
  min-height: 2.6rem;
  position: relative;
}

.wd-jack-port::after {
  content: "";
  position: absolute;
  right: -0.55rem;
  width: 0.55rem;
  height: 2px;
  background: var(--wd-blue);
}

.wd-jack-copy {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.wd-jack-label {
  font-family: var(--wd-font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wd-ink-soft);
}

.wd-jack input,
.wd-jack textarea {
  width: 100%;
  box-sizing: border-box;
  border: 0;
  border-bottom: 2px solid rgba(2, 78, 74, 0.18);
  border-radius: 0;
  padding: 0.35rem 0.15rem 0.45rem;
  background: transparent;
  font-family: var(--wd-font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--wd-ink);
}

.wd-jack input:focus,
.wd-jack textarea:focus {
  outline: none;
  border-bottom-color: var(--wd-coral);
}

.wd-jack--tall .wd-jack-port {
  align-self: start;
  min-height: 3.2rem;
}

.wd-btn {
  appearance: none;
  position: relative;
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 1rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--wd-coral);
  color: var(--wd-ink);
  font-family: var(--wd-font-body);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 6px 0 rgba(180, 90, 50, 0.35);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.wd-btn:hover,
.wd-btn:focus-visible {
  background: #FFB08E;
  color: var(--wd-ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 0 rgba(180, 90, 50, 0.3);
  outline: 2px solid var(--wd-blue);
  outline-offset: 2px;
}

.wd-btn-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--wd-blue);
  box-shadow: 0 0 0 0 rgba(2, 78, 74, 0.55);
  animation: wd-ping 1.6s ease infinite;
}

@keyframes wd-ping {
  70%, 100% {
    box-shadow: 0 0 0 10px rgba(2, 78, 74, 0);
  }
}

.wd-spark {
  height: 4px;
  margin-top: 0.35rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--wd-blue), var(--wd-acid), var(--wd-coral));
  background-size: 200% 100%;
  opacity: 0;
  transform: scaleX(0.2);
  transform-origin: left;
}

.wd-spark.is-fired {
  animation: wd-spark 0.85s ease forwards;
}

@keyframes wd-spark {
  0% { opacity: 0; transform: scaleX(0.2); background-position: 0% 0; }
  35% { opacity: 1; transform: scaleX(1); }
  100% { opacity: 0.35; transform: scaleX(1); background-position: 100% 0; }
}

.wd-side {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.wd-map {
  position: relative;
  padding: 1.35rem 1.25rem 1.4rem;
  background:
    linear-gradient(135deg, rgba(2, 78, 74, 0.08), transparent 40%),
    #fff;
  border: 1px solid rgba(2, 78, 74, 0.1);
  box-shadow: var(--wd-shadow);
  transform: rotate(0.8deg);
  clip-path: polygon(0 0, 100% 0, 100% 92%, 96% 100%, 0 100%);
}

.wd-map-fold {
  position: absolute;
  top: 0;
  right: 0;
  width: 42px;
  height: 42px;
  background: linear-gradient(225deg, transparent 50%, rgba(2, 78, 74, 0.08) 50%);
}

.wd-map h2 {
  margin-bottom: 0.55rem;
  font-size: 1.65rem;
}

.wd-map-line {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  color: var(--wd-ink-soft);
  line-height: 1.4;
}

.wd-map-pin {
  display: inline-flex;
  margin: 0.55rem 0 0.75rem;
  padding: 0.3rem 0.65rem;
  font-family: var(--wd-font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--wd-ink);
  color: var(--wd-acid);
  border-radius: 999px;
}

.wd-map-full {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--wd-ink-soft);
}

.wd-map-meta {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.wd-map-meta > div {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.5rem;
  font-size: 0.88rem;
}

.wd-map-meta dt {
  margin: 0;
  font-family: var(--wd-font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wd-blue);
}

.wd-map-meta dd {
  margin: 0;
  font-weight: 500;
  word-break: break-word;
}

.wd-cables {
  padding: 1.25rem 1.2rem 1.35rem;
  background: var(--wd-ink);
  color: #EFFFFA;
  border-radius: 22px 4px 22px 4px;
  box-shadow: var(--wd-shadow);
}

.wd-cables .wd-map-kicker {
  color: var(--wd-acid);
}

.wd-cables h2 {
  color: #fff;
  margin-bottom: 0.85rem;
}

.wd-cable-list {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.wd-cable {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.75rem;
  align-items: center;
  animation: wd-drop 0.45s ease both;
  animation-delay: calc(var(--wd-i, 0) * 70ms);
}

@keyframes wd-drop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.wd-cable-plug {
  width: 14px;
  height: 28px;
  border-radius: 4px;
  background: var(--wd-acid);
  box-shadow: 0 8px 0 -2px rgba(184, 242, 224, 0.25);
  position: relative;
}

.wd-cable-plug::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -18px;
  width: 2px;
  height: 18px;
  background: currentColor;
  transform: translateX(-50%);
  opacity: 0.45;
}

.wd-cable.tone-mail .wd-cable-plug { background: #7DD4B8; color: #7DD4B8; }
.wd-cable.tone-help .wd-cable-plug { background: var(--wd-acid); color: var(--wd-acid); }
.wd-cable.tone-track .wd-cable-plug { background: var(--wd-blue); color: var(--wd-blue); }
.wd-cable.tone-voice .wd-cable-plug { background: var(--wd-coral); color: var(--wd-coral); }
.wd-cable.tone-wa .wd-cable-plug { background: #0F6B4C; color: #0F6B4C; }

.wd-cable a {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.55rem 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  color: #fff !important;
  transition: background 0.15s ease, transform 0.15s ease;
}

.wd-cable a:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(3px);
  color: #fff !important;
}

.wd-cable strong {
  font-family: var(--wd-font-display);
  font-size: 0.92rem;
  font-weight: 700;
}

.wd-cable em {
  font-style: normal;
  font-size: 0.8rem;
  opacity: 0.7;
  word-break: break-word;
}

.wd-social p {
  margin: 0 0 0.55rem;
  font-family: var(--wd-font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(239, 255, 250, 0.55);
}

.wd-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.wd-social-chip {
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(239, 255, 250, 0.25);
  font-family: var(--wd-font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff !important;
  background: transparent;
}

.wd-social-chip:hover {
  background: var(--wd-acid);
  border-color: var(--wd-acid);
  color: var(--wd-ink) !important;
}

.wd-colophon {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.25rem clamp(1rem, 4vw, 2.5rem) 2.5rem;
  border-top: 1px solid rgba(2, 78, 74, 0.12);
  font-family: var(--wd-font-display);
  font-size: 0.85rem;
  color: var(--wd-ink-soft);
}

.wd-colophon nav {
  display: flex;
  gap: 1rem;
  font-weight: 600;
}

@media (max-width: 900px) {
  .wd-split {
    grid-template-columns: 1fr;
  }

  .wd-map {
    transform: none;
  }
}

@media (max-width: 520px) {
  .wd-jack {
    grid-template-columns: 2.5rem 1fr;
  }

  .wd-map-meta > div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wd-btn-pulse,
  .wd-spark.is-fired,
  .wd-cable {
    animation: none !important;
  }
}

/* Contact / Wire Desk button lock */
body.wd-wire.dna-exclusive .page-main .wd-btn {
  background: var(--wd-coral) !important;
  color: var(--wd-ink) !important;
  border: 0 !important;
  box-shadow: 0 6px 0 rgba(180, 90, 50, 0.35) !important;
}

body.wd-wire.dna-exclusive .page-main .wd-btn:hover,
body.wd-wire.dna-exclusive .page-main .wd-btn:focus-visible {
  background: #FFB08E !important;
  color: var(--wd-ink) !important;
}

body.wd-wire.dna-exclusive .page-main .wd-btn-pulse {
  background: var(--wd-blue) !important;
}

body.wd-wire.dna-exclusive .page-main .wd-jack input:focus,
body.wd-wire.dna-exclusive .page-main .wd-jack textarea:focus {
  border-bottom-color: var(--wd-coral) !important;
}
