@charset "UTF-8";

/* A living field: geometry carries the motion; typography remains still. */
@property --aura-strength { syntax: "<number>"; inherits: true; initial-value: .24; }
@property --inner-strength { syntax: "<number>"; inherits: true; initial-value: .66; }
@property --inner-x { syntax: "<number>"; inherits: true; initial-value: 1; }
@property --inner-y { syntax: "<number>"; inherits: true; initial-value: 1; }
@property --energy { syntax: "<number>"; inherits: true; initial-value: 1; }
:root {
  --signal: #6c8141;
  --signal-heart: #435c2c;
  --signal-mist: #7f9856;
  --living-edge: #536e3f;
  --living-shell: #7b955d;
  --ambient-rgb: 117 140 72;
  --ambient-opacity: .28;
  --emission-strength: .56;
  --emission-color: #819c50;
  --heart-fill-glow: 10%;
}
:root[data-theme="dark"] {
  --signal: #c9dba5;
  --signal-heart: #f2f5d8;
  --signal-mist: #b6cc8d;
  --living-edge: #d1ddae;
  --living-shell: #a6bf81;
  --ambient-rgb: 154 181 108;
  --ambient-opacity: .62;
  --emission-strength: 1;
  --emission-color: #d7e5b1;
  --heart-fill-glow: 16%;
}

.ambient-field { position: absolute; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; opacity: var(--ambient-opacity); }
.ambient-field i { position: absolute; display: block; border-radius: 50%; will-change: transform; }
.ambient-field i:first-child {
  width: 105%; height: 112%; left: -20%; top: -24%;
  background: radial-gradient(ellipse, rgb(var(--ambient-rgb) / .26), rgb(var(--ambient-rgb) / .07) 42%, transparent 68%);
  animation: field-tide 19s ease-in-out infinite alternate;
}
.ambient-field i:last-child {
  width: 78%; height: 92%; right: -17%; bottom: -29%;
  background: radial-gradient(ellipse, rgb(var(--ambient-rgb) / .22), transparent 65%);
  animation: field-return 25s ease-in-out -7s infinite alternate;
}
@keyframes field-tide { from { transform: translate(-1.5%, 1.5%) scale(.97); } to { transform: translate(3.5%, -2%) scale(1.055); } }
@keyframes field-return { from { transform: translate(2%, 0) scale(1.025); } to { transform: translate(-3.5%, -4%) scale(.96); } }

/* Spatial transforms and path interpolation are owned by field.js. */
.field .node { transition: --aura-strength 1.4s ease-out, --inner-strength 1.2s ease-out, --energy 1s ease-out; }
.field .thread { transition: stroke .65s, opacity .65s, stroke-width .65s; }
.node-body, .node .life-breath { transform-box: view-box; transform-origin: 0 0; }
.node {
  --edge-width: 1;
  --aura-strength: .42;
  --inner-strength: .72;
  --energy: 1;
  --heart-fill: var(--specimen);
  --heart-period: 11.8s;
  --heart-phase: -3.8s;
  --life-temper: 1;
  --wake: 0;
  --growth-tone: 0;
  --arrival: 0;
  --vital-level: calc(var(--energy) * var(--life-temper) * (1 + var(--wake) * .6 + var(--growth-tone) * .2 + var(--arrival) * .28));
}
[data-theme="dark"] .node { --aura-strength: .66; --inner-strength: .82; }
.node[data-category="research"] { --heart-period: 9.7s; --heart-phase: -8.1s; --life-temper: 1.04; }
.node[data-category="lab"] { --heart-period: 13.1s; --heart-phase: -1.9s; --life-temper: 1.08; }
.node[data-category="objects"] { --heart-period: 15.3s; --heart-phase: -9.8s; --life-temper: .88; }
/* These clocks belong to the organism, never to a mode or a hover state.
   The moving parent and the breathing body are separate coordinate layers. */
.node .life-breath {
  animation: somatic-breath calc(var(--heart-period) * 1.17) ease-in-out infinite;
  animation-delay: calc(var(--heart-phase) - 1.3s);
}
.node .life-cloud {
  fill: url(#vital-field-gradient); stroke: none; pointer-events: none;
  transform-box: view-box; transform-origin: 0 0;
  opacity: .42; scale: 1.18;
  animation: vital-atmosphere calc(var(--heart-period) * 1.31) ease-in-out infinite;
  animation-delay: calc(var(--heart-phase) - 2.8s);
}
.node .emission {
  fill: none; stroke: var(--emission-color); stroke-width: 7;
  stroke-linecap: round; stroke-linejoin: round; pointer-events: none;
  transform-box: view-box; transform-origin: 0 0;
  opacity: calc(var(--emission-strength) * .12);
  filter: blur(6px);
  animation: organism-emission var(--heart-period) ease-in-out infinite;
  animation-delay: var(--heart-phase);
}
.node .outline {
  animation: structure-breath calc(var(--heart-period) + .67s) ease-in-out infinite;
  animation-delay: calc(var(--heart-phase) + .42s);
}
.node[aria-pressed="true"] { --edge-width: 1.4; --aura-strength: .68; --energy: 1.15; --heart-fill: var(--active); }
.node:hover { --heart-fill: var(--hover); }
.node .halo {
  transform-box: view-box; transform-origin: 0 0;
  animation: halo-breath calc(var(--heart-period) * 1.19) ease-in-out infinite;
  animation-delay: calc(var(--heart-phase) - 1.6s);
}
.node .aura {
  fill: none; stroke: var(--living-shell); stroke-width: .7; pointer-events: none;
  transform-box: view-box; transform-origin: 0 0;
  opacity: var(--aura-strength); scale: 1.045;
  animation: aura-tide calc(var(--heart-period) * 1.43) ease-in-out infinite;
  animation-delay: calc(var(--heart-phase) - 4.1s);
}
.node .inner {
  stroke: var(--line); stroke-opacity: var(--inner-strength);
  animation: inner-remember calc(var(--heart-period) * .91) ease-in-out infinite;
  animation-delay: calc(var(--heart-phase) + .7s);
}
.node .inner:nth-of-type(even),
.node .inner-motion:nth-of-type(even) .inner { animation-delay: calc(var(--heart-phase) - 1.4s); }
.node .life-current {
  fill: none; stroke: var(--signal-heart); stroke-width: 1.25;
  stroke-linecap: round; stroke-linejoin: round; pointer-events: none;
  stroke-dasharray: 4 25 2 34 1 34;
  stroke-opacity: .15;
  animation: interior-transport calc(var(--heart-period) * 1.72) linear infinite,
    interior-waking calc(var(--heart-period) * .83) ease-in-out infinite;
  animation-delay: calc(var(--heart-phase) - 3.7s), calc(var(--heart-phase) + 1.2s);
}
.node .inner-motion:nth-of-type(even) .life-current {
  animation-delay: calc(var(--heart-phase) - 8.4s), calc(var(--heart-phase) - 2.1s);
  stroke-dasharray: 2 34 3 38 1 22;
}
@keyframes somatic-breath {
  0%, 100% { scale: .997 .998; }
  38% { scale: 1.009 1.006; }
  73% { scale: 1.002 1.011; }
}
@keyframes vital-atmosphere {
  0%, 100% { scale: 1.17 1.18; opacity: calc(var(--emission-strength) * var(--vital-level) * .36); }
  28% { scale: 1.25 1.22; opacity: calc(var(--emission-strength) * var(--vital-level) * 1.15); }
  57% { scale: 1.22 1.27; opacity: calc(var(--emission-strength) * var(--vital-level) * .62); }
  82% { scale: 1.19 1.21; opacity: calc(var(--emission-strength) * var(--vital-level) * .27); }
}
@keyframes organism-emission {
  0%, 100% { scale: 1.002 1; opacity: calc(var(--emission-strength) * var(--vital-level) * .075); stroke-width: 7; }
  22% { scale: 1.026 1.019; opacity: min(.78, calc(var(--emission-strength) * var(--vital-level) * .82)); stroke-width: 12; }
  39% { scale: 1.019 1.028; opacity: min(.65, calc(var(--emission-strength) * var(--vital-level) * .46)); stroke-width: 9; }
  64% { scale: 1.005 1.012; opacity: calc(var(--emission-strength) * var(--vital-level) * .08); stroke-width: 7; }
  83% { scale: 1.012 1.008; opacity: calc(var(--emission-strength) * var(--vital-level) * .17); stroke-width: 8.5; }
}
@keyframes structure-breath {
  0%, 100% { stroke: var(--ink); stroke-opacity: calc(.51 + var(--wake) * .17 + var(--growth-tone) * .09); stroke-width: var(--edge-width); fill: var(--heart-fill); }
  24% { stroke: var(--signal-heart); stroke-opacity: 1; stroke-width: calc(var(--edge-width) + .8 + var(--wake) * .35); fill: color-mix(in srgb, var(--heart-fill), var(--emission-color) var(--heart-fill-glow)); }
  46% { stroke: var(--living-edge); stroke-opacity: calc(.75 + var(--wake) * .15); stroke-width: calc(var(--edge-width) + .25); fill: var(--heart-fill); }
  72% { stroke: var(--ink); stroke-opacity: calc(.54 + var(--wake) * .19 + var(--growth-tone) * .09); stroke-width: calc(var(--edge-width) + .1); fill: var(--heart-fill); }
}
@keyframes halo-breath {
  0%, 100% { scale: .997 1; stroke-opacity: calc(.2 + var(--wake) * .13); stroke: var(--line); }
  31% { scale: 1.047 1.029; stroke-opacity: calc(.78 + var(--arrival) * .2); stroke: var(--living-edge); }
  62% { scale: 1.025 1.038; stroke-opacity: calc(.4 + var(--wake) * .2); stroke: var(--line); }
}
@keyframes aura-tide {
  0%, 100% { scale: 1.018 1.023; opacity: calc(var(--aura-strength) * var(--vital-level) * .16); stroke-width: .65; }
  36% { scale: 1.087 1.059; opacity: calc(var(--aura-strength) * var(--vital-level) * .82); stroke-width: 1.1; }
  65% { scale: 1.054 1.073; opacity: calc(var(--aura-strength) * var(--vital-level) * .39); stroke-width: .75; }
}
@keyframes inner-remember {
  0%, 100% { stroke: var(--line); stroke-opacity: calc(var(--inner-strength) * (.54 + var(--wake) * .21 + var(--growth-tone) * .15)); stroke-width: .75; }
  25% { stroke: var(--living-edge); stroke-opacity: calc(.88 + var(--wake) * .12); stroke-width: calc(1.1 + var(--wake) * .18); }
  52% { stroke: var(--line); stroke-opacity: var(--inner-strength); stroke-width: .9; }
}
@keyframes interior-transport { to { stroke-dashoffset: -100; } }
@keyframes interior-waking {
  0%, 100% { stroke-opacity: calc(.06 + var(--wake) * .17 + var(--growth-tone) * .1 + var(--arrival) * .2); }
  27% { stroke-opacity: calc(.63 + var(--wake) * .25 + var(--growth-tone) * .1); }
  59% { stroke-opacity: calc(.18 + var(--wake) * .2 + var(--growth-tone) * .1); }
}

/* The three readings change which parts of the field hold energy. */
.stage[data-mode="relation"] .thread { stroke-width: 1.15; opacity: .65; }
.stage[data-mode="relation"] .thread.faint { opacity: .4; stroke-dasharray: 2 9; }
.stage[data-mode="relation"] .thread.is-linked { stroke: var(--living-edge); opacity: .9; stroke-width: 1.35; }
.stage[data-mode="purpose"] .thread { opacity: .28; stroke-width: .85; }
.stage[data-mode="purpose"] .thread.faint { stroke-dasharray: 1 10; opacity: .2; }
.stage[data-mode="purpose"] .thread.is-linked,
.stage[data-mode="purpose"] .thread[data-role="primary"] { stroke: var(--living-edge); opacity: .88; stroke-width: 1.6; stroke-dasharray: none; }
.stage[data-mode="purpose"] .node[data-category="software"] { --edge-width: 1.55; --aura-strength: .7; }
.stage[data-mode="purpose"] .node .detail { fill: var(--ink); }
/* field.js carries mode deformation on a parent SVG layer, on the same clock
   as the moving body. These children retain only their independent breathing. */
.node .inner, .node .life-current, .node .disc {
  transform-box: fill-box; transform-origin: center;
}
.node .inner, .node .life-current { scale: var(--inner-x) var(--inner-y); }
.stage[data-mode="growth"] .thread { opacity: .55; stroke-width: .9; }
.stage[data-mode="growth"] .thread.is-linked { opacity: .83; }
.stage[data-mode="growth"] .thread.faint { opacity: .36; stroke-dasharray: 1 5; }
.stage[data-mode="growth"] .contour { opacity: .69; }
.stage[data-mode="growth"] .node { --aura-strength: .66; --inner-strength: .87; }
.node .growth-shell {
  fill: none; stroke: var(--living-shell); stroke-width: .65;
  pointer-events: none; transform-box: fill-box; transform-origin: center;
  opacity: 0; scale: .985;
  transition: stroke .6s;
}
.node .shell-2 { stroke-dasharray: 1 5; }
.node .growth-lamella {
  fill: var(--specimen); fill-opacity: .32; stroke: var(--living-shell); stroke-width: .7;
  opacity: 0; translate: 0 0; scale: .8;
  transform-box: view-box; transform-origin: 0 0;
}

.signal-layer { pointer-events: none; opacity: 1; transition: opacity .35s; }
.signal-halo { fill: var(--signal-mist); fill-opacity: .14; stroke: var(--signal); stroke-width: .55; stroke-opacity: .2; }
.signal-core { fill: var(--signal-heart); }
.signal-tail { fill: none; stroke: var(--signal); stroke-width: 1.05; stroke-linecap: round; stroke-opacity: .7; }
.signal.is-weak { opacity: .32; }
.signal.is-weak .signal-halo { display: none; }
.signal.is-weak .signal-core { r: 1.2px; }
.signal.is-weak .signal-tail { stroke-width: .65; stroke-opacity: .45; }
.signal.is-intent .signal-core { r: 2.4px; }
.signal.is-intent .signal-halo { fill-opacity: .19; stroke-opacity: .42; }
[data-theme="dark"] .signal-halo { fill-opacity: .18; }
.stage[data-phase="gather"] .node .growth-shell { scale: 1; opacity: .1; }
.stage[data-phase="gather"] .growth-lamella { translate: 0 0; scale: .8; opacity: .08; }

/* The field retains a short, fading trace of a visit. */
.node.is-observed { --aura-strength: .76; --inner-strength: .94; --energy: 1.2; }
.node.is-hovered, .node:focus-visible { --edge-width: 1.55; --aura-strength: .9; --inner-strength: 1; --energy: 1.35; }
.node.is-hovered .halo, .node:focus-visible .halo { stroke: var(--living-edge); }
.node.is-hovered .outline { stroke: var(--living-edge); }
.node .detail { transition: fill .35s, letter-spacing .45s, opacity .4s; }
.node.is-hovered .detail { fill: var(--ink); letter-spacing: .35px; }
.stage .thread.is-hovered { opacity: .98; stroke: var(--living-edge); stroke-width: 1.6; }
/* Arrival is a decaying JS envelope, not a new animation on the membrane. */

/* A quiet instrument selector, with one travelling mark per active mode. */
.method button[data-mode] { border-bottom-color: transparent; transition: color .3s; }
.method button[data-mode]::after {
  content: ""; position: absolute; left: -1px; right: -1px; bottom: 1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--ink) 49%, var(--line) 80%, transparent);
  background-size: 220% 100%; opacity: 0; transform: scaleX(.2); transform-origin: center;
  transition: transform .45s cubic-bezier(.16,.7,.16,1), opacity .35s;
}
.method button[data-mode]::before {
  content: ""; position: absolute; width: 3px; height: 3px; left: -8px; top: calc(50% - 2px);
  border: 1px solid var(--accent); border-radius: 50%; opacity: 0; scale: .5;
  transition: opacity .4s, scale .45s;
}
.method button[data-mode]:hover::after { opacity: .45; transform: scaleX(.7); }
.method button[data-mode][aria-pressed="true"]::after { opacity: 1; transform: scaleX(1); animation: selector-current 8s ease-in-out infinite; }
.method button[data-mode][aria-pressed="true"]::before { opacity: 1; scale: 1; }
.stage[data-phase="gather"] .method button[aria-pressed="true"]::before { scale: .55; }
.stage[data-phase="settle"] .method button[aria-pressed="true"]::before { scale: 1.4; }
@keyframes selector-current { 0%, 100% { background-position: 100% 0; } 60% { background-position: 0 0; } }
#motion-toggle {
  position: absolute; z-index: 5; top: 26px; left: calc(4.5% + 285px);
  display: inline-flex; align-items: center; gap: 7px; min-height: 34px; min-width: 51px;
  padding: 5px 3px; border: 0; background: transparent; color: var(--muted);
  font-size: 10px; letter-spacing: 1px; line-height: 1.5;
}
#motion-toggle::before { content: ""; width: 9px; height: 6px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; opacity: .65; transform: skewX(-22deg); }
#motion-toggle:hover { color: var(--ink); }
#motion-toggle[aria-pressed="true"]::before { transform: none; width: 6px; height: 7px; border: 0; border-left: 1px solid currentColor; border-right: 1px solid currentColor; }
.stage[data-motion="paused"] *, .stage[data-motion="paused"] *::before, .stage[data-motion="paused"] *::after { animation-play-state: paused !important; }
.stage[data-motion="paused"] .signal-layer { opacity: 0; }
.stage[data-motion="paused"] .node-body,
.stage[data-motion="paused"] .node .inner,
.stage[data-motion="paused"] .node .disc,
.stage[data-motion="paused"] .growth-shell,
.stage[data-motion="paused"] .growth-lamella { transition: none; }
.stage[data-motion="reduced"] *, .stage[data-motion="reduced"] *::before, .stage[data-motion="reduced"] *::after { animation: none !important; transition-duration: .01ms !important; }
.stage[data-motion="reduced"] .signal-layer { display: none; }
.stage[data-motion="reduced"] .ambient-field i { will-change: auto; }
.stage[data-motion="paused"] .ambient-field i { will-change: auto; }

@media(max-width:1050px) and (min-width:601px) {
  #motion-toggle { left: calc(4.5% + 275px); }
  .map-hint { max-width: 180px; }
}
@media(min-width:601px) {
  /* Moving names stay legible; secondary captions yield to the fixed title. */
  .stage[data-phase="reform"] .node .detail { opacity: .12; }
}
@media(max-width:600px) {
  .method { gap: 19px; }
  #motion-toggle { left: auto; right: 6%; top: 22px; min-width: 42px; font-size: 10px; gap: 5px; }
  .ambient-field i:first-child { width: 150%; left: -45%; height: 83%; top: -5%; }
  .ambient-field i:last-child { width: 135%; height: 65%; right: -55%; bottom: 14%; }
  .node .growth-lamella { stroke-width: .9; }
  .node .aura { stroke-width: .9; }
  .signal-tail { stroke-width: 1.4; }
  .signal-core { r: 2.1px; }
}
@media(max-width:350px) {
  .method { gap: 17px; }
  .method > span { font-size: 9px; letter-spacing: 0; }
  #motion-toggle { right: 5.5%; letter-spacing: 0; gap: 4px; }
}
@media(prefers-reduced-motion:reduce) {
  :root:not([data-motion-override="true"]) .stage *, :root:not([data-motion-override="true"]) .stage *::before, :root:not([data-motion-override="true"]) .stage *::after { animation: none !important; transition: none !important; }
  :root:not([data-motion-override="true"]) .signal-layer { display: none; }
  :root:not([data-motion-override="true"]) .ambient-field i { will-change: auto; }
  :root:not([data-motion-override="true"]) .stage[data-phase="gather"] .node .growth-shell { scale: 1; }
}

/* Reduced motion keeps only two slow luminance layers; no deformation,
   travelling lines, environmental drift or particles. Explicit pause and
   off-screen suspension still freeze the entire living system. */
@keyframes quiet-emission {
  0%, 100% { opacity: calc(var(--emission-strength) * .14); }
  44% { opacity: calc(var(--emission-strength) * .27); }
}
@keyframes quiet-atmosphere {
  0%, 100% { opacity: calc(var(--emission-strength) * .32); }
  57% { opacity: calc(var(--emission-strength) * .51); }
}
:root:not([data-motion-override="true"]) .stage[data-motion="reduced"][data-vitality="quiet"] .node .emission {
  animation: quiet-emission calc(19s + var(--node-index, 0) * 1.4s) ease-in-out infinite !important;
  animation-delay: var(--heart-phase) !important;
  scale: 1; stroke-width: 9;
}
:root:not([data-motion-override="true"]) .stage[data-motion="reduced"][data-vitality="quiet"] .node .life-cloud {
  animation: quiet-atmosphere calc(21s + var(--node-index, 0) * 1s) ease-in-out infinite !important;
  animation-delay: calc(var(--heart-phase) - 3s) !important;
  scale: 1.2;
}
.stage[data-vitality="suspended"] *,
.stage[data-vitality="suspended"] *::before,
.stage[data-vitality="suspended"] *::after { animation-play-state: paused !important; }
