/* Supplink — the «الكابل» page layout (Cable.astro). Loaded only on pages whose «التنسيق» is cable, after main.css,
   same tokens. One lit cable runs down the page; each section is a numbered station on it; the page ends in a socket.
   Without cable.js (or under reduced motion) everything is visible and the cable simply stays dim. */

.run { position: relative; z-index: 2; --x: 50%; --gap: clamp(3rem, 2rem + 4vw, 7rem); --pad: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
	background: radial-gradient(60rem 40rem at 50% 30rem, rgb(244 165 39 / .05), transparent 70%), var(--night);
	/* a station's glow may spread past the screen edge (930px measured +15px, audit C1): clipped, never scrolled; clip keeps sticky */
	overflow-x: clip; }

/* the cable: a dim track and the lit part, which grows with the reading (cable.js sets --p 0…1) */
.run__cable { position: absolute; inset-block: 0; inset-inline-start: var(--x); inline-size: 2px; translate: 50% 0; border-radius: 2px;
	background: rgb(242 238 232 / .08); }
.run__fill { position: absolute; inset-block-start: 0; inset-inline: 0; block-size: calc(var(--p, 0) * 100%); border-radius: inherit;
	background: linear-gradient(180deg, rgb(244 165 39 / .25), var(--amber) 30%, var(--amber-hi));
	box-shadow: 0 0 12px rgb(244 165 39 / .35), 0 0 32px rgb(244 165 39 / .2); }
/* the current flowing down the lit part. It moves by transform (one period taller than the cable, slid down one period
   and back), which the compositor runs alone; animating background-position repainted a page-tall blended layer every
   frame (measured on a slowed phone — #295). */
.run__flow { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }   /* clips the flow, not the spark */
.run__flow::before { content: ""; position: absolute; inset-inline: 0; inset-block: -140px 0; opacity: .55; mix-blend-mode: screen;
	background: repeating-linear-gradient(180deg, transparent 0 60px, rgb(255 236 200 / .9) 60px 68px, transparent 68px 140px);
	animation: run-flow 2.4s linear infinite; }
@keyframes run-flow { from { transform: translateY(0); } to { transform: translateY(140px); } }
.run__spark { position: absolute; inset-block-end: -7px; inset-inline-start: 50%; translate: 50% 0; inline-size: 14px; block-size: 14px; border-radius: 50%;
	background: #FFE7B8; box-shadow: 0 0 10px 3px var(--amber), 0 0 34px 10px rgb(244 165 39 / .45); }

/* under the hero: chevrons light one after another down the dim cable — «keep going» — and fade once reading starts.
   The last one sits on the bottom edge of the first screen: cable.js sizes this gap to reach it (fallback below). */
.run__lead { display: grid; align-content: end; justify-items: center; gap: .1rem; block-size: max(14vh, 7rem); block-size: max(14svh, 7rem); padding-block-end: .9rem;
	inline-size: 2.4rem; margin-inline-start: calc(var(--x) - 1.2rem); transition: opacity .6s var(--ease); }
.run__lead i { inline-size: 1.35rem; block-size: 1.35rem; margin-block: -.2rem; rotate: 45deg; opacity: .08;
	border-bottom: 2.5px solid var(--amber-hi); border-right: 2.5px solid var(--amber-hi); border-bottom-right-radius: 3px;
	filter: drop-shadow(0 0 6px var(--amber)); animation: run-chev 1.8s var(--ease) infinite; }
.run__lead i:nth-child(2) { animation-delay: .22s; } .run__lead i:nth-child(3) { animation-delay: .44s; } .run__lead i:nth-child(4) { animation-delay: .66s; }
@keyframes run-chev { 0%, 100% { opacity: .08; translate: 0 -4px; } 30% { opacity: 1; translate: 0 0; } 60% { opacity: .08; translate: 0 4px; } }
.run.is-going .run__lead { opacity: 0; }
.run.is-going .run__lead i { animation-play-state: paused; }   /* faded out: no reason to keep them running */

/* a station: heading on one side of the cable, its content on the other; the sides swap every station */
.st { position: relative; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gap); align-items: start;
	inline-size: 100%; max-inline-size: var(--wrap); margin-inline: auto; padding: var(--pad) var(--gutter); }
.st__node { position: absolute; z-index: 2; inset-block-start: calc(var(--pad) - .35rem); inset-inline-start: 50%; translate: 50% 0;
	display: grid; place-items: center; inline-size: 3rem; block-size: 3rem; border-radius: 50%; font-weight: 700; font-size: .95rem; letter-spacing: .04em;
	background: var(--night); border: 2px solid rgb(242 238 232 / .14); color: var(--muted); transition: background .6s, border-color .6s, color .6s, box-shadow .6s; }
.st__node::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--amber); opacity: 0; pointer-events: none; }
.st.is-lit .st__node { border-color: var(--amber); color: var(--night); background: var(--amber); animation: st-pop .7s var(--ease);
	box-shadow: 0 0 0 6px rgb(244 165 39 / .12), 0 0 30px rgb(244 165 39 / .35); }
.st.is-lit .st__node::after { animation: st-burst 1.3s var(--ease); }
@keyframes st-pop { 0% { scale: .7; } 55% { scale: 1.18; } 100% { scale: 1; } }
@keyframes st-burst { 0% { opacity: .9; scale: 1; } 100% { opacity: 0; scale: 2.8; } }

.st__head { max-inline-size: 32rem; }
.st__title { font-size: var(--step-2); line-height: 1.25; text-wrap: balance; }
.st__head p { margin-block-start: .9rem; color: var(--muted); font-size: var(--step-1); line-height: 1.75; }
.st__head p:first-of-type { color: var(--text); }
.st__body { display: grid; gap: 1.75rem; min-inline-size: 0; }
/* even stations: heading on the far side, content on the near side */
.st--flip .st__head { order: 2; }
.st--flip .st__body { order: 1; }
/* a wide station: heading beside the cable as usual, its content (pictures) below, across both sides */
.st--wide .st__body { grid-column: 1 / -1; order: 3; margin-block-start: 2.5rem; }
.st--wide.st--flip .st__head { grid-column: 2; }

.part { display: grid; gap: 1rem; min-inline-size: 0; }
.part__title { font-size: var(--step-1); color: var(--amber-hi); }

/* messages: a loose stream of received bubbles */
.c-bubbles { display: flex; flex-direction: column; gap: .7rem; margin: 0; padding: 0; list-style: none; }
.c-bubbles li { align-self: flex-start; max-inline-size: 24rem; padding: .7rem 1rem .75rem; border-radius: 1.1rem; border-start-start-radius: .3rem;
	background: #151821; border: 1px solid var(--line); font-size: .98rem; line-height: 1.7; }
.c-bubbles li:nth-child(even) { align-self: flex-end; border-start-start-radius: 1.1rem; border-start-end-radius: .3rem; }
.c-bubbles li:nth-child(3n) { background: linear-gradient(180deg, rgb(244 165 39 / .14), rgb(244 165 39 / .06)); border-color: rgb(244 165 39 / .25); }

/* points: with icons a lit panel of ports, without icons connection rows */
.c-points { display: grid; gap: .7rem; margin: 0; padding: 0; list-style: none; }
.c-points li { position: relative; display: flex; align-items: flex-start; gap: .9rem; padding: 1rem 1.15rem; border-radius: 1rem;
	background: linear-gradient(180deg, #151821, var(--night-2)); border: 1px solid var(--line); line-height: 1.65; }
.c-points li::before { content: ""; flex: none; inline-size: .55rem; block-size: .55rem; margin-block-start: .6em; border-radius: 50%;
	background: var(--amber); box-shadow: 0 0 10px rgb(244 165 39 / .6); }
.c-points--icons { grid-template-columns: 1fr 1fr; }
.c-points--icons li { flex-direction: column; gap: .7rem; transition: border-color .3s, translate .3s var(--ease); }
.c-points--icons li::before { content: none; }
.c-points--icons li:hover { border-color: rgb(244 165 39 / .4); translate: 0 -3px; }
.c-points .icon { inline-size: 2rem; block-size: 2rem; color: var(--amber-hi); filter: drop-shadow(0 0 8px rgb(244 165 39 / .35)); }
.c-points .icon .i-a { stroke: var(--amber); }
.c-points__dot { inline-size: .55rem; block-size: .55rem; margin: .7rem; border-radius: 50%; background: var(--amber); }
.c-media { border-radius: 1rem; overflow: hidden; aspect-ratio: 16 / 10; }
.c-media img { inline-size: 100%; block-size: 100%; object-fit: cover; }

.c-prose { display: grid; gap: .8rem; }
.c-prose p, .c-fine { color: var(--muted); }

/* features with pictures: one per side of the cable */
.c-ways { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.c-way { display: block; overflow: hidden; border-radius: 1.25rem; border: 1px solid var(--line); background: var(--night-2); color: inherit; text-decoration: none; }
.c-way img { inline-size: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.c-way div { padding: 1.25rem 1.4rem 1.5rem; }
.c-way h3 { font-size: 1.35rem; margin-block-end: .4rem; }
.c-way p { color: var(--muted); }
a.c-way:hover { border-color: rgb(244 165 39 / .4); }
.c-cards { display: grid; gap: .8rem; }
.c-card { padding: 1.1rem 1.25rem; border-radius: 1rem; background: var(--night-2); border: 1px solid var(--line); }
.c-card h3 { font-size: var(--step-1); margin-block-end: .3rem; }
.c-card p { color: var(--muted); }


/* ---------- the station's own light (2026-10-10, owner: «الإحساس مفقود») ---------- */
/* circuit traces under the whole run, faint, fading out at its two ends */
.run::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' fill='none' stroke='%23F4A527' stroke-opacity='.10' stroke-width='1'%3E%3Cpath d='M0 40h70l20 20h60M150 60v60l30 30h80M30 260V170l40-40h50M260 220h-60l-20-20v-60M90 0v30M200 0v40l-20 20'/%3E%3Ccircle cx='150' cy='60' r='3'/%3E%3Ccircle cx='120' cy='130' r='3'/%3E%3Ccircle cx='180' cy='140' r='3'/%3E%3Ccircle cx='90' cy='30' r='2.5'/%3E%3C/svg%3E");
	background-size: 260px 260px;
	-webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); }
/* a glow behind the station, lit with its node */
.st { isolation: isolate; }
.st__glow { position: absolute; z-index: -1; inset-block-start: calc(var(--pad) + 1.15rem); inset-inline-start: 50%; translate: 50% -50%;
	inline-size: min(60rem, 140%); aspect-ratio: 1.6; border-radius: 50%; pointer-events: none; opacity: 0;
	background: radial-gradient(closest-side, rgb(244 165 39 / .13), rgb(244 165 39 / .04) 55%, transparent); transition: opacity 1.4s var(--ease); }
.st.is-lit .st__glow { opacity: 1; }
/* a branch drawn from the node to the heading when the light arrives */
.st__branch { position: absolute; z-index: 1; inset-block-start: calc(var(--pad) + 1.1rem); block-size: 2px; inline-size: calc(var(--gap) / 2 - .5rem);
	inset-inline-start: calc(50% - var(--gap) / 2 + .5rem); scale: 0 1; transform-origin: left; transition: scale .9s var(--ease) .15s;
	background: linear-gradient(to left, rgb(244 165 39 / .1), var(--amber)); box-shadow: 0 0 10px rgb(244 165 39 / .45); }
.st--flip .st__branch { inset-inline-start: 50%; transform-origin: right; background: linear-gradient(to right, rgb(244 165 39 / .1), var(--amber)); }
.st.is-lit .st__branch { scale: 1 1; }

/* company facts: an identity plate — the mark as a watermark, its frame traced by the light as it arrives */
@property --sweep { syntax: "<angle>"; inherits: false; initial-value: 360deg; }
.c-plate { position: relative; isolation: isolate; overflow: hidden; padding: .6rem 1.5rem; border-radius: 1.4rem;
	background: radial-gradient(26rem 14rem at 100% 0, rgb(244 165 39 / .14), transparent 70%), linear-gradient(160deg, #141720, var(--night-2) 60%);
	box-shadow: 0 30px 60px -30px rgb(0 0 0 / .8), inset 0 1px 0 rgb(255 255 255 / .04); }
.c-plate::after { content: ""; position: absolute; z-index: -1; inset-block-end: -2.5rem; inset-inline-end: -2rem; inline-size: 13rem; block-size: 13rem;
	background: url("/assets/img/logo-mark.svg?v=e995055b88") center / contain no-repeat; opacity: .06; rotate: -12deg; }
.c-plate__trace { position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
	background: conic-gradient(from 200deg, rgb(244 165 39 / .55) var(--sweep), rgb(242 238 232 / .08) 0);
	/* the prefixed pair first: Chrome < 120 and Safari < 15.4 know only it (xor = exclude) — audit C6 */
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
.run--motion .c-plate:not(.in) .c-plate__trace { --sweep: 0deg; }
.run--motion .c-plate.in .c-plate__trace { animation: plate-trace 1.8s var(--ease) .2s backwards; }
@keyframes plate-trace { from { --sweep: 0deg; } to { --sweep: 360deg; } }
.c-facts { margin: 0; }
.c-facts div { display: grid; grid-template-columns: 1.6rem minmax(6.5rem, 1.6fr) 3fr; align-items: center; gap: 1rem; padding-block: 1rem;
	border-block-end: 1px solid var(--line); }
.c-facts div:last-child { border-block-end: 0; }
.c-facts .icon { grid-column: 1; inline-size: 1.5rem; block-size: 1.5rem; color: var(--amber-hi); filter: drop-shadow(0 0 6px rgb(244 165 39 / .4)); }
.c-facts .icon .i-a { stroke: var(--amber); }
.c-facts dt { grid-column: 2; color: var(--muted); font-size: .95rem; }
.c-facts dd { grid-column: 3; margin: 0; font-weight: 700; font-size: 1.05rem; }
@media (max-width: 30em) {
	.c-facts div { grid-template-columns: 1.6rem minmax(0, 1fr); row-gap: .1rem; }
	.c-facts .icon { grid-row: span 2; }
	.c-facts dt, .c-facts dd { grid-column: 2; }
}

/* titled items with icons: the icon in a lit ring, a light that follows the pointer */
.c-card { position: relative; isolation: isolate; overflow: hidden; transition: border-color .35s, translate .35s var(--ease); }
.c-card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
	background: radial-gradient(18rem 18rem at var(--mx, 50%) var(--my, 50%), rgb(244 165 39 / .13), transparent 60%); }
.c-card:hover { border-color: rgb(244 165 39 / .35); translate: 0 -3px; }
.c-card:hover::before { opacity: 1; }
.c-card--icon { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); column-gap: 1.1rem; align-items: start; padding: 1.25rem; }
.c-card--icon > :not(.c-card__icon) { grid-column: 2; }
.c-card .text-link { justify-self: start; }
.c-card__icon { grid-row: span 3; display: grid; place-items: center; inline-size: 3.4rem; block-size: 3.4rem; border-radius: 50%;
	background: radial-gradient(circle at 30% 25%, rgb(244 165 39 / .22), rgb(244 165 39 / .05) 70%); border: 1px solid rgb(244 165 39 / .4);
	box-shadow: 0 0 0 5px rgb(244 165 39 / .05), 0 0 24px rgb(244 165 39 / .18); color: var(--amber-hi); }
.c-card__icon .icon { inline-size: 1.7rem; block-size: 1.7rem; }
.c-card__icon .icon .i-a { stroke: var(--amber); }

/* steps: a small circuit of their own, filled by the reading; each step lights when the current reaches it */
.c-circuit { position: relative; --sp: 0; }
.c-circuit__line { position: absolute; inset-block: 1.2rem; inset-inline-start: 1.15rem; inline-size: 2px; translate: 50% 0; background: rgb(242 238 232 / .1); }
.c-circuit__line i { position: absolute; inset-inline: 0; inset-block-start: 0; block-size: calc(var(--sp) * 100%);
	background: linear-gradient(180deg, rgb(244 165 39 / .3), var(--amber)); box-shadow: 0 0 10px rgb(244 165 39 / .5); }
.c-steps { position: relative; display: grid; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.c-steps li { display: grid; grid-template-columns: 2.3rem minmax(0, 1fr); gap: 1.1rem; align-items: start; padding-block: .55rem; }
.c-steps__n { display: grid; place-items: center; inline-size: 2.3rem; block-size: 2.3rem; border-radius: 50%; font-weight: 700; font-size: .95rem;
	background: var(--night); border: 2px solid rgb(242 238 232 / .16); color: var(--muted); transition: background .5s, border-color .5s, color .5s, box-shadow .5s; }
.c-steps li.is-on .c-steps__n { background: var(--amber); border-color: var(--amber); color: var(--night); box-shadow: 0 0 0 5px rgb(244 165 39 / .12), 0 0 22px rgb(244 165 39 / .4); }
.c-steps li p { padding: .65rem 1.1rem; border-radius: 1rem; background: rgb(255 255 255 / .02); border: 1px solid var(--line); line-height: 1.7; transition: border-color .5s, background .5s; }
.c-steps li.is-on p { border-color: rgb(244 165 39 / .3); background: rgb(244 165 39 / .05); }

/* a text-only station («أين نعمل»): coverage rings pulse behind it */
.st--solo .st__body { position: relative; isolation: isolate; }
.c-radar { position: absolute; z-index: -1; inset-block-start: 50%; inset-inline-start: 50%; translate: 50% -50%; inline-size: 34rem; block-size: 34rem; pointer-events: none;
	background: radial-gradient(closest-side, rgb(244 165 39 / .10), transparent); border-radius: 50%; }
.c-radar::before { content: ""; position: absolute; inset: 47%; border-radius: 50%; background: var(--amber); box-shadow: 0 0 18px 4px rgb(244 165 39 / .5); }
.c-radar i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgb(244 165 39 / .6); box-shadow: 0 0 18px rgb(244 165 39 / .15), inset 0 0 18px rgb(244 165 39 / .1); opacity: 0; animation: radar 4.2s var(--ease) infinite; }
.c-radar i:nth-child(2) { animation-delay: 1.4s; } .c-radar i:nth-child(3) { animation-delay: 2.8s; }
@keyframes radar { 0% { scale: .08; opacity: .9; } 100% { scale: 1; opacity: 0; } }
.st--solo .c-prose { padding: 1.4rem 1.5rem; border-radius: 1.25rem; background: rgb(7 7 10 / .35); border: 1px solid var(--line); backdrop-filter: blur(3px); }
.st--solo .c-prose p:first-child { color: var(--text); font-size: var(--step-1); line-height: 1.75; }

/* a text on the coverage map («أين نعمل», CMS: نص → خلفية الصندوق = خريطة التغطية): the map fills the top of the box
   with the cities pulsing, and fades into the box where the words sit — nothing is written over a city */
.c-mapbox { position: relative; isolation: isolate; overflow: hidden; border-radius: 1.4rem; border: 1px solid rgb(244 165 39 / .25);
	background: #12141B; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .8); }
.c-mapbox__map { display: block; inline-size: 100%; block-size: auto; aspect-ratio: 16 / 10; }
.c-mapbox::after { content: ""; position: absolute; inset-inline: 0; inset-block-start: 0; aspect-ratio: 16 / 10; pointer-events: none;
	background: linear-gradient(to top, #12141B 0%, rgb(18 20 27 / 0) 22%), radial-gradient(120% 90% at 50% 40%, transparent 60%, rgb(7 7 10 / .5)); }
.c-mapbox__text { position: relative; z-index: 1; display: grid; gap: .8rem; padding: .2rem 1.6rem 1.6rem; margin-block-start: -1.2rem; }
.c-mapbox__text p { color: var(--muted); line-height: 1.75; }
.c-mapbox__text p:first-child { color: var(--text); font-size: var(--step-1); }
.c-mapbox .city__name { font-size: 64px; stroke-width: 14px; }
@media (max-width: 40em) { .c-mapbox .city__name { font-size: 80px; stroke-width: 16px; } }
.c-mapbox__pulse { fill: none; stroke: rgb(244 165 39 / .6); stroke-width: 4; transform-box: fill-box; transform-origin: center; opacity: 0;
	animation: map-pulse 3.2s var(--ease) infinite; animation-delay: var(--d, 0s); }
.city--part .c-mapbox__pulse { stroke: rgb(244 165 39 / .3); }
/* with cable.js running: paused off screen (cable.js marks the map .is-onscreen); without it they simply run */
.run--motion .c-mapbox:not(.is-onscreen) .c-mapbox__pulse { animation-play-state: paused; }
@keyframes map-pulse { 0% { scale: .2; opacity: .9; } 100% { scale: 1.6; opacity: 0; } }

/* prices */
.c-prices { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.c-price { display: grid; align-content: start; gap: .2rem; padding: 1.4rem; border-radius: 1.25rem; border: 1px solid rgb(244 165 39 / .22);
	background: radial-gradient(18rem 10rem at 100% 0, rgb(244 165 39 / .16), transparent 70%), var(--night-2); }
.c-price h3 { font-size: var(--step-0); color: var(--muted); }
.c-price__num { display: flex; flex-wrap: wrap; align-items: baseline; gap: .45rem; }
.c-price__num b { font-size: clamp(3rem, 2.4rem + 2vw, 4.2rem); line-height: 1.05; font-variant-numeric: tabular-nums; }
/* A range («45 – 90») is not a single number: it stays on one line, a size smaller, and is not counted up. */
.c-price__num b { white-space: nowrap; }
.c-price__num b:not([data-count]) { font-size: clamp(2.3rem, 1.9rem + 1.5vw, 3.2rem); }
.c-price__num small { color: var(--muted); font-size: .88rem; }
.c-price__note { margin-block-start: .5rem; color: var(--muted); font-size: .94rem; line-height: 1.6; }

/* faq */
.c-faq { display: grid; gap: .6rem; }
.c-faq details { padding: 0 1.2rem; border-radius: 1rem; background: var(--night-2); border: 1px solid var(--line); transition: border-color .3s; }
.c-faq details[open] { border-color: rgb(244 165 39 / .3); }
.c-faq summary { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1rem; cursor: pointer; list-style: none; font-weight: 700; line-height: 1.6; }
.c-faq summary::-webkit-details-marker { display: none; }
.c-faq summary::after { content: "+"; flex: none; color: var(--amber); font-size: 1.4rem; line-height: 1; transition: rotate .3s var(--ease); }
.c-faq details[open] summary::after { rotate: 45deg; }
.c-faq summary:hover { color: var(--amber-hi); }
.c-faq details p { padding-block-end: 1.1rem; color: var(--muted); }

/* a picture across the cable: a letterbox band, so the station keeps its rhythm instead of a full-screen image */
.c-picture { position: relative; overflow: hidden; border-radius: 1.25rem; }
.c-picture img { inline-size: 100%; block-size: auto; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 70%;
	scale: 1.14; translate: 0 var(--py, 0px); will-change: translate; }
@media (max-width: 56em) { .c-picture img { aspect-ratio: 16 / 10; } }
.c-picture figcaption { position: relative; padding: .7rem 1rem 0; margin-block-start: .6rem; color: var(--muted); font-size: .94rem; }

/* the end of the cable: a socket that lights the call */
/* the run ends at the bottom of the call box, so the cable never shows below it; the space after it is margin */
.socket { position: relative; display: grid; justify-items: center; padding: 5rem var(--gutter) 0; margin-block-end: clamp(5rem, 4rem + 4vw, 8rem); }
.socket__plug { position: relative; z-index: 2; inline-size: 4.5rem; block-size: 4.5rem; border-radius: 50%; border: 2px solid rgb(242 238 232 / .14);
	background: var(--night); transition: border-color .8s, box-shadow .8s; }
.socket__plug::before, .socket__plug::after { content: ""; position: absolute; inset-block-start: 50%; translate: 0 -50%; inline-size: .45rem; block-size: 1.2rem;
	border-radius: 3px; background: rgb(242 238 232 / .18); transition: background .8s; }
.socket__plug::before { inset-inline-start: 1.2rem; } .socket__plug::after { inset-inline-end: 1.2rem; }
.socket.is-lit .socket__plug { border-color: var(--amber); box-shadow: 0 0 0 10px rgb(244 165 39 / .1), 0 0 60px 10px rgb(244 165 39 / .35); }
.socket.is-lit .socket__plug::before, .socket.is-lit .socket__plug::after { background: var(--amber-hi); }
.socket__box { position: relative; z-index: 2; margin-block-start: 2rem; inline-size: min(100%, 46rem); text-align: center; padding: clamp(1.75rem, 1.2rem + 2vw, 3rem);
	border-radius: 1.5rem; border: 1px solid rgb(244 165 39 / .28); background: radial-gradient(30rem 16rem at 50% 0, rgb(244 165 39 / .16), transparent 70%), var(--night-2); }
.socket__title { font-size: var(--step-2); line-height: 1.25; text-wrap: balance; }
.socket__text { margin-block-start: .9rem; color: var(--muted); font-size: var(--step-1); line-height: 1.75; }
.socket .actions { justify-content: center; margin-block-start: 1.75rem; }

/* entrances (cable.js adds .run--motion): each element comes out of the cable toward its place, blurred, in sequence.
   --sx = horizontal offset toward the cable; --i = order inside the station */
.st__head { --sx: -3rem; } .st__body { --sx: 3rem; }
.st--flip .st__head { --sx: 3rem; } .st--flip .st__body { --sx: -3rem; }
.st--wide .c-way:first-child { --sx: -3rem; } .st--wide .c-way:last-child { --sx: 3rem; }
[dir="ltr"] .st__head, [dir="ltr"] .st--flip .st__body, [dir="ltr"] .st--wide .c-way:last-child { --sx: 3rem; }
[dir="ltr"] .st__body, [dir="ltr"] .st--flip .st__head, [dir="ltr"] .st--wide .c-way:first-child { --sx: -3rem; }
.run--motion [data-in] { opacity: 0; transform: translate(var(--sx, 0), 22px) scale(.96); filter: blur(8px);
	transition: opacity 1s var(--ease), transform 1.15s var(--ease), filter 1s var(--ease), border-color .3s, translate .3s var(--ease);
	transition-delay: calc(var(--i, 0) * 110ms); }
.run--motion [data-in].in { opacity: 1; transform: none; filter: none; }
.run--motion .c-way img { clip-path: inset(0 0 100% 0); scale: 1.12; transition: clip-path 1.3s var(--ease) .2s, scale 1.6s var(--ease) .2s; }
.run--motion .c-way.in img { clip-path: inset(0); scale: 1; }
.run--motion .c-picture { clip-path: inset(0 50% round 1.25rem); transition: clip-path 1.5s var(--ease) .1s, opacity 1s var(--ease), filter 1s var(--ease), transform 1.15s var(--ease); }
.run--motion .c-picture.in { clip-path: inset(0 0 round 1.25rem); }

/* tablets and phones: the cable runs down the start edge, every station stacks beside it */
@media (max-width: 56em) {
	.run { --x: calc(var(--gutter) + 1.1rem); }
	.st { grid-template-columns: minmax(0, 1fr); row-gap: 1.5rem; padding-inline-start: calc(var(--gutter) + 3.4rem); }
	.st__node { inset-inline-start: calc(var(--gutter) + 1.1rem); inline-size: 2.4rem; block-size: 2.4rem; font-size: .8rem; }
	.st__head, .st--flip .st__head { order: 0; }
	.st__body, .st--flip .st__body, .st--wide .st__body { order: 1; margin-block-start: 0; grid-column: auto; }
	.st--wide.st--flip .st__head { grid-column: auto; }
	.c-ways { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
	.st__branch, .st--flip .st__branch { inset-block-start: calc(var(--pad) + .85rem); inset-inline-start: calc(var(--gutter) + 1.1rem); inline-size: 2.1rem;
		transform-origin: right; background: linear-gradient(to right, rgb(244 165 39 / .1), var(--amber)); }
	.st__glow { inset-inline-start: calc(var(--gutter) + 1.1rem); }
	.c-radar { inline-size: 22rem; block-size: 22rem; }
	.st__head, .st__body, .st--flip .st__head, .st--flip .st__body, .st--wide .c-way:first-child, .st--wide .c-way:last-child { --sx: 1.5rem; }
	[dir="ltr"] .st__head, [dir="ltr"] .st__body, [dir="ltr"] .st--flip .st__head, [dir="ltr"] .st--flip .st__body,
	[dir="ltr"] .st--wide .c-way:first-child, [dir="ltr"] .st--wide .c-way:last-child { --sx: -1.5rem; }
	.socket { justify-items: start; padding-inline-start: var(--gutter); }
	.socket__plug { margin-inline-start: calc(1.1rem - 2.25rem + 1px); }
	.socket__box { text-align: start; }
	.socket .actions { justify-content: flex-start; }
}
@media (max-width: 30em) {
	.c-prices { grid-template-columns: minmax(0, 1fr); }
	.c-points--icons li { padding: .9rem; font-size: .95rem; }
}

/* left-to-right pages: the same geometry mirrored (the physical offsets above are written for RTL) */
[dir="ltr"] .run__cable, [dir="ltr"] .st__node, [dir="ltr"] .run__spark { translate: -50% 0; }
[dir="ltr"] .st__glow, [dir="ltr"] .c-radar { translate: -50% -50%; }
[dir="ltr"] .st__branch { transform-origin: right; background: linear-gradient(to right, rgb(244 165 39 / .1), var(--amber)); }
[dir="ltr"] .st--flip .st__branch { transform-origin: left; background: linear-gradient(to left, rgb(244 165 39 / .1), var(--amber)); }

@media (prefers-reduced-motion: reduce) {
	.c-radar i { animation: none; opacity: .25; scale: .6; }
	.c-mapbox__pulse { animation: none; }
	.c-picture img { translate: none; }
	.run__flow::before, .run__lead i, .st.is-lit .st__node, .st.is-lit .st__node::after { animation: none; }
	.run__lead i { opacity: .6; }
}
