/* ==========================================================================
   Hub scenes — assets/css/scenes.css
   ==========================================================================
   One animated illustration per section hub, rendered in the hero's figure
   column (hero media → "Section animation"). Loaded on demand by
   inc/scenes.php, never globally.

   Every scene is authored in one 760x600 box, the same one the homepage
   convergence uses, so a hub hero and the home hero sit at the same size.

   Color: the three brand colors only. Two of them swap on a dark hero —
   "ink" is the color of solid shapes and "paper" the ground they sit on —
   so the same markup reads correctly on light, surface and dark tones. Blue
   never swaps, and anything drawn ON blue uses fixed black (sc-k / sc-t--k),
   never ink, because on a dark hero ink turns white and white on blue fails
   contrast.

   No opacity anywhere. Black at partial opacity over white is gray, and this
   palette has no gray. States change by showing and hiding layers, and
   arrivals are wipes, draws and moves — never fades.
   -------------------------------------------------------------------------- */

.cc-scene {
	--ink: var(--wp--preset--color--black);
	--paper: var(--wp--preset--color--white);
	--k: var(--wp--preset--color--black);
	--blue: var(--wp--preset--color--blue);

	position: relative;
	container-type: inline-size;
	width: 100%;
	aspect-ratio: 760 / 600;
}

.cc-on-dark .cc-scene {
	--ink: var(--wp--preset--color--white);
	--paper: var(--wp--preset--color--black);
}

.cc-scene__svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
	font-family: inherit;
}

/* --- Fills and strokes ---------------------------------------------------- */

.cc-scene .sc-ink   { fill: var(--ink); }
.cc-scene .sc-paper { fill: var(--paper); }
.cc-scene .sc-blue  { fill: var(--blue); }
.cc-scene .sc-k     { fill: var(--k); }

.cc-scene .sc-frame {
	fill: var(--paper);
	stroke: var(--ink);
	stroke-width: 3;
}

.cc-scene .sc-edge {
	fill: var(--paper);
	stroke: var(--ink);
	stroke-width: 2;
}

/* Sits on blue, so its outline is fixed black and its fill fixed white. */
.cc-scene .sc-edge--k {
	fill: var(--wp--preset--color--white);
	stroke: var(--k);
}

.cc-scene .sc-line {
	fill: none;
	stroke: var(--ink);
	stroke-width: 2;
}

.cc-scene .sc-line--dash { stroke-dasharray: 6 6; }

/* Lanes run across the blue network band — ground color on blue. */
.cc-scene .sc-lane {
	fill: none;
	stroke: var(--paper);
	stroke-width: 2;
	stroke-dasharray: 10 8;
}

/* Indicator squares. Off is an outline; on is solid blue. The switch is an
   attribute GSAP sets, so it is instant — no fill ever tweens. */
.cc-scene .sc-led {
	fill: var(--paper);
	stroke: var(--ink);
	stroke-width: 2;
}

/* A LED drawn on a solid ink block needs its outline in the ground color. */
.cc-scene .sc-ink ~ .sc-led,
.cc-scene [data-sc="live"] .sc-led {
	stroke: var(--paper);
}

.cc-scene .sc-led[data-on="1"] { fill: var(--blue); }

.cc-scene .sc-handset {
	fill: var(--wp--preset--color--white);
	stroke: var(--k);
	stroke-width: 2;
}

.cc-scene .sc-handset[data-on="1"] { fill: var(--k); }

.cc-scene .sc-ring {
	fill: none;
	stroke: var(--blue);
	stroke-width: 3;
}

.cc-scene .sc-pulse { fill: var(--ink); }
.cc-scene .sc-pulse--blue { fill: var(--blue); }

/* --- Type ----------------------------------------------------------------- */
/* Sizes are viewBox units, which scale with the figure. At the hero's usual
   column width one unit is about 0.85px, so 20 renders near 17px. */

.cc-scene .sc-t {
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -0.005em;
}

.cc-scene .sc-t--minor {
	font-size: 15px;
	font-weight: 500;
}

.cc-scene .sc-t--slot  { font-size: 18px; }
.cc-scene .sc-t--token { font-size: 15px; }

.cc-scene .sc-t--ink   { fill: var(--ink); }
.cc-scene .sc-t--paper { fill: var(--paper); }
.cc-scene .sc-t--k     { fill: var(--k); }

/* Keyed to the figure's own width, not the viewport — same reasoning as the
   convergence diagram. Below this the secondary captions are too small to
   read, and every one of them repeats something the page says in words. */
@container (max-width: 460px) {
	.cc-scene .sc-t--minor { display: none; }
}

/* --- White-Label Platform, redesign (2026-10-19) --------------------------
   Tints of the one blue give the illustration its depth. They are mixed with
   --paper, so on a dark hero they become dark tints of blue, not grays. */

.cc-scene { --tint1: color-mix(in srgb, var(--blue) 11%, var(--paper)); --tint2: color-mix(in srgb, var(--blue) 26%, var(--paper)); --tint3: color-mix(in srgb, var(--blue) 48%, var(--paper)); }
.cc-scene .pl-blue  { fill: var(--blue); }
.cc-scene .pl-tint1 { fill: var(--tint1); }
.cc-scene .pl-tint2 { fill: var(--tint2); }
.cc-scene .pl-tint3 { fill: var(--tint3); }
.cc-scene .pl-card  { fill: var(--paper); stroke: var(--tint2); stroke-width: 2; }
.cc-scene .pl-conn  { fill: none; stroke: var(--tint2); stroke-width: 3; stroke-linecap: round; }
.cc-scene .pl-base  { fill: none; stroke: var(--tint2); stroke-width: 1.5; }
.cc-scene .pl-ring  { fill: none; stroke: var(--tint2); stroke-width: 2; }
.cc-scene .pl-t     { font-weight: 600; letter-spacing: -0.005em; }
.cc-scene .pl-minor { font-weight: 500; }

/* --- SIP, Hosting, Support, Tools, redesign (2026-10-19) --------------------
   Tints of blue mixed with --ink, for the insides of dark devices (racks,
   rack units, the desk phone's screen), plus the few strokes those scenes
   add. Like the paper tints above, they become light tints on a dark hero. */

.cc-scene { --itint1: color-mix(in srgb, var(--blue) 16%, var(--ink)); --itint2: color-mix(in srgb, var(--blue) 40%, var(--ink)); --itint3: color-mix(in srgb, var(--blue) 70%, var(--ink)); }
.cc-scene .pl-itint1 { fill: var(--itint1); }
.cc-scene .pl-itint2 { fill: var(--itint2); }
.cc-scene .pl-itint3 { fill: var(--itint3); }
.cc-scene .pl-t-itint3 { fill: color-mix(in srgb, var(--blue) 55%, var(--paper)); }
.cc-scene .pl-istroke { fill: var(--ink); stroke: var(--itint2); stroke-width: 1.5; }
.cc-scene .pl-route { fill: none; stroke: var(--k); stroke-width: 3; stroke-linecap: round; }
.cc-scene .pl-dash  { fill: none; stroke: var(--tint2); stroke-width: 2; stroke-dasharray: 5 6; stroke-linecap: round; }
.cc-scene .pl-socket { fill: none; stroke: var(--tint2); stroke-width: 2; stroke-dasharray: 6 5; }
.cc-scene .pl-plus  { fill: none; stroke: var(--tint2); stroke-width: 2.5; stroke-linecap: round; }
.cc-scene .pl-hs    { fill: var(--paper); stroke: var(--tint3); stroke-width: 1.5; }
.cc-scene .pl-hs[data-on="1"] { fill: var(--blue); stroke: var(--blue); }
.cc-scene .pl-itint2[data-on="1"], .cc-scene .pl-itint1[data-on="1"] { fill: var(--blue); }
.cc-scene .pl-spark { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
