/* =========================================================
   Isaacinthecloud — site styles
   Ported from the original Elementor build (static-to-elementor_TIDY_HERORIGHT.css):
   aurora headline, hero slider, square glass arrows, glass cards, wipe buttons.
   ========================================================= */

:root {
	--red: #F52741;
	--red-deep: #C20018;
	--red-dark: #A60013;
	--red-glow: #FF3353;
	--black: #050505;
	--text: #fff;
	--text-2: rgba(255, 255, 255, .78);
	--text-3: rgba(255, 255, 255, .58);
	--glass: rgba(255, 255, 255, .07);
	--glass-border: rgba(255, 255, 255, .14);
	--header-h: 72px;
	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 48px);
	--hero-headline-size: clamp(34px, 4.6vw, 72px);
	--ease-out: cubic-bezier(.215, .61, .355, 1);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
html.lenis { scroll-behavior: auto; } /* Lenis drives the smooth scroll; native smoothing would fight it */
body {
	margin: 0;
	/* Real image on top of the inlined blurry placeholder (same size and position), over black. */
	background:
		var(--iitc-bg) center top / 100% auto no-repeat,
		var(--iitc-bg-ph) center top / 100% auto no-repeat,
		var(--black);
	color: var(--text);
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
}
@media (max-width: 767px) {
	/* The tall gradient would be very short at phone width; cover the first screens instead. */
	body { background-size: 260% auto; }
}
img { max-width: 100%; height: auto; }
a { text-decoration: none; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
.site-main { margin: 0; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--red-glow); outline-offset: 3px; }

/* Gradient text (old .gr-text-aurora2) */
.gr-text {
	background: linear-gradient(120deg, #fff 15%, #E37D89 70%, #FF0018 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}

/* ---------- Header ---------- */
.site-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 100;
	height: var(--header-h);
	transition: background-color .35s ease, backdrop-filter .35s ease, border-color .35s ease;
	border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header.is-open {
	background: rgba(5, 5, 5, .78);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-bottom-color: rgba(255, 255, 255, .08);
}
.site-header__inner {
	max-width: var(--wrap);
	height: 100%;
	margin: 0 auto;
	padding: 0 var(--gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.site-logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.site-logo__mark {
	width: 12px; height: 12px; border-radius: 2px;
	background: linear-gradient(45deg, var(--red-deep), var(--red));
	box-shadow: 0 0 18px rgba(245, 39, 65, .7);
}
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.site-nav a {
	color: var(--text-2);
	font-size: .82rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	position: relative;
	padding: 6px 0;
	transition: color .25s ease;
}
.site-nav a::after {
	content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
	background: linear-gradient(90deg, var(--red-deep), var(--red));
	transition: right .35s var(--ease-out);
}
.site-nav a:hover { color: #fff; }
.site-nav a:hover::after { right: 0; }
.site-nav .site-nav__cta { border: 1px solid rgba(255, 255, 255, .35); padding: 8px 16px; }
.site-nav .site-nav__cta::after { display: none; }
.site-nav .site-nav__cta:hover { border-color: var(--red); background: linear-gradient(45deg, var(--red-deep), var(--red)); }

.nav-toggle { display: none; }
@media (max-width: 900px) {
	.nav-toggle {
		display: inline-flex; align-items: center; justify-content: center;
		width: 44px; height: 44px; background: none; border: 1px solid rgba(255, 255, 255, .2); cursor: pointer;
	}
	.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
		display: block; width: 18px; height: 2px; background: #fff; position: relative; transition: transform .3s ease, background .3s ease;
	}
	.nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
	.nav-toggle__bar::before { top: -6px; }
	.nav-toggle__bar::after { top: 6px; }
	.is-open .nav-toggle__bar { background: transparent; }
	.is-open .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
	.is-open .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }

	.site-nav {
		position: absolute; top: var(--header-h); left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 0;
		padding: 8px var(--gutter) 20px;
		background: rgba(5, 5, 5, .96);
		border-bottom: 1px solid rgba(255, 255, 255, .08);
		opacity: 0; visibility: hidden; transform: translateY(-8px);
		transition: opacity .25s ease, transform .25s ease, visibility .25s;
	}
	.is-open .site-nav { opacity: 1; visibility: visible; transform: none; }
	.site-nav a { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
	.site-nav .site-nav__cta { margin-top: 12px; text-align: center; }
}

/* ---------- Hero ---------- */
/* The hero fills exactly the first screen on every device, so the next section always starts at the
   fold instead of peeking in. Content is centered in the space below the header, nudged slightly
   above center (larger bottom padding) so it reads as optically centered. If the content is taller
   than the screen (small phones), min-height lets the hero grow instead of clipping. */
.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 100vh;
	min-height: 100svh;
	padding: calc(var(--header-h) + 16px) 0 clamp(24px, 7vh, 80px);
	box-sizing: border-box;
}
.hero-net {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 0;
	-webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
	mask-image: linear-gradient(180deg, #000 70%, transparent);
}
.hero__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 var(--gutter);
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
	gap: clamp(32px, 5vw, 80px);
	align-items: end;
	box-sizing: border-box;
}
.hero-left { position: relative; }
.hero-name {
	margin: 0 0 14px;
	font-size: .82rem;
	font-weight: 600;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--text-3);
}

/* Slider mechanics — every slide sits in the same grid cell, so the slider is always as tall as the
   tallest slide and switching slides never changes its height. Each slide is centered vertically in
   that box. .is-active is visible (JS toggles it). */
.hero-slider { position: relative; width: 100%; max-width: 980px; padding-bottom: 90px; display: grid; }
.hero-slide {
	grid-area: 1 / 1;
	align-self: center;
	min-width: 0;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .45s ease, visibility .45s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; }

/* Left-to-right reveal (old .reveal-ltr) */
.hero-slide .reveal-ltr {
	display: inline-block;
	width: fit-content;
	max-width: 56ch;
	opacity: 0;
	transform: translateY(6px);
	clip-path: inset(0 100% 0 0);
	transition: opacity .45s ease .5s, transform .45s ease .5s, clip-path .75s var(--ease-out) .5s;
}
.hero-slide.is-active .reveal-ltr { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
.hero-copy {
	margin: 0;
	font-weight: 300;
	line-height: 1.55;
	color: var(--text-2);
	font-size: clamp(15px, 1.25vw, 19px);
}

/* Static slide headlines */
.static-title {
	font-weight: 800;
	letter-spacing: -.03em;
	line-height: .98;
	color: rgba(255, 255, 255, .82);
	font-size: var(--hero-headline-size);
	margin: 0 0 18px;
	max-width: 18ch;
}
.hero-slide--static.is-active .static-title { animation: fadeUp .6s var(--ease-out) both; }
.has-gsap .hero-slide--static.is-active .static-title { animation: none; }

/* Aurora headline */
.aurora-title {
	position: relative;
	display: inline-block;
	width: fit-content;
	max-width: 100%;
	margin: 0 0 18px;
	padding: 2px 0 14px;
	font-size: clamp(2.4rem, 7vw, 4.8rem);
	line-height: 1.02;
	font-weight: 900;
	letter-spacing: -.02em;
	isolation: isolate;
}
.aurora-text {
	background: linear-gradient(120deg, #fff 10%, #FF3353 45%, #ff0000 60%, #A60013 85%);
	background-size: 200% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
	animation: auroraTextFill 6.5s ease-in-out infinite;
}
@keyframes auroraTextFill {
	0%, 100% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
}
/* Blob layer kept from the original; it was tuned to invisible there too (opacity 0). */
.aurora {
	position: absolute; inset: 0; max-width: 300px; z-index: 2; pointer-events: none;
	mix-blend-mode: screen; filter: blur(18px); opacity: 0;
}
.aurora .clr { position: absolute; width: 200px; height: 700px; border-radius: 37% 29% 27% 27% / 28% 25% 41% 37%; filter: blur(40px); }

.aurora-title--small {
	font-size: clamp(12px, 1.05vw, 14px);
	letter-spacing: .16em;
	text-transform: uppercase;
	line-height: 1;
	padding: 0;
	margin: 0 0 12px;
	font-weight: 800;
}

/* Square glass arrows */
.hero-arrows {
	position: absolute;
	left: 0;
	bottom: 0;
	display: flex;
	gap: 12px;
	z-index: 5;
}
.hero-arrow {
	width: 52px;
	height: 52px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	border-radius: 0;
	color: rgba(255, 255, 255, .55);
	background: linear-gradient(135deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .06));
	border: 1px solid rgba(255, 255, 255, .18);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	transition: background .35s ease, border-color .35s ease, transform .25s ease, color .35s ease;
}
.hero-arrow svg { width: 22px; height: 22px; fill: currentColor; }
.hero-arrow:hover {
	color: #fff;
	background: linear-gradient(135deg, rgba(255, 255, 255, .32), rgba(255, 255, 255, .12));
	border-color: rgba(255, 255, 255, .35);
	transform: translateY(-2px);
}
.hero-arrow:active { transform: none; }

/* Right-side glass cards */
.hero-right { display: flex; flex-direction: column; gap: 14px; padding-bottom: 90px; }
.hero-card {
	position: relative;
	overflow: hidden;
	display: block;
	padding: 18px 22px;
	border-radius: 14px;
	background: var(--spot-layer) rgba(255, 255, 255, .10);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, .14);
	box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
	color: #fff;
	transition: transform .25s ease, border-color .25s ease, background-color .25s ease, --spot .4s ease;
	animation: fadeUp .8s var(--ease-out) backwards;
}
.hero-card:nth-child(2) { animation-delay: .12s; }
.hero-card:nth-child(3) { animation-delay: .24s; }
.hero-card::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(135deg, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, .10) 55%, rgba(255, 255, 255, 0) 100%);
}
.hero-card > * { position: relative; z-index: 1; }
.hero-card:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, .22); background-color: rgba(255, 255, 255, .12); color: #fff; }
.hero-card__kicker {
	display: block;
	margin-bottom: 10px;
	font-size: 12px;
	letter-spacing: .28em;
	text-transform: uppercase;
	font-weight: 700;
	color: rgba(255, 255, 255, .45);
}
.hero-card__title { display: block; font-size: 18px; line-height: 1.35; font-weight: 600; color: rgba(255, 255, 255, .92); }
.card-arrow { display: inline-block; margin-left: 8px; color: rgba(255, 255, 255, .6); transition: transform .25s ease, color .25s ease; }
.hero-card:hover .card-arrow,
.project__link:hover .card-arrow { transform: translateX(10px); color: #fff; }


@media (max-width: 1024px) {
	.hero__inner { grid-template-columns: 1fr; align-items: start; }
	.hero-right { padding-bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
	.hero-right { grid-template-columns: 1fr; }
	.hero-slider { padding-bottom: 78px; }
	.aurora-title { font-size: clamp(2.3rem, 11vw, 3.2rem); }
	.aurora-title--small { font-size: 12px; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(56px, 7vw, 104px) var(--gutter); }
.section__wrap { max-width: var(--wrap); margin: 0 auto; }
.section--certs { padding-left: 0; padding-right: 0; }
.section--certs .section__wrap { padding: 0 var(--gutter); }
.section-head { margin-bottom: clamp(32px, 4vw, 56px); }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.eyebrow {
	margin: 0 0 14px;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--red);
	display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: linear-gradient(90deg, var(--red-deep), var(--red)); }
.section-title { margin: 0; font-size: var(--wp--preset--font-size--x-large, clamp(2rem, 4vw, 2.75rem)); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; max-width: 22ch; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--text); font-weight: 400; }
.section p { color: var(--text-2); }
.section .lead { color: #fff; }

/* Cursor spotlight on cards — site.js sets --mx/--my; --spot fades it in on hover. */
@property --spot { syntax: "<number>"; inherits: false; initial-value: 0; }
.glass-card, .cert__link, .hero-card {
	--spot-layer: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(245, 39, 65, calc(.2 * var(--spot))), transparent 60%);
}
.glass-card:hover, .cert__link:hover, .hero-card:hover { --spot: 1; }

/* Glass card (shared) */
.glass-card {
	position: relative;
	padding: clamp(22px, 2.5vw, 32px);
	border-radius: 14px;
	background: var(--spot-layer), linear-gradient(135deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
	border: 1px solid var(--glass-border);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
	transition: transform .3s var(--ease-out), border-color .3s ease, box-shadow .3s ease, --spot .4s ease;
	box-sizing: border-box;
}
.glass-card::before {
	content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0;
	background: linear-gradient(90deg, var(--red-deep), var(--red));
	transition: width .5s var(--ease-out);
	border-radius: 14px 0 0 0;
}
.glass-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .24); box-shadow: 0 18px 40px rgba(0, 0, 0, .5), 0 0 0 1px rgba(245, 39, 65, .08); }
.glass-card:hover::before { width: 100%; }
.card-title { margin: 0 0 14px; font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }

/* Animated skill icons (motion lives in site.js; without JS they render in their finished state) */
.skill-icon { display: block; width: 120px; height: 80px; margin: -6px 0 14px -10px; overflow: visible; }
.skill-icon * { vector-effect: non-scaling-stroke; }
.skill-icon .ol, .skill-icon .ring, .skill-icon .links path, .skill-icon .nd, .skill-icon .hub, .skill-icon .bar, .skill-icon .pkt path {
	fill: none; stroke: rgba(255, 255, 255, .62); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.skill-icon .ol { stroke: rgba(255, 255, 255, .8); }
.skill-icon .ring { stroke: rgba(255, 255, 255, .22); }
.skill-icon .ck, .skill-icon .ok { fill: none; stroke: var(--red-glow); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.skill-icon .ln { stroke: rgba(255, 255, 255, .45); stroke-width: 3; stroke-linecap: round; }
.skill-icon .pkt path { stroke: var(--red-glow); stroke-width: 2; }
.skill-icon .scan { fill: rgba(245, 39, 65, .28); }
.skill-icon .sweep path { fill: rgba(245, 39, 65, .3); }
.skill-icon .sweep { transform-origin: 60px 40px; }
.skill-icon .blip, .skill-icon .pk, .skill-icon .dot { fill: var(--red-glow); }
.skill-icon .dot { fill: rgba(255, 255, 255, .35); }
.skill-icon .links path { stroke: rgba(255, 255, 255, .28); stroke-dasharray: 3 4; }
.skill-icon .hub { fill: rgba(245, 39, 65, .25); stroke: var(--red-glow); }
.skill-icon .nd { fill: rgba(5, 5, 5, .6); }
.skill-icon .slab polygon { stroke: rgba(255, 255, 255, .55); stroke-width: 1.2; stroke-linejoin: round; }
.skill-icon .f-t { fill: #34303a; }
.skill-icon .f-l { fill: #17161a; }
.skill-icon .f-r { fill: #5b1220; }
.skill-icon .bay { stroke: rgba(255, 255, 255, .4); stroke-width: 1.4; stroke-linecap: round; }
.skill-icon .led { fill: var(--red-glow); }
.skill-icon--build .slab { transform-box: view-box; }
@media (max-width: 640px) { .skill-icon { width: 96px; height: 64px; margin-bottom: 10px; } }

/* Tags */
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
	margin: 0;
	padding: 6px 12px;
	font-size: .8rem;
	font-weight: 500;
	color: var(--text-2);
	border: 1px solid rgba(255, 255, 255, .14);
	background: rgba(255, 255, 255, .04);
	border-radius: 999px;
}

/* Experience timeline — rail on the left; site.js scrubs --tl-progress from 0 to 1 as you scroll. */
.section--experience .section-head { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.timeline { --tl-progress: 1; --rail-x: 11px; position: relative; list-style: none; margin: 0; padding: 0 0 0 48px; max-width: 980px; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: var(--rail-x); top: 10px; bottom: 10px; width: 2px; border-radius: 2px; }
.timeline::before { background: rgba(255, 255, 255, .12); }
.timeline::after { background: linear-gradient(180deg, var(--red-glow), var(--red-deep)); box-shadow: 0 0 12px rgba(245, 39, 65, .45); transform-origin: top; transform: scaleY(var(--tl-progress)); }
.tl-item { position: relative; margin: 0 0 22px; }
.tl-dot { position: absolute; z-index: 1; left: calc(-48px + var(--rail-x) + 1px); top: 30px; width: 16px; height: 16px; border-radius: 50%; translate: -50% 0; background: var(--black); border: 2px solid var(--red); box-shadow: 0 0 0 5px rgba(245, 39, 65, .12); }
.tl-item--current .tl-dot { background: var(--red); box-shadow: 0 0 0 5px rgba(245, 39, 65, .2), 0 0 18px rgba(255, 51, 83, .7); animation: tl-pulse 2.4s ease-in-out infinite; }
@keyframes tl-pulse { 50% { box-shadow: 0 0 0 9px rgba(245, 39, 65, .08), 0 0 26px rgba(255, 51, 83, .85); } }
.tl-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 10px; font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3) !important; }
.tl-date { color: var(--red); }
.tl-role { margin-bottom: 4px; font-size: clamp(1.2rem, 2vw, 1.45rem); }
.tl-org { margin: 0 0 16px; font-weight: 600; color: #fff !important; }
.tl-points { margin: 0 0 20px; padding-left: 1.1em; color: var(--text-2); }
.tl-points li { margin: 0 0 .5em; padding-left: .2em; }
.tl-points li::marker { color: var(--red); }
.tl-divider { position: relative; margin: 44px 0 22px; }
.tl-divider::before { content: ""; position: absolute; left: calc(-48px + var(--rail-x) + 1px); top: .55em; width: 9px; height: 9px; translate: -50% 0; rotate: 45deg; background: rgba(255, 255, 255, .5); }
.tl-divider__label { margin: 0 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: #fff !important; }
.tl-divider__note { margin: 0; max-width: 60ch; color: var(--text-3) !important; }
.tl-item--compact .tl-card { padding: 18px clamp(18px, 2.2vw, 26px); }
.tl-item--compact .tl-dot { top: 24px; width: 12px; height: 12px; border-color: rgba(255, 255, 255, .45); box-shadow: none; }
.tl-item--compact .tl-role { font-size: 1.05rem; margin-bottom: 8px; }
.tl-org-inline { font-weight: 500; color: var(--text-3); }
.tl-summary { margin: 0 0 16px; max-width: 75ch; font-style: italic; color: var(--text-3) !important; }
.tl-item--compact .tl-summary { margin-bottom: 12px; }
.tl-item--compact .tl-points { margin-bottom: 0; font-size: .95rem; }
@media (max-width: 560px) { .timeline { --rail-x: 5px; padding-left: 30px; } .tl-dot, .tl-divider::before { left: calc(-30px + var(--rail-x) + 1px); } }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; max-width: var(--wrap); margin: 0 auto; }
.about-copy > * + * { margin-top: 1.1rem; }
.stats { display: grid; gap: 14px; }
.stat {
	padding: 20px 24px;
	border-left: 2px solid var(--red);
	background: linear-gradient(90deg, rgba(245, 39, 65, .10), rgba(255, 255, 255, 0));
}
.stat > * { margin: 0; }
.stat__num { font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 900; line-height: 1; color: #fff !important; letter-spacing: -.03em; }
.stat__label { margin-top: 6px !important; font-size: .9rem; color: var(--text-3) !important; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; } }

/* Skills */
.skills-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: var(--wrap); margin: 0 auto; }
.skills-grid > * { margin: 0 !important; }
@media (max-width: 1024px) { .skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .skills-grid { grid-template-columns: 1fr; } }
.section--skills .section-head,
.section--education .section-head { max-width: var(--wrap); margin-left: auto; margin-right: auto; }

/* Certifications carousel — a continuous marquee. JS clones the badges once and moves the track with
   a sub-pixel transform every frame (see site.js), so it glides instead of stepping. */
.section--certs { padding-top: clamp(24px, 4vw, 48px); }
.section--certs .section-head { margin-bottom: clamp(18px, 2.5vw, 32px); }
.carousel-arrows { display: flex; gap: 12px; }
.cert-carousel {
	overflow: hidden;
	touch-action: pan-y;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
	outline-offset: -2px;
}
.cert-track {
	list-style: none;
	margin: 0;
	display: flex;
	gap: 18px;
	padding: 12px 0;
	width: max-content;
	will-change: transform;
}
.cert { margin: 0; flex: none; }
.cert__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	width: 210px;
	height: 100%;
	box-sizing: border-box;
	padding: 26px 18px 22px;
	border-radius: 14px;
	color: #fff;
	background: var(--spot-layer), linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02));
	border: 1px solid var(--glass-border);
	transition: transform .35s var(--ease-out), border-color .35s ease, --spot .4s ease;
}
a.cert__link:hover { color: #fff; transform: translateY(-6px); border-color: rgba(245, 39, 65, .55); background: var(--spot-layer), linear-gradient(160deg, rgba(245, 39, 65, .16), rgba(255, 255, 255, .02)); }
.cert__badge { width: 130px; height: 130px; display: grid; place-items: center; margin-bottom: 16px; }
.cert__badge img { width: 130px; height: 130px; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .5)); transition: transform .45s var(--ease-out); }
a.cert__link:hover .cert__badge img { transform: scale(1.06) rotate(-2deg); }
.cert__name { font-weight: 700; font-size: 1rem; line-height: 1.3; }
.cert__meta { margin-top: 6px; font-size: .78rem; color: var(--text-3); letter-spacing: .04em; }
.cert-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
@media (max-width: 767px) {
	.cert-track { gap: 12px; }
	.cert__link { width: 168px; padding: 20px 12px 18px; }
	.cert__badge, .cert__badge img { width: 104px; height: 104px; }
	.cert__name { font-size: .92rem; }
	.cert-cta { margin-top: 24px; }
	.cert-cta .btn-wipe { flex: 1 1 100%; }
}

/* Projects */
.projects-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.project { display: flex; flex-direction: column; }
.project--featured { grid-column: 1 / -1; background: linear-gradient(135deg, rgba(245, 39, 65, .14), rgba(255, 255, 255, .03) 60%); }
.project--featured .card-title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.project__cat { margin: 0 0 10px; font-size: .74rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--red) !important; }
.project__desc { margin: 0 0 20px; max-width: 70ch; }
.project .tags { margin-bottom: 22px; }
.project__link {
	margin-top: auto;
	align-self: flex-start;
	font-family: var(--wp--preset--font-family--lato);
	font-weight: 700;
	font-size: .82rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #fff;
}
.project__link:hover { color: #fff; }
@media (max-width: 760px) { .projects-grid { grid-template-columns: 1fr; } }

/* Education */
.edu-card { max-width: var(--wrap); margin: 0 auto; border-left: 3px solid var(--red); }
.edu-card__title { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.edu-card p:last-child { margin-bottom: 0; max-width: 70ch; }

/* Contact */
.contact-card {
	text-align: center;
	padding: clamp(36px, 6vw, 72px) clamp(20px, 5vw, 64px);
	border-radius: 18px;
	background: radial-gradient(120% 140% at 50% 0%, rgba(245, 39, 65, .22), rgba(5, 5, 5, .2) 60%), rgba(255, 255, 255, .03);
	border: 1px solid var(--glass-border);
}
.contact-card .eyebrow { justify-content: center; }
.contact-card .section-title { margin: 0 auto; }
.contact-card .lead { max-width: 52ch; margin: 18px auto 0; }
.contact-buttons { justify-content: center; margin-top: 30px; gap: 14px; }

/* ---------- Wipe buttons (old .wipebutton) ---------- */
a.btn-wipe,
.btn-wipe > .wp-block-button__link {
	display: inline-block;
	padding: .75rem 2rem;
	font-family: var(--wp--preset--font-family--lato);
	font-weight: 700;
	font-size: .9rem;
	line-height: 23px;
	letter-spacing: .75px;
	text-transform: uppercase;
	text-align: center;
	color: #fff;
	border: 2px solid currentColor;
	border-radius: 0;
	background-color: transparent;
	background-image: linear-gradient(45deg, var(--red-deep) 0, var(--red) 100%);
	background-position: 102% 50%;
	background-repeat: no-repeat;
	background-size: 0 102%;
	transition: color .4s ease, border-color .4s ease, background-size .4s var(--ease-out), background-position 0s;
}
a.btn-wipe:hover, a.btn-wipe:focus-visible,
.btn-wipe > .wp-block-button__link:hover, .btn-wipe > .wp-block-button__link:focus-visible {
	color: #fff;
	border-color: var(--red);
	background-position: 0 50%;
	background-size: 102% 100%;
}
a.btn-wipe:not(.btn-wipe--ghost),
.btn-wipe:not(.btn-wipe--ghost) > .wp-block-button__link { border-color: var(--red); }
a.btn-wipe--ghost, .btn-wipe--ghost > .wp-block-button__link { color: rgba(255, 255, 255, .85); border-color: rgba(255, 255, 255, .35); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid rgba(255, 255, 255, .08); padding: 28px var(--gutter); }
.site-footer__inner { max-width: var(--wrap); margin: 0 auto; gap: 16px; }
.site-footer p { margin: 0; color: var(--text-3); font-size: .88rem; }
.site-footer__links a { color: var(--text-2); margin-left: 20px; }
.site-footer__links a:first-child { margin-left: 0; }
.site-footer__links a:hover { color: var(--red-glow); }

/* ---------- Generic pages ---------- */
.page-main { padding: calc(var(--header-h) + 60px) var(--gutter) 100px; min-height: 60vh; }
.page-title { font-size: var(--wp--preset--font-size--huge); }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out), --spot .4s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.has-gsap .reveal:not(.is-visible) { transition: none; } /* GSAP tweens it in; CSS transitions resume afterwards for hover */
.js .skills-grid > .reveal:nth-child(3n+2), .js .projects-grid > .reveal:nth-child(2n+3) { transition-delay: .1s; }
.js .skills-grid > .reveal:nth-child(3n+3) { transition-delay: .2s; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Large screens ----------
   Content is capped at --wrap so lines stay readable, but on big monitors that cap made everything look
   small in a sea of background. Two steps up: most type is rem-based, so raising the root size scales
   it; the few px-sized pieces are bumped explicitly. */
@media (min-width: 1800px) {
	html { font-size: 112.5%; }
	:root { --wrap: 1440px; --header-h: 80px; --hero-headline-size: clamp(34px, 4.2vw, 84px); }
	.hero-copy { font-size: 21px; }
	.hero-card { padding: 22px 26px; }
	.hero-card__title { font-size: 20px; }
	.hero-card__kicker { font-size: 13px; }
	.hero-arrow { width: 58px; height: 58px; }
	.cert__link { width: 232px; }
	.cert__badge, .cert__badge img { width: 146px; height: 146px; }
}
@media (min-width: 2400px) {
	html { font-size: 125%; }
	:root { --wrap: 1640px; --header-h: 88px; --hero-headline-size: clamp(34px, 4vw, 100px); }
	.hero-copy { font-size: 23px; }
	.hero-card { padding: 26px 30px; }
	.hero-card__title { font-size: 22px; }
	.hero-card__kicker { font-size: 14px; }
	.hero-arrow { width: 64px; height: 64px; }
	.cert__link { width: 256px; }
	.cert__badge, .cert__badge img { width: 164px; height: 164px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.tl-item--current .tl-dot { animation: none; }
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
	.js .reveal { opacity: 1; transform: none; }
}
