/* Interactive network: real buttons, shared selection, progressive energy. */
.ai-network-wrap { position:sticky; top:110px; min-width:0; }
.ai-network-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.ai-network-toolbar>span { font:600 12px var(--sans); color:#40563f; }
.ai-network-toolbar button { min-height:44px; padding:8px 12px; border:1px solid #cbd0bd; border-radius:30px; color:#4c6046; background:#fafbf4; font-size:11px; cursor:pointer; }
.ai-network-help { color:#6a7161; font:12px/1.65 var(--sans); margin:8px 0 0; }
.ai-page .ai-network { position:relative; top:auto; width:100%; max-width:none; height:570px; min-height:0; border:0; overflow:visible; --charge:0; background:radial-gradient(ellipse at center,#e5ecda,transparent 66%); }
.ai-page .ai-network::before { inset:16% 9%; border-color:#cfb77c55; pointer-events:none; }
.ai-page .ai-network::after { inset:29% 22%; pointer-events:none; border-color:#92a67e50; animation:aiOrbit 48s linear infinite; }
.ai-page .ai-network>svg { inset:0; width:100%; height:100%; pointer-events:none; overflow:visible; }
.ai-wire { fill:none; stroke:#a1b190; stroke-width:.25; opacity:.45; }
.ai-current { fill:none; stroke:#a58a45; stroke-width:.45; stroke-linecap:round; stroke-dasharray:5 95; opacity:.36; animation:aiEnergy 5s linear infinite; animation-delay:var(--delay); }
[data-connector].is-active .ai-wire { stroke:#769363; stroke-width:.4; opacity:.8; }
[data-connector].is-active .ai-current { stroke:#b49643; stroke-width:.75; opacity:1; filter:drop-shadow(0 0 1px #d1ba66); animation-duration:2.8s; }
.ai-page .ai-network-core { width:34%; max-width:168px; min-width:112px; height:auto; aspect-ratio:1; padding:12px; border:0; background:radial-gradient(circle at 36% 26%,#fffef7,#eaf0dd); box-shadow:0 0 0 9px #cbd8b522,0 12px 40px #435c3e15; animation:none; }
.ai-page .ai-network-core::before { font-size:9px; margin-bottom:8px; }
.ai-page .ai-network-core strong { font-size:clamp(35px,4vw,54px); margin:6px 0; }
.ai-page .ai-network-core small,.ai-page .ai-network-core span { font-size:8px; letter-spacing:.09em; }
.ai-page .ai-network-core .ai-charge-ring { position:absolute; inset:-5%; width:110%; height:110%; transform:rotate(-90deg); pointer-events:none; }
.ai-charge-ring circle { fill:none; stroke:#c9d2b9; stroke-width:1; }
.ai-charge-ring .ai-charge { stroke:#8c9b55; stroke-width:3; stroke-linecap:round; stroke-dasharray:100; stroke-dashoffset:calc(100 - var(--charge)); transition:stroke-dashoffset .8s cubic-bezier(.22,1,.36,1); }
.ai-page .ai-network-node { display:grid; align-content:center; gap:5px; width:28%; max-width:148px; min-width:0; min-height:85px; padding:12px 5px; border:1px solid #c2ccb4; border-radius:12px; background:linear-gradient(145deg,#fffef9,#f0f3e8); box-shadow:0 5px 16px #344c2b08,inset 0 1px 0 #fff; color:#334c37; cursor:pointer; touch-action:manipulation; letter-spacing:0; text-transform:none; font-family:var(--sans); transform:translate(-50%,-50%); }
.ai-network-node b { font-size:12px; font-weight:650; }
.ai-network-node small { color:#66745f; font-size:10px; line-height:1.4; }
.ai-node-state { color:#7a6a3c; font-size:9px; letter-spacing:.02em; }
.ai-page .ai-network-node.is-active { transform:translate(-50%,-50%); border-color:#839f69; background:linear-gradient(140deg,#f4f7e9,#dfe9cd); box-shadow:0 0 0 3px #9fb67c16,0 10px 25px #3d5a3420; }
.ai-network-node.is-active .ai-node-state { color:#3b673f; }
.ai-network-actions { display:flex; align-items:center; gap:16px; justify-content:space-between; margin:0 0 20px; }
.ai-network-actions button { min-height:46px; border:1px solid #6e835f; border-radius:8px; padding:10px 14px; background:#405e44; color:#fffdf4; font:500 11px/1.5 var(--sans); cursor:pointer; }
.ai-network-actions button:disabled { opacity:.75; cursor:default; }
.ai-network-actions>span { max-width:150px; color:#56684e; font:11px/1.6 var(--sans); }
.ai-synergy { padding:24px; border:1px solid #d6dbc9; border-radius:16px; background:#f1f4e9; transition:background .8s,border-color .8s,box-shadow .8s; }
.ai-synergy-heading { display:flex; gap:14px; align-items:center; }
.ai-synergy-heading>span { color:#a99551; font-size:40px; }
.ai-synergy-heading small { font:600 9px var(--sans); letter-spacing:.16em; color:#7b754e; }
.ai-synergy h3 { font:400 26px/1.15 var(--serif); margin:6px 0 0; color:#324d38; }
.ai-synergy p { font:13px/1.75 var(--sans); color:#5a6954; }
.ai-synergy>small { display:block; font:10px/1.7 var(--sans); color:#6d7564; }
.ai-synergy-flow { display:grid; grid-template-columns:repeat(4,1fr); list-style:none; gap:5px; padding:0; margin:20px 0; }
.ai-synergy-flow li { position:relative; overflow:hidden; border-top:2px solid #c8d3b9; padding:10px 0; font:10px var(--sans); color:#53654a; }
.is-complete .ai-synergy { background:linear-gradient(130deg,#edf3dd,#fcf8e9); border-color:#aeb77d; box-shadow:0 12px 42px #697b3f16; }
.is-complete .ai-synergy-flow li::before { content:''; position:absolute; top:0; left:-40%; width:40%; height:2px; background:#b6953c; box-shadow:0 0 8px #cbb65c; animation:aiSynergy 3.6s linear infinite; }
.is-complete .ai-synergy-flow li:nth-child(2)::before { animation-delay:.9s; }
.is-complete .ai-synergy-flow li:nth-child(3)::before { animation-delay:1.8s; }
.is-complete .ai-synergy-flow li:nth-child(4)::before { animation-delay:2.7s; }
.is-complete .ai-network-core { box-shadow:0 0 0 12px #bdcb7c22,0 0 64px #b5c37c44; }
.is-complete .ai-charge { stroke:#b39a4c; }
@keyframes aiEnergy { to { stroke-dashoffset:-100; } }
@keyframes aiSynergy { to { left:140%; } }
.ai-dialog-open { overflow:hidden; }
.ai-module-dialog { box-sizing:border-box; width:min(560px,calc(100% - 32px)); max-height:calc(100dvh - 40px); padding:28px; border:1px solid #d0d8be; border-radius:22px; color:#354d37; background:radial-gradient(ellipse at top right,#e5ecd5,transparent 55%),#fdfcf5; box-shadow:0 32px 100px #152b3045; overscroll-behavior:contain; }
.ai-module-dialog[open] { animation:aiDialogIn .28s ease-out; }
.ai-module-dialog::backdrop { background:#152b29a6; backdrop-filter:blur(8px); }
.ai-module-dialog-top { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.ai-module-dialog-top>span { color:#4d7041; font:600 11px var(--sans); }
.ai-module-dialog button { font-family:var(--sans); cursor:pointer; }
.ai-module-dialog-top button { flex-shrink:0; width:44px; height:44px; border:1px solid #bfc9b1; border-radius:50%; color:#3e563b; background:#ffffff77; font-size:25px; }
.ai-module-dialog .eyebrow { margin:18px 0 8px; color:#8b7b48; font-size:10px; }
.ai-module-dialog h2 { margin:0 0 18px; font:400 clamp(32px,6vw,46px)/1.05 var(--serif); color:#34533c; }
.ai-module-dialog h3 { font:600 12px var(--sans); margin:20px 0 7px; color:#364d39; }
.ai-module-dialog p { font:13px/1.75 var(--sans); color:#66715e; margin:0 0 12px; }
.ai-module-dialog p.ai-module-purpose { font-size:16px; line-height:1.6; color:#44593e; }
.ai-module-price { padding:17px 0; margin:16px 0; border-block:1px solid #cdd5be; }
.ai-module-price small { display:block; font:10px/1.6 var(--sans); color:#758064; }
.ai-module-price strong { display:block; font:500 16px/1.7 var(--sans); margin-top:6px; }
.ai-module-dialog .ai-module-disclaimer { font-size:10px; line-height:1.7; }
.ai-module-dialog-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:20px; }
.ai-module-dialog-actions button { min-height:46px; border:1px solid #bfcab0; border-radius:8px; padding:12px 16px; font-size:12px; background:transparent; color:#58684e; }
.ai-module-dialog-actions button:first-child { background:#3d5b41; color:#fffdf4; border-color:#3d5b41; }
.ai-network-wrap button:focus-visible,.ai-module-dialog button:focus-visible { outline:3px solid #8b7435; outline-offset:4px; }
@keyframes aiDialogIn { from { opacity:0; transform:translateY(16px) scale(.98); } to { opacity:1; transform:none; } }
@media(hover:hover) and (pointer:fine) { .ai-page .ai-network-node:hover { transform:translate(-50%,-50%) translateY(-3px); border-color:#9d9f65; box-shadow:0 12px 30px #5c703b24; } .ai-module-dialog button:hover,.ai-network-toolbar button:hover { filter:brightness(.96); } }
@media(max-width:1100px) { .ai-network-wrap { position:relative; top:auto; width:100%; max-width:600px; justify-self:center; } }
@media(max-width:520px) { .ai-page .ai-network { height:520px; } .ai-page .ai-network-node { min-height:80px; width:30%; padding:10px 3px; border-radius:10px; } .ai-network-node b { font-size:11px; } .ai-network-node small { font-size:9px; } .ai-node-state { font-size:9px; } .ai-page .ai-network-core::before { font-size:7px; } .ai-page .ai-network-core small,.ai-page .ai-network-core span { font-size:7px; } .ai-synergy { padding:20px; } .ai-network-actions { gap:10px; } .ai-network-actions>span { font-size:10px; max-width:112px; } .ai-module-dialog { padding:22px; } }
.is-motion-paused .ai-current,.is-motion-paused .ai-network::after,.is-motion-paused .ai-synergy-flow li::before,.is-offscreen .ai-current,.is-offscreen .ai-network::after,.is-offscreen .ai-synergy-flow li::before { animation-play-state:paused!important; }
@media(prefers-reduced-motion:reduce) { .ai-network-wrap:not(.is-motion-enabled) *,.ai-network-wrap:not(.is-motion-enabled) *::before,.ai-network-wrap:not(.is-motion-enabled) *::after,.ai-module-dialog[open] { animation:none!important; transition:none!important; } }
/* Respect the OS default; only this explicit visitor action opts the network in. */
@media(prefers-reduced-motion:reduce) {
  .is-motion-enabled .ai-current { animation-name:aiEnergy!important; animation-duration:5s!important; animation-timing-function:linear!important; animation-iteration-count:infinite!important; animation-delay:var(--delay)!important; }
  .is-motion-enabled [data-connector].is-active .ai-current { animation-duration:2.8s!important; }
  .is-motion-enabled.is-complete .ai-synergy-flow li::before { animation-name:aiSynergy!important; animation-duration:3.6s!important; animation-timing-function:linear!important; animation-iteration-count:infinite!important; }
}
