/* 07-svc-brand.css | Prefix: snbr
   Panoramic Deep-Forest Acoustic Broadcast Horizon & Constellation Bloom
   Full-bleed dark emerald velvet centerpiece for /services/brand-awareness/. */

.snbr-root {
  --snbr-bg-deep: #051B0F;
  --snbr-bg-forest: #0A2E1A;
  --snbr-emerald: #0B9444;
  --snbr-sage: #4FB878;
  --snbr-mint: #9CD9B3;
  --snbr-gold: #E8A423;
  --snbr-gold-bright: #FFE399;
  --snbr-white: #FFFFFF;
  --snbr-font-head: 'Lexend', system-ui, -apple-system, sans-serif;
  --snbr-font-body: 'DM Sans', system-ui, -apple-system, sans-serif;

  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  background: linear-gradient(180deg, var(--snbr-bg-deep) 0%, var(--snbr-bg-forest) 52%, #062012 100%);
  border-top: 1px solid rgba(79, 184, 120, 0.22);
  border-bottom: 1px solid rgba(79, 184, 120, 0.22);
  isolation: isolate;
}

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

.snbr-frame {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

/* Panoramic stage */
.snbr-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1200 / 440;
  min-height: 310px;
  max-height: 520px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.snbr-svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Top-left whisper-minimal telemetry */
.snbr-hud-left {
  position: absolute;
  top: 16px;
  left: max(16px, env(safe-area-inset-left));
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(5, 27, 15, 0.72);
  border: 1px solid rgba(79, 184, 120, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}

.snbr-hud-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--snbr-gold);
  box-shadow: 0 0 10px rgba(232, 164, 35, 0.85);
  animation: snbr-dot-breathe 2.6s ease-in-out infinite;
}

.snbr-hud-label {
  font-family: var(--snbr-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--snbr-mint);
  line-height: 1;
}

.snbr-hud-sep {
  font-family: var(--snbr-font-body);
  font-size: 11px;
  color: rgba(156, 217, 179, 0.45);
  line-height: 1;
}

.snbr-hud-count {
  font-family: var(--snbr-font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--snbr-gold-bright);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  min-width: 1.4em;
  text-align: right;
}

/* Top-right WCAG 2.2.2 pause slot */
.snbr-pause-slot {
  position: absolute;
  top: 14px;
  right: max(14px, env(safe-area-inset-right));
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Subtle SVG horizon numerals */
.snbr-horizon-mark {
  font-family: var(--snbr-font-head);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  fill: rgba(156, 217, 179, 0.5);
  pointer-events: none;
}

/* Beacon accessible overlay button centered over (600, 152) -> 50% x, 34.5% y */
.snbr-beacon-btn {
  position: absolute;
  left: 50%;
  top: 34.5%;
  transform: translate(-50%, -50%);
  z-index: 7;
  width: 88px;
  height: 88px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.snbr-beacon-btn:focus {
  outline: none;
}

.snbr-beacon-btn:focus-visible {
  outline: 3px solid var(--snbr-sage);
  outline-offset: 4px;
  box-shadow: 0 0 0 6px rgba(10, 46, 26, 0.72);
}

/* Subtle CSS motion layers (all paused cleanly by .snam-paused and reduced motion) */
.snbr-gimbal-outer {
  transform-box: fill-box;
  transform-origin: center;
  animation: snbr-gimbal-spin 34s linear infinite;
}

.snbr-prism {
  transform-box: fill-box;
  transform-origin: center;
  animation: snbr-prism-float 4.8s ease-in-out infinite;
}

.snbr-beacon-aura {
  transform-box: fill-box;
  transform-origin: center;
  animation: snbr-aura-pulse 2.6s ease-in-out infinite;
}

.snbr-rest-ring-a {
  animation: snbr-ring-fade 5.2s ease-in-out infinite;
}

.snbr-rest-ring-b {
  animation: snbr-ring-fade 5.2s ease-in-out 2.6s infinite;
}

.snbr-node-gem {
  transition: fill 0.4s ease, stroke 0.4s ease, stroke-opacity 0.4s ease;
}

.snbr-node-halo {
  transition: opacity 0.45s ease;
}

.snbr-filament {
  transition: stroke-opacity 0.5s ease;
}

/* Bottom-center floating cadence pill bar */
.snbr-controls {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 20px);
  padding: 5px;
  border-radius: 999px;
  background: rgba(5, 24, 13, 0.86);
  border: 1px solid rgba(79, 184, 120, 0.34);
  box-shadow: 0 12px 30px -10px rgba(2, 12, 6, 0.78), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.snbr-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #E8F5ED;
  font-family: var(--snbr-font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.18s ease;
}

.snbr-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--snbr-sage);
  opacity: 0.75;
  flex: 0 0 auto;
  transition: background-color 0.22s ease, opacity 0.22s ease, transform 0.22s ease;
}

.snbr-pill:hover {
  background: rgba(79, 184, 120, 0.16);
  border-color: rgba(79, 184, 120, 0.45);
  color: var(--snbr-white);
}

.snbr-pill:active {
  transform: scale(0.97);
}

.snbr-pill.snbr-is-active,
.snbr-pill[aria-pressed="true"] {
  background: var(--snbr-gold);
  border-color: #FFE399;
  color: #062012;
  box-shadow: 0 4px 16px -4px rgba(232, 164, 35, 0.65);
}

.snbr-pill.snbr-is-active .snbr-pill-dot,
.snbr-pill[aria-pressed="true"] .snbr-pill-dot {
  background: #062012;
  opacity: 1;
  transform: scale(1.15);
}

.snbr-pill:focus {
  outline: none;
}

.snbr-pill:focus-visible {
  outline: 3px solid var(--snbr-sage);
  outline-offset: 2px;
}

/* Keyframes */
@keyframes snbr-gimbal-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes snbr-prism-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
}

@keyframes snbr-aura-pulse {
  0%, 100% { transform: scale(0.94); opacity: 0.78; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes snbr-dot-breathe {
  0%, 100% { opacity: 0.55; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

@keyframes snbr-ring-fade {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.9; }
}

/* Pause contract (sna-motion.js) */
html.snam-paused .snbr-root *,
html.snam-paused .snbr-root *::before,
html.snam-paused .snbr-root *::after {
  animation-play-state: paused !important;
}

/* Reduced motion contract: zero looping animations, all artwork remains crisp at opacity: 1 */
@media (prefers-reduced-motion: reduce) {
  .snbr-root *,
  .snbr-root *::before,
  .snbr-root *::after {
    animation: none !important;
    transition: none !important;
  }
  .snbr-root,
  .snbr-stage,
  .snbr-svg,
  .snbr-controls,
  .snbr-hud-left {
    opacity: 1 !important;
  }
}

/* Mobile responsiveness down to 320px & 390px with zero overflow */
@media (max-width: 640px) {
  .snbr-stage {
    min-height: 300px;
    aspect-ratio: 16 / 10;
  }

  .snbr-hud-left {
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    gap: 6px;
  }

  .snbr-pause-slot {
    top: 10px;
    right: 10px;
  }

  .snbr-controls {
    bottom: 12px;
    gap: 4px;
    padding: 4px;
    max-width: calc(100% - 16px);
  }

  .snbr-pill {
    padding: 0 12px;
    font-size: 12px;
    gap: 5px;
  }
}

@media (max-width: 375px) {
  .snbr-pill {
    padding: 0 9px;
    font-size: 11.5px;
    gap: 4px;
  }

  .snbr-pill-dot {
    width: 5px;
    height: 5px;
  }
}

@media (forced-colors: active) {
  .snbr-pill {
    border: 1px solid ButtonText;
    color: ButtonText;
    background: ButtonFace;
  }
  .snbr-pill[aria-pressed="true"] {
    background: Highlight;
    color: HighlightText;
  }
}
