/* TES system concept: labelled relationships, not a performance simulation. */
.tes-system-section { overflow: hidden; }
.tes-system-section .section-head { max-width: 800px; margin-bottom: 34px; }
.tes-system-section .section-head p { max-width: 680px; margin-inline: auto; }
.tes-system {
  --sys-fuel: #7ee0c4;
  --sys-water: #9dcaff;
  --sys-line: #5e8cb9;
  position: relative;
  border: 1px solid rgba(157, 202, 255, .22);
  border-radius: 32px;
  background: radial-gradient(ellipse at 48% 42%, rgba(28, 86, 201, .17), transparent 65%), #06172d;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .18);
  isolation: isolate;
}
.tes-system::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background-image: linear-gradient(rgba(157,202,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(157,202,255,.025) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(transparent, #000 20%, #000 75%, transparent);
}
.tes-system-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 28px 18px; }
.tes-system-kicker { display: flex; align-items: center; gap: 9px; color: #b9d4ee; font: 500 .72rem/1.4 var(--font-head); letter-spacing: .12em; text-transform: uppercase; }
.tes-system-kicker::before { content: ""; width: 7px; height: 7px; border: 1px solid var(--sys-fuel); border-radius: 50%; }
.tes-system-motion { flex: none; padding: 8px 10px; color: #b9d4ee; font-size: .76rem; line-height: 1.4; border: 1px solid rgba(157,202,255,.25); border-radius: 20px; background: transparent; }
.tes-system-motion:hover { color: #fff; border-color: var(--sys-fuel); }
.tes-system [hidden] { display: none !important; }
.tes-system-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0 28px; border-top: 1px solid rgba(157,202,255,.15); border-bottom: 1px solid rgba(157,202,255,.15); }
.tes-system-tab { min-height: 65px; padding: 13px 9px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #b5c9e0; font: 500 .81rem/1.4 var(--font-head); transition: color .2s, background .2s, border-color .2s; }
.tes-system-tab span { display: block; margin-bottom: 3px; color: #86a6c7; font-size: .63rem; letter-spacing: .14em; }
.tes-system-tab:hover { color: #fff; background: rgba(157,202,255,.055); }
.tes-system-tab[aria-selected="true"] { color: #fff; border-bottom-color: var(--sys-fuel); background: linear-gradient(0deg, rgba(20,184,166,.11), transparent); }
.tes-system-tab[aria-selected="true"] span { color: var(--sys-fuel); }
.tes-system-tab:focus-visible, .tes-system-motion:focus-visible { outline: 2px solid #c1e1ff; outline-offset: 4px; }
.tes-system-canvas { padding: 12px 18px 0; }
.tes-system-svg { width: 100%; height: auto; overflow: visible; font-family: var(--font-body); }
.tes-system-svg--mobile { display: none; }
.tes-system-svg text { fill: #e1ecf9; }
.tes-system-svg .tes-node-title { fill: #fff; font: 600 21px var(--font-head); letter-spacing: -.4px; }
.tes-system-svg .tes-node-subtitle { fill: #a9c3df; font-size: 14px; }
.tes-system-svg .tes-node-number { fill: var(--sys-fuel); font: 600 12px var(--font-head); letter-spacing: 2px; }
.tes-system-svg .tes-control-title { fill: #fff; font: 600 19px var(--font-head); }
.tes-system-svg .tes-control-subtitle { fill: #adcce9; font-size: 13px; }
.tes-system-svg .tes-flow-label { fill: #bfd3e9; font-size: 15px; font-weight: 500; }
.tes-system-svg .tes-output-label { fill: #abc8e6; font: 500 12px var(--font-head); letter-spacing: 1.5px; text-transform: uppercase; }
.tes-system-svg .tes-node-shell { fill: #0b2543; stroke: #446b91; stroke-width: 1.5; transition: stroke .3s, fill .3s; }
.tes-system-svg .tes-node-inner { fill: none; stroke: rgba(157,202,255,.11); stroke-width: 1; }
.tes-system-svg .tes-node-detail { fill: none; stroke: #5a8ebd; stroke-width: 2; opacity: .4; }
.tes-system-svg .tes-system-node.is-active .tes-node-shell { fill: #0d2b4c; stroke: #80c4de; }
.tes-system-svg .tes-control-shell { fill: #0b2b42; stroke: #4b8d9d; stroke-width: 1.5; transition: stroke .3s; }
.tes-system-svg .tes-system-node.is-active .tes-control-shell { stroke: var(--sys-fuel); }
.tes-system-svg .tes-track, .tes-system-svg .tes-flow { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tes-system-svg .tes-track { stroke: #294f73; stroke-width: 2; }
.tes-system-svg .tes-flow { stroke: var(--sys-fuel); stroke-width: 2.7; stroke-dasharray: 7 12; opacity: .32; animation: tes-flow-travel 12s linear infinite paused; transition: opacity .3s; }
.tes-system-svg .tes-secondary .tes-flow { stroke: var(--sys-water); }
.tes-system-svg .tes-chemical .tes-flow { stroke: #7ee0c4; }
.tes-system-svg .tes-coordination .tes-track { stroke: #608eb7; stroke-dasharray: 4 8; opacity: .58; }
.tes-system-svg .tes-coordination .tes-flow { stroke: #b4d7fa; stroke-width: 2; stroke-dasharray: 3 18; }
.tes-system-svg .tes-output-flow .tes-flow { stroke: #87bcf1; }
.tes-system-svg .is-active .tes-flow { opacity: .95; }
.tes-system[data-in-view="true"][data-motion="running"] .is-active .tes-flow { animation-play-state: running; }
.tes-system[data-page-hidden="true"] .tes-flow { animation-play-state: paused !important; }
@keyframes tes-flow-travel { to { stroke-dashoffset: -190; } }
.tes-system-outputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 42px; padding: 5px 0 27px; gap: 18px; }
.tes-system-outputs li { display: flex; justify-content: center; align-items: center; gap: 11px; color: #f2f7fc; font: 500 .95rem/1.4 var(--font-head); }
.tes-system-outputs svg { width: 34px; height: 34px; flex: none; color: #7ee0c4; }
.tes-system-outputs li:nth-child(2) svg { color: #9dcaff; }
.tes-system-outputs li:nth-child(3) svg { color: #bad6ed; }
.tes-system-notes { margin: 0 28px; border-top: 1px solid rgba(157,202,255,.2); }
.tes-system-illustration-note { margin: 0 28px; padding: 0 10px 24px; color: #a5bed9; text-align: center; font-size: .75rem; line-height: 1.65; }
.tes-system-panel { display: grid; grid-template-columns: 245px 1fr; gap: 30px; padding: 27px 10px 30px; min-height: 174px; align-items: start; }
.tes-system-panel h3 { color: #fff; font-size: 1.15rem; line-height: 1.3; margin-bottom: 8px; }
.tes-system-panel .tes-panel-label { color: #7ee0c4; font-size: .67rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 8px; }
.tes-system-panel p { font-size: .95rem; line-height: 1.75; color: #c0d2e7; }
.tes-system-caption { max-width: 860px; margin: 20px auto 0; color: #a5bed9; text-align: center; font-size: .79rem; line-height: 1.65; }
.tes-system-caption strong { color: #d7e8f6; font-weight: 500; }
.tes-hero-caption { max-width: 36rem; margin-top: 20px; color: #c5d6e8; font-size: .73rem; line-height: 1.5; }

/* Full circular frames are decorative; no percentage or measured fill is shown. */
.tes-development .tes-gauges { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.tes-target { min-width: 0; }
.tes-target .gauge-ring { width: min(238px, 100%); max-width: 238px; margin-bottom: 1.3rem; }
.tes-target .gauge-ring svg { transform: none; }
.tes-target-frame { fill: none; stroke-width: 1; stroke: rgba(157,202,255,.23); }
.tes-target-halo { fill: none; stroke-width: 3; stroke: #5ba9bd; opacity: .7; }
.tes-target-orbit { fill: none; stroke-width: 1; stroke: rgba(157,202,255,.14); stroke-dasharray: 1 7; }
.tes-target-dot { fill: #7ee0c4; }
.tes-target .gauge-val { padding-inline: 10%; }
.tes-target .gauge-val b { font-size: clamp(1.7rem, 2.9vw, 2.1rem); font-weight: 600; }
.tes-target .gauge-val span { color: #b9d8f3; font-size: .78rem; line-height: 1.5; margin-top: .55rem; letter-spacing: 0; white-space: normal; }
.tes-target .gauge-label { max-width: 260px; margin-inline: auto; }
.tes-target .gauge-sub { margin-top: .35rem; color: #a9c0da; }
.tes-development-note { max-width: 850px; margin: 38px auto 0; color: #b9cce1 !important; font-size: .84rem; line-height: 1.8; text-align: center; }

@media (max-width: 900px) {
  .tes-system-panel { grid-template-columns: 210px 1fr; gap: 24px; }
  .tes-system-outputs { margin-inline: 24px; gap: 12px; }
  .tes-system-outputs li { font-size: .83rem; gap: 8px; }
  .tes-system-outputs svg { width: 28px; height: 28px; }
}
@media (max-width: 720px) {
  .tes-development .tes-gauges { grid-template-columns: minmax(0, 1fr); max-width: 340px; margin-inline: auto; }
}
@media (max-width: 680px) {
  .tes-system { border-radius: 24px; }
  .tes-system-toolbar { padding: 18px 18px 14px; flex-wrap: wrap; gap: 10px; }
  .tes-system-kicker { font-size: .64rem; letter-spacing: .1em; }
  .tes-system-motion { font-size: .68rem; padding: 7px 9px; }
  .tes-system-tabs { margin-inline: 18px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tes-system-tab { grid-column: span 2; font-size: .75rem; min-height: 61px; padding: 10px 4px; }
  .tes-system-tab:nth-child(4), .tes-system-tab:nth-child(5) { grid-column: span 3; }
  .tes-system-canvas { padding: 14px 0 0; }
  .tes-system-svg--wide { display: none; }
  .tes-system-svg--mobile { display: block; }
  .tes-system-svg .tes-flow-label { font-size: 16px; }
  .tes-system-svg .tes-node-title { font-size: 24px; }
  .tes-system-svg .tes-node-subtitle { font-size: 16px; }
  .tes-system-svg .tes-control-title { font-size: 19px; }
  .tes-system-svg .tes-control-subtitle { font-size: 14px; }
  .tes-system-outputs { margin: 0 12px; padding: 0 0 24px; gap: 4px; }
  .tes-system-outputs li { flex-direction: column; text-align: center; gap: 9px; font-size: .75rem; }
  .tes-system-outputs svg { width: 30px; height: 30px; }
  .tes-system-notes { margin-inline: 18px; }
  .tes-system-illustration-note { margin-inline: 18px; padding: 0 0 22px; font-size: .69rem; text-align: left; }
  .tes-system-panel { grid-template-columns: 1fr; min-height: 0; gap: 10px; padding: 23px 0 26px; }
  .tes-system-panel h3 { font-size: 1.05rem; margin-bottom: 0; }
  .tes-system-panel p { font-size: .88rem; }
  .tes-system-caption { font-size: .73rem; text-align: left; }
  .tes-hero-caption { font-size: .7rem; }
  .tes-development .tes-gauges { gap: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .tes-system .tes-flow { animation: none !important; stroke-dasharray: none; }
  .tes-system *, .tes-target * { transition: none !important; }
}
