/*
 * Metriq Foundation motion and interaction layer — v3.7
 * Progressive enhancement only. All motion respects prefers-reduced-motion.
 */

:root {
  --motion-ease: cubic-bezier(.2,.72,.18,1);
  --motion-spring: cubic-bezier(.16,1,.3,1);
  --motion-fast: 180ms;
  --motion-medium: 520ms;
  --motion-slow: 880ms;
}

html {
  scroll-behavior: smooth;
}

html.reduce-motion {
  scroll-behavior: auto;
}

body {
  --pointer-x: 50%;
  --pointer-y: 50%;
}

/* Page entry and scroll reveal ----------------------------------------- */

html.motion-ready:not(.reduce-motion) .reveal,
html.motion-ready:not(.reduce-motion) .motion-reveal {
  --reveal-y: 34px;
  --reveal-scale: .988;
  opacity: 0;
  filter: blur(5px);
  transition:
    opacity var(--motion-slow) var(--motion-ease) var(--motion-delay, var(--delay, 0ms)),
    filter var(--motion-slow) var(--motion-ease) var(--motion-delay, var(--delay, 0ms)),
    transform var(--motion-slow) var(--motion-spring) var(--motion-delay, var(--delay, 0ms));
  will-change: transform, opacity, filter;
}

html.motion-ready:not(.reduce-motion) .reveal:not(.motion-tilt),
html.motion-ready:not(.reduce-motion) .motion-reveal:not(.motion-tilt) {
  transform: translate3d(0, var(--reveal-y), 0) scale(var(--reveal-scale));
}

html.motion-ready:not(.reduce-motion) .reveal.is-visible,
html.motion-ready:not(.reduce-motion) .motion-reveal.is-visible {
  --reveal-y: 0px;
  --reveal-scale: 1;
  opacity: 1;
  filter: blur(0);
}

html.motion-ready:not(.reduce-motion) .motion-reveal-left {
  --reveal-y: 0px;
  transform: translate3d(-34px, 0, 0) scale(.99);
}

html.motion-ready:not(.reduce-motion) .motion-reveal-left.is-visible {
  transform: translate3d(0, 0, 0) scale(1);
}

html.motion-ready:not(.reduce-motion) .motion-clip {
  clip-path: inset(0 0 100% 0);
  opacity: 1;
  transform: none;
  filter: none;
  transition: clip-path 980ms var(--motion-spring) var(--motion-delay, 0ms);
}

html.motion-ready:not(.reduce-motion) .motion-clip.is-visible {
  clip-path: inset(0 0 0 0);
}

/* Global detail --------------------------------------------------------- */

.brand-rule {
  background-size: 220% 100%;
  animation: metriq-brand-flow 8s linear infinite;
}

.scroll-progress span {
  transform-origin: left center;
  box-shadow: 0 0 18px rgba(42, 209, 137, .34);
}

.site-header {
  transition:
    background-color 280ms ease,
    border-color 280ms ease,
    box-shadow 280ms ease,
    transform 280ms var(--motion-ease);
}

.site-header.is-scrolled {
  box-shadow: 0 12px 40px rgba(7, 53, 46, .06);
}

.desktop-nav a.is-current {
  color: var(--ink);
}

.desktop-nav a.is-current::after {
  transform: scaleX(1);
}

.header-cta svg,
.button svg,
.paper-button svg {
  transition: transform 260ms var(--motion-spring);
}

.header-cta:hover svg,
.header-cta:focus-visible svg,
.button:hover svg,
.button:focus-visible svg,
.paper-button:hover svg,
.paper-button:focus-visible svg {
  transform: translate(3px, -3px);
}

.motion-magnetic {
  --mag-x: 0px;
  --mag-y: 0px;
  transform: translate3d(var(--mag-x), var(--mag-y), 0);
  transition: transform 300ms var(--motion-spring), background-color 180ms ease, border-color 180ms ease, color 180ms ease;
  will-change: transform;
}

/* Pointer-responsive surfaces ----------------------------------------- */

.motion-surface {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  --spot-x: 50%;
  --spot-y: 50%;
}

.motion-surface > *:not(.motion-glow) {
  position: relative;
  z-index: 1;
}

.motion-glow {
  position: absolute;
  z-index: 0;
  inset: -1px;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(420px circle at var(--spot-x) var(--spot-y), rgba(42, 209, 137, .12), transparent 48%);
  transition: opacity 260ms ease;
}

.section-dark .motion-glow,
.page-section-dark .motion-glow,
.paper-hero .motion-glow,
.participate .motion-glow,
.horizon .motion-glow {
  background: radial-gradient(440px circle at var(--spot-x) var(--spot-y), rgba(42, 209, 137, .11), rgba(25, 114, 220, .045) 32%, transparent 58%);
}

.prism-page .motion-glow,
.prism-branded .motion-glow {
  background: radial-gradient(420px circle at var(--spot-x) var(--spot-y), rgba(43, 223, 163, .12), rgba(25, 114, 220, .055) 34%, transparent 58%);
}

.motion-surface:hover .motion-glow,
.motion-surface:focus-within .motion-glow {
  opacity: 1;
}

.motion-tilt {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --tilt-lift: 0px;
  transform:
    perspective(1200px)
    translate3d(0, calc(var(--reveal-y, 0px) + var(--tilt-lift)), 0)
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y))
    scale(var(--reveal-scale, 1));
  transform-style: preserve-3d;
  transition:
    transform 420ms var(--motion-spring),
    border-color 220ms ease,
    box-shadow 220ms ease,
    opacity var(--motion-slow) var(--motion-ease) var(--motion-delay, var(--delay, 0ms)),
    filter var(--motion-slow) var(--motion-ease) var(--motion-delay, var(--delay, 0ms));
  will-change: transform;
}

.motion-tilt:hover,
.motion-tilt:focus-within {
  --tilt-lift: -6px;
}

/* Hero signal field ----------------------------------------------------- */

.hero-field-canvas,
.ambient-field-canvas,
.prism-spectrum-canvas {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-field-canvas {
  z-index: -1;
  opacity: .88;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.08) 31%, #000 55%, #000 100%);
}

.hero h1 span {
  position: relative;
  width: fit-content;
  background: linear-gradient(90deg, var(--emerald), var(--signal), var(--blue), var(--emerald));
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: metriq-text-flow 9s ease-in-out infinite;
}

.hero h1 span::after {
  position: absolute;
  right: 0;
  bottom: -.08em;
  left: 0;
  height: .025em;
  min-height: 2px;
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--signal), var(--blue));
  transition: transform 1.1s var(--motion-spring) 540ms;
}

html.motion-ready .hero .reveal.is-visible h1 span::after {
  transform: scaleX(1);
}

.hero-glow-green {
  animation: metriq-glow-drift-a 14s ease-in-out infinite alternate;
}

.hero-glow-blue {
  animation: metriq-glow-drift-b 18s ease-in-out infinite alternate;
}

.pledge-card {
  position: relative;
  overflow: hidden;
  transition: transform 280ms var(--motion-spring), border-color 220ms ease, box-shadow 220ms ease;
}

.pledge-card::after {
  position: absolute;
  top: -120%;
  left: -35%;
  width: 28%;
  height: 340%;
  content: "";
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.74), transparent);
  animation: metriq-pledge-scan 7s ease-in-out infinite;
  pointer-events: none;
}

.pledge-card:hover {
  transform: translateY(-3px);
  border-color: rgba(6, 162, 105, .42);
  box-shadow: 0 18px 50px rgba(7, 53, 46, .08);
}

.hero-facts li > span {
  animation: metriq-status-pulse 2.8s ease-in-out infinite;
}

.hero-facts li:nth-child(2) > span { animation-delay: .55s; }
.hero-facts li:nth-child(3) > span { animation-delay: 1.1s; }

/* Process strip --------------------------------------------------------- */

.process-strip-inner.motion-process {
  display: block;
  max-width: none;
  padding-inline: 0;
  overflow: hidden;
}

.process-track {
  display: flex;
  width: max-content;
  animation: metriq-process-marquee 28s linear infinite;
  will-change: transform;
}

.process-sequence {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 3.2rem);
  min-width: max-content;
  padding-inline: clamp(1.2rem, 4vw, 4rem);
}

.process-sequence span {
  position: relative;
}

.process-sequence span::after {
  position: absolute;
  right: 0;
  bottom: -.55rem;
  left: 0;
  height: 1px;
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--signal);
  animation: metriq-process-step 5.6s ease-in-out infinite;
}

.process-sequence span:nth-of-type(2)::after { animation-delay: 1.12s; }
.process-sequence span:nth-of-type(3)::after { animation-delay: 2.24s; }
.process-sequence span:nth-of-type(4)::after { animation-delay: 3.36s; }
.process-sequence span:nth-of-type(5)::after { animation-delay: 4.48s; }

.process-strip:hover .process-track,
.process-strip:focus-within .process-track {
  animation-play-state: paused;
}

/* Mission cards --------------------------------------------------------- */

.build-categories {
  position: relative;
}

.build-categories::after {
  position: absolute;
  z-index: 0;
  top: calc(50% - 1px);
  right: 8%;
  left: 8%;
  height: 1px;
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, transparent, rgba(6,162,105,.38), rgba(25,114,220,.32), transparent);
  transition: transform 1.4s var(--motion-spring) 280ms;
}

.build-categories:has(.build-card.is-visible)::after {
  transform: scaleX(1);
}

.build-card {
  z-index: 1;
}

.build-card .build-icon {
  transition: transform 600ms var(--motion-spring), filter 300ms ease;
}

.build-card:hover .build-icon,
.build-card:focus-within .build-icon {
  transform: translateY(-5px) scale(1.04);
  filter: drop-shadow(0 12px 22px rgba(6,162,105,.15));
}

.infrastructure-icon i {
  animation: metriq-orbit-dot 6s linear infinite;
  animation-play-state: paused;
}

.build-card:hover .infrastructure-icon i,
.build-card.is-visible .infrastructure-icon i {
  animation-play-state: running;
}

.products-icon i {
  transform-origin: bottom center;
  animation: metriq-bar-breathe 3.8s ease-in-out infinite;
}

.products-icon i:nth-child(2) { animation-delay: .45s; }
.products-icon i:nth-child(3) { animation-delay: .9s; }

.companies-icon i {
  animation: metriq-node-pulse 3.2s ease-in-out infinite;
}

.companies-icon i:nth-child(2) { animation-delay: .35s; }
.companies-icon i:nth-child(3) { animation-delay: .7s; }
.companies-icon i:nth-child(4) { animation-delay: 1.05s; }
.companies-icon i:nth-child(5) { animation-delay: 1.4s; }

/* Outcomes -------------------------------------------------------------- */

.outcome-panel {
  opacity: .66;
  transform-origin: center center;
  transition:
    opacity 420ms ease,
    transform 520ms var(--motion-spring),
    border-color 220ms ease,
    background 220ms ease;
}

.outcome-panel.is-active,
.outcome-panel:hover {
  opacity: 1;
  transform: translateX(7px) scale(1.008);
  border-color: rgba(42, 209, 137, .34);
  background: rgba(255,255,255,.055);
}

.outcome-panel.is-active .abundance-signal span {
  transform-origin: bottom center;
  animation: metriq-bar-rise 2.8s var(--motion-spring) infinite alternate;
}

.outcome-panel.is-active .abundance-signal span:nth-child(2) { animation-delay: .16s; }
.outcome-panel.is-active .abundance-signal span:nth-child(3) { animation-delay: .32s; }
.outcome-panel.is-active .abundance-signal span:nth-child(4) { animation-delay: .48s; }

.outcome-panel.is-active .conservation-signal::before {
  animation: metriq-ring-breathe 4.2s ease-in-out infinite;
}

.outcome-panel.is-active .conservation-signal::after {
  animation: metriq-ring-breathe 4.2s ease-in-out .7s infinite reverse;
}

.outcome-panel.is-active .conservation-signal span,
.outcome-panel.is-active .conservation-signal i {
  animation: metriq-node-pulse 2.6s ease-in-out infinite;
}

.outcome-panel.is-active .access-signal span {
  animation: metriq-access-cell 3.4s ease-in-out infinite;
}

.outcome-panel.is-active .access-signal span:nth-child(2) { animation-delay: .35s; }
.outcome-panel.is-active .access-signal span:nth-child(3) { animation-delay: .7s; }
.outcome-panel.is-active .access-signal span:nth-child(4) { animation-delay: 1.05s; }

.target-ledger {
  position: relative;
}

.target-ledger::after {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18%;
  content: "";
  transform: skewX(-16deg);
  background: linear-gradient(90deg, transparent, rgba(42,209,137,.08), transparent);
  animation: metriq-ledger-scan 8s linear infinite;
  pointer-events: none;
}

/* Operating model ------------------------------------------------------- */

.model-interface {
  position: relative;
}

.model-sequence-progress {
  position: absolute !important;
  z-index: 3 !important;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  overflow: hidden;
  background: rgba(4,91,93,.08);
}

.model-sequence-progress i {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--signal), var(--emerald), var(--blue));
}

.model-interface.model-progressing .model-sequence-progress i {
  animation: metriq-model-progress var(--model-duration, 5600ms) linear forwards;
}

.model-interface.model-paused .model-sequence-progress i {
  animation-play-state: paused;
}

.model-step {
  position: relative;
  overflow: hidden;
}

.model-step::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  content: "";
  transform: scaleY(0);
  transform-origin: bottom center;
  background: linear-gradient(180deg, var(--signal), var(--blue));
  transition: transform 480ms var(--motion-spring);
}

.model-step.is-active::after {
  transform: scaleY(1);
}

.diagram-rings,
.diagram-rings::before,
.diagram-rings::after {
  animation: metriq-diagram-rotate 18s linear infinite;
}

.diagram-rings::before { animation-duration: 13s; animation-direction: reverse; }
.diagram-rings::after { animation-duration: 9s; }

.model-diagram img {
  animation: metriq-mark-float 5.5s ease-in-out infinite;
}

.diagram-node {
  animation: metriq-node-pulse 2.8s ease-in-out infinite;
}

.diagram-node-b { animation-delay: .55s; }
.diagram-node-c { animation-delay: 1.1s; }

.model-meter i {
  position: relative;
  overflow: visible;
}

.model-meter i::after {
  position: absolute;
  top: 50%;
  right: -4px;
  width: 8px;
  height: 8px;
  content: "";
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 6px rgba(42,209,137,.13), 0 0 24px rgba(42,209,137,.45);
}

/* Ecosystem ------------------------------------------------------------- */

.work-grid {
  position: relative;
  isolation: isolate;
}

.ecosystem-field-canvas {
  position: absolute;
  z-index: 0;
  inset: -24px;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  pointer-events: none;
}

.work-card {
  z-index: 1;
}

.work-grid.has-ecosystem-field .work-card {
  transition:
    opacity 320ms ease,
    transform 420ms var(--motion-spring),
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.work-grid.has-active-card .work-card:not(.is-ecosystem-active):not(.is-ecosystem-connected) {
  opacity: .72;
}

.work-card.is-ecosystem-active {
  border-color: rgba(6,162,105,.48);
  box-shadow: 0 26px 70px rgba(7,53,46,.12);
}

.work-card.is-ecosystem-connected {
  border-color: rgba(25,114,220,.26);
}

.work-symbol {
  transition: transform 560ms var(--motion-spring), filter 300ms ease;
}

.work-card:hover .work-symbol,
.work-card:focus-within .work-symbol {
  transform: translateY(-4px) scale(1.015);
  filter: drop-shadow(0 15px 24px rgba(6,162,105,.12));
}

.symbol-network span,
.symbol-network i,
.symbol-programs span,
.symbol-programs i {
  animation: metriq-node-pulse 3.4s ease-in-out infinite;
}

.symbol-network span:nth-child(2), .symbol-programs span:nth-child(2) { animation-delay: .42s; }
.symbol-network span:nth-child(3), .symbol-programs span:nth-child(3) { animation-delay: .84s; }
.symbol-network span:nth-child(4) { animation-delay: 1.26s; }
.symbol-network i:nth-of-type(1), .symbol-programs i:nth-of-type(1) { animation-delay: .63s; }
.symbol-network i:nth-of-type(2) { animation-delay: 1.05s; }
.symbol-network i:nth-of-type(3) { animation-delay: 1.47s; }

.symbol-software span {
  background-size: 220% 100%;
  animation: metriq-brand-flow 4.8s linear infinite;
}

.symbol-dynamics span {
  animation: metriq-dynamics-cycle 4.2s ease-in-out infinite;
}

.symbol-dynamics span:nth-child(2) { animation-delay: .35s; }
.symbol-dynamics span:nth-child(3) { animation-delay: .7s; }
.symbol-dynamics span:nth-child(4) { animation-delay: 1.05s; }

.prism-card-symbol img,
.record-symbol img {
  animation: metriq-prism-float 6s ease-in-out infinite;
}

/* Long horizon ---------------------------------------------------------- */

.horizon-glow {
  animation: metriq-horizon-glow 18s ease-in-out infinite alternate;
}

.century-line span {
  transform: translateY(-50%) scaleX(0);
  transform-origin: left center;
  transition: transform 1.8s var(--motion-spring) 220ms;
}

.century-panel.is-timeline-visible .century-line span {
  transform: translateY(-50%) scaleX(1);
}

.century-line::after {
  position: absolute;
  top: 50%;
  left: var(--timeline-x, 0%);
  width: 90px;
  height: 26px;
  content: "";
  transform: translate(-50%, -50%);
  opacity: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42,209,137,.34), transparent 68%);
  transition: opacity 220ms ease;
  pointer-events: none;
}

.century-panel:hover .century-line::after {
  opacity: 1;
}

.century-line i {
  opacity: 0;
  transform: translate(-50%, -50%) scale(.4);
  transition: opacity 400ms ease, transform 620ms var(--motion-spring);
}

.century-panel.is-timeline-visible .century-line i {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.century-panel.is-timeline-visible .century-line i:nth-of-type(1) { transition-delay: .2s; }
.century-panel.is-timeline-visible .century-line i:nth-of-type(2) { transition-delay: .5s; }
.century-panel.is-timeline-visible .century-line i:nth-of-type(3) { transition-delay: .8s; }
.century-panel.is-timeline-visible .century-line i:nth-of-type(4) { transition-delay: 1.1s; }
.century-panel.is-timeline-visible .century-line i:nth-of-type(5) { transition-delay: 1.4s; }

.century-principles > div {
  transition: background 240ms ease, transform 360ms var(--motion-spring);
}

.century-principles > div:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,.035);
}

/* Evidence -------------------------------------------------------------- */

.evidence-board {
  position: relative;
}

.evidence-board::after {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 16%;
  content: "";
  transform: skewX(-14deg);
  opacity: .55;
  background: linear-gradient(90deg, transparent, rgba(42,209,137,.07), transparent);
  animation: metriq-evidence-scan 9s linear infinite;
  pointer-events: none;
}

.evidence-grid article {
  transition: background 220ms ease, transform 360ms var(--motion-spring);
}

.evidence-grid article:hover {
  transform: translateY(-5px);
  background: #fff;
}

.evidence-state i {
  animation: metriq-status-pulse 2.8s ease-in-out infinite;
}

.evidence-grid article:nth-child(2) .evidence-state i { animation-delay: .4s; }
.evidence-grid article:nth-child(3) .evidence-state i { animation-delay: .8s; }
.evidence-grid article:nth-child(4) .evidence-state i { animation-delay: 1.2s; }

.proof-card {
  transition: background 220ms ease, transform 360ms var(--motion-spring);
}

.proof-card:hover {
  transform: translateY(-4px);
  background: var(--surface-tint);
}

/* Participate ----------------------------------------------------------- */

.participate-rings {
  transform: translate3d(var(--rings-x, 0px), calc(-50% + var(--rings-y, 0px)), 0);
  transition: transform 1.2s var(--motion-ease);
  animation: metriq-ring-turn 28s linear infinite;
}

.participate-rings::before { animation: metriq-ring-turn 18s linear infinite reverse; }
.participate-rings::after { animation: metriq-participate-breathe 6s ease-in-out infinite; }

.participate-card {
  position: relative;
}

.participate-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  content: "";
  transform: scaleY(0);
  transform-origin: bottom center;
  background: linear-gradient(180deg, var(--signal), var(--blue));
  transition: transform 420ms var(--motion-spring);
}

.participate-card:hover::before,
.participate-card:focus-visible::before {
  transform: scaleY(1);
}

/* Section rail ---------------------------------------------------------- */

.section-rail {
  position: fixed;
  z-index: 850;
  top: 50%;
  right: 18px;
  display: grid;
  gap: 4px;
  transform: translateY(-50%);
  padding: 8px;
  border: 1px solid rgba(11,13,14,.08);
  border-radius: 999px;
  background: rgba(247,250,249,.78);
  box-shadow: 0 16px 46px rgba(7,53,46,.08);
  backdrop-filter: blur(18px);
  transition: background 250ms ease, border-color 250ms ease;
}

.section-rail.on-dark {
  border-color: rgba(255,255,255,.12);
  background: rgba(7,9,9,.72);
}

.section-rail a {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .46rem;
  transition: background 220ms ease, color 220ms ease, transform 220ms var(--motion-spring);
}

.section-rail.on-dark a { color: rgba(247,250,249,.45); }

.section-rail a::after {
  position: absolute;
  right: calc(100% + 10px);
  width: max-content;
  padding: .45rem .58rem;
  content: attr(data-label);
  transform: translateX(8px);
  opacity: 0;
  border: 1px solid rgba(11,13,14,.09);
  border-radius: 6px;
  background: rgba(247,250,249,.94);
  color: var(--ink);
  font-size: .52rem;
  letter-spacing: .06em;
  pointer-events: none;
  transition: opacity 180ms ease, transform 220ms var(--motion-spring);
}

.section-rail.on-dark a::after {
  border-color: rgba(255,255,255,.1);
  background: rgba(7,9,9,.94);
  color: #fff;
}

.section-rail a:hover::after,
.section-rail a:focus-visible::after {
  transform: translateX(0);
  opacity: 1;
}

.section-rail a.is-current {
  transform: scale(1.08);
  background: linear-gradient(135deg, var(--signal), var(--blue));
  color: var(--ink);
}

/* PRISM-specific motion ------------------------------------------------- */

.prism-spectrum-canvas {
  z-index: 0;
  opacity: .92;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.05) 35%, #000 60%, #000 100%);
}

.prism-hero-layout,
.prism-principle-strip {
  position: relative;
  z-index: 1;
}

.prism-hero-record::after {
  position: absolute;
  top: -20%;
  bottom: -20%;
  width: 22%;
  content: "";
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(43,223,163,.11), transparent);
  animation: metriq-repository-scan 7s ease-in-out infinite;
  pointer-events: none;
}

.prism-principle-strip span {
  position: relative;
  overflow: hidden;
}

.prism-principle-strip span::after {
  position: absolute;
  right: 20%;
  bottom: 0;
  left: 20%;
  height: 2px;
  content: "";
  transform: scaleX(0);
  background: var(--prism-gradient);
  animation: metriq-principle-step 7.5s ease-in-out infinite;
}

.prism-principle-strip span:nth-child(2)::after { animation-delay: 1.5s; }
.prism-principle-strip span:nth-child(3)::after { animation-delay: 3s; }
.prism-principle-strip span:nth-child(4)::after { animation-delay: 4.5s; }
.prism-principle-strip span:nth-child(5)::after { animation-delay: 6s; }

.definition-panel blockquote span {
  background: linear-gradient(90deg, var(--prism-emerald), var(--prism-signal-green), var(--prism-electric-blue));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: metriq-text-flow 8s ease-in-out infinite;
}

.catalog-card.is-filtering-out {
  transform: translateY(10px) scale(.98);
  opacity: 0;
}

.catalog-card.is-filtering-in {
  transform: translateY(14px) scale(.98);
  opacity: 0;
}

.catalog-card {
  transition:
    transform 440ms var(--motion-spring),
    opacity 260ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.catalog-cover img {
  transition: transform 900ms var(--motion-spring), opacity 300ms ease;
}

.catalog-card:hover .catalog-cover img,
.catalog-card:focus-within .catalog-cover img {
  transform: scale(1.045);
}

.prism-method-grid {
  position: relative;
}

.prism-method-grid::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 20%;
  height: 2px;
  content: "";
  background: var(--prism-gradient);
  box-shadow: 0 0 24px rgba(43,223,163,.26);
  animation: metriq-method-track 8s ease-in-out infinite;
}

.prism-method-step {
  opacity: .58;
  transition: opacity 320ms ease, background 240ms ease, transform 420ms var(--motion-spring);
}

.prism-method-step.is-method-active,
.prism-method-step:hover {
  transform: translateY(-5px);
  opacity: 1;
  background: rgba(255,255,255,.035);
}

.repository-primary-top img {
  animation: metriq-prism-float 6s ease-in-out infinite;
}

.repo-command::after {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 16%;
  content: "";
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(43,223,163,.16), transparent);
  animation: metriq-command-scan 6s linear infinite;
  pointer-events: none;
}

.repo-command {
  position: relative;
}

/* Contact form interaction --------------------------------------------- */

.contact-hero .ambient-field-canvas {
  z-index: 0;
  opacity: .72;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.1) 38%, #000 65%, #000 100%);
}

.contact-hero .wrap {
  z-index: 1;
}

.form-completion {
  position: relative;
  height: 34px;
  border-bottom: 1px solid var(--line);
  background: #fbfefd;
}

.form-completion-track {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(4,91,93,.08);
}

.form-completion-track i {
  display: block;
  width: var(--form-progress, 0%);
  height: 100%;
  background: linear-gradient(90deg, var(--signal), var(--emerald), var(--blue));
  transition: width 420ms var(--motion-spring);
}

.form-completion-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 31px;
  padding-inline: 1.25rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .5rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.form-completion-copy strong {
  color: var(--emerald);
}

.form-field {
  position: relative;
}

.form-field label::after,
.form-field legend::after {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  margin-left: .45rem;
  content: "✓";
  transform: scale(.35);
  opacity: 0;
  border-radius: 50%;
  background: var(--signal);
  color: var(--ink);
  font-size: .56rem;
  transition: opacity 220ms ease, transform 320ms var(--motion-spring);
}

.form-field.is-complete label::after,
.form-field.is-complete legend::after {
  transform: scale(1);
  opacity: 1;
}

.form-field input,
.form-field select,
.form-field textarea {
  transition: border-color 180ms ease, box-shadow 220ms ease, background 180ms ease, transform 220ms var(--motion-spring);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  transform: translateY(-2px);
}

.field-counter {
  position: absolute;
  right: .7rem;
  bottom: .45rem;
  padding: .2rem .35rem;
  border-radius: 4px;
  background: rgba(247,250,249,.9);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .48rem;
  pointer-events: none;
}

.form-field:has(.field-help) .field-counter {
  bottom: 2.45rem;
}

.contact-aside-section {
  transition: background 220ms ease;
}

.contact-aside-section:hover {
  background: var(--surface-tint);
}

/* Research-paper experience -------------------------------------------- */

.paper-hero .ambient-field-canvas {
  z-index: 0;
  opacity: .72;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.08) 35%, #000 62%, #000 100%);
}

.paper-hero-layout {
  z-index: 1;
}

.paper-cover-frame img {
  transition: transform 900ms var(--motion-spring);
}

.paper-cover-frame:hover img {
  transform: scale(1.02);
}

.paper-jump a.is-current {
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--emerald);
}

.explorer-metric strong.metric-updated {
  animation: metriq-metric-update 520ms var(--motion-spring);
}

.paper-figure {
  cursor: zoom-in;
}

.figure-open {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  text-align: inherit;
}

.figure-open img {
  transition: transform 700ms var(--motion-spring), filter 260ms ease;
}

.figure-open:hover img,
.figure-open:focus-visible img {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.02);
}

.figure-dialog {
  width: min(94vw, 1260px);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  background: #070909;
  color: #fff;
  box-shadow: 0 50px 140px rgba(0,0,0,.48);
}

.figure-dialog::backdrop {
  background: rgba(3,7,7,.78);
  backdrop-filter: blur(10px);
}

.figure-dialog-inner {
  display: grid;
  max-height: 92vh;
}

.figure-dialog img {
  width: 100%;
  max-height: calc(92vh - 76px);
  object-fit: contain;
  background: #fff;
}

.figure-dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
  padding: 1rem 1.2rem;
  color: rgba(247,250,249,.66);
  font-size: .78rem;
}

.figure-dialog-close {
  flex: 0 0 auto;
  min-height: 40px;
  padding: .55rem .75rem;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 7px;
  background: rgba(255,255,255,.06);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: .7rem;
  font-weight: 700;
}

/* Mobile menu entrance -------------------------------------------------- */

.mobile-menu.is-open .mobile-menu-inner > * {
  animation: metriq-menu-enter 520ms var(--motion-spring) both;
}

.mobile-menu.is-open .mobile-menu-inner > *:nth-child(2) { animation-delay: 40ms; }
.mobile-menu.is-open .mobile-menu-inner > *:nth-child(3) { animation-delay: 80ms; }
.mobile-menu.is-open .mobile-menu-inner > *:nth-child(4) { animation-delay: 120ms; }
.mobile-menu.is-open .mobile-menu-inner > *:nth-child(5) { animation-delay: 160ms; }
.mobile-menu.is-open .mobile-menu-inner > *:nth-child(6) { animation-delay: 200ms; }
.mobile-menu.is-open .mobile-menu-inner > *:nth-child(7) { animation-delay: 240ms; }
.mobile-menu.is-open .mobile-menu-inner > *:nth-child(8) { animation-delay: 280ms; }
.mobile-menu.is-open .mobile-menu-inner > *:nth-child(9) { animation-delay: 320ms; }
.mobile-menu.is-open .mobile-menu-inner > *:nth-child(10) { animation-delay: 360ms; }

/* Keyframes ------------------------------------------------------------- */

@keyframes metriq-brand-flow {
  from { background-position: 0% 50%; }
  to { background-position: 220% 50%; }
}

@keyframes metriq-text-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes metriq-glow-drift-a {
  from { transform: translate3d(-2%, -2%, 0) scale(.96); }
  to { transform: translate3d(7%, 5%, 0) scale(1.08); }
}

@keyframes metriq-glow-drift-b {
  from { transform: translate3d(3%, 5%, 0) scale(1.04); }
  to { transform: translate3d(-8%, -4%, 0) scale(.92); }
}

@keyframes metriq-pledge-scan {
  0%, 58% { transform: translateX(-190%) rotate(18deg); }
  76%, 100% { transform: translateX(650%) rotate(18deg); }
}

@keyframes metriq-status-pulse {
  0%, 100% { opacity: .62; transform: scale(.84); box-shadow: 0 0 0 3px rgba(42,209,137,.08); }
  50% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 7px rgba(42,209,137,.11); }
}

@keyframes metriq-process-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@keyframes metriq-process-step {
  0%, 14%, 100% { transform: scaleX(0); opacity: .25; }
  4%, 10% { transform: scaleX(1); opacity: 1; }
}

@keyframes metriq-orbit-dot {
  0% { transform: rotate(0deg) translateX(2px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(2px) rotate(-360deg); }
}

@keyframes metriq-bar-breathe {
  0%, 100% { transform: scaleY(.84); opacity: .56; }
  50% { transform: scaleY(1.04); opacity: 1; }
}

@keyframes metriq-node-pulse {
  0%, 100% { transform: scale(.82); opacity: .48; }
  50% { transform: scale(1.15); opacity: 1; }
}

@keyframes metriq-bar-rise {
  from { transform: scaleY(.72); opacity: .55; }
  to { transform: scaleY(1.04); opacity: 1; }
}

@keyframes metriq-ring-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(.9); opacity: .45; }
  50% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}

@keyframes metriq-access-cell {
  0%, 100% { transform: scale(.96); opacity: .52; }
  50% { transform: scale(1.04); opacity: 1; }
}

@keyframes metriq-ledger-scan {
  from { left: -28%; }
  to { left: 112%; }
}

@keyframes metriq-model-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes metriq-diagram-rotate {
  to { transform: rotate(360deg); }
}

@keyframes metriq-mark-float {
  0%, 100% { transform: translateY(-2px) scale(.98); }
  50% { transform: translateY(5px) scale(1.03); }
}

@keyframes metriq-dynamics-cycle {
  0%, 100% { transform: translateY(0) scaleY(.86); opacity: .55; }
  50% { transform: translateY(-5px) scaleY(1.05); opacity: 1; }
}

@keyframes metriq-prism-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-.4deg); }
  50% { transform: translate3d(0, -8px, 0) rotate(.6deg); }
}

@keyframes metriq-horizon-glow {
  from { transform: translate3d(-6%, 2%, 0) scale(.92); }
  to { transform: translate3d(8%, -4%, 0) scale(1.1); }
}

@keyframes metriq-evidence-scan {
  from { left: -24%; }
  to { left: 110%; }
}

@keyframes metriq-ring-turn {
  to { rotate: 360deg; }
}

@keyframes metriq-participate-breathe {
  0%, 100% { transform: scale(.92); opacity: .55; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes metriq-repository-scan {
  0%, 60% { left: -40%; opacity: 0; }
  68% { opacity: 1; }
  90%, 100% { left: 125%; opacity: 0; }
}

@keyframes metriq-principle-step {
  0%, 18%, 100% { transform: scaleX(0); opacity: .2; }
  6%, 13% { transform: scaleX(1); opacity: 1; }
}

@keyframes metriq-method-track {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(400%); }
}

@keyframes metriq-command-scan {
  from { left: -24%; }
  to { left: 112%; }
}

@keyframes metriq-metric-update {
  0% { transform: translateY(5px); opacity: .35; }
  55% { transform: translateY(-2px); opacity: 1; }
  100% { transform: translateY(0); }
}

@keyframes metriq-menu-enter {
  from { transform: translateY(14px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Responsive and reduced motion ---------------------------------------- */

@media (max-width: 1280px) {
  .section-rail { display: none; }
}

@media (max-width: 980px) {
  .hero-field-canvas,
  .prism-spectrum-canvas,
  .contact-hero .ambient-field-canvas,
  .paper-hero .ambient-field-canvas {
    opacity: .45;
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.24) 32%, #000 72%, transparent 100%);
  }

  .ecosystem-field-canvas { display: none; }
  .work-grid.has-active-card .work-card { opacity: 1 !important; }
  .outcome-panel { opacity: 1; }
}

@media (max-width: 720px) {
  .hero-field-canvas,
  .prism-spectrum-canvas,
  .contact-hero .ambient-field-canvas,
  .paper-hero .ambient-field-canvas {
    opacity: .3;
  }

  .process-track { animation-duration: 22s; }
  .motion-glow { display: none; }
  .motion-tilt { transform: none !important; }
  .field-counter { position: static; justify-self: end; margin-top: -.15rem; }
  .form-field:has(.field-help) .field-counter { margin-top: .2rem; }
}

@media (hover: none), (pointer: coarse) {
  .motion-tilt {
    --tilt-x: 0deg !important;
    --tilt-y: 0deg !important;
    --tilt-lift: 0px !important;
  }

  .motion-magnetic {
    --mag-x: 0px !important;
    --mag-y: 0px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .reveal,
  .motion-reveal,
  .motion-clip {
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    clip-path: none !important;
  }

  .hero-field-canvas,
  .ambient-field-canvas,
  .prism-spectrum-canvas,
  .ecosystem-field-canvas {
    opacity: .34;
  }

  .process-track {
    transform: none !important;
  }

  .process-sequence[aria-hidden="true"] {
    display: none;
  }
}

/* v3.7 function-led ecosystem motion ------------------------------------- */
.eco-network-links path {
  stroke-dasharray: 9 13;
  animation: metriq-eco-route 6.8s linear infinite;
}
.eco-network-links path:nth-child(2) { animation-delay: -2.2s; }
.eco-network-links path:nth-child(3) { animation-delay: -4.1s; }
.eco-network-links path:nth-child(4) { animation-delay: -1.3s; }
.eco-network-node circle:last-child { animation: metriq-eco-node 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.eco-network-node-b circle:last-child { animation-delay: -.55s; }
.eco-network-node-c circle:last-child { animation-delay: -1.1s; }
.eco-network-node-d circle:last-child { animation-delay: -1.65s; }
.eco-network-node-e circle:last-child { animation-delay: -2.2s; }

.eco-software-route { stroke-dasharray: 7 10; animation: metriq-eco-route 4.2s linear infinite; }
.eco-software-packet { animation: metriq-software-packet 3.8s var(--motion-ease) infinite; }
.eco-core-stack rect:not(:first-child) { animation: metriq-core-cycle 3.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.eco-core-stack rect:nth-child(3) { animation-delay: -.6s; }
.eco-core-stack rect:nth-child(4) { animation-delay: -1.2s; }
.eco-api-gateway circle { animation: metriq-eco-node 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }

.eco-conveyor-motion { animation: metriq-eco-route 2.4s linear infinite; }
.eco-robot-lower { animation: metriq-robot-lower 5.8s var(--motion-ease) infinite; transform-box: view-box; transform-origin: 95px 122px; }
.eco-robot-upper { animation: metriq-robot-upper 5.8s var(--motion-ease) infinite; transform-box: view-box; transform-origin: 142px 75px; }
.eco-workpiece { animation: metriq-workpiece 5.8s var(--motion-ease) infinite; transform-box: view-box; transform-origin: center; }
.eco-scan-line { animation: metriq-inspection-scan 3.4s ease-in-out infinite; transform-box: view-box; transform-origin: center; }
.eco-control-signal { animation: metriq-eco-route 4.2s linear infinite; }
.eco-control-node { animation: metriq-eco-node 2.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }

.eco-program-route { animation: metriq-eco-route 4.8s linear infinite; }
.eco-program-route-b { animation-delay: -1.6s; }
.eco-program-packet { animation: metriq-program-packet 4.8s var(--motion-ease) infinite; }
.eco-deployment-target circle { animation: metriq-target-ring 3.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.eco-deployment-target circle:nth-child(2) { animation-delay: -.6s; }

.catalog-path-walk,
.catalog-lattice-walk {
  animation: metriq-catalog-proof-line 8s linear infinite;
}
.catalog-path-nodes circle,
.catalog-lattice-nodes circle {
  animation: metriq-eco-node 3.8s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.catalog-path-nodes circle:nth-child(2), .catalog-lattice-nodes circle:nth-child(2) { animation-delay: -.45s; }
.catalog-path-nodes circle:nth-child(3), .catalog-lattice-nodes circle:nth-child(3) { animation-delay: -.9s; }
.catalog-path-nodes circle:nth-child(4), .catalog-lattice-nodes circle:nth-child(4) { animation-delay: -1.35s; }
.catalog-path-nodes circle:nth-child(5), .catalog-lattice-nodes circle:nth-child(5) { animation-delay: -1.8s; }
.catalog-lattice-nodes circle:nth-child(6) { animation-delay: -2.25s; }
.catalog-lattice-nodes circle:nth-child(7) { animation-delay: -2.7s; }
.catalog-lattice-nodes circle:nth-child(8) { animation-delay: -3.15s; }

@keyframes metriq-eco-route {
  to { stroke-dashoffset: -88; }
}

@keyframes metriq-eco-node {
  0%, 100% { transform: scale(.82); opacity: .58; }
  50% { transform: scale(1.22); opacity: 1; }
}

@keyframes metriq-software-packet {
  0%, 12% { transform: translateX(0); opacity: 0; }
  20% { opacity: 1; }
  74% { transform: translateX(46px); opacity: 1; }
  86%, 100% { transform: translateX(46px); opacity: 0; }
}

@keyframes metriq-core-cycle {
  0%, 100% { opacity: .5; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}

@keyframes metriq-robot-lower {
  0%, 18%, 100% { transform: rotate(0deg); }
  42%, 62% { transform: rotate(-7deg); }
}

@keyframes metriq-robot-upper {
  0%, 18%, 100% { transform: rotate(0deg); }
  42%, 62% { transform: rotate(13deg); }
}

@keyframes metriq-workpiece {
  0%, 12% { transform: translateX(-24px); opacity: 0; }
  24%, 66% { transform: translateX(0); opacity: 1; }
  88%, 100% { transform: translateX(54px); opacity: 0; }
}

@keyframes metriq-inspection-scan {
  0%, 18%, 100% { transform: translateY(-6px); opacity: .15; }
  52% { transform: translateY(27px); opacity: 1; }
}

@keyframes metriq-program-packet {
  0%, 10% { transform: translateX(0); opacity: 0; }
  18% { opacity: 1; }
  82% { transform: translateX(169px); opacity: 1; }
  92%, 100% { transform: translateX(169px); opacity: 0; }
}

@keyframes metriq-target-ring {
  0%, 100% { opacity: .55; transform: scale(.93); }
  50% { opacity: 1; transform: scale(1.03); }
}

@keyframes metriq-catalog-proof-line {
  to { stroke-dashoffset: -132; }
}

@media (prefers-reduced-motion: reduce) {
  .eco-network-links path,
  .eco-network-node circle:last-child,
  .eco-software-route,
  .eco-software-packet,
  .eco-core-stack rect:not(:first-child),
  .eco-api-gateway circle,
  .eco-conveyor-motion,
  .eco-robot-lower,
  .eco-robot-upper,
  .eco-workpiece,
  .eco-scan-line,
  .eco-control-signal,
  .eco-control-node,
  .eco-program-route,
  .eco-program-packet,
  .eco-deployment-target circle,
  .catalog-path-walk,
  .catalog-lattice-walk,
  .catalog-path-nodes circle,
  .catalog-lattice-nodes circle {
    animation: none !important;
  }
}
