@charset "UTF-8";
/* Four optical layers from daixi_breath_reference/index.html. Exact gradient
   stops, envelopes, blur and reference sizes; vitality.js calibrates only the
   lighting to the original shapes. field.js owns the moving parent. */
.field { overflow: visible; }
:is(.node,.optical-organism)[data-category="software"] { --period:7.6s; --delay:-3.7s; }
:is(.node,.optical-organism)[data-category="objects"] { --period:8.9s; --delay:-5.6s; }
:is(.node,.optical-organism)[data-category="lab"] { --period:7.9s; --delay:-1.2s; }
:is(.node,.optical-organism)[data-category="research"] { --period:9.4s; --delay:-7.8s; }
.node .life-breath, .optical-breath { animation:somatic-breath calc(var(--period)*1.17) ease-in-out var(--delay) infinite; }
.node .emission,.node .aura { display:none; }
.node .outline,.node .halo,.node .inner { animation:none; }
.node .halo { scale:1; stroke-opacity:.65; }
.node .inner { stroke-opacity:.72; }
.node .life-current { animation:interior-transport calc(var(--period)*1.72) linear var(--delay) infinite; stroke-opacity:.24; }
.node .optical-surface { overflow:visible; pointer-events:none; mix-blend-mode:multiply; }
[data-theme="dark"] .node .optical-surface { mix-blend-mode:screen; }
.optical-centre { position:absolute; width:0; height:0; transform-origin:0 0; pointer-events:none; }
.reference-light { pointer-events:none; }
.optical-centre .reference-light {
  position:absolute; left:0; top:0; border-radius:50%; will-change:transform,opacity;
  animation-duration:var(--period); animation-delay:var(--delay);
  animation-timing-function:ease-in-out; animation-iteration-count:infinite;
}
:is(.node,.optical-organism) .light-volume {
  width:345px; height:300px;
  background:radial-gradient(ellipse at center,rgba(234,255,183,.56) 0%,rgba(214,251,158,.38) 15%,rgba(174,233,138,.25) 33%,rgba(148,208,124,.11) 53%,transparent 76%);
  filter:blur(23px); opacity:.045; transform:translate(-50%,-50%) scale(.73); animation-name:life-volume;
}
:is(.node,.optical-organism) .light-spill {
  width:455px; height:390px;
  background:radial-gradient(ellipse at center,rgba(167,210,130,.32) 0%,rgba(157,210,139,.20) 27%,rgba(129,176,109,.08) 52%,transparent 75%);
  filter:blur(29px); opacity:.025; transform:translate(-50%,-50%) scale(.75); animation-name:life-spill;
}
.node .inner-irradiance {
  width:206px; height:182px;
  background:radial-gradient(ellipse at 50% 54%,rgba(239,255,187,.26),rgba(205,244,169,.13) 48%,transparent 73%);
  transform:translate(-50%,-50%); opacity:.07; animation-name:life-inside;
}
:is(.node,.optical-organism)[data-category="lab"] .light-volume {width:380px;height:350px;}
:is(.node,.optical-organism)[data-category="research"] .light-volume {width:355px;height:320px;}
:is(.node,.optical-organism) .bright-edge {
  filter:drop-shadow(0 0 2px #f4ffd5) drop-shadow(0 0 10px #e3ffb2) drop-shadow(0 0 18px rgba(220,255,166,.83));
  opacity:.07; animation:life-rim var(--period) ease-in-out var(--delay) infinite;
}
:is(.node,.optical-organism) .bright-edge > * { fill:none; stroke:#f5ffdf; stroke-width:1.7; }
/* Light mode retains the original mineral-green palette and readable ink,
   using the identical four envelopes with subtractive illumination. */
:root:not([data-theme="dark"]) :is(.node,.optical-organism) .light-volume {
  background:radial-gradient(ellipse at center,#819c508f 0%,#819c5061 15%,#819c5040 33%,#819c501c 53%,transparent 76%);
}
:root:not([data-theme="dark"]) :is(.node,.optical-organism) .light-spill {
  background:radial-gradient(ellipse at center,#819c5052 0%,#819c5033 27%,#819c5014 52%,transparent 75%);
}
:root:not([data-theme="dark"]) .node .inner-irradiance {
  background:radial-gradient(ellipse at 50% 54%,#819c5042,#819c5021 48%,transparent 73%);
}
:root:not([data-theme="dark"]) :is(.node,.optical-organism) .bright-edge {
  filter:drop-shadow(0 0 2px #819c5040) drop-shadow(0 0 10px #819c5052) drop-shadow(0 0 18px #819c5038);
}
:root:not([data-theme="dark"]) :is(.node,.optical-organism) .bright-edge > * { stroke:var(--signal-heart); }
@keyframes life-volume {
  0%,100% {opacity:.045;transform:translate(-50%,-50%) scale(.73);}
  16% {opacity:.09;transform:translate(-50%,-50%) scale(.82);}
  48%,58% {opacity:1;transform:translate(-50%,-50%) scale(1.35);}
  78% {opacity:.37;transform:translate(-50%,-50%) scale(1.05);}
}
@keyframes life-spill {
  0%,100% {opacity:.025;transform:translate(-50%,-50%) scale(.75);}
  20% {opacity:.05;}
  53% {opacity:.91;transform:translate(-50%,-50%) scale(1.35);}
  82% {opacity:.13;transform:translate(-50%,-50%) scale(.98);}
}
@keyframes life-inside {0%,100%{opacity:.07;}22%{opacity:.18;}52%{opacity:.95;}84%{opacity:.20;}}
@keyframes life-rim {0%,100%{opacity:.07;}18%{opacity:.18;}52%{opacity:1;}81%{opacity:.24;}}
/* Debug overrides presentation only. Animations stay mounted, paused at their
   existing times, so restoring live does not restart the breathing clocks. */
.stage[data-light-phase="low"] *, .stage[data-light-phase="peak"] * {animation-play-state:paused !important;}
.stage[data-light-phase="low"] .light-volume {opacity:.045 !important;transform:translate(-50%,-50%) scale(.73) !important;}
.stage[data-light-phase="low"] .light-spill {opacity:.025 !important;transform:translate(-50%,-50%) scale(.75) !important;}
.stage[data-light-phase="low"] .inner-irradiance,.stage[data-light-phase="low"] .bright-edge {opacity:.07 !important;}
.stage[data-light-phase="peak"] .light-volume {opacity:1 !important;transform:translate(-50%,-50%) scale(1.35) !important;}
.stage[data-light-phase="peak"] .light-spill {opacity:.91 !important;transform:translate(-50%,-50%) scale(1.35) !important;}
.stage[data-light-phase="peak"] .inner-irradiance {opacity:.95 !important;}
.stage[data-light-phase="peak"] .bright-edge {opacity:1 !important;}
.stage[data-vitality="suspended"] .reference-light {animation-play-state:paused !important;}
.stage[data-motion="reduced"] .reference-light {animation:none !important;}
.stage[data-motion="reduced"] .light-volume {opacity:.3;transform:translate(-50%,-50%) scale(1);}
.stage[data-motion="reduced"] .light-spill {opacity:.17;transform:translate(-50%,-50%) scale(1);}
.stage[data-motion="reduced"] .inner-irradiance {opacity:.18;}
.stage[data-motion="reduced"] .bright-edge {opacity:.4;}
.light-debug {
  position:fixed;z-index:30;right:18px;bottom:16px;display:flex;align-items:center;gap:5px;max-width:calc(100vw - 24px);
  padding:7px;border:1px solid var(--line);background:var(--paper);color:var(--ink);font:11px var(--sans);box-shadow:0 3px 16px #0002;
}
.light-debug span {padding:0 5px;color:var(--muted);}
.light-debug button {font:inherit;padding:8px;border:1px solid transparent;background:transparent;color:inherit;cursor:pointer;}
.light-debug button[aria-pressed="true"] {border-color:var(--line);background:var(--active);}
.light-debug button:focus-visible {outline:2px solid var(--ink);outline-offset:1px;}
@media(max-width:600px) {.light-debug{right:12px;bottom:12px;}.light-debug span{display:none;}}


.optical-field { position:absolute; inset:0; pointer-events:none; mix-blend-mode:multiply; }
[data-theme="dark"] .optical-field { mix-blend-mode:screen; }
.optical-organism,.optical-body,.optical-breath { position:absolute; width:0; height:0; transform-origin:0 0; pointer-events:none; }
.optical-organism,.optical-body { will-change:transform; }

.optical-rim { position:absolute; left:-300px; top:-300px; width:600px; height:600px; overflow:visible; pointer-events:none; }
