/* Hero Home — Home page, first <section>. */
.kantan-hero-home {
	position: relative;
	overflow: hidden;
}

.kantan-hero-home__watermark {
	position: absolute;
	top: 52%;
	left: 50%;
	z-index: 0;
	color: transparent;
	font-family: var(--kantan-font-display);
	font-size: clamp(140px, 24vw, 360px);
	line-height: 1;
	white-space: nowrap;
	transform: translate(-50%, -50%) rotate(-4deg);
	pointer-events: none;
	-webkit-text-stroke: 2px rgba(37, 82, 62, 0.14);
}

.kantan-hero-home__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 56px;
	padding-top: 40px;
	padding-bottom: 100px;
}

/* Design bases are 540px + 440px; both are 60px smaller so the hero stays two columns down to ~980px.
   Free space is shared equally, so at 1440px the result is the same as the design. */
.kantan-hero-home__copy {
	display: flex;
	flex: 1 1 480px;
	flex-direction: column;
	gap: 26px;
	min-width: 0;
}

.kantan-hero-home__badge {
	align-self: flex-start;
	padding: 8px 16px;
	border-radius: var(--kantan-radius-pill);
	background: var(--kantan-matcha);
	color: var(--kantan-green);
	font-size: 14px;
	font-weight: 700;
	transform: rotate(-2deg);
}

.kantan-hero-home__title {
	margin: 0;
	color: var(--kantan-green);
	font-family: var(--kantan-font-display);
	font-size: clamp(48px, 7vw, 100px);
	font-weight: 400;
	line-height: 1.02;
}

.kantan-hero-home__highlight {
	display: inline-block;
	padding: 0 14px;
	border-radius: 20px;
	background: var(--kantan-pink);
	transform: rotate(-2deg);
}

.kantan-hero-home__text {
	max-width: 480px;
	margin: 0;
	color: var(--kantan-text);
	font-size: 19px;
	line-height: 1.7;
}

.kantan-hero-home__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.kantan-hero-home__visual {
	display: flex;
	flex: 1 1 380px;
	justify-content: center;
	min-width: 0;
}

.kantan-hero-home__art {
	position: relative;
	width: min(100%, 520px);
	aspect-ratio: 1 / 1;
}

.kantan-hero-home__blob {
	position: absolute;
	inset: 4%;
	border-radius: 46% 54% 52% 48% / 50% 44% 56% 50%;
	background: var(--kantan-pink);
}

.kantan-hero-home__circle {
	position: absolute;
	inset: 14%;
	border-radius: 50%;
	background: #fff;
}

.kantan-hero-home .kantan-hero-home__image {
	position: absolute;
	top: 12%;
	left: 14%;
	width: 80%;
	height: 74%;
	object-fit: contain;
}

.kantan-hero-home__sticker {
	position: absolute;
	padding: 10px 18px;
	border-radius: var(--kantan-radius-pill);
	font-family: var(--kantan-font-heading);
	font-size: 18px;
	font-weight: 700;
	white-space: nowrap;
}

.kantan-hero-home__sticker--1 {
	top: 10%;
	left: 0;
	background: var(--kantan-green);
	color: #fff;
	transform: rotate(-10deg);
}

.kantan-hero-home__sticker--2 {
	right: 0;
	bottom: 6%;
	background: var(--kantan-matcha);
	color: var(--kantan-green);
	transform: rotate(8deg);
}

/* Motion: copy rises in, the logo pops, "meezingen!" wiggles once, stickers float, the blob morphs. */
@media (prefers-reduced-motion: no-preference) {
	.kantan-hero-home__copy > * {
		animation: kantan-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
	}

	.kantan-hero-home__copy > :nth-child(2) {
		animation-delay: 0.08s;
	}

	.kantan-hero-home__copy > :nth-child(3) {
		animation-delay: 0.16s;
	}

	.kantan-hero-home__copy > :nth-child(4) {
		animation-delay: 0.24s;
	}

	.kantan-hero-home__art {
		animation: kantan-pop 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s backwards;
	}

	.kantan-hero-home__highlight {
		animation: kantan-wiggle 0.9s ease-in-out 1s;
	}

	.kantan-hero-home__sticker--1 {
		animation: kantan-float 4s ease-in-out 1.2s infinite;
	}

	.kantan-hero-home__sticker--2 {
		animation: kantan-float 4.6s ease-in-out 2s infinite;
	}

	.kantan-hero-home__blob {
		animation: kantan-blob 14s ease-in-out infinite alternate;
	}

	/* Editor: no entrance replay on every control change. */
	.elementor-editor-active .kantan-hero-home__copy > *,
	.elementor-editor-active .kantan-hero-home__art,
	.elementor-editor-active .kantan-hero-home__highlight {
		animation: none;
	}
}

@keyframes kantan-wiggle {
	0%,
	100% {
		transform: rotate(-2deg);
	}

	25% {
		transform: rotate(2deg);
	}

	50% {
		transform: rotate(-4deg);
	}

	75% {
		transform: rotate(1deg);
	}
}

@keyframes kantan-blob {
	0% {
		border-radius: 46% 54% 52% 48% / 50% 44% 56% 50%;
	}

	50% {
		border-radius: 54% 46% 44% 56% / 46% 56% 44% 54%;
	}

	100% {
		border-radius: 48% 52% 56% 44% / 54% 48% 52% 46%;
	}
}

@media (max-width: 767px) {
	.kantan-hero-home__inner {
		gap: 40px;
		padding-top: 24px;
		padding-bottom: 64px;
	}

	.kantan-hero-home__text {
		font-size: 17px;
	}

	.kantan-hero-home__sticker {
		font-size: 15px;
	}
}
