/* TshirtOn Hero Slider */
.tson-hero {
	--hero-h: 560px;
	--hero-bg: #8c8c8c;
	--hero-fg: #fff;
	--hero-r: 24px;
	position: relative;
	height: var(--hero-h);
	overflow: hidden;
	border-radius: var(--hero-r);
	background-color: var(--hero-bg);
	color: var(--hero-fg);
	font-family: Inter, system-ui, sans-serif;
	isolation: isolate;
}

/* Film-grain texture. */
.tson-hero--grain::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	opacity: .55;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.2 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.tson-hero__track {
	position: relative;
	z-index: 1;
	height: 100%;
}

.tson-hero__slide {
	position: absolute;
	inset: 0;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	align-items: center;
	gap: 24px;
	padding: 40px 56px 84px;
	opacity: 0;
	visibility: hidden;
	transition: opacity .6s ease, visibility 0s linear .6s;
}

.tson-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity .6s ease, visibility 0s;
}

/* Text */
.tson-hero__copy {
	position: relative;
	z-index: 2;
	min-width: 0;
}

.tson-hero__bar {
	display: block;
	width: min(240px, 60%);
	height: 8px;
	margin-bottom: 18px;
	background: var(--accent);
}

.tson-hero__eyebrow {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--accent);
}

.tson-hero .tson-hero__title {
	margin: 0;
	font-family: inherit;
	font-size: clamp(40px, 6.2vw, 88px);
	font-weight: 900;
	line-height: .92;
	letter-spacing: -.01em;
	text-transform: uppercase;
	color: var(--hero-fg);
	text-wrap: balance;
}

.tson-hero__text {
	max-width: 380px;
	margin: 20px 0 0;
	font-size: 17px;
	line-height: 1.45;
	color: var(--hero-fg);
	opacity: .92;
}

.tson-hero .tson-hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 28px;
	padding: 16px 30px;
	background: #0a0a0a;
	color: #fff !important;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-decoration: none !important;
	transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.tson-hero .tson-hero__btn:hover,
.tson-hero .tson-hero__btn:focus-visible {
	background: var(--accent);
	color: #0a0a0a !important;
	transform: translateY(-2px);
	outline: none;
}

/* Photo */
.tson-hero__media {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	min-height: 0;
}

.tson-hero .tson-hero__img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	margin: 0;
	object-fit: contain;
}

/* Framed: a tilted photo with a neon block behind it and a slight colour-split edge. */
.tson-hero__media--framed {
	padding: 12px 18px 12px 30px;
}

.tson-hero__media--framed::before {
	content: "";
	position: absolute;
	inset: 6% 2% 10% 12%;
	z-index: -1;
	border-radius: 22px;
	background: var(--accent);
	transform: rotate(4deg);
}

.tson-hero .tson-hero__media--framed .tson-hero__img {
	max-height: 92%;
	border-radius: 18px;
	object-fit: cover;
	transform: rotate(-3deg);
	box-shadow: -6px 0 0 rgba(255, 43, 214, .55), 6px 0 0 rgba(43, 228, 255, .55), 0 24px 50px -20px rgba(0, 0, 0, .6);
}

/* Cut-out: neon outline around a transparent PNG. */
.tson-hero .tson-hero__media--cutout .tson-hero__img {
	max-height: 104%;
	align-self: flex-end;
	filter: drop-shadow(5px 0 0 var(--accent)) drop-shadow(-5px 0 0 var(--accent)) drop-shadow(0 5px 0 var(--accent)) drop-shadow(0 -5px 0 var(--accent)) drop-shadow(-10px 0 0 rgba(43, 228, 255, .6)) drop-shadow(10px 0 0 rgba(255, 43, 214, .6));
}

.tson-hero__media--cutout {
	align-items: flex-end;
	margin-bottom: -84px;
}

/* Entrance motion for the active slide. */
.tson-hero__slide.is-active .tson-hero__bar {
	animation: tson-hero-bar .7s cubic-bezier(.2, .8, .2, 1) both;
}

.tson-hero__slide.is-active .tson-hero__eyebrow,
.tson-hero__slide.is-active .tson-hero__title,
.tson-hero__slide.is-active .tson-hero__text,
.tson-hero__slide.is-active .tson-hero__btn {
	animation: tson-hero-up .7s cubic-bezier(.2, .8, .2, 1) both;
}

.tson-hero__slide.is-active .tson-hero__title { animation-delay: .08s; }
.tson-hero__slide.is-active .tson-hero__text { animation-delay: .16s; }
.tson-hero__slide.is-active .tson-hero__btn { animation-delay: .24s; }

.tson-hero__slide.is-active .tson-hero__media {
	animation: tson-hero-in .8s cubic-bezier(.2, .8, .2, 1) both, tson-hero-glitch .45s steps(2, end) .55s 1;
}

@keyframes tson-hero-bar {
	from { transform: scaleX(0); transform-origin: left; }
	to { transform: scaleX(1); transform-origin: left; }
}

@keyframes tson-hero-up {
	from { opacity: 0; transform: translateY(26px); }
	to { opacity: 1; transform: none; }
}

@keyframes tson-hero-in {
	from { opacity: 0; transform: translateX(60px); }
	to { opacity: 1; transform: none; }
}

@keyframes tson-hero-glitch {
	0% { transform: translate(0); }
	25% { transform: translate(-4px, 2px); clip-path: inset(10% 0 55% 0); }
	50% { transform: translate(4px, -2px); clip-path: inset(50% 0 10% 0); }
	75% { transform: translate(-2px, 0); clip-path: none; }
	100% { transform: none; }
}

/* Counter and arrows */
.tson-hero__nav {
	position: absolute;
	left: 56px;
	bottom: 26px;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--hero-fg);
}

.tson-hero__count {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-right: 6px;
	font-size: 17px;
	font-weight: 800;
}

.tson-hero__now {
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--tson-hero-accent, #b6ff2e);
	color: #0a0a0a;
}

.tson-hero__arrow {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 2px solid currentColor;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}

.tson-hero__arrow:hover,
.tson-hero__arrow:focus-visible {
	background: var(--hero-fg);
	color: #0a0a0a;
	outline: none;
}

@media (max-width: 1024px) {
	.tson-hero__slide {
		padding: 32px 32px 80px;
	}

	.tson-hero__nav {
		left: 32px;
	}
}

/* Phones: photo on top, words underneath. */
@media (max-width: 767px) {
	.tson-hero__slide {
		grid-template-columns: 1fr;
		grid-template-rows: minmax(0, 1fr) auto;
		align-items: end;
		gap: 10px;
		padding: 20px 20px 76px;
	}

	.tson-hero__media {
		order: -1;
		height: 100%;
	}

	.tson-hero__media--cutout {
		margin-bottom: 0;
	}

	.tson-hero__bar {
		height: 6px;
		margin-bottom: 12px;
	}

	.tson-hero .tson-hero__title {
		font-size: clamp(34px, 11vw, 48px);
	}

	.tson-hero__text {
		margin-top: 10px;
		font-size: 15px;
	}

	.tson-hero .tson-hero__btn {
		margin-top: 14px;
		padding: 13px 22px;
		font-size: 14px;
	}

	.tson-hero__nav {
		left: 20px;
		bottom: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tson-hero__slide,
	.tson-hero__slide * {
		animation: none !important;
		transition: none !important;
	}
}
