/* Portfolio-only content details. Reusable Bento.Lux presentation stays upstream. */
body.nikolas-portfolio-site {
	--component-gap: 20px;
	--entry-builder-gutter: 20px;
	--gap: 20px;
	/* Circular-corner fallback tuned to visually match the Chromium squircle. */
	--portfolio-panel-radius: 22px;
	--portfolio-control-radius: 13px;
	--portfolio-media-radius: 16px;
	--portfolio-compact-media-radius: 10px;
}

@supports (corner-shape: squircle) {
	body.nikolas-portfolio-site {
		--portfolio-panel-radius: 30px;
		--portfolio-control-radius: 18px;
		--portfolio-media-radius: 22px;
		--portfolio-compact-media-radius: 14px;
	}
}

/*
 * Safari and Firefox do not yet implement corner-shape. Give large portfolio
 * surfaces a real superellipse silhouette there instead of falling back to a
 * circular border radius. The extra points keep the sides flatter before the
 * corner turns, which matches the native squircle used by the preview.
 */
@supports not (corner-shape: squircle) {
	body.nikolas-portfolio-site :is(
		.card,
		.project,
		.is-style-bento-card,
		.bentobox-component,
		.bentobox-profile-accordion,
		.bentobox-entry-intro,
		.entry-builder-main .entry-rich-text,
		.entry-builder-main .bentobox-flexible-split,
		.nikolas-client-carousel,
		.nikolas-privacy-dialog,
		.mobile-menu,
		.site-header .header-inner
	) {
		clip-path: polygon(
			0 14px, 2px 7px, 7px 2px, 14px 0,
			calc(100% - 14px) 0, calc(100% - 7px) 2px, calc(100% - 2px) 7px, 100% 14px,
			100% calc(100% - 14px), calc(100% - 2px) calc(100% - 7px), calc(100% - 7px) calc(100% - 2px), calc(100% - 14px) 100%,
			14px 100%, 7px calc(100% - 2px), 2px calc(100% - 7px), 0 calc(100% - 14px)
		);
	}

	body.nikolas-portfolio-site .site-header .header-inner {
		clip-path: polygon(
			0 10px, 1px 4px, 4px 1px, 10px 0,
			calc(100% - 10px) 0, calc(100% - 4px) 1px, calc(100% - 1px) 4px, 100% 10px,
			100% calc(100% - 10px), calc(100% - 1px) calc(100% - 4px), calc(100% - 4px) calc(100% - 1px), calc(100% - 10px) 100%,
			10px 100%, 4px calc(100% - 1px), 1px calc(100% - 4px), 0 calc(100% - 10px)
		);
	}

	body.nikolas-portfolio-site :is(
		.entry-label,
		.badge,
		.mini-badge,
		.mini-label-pill,
		.bentobox-badge,
		.nikolas-footer-coming-soon
	) {
		border-radius: 6px;
		clip-path: polygon(
			0 5px, 1px 2px, 2px 1px, 5px 0,
			calc(100% - 5px) 0, calc(100% - 2px) 1px, calc(100% - 1px) 2px, 100% 5px,
			100% calc(100% - 5px), calc(100% - 1px) calc(100% - 2px), calc(100% - 2px) calc(100% - 1px), calc(100% - 5px) 100%,
			5px 100%, 2px calc(100% - 1px), 1px calc(100% - 2px), 0 calc(100% - 5px)
		);
	}

	/* Unlike ordinary cards, the immersive hero animates from a genuinely
	 * square, edge-to-edge canvas. A permanent fallback clip rounds its top
	 * and bottom even while the scroll-driven radius is zero. */
	body.nikolas-portfolio-site.nikolas-project-page
		.bentobox-entry-intro-section.has-immersive-entrance.is-immersive-ready
		> .bentobox-entry-intro {
		clip-path: none;
	}
}

.nikolas-portfolio-site.nikolas-about-page .nikolas-about-main {
	min-height: 100vh;
}

.nikolas-portfolio-site.nikolas-case-studies-page .nikolas-case-studies-main {
	min-height: 100vh;
}

/* Match the vertical rhythm between project blocks to their page-side inset. */
.nikolas-portfolio-site.nikolas-project-page .entry-builder-main .wp-block-post-content {
	gap: var(--entry-builder-gutter);
}

.nikolas-portfolio-site.nikolas-case-studies-page .nikolas-case-studies-section {
	padding-block: clamp(88px, 14vw, 192px) clamp(44px, 7vw, 96px);
}

.nikolas-portfolio-site:is(.nikolas-work-page, .nikolas-case-studies-page) #portfolio-grid .section-heading h2 {
	margin-top: 0;
}

.nikolas-portfolio-site.nikolas-work-page #portfolio-grid .content-toolbar {
	display: none;
}

.nikolas-portfolio-site .nikolas-personal-projects-empty {
	align-items: center;
	border: 1px solid var(--line);
	border-radius: var(--portfolio-panel-radius);
	color: var(--muted);
	display: flex;
	flex-direction: column;
	gap: 12px;
	justify-content: center;
	min-height: 280px;
	padding: clamp(32px, 6vw, 72px);
	text-align: center;
}

.nikolas-portfolio-site .nikolas-personal-projects-empty[hidden] {
	display: none;
}

.nikolas-portfolio-site .nikolas-personal-projects-empty :is(i, svg) {
	height: 28px;
	width: 28px;
}

.nikolas-portfolio-site .nikolas-personal-projects-empty p {
	font-size: 1.1rem;
	margin: 0;
}

.nikolas-portfolio-site .nikolas-case-study-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-top: 9px;
}

.nikolas-portfolio-site .nikolas-case-study-tags .entry-label {
	margin: 0;
}

.nikolas-portfolio-site.nikolas-about-page .nikolas-about-section {
	box-sizing: border-box;
	display: grid;
	gap: clamp(36px, 5vw, 64px);
	margin-inline: auto;
	padding-block: clamp(88px, 14vw, 192px) clamp(44px, 7vw, 96px);
	width: min(calc(100% - 40px), var(--container));
}

.nikolas-portfolio-site.nikolas-about-page .nikolas-tools-intro {
	margin-top: clamp(24px, 4vw, 48px);
}

.nikolas-portfolio-site.nikolas-about-page .nikolas-about-section > *,
.nikolas-portfolio-site.nikolas-about-page .nikolas-about-accordion-group > * {
	max-width: none !important;
	width: 100%;
}

.nikolas-portfolio-site.nikolas-about-page .nikolas-about-profile-intro {
	margin: 0;
	width: 100%;
}

.nikolas-portfolio-site.nikolas-about-page .nikolas-about-profile-intro .hero-main {
	min-height: 0;
	position: relative;
}

.nikolas-portfolio-site.nikolas-about-page .nikolas-about-summary-title {
	font-family: var(--font);
	font-size: clamp(1.55rem, 2.5vw, 2.5rem);
	font-weight: 700;
	letter-spacing: normal;
	line-height: 1.05;
	margin: clamp(32px, 4vw, 52px) 0 0;
}

.nikolas-portfolio-site.nikolas-about-page .hero-main .nikolas-about-summary {
	max-width: none;
	width: 100%;
}

.nikolas-portfolio-site.nikolas-about-page .nikolas-about-mode-nav {
	display: none !important;
	gap: 4px;
	margin: 0;
	overflow-x: auto;
	padding: 5px;
	position: absolute;
	right: var(--card-padding);
	top: var(--card-padding);
	z-index: 4;
	scrollbar-width: none;
}

.nikolas-portfolio-site.nikolas-about-page .nikolas-about-mode-nav::-webkit-scrollbar {
	display: none;
}

.nikolas-portfolio-site.nikolas-about-page .nikolas-about-mode-nav button {
	align-items: center;
	display: inline-flex;
	height: 44px;
	justify-content: center;
	padding: 0;
	width: 44px;
}

.nikolas-portfolio-site.nikolas-about-page .nikolas-about-mode-nav button :is(i, svg) {
	height: 20px;
	position: relative;
	width: 20px;
	z-index: 1;
}

.nikolas-portfolio-site.nikolas-about-page .nikolas-about-panels {
	display: grid;
	flex: 1;
	width: 100%;
}

.nikolas-portfolio-site.nikolas-about-page .nikolas-about-panel {
	filter: blur(0);
	grid-area: 1 / 1;
	min-height: clamp(390px, 34vw, 490px);
	opacity: 1;
	transform: translateY(0) scale(1);
	transition:
		opacity 280ms ease,
		transform 340ms cubic-bezier(0.22, 1, 0.36, 1),
		filter 280ms ease,
		visibility 0s linear 0s;
	visibility: visible;
}

.nikolas-portfolio-site.nikolas-about-page .nikolas-about-panel:not(.is-active),
.nikolas-portfolio-site.nikolas-about-page .nikolas-about-panel[hidden] {
	display: block;
	filter: blur(5px);
	opacity: 0;
	pointer-events: none;
	transform: translateY(10px) scale(0.995);
	transition:
		opacity 240ms ease,
		transform 300ms cubic-bezier(0.22, 1, 0.36, 1),
		filter 240ms ease,
		visibility 0s linear 300ms;
	visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.nikolas-portfolio-site.nikolas-about-page .nikolas-about-panel {
		transition: none;
	}
}

.nikolas-portfolio-site.nikolas-project-page .nikolas-project-story-block .nikolas-enamel-carousel {
	background: none !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	display: grid;
	gap: 0;
	overflow: visible;
	padding: 0 !important;
}

.nikolas-enamel-carousel::before,
.nikolas-enamel-carousel::after {
	display: none !important;
}

.nikolas-enamel-carousel-viewport {
	background: var(--bg);
	border: 1px solid var(--line) !important;
	border-radius: var(--portfolio-compact-media-radius) !important;
	display: grid;
	overflow: hidden;
	position: relative;
}

.nikolas-enamel-carousel-slide {
	aspect-ratio: 1;
	grid-area: 1 / 1;
	opacity: 0;
	pointer-events: none;
	transform: translateX(7%) scale(.985);
	transition:
		opacity 280ms ease,
		transform 420ms cubic-bezier(.22, .8, .3, 1);
	visibility: hidden;
	width: 100%;
}

.nikolas-enamel-carousel-slide.is-active {
	opacity: 1;
	pointer-events: auto;
	transform: translateX(0) scale(1);
	visibility: visible;
}

.nikolas-enamel-carousel-slide.is-entering-next,
.nikolas-enamel-carousel-slide.is-entering-previous,
.nikolas-enamel-carousel-slide.is-leaving-next,
.nikolas-enamel-carousel-slide.is-leaving-previous {
	visibility: visible;
}

.nikolas-enamel-carousel-slide.is-entering-next {
	transform: translateX(7%) scale(.985);
	transition: none;
}

.nikolas-enamel-carousel-slide.is-entering-previous {
	transform: translateX(-7%) scale(.985);
	transition: none;
}

.nikolas-enamel-carousel-slide.is-leaving-next {
	opacity: 0;
	transform: translateX(-7%) scale(.985);
}

.nikolas-enamel-carousel-slide.is-leaving-previous {
	opacity: 0;
	transform: translateX(7%) scale(.985);
}

.nikolas-enamel-carousel-slide .nikolas-enamel-pin {
	width: min(62%, 430px);
}

.nikolas-enamel-carousel .bentobox-carousel-navigation {
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 14px 0 0;
}

@media (prefers-reduced-motion: reduce) {
	.nikolas-enamel-carousel-slide {
		transition: none;
	}
}

.nikolas-enamel-result-stage,
.nikolas-enamel-breakdown-stage {
	background: var(--bg);
	isolation: isolate;
	overflow: hidden;
	perspective: 900px;
	position: relative;
}

.nikolas-enamel-result-stage:focus-visible,
.nikolas-enamel-breakdown-stage:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 3px;
}

.nikolas-enamel-result-composition,
.nikolas-enamel-breakdown {
	height: 100%;
	inset: 0;
	position: absolute;
	width: 100%;
}

.nikolas-enamel-result-composition {
	transform: translateZ(0);
}

.nikolas-story-placeholder .nikolas-enamel-result-pin {
	animation: nikolas-enamel-result-hover var(--float-duration, 4.8s) var(--float-delay, 0s) cubic-bezier(.45, 0, .55, 1) infinite alternate;
	filter: drop-shadow(0 12px 12px rgba(8, 10, 12, .22));
	height: 72%;
	left: 14%;
	object-fit: contain;
	position: absolute;
	top: 8%;
	transition: transform 620ms cubic-bezier(.22, 1, .36, 1), filter 420ms ease;
	width: 72%;
	will-change: transform, translate;
}

.nikolas-enamel-result-pin.is-wave {
	--float-delay: -1.1s;
	--float-duration: 4.4s;
	transform: translate3d(-27%, -14%, 0) scale(.7) rotate(-5deg);
	z-index: 1;
}

.nikolas-enamel-result-pin.is-papaya {
	--float-delay: -3.2s;
	--float-duration: 5.1s;
	transform: translate3d(29%, -10%, 0) scale(.7) rotate(5deg);
	z-index: 2;
}

.nikolas-enamel-result-pin.is-aloha {
	--float-delay: -2.2s;
	--float-duration: 4.7s;
	transform: translate3d(0, 25%, 0) scale(.82) rotate(1deg);
	z-index: 3;
}

.nikolas-enamel-result-stage:is(:hover, :focus-visible) .nikolas-enamel-result-pin {
	filter: drop-shadow(0 18px 18px rgba(8, 10, 12, .3));
}

.nikolas-enamel-result-stage:is(:hover, :focus-visible) .is-wave {
	transform: translate3d(-34%, -23%, 0) scale(.72) rotate(-8deg);
}

.nikolas-enamel-result-stage:is(:hover, :focus-visible) .is-papaya {
	transform: translate3d(36%, -20%, 0) scale(.72) rotate(8deg);
}

.nikolas-enamel-result-stage:is(:hover, :focus-visible) .is-aloha {
	transform: translate3d(0, 34%, 0) scale(.85) rotate(0deg);
}

@keyframes nikolas-enamel-result-hover {
	from { translate: 0 -7px; }
	to { translate: 0 8px; }
}

.nikolas-story-placeholder .nikolas-enamel-breakdown img {
	height: 58%;
	left: 21%;
	object-fit: contain;
	position: absolute;
	top: 21%;
	width: 58%;
}

.nikolas-enamel-breakdown-finished {
	filter: drop-shadow(0 15px 14px rgba(8, 10, 12, .25));
	opacity: 1;
	transform: translate3d(0, 0, 0) scale(1);
	transition: opacity 220ms ease, transform 420ms cubic-bezier(.22, .8, .3, 1), filter 420ms ease;
	z-index: 5;
}

.nikolas-enamel-breakdown-layer {
	filter: drop-shadow(0 9px 10px rgba(8, 10, 12, .2));
	opacity: 0;
	transform: translate3d(0, 0, 0) scale(.82);
	transition: opacity 220ms ease, transform 540ms cubic-bezier(.22, .8, .3, 1), filter 420ms ease;
	will-change: transform, opacity;
}

.nikolas-enamel-breakdown-layer.is-color { z-index: 4; }
.nikolas-enamel-breakdown-layer.is-metal { z-index: 3; }
.nikolas-enamel-breakdown-layer.is-shadow { z-index: 2; }

.nikolas-enamel-breakdown-stage:is(:hover, :focus-visible) .nikolas-enamel-breakdown-finished {
	filter: drop-shadow(0 8px 8px rgba(8, 10, 12, .12));
	opacity: 0;
	transform: translate3d(-10%, 8%, 0) scale(.76);
}

.nikolas-enamel-breakdown-stage:is(:hover, :focus-visible) .nikolas-enamel-breakdown-layer {
	opacity: 1;
}

.nikolas-enamel-breakdown-stage:is(:hover, :focus-visible) .is-color {
	transform: translate3d(-28%, 18%, 70px) skewY(30deg) scaleX(.866) scale(.76);
}

.nikolas-enamel-breakdown-stage:is(:hover, :focus-visible) .is-metal {
	transform: translate3d(0, 0, 20px) skewY(30deg) scaleX(.866) scale(.76);
}

.nikolas-enamel-breakdown-stage:is(:hover, :focus-visible) .is-shadow {
	transform: translate3d(28%, -18%, -30px) skewY(30deg) scaleX(.866) scale(.76);
}

.nikolas-story-placeholder.nikolas-ardem-breakdown-stage .nikolas-enamel-breakdown img {
	height: 62%;
	left: 19%;
	top: 19%;
	width: 62%;
}

.nikolas-ardem-breakdown-stage .nikolas-enamel-breakdown-finished {
	z-index: 12;
}

.nikolas-ardem-breakdown-stage:is(:hover, :focus-visible) .is-ardem-layer:nth-of-type(2) { transform: translate3d(31.5%, -21%, -70px) skewY(30deg) scaleX(.866) scale(.58); z-index: 3; }
.nikolas-ardem-breakdown-stage:is(:hover, :focus-visible) .is-ardem-layer:nth-of-type(3) { transform: translate3d(22.5%, -15%, -40px) skewY(30deg) scaleX(.866) scale(.58); z-index: 4; }
.nikolas-ardem-breakdown-stage:is(:hover, :focus-visible) .is-ardem-layer:nth-of-type(4) { transform: translate3d(13.5%, -9%, -10px) skewY(30deg) scaleX(.866) scale(.58); z-index: 5; }
.nikolas-ardem-breakdown-stage:is(:hover, :focus-visible) .is-ardem-layer:nth-of-type(5) { transform: translate3d(4.5%, -3%, 20px) skewY(30deg) scaleX(.866) scale(.58); z-index: 6; }
.nikolas-ardem-breakdown-stage:is(:hover, :focus-visible) .is-ardem-layer:nth-of-type(6) { transform: translate3d(-4.5%, 3%, 50px) skewY(30deg) scaleX(.866) scale(.58); z-index: 7; }
.nikolas-ardem-breakdown-stage:is(:hover, :focus-visible) .is-ardem-layer:nth-of-type(7) { transform: translate3d(-13.5%, 9%, 80px) skewY(30deg) scaleX(.866) scale(.58); z-index: 8; }
.nikolas-ardem-breakdown-stage:is(:hover, :focus-visible) .is-ardem-layer:nth-of-type(8) { transform: translate3d(-22.5%, 15%, 110px) skewY(30deg) scaleX(.866) scale(.58); z-index: 9; }
.nikolas-ardem-breakdown-stage:is(:hover, :focus-visible) .is-ardem-layer:nth-of-type(9) { transform: translate3d(-31.5%, 21%, 140px) skewY(30deg) scaleX(.866) scale(.58); z-index: 10; }

.nikolas-ardem-breakdown-stage .nikolas-enamel-hint {
	z-index: 20;
}

@media (prefers-reduced-motion: reduce) {
	.nikolas-enamel-result-pin {
		animation: none;
		transition: none;
	}

	.nikolas-story-placeholder .nikolas-enamel-breakdown img {
		transition: none;
	}
}


/* MIT-licensed Holo study by Arlan Marat, reproduced for About / Experiment 1. */
.nikolas-about-holo-stage .holo-card {
	--body-grad: linear-gradient(115deg, #d2b2fe, #b5b2fe, #b2d9fe, #a8c9ff);
	--tile-dark: #4f8fe8;
	--tile-light: #d2b2fe;
	--tile-src: url("./images/holo-nikolas.jpeg");
	--glare-o: 0.55;
	--l1-img: repeating-linear-gradient(10deg, hsl(2, 100%, 73%) 8%, hsl(53, 100%, 69%) 16%, hsl(93, 100%, 69%) 24%, hsl(176, 100%, 76%) 32%, hsl(228, 100%, 74%) 40%, hsl(283, 100%, 73%) 48%, hsl(2, 100%, 73%) 56%);
	--l2-img: repeating-linear-gradient(104deg, hsl(2, 100%, 73%) 13%, hsl(53, 100%, 69%) 26%, hsl(93, 100%, 69%) 39%, hsl(176, 100%, 76%) 52%, hsl(228, 100%, 74%) 65%, hsl(283, 100%, 73%) 78%, hsl(2, 100%, 73%) 91%);
	--l3-img: repeating-linear-gradient(96deg, rgba(255,255,255,.5) 0, rgba(255,255,255,0) 2px, rgba(0,0,0,.16) 3px, rgba(255,255,255,0) 5px);
	--l1-o: 0.26;
	--l2-o: 0.14;
	--l3-o: 0.1;
	aspect-ratio: 1.55 / 1;
	background-clip: padding-box;
	border: 1px solid transparent;
	border-radius: 22px;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .72), 0 1px 2px #10162824, 0 18px 40px -18px #10162866;
	container-type: inline-size;
	cursor: crosshair;
	height: auto;
	overflow: hidden;
	position: relative;
	transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
	transform-style: preserve-3d;
	transition: box-shadow 420ms cubic-bezier(.22, 1, .36, 1), transform 120ms ease-out;
	width: min(78%, 650px);
	will-change: transform;
}

.nikolas-about-holo-stage .holo-card:hover,
.nikolas-about-holo-stage .holo-card:focus-visible {
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .72), 0 4px 12px rgba(12, 12, 14, .22), 0 30px 70px -22px rgba(8, 8, 10, .62);
}

.nikolas-about-holo-stage .holo-card:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 5px;
}

.nikolas-about-holo-stage .holo-card > * {
	border-radius: inherit;
	inset: 0;
	pointer-events: none;
	position: absolute;
}

.nikolas-about-holo-stage .holo-body {
	background-image: var(--body-grad);
	animation: nikolas-holo-gradient-drift 14s ease-in-out infinite alternate;
	background-position: 0% 50%;
	background-size: 240% 240%;
}

.nikolas-about-holo-stage .holo-lines {
	background-image: repeating-linear-gradient(135deg, transparent 0 12px, rgba(255, 255, 255, .3) 12px 13px, transparent 13px 25px);
	mask-image: radial-gradient(circle at var(--reveal-x, 50%) var(--reveal-y, 50%), #000 0 18%, transparent 62%);
	mix-blend-mode: soft-light;
	opacity: calc(var(--reveal, 0) * .32);
	z-index: 2;
}

@keyframes nikolas-holo-gradient-drift {
	0% { background-position: 0% 40%; }
	50% { background-position: 58% 62%; }
	100% { background-position: 100% 35%; }
}

.nikolas-about-holo-stage :is(.holo-pattern, .holo-pattern--lit) {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 26c-6-7.5-1-15.5 4.8-14.2 2.8.6 4.4 3 5.1 4.6 1-1.7 2.9-4 6-3.8 6.3.4 8.8 9 1.4 15-3.3 2.7-6.4 4.6-8 6-1.7-1.5-5.5-4.6-9.3-7.6z' transform='rotate(-10 25 22)'/%3E%3Cpath d='M74 18c-5.2-6.6-.6-13.6 4.6-12.3 2.5.6 3.9 2.7 4.5 4.2.9-1.5 2.7-3.5 5.4-3.2 5.6.6 7.6 8 .9 13.2-3 2.3-5.7 4-7.1 5.2-1.5-1.3-5-4-8.3-7.1z' transform='rotate(14 84 15)'/%3E%3Cpath d='M44 66c-7-8.6-1.4-17.8 5.4-16.2 3.2.7 5 3.4 5.8 5.2 1.1-1.9 3.3-4.5 6.8-4.3 7.2.5 10 10.3 1.6 17.2-3.8 3.1-7.3 5.3-9.1 6.9-1.9-1.7-6.3-5.3-10.5-8.8z' transform='rotate(-5 55 60)'/%3E%3Cpath d='M96 74c-5.6-6.9-1-14.2 4.4-12.9 2.6.6 4 2.9 4.7 4.4 1-1.6 2.8-3.7 5.5-3.4 5.8.6 8 8.4 1.1 13.8-3.1 2.4-5.9 4.2-7.3 5.4-1.6-1.3-5.2-4.2-8.4-7.3z' transform='rotate(8 105 70)'/%3E%3Cpath d='M18 96c-6.4-7.9-1.2-16.2 5-14.7 2.9.7 4.6 3.2 5.3 4.8 1.1-1.7 3.1-4.1 6.2-3.8 6.6.5 9.1 9.4 1.3 15.7-3.5 2.8-6.7 4.8-8.4 6.2-1.8-1.6-5.8-4.9-9.4-8.2z' transform='rotate(-14 29 92)'/%3E%3C/g%3E%3C/svg%3E");
	background-repeat: repeat;
	background-size: 21%;
	opacity: var(--reveal, 0);
}

.nikolas-about-holo-stage .holo-pattern {
	filter: sepia(1) saturate(3) hue-rotate(284deg) brightness(.5);
	mask-image: radial-gradient(ellipse 82% 96% at var(--reveal-x, 50%) var(--reveal-y, 50%), #000 0%, #000c 38%, transparent 76%), linear-gradient(var(--reveal-angle, 90deg), #000 12%, #0008 46%, transparent 62%);
	mask-composite: intersect;
	mix-blend-mode: multiply;
}

.nikolas-about-holo-stage .holo-pattern--lit {
	mask-image: radial-gradient(ellipse 82% 96% at var(--reveal-x, 50%) var(--reveal-y, 50%), #000 0%, #000c 38%, transparent 76%), linear-gradient(var(--reveal-angle, 90deg), transparent 38%, #0008 54%, #000 88%);
	mask-composite: intersect;
	mix-blend-mode: screen;
	opacity: calc(var(--reveal, 0) * .85);
}

.nikolas-about-holo-stage :is(.holo-foil, .holo-foil--b, .holo-foil--c) {
	background-position: 50% 50%;
	background-repeat: repeat;
}

.nikolas-about-holo-stage .holo-foil {
	background-image: var(--l1-img);
	background-size: 380% 380%;
	filter: brightness(1.08) contrast(2.3) saturate(1.5);
	mix-blend-mode: overlay;
	opacity: var(--l1-o);
}

.nikolas-about-holo-stage .holo-foil--b {
	background-image: var(--l2-img);
	background-size: 300% 300%;
	filter: brightness(.82) contrast(2) saturate(1.7);
	mix-blend-mode: color-dodge;
	opacity: var(--l2-o);
}

.nikolas-about-holo-stage .holo-foil--c {
	background-image: var(--l3-img);
	filter: contrast(1.3);
	mix-blend-mode: overlay;
	opacity: calc(var(--l3-o) * .5);
}

.nikolas-about-holo-stage .holo-glare {
	background-image: radial-gradient(farthest-corner circle at var(--gx, 50%) var(--gy, 50%), #ffffffbf 10%, #ffffff8c 20%, #00000080 120%);
	mix-blend-mode: overlay;
	opacity: var(--glare-o);
}

.nikolas-about-holo-stage .holo-sheen {
	box-shadow: inset 0 1px 0 rgba(255,255,255,calc(var(--edge-t,0) * .55 + .32)), inset 0 -1px 0 rgba(255,255,255,calc(var(--edge-b,0) * .5 + .28)), inset 1px 0 0 rgba(255,255,255,calc(var(--edge-l,0) * .5 + .28)), inset -1px 0 0 rgba(255,255,255,calc(var(--edge-r,0) * .5 + .28)), inset 0 0 0 1px #ffffff73;
}

.nikolas-about-holo-stage .holo-spot {
	background: radial-gradient(ellipse 130% 110% at var(--gx, 50%) var(--gy, 50%), #ffffff57 0%, #fff4fc24 38%, transparent 74%);
	mix-blend-mode: soft-light;
	opacity: calc(var(--off, 0) * .35);
}

.nikolas-about-holo-stage .holo-smear {
	background: linear-gradient(var(--reveal-angle, 0deg), transparent 26%, #ffffff4d 50%, transparent 74%);
	mix-blend-mode: soft-light;
	opacity: calc(var(--off, 0) * .12);
}

.nikolas-about-holo-stage .holo-noise {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23p)' opacity='.5'/%3E%3C/svg%3E");
	background-size: 26%;
	mix-blend-mode: overlay;
	opacity: .14;
}

.nikolas-about-holo-stage .holo-content {
	align-items: flex-start;
	color: #141412;
	display: flex;
	gap: 4%;
	isolation: isolate;
	justify-content: space-between;
	padding: 7% 7% 6%;
	z-index: 10;
}

.nikolas-about-holo-stage .holo-text {
	color: #141412 !important;
	font-weight: 700;
	min-width: 0;
	-webkit-text-fill-color: #141412;
}

.nikolas-about-holo-stage :is(.holo-name, .holo-since) {
	font-family: var(--font);
	font-weight: 600;
	margin: 0;
}

.nikolas-about-holo-stage .holo-name {
	color: #141412 !important;
	font-size: clamp(17px, 4.7cqw, 37px);
	font-weight: 900;
	letter-spacing: -.015em;
	line-height: 1.15;
	text-shadow: .018em 0 currentColor, -.018em 0 currentColor;
	-webkit-text-fill-color: #141412;
}

.nikolas-about-holo-stage .holo-role-badge {
	--badge-color: rgba(20, 20, 18, .82);
	--badge-ink: #fff;
	background: rgba(20, 20, 18, .82) !important;
	border-color: rgba(20, 20, 18, .28) !important;
	color: #fff !important;
	display: inline-flex;
	margin-top: .55em;
	width: max-content;
}

.nikolas-about-holo-stage .holo-role-badge :is(i, svg) {
	color: currentColor !important;
	height: 1em;
	opacity: 1;
	width: 1em;
}

.nikolas-about-holo-stage .holo-role-badge svg * {
	stroke: currentColor !important;
}

.nikolas-about-holo-stage .holo-philosophy {
	background: rgba(20, 20, 18, .09);
	border: 1px solid rgba(20, 20, 18, .1);
	border-radius: clamp(8px, 1.8cqw, 14px);
	box-shadow: inset 0 1px 2px rgba(20, 20, 18, .18), inset 0 -1px 0 rgba(255, 255, 255, .18);
	color: rgba(20, 20, 18, .88) !important;
	font-family: var(--font);
	font-size: clamp(9px, 2.15cqw, 15px);
	font-style: italic;
	font-weight: 650;
	line-height: 1.35;
	margin: clamp(10px, 2.2cqw, 17px) 0 0;
	max-width: 34em;
	padding: clamp(8px, 1.7cqw, 13px) clamp(10px, 2.1cqw, 16px);
	-webkit-text-fill-color: rgba(20, 20, 18, .88);
}

body.nikolas-portfolio-site .nikolas-about-holo-stage .holo-role-badge {
	color: #fffaf3 !important;
	-webkit-text-fill-color: #fffaf3 !important;
}

body.nikolas-portfolio-site .nikolas-about-holo-stage .holo-role-badge :is(i, svg, svg *) {
	color: #fffaf3 !important;
	stroke: #fffaf3 !important;
}

.nikolas-about-holo-stage .holo-since {
	color: #141412 !important;
	font-size: clamp(12px, 3.1cqw, 25px);
	line-height: 1.25;
	margin-top: .2em;
	text-shadow: none;
	-webkit-text-fill-color: #141412;
}

.nikolas-about-holo-stage .holo-tile {
	align-self: flex-end;
	aspect-ratio: 1;
	background: var(--tile-dark);
	border-radius: 14px;
	box-shadow: calc(var(--emboss-x,0) * -1.5) calc(var(--emboss-y,0) * -1.5 + 2px) 3px #7828502e, calc(var(--emboss-x,0) * -3) calc(var(--emboss-y,0) * -3 + 8px) 18px -8px #78285057, inset 0 0 0 1px #ffffff80;
	flex: none;
	overflow: hidden;
	position: relative;
	transform: translate(calc(var(--emboss-x,0) * -1.1), calc(var(--emboss-y,0) * -1.1));
	width: 27%;
}

.nikolas-about-holo-stage .holo-tile > * {
	inset: 0;
	pointer-events: none;
	position: absolute;
}

.nikolas-about-holo-stage :is(.holo-tile__photo, .holo-tile__photo--neg) {
	background-image: var(--tile-src);
	background-position: 50% 50%;
	background-repeat: no-repeat;
	background-size: cover;
}

.nikolas-about-holo-stage .holo-tile__photo {
	filter: grayscale(1) contrast(.9) brightness(1.2);
}

.nikolas-about-holo-stage .holo-tile__photo--neg {
	filter: grayscale(1) contrast(.82) brightness(1.28) invert(1) sepia(.38) hue-rotate(265deg) saturate(.72);
	opacity: calc(var(--tile-invert, 0) * .9);
}

.nikolas-about-holo-stage .holo-tile__duo {
	background-image: linear-gradient(160deg, var(--tile-dark), var(--tile-light));
	mix-blend-mode: color;
	opacity: .3;
}

.nikolas-about-holo-stage .holo-tile__tone {
	background-image: linear-gradient(160deg, var(--tile-dark), var(--tile-light));
	mix-blend-mode: soft-light;
	opacity: .08;
}

.nikolas-about-holo-stage .holo-tile__foil {
	background-image: repeating-linear-gradient(98deg,#ff8985 0%,#ffee70 3%,#b0ff70 6%,#8ffff8 9%,#8aa1ff 12%,#dc85ff 15%,#ff8985 18%);
	background-position: 50% calc(var(--tile-invert,0) * 100%);
	background-size: 300% 300%;
	filter: contrast(1.7) saturate(.85);
	mix-blend-mode: color-dodge;
	opacity: calc(var(--tile-invert,0) * .08);
}

.nikolas-about-holo-stage .holo-tile__grain {
	background-image: repeating-linear-gradient(63deg,#ffffff29 0,#fff0 1px,#00000021 2px,#fff0 3px);
	mix-blend-mode: overlay;
	opacity: .16;
}

.nikolas-about-holo-stage .holo-tile__wear {
	background-image: repeating-linear-gradient(28deg,#0000 0 9px,#ffffff17 9px 10px,#0000 10px 23px,#ffffff0d 23px 24px,#0000 24px 51px);
	mix-blend-mode: soft-light;
	opacity: calc(.28 + var(--tile-invert,0) * .4);
}

.nikolas-about-holo-stage .holo-tile__vignette {
	background: radial-gradient(78% 74% at 50% 42%,#0000 48%,#501e3c12 82%,#501e3c24 100%);
}

.nikolas-about-holo-stage .holo-tile__gloss {
	background-image: radial-gradient(farthest-corner circle at var(--gx,50%) var(--gy,50%),#ffffff42 0%,#ffffff0f 50%,#3c142d29 110%);
	box-shadow: inset 0 0 0 1px #ffffff57;
	mix-blend-mode: soft-light;
}

.nikolas-about-holo-stage .holo-tilt-hint {
	border-radius: 999px;
	bottom: 0;
	inset: auto auto 0 0;
	left: 0;
	z-index: 12;
}

.nikolas-about-holo-stage .holo-id {
	bottom: 9%;
	color: rgba(20, 20, 18, .82) !important;
	font-family: var(--font);
	font-size: clamp(12px, 2.5cqw, 18px);
	font-weight: 800;
	inset: auto auto 9% 7%;
	left: 7%;
	letter-spacing: .015em;
	line-height: 1;
	margin: 0;
	opacity: 1;
	-webkit-text-fill-color: rgba(20, 20, 18, .82);
	z-index: 11;
}

.nikolas-about-enamel-stage {
	align-items: center;
	display: flex;
	height: 100%;
	justify-content: center;
	min-height: 100%;
	perspective: 1000px;
	position: relative;
}

.nikolas-enamel-pin {
	--pin-mask: url("./images/enamel-pin-metal-mask.png");
	--pin-color-image: url("./images/enamel-pin-color.png");
	--enamel-mask: url("./images/enamel-pin-fill-mask.png");
	--highlight-mask: url("./images/enamel-pin-highlight-mask.png");
	aspect-ratio: 1;
	cursor: crosshair;
	filter: drop-shadow(0 18px 18px rgba(8, 10, 12, .3));
	isolation: isolate;
	position: relative;
	transform: rotateX(var(--pin-rx, 0deg)) rotateY(var(--pin-ry, 0deg));
	transform-style: preserve-3d;
	transition: filter 300ms ease, transform 120ms ease-out;
	width: min(38%, 360px);
	will-change: transform;
}

.nikolas-enamel-pin:hover,
.nikolas-enamel-pin:focus-visible {
	filter: drop-shadow(0 28px 26px rgba(8, 10, 12, .42));
}

.nikolas-enamel-pin:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 8px;
}

.nikolas-enamel-pin > * {
	inset: 0;
	pointer-events: none;
	position: absolute;
}

.nikolas-enamel-color {
	height: 100%;
	object-fit: contain;
	width: 100%;
}

.nikolas-enamel-metal,
.nikolas-enamel-depth {
	-webkit-mask: var(--pin-mask) center / contain no-repeat;
	mask: var(--pin-mask) center / contain no-repeat;
	mask-mode: luminance;
}

.nikolas-enamel-metal {
	background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.06) 42%, rgba(0,0,0,.2) 72%, rgba(0,0,0,.34) 100%);
	filter: drop-shadow(0 2px 1px rgba(10,14,18,.16));
	transform: translateZ(8px);
}

.nikolas-enamel-depth {
	background: var(--pin-color-image) center / contain no-repeat;
	filter: brightness(.5) saturate(.9) drop-shadow(0 3px 2px rgba(15,19,24,.24));
	opacity: 1;
	transform: translate3d(0, 2px, 0);
}

.nikolas-enamel-reflex {
	background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,250,255,.82));
	-webkit-mask: url("./images/enamel-pin-reflex-mask.png") center / contain no-repeat;
	mask: url("./images/enamel-pin-reflex-mask.png") center / contain no-repeat;
	mix-blend-mode: screen;
	opacity: var(--reflex-opacity, .22);
	transform: translateZ(7px);
	transition: opacity 140ms ease-out;
}

.nikolas-enamel-filter {
	height: 0;
	overflow: visible;
	width: 0;
}

.nikolas-enamel-inner-light {
	height: 100%;
	mix-blend-mode: screen;
	object-fit: contain;
	opacity: var(--shine-opacity, .34);
	transform: translateZ(7px);
	transition: opacity 120ms ease-out;
	width: 100%;
}

.nikolas-enamel-specular {
	-webkit-mask: var(--pin-color-image) center / contain no-repeat;
	mask: var(--pin-color-image) center / contain no-repeat;
	background:
		linear-gradient(
			118deg,
			transparent 37%,
			rgba(255,255,255,.08) 45%,
			rgba(255,255,255,.5) 50%,
			rgba(255,255,255,.1) 55%,
			transparent 63%
		);
	background-position: var(--specular-x, 50%) var(--specular-y, 50%);
	background-size: 230% 230%;
	mix-blend-mode: screen;
	opacity: var(--specular-opacity, 0);
	transform: translateZ(9px);
	transition: opacity 140ms ease-out;
}

.nikolas-enamel-hint {
	bottom: 0;
	left: 0;
	position: absolute;
}

.nikolas-enamel-download-action {
	align-items: center;
	display: flex;
	gap: .65rem;
	justify-content: center;
	text-align: center;
	width: fit-content;
}

.nikolas-enamel-download-tooltip {
	cursor: not-allowed;
	display: inline-flex;
	width: fit-content;
}

.nikolas-enamel-download-tooltip .nikolas-enamel-download-action:disabled {
	pointer-events: none;
}

.nikolas-enamel-download-action i {
	flex: 0 0 auto;
}

.nikolas-enamel-download-action:disabled {
	cursor: not-allowed;
	filter: saturate(.35);
	opacity: .48;
	transform: none;
}

.nikolas-portfolio-site.nikolas-project-page .nikolas-project-story-block.nikolas-enamel-download-block {
	align-items: center;
	display: flex;
	flex-direction: row;
	gap: var(--gap);
	justify-content: space-between;
}

.nikolas-enamel-download-block > .wp-block-heading {
	margin: 0;
}

@media (max-width: 620px) {
	.nikolas-portfolio-site.nikolas-project-page .nikolas-project-story-block.nikolas-enamel-download-block {
		align-items: start;
		flex-direction: column;
	}

	.nikolas-about-enamel-stage {
		padding: 8%;
	}

	.nikolas-enamel-pin {
		width: min(68%, 320px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.nikolas-enamel-pin {
		transform: none;
	}
}

@media (max-width: 620px) {
	.nikolas-portfolio-site.nikolas-about-page [data-nikolas-about-panel="experiment-1"],
	.nikolas-portfolio-site.nikolas-about-page .nikolas-about-holo-stage {
		height: 100%;
		min-height: 100%;
	}

	.nikolas-portfolio-site.nikolas-about-page .nikolas-about-holo-stage {
		align-items: center;
		justify-content: center;
		padding: 0;
	}

	.nikolas-about-holo-stage .holo-card {
		width: 90%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nikolas-about-holo-stage .holo-card {
		transform: none;
	}

	.nikolas-about-holo-stage .holo-body {
		animation: none;
	}
}

.nikolas-portfolio-site.nikolas-about-page .nikolas-about-panel-empty {
	min-height: 100%;
}

.nikolas-portfolio-site.nikolas-about-page .nikolas-about-holo-stage {
	align-items: center;
	box-sizing: border-box;
	display: flex;
	justify-content: center;
	height: 100%;
	min-height: 100%;
	overflow: visible;
	padding: 0;
	perspective: 1100px;
	position: relative;
	width: 100%;
}

.nikolas-portfolio-site.nikolas-about-page .nikolas-about-holo-card {
	--nikolas-holo-bloom: 0.36;
	--nikolas-holo-glare-x: 50%;
	--nikolas-holo-glare-y: 50%;
	--nikolas-holo-intensity: 0;
	--nikolas-holo-rotate-x: 0deg;
	--nikolas-holo-rotate-y: 0deg;
	aspect-ratio: 1.586 / 1;
	background:
		radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.18), transparent 34%),
		linear-gradient(145deg, #312b48 0%, #171522 54%, #292039 100%);
	border: 1px solid rgba(255, 255, 255, 0.34);
	border-radius: clamp(22px, 3vw, 34px);
	box-shadow:
		0 24px 55px rgba(10, 8, 18, 0.42),
		0 0 34px rgba(151, 111, 255, calc(var(--nikolas-holo-bloom) * (0.25 + var(--nikolas-holo-intensity) * 0.75))),
		inset 0 1px 0 rgba(255, 255, 255, 0.24);
	box-sizing: border-box;
	color: #fffaf3;
	isolation: isolate;
	max-width: 620px;
	overflow: hidden;
	position: relative;
	transform: rotateX(var(--nikolas-holo-rotate-x)) rotateY(var(--nikolas-holo-rotate-y));
	transform-style: preserve-3d;
	transition: box-shadow 180ms ease;
	width: min(76%, 620px);
	will-change: transform;
}

.nikolas-portfolio-site.nikolas-about-page .nikolas-about-holo-card:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 5px;
}

.nikolas-portfolio-site.nikolas-about-page .nikolas-about-holo-card-content {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	height: 100%;
	justify-content: space-between;
	padding: clamp(18px, 3vw, 34px);
	position: relative;
	transform: translateZ(26px);
	z-index: 3;
}

.nikolas-portfolio-site.nikolas-about-page .nikolas-about-holo-card-topline,
.nikolas-portfolio-site.nikolas-about-page .nikolas-about-holo-card-footer {
	display: flex;
	font-size: clamp(0.58rem, 0.8vw, 0.74rem);
	font-weight: 700;
	justify-content: space-between;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.nikolas-portfolio-site.nikolas-about-page .nikolas-about-holo-identity {
	align-items: center;
	display: flex;
	gap: clamp(16px, 3vw, 32px);
}

.nikolas-portfolio-site.nikolas-about-page .nikolas-about-holo-identity figure {
	background: #14121c;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 22%;
	flex: 0 0 clamp(68px, 11vw, 118px);
	margin: 0;
	overflow: hidden;
}

.nikolas-portfolio-site.nikolas-about-page .nikolas-about-holo-identity img {
	display: block;
	height: auto;
	width: 100%;
}

.nikolas-portfolio-site.nikolas-about-page .nikolas-about-holo-identity div {
	display: grid;
	gap: 4px;
}

.nikolas-portfolio-site.nikolas-about-page .nikolas-about-holo-identity span,
.nikolas-portfolio-site.nikolas-about-page .nikolas-about-holo-identity small {
	font-size: clamp(0.58rem, 1vw, 0.78rem);
	font-weight: 650;
	letter-spacing: 0.08em;
	opacity: 0.76;
	text-transform: uppercase;
}

.nikolas-portfolio-site.nikolas-about-page .nikolas-about-holo-identity strong {
	font-family: var(--font);
	font-size: clamp(1.05rem, 2.5vw, 2rem);
	line-height: 1.05;
}

.nikolas-portfolio-site.nikolas-about-page .nikolas-about-holo-foil,
.nikolas-portfolio-site.nikolas-about-page .nikolas-about-holo-glare {
	border-radius: inherit;
	inset: 0;
	pointer-events: none;
	position: absolute;
}

.nikolas-portfolio-site.nikolas-about-page .nikolas-about-holo-foil-primary {
	background: repeating-linear-gradient(10deg, #ff004c 0%, #ff8a00 8%, #ffe600 16%, #29d977 24%, #00c9ff 32%, #6757ff 40%, #db4cff 48%, #ff004c 56%);
	background-position: 50% 50%;
	background-size: 380% 380%;
	filter: brightness(1.08) contrast(2.3) saturate(1.5);
	mix-blend-mode: overlay;
	opacity: calc(0.12 + var(--nikolas-holo-intensity) * var(--nikolas-holo-bloom));
	z-index: 1;
}

.nikolas-portfolio-site.nikolas-about-page .nikolas-about-holo-foil-secondary {
	background: repeating-linear-gradient(104deg, #fa3 0%, #ff4cc9 13%, #7f67ff 26%, #35e8ff 39%, #52ff9c 52%, #f8ff6a 65%, #fa3 78%);
	background-position: 50% 50%;
	background-size: 300% 300%;
	filter: brightness(0.82) contrast(2) saturate(1.7);
	mix-blend-mode: color-dodge;
	opacity: calc(0.08 + var(--nikolas-holo-intensity) * 0.22);
	z-index: 1;
}

.nikolas-portfolio-site.nikolas-about-page .nikolas-about-holo-foil-scanlines {
	background: repeating-linear-gradient(96deg, rgba(255, 255, 255, 0.2) 0 1px, transparent 1px 4px, rgba(0, 0, 0, 0.18) 4px 5px, transparent 5px 8px);
	filter: contrast(1.3);
	mix-blend-mode: overlay;
	opacity: calc(0.08 + var(--nikolas-holo-intensity) * 0.16);
	z-index: 1;
}

.nikolas-portfolio-site.nikolas-about-page .nikolas-about-holo-glare {
	background: radial-gradient(circle at var(--nikolas-holo-glare-x) var(--nikolas-holo-glare-y), rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.2) 18%, transparent 48%);
	mix-blend-mode: screen;
	opacity: calc(0.08 + var(--nikolas-holo-intensity) * 0.38);
	z-index: 2;
}

@media (max-width: 620px) {
	.nikolas-portfolio-site.nikolas-about-page .nikolas-about-holo-stage {
		padding: 0;
	}

	.nikolas-portfolio-site.nikolas-about-page .nikolas-about-holo-card {
		width: 92%;
	}

	.nikolas-portfolio-site.nikolas-about-page .nikolas-about-holo-identity small {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nikolas-portfolio-site.nikolas-about-page .nikolas-about-holo-card {
		transform: none;
		transition: none;
	}
}

.nikolas-portfolio-site.nikolas-about-page .nikolas-about-profile-intro + .nikolas-about-intro {
	margin-top: clamp(12px, 2vw, 28px);
}

.nikolas-portfolio-site.nikolas-about-page .nikolas-about-intro,
.nikolas-portfolio-site.nikolas-about-page .nikolas-about-group-heading {
	margin: 0;
}

.nikolas-portfolio-site.nikolas-about-page .nikolas-about-intro {
	max-width: 880px;
}

.nikolas-portfolio-site.nikolas-about-page .nikolas-about-intro h1,
.nikolas-portfolio-site.nikolas-about-page .nikolas-about-group-heading h2 {
	margin: 0;
}

.nikolas-portfolio-site.nikolas-about-page .nikolas-about-intro h1 {
	font-size: clamp(2.35rem, 4.3vw, 4.7rem);
	line-height: 1.05;
}

.nikolas-portfolio-site.nikolas-about-page .nikolas-about-lede {
	color: var(--muted);
	font-size: clamp(1rem, 1.6vw, 1.2rem);
	line-height: 1.65;
	margin: 12px 0 0;
	max-width: 760px;
}

.nikolas-portfolio-site.nikolas-about-page .nikolas-about-accordion-group {
	display: grid;
	gap: 8px;
	margin: 0;
}

.nikolas-portfolio-site.nikolas-about-page .nikolas-about-group-heading {
	max-width: 820px;
}

.nikolas-portfolio-site.nikolas-about-page .nikolas-about-group-heading h2 {
	font-size: clamp(1.8rem, 3vw, 2.6rem);
	line-height: 1.08;
}

.nikolas-portfolio-site.nikolas-about-page .bentobox-profile-accordion {
	width: 100%;
}

/* Keep the profile rows and every nested media surface on one squircle scale. */
.nikolas-portfolio-site.nikolas-about-page .bentobox-profile-item {
	background: var(--surface);
	border-radius: var(--portfolio-media-radius);
}

.nikolas-portfolio-site.nikolas-about-page .bentobox-profile-company {
	font-size: var(--portfolio-readable-copy-size);
	line-height: var(--portfolio-readable-copy-line-height);
}

.nikolas-portfolio-site.nikolas-about-page .bentobox-profile-logo {
	border-radius: var(--portfolio-compact-media-radius);
}

.nikolas-portfolio-site.nikolas-about-page .bentobox-profile-logo img {
	border-radius: inherit;
}

/* Give the emoji-style Tools & Other Stuff artwork room inside its existing frame. */
.nikolas-portfolio-site.nikolas-about-page .nikolas-tools-accordion-group .bentobox-profile-logo img {
	box-sizing: border-box;
	object-fit: contain;
	padding: 6px;
}

.nikolas-portfolio-site.nikolas-about-page .bentobox-profile-panel figure,
.nikolas-portfolio-site.nikolas-about-page .bentobox-profile-media {
	border-radius: var(--portfolio-media-radius);
}

.nikolas-portfolio-site.nikolas-about-page .bentobox-profile-project {
	display: grid;
	gap: 8px;
}

.nikolas-portfolio-site.nikolas-about-page .bentobox-profile-project + .bentobox-profile-project {
	margin-top: 20px;
}

/* Present every nested accordion entry as a distinct inset segment. */
.nikolas-portfolio-site.nikolas-about-page .bentobox-profile-copy {
	display: grid;
	gap: 16px;
}

.nikolas-portfolio-site.nikolas-about-page .bentobox-profile-project {
	background: var(--surface-2);
	border: 1px solid var(--line);
	border-radius: var(--portfolio-compact-media-radius);
	padding: 16px;
}

.nikolas-portfolio-site.nikolas-about-page .bentobox-profile-project + .bentobox-profile-project {
	margin-top: 0;
}

.nikolas-portfolio-site.nikolas-about-page .bentobox-profile-project strong {
	align-items: center;
	color: var(--text);
	display: inline-flex;
	font-weight: 650;
	gap: 8px;
	line-height: 1.3;
}

.nikolas-portfolio-site.nikolas-about-page .nikolas-profile-project-icon {
	background: var(--surface-2);
	border: 1px solid var(--line);
	border-radius: 10px;
	box-sizing: border-box;
	display: inline-grid;
	flex: 0 0 1.55em;
	height: 1.55em;
	overflow: hidden;
	place-items: center;
	width: 1.55em;
}

.nikolas-portfolio-site.nikolas-about-page .nikolas-profile-project-icon img {
	border-radius: inherit;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.nikolas-portfolio-site.nikolas-about-page .bentobox-profile-project p {
	margin: 0;
}

.nikolas-portfolio-site.nikolas-about-page .bentobox-profile-project p:empty {
	display: none;
}

/* The closing About panel lives outside entry-builder-main, so mirror the
 * project rich-text component's scoped spacing and type rules here. */
.nikolas-portfolio-site.nikolas-about-page .nikolas-about-fun-stuff {
	display: flex;
	flex-direction: column;
	gap: var(--content-gap);
	padding: var(--card-padding);
}

.nikolas-portfolio-site.nikolas-about-page .nikolas-about-fun-stuff > * {
	margin: 0;
	width: 100%;
}

@media (max-width: 700px) {
	.nikolas-portfolio-site.nikolas-about-page .nikolas-about-section {
		gap: 32px;
		padding-block: 64px 56px;
		width: min(calc(100% - 40px), var(--container));
	}

	.nikolas-portfolio-site.nikolas-about-page .nikolas-tools-intro {
		margin-top: 24px;
	}
}

.nikolas-portfolio-site:is(.nikolas-work-page, .nikolas-about-page) .nikolas-company-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--text);
	font-weight: inherit;
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
	margin-left: 0.42em;
	transition: filter 0.16s ease, transform 0.16s ease;
}

[data-theme="dark"] .nikolas-portfolio-site:is(.nikolas-work-page, .nikolas-about-page) .nikolas-company-link {
	color: #fff;
}

.nikolas-portfolio-site:is(.nikolas-work-page, .nikolas-about-page) .nikolas-intro-role {
	display: block;
}

.nikolas-portfolio-site:is(.nikolas-work-page, .nikolas-about-page) .nikolas-intro-role > span:first-child {
	display: inline;
}

.nikolas-portfolio-site:is(.nikolas-work-page, .nikolas-about-page) .nikolas-company-link {
	vertical-align: middle;
}

.nikolas-portfolio-site:is(.nikolas-work-page, .nikolas-about-page) .nikolas-company-link:hover,
.nikolas-portfolio-site:is(.nikolas-work-page, .nikolas-about-page) .nikolas-company-link:focus-visible {
	filter: brightness(0.94);
	transform: translateY(-1px);
}

.nikolas-portfolio-site:is(.nikolas-work-page, .nikolas-about-page) .nikolas-company-link:active {
	transform: translateY(0);
}

.nikolas-portfolio-site:is(.nikolas-work-page, .nikolas-about-page) .nikolas-company-period {
	color: inherit;
}

.nikolas-portfolio-site .nikolas-theme-image {
	opacity: 1;
	transition: opacity 0.28s ease-in-out;
}

.nikolas-portfolio-site .nikolas-theme-image-dark {
	opacity: 0;
}

[data-theme="dark"] .nikolas-portfolio-site .nikolas-theme-image-light {
	opacity: 0;
}

[data-theme="dark"] .nikolas-portfolio-site .nikolas-theme-image-dark {
	opacity: 1;
}

.nikolas-portfolio-site .nikolas-header-brand-icon {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nikolas-portfolio-site .nikolas-header-brand {
	flex: 0 0 auto;
}

.nikolas-portfolio-site .site-header .brand-title {
	font-size: 18px;
	line-height: 1.1;
}

.nikolas-portfolio-site .site-header .brand-subtitle {
	margin-top: 1px;
}

.nikolas-portfolio-site .nikolas-project-back {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
}

.nikolas-portfolio-site .nikolas-project-back svg {
	width: 20px;
	height: 20px;
}

.nikolas-portfolio-site.nikolas-portfolio-public .nav-dropdown,
.nikolas-portfolio-site.nikolas-portfolio-public .mobile-section-group {
	display: none !important;
}

/*
 * Keep page navigation native and progressively enhance it with cross-document
 * View Transitions. Shared names make the persistent header feel continuous:
 * the identity glides aside to make room while the project back control enters.
 */
@view-transition {
	navigation: auto;
}

.nikolas-portfolio-site .nikolas-brand-portrait-button {
	view-transition-name: nikolas-brand-portrait;
}

.nikolas-portfolio-site .nikolas-brand-home {
	view-transition-name: nikolas-brand-copy;
}

.nikolas-portfolio-site .header-tools {
	view-transition-name: nikolas-header-tools;
}

.nikolas-portfolio-site .nikolas-project-back {
	view-transition-name: nikolas-project-back;
}

::view-transition-group(nikolas-brand-portrait),
::view-transition-group(nikolas-brand-copy),
::view-transition-group(nikolas-header-tools) {
	animation-duration: 0.42s;
	animation-timing-function: cubic-bezier(0.22, 0.8, 0.3, 1);
}

::view-transition-old(root) {
	animation: nikolas-page-transition-out 0.2s ease both;
}

::view-transition-new(root) {
	animation: nikolas-page-transition-in 0.34s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}

::view-transition-new(nikolas-project-back) {
	animation: nikolas-project-back-in 0.4s 0.06s cubic-bezier(0.22, 0.8, 0.3, 1.08) both;
}

::view-transition-old(nikolas-project-back) {
	animation: nikolas-project-back-out 0.22s ease both;
}

@keyframes nikolas-page-transition-out {
	to {
		opacity: 0;
		transform: translateY(-5px);
	}
}

@keyframes nikolas-page-transition-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
}

@keyframes nikolas-project-back-in {
	from {
		opacity: 0;
		transform: translateX(-16px) scale(0.86);
	}
}

@keyframes nikolas-project-back-out {
	to {
		opacity: 0;
		transform: translateX(-12px) scale(0.9);
	}
}

@media (prefers-reduced-motion: reduce) {
	::view-transition-old(root),
	::view-transition-new(root),
	::view-transition-group(nikolas-brand-portrait),
	::view-transition-group(nikolas-brand-copy),
	::view-transition-group(nikolas-header-tools),
	::view-transition-old(nikolas-project-back),
	::view-transition-new(nikolas-project-back) {
		animation-duration: 0.01ms;
		animation-delay: 0s;
	}
}

.nikolas-portfolio-site .nikolas-brand-portrait-button {
	display: grid;
	padding: 0;
	border: 0;
	border-radius: var(--portfolio-control-radius);
	background: transparent;
	color: inherit;
	cursor: pointer;
	transition: filter 0.18s ease, transform 0.18s ease;
}

.nikolas-portfolio-site .nikolas-brand-portrait-button:hover {
	filter: brightness(1.08);
	transform: translateY(-2px) rotate(-1deg);
}

.nikolas-portfolio-site .nikolas-brand-portrait-button:active {
	transform: translateY(0) scale(0.96);
}

.nikolas-portfolio-site .nikolas-brand-portrait-button:focus-visible,
.nikolas-portfolio-site .nikolas-brand-home:focus-visible {
	outline: 2px solid var(--lux-focus, var(--accent));
	outline-offset: 3px;
}

.nikolas-portfolio-site .nikolas-brand-portrait-button.is-bouncing .bento-lux-brand-mark {
	animation: nikolas-brand-portrait-spring 0.5s cubic-bezier(0.22, 0.8, 0.3, 1.12);
}

.nikolas-portfolio-site .nikolas-brand-portrait-button .bento-lux-brand-mark {
	position: relative;
	display: grid;
}

.nikolas-portfolio-site .nikolas-brand-portrait-button .nikolas-header-brand-icon {
	grid-area: 1 / 1;
	display: block !important;
	opacity: 0;
	transform: scale(0.965);
	transition: opacity 0.42s ease, transform 0.42s cubic-bezier(0.22, 0.8, 0.3, 1);
}

.nikolas-portfolio-site .nikolas-brand-portrait-button .nikolas-theme-image-light {
	opacity: 1;
	transform: scale(1);
}

[data-theme="dark"] .nikolas-portfolio-site .nikolas-brand-portrait-button .nikolas-theme-image-light {
	opacity: 0;
	transform: scale(0.965);
}

[data-theme="dark"] .nikolas-portfolio-site .nikolas-brand-portrait-button .nikolas-theme-image-dark {
	opacity: 1;
	transform: scale(1);
}

.nikolas-portfolio-site .nikolas-brand-portrait-button.is-cycling .nikolas-theme-image {
	opacity: 0;
	transform: scale(0.965);
}

.nikolas-portfolio-site .nikolas-brand-portrait-button.is-cycling .nikolas-brand-cycle-image {
	opacity: 1;
	transform: scale(1);
}

.nikolas-portfolio-site .nikolas-brand-home {
	padding: 5px 7px;
	margin: -5px -7px;
	border-radius: 10px;
	color: var(--text);
	text-decoration: none;
	transition: filter 0.18s ease, transform 0.18s ease;
}

.nikolas-portfolio-site .nikolas-brand-home:hover {
	filter: brightness(1.05);
	transform: translateY(-1px);
}

.nikolas-portfolio-site .nikolas-brand-home:active {
	transform: translateY(0);
}

.nikolas-portfolio-site .bento-lux-brand-mark {
	position: relative;
	width: 52px;
	height: 52px;
	padding: 0;
	overflow: hidden;
	background: transparent;
	border-color: var(--lux-control-border, var(--line));
	border-radius: 12px;
}

@supports (corner-shape: squircle) {
	.nikolas-portfolio-site .bento-lux-brand-mark {
		border-radius: 16px;
	}
}

.nikolas-portfolio-site .bento-lux-brand-mark > img {
	border-radius: inherit;
}

.nikolas-portfolio-site .bento-lux-brand-mark > .nikolas-theme-image {
	position: absolute;
	inset: 0;
}

.nikolas-portfolio-site :is(.language-switcher, .language-switcher-mobile) {
	display: none !important;
}

/*
 * Keep desktop dropdown panels outside the compact nav rail's height.
 * Bento.Lux makes that rail horizontally scrollable at intermediate desktop
 * widths; its paired overflow-y:hidden would otherwise clip an open menu.
 */
@media (min-width: 1051px) {
	.nikolas-portfolio-site .header-tools > .tab-nav {
		overflow: visible;
	}
}

.nikolas-portfolio-site:is(.nikolas-work-page, .nikolas-about-page) .hero-main {
	border-radius: var(--portfolio-panel-radius);
}

.nikolas-portfolio-site:is(.nikolas-work-page, .nikolas-about-page) .nikolas-portrait {
	display: grid;
	width: clamp(112px, 11vw, 148px);
	aspect-ratio: 1;
	place-items: center;
	margin: 0 0 var(--content-gap);
	border: 1px solid var(--lux-control-border, var(--line));
	border-radius: 28px;
	background: var(--lux-control-bg, var(--surface-2));
	color: var(--text);
	overflow: hidden;
}

.nikolas-portfolio-site:is(.nikolas-work-page, .nikolas-about-page) .nikolas-portrait img {
	grid-area: 1 / 1;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
}

.nikolas-portfolio-site:is(.nikolas-work-page, .nikolas-about-page) .nikolas-company-icon {
	display: inline-grid;
	width: 1.55em;
	height: 1.55em;
	place-items: center;
	flex: 0 0 auto;
	border: 1px solid rgba(255, 255, 255, 0.48);
	border-radius: 0.45em;
	background: rgba(255, 255, 255, 0.08);
}

.nikolas-portfolio-site:is(.nikolas-work-page, .nikolas-about-page) .nikolas-company-icon img {
	width: 100%;
	height: 100%;
	border-radius: inherit;
	object-fit: cover;
}

.nikolas-portfolio-site.nikolas-work-page .nikolas-profile-button {
	column-gap: 9px;
}

.nikolas-portfolio-site.nikolas-work-page .nikolas-profile-button svg {
	width: 1em;
	height: 1em;
	flex: 0 0 auto;
}

.nikolas-portfolio-site.nikolas-work-page .nikolas-profile-button .nikolas-external-icon {
	margin-left: 2px;
	width: 0.9em;
	height: 0.9em;
}

.nikolas-portfolio-site.nikolas-work-page .nikolas-profile-links {
	align-items: center;
}

.nikolas-portfolio-site.nikolas-work-page .nikolas-profile-button.is-expandable {
	box-sizing: border-box;
	column-gap: 0;
	flex: 0 1 auto;
	height: 46px;
	justify-content: flex-start;
	max-height: 46px;
	max-width: 46px;
	min-height: 46px;
	min-width: 46px;
	overflow: hidden;
	padding: 0 14px;
	width: auto;
	transition:
		max-width 0.26s cubic-bezier(0.22, 0.75, 0.22, 1),
		transform 0.18s ease,
		filter 0.18s ease,
		background-color 0.18s ease,
		border-color 0.18s ease,
		color 0.18s ease;
}

.nikolas-portfolio-site.nikolas-work-page .nikolas-profile-button.is-expandable > span {
	margin-left: 0;
	max-width: 0;
	opacity: 0;
	overflow: hidden;
	white-space: nowrap;
	transition: margin-left 0.24s ease, max-width 0.24s ease, opacity 0.18s ease;
}

.nikolas-portfolio-site.nikolas-work-page .nikolas-profile-button.is-expandable .nikolas-external-icon {
	margin-left: 0;
	opacity: 0;
	width: 0;
	transition: margin-left 0.24s ease, opacity 0.18s ease, width 0.24s ease;
}

.nikolas-portfolio-site.nikolas-work-page .nikolas-profile-button.is-expandable:is(:hover, :focus-visible) {
	max-width: var(--nikolas-profile-expanded-width, 148px);
}

.nikolas-portfolio-site.nikolas-work-page .nikolas-profile-button.is-expandable:is(:hover, :focus-visible) > span {
	margin-left: 9px;
	max-width: 90px;
	opacity: 1;
}

.nikolas-portfolio-site.nikolas-work-page .nikolas-profile-button.is-expandable:is(:hover, :focus-visible) .nikolas-external-icon {
	margin-left: 7px;
	opacity: 1;
	width: 0.9em;
}

.nikolas-portfolio-site.nikolas-work-page .nikolas-work-cta-wrap {
	display: flex;
	justify-content: center;
	width: 100%;
	margin-top: var(--component-gap);
}

.nikolas-portfolio-site.nikolas-work-page .nikolas-client-carousel {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--portfolio-panel-radius);
	box-sizing: border-box;
	contain: inline-size;
	margin-top: calc(var(--component-gap) + 10px);
	max-width: 100%;
	min-width: 0;
	overflow: hidden;
	padding: 20px var(--card-padding);
	width: 100%;
}

.nikolas-portfolio-site.nikolas-work-page .nikolas-client-carousel-label {
	color: var(--muted);
	font-size: 1.15rem;
	font-weight: 600;
	line-height: 1.55;
	margin: 0 0 15px;
	text-align: left;
}

.nikolas-portfolio-site.nikolas-work-page .nikolas-client-carousel-viewport {
	-webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
	min-width: 0;
	overflow: hidden;
	width: 100%;
}

.nikolas-portfolio-site.nikolas-work-page .nikolas-client-carousel-track,
.nikolas-portfolio-site.nikolas-work-page .nikolas-client-carousel-group {
	align-items: center;
	display: flex;
}

.nikolas-portfolio-site.nikolas-work-page .nikolas-client-carousel-track {
	animation: nikolas-client-carousel-scroll 26s linear infinite;
	width: max-content;
}

.nikolas-portfolio-site.nikolas-work-page .nikolas-client-carousel-group {
	flex: 0 0 auto;
	gap: var(--nikolas-client-resolved-gap, clamp(22px, 2.5vw, 32px));
	padding-right: var(--nikolas-client-resolved-gap, clamp(22px, 2.5vw, 32px));
}

.nikolas-portfolio-site.nikolas-work-page .nikolas-client-logo {
	align-items: center;
	color: inherit;
	display: inline-flex;
	flex: 0 0 104px;
	height: 80px;
	justify-content: center;
	position: relative;
	text-decoration: none;
	width: 104px;
}

.nikolas-portfolio-site.nikolas-work-page .nikolas-client-logo::before {
	background: var(--muted);
	content: "";
	inset: 0;
	mask-position: center;
	mask-repeat: no-repeat;
	mask-size: contain;
	opacity: 0.82;
	position: absolute;
	transition: background-color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
	-webkit-mask-position: center;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-size: contain;
}

.nikolas-portfolio-site.nikolas-work-page .nikolas-client-logo:is(:hover, :focus-visible)::before {
	background: var(--text);
	opacity: 1;
	transform: scale(1.05);
}

.nikolas-portfolio-site.nikolas-work-page .nikolas-client-carousel-group .nikolas-client-logo:nth-child(1)::before {
	-webkit-mask-image: url("images/icon-brand-techtive-games.svg");
	mask-image: url("images/icon-brand-techtive-games.svg");
}

.nikolas-portfolio-site.nikolas-work-page .nikolas-client-carousel-group .nikolas-client-logo:nth-child(2)::before {
	-webkit-mask-image: url("images/icon-brand-klang-games.svg");
	mask-image: url("images/icon-brand-klang-games.svg");
}

.nikolas-portfolio-site.nikolas-work-page .nikolas-client-carousel-group .nikolas-client-logo:nth-child(3)::before {
	-webkit-mask-image: url("images/icon-brand-ubisoft.svg");
	mask-image: url("images/icon-brand-ubisoft.svg");
}

.nikolas-portfolio-site.nikolas-work-page .nikolas-client-carousel-group .nikolas-client-logo:nth-child(4)::before {
	-webkit-mask-image: url("images/icon-brand-gunzilla-games.svg");
	mask-image: url("images/icon-brand-gunzilla-games.svg");
}

.nikolas-portfolio-site.nikolas-work-page .nikolas-client-carousel-group .nikolas-client-logo:nth-child(5)::before {
	-webkit-mask-image: url("images/icon-brand-distant-light-games.svg");
	mask-image: url("images/icon-brand-distant-light-games.svg");
}

.nikolas-portfolio-site.nikolas-work-page .nikolas-client-carousel-group .nikolas-client-logo:nth-child(6)::before {
	-webkit-mask-image: url("images/icon-brand-infima-games.svg");
	mask-image: url("images/icon-brand-infima-games.svg");
}

.nikolas-portfolio-site.nikolas-work-page .nikolas-client-carousel-group .nikolas-client-logo:nth-child(7)::before {
	-webkit-mask-image: url("images/icon-brand-keal-studio.svg");
	mask-image: url("images/icon-brand-keal-studio.svg");
}

.nikolas-portfolio-site.nikolas-work-page .nikolas-client-carousel img {
	height: 100%;
	max-width: 142px;
	object-fit: contain;
	opacity: 0;
	width: 100%;
}

.nikolas-portfolio-site.nikolas-work-page .nikolas-client-carousel:is(:hover, :focus-within) .nikolas-client-carousel-track {
	animation-play-state: paused;
}

.nikolas-tooltip {
	--tooltip-anchor-x: 50%;
	--tooltip-radius: 10px;
	--tooltip-swivel: 0deg;
	align-items: center;
	background: var(--surface-2);
	border: 0;
	border-radius: var(--tooltip-radius);
	box-shadow: inset 0 0 0 1px var(--line);
	color: var(--text);
	display: inline-flex;
	font-size: 0.95rem;
	font-weight: 600;
	gap: 7px;
	line-height: 1.2;
	opacity: 0;
	padding: 8px 11px;
	pointer-events: none;
	position: fixed;
	rotate: var(--tooltip-swivel);
	transform: translateY(-4px) scale(0.97);
	transform-origin: var(--tooltip-anchor-x) -6px;
	transition: opacity 0.15s ease, transform 0.18s cubic-bezier(0.22, 0.75, 0.22, 1);
	white-space: nowrap;
	will-change: opacity, transform, rotate;
	z-index: 200;
}

/* The animated background layer gives direct body children a base stacking
 * context. Keep the shared tooltip portal fixed to the viewport above it. */
body.nikolas-portfolio-site > .nikolas-tooltip {
	position: fixed !important;
	z-index: 10001 !important;
}

.nikolas-tooltip::before {
	background: inherit;
	clip-path: polygon(50% 0, 100% 100%, 0 100%);
	content: "";
	height: 7px;
	left: var(--tooltip-anchor-x);
	position: absolute;
	top: -6px;
	transform: translateX(-50%);
	width: 10px;
}

.nikolas-tooltip.is-visible {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.nikolas-tooltip.is-above {
	transform: translateY(4px) scale(0.97);
	transform-origin: var(--tooltip-anchor-x) calc(100% + 6px);
}

.nikolas-tooltip.is-above::before {
	bottom: -6px;
	clip-path: polygon(0 0, 100% 0, 50% 100%);
	top: auto;
	transform: translateX(-50%);
}

.nikolas-tooltip.is-visible.is-above {
	transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
	.nikolas-tooltip {
		rotate: 0deg !important;
	}
}

.nikolas-portfolio-site.nikolas-work-page .nikolas-work-cta {
	border-radius: var(--portfolio-control-radius);
	gap: 8px;
	font-weight: 550;
	animation: nikolas-work-cta-float 2.2s ease-in-out infinite;
	will-change: transform;
}

.nikolas-portfolio-site.nikolas-work-page .nikolas-work-cta svg {
	width: 1em;
	height: 1em;
}

.nikolas-portfolio-site.nikolas-work-page .nikolas-work-cta:focus {
	animation-play-state: paused;
}

.nikolas-portfolio-site.nikolas-work-page .nikolas-work-content-anchor {
	height: 1px;
	scroll-margin-top: calc(82px + var(--component-gap));
}

/* Keep linked masonry cards subject to the shared filter state. */
.nikolas-portfolio-site:is(.nikolas-work-page, .nikolas-case-studies-page) [data-masonry] > .project.hidden {
	display: none;
}

.nikolas-portfolio-site:is(.nikolas-work-page, .nikolas-case-studies-page) #portfolio-grid .filters button {
	align-items: center;
	display: inline-flex;
	gap: 7px;
}

.nikolas-tooltip .hugeicon {
	flex: 0 0 auto;
	height: 1em;
	width: 1em;
}

.nikolas-portfolio-site:is(.nikolas-work-page, .nikolas-case-studies-page) #portfolio-grid .filters button :is(i, svg) {
	height: 17px;
	width: 17px;
}

.nikolas-portfolio-site:is(.nikolas-work-page, .nikolas-case-studies-page) .nikolas-project-square > img {
	aspect-ratio: 1 / 1;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.nikolas-portfolio-site .nikolas-literal-hyphen {
	display: inline-block;
	font-family: Arial, sans-serif;
	font-size: 0.9em;
}

.nikolas-portfolio-site:is(.nikolas-work-page, .nikolas-case-studies-page) #portfolio-grid [data-masonry] {
	column-count: initial;
	display: grid;
	gap: var(--gap);
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nikolas-portfolio-site:is(.nikolas-work-page, .nikolas-case-studies-page) #portfolio-grid [data-masonry] > .project {
	margin-bottom: 0;
}

.nikolas-portfolio-site:is(.nikolas-work-page, .nikolas-case-studies-page) #portfolio-grid [data-masonry] > .project > img + div:not(.project-text) {
	background: var(--masonry-panel-base);
}

/* JS positions variable-height cards without changing their row-major source order. */
.nikolas-portfolio-site:is(.nikolas-work-page, .nikolas-case-studies-page) #portfolio-grid [data-masonry].nikolas-case-study-masonry-ready {
	display: block;
	position: relative;
}

/* Collapse filtered grids immediately instead of retaining the previous masonry height. */
.nikolas-portfolio-site:is(.nikolas-work-page, .nikolas-case-studies-page) #portfolio-grid [data-masonry].nikolas-case-study-masonry-ready:not(:has(> .project:not(.hidden))) {
	height: 0 !important;
}

.nikolas-portfolio-site:is(.nikolas-work-page, .nikolas-case-studies-page) #portfolio-grid [data-masonry].nikolas-case-study-masonry-ready > .project {
	left: 0;
	margin: 0;
	position: absolute;
	top: 0;
	translate: 0 0;
	transition: translate 0.2s cubic-bezier(0.22, 0.75, 0.22, 1);
}

.nikolas-portfolio-site:is(.nikolas-work-page, .nikolas-case-studies-page) #portfolio-grid [data-masonry].nikolas-case-study-masonry-ready > .project:is(:hover, :focus-visible) {
	translate: 0 -6px;
}

.nikolas-portfolio-site:is(.nikolas-work-page, .nikolas-case-studies-page) #portfolio-grid [data-masonry].nikolas-case-study-masonry-ready > .project:active {
	translate: 0 -2px;
}

.nikolas-portfolio-site.nikolas-project-page .nikolas-project-inset-video h2 {
	margin: 0;
}

.nikolas-portfolio-site.nikolas-project-page .nikolas-project-feature-grid {
	display: block;
	padding: var(--card-padding);
}

.nikolas-portfolio-site.nikolas-project-page .nikolas-project-feature-grid > .section-heading {
	display: block;
	margin-bottom: 34px;
}

.nikolas-portfolio-site.nikolas-project-page .nikolas-project-feature-grid > .section-heading h2 {
	margin: 0;
}

.nikolas-portfolio-site.nikolas-project-rainbow-six-siege .entry-rich-text {
	display: flex;
	flex-direction: column;
	gap: var(--content-gap);
}

.nikolas-portfolio-site.nikolas-project-rainbow-six-siege .entry-rich-text > * {
	width: 100%;
}

.nikolas-portfolio-site .entry-rich-text.nikolas-single-column-rich-text {
	column-count: 1;
	columns: auto;
	display: flex;
	flex-direction: column;
	gap: var(--content-gap);
}

.nikolas-portfolio-site .entry-rich-text.nikolas-single-column-rich-text > * {
	width: 100%;
}

.nikolas-portfolio-site.nikolas-project-page .nikolas-titled-highlight {
	display: flex;
	flex-direction: column;
	gap: var(--content-gap);
	padding: var(--card-padding);
}

.nikolas-portfolio-site.nikolas-project-page .nikolas-titled-highlight > h2 {
	margin: 0;
}

.nikolas-portfolio-site.nikolas-project-page .nikolas-titled-highlight > .bentobox-highlight {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	padding: 0;
}

.nikolas-portfolio-site.nikolas-project-page .nikolas-project-story-block {
	--nikolas-story-divider-gap: 32px;
	display: flex;
	flex-direction: column;
	gap: var(--content-gap);
	padding: var(--card-padding);
}

.nikolas-portfolio-site.nikolas-project-page .nikolas-project-story-block > * {
	margin-block-start: 0 !important;
}

.nikolas-portfolio-site.nikolas-project-page .nikolas-project-story-block > h2,
.nikolas-portfolio-site.nikolas-project-page .nikolas-project-story-block > p {
	margin: 0;
}

.nikolas-portfolio-site.nikolas-project-page .nikolas-project-story-block > .bentobox-image-carousel {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	margin-bottom: var(--content-gap) !important;
	padding: 0;
}

.nikolas-portfolio-site.nikolas-project-page .nikolas-locker-final-result > .bentobox-image-carousel {
	margin-bottom: 0 !important;
}

.nikolas-portfolio-site.nikolas-project-page .nikolas-native-carousel .bentobox-image-carousel {
	--bentobox-carousel-aspect: var(--nikolas-native-carousel-aspect, auto) !important;
	--bentobox-carousel-height: auto !important;
}

.nikolas-portfolio-site.nikolas-project-page .nikolas-native-carousel .bentobox-carousel-viewport {
	aspect-ratio: var(--nikolas-native-carousel-aspect, auto);
	height: auto !important;
}

.nikolas-portfolio-site.nikolas-project-page .nikolas-native-carousel .bentobox-image-carousel img {
	height: 100%;
	object-fit: contain !important;
	width: 100%;
}

.nikolas-portfolio-site.nikolas-project-page .nikolas-testimonials-block {
	display: flex;
	flex-direction: column;
	gap: var(--content-gap);
	padding: var(--card-padding);
}

.nikolas-portfolio-site.nikolas-project-page .nikolas-testimonials-block > * {
	margin: 0;
}

.nikolas-testimonial-grid {
	display: grid;
	gap: var(--content-gap);
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nikolas-testimonial-grid.is-single {
	grid-template-columns: minmax(0, 1fr);
}

.nikolas-testimonial-grid.is-two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nikolas-testimonial-grid:has(> .review-card:nth-child(2):last-child) {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nikolas-testimonial-grid > .review-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.nikolas-testimonial-grid > .review-card > p:first-child {
	margin-top: 0;
}

.nikolas-testimonial-grid .avatar {
	border: 1px solid var(--line);
	box-sizing: border-box;
	overflow: hidden;
}

.nikolas-testimonial-grid .avatar img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

@media (max-width: 900px) {
	.nikolas-testimonial-grid,
	.nikolas-testimonial-grid.is-two,
	.nikolas-testimonial-grid:has(> .review-card:nth-child(2):last-child) {
		grid-template-columns: 1fr;
	}
}

.nikolas-portfolio-site.nikolas-project-page .nikolas-project-career-story > .nikolas-story-placeholder {
	margin-bottom: var(--content-gap) !important;
}

.nikolas-portfolio-site.nikolas-project-page .nikolas-project-career-story > .wp-block-paragraph + .nikolas-story-placeholder:last-child {
	margin-bottom: 0 !important;
	margin-top: var(--content-gap) !important;
}

.nikolas-portfolio-site.nikolas-project-page .nikolas-project-story-block > .bentobox-image-carousel > .bentobox-component-heading:not(:has(*)) {
	display: none;
}

.nikolas-portfolio-site.nikolas-project-page .nikolas-project-story-block .bentobox-carousel-viewport,
.nikolas-portfolio-site.nikolas-project-page .nikolas-story-placeholder {
	border: 1px solid var(--line);
	border-radius: var(--portfolio-compact-media-radius);
	overflow: hidden;
}

.nikolas-portfolio-site.nikolas-project-page .nikolas-project-story-block .bentobox-carousel-viewport {
	background-clip: padding-box;
	isolation: isolate;
	overflow: auto hidden;
}

.nikolas-portfolio-site.nikolas-project-page .nikolas-project-story-block .bentobox-carousel-slide,
.nikolas-portfolio-site.nikolas-project-page .nikolas-project-story-block .bentobox-carousel-media,
.nikolas-portfolio-site.nikolas-project-page .nikolas-project-story-block .bentobox-carousel-media img {
	border: 0;
	border-radius: 0;
}

.nikolas-portfolio-site.nikolas-project-page .nikolas-project-story-block .bentobox-carousel-dots button {
	border-radius: 50%;
	corner-shape: round;
	height: 10px;
	min-height: 10px;
	min-width: 10px;
	width: 10px;
}

.nikolas-portfolio-site.nikolas-project-page .nikolas-project-story-block .bentobox-carousel-dots button[aria-current="true"] {
	border-radius: 999px;
	width: 28px;
}

.nikolas-story-split {
	align-items: start;
	display: grid;
	gap: var(--gap);
	padding-top: 0;
}

.nikolas-portfolio-site.nikolas-project-page .nikolas-project-story-block > .nikolas-story-split + .nikolas-story-split {
	border-top: 1px solid var(--line);
	margin-block-start: calc(var(--nikolas-story-divider-gap) - var(--content-gap)) !important;
	padding-top: var(--nikolas-story-divider-gap);
}

.nikolas-portfolio-site.nikolas-project-page .nikolas-discord-calendar > .nikolas-story-copy + .nikolas-story-split {
	border-top: 1px solid var(--line);
	margin-block-start: var(--nikolas-story-divider-gap) !important;
	padding-top: var(--nikolas-story-divider-gap);
}

.nikolas-story-split.is-two-one {
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.nikolas-story-split.is-one-two {
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}

.nikolas-story-split.is-equal {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nikolas-story-copy {
	display: flex;
	flex-direction: column;
	gap: var(--content-gap);
}

.nikolas-story-copy p,
.nikolas-story-placeholder {
	margin: 0;
}

.nikolas-story-placeholder img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.nikolas-story-placeholder.is-native-aspect img {
	height: auto;
	object-fit: contain;
}

.nikolas-story-placeholder.is-square {
	aspect-ratio: 1 / 1;
}

.nikolas-square-result-image {
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.nikolas-square-result-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nikolas-story-placeholder.is-wide {
	aspect-ratio: 16 / 9;
}

.nikolas-reflex-stage {
	background: var(--nikolas-reflex-stage, var(--surface-2));
	cursor: crosshair;
	display: grid;
	isolation: isolate;
	place-items: center;
	position: relative;
}

.nikolas-reflex-stage.is-static {
	cursor: default;
}

.nikolas-badge-orbit {
	overflow: hidden;
}

.nikolas-badge-orbit-item {
	--badge-drift-x: 0px;
	--badge-drift-y: -7px;
	animation: nikolas-badge-orbit-float 4.8s ease-in-out infinite alternate;
	display: block;
	position: absolute;
	will-change: transform;
}

.nikolas-badge-orbit-item img {
	filter: drop-shadow(0 14px 18px rgb(0 0 0 / .28));
	height: 100%;
	object-fit: contain;
	width: 100%;
}

.nikolas-badge-orbit-item.is-primary {
	--badge-drift-x: 5px;
	--badge-drift-y: -9px;
	height: 50%;
	left: 22%;
	top: 7%;
	z-index: 4;
}

.nikolas-badge-orbit-item.is-secondary {
	--badge-drift-x: -6px;
	--badge-drift-y: 7px;
	animation-delay: -1.7s;
	height: 40%;
	left: 13%;
	top: 47%;
	z-index: 3;
}

.nikolas-badge-orbit-item.is-tertiary {
	--badge-drift-x: 7px;
	--badge-drift-y: 5px;
	animation-delay: -3.1s;
	height: 36%;
	right: 12%;
	top: 58%;
	z-index: 2;
}

.nikolas-badge-orbit-item.is-quaternary {
	--badge-drift-x: -4px;
	--badge-drift-y: -6px;
	animation-delay: -2.4s;
	height: 31%;
	right: 7%;
	top: 23%;
	z-index: 1;
}

@keyframes nikolas-badge-orbit-float {
	from { transform: translate3d(0, 0, 0) rotate(-1.2deg); }
	to { transform: translate3d(var(--badge-drift-x), var(--badge-drift-y), 0) rotate(1.2deg); }
}

.nikolas-reflex-hint {
	--badge-color: var(--muted);
	--badge-ink: var(--surface);
	background: var(--muted) !important;
	border-color: transparent !important;
	bottom: clamp(10px, 3.5%, 16px);
	color: var(--surface) !important;
	left: clamp(10px, 3.5%, 16px);
	pointer-events: none;
	position: absolute;
	z-index: 4;
}

.nikolas-reflex-hint svg {
	color: currentColor;
}

.nikolas-reflex-card {
	--reflex-tilt-x: 0deg;
	--reflex-tilt-y: 0deg;
	aspect-ratio: 1;
	outline: 0;
	perspective: 620px;
	pointer-events: none;
	touch-action: pan-y;
	width: min(78%, 360px);
}

.nikolas-reflex-card:focus-visible {
	filter: drop-shadow(0 0 0 3px color-mix(in srgb, var(--accent-blue, #b2d9fe) 82%, transparent));
}

.nikolas-reflex-float,
.nikolas-reflex-tilt {
	height: 100%;
	position: relative;
	transform-style: preserve-3d;
	width: 100%;
}

.nikolas-reflex-float {
	animation: nikolas-reflex-float 3.8s ease-in-out infinite alternate;
}

.nikolas-reflex-card.is-active .nikolas-reflex-float,
.nikolas-reflex-card:focus-within .nikolas-reflex-float,
.nikolas-reflex-stage:hover .nikolas-reflex-float {
	animation-play-state: paused;
}

.nikolas-reflex-tilt {
	transform: rotateX(var(--reflex-tilt-x)) rotateY(var(--reflex-tilt-y)) scale(var(--reflex-scale, 1));
	transition: transform 100ms linear;
	will-change: transform;
}

.nikolas-reflex-card:not(.is-active) .nikolas-reflex-tilt {
	transition: transform 520ms cubic-bezier(.2, .8, .2, 1);
}

.nikolas-reflex-card.is-active {
	--reflex-scale: 1.025;
}

.nikolas-reflex-art,
.nikolas-reflex-canvas {
	inset: 0;
	object-fit: contain !important;
	position: absolute;
	width: 100%;
}

.nikolas-reflex-art {
	filter: drop-shadow(0 14px 18px rgb(0 0 0 / .24));
	height: 100% !important;
}

.nikolas-reflex-map {
	height: 1px !important;
	left: -9999px;
	op: 0;
	position: absolute;
	visibility: hidden;
	width: 1px !important;
}

.nikolas-reflex-canvas {
	height: 100%;
	opacity: 0;
	pointer-events: none;
	transition: opacity 240ms ease;
}

.nikolas-reflex-card.is-reflex-ready.is-reflex-active .nikolas-reflex-canvas {
	opacity: 1;
}

@keyframes nikolas-reflex-float {
	from { transform: translateY(5px); }
	to { transform: translateY(-7px); }
}

@media (prefers-reduced-motion: reduce) {
	.nikolas-badge-orbit-item {
		animation: none;
	}

	.nikolas-reflex-float {
		animation: none;
	}

	.nikolas-reflex-tilt {
		transition: none;
	}
}

@media (max-width: 760px) {
	.nikolas-story-split.is-two-one,
	.nikolas-story-split.is-one-two,
	.nikolas-story-split.is-equal {
		grid-template-columns: 1fr;
	}
}

.nikolas-portfolio-site.nikolas-project-off-the-grid .entry-rich-text {
	display: flex;
	flex-direction: column;
	gap: var(--content-gap);
}

.nikolas-portfolio-site.nikolas-project-off-the-grid .entry-rich-text > * {
	width: 100%;
}

.nikolas-portfolio-site.nikolas-project-page .nikolas-project-titled-split {
	display: flex;
	flex-direction: column;
	gap: var(--content-gap);
	padding: var(--card-padding);
}

.nikolas-portfolio-site.nikolas-project-page .nikolas-project-titled-split > h2 {
	margin: 0;
}

.nikolas-portfolio-site.nikolas-project-page .nikolas-project-titled-split > .bentobox-flexible-split {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	padding: 0;
}

.nikolas-portfolio-site.nikolas-project-page .nikolas-project-titled-split > .bentobox-flexible-split > .bentobox-flexible-split-pane {
	background: transparent;
}

.nikolas-portfolio-site.nikolas-project-page .nikolas-feature-demo > * {
	margin: 0;
}

.nikolas-portfolio-site.nikolas-project-page .nikolas-feature-demo-video,
.nikolas-portfolio-site.nikolas-project-page .nikolas-feature-demo-video > .wp-block-embed__wrapper {
	aspect-ratio: 16 / 9;
	width: 100%;
}

.nikolas-portfolio-site.nikolas-project-page .nikolas-feature-demo-video {
	margin-bottom: var(--content-gap) !important;
}

.nikolas-portfolio-site.nikolas-project-page .wp-block-embed-youtube iframe {
	border: 1px solid var(--line);
	border-radius: var(--portfolio-compact-media-radius);
	display: block;
	height: 100%;
	width: 100%;
}

.nikolas-release-banner {
	align-items: center;
	display: flex;
	min-height: clamp(220px, 26vw, 340px);
	overflow: hidden;
	padding: clamp(20px, 2.5vw, 32px) var(--card-padding);
	position: relative;
}

.nikolas-release-banner::after {
	background: linear-gradient(90deg, rgba(13, 17, 19, 0.82), rgba(13, 17, 19, 0.58));
	content: "";
	inset: 0;
	position: absolute;
	z-index: 1;
}

.nikolas-release-banner > img {
	filter: blur(6px) saturate(0.8);
	height: calc(100% + 80px);
	inset: -40px;
	max-width: none;
	object-fit: cover;
	position: absolute;
	transform: translate3d(0, var(--nikolas-release-parallax, 0px), 0) scale(1.03);
	width: calc(100% + 80px);
	will-change: transform;
}

.nikolas-release-banner-content {
	align-items: flex-start;
	display: flex;
	flex-direction: column;
	gap: 14px;
	position: relative;
	width: 100%;
	z-index: 2;
}

.nikolas-release-banner-content h2 {
	color: #fff;
	margin: 0;
	max-width: 900px;
}

.nikolas-release-banner-content .badge {
	flex: 0 0 auto;
}

.nikolas-release-banner-content .nikolas-release-date-badge {
	--badge-ink: #fff;
}

.nikolas-release-banner-content .nikolas-release-date-badge :is(svg, .hugeicons-icon) {
	color: currentColor;
}

.nikolas-project-disclaimer {
	--nikolas-disclaimer-blue: var(--accent-blue, #b2d9fe);
	grid-template-columns: auto 1fr;
	margin: 0;
	border: 1px solid color-mix(in srgb, var(--nikolas-disclaimer-blue) 72%, var(--ink, #292622));
	background: var(--nikolas-disclaimer-blue);
	border-radius: var(--portfolio-panel-radius);
	color: var(--ink, #292622);
	padding: var(--card-padding);
}

.nikolas-project-disclaimer > :is(i, svg) {
	width: 24px;
	height: 24px;
}

.nikolas-project-disclaimer small {
	opacity: 1;
}

[data-theme="dark"] body.nikolas-portfolio-site .nikolas-project-disclaimer {
	border-color: color-mix(in srgb, var(--nikolas-disclaimer-blue) 72%, transparent);
	background: color-mix(in srgb, var(--nikolas-disclaimer-blue) 14%, transparent);
	color: var(--nikolas-disclaimer-blue);
}

.nikolas-post-launch-updates > p {
	margin: 0;
}

.nikolas-highlight-media-placeholder {
	border: 1px solid var(--line);
	border-radius: var(--portfolio-compact-media-radius);
	margin: 8px 0 0;
	overflow: hidden;
	width: 100%;
}

.nikolas-highlight-media-placeholder img {
	display: block;
	height: auto;
	width: 100%;
}

.nikolas-seed-split-card .nikolas-story-split {
	align-items: start;
	display: grid;
	gap: clamp(24px, 4vw, 56px);
}

.nikolas-seed-split-card .nikolas-story-split.is-two-one {
	grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
}

.nikolas-seed-split-card .nikolas-story-split.is-half {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nikolas-seed-split-card .nikolas-story-copy > :first-child {
	margin-top: 0;
}

.nikolas-seed-split-card .nikolas-story-copy > :last-child {
	margin-bottom: 0;
}

/* Keep top-aligned split copy optically level with the bordered media beside it. */
.nikolas-seed-split-card .nikolas-story-copy {
	padding-top: 8px;
}

.nikolas-seed-media-frame,
.nikolas-seed-video-frame {
	border: 1px solid var(--line);
	border-radius: var(--portfolio-compact-media-radius);
	overflow: hidden;
}

.nikolas-seed-media-frame {
	margin: 0;
}

.nikolas-seed-media-frame img {
	display: block;
	height: auto;
	object-fit: contain;
	width: 100%;
}

.nikolas-seed-media-frame.is-square img {
	aspect-ratio: 1 / 1;
}

.nikolas-seed-video-frame {
	aspect-ratio: 16 / 9;
	margin: 0;
}

.nikolas-seed-video-frame iframe {
	border: 0;
	height: 100%;
	width: 100%;
}

.nikolas-seed-video-frame > .wp-block-embed,
.nikolas-seed-video-frame > .wp-block-embed > .wp-block-embed__wrapper {
	height: 100%;
	margin: 0;
}

.nikolas-seed-carousel-square .bentobox-image-carousel {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	margin: 0;
	padding: 0;
}

.nikolas-seed-carousel-square .bentobox-carousel-navigation {
	padding-inline: 2px;
}

.nikolas-video-carousel {
	min-width: 0;
}

.nikolas-video-carousel-stage {
	aspect-ratio: 1 / 1;
	background: #111;
	border: 1px solid var(--line);
	border-radius: var(--portfolio-compact-media-radius);
	display: flex;
	overflow: auto hidden;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.nikolas-video-carousel-stage::-webkit-scrollbar {
	display: none;
}

.nikolas-video-carousel-slide {
	flex: 0 0 100%;
	margin: 0;
	position: relative;
	scroll-snap-align: start;
}

.nikolas-video-carousel-slide video {
	display: block;
	height: 100%;
	object-fit: contain;
	width: 100%;
}

.nikolas-video-play {
	align-items: center;
	background: #fff;
	border: 0;
	border-radius: 20px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
	color: #24231f;
	display: flex;
	height: 64px;
	justify-content: center;
	left: 50%;
	min-height: 64px;
	min-width: 64px;
	padding: 0;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 64px;
	z-index: 2;
}

.nikolas-video-play[hidden] {
	display: none;
}

.nikolas-video-play svg {
	height: 26px;
	stroke-width: 2.2;
	width: 26px;
}

.nikolas-video-carousel-navigation,
.nikolas-video-carousel-dots,
.nikolas-video-carousel-arrows {
	align-items: center;
	display: flex;
}

.nikolas-video-carousel-navigation {
	justify-content: space-between;
	padding: 14px 2px 0;
}

.nikolas-video-carousel-dots,
.nikolas-video-carousel-arrows {
	gap: 8px;
}

.nikolas-seed-full-aspect .bentobox-image-carousel {
	--bentobox-carousel-aspect: 4 / 3 !important;
	--bentobox-carousel-height: auto !important;
}

.nikolas-seed-full-aspect .bentobox-carousel-viewport {
	aspect-ratio: 4 / 3;
	height: auto !important;
}

.nikolas-seed-full-aspect .bentobox-image-carousel img {
	height: 100%;
	object-fit: contain !important;
	width: 100%;
}

.nikolas-cbeams-screen-aspect .bentobox-image-carousel {
	--bentobox-carousel-aspect: 16 / 9 !important;
	--bentobox-carousel-height: auto !important;
}

.nikolas-cbeams-screen-aspect .bentobox-carousel-viewport {
	aspect-ratio: 16 / 9;
	height: auto !important;
}

.nikolas-cbeams-screen-aspect .bentobox-image-carousel img {
	height: 100%;
	object-fit: cover !important;
	width: 100%;
}

.nikolas-focusmode-full-aspect .bentobox-image-carousel {
	--bentobox-carousel-aspect: 105 / 64 !important;
	--bentobox-carousel-height: auto !important;
}

.nikolas-focusmode-full-aspect .bentobox-carousel-viewport {
	aspect-ratio: 105 / 64;
	height: auto !important;
}

.nikolas-focusmode-full-aspect .bentobox-image-carousel img {
	height: 100%;
	object-fit: contain !important;
	width: 100%;
}

@media (max-width: 820px) {
	.nikolas-seed-split-card .nikolas-story-split:is(.is-two-one, .is-half) {
		grid-template-columns: minmax(0, 1fr);
	}

	.nikolas-seed-split-card .nikolas-story-copy {
		padding-top: 0;
	}
}


.nikolas-portfolio-site.nikolas-project-page .nikolas-project-feature-masonry .project > img {
	aspect-ratio: 1 / 1;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.nikolas-portfolio-site.nikolas-project-page .nikolas-project-feature-masonry .project > img + div:not(.project-text) {
	background: var(--masonry-panel-base);
}

.nikolas-portfolio-site.nikolas-project-page .nikolas-project-feature-masonry {
	column-count: initial;
	columns: initial;
	display: grid;
	gap: var(--gap);
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-bottom: 0;
}

.nikolas-portfolio-site.nikolas-project-page .nikolas-project-feature-masonry .project {
	margin-bottom: 0;
}

@media (max-width: 1000px) {
	.nikolas-portfolio-site.nikolas-project-page .nikolas-project-feature-masonry {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	.nikolas-portfolio-site.nikolas-project-page .nikolas-project-feature-masonry {
		grid-template-columns: minmax(0, 1fr);
	}
}

.nikolas-portfolio-site.nikolas-project-page .wp-block-post-content h2,
.nikolas-portfolio-site.nikolas-about-page .nikolas-about-fun-stuff h2 {
	font-family: Poppins, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: clamp(1.55rem, 2.5vw, 2.5rem);
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.05;
}

.nikolas-portfolio-site.nikolas-project-page .nikolas-youtube-embed {
	aspect-ratio: 16 / 9;
	border-radius: calc(var(--radius, 32px) - 10px);
	overflow: hidden;
	width: 100%;
}

.nikolas-portfolio-site.nikolas-project-page .nikolas-youtube-embed iframe {
	border: 0;
	display: block;
	height: 100%;
	width: 100%;
}

@media (max-width: 1200px) {
	.nikolas-portfolio-site:is(.nikolas-work-page, .nikolas-case-studies-page) #portfolio-grid [data-masonry] {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	/* The base Bento component caps the image at 72vh on phones. Project
	 * headers should instead occupy the complete first screen, including the
	 * status-bar safe area when Safari supports viewport-fit=cover. */
	body.nikolas-portfolio-site.nikolas-project-page
		.bentobox-entry-intro-section.has-immersive-entrance > .bentobox-entry-intro {
		min-height: 100vh;
		min-height: 100svh;
	}

	/* Let the browser handle finger momentum and settle on complete slides. */
	body.nikolas-portfolio-site :is(.bentobox-image-carousel .bentobox-carousel-viewport, .nikolas-video-carousel-stage) {
		-webkit-overflow-scrolling: touch;
		overscroll-behavior-inline: contain;
		touch-action: pan-x pan-y;
	}
	body.nikolas-portfolio-site .bentobox-image-carousel .bentobox-carousel-viewport {
		scroll-snap-type: x mandatory;
	}
	body.nikolas-portfolio-site :is(.bentobox-image-carousel .bentobox-carousel-slide, .nikolas-video-carousel-slide) {
		scroll-snap-stop: always;
	}

	body.nikolas-portfolio-site .mobile-menu {
		box-sizing: border-box;
		padding: 22px !important;
	}

	/*
	 * The page-fill intro is measured at desktop width by the entry transition.
	 * Reassert the shared mobile container width after that measurement so the
	 * off-screen hero can never create horizontal overflow below the fold.
	 */
	.nikolas-portfolio-site.nikolas-work-page :is(
		.hero-section,
		#portfolio-grid
	) > .container,
	.nikolas-portfolio-site.nikolas-case-studies-page
		.nikolas-case-studies-section > .container {
		margin-inline: 20px;
		max-width: none;
		min-width: 0;
		width: auto !important;
	}

	.nikolas-portfolio-site:is(.nikolas-work-page, .nikolas-case-studies-page) #portfolio-grid .section-heading {
		gap: 12px;
		margin-bottom: 28px;
	}

	.nikolas-portfolio-site:is(.nikolas-work-page, .nikolas-case-studies-page) #portfolio-grid .section-heading > p {
		font-size: 1.05rem;
		line-height: 1.55;
	}

	.nikolas-portfolio-site.nikolas-work-page .nikolas-client-logo {
		flex-basis: 92px;
		height: 72px;
		width: 92px;
	}

	.nikolas-portfolio-site .site-footer > .container {
		width: min(calc(100% - 40px), var(--container));
	}

	.nikolas-portfolio-site.nikolas-case-studies-page .nikolas-case-studies-section {
		padding-block: 64px 56px;
	}

	.nikolas-portfolio-site.nikolas-project-page .bentobox-entry-intro-media img {
		object-position: var(--nikolas-project-mobile-focal-x, 50%) center;
	}

	.nikolas-portfolio-site.nikolas-project-seed {
		--nikolas-project-mobile-focal-x: 64%;
	}

	.nikolas-portfolio-site.nikolas-project-off-the-grid {
		--nikolas-project-mobile-focal-x: 62%;
	}

	.nikolas-portfolio-site:is(.nikolas-work-page, .nikolas-case-studies-page) #portfolio-grid [data-masonry] {
		grid-template-columns: 1fr;
	}
}

@keyframes nikolas-work-cta-float {
	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-6px);
	}
}

@keyframes nikolas-client-carousel-scroll {
	to {
		transform: translateX(var(--nikolas-client-loop-offset, -50%));
	}
}

@keyframes nikolas-brand-portrait-spring {
	0%,
	100% {
		transform: scale(1) rotate(0);
	}

	18% {
		transform: scale(0.94) rotate(-1.2deg);
	}

	45% {
		transform: scale(1.055) rotate(1deg);
	}

	68% {
		transform: scale(0.985) rotate(-0.35deg);
	}

	84% {
		transform: scale(1.012) rotate(0.15deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.nikolas-portfolio-site.nikolas-work-page .nikolas-work-cta {
		animation: none;
		will-change: auto;
	}

	.nikolas-portfolio-site.nikolas-work-page .nikolas-client-carousel-track {
		animation: none;
	}

	.nikolas-portfolio-site .nikolas-brand-portrait-button {
		transition: filter 0.18s ease;
	}

	.nikolas-portfolio-site .nikolas-brand-portrait-button.is-bouncing .bento-lux-brand-mark {
		animation: none;
	}

	.nikolas-portfolio-site .nikolas-brand-portrait-button:is(:hover, :active) {
		transform: none;
	}

	.nikolas-portfolio-site .nikolas-brand-portrait-button .nikolas-header-brand-icon {
		transition: none;
	}
}

/*
 * Bento. presentation skin
 *
 * Bento.Lux remains the portfolio's component and behavior dependency, but
 * the personal site intentionally presents those components with Bento.'s
 * opaque, warm design language. Keep this layer centralized so custom page
 * composition and interaction code remain independent from the chosen skin.
 */
body.nikolas-portfolio-site {
	--bg: #f2ede5;
	--surface: #fffaf2;
	--surface-2: #ebe3d8;
	--nav-active: #ffd0b2;
	--nav-active-ink: #292622;
	--text: #292622;
	--muted: #6b645c;
	--line: #d7cec2;
	--accent: var(--peach);
	--accent-ink: #4a251b;
	--sage: #b4e4ca;
	--butter: #feefb2;
	--peach: #ffd0b2;
	--lilac: #d2b2fe;
	--blue: #b2d9fe;
	--rose: #feb2b2;
	--violet: #b5b2fe;
	--portfolio-badge-blue: var(--blue);
	--portfolio-badge-purple: var(--violet);
	--portfolio-badge-orange: var(--peach);
	--portfolio-badge-green: var(--sage);
	--portfolio-badge-neutral: #ded7cd;
	--portfolio-mini-badge-font-size: 0.9rem;
	--portfolio-mini-badge-icon-size: 17px;
	--portfolio-mini-badge-gap: 6px;
	--portfolio-mini-badge-line-height: 17px;
	--portfolio-mini-badge-padding: 2px 6px;
	--portfolio-readable-copy-size: 1.15rem;
	--portfolio-readable-copy-line-height: 1.5;
	--nikolas-reflex-stage: #ebe3d8;
	--dark: #302f2c;
	--nikolas-halftone-color: 83 111 98;
	--nikolas-halftone-accent: 124 91 157;
	--nikolas-halftone-opacity: 0.1;
	--font: "SN Pro", system-ui, sans-serif;
	--lux-page-bg: var(--bg);
	--lux-text: var(--text);
	--lux-muted: var(--muted);
	--lux-panel-bg: var(--surface);
	--lux-panel-border: var(--line);
	--lux-panel-highlight: transparent;
	--lux-panel-depth: transparent;
	--lux-panel-inner-line: transparent;
	--lux-panel-shadow: none;
	--lux-control-bg: var(--surface-2);
	--lux-control-border: var(--line);
	--lux-control-active-bg: var(--nav-active);
	--lux-control-active-text: var(--nav-active-ink);
	--lux-badge-bg: var(--surface-2);
	--lux-glow-core: transparent;
	--lux-glow-soft: transparent;
	--lux-glow-wide: transparent;
	--lux-accent: var(--accent);
	--lux-accent-ink: var(--accent-ink);
	background-color: var(--bg);
	background-image: none;
	color: var(--text);
	font-family: var(--font);
	letter-spacing: normal;
}

[data-theme="dark"] body.nikolas-portfolio-site {
	--bg: #242321;
	--surface: #302e2a;
	--surface-2: #3a3732;
	--nav-active: color-mix(in srgb, var(--peach) 26%, var(--surface));
	--nav-active-ink: color-mix(in srgb, var(--peach) 78%, var(--text));
	--text: #f5eee4;
	--muted: #bcb3a7;
	--line: #49453f;
	--accent-ink: #2f1913;
	--dark: #171715;
	--nikolas-halftone-color: 180 228 202;
	--nikolas-halftone-accent: 181 178 254;
	--nikolas-halftone-opacity: 0.045;
	--nikolas-reflex-stage: #211f1c;
}

body.nikolas-portfolio-site :is(*, button, input, select, textarea) {
	font-family: var(--font);
}

body.nikolas-portfolio-site :is(h1, h2, h3),
body.nikolas-portfolio-site :is(button, .button, input, select, textarea) {
	letter-spacing: normal;
}

/* Keep recurring editorial copy comfortably readable across every page type. */
/* Keep narrative copy consistent across every portfolio page and project subpage. */
body.nikolas-portfolio-site main p,
body.nikolas-portfolio-site :is(
	.section-heading > p,
	.nikolas-about-lede,
	.bentobox-profile-copy,
	.bentobox-profile-project p,
	.bentobox-highlight-item p,
	.entry-rich-text p,
	.bentobox-flexible-split p,
	.nikolas-story-copy p,
	.nikolas-privacy-copy
) {
	font-size: var(--portfolio-readable-copy-size);
	line-height: var(--portfolio-readable-copy-line-height);
}

/* Lists are narrative body copy too, so they share its scale, tone and rhythm. */
body.nikolas-portfolio-site :is(
	.entry-rich-text,
	.nikolas-story-copy,
	.nikolas-project-story-block .nikolas-single-column-rich-text
) :is(ul, ol) {
	color: var(--muted);
	font-size: var(--portfolio-readable-copy-size);
	font-weight: inherit;
	line-height: var(--portfolio-readable-copy-line-height);
	margin: 0;
	padding-inline-start: 1.45em;
}

body.nikolas-portfolio-site :is(
	.entry-rich-text,
	.nikolas-story-copy,
	.nikolas-project-story-block .nikolas-single-column-rich-text
) p + :is(ul, ol) {
	margin-block-start: var(--content-gap) !important;
}

body.nikolas-portfolio-site :is(
	.entry-rich-text,
	.nikolas-story-copy,
	.nikolas-project-story-block .nikolas-single-column-rich-text
) :is(ul, ol) li + li {
	margin-block-start: 0.25em;
}

body.nikolas-portfolio-site :is(
	.card,
	.is-style-bento-card,
	.bentobox-component,
	.entry-builder-main .bentobox-flexible-split,
	.entry-builder-main .entry-rich-text,
	.wp-block-group.is-style-bento-card,
	.wp-block-column.is-style-bento-card
) {
	background: var(--surface);
	border-color: var(--line);
	box-shadow: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

body.nikolas-portfolio-site :is(
	.tone-sage,
	.is-style-tone-sage
) {
	background: var(--sage);
}

body.nikolas-portfolio-site :is(
	.tone-butter,
	.is-style-tone-butter
) {
	background: var(--butter);
}

body.nikolas-portfolio-site :is(
	.tone-peach,
	.is-style-tone-peach
) {
	background: var(--peach);
}

body.nikolas-portfolio-site :is(
	.tone-lilac,
	.is-style-tone-lilac
) {
	background: var(--lilac);
}

body.nikolas-portfolio-site :is(
	.tone-blue,
	.is-style-tone-blue
) {
	background: var(--blue);
}

body.nikolas-portfolio-site :is(
	.tone-rose,
	.is-style-tone-rose
) {
	background: var(--rose);
}

body.nikolas-portfolio-site :is(
	.site-header,
	.mobile-menu,
	.customizer,
	.purchase-dropdown-menu,
	.language-switcher-menu,
	.nav-dropdown-menu,
	.modal-content,
	.popup-content
) {
	background: var(--surface);
	border-color: var(--line);
	box-shadow: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

body.nikolas-portfolio-site :is(
	.nav-dropdown-menu,
	.language-switcher-menu,
	.purchase-dropdown-menu
) {
	background: var(--surface) !important;
	background-image: none !important;
	box-shadow: none !important;
	-webkit-backdrop-filter: none !important;
	backdrop-filter: none !important;
}

body.nikolas-portfolio-site.lux-desktop-dropdown-open::before {
	display: none !important;
}

/*
 * Permanent contained header
 *
 * The parent theme's floating mode morphs from a full-width bar into a
 * contained panel after a scroll threshold, then restores the full-width bar
 * on small screens. The portfolio uses the contained state as its only header
 * presentation so its shape, padding, and wrapping never change while moving
 * through a page.
 */
/*
 * The immersive project image starts flush beneath the floating header. Its
 * top edge fades in with the scroll-driven mask instead of drawing a hard
 * rule across the image before the rounded card outline has formed.
 */
body.nikolas-portfolio-site.nikolas-project-page
	.bentobox-entry-intro-section.has-immersive-entrance.is-immersive-ready
	> .bentobox-entry-intro {
	border-top-color: color-mix(
		in srgb,
		var(--line) calc(var(--nikolas-header-fade-opacity, 0) * 100%),
		transparent
	);
	border-left-color: color-mix(
		in srgb,
		var(--line) calc(var(--nikolas-header-fade-opacity, 0) * 100%),
		transparent
	);
	border-right-color: color-mix(
		in srgb,
		var(--line) calc(var(--nikolas-header-fade-opacity, 0) * 100%),
		transparent
	);
}

/*
 * Keep the project-title treatment visibly photographic. The shared entry
 * intro already supplies progressive backdrop-blur layers; a dense final
 * shade previously flattened those layers into a solid-looking panel after
 * the immersive hero contracted. This lighter ramp preserves contrast while
 * allowing the blurred artwork to remain perceptible behind the metadata.
 */
body.nikolas-portfolio-site.nikolas-project-page
	.bentobox-entry-intro.has-blur-extension
	.bentobox-entry-intro-blur-extension {
	height: 40%;
	-webkit-mask-image: linear-gradient(
		to bottom,
		transparent 0%,
		rgba(0, 0, 0, 0.22) 20%,
		#000 48%
	);
	mask-image: linear-gradient(
		to bottom,
		transparent 0%,
		rgba(0, 0, 0, 0.22) 20%,
		#000 48%
	);
}

body.nikolas-portfolio-site.nikolas-project-page
	.bentobox-entry-intro.has-blur-extension
	.bentobox-entry-intro-blur-extension::before {
	background-image: var(--nikolas-entry-intro-blur-image, none);
	background-position: center 30%;
	background-repeat: no-repeat;
	background-size: cover;
	content: "";
	filter: blur(26px) saturate(0.86);
	height: 135%;
	inset: auto -4% -18%;
	-webkit-mask-image: linear-gradient(
		to bottom,
		transparent 0%,
		rgba(0, 0, 0, 0.2) 18%,
		#000 52%
	);
	mask-image: linear-gradient(
		to bottom,
		transparent 0%,
		rgba(0, 0, 0, 0.2) 18%,
		#000 52%
	);
	opacity: 0.94;
	position: absolute;
	transform: scale(1.04);
	will-change: transform;
}

body.nikolas-portfolio-site.nikolas-project-page
	.bentobox-entry-intro.has-blur-extension
	.bentobox-entry-intro-blur-gradient {
	background: linear-gradient(
		to bottom,
		rgba(12, 11, 10, 0.06) 0%,
		rgba(12, 11, 10, 0.14) 34%,
		rgba(12, 11, 10, 0.32) 68%,
		rgba(12, 11, 10, 0.56) 100%
	);
}

body.nikolas-portfolio-site.nikolas-project-page
	.bentobox-entry-intro.has-blur-extension
	.bentobox-entry-intro-overlay {
	background: linear-gradient(
		to bottom,
		rgba(24, 22, 20, 0.02) 20%,
		rgba(24, 22, 20, 0.12) 100%
	);
}

/* Project headers float over the full-width hero instead of reserving a row. */
body.nikolas-portfolio-site.nikolas-project-page
	.wp-block-template-part:has(> .site-header) {
	inset: 0 0 auto;
	position: fixed !important;
	width: 100%;
}

/* Keep fixed project headers below WordPress's toolbar while editing. */
body.admin-bar.nikolas-portfolio-site.nikolas-project-page
	.wp-block-template-part:has(> .site-header) {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar.nikolas-portfolio-site.nikolas-project-page
		.wp-block-template-part:has(> .site-header) {
		top: 46px;
	}
}

/*
 * Keep every page opening unobstructed. Once the page moves, an
 * opaque-to-transparent veil hides content above and immediately behind the
 * sticky or floating header without introducing a permanent divider.
 */
body.nikolas-portfolio-site
	.wp-block-template-part:has(> .site-header)::after {
	background: linear-gradient(
		to bottom,
		var(--bg) 0 96px,
		color-mix(in srgb, var(--bg) 92%, transparent) 108px,
		transparent 138px
	);
	content: "";
	height: 138px;
	inset: 0 0 auto;
	opacity: 0;
	pointer-events: none;
	position: fixed;
	transform: translateZ(0);
	will-change: opacity;
	z-index: 0;
}

body.nikolas-portfolio-site.nikolas-header-occluded
	.wp-block-template-part:has(> .site-header)::after {
	opacity: var(--nikolas-header-fade-opacity, 0);
}

body.nikolas-portfolio-site :is(
	.site-header,
	.site-header.floating-header-enabled.is-floating
) {
	padding-block: 12px;
	background: transparent;
	border-color: transparent;
	box-shadow: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

body.nikolas-portfolio-site :is(
	.site-header .header-inner,
	.site-header.floating-header-enabled.is-floating .header-inner
) {
	min-height: 66px;
	padding: 10px;
	position: relative;
	z-index: 1;
	flex-wrap: nowrap;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 18px;
	box-shadow: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

/* Fallback for browsers without the View Transitions API. */
body.nikolas-portfolio-site.nikolas-theme-color-transition {
	transition-property: background-color, color, border-color, box-shadow, fill, stroke, opacity !important;
	transition-duration: 0.36s !important;
	transition-delay: 0s !important;
	transition-timing-function: ease-in-out;
}

body.nikolas-portfolio-site.nikolas-theme-color-transition *,
body.nikolas-portfolio-site.nikolas-theme-color-transition *::before,
body.nikolas-portfolio-site.nikolas-theme-color-transition *::after {
	transition-property: background-color, color, border-color, box-shadow, fill, stroke, opacity !important;
	transition-duration: 0.36s !important;
	transition-delay: 0s !important;
	transition-timing-function: ease-in-out;
}

body.nikolas-portfolio-site.nikolas-theme-color-transition .nikolas-header-brand-icon {
	transition-duration: 0.36s !important;
}

/*
 * A theme swap is one stationary crossfade. It bypasses the directional
 * page-navigation transition and named header elements, keeping every visible
 * pixel on the same timeline without making the layout re-enter or move.
 */
html.nikolas-theme-swap :is(
	.nikolas-brand-portrait-button,
	.nikolas-brand-home,
	.header-tools,
	.nikolas-project-back
) {
	view-transition-name: none !important;
}

html.nikolas-theme-swap::view-transition-group(root) {
	animation-duration: 0.32s !important;
	animation-timing-function: ease-in-out !important;
}

html.nikolas-theme-swap::view-transition-old(root) {
	animation: none !important;
	mix-blend-mode: normal;
	opacity: 1;
}

html.nikolas-theme-swap::view-transition-new(root) {
	animation: nikolas-theme-swap-in 0.32s ease-in-out both !important;
	mix-blend-mode: normal;
}

/* The snapshot supplies the crossfade. A second live-image fade continuing
 * underneath it causes Safari to flash the outgoing portrait at the end. */
html.nikolas-theme-swap .nikolas-brand-portrait-button .nikolas-header-brand-icon {
	transition: none !important;
}

@keyframes nikolas-theme-swap-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* Present navigation and social actions as individual controls, not rails. */
body.nikolas-portfolio-site .header-tools > .tab-nav {
	height: auto;
	min-height: 0;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

body.nikolas-portfolio-site .header-tools > .header-socials {
	box-sizing: border-box;
	gap: 4px !important;
	height: 42px;
	justify-content: center;
	min-height: 42px;
	margin-left: 10px;
	padding: 3px 5px 3px 3px !important;
	width: max-content;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 14px;
	box-shadow: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

body.nikolas-portfolio-site .header-tools > .header-socials .social-btn {
	box-sizing: border-box;
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	min-width: 34px;
	min-height: 34px;
}

/*
 * Avoid Bento's intermediate desktop state where the page tabs remain visible
 * after the social rail has been hidden. Below this point the complete mobile
 * menu takes over, including its own social links.
 */
@media (max-width: 1200px) {
	body.nikolas-portfolio-site .header-tools > :is(.tab-nav, .header-socials) {
		display: none !important;
	}

	body.nikolas-portfolio-site .header-tools > .mobile-menu-toggle {
		display: inline-grid !important;
	}

	body.nikolas-portfolio-site :is(.mobile-menu, .mobile-menu-backdrop) {
		display: block !important;
	}
}

@media (max-width: 700px) {
	body.nikolas-portfolio-site :is(
		.site-header,
		.site-header.floating-header-enabled.is-floating
	) {
		box-sizing: border-box;
		padding: calc(20px + env(safe-area-inset-top, 0px)) 20px 12px !important;
	}

	body.nikolas-portfolio-site :is(
		.site-header .header-inner,
		.site-header.floating-header-enabled.is-floating .header-inner
	) {
		max-width: none;
		width: 100%;
	}

	body.nikolas-portfolio-site .nikolas-header-brand {
		flex: 1 1 auto;
		min-width: 0;
		overflow: visible;
	}

	body.nikolas-portfolio-site .nikolas-brand-home {
		flex: 1 1 auto;
		min-width: 0;
		overflow: hidden;
		position: relative;
		white-space: nowrap;
	}

	body.nikolas-portfolio-site .nikolas-brand-home.is-truncated::after {
		background: linear-gradient(to right, transparent, var(--surface) 88%);
		content: "";
		inset: 0 0 0 auto;
		pointer-events: none;
		position: absolute;
		width: 32px;
	}

	body.nikolas-portfolio-site .site-header .brand-title,
	body.nikolas-portfolio-site .site-header .brand-subtitle {
		display: block;
		overflow: hidden;
		text-overflow: clip;
		white-space: nowrap;
	}

	body.nikolas-portfolio-site .header-tools {
		flex: 0 0 auto;
		min-width: 0;
	}

	body.nikolas-portfolio-site.nikolas-project-page .entry-builder-main .bentobox-entry-intro-content {
		padding: 20px;
	}

	body.nikolas-portfolio-site.nikolas-project-page .bentobox-entry-intro.has-blur-extension .bentobox-entry-intro-blur-extension::before {
		filter: blur(18px) saturate(0.86);
		transform: translateZ(0) scale(1.025);
	}
}

body.nikolas-portfolio-site .hugeicon {
	stroke-width: 2.5 !important;
}

body.nikolas-portfolio-site.lux-desktop-dropdown-open :is(
	.site-header,
	.site-header.floating-header-enabled.is-floating
) {
	padding-block: 12px !important;
	background: transparent !important;
	border-color: transparent !important;
	box-shadow: none !important;
	-webkit-backdrop-filter: none !important;
	backdrop-filter: none !important;
}

body.nikolas-portfolio-site.lux-desktop-dropdown-open :is(
	.site-header .header-inner,
	.site-header.floating-header-enabled.is-floating .header-inner
) {
	min-height: 66px;
	padding: 10px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 18px;
	box-shadow: none;
}

/*
 * Modern browsers render these as continuous superellipse corners. Existing
 * radii remain the fallback, so unsupported browsers keep the same geometry.
 */
@supports (corner-shape: squircle) {
	body.nikolas-portfolio-site *,
	body.nikolas-portfolio-site *::before,
	body.nikolas-portfolio-site *::after {
		corner-shape: squircle;
	}
}

/* One panel radius keeps authored blocks and custom portfolio surfaces aligned. */
body.nikolas-portfolio-site :is(
	.card,
	.project,
	.is-style-bento-card,
	.bentobox-component,
	.bentobox-profile-accordion,
	.bentobox-entry-intro,
	.entry-builder-main .entry-rich-text,
	.entry-builder-main .bentobox-flexible-split,
	.nikolas-client-carousel,
	.nikolas-privacy-dialog,
	.mobile-menu
) {
	border-radius: var(--portfolio-panel-radius);
}

body.nikolas-portfolio-site :is(
	.button,
	.btn,
	.icon-btn,
	.social-btn,
	.entry-label,
	.badge,
	.mini-badge,
	.filters,
	.mini-tabs,
	[role="tablist"],
	.nav-dropdown-menu
) {
	border-radius: var(--portfolio-control-radius);
}

body.nikolas-portfolio-site :is(
	.mobile-page-links details,
	.mobile-page-links > a,
	.mobile-menu nav a
) {
	border-radius: var(--portfolio-control-radius);
}

/* A shared pill glides beneath local tabs instead of repainting each button. */
body.nikolas-portfolio-site :is(.filters, .mini-tabs, [role="tablist"]):not(.vertical-tabs) {
	isolation: isolate;
	position: relative;
}

/* Keep the About display tabs compact and floating over the card. */
body.nikolas-portfolio-site.nikolas-about-page
	.nikolas-about-profile-intro
	.nikolas-about-mode-nav {
	left: auto;
	max-width: calc(100% - (2 * var(--card-padding)));
	position: absolute;
	right: var(--card-padding);
	top: var(--card-padding);
	width: max-content;
}

body.nikolas-portfolio-site.nikolas-about-page
	.nikolas-about-profile-intro
	.nikolas-about-mode-nav
	> button {
	flex: 0 0 44px;
}

body.nikolas-portfolio-site .nikolas-tab-indicator {
	background: var(--nav-active);
	border-radius: var(--portfolio-control-radius);
	height: var(--nikolas-tab-height, 0);
	left: 0;
	pointer-events: none;
	position: absolute;
	top: 0;
	transform: translate3d(
		var(--nikolas-tab-x, 0),
		var(--nikolas-tab-y, 0),
		0
	);
	transition:
		transform 250ms cubic-bezier(0.22, 1, 0.36, 1),
		width 250ms cubic-bezier(0.22, 1, 0.36, 1),
		height 250ms cubic-bezier(0.22, 1, 0.36, 1),
		background-color 180ms ease;
	width: var(--nikolas-tab-width, 0);
	will-change: transform, width;
	z-index: 0;
}

[data-theme="dark"] body.nikolas-portfolio-site .nikolas-tab-indicator {
	display: none;
}

body.nikolas-portfolio-site .nikolas-tabs-measuring > .nikolas-tab-indicator {
	transition: none;
}

body.nikolas-portfolio-site :is(.filters, .mini-tabs, [role="tablist"]).has-nikolas-tab-indicator
	> :is(button, [role="tab"], a) {
	background: transparent !important;
	position: relative;
	z-index: 1;
}

body.nikolas-portfolio-site :is(.filters, .mini-tabs, [role="tablist"]).has-nikolas-tab-indicator
	> :is(button, [role="tab"], a).active,
body.nikolas-portfolio-site :is(.filters, .mini-tabs, [role="tablist"]).has-nikolas-tab-indicator
	> [role="tab"][aria-selected="true"] {
	background: transparent !important;
	color: var(--nav-active-ink) !important;
}

[data-theme="dark"] body.nikolas-portfolio-site :is(.filters, .mini-tabs, [role="tablist"]).has-nikolas-tab-indicator
	> :is(button, [role="tab"], a).active,
[data-theme="dark"] body.nikolas-portfolio-site :is(.filters, .mini-tabs, [role="tablist"]).has-nikolas-tab-indicator
	> [role="tab"][aria-selected="true"] {
	background: var(--nav-active) !important;
}

/* Theme-aware moving halftone fields sit behind every portfolio page. */
body.nikolas-portfolio-site > .nikolas-halftone-background {
	--nikolas-pointer-x: 50vw;
	--nikolas-pointer-y: 50vh;
	inset: 0;
	-webkit-mask-image: linear-gradient(
		to bottom,
		transparent 0,
		transparent 40px,
		#000 155px
	);
	mask-image: linear-gradient(
		to bottom,
		transparent 0,
		transparent 40px,
		#000 155px
	);
	overflow: hidden;
	pointer-events: none;
	position: fixed;
	z-index: 0;
}

.nikolas-halftone-interaction {
	-webkit-mask-image: radial-gradient(
		circle 190px at var(--nikolas-pointer-x) var(--nikolas-pointer-y),
		#000 0,
		#000 28%,
		rgb(0 0 0 / 72%) 56%,
		transparent 100%
	);
	mask-image: radial-gradient(
		circle 190px at var(--nikolas-pointer-x) var(--nikolas-pointer-y),
		#000 0,
		#000 28%,
		rgb(0 0 0 / 72%) 56%,
		transparent 100%
	);
	inset: 0;
	opacity: 0;
	overflow: hidden;
	position: absolute;
	transition: opacity 220ms ease;
}

.nikolas-halftone-background.is-pointer-active .nikolas-halftone-interaction {
	opacity: 1;
}

body.nikolas-portfolio-site > :not(.nikolas-halftone-background) {
	position: relative;
	z-index: 1;
}

.nikolas-halftone-field {
	--nikolas-halftone-dots: radial-gradient(circle, #000 0 1.55px, transparent 1.95px);
	background:
		radial-gradient(circle at 48% 48%, rgb(var(--nikolas-halftone-color) / 94%) 0 17%, transparent 61%),
		radial-gradient(circle at 68% 35%, rgb(var(--nikolas-halftone-accent) / 72%) 0 10%, transparent 48%);
	inset: -24vmax;
	mask-image: var(--nikolas-halftone-dots);
	mask-position: 0 0;
	mask-size: 21px 21px;
	opacity: var(--nikolas-halftone-opacity);
	position: absolute;
	transition: opacity 360ms ease-in-out, background 360ms ease-in-out;
	-webkit-mask-image: var(--nikolas-halftone-dots);
	-webkit-mask-position: 0 0;
	-webkit-mask-size: 21px 21px;
	animation: nikolas-halftone-scroll 80s linear infinite;
	will-change: mask-position;
}

.nikolas-halftone-field.is-1 {
	transform: translate3d(-16%, -12%, 0) rotate(-7deg) scale(0.92);
}

.nikolas-halftone-field.is-2 {
	opacity: calc(var(--nikolas-halftone-opacity) * 0.72);
	transform: translate3d(31%, 18%, 0) rotate(11deg) scale(0.78);
}

.nikolas-halftone-field.is-3 {
	opacity: calc(var(--nikolas-halftone-opacity) * 0.52);
	transform: translate3d(-4%, 46%, 0) rotate(-15deg) scale(0.68);
}

.nikolas-halftone-interaction .nikolas-halftone-field {
	--nikolas-halftone-dots: radial-gradient(circle, #000 0 2.2px, transparent 2.7px);
}

.nikolas-halftone-interaction .nikolas-halftone-field.is-1 {
	opacity: calc(var(--nikolas-halftone-opacity) * 0.82);
}

.nikolas-halftone-interaction .nikolas-halftone-field.is-2 {
	opacity: calc(var(--nikolas-halftone-opacity) * 0.59);
}

.nikolas-halftone-interaction .nikolas-halftone-field.is-3 {
	opacity: calc(var(--nikolas-halftone-opacity) * 0.43);
}

@keyframes nikolas-halftone-scroll {
	to {
		mask-position: 378px 0;
		-webkit-mask-position: 378px 0;
	}
}

body.nikolas-portfolio-site .site-header :is(
	.tab-nav a,
	.nav-dropdown-toggle,
	.mobile-page-links summary,
	.mobile-page-links a,
	.mobile-menu nav a
) {
	font-size: 1rem;
	font-weight: 650;
}

body.nikolas-portfolio-site .site-header :is(
	.tab-nav a,
	.nav-dropdown-toggle,
	.mobile-page-links summary,
	.mobile-page-links a,
	.mobile-menu nav a,
	.header-socials .social-btn,
	.mobile-socials .social-btn
) :is(svg, .optional-nav-icon) {
	width: 18px;
	height: 18px;
	stroke-width: 2.5 !important;
}

body.nikolas-portfolio-site .site-header :is(
	.nav-dropdown-current-icon,
	.nav-dropdown-current-icon svg
) {
	width: 18px;
	height: 18px;
}

body.nikolas-portfolio-site .site-header :is(
	.header-socials .social-btn,
	.mobile-socials .social-btn
) {
	color: var(--text);
}

[data-theme="dark"] body.nikolas-portfolio-site .site-header :is(
	.brand-title,
	.brand-subtitle,
	.tab-nav a:not(.active),
	.nav-dropdown:not(:has(.nav-dropdown-menu a.active)) .nav-dropdown-toggle,
	.header-socials .social-btn,
	.mobile-socials .social-btn,
	.mobile-menu-toggle
) {
	color: var(--text) !important;
}

body.nikolas-portfolio-site :is(
	.tab-nav,
	.header-socials,
	.mini-tabs,
	.filters,
	.tab-list,
	.bentobox-tabs-list,
	.bentobox-content-tabs-list,
	.bentobox-product-dots
) {
	background: var(--surface-2);
	border-color: var(--line);
	box-shadow: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

body.nikolas-portfolio-site :is(
	.tab-nav a.active,
	.mini-tabs button.active,
	.filters button.active,
	.vertical-tabs button.active,
	[role="tab"][aria-selected="true"]
) {
	background: var(--nav-active) !important;
	color: var(--nav-active-ink) !important;
	box-shadow: none !important;
}

body.nikolas-portfolio-site .nav-dropdown:has(.nav-dropdown-menu a.active) .nav-dropdown-toggle,
body.nikolas-portfolio-site .mobile-page-links :is(a.active, details.is-current-section:not(.is-expanded) > summary) {
	background: var(--nav-active) !important;
	color: var(--nav-active-ink) !important;
}

[data-theme="dark"] body.nikolas-portfolio-site :is(
	.tab-nav a.active,
	.mini-tabs button.active,
	.filters button.active,
	.vertical-tabs button.active,
	[role="tab"][aria-selected="true"],
	.nav-dropdown:has(.nav-dropdown-menu a.active) .nav-dropdown-toggle,
	.mobile-page-links a.active,
	.mobile-page-links details.is-current-section:not(.is-expanded) > summary
) {
	border: 1px solid color-mix(in srgb, var(--accent) 48%, var(--line)) !important;
}

body.nikolas-portfolio-site :is(
	.button.secondary,
	.icon-btn,
	.wp-element-button,
	.wp-block-button__link,
	select,
	input,
	textarea
) {
	background: var(--surface);
	border-color: var(--line);
	box-shadow: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

body.nikolas-portfolio-site .button.primary {
	background: var(--accent) !important;
	border-color: var(--accent) !important;
	box-shadow: none !important;
	color: var(--accent-ink) !important;
}

[data-theme="dark"] body.nikolas-portfolio-site .button.primary {
	background: color-mix(in srgb, var(--accent) 26%, var(--surface)) !important;
	border-color: color-mix(in srgb, var(--accent) 48%, var(--line)) !important;
	box-shadow: none !important;
	color: color-mix(in srgb, var(--accent) 78%, var(--text)) !important;
}

body.nikolas-portfolio-site :is(.badge, .pill, .mini-label-pill, .bentobox-badge) {
	background: var(--badge-color, var(--accent));
	border-color: color-mix(in srgb, var(--badge-color, var(--accent)) 70%, var(--line));
	box-shadow: none;
	color: var(--badge-ink, #292622);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

/* One accessible compact-badge scale across grids, entries, accordions and footer. */
body.nikolas-portfolio-site :is(.mini-badge, .mini-label-pill) {
	font-size: var(--portfolio-mini-badge-font-size) !important;
	font-weight: 550 !important;
	gap: var(--portfolio-mini-badge-gap) !important;
	line-height: var(--portfolio-mini-badge-line-height) !important;
	min-height: 0 !important;
	padding: var(--portfolio-mini-badge-padding) !important;
}

/*
 * Keep metadata tags compact and softly squared. This deliberately comes
 * after the shared control treatment so WordPress/theme pill radii cannot
 * turn project tags back into capsules.
 */
body.nikolas-portfolio-site :is(
	.entry-label,
	.badge,
	.pill,
	.mini-badge,
	.mini-label-pill,
	.bentobox-badge,
	.nikolas-footer-coming-soon
) {
	border-radius: 6px !important;
	corner-shape: squircle;
}

body.nikolas-portfolio-site :is(.mini-badge, .mini-label-pill) :is(i, svg) {
	flex: 0 0 var(--portfolio-mini-badge-icon-size) !important;
	height: var(--portfolio-mini-badge-icon-size) !important;
	width: var(--portfolio-mini-badge-icon-size) !important;
}

/*
 * Semantic badge colours in stored page content predate the Bento. skin.
 * Translate those source values here so content meaning remains stable while
 * the presentation follows Bento.'s softer, opaque pastel palette.
 */
body.nikolas-portfolio-site [style*="--badge-color:#4f8fe8"] {
	--badge-color: var(--portfolio-badge-blue) !important;
}

body.nikolas-portfolio-site [style*="--badge-color:#8b6fc7"] {
	--badge-color: var(--portfolio-badge-purple) !important;
}

body.nikolas-portfolio-site [style*="--badge-color:#c17a3f"] {
	--badge-color: var(--portfolio-badge-orange) !important;
}

body.nikolas-portfolio-site [style*="--badge-color:#3f8f68"] {
	--badge-color: var(--portfolio-badge-green) !important;
}

body.nikolas-portfolio-site [style*="--badge-color:#858b95"] {
	--badge-color: var(--portfolio-badge-neutral) !important;
}

/*
 * Bento.Lux originally kept intro-badge ink white because its badges were
 * translucent overlays. The portfolio skin uses opaque Bento. pastels here,
 * so the regular dark badge ink provides the intended contrast in both modes.
 */
:root:not([data-theme="dark"]) body.nikolas-portfolio-site .bentobox-entry-intro .bentobox-entry-intro-badges :is(.badge, .bentobox-badge) {
	color: var(--badge-ink, #292622) !important;
}

body.nikolas-portfolio-site .masonry .project .entry-label,
body.nikolas-portfolio-site .entry-label.mini-badge {
	background: var(--badge-color, var(--masonry-label-tone, var(--accent))) !important;
	border-color: color-mix(in srgb, var(--badge-color, var(--masonry-label-tone, var(--accent))) 70%, var(--line)) !important;
	box-shadow: none !important;
	color: var(--badge-ink, #292622) !important;
	-webkit-backdrop-filter: none !important;
	backdrop-filter: none !important;
}

body.nikolas-portfolio-site .masonry .project .nikolas-entry-labels {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 9px;
}

body.nikolas-portfolio-site .masonry .project .nikolas-entry-labels > .entry-label {
	align-items: center;
	display: inline-flex;
	font-size: 0.9rem !important;
	gap: 6px;
	line-height: 17px !important;
	margin-top: 0 !important;
	min-height: 0 !important;
	padding: 2px 6px !important;
}

body.nikolas-portfolio-site .masonry .project :is(.project-text, div:not(.project-text)) > .entry-label {
	margin-top: 9px;
}

/* Dark-mode tags use the same muted, opaque accent treatment as active tabs. */
[data-theme="dark"] body.nikolas-portfolio-site :is(
	.badge,
	.pill,
	.mini-label-pill,
	.bentobox-badge,
	.entry-label
),
[data-theme="dark"] body.nikolas-portfolio-site .masonry .project .entry-label,
[data-theme="dark"] body.nikolas-portfolio-site .entry-label.mini-badge {
	background: color-mix(in srgb, var(--badge-color, var(--masonry-label-tone, var(--accent))) 26%, var(--surface)) !important;
	border-color: transparent !important;
	color: color-mix(in srgb, var(--badge-color, var(--masonry-label-tone, var(--accent))) 78%, var(--text)) !important;
}

[data-theme="dark"] body.nikolas-portfolio-site :is(
	.badge,
	.pill,
	.mini-label-pill,
	.bentobox-badge,
	.entry-label
) :is(i, svg),
[data-theme="dark"] body.nikolas-portfolio-site .masonry .project .entry-label :is(i, svg),
[data-theme="dark"] body.nikolas-portfolio-site .entry-label.mini-badge :is(i, svg) {
	color: currentColor !important;
	stroke: currentColor !important;
}

/* Match project-intro metadata to the shared dark badge treatment. */
[data-theme="dark"] body.nikolas-portfolio-site .bentobox-entry-intro .bentobox-entry-intro-badges :is(.badge, .bentobox-badge) {
	background: color-mix(in srgb, var(--badge-color, var(--accent)) 26%, var(--surface)) !important;
	border-color: transparent !important;
	color: color-mix(in srgb, var(--badge-color, var(--accent)) 78%, var(--text)) !important;
}

body.nikolas-portfolio-site .masonry .project {
	background: var(--surface);
	border-color: var(--line);
	box-shadow: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

body.nikolas-portfolio-site .masonry .project > :is(.project-text, div:not(.project-text)) {
	--masonry-panel-base: var(--surface);
	background: var(--surface);
}

body.nikolas-portfolio-site .masonry .project > img + :is(.project-text, div:not(.project-text)) {
	padding-top: 16px;
}

body.nikolas-portfolio-site :is(
	.mini-browser,
	.form-preview,
	.component-preview,
	.bentobox-product,
	.pricing-tier,
	.testimonial-item,
	.bentobox-profile-item
) {
	background: var(--surface-2);
	border-color: var(--line);
	box-shadow: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

body.nikolas-portfolio-site .back-to-top {
	align-items: center;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--portfolio-control-radius);
	box-shadow: none !important;
	color: var(--text);
	bottom: 24px;
	display: inline-flex;
	font: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	gap: 0;
	height: 50px;
	justify-content: center;
	line-height: 1;
	opacity: 0;
	overflow: hidden;
	padding-inline: 0;
	pointer-events: none;
	position: fixed;
	right: 24px;
	transform: translateY(10px);
	transition: opacity 180ms ease, transform 180ms ease, width 240ms cubic-bezier(0.22, 0.8, 0.3, 1), padding 240ms cubic-bezier(0.22, 0.8, 0.3, 1), filter 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
	white-space: nowrap;
	width: 50px;
	z-index: 90;
	-webkit-backdrop-filter: none !important;
	backdrop-filter: none !important;
}

body.nikolas-portfolio-site .back-to-top > :is(i, svg) {
	display: inline-grid;
	flex: 0 0 20px;
	place-items: center;
}

body.nikolas-portfolio-site .back-to-top.is-visible {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

body.nikolas-portfolio-site .back-to-top.is-visible:hover,
body.nikolas-portfolio-site .back-to-top.is-visible:focus-visible {
	gap: 7px;
	padding-inline: 14px;
	transform: translateY(-2px);
	width: 132px;
}

body.nikolas-portfolio-site .back-to-top-label {
	display: block;
	max-width: 0;
	opacity: 0;
	overflow: hidden;
	transition: max-width 240ms cubic-bezier(0.22, 0.8, 0.3, 1), opacity 140ms ease;
}

body.nikolas-portfolio-site .back-to-top:is(:hover, :focus-visible) .back-to-top-label {
	max-width: 82px;
	opacity: 1;
}

body.nikolas-portfolio-site .back-to-top svg {
	display: block;
	height: 20px;
	stroke: currentColor;
	width: 20px;
}

/* Firefox pays a high repaint cost for the full-viewport animated mask. */
@supports (-moz-appearance: none) {
	.nikolas-halftone-field {
		animation: none;
		will-change: auto;
	}
}

.nikolas-portfolio-site.nikolas-project-page .wp-block-post-content h2,
.nikolas-portfolio-site.nikolas-about-page .nikolas-about-fun-stuff h2 {
	font-family: var(--font);
	letter-spacing: normal;
}

.nikolas-tooltip.is-image-tooltip {
	--tooltip-image-padding: 7px;
	background: var(--surface-2);
	padding: var(--tooltip-image-padding);
}

.nikolas-tooltip-image {
	border-radius: max(0px, calc(var(--tooltip-radius) - var(--tooltip-image-padding)));
	display: block;
	height: 96px;
	object-fit: cover;
	width: 96px;
}

/* Portfolio navigation and compact legal footer. */
body.nikolas-portfolio-site .mobile-menu-head {
	align-items: center;
}

body.nikolas-portfolio-site .mobile-menu-head > .mini-label {
	line-height: 1.2;
	margin: 0;
}

body.nikolas-portfolio-site .nikolas-site-footer {
	border-top: 1px solid var(--line);
	padding: 24px 0;
}

body.nikolas-portfolio-site .nikolas-footer-shell {
	align-items: flex-start;
	display: flex;
	gap: 24px;
	justify-content: space-between;
}

body.nikolas-portfolio-site .nikolas-footer-group {
	align-items: center;
	color: var(--muted);
	display: flex;
	font-size: 0.95rem;
	gap: 12px;
}

body.nikolas-portfolio-site .nikolas-footer-legal-group {
	align-items: flex-start;
	flex-direction: column;
	gap: 8px;
}

body.nikolas-portfolio-site .nikolas-footer-legal-group > span:first-child {
	white-space: nowrap;
}

body.nikolas-portfolio-site .nikolas-footer-credit-group {
	flex-wrap: wrap;
	justify-content: flex-end;
}

body.nikolas-portfolio-site .nikolas-footer-built-with {
	align-items: center;
	display: inline-flex;
	flex: 0 0 auto;
	gap: 6px;
	white-space: nowrap;
}

body.nikolas-portfolio-site .nikolas-footer-built-with strong {
	color: var(--text);
	font-weight: 650;
}

body.nikolas-portfolio-site .nikolas-footer-bento-icon {
	color: var(--text);
	display: inline-grid;
	flex: 0 0 18px;
	height: 18px;
	place-items: center;
	width: 18px;
}

body.nikolas-portfolio-site .nikolas-footer-bento-icon svg {
	display: block;
	fill: currentColor;
	height: 100%;
	width: 100%;
}

body.nikolas-portfolio-site .nikolas-footer-privacy-button {
	align-items: center;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--portfolio-compact-media-radius);
	color: var(--text);
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 1rem;
	font-weight: 600;
	gap: 7px;
	line-height: 1.2;
	padding: 7px 10px;
	transition:
		transform 0.2s cubic-bezier(0.22, 0.75, 0.22, 1),
		background-color 0.18s ease,
		border-color 0.18s ease,
		color 0.18s ease;
	will-change: transform;
}

body.nikolas-portfolio-site .nikolas-footer-privacy-button:is(:hover, :focus-visible) {
	transform: translateY(-2px);
}

body.nikolas-portfolio-site .nikolas-footer-privacy-button svg {
	color: currentColor;
	fill: none;
	flex: 0 0 16px;
	height: 16px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: var(--icon-stroke, 2.5);
	width: 16px;
}

body.nikolas-portfolio-site .nikolas-footer-coming-soon {
	--badge-ink: #292622;
	align-items: center;
	color: var(--badge-ink) !important;
	margin: 0;
}

body.nikolas-portfolio-site .nikolas-footer-coming-soon svg {
	color: var(--badge-ink) !important;
	fill: none;
	flex: 0 0 17px;
	height: 17px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: var(--icon-stroke, 2.5);
	width: 17px;
}

[data-theme="dark"] body.nikolas-portfolio-site .nikolas-footer-coming-soon {
	--badge-ink: color-mix(in srgb, var(--portfolio-badge-neutral) 78%, var(--text)) !important;
}

body.nikolas-portfolio-site .nikolas-privacy-overlay {
	align-items: center;
	-webkit-backdrop-filter: blur(16px) saturate(0.76);
	backdrop-filter: blur(16px) saturate(0.76);
	background: rgb(12 11 10 / 52%);
	display: flex;
	inset: 0;
	justify-content: center;
	opacity: 0;
	overscroll-behavior: contain;
	padding: 16px;
	pointer-events: none;
	position: fixed;
	touch-action: none;
	transition:
		opacity 0.24s ease,
		visibility 0s linear 0.36s;
	visibility: hidden;
	z-index: 10000;
}

body.nikolas-portfolio-site .nikolas-privacy-overlay.is-open {
	opacity: 1;
	pointer-events: auto;
	transition-delay: 0s;
	visibility: visible;
}

body.nikolas-portfolio-site .nikolas-privacy-dialog {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--portfolio-panel-radius);
	box-shadow: 0 24px 80px rgb(0 0 0 / 18%);
	color: var(--text);
	max-height: calc(100dvh - 32px);
	max-width: 720px;
	opacity: 0;
	overflow: auto;
	overscroll-behavior: contain;
	padding: var(--card-padding);
	position: relative;
	touch-action: auto;
	transform: translateY(24px) scale(0.975);
	transition:
		opacity 0.22s ease,
		transform 0.38s cubic-bezier(0.2, 0.78, 0.2, 1),
		background-color 0.2s ease,
		border-color 0.2s ease,
		color 0.2s ease;
	width: 100%;
}

body.nikolas-portfolio-site .nikolas-privacy-overlay.is-open .nikolas-privacy-dialog {
	opacity: 1;
	transform: translateY(0) scale(1);
	transition-delay: 0.04s, 0.04s, 0s, 0s, 0s;
}

body.nikolas-portfolio-site .nikolas-privacy-close {
	align-items: center;
	box-sizing: border-box;
	column-gap: 0;
	display: inline-flex;
	height: 46px;
	justify-content: flex-end;
	max-width: 46px;
	min-height: 46px;
	min-width: 46px;
	overflow: hidden;
	padding: 0 13px;
	position: absolute;
	right: 16px;
	top: 16px;
	width: auto;
	transition:
		max-width 0.26s cubic-bezier(0.22, 0.75, 0.22, 1),
		transform 0.18s ease,
		background-color 0.18s ease,
		border-color 0.18s ease,
		color 0.18s ease;
}

body.nikolas-portfolio-site .nikolas-privacy-close > span {
	font-size: 0.95rem;
	font-weight: 550;
	margin-right: 0;
	max-width: 0;
	opacity: 0;
	overflow: hidden;
	white-space: nowrap;
	transition: margin-right 0.24s ease, max-width 0.24s ease, opacity 0.18s ease;
}

body.nikolas-portfolio-site .nikolas-privacy-close > :is(i, svg) {
	flex: 0 0 18px;
	height: 18px;
	width: 18px;
}

body.nikolas-portfolio-site .nikolas-privacy-close:is(:hover, :focus-visible) {
	max-width: 106px;
	transform: translateY(-2px);
}

body.nikolas-portfolio-site .nikolas-privacy-close:is(:hover, :focus-visible) > span {
	margin-right: 8px;
	max-width: 48px;
	opacity: 1;
}

body.nikolas-portfolio-site .nikolas-privacy-dialog .mini-label {
	display: block;
	padding-right: 54px;
}

body.nikolas-portfolio-site .nikolas-privacy-dialog h2 {
	font-family: var(--font);
	font-size: clamp(2rem, 5vw, 3.2rem);
	letter-spacing: normal;
	margin: 8px 54px 18px 0;
}

body.nikolas-portfolio-site .nikolas-privacy-copy {
	color: var(--muted);
	display: grid;
	gap: 14px;
}

body.nikolas-portfolio-site .nikolas-privacy-copy p {
	margin: 0;
}

body.nikolas-portfolio-site .nikolas-privacy-copy a {
	color: var(--text);
	font-weight: 600;
}

html:has(body.nikolas-portfolio-site) {
	scrollbar-gutter: stable;
}

html.nikolas-privacy-open,
body.nikolas-privacy-open {
	overscroll-behavior: none;
}

@media (max-width: 600px) {
	body.nikolas-portfolio-site:is(.nikolas-work-page, .nikolas-about-page) .nikolas-portrait {
		border-radius: 12px;
	}

	@supports (corner-shape: squircle) {
		body.nikolas-portfolio-site:is(.nikolas-work-page, .nikolas-about-page) .nikolas-portrait {
			border-radius: 16px;
		}
	}

	body.nikolas-portfolio-site {
		--portfolio-panel-radius: 18px;
		--portfolio-control-radius: 12px;
		--portfolio-media-radius: 14px;
		--portfolio-compact-media-radius: 9px;
	}

	@supports (corner-shape: squircle) {
		body.nikolas-portfolio-site {
			--portfolio-panel-radius: 24px;
			--portfolio-control-radius: 16px;
			--portfolio-media-radius: 18px;
			--portfolio-compact-media-radius: 12px;
		}
	}

	body.nikolas-portfolio-site .nikolas-site-footer {
		padding: var(--mobile-gutter, 16px) 0;
	}

	body.nikolas-portfolio-site .nikolas-footer-group {
		font-size: 0.82rem;
		gap: 8px;
		min-width: 0;
	}

	body.nikolas-portfolio-site .nikolas-footer-legal-group > span:first-child {
		font-size: clamp(0.7rem, 3vw, 0.82rem);
	}

	body.nikolas-portfolio-site .nikolas-footer-shell {
		gap: 12px;
	}

	body.nikolas-portfolio-site .nikolas-footer-privacy-button {
		font-size: 0.82rem;
		justify-content: flex-start;
		text-align: left;
		white-space: nowrap;
	}

	body.nikolas-portfolio-site .back-to-top {
		border-radius: var(--portfolio-control-radius);
		bottom: 16px;
		height: 46px;
		justify-content: center;
		padding: 0;
		right: 16px;
		width: 46px;
	}

	body.nikolas-portfolio-site .back-to-top.is-visible:is(:hover, :focus-visible) {
		padding: 0;
		width: 46px;
	}

	body.nikolas-portfolio-site .back-to-top-label {
		display: none;
	}

	.nikolas-halftone-field {
		animation: none;
		will-change: auto;
	}

	body.nikolas-portfolio-site .nikolas-privacy-dialog {
		border-radius: var(--portfolio-panel-radius);
		padding: 22px;
	}
}

@media (max-width: 420px) {
	body.nikolas-portfolio-site .nikolas-footer-shell {
		align-items: stretch;
		flex-direction: column;
	}

	body.nikolas-portfolio-site .nikolas-footer-credit-group {
		justify-content: flex-start;
	}
}

@media (max-width: 360px) {
	body.nikolas-portfolio-site .nikolas-footer-credit-group {
		align-items: flex-start;
		flex-direction: column;
		gap: 7px;
	}

	body.nikolas-portfolio-site .nikolas-footer-coming-soon {
		align-self: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.nikolas-portfolio-site .nikolas-tab-indicator {
		transition: none;
	}

	.nikolas-halftone-field {
		animation: none !important;
	}

	.nikolas-halftone-interaction {
		display: none;
	}

	body.nikolas-portfolio-site .nikolas-footer-privacy-button,
	body.nikolas-portfolio-site .nikolas-privacy-overlay,
	body.nikolas-portfolio-site .nikolas-privacy-dialog {
		transition: none;
	}
}
