/* OE – GSMO Animation: Hub and Spoke (v1.0.0)
 * Prototype rules from oe-gi-university.html section 8 (.oe-gi-board,
 * .oe-gi-col, .oe-gi-col-h, .oe-gi-flowcard, .oe-gi-tileico, .oe-gi-wires…),
 * its responsive (980px) and reduced-motion rules and the .oe-gi-rv fade,
 * scoped under .oe-ghs in the same order. Made for a navy section.
 */
.oe-ghs {
	--oe-ghs-rule-dark: color-mix(in srgb, var(--oe-color-primary-4, #ffffff) 20%, transparent);
	--oe-ghs-on-dark: var(--oe-color-secondary-light-80, #ccd6e1);
	--oe-ghs-glass: color-mix(in srgb, var(--oe-color-primary-4, #ffffff) 7%, transparent);
	--oe-ghs-ease: cubic-bezier(.22, 1, .36, 1);
	width: 100%;
}
.oe-ghs :is(h3, h4, p) { margin: 0; }

/* Fade up (prototype .oe-gi-rv), hidden from first paint; shows after 2s if
   script.js never starts. */
.oe-ghs.oe-ghs--reveal .oe-ghs-rv { opacity: 0; transform: translateY(24px); transition: opacity .45s var(--oe-ghs-ease), transform .45s var(--oe-ghs-ease); transition-delay: var(--d, 0s); }
.oe-ghs.oe-ghs--reveal .oe-ghs-rv.in { opacity: 1; transform: none; }
.oe-ghs.oe-ghs--reveal:not(.is-js) .oe-ghs-rv { animation: oe-ghs-failsafe 0s 2s forwards; }
@keyframes oe-ghs-failsafe { to { opacity: 1; transform: none; } }

.oe-ghs .oe-ghs-board { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 1.1fr) minmax(0, 1fr); align-items: center; }
/* Wide cards (consulting page: .oe-gi-board[data-hub]) */
.oe-ghs.oe-ghs--wide .oe-ghs-board { grid-template-columns: minmax(0, 1.35fr) minmax(190px, .75fr) minmax(0, 1.35fr); }
.oe-ghs .oe-ghs-col { display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 1; }
.oe-ghs .oe-ghs-col .oe-ghs-col-h { font-size: var(--oe-font-size-small); letter-spacing: .06em; line-height: 1.5; text-transform: uppercase; color: var(--oe-color-primary-4, #ffffff); margin-bottom: 4px; } /* white: what the prototype shows (its navy section's "p { white }" beats the sky blue in .oe-gi-col-h) */
.oe-ghs .oe-ghs-card { display: flex; gap: 18px; align-items: center; padding: 22px 24px; border-radius: var(--oe-border-radius-base); background: var(--oe-ghs-glass); border: 1px solid var(--oe-ghs-rule-dark); transition: background-color .3s ease, border-color .3s ease; }
.oe-ghs .oe-ghs-card:hover { background: color-mix(in srgb, var(--oe-color-primary-4, #ffffff) 12%, transparent); border-color: color-mix(in srgb, var(--c) 70%, transparent); }
.oe-ghs .oe-ghs-ico { flex: none; width: 44px; height: 44px; border-radius: var(--oe-border-radius-base); background: var(--c); display: grid; place-items: center; }
.oe-ghs .oe-ghs-ico svg { width: 22px; height: 22px; }
.oe-ghs .oe-ghs-ico:not(.oe-ghs-ico--lib) svg { fill: none; stroke: var(--oe-color-primary-4, #ffffff); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Library icons keep their own drawing (outline or solid) and turn white via currentColor. */
.oe-ghs .oe-ghs-ico.oe-ghs-ico--lib { color: var(--oe-color-primary-4, #ffffff); }
.oe-ghs .oe-ghs-card .oe-ghs-title { font-size: 1.1rem; color: var(--oe-color-primary-4, #ffffff); }
.oe-ghs .oe-ghs-card .oe-ghs-text { font-size: .95rem; line-height: 1.5; color: var(--oe-ghs-on-dark); margin-top: 4px; }
/* wires + hub, drawn by script.js from the card positions */
.oe-ghs .oe-ghs-wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.oe-ghs .oe-ghs-wires g { transition: opacity .3s ease; }
.oe-ghs .oe-ghs-wires.focus g.oe-ghs-w:not(.lit) { opacity: .25; }
.oe-ghs .oe-ghs-wires .oe-ghs-win { fill: none; stroke: var(--c); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; opacity: .8; }
.oe-ghs .oe-ghs-wires .oe-ghs-wglow { fill: none; stroke: var(--c); stroke-width: 13; stroke-linejoin: round; stroke-linecap: round; opacity: .16; }
.oe-ghs .oe-ghs-wires .oe-ghs-wout { fill: none; stroke: var(--c); stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; }
.oe-ghs .oe-ghs-wires .oe-ghs-spark { fill: none; stroke: var(--oe-color-primary-4, #ffffff); stroke-width: 2.5; stroke-linecap: round; }
.oe-ghs .oe-ghs-wires .oe-ghs-bead { fill: var(--oe-color-secondary, #003469); stroke: var(--oe-color-primary-4, #ffffff); stroke-width: 2.5; }
.oe-ghs .oe-ghs-wires .oe-ghs-halo { fill: color-mix(in srgb, var(--oe-color-primary-4, #ffffff) 4%, transparent); stroke: color-mix(in srgb, var(--oe-color-primary-4, #ffffff) 8%, transparent); transform-box: fill-box; transform-origin: center; animation: oe-ghs-halo 3s ease-in-out infinite; }
@keyframes oe-ghs-halo { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.oe-ghs .oe-ghs-wires .oe-ghs-core { fill: var(--oe-color-primary-4, #ffffff); }
.oe-ghs .oe-ghs-wires text { font-family: 'Poppins', sans-serif; font-size: 12.5px; fill: var(--oe-color-secondary, #003469); text-anchor: middle; }

.oe-ghs .oe-ghs-empty { padding: 16px; border: 1px dashed currentColor; }

/* Paused while off screen (script.js); "Moving sparks and dots" off. */
.oe-ghs.is-paused .oe-ghs-wires * { animation-play-state: paused; }
.oe-ghs.oe-ghs--still .oe-ghs-wires * { animation: none !important; }

@media (max-width: 980px) {
	.oe-ghs .oe-ghs-board, .oe-ghs.oe-ghs--wide .oe-ghs-board { grid-template-columns: 1fr; gap: 28px; }
	.oe-ghs .oe-ghs-board .oe-ghs-card { align-items: flex-start; }
	.oe-ghs .oe-ghs-wires, .oe-ghs .oe-ghs-gap { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.oe-ghs *, .oe-ghs *::before, .oe-ghs *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.oe-ghs.oe-ghs--reveal .oe-ghs-rv { opacity: 1; transform: none; }
}
