/* 04-svc-strategy.css — Living Isometric Strategy Trajectory Field (prefix: snst)
   SNA Today — Luxury botanical forest & brushed gold editorial centerpiece. */

.snst-band {
  --snst-bg: #0A2E1A;
  --snst-forest: #0F3B22;
  --snst-void: #061D10;
  --snst-deep: #066632;
  --snst-emerald: #0B9444;
  --snst-sage: #4FB878;
  --snst-mint: #9CD9B3;
  --snst-soft: #E8F5ED;
  --snst-gold: #E8A423;
  --snst-gold-hi: #F7D07A;
  --snst-white: #FFFFFF;
  --snst-font-head: 'Lexend', system-ui, -apple-system, sans-serif;
  --snst-font-ui: 'DM Sans', system-ui, -apple-system, sans-serif;

  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  background:
    radial-gradient(ellipse 75% 65% at 50% 44%, rgba(15, 59, 34, 0.92) 0%, rgba(10, 46, 26, 1) 66%, rgba(6, 29, 16, 1) 100%);
  border-top: 1px solid rgba(79, 184, 120, 0.22);
  border-bottom: 1px solid rgba(79, 184, 120, 0.22);
  padding: clamp(1rem, 2.6vw, 2rem) clamp(0.75rem, 2.4vw, 1.5rem);
  font-family: var(--snst-font-ui);
}

.snst-band *,
.snst-band *::before,
.snst-band *::after {
  box-sizing: border-box;
}

.snst-root {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 62% at 50% 45%, #114326 0%, #0A2E1A 64%, #061E11 100%);
  border: 1px solid rgba(79, 184, 120, 0.24);
  box-shadow:
    0 24px 64px -24px rgba(4, 18, 10, 0.72),
    inset 0 1px 0 rgba(156, 217, 179, 0.14);
}

/* Top header chrome: whisper-quiet index mark left, 44x44px pause slot right */
.snst-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem 0 1.25rem;
  pointer-events: none;
}

.snst-index {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--snst-font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--snst-mint);
  user-select: none;
}

.snst-index-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--snst-gold);
  box-shadow: 0 0 10px rgba(232, 164, 35, 0.85);
  flex: 0 0 auto;
  animation: snst-beacon 3.6s ease-in-out infinite;
}

.snst-pause-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  pointer-events: auto;
}

/* Main interactive widescreen SVG stage */
.snst-stage-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.snst-svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 1100 / 440;
  cursor: crosshair;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.snst-svg:focus {
  outline: none;
}

.snst-svg:focus-visible {
  outline: 3px solid var(--snst-sage);
  outline-offset: -3px;
}

/* SVG Architectural & Chessboard styling */
.snst-meridian {
  fill: none;
  stroke: rgba(79, 184, 120, 0.11);
  stroke-width: 1;
}

.snst-bracket {
  fill: none;
  stroke: rgba(156, 217, 179, 0.24);
  stroke-width: 1;
}

.snst-plinth-left {
  fill: #051A0E;
  stroke: rgba(79, 184, 120, 0.2);
  stroke-width: 0.8;
}

.snst-plinth-right {
  fill: #072414;
  stroke: rgba(79, 184, 120, 0.24);
  stroke-width: 0.8;
}

.snst-board-base {
  fill: url(#snst-board-grad);
  stroke: rgba(79, 184, 120, 0.34);
  stroke-width: 1.1;
}

.snst-board-rim {
  fill: none;
  stroke: rgba(232, 164, 35, 0.34);
  stroke-width: 0.9;
}

.snst-corner-jewel {
  fill: var(--snst-gold);
  opacity: 0.85;
}

.snst-tick {
  stroke: rgba(156, 217, 179, 0.34);
  stroke-width: 1;
  stroke-linecap: round;
}

.snst-tile {
  fill: #4FB878;
  fill-opacity: 0.055;
  stroke: none;
  transition: fill 0.4s ease;
}

.snst-grid-line {
  stroke: var(--snst-sage);
  stroke-opacity: 0.19;
  stroke-width: 0.85;
}

.snst-grid-axis {
  stroke-opacity: 0.36;
  stroke-width: 1.05;
}

.snst-dot {
  fill: var(--snst-mint);
  fill-opacity: 0.42;
}

/* Elevated translucent glass channel planes */
.snst-plane-shadow {
  fill: rgba(4, 18, 10, 0.56);
  stroke: rgba(79, 184, 120, 0.22);
  stroke-width: 0.8;
}

.snst-plumb {
  stroke: rgba(156, 217, 179, 0.3);
  stroke-width: 0.85;
  stroke-dasharray: 2.5 3.5;
}

.snst-pillar-beam {
  stroke: url(#snst-pillar-grad);
  stroke-width: 2.2;
  stroke-linecap: round;
  opacity: 0.82;
}

.snst-plane-glass {
  fill: url(#snst-plane-glass);
  stroke: url(#snst-plane-rim);
  stroke-width: 1.25;
  transition: stroke-opacity 0.35s ease, fill-opacity 0.35s ease;
}

.snst-plane-crown .snst-plane-glass {
  fill: url(#snst-plane-glass-crown);
  stroke: url(#snst-gold-rim);
  stroke-width: 1.5;
}

.snst-plane-inner {
  fill: none;
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 0.75;
}

.snst-plane-reticle {
  fill: none;
  stroke: var(--snst-gold);
  stroke-opacity: 0.62;
  stroke-width: 1;
  stroke-dasharray: 4 3;
}

.snst-plane-num {
  font-family: var(--snst-font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  fill: var(--snst-white);
  fill-opacity: 0.92;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}

.snst-plane-crown .snst-plane-num {
  fill: var(--snst-gold-hi);
}

.snst-knight-crest {
  fill: none;
  stroke: var(--snst-gold-hi);
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.snst-knight-core {
  fill: var(--snst-gold);
}

/* Knight-move & orbital Bezier trajectory arcs */
.snst-arc-shadow {
  fill: none;
  stroke: rgba(79, 184, 120, 0.16);
  stroke-width: 0.9;
  stroke-dasharray: 3 5;
}

.snst-arc-path {
  fill: none;
  stroke-linecap: round;
  transition: stroke-opacity 0.45s ease, stroke-width 0.45s ease;
}

.snst-arc-gold .snst-arc-path {
  stroke: url(#snst-gold-arc);
  stroke-width: 1.85;
  stroke-opacity: 0.86;
}

.snst-arc-emerald .snst-arc-path {
  stroke: url(#snst-emerald-arc);
  stroke-width: 1.45;
  stroke-opacity: 0.68;
}

.snst-arc-comet-halo {
  fill: url(#snst-halo-gold);
  opacity: 0.85;
}

.snst-arc-emerald .snst-arc-comet-halo {
  fill: url(#snst-halo-emerald);
}

.snst-arc-comet {
  fill: var(--snst-gold-hi);
}

.snst-arc-emerald .snst-arc-comet {
  fill: var(--snst-mint);
}

/* Dynamic audience / signal nodes */
.snst-node-tether {
  stroke: rgba(79, 184, 120, 0.3);
  stroke-width: 0.8;
  stroke-dasharray: 2 3;
}

.snst-node-gold .snst-node-tether {
  stroke: rgba(232, 164, 35, 0.34);
}

.snst-node-halo {
  fill: url(#snst-halo-emerald);
  opacity: 0.75;
}

.snst-node-gold .snst-node-halo {
  fill: url(#snst-halo-gold);
}

.snst-node-core {
  fill: var(--snst-mint);
}

.snst-node-gold .snst-node-core {
  fill: var(--snst-gold-hi);
}

/* Landing halos & interactive reticle */
.snst-halo {
  fill: none;
  stroke: var(--snst-gold);
  stroke-width: 1.1;
  stroke-opacity: 0.48;
  animation: snst-halo-breathe 4.4s ease-in-out infinite;
}

.snst-halo-emerald {
  stroke: var(--snst-sage);
  stroke-opacity: 0.42;
}

.snst-hover-ring {
  fill: none;
  stroke: var(--snst-gold-hi);
  stroke-width: 1.3;
  stroke-opacity: 0;
  pointer-events: none;
  transition: stroke-opacity 0.2s ease;
}

.snst-custom-shadow {
  fill: none;
  stroke: rgba(232, 164, 35, 0.28);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

.snst-custom-path {
  fill: none;
  stroke: url(#snst-gold-arc);
  stroke-width: 2.35;
  stroke-linecap: round;
}

.snst-custom-comet {
  fill: #FFF4D4;
}

.snst-custom-ring {
  fill: none;
  stroke: var(--snst-gold-hi);
  stroke-width: 1.4;
}

/* Mode-specific CSS polish */
.snst-root[data-snst-mode="focus"] .snst-plane-glass {
  stroke: url(#snst-gold-rim);
}

.snst-root[data-snst-mode="focus"] .snst-arc-gold .snst-arc-path {
  stroke-width: 2.35;
  stroke-opacity: 0.98;
}

.snst-root[data-snst-mode="focus"] .snst-arc-emerald .snst-arc-path {
  stroke-opacity: 0.22;
}

/* Bottom-center floating glass mode bar */
.snst-controls {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  max-width: calc(100% - 24px);
  border-radius: 999px;
  background: rgba(6, 29, 16, 0.82);
  border: 1px solid rgba(79, 184, 120, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 12px 28px -10px rgba(4, 18, 10, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.snst-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 92px;
  min-height: 44px;
  margin: 0;
  padding: 0 1.15rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--snst-soft);
  font-family: var(--snst-font-ui);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color 0.24s ease,
    border-color 0.24s ease,
    color 0.24s ease,
    box-shadow 0.24s ease,
    transform 0.18s ease;
}

.snst-chip-pip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--snst-sage);
  opacity: 0.65;
  flex: 0 0 auto;
  transition: background-color 0.24s ease, opacity 0.24s ease, box-shadow 0.24s ease;
}

.snst-chip:hover {
  background: rgba(79, 184, 120, 0.16);
  color: var(--snst-white);
}

.snst-chip:active {
  transform: scale(0.97);
}

.snst-chip[aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(15, 59, 34, 0.96) 0%, rgba(6, 102, 50, 0.88) 100%);
  border-color: var(--snst-gold);
  color: var(--snst-white);
  box-shadow:
    0 0 18px -4px rgba(232, 164, 35, 0.48),
    inset 0 1px 0 rgba(247, 208, 122, 0.26);
}

.snst-chip[aria-pressed="true"] .snst-chip-pip {
  background: var(--snst-gold);
  opacity: 1;
  box-shadow: 0 0 8px rgba(232, 164, 35, 0.9);
}

.snst-chip:focus {
  outline: none;
}

.snst-chip:focus-visible {
  outline: 3px solid var(--snst-sage);
  outline-offset: 3px;
}

/* Keyframes (strictly snst-prefixed) */
@keyframes snst-beacon {
  0%, 100% { opacity: 0.72; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1.12); }
}

@keyframes snst-halo-breathe {
  0%, 100% { stroke-opacity: 0.26; }
  50% { stroke-opacity: 0.62; }
}

/* Site-wide Pause & Reduced Motion Contracts */
html.snam-paused .snst-root *,
html.snam-paused .snst-root *::before,
html.snam-paused .snst-root *::after {
  animation-play-state: paused !important;
}

@media (prefers-reduced-motion: reduce) {
  .snst-root *,
  .snst-root *::before,
  .snst-root *::after {
    animation: none !important;
    transition: none !important;
  }
  .snst-index-dot,
  .snst-halo,
  .snst-node,
  .snst-plane,
  .snst-arc {
    opacity: 1;
  }
}

/* Responsive layout down to 320px and 390px with zero horizontal overflow */
@media (max-width: 720px) {
  .snst-root {
    border-radius: 16px;
  }
  .snst-header {
    position: relative;
    padding: 0.65rem 0.7rem 0.15rem 0.9rem;
  }
  .snst-controls {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    display: flex;
    margin: 0.35rem auto 0.85rem;
    width: fit-content;
    max-width: calc(100% - 16px);
  }
  .snst-chip {
    min-width: 82px;
    padding: 0 0.9rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 390px) {
  .snst-band {
    padding: 0.75rem 0.5rem;
  }
  .snst-header {
    padding: 0.55rem 0.55rem 0.1rem 0.75rem;
  }
  .snst-index {
    font-size: 0.66rem;
    letter-spacing: 0.14em;
  }
  .snst-controls {
    gap: 3px;
    padding: 3px;
  }
  .snst-chip {
    min-width: 74px;
    min-height: 44px;
    padding: 0 0.7rem;
    gap: 0.32rem;
    font-size: 0.75rem;
  }
}

@media (forced-colors: active) {
  .snst-root,
  .snst-controls,
  .snst-chip {
    border-color: CanvasText;
  }
  .snst-chip[aria-pressed="true"] {
    background: Highlight;
    color: HighlightText;
    border-color: Highlight;
  }
  .snst-chip:focus-visible,
  .snst-svg:focus-visible {
    outline-color: Highlight;
  }
}
