/* ==========================================================================
   SO HARD x GARAGE – collab landing page
   ========================================================================== */

.sh-garage-page {
	--shg-green: var(--wp--preset--color--custom-sh-brand, #00FF33);
	--shg-grey: var(--wp--preset--color--custom-sh-grey, #242424);
	--shg-display: var(--wp--preset--font-family--helvetica-neue-lt-pro, "Helvetica Neue LT Pro"), Anton, Impact, "Arial Narrow", sans-serif;
	--shg-pad: clamp(1.25rem, 3vw, 3rem);
	--shg-gap: var(--wp--preset--spacing--xl, 3rem);
}

/* ---- Page background: green fog instead of the video ---- */
.shg-bg {
	position: fixed;
	inset: 0;
	z-index: -1;
	/* Escape the constrained layout the page is rendered in */
	max-width: none !important;
	margin: 0 !important;
	pointer-events: none;
	background:
		radial-gradient(55% 45% at 12% 8%, rgba(0, 255, 51, 0.22), transparent 70%),
		radial-gradient(45% 40% at 92% 48%, rgba(0, 255, 51, 0.14), transparent 70%),
		radial-gradient(70% 55% at 45% 108%, rgba(0, 255, 51, 0.2), transparent 70%),
		#020502;
}

.shg-bg::after {
	content: '';
	position: absolute;
	inset: 0;
	opacity: 0.35;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012' numOctaves='4' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 1  0 0 0 0 0  0 0 0 1.4 -.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	background-size: 900px 900px;
	animation: shg-drift 60s linear infinite;
}

@keyframes shg-drift {
	to { background-position: 900px 900px; }
}

/* ---- Layout ---- */
.sh-garage {
	display: flex;
	flex-direction: column;
	gap: var(--shg-gap);
	line-height: 1.5;
}

.sh-garage p {
	margin: 0;
}

.sh-garage img {
	display: block;
	max-width: 100%;
	height: auto;
}

/* ---- Card (same frame as the rest of the site) ---- */
.shg-card {
	border: 1px solid var(--shg-grey);
	border-radius: 0.75rem;
	padding: 0.2rem;
	box-sizing: border-box;
}

.shg-card__in {
	border-radius: 0.75rem;
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	padding: var(--shg-pad);
	box-sizing: border-box;
}

/* On the page itself the inner panel is green-tinted glass (the age gate stays plain) */
.sh-garage .shg-card__in {
	background: linear-gradient(140deg, rgba(0, 255, 51, 0.13) 0%, rgba(6, 12, 7, 0.42) 40%, rgba(0, 0, 0, 0.45) 100%);
}

.sh-garage .shg-split--flip .shg-card__in {
	background: linear-gradient(220deg, rgba(0, 255, 51, 0.13) 0%, rgba(6, 12, 7, 0.42) 40%, rgba(0, 0, 0, 0.45) 100%);
}

.sh-garage .shg-store .shg-card__in {
	background: linear-gradient(100deg, rgba(0, 255, 51, 0.2) 0%, rgba(6, 12, 7, 0.42) 55%, rgba(0, 0, 0, 0.45) 100%);
}

/* ---- Type ---- */
.shg-eyebrow {
	margin: 0;
	color: var(--shg-green);
	font-size: 0.85rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.shg-h2 {
	margin: 0;
	font-family: var(--shg-display);
	font-size: var(--wp--preset--font-size--large, 3rem);
	font-weight: 700;
	line-height: 0.95;
	text-transform: uppercase;
	text-wrap: balance;
}

.shg-green {
	display: block;
	color: var(--shg-green);
}

.shg-lead {
	font-family: var(--shg-display);
	font-size: var(--wp--preset--font-size--medium, 2rem);
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	text-wrap: balance;
}

/* ---- Buttons ---- */
.shg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: calc(0.667em + 2px) calc(1.333em + 2px);
	border: 1px solid var(--shg-green);
	border-radius: 0.75rem;
	background: var(--shg-green);
	color: #000;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: opacity 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.shg-btn:hover {
	opacity: 0.9;
}

.shg-btn:focus-visible {
	outline: 2px solid var(--shg-green);
	outline-offset: 3px;
}

.shg-btn--ghost {
	border-color: var(--shg-grey);
	background: transparent;
	color: #fff;
}

.shg-btn--ghost:hover {
	border-color: var(--shg-green);
	color: var(--shg-green);
	opacity: 1;
}

/* ---- Hero ---- */
.shg-hero__in {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
	align-items: center;
	gap: var(--shg-pad);
}

.shg-hero__kv {
	order: 2;
	margin: 0;
}

.shg-hero__kv img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 0.6rem;
}

.shg-hero__copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--m, 1.5rem);
}

.shg-hero__title {
	margin: 0;
	font-family: var(--shg-display);
	font-size: var(--wp--preset--font-size--xx-large, 4.5rem);
	font-weight: 700;
	line-height: 0.9;
	text-transform: uppercase;
}

.shg-hero__title i {
	font-style: normal;
}

.shg-hero__title span {
	display: block;
	color: var(--shg-green);
	text-shadow: 0 0 60px rgba(0, 255, 51, 0.45);
}

.shg-hero__sub {
	font-family: var(--shg-display);
	font-size: var(--wp--preset--font-size--medium, 2rem);
	line-height: 1;
	text-transform: uppercase;
}

.shg-hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wp--preset--spacing--s, 1rem);
}

.shg-sticker {
	display: inline-block;
	padding: 0.35em 0.6em 0.25em;
	background: var(--shg-green);
	color: #000;
	font-family: var(--shg-display);
	font-size: var(--wp--preset--font-size--medium, 2rem);
	line-height: 1;
	text-transform: uppercase;
	transform: rotate(-3deg);
}

.shg-zabka {
	width: 150px;
}

.shg-zabka--big {
	width: clamp(180px, 22vw, 320px);
}

/* ---- Ticker ---- */
.shg-ticker {
	overflow: hidden;
	border-block: 1px solid var(--shg-grey);
	padding: 0.9rem 0;
}

.shg-ticker__track {
	display: flex;
	width: max-content;
	animation: shg-ticker 40s linear infinite;
}

.shg-ticker span {
	display: inline-flex;
	align-items: center;
	font-family: var(--shg-display);
	font-size: var(--wp--preset--font-size--medium, 2rem);
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
}

.shg-ticker span::after {
	content: '';
	width: 0.45em;
	height: 0.45em;
	margin: 0 1.25em;
	background: var(--shg-green);
	transform: rotate(45deg);
}

@keyframes shg-ticker {
	to { transform: translateX(-50%); }
}

/* ---- Text + video sections ---- */
.shg-split__in {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: var(--shg-pad);
}

.shg-split--flip .shg-split__media {
	order: -1;
}

.shg-split__copy {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--m, 1.5rem);
	font-size: var(--wp--preset--font-size--small, 1rem);
}

.shg-split__copy > p:not(.shg-eyebrow):not(.shg-lead) {
	max-width: 34em;
	color: rgba(255, 255, 255, 0.78);
}

/* ---- Video (5:4) ---- */
.shg-video {
	position: relative;
	aspect-ratio: 5 / 4;
	overflow: hidden;
	border: 1px solid var(--shg-grey);
	border-radius: 0.6rem;
	background: #000;
}

.shg-video--portrait {
	aspect-ratio: 4 / 5;
	max-width: 30rem;
	margin-inline: auto;
}

.shg-video--landscape {
	aspect-ratio: 4 / 3;
}

.shg-video video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.shg-video--empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0;
	background:
		radial-gradient(60% 60% at 50% 55%, rgba(0, 255, 51, 0.22), transparent 70%),
		#030603;
}

.shg-video__play {
	width: 4.5rem;
	height: 4.5rem;
	border: 1px solid var(--shg-green);
	border-radius: 50%;
	position: relative;
	margin-bottom: 1.5rem;
}

.shg-video__play::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 54%;
	border-style: solid;
	border-width: 0.75rem 0 0.75rem 1.2rem;
	border-color: transparent transparent transparent var(--shg-green);
	transform: translate(-50%, -50%);
}

.shg-video__label {
	font-family: var(--shg-display);
	font-size: var(--wp--preset--font-size--medium, 2rem);
	line-height: 1;
	text-transform: uppercase;
	margin-bottom: 0.35rem;
}

.shg-video__soon {
	color: rgba(255, 255, 255, 0.5);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1;
	text-transform: uppercase;
}

/* ---- Reels ("wspólne melanże") ---- */
.shg-reels {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--l, 2rem);
}

.shg-reels__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--s, 1rem);
}

.shg-reels__profile {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--s, 1rem);
}

.shg-reels__profile > div {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.shg-reels__profile .shg-h2 {
	font-size: var(--wp--preset--font-size--medium, 2rem);
	line-height: 1;
}

/* Story-style ring around the avatar */
.shg-reels__avatar {
	flex-shrink: 0;
	width: 4.5rem;
	height: 4.5rem;
	padding: 3px;
	border-radius: 50%;
	background: conic-gradient(var(--shg-green), #0a5c1c, var(--shg-green));
	box-sizing: border-box;
}

.shg-reels__avatar img {
	width: 100%;
	height: 100%;
	padding: 0.6rem;
	border: 3px solid #000;
	border-radius: 50%;
	background: #000;
	object-fit: contain;
	box-sizing: border-box;
}

.shg-reels__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--s, 1rem);
}

.shg-reel {
	position: relative;
	display: block;
	aspect-ratio: 9 / 16;
	overflow: hidden;
	border: 1px solid var(--shg-grey);
	border-radius: 0.75rem;
	background: #000;
	color: #fff;
	text-decoration: none;
	isolation: isolate;
	transition: border-color 0.2s ease;
}

.shg-reel:hover,
.shg-reel:focus-visible {
	border-color: var(--shg-green);
}

.shg-reel:focus-visible {
	outline: 2px solid var(--shg-green);
	outline-offset: 3px;
}

.sh-garage .shg-reel__media {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.shg-reel:hover .shg-reel__media {
	transform: scale(1.04);
}

/* Non-9:16 artwork: show it whole over a blurred copy of itself */
.shg-reel--contain::before {
	content: '';
	position: absolute;
	inset: -10%;
	z-index: -1;
	background: var(--shg-reel-bg) center / cover;
	filter: blur(24px) brightness(0.6);
}

.sh-garage .shg-reel--contain .shg-reel__media {
	object-fit: contain;
}

.shg-reel__icon {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	width: 1.5rem;
	height: 1.5rem;
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
}

.shg-reel__bar {
	position: absolute;
	inset: auto 0 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 3rem 0.85rem 0.85rem;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
	font-weight: 700;
	line-height: 1;
}

.shg-reel__likes {
	display: flex;
	align-items: center;
	gap: 0.45rem;
}

.shg-reel__hearts {
	position: relative;
	width: 1.5rem;
	height: 1.5rem;
}

.shg-reel__hearts svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	fill: var(--shg-green);
}

/* First heart stays put and beats; the rest float up and fade */
.shg-reel__hearts svg:first-child {
	animation: shg-beat 1.6s ease-in-out infinite;
}

.shg-reel__hearts svg:not(:first-child) {
	opacity: 0;
	animation: shg-float 3.2s ease-out infinite;
}

.shg-reel__hearts svg:nth-child(2) { --shg-x: -0.9rem; animation-delay: 0.2s; }
.shg-reel__hearts svg:nth-child(3) { --shg-x: 1.1rem; animation-delay: 1.3s; }
.shg-reel__hearts svg:nth-child(4) { --shg-x: 0.2rem; animation-delay: 2.3s; }

.shg-reel:nth-child(2n) .shg-reel__hearts svg { animation-duration: 3.8s; }
.shg-reel:nth-child(2n) .shg-reel__hearts svg:first-child { animation-duration: 1.9s; }
.shg-reel:nth-child(3n) .shg-reel__hearts svg:not(:first-child) { animation-duration: 2.8s; }

@keyframes shg-beat {
	0%, 40%, 100% { transform: scale(1); }
	20% { transform: scale(1.25); }
}

@keyframes shg-float {
	0% { opacity: 0; transform: translate(0, 0) scale(0.5); }
	15% { opacity: 1; }
	100% { opacity: 0; transform: translate(var(--shg-x, 0), -7rem) scale(1.1) rotate(12deg); }
}

.shg-reel__cta {
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0;
	transform: translateY(4px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.shg-reel:hover .shg-reel__cta,
.shg-reel:focus-visible .shg-reel__cta {
	opacity: 1;
	transform: none;
}

/* ---- Żabka ---- */
.shg-store__in {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: var(--wp--preset--spacing--l, 2rem);
}

.shg-store__text {
	font-family: var(--shg-display);
	font-size: var(--wp--preset--font-size--medium, 2rem);
	line-height: 1;
	text-transform: uppercase;
	text-wrap: balance;
}

/* ---- Instagram ---- */
.shg-insta {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--l, 2rem);
}

.shg-insta__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--s, 1rem);
}

.shg-insta__head .shg-h2 {
	font-size: var(--wp--preset--font-size--medium, 2rem);
	line-height: 1;
}

.shg-insta__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 328px), 1fr));
	gap: var(--wp--preset--spacing--s, 1rem);
	align-items: start;
}

.shg-insta__item {
	min-width: 0;
	overflow: hidden;
}

.shg-insta__item .instagram-media {
	min-width: 0 !important;
	width: 100% !important;
	margin: 0 !important;
	border-radius: 0.6rem !important;
}

.shg-insta__item blockquote.instagram-media {
	padding: 2rem 1rem;
	text-align: center;
}

.shg-insta__item blockquote.instagram-media a {
	color: var(--shg-green);
}

/* ---- Responsibility note ---- */
.shg-legal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--wp--preset--spacing--s, 1rem);
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.85rem;
	line-height: 1.4;
}

.shg-legal img {
	width: 7.5rem;
}

/* ---- Scroll reveal (only when JS is running) ---- */
.shg-js .sh-garage > section:not(.shg-hero) {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.shg-js .sh-garage > section.is-in {
	opacity: 1;
	transform: none;
}

/* ==========================================================================
   Locked state: SOON + countdown + password
   ========================================================================== */

.sh-garage-locked .sh-garage {
	min-height: 60vh;
	justify-content: center;
}

.shg-soon .shg-card__in {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--wp--preset--spacing--m, 1.5rem);
	padding-block: clamp(3rem, 8vw, 6rem);
	text-align: center;
}

.shg-soon .shg-eyebrow {
	margin: 0;
}

.shg-soon__title {
	margin: var(--wp--preset--spacing--m, 1.5rem) 0 0;
	font-family: var(--shg-display);
	font-size: clamp(3rem, 11vw, 6rem);
	font-weight: 700;
	line-height: 0.85;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	color: #fff;
}

.shg-countdown {
	display: flex;
	gap: clamp(0.75rem, 3vw, 2rem);
}

.shg-countdown__unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 4.5ch;
}

.shg-countdown__unit b {
	font-family: var(--shg-display);
	font-size: var(--wp--preset--font-size--large, 3rem);
	font-variant-numeric: tabular-nums;
	line-height: 1;
	color: #fff;
}

.shg-countdown__unit small {
	margin-top: 0.35rem;
	font-size: 0.85rem;
	text-transform: uppercase;
	color: #8a8a8a;
}

.shg-pass {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	width: 100%;
	max-width: 26rem;
}

.shg-pass input[type="password"] {
	flex: 1 1 12rem;
	padding: 0.85rem 1rem;
	border: 1px solid var(--shg-grey);
	border-radius: 0.75rem;
	background: rgba(0, 0, 0, 0.4);
	color: #fff;
	font: inherit;
}

.shg-pass input[type="password"]:focus {
	border-color: var(--shg-green);
	outline: none;
	box-shadow: inset 0 0 0 1px var(--shg-green);
}

.shg-pass .shg-btn {
	cursor: pointer;
}

/* ==========================================================================
   Age gate
   ========================================================================== */

html:not(.sh-age-ok):has(.shg-gate),
html:not(.sh-age-ok) body.sh-garage-page:not(.sh-garage-locked) {
	overflow: hidden;
}

/* Nothing is shown until age is confirmed */
html:not(.sh-age-ok) .sh-garage-page:not(.sh-garage-locked) .wp-site-blocks {
	visibility: hidden;
}

.shg-gate {
	position: fixed;
	inset: 0;
	z-index: 1000000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--wp--preset--spacing--s, 1rem);
	overflow-y: auto;
	background: #020502;
	line-height: 1.5;
}

.sh-age-ok .shg-gate {
	display: none;
}

.shg-gate__fog {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(50% 45% at 50% 40%, rgba(0, 255, 51, 0.24), transparent 70%),
		radial-gradient(60% 50% at 50% 110%, rgba(0, 255, 51, 0.18), transparent 70%);
}

.shg-gate__card {
	position: relative;
	width: min(100%, 34rem);
	margin: auto;
}

.shg-gate__in {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--wp--preset--spacing--m, 1.5rem);
	padding: clamp(1.5rem, 5vw, 3rem);
	text-align: center;
}

.shg-gate__logo {
	width: 6rem;
	height: auto;
}

.shg-gate__ask,
.shg-gate__denied {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--wp--preset--spacing--m, 1.5rem);
}

.shg-gate__denied[hidden],
.shg-gate__ask[hidden] {
	display: none;
}

.shg-gate__title {
	margin: 0;
	font-family: var(--shg-display);
	font-size: var(--wp--preset--font-size--large, 3rem);
	font-weight: 700;
	line-height: 0.95;
	text-transform: uppercase;
	text-wrap: balance;
}

.shg-gate__text {
	margin: 0;
	max-width: 26em;
	color: rgba(255, 255, 255, 0.78);
}

.shg-gate__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--wp--preset--spacing--s, 1rem);
}

.shg-gate__signs {
	width: 7.5rem;
	height: auto;
}

/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 899px) {
	.shg-hero__in,
	.shg-split__in {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Banner first, then the title */
	.shg-hero__kv {
		order: 0;
	}

	/* Copy first, then the video, in both sections */
	.shg-split--flip .shg-split__media {
		order: 0;
	}

	.shg-store__in {
		grid-template-columns: minmax(0, 1fr);
		justify-items: start;
	}
}

/* Reels become a swipeable tray on small screens */
@media (max-width: 699px) {
	.shg-reels__grid {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: 62%;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.shg-reels__grid::-webkit-scrollbar {
		display: none;
	}

	.shg-reel {
		scroll-snap-align: start;
	}

	/* No hover on touch: keep the link hint visible */
	.shg-reel__cta {
		opacity: 1;
		transform: none;
	}

	.shg-reels__avatar {
		width: 3.5rem;
		height: 3.5rem;
	}
}

@media (max-width: 480px) {
	.shg-gate__actions .shg-btn {
		flex: 1 1 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.shg-bg::after,
	.shg-ticker__track,
	.shg-reel__hearts svg {
		animation: none;
	}

	.shg-js .sh-garage > section {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
