/* Hallmark · component: silver filament atmosphere · theme: graphite-silver
 * pre-emit critique: P5 H4 E4 S5 R5 V4
 * Organic curved strands, faceted highlights, local pointer displacement.
 */
:root {
  --color-silver-thread: #aeb5bd;
  --color-silver-crystal: #e8edf1;
  --color-silver-light: #ffffff;
  --color-silver-shadow: #515a63;
  --color-silver-haze: oklch(72% .012 260 / .055);
  --color-atmosphere-clear: oklch(15.1% .003 260 / 0);
  --color-veil-soft: oklch(15.1% .003 260 / .1);
  --color-veil-mid: oklch(15.1% .003 260 / .55);
  --color-veil-strong: oklch(15.1% .003 260 / .84);
  --color-section-veil: oklch(13.3% .002 260 / .93);
  --color-section-raised-veil: oklch(18% .003 260 / .94);
}

body { isolation: isolate; }

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: clip;
  background: radial-gradient(ellipse at 78% 38%, var(--color-silver-haze), var(--color-atmosphere-clear) 68%);
}

.atmosphere canvas { display: block; width: 100%; height: 100%; }

/* Keep the copy in a quiet patch; let brighter threads fill the open space. */
.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 42% 38% at 30% 44%, var(--color-veil-strong), var(--color-veil-mid) 55%, var(--color-atmosphere-clear) 100%),
    linear-gradient(0deg, var(--color-veil-mid), var(--color-atmosphere-clear) 30%, var(--color-veil-soft) 85%, var(--color-veil-strong));
}

.atmosphere[data-scene="quiet"] canvas { opacity: .46; }
.atmosphere[data-scene="quiet"]::after {
  background: linear-gradient(90deg, var(--color-atmosphere-clear), var(--color-veil-strong) 24%, var(--color-veil-strong) 76%, var(--color-atmosphere-clear));
}

.work-section, .network-section { background: var(--color-section-veil); }
.services-section, .testimonials-section { background: var(--color-section-raised-veil); }

.hero-foot-actions { display: flex; align-items: center; gap: 1rem; }
.motion-toggle {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--color-muted);
  border: 1px solid var(--color-rule);
  border-radius: 50%;
  background: var(--color-paper);
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.motion-toggle[hidden] { display: none; }
.motion-toggle:hover { color: var(--color-ink); border-color: var(--color-rule-strong); }
.motion-toggle:active { transform: scale(.95); }
.motion-toggle:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.motion-toggle svg { fill: none; stroke: currentColor; stroke-width: 1.2; }
.motion-play { display: none; }
.motion-toggle[aria-pressed="true"] .motion-pause { display: none; }
.motion-toggle[aria-pressed="true"] .motion-play { display: block; }

@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-bottom: 2rem; }
  .hero-actions { flex-wrap: wrap; row-gap: 1rem; }
  .atmosphere::after {
    background: radial-gradient(ellipse 95% 41% at 48% 28%, var(--color-veil-strong), var(--color-veil-mid) 65%, var(--color-atmosphere-clear) 100%);
  }
  .atmosphere canvas { opacity: .76; }
  .atmosphere[data-scene="quiet"] canvas { opacity: .28; }
  .motion-toggle { width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .motion-toggle { display: none; }
}
