/* ============================================================
   EXPLODED SERVICE DIAGRAM — Home page only.
   Ported from the original ExplodedDiagram component: a
   frame-sequence scrub (scroll down = disassemble, scroll up =
   reassemble) with clickable hotspots and a slide-in service panel.
   Requires frames/f000.jpg … f149.jpg (150 frames).
   ============================================================ */

.ed-root { position: relative; height: 106vh; display: block; background: var(--background); }
.ed-root .ed-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; overflow: hidden; padding: 76px 0 24px; }
.ed-root .ed-head { text-align: center; margin: 0 0 6px; padding: 0 20px; max-width: 760px; z-index: 2; }
.ed-root .ed-eyebrow { display: block; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--action); }
.ed-root .ed-title { font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 1; text-transform: uppercase; letter-spacing: -.02em; margin: 10px 0 8px; color: var(--text-strong); }
.ed-root .ed-title span { color: var(--accent-text); }
.ed-root .ed-sub { font-family: var(--font-body); font-size: 15px; line-height: 1.5; color: var(--text-muted); margin: 0; }
.ed-root .ed-frame { position: relative; width: min(96vw, 1120px); aspect-ratio: 1000/679; max-height: 70vh; margin-top: -8px; }
.ed-root .ed-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  -webkit-mask-image: radial-gradient(ellipse 78% 70% at 50% 48%, #000 20%, transparent 96%), linear-gradient(to right, transparent 0%, #000 24%, #000 76%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: radial-gradient(ellipse 78% 70% at 50% 48%, #000 20%, transparent 96%), linear-gradient(to right, transparent 0%, #000 24%, #000 76%, transparent 100%);
  mask-composite: intersect;
}
.ed-root .ed-loader { position: absolute; left: 50%; bottom: 14%; transform: translateX(-50%); z-index: 8; transition: opacity .5s var(--ease-standard); }
.ed-root .ed-loader.hide { opacity: 0; pointer-events: none; }
.ed-root .ed-lbar { width: 150px; height: 2px; background: rgba(255,255,255,.15); position: relative; overflow: hidden; }
.ed-root .ed-lbar i { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: var(--action); }
.ed-root .ed-cap { position: absolute; left: 50%; bottom: 5%; transform: translateX(-50%); z-index: 6; font-family: var(--font-mono); font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--text-faint); white-space: nowrap; }
.ed-root .ed-cap b { color: var(--accent-text); font-weight: 600; }
.ed-root .ed-leaders { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; opacity: 0; transition: opacity .4s var(--ease-standard); }
.ed-root .ed-leader { stroke: var(--action); stroke-width: 1.7; vector-effect: non-scaling-stroke; opacity: .9; }
.ed-root .ed-pdot { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--action); transform: translate(-50%,-50%); box-shadow: 0 0 0 3px rgba(255,107,0,.18); opacity: 0; transition: opacity .3s var(--ease-standard); pointer-events: none; z-index: 5; }
.ed-root .ed-hotspots { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.ed-root .ed-hotspots.on { pointer-events: auto; }
.ed-root .ed-hotspot { position: absolute; transform: translate(-50%,-50%); cursor: pointer; opacity: 0; transition: opacity .3s var(--ease-standard); }
.ed-root .ed-node { position: relative; width: 50px; height: 50px; border-radius: 50%; background: rgba(10,10,10,.82); border: 2px solid var(--action); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.55); transition: transform .2s var(--ease-standard), background .2s var(--ease-standard); }
.ed-root .ed-node .material-symbols-outlined { font-size: 27px; color: var(--action); }
.ed-root .ed-node .ed-pulse { position: absolute; inset: -2px; border-radius: 50%; border: 1.7px solid var(--action); opacity: 0; }
.ed-root .ed-hotspots.on .ed-node .ed-pulse { animation: edpulse 2.4s var(--ease-standard) infinite; }
@keyframes edpulse { 0% { opacity: .5; transform: scale(1); } 100% { opacity: 0; transform: scale(2.1); } }
.ed-root .ed-hotspot:hover .ed-node { transform: scale(1.15); }
.ed-root .ed-hotspot.active .ed-node { background: var(--action); }
.ed-root .ed-hotspot.active .ed-node .material-symbols-outlined { color: #000; }
.ed-root .ed-hlabel { position: absolute; left: 50%; top: 54px; transform: translateX(-50%); white-space: nowrap; background: rgba(10,10,10,.82); border: 1px solid var(--border); border-top: 1px solid var(--action); padding: 4px 9px; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--text-body); opacity: 0; transition: opacity .2s var(--ease-standard); pointer-events: none; }
.ed-root .ed-hotspot.edge-l .ed-hlabel { left: -4px; transform: none; }
.ed-root .ed-hotspot.edge-r .ed-hlabel { left: auto; right: -4px; transform: none; }
.ed-root .ed-hotspot:hover .ed-hlabel, .ed-root .ed-hotspot.active .ed-hlabel, .ed-root .ed-hotspots.on .ed-hlabel { opacity: 1; }
.ed-root .ed-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.55); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease-standard); z-index: 60; backdrop-filter: blur(2px); }
.ed-root .ed-scrim.open { opacity: 1; visibility: visible; }
.ed-root .ed-panel { position: fixed; top: 0; right: 0; height: 100vh; width: 440px; max-width: 92vw; background: var(--charcoal-500); border-left: 1px solid var(--border); z-index: 70; transform: translateX(100%); transition: transform .34s var(--ease-standard); display: flex; flex-direction: column; }
.ed-root .ed-panel.open { transform: none; }
.ed-root .ed-panel-head { position: relative; padding: 34px 32px 26px; border-bottom: 1px solid var(--border); }
.ed-root .ed-pnum { font-family: var(--font-mono); font-size: 12px; letter-spacing: 3px; color: var(--action); text-transform: uppercase; }
.ed-root .ed-panel-head h3 { font-family: var(--font-display); font-size: 30px; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; margin: 10px 0 12px; line-height: 1.02; color: var(--text-strong); }
.ed-root .ed-ptag { font-size: 16px; line-height: 1.5; color: var(--accent-text); font-style: italic; margin: 0; }
.ed-root .ed-panel-close { position: absolute; top: 22px; right: 22px; width: 38px; height: 38px; border: 1px solid var(--border); background: transparent; color: var(--text-strong); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ed-root .ed-panel-close:hover { border-color: var(--action); color: var(--action); }
.ed-root .ed-panel-body { padding: 26px 32px; overflow-y: auto; flex: 1; }
.ed-root .ed-plabel { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--text-faint); margin-bottom: 14px; }
.ed-root .ed-pinc { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; margin: 0 0 26px; }
.ed-root .ed-pinc li { display: flex; gap: 10px; align-items: flex-start; font-family: var(--font-body); font-size: 15px; color: var(--text-body); }
.ed-root .ed-pinc .material-symbols-outlined { color: var(--action); font-size: 19px; margin-top: 1px; }
.ed-root .ed-psigns { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.ed-root .ed-chip { font-family: var(--font-body); font-size: 13px; color: var(--text-muted); background: var(--surface); border: 1px solid var(--border); padding: 7px 12px; }
.ed-root .ed-pnote { font-family: var(--font-body); font-size: 13px; line-height: 1.5; color: var(--text-muted); font-style: italic; border-top: 1px solid var(--border); padding-top: 16px; margin-bottom: 24px; }
.ed-root .ed-cta { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--action); color: #000; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 16px; text-transform: uppercase; padding: 16px; border-radius: 10px; }
.ed-root .ed-cta .material-symbols-outlined { font-size: 20px; }
.ed-root noscript { display: block; padding: 40px var(--margin-desktop); text-align: center; color: var(--text-muted); }

@media (max-width: 1024px) {
  .ed-root { height: 102vh; }
  .ed-root .ed-sticky { justify-content: center; gap: 2px; padding: 70px 0 16px; }
  .ed-root .ed-frame { max-height: 58vh; width: min(94vw, 820px); margin-top: 0; }
  .ed-root .ed-title { font-size: 30px; }
  .ed-root .ed-sub { font-size: 14px; max-width: 560px; }
}
@media (max-width: 820px) {
  .ed-root { height: auto; }
  .ed-root .ed-sticky { position: relative; height: auto; min-height: 0; justify-content: flex-start; gap: 0; padding: 32px 0 28px; overflow: visible; }
  .ed-root .ed-head { margin: 0 0 4px; }
  .ed-root .ed-eyebrow { font-size: 11px; }
  .ed-root .ed-title { font-size: 25px; margin: 8px 0 6px; }
  .ed-root .ed-sub { font-size: 13.5px; max-width: 440px; }
  .ed-root .ed-frame { width: 100%; max-height: none; margin-top: 4px; aspect-ratio: 1000/679; }
  .ed-root .ed-node { width: 34px; height: 34px; border-width: 1.6px; }
  .ed-root .ed-node .material-symbols-outlined { font-size: 19px; }
  .ed-root .ed-hlabel { font-size: 8px; top: 40px; padding: 2px 6px; }
  .ed-root .ed-cap { bottom: auto; top: calc(100% - 6px); font-size: 10px; }
  .ed-root .ed-panel { width: 100%; max-width: 100%; top: auto; bottom: 0; height: 82vh; border-left: none; border-top: 1px solid var(--border); transform: translateY(100%); }
  .ed-root .ed-panel.open { transform: none; }
}
