/* Portfolio Landing Page: scoped Elementor styles */
.eka-portfolio-landing-mobile {
	position: relative;
	/* Use Elementor's actual container width; 100vw plus negative margins caused page-wide horizontal panning. */
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin-left: 0;
	margin-right: 0;
	min-height: 100svh;
	overflow-x: clip;
	overflow-y: visible;
	touch-action: pan-y;
	overscroll-behavior-x: none;
	background: var(--orbit-bg, #F8F8F6);
	color: var(--orbit-text, #171717);
	overflow: visible;
	isolation: isolate;
}
.eka-portfolio-landing-mobile, .eka-portfolio-landing-mobile * { box-sizing: border-box; }
.eka-portfolio-landing-mobile__pin {
	position: absolute;
	inset: 0 auto auto 0;
	width: 100%;
	height: 100svh;
	min-height: 420px;
	overflow: hidden;
	background: var(--orbit-bg, #F8F8F6);
	will-change: transform;
}
.eka-portfolio-landing-mobile__stage {
	touch-action: pan-y;
	overscroll-behavior-x: none;
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 420px;
	overflow: hidden;
	background: var(--orbit-bg, #F8F8F6);
}
.eka-portfolio-landing-mobile__field {
	position: absolute;
	inset: 0;
	perspective: 1000px;
	pointer-events: none;
}
.eka-portfolio-landing-mobile__item {
	position: absolute;
	top: 0;
	left: 0;
	width: var(--orbit-image-size, 58px);
	height: var(--orbit-image-size, 58px);
	opacity: 1;
	transform-origin: center center;
	will-change: transform;
	backface-visibility: hidden;
	pointer-events: auto;
}
.eka-portfolio-landing-mobile__image-wrap {
	width: 100%;
	height: 100%;
	overflow: hidden;
	border-radius: var(--orbit-image-radius, 2px);
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
	transform: scale(1);
	transform-origin: center center;
	transition: transform var(--orbit-hover-duration, 250ms) cubic-bezier(0.2, 0.7, 0.25, 1);
	will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
	.eka-portfolio-landing-mobile__item:hover {
		z-index: 20 !important; /* Overrides per-frame inline stacking while hovered. */
	}
	.eka-portfolio-landing-mobile__item:hover .eka-portfolio-landing-mobile__image-wrap {
		transform: scale(var(--orbit-hover-scale, 2.00));
	}
}
.eka-portfolio-landing-mobile__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	/* Only the photo fills its box; the original orbit transforms remain untouched. */
	transform: scale(var(--orbit-photo-fill, 1.32));
	transform-origin: center center;
}
.eka-portfolio-landing-mobile__center {
	position: absolute;
	z-index: 10;
	isolation: isolate;
	top: 50%;
	left: 50%;
	width: min(76%, 560px);
	transform: translate(-50%, -50%);
	text-align: center;
	pointer-events: none;
}
.eka-portfolio-landing-mobile__center::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: -22px;
	bottom: -22px;
	left: 50%;
	width: min(100%, 440px);
	transform: translateX(-50%);
	border-radius: 50%;
	pointer-events: none;
	background: radial-gradient(ellipse at center, var(--orbit-bg, #F8F8F6) 0%, var(--orbit-bg, #F8F8F6) 34%, transparent 84%);
}
.eka-portfolio-landing-mobile__eyebrow {
	margin: 0 0 5px;
	color: var(--orbit-text, #171717);
	font-size: var(--orbit-eyebrow-size, 10px);
	line-height: 1.25;
	letter-spacing: 0.04em;
	font-weight: 400;
	opacity: 0.72;
}
.eka-portfolio-landing-mobile__heading {
	margin: 0;
	color: var(--orbit-text, #171717);
	font-size: clamp(30px, var(--orbit-heading-size, 56px), 100px);
	line-height: 0.98;
	letter-spacing: -0.055em;
	font-weight: 400;
	overflow-wrap: anywhere;
}
.eka-portfolio-landing-mobile__description {
	margin: 12px auto 0;
	max-width: 420px;
	color: var(--orbit-text, #171717);
	font-size: 13px;
	line-height: 1.45;
	opacity: 0.72;
}
.eka-portfolio-landing-mobile__description p { margin: 0; }
/* Editorial CTA: rests below the central copy; all content and sizing editable in Elementor. */
.eka-portfolio-landing-mobile__cta {
    display: inline-flex;
    position: relative;
    align-items: center;
    justify-content: center;
    gap: 11px;
    margin-top: var(--orbit-cta-gap, 24px);
    padding: 12px 28px;
    border: 0;
    border-radius: var(--orbit-cta-radius, 40px);
    background: var(--orbit-cta-background, #000000);
    color: var(--orbit-cta-color, #FFFFFF);
    font-size: var(--orbit-cta-size, 11px);
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    letter-spacing: .12em;
    text-transform: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    cursor: pointer;
    transition: opacity .34s ease, transform .34s ease, visibility 0s linear .34s;
}
/* The CTA only becomes visible after enough scroll progress. */
.eka-portfolio-landing-mobile--cta-visible .eka-portfolio-landing-mobile__cta {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
}
.eka-portfolio-landing-mobile--cta-visible .eka-portfolio-landing-mobile__cta:hover {
    color: var(--orbit-cta-color, #FFFFFF);
    background: var(--orbit-cta-background, #000000);
    opacity: .9;
    transform: translateY(-2px);
}
/* Keep the link interactive even though the parent heading layer ignores pointer input. */
.eka-portfolio-landing-mobile__cta.is-revealed {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
	transition-delay: 0s;
}
.eka-portfolio-landing-mobile__cta:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 5px;
}

@media (max-width: 749px) {
	.eka-portfolio-landing-mobile__pin, .eka-portfolio-landing-mobile__stage { min-height: 520px; }
	.eka-portfolio-landing-mobile__item {
		width: var(--orbit-mobile-image-size, 38px);
		height: var(--orbit-mobile-image-size, 38px);
	}
	.eka-portfolio-landing-mobile__center { width: min(82%, 420px); }
	.eka-portfolio-landing-mobile__heading {
		font-size: clamp(30px, calc(var(--orbit-heading-size, 56px) * 0.72), 64px);
	}
	.eka-portfolio-landing-mobile__description { font-size: 12px; }
	.eka-portfolio-landing-mobile__cta { display: inline-flex; padding: 11px 26px; }
	.eka-portfolio-landing-mobile__center { width: min(83%, 350px); }
	.eka-portfolio-landing-mobile__heading {
		font-size: clamp(30px, calc(var(--orbit-heading-size, 56px) * 0.68), 50px);
		line-height: 1.04;
	}
	.eka-portfolio-landing-mobile__description { max-width: 290px; }
	.eka-portfolio-landing-mobile__image-wrap { touch-action: pan-y; }
	.eka-portfolio-landing-mobile__item { touch-action: pan-y; }

}
@media (prefers-reduced-motion: reduce) {
	.eka-portfolio-landing-mobile__item, .eka-portfolio-landing-mobile__image-wrap { will-change: auto; }
	.eka-portfolio-landing-mobile__cta { transition: none; }
}

/* Standalone mobile widget: never display on tablet or desktop viewports. */
@media (min-width: 768px) {
    .eka-portfolio-landing-mobile { display: none !important; }
}

/* Stop the sideways drag seen in Elementor mobile preview and on real touchscreens.
   Confined to mobile pages containing this exact widget. */
@media (max-width: 767px) {
    .elementor-widget-eka-portfolio-landing-mobile,
    .elementor-widget-eka-portfolio-landing-mobile > .elementor-widget-container {
        max-width: 100%;
        min-width: 0;
        margin-inline: 0;
        touch-action: pan-y;
    }
    html:has(.eka-portfolio-landing-mobile),
    body:has(.eka-portfolio-landing-mobile) {
        overflow-x: clip;
    }
}
