/**
 * ARX Portfolio — front-end styles (fully isolated under .arx-portfolio).
 * Palette: lavender accent on near-black, inspired by the reference design.
 *
 * @package ARX_Portfolio
 */

/* ============================================================
   1. TOKENS + ISOLATION RESET
   ============================================================ */
.arx-portfolio {
	--arx-bg: #0b080c;
	--arx-accent: #c2a4ff;
	--arx-accent-2: #a87cff;
	--arx-text: #eae5ec;
	--arx-muted: #9a91a6;
	--arx-surface: #15101b;
	--arx-surface-2: #1d1626;
	--arx-border: rgba(234, 229, 236, 0.10);
	--arx-glow: rgba(194, 164, 255, 0.16);
	--arx-radius: 18px;
	--arx-radius-sm: 12px;
	--arx-maxw: 1200px;
	--arx-font: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	background: var(--arx-bg) !important;
	color: var(--arx-text) !important;
	font-family: var(--arx-font) !important;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	position: relative;
	overflow: hidden;
	border-radius: 0;
	padding: clamp(40px, 6vw, 96px) clamp(18px, 4vw, 52px);
}

.arx-portfolio,
.arx-portfolio *,
.arx-portfolio *::before,
.arx-portfolio *::after {
	box-sizing: border-box;
}

.arx-portfolio h1,
.arx-portfolio h2,
.arx-portfolio h3,
.arx-portfolio h4,
.arx-portfolio p,
.arx-portfolio ul,
.arx-portfolio ol,
.arx-portfolio li,
.arx-portfolio figure {
	margin: 0;
	padding: 0;
	color: inherit !important;
}

.arx-portfolio ul {
	list-style: none;
}

.arx-portfolio a {
	color: inherit !important;
	text-decoration: none !important;
}

.arx-portfolio img {
	max-width: 100%;
	height: auto;
	display: block;
}

.arx-portfolio button {
	font-family: inherit;
	cursor: pointer;
}

/* Constrained inner blocks */
.arx-head,
.arx-filter,
.arx-grid,
.arx-single {
	max-width: var(--arx-maxw);
	margin-left: auto;
	margin-right: auto;
}

/* ============================================================
   2. SHOWCASE HEADER
   ============================================================ */
.arx-head__eyebrow {
	color: var(--arx-accent) !important;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-size: 13px;
	font-weight: 600;
}

.arx-head__title {
	font-size: clamp(34px, 6vw, 68px);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: -0.02em;
	margin-top: 12px !important;
}

.arx-head__intro {
	color: var(--arx-muted) !important;
	font-size: clamp(15px, 2vw, 18px);
	max-width: 560px;
	margin-top: 16px !important;
}

/* ============================================================
   3. FILTER BAR
   ============================================================ */
.arx-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 30px;
}

.arx-filter__btn {
	padding: 8px 18px;
	border-radius: 999px;
	border: 1px solid var(--arx-border);
	background: transparent;
	color: var(--arx-muted);
	font-size: 14px;
	font-weight: 500;
	transition: color 0.25s, border-color 0.25s, background 0.25s;
}

.arx-filter__btn:hover {
	color: var(--arx-text);
	border-color: var(--arx-accent);
}

.arx-filter__btn.is-active {
	background: var(--arx-accent);
	color: #1a1023;
	border-color: var(--arx-accent);
}

/* ============================================================
   4. PROJECT GRID + CARDS
   ============================================================ */
.arx-grid {
	display: grid;
	grid-template-columns: repeat(var(--arx-cols, 3), minmax(0, 1fr));
	gap: clamp(16px, 2vw, 28px);
	margin-top: 44px;
}

@media (max-width: 1024px) {
	.arx-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.arx-grid {
		grid-template-columns: 1fr;
	}
}

.arx-card__link {
	display: block;
	cursor: pointer;
}

.arx-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	border-radius: var(--arx-radius);
	overflow: hidden;
	background: var(--arx-surface);
	border: 1px solid var(--arx-border);
}

.arx-card__img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover !important;
	object-position: center;
	display: block;
	filter: grayscale(1) brightness(0.82);
	transition: filter 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.arx-card__img--placeholder {
	background: linear-gradient(135deg, var(--arx-surface), var(--arx-surface-2));
}

.arx-card:hover .arx-card__img {
	filter: grayscale(0) brightness(1);
	transform: scale(1.06);
}

.arx-card__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(11, 8, 12, 0.7), transparent 55%);
	opacity: 0.45;
	transition: opacity 0.4s ease;
}

.arx-card:hover .arx-card__shade {
	opacity: 0.85;
}

.arx-card__view {
	position: absolute;
	left: 16px;
	bottom: 16px;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 16px;
	border-radius: 999px;
	background: var(--arx-accent);
	color: #1a1023 !important;
	font-weight: 600;
	font-size: 13px;
	transform: translateY(14px);
	opacity: 0;
	transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.4s ease;
}

.arx-card:hover .arx-card__view {
	transform: translateY(0);
	opacity: 1;
}

.arx-card__body {
	padding: 18px 4px 4px;
}

.arx-card__cat {
	color: var(--arx-accent) !important;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.arx-card__title {
	font-size: 20px;
	font-weight: 600;
	margin-top: 7px !important;
	line-height: 1.25;
}

.arx-card__subtitle {
	color: var(--arx-muted) !important;
	font-size: 14px;
	margin-top: 4px !important;
}

.arx-empty {
	color: var(--arx-muted) !important;
	margin-top: 40px !important;
	font-size: 16px;
}

/* ============================================================
   5. BUTTONS
   ============================================================ */
.arx-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 22px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 15px;
	border: 1px solid transparent;
	transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.arx-btn--primary {
	background: linear-gradient(135deg, var(--arx-accent), var(--arx-accent-2));
	color: #190f26 !important;
	box-shadow: 0 10px 30px -12px var(--arx-glow);
}

.arx-btn--primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 44px -14px var(--arx-accent);
}

.arx-btn--ghost {
	border-color: var(--arx-border);
	color: var(--arx-text) !important;
	background: rgba(255, 255, 255, 0.02);
}

.arx-btn--ghost:hover {
	border-color: var(--arx-accent);
	transform: translateY(-2px);
}

/* ============================================================
   6. SINGLE PROJECT
   ============================================================ */
.arx-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--arx-muted) !important;
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 30px;
	transition: color 0.25s ease, gap 0.25s ease;
}

.arx-back:hover {
	color: var(--arx-accent) !important;
	gap: 12px;
}

.arx-single__head {
	max-width: 840px;
}

.arx-single__cat {
	color: var(--arx-accent) !important;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-weight: 600;
	font-size: 13px;
}

.arx-single__title {
	font-size: clamp(34px, 6vw, 72px);
	font-weight: 700;
	line-height: 1.03;
	letter-spacing: -0.02em;
	margin-top: 14px !important;
}

.arx-single__subtitle {
	color: var(--arx-muted) !important;
	font-size: clamp(16px, 2.4vw, 22px);
	margin-top: 14px !important;
}

.arx-single__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	margin-top: 30px !important;
}

.arx-single__meta li {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.arx-single__meta span {
	color: var(--arx-muted) !important;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.arx-single__meta strong {
	font-size: 16px;
	font-weight: 600;
}

.arx-single__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 32px;
}

.arx-single__cover {
	margin-top: 50px;
	border-radius: var(--arx-radius);
	overflow: hidden;
	border: 1px solid var(--arx-border);
	background: var(--arx-surface);
}

.arx-single__cover-img {
	width: 100%;
	height: auto;
	display: block;
}

/* Video */
.arx-video {
	width: 100%;
	display: block;
	background: #000;
}

video.arx-video {
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.arx-video--embed {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
}

.arx-video--embed iframe {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	border: 0;
}

/* Description */
.arx-single__content {
	max-width: 840px;
	margin-top: 50px;
	display: flex;
	flex-direction: column;
	gap: 26px;
}

.arx-single__desc {
	color: var(--arx-text) !important;
	font-size: 17px;
	line-height: 1.8;
}

.arx-single__desc p {
	margin: 0 0 1em !important;
	color: var(--arx-text) !important;
}

.arx-single__desc h2,
.arx-single__desc h3 {
	color: var(--arx-text) !important;
	font-weight: 600;
	line-height: 1.25;
	margin: 1.4em 0 0.5em !important;
}

.arx-single__desc a {
	color: var(--arx-accent) !important;
	text-decoration: underline !important;
}

.arx-single__desc ul,
.arx-single__desc ol {
	margin: 0 0 1em 1.2em !important;
	color: var(--arx-text) !important;
}

.arx-single__desc li {
	margin: 0.3em 0 !important;
}

.arx-single__tech {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.arx-chip {
	padding: 7px 14px;
	border-radius: 999px;
	border: 1px solid var(--arx-border);
	background: var(--arx-surface);
	color: var(--arx-muted) !important;
	font-size: 13px;
}

/* Gallery */
.arx-gallery-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 52px;
	max-width: var(--arx-maxw);
	margin-left: auto;
	margin-right: auto;
}

@media (min-width: 900px) {
	.arx-gallery-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.arx-gallery-grid__item {
	position: relative;
	border: 1px solid var(--arx-border);
	padding: 0;
	border-radius: var(--arx-radius-sm);
	overflow: hidden;
	background: var(--arx-surface);
	aspect-ratio: 4 / 3;
}

.arx-gallery-grid__img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover !important;
	object-position: center;
	display: block;
	filter: grayscale(1) brightness(0.82);
	transition: filter 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.arx-gallery-grid__item:hover .arx-gallery-grid__img {
	filter: grayscale(0) brightness(1);
	transform: scale(1.05);
}

/* ============================================================
   7. CONTACT + FOOTER
   ============================================================ */
.arx-contact {
	position: relative;
	max-width: var(--arx-maxw);
	margin: 96px auto 0;
	padding: clamp(50px, 8vw, 110px) 24px;
	text-align: center;
	border-radius: calc(var(--arx-radius) + 6px);
	border: 1px solid var(--arx-border);
	background: radial-gradient(circle at 50% 0%, var(--arx-surface-2), var(--arx-bg) 70%);
	overflow: hidden;
}

.arx-contact__glow {
	position: absolute;
	top: -45%;
	left: 50%;
	transform: translateX(-50%);
	width: 620px;
	height: 620px;
	max-width: 120%;
	background: radial-gradient(circle, var(--arx-glow), transparent 60%);
	pointer-events: none;
}

.arx-contact__inner {
	position: relative;
	max-width: 640px;
	margin: 0 auto;
}

.arx-contact__eyebrow {
	color: var(--arx-accent) !important;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-size: 13px;
	font-weight: 600;
}

.arx-contact__title {
	font-size: clamp(28px, 5vw, 52px);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.08;
	margin-top: 14px !important;
}

.arx-contact__sub {
	color: var(--arx-muted) !important;
	font-size: 18px;
	margin-top: 14px !important;
}

.arx-contact__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: center;
	margin-top: 34px;
}

.arx-footer {
	max-width: var(--arx-maxw);
	margin: 44px auto 0;
	padding-top: 30px;
	border-top: 1px solid var(--arx-border);
	text-align: center;
}

.arx-footer__text {
	color: var(--arx-muted) !important;
	font-size: 14px;
}

/* ============================================================
   8. LIGHTBOX (appended to <body>, outside the wrapper)
   ============================================================ */
.arx-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(11, 8, 12, 0.93);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.arx-lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

.arx-lightbox__img {
	max-width: 92vw;
	max-height: 88vh;
	border-radius: 12px;
	box-shadow: 0 30px 80px -20px #000;
	transform: scale(0.96);
	transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.arx-lightbox.is-open .arx-lightbox__img {
	transform: scale(1);
}

.arx-lightbox__close {
	position: absolute;
	top: 20px;
	right: 24px;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 1px solid rgba(234, 229, 236, 0.2);
	background: rgba(255, 255, 255, 0.05);
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.25s ease, color 0.25s ease;
}

.arx-lightbox__close:hover {
	background: var(--arx-accent, #c2a4ff);
	color: #190f26;
}

.arx-lightbox__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: 1px solid rgba(234, 229, 236, 0.2);
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.25s ease, color 0.25s ease;
	z-index: 2;
}

.arx-lightbox__nav:hover {
	background: var(--arx-accent, #c2a4ff);
	color: #190f26;
}

.arx-lightbox__prev {
	left: 24px;
}

.arx-lightbox__next {
	right: 24px;
}

.arx-lightbox__count {
	position: absolute;
	bottom: 22px;
	left: 50%;
	transform: translateX(-50%);
	color: #eae5ec;
	font-size: 13px;
	letter-spacing: 0.05em;
	opacity: 0.85;
}

@media (max-width: 600px) {
	.arx-lightbox__nav {
		width: 44px;
		height: 44px;
	}

	.arx-lightbox__prev {
		left: 10px;
	}

	.arx-lightbox__next {
		right: 10px;
	}
}

/* ============================================================
   9. MOTION (GSAP reveal pre-state + reduced motion)
   ============================================================ */
.arx-js .arx-portfolio [data-arx-anim] {
	opacity: 0;
	will-change: transform, opacity;
}

/* Always show content inside the Elementor editor (GSAP scroll reveals
   never run there, so content must stay visible). */
.elementor-editor-active .arx-portfolio [data-arx-anim] {
	opacity: 1 !important;
	transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.arx-js .arx-portfolio [data-arx-anim] {
		opacity: 1;
	}

	.arx-portfolio *,
	.arx-lightbox,
	.arx-lightbox__img {
		transition: none !important;
		animation: none !important;
	}
}

@media (max-width: 640px) {
	.arx-single__meta {
		gap: 22px;
	}
}

/* ============================================================
   10. HERO WIDGET
   ============================================================ */
.arx-portfolio--hero {
	border-radius: 0;
	padding: clamp(64px, 11vw, 150px) clamp(18px, 4vw, 52px);
}

.arx-hero {
	display: flex;
	flex-direction: column;
	justify-content: center;
	position: relative;
}

.arx-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 860px;
}

.arx-hero-align-center .arx-hero {
	align-items: center;
}

.arx-hero-align-center .arx-hero__inner {
	margin-left: auto;
	margin-right: auto;
}

.arx-hero-align-left .arx-hero {
	align-items: flex-start;
}

.arx-hero__eyebrow {
	color: var(--arx-accent) !important;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	font-size: 13px;
	font-weight: 600;
}

.arx-hero__title {
	font-size: clamp(40px, 8vw, 92px);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: -0.03em;
	margin-top: 16px !important;
}

.arx-hero__accent {
	display: block;
	background: linear-gradient(120deg, var(--arx-accent), var(--arx-accent-2));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: var(--arx-accent) !important;
}

.arx-hero__desc {
	color: var(--arx-muted) !important;
	font-size: clamp(16px, 2.2vw, 20px);
	max-width: 620px;
	margin-top: 20px !important;
}

.arx-hero-align-center .arx-hero__desc {
	margin-left: auto;
	margin-right: auto;
}

.arx-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 34px;
}

.arx-hero-align-center .arx-hero__actions {
	justify-content: center;
}

.arx-hero__glow {
	position: absolute;
	top: -20%;
	right: -10%;
	width: 540px;
	height: 540px;
	max-width: 90%;
	background: radial-gradient(circle, var(--arx-glow), transparent 60%);
	pointer-events: none;
	z-index: 0;
}

/* ============================================================
   11. HEADER WIDGET + OFF-CANVAS
   ============================================================ */
.arx-portfolio--header {
	padding: 0 !important;
	overflow: visible;
	border-radius: 0;
}

.arx-header {
	background: var(--arx-bg);
	border-bottom: 1px solid var(--arx-border);
}

.arx-header.is-sticky {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	z-index: 9990;
	transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Offset below the WordPress admin bar for logged-in users. */
.admin-bar .arx-header.is-sticky {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar .arx-header.is-sticky {
		top: 46px;
	}
}

/* Inside the Elementor editor, keep the header static so it doesn't float over the canvas. */
.elementor-editor-active .arx-header.is-sticky {
	position: static;
	width: auto;
}

/* On mobile, never keep the header sticky — let it scroll away normally. */
@media (max-width: 860px) {
	.arx-header.is-sticky {
		position: static !important;
		width: auto;
		top: auto;
	}
}

/* At the top: solid dark header (no see-through grey). */
.arx-header.is-sticky.arx-header--glass {
	background: var(--arx-bg) !important;
	-webkit-backdrop-filter: blur(16px) saturate(150%);
	backdrop-filter: blur(16px) saturate(150%);
	border-bottom-color: transparent;
}

/* On scroll: frosted-glass blur over the (dark) content, still dark. */
.arx-header.is-sticky.arx-header--glass.is-scrolled {
	background: color-mix(in srgb, var(--arx-bg) 80%, transparent) !important;
	border-bottom-color: var(--arx-border);
	box-shadow: 0 10px 34px -16px rgba(0, 0, 0, 0.6);
}

/* Solid sticky header (glass off) still gets a subtle shadow on scroll. */
.arx-header.is-sticky:not(.arx-header--glass).is-scrolled {
	box-shadow: 0 8px 26px -16px rgba(0, 0, 0, 0.55);
}

.arx-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	max-width: var(--arx-maxw);
	margin: 0 auto;
	padding: 16px clamp(18px, 4vw, 40px);
}

.arx-header__brand {
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--arx-text) !important;
}

.arx-header__logo {
	max-height: 40px;
	width: auto;
	display: block;
}

.arx-header__nav {
	margin-left: auto;
}

.arx-header__menu {
	display: flex;
	align-items: center;
	gap: 28px;
}

.arx-header__menu a {
	color: var(--arx-text) !important;
	font-size: 15px;
	font-weight: 500;
	opacity: 0.85;
	transition: opacity 0.2s ease, color 0.2s ease;
}

.arx-header__menu a:hover {
	opacity: 1;
	color: var(--arx-accent) !important;
}

.arx-header__right {
	display: flex;
	align-items: center;
	gap: 16px;
}

.arx-header__cta {
	padding: 10px 18px;
	font-size: 14px;
}

.arx-burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	background: transparent;
	border: 0;
	padding: 10px;
}

.arx-burger span {
	display: block;
	height: 2px;
	width: 100%;
	background: var(--arx-text);
	border-radius: 2px;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.arx-burger[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.arx-burger[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.arx-burger[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 860px) {
	.arx-header__nav,
	.arx-header__cta {
		display: none;
	}

	.arx-burger {
		display: flex;
	}
}

/* Off-canvas */
.arx-offcanvas {
	position: fixed;
	inset: 0;
	z-index: 100000;
	visibility: hidden;
	pointer-events: none;
}

.arx-offcanvas.is-open {
	visibility: visible;
	pointer-events: auto;
}

.arx-offcanvas__overlay {
	position: absolute;
	inset: 0;
	background: rgba(11, 8, 12, 0.6);
	opacity: 0;
	transition: opacity 0.35s ease;
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}

.arx-offcanvas.is-open .arx-offcanvas__overlay {
	opacity: 1;
}

.arx-offcanvas__panel {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: min(86vw, 360px);
	background: var(--arx-surface);
	border-left: 1px solid var(--arx-border);
	padding: 24px;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.arx-offcanvas.is-open .arx-offcanvas__panel {
	transform: translateX(0);
}

.arx-offcanvas__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
}

.arx-offcanvas__brand {
	font-weight: 700;
	font-size: 18px;
	color: var(--arx-text) !important;
}

.arx-offcanvas__close {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid var(--arx-border);
	background: transparent;
	color: var(--arx-text);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.25s ease, color 0.25s ease;
}

.arx-offcanvas__close:hover {
	background: var(--arx-accent);
	color: #190f26;
}

.arx-offcanvas__menu {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.arx-offcanvas__menu a {
	display: block;
	padding: 14px 4px;
	font-size: 22px;
	font-weight: 600;
	color: var(--arx-text) !important;
	border-bottom: 1px solid var(--arx-border);
	transition: color 0.2s ease, padding-left 0.2s ease;
}

.arx-offcanvas__menu a:hover {
	color: var(--arx-accent) !important;
	padding-left: 10px;
}

.arx-offcanvas__cta {
	margin-top: auto;
	justify-content: center;
}

/* ============================================================
   12. FOOTER WIDGET
   ============================================================ */
.arx-portfolio--footer {
	padding: 0 !important;
	border-radius: 0;
}

.arx-footer-w {
	max-width: var(--arx-maxw);
	margin: 0 auto;
	padding: clamp(40px, 6vw, 72px) clamp(18px, 4vw, 40px) 30px;
}

.arx-footer-w__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
	align-items: flex-start;
	justify-content: space-between;
}

.arx-footer-w__name {
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.arx-footer-w__tag {
	color: var(--arx-muted) !important;
	font-size: 15px;
	margin-top: 8px !important;
	max-width: 340px;
}

.arx-footer-w__social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.arx-footer-w__social a {
	display: inline-block;
	padding: 9px 16px;
	border: 1px solid var(--arx-border);
	border-radius: 999px;
	font-size: 14px;
	color: var(--arx-text) !important;
	transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.arx-footer-w__social a:hover {
	border-color: var(--arx-accent);
	color: var(--arx-accent) !important;
	transform: translateY(-2px);
}

.arx-footer-w__bottom {
	margin-top: 36px;
	padding-top: 24px;
	border-top: 1px solid var(--arx-border);
}

.arx-footer-w__bottom p {
	color: var(--arx-muted) !important;
	font-size: 14px;
}

/* ============================================================
   13. CARD IMAGE HOVER EFFECT MODIFIERS (showcase widget control)
   ============================================================ */
.arx-hover-zoom .arx-card__img {
	filter: none;
}

.arx-hover-zoom .arx-card:hover .arx-card__img {
	filter: none;
	transform: scale(1.08);
}

.arx-hover-blur .arx-card__img {
	filter: blur(0);
}

.arx-hover-blur .arx-card:hover .arx-card__img {
	filter: blur(3px) brightness(0.7);
	transform: scale(1.05);
}

.arx-hover-none .arx-card__img {
	filter: none;
}

.arx-hover-none .arx-card:hover .arx-card__img {
	filter: none;
	transform: none;
}

/* ============================================================
   14. HERO 3D (modern avatar hero)
   ============================================================ */
.arx-portfolio--hero {
	border-radius: 0;
	padding: clamp(20px, 4vw, 48px) clamp(18px, 5vw, 64px);
}

.arx-hero3d {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(560px, 86vh, 900px);
	overflow: hidden;
}

.arx-hero3d__inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: clamp(16px, 2.5vw, 44px);
	width: 100%;
	max-width: min(1480px, 100%);
	margin: 0 auto;
	padding-left: 56px;
	min-height: inherit;
}

.arx-hero3d__social {
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	gap: 22px;
	z-index: 4;
}

.arx-hero3d__social a {
	display: inline-flex;
	color: var(--arx-muted) !important;
	font-size: 20px;
	line-height: 1;
	transition: color 0.25s ease, transform 0.25s ease;
}

.arx-hero3d__social a:hover {
	color: var(--arx-accent) !important;
	transform: translateY(-3px);
}

.arx-hero3d__social svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.arx-hero3d__left {
	grid-column: 1;
	min-width: 0;
	z-index: 3;
}

.arx-hero3d__hello {
	display: block;
	color: var(--arx-accent) !important;
	font-size: clamp(18px, 2.4vw, 28px);
	font-weight: 500;
	margin-bottom: 6px;
}

.arx-hero3d__name {
	font-size: clamp(30px, 4.4vw, 58px);
	font-weight: 700;
	line-height: 1.04;
	letter-spacing: -0.02em;
	text-transform: uppercase;
}

.arx-hero3d__avatar {
	grid-column: 2;
	position: relative;
	width: clamp(330px, 36vw, 580px);
	z-index: 2;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

model-viewer.arx-hero3d__img {
	width: 100%;
	height: clamp(440px, 66vh, 660px);
}

.arx-hero3d__avatar-glow {
	position: absolute;
	left: 50%;
	top: 46%;
	transform: translate(-50%, -50%);
	width: 88%;
	padding-bottom: 88%;
	height: 0;
	border-radius: 50%;
	background: radial-gradient(circle, var(--arx-glow), transparent 62%);
	z-index: -1;
}

.arx-hero3d__img {
	width: 100%;
	height: auto;
	display: block;
	transition: filter 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.arx-hero3d--gray .arx-hero3d__img {
	filter: grayscale(1) brightness(0.92);
}

.arx-hero3d--gray .arx-hero3d__avatar:hover .arx-hero3d__img {
	filter: grayscale(0) brightness(1);
}

.arx-hero3d__roles {
	grid-column: 3;
	min-width: 0;
	text-align: right;
	z-index: 1;
}

.arx-hero3d__roles-pre {
	display: block;
	color: var(--arx-accent) !important;
	font-size: clamp(16px, 2vw, 24px);
	font-weight: 500;
	margin-bottom: 2px;
}

.arx-hero3d__rotator {
	position: relative;
	font-size: clamp(20px, 2.6vw, 42px);
	min-height: 2.5em;
}

.arx-hero3d__role {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	white-space: normal;
	font-size: 1em;
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	color: var(--arx-text) !important;
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.arx-hero3d__role.is-active {
	opacity: 1;
	transform: none;
}

.arx-hero3d__resume {
	position: absolute;
	right: 0;
	bottom: 8px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--arx-muted) !important;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	z-index: 4;
	transition: color 0.25s ease;
}

.arx-hero3d__resume:hover {
	color: var(--arx-accent) !important;
}

@media (max-width: 992px) {
	.arx-hero3d {
		min-height: auto;
	}

	.arx-hero3d__inner {
		grid-template-columns: 1fr;
		text-align: center;
		gap: 16px;
		padding: 16px 0 28px;
	}

	.arx-hero3d__left,
	.arx-hero3d__roles,
	.arx-hero3d__avatar,
	.arx-hero3d__social,
	.arx-hero3d__resume {
		position: static;
		transform: none;
		max-width: 100%;
		grid-column: auto;
	}

	model-viewer.arx-hero3d__img {
		height: min(80vw, 360px);
	}

	.arx-hero3d__left {
		order: 1;
	}

	.arx-hero3d__roles {
		order: 2;
		text-align: center;
		margin: 0 auto;
	}

	.arx-hero3d__avatar {
		order: 3;
		width: min(78vw, 340px);
		margin: 8px auto 0;
	}

	.arx-hero3d__social {
		order: 4;
		flex-direction: row;
		justify-content: center;
		gap: 26px;
	}

	.arx-hero3d__resume {
		order: 5;
		justify-content: center;
	}

	.arx-hero3d__rotator {
		min-height: 0;
	}

	.arx-hero3d__role {
		position: static;
		opacity: 1;
		transform: none;
		display: none;
	}

	.arx-hero3d__role.is-active {
		display: block;
	}
}

/* ============================================================
   15. SHARED MEDIA (grayscale hover + model-viewer)
   ============================================================ */
.arx-media--gray img,
.arx-media--gray model-viewer {
	filter: grayscale(1) brightness(0.92);
	transition: filter 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.arx-media--gray:hover img,
.arx-media--gray:hover model-viewer {
	filter: grayscale(0) brightness(1);
}

model-viewer {
	width: 100%;
	background-color: transparent;
	--poster-color: transparent;
}

/* Modern bottom-to-top feather: fades the image/3D model into the background
   so there is no hard cut at the bottom. */
.arx-hero3d__avatar,
.arx-about__media,
.arx-whatido__media {
	position: relative;
}

.arx-hero3d__avatar::after,
.arx-about__media::after,
.arx-whatido__media::after {
	content: "";
	position: absolute;
	left: -2%;
	right: -2%;
	bottom: 0;
	height: var(--arx-fade, 38%);
	background: linear-gradient(to top, var(--arx-bg) 6%, transparent);
	pointer-events: none;
	z-index: 4;
}

/* ============================================================
   16. ABOUT WIDGET
   ============================================================ */
.arx-about {
	border-radius: 0;
	padding: clamp(40px, 7vw, 96px) clamp(18px, 5vw, 64px);
}

.arx-about__inner {
	max-width: var(--arx-maxw);
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: clamp(28px, 5vw, 72px);
}

.arx-about.arx-about-img-right .arx-about__inner {
	flex-direction: row-reverse;
}

.arx-about__media {
	position: relative;
	flex: 0 0 42%;
	max-width: 42%;
	display: flex;
	justify-content: center;
}

.arx-about__media model-viewer {
	height: clamp(360px, 50vh, 540px);
}

.arx-about__img {
	width: 100%;
	height: auto;
	display: block;
}

.arx-about__glow {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 80%;
	padding-bottom: 80%;
	height: 0;
	border-radius: 50%;
	background: radial-gradient(circle, var(--arx-glow), transparent 62%);
	z-index: -1;
}

.arx-about__body {
	flex: 1 1 auto;
}

.arx-about__eyebrow {
	display: block;
	color: var(--arx-accent) !important;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 20px;
}

.arx-about__text {
	color: var(--arx-text) !important;
	font-size: clamp(18px, 2.2vw, 26px);
	line-height: 1.6;
	font-weight: 600;
}

.arx-about__text p {
	margin: 0 0 1em !important;
	color: inherit !important;
}

@media (max-width: 900px) {
	.arx-about__inner,
	.arx-about.arx-about-img-right .arx-about__inner {
		flex-direction: column;
		text-align: center;
	}

	.arx-about__media {
		flex-basis: auto;
		max-width: min(78vw, 360px);
	}
}

/* ============================================================
   17. WHAT I DO WIDGET
   ============================================================ */
.arx-whatido {
	border-radius: 0;
	padding: clamp(40px, 7vw, 96px) clamp(18px, 5vw, 64px);
}

.arx-whatido__inner {
	max-width: var(--arx-maxw);
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(28px, 4vw, 64px);
}

.arx-whatido__left,
.arx-whatido__list {
	min-width: 0;
}

.arx-whatido__left {
	position: relative;
}

.arx-whatido__heading {
	font-size: clamp(40px, 7vw, 92px);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: -0.02em;
	line-height: 1;
	margin-bottom: 16px !important;
}

.arx-whatido__media {
	position: relative;
	max-width: 480px;
}

.arx-whatido__media model-viewer {
	height: clamp(360px, 50vh, 520px);
}

.arx-whatido__img {
	width: 100%;
	height: auto;
	display: block;
}

.arx-whatido__glow {
	position: absolute;
	left: 50%;
	top: 55%;
	transform: translate(-50%, -50%);
	width: 80%;
	padding-bottom: 80%;
	height: 0;
	border-radius: 50%;
	background: radial-gradient(circle, var(--arx-glow), transparent 62%);
	z-index: -1;
}

.arx-whatido__list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.arx-acc {
	border: 1px dashed var(--arx-border);
	border-radius: var(--arx-radius);
	background: rgba(255, 255, 255, 0.015);
	overflow: hidden;
	transition: border-color 0.3s ease, background 0.3s ease;
}

.arx-acc.is-open {
	border-style: solid;
	border-color: var(--arx-accent);
	background: var(--arx-surface);
}

.arx-acc__head {
	width: 100%;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 22px 24px;
	background: transparent;
	border: 0;
	text-align: left;
}

.arx-acc__title {
	display: block;
	font-size: clamp(20px, 2vw, 26px);
	font-weight: 700;
	text-transform: uppercase;
	color: var(--arx-text) !important;
	letter-spacing: -0.01em;
}

.arx-acc__sub {
	display: block;
	margin-top: 6px;
	color: var(--arx-muted) !important;
	font-size: 14px;
}

.arx-acc__icon {
	flex: 0 0 auto;
	color: var(--arx-muted);
	transition: transform 0.35s ease, color 0.3s ease;
	margin-top: 4px;
}

.arx-acc.is-open .arx-acc__icon {
	transform: rotate(180deg);
	color: var(--arx-accent);
}

.arx-acc__panel {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease;
}

.arx-acc.is-open .arx-acc__panel {
	max-height: 600px;
}

.arx-acc__inner {
	padding: 0 24px 24px;
	color: var(--arx-muted) !important;
	font-size: 15px;
	line-height: 1.7;
}

@media (max-width: 900px) {
	.arx-whatido__inner {
		grid-template-columns: 1fr;
	}

	.arx-whatido__left {
		text-align: center;
	}

	.arx-whatido__media {
		margin: 0 auto;
		max-width: min(72vw, 340px);
	}
}

/* ============================================================
   18. CAREER / EXPERIENCE TIMELINE
   ============================================================ */
.arx-career {
	border-radius: 0;
	padding: clamp(40px, 7vw, 100px) clamp(18px, 5vw, 64px);
}

.arx-career__heading {
	text-align: center;
	font-size: clamp(34px, 6vw, 68px);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.1;
	margin: 0 auto clamp(40px, 6vw, 72px) !important;
	max-width: 16ch;
}

.arx-career__grad {
	background: linear-gradient(110deg, var(--arx-accent), var(--arx-accent-2));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: var(--arx-accent) !important;
}

.arx-timeline {
	max-width: 1040px;
	margin: 0 auto;
}

.arx-tl {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 120px 46px minmax(0, 1.4fr);
	align-items: stretch;
	column-gap: clamp(12px, 2vw, 28px);
}

.arx-tl__head {
	align-self: center;
	padding: 26px 0;
}

.arx-tl__title {
	font-size: clamp(20px, 2.2vw, 26px);
	font-weight: 700;
	color: var(--arx-text) !important;
	line-height: 1.2;
}

.arx-tl__sub {
	display: block;
	margin-top: 6px;
	color: var(--arx-accent) !important;
	font-size: 14px;
	font-weight: 500;
}

.arx-tl__year {
	align-self: center;
	font-size: clamp(28px, 4vw, 46px);
	font-weight: 800;
	color: var(--arx-muted) !important;
	opacity: 0.55;
	letter-spacing: -0.02em;
}

.arx-tl__rail {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.arx-tl__rail::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: 2px;
	background: var(--arx-border);
}

.arx-tl:first-child .arx-tl__rail::before {
	top: 50%;
}

.arx-tl:last-child .arx-tl__rail::before {
	bottom: 50%;
}

.arx-tl__node {
	position: relative;
	z-index: 1;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--arx-accent);
	box-shadow: 0 0 18px 5px var(--arx-glow);
}

.arx-tl__desc {
	align-self: center;
	padding: 26px 0;
	color: var(--arx-muted) !important;
	font-size: 15px;
	line-height: 1.7;
}

@media (max-width: 768px) {
	.arx-tl {
		grid-template-columns: 1fr;
		column-gap: 0;
		border-left: 2px solid var(--arx-border);
		padding-left: 20px;
		position: relative;
		margin-bottom: 8px;
	}

	.arx-tl__rail {
		display: none;
	}

	.arx-tl__head {
		padding: 4px 0 0;
		order: 2;
	}

	.arx-tl__year {
		order: 1;
		font-size: 26px;
		opacity: 0.8;
	}

	.arx-tl__desc {
		padding: 8px 0 18px;
		order: 3;
	}

	.arx-tl::before {
		content: "";
		position: absolute;
		left: -8px;
		top: 8px;
		width: 12px;
		height: 12px;
		border-radius: 50%;
		background: var(--arx-accent);
		box-shadow: 0 0 14px 4px var(--arx-glow);
	}
}

/* ============================================================
   19. SAFETY — text wrap, no theme pink, bulletproof mobile hero
   ============================================================ */

/* Long words must wrap; never force horizontal overflow. */
.arx-about__text,
.arx-acc__title,
.arx-acc__sub,
.arx-acc__inner,
.arx-tl__title,
.arx-tl__desc,
.arx-card__title,
.arx-card__subtitle,
.arx-hero3d__name,
.arx-hero3d__role {
	overflow-wrap: break-word;
	word-wrap: break-word;
}

/* Lock interactive elements so the theme / Elementor Kit accent (pink)
   can never leak in on hover, focus, or active. */
.arx-burger,
.arx-burger:hover,
.arx-burger:focus,
.arx-burger:active {
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

.arx-acc__head,
.arx-acc__head:hover,
.arx-acc__head:focus,
.arx-acc__head:active {
	background: transparent !important;
	box-shadow: none !important;
}

.arx-acc.is-open {
	background: var(--arx-surface) !important;
	border-color: var(--arx-accent) !important;
}

/* High specificity (.arx-portfolio prefix + every state) so the theme /
   Elementor Kit accent (pink) can never win on hover, focus or active. */
.arx-portfolio .arx-filter__btn,
.arx-portfolio .arx-filter__btn:hover,
.arx-portfolio .arx-filter__btn:focus,
.arx-portfolio .arx-filter__btn:focus-visible,
.arx-portfolio .arx-filter__btn:active {
	box-shadow: none !important;
	outline: none !important;
}

.arx-portfolio .arx-filter__btn:hover,
.arx-portfolio .arx-filter__btn:focus,
.arx-portfolio .arx-filter__btn:focus-visible {
	background: transparent !important;
	border-color: var(--arx-accent) !important;
	color: var(--arx-text) !important;
}

.arx-portfolio .arx-filter__btn.is-active,
.arx-portfolio .arx-filter__btn.is-active:hover,
.arx-portfolio .arx-filter__btn.is-active:focus,
.arx-portfolio .arx-filter__btn.is-active:focus-visible,
.arx-portfolio .arx-filter__btn.is-active:active {
	background: var(--arx-accent) !important;
	border-color: var(--arx-accent) !important;
	color: #1a1023 !important;
}

.arx-gallery-grid__item:hover,
.arx-gallery-grid__item:focus {
	background: var(--arx-surface) !important;
}

.arx-portfolio a:focus-visible,
.arx-portfolio button:focus-visible {
	outline: 2px solid var(--arx-accent) !important;
	outline-offset: 2px;
}

/* Bulletproof mobile hero — override any inline size leaking from the
   "Image / 3D Size" control so the avatar always fits the screen. */
@media (max-width: 992px) {
	.arx-hero3d__inner {
		grid-template-columns: 1fr !important;
		max-width: 100% !important;
		padding-left: 0 !important;
	}

	.arx-hero3d__avatar {
		width: min(80vw, 340px) !important;
		margin-left: auto !important;
		margin-right: auto !important;
	}

	model-viewer.arx-hero3d__img {
		height: min(82vw, 360px) !important;
	}
}

/* Featured project badge */
.arx-card__featured {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--arx-accent), var(--arx-accent-2));
	color: #190f26 !important;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	box-shadow: 0 6px 18px -6px var(--arx-glow);
}

.arx-card__featured svg {
	fill: currentColor;
}

/* "View All" button (home -> projects page) */
.arx-viewall {
	max-width: var(--arx-maxw);
	margin: clamp(28px, 4vw, 48px) auto 0;
	text-align: center;
}

/* ============================================================
   20. BUTTON COLOR LOCK — defeat theme / Elementor Kit accent (pink)
      on every interaction state, with high specificity.
   ============================================================ */
.arx-portfolio .arx-burger,
.arx-portfolio .arx-burger:hover,
.arx-portfolio .arx-burger:focus,
.arx-portfolio .arx-burger:active,
.arx-portfolio .arx-acc__head,
.arx-portfolio .arx-acc__head:hover,
.arx-portfolio .arx-acc__head:focus,
.arx-portfolio .arx-acc__head:active {
	background-color: transparent !important;
	box-shadow: none !important;
}

.arx-portfolio .arx-btn--primary,
.arx-portfolio .arx-btn--primary:hover,
.arx-portfolio .arx-btn--primary:focus,
.arx-portfolio .arx-btn--primary:active {
	background: linear-gradient(135deg, var(--arx-accent), var(--arx-accent-2)) !important;
	color: #190f26 !important;
}

.arx-portfolio .arx-btn--ghost,
.arx-portfolio .arx-btn--ghost:hover,
.arx-portfolio .arx-btn--ghost:focus,
.arx-portfolio .arx-btn--ghost:active {
	background-color: rgba(255, 255, 255, 0.02) !important;
	color: var(--arx-text) !important;
}

.arx-portfolio .arx-gallery-grid__item:hover,
.arx-portfolio .arx-gallery-grid__item:focus {
	background-color: var(--arx-surface) !important;
	box-shadow: none !important;
}

.arx-portfolio a:focus,
.arx-portfolio button:focus {
	outline: none !important;
}

/* ============================================================
   21. 3D KEYBOARD WIDGET
   ============================================================ */
.arx-portfolio--keyboard {
	display: flex;
	justify-content: center;
	padding: clamp(28px, 6vw, 80px) clamp(10px, 4vw, 48px);
	border-radius: 0;
}

.arx-keyboard {
	max-width: 100%;
	display: flex;
	justify-content: center;
	overflow: hidden;
}

.arx-kb {
	--arx-kb-u: clamp(26px, 4vw, 50px);
	--arx-kb-gap: clamp(4px, 0.6vw, 8px);
	--arx-kb-key: #221a2e;
	transform: perspective(1400px) rotateX(var(--arx-kb-tilt, 16deg)) scale(var(--arx-kb-scale, 1));
	transform-origin: center top;
	transform-style: preserve-3d;
	display: inline-flex;
	flex-direction: column;
	gap: var(--arx-kb-gap);
	padding: calc(var(--arx-kb-gap) * 2);
	border-radius: 16px;
	background: linear-gradient(180deg, #1a1422, #0e0a14);
	border: 1px solid var(--arx-border);
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.arx-kb__row {
	display: flex;
	gap: var(--arx-kb-gap);
	justify-content: center;
}

.arx-key {
	height: var(--arx-kb-u);
	min-width: var(--arx-kb-u);
	padding: 0 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background: var(--arx-kb-key);
	background: linear-gradient(180deg, color-mix(in srgb, var(--arx-kb-key) 86%, #ffffff), var(--arx-kb-key));
	color: var(--arx-text) !important;
	font-family: var(--arx-font);
	font-size: clamp(10px, 1.4vw, 14px);
	font-weight: 600;
	cursor: pointer;
	user-select: none;
	box-shadow: 0 4px 0 #08060c, 0 6px 8px rgba(0, 0, 0, 0.45);
	transition: transform 0.08s ease, box-shadow 0.12s ease, background 0.18s ease, color 0.18s ease;
}

.arx-key.is-pressed {
	transform: translateY(4px);
	background: linear-gradient(180deg, var(--arx-accent), var(--arx-accent-2));
	color: #190f26 !important;
	box-shadow: 0 0 0 #08060c, 0 0 22px 3px var(--arx-glow), 0 0 10px var(--arx-accent);
}

.arx-key--w12 { min-width: calc(var(--arx-kb-u) * 1.3); }
.arx-key--w15 { min-width: calc(var(--arx-kb-u) * 1.6); }
.arx-key--w18 { min-width: calc(var(--arx-kb-u) * 1.9); }
.arx-key--w2 { min-width: calc(var(--arx-kb-u) * 2.1); }
.arx-key--w22 { min-width: calc(var(--arx-kb-u) * 2.3); }
.arx-key--w25 { min-width: calc(var(--arx-kb-u) * 2.6); }

.arx-key--wspace {
	min-width: calc(var(--arx-kb-u) * 6.5);
	flex: 1 1 auto;
}

/* The keyboard stacked above its typed-text screen. */
.arx-kb-stack {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(14px, 2.5vw, 26px);
	width: 100%;
}

.arx-kb-screen {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 3px;
	min-height: 1.7em;
	max-width: min(680px, 92%);
	padding: 6px 4px;
	font-family: var(--arx-font);
	font-size: clamp(1rem, 2.4vw, 1.55rem);
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--arx-text);
	text-align: center;
	word-break: break-word;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.4s ease, transform 0.4s ease;
	pointer-events: none;
}

.arx-kb-screen.is-active {
	opacity: 1;
	transform: translateY(0);
}

.arx-kb-screen__text {
	white-space: pre-wrap;
}

.arx-kb-screen__caret {
	display: inline-block;
	width: 2px;
	height: 1.15em;
	background: var(--arx-accent);
	border-radius: 2px;
	animation: arx-kb-caret 1s steps(1) infinite;
}

@keyframes arx-kb-caret {
	50% {
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.arx-kb-screen__caret {
		animation: none;
	}
}

/* Two-column layout: text beside the keyboard. */
.arx-kb-layout {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: clamp(28px, 5vw, 72px);
	align-items: center;
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
}

.arx-kb-layout--text_right {
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.arx-kb-layout--text_right .arx-kb-side-col {
	order: 2;
}

.arx-kb-layout--text_right .arx-kb-main-col {
	order: 1;
}

.arx-kb-main-col {
	min-width: 0;
}

.arx-kb-side__eyebrow {
	display: inline-block;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--arx-accent) !important;
	margin-bottom: 14px;
}

.arx-kb-side__heading {
	font-size: clamp(1.8rem, 3.4vw, 2.9rem);
	font-weight: 700;
	line-height: 1.08;
	margin: 0 0 16px;
	color: var(--arx-text);
}

.arx-kb-side__text {
	font-size: 1.02rem;
	line-height: 1.7;
	color: var(--arx-muted) !important;
	margin: 0 0 26px;
	max-width: 46ch;
}

.arx-kb-side__btn {
	margin-top: 4px;
}

@media (max-width: 900px) {
	.arx-kb-layout,
	.arx-kb-layout--text_right {
		grid-template-columns: 1fr;
		gap: clamp(22px, 6vw, 40px);
		text-align: center;
	}

	.arx-kb-layout--text_right .arx-kb-side-col,
	.arx-kb-layout--text_right .arx-kb-main-col {
		order: 0;
	}

	.arx-kb-side__text {
		margin-left: auto;
		margin-right: auto;
	}
}
