/*
 * Homepage "Radio's tech stack, reimagined" (section #tech-stack-2, page 5): slide 6 layout,
 * a staggered feature list over a faint network, with a stats band under the heading.
 * Layout, spacing and typography are native Bricks settings; this file holds only what
 * Bricks can't express (background overlay, accent spans, staggered rules, stat dividers).
 */
#tech-stack-2 { isolation: isolate; }
#tech-stack-2::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: url(../images/stack/network.webp) center 62% / cover no-repeat;
	opacity: .55;
	/* Radial vignette, intersected with a fade so the image dissolves before the section's bottom edge. */
	-webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 58%, #000 40%, transparent 100%), linear-gradient(180deg, #000 0, #000 55%, transparent 92%);
	-webkit-mask-composite: source-in;
	mask-image: radial-gradient(ellipse 70% 60% at 50% 58%, #000 40%, transparent 100%), linear-gradient(180deg, #000 0, #000 55%, transparent 92%);
	mask-composite: intersect;
}
#tech-stack-2 .ts-accent { color: #60a5fa; }
#tech-stack-2 .tsv-blue { color: #60a5fa; }
#tech-stack-2 .tsv-sky { color: #38bdf8; }
#tech-stack-2 .tsv-pink { color: #d946ef; }
#tech-stack-2 .tsv-violet { color: #8b5cf6; }
#tech-stack-2 .tsv-dim { color: #a8b3c4; }

/* Rules between rows: full width above left rows, starting part-way above right rows. */
#tech-stack-2 .tsv-row::before {
	content: ""; position: absolute; top: 0; right: 0; left: var(--tsv-rule, 0); height: 1px;
	background: rgba(148, 178, 214, .18);
}
#tech-stack-2 .tsv-row:first-child::before { display: none; }
#tech-stack-2 .tsv-rule-1 { --tsv-rule: 46%; }
#tech-stack-2 .tsv-rule-2 { --tsv-rule: 56%; }
#tech-stack-2 .tsv-rule-3 { --tsv-rule: 66%; }

/* Wide screens: staggered two-column timeline. Each feature starts halfway down the
   previous one in the opposite column, so there is no empty diagonal between rows. */
@media (min-width: 992px) {
	#tech-stack-2 .tsv-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
	#tech-stack-2 .tsv-row { grid-column: 1; --tsv-rule: 0; }
	#tech-stack-2 .tsv-row:nth-child(even) { grid-column: 2; }
	#tech-stack-2 .tsv-row:nth-child(1) { grid-row: 1 / span 2; }
	#tech-stack-2 .tsv-row:nth-child(2) { grid-row: 2 / span 2; }
	#tech-stack-2 .tsv-row:nth-child(3) { grid-row: 3 / span 2; }
	#tech-stack-2 .tsv-row:nth-child(4) { grid-row: 4 / span 2; }
	#tech-stack-2 .tsv-row:nth-child(5) { grid-row: 5 / span 2; }
	#tech-stack-2 .tsv-row:nth-child(6) { grid-row: 6 / span 2; }
	#tech-stack-2 .tsv-row:nth-child(7) { grid-row: 7 / span 2; }
	#tech-stack-2 .tsv-row:nth-child(8) { grid-row: 8 / span 2; }
	#tech-stack-2 .tsv-row:nth-child(9) { grid-row: 9 / span 2; }
	#tech-stack-2 .tsv-row:nth-child(10) { grid-row: 10 / span 2; }
	#tech-stack-2 .tsv-row:nth-child(11) { grid-row: 11 / span 2; }
	#tech-stack-2 .tsv-row:nth-child(12) { grid-row: 12 / span 2; }
	#tech-stack-2 .tsv-row:nth-child(2)::before { display: none; }
	/* Both columns step inward (left rows by padding-left, right rows by padding-right). Indents are a share of
	   the column and the titles scale with the viewport, so the longest titles stay on one line at any width. */
	#tech-stack-2 .tsv-row h3.brxe-heading { font-size: clamp(18px, calc((100vw - 100px) * .0195), 26px); }
	#tech-stack-2 .tsv-row:nth-child(n) { padding-left: 0; padding-right: 0; }
	#tech-stack-2 .tsv-row:nth-child(3), #tech-stack-2 .tsv-row:nth-child(9) { padding-left: 10%; }
	#tech-stack-2 .tsv-row:nth-child(5), #tech-stack-2 .tsv-row:nth-child(7) { padding-left: 22%; }
	#tech-stack-2 .tsv-row:nth-child(4), #tech-stack-2 .tsv-row:nth-child(8) { padding-right: 10%; }
	#tech-stack-2 .tsv-row:nth-child(6) { padding-right: 18%; }
}

/* Narrow screens: one left-aligned column, every rule full width. */
@media (max-width: 767px) {
	#tech-stack-2 .tsv-row { --tsv-rule: 0; }
}

/* Stats: thin dividers between columns on wide screens. */
#tech-stack-2 .ts-stat + .ts-stat { border-left: 1px solid rgba(255, 255, 255, .1); }
#tech-stack-2 .ts-num { font-variant-numeric: tabular-nums; }
@media (max-width: 991px) {
	#tech-stack-2 .ts-stat + .ts-stat { border-left: 0; }
}

/* Three verbs (Create / Know / Grow). Layout, type, spacing and rules are native Bricks settings;
   this only adds what Bricks can't express: the outlined verb, its colour fill, and the fill reveal. */
#tech-stack-2 .rcsj-head { text-wrap: balance; }
#tech-stack-2 .rcsj-create { --rcsj-mark: #38bdf8; }
#tech-stack-2 .rcsj-know { --rcsj-mark: #8b5cf6; }
#tech-stack-2 .rcsj-grow { --rcsj-mark: #d946ef; }
#tech-stack-2 .rcsj-word { position: relative; color: transparent; -webkit-text-stroke: 1.5px #2f4761; white-space: nowrap; }
#tech-stack-2 .rcsj-word::after {
	content: attr(data-word); content: attr(data-word) / ""; position: absolute; inset: 0; color: var(--rcsj-mark); -webkit-text-stroke: 0;
	clip-path: inset(-0.2em 100% -0.3em 0); transition: clip-path 1.8s cubic-bezier(.16, 1, .3, 1);
}
/* Filled by default (builder canvas, no JS); rcs-home.js opts rows into the scroll reveal. */
html:not(.rcsj-js) #tech-stack-2 .rcsj-word::after, #tech-stack-2 .rcsj-row.is-in .rcsj-word::after { clip-path: inset(-0.2em -0.1em -0.3em 0); }
@media (prefers-reduced-motion: reduce) { #tech-stack-2 .rcsj-word::after { clip-path: none; transition: none; } }
