/*
 * WP WOW: site-wide stylesheet.
 *
 * 1. Fonts (match the Bricks theme style: Inter, Instrument Serif, JetBrains Mono).
 * 2. The [wpwow_search] form.
 * 3. WOW animation classes: "hidden until animated" rules for wpwow-anim.js.
 * 4. Small CSS-only helpers for Bricks elements (backgrounds, hover, float, header).
 *
 * Colours and spacing come from the Bricks palette and variables
 * (--primary, --secondary, --accent, --base, --black, --white, --space-*).
 * The fallbacks are only used when those variables are missing.
 */

/* ------------------------------------------------------------------ fonts */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Instrument Serif";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
}
@font-face {
	font-family: "JetBrains Mono";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
	font-family: "JetBrains Mono";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
}

/* ----------------------------------------------------------- shared bits */
.wpwow-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.wpwow-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.wpwow-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6em;
	padding: 0.85em 1.4em;
	border: 1px solid transparent;
	border-radius: var(--radius-pill, 999px);
	font: inherit;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: transform var(--duration, 0.3s) var(--ease-out, ease), background-color var(--duration, 0.3s) var(--ease-out, ease), box-shadow var(--duration, 0.3s) var(--ease-out, ease);
}
.wpwow-btn--primary {
	background: var(--primary, #c8f53c);
	color: var(--black, #09090b);
}
.wpwow-btn--primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 30px color-mix(in srgb, var(--primary, #c8f53c) 35%, transparent);
}

/* ---------------------------------------------------------------- search */
.wpwow-search-wrap {
	width: 100%;
	max-width: var(--container-narrow, 720px);
	margin-inline: auto;
}
.wpwow-search {
	display: flex;
	align-items: center;
	gap: var(--space-2xs, 0.8rem);
	padding: 0.7rem 0.7rem 0.7rem 1.8rem;
	background: color-mix(in srgb, var(--white, #fafafa) 6%, transparent);
	border: 1px solid color-mix(in srgb, var(--white, #fafafa) 16%, transparent);
	border-radius: var(--radius-pill, 999px);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	transition: border-color var(--duration, 0.3s) var(--ease-out, ease), box-shadow var(--duration, 0.3s) var(--ease-out, ease);
}
.wpwow-search:focus-within {
	border-color: var(--primary, #c8f53c);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary, #c8f53c) 20%, transparent);
}
.wpwow-search__icon {
	display: inline-flex;
	color: color-mix(in srgb, var(--white, #fafafa) 55%, transparent);
	flex: none;
}
.wpwow-search__input {
	text-align: left;
	flex: 1 1 auto;
	min-width: 0;
	padding: 0.9rem 0.4rem;
	background: transparent;
	border: 0;
	outline: 0;
	box-shadow: none;
	color: var(--white, #fafafa);
	font: inherit;
	font-size: var(--text-m, 1.6rem);
}
.wpwow-search__input::placeholder {
	color: color-mix(in srgb, var(--white, #fafafa) 40%, transparent);
}
.wpwow-search__button {
	flex: none;
}
.wpwow-search__error {
	min-height: 1.4em;
	margin: 0.8rem 0 0;
	color: var(--danger, #ff6b8a);
	font-size: var(--text-s, 1.3rem);
	text-align: center;
}
.wpwow-recent {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	margin-top: var(--space-xs, 1.2rem);
}
.wpwow-recent__label {
	color: color-mix(in srgb, var(--white, #fafafa) 50%, transparent);
	font-size: var(--text-s, 1.3rem);
}
.wpwow-chip {
	padding: 0.4em 0.9em;
	background: color-mix(in srgb, var(--white, #fafafa) 7%, transparent);
	border: 1px solid color-mix(in srgb, var(--white, #fafafa) 14%, transparent);
	border-radius: var(--radius-pill, 999px);
	color: var(--white, #fafafa);
	font: 500 var(--text-s, 1.3rem) / 1 "JetBrains Mono", ui-monospace, Menlo, monospace;
	cursor: pointer;
	transition: border-color var(--duration, 0.3s) var(--ease-out, ease);
}
.wpwow-chip:hover {
	border-color: var(--primary, #c8f53c);
}
@media (max-width: 560px) {
	.wpwow-search {
		flex-wrap: wrap;
		padding: 1rem;
		border-radius: var(--radius-l, 18px);
	}
	.wpwow-search__icon {
		display: none;
	}
	.wpwow-search__input {
		flex-basis: 100%;
		padding: 0.6rem 0.4rem;
	}
	.wpwow-search__button {
		flex-basis: 100%;
	}
}

/* ----------------------------------------------------- WOW animation rules
 * Elements are hidden only while the script is about to run (html.wow-js set in <head>),
 * and never if GSAP failed or the visitor prefers reduced motion (html.wow-failed).
 */
html.wow-js:not(.wow-failed) .wow-fade:not(.wow-in),
html.wow-js:not(.wow-failed) .wow-fade-up:not(.wow-in),
html.wow-js:not(.wow-failed) .wow-fade-down:not(.wow-in),
html.wow-js:not(.wow-failed) .wow-fade-left:not(.wow-in),
html.wow-js:not(.wow-failed) .wow-fade-right:not(.wow-in),
html.wow-js:not(.wow-failed) .wow-scale-in:not(.wow-in),
html.wow-js:not(.wow-failed) .wow-blur-in:not(.wow-in),
html.wow-js:not(.wow-failed) .wow-blur-up:not(.wow-in),
html.wow-js:not(.wow-failed) .wow-words:not(.wow-in),
html.wow-js:not(.wow-failed) .wow-stagger > *:not(.wow-in) {
	opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
	html.wow-js .wow-fade,
	html.wow-js .wow-fade-up,
	html.wow-js .wow-fade-down,
	html.wow-js .wow-fade-left,
	html.wow-js .wow-fade-right,
	html.wow-js .wow-scale-in,
	html.wow-js .wow-blur-in,
	html.wow-js .wow-blur-up,
	html.wow-js .wow-words,
	html.wow-js .wow-stagger > * {
		opacity: 1 !important;
	}
}
.wow-word {
	display: inline-block;
	will-change: transform, opacity, filter;
}
.wow-parallax {
	will-change: transform;
}
.wow-magnetic {
	display: inline-flex;
	will-change: transform;
}

/* ---------------------------------------------------------- CSS helpers */
/* Faint grid behind a section. Put on the section; its content stays above. */
.wow-bg-grid {
	position: relative;
	isolation: isolate;
}
.wow-bg-grid::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: linear-gradient(color-mix(in srgb, var(--white, #fafafa) 4.5%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--white, #fafafa) 4.5%, transparent) 1px, transparent 1px);
	background-size: 56px 56px;
	background-position: center top;
	-webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent);
	mask-image: linear-gradient(to bottom, #000 40%, transparent);
	pointer-events: none;
}
.wow-bg-glow {
	position: relative;
	isolation: isolate;
}
.wow-bg-glow::before {
	content: "";
	position: absolute;
	inset: -10% 10% auto;
	height: 70%;
	z-index: -1;
	background: radial-gradient(60% 60% at 50% 0%, color-mix(in srgb, var(--primary, #c8f53c) 22%, transparent), transparent 70%);
	pointer-events: none;
}
.wow-gradient-text {
	background: linear-gradient(100deg, var(--primary, #c8f53c), var(--accent, #4cd7f6) 60%, var(--secondary, #8b7cff));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.wow-serif {
	font-family: "Instrument Serif", Georgia, serif;
	font-style: italic;
	font-weight: 400;
}
.wow-accent {
	color: var(--primary, #c8f53c);
}
.wow-mono {
	font-family: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}
.wow-lift {
	transition: transform var(--duration, 0.3s) var(--ease-out, ease), border-color var(--duration, 0.3s) var(--ease-out, ease), box-shadow var(--duration, 0.3s) var(--ease-out, ease);
}
.wow-lift:hover {
	transform: translateY(-4px);
	border-color: color-mix(in srgb, var(--primary, #c8f53c) 45%, transparent);
	box-shadow: var(--shadow-m, 0 12px 32px rgba(0, 0, 0, 0.3));
}
.wow-glass {
	background: color-mix(in srgb, var(--white, #fafafa) 5%, transparent);
	border: 1px solid color-mix(in srgb, var(--white, #fafafa) 12%, transparent);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}
.wow-float {
	animation: wow-float 6s ease-in-out infinite;
}
.wow-pulse-dot {
	display: inline-block;
	width: 0.6em;
	height: 0.6em;
	border-radius: 50%;
	background: var(--primary, #c8f53c);
	box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary, #c8f53c) 60%, transparent);
	animation: wow-pulse 2s ease-out infinite;
}
.wow-header {
	position: sticky;
	top: 0;
	z-index: 50;
	transition: background-color var(--duration, 0.3s) var(--ease-out, ease), border-color var(--duration, 0.3s) var(--ease-out, ease), backdrop-filter var(--duration, 0.3s) var(--ease-out, ease);
	border-bottom: 1px solid transparent;
}
.wow-header.is-stuck {
	background: color-mix(in srgb, var(--black, #09090b) 78%, transparent);
	border-bottom-color: color-mix(in srgb, var(--white, #fafafa) 10%, transparent);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
}
.wow-link {
	position: relative;
	text-decoration: none;
}
.wow-link::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -0.2em;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--duration, 0.3s) var(--ease-out, ease);
}
.wow-link:hover::after {
	transform: scaleX(1);
}

@keyframes wow-float {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-10px);
	}
}
@keyframes wow-pulse {
	70% {
		box-shadow: 0 0 0 0.7em transparent;
	}
	100% {
		box-shadow: 0 0 0 0 transparent;
	}
}
@media (prefers-reduced-motion: reduce) {
	.wow-float,
	.wow-pulse-dot {
		animation: none;
	}
}
