/* ═══════════════════════════════════════════════════════════════════════
   THE SILVER TRESS — homepage design system
   Modern high-contrast editorial. Ivory ground, near-black anchors.
   Written mobile-first: base rules target 375px, enhancements go up.
   ═══════════════════════════════════════════════════════════════════════ */

.tst {
	/* ── Colour ────────────────────────────────────────────────────────
	   Neutrals tint warm (~75-85°) so ivory reads as paper. Silver alone
	   runs cool (250°). That warm/cool tension is the whole palette idea.
	   Nothing is pure black or pure white.                              */
	--ink:        oklch(0.19  0.008  75);
	--ink-deep:   oklch(0.155 0.010  70);
	--ink-soft:   oklch(0.30  0.009  72);
	--paper:      oklch(0.973 0.006  85);
	--paper-alt:  oklch(0.945 0.008  82);
	--silver:     oklch(0.74  0.008 250);
	--signal:     oklch(0.46  0.145  32);
	--signal-lit: oklch(0.62  0.150  34);

	--on-dark:      oklch(0.945 0.005 85);
	--on-dark-mute: oklch(0.70  0.006 80);
	--on-light-mute: oklch(0.50  0.008 75);
	--rule:         oklch(0.19 0.008 75 / 0.14);
	--rule-light:   oklch(0.95 0.005 85 / 0.20);

	/* ── Type ──────────────────────────────────────────────────────────
	   Bodoni is display-only. Its thin strokes vanish at small sizes, and
	   this audience is squarely in the presbyopia band — so every rule
	   below 28px is set in Archivo, without exception.                  */
	--display: "Bodoni Moda", Georgia, "Times New Roman", serif;
	--body:    "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

	--fs-display: clamp(2.6rem, 1.15rem + 6.6vw, 7rem);
	--fs-h2:      clamp(2rem, 1.4rem + 2.7vw, 4rem);
	--fs-h3:      clamp(1.35rem, 1.15rem + 0.9vw, 1.9rem);
	--fs-lede:    clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
	--fs-body:    clamp(1.0625rem, 1.02rem + 0.22vw, 1.1875rem);
	--fs-small:   0.9375rem;
	--fs-label:   0.75rem;

	/* ── Space — 4pt scale, semantic names ─────────────────────────── */
	--s-2:  0.5rem;
	--s-3:  0.75rem;
	--s-4:  1rem;
	--s-6:  1.5rem;
	--s-8:  2rem;
	--s-12: 3rem;
	--s-16: 4rem;
	--s-24: 6rem;

	--gutter:  clamp(1.25rem, 5vw, 5rem);
	--section: clamp(4rem, 9vw, 8.5rem);
	--measure: 68ch;

	--ease: cubic-bezier(0.16, 1, 0.3, 1);

	font-family: var(--body);
	font-size: var(--fs-body);
	line-height: 1.65;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
}

/* Kadence constrains its content wrapper. The homepage is full-bleed by
   design, so neutralise it here only — every other template is untouched. */
body.tst-home #inner-wrap,
body.tst-home #inner-wrap.wrap {
	max-width: none;
	padding-inline: 0;
	margin-inline: 0;
}
body.tst-home .content-area,
body.tst-home .content-container { margin: 0; padding: 0; max-width: none; }

.tst *, .tst *::before, .tst *::after { box-sizing: border-box; }
.tst img { max-width: 100%; display: block; }

/* Visually hidden but available to assistive tech. */
.tst-vh {
	position: absolute; width: 1px; height: 1px;
	padding: 0; margin: -1px; overflow: hidden;
	clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ── Shared type ─────────────────────────────────────────────────────── */

.tst-eyebrow {
	font-family: var(--body);
	font-size: var(--fs-label);
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--signal);
	margin: 0 0 var(--s-4);
	display: flex;
	align-items: center;
	gap: var(--s-3);
}
.tst-eyebrow::after {
	content: "";
	flex: 1;
	max-width: 4rem;
	height: 1px;
	background: currentColor;
	opacity: 0.5;
}
.tst-eyebrow--light { color: var(--signal-lit); }

.tst-kicker {
	font-size: var(--fs-label);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--on-light-mute);
}

.tst-sec__title {
	font-family: var(--display);
	font-variation-settings: "opsz" 96;
	font-weight: 500;
	font-size: var(--fs-h2);
	line-height: 1.02;
	letter-spacing: -0.015em;
	margin: 0;
	text-wrap: balance;
}

.tst-sec__lede {
	font-size: var(--fs-lede);
	line-height: 1.55;
	color: var(--on-light-mute);
	max-width: 46ch;
	margin: var(--s-4) 0 0;
	text-wrap: pretty;
}
.tst-sec__lede--light { color: var(--on-dark-mute); }

.tst-sec__head { margin-bottom: var(--s-12); }
.tst-sec__head--row {
	display: flex;
	flex-direction: column;
	gap: var(--s-6);
	align-items: flex-start;
}

.tst-byline {
	font-size: var(--fs-small);
	color: var(--on-light-mute);
	margin: 0;
}
.tst-count {
	font-size: var(--fs-small);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--on-light-mute);
	margin: 0;
}
.tst-byline--light { color: var(--on-dark-mute); }

/* ── Buttons & links ─────────────────────────────────────────────────── */

.tst-btn {
	display: inline-flex;
	align-items: center;
	gap: var(--s-3);
	min-height: 3rem;                 /* comfortable touch target */
	padding: 0.75rem var(--s-6);
	font-size: var(--fs-small);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ink);
	border: 1px solid var(--ink);
	background: transparent;
	border-radius: 0;
	transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.tst-btn svg {
	width: 1em; height: 1em; flex: none;
	fill: none; stroke: currentColor; stroke-width: 1.75;
	transition: transform 0.4s var(--ease);
}
.tst-btn:hover { background: var(--ink); color: var(--paper); }
.tst-btn:hover svg { transform: translateX(0.25em); }

.tst-btn--light { color: var(--on-dark); border-color: var(--rule-light); }
.tst-btn--light:hover { background: var(--on-dark); color: var(--ink); }

.tst-btn--solid { background: var(--signal); border-color: var(--signal); color: var(--paper); }
.tst-btn--solid:hover { background: var(--signal-lit); border-color: var(--signal-lit); color: var(--ink); }
.tst-btn[disabled] { opacity: 0.45; pointer-events: none; }

.tst-textlink {
	display: inline-flex;
	align-items: center;
	gap: var(--s-2);
	font-size: var(--fs-small);
	font-weight: 600;
	color: var(--ink);
	text-decoration: none;
	border-bottom: 1px solid var(--signal);
	padding-bottom: 2px;
	transition: color 0.3s var(--ease);
}
.tst-textlink svg {
	width: 1em; height: 1em;
	fill: none; stroke: currentColor; stroke-width: 1.75;
	transition: transform 0.4s var(--ease);
}
.tst-textlink:hover { color: var(--signal); }
.tst-textlink:hover svg { transform: translateX(0.25em); }

.tst a:focus-visible,
.tst summary:focus-visible,
.tst button:focus-visible,
.tst input:focus-visible {
	outline: 2px solid var(--signal);
	outline-offset: 3px;
}

/* Image wrappers: the span is the frame, the img fills it. */
.tst-img { width: 100%; height: 100%; object-fit: cover; }
.tst-img--empty {
	display: grid;
	place-items: center;
	font-family: var(--display);
	font-size: 3rem;
	color: var(--silver);
	background: var(--paper-alt);
}

/* ═══════════════════════  HERO  ═══════════════════════════════════════ */

.tst-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: min(94svh, 46rem);
	padding: var(--s-16) var(--gutter) var(--s-12);
	background: var(--ink-deep);
	overflow: hidden;
	isolation: isolate;
}

.tst-hero__media { position: absolute; inset: 0; z-index: -2; }
.tst-hero__media img {
	width: 100%; height: 100%;
	object-fit: cover;
	object-position: 68% center;    /* keeps her face in frame on narrow screens */
	animation: tst-hero-in 1.9s var(--ease) both;
}
@keyframes tst-hero-in {
	from { transform: scale(1.09); opacity: 0.55; }
	to   { transform: none; opacity: 1; }
}

/* Scrim rises from the bottom on mobile where type sits under the portrait. */
.tst-hero::before {
	content: "";
	position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(
		to top,
		oklch(0.155 0.010 70 / 0.96) 0%,
		oklch(0.155 0.010 70 / 0.86) 32%,
		oklch(0.155 0.010 70 / 0.30) 66%,
		oklch(0.155 0.010 70 / 0.12) 100%
	);
}

.tst-hero__inner { position: relative; max-width: 32rem; }

.tst-hero__title {
	font-family: var(--display);
	font-variation-settings: "opsz" 96;
	font-weight: 500;
	font-size: var(--fs-display);
	line-height: 0.94;
	letter-spacing: -0.025em;
	color: var(--on-dark);
	margin: 0 0 var(--s-6);
}

.tst-hero__sub {
	font-size: var(--fs-lede);
	line-height: 1.62;             /* light-on-dark needs the extra leading */
	color: var(--on-dark-mute);
	max-width: 34ch;
	margin: 0 0 var(--s-8);
	text-wrap: pretty;
}

.tst-hero__scroll { display: none; }

@media (min-width: 48em) {
	.tst-hero {
		align-items: center;
		min-height: min(92svh, 52rem);
		padding-block: var(--s-24);
	}
	/* Above mobile the portrait sits right, so the scrim sweeps from the left. */
	.tst-hero::before {
		background: linear-gradient(
			to right,
			oklch(0.155 0.010 70 / 0.95) 0%,
			oklch(0.155 0.010 70 / 0.82) 38%,
			oklch(0.155 0.010 70 / 0.25) 68%,
			oklch(0.155 0.010 70 / 0.05) 100%
		);
	}
	.tst-hero__media img { object-position: 75% center; }
	.tst-hero__inner { max-width: 38rem; }

	.tst-hero__scroll {
		display: block;
		position: absolute;
		left: var(--gutter);
		bottom: var(--s-8);
		margin: 0;
		width: 1px; height: 3.5rem;
		background: var(--rule-light);
		overflow: hidden;
	}
	.tst-hero__scroll span {
		display: block; width: 100%; height: 40%;
		background: var(--signal-lit);
		animation: tst-scroll 2.4s var(--ease) infinite;
	}
	@keyframes tst-scroll {
		0%   { transform: translateY(-100%); }
		100% { transform: translateY(350%); }
	}
}

/* ═══════════════════════  FINDER  ═════════════════════════════════════ */

.tst-finder {
	padding: var(--section) var(--gutter);
	background: var(--paper);
}
.tst-finder__list { border-top: 1px solid var(--rule); }

.tst-finder__item { border-bottom: 1px solid var(--rule); }

.tst-finder__tile {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: var(--s-4);
	align-items: baseline;
	padding: var(--s-6) 0;
	cursor: pointer;
	list-style: none;
	transition: color 0.4s var(--ease);
}
.tst-finder__tile::-webkit-details-marker { display: none; }
.tst-finder__tile:hover { color: var(--signal); }

.tst-finder__num {
	font-family: var(--body);
	font-size: var(--fs-label);
	font-weight: 600;
	letter-spacing: 0.1em;
	color: var(--silver);
	padding-top: 0.35em;
}

.tst-finder__q {
	display: block;
	font-family: var(--display);
	font-variation-settings: "opsz" 48;
	font-weight: 500;
	font-size: var(--fs-h3);
	line-height: 1.15;
	letter-spacing: -0.01em;
}
.tst-finder__blurb {
	display: block;
	font-size: var(--fs-small);
	color: var(--on-light-mute);
	margin-top: var(--s-2);
	max-width: 52ch;
}

/* Plus sign that becomes a minus. Two spans would be cheaper to read but
   pseudo-elements keep the markup honest — this is decoration, not content. */
.tst-finder__marker {
	position: relative;
	width: 1.25rem; height: 1.25rem;
	flex: none;
	align-self: center;
}
.tst-finder__marker::before,
.tst-finder__marker::after {
	content: "";
	position: absolute; inset: 50% 0 auto 0;
	height: 1px;
	background: currentColor;
	transition: transform 0.45s var(--ease);
}
.tst-finder__marker::after { transform: rotate(90deg); }
.tst-finder__item[open] .tst-finder__marker::after { transform: rotate(0deg); }
.tst-finder__item[open] .tst-finder__tile { color: var(--signal); }

/* Native disclosure animation. Chrome/Edge honour it; everywhere else the
   panel simply opens instantly, which is a fine outcome. */
@supports (interpolate-size: allow-keywords) {
	:root { interpolate-size: allow-keywords; }
	.tst-finder__item::details-content {
		block-size: 0;
		overflow: hidden;
		opacity: 0;
		transition:
			block-size 0.55s var(--ease),
			opacity 0.45s var(--ease),
			content-visibility 0.55s allow-discrete;
	}
	.tst-finder__item[open]::details-content { block-size: auto; opacity: 1; }
}

.tst-finder__panel { padding: 0 0 var(--s-8); }

.tst-finder__lead {
	display: grid;
	gap: var(--s-4);
	text-decoration: none;
	color: inherit;
	margin-bottom: var(--s-6);
}
.tst-finder__lead-media {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--paper-alt);
}
.tst-finder__lead-media .tst-img { transition: transform 0.8s var(--ease); }
.tst-finder__lead:hover .tst-img { transform: scale(1.045); }

.tst-finder__lead-title {
	display: block;
	font-family: var(--display);
	font-variation-settings: "opsz" 48;
	font-weight: 500;
	font-size: var(--fs-h3);
	line-height: 1.15;
	margin-top: var(--s-2);
}
.tst-finder__lead:hover .tst-finder__lead-title { color: var(--signal); }

.tst-finder__more { list-style: none; margin: 0 0 var(--s-6); padding: 0; }
.tst-finder__more li { border-top: 1px solid var(--rule); }
.tst-finder__more a {
	display: block;
	padding: var(--s-3) 0;
	font-size: var(--fs-small);
	color: var(--ink);
	text-decoration: none;
	transition: color 0.3s var(--ease), padding-left 0.4s var(--ease);
}
.tst-finder__more a:hover { color: var(--signal); padding-left: var(--s-3); }

@media (min-width: 48em) {
	.tst-finder__tile { gap: var(--s-8); padding: var(--s-8) 0; }
	.tst-finder__panel {
		display: grid;
		grid-template-columns: 1.15fr 1fr;
		gap: var(--s-12);
		align-items: start;
		padding-bottom: var(--s-12);
		padding-left: calc(var(--s-8) + 1.5rem);
	}
	.tst-finder__lead { margin-bottom: 0; }
	.tst-finder__more { margin-bottom: var(--s-4); }
}

/* ═══════════════════════  FEATURED  ═══════════════════════════════════ */

.tst-featured {
	background: var(--ink);
	color: var(--on-dark);
	display: grid;
}
.tst-featured__media { overflow: hidden; }
.tst-featured__media a { display: block; }
.tst-featured__media .tst-img {
	aspect-ratio: 4 / 3;
	transition: transform 1.1s var(--ease);
}
.tst-featured:hover .tst-img { transform: scale(1.04); }

.tst-featured__text {
	padding: var(--section) var(--gutter);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
}
.tst-featured__title {
	font-family: var(--display);
	font-variation-settings: "opsz" 96;
	font-weight: 500;
	font-size: var(--fs-h2);
	line-height: 1.03;
	letter-spacing: -0.02em;
	margin: 0 0 var(--s-4);
	text-wrap: balance;
}
/* Specificity here is deliberate, not accidental. Kadence sets a global link
   colour that beat `color: inherit` and rendered this headline in dark navy on
   a near-black ground — effectively invisible. Anything of ours sitting on a
   dark section has to out-rank that rule. */
.tst .tst-featured__title a,
.tst .tst-featured__title a:visited { color: var(--on-dark); text-decoration: none; }
.tst .tst-featured__title a:hover,
.tst .tst-featured__title a:focus-visible { color: var(--signal-lit); }

.tst .tst-writer a,
.tst .tst-writer a:visited { color: var(--on-dark); }
.tst .tst-cats__item a,
.tst .tst-cats__item a:visited,
.tst .tst-pins__tile a,
.tst .tst-pins__tile a:visited { color: var(--on-dark); }
.tst .tst-card a,
.tst .tst-card a:visited { color: var(--ink); }
.tst .tst-finder__lead,
.tst .tst-finder__lead:visited { color: var(--ink); }
.tst-featured__excerpt {
	color: var(--on-dark-mute);
	line-height: 1.72;
	max-width: 44ch;
	margin: 0 0 var(--s-4);
	text-wrap: pretty;
}
.tst-featured__text .tst-btn { margin-top: var(--s-6); }

@media (min-width: 56em) {
	.tst-featured { grid-template-columns: 1fr 1fr; align-items: stretch; }
	.tst-featured__media { order: 2; }
	.tst-featured__media a, .tst-featured__media .tst-img { height: 100%; aspect-ratio: auto; }
}

/* ═══════════════════════  CATEGORIES  ═════════════════════════════════ */

.tst-cats { padding: var(--section) var(--gutter); background: var(--paper); }

.tst-cats__grid {
	list-style: none; margin: 0; padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--s-3);
}
.tst-cats__item a {
	position: relative;
	display: block;
	text-decoration: none;
	color: var(--on-dark);
	overflow: hidden;
	background: var(--ink);
	aspect-ratio: 3 / 4;
}
.tst-cats__media { position: absolute; inset: 0; }
.tst-cats__media .tst-img {
	transition: transform 0.9s var(--ease), opacity 0.6s var(--ease);
	opacity: 0.72;
}
.tst-cats__item a::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(to top, oklch(0.155 0.01 70 / 0.88), transparent 62%);
}
.tst-cats__item a:hover .tst-img { transform: scale(1.06); opacity: 0.92; }

.tst-cats__label {
	position: absolute;
	left: var(--s-4); right: var(--s-4); bottom: var(--s-4);
	z-index: 1;
	font-family: var(--display);
	font-variation-settings: "opsz" 40;
	font-weight: 500;
	font-size: clamp(1.1rem, 0.9rem + 0.9vw, 1.6rem);
	line-height: 1.1;
	text-wrap: balance;
}
.tst-cats__count {
	position: absolute;
	top: var(--s-4); right: var(--s-4);
	z-index: 1;
	font-size: var(--fs-label);
	font-weight: 600;
	letter-spacing: 0.1em;
	color: var(--on-dark-mute);
}

@media (min-width: 48em) {
	.tst-cats__grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
	/* Break the grid deliberately: the first shelf gets twice the room. */
	.tst-cats__item:first-child { grid-column: span 2; }
	.tst-cats__item:first-child a { aspect-ratio: 16 / 11; }
}

/* ═══════════════════════  LATEST  ═════════════════════════════════════ */

.tst-latest { padding: var(--section) var(--gutter); background: var(--paper-alt); }

.tst-latest__grid {
	list-style: none; margin: 0; padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
	gap: var(--s-8) var(--s-6);
}
.tst-card a { display: block; text-decoration: none; color: inherit; }
.tst-card__media {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--paper);
	margin-bottom: var(--s-4);
}
.tst-card__media .tst-img { transition: transform 0.9s var(--ease); }
.tst-card a:hover .tst-img { transform: scale(1.05); }

.tst-card__meta { display: block; margin-bottom: var(--s-2); }
.tst-card__title {
	font-family: var(--display);
	font-variation-settings: "opsz" 40;
	font-weight: 500;
	font-size: var(--fs-h3);
	line-height: 1.18;
	letter-spacing: -0.01em;
	margin: 0 0 var(--s-2);
	text-wrap: balance;
	transition: color 0.3s var(--ease);
}
.tst-card a:hover .tst-card__title { color: var(--signal); }

/* ═══════════════════════  WRITERS  ════════════════════════════════════ */

.tst-writers {
	padding: var(--section) var(--gutter);
	background: var(--ink-deep);
	color: var(--on-dark);
}
.tst-writers .tst-sec__title { color: var(--on-dark); }

.tst-writers__grid {
	list-style: none; margin: 0; padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
	gap: 1px;
	background: var(--rule-light);
	border: 1px solid var(--rule-light);
}
.tst-writer a {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: var(--s-6);
	background: var(--ink-deep);
	text-decoration: none;
	color: inherit;
	transition: background 0.5s var(--ease);
}
.tst-writer a:hover { background: var(--ink); }

.tst-writer__mono {
	font-family: var(--display);
	font-variation-settings: "opsz" 96;
	font-weight: 400;
	font-size: 3.5rem;
	line-height: 1;
	color: var(--silver);
	margin-bottom: var(--s-6);
	transition: color 0.5s var(--ease), transform 0.6s var(--ease);
	transform-origin: left bottom;
}
.tst-writer a:hover .tst-writer__mono { color: var(--signal-lit); transform: scale(1.12); }

.tst-writer__name {
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: 0.01em;
}
.tst-writer__spec {
	font-size: var(--fs-label);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--signal-lit);
	margin-top: var(--s-2);
}
.tst-writer__line {
	font-size: var(--fs-small);
	line-height: 1.65;
	color: var(--on-dark-mute);
	margin-top: var(--s-4);
	text-wrap: pretty;
}

.tst-writers__note {
	font-size: var(--fs-small);
	line-height: 1.7;
	color: var(--on-dark-mute);
	max-width: 60ch;
	margin: var(--s-8) 0 0;
}
.tst-writers__note a {
	color: var(--on-dark);
	text-decoration: none;
	border-bottom: 1px solid var(--signal-lit);
	padding-bottom: 1px;
}
.tst-writers__note a:hover { color: var(--signal-lit); }

.tst-standards p a {
	color: var(--ink);
	text-decoration: none;
	border-bottom: 1px solid var(--signal);
}
.tst-standards p a:hover { color: var(--signal); }

/* ═══════════════════════  PINTEREST  ══════════════════════════════════ */

.tst-pins { padding: var(--section) var(--gutter) var(--section); background: var(--paper); }

.tst-pins__strip {
	list-style: none; margin: 0; padding: 0;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 60vw;
	gap: var(--s-3);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	overscroll-behavior-x: contain;
	padding-bottom: var(--s-4);
	/* Bleed the rail to the screen edge so it reads as scrollable. */
	margin-inline: calc(var(--gutter) * -1);
	padding-inline: var(--gutter);
	scrollbar-width: thin;
}
.tst-pins__tile { scroll-snap-align: start; }
.tst-pins__tile a {
	display: block;
	position: relative;
	aspect-ratio: 2 / 3;
	overflow: hidden;
	background: var(--paper-alt);
	text-decoration: none;
}
.tst-pins__tile .tst-img { transition: transform 0.9s var(--ease); }
.tst-pins__tile a:hover .tst-img { transform: scale(1.06); }
.tst-pins__tile a::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(to top, oklch(0.155 0.01 70 / 0.82), transparent 55%);
}
.tst-pins__cap {
	position: absolute;
	left: var(--s-4); right: var(--s-4); bottom: var(--s-4);
	z-index: 1;
	font-size: var(--fs-small);
	font-weight: 600;
	line-height: 1.3;
	color: var(--on-dark);
}

@media (min-width: 48em) {
	.tst-pins__strip { grid-auto-columns: minmax(0, 22vw); }
}
@media (min-width: 75em) {
	.tst-pins__strip {
		grid-auto-flow: row;
		grid-template-columns: repeat(4, 1fr);
		overflow: visible;
		margin-inline: 0;
		padding-inline: 0;
		gap: var(--s-4);
	}
	/* Only the first four fit the row; the rest would orphan a second line. */
	.tst-pins__tile:nth-child(n + 5) { display: none; }
}

/* ═══════════════════════  NEWSLETTER  ═════════════════════════════════ */

.tst-news {
	position: relative;
	padding: var(--section) var(--gutter);
	background: var(--ink);
	color: var(--on-dark);
	overflow: hidden;
	isolation: isolate;
}
.tst-news::before {
	content: "";
	position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(to right, oklch(0.19 0.008 75 / 0.97), oklch(0.19 0.008 75 / 0.72)),
		image-set(
			url("images/texture-1600.webp") 1x
		) center / cover no-repeat;
}
.tst-news__inner { max-width: 40rem; }
.tst-news .tst-sec__title { color: var(--on-dark); }

.tst-news__form {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-3);
	margin-top: var(--s-8);
}
.tst-news__form input {
	flex: 1 1 14rem;
	min-height: 3rem;
	padding: 0.75rem var(--s-4);
	font-family: inherit;
	font-size: var(--fs-body);
	color: var(--on-dark);
	background: transparent;
	border: 1px solid var(--rule-light);
	border-radius: 0;
}
.tst-news__form input::placeholder { color: oklch(0.70 0.006 80 / 0.6); }
.tst-news__form input[disabled] { opacity: 0.5; }
.tst-news__note {
	font-size: var(--fs-small);
	color: var(--on-dark-mute);
	margin: var(--s-4) 0 0;
}

/* ═══════════════════════  STANDARDS  ══════════════════════════════════ */

/* Closing note, not a section in its own right — it gets roughly half the
   vertical room the real sections take, or it reads as an orphaned block. */
.tst-standards {
	padding: clamp(2.5rem, 5vw, 4.5rem) var(--gutter) clamp(3rem, 6vw, 5.5rem);
	background: var(--paper);
}
.tst-standards__list {
	list-style: none; margin: 0; padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
	gap: var(--s-8);
	border-top: 1px solid var(--rule);
	padding-top: var(--s-8);
}
.tst-standards h3 {
	font-family: var(--body);
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	margin: 0 0 var(--s-3);
}
.tst-standards p {
	font-size: var(--fs-small);
	line-height: 1.7;
	color: var(--on-light-mute);
	margin: 0;
	max-width: 40ch;
}

/* ═══════════════════════  MOTION  ═════════════════════════════════════
   Reveals are gated on .tst-js so the page is fully visible without
   JavaScript rather than permanently blank.                             */

.tst-js [data-reveal] {
	opacity: 0;
	transform: translateY(28px);
	transition:
		opacity 0.9s var(--ease),
		transform 0.9s var(--ease);
	transition-delay: calc(var(--i, 0) * 70ms);
	will-change: opacity, transform;
}
.tst-js [data-reveal].is-in {
	opacity: 1;
	transform: none;
	will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
	.tst *,
	.tst *::before,
	.tst *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
	.tst-js [data-reveal] { opacity: 1; transform: none; }
	.tst-hero__media img { animation: none; }
	.tst-hero__scroll { display: none; }
}
