/* 11-contact-beacon.css — Minimal Editorial Twin-Signal Conversation Bridge
   Prefix: snct | Theme: light (#F8FAF7 -> #E8F5ED) | WCAG 2.2 AA verified
   Contrast checks:
     #0A2E1A on #F2F7F3 = 14.3:1 (AAA)
     #7A4B00 on #F8FAF7 =  6.7:1 (AA+)
     #066632 on #E8F5ED =  6.5:1 (AA+) */

.snct-root {
  --snct-cream: #F8FAF7;
  --snct-mint: #E8F5ED;
  --snct-dark: #0A2E1A;
  --snct-forest: #0F3B22;
  --snct-deep: #066632;
  --snct-emerald: #0B9444;
  --snct-sage: #4FB878;
  --snct-gold: #E8A423;
  --snct-gold-ink: #7A4B00;
  --snct-white: #FFFFFF;

  position: relative;
  width: 100%;
  max-width: 100%;
  height: 208px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
  background: linear-gradient(96deg, var(--snct-cream) 0%, #F2F7F3 48%, var(--snct-mint) 100%);
  border-top: 1px solid rgba(10, 46, 26, 0.08);
  border-bottom: 1px solid rgba(10, 46, 26, 0.11);
  color: var(--snct-dark);
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  isolation: isolate;
}

.snct-root *,
.snct-root *::before,
.snct-root *::after {
  box-sizing: border-box;
}

.snct-stage {
  position: relative;
  width: 100%;
  max-width: 1248px;
  height: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.snct-svg {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
}

/* Pause button slot mounted by sna-motion.js (44x44px, zero overlap) */
.snct-pause-slot {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 10;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Interactive Center Harmonic Beacon Button (WCAG 2.5.8 >= 44x44px) */
.snct-node-btn {
  position: absolute;
  left: 50%;
  top: 44%;
  z-index: 8;
  width: 66px;
  height: 66px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 1.5px solid transparent;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transform: translate(-50%, -50%);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.28s ease,
              box-shadow 0.28s ease;
}

.snct-node-btn:hover {
  border-color: rgba(232, 164, 35, 0.42);
  box-shadow: 0 0 0 6px rgba(232, 164, 35, 0.10),
              0 0 18px rgba(6, 102, 50, 0.16);
}

.snct-node-btn:active {
  transform: translate(-50%, -50%) scale(0.94);
}

.snct-node-btn:focus {
  outline: none;
}

.snct-node-btn:focus-visible {
  outline: 3px solid var(--snct-deep);
  outline-offset: 4px;
  border-color: rgba(232, 164, 35, 0.65);
  box-shadow: 0 0 0 3px var(--snct-white), 0 0 20px rgba(6, 102, 50, 0.25);
}

.snct-node-btn.snct-ack {
  border-color: var(--snct-gold-ink);
  box-shadow: 0 0 0 5px rgba(232, 164, 35, 0.24),
              0 0 0 9px rgba(6, 102, 50, 0.14);
}

/* Whisper-fine architectural coordinate datum bar */
.snct-datum-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  z-index: 6;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 0 clamp(14px, 3vw, 32px);
  pointer-events: none;
}

.snct-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.snct-tag-left {
  justify-self: start;
  color: var(--snct-gold-ink);
}

.snct-tag-right {
  justify-self: end;
  color: var(--snct-deep);
}

.snct-pip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.snct-pip-gold {
  background: var(--snct-gold);
  box-shadow: 0 0 0 2px rgba(232, 164, 35, 0.26);
}

.snct-pip-emerald {
  background: var(--snct-emerald);
  box-shadow: 0 0 0 2px rgba(11, 148, 68, 0.22);
}

.snct-coords {
  justify-self: center;
  margin: 0;
  font-family: 'Lexend', 'DM Sans', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.13em;
  color: var(--snct-dark);
  white-space: nowrap;
}

/* Screen-reader live region */
.snct-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Subtle CSS ambient poise on the astrolabe arcs & central core */
.snct-arc-cw {
  transform-box: view-box;
  transform-origin: 600px 88px;
  animation: snct-spin-cw 38s linear infinite;
}

.snct-arc-ccw {
  transform-box: view-box;
  transform-origin: 600px 88px;
  animation: snct-spin-ccw 52s linear infinite;
}

.snct-core-pulse {
  transform-box: view-box;
  transform-origin: 600px 88px;
  animation: snct-core-breathe 5.6s ease-in-out infinite;
}

.snct-dial-group {
  transform-box: view-box;
  transform-origin: 600px 88px;
  animation: snct-spin-cw 90s linear infinite;
}

@keyframes snct-spin-cw {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes snct-spin-ccw {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

@keyframes snct-core-breathe {
  0%, 100% { transform: scale(1); opacity: 0.94; }
  50% { transform: scale(1.07); opacity: 1; }
}

/* Mandatory pause contract */
html.snam-paused .snct-root *,
html.snam-paused .snct-root *::before,
html.snam-paused .snct-root *::after {
  animation-play-state: paused !important;
}

/* Reduced motion: keep resting sculpture crisp at full opacity */
@media (prefers-reduced-motion: reduce) {
  .snct-root *,
  .snct-root *::before,
  .snct-root *::after {
    animation: none !important;
    transition: none !important;
  }

  .snct-core-pulse,
  .snct-arc-cw,
  .snct-arc-ccw,
  .snct-dial-group {
    opacity: 1 !important;
  }
}

/* Responsive adaptation down to 320px with zero horizontal overflow */
@media (max-width: 820px) {
  .snct-root {
    height: 188px;
  }

  .snct-datum-bar {
    display: flex;
    justify-content: center;
    padding: 0 12px;
  }

  .snct-tag {
    display: none;
  }

  .snct-coords {
    font-size: 10.5px;
    letter-spacing: 0.1em;
  }
}

@media (max-width: 440px) {
  .snct-root {
    height: 170px;
  }

  .snct-pause-slot {
    top: 8px;
    right: 8px;
  }

  .snct-datum-bar {
    bottom: 9px;
    padding: 0 8px;
  }

  .snct-coords {
    font-size: 9.5px;
    letter-spacing: 0.055em;
  }
}

/* High contrast / forced-colors accessibility */
@media (forced-colors: active) {
  .snct-root {
    border-top: 1px solid CanvasText;
    border-bottom: 1px solid CanvasText;
  }

  .snct-node-btn:focus-visible {
    outline: 3px solid Highlight;
    border-color: Highlight;
  }
}
