/* ============================================================================
   Stravum — About page brutalist scope.

   Loaded ONLY on the About page via the stravum-about-brutalist mu-plugin, and
   every rule is additionally namespaced under .sab (present on each top-level
   section of that page). Two independent guards, so this file can have zero
   effect anywhere else even if it were somehow loaded on another request.

   What this file owns: the JetBrains Mono label/mono register, the heavy
   uppercase wide-tracking voice, hard borders, the hero watermark, and the
   hover behaviours the design depends on. Plus Jakarta Sans and Geist are NOT
   touched — they stay the connecting thread to the rest of the brand.
   ============================================================================ */

.sab {
	--sab-obsidian: #0a0c10;
	--sab-white: #ffffff;
	--sab-orange: #fd5b38;
	--sab-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

/* The mono/label register — the one font swap this page makes. */
.sab .sab-mono,
.sab .sab-mono p,
.sab .st-mf-ribbon,
.sab .st-mf-sign-role {
	font-family: var(--sab-mono) !important;
	text-transform: uppercase;
	letter-spacing: 0.12em;
}

/* ==================================================================== Hero. */
.sab-hero {
	position: relative;
	overflow: hidden;
}

/* Giant watermark word. Decorative only, hidden from assistive tech, and it
   must never intercept a click on the copy sitting above it. */
.sab-hero::after {
	content: "STORY";
	position: absolute;
	inset: 0;
	z-index: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 25vw;
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.05em;
	color: rgba(255, 255, 255, 0.05);
	pointer-events: none;
	user-select: none;
}

/* Gradient scrim over the background plate, matching the mockup's stacked
   overlays without needing a second wrapper element. */
.sab-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(180deg, rgba(10, 12, 16, 0.9) 0%, rgba(10, 12, 16, 0.35) 45%, #0a0c10 100%);
	pointer-events: none;
}

.sab-hero > .st-container-inner {
	position: relative;
	z-index: 2;
}

.sab-hero-accent {
	color: var(--sab-orange);
}

/* ============================================================== Lab report. */
.sab-report {
	background-color: var(--sab-white);
	border-top: 8px solid var(--sab-obsidian);
	border-bottom: 8px solid var(--sab-obsidian);
}

.sab-report-rule {
	border-bottom: 8px solid var(--sab-obsidian);
}

.sab-stamp {
	background-color: #0b0e15;
	color: var(--sab-white);
	padding: 16px 20px;
	font-family: var(--sab-mono) !important;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	line-height: 1.7;
}

/* ================================================================= Metrics. */
.sab-metric {
	position: relative;
	overflow: hidden;
	border: 4px solid var(--sab-white);
	transition: border-color 0.3s ease;
}

/* The orange panel that slides up from the bottom on hover. A pseudo-element
   rather than a real div, so the markup stays widget-composed. */
.sab-metric::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background-color: var(--sab-orange);
	transform: translateY(100%);
	transition: transform 0.3s ease;
	pointer-events: none;
}

.sab-metric:hover::before,
.sab-metric:focus-within::before {
	transform: translateY(0);
}

.sab-metric > .st-container-inner,
.sab-metric > * {
	position: relative;
	z-index: 1;
}

/* Text inverts white -> dark as the panel arrives. Element qualifier keeps
   these above the style engine's base colour rule without a third class. */
.sab-metric:hover .st-heading,
.sab-metric:focus-within .st-heading {
	color: var(--sab-obsidian) !important;
	transition: color 0.3s ease;
}

/* ================================================================= Experts. */
.sab-expert {
	border: 4px solid var(--sab-white);
	transition: transform 0.3s ease;
}

.sab-expert:hover,
.sab-expert:focus-within {
	transform: translateY(-8px);
}

/* Portrait plate: grayscale at rest, full colour on hover. Applies whether the
   slot holds a real image or the icon placeholder currently in use. */
.sab-portrait {
	filter: grayscale(1);
	transition: filter 0.5s ease;
	border: 2px solid rgba(255, 255, 255, 0.2);
}

.sab-expert:hover .sab-portrait,
.sab-expert:focus-within .sab-portrait {
	filter: grayscale(0);
}

.sab-status-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background-color: var(--sab-orange);
	animation: sab-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes sab-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.35; }
}

/* ===================================================================== CTA. */
.sab-cta {
	position: relative;
	overflow: hidden;
	border-top: 8px solid var(--sab-orange);
}

/* Dot grid field. */
.sab-cta::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	opacity: 0.2;
	background-image: radial-gradient(#ffffff 1px, transparent 1px);
	background-size: 40px 40px;
	pointer-events: none;
}

.sab-cta > .st-container-inner {
	position: relative;
	z-index: 1;
}

.sab-badge {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 10px 24px;
	background-color: #32353c;
	border: 2px solid var(--sab-orange);
	color: var(--sab-orange);
	font-family: var(--sab-mono) !important;
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.2em;
}

/* Buttons: invert on hover, and the trailing icon slides right. The element
   qualifier outranks the style engine's base button colours without needing a
   third class, while an explicit hover control on the widget still wins. */
.sab a.st-button {
	font-family: var(--sab-mono) !important;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	border: 4px solid transparent;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.sab a.st-button:hover {
	border-color: var(--sab-white);
}

.sab a.st-button .material-symbols-outlined {
	transition: transform 0.3s ease;
}

.sab a.st-button:hover .material-symbols-outlined {
	transform: translateX(8px);
}

/* ============================================================== Responsive. */
@media (max-width: 767px) {
	.sab-hero::after {
		font-size: 34vw;
	}

	.sab-metric,
	.sab-expert {
		border-width: 3px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sab-metric::before,
	.sab-expert,
	.sab-portrait,
	.sab a.st-button,
	.sab a.st-button .material-symbols-outlined {
		transition: none;
	}

	.sab-status-dot {
		animation: none;
	}

	.sab-expert:hover,
	.sab-expert:focus-within {
		transform: none;
	}
}
