/* Hyperliquid peering hero, designer handoff integration (template-parts/hyperliquid-peering/hero.php). The Dedicated/Global Nov 26
   look: dark canvas, the homepage hero type; Hyperliquid's mint for its network, Chainstack blue for peering and you.
   At rest the network just hums; hovering the scene switches Chainstack peering on, and transactions stream into your
   node, each arrival making the background light flicker. */
.hlp-2026 { --hl-mint: #97fce4; }
.hlp-2026 .hlp-hero { overflow: visible; clip-path: inset(0 0 -100vh 0); background: #00001a; } /* the light comes from the scene (.hlp-glow); cut at the top and sides only, so it fades out under the logos instead of ending in a line */
.hlp-2026 .hlp-hero::before { display: none; }
.hlp-2026 .hlp-hero .home-hero__inner { gap: 32px; }
.hlp-2026 .hlp-hero h1 span { text-wrap: balance; } /* phones: "Give your / Hyperliquid node", no word left alone */
.hlp-2026 .hlp-hero__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; } /* above the scene's glow, which would otherwise wash the buttons out */

/* The scene: 1040 x 520, labels laid over it in %. Pulled up into the empty band above the Tokyo tag. */
.hlp-2026 .hlp-scene { position: relative; z-index: 0; width: 100%; max-width: 940px; aspect-ratio: 1040 / 520; margin-top: -72px; }
.hlp-2026 .hlp-scene__svg { position: relative; display: block; width: 100%; height: 100%; overflow: visible; }

/* Background light, from the cards outwards: dark teal behind the network, our dark blue behind your node. */
.hlp-2026 .hlp-glow {
	position: absolute;
	z-index: -1;
	top: 53%;
	width: 125%;
	aspect-ratio: 1.25;
	translate: -50% -50%;
	border-radius: 50%;
	opacity: 0.7;
	filter: blur(48px); /* diffuse: no visible edge to the light */
	pointer-events: none;
	transition: opacity 0.6s ease;
}
.hlp-2026 .hlp-glow--net { left: 20.7%; background: radial-gradient(closest-side, rgba(14, 150, 132, 0.62), rgba(8, 90, 88, 0.26) 50%, transparent); }
.hlp-2026 .hlp-glow--node { left: 79.3%; background: radial-gradient(closest-side, rgba(16, 72, 220, 0.66), rgba(6, 40, 140, 0.28) 50%, transparent); }

/* The two cards around the network and your node (glassy, as the homepage hero widget). */
.hlp-2026 .hlp-card { fill: rgba(30, 70, 180, 0.14); stroke: rgba(110, 160, 255, 0.4); stroke-width: 1.2; }

/* The network: faint links, bright nodes, and transactions travelling the links at an even pace (linear). At rest
   they're quiet; with peering on they brighten. */
.hlp-2026 .hlp-net__edge { stroke: var(--hl-mint); stroke-opacity: 0.3; stroke-width: 1; vector-effect: non-scaling-stroke; transition: stroke-opacity 0.4s ease; } /* visible enough that every point reads as linked */
.hlp-2026 .hlp-scene:is(:hover, .is-hot) .hlp-net__edge { stroke-opacity: 0.42; }
.hlp-2026 .hlp-net__node { fill: var(--hl-mint); fill-opacity: 0.4; transition: fill-opacity 0.4s ease; }
.hlp-2026 .hlp-net__node[r="3.2"] { fill-opacity: 0.6; filter: drop-shadow(0 0 3px rgba(151, 252, 228, 0.5)); } /* hubs */
.hlp-2026 .hlp-scene:is(:hover, .is-hot) .hlp-net__node { fill-opacity: 0.85; }
.hlp-2026 .hlp-scene:is(:hover, .is-hot) .hlp-net__node[r="3.2"] { fill-opacity: 1; }
.hlp-2026 .hlp-net__tx { stroke: var(--hl-mint); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 5 95; stroke-dashoffset: 100; opacity: 0; }
.hlp-2026 .hlp-scene.is-live .hlp-net__tx { animation: hlp-tx var(--t, 2.4s) linear var(--d, 0s) infinite; }
@keyframes hlp-tx { 0% { stroke-dashoffset: 100; opacity: 0; } 12%, 85% { opacity: 1; } 100% { stroke-dashoffset: 5; opacity: 0; } }
/* Brightness lives outside the animation (stroke-opacity), speed in js/hyperliquid-peering.js (playbackRate): hovering
   changes how fast and how bright the requests run, never where they are. */
.hlp-2026 .hlp-net__tx { stroke-opacity: 0.45; transition: stroke-opacity 0.4s ease; }
.hlp-2026 .hlp-scene:is(:hover, .is-hot) .hlp-net__tx { stroke-opacity: 0.9; }

/* Peering. Off at rest: the links are drawn, quiet, nothing on them; the tile is dimmed. */
.hlp-2026 .hlp-link { stroke-width: 1.5; transition: stroke 0.4s ease; }
.hlp-2026 .hlp-link--in { stroke: rgba(151, 252, 228, 0.25); }
.hlp-2026 .hlp-link--out { stroke: rgba(110, 165, 255, 0.3); }
.hlp-2026 .hlp-pulse { stroke-width: 2; stroke-linecap: round; stroke-dasharray: 3 97; stroke-dashoffset: 100; opacity: 0; }
.hlp-2026 .hlp-stem { stroke: rgba(110, 165, 255, 0.45); stroke-width: 1.5; }
.hlp-2026 .hlp-tile { transition: opacity 0.4s ease; }
.hlp-2026 .hlp-tile__box { fill: rgba(4, 12, 48, 0.6); stroke: rgba(110, 165, 255, 0.85); stroke-width: 1.5; transition: filter 0.4s ease, stroke 0.4s ease; filter: drop-shadow(0 0 8px rgba(47, 123, 255, 0.35)); } /* off: an outline only */
.hlp-2026 .hlp-tile__fill { opacity: 0; transition: opacity 0.45s ease; }
.hlp-2026 .hlp-tile__mark { fill: #8fb8ff; transition: fill 0.45s ease; }
.hlp-2026 .hlp-tile__glow { fill: none; stroke: #8fd8ff; stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; } /* a ring that ripples out of the circle */
.hlp-2026 .hlp-hl { fill: var(--hl-mint); filter: drop-shadow(0 0 10px rgba(151, 252, 228, 0.55)); }
.hlp-2026 .hlp-server { transform-box: view-box; transform-origin: 825px 240px; transition: scale 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.hlp-2026 .hlp-server rect { fill-opacity: 0; stroke: rgba(140, 180, 255, 0.75); stroke-width: 1.2; transition: fill-opacity 0.45s ease, filter 0.45s ease; } /* at rest: an outline, schematic */
.hlp-2026 .hlp-scene:is(:hover, .is-hot) .hlp-server { scale: 1.08; }
.hlp-2026 .hlp-scene:is(:hover, .is-hot) .hlp-server rect { fill-opacity: 1; filter: drop-shadow(0 0 10px rgba(47, 123, 255, 0.45)); } /* on: it fills in, as the peering circle */
.hlp-2026 .hlp-server__led { fill: #cfe0ff; fill-opacity: 0.35; transition: fill-opacity 0.45s ease; } /* quiet at rest */
.hlp-2026 .hlp-scene:is(:hover, .is-hot) .hlp-server__led { fill-opacity: 0.6; }

/* Peering on (the scene hovered): the tile lights, transactions stream in and out quickly (one every 0.4 s per link,
   at an even speed), the tile flashes as it catches each one, your node's lights blink as they land, and the
   background flickers with them: teal as one reaches the tile, blue as it reaches your node. */
.hlp-2026 .hlp-scene:is(:hover, .is-hot) .hlp-link--in { stroke: rgba(151, 252, 228, 0.6); }
.hlp-2026 .hlp-scene:is(:hover, .is-hot) .hlp-link--out { stroke: rgba(130, 225, 230, 0.6); } /* tinted teal on hover: the requests carry the network's colour on to your node */
.hlp-2026 .hlp-scene:is(:hover, .is-hot) .hlp-tile { opacity: 1; }
.hlp-2026 .hlp-scene:is(:hover, .is-hot) .hlp-tile__box { filter: drop-shadow(0 0 24px rgba(47, 123, 255, 0.8));  fill: transparent; stroke: rgba(170, 205, 255, 0.7); }
.hlp-2026 .hlp-scene:is(:hover, .is-hot) .hlp-tile__fill { opacity: 1; } /* on: it fills in */
.hlp-2026 .hlp-scene:is(:hover, .is-hot) .hlp-tile__mark { fill: #fff; }
/* One clock for everything that moves (period 1.6 s at rest). js/hyperliquid-peering.js speeds the whole scene up 2x on
   hover via playbackRate, from wherever each animation is, so they stay in step and nothing jumps. What hover turns
   "on" is only brightness, set on properties the animations don't touch (stroke-opacity, fill-opacity, filter).
   A request's way, as a share of its route: the network card to the tile 0-41%, under the tile 41-66%, on to your
   node's card 66-100%. Requests go in pairs (top and bottom 0.12 s apart), a pair every 0.8 s. */
.hlp-2026 .hlp-pulse--route { stroke: var(--hl-mint); stroke-opacity: 0; filter: drop-shadow(0 0 2px rgba(151, 252, 228, 0.8)); } /* running but unseen at rest, to keep in step */
.hlp-2026 .hlp-pulse--route.is-on { stroke-opacity: 1; } /* switched on and off only as a request sets off from the network card (js), so none pops up mid-way */
.hlp-2026 .hlp-scene.is-live .hlp-pulse--route { animation: hlp-route 1.6s linear var(--d, 0s) infinite; }
@keyframes hlp-route { 0% { stroke-dashoffset: 100; opacity: 0; } 4%, 96% { opacity: 1; } 100% { stroke-dashoffset: 3; opacity: 0; } }
/* The tile flashes as each request enters it (41% of 1.6 s = 0.656 s, then a pair every 0.8 s). */
.hlp-2026 .hlp-tile__glow { stroke-opacity: 0; transition: stroke-opacity 0.4s ease; }
.hlp-2026 .hlp-scene:is(:hover, .is-hot) .hlp-tile__glow { stroke-opacity: 0.9; }
.hlp-2026 .hlp-scene.is-live .hlp-tile__glow { animation: hlp-catch 0.8s cubic-bezier(0.2, 0.6, 0.3, 1) 0.688s infinite; /* every pair: a ring ripples out and melts away */ }
@keyframes hlp-catch { 0% { opacity: 0.8; scale: 0.84; } 100% { opacity: 0; scale: 1.35; } }
/* Your node's activity lights blink green as each request lands (an overlay, unseen at rest) (1.6 s, then a pair every 0.8 s; the second unit's light takes the pair's second one). */
.hlp-2026 .hlp-server__blink { fill: #4dffa0; fill-opacity: 0; opacity: 0; transition: fill-opacity 0.3s ease; }
.hlp-2026 .hlp-scene:is(:hover, .is-hot) .hlp-server__blink { fill-opacity: 0.85; }
.hlp-2026 .hlp-scene.is-live .hlp-server__blink { animation: hlp-blink 0.8s steps(1, end) 1.6s infinite; }
.hlp-2026 .hlp-scene.is-live .hlp-server__blink--late { animation-delay: 1.72s; }
@keyframes hlp-blink { 0%, 25% { opacity: 1; } 26%, 100% { opacity: 0; } }
/* The background flickers with them, on its own layer over the steady glow: blue as a request
   reaches your node (the network's teal only brightens with hover). Off at rest (filter), on with hover. */
.hlp-2026 .hlp-glow::after { content: ''; position: absolute; inset: 18%; border-radius: 50%; background: inherit; opacity: 0; filter: opacity(0); transition: filter 0.4s ease; }
.hlp-2026 .hlp-scene:is(:hover, .is-hot) .hlp-glow::after { filter: opacity(1); }
.hlp-2026 .hlp-scene:is(:hover, .is-hot) .hlp-glow--net { opacity: 1; } /* the network's light just comes up with hover, no flicker */
.hlp-2026 .hlp-scene.is-live .hlp-glow--node::after { animation: hlp-flicker 0.8s ease-out 1.6s infinite; }
@keyframes hlp-flicker { 0% { opacity: 0; } 20% { opacity: 0.35; } 100% { opacity: 0; } }

/* Labels over the drawing. */
.hlp-2026 .hlp-label { position: absolute; translate: -50% 0; color: var(--home-text); font: clamp(11px, 1.3vw, 16px) / 1.3 var(--home-font-medium); text-align: center; white-space: nowrap; text-shadow: 0 2px 12px rgba(0, 0, 26, 0.8); pointer-events: none; }
.hlp-2026 .hlp-tag {
	position: absolute;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 36px;
	padding: 0 14px 0 12px;
	box-sizing: border-box;
	translate: -50% 0;
	border: 1px solid rgba(110, 165, 255, 0.6);
	border-radius: 18px;
	background: rgba(14, 34, 110, 0.85);
	box-shadow: 0 0 18px rgba(47, 123, 255, 0.35);
	color: var(--home-text);
	font: 15px/18px var(--home-font-medium);
	white-space: nowrap;
}
.hlp-2026 .hlp-tag img { width: 20px; height: 14px; border-radius: 2px; }

/* Entrance: the scene comes up after the copy (home-motion), then the traffic starts. */
html.home-motion .hlp-2026 .hlp-scene { animation: hlp-scene-in 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.45s backwards; }
@keyframes hlp-scene-in { from { opacity: 0; scale: 0.92; translate: 0 24px; } }
html.home-motion .hlp-2026 .hlp-hero__actions { animation: home-reveal-up 0.9s var(--home-ease-out) 0.3s backwards; }
@media (prefers-reduced-motion: reduce) {
	.hlp-2026 .hlp-scene .hlp-net__tx,
	.hlp-2026 .hlp-scene .hlp-pulse,
	.hlp-2026 .hlp-scene .hlp-tile__glow,
	.hlp-2026 .hlp-scene .hlp-glow::after,
	.hlp-2026 .hlp-scene .hlp-server__blink { animation: none !important; }
	html.home-motion .hlp-2026 .hlp-scene { animation: none; }
}
@media (max-width: 768px) {
	.hlp-2026 .hlp-scene { width: 118%; margin: -40px 0 -56px; max-width: none; align-self: center; } /* the viewBox leaves ~26% empty under the cards; pull the logos up into it */
	.hlp-2026 .hlp-label--validator { translate: -50% -8px; }
	.hlp-2026 .hlp-tag { height: 28px; padding: 0 10px; font-size: 12px; gap: 6px; }
	.hlp-2026 .hlp-tag img { width: 16px; height: 11px; }
}

/* Hover: the network swells a little. */
.hlp-2026 .hlp-net__zoom { transform-box: view-box; transform-origin: 215px 260px; transition: scale 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.hlp-2026 .hlp-scene:is(:hover, .is-hot) .hlp-net__zoom { scale: 1.08; }
/* The logo strip's edge fades are solid #00001a, which shows as a dark band over the scene's glow; fade the logos themselves instead. */
.hlp-2026 .trusted-logo-marquee::before,
.hlp-2026 .trusted-logo-marquee::after { display: none; }
.hlp-2026 .trusted-logo-marquee { -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); }

/* Prevent resting pointers from activating an element while its entrance is still moving. */
.hlp-2026 .hlp-scene.is-entering{pointer-events:none}

/* Keep LCP copy visible from first paint, using the shared heading movement instead of an opacity fade. */
html.home-motion .hlp-2026 .hlp-hero .home-hero__heading p{animation-name:home-hero-heading-in}
