/* ==========================================================================
   D’oba — Home sections (also reused by Shop, Our Story and flavour pages)
   ========================================================================== */

/* Hero ------------------------------------------------------------------ */
.hero {
	background: var(--c-pink);
	padding-top: var(--header-h);
}

.hero__backdrop {
	position: absolute;
	inset: 0 0 calc(var(--band-h) / 2);
	overflow: hidden;
	pointer-events: none;
}

.hero__glow {
	position: absolute;
	inset: -20% -10% auto auto;
	width: 70%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(255, 214, 232, 0.55), rgba(255, 214, 232, 0));
}

.hero__arch {
	position: absolute;
	left: 50%;
	bottom: 0;
	width: min(88vw, 520px);
	height: min(52%, 540px);
	transform: translateX(-50%);
	border-radius: 999px 999px 0 0 / 70% 70% 0 0;
	background: #d48aae;
	box-shadow: inset 0 0 0 clamp(10px, 1.2vw, 18px) rgba(255, 250, 245, 0.16);
}

.hero__inner {
	position: relative;
	display: grid;
	grid-template-rows: auto 1fr;
	min-height: calc(min(100svh, 980px) - var(--header-h) - var(--band-h) / 2);
}

.hero__copy {
	position: relative;
	z-index: 2;
	padding-top: clamp(1.25rem, 4vw, 3rem);
	text-align: center;
}

.hero__title {
	font-size: clamp(2.3rem, 9.4vw, 3.9rem);
	line-height: 0.92;
	letter-spacing: -0.005em;
}

.hero__line {
	display: block;
}

.hero__line:first-child {
	font-weight: 600;
}

.hero__line--italic {
	font-style: italic;
	font-weight: 750;
}

.hero__subtitle {
	margin-top: 0.85rem;
	font-family: var(--f-display);
	font-weight: 520;
	font-variation-settings: "SOFT" 100;
	font-size: clamp(0.95rem, 0.85rem + 0.55vw, 1.4rem);
	letter-spacing: 0.035em;
	text-transform: uppercase;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1rem 1.75rem;
	margin-top: clamp(1.4rem, 1rem + 1.5vw, 2.5rem);
}

.hero__note {
	display: none;
	color: var(--c-brown);
	font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.75rem);
}

.hero__figure {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	margin-top: 1rem;
	margin-inline: calc(var(--gutter) * -1);
}

.hero__img {
	width: min(100%, 560px);
	max-height: min(56svh, 620px);
	object-fit: contain;
	object-position: 50% 100%;
	filter: drop-shadow(0 30px 40px rgba(74, 20, 44, 0.18));
}

.hero__band {
	--band-h: clamp(40px, 1.8rem + 1.8vw, 62px);
}

.hero__band .band__pattern {
	animation: band-drift 80s linear infinite;
}

@media (min-width: 640px) {
	.hero__note {
		display: block;
		margin-top: 1.25rem;
	}
}

@media (min-width: 1024px) {
	.hero__arch {
		left: 25%;
		width: min(40vw, 600px);
		height: 78%;
	}

	.hero__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
		grid-template-rows: 1fr;
		align-items: center;
		column-gap: clamp(1rem, 2vw, 2.5rem);
	}

	.hero__copy {
		grid-column: 2;
		grid-row: 1;
		padding: 0 0 calc(var(--band-h) * 0.6);
		text-align: left;
	}

	.hero__title {
		font-size: clamp(3.4rem, 0.9rem + 4.1vw, 6rem);
	}

	.hero__line {
		white-space: nowrap;
	}

	.hero__actions {
		justify-content: flex-start;
	}

	.hero__note {
		margin-left: clamp(8rem, 12vw, 14rem);
	}

	.hero__figure {
		grid-column: 1;
		grid-row: 1;
		align-self: end;
		margin: 0;
		justify-content: flex-start;
	}

	.hero__img {
		width: 100%;
		max-width: 720px;
		max-height: calc(min(100svh, 980px) - var(--header-h) - 12px);
	}
}

/* Pick your comfort ------------------------------------------------------ */
.range {
	padding-top: calc(var(--section-y) + var(--band-h) / 2);
}

.range .section-title {
	margin-bottom: clamp(2.25rem, 1.5rem + 3vw, 4rem);
}

.range__grid {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: min(78vw, 330px);
	gap: 1.25rem;
	margin-inline: calc(var(--gutter) * -1);
	padding: 0.75rem var(--gutter) 1.5rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--gutter);
	scrollbar-width: none;
}

.range__grid::-webkit-scrollbar {
	display: none;
}

.range__grid > * {
	scroll-snap-align: start;
}

.range__cta {
	max-width: 1180px;
	margin: clamp(2rem, 1.5rem + 2vw, 3.75rem) auto 0;
}

@media (min-width: 640px) {
	.range__grid {
		grid-auto-flow: row;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: clamp(1.25rem, 2.6vw, 3rem);
		margin-inline: 0;
		padding: 0.75rem 0 0;
		overflow: visible;
	}

	.range__grid--2 {
		grid-template-columns: repeat(2, minmax(0, 380px));
		justify-content: center;
	}
}

/* What is D’oba --------------------------------------------------------- */
.what-is {
	background: var(--c-brown);
	color: var(--c-cream);
}

.what-is__band--top {
	margin-top: calc(var(--band-h) / -2);
}

.what-is__grid {
	display: grid;
	gap: 3.5rem;
	padding-block: calc(var(--section-y) * 0.85);
}

.what-is__title {
	font-size: clamp(3rem, 1.6rem + 6vw, 6.75rem);
	line-height: 0.9;
	color: var(--c-cream);
}

.what-is__text {
	max-width: 34ch;
	margin-top: clamp(1.25rem, 1rem + 1vw, 2rem);
	font-size: var(--fs-lg);
	line-height: 1.55;
}

.what-is__copy .btn {
	margin-top: clamp(1.75rem, 1.25rem + 1.5vw, 2.75rem);
}

.what-is__art {
	position: relative;
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	grid-template-rows: auto auto auto;
	max-width: 560px;
	width: 100%;
	justify-self: center;
}

.what-is__photo {
	max-width: 250px;
	align-self: start;
}

.what-is__photo--one {
	--tilt: -3deg;
	grid-column: 1 / span 7;
	grid-row: 2 / span 2;
	z-index: 1;
}

.what-is__photo--two {
	--tilt: 2.5deg;
	grid-column: 6 / span 7;
	grid-row: 3;
	z-index: 2;
	margin-top: 30%;
	justify-self: end;
}

.what-is__note {
	grid-column: 1 / -1;
	grid-row: 1;
	justify-self: end;
	margin-bottom: 1.25rem;
	color: var(--c-pink-soft);
	font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
	text-align: left;
}

@media (min-width: 900px) {
	.what-is__photo--one {
		grid-row: 1 / span 2;
	}

	.what-is__photo--two {
		grid-row: 2 / span 2;
		margin-top: 40%;
	}

	.what-is__note {
		grid-column: 7 / -1;
		align-self: center;
		margin: 0 -4% 0 0;
		white-space: nowrap;
	}
}

@media (min-width: 900px) {
	.what-is__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: center;
	}

	.what-is__copy {
		padding-left: clamp(0rem, 3vw, 4rem);
	}
}

/* Three ingredients ----------------------------------------------------- */
.ingredients {
	padding-top: calc(var(--section-y) + var(--band-h) / 2);
	padding-bottom: calc(var(--section-y) * 0.8);
}

.ingredients__header {
	text-align: center;
}

.ingredients__lede {
	margin-top: 1.5rem;
	font-size: var(--fs-lg);
	line-height: 1.5;
}

.ingredients__stage {
	position: relative;
	display: grid;
	gap: 1.5rem;
	margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem);
}

.ingredients__teta {
	position: relative;
	justify-self: center;
	width: min(84vw, 460px);
}

.bowl-swap {
	position: relative;
}

.bowl-swap__img {
	width: 100%;
}

.bowl-swap__img--full {
	position: absolute;
	inset: 0;
	transition: opacity 0.9s ease;
}

.js .bowl-swap:not(.is-filled) .bowl-swap__img--full {
	opacity: 0;
}

.bowl-swap.is-filled .bowl-swap__img--empty {
	transition: opacity 0.9s ease 0.3s;
	opacity: 0;
}

.bowl-swap__target {
	position: absolute;
	left: 50%;
	top: 66%;
	width: 2px;
	height: 2px;
}

.bowl-swap.is-landing {
	animation: bowl-bump 0.45s var(--ease-bounce);
}

@keyframes bowl-bump {
	40% {
		transform: translateY(4px) scale(1.012, 0.99);
	}
}

.ingredients__caption {
	margin-top: 0.75rem;
	text-align: center;
	font-size: clamp(1.25rem, 1rem + 0.9vw, 1.9rem);
}

.ingredients__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	order: 2;
}

.ingredient {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.ingredient__art {
	width: min(100%, 150px);
}

.ingredient__name {
	margin-top: 0.4rem;
	font-size: clamp(1.25rem, 1rem + 1.4vw, 2rem);
	line-height: 1;
}

.ingredient__note {
	margin-top: 0.35rem;
	font-size: clamp(0.95rem, 0.85rem + 0.5vw, 1.25rem);
	color: var(--c-brown);
}

.ingredient-fly {
	position: absolute;
	z-index: 5;
	pointer-events: none;
	will-change: transform, opacity;
}

@media (min-width: 900px) {
	.ingredients__stage {
		display: block;
		min-height: 560px;
	}

	.ingredients__teta {
		margin-inline: auto;
		width: clamp(340px, 34vw, 480px);
	}

	.ingredients__list {
		position: absolute;
		inset: 0;
		display: block;
		pointer-events: none;
	}

	.ingredient {
		position: absolute;
		width: clamp(200px, 20vw, 280px);
		pointer-events: auto;
	}

	.ingredient__art {
		width: clamp(150px, 15vw, 220px);
	}

	.ingredient--wheat {
		left: 3%;
		top: 2%;
	}

	.ingredient--dates {
		right: 2%;
		top: 26%;
	}

	.ingredient--ghee {
		left: 7%;
		bottom: 10%;
	}
}

/* Make your D’oba ------------------------------------------------------- */
.prepare {
	padding-bottom: calc(var(--section-y) * 0.9);
	background: var(--c-coral-deep);
	color: var(--c-cream);
}

/* Soft wavy edge where a coral section meets the next one */
.wave-top-coral::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 0;
	right: 0;
	height: clamp(22px, 1rem + 1.5vw, 44px);
	background: var(--c-coral-deep);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1440v22c-160 14-330 18-520 10S560 14 380 22 110 36 0 26Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1440v22c-160 14-330 18-520 10S560 14 380 22 110 36 0 26Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}

.prepare__band {
	--band-h: clamp(36px, 1.8rem + 1.2vw, 54px);
	margin-top: calc(var(--band-h) / -2);
}

.prepare__header {
	padding-top: var(--section-y);
}

.prepare__title {
	font-size: var(--fs-h2);
	color: var(--c-cream);
}

.prepare__subtitle {
	margin-top: 0.4rem;
	font-family: var(--f-display);
	font-size: var(--fs-lg);
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.method-tabs {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	max-width: 1240px;
	margin-top: clamp(2rem, 1.5rem + 2vw, 3.25rem);
	padding: 4px;
	border: 2px solid var(--c-cream);
	border-radius: var(--r-pill);
}

.method-tabs__tab {
	position: relative;
	z-index: 1;
	min-height: 56px;
	padding: 0.75rem 1rem;
	border: 0;
	background: transparent;
	color: var(--c-cream);
	font-family: var(--f-display);
	font-weight: 650;
	font-variation-settings: "SOFT" 100;
	font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border-radius: var(--r-pill-alt);
	transition: color 0.3s ease;
}

.method-tabs__tab[aria-selected="true"] {
	color: var(--c-coral-deep);
}

.method-tabs__thumb {
	position: absolute;
	top: 4px;
	bottom: 4px;
	left: 4px;
	width: calc(50% - 4px);
	border-radius: var(--r-pill-alt);
	background: var(--c-cream);
	transition: transform 0.5s var(--ease-bounce), border-radius 0.5s ease;
}

.method-tabs[data-active="1"] .method-tabs__thumb {
	transform: translateX(100%);
	border-radius: var(--r-pill);
}

.method-panel {
	margin-top: clamp(1.5rem, 1rem + 2vw, 3rem);
}

.method-panel:focus-visible {
	outline-offset: 8px;
}

.steps {
	display: grid;
}

.step {
	position: relative;
	display: grid;
	gap: 1.25rem;
	align-items: center;
	padding-block: clamp(2rem, 1.5rem + 2.5vw, 3.75rem);
}

.step + .step::before {
	content: "";
	position: absolute;
	top: 0;
	left: 2%;
	right: 2%;
	height: 6px;
	background: var(--c-cream);
	opacity: 0.9;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 6' preserveAspectRatio='none'%3E%3Cpath d='M2 3.4C200 2 420 4.2 640 3s380-1.6 556 .6' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 6' preserveAspectRatio='none'%3E%3Cpath d='M2 3.4C200 2 420 4.2 640 3s380-1.6 556 .6' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}

.step__copy {
	display: flex;
	align-items: flex-start;
	gap: clamp(1rem, 0.5rem + 2vw, 2.25rem);
}

.step__num {
	flex: none;
	min-width: 1.35em;
	font-size: clamp(3.4rem, 2.4rem + 4vw, 6rem);
	font-weight: 500;
	line-height: 0.8;
}

.step__text {
	max-width: 32ch;
	padding-top: 0.2em;
	font-family: var(--f-display);
	font-weight: 430;
	font-variation-settings: "SOFT" 100;
	font-size: var(--fs-lg);
	line-height: 1.35;
}

/* Line breaks from the approved copy only apply on wide screens */
@media (max-width: 1023px) {
	.step__text br {
		display: none;
	}
}

.step__art {
	position: relative;
	justify-self: center;
	width: min(76vw, 360px);
	margin-top: 1.5rem;
}

.step__art--prep-mix {
	width: min(90vw, 460px);
}

.step__img {
	width: 100%;
}

.step__note {
	position: absolute;
	top: -1.1em;
	right: 6%;
	font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.85rem);
	color: var(--c-cream);
	white-space: nowrap;
}

.step__art--prep-cover .step__note,
.step__art--prep-enjoy .step__note {
	top: auto;
	bottom: -1.2em;
	left: 4%;
	right: auto;
}

.step__timer {
	position: absolute;
	display: grid;
	place-content: center;
	width: 17%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--c-cream);
	color: var(--c-ink);
	font-family: var(--f-display);
	font-size: clamp(0.62rem, 0.5rem + 0.45vw, 0.9rem);
	line-height: 1;
	text-align: center;
}

.step__timer b {
	display: block;
	font-size: 1.45em;
	font-weight: 650;
}

.step__art--prep-cover .step__timer {
	left: 57.4%;
	top: 7.4%;
}

.step__art--prep-stir .step__timer {
	left: 3.6%;
	top: 5.4%;
}

/* Microwave steps (art from the web-dev mockup) */
.step__art--micro-mix {
	width: min(86vw, 420px);
}

.step__art--micro-enjoy {
	width: min(60vw, 250px);
}

.step__art--micro-mix .step__note,
.step__art--micro-stir .step__note {
	right: auto;
	left: 0;
}

.step__art--micro-heat .step__note,
.step__art--micro-again .step__note {
	top: -1.5em;
	right: auto;
	left: 6%;
}

.step__art--micro-enjoy .step__note {
	top: auto;
	bottom: -1.4em;
	left: -8%;
	right: auto;
}

.step__art--micro-heat .step__timer,
.step__art--micro-again .step__timer {
	right: -4%;
	top: -26%;
}

@media (min-width: 768px) {
	.step__art.step__art--micro-mix {
		width: min(100%, 420px);
	}

	.step__art.step__art--micro-stir {
		width: min(100%, 320px);
	}

	.step__art.step__art--micro-enjoy {
		width: min(100%, 260px);
	}

	.step__art--micro-heat .step__timer,
	.step__art--micro-again .step__timer {
		right: -15%;
		top: -24%;
	}
}

.method-soon {
	display: grid;
	justify-items: center;
	gap: 1.25rem;
	padding: clamp(2rem, 1.5rem + 3vw, 4rem) 1rem;
	text-align: center;
}

.method-soon__art {
	width: 200px;
}

.method-soon__text {
	max-width: 34ch;
	font-family: var(--f-display);
	font-size: var(--fs-xl);
	line-height: 1.3;
}

.steps--simple .step {
	padding-block: 1.75rem;
}

@media (min-width: 768px) {
	.step {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: clamp(2rem, 4vw, 5rem);
	}

	.step__art {
		width: min(100%, 360px);
		margin-top: 0;
	}

	.step__art--prep-mix {
		width: min(100%, 470px);
	}

	.step--flip .step__art {
		order: -1;
	}

	.steps--simple .step {
		grid-template-columns: 1fr;
	}
}

/* Story teaser ---------------------------------------------------------- */
.story-teaser {
	padding-top: calc(var(--section-y) + var(--band-h) / 2);
	background: var(--c-pink);
}

.story-teaser__grid {
	display: grid;
	gap: 2rem;
}

.story-teaser__title {
	font-size: var(--fs-h2);
	text-align: center;
}

.story-teaser__title em {
	color: var(--c-brown);
}

.story-teaser__copy {
	display: grid;
	gap: 1.1rem;
	justify-items: start;
	max-width: 36rem;
}

.story-teaser__text {
	font-size: var(--fs-lg);
	line-height: 1.5;
}

.story-teaser__copy .btn {
	margin-top: 1rem;
}

.story-teaser__teta {
	position: relative;
	z-index: 4;
	order: 3;
	width: min(92vw, 440px);
	margin-left: calc(var(--gutter) * -1);
	margin-bottom: calc(var(--band-h) / -1.4);
}

.story-teaser__band {
	--band-h: clamp(38px, 1.8rem + 1.4vw, 56px);
}

@media (min-width: 900px) {
	.story-teaser__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		column-gap: clamp(2rem, 5vw, 6rem);
	}

	.story-teaser__title {
		grid-column: 1 / -1;
	}

	.story-teaser__teta {
		grid-column: 1;
		grid-row: 2;
		order: 0;
		align-self: end;
		width: min(100%, 540px);
	}

	.story-teaser__copy {
		grid-column: 2;
		grid-row: 2;
		align-self: center;
		padding-bottom: 4rem;
	}
}

/* Come sit with us ------------------------------------------------------ */
.community {
	padding-top: calc(var(--section-y) + var(--band-h) / 2);
	padding-bottom: calc(var(--section-y) + 3rem);
}

.community__header {
	display: grid;
	justify-items: center;
	gap: 0.4rem;
	text-align: center;
}

.community__handle {
	font-family: var(--f-display);
	font-weight: 600;
	font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.6rem);
	letter-spacing: 0.04em;
	text-decoration: none;
}

.community__handle:hover {
	text-decoration: underline;
}

.community__lede {
	max-width: 46ch;
	margin-top: 1rem;
	font-size: var(--fs-lg);
	line-height: 1.5;
}

.mosaic {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-auto-rows: clamp(150px, 44vw, 240px);
	gap: clamp(0.75rem, 1.4vw, 1.25rem);
	margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.mosaic__item {
	position: relative;
	overflow: hidden;
	border-radius: var(--r-card);
	background: var(--c-cream);
}

.mosaic__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s var(--ease-out);
}

.mosaic__item:hover .mosaic__img {
	transform: scale(1.04);
}

.mosaic__item--1 {
	grid-row: span 2;
}

.mosaic__item--4 {
	grid-column: 1 / -1;
}

.mosaic__item--quote {
	display: grid;
	grid-column: 1 / -1;
	place-items: center;
	padding: 1rem;
	background: var(--c-pink);
}

.mosaic__item--quote .teta-quote__text {
	font-size: clamp(1.2rem, 0.9rem + 1.4vw, 2rem);
}

.mosaic__item--quote .teta-quote__by {
	font-size: clamp(1.05rem, 0.9rem + 0.8vw, 1.5rem);
}

@media (min-width: 900px) {
	.mosaic {
		grid-template-columns: 1.15fr 0.8fr 0.8fr 1fr;
		grid-auto-rows: clamp(200px, 17vw, 270px);
	}

	.mosaic__item--1 {
		grid-column: 1;
		grid-row: 1 / span 2;
	}

	.mosaic__item--2 {
		grid-column: 2;
		grid-row: 1;
	}

	.mosaic__item--3 {
		grid-column: 3;
		grid-row: 1;
	}

	.mosaic__item--4 {
		grid-column: 2 / span 2;
		grid-row: 2;
	}

	.mosaic__item--quote {
		grid-column: 4;
		grid-row: 1 / span 2;
		padding: 1.5rem;
	}
}
