/* Prototype decorative motion system V3.12 (patterns.css)
   Static structure + dotted signal field. Motion only when html[data-motion="ok"]. */

:root {
  /* Brand base */
  --prototype-dark: #212121;
  --prototype-sand: #ded6c6;
  --prototype-coral: #e1614a;
  --prototype-soft-coral: #dfaf9c;
  --prototype-light: #ffffff;
  --prototype-text-dark: #212121;

  /* Energized innovation accents */
  --energy-aqua: #62e6d4;
  --energy-teal: #2dd4bf;
  --energy-green: #7ee787;
  --energy-blue: #60a5fa;
  --energy-violet: #8b5cf6;
  --energy-purple: #a78bfa;
  --energy-coral: #e1614a;
  --energy-orange: #f59e6b;

  /* Legacy decorative (still used in light sections) */
  --decor-deep-purple: #4b3f72;
  --decor-muted-violet: #6f5f9a;
  --decor-soft-lavender: #9a8fc0;
  --decor-soft-teal: #76a79c;
  --decor-blue-mist: #8eb8c2;

  /* Opacity tiers — dark sections */
  --decor-opacity-soft: 0.24;
  --decor-opacity-standard: 0.42;
  --decor-opacity-strong: 0.58;

  /* Pattern sizing */
  --decor-size-sm: clamp(3rem, 8vw, 5rem);
  --decor-size-md: clamp(6rem, 14vw, 10rem);
  --decor-size-lg: clamp(10rem, 22vw, 18rem);
  --decor-size-xl: clamp(14rem, 30vw, 26rem);

  /* Motion */
  --decor-stroke: 1.15;
  --decor-dash: 24 16;
  --decor-march: -160;
  --decor-dur-flow-1: 28s;
  --decor-dur-flow-2: 36s;
  --decor-dur-flow-3: 40s;
  --decor-dur-orbit-1: 32s;
  --decor-dur-orbit-2: 42s;
  --decor-dur-orbit-3: 48s;
  --decor-dur-orbit-4: 52s;
}

/* —— Host —— */

.decor-pattern-host {
  --decor-opacity: var(--decor-opacity-standard);

  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.section-dark.decor-pattern-host {
  --decor-opacity: var(--decor-opacity-standard);
}

.section-light.decor-pattern-host,
.section-light .decor-pattern-host {
  --decor-opacity: 0.2;
}

.decor-pattern-host > .container,
.decor-pattern-host > .container.container--narrow {
  position: relative;
  z-index: 1;
}

/* Ambient field wash — corner tints, not spotlight pools */
.decor-pattern-host.has-energy-field::before,
.decor-pattern-host.has-depth-field::before {
  content: "";
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  opacity: 1;
  filter: none;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(
      152deg,
      rgba(98, 230, 212, 0.055) 0%,
      rgba(98, 230, 212, 0.018) 18%,
      transparent 42%
    ),
    linear-gradient(
      328deg,
      rgba(126, 231, 135, 0.04) 0%,
      rgba(45, 212, 191, 0.022) 16%,
      transparent 36%
    );
}

.proof-section.decor-pattern-host.has-energy-field::before,
.proof-section.decor-pattern-host.has-depth-field::before {
  background:
    linear-gradient(
      212deg,
      rgba(126, 231, 135, 0.048) 0%,
      rgba(98, 230, 212, 0.024) 20%,
      transparent 44%
    ),
    linear-gradient(
      28deg,
      rgba(45, 212, 191, 0.038) 0%,
      transparent 32%
    );
}

.contact-triage-section.decor-pattern-host.has-energy-field::before {
  background:
    linear-gradient(
      18deg,
      transparent 58%,
      rgba(98, 230, 212, 0.032) 78%,
      rgba(126, 231, 135, 0.042) 100%
    ),
    linear-gradient(
      248deg,
      rgba(45, 212, 191, 0.04) 0%,
      transparent 38%
    );
}

.hero.decor-pattern-host.has-energy-field::before {
  background:
    linear-gradient(
      200deg,
      rgba(98, 230, 212, 0.038) 0%,
      transparent 34%
    ),
    linear-gradient(
      340deg,
      rgba(126, 231, 135, 0.028) 0%,
      transparent 28%
    );
}

.section-light.decor-pattern-host.has-energy-field::before {
  background:
    linear-gradient(
      165deg,
      rgba(98, 230, 212, 0.028) 0%,
      transparent 30%
    ),
    linear-gradient(
      15deg,
      rgba(126, 231, 135, 0.022) 0%,
      transparent 26%
    );
}

/* —— Base pattern —— */

.decor-pattern {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: var(--decor-opacity);
}

.decor-pattern__svg {
  display: block;
  width: 100%;
  height: 100%;
}

.decor-pattern__path {
  fill: none;
  stroke-width: var(--decor-stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: var(--decor-dash);
  animation: none;
}

/* Legacy edge/thread aliases */
.decor-pattern__edge,
.decor-pattern__thread {
  fill: none;
  stroke-width: var(--decor-stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: var(--decor-dash);
  animation: none;
}

/* —— Size variants —— */

.decor-pattern--sm {
  width: var(--decor-size-sm);
}

.decor-pattern--md {
  width: var(--decor-size-md);
}

.decor-pattern--lg {
  width: var(--decor-size-lg);
}

.decor-pattern--xl {
  width: var(--decor-size-xl);
}

/* —— Placement —— */

.decor-pattern--edge-left {
  top: 6%;
  left: -6%;
  width: min(52%, var(--decor-size-lg));
  height: 88%;
  aspect-ratio: auto;
}

.decor-pattern--edge-right {
  top: 4%;
  right: -8%;
  width: min(48%, var(--decor-size-lg));
  height: 90%;
  aspect-ratio: auto;
}

.decor-pattern--offcanvas-right {
  top: -6%;
  right: clamp(-10rem, -8vw, -3rem);
  width: clamp(20rem, 36vw, 36rem);
  height: clamp(20rem, 36vw, 36rem);
  aspect-ratio: 1;
}

.decor-pattern--edge-bottom-right {
  top: auto;
  bottom: -8%;
  right: -18%;
  width: min(42%, var(--decor-size-md));
  height: auto;
  aspect-ratio: 200 / 120;
  --decor-opacity: 0.28;
}

.section-light .decor-pattern--edge-bottom-right {
  --decor-opacity: 0.12;
}

.decor-pattern--offcanvas-left {
  top: -8%;
  left: -24%;
  width: var(--decor-size-xl);
  height: var(--decor-size-xl);
  aspect-ratio: 1;
}

.decor-pattern--corner-tl {
  top: clamp(var(--space-5), 5vw, var(--space-9));
  left: clamp(var(--space-4), 6vw, 10%);
  width: var(--decor-size-sm);
  aspect-ratio: 90 / 68;
}

.decor-pattern--corner-tr {
  top: clamp(var(--space-5), 5vw, var(--space-9));
  right: clamp(var(--space-4), 6vw, 10%);
  width: var(--decor-size-sm);
  aspect-ratio: 90 / 68;
  transform: scaleX(-1);
}

.decor-pattern--hero-whisper {
  top: -18%;
  right: -28%;
  width: var(--decor-size-xl);
  height: var(--decor-size-xl);
  --decor-opacity: 0.1;
  aspect-ratio: 1;
}

.section-light .decor-pattern--hero-whisper {
  --decor-opacity: 0.07;
}

/* —— Flow field ——
   Curved contour ribbons; calm directional energy. */

.decor-pattern--flow .decor-pattern__path--1,
.decor-pattern--flow .decor-pattern__edge--1 {
  animation-duration: var(--decor-dur-flow-1);
}

.decor-pattern--flow .decor-pattern__path--2,
.decor-pattern--flow .decor-pattern__edge--2 {
  animation-duration: var(--decor-dur-flow-2);
  animation-delay: -4s;
}

.decor-pattern--flow .decor-pattern__path--3,
.decor-pattern--flow .decor-pattern__edge--3 {
  animation-duration: var(--decor-dur-flow-3);
  animation-delay: -8s;
}

.decor-pattern--flow .decor-pattern__path--4 {
  animation-duration: var(--decor-dur-flow-4);
  animation-delay: -11s;
}

.decor-pattern--flow .decor-pattern__path--5 {
  animation-duration: 30s;
  animation-delay: -6s;
}

.decor-pattern--flow-soft {
  --decor-opacity: 0.38;
}

.section-light .decor-pattern--flow-soft {
  --decor-opacity: 0.16;
}

/* —— Clarity / energy field (V3 composed anchor) —— */

.decor-pattern--clarity-field,
.decor-pattern--composed-field {
  left: clamp(-5rem, -5vw, -2rem);
  top: clamp(3rem, 8vw, 6rem);
  width: clamp(22rem, 38vw, 40rem);
  height: auto;
  aspect-ratio: 400 / 360;
  --decor-opacity: 0.55;
}

.decor-pattern--energy-strong {
  --decor-opacity: var(--decor-opacity-strong);
}

.decor-pattern--clarity-field.decor-pattern--float,
.decor-pattern--composed-field.decor-pattern--float {
  /* drift enabled only under html[data-motion="ok"] */
}

/* —— Living motion — static layout vars; animation gated by data-motion —— */

.decor-pattern--living {
  --decor-opacity-base: 0.42;
  --decor-opacity-peak: 0.54;
  --decor-opacity: var(--decor-opacity-base);
  transform-origin: 42% 52%;
}

.decor-pattern--living-quiet {
  --decor-opacity-base: 0.38;
  --decor-opacity-peak: 0.48;
  --decor-opacity: var(--decor-opacity-base);
  transform-origin: 58% 48%;
}

.decor-pattern--living-soft {
  --decor-opacity-base: 0.12;
  --decor-opacity-peak: 0.2;
  --decor-opacity: var(--decor-opacity-base);
  transform-origin: 62% 44%;
}

.decor-pattern__path--current {
  /* path current enabled only under html[data-motion="ok"] */
}

.decor-pattern__path--4.decor-pattern__path--current {
  animation-duration: 32s;
  animation-delay: -6s;
}

.decor-pattern__path--3.decor-pattern__path--current {
  animation-duration: 40s;
  animation-delay: -10s;
}

.decor-pattern__path--6.decor-pattern__path--current {
  animation-duration: 48s;
  animation-delay: -14s;
}

.decor-pattern__path--breath {
  /* accent breath enabled only under html[data-motion="ok"] */
}

.decor-pattern__path--accent-aqua.decor-pattern__path--breath {
  animation-duration: 18s;
}

.decor-pattern__path--accent-violet.decor-pattern__path--breath,
.decor-pattern__path--accent-coral.decor-pattern__path--breath {
  animation-duration: 22s;
  animation-delay: -4s;
}

.decor-pattern__wash {
  pointer-events: none;
  opacity: 0.28;
}

/* Legacy orbit / flow / pathway — static structure, signal layer carries motion */
.decor-pattern--orbit .decor-pattern__path,
.decor-pattern--flow .decor-pattern__path,
.decor-pattern--pathway .decor-pattern__path {
  stroke-dasharray: none;
}

.decor-pattern--orbit.decor-pattern--edge-fade,
.decor-pattern--flow.decor-pattern--edge-fade,
.decor-pattern--pathway.decor-pattern--edge-fade {
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 14%,
    #000 86%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 14%,
    #000 86%,
    transparent 100%
  );
}

/* —— Edge fade (hide SVG viewport cutoff) —— */

.decor-pattern--edge-fade {
  -webkit-mask-image:
    linear-gradient(
      90deg,
      transparent 0%,
      #000 12%,
      #000 82%,
      transparent 100%
    ),
    linear-gradient(
      180deg,
      transparent 0%,
      #000 10%,
      #000 90%,
      transparent 100%
    );
  mask-image:
    linear-gradient(
      90deg,
      transparent 0%,
      #000 12%,
      #000 82%,
      transparent 100%
    ),
    linear-gradient(
      180deg,
      transparent 0%,
      #000 10%,
      #000 90%,
      transparent 100%
    );
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.decor-pattern--offcanvas-right.decor-pattern--edge-fade {
  -webkit-mask-image:
    linear-gradient(
      90deg,
      transparent 0%,
      #000 16%,
      #000 88%,
      transparent 100%
    ),
    linear-gradient(
      180deg,
      transparent 0%,
      #000 8%,
      #000 92%,
      transparent 100%
    );
  mask-image:
    linear-gradient(
      90deg,
      transparent 0%,
      #000 16%,
      #000 88%,
      transparent 100%
    ),
    linear-gradient(
      180deg,
      transparent 0%,
      #000 8%,
      #000 92%,
      transparent 100%
    );
}

/* —— Arc structure (static) —— */

.decor-pattern__path--base-arc {
  opacity: 0.46;
  stroke-dasharray: none;
  animation: none !important;
}

/* —— Dotted signal field —— */

.decor-pattern__signal-layer {
  pointer-events: none;
}

.decor-pattern__signal-path {
  fill: none;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-dasharray: 9 8;
  stroke-dashoffset: 0;
  opacity: 0.58;
  animation: none;
  vector-effect: non-scaling-stroke;
}

.decor-pattern__signal-path--primary {
  stroke-width: 1.85;
  stroke-dasharray: 11 6;
  opacity: 0.74;
}

.decor-pattern__signal-path--secondary {
  stroke-width: 1.5;
  stroke-dasharray: 8 10;
  opacity: 0.56;
}

.decor-pattern__signal-path--quiet {
  stroke-width: 1.35;
  stroke-dasharray: 6 12;
  opacity: 0.42;
}

/* Structure recedes where signals trace the same geometry */
.decor-pattern:has(.decor-pattern__signal-layer) .decor-pattern__path--solid {
  opacity: 0.32;
}

.decor-pattern:has(.decor-pattern__signal-layer) .decor-pattern__path--base-arc {
  opacity: 0.28;
}

.decor-pattern:has(.decor-pattern__signal-layer) .decor-pattern__path--flow.decor-pattern__path--solid {
  stroke-width: 0.95;
}

.decor-pattern:has(.decor-pattern__signal-layer) .decor-pattern__path--arc.decor-pattern__path--solid {
  stroke-width: 1.4;
}

/* Signal layer always carries dash motion — never inherit static structure rules */
.decor-pattern--orbit .decor-pattern__signal-path,
.decor-pattern--flow .decor-pattern__signal-path,
.decor-pattern--pathway .decor-pattern__signal-path,
.decor-pattern--clarity-field .decor-pattern__signal-path,
.decor-pattern--composed-field .decor-pattern__signal-path {
  stroke-dasharray: 9 8;
  animation: none;
}

.decor-pattern--orbit .decor-pattern__signal-path--primary,
.decor-pattern--flow .decor-pattern__signal-path--primary,
.decor-pattern--pathway .decor-pattern__signal-path--primary,
.decor-pattern--clarity-field .decor-pattern__signal-path--primary,
.decor-pattern--composed-field .decor-pattern__signal-path--primary {
  stroke-dasharray: 11 6;
}

.decor-pattern--orbit .decor-pattern__signal-path--secondary,
.decor-pattern--flow .decor-pattern__signal-path--secondary,
.decor-pattern--pathway .decor-pattern__signal-path--secondary,
.decor-pattern--clarity-field .decor-pattern__signal-path--secondary,
.decor-pattern--composed-field .decor-pattern__signal-path--secondary {
  stroke-dasharray: 8 10;
}

.decor-pattern--orbit .decor-pattern__signal-path--quiet,
.decor-pattern--flow .decor-pattern__signal-path--quiet,
.decor-pattern--pathway .decor-pattern__signal-path--quiet,
.decor-pattern--clarity-field .decor-pattern__signal-path--quiet,
.decor-pattern--composed-field .decor-pattern__signal-path--quiet {
  stroke-dasharray: 6 12;
}

/* —— Right-side signal echo —— */

.decor-pattern--right-echo {
  right: clamp(-10rem, -8vw, -4rem);
  top: clamp(9rem, 16vw, 14rem);
  width: clamp(14rem, 24vw, 24rem);
  aspect-ratio: 240 / 200;
  opacity: 0.16;
  animation: none;
}

.decor-pattern--right-echo .decor-pattern__path {
  stroke-width: 1.05;
  stroke-dasharray: none;
  animation: none;
}

.decor-pattern--right-echo .decor-pattern__signal-path {
  opacity: 0.12;
}

.decor-pattern__path--arc {
  stroke-width: 1.75;
}

.decor-pattern__path--flow {
  stroke-width: 1.2;
}

.decor-pattern__path--primary {
  stroke-width: 1.35;
}

.decor-pattern__path--secondary {
  stroke-width: 0.95;
  opacity: 0.78;
}

.decor-pattern__path--solid {
  stroke-dasharray: none;
  animation: none;
}

.decor-pattern__path--dash-flow {
  stroke-dasharray: 32 20;
}

.decor-pattern__path--accent,
.decor-pattern__path--accent-coral {
  stroke-width: 1.55;
  stroke: var(--energy-coral);
  opacity: 0.92;
  stroke-dasharray: none;
}

.decor-pattern__path--accent-aqua {
  stroke-width: 1.5;
  stroke: var(--energy-aqua);
  opacity: 0.9;
  stroke-dasharray: none;
}

.decor-pattern__path--accent-violet {
  stroke-width: 1.45;
  stroke: var(--energy-violet);
  opacity: 0.88;
  stroke-dasharray: none;
}

.decor-pattern__path--flow.decor-pattern__path--dash-flow.decor-pattern__path--current,
.decor-pattern__path--secondary.decor-pattern__path--dash-flow.decor-pattern__path--current {
  stroke-dasharray: 32 20;
}

.decor-pattern--flow-orbit .decor-pattern__path--1,
.decor-pattern--energy .decor-pattern__path--1 {
  animation-duration: 32s;
}

.decor-pattern--flow-orbit .decor-pattern__path--2,
.decor-pattern--energy .decor-pattern__path--2 {
  animation-duration: 40s;
  animation-delay: -6s;
}

.decor-pattern--flow-orbit .decor-pattern__path--3,
.decor-pattern--energy .decor-pattern__path--3 {
  animation-duration: 36s;
  animation-delay: -10s;
}

.decor-pattern--flow-orbit .decor-pattern__path--4,
.decor-pattern--energy .decor-pattern__path--4 {
  animation-duration: 44s;
  animation-delay: -4s;
}

.decor-pattern--flow-orbit .decor-pattern__path--5,
.decor-pattern--energy .decor-pattern__path--5 {
  animation-duration: 38s;
  animation-delay: -8s;
}

.decor-pattern__path--dash-a {
  stroke-dasharray: 28 18;
}

.decor-pattern__path--dash-b {
  stroke-dasharray: 40 24;
}

.decor-pattern__path--dash-c {
  stroke-dasharray: 20 14 36 20;
}

/* —— Orbital geometry ——
   Partial arcs and ring fragments; systems in motion. */

.decor-pattern--orbit .decor-pattern__path--1 {
  animation-duration: var(--decor-dur-orbit-1);
}

.decor-pattern--orbit .decor-pattern__path--2 {
  animation-duration: var(--decor-dur-orbit-2);
  animation-delay: -5s;
}

.decor-pattern--orbit .decor-pattern__path--3 {
  animation-duration: var(--decor-dur-orbit-3);
  animation-delay: -9s;
}

.decor-pattern--orbit .decor-pattern__path--4 {
  animation-duration: var(--decor-dur-orbit-4);
  animation-delay: -13s;
}

.decor-pattern--orbit .decor-pattern__path--5 {
  animation-duration: 29s;
  animation-delay: -6s;
}

.decor-pattern--orbit .decor-pattern__path--6 {
  animation-duration: 36s;
  animation-delay: -10s;
}

.decor-pattern--orbit-present,
.decor-pattern--orbit-soft {
  --decor-opacity: var(--decor-opacity-strong);
}

.section-light .decor-pattern--orbit-present {
  --decor-opacity: 0.26;
}

.decor-pattern--orbit {
  width: clamp(20rem, 36vw, 36rem);
  --decor-opacity: var(--decor-opacity-standard);
}

.decor-pattern--orbit-large {
  width: var(--decor-size-xl);
  height: var(--decor-size-xl);
}

/* —— Pathway threads ——
   Routed lines; sequencing and architecture without circuit boards. */

.decor-pattern--pathway {
  width: min(46%, var(--decor-size-md));
  aspect-ratio: 160 / 100;
}

.decor-pattern--pathway.decor-pattern--edge-left {
  top: 10%;
  left: 2%;
  width: min(42%, var(--decor-size-md));
  height: auto;
  aspect-ratio: 160 / 100;
}

.decor-pattern--pathway .decor-pattern__path--1,
.decor-pattern--pathway .decor-pattern__thread--1 {
  animation-duration: var(--decor-dur-path-1);
}

.decor-pattern--pathway .decor-pattern__path--2,
.decor-pattern--pathway .decor-pattern__thread--2 {
  animation-duration: var(--decor-dur-path-2);
  animation-delay: -4s;
}

.decor-pattern--pathway .decor-pattern__path--3,
.decor-pattern--pathway .decor-pattern__thread--3 {
  animation-duration: var(--decor-dur-path-3);
  animation-delay: -7s;
}

.decor-pattern--pathway .decor-pattern__path--4 {
  animation-duration: var(--decor-dur-path-4);
  animation-delay: -10s;
}

.decor-pattern--pathway.decor-pattern--corner-tr {
  transform: scaleX(-1);
}

/* —— Triangle accent (secondary; use sparingly) —— */

.decor-pattern--triangle .decor-pattern__edge--1 {
  animation-duration: var(--decor-dur-tri-1);
}

.decor-pattern--triangle .decor-pattern__edge--2 {
  animation-duration: var(--decor-dur-tri-2);
  animation-delay: -3s;
}

.decor-pattern--triangle .decor-pattern__edge--3 {
  animation-duration: var(--decor-dur-tri-3);
  animation-delay: -5.5s;
}

.decor-pattern--triangle {
  --decor-opacity: 0.48;
}

.section-light .decor-pattern--triangle {
  --decor-opacity: 0.2;
}

/* —— Palettes —— */

/* Prototype base: growth green → fluid teal */
.decor-pattern--palette-prototype .decor-pattern__stop--a {
  stop-color: var(--energy-green);
}

.decor-pattern--palette-prototype .decor-pattern__stop--b {
  stop-color: var(--energy-aqua);
}

.decor-pattern--palette-prototype .decor-pattern__stop--c {
  stop-color: var(--energy-teal);
}

.decor-pattern--palette-prototype .decor-pattern__stop--d {
  stop-color: var(--decor-soft-teal);
}

/* Composed: green growth → teal flow → aqua depth */
.decor-pattern--palette-composed .decor-pattern__stop--a {
  stop-color: var(--energy-green);
}

.decor-pattern--palette-composed .decor-pattern__stop--b {
  stop-color: var(--energy-teal);
}

.decor-pattern--palette-composed .decor-pattern__stop--c {
  stop-color: var(--energy-aqua);
}

.decor-pattern--palette-composed .decor-pattern__stop--d {
  stop-color: var(--decor-soft-teal);
}

/* Flow: green, aqua, teal, soft teal */
.decor-pattern--palette-flow .decor-pattern__stop--a {
  stop-color: var(--energy-green);
}

.decor-pattern--palette-flow .decor-pattern__stop--b {
  stop-color: var(--energy-aqua);
}

.decor-pattern--palette-flow .decor-pattern__stop--c {
  stop-color: var(--energy-teal);
}

.decor-pattern--palette-flow .decor-pattern__stop--d {
  stop-color: var(--decor-soft-teal);
}

/* Orbit: green rejuvenation → teal → aqua arc */
.decor-pattern--palette-orbit .decor-pattern__stop--a {
  stop-color: var(--energy-green);
}

.decor-pattern--palette-orbit .decor-pattern__stop--b {
  stop-color: var(--energy-teal);
}

.decor-pattern--palette-orbit .decor-pattern__stop--c {
  stop-color: var(--energy-aqua);
}

.decor-pattern--palette-orbit .decor-pattern__stop--d {
  stop-color: var(--decor-soft-teal);
}

/* Signal / pathway: green, teal, aqua, growth highlight */
.decor-pattern--palette-signal .decor-pattern__stop--a {
  stop-color: var(--energy-green);
}

.decor-pattern--palette-signal .decor-pattern__stop--b {
  stop-color: var(--energy-teal);
}

.decor-pattern--palette-signal .decor-pattern__stop--c {
  stop-color: var(--energy-aqua);
}

.decor-pattern--palette-signal .decor-pattern__stop--d {
  stop-color: var(--energy-green);
}

/* Contact / depth: teal, green, aqua */
.decor-pattern--palette-depth .decor-pattern__stop--a {
  stop-color: var(--energy-teal);
}

.decor-pattern--palette-depth .decor-pattern__stop--b {
  stop-color: var(--energy-green);
}

.decor-pattern--palette-depth .decor-pattern__stop--c {
  stop-color: var(--energy-aqua);
}

.decor-pattern--palette-depth .decor-pattern__stop--d {
  stop-color: var(--decor-soft-teal);
}

.section-light .decor-pattern--palette-prototype .decor-pattern__stop--a {
  stop-color: rgba(126, 231, 135, 0.55);
}

.section-light .decor-pattern--palette-prototype .decor-pattern__stop--b {
  stop-color: rgba(98, 230, 212, 0.48);
}

.section-light .decor-pattern--palette-prototype .decor-pattern__stop--c {
  stop-color: rgba(45, 212, 191, 0.38);
}

.section-light .decor-pattern--palette-flow .decor-pattern__stop--a {
  stop-color: rgba(126, 231, 135, 0.42);
}

.section-light .decor-pattern--palette-flow .decor-pattern__stop--b {
  stop-color: rgba(98, 230, 212, 0.4);
}

.section-light .decor-pattern--palette-flow .decor-pattern__stop--c {
  stop-color: rgba(45, 212, 191, 0.32);
}

.section-light .decor-pattern--palette-orbit .decor-pattern__stop--a {
  stop-color: rgba(126, 231, 135, 0.44);
}

.section-light .decor-pattern--palette-orbit .decor-pattern__stop--b {
  stop-color: rgba(98, 230, 212, 0.38);
}

.section-light .decor-pattern--palette-orbit .decor-pattern__stop--c {
  stop-color: rgba(45, 212, 191, 0.32);
}

.section-light .decor-pattern--palette-signal .decor-pattern__stop--a {
  stop-color: rgba(126, 231, 135, 0.44);
}

.section-light .decor-pattern--palette-signal .decor-pattern__stop--b {
  stop-color: rgba(98, 230, 212, 0.38);
}

/* Legacy palette alias — warm */
.decor-pattern--palette-warm .decor-pattern__stop--a {
  stop-color: var(--prototype-soft-coral);
}

.decor-pattern--palette-warm .decor-pattern__stop--b {
  stop-color: var(--prototype-coral);
}

.decor-pattern--palette-warm .decor-pattern__stop--c {
  stop-color: var(--prototype-sand);
}

.decor-pattern--palette-cool .decor-pattern__stop--a {
  stop-color: var(--decor-blue-mist);
}

.decor-pattern--palette-cool .decor-pattern__stop--b {
  stop-color: var(--prototype-soft-coral);
}

.decor-pattern--palette-cool .decor-pattern__stop--c {
  stop-color: var(--prototype-coral);
}

/* —— Text accents (static) —— */

.decor-text-underline,
.decor-text-highlight,
.decor-text-accent,
.decor-underline,
.decor-highlight {
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.decor-text-underline,
.decor-text-accent,
.decor-underline {
  background-image: linear-gradient(
    102deg,
    rgba(225, 97, 74, 0.58) 0%,
    rgba(245, 158, 107, 0.52) 45%,
    rgba(223, 175, 156, 0.68) 100%
  );
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 0.14em;
}

.section-dark .decor-text-underline,
.section-dark .decor-text-accent,
.section-dark .decor-underline {
  background-image: linear-gradient(
    102deg,
    rgba(225, 97, 74, 0.52) 0%,
    rgba(245, 158, 107, 0.46) 50%,
    rgba(223, 175, 156, 0.58) 100%
  );
}

.decor-text-highlight,
.decor-highlight {
  background-image: linear-gradient(
    105deg,
    rgba(111, 95, 154, 0.14) 0%,
    rgba(118, 167, 156, 0.12) 45%,
    rgba(223, 175, 156, 0.1) 100%
  );
  background-size: 100% 88%;
  background-repeat: no-repeat;
  background-position: 0 0.68em;
}

.section-dark .decor-text-highlight,
.section-dark .decor-highlight {
  background-image: linear-gradient(
    105deg,
    rgba(154, 143, 192, 0.16) 0%,
    rgba(118, 167, 156, 0.1) 50%,
    rgba(223, 175, 156, 0.08) 100%
  );
}

a.decor-text-underline,
a.decor-text-highlight,
a.decor-text-accent,
a.decor-underline,
a.decor-highlight {
  transition: filter var(--transition-base);
}

a.decor-text-underline:hover,
a.decor-text-highlight:hover,
a.decor-text-accent:hover,
a.decor-underline:hover,
a.decor-highlight:hover {
  filter: brightness(1.06);
}

/* —— Hero word energy (once only) —— */

.decor-word-energy {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
  color: inherit;
  overflow: visible;
}

.decor-word-energy::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.05em;
  right: -0.05em;
  top: 50%;
  height: 0.55em;
  transform: translateY(-50%);
  border-radius: 0.12em 0.18em 0.1em 0.16em;
  background: linear-gradient(
    102deg,
    rgba(225, 97, 74, 0.18) 0%,
    rgba(223, 175, 156, 0.32) 48%,
    rgba(118, 167, 156, 0.16) 100%
  );
}

.decor-word-energy::after {
  content: none;
}

.section-dark .decor-word-energy::before {
  background: linear-gradient(
    102deg,
    rgba(225, 97, 74, 0.24) 0%,
    rgba(223, 175, 156, 0.2) 52%,
    rgba(118, 167, 156, 0.14) 100%
  );
}

/* —— Animations —— */

@keyframes decor-dash {
  to {
    stroke-dashoffset: var(--decor-march);
  }
}

@keyframes decor-field-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(0.35rem, -0.22rem, 0) rotate(0.45deg);
  }
}

@keyframes decor-energy-breath {
  0%,
  100% {
    opacity: var(--decor-opacity-base, 0.48);
  }

  50% {
    opacity: var(--decor-opacity-peak, 0.62);
  }
}

@keyframes decor-path-current {
  to {
    stroke-dashoffset: -160;
  }
}

@keyframes decor-path-breath {
  0%,
  100% {
    opacity: 0.72;
  }

  50% {
    opacity: 0.96;
  }
}

@keyframes decor-signal-flow {
  to {
    stroke-dashoffset: -238;
  }
}

@keyframes decor-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0.35rem, -0.25rem, 0);
  }
}

@keyframes decor-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -0.35rem, 0);
  }
}

.decor-pattern--drift {
  /* drift enabled only under html[data-motion="ok"] */
}

/* —— Static baseline — no decorative animation unless explicitly enabled —— */

.decor-pattern__path,
.decor-pattern__edge,
.decor-pattern__thread,
.decor-word-energy::before {
  animation: none;
}

/* —— Motion enabled: html[data-motion="ok"] only —— */

html[data-motion="ok"] .decor-pattern--living,
html[data-motion="ok"] .decor-pattern--living-quiet,
html[data-motion="ok"] .decor-pattern--living-soft {
  animation: decor-energy-breath 32s ease-in-out infinite;
}

html[data-motion="ok"] .decor-pattern--living {
  animation-duration: 28s;
}

html[data-motion="ok"] .decor-pattern .decor-pattern__signal-path {
  animation: decor-signal-flow 20s linear infinite !important;
}

html[data-motion="ok"] .decor-pattern .decor-pattern__signal-path--primary {
  animation-duration: 14s !important;
}

html[data-motion="ok"] .decor-pattern .decor-pattern__signal-path--secondary {
  animation-duration: 22s !important;
  animation-direction: reverse !important;
}

html[data-motion="ok"] .decor-pattern .decor-pattern__signal-path--quiet {
  animation-duration: 26s !important;
}

html[data-motion="ok"] .decor-pattern--right-echo .decor-pattern__signal-path {
  animation-duration: 30s !important;
}

html[data-motion="ok"] .problem-section .decor-pattern .decor-pattern__signal-path--primary {
  animation-duration: 12s !important;
}

html[data-motion="ok"] .contact-triage-section .decor-pattern .decor-pattern__signal-path--primary {
  animation-duration: 13s !important;
}

/* —— Explicit off + data-motion safety —— */

html[data-motion="off"] .decor-pattern,
html[data-motion="off"] .decor-pattern__path,
html[data-motion="off"] .decor-pattern__signal-path,
html[data-motion="off"] .decor-pattern__edge,
html[data-motion="off"] .decor-pattern__thread,
html[data-motion="off"] .decor-word-energy::before {
  animation: none !important;
  transition: none !important;
}

html[data-motion="off"] .decor-pattern--living,
html[data-motion="off"] .decor-pattern--living-quiet,
html[data-motion="off"] .decor-pattern--living-soft,
html[data-motion="reduced"] .decor-pattern--living,
html[data-motion="reduced"] .decor-pattern--living-quiet,
html[data-motion="reduced"] .decor-pattern--living-soft {
  opacity: var(--decor-opacity-base, var(--decor-opacity-standard)) !important;
}

html[data-motion="off"] .decor-pattern--right-echo,
html[data-motion="reduced"] .decor-pattern--right-echo {
  opacity: 0.16 !important;
  animation: none !important;
}

html[data-motion="reduced"] .decor-pattern__path,
html[data-motion="reduced"] .decor-pattern__signal-path,
html[data-motion="reduced"] .decor-pattern__edge,
html[data-motion="reduced"] .decor-pattern__thread {
  animation: none !important;
}

html[data-motion="reduced"] .decor-pattern--living,
html[data-motion="reduced"] .decor-pattern--living-quiet,
html[data-motion="reduced"] .decor-pattern--living-soft {
  animation: decor-energy-breath 120s ease-in-out infinite !important;
}

/* —— Reduced motion —— */

@media (prefers-reduced-motion: reduce) {
  .decor-pattern,
  .decor-pattern__path,
  .decor-pattern__signal-path,
  .decor-pattern__edge,
  .decor-pattern__thread,
  .decor-word-energy::before {
    animation: none !important;
    transition: none !important;
  }

  .decor-pattern--living,
  .decor-pattern--living-quiet,
  .decor-pattern--living-soft {
    opacity: var(--decor-opacity-base, var(--decor-opacity-standard)) !important;
  }

  .decor-pattern--right-echo {
    opacity: 0.16 !important;
  }

  .decor-pattern--drift,
  .decor-pattern--float {
    animation: none !important;
  }

  a.decor-text-underline,
  a.decor-text-highlight,
  a.decor-text-accent,
  a.decor-underline,
  a.decor-highlight {
    transition: none !important;
  }
}

/* —— Mobile —— */

@media (max-width: 47.99rem) {
  .decor-pattern-host {
    --decor-opacity: 0.18;
  }

  .section-light.decor-pattern-host,
  .section-light .decor-pattern-host {
    --decor-opacity: 0.08;
  }

  .decor-pattern--clarity-field,
  .decor-pattern--composed-field {
    left: -36%;
    top: 0.25rem;
    width: min(46vw, 12rem);
    max-height: 11rem;
    --decor-opacity: 0.14;
    -webkit-mask-image: linear-gradient(
      90deg,
      #000 0%,
      #000 62%,
      transparent 92%
    );
    mask-image: linear-gradient(
      90deg,
      #000 0%,
      #000 62%,
      transparent 92%
    );
  }

  .problem-section .decor-pattern--clarity-field,
  .services-intro .decor-pattern--clarity-field,
  .contact-triage-section .decor-pattern--clarity-field {
    width: min(42vw, 11rem);
    --decor-opacity: 0.12;
  }

  .problem-section .decor-pattern__signal-layer,
  .services-intro .decor-pattern__signal-layer,
  .contact-triage-section .decor-pattern__signal-layer {
    display: none;
  }

  .problem-section .decor-pattern:has(.decor-pattern__signal-layer) .decor-pattern__path--solid,
  .services-intro .decor-pattern:has(.decor-pattern__signal-layer) .decor-pattern__path--solid,
  .contact-triage-section .decor-pattern:has(.decor-pattern__signal-layer) .decor-pattern__path--solid {
    opacity: 1;
  }

  .problem-section .decor-pattern:has(.decor-pattern__signal-layer) .decor-pattern__path--base-arc,
  .services-intro .decor-pattern:has(.decor-pattern__signal-layer) .decor-pattern__path--base-arc,
  .contact-triage-section .decor-pattern:has(.decor-pattern__signal-layer) .decor-pattern__path--base-arc {
    opacity: 0.46;
  }

  .problem-section .decor-pattern:has(.decor-pattern__signal-layer) .decor-pattern__path--flow.decor-pattern__path--solid,
  .services-intro .decor-pattern:has(.decor-pattern__signal-layer) .decor-pattern__path--flow.decor-pattern__path--solid,
  .contact-triage-section .decor-pattern:has(.decor-pattern__signal-layer) .decor-pattern__path--flow.decor-pattern__path--solid {
    stroke-width: 1.2;
  }

  .problem-section .decor-pattern:has(.decor-pattern__signal-layer) .decor-pattern__path--arc.decor-pattern__path--solid,
  .services-intro .decor-pattern:has(.decor-pattern__signal-layer) .decor-pattern__path--arc.decor-pattern__path--solid,
  .contact-triage-section .decor-pattern:has(.decor-pattern__signal-layer) .decor-pattern__path--arc.decor-pattern__path--solid {
    stroke-width: 1.75;
  }

  /* Off-canvas / edge patterns: one quiet signal only */
  .decor-pattern--offcanvas-right .decor-pattern__signal-layer,
  .decor-pattern--flow .decor-pattern__signal-layer,
  .decor-pattern--pathway .decor-pattern__signal-layer {
    display: block;
    opacity: 0.32;
  }

  .decor-pattern--offcanvas-right .decor-pattern__signal-path--primary,
  .decor-pattern--offcanvas-right .decor-pattern__signal-path--secondary,
  .decor-pattern--flow .decor-pattern__signal-path--primary,
  .decor-pattern--flow .decor-pattern__signal-path--secondary,
  .decor-pattern--pathway .decor-pattern__signal-path--primary,
  .decor-pattern--pathway .decor-pattern__signal-path--secondary {
    display: none;
  }

  .decor-pattern-host.has-energy-field::before,
  .decor-pattern-host.has-depth-field::before {
    background:
      linear-gradient(
        160deg,
        rgba(98, 230, 212, 0.035) 0%,
        transparent 28%
      ),
      linear-gradient(
        20deg,
        rgba(126, 231, 135, 0.028) 0%,
        transparent 24%
      );
  }

  .hero.decor-pattern-host.has-energy-field::before {
    background: linear-gradient(
      195deg,
      rgba(98, 230, 212, 0.024) 0%,
      transparent 26%
    );
  }

  .hero .decor-pattern--hero-whisper {
    display: block;
    top: -12%;
    right: -24%;
    width: min(9rem, 34vw);
    height: min(9rem, 34vw);
    --decor-opacity: 0.07;
  }

  .hero .decor-pattern--hero-whisper .decor-pattern__signal-path--primary,
  .hero .decor-pattern--hero-whisper .decor-pattern__signal-path--secondary {
    display: none;
  }

  .hero .decor-pattern--hero-whisper .decor-pattern__signal-layer {
    opacity: 0.4;
  }

  .decor-pattern--flow.decor-pattern--edge-left,
  .decor-pattern--pathway.decor-pattern--edge-left {
    left: -22%;
    width: min(34%, 8rem);
    --decor-opacity: 0.1;
  }

  .decor-pattern--offcanvas-right {
    right: -42%;
    width: min(38vw, 10rem);
    height: min(38vw, 10rem);
    --decor-opacity: 0.12;
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0%,
      #000 28%,
      #000 100%
    );
    mask-image: linear-gradient(
      90deg,
      transparent 0%,
      #000 28%,
      #000 100%
    );
  }

  .proof-section .decor-pattern--offcanvas-right {
    top: -4%;
    --decor-opacity: 0.1;
  }

  .decor-pattern__wash {
    opacity: 0.18;
  }

  .decor-pattern--edge-left {
    left: -18%;
    width: min(36%, 9rem);
  }

  .decor-pattern--edge-right,
  .decor-pattern--offcanvas-right {
    right: -36%;
    width: min(var(--decor-size-lg), 10rem);
    height: min(var(--decor-size-lg), 10rem);
  }

  .decor-pattern--offcanvas-left,
  .decor-pattern--hero-whisper {
    width: min(var(--decor-size-lg), 10rem);
    height: min(var(--decor-size-lg), 10rem);
  }

  .decor-pattern--pathway.decor-pattern--edge-left {
    width: min(30%, 7rem);
    top: 12%;
  }

  .decor-pattern--triangle {
    --decor-opacity: 0.22;
  }

  .decor-pattern--right-echo {
    display: none;
  }

  .problem-section__content,
  .proof-section__intro,
  .services-intro__content,
  .contact-triage {
    position: relative;
    z-index: 1;
  }
}

@media (min-width: 48rem) and (max-width: 63.99rem) {
  .decor-pattern--clarity-field,
  .decor-pattern--composed-field {
    left: -22%;
    width: min(34vw, 22rem);
    --decor-opacity: 0.22;
  }

  .decor-pattern--offcanvas-right {
    right: -32%;
    --decor-opacity: 0.18;
  }
}
