/*
Theme Name: Brutalist Portfolio
Theme URI: https://ai.studio/build
Author: AI Studio
Description: A high-impact, cyber-brutalist portfolio theme.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: brutalist-portfolio
*/

/* Cross-browser text sizing/rendering consistency */
html {
	font-size: 16px;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* Custom Chamfer Utilities */
.clip-chamfer-br { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%); }
.clip-chamfer-all { clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px); }
.halftone-bg { background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 0); background-size: 4px 4px; }

/* Hero: drifting gradient mesh + halftone */
.hero-ambient-gradient-inner {
	background:
		radial-gradient(ellipse 85% 70% at 25% 20%, rgba(230, 0, 0, 0.32) 0%, transparent 50%),
		radial-gradient(ellipse 75% 60% at 78% 72%, rgba(230, 0, 0, 0.16) 0%, transparent 52%),
		radial-gradient(ellipse 100% 90% at 48% 48%, rgba(255, 255, 255, 0.08) 0%, transparent 42%),
		radial-gradient(ellipse 55% 45% at 90% 12%, rgba(230, 0, 0, 0.12) 0%, transparent 48%);
	animation: hero-gradient-drift 38s ease-in-out infinite;
}

@keyframes hero-gradient-drift {
	0%, 100% { transform: translate(0%, 0%) scale(1) rotate(0deg); }
	20% { transform: translate(8%, -6%) scale(1.1) rotate(2.5deg); }
	40% { transform: translate(-7%, 9%) scale(0.92) rotate(-1.8deg); }
	60% { transform: translate(9%, 7%) scale(1.08) rotate(1.4deg); }
	80% { transform: translate(-8%, -5%) scale(1.04) rotate(-1deg); }
}

.hero-halftone-drift {
	animation: hero-halftone-pan 65s linear infinite;
}

@keyframes hero-halftone-pan {
	from { background-position: 0 0; }
	to { background-position: 64px 64px; }
}

@media (prefers-reduced-motion: reduce) {
	.hero-ambient-gradient-inner,
	.hero-halftone-drift {
		animation: none !important;
	}
}

/* Thoughts archive pagination */
.thoughts-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.thoughts-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	padding: 0.5rem 0.65rem;
	color: rgba(255, 255, 255, 0.45);
	border: 1px solid rgba(255, 255, 255, 0.12);
	text-decoration: none;
	transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.thoughts-pagination a.page-numbers:hover,
.thoughts-pagination a.prev.page-numbers:hover,
.thoughts-pagination a.next.page-numbers:hover {
	color: #fff;
	border-color: #E60000;
	background: rgba(230, 0, 0, 0.08);
}
.thoughts-pagination .page-numbers.current {
	color: #E60000;
	border-color: #E60000;
	background: rgba(230, 0, 0, 0.12);
}
.thoughts-pagination .page-numbers.dots {
	border-color: transparent;
	min-width: auto;
	padding-left: 0.35rem;
	padding-right: 0.35rem;
}
.thoughts-pagination a.prev.page-numbers,
.thoughts-pagination a.next.page-numbers {
	min-width: auto;
	padding-left: 1rem;
	padding-right: 1rem;
}

/* Vertical label (hero edge) */
.vertical-text {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	text-orientation: mixed;
}

/* Featured case study hero (home) */
.featured-case-hero__grain {
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
	background-size: 180px 180px;
	mix-blend-mode: overlay;
}

.featured-case-cursor {
	animation: featured-case-cursor-blink 1.1s steps(1, end) infinite;
}

@keyframes featured-case-cursor-blink {
	0%, 49% { opacity: 1; }
	50%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.featured-case-cursor {
		animation: none;
	}
}

/* Trusted-by row */
.trusted-by-name {
	color: rgba(255, 255, 255, 0.22);
	transition: color 0.2s ease, text-shadow 0.2s ease;
}

.trusted-by-name:hover {
	color: rgba(255, 255, 255, 0.95);
	text-shadow: 0 0 24px rgba(230, 0, 0, 0.25);
}

/* Link in Bio template: hide sidebar, full-width main */
.brutalist-link-bio #sidebar {
	display: none !important;
}
.brutalist-link-bio #content {
	margin-left: 0 !important;
}

/* Internal pages: top nav replaces sidebar */
.brutalist-standard-nav #sidebar {
	display: none !important;
}
.brutalist-standard-nav #content {
	margin-left: 0 !important;
}

/* Chamfer: top-left + bottom-right cuts (CTA) */
.clip-chamfer-tl-br {
	clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

/* Primary menu (Appearance → Menu): match fallback styling */
.brutalist-top-nav .menu > li > a,
.brutalist-top-nav .menu > li > button {
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: rgba(255, 255, 255, 0.65);
	transition: color 0.15s ease;
}
.brutalist-top-nav .menu > li > a:hover,
.brutalist-top-nav .menu > li > button:hover {
	color: #e60000;
}
.brutalist-top-nav .menu > li.current-menu-item > a,
.brutalist-top-nav .menu > li.current-menu-ancestor > a,
.brutalist-top-nav .menu > li.current_page_item > a {
	color: #e60000;
}
.brutalist-top-nav .menu .sub-menu {
	margin-top: 0.5rem;
	padding-left: 0.75rem;
}
.brutalist-top-nav .menu .sub-menu a {
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.5);
}

/* Gutenberg / block content inside link bio bio box */
.link-bio-content .wp-block-group,
.link-bio-content .wp-block-columns {
	margin: 0;
}
