/* SWS GSAP Elements */

/* Text Reveal */
.sws-tr {
	margin: 0;
	font-size: clamp(2rem, 5vw, 4rem);
	line-height: 1.1;
}
.sws-tr a {
	color: inherit;
	text-decoration: none;
}
.sws-tr__cursor {
	display: inline-block;
	width: 0.08em;
	height: 1em;
	margin-left: 0.06em;
	vertical-align: -0.12em;
	background: currentColor;
	animation: sws-blink 0.9s steps(1) infinite;
}
@keyframes sws-blink {
	50% { opacity: 0; }
}

/* Counter */
.sws-counter__number {
	font-size: 3.5rem;
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}
.sws-counter__title {
	margin-top: 0.5rem;
}

/* Marquee */
.sws-marquee {
	--sws-gap: 40px;
	overflow: hidden;
	width: 100%;
}
.sws-marquee__track {
	display: flex;
	width: max-content;
	will-change: transform;
}
.sws-marquee__group {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	gap: var(--sws-gap);
	padding-right: var(--sws-gap);
}
.sws-marquee__item {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 1.2;
	color: inherit;
	text-decoration: none;
}
.sws-marquee__item img {
	display: block;
	width: auto;
	height: 48px;
	max-width: none;
	object-fit: contain;
}
.sws-marquee__divider {
	font-size: 1.5rem;
	opacity: 0.6;
}
.sws-marquee--fade-yes .sws-marquee {
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.sws-marquee--outline-yes .sws-marquee__item {
	color: transparent !important;
	-webkit-text-stroke: 1.5px var(--e-global-color-text, currentColor);
}
.sws-marquee--gray-yes .sws-marquee__item img {
	filter: grayscale(1);
	opacity: 0.7;
	transition: filter 0.3s, opacity 0.3s;
}
.sws-marquee--gray-yes .sws-marquee__item:hover img {
	filter: none;
	opacity: 1;
}

/* Image Reveal */
.sws-ir {
	position: relative;
	overflow: hidden;
	height: 480px;
	max-width: 100%;
}
.sws-ir__link {
	display: block;
	position: absolute;
	inset: 0;
}
.sws-ir__media {
	position: absolute;
	inset: 0;
	overflow: hidden;
}
.sws-ir__media img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}
.sws-ir__overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
	clip-path: inset(0% 100% 0% 0%);
}
.sws-ir__strip {
	position: absolute;
	top: 0;
	bottom: 0;
	width: calc(100% / 6 + 1px);
	pointer-events: none;
}

/* Horizontal Scroll */
.sws-hs {
	--sws-gap: 32px;
	--sws-hs-height: 100vh;
	overflow: hidden;
}
.sws-hs__pin {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 24px;
	height: var(--sws-hs-height);
	overflow: hidden;
	box-sizing: border-box;
	padding: 4vh 0;
}
.sws-hs__heading {
	margin: 0;
	padding: 0 5vw;
}
.sws-hs__track {
	display: flex;
	gap: var(--sws-gap);
	width: max-content;
	padding: 0 5vw;
	flex: 1 1 auto;
	min-height: 0;
	will-change: transform;
}
.sws-hs__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	flex: 0 0 auto;
	width: 60vw;
	overflow: hidden;
	border-radius: 16px;
	background: #f2f2f2;
	color: inherit;
	text-decoration: none;
}
.sws-hs__media {
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
}
.sws-hs__media img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}
.sws-hs__content {
	padding: 20px 24px;
}
.sws-hs__title {
	margin: 0 0 6px;
}
.sws-hs__text {
	margin: 0;
	opacity: 0.8;
}
.sws-hs__progress {
	height: 3px;
	margin: 0 5vw;
	background: rgba(127, 127, 127, 0.25);
}
.sws-hs__progress span {
	display: block;
	height: 100%;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: 0 50%;
}
.sws-hs.is-stacked .sws-hs__pin {
	height: auto;
}
.sws-hs.is-stacked .sws-hs__track {
	flex-direction: column;
	width: auto;
}
.sws-hs.is-stacked .sws-hs__panel {
	width: 100% !important;
}
.sws-hs.is-stacked .sws-hs__media {
	aspect-ratio: 4 / 3;
}
.sws-hs.is-stacked .sws-hs__progress {
	display: none;
}

/* Magnetic Button */
.sws-mb-wrap {
	display: flex;
}
.sws-mb {
	position: relative;
	display: inline-flex;
	align-items: center;
	overflow: hidden;
	isolation: isolate;
	padding: 18px 38px;
	border-radius: 999px;
	text-decoration: none;
	cursor: pointer;
	transition: color 0.3s, background-color 0.3s;
	will-change: transform;
}
.sws-mb__fill {
	position: absolute;
	left: 0;
	top: 0;
	z-index: -1;
	border-radius: 50%;
	pointer-events: none;
	transform: scale(0);
}
.sws-mb-fill-up .sws-mb__fill {
	inset: 0;
	width: 100%;
	height: 100%;
	border-radius: 0;
	transform: translateY(101%);
}
.sws-mb-fill-none .sws-mb__fill {
	display: none;
}
.sws-mb__label {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
}
.sws-mb__icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

@media (prefers-reduced-motion: reduce) {
	.sws-tr__cursor {
		animation: none;
	}
}

/* Stacking Cards */
.sws-sc {
	display: flex;
	flex-direction: column;
	gap: 40px;
}
.sws-sc__card {
	position: relative;
	display: flex;
	align-items: center;
	gap: 40px;
	min-height: 70vh;
	padding: 48px;
	overflow: hidden;
	border-radius: 24px;
	background: #1d1d1f;
	color: #fff;
	box-sizing: border-box;
	will-change: transform;
}
.sws-sc__body {
	position: relative;
	z-index: 1;
	flex: 1 1 50%;
}
.sws-sc__label {
	display: block;
	margin-bottom: 12px;
	font-size: 0.9rem;
	letter-spacing: 0.1em;
	opacity: 0.7;
}
.sws-sc__title {
	margin: 0 0 16px;
	color: inherit;
	font-size: clamp(2rem, 4vw, 3.5rem);
	line-height: 1.05;
}
.sws-sc__text {
	margin: 0 0 24px;
	max-width: 46ch;
	opacity: 0.85;
}
.sws-sc__button {
	display: inline-block;
	padding: 12px 26px;
	border: 1px solid currentColor;
	border-radius: 999px;
	color: inherit;
	text-decoration: none;
	transition: background-color 0.3s;
}
.sws-sc__button:hover {
	background-color: rgba(127, 127, 127, 0.2);
}
.sws-sc__media {
	flex: 1 1 50%;
	align-self: stretch;
	min-height: 240px;
	overflow: hidden;
	border-radius: calc(24px * 0.6);
}
.sws-sc__media img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}
.sws-sc--img-left .sws-sc__card {
	flex-direction: row-reverse;
}
.sws-sc--img-top .sws-sc__card {
	flex-direction: column-reverse;
	align-items: stretch;
}
.sws-sc--img-bg .sws-sc__media {
	position: absolute;
	inset: 0;
	border-radius: 0;
	opacity: 0.45;
}
@media (max-width: 767px) {
	.sws-sc__card {
		flex-direction: column-reverse !important;
		align-items: stretch;
		padding: 28px;
	}
}

/* Hover Image List */
.sws-hl {
	--sws-hl-w: 320px;
	border-top: 1px solid currentColor;
	border-color: inherit;
}
.sws-hl__row {
	display: flex;
	align-items: baseline;
	gap: 24px;
	padding: 28px 0;
	border-bottom: 1px solid rgba(127, 127, 127, 0.35);
	color: inherit;
	text-decoration: none;
	transition: color 0.3s, opacity 0.3s;
}
.sws-hl__index {
	opacity: 0.5;
	font-variant-numeric: tabular-nums;
}
.sws-hl__title {
	flex: 1 1 auto;
	font-size: clamp(1.6rem, 4vw, 3rem);
	font-weight: 600;
	line-height: 1.1;
	transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.sws-hl__meta {
	opacity: 0.6;
	white-space: nowrap;
}
.sws-hl__thumb {
	display: none;
}
.sws-hl--dim-yes .sws-hl.is-hovering .sws-hl__row:not(.is-active) {
	opacity: 0.35;
}
.sws-hl__float {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 9990;
	width: var(--sws-hl-w, 320px);
	aspect-ratio: 1 / var(--sws-hl-r, 1.25);
	overflow: hidden;
	border-radius: var(--sws-hl-rad, 12px);
	pointer-events: none;
	visibility: hidden;
}
.sws-hl__float img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.25s;
}
.sws-hl__float img.is-active {
	opacity: 1;
}
@media (hover: none), (pointer: coarse) {
	.sws-hl__thumb {
		display: block;
		width: 72px;
		height: 72px;
		flex: 0 0 auto;
		align-self: center;
		object-fit: cover;
		border-radius: 8px;
		order: -1;
	}
}

/* SVG Line Draw */
.sws-svgd {
	--sws-stroke: #f5a524;
	--sws-stroke-w: 6;
	--sws-fill: #f5a524;
	line-height: 0;
}
.sws-svgd svg {
	width: 100%;
	height: auto;
	overflow: visible;
}
.sws-svgd--override-yes .sws-svgd :is(path, line, polyline, polygon, rect, circle, ellipse) {
	fill: none;
	stroke: var(--sws-stroke);
	stroke-width: var(--sws-stroke-w);
	vector-effect: non-scaling-stroke;
}
.sws-svgd--override-yes .sws-svgd.is-fill :is(path, polygon, rect, circle, ellipse) {
	fill: var(--sws-fill);
}
.sws-svgd--round-yes .sws-svgd :is(path, line, polyline, polygon, rect, circle, ellipse) {
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Circular Text */
.sws-ct-wrap {
	display: flex;
}
.sws-ct {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 160px;
	height: 160px;
	border-radius: 50%;
	color: inherit;
	text-decoration: none;
}
.sws-ct__ring {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
}
.sws-ct__ring text {
	fill: currentColor;
	font-size: 17px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.sws-ct__center {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40%;
	height: 40%;
	border-radius: 50%;
	font-size: 1.6em;
	transition: transform 0.3s;
}
.sws-ct:hover .sws-ct__center {
	transform: scale(1.1);
}
.sws-ct__center svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}
.sws-ct__center--img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* 3D Carousel */
.sws-c3 {
	--sws-c3-w: 240px;
	--sws-c3-r: 1.4;
	position: relative;
	height: 520px;
	perspective: 1800px;
	overflow: hidden;
	touch-action: pan-y;
	cursor: grab;
	user-select: none;
}
.sws-c3.is-dragging {
	cursor: grabbing;
}
.sws-c3__ring {
	position: absolute;
	inset: 0;
	transform-style: preserve-3d;
}
.sws-c3__item {
	position: absolute;
	left: 50%;
	top: 50%;
	width: var(--sws-c3-w);
	height: calc(var(--sws-c3-w) * var(--sws-c3-r));
	margin-left: calc(var(--sws-c3-w) / -2);
	margin-top: calc(var(--sws-c3-w) * var(--sws-c3-r) / -2);
	overflow: hidden;
	border-radius: 14px;
	background: #ddd;
	color: #fff;
	text-decoration: none;
}
.sws-c3__item img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	pointer-events: none;
}
.sws-c3__caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 28px 14px 12px;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
	font-weight: 600;
}

/* Mouse Parallax */
.sws-mp {
	position: relative;
	height: 520px;
	perspective: 1000px;
}
.sws-mp__layer {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 200px;
	translate: -50% -50%;
	pointer-events: none;
	will-change: transform;
}
.sws-mp__layer img {
	display: block;
	width: 100%;
	height: auto;
	max-width: none;
}
.sws-mp__shape {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	background: var(--sws-layer-c, #f5c542);
}
.sws-mp__shape--circle {
	border-radius: 50%;
}
.sws-mp__shape--ring {
	border-radius: 50%;
	background: transparent;
	border: 14px solid var(--sws-layer-c, #4f6df5);
	box-sizing: border-box;
}
.sws-mp__shape--square {
	border-radius: 22%;
}
.sws-mp__shape--blob {
	border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
}
.sws-mp__text {
	display: block;
	width: max-content;
	color: var(--sws-layer-c, #111);
	font-weight: 800;
	line-height: 1;
	white-space: nowrap;
}

/* Filterable Gallery */
.sws-fg__filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: 28px;
}
.sws-fg__btn {
	padding: 9px 20px;
	border: 1px solid rgba(127, 127, 127, 0.35);
	border-radius: 50px;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
	transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.sws-fg__btn.is-active {
	border-color: transparent;
	background: #111;
	color: #fff;
}
.sws-fg__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}
.sws-fg__item {
	--sws-fg-overlay: rgba(0, 0, 0, 0.45);
	position: relative;
	display: block;
	aspect-ratio: 1 / 0.75;
	overflow: hidden;
	border-radius: 12px;
	color: #fff;
	text-decoration: none;
}
.sws-fg__item.is-hidden {
	display: none;
}
.sws-fg__item img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.sws-fg__item::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--sws-fg-overlay);
	opacity: 0;
	transition: opacity 0.35s;
}
.sws-fg__item:hover img {
	transform: scale(1.06);
}
.sws-fg__item:hover::after,
.sws-fg__item:focus-visible::after {
	opacity: 1;
}
.sws-fg__title {
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 14px;
	z-index: 1;
	font-weight: 600;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.35s, transform 0.35s;
}
.sws-fg__item:hover .sws-fg__title,
.sws-fg__item:focus-visible .sws-fg__title {
	opacity: 1;
	transform: none;
}

/* Gradient Text */
.sws-gt {
	--sws-gt-angle: 90deg;
	--sws-gt-1: #ff5f6d;
	--sws-gt-2: #ffc371;
	--sws-gt-3: #7f5af0;
	--sws-gt-x: 0px;
	margin: 0;
	font-size: clamp(2.2rem, 6vw, 4.5rem);
	line-height: 1.1;
	background-image: linear-gradient(var(--sws-gt-angle), var(--sws-gt-1), var(--sws-gt-2), var(--sws-gt-3), var(--sws-gt-1));
	background-size: 200% 100%;
	background-repeat: repeat-x;
	background-position: var(--sws-gt-x) 50%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}
.sws-gt a {
	color: inherit;
	text-decoration: none;
}
.sws-gt--shine .sws-gt {
	--sws-gt-base: #9a9a9a;
	--sws-gt-shine: #fff;
	--sws-gt-x: 150%;
	background-image: linear-gradient(var(--sws-gt-angle), var(--sws-gt-base) 0%, var(--sws-gt-base) 42%, var(--sws-gt-shine) 50%, var(--sws-gt-base) 58%, var(--sws-gt-base) 100%);
	background-size: 250% 100%;
	background-repeat: no-repeat;
}
