/* Liquid gold borders (assets/js/liquid-gold.js).
   The shader paints a box behind the element's own edge; the mask keeps only
   a --lg-w ring of it. The element's CSS border stays until the shader is up
   (.lg-on), so without WebGL nothing changes. */

[data-liquid-gold] { position: relative; isolation: isolate; }

.lg-ring {
	--lg-w: 1.5px;
	position: absolute;
	inset: -1px; /* sits exactly over the 1px CSS border it replaces */
	z-index: 1;
	padding: var(--lg-w);
	border-radius: inherit;
	pointer-events: none;
	-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 exclude, linear-gradient(#000 0 0);
	opacity: 0;
	transition: opacity 1.2s cubic-bezier(.23, 1, .32, 1);
	/* the metal's own warm bloom, so it reads as light, not a printed line */
	filter: drop-shadow(0 0 6px #e9c77e59);
}
.lg-host {
	position: absolute;
	inset: 0;
	border-radius: inherit;
}
.lg-on > .lg-ring { opacity: 1; }
/* the shader draws polished silver; this layer keeps its light and dark and
   gives it the gold's hue (blend: color), so it reads as liquid gold */
.lg-tint {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(115deg, #a87a32, #f3dfa6 38%, #d6b26d 58%, #b8893f);
	mix-blend-mode: color;
}
.lg-on { border-color: transparent !important; }

/* Buttons: the ring brightens a touch on hover */
.pill.lg-on:hover > .lg-ring { filter: drop-shadow(0 0 10px #e9c77e8c); }

/* The film's frame: a slightly heavier ring for its size */
.voices-shell[data-liquid-gold] .lg-ring { --lg-w: 2px; }

/* ---- "Hear it from our guests": hero-size pill ------------------------------ */

.first-voices {
	gap: 28px;
	min-height: 88px;
	padding: 10px 10px 10px 46px;
	font-size: 18px;
	letter-spacing: .14em;
}
.first-voices .pill-icon { width: 68px; height: 68px; }
.first-voices .pill-icon .voices-icon { width: 26px; height: 26px; }
/* a heavier ring and a little more bloom than the other buttons */
.first-voices .lg-ring { --lg-w: 3px; filter: drop-shadow(0 0 9px #e9c77e73); }
@media (max-width: 640px) {
	.first-voices { gap: 14px; min-height: 72px; padding: 8px 8px 8px 28px; font-size: 14px; letter-spacing: .1em; }
	.first-voices .pill-icon { width: 54px; height: 54px; }
	.first-voices .lg-ring { --lg-w: 2.5px; }
}

/* ---- "Then they tried it.": gold underline, drawn in after the words ---------
   The heading is a flex row of word spans, so each gold word carries its own
   segment and reaches across the gap to the next word. */

.voices-head h2 .blur-accent { position: relative; }
.voices-head h2 .blur-accent::after {
	content: "";
	position: absolute;
	left: 0;
	right: -.26em; /* the h2's column-gap */
	bottom: -.1em; /* clears the y's descender */
	height: max(1px, .026em);
	background: #d6b26d; /* one flat gold: a gradient would restart on every word */
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .5s cubic-bezier(.65, 0, .35, 1);
	transition-delay: calc(.9s + (var(--w) - 3) * .14s);
}
.voices-head h2 .blur-accent:last-child::after { right: 0; }
.voices.is-in .voices-head h2 .blur-accent::after,
html:not(.js) .voices-head h2 .blur-accent::after { transform: none; }

@media (prefers-reduced-motion: reduce) {
	.voices-head h2 .blur-accent::after { transform: none; transition: none; }
	.lg-ring { transition: none; }
}
