/* Wacky Dough — squishy, play-dough styled site. Plain CSS, no build step needed to use it. */

:root {
	--flour: #fff7ec;
	--flour-2: #fdecd6;
	--flour-3: #f8dfc0;
	--cocoa: #3b2318;
	--cocoa-2: #6e5040;
	--cocoa-3: #a48877;
	--tomato: #ff5b4a;
	--tomato-deep: #d93c2d;
	--sunny: #ffc23d;
	--sunny-deep: #e09a10;
	--minty: #3ccb9a;
	--minty-deep: #1e9c72;
	--berry: #8b5cf6;
	--berry-deep: #6537d6;
	--bubble: #ff8cc6;
	--bubble-deep: #e05a9f;
	--sky: #3fb0ff;
	--sky-deep: #1a86d6;
	--line: #3b2318;
	--display: 'Gluten', 'Comic Sans MS', 'Chalkboard SE', cursive;
	--body: 'Lexend', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--radius: 28px;
	--squish: cubic-bezier(0.34, 1.56, 0.64, 1);
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--header-h: 84px;
	/* soft clay grain, used on coloured blobs and panels */
	--grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--flour);
	color: var(--cocoa);
	font-family: var(--body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img,
svg {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

a {
	color: inherit;
}

p,
h1,
h2,
h3,
h4,
ul,
ol {
	margin: 0;
}

ul {
	padding: 0;
	list-style: none;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

::selection {
	background: var(--sunny);
	color: var(--cocoa);
}

:focus-visible {
	outline: 3px solid var(--sky);
	outline-offset: 3px;
	border-radius: 12px;
}

.skip {
	position: absolute;
	left: 16px;
	top: -60px;
	z-index: 100;
	padding: 10px 18px;
	border-radius: 999px;
	background: var(--cocoa);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	transition: top 0.2s;
}

.skip:focus {
	top: 12px;
}

.container {
	width: min(1200px, 100% - 48px);
	margin-inline: auto;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---------- Type ---------- */
.display,
h1,
h2,
h3 {
	font-family: var(--display);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.01em;
}

h1 {
	font-size: clamp(46px, 6.4vw, 92px);
}

h2 {
	font-size: clamp(36px, 4.6vw, 64px);
}

h3 {
	font-size: clamp(24px, 2.3vw, 31px);
}

.lead {
	font-size: clamp(18px, 1.5vw, 21px);
	color: var(--cocoa-2);
	line-height: 1.6;
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 16px 7px 10px;
	border: 2.5px solid var(--line);
	border-radius: 999px;
	background: #fff;
	font-weight: 600;
	font-size: 14.5px;
	box-shadow: 0 4px 0 var(--line);
}

.chip .dot {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--sunny);
	border: 2px solid var(--line);
}

.chip .dot svg {
	width: 13px;
	height: 13px;
	stroke-width: 2.6;
}

.section-head {
	max-width: 760px;
	margin-bottom: clamp(36px, 5vw, 60px);
}

.section-head.center {
	margin-inline: auto;
	text-align: center;
}

.section-head h2 {
	margin-top: 16px;
}

.section-head .lead {
	margin-top: 18px;
}

.wiggle {
	display: inline-block;
	position: relative;
	color: var(--tomato);
}

/* hand-drawn squiggle under a word */
.wiggle::after {
	content: '';
	position: absolute;
	left: 2%;
	right: 2%;
	bottom: -0.12em;
	height: 0.22em;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 C12 2 20 2 30 7 S50 12 60 7 80 2 90 7 110 12 118 5' fill='none' stroke='%23ffc23d' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E")
		center / 100% 100% no-repeat;
	z-index: -1;
}

/* ---------- Dough buttons ---------- */
.btn {
	--c: var(--tomato);
	--c-deep: var(--tomato-deep);
	--t: #fff;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px 28px;
	border: 3px solid var(--line);
	border-radius: 999px;
	background: var(--c);
	color: var(--t);
	font-family: var(--display);
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 6px 0 var(--line);
	transition:
		transform 0.35s var(--squish),
		box-shadow 0.2s;
}

.btn svg {
	width: 20px;
	height: 20px;
	stroke-width: 2.5;
}

.btn:hover {
	transform: translateY(-2px) scale(1.05, 0.95);
}

.btn:active {
	transform: translateY(5px) scale(1.04, 0.92);
	box-shadow: 0 1px 0 var(--line);
	transition-duration: 0.08s;
}

.btn--sunny {
	--c: var(--sunny);
	--t: var(--cocoa);
}

.btn--minty {
	--c: var(--minty);
	--t: var(--cocoa);
}

.btn--white {
	--c: #fff;
	--t: var(--cocoa);
}

.btn--berry {
	--c: var(--berry);
}

.btn--small {
	padding: 11px 20px;
	font-size: 17px;
	box-shadow: 0 4px 0 var(--line);
}

/* ---------- Header ---------- */
.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 50;
	height: var(--header-h);
	display: flex;
	align-items: center;
	transition:
		background 0.3s,
		box-shadow 0.3s,
		height 0.3s;
}

.site-header.is-stuck {
	--header-h: 70px;
	background: rgba(255, 247, 236, 0.92);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: 0 3px 0 rgba(59, 35, 24, 0.12);
}

.header-inner {
	display: flex;
	align-items: center;
	gap: 28px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	font-family: var(--display);
	font-weight: 800;
	font-size: 27px;
	line-height: 1;
	white-space: nowrap;
}

.brand-mark {
	width: 46px;
	height: 46px;
	flex: none;
	transition: transform 0.5s var(--squish);
}

.brand:hover .brand-mark {
	transform: rotate(-12deg) scale(1.1, 0.92);
}

.brand-name span:last-child {
	color: var(--tomato);
}

.nav {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
}

.nav a {
	position: relative;
	padding: 9px 16px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 16px;
	text-decoration: none;
	transition:
		background 0.2s,
		transform 0.3s var(--squish);
}

.nav a:hover {
	background: var(--flour-3);
	transform: scale(1.06, 0.94);
}

.nav a[aria-current='page'] {
	background: var(--sunny);
	box-shadow: inset 0 0 0 2.5px var(--line);
}

.menu-btn {
	display: none;
	width: 50px;
	height: 50px;
	margin-left: auto;
	border: 3px solid var(--line);
	border-radius: 18px;
	background: #fff;
	cursor: pointer;
	box-shadow: 0 4px 0 var(--line);
	place-items: center;
}

.menu-btn svg {
	width: 24px;
	height: 24px;
	stroke-width: 2.6;
}

.menu-btn .i-close {
	display: none;
}

.nav-open .menu-btn .i-open {
	display: none;
}

.nav-open .menu-btn .i-close {
	display: block;
}

/* ---------- Decorative: blobs + sprinkles ---------- */
.blob {
	position: absolute;
	border-radius: 58% 42% 46% 54% / 52% 44% 56% 48%;
	background: var(--c, var(--sunny));
	opacity: var(--o, 0.55);
	animation: morph var(--t, 16s) ease-in-out infinite alternate;
	pointer-events: none;
}

.blob::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: var(--grain);
}

@keyframes morph {
	0% {
		border-radius: 58% 42% 46% 54% / 52% 44% 56% 48%;
		transform: translate(0, 0) rotate(0deg);
	}
	50% {
		border-radius: 40% 60% 62% 38% / 44% 58% 42% 56%;
		transform: translate(var(--mx, 12px), var(--my, -10px)) rotate(8deg);
	}
	100% {
		border-radius: 52% 48% 38% 62% / 60% 40% 60% 40%;
		transform: translate(calc(var(--mx, 12px) * -0.6), calc(var(--my, -10px) * -0.8)) rotate(-6deg);
	}
}

.sprinkles {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	overflow: hidden;
}

.sprinkles i {
	position: absolute;
	width: var(--w, 22px);
	height: 8px;
	border-radius: 99px;
	background: var(--c);
	transform: rotate(var(--r));
	box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
	animation: sprinkle var(--d, 7s) ease-in-out infinite alternate;
	animation-delay: var(--dl, 0s);
}

@keyframes sprinkle {
	to {
		transform: rotate(calc(var(--r) + 40deg)) translateY(-14px);
	}
}

/* ---------- Hero ---------- */
.hero {
	position: relative;
	padding: calc(var(--header-h) + clamp(30px, 6vw, 70px)) 0 clamp(70px, 9vw, 120px);
	overflow: hidden;
	isolation: isolate;
}

.hero .blob {
	z-index: -1;
}

.hero-grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	align-items: center;
	gap: clamp(30px, 4vw, 60px);
}

.hero h1 {
	margin-top: 22px;
	font-size: clamp(44px, 4.9vw, 76px);
	line-height: 1.02;
}

.hero h1 .bounce {
	display: inline-block;
	animation: letterPop 0.9s var(--squish) both;
	animation-delay: calc(var(--i) * 0.035s + 0.1s);
}

.hero h1 .c1 {
	color: var(--tomato);
}

.hero h1 .c2 {
	color: var(--sunny-deep);
}

.hero h1 .c3 {
	color: var(--minty-deep);
}

.hero h1 .c4 {
	color: var(--berry);
}

.hero h1 .c5 {
	color: var(--sky-deep);
}

@keyframes letterPop {
	0% {
		opacity: 0;
		transform: translateY(40px) scale(0.6, 1.4);
	}
	60% {
		opacity: 1;
		transform: translateY(-6px) scale(1.15, 0.85);
	}
	100% {
		transform: none;
	}
}

.hero .lead {
	margin-top: 22px;
	max-width: 560px;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 34px;
}

.hero-note {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 30px;
	font-size: 15px;
	color: var(--cocoa-2);
}

.hero-note a {
	font-weight: 600;
	color: var(--cocoa);
}

.hero-art {
	position: relative;
	aspect-ratio: 1;
	max-width: 620px;
	width: 100%;
	justify-self: center;
}

.hero-art .tv {
	position: absolute;
	inset: 4% 2% 8%;
	width: 96%;
	height: auto;
	animation: floaty 6s ease-in-out infinite;
	filter: drop-shadow(0 30px 30px rgba(59, 35, 24, 0.18));
}

@keyframes floaty {
	50% {
		transform: translateY(-14px) rotate(-1.5deg);
	}
}

.hero-art .plate {
	position: absolute;
	left: 8%;
	right: 8%;
	bottom: 4%;
	height: 13%;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(59, 35, 24, 0.16), transparent);
	animation: shadowPulse 6s ease-in-out infinite;
}

@keyframes shadowPulse {
	50% {
		transform: scale(0.88);
		opacity: 0.6;
	}
}

.mascot {
	position: absolute;
	width: 30%;
	right: -4%;
	bottom: -2%;
	transform-origin: 50% 100%;
	transition: transform 0.6s var(--squish);
	animation: peek 4.5s var(--squish) infinite;
}

.mascot img {
	width: 100%;
	transform: rotate(var(--tilt, 0deg));
	transition: transform 0.5s var(--squish);
}

@keyframes peek {
	0%,
	70%,
	100% {
		transform: scale(1, 1);
	}
	78% {
		transform: scale(1.12, 0.86);
	}
	86% {
		transform: scale(0.94, 1.08) translateY(-10px);
	}
}

/* ---------- Bakery conveyor (under the hero) ---------- */
.conveyor {
	position: relative;
	z-index: 2;
	padding-top: 6px;
	overflow: hidden;
}

.conveyor-track {
	display: flex;
	align-items: flex-end;
	gap: 26px;
	width: max-content;
	padding: 0 13px 4px;
	animation: conveyorRun var(--run, 46s) linear infinite;
}

/* fresh out of the oven: the cookies travel to the right */
@keyframes conveyorRun {
	from {
		transform: translateX(-50%);
	}
	to {
		transform: translateX(0);
	}
}

.cookie {
	--c: var(--sunny);
	--t: var(--cocoa);
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 22px 12px 12px;
	border: 3px solid var(--line);
	border-radius: 999px;
	background: var(--c);
	color: var(--t);
	font-family: var(--display);
	font-weight: 700;
	font-size: clamp(19px, 1.7vw, 24px);
	line-height: 1;
	white-space: nowrap;
	box-shadow: inset 0 -6px 0 rgba(59, 35, 24, 0.14);
	transform-origin: 50% 100%;
	animation: ride 1.6s ease-in-out infinite;
	animation-delay: var(--dl, 0s);
}

/* tiny sprinkles baked on top */
.cookie::after {
	content: '';
	position: absolute;
	inset: 5px 10px auto auto;
	width: 34px;
	height: 14px;
	background:
		radial-gradient(circle, #fff 0 2.2px, transparent 2.6px) 0 0 / 12px 7px,
		radial-gradient(circle, rgba(59, 35, 24, 0.5) 0 2px, transparent 2.4px) 6px 4px / 12px 7px;
	opacity: 0.6;
	pointer-events: none;
}

.cookie:nth-child(3n + 2) {
	border-radius: 24px;
}

.cookie:nth-child(3n) {
	border-radius: 58% 42% 46% 54% / 52% 44% 56% 48%;
}

.cookie i {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 2.5px solid var(--line);
	border-radius: 50%;
	background: #fff;
	color: var(--cocoa);
}

.cookie i svg {
	width: 20px;
	height: 20px;
	stroke-width: 2.4;
}

@keyframes ride {
	0%,
	100% {
		transform: translateY(0) scale(1, 1);
	}
	45% {
		transform: translateY(-5px) scale(0.97, 1.04);
	}
	55% {
		transform: translateY(0) scale(1.04, 0.95);
	}
}

.belt {
	position: relative;
	height: 30px;
	border-block: 3px solid var(--line);
	background: repeating-linear-gradient(90deg, #5a3a2b 0 22px, #3b2318 22px 44px);
	animation: beltRun var(--belt, 0.9s) linear infinite;
	box-shadow: 0 8px 0 rgba(59, 35, 24, 0.18);
}

.belt::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 3px;
	height: 4px;
	background: rgba(255, 255, 255, 0.18);
}

@keyframes beltRun {
	to {
		background-position: 44px 0;
	}
}

/* the oven the cookies roll out of */
.oven {
	position: absolute;
	left: -6px;
	bottom: 0;
	z-index: 3;
	width: clamp(110px, 12vw, 170px);
	height: calc(100% + 26px);
	border: 3px solid var(--line);
	border-left: 0;
	border-radius: 0 34px 0 0;
	background: var(--tomato);
	box-shadow: 6px 0 0 rgba(59, 35, 24, 0.2);
}

.oven::before {
	content: '';
	position: absolute;
	right: 14px;
	top: 18px;
	bottom: 40px;
	width: 46%;
	border: 3px solid var(--line);
	border-radius: 18px;
	background: radial-gradient(circle at 50% 70%, #ffe7a8, #ffb347 55%, #e2552f);
	animation: glowOven 2.4s ease-in-out infinite;
}

.oven::after {
	content: '';
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 12px;
	height: 12px;
	border-radius: 9px;
	background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 18px);
	opacity: 0.35;
}

@keyframes glowOven {
	50% {
		filter: brightness(1.15) saturate(1.2);
	}
}

.steam {
	position: absolute;
	left: clamp(40px, 5vw, 70px);
	top: -40px;
	z-index: 3;
	width: 56px;
	height: 44px;
	color: var(--cocoa-3);
}

.steam path {
	animation: steam 2.8s ease-in-out infinite;
	opacity: 0;
}

.steam path:nth-child(2) {
	animation-delay: 0.9s;
}

.steam path:nth-child(3) {
	animation-delay: 1.8s;
}

@keyframes steam {
	0% {
		opacity: 0;
		transform: translateY(10px);
	}
	40% {
		opacity: 0.8;
	}
	100% {
		opacity: 0;
		transform: translateY(-12px);
	}
}

/* ---------- Sections ---------- */
.section {
	position: relative;
	padding: clamp(90px, 11vw, 150px) 0;
}

.section--cream {
	background: var(--flour-2);
}

/* rolled-dough wavy edges */
.wave {
	position: absolute;
	left: 0;
	width: 100%;
	height: 46px;
	color: var(--fill, var(--flour-2));
	pointer-events: none;
}

.wave--top {
	top: -45px;
}

.wave--bottom {
	bottom: -45px;
	transform: scaleY(-1);
}

/* What we make */
.make-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: clamp(22px, 3vw, 36px);
}

.make-card {
	--c: var(--sunny);
	position: relative;
	overflow: hidden;
	padding: clamp(30px, 4vw, 48px);
	border: 3px solid var(--line);
	border-radius: 42px 42px 42px 14px;
	background: var(--c);
	box-shadow: 10px 10px 0 var(--line);
	transition: transform 0.5s var(--squish);
	isolation: isolate;
}

.make-card:nth-child(2) {
	--c: var(--minty);
	border-radius: 42px 42px 14px 42px;
}

.make-card::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--grain);
}

.make-card:hover {
	transform: rotate(-1deg) scale(1.02, 0.98);
}

.make-card:nth-child(2):hover {
	transform: rotate(1deg) scale(1.02, 0.98);
}

.make-icon {
	display: grid;
	place-items: center;
	width: 74px;
	height: 74px;
	border: 3px solid var(--line);
	border-radius: 26px 26px 26px 10px;
	background: #fff;
	box-shadow: 0 5px 0 var(--line);
}

.make-icon svg {
	width: 36px;
	height: 36px;
	stroke-width: 2.2;
}

.make-card h3 {
	margin-top: 26px;
	font-size: clamp(30px, 3vw, 42px);
}

.make-card p {
	margin-top: 14px;
	font-size: 18px;
	max-width: 440px;
}

.make-card ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 22px;
}

.make-card li {
	padding: 6px 14px;
	border: 2.5px solid var(--line);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.7);
	font-size: 14.5px;
	font-weight: 600;
}

.make-card .peek {
	position: absolute;
	right: 26px;
	top: 22px;
	width: 112px;
	transform: rotate(8deg);
	transition: transform 0.6s var(--squish);
	pointer-events: none;
}

.make-card:hover .peek {
	transform: rotate(-4deg) translateY(-6px) scale(1.05);
}

.make-card .peek--short {
	width: 92px;
	border: 3px solid var(--line);
	border-radius: 20px;
	box-shadow: 5px 5px 0 var(--line);
}

/* ---------- Flagship: Kids Tik TV ---------- */
.flagship {
	position: relative;
	padding: clamp(100px, 12vw, 170px) 0;
	background: var(--sky);
	color: #fff;
	isolation: isolate;
}

.flagship::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(60% 50% at 85% 10%, rgba(255, 255, 255, 0.28), transparent 70%),
		radial-gradient(50% 60% at 0% 100%, rgba(26, 134, 214, 0.55), transparent 70%),
		var(--grain);
}

.flagship .wave {
	--fill: var(--sky);
}

.flagship-grid {
	display: grid;
	grid-template-columns: 1.25fr 1fr;
	align-items: center;
	gap: clamp(34px, 5vw, 70px);
}

.flagship .chip {
	color: var(--cocoa);
}

.flagship h2 {
	margin-top: 18px;
	font-size: clamp(44px, 5.4vw, 76px);
	text-shadow: 0 4px 0 var(--sky-deep);
}

.flagship .lead {
	margin-top: 18px;
	color: rgba(255, 255, 255, 0.95);
}

.ticks {
	display: grid;
	gap: 12px;
	margin-top: 26px;
}

.ticks li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	font-size: 17px;
	line-height: 1.5;
}

.ticks .tick {
	flex: none;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	margin-top: -1px;
	border: 2.5px solid var(--line);
	border-radius: 50%;
	background: var(--sunny);
	color: var(--cocoa);
}

.ticks .tick svg {
	width: 15px;
	height: 15px;
	stroke-width: 3;
}

.flagship-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 20px;
	margin-top: 32px;
}

.flagship-actions .small {
	font-size: 14.5px;
	color: rgba(255, 255, 255, 0.85);
}

/* TV mock-up */
.tv-mock {
	position: relative;
}

.tv-body {
	position: relative;
	padding: 16px;
	border: 3px solid var(--line);
	border-radius: 30px;
	background: #2b1a12;
	box-shadow:
		12px 12px 0 var(--line),
		inset 0 0 0 4px #4a3024;
}

.tv-stand {
	width: 34%;
	height: 22px;
	margin: 0 auto;
	border: 3px solid var(--line);
	border-top: 0;
	border-radius: 0 0 20px 20px;
	background: #4a3024;
}

.screen {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 16px;
	background: linear-gradient(160deg, #fff2df, #ffe1ec 55%, #e7e0ff);
	color: var(--cocoa);
	container-type: inline-size;
	display: grid;
	grid-template-columns: 27% 1fr 23%;
	gap: 2.4cqw;
	padding: 3cqw;
}

.screen-bg {
	position: absolute;
	inset: -10%;
	z-index: 0;
	pointer-events: none;
}

.screen-bg img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: blur(22px) saturate(1.25);
	opacity: 0.45;
	transition: opacity 0.6s;
}

.screen-bg img.is-out {
	opacity: 0;
}

.screen > :not(.screen-bg) {
	position: relative;
	z-index: 1;
}

.app-side {
	display: flex;
	flex-direction: column;
	gap: 1.4cqw;
	min-width: 0;
}

.app-logo {
	display: flex;
	align-items: center;
	gap: 1.2cqw;
	font-family: var(--display);
	font-weight: 800;
	font-size: 3.1cqw;
	line-height: 1;
	white-space: nowrap;
}

.app-logo i {
	display: grid;
	place-items: center;
	width: 4.4cqw;
	height: 4.4cqw;
	border-radius: 1.4cqw;
	background: var(--tomato);
	color: #fff;
	font-style: normal;
}

.app-logo i svg {
	width: 2.6cqw;
	height: 2.6cqw;
	fill: #fff;
	stroke: none;
}

.app-logo b {
	color: var(--tomato);
}

.cats {
	display: grid;
	gap: 0.6cqw;
	margin-top: 0.8cqw;
}

.cats li {
	display: flex;
	align-items: center;
	gap: 1cqw;
	padding: 0.8cqw 1.2cqw;
	border-radius: 1.6cqw;
	font-size: 1.85cqw;
	font-weight: 600;
	line-height: 1.1;
	transition:
		background 0.3s,
		transform 0.35s var(--squish),
		box-shadow 0.3s;
}

.cats li svg {
	width: 2.2cqw;
	height: 2.2cqw;
	flex: none;
	stroke-width: 2.4;
}

.cats li.is-focus {
	background: var(--sunny);
	transform: scale(1.07, 0.96);
	box-shadow: 0 0 0 0.35cqw var(--line);
}

.now {
	position: relative;
	justify-self: center;
	height: 100%;
	aspect-ratio: 9 / 16;
	overflow: hidden;
	border-radius: 2.4cqw;
	box-shadow:
		0 0 0 0.45cqw var(--line),
		0 1.6cqw 0 0.45cqw rgba(59, 35, 24, 0.25);
}

.now img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition:
		opacity 0.45s,
		transform 0.6s var(--squish);
}

.now img.is-out {
	opacity: 0;
	transform: scale(1.12, 0.9);
}

.now-info {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 6cqw 1.8cqw 1.8cqw;
	background: linear-gradient(transparent, rgba(30, 16, 10, 0.78));
	color: #fff;
}

.now-title {
	font-family: var(--display);
	font-weight: 700;
	font-size: 2.3cqw;
	line-height: 1.05;
}

.now-cat {
	margin-top: 0.4cqw;
	font-size: 1.45cqw;
	opacity: 0.9;
}

.progress {
	height: 0.55cqw;
	margin-top: 1.2cqw;
	border-radius: 9px;
	background: rgba(255, 255, 255, 0.35);
	overflow: hidden;
}

.progress i {
	display: block;
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: var(--sunny);
}

.progress.is-run i {
	animation: progress var(--dur, 3.2s) linear forwards;
}

@keyframes progress {
	to {
		width: 100%;
	}
}

.now-like {
	position: absolute;
	right: 1.4cqw;
	top: 1.4cqw;
	display: grid;
	place-items: center;
	width: 4.4cqw;
	height: 4.4cqw;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	color: var(--tomato);
}

.now-like svg {
	width: 2.4cqw;
	height: 2.4cqw;
	fill: var(--tomato);
	stroke-width: 2;
}

.up-next {
	display: flex;
	flex-direction: column;
	gap: 1.2cqw;
	min-width: 0;
}

.up-next p {
	font-family: var(--display);
	font-weight: 700;
	font-size: 2cqw;
}

.up-next .thumbs {
	display: grid;
	gap: 1.2cqw;
}

.up-next figure {
	position: relative;
	margin: 0;
	display: grid;
	grid-template-columns: 38% 1fr;
	gap: 1cqw;
	align-items: center;
	padding: 0.7cqw;
	border-radius: 1.6cqw;
	background: rgba(255, 255, 255, 0.75);
}

.up-next img {
	width: 100%;
	aspect-ratio: 9 / 16;
	object-fit: cover;
	border-radius: 1cqw;
}

.up-next figcaption {
	font-size: 1.55cqw;
	font-weight: 600;
	line-height: 1.2;
}

.up-next figcaption small {
	display: block;
	margin-top: 0.3cqw;
	font-weight: 400;
	font-size: 1.3cqw;
	color: var(--cocoa-2);
}

.remote {
	position: absolute;
	right: -3%;
	bottom: -12%;
	width: 15%;
	min-width: 64px;
	transform: rotate(14deg);
	filter: drop-shadow(6px 8px 0 rgba(59, 35, 24, 0.35));
	animation: remoteClick 3.2s ease-in-out infinite;
}

@keyframes remoteClick {
	0%,
	80%,
	100% {
		transform: rotate(14deg);
	}
	86% {
		transform: rotate(10deg) translateY(4px) scale(0.97);
	}
}

/* ---------- Games ---------- */
.game-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(20px, 2.6vw, 32px);
}

.game {
	--c: var(--sunny);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 3px solid var(--line);
	border-radius: 34px;
	background: #fff;
	box-shadow: 8px 8px 0 var(--line);
	transition: transform 0.5s var(--squish);
}

.game:nth-child(2) {
	--c: var(--bubble);
}

.game:nth-child(3) {
	--c: var(--minty);
}

.game:hover {
	transform: translateY(-6px) rotate(-1.2deg);
}

.game:nth-child(2):hover {
	transform: translateY(-6px) rotate(1.2deg);
}

.game-cover {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-bottom: 3px solid var(--line);
}

.game-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.9s var(--ease);
}

.game:hover .game-cover img {
	transform: scale(1.07);
}

.game-badge {
	position: absolute;
	left: 14px;
	top: 14px;
	padding: 5px 13px;
	border: 2.5px solid var(--line);
	border-radius: 999px;
	background: var(--c);
	font-weight: 700;
	font-size: 13.5px;
	box-shadow: 0 3px 0 var(--line);
}

.game-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 24px 26px 28px;
}

.game-body h3 {
	font-size: clamp(26px, 2.2vw, 32px);
}

.game-body p {
	margin-top: 10px;
	color: var(--cocoa-2);
	font-size: 16.5px;
}

.game-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: auto;
	padding-top: 20px;
}

.game-tags li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--flour-2);
	font-size: 13.5px;
	font-weight: 600;
}

.game-tags svg {
	width: 15px;
	height: 15px;
	stroke-width: 2.4;
}

/* ---------- Promises ---------- */
.promise-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}

.promise {
	--c: var(--tomato);
	position: relative;
	padding: 34px 26px 30px;
	border: 3px solid var(--line);
	border-radius: 30px;
	background: #fff;
	box-shadow: 0 7px 0 var(--line);
	transition: transform 0.45s var(--squish);
}

.promise:nth-child(2) {
	--c: var(--sunny);
}

.promise:nth-child(3) {
	--c: var(--minty);
}

.promise:nth-child(4) {
	--c: var(--berry);
}

.promise:hover {
	transform: translateY(-4px) scale(1.03, 0.97);
}

.promise-icon {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border: 3px solid var(--line);
	border-radius: 52% 48% 44% 56% / 55% 45% 55% 45%;
	background: var(--c);
	color: var(--cocoa);
	animation: morph 9s ease-in-out infinite alternate;
	--mx: 0px;
	--my: 0px;
}

.promise:nth-child(4) .promise-icon {
	color: #fff;
}

.promise-icon svg {
	width: 30px;
	height: 30px;
	stroke-width: 2.3;
}

.promise h3 {
	margin-top: 22px;
	font-size: 25px;
}

.promise p {
	margin-top: 10px;
	color: var(--cocoa-2);
	font-size: 16px;
}

/* ---------- CTA panel ---------- */
.cta {
	padding: clamp(70px, 9vw, 120px) 0 clamp(110px, 12vw, 160px);
}

.cta-panel {
	position: relative;
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 30px;
	padding: clamp(36px, 5vw, 64px);
	border: 3px solid var(--line);
	border-radius: 48px 48px 48px 18px;
	background: var(--sunny);
	box-shadow: 12px 12px 0 var(--line);
	overflow: hidden;
	isolation: isolate;
}

.cta-panel::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(40% 60% at 100% 0%, rgba(255, 91, 74, 0.35), transparent 70%),
		var(--grain);
}

.cta-panel h2 {
	font-size: clamp(36px, 4.4vw, 60px);
}

.cta-panel p {
	margin-top: 14px;
	font-size: 18.5px;
	max-width: 560px;
}

.cta-mail {
	display: inline-block;
	margin-top: 18px;
	font-family: var(--display);
	font-weight: 700;
	font-size: clamp(21px, 2.6vw, 34px);
	text-decoration-thickness: 3px;
	text-underline-offset: 6px;
}

.cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 26px;
}

.cta-panel .mascot-wave {
	width: clamp(150px, 18vw, 230px);
	animation: wave 3.6s var(--squish) infinite;
	transform-origin: 50% 100%;
}

@keyframes wave {
	0%,
	60%,
	100% {
		transform: rotate(0deg);
	}
	70% {
		transform: rotate(-8deg) scale(1.05, 0.95);
	}
	80% {
		transform: rotate(6deg);
	}
	90% {
		transform: rotate(-3deg);
	}
}

/* ---------- Page heroes (about, contact, legal) ---------- */
.page-hero {
	position: relative;
	padding: calc(var(--header-h) + clamp(40px, 7vw, 80px)) 0 clamp(60px, 8vw, 100px);
	overflow: hidden;
	isolation: isolate;
}

.page-hero .blob {
	z-index: -1;
}

.page-hero h1 {
	margin-top: 22px;
	max-width: 900px;
	font-size: clamp(42px, 5vw, 76px);
}

.page-hero .lead {
	margin-top: 20px;
	max-width: 640px;
}

/* About */
.about-hero-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: clamp(30px, 5vw, 70px);
}

.squircle {
	position: relative;
	border: 3px solid var(--line);
	border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%;
	overflow: hidden;
	box-shadow: 12px 12px 0 var(--line);
	animation: morph 18s ease-in-out infinite alternate;
	--mx: 0px;
	--my: 0px;
}

.squircle img {
	width: 100%;
	aspect-ratio: 16 / 12;
	object-fit: cover;
	transform: scale(1.06);
}

.story {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: clamp(30px, 5vw, 80px);
	align-items: start;
}

.story-body p + p {
	margin-top: 18px;
}

.story-body p {
	font-size: 18.5px;
	color: var(--cocoa-2);
}

.story-body strong {
	color: var(--cocoa);
}

/* recipe card */
.recipe {
	position: relative;
	max-width: 880px;
	margin-inline: auto;
	border: 3px solid var(--line);
	border-radius: 28px;
	background:
		repeating-linear-gradient(180deg, transparent 0 43px, rgba(63, 176, 255, 0.28) 43px 45px),
		#fffdf8;
	box-shadow: 12px 12px 0 var(--line);
	overflow: hidden;
}

.recipe::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: clamp(54px, 9vw, 92px);
	width: 2px;
	background: rgba(255, 91, 74, 0.55);
}

.recipe-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	padding: 24px clamp(26px, 4vw, 44px);
	background: var(--tomato);
	border-bottom: 3px solid var(--line);
	color: #fff;
}

.recipe-head h3 {
	font-size: clamp(26px, 3vw, 38px);
}

.recipe-head span {
	font-family: var(--display);
	font-weight: 700;
	font-size: 18px;
	padding: 6px 14px;
	border: 2.5px solid var(--line);
	border-radius: 999px;
	background: var(--sunny);
	color: var(--cocoa);
	white-space: nowrap;
}

.recipe ol {
	position: relative;
	padding: 18px clamp(26px, 4vw, 44px) 30px clamp(74px, 11vw, 116px);
	list-style: none;
	counter-reset: ing;
}

.recipe li {
	position: relative;
	padding: 10px 0;
	min-height: 45px;
	font-size: 18px;
	line-height: 1.4;
	counter-increment: ing;
}

.recipe li::before {
	content: counter(ing);
	position: absolute;
	left: calc(-1 * clamp(52px, 8vw, 74px));
	top: 6px;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border: 2.5px solid var(--line);
	border-radius: 50%;
	background: var(--sunny);
	font-family: var(--display);
	font-weight: 700;
	font-size: 18px;
}

.recipe li b {
	font-family: var(--display);
	font-size: 22px;
	color: var(--tomato-deep);
}

/* steps */
.steps {
	position: relative;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 26px;
}

.steps-line {
	position: absolute;
	left: 6%;
	right: 6%;
	top: 34px;
	height: 40px;
	color: var(--flour-3);
	z-index: 0;
}

.step {
	position: relative;
	z-index: 1;
	text-align: center;
}

.step-ball {
	display: grid;
	place-items: center;
	width: 92px;
	height: 92px;
	margin: 0 auto;
	border: 3px solid var(--line);
	border-radius: 50%;
	background: var(--c, var(--tomato));
	box-shadow: 0 6px 0 var(--line);
	transition: transform 0.45s var(--squish);
}

.step:hover .step-ball {
	transform: scale(1.12, 0.9);
}

.step-ball svg {
	width: 40px;
	height: 40px;
	stroke-width: 2.2;
}

.step:nth-child(2) {
	--c: var(--sunny);
}

.step:nth-child(3) {
	--c: var(--minty);
}

.step:nth-child(4) {
	--c: var(--sky);
}

.step h3 {
	margin-top: 22px;
	font-size: 30px;
}

.step p {
	margin-top: 8px;
	color: var(--cocoa-2);
	font-size: 16.5px;
}

.platforms {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

.platforms li {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 10px 20px;
	border: 2.5px solid var(--line);
	border-radius: 999px;
	background: #fff;
	font-weight: 600;
	box-shadow: 0 4px 0 var(--line);
}

.platforms svg {
	width: 19px;
	height: 19px;
	stroke-width: 2.3;
	color: var(--tomato);
}

/* ---------- Contact ---------- */
.contact-grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	align-items: center;
	gap: clamp(30px, 5vw, 70px);
}

.big-mail {
	margin-top: 30px;
	padding: 26px 28px;
	border: 3px solid var(--line);
	border-radius: 30px;
	background: #fff;
	box-shadow: 8px 8px 0 var(--line);
}

.big-mail small {
	display: block;
	font-weight: 600;
	color: var(--cocoa-2);
}

.big-mail a.addr {
	display: inline-block;
	margin-top: 6px;
	font-family: var(--display);
	font-weight: 700;
	font-size: clamp(21px, 2.5vw, 34px);
	text-decoration: none;
	line-height: 1.15;
}

.big-mail .row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 18px;
}

.mailbox-art {
	position: relative;
	max-width: 480px;
	justify-self: center;
}

.mailbox-art img {
	animation: floaty 5s ease-in-out infinite;
	filter: drop-shadow(0 24px 24px rgba(59, 35, 24, 0.18));
}

.desk-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 26px;
}

.desk {
	--c: var(--minty);
	padding: 32px;
	border: 3px solid var(--line);
	border-radius: 32px;
	background: var(--c);
	box-shadow: 8px 8px 0 var(--line);
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.desk::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--grain);
}

.desk:nth-child(2) {
	--c: var(--bubble);
}

.desk .make-icon {
	width: 62px;
	height: 62px;
}

.desk .make-icon svg {
	width: 30px;
	height: 30px;
}

.desk h3 {
	margin-top: 20px;
	font-size: 30px;
}

.desk p {
	margin-top: 8px;
	font-size: 17px;
}

.desk a.addr {
	display: inline-block;
	margin-top: 14px;
	font-weight: 700;
	font-size: 19px;
	overflow-wrap: anywhere;
	text-decoration-thickness: 2.5px;
	text-underline-offset: 5px;
}

.topics {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 22px;
}

.topic {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 18px;
	border: 2.5px solid var(--line);
	border-radius: 999px;
	background: #fff;
	font-weight: 600;
	font-size: 15.5px;
	text-decoration: none;
	box-shadow: 0 4px 0 var(--line);
	transition: transform 0.35s var(--squish);
}

.topic:hover {
	transform: translateY(-2px) scale(1.05, 0.95);
}

.topic svg {
	width: 18px;
	height: 18px;
	stroke-width: 2.4;
}

/* note composer */
.note {
	max-width: 820px;
	margin-inline: auto;
	padding: clamp(26px, 4vw, 44px);
	border: 3px solid var(--line);
	border-radius: 34px;
	background: #fff;
	box-shadow: 12px 12px 0 var(--line);
}

.note-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

.field {
	display: grid;
	gap: 8px;
}

.field--full {
	grid-column: 1 / -1;
}

.field label {
	font-weight: 600;
	font-size: 15.5px;
}

.field input,
.field select,
.field textarea {
	width: 100%;
	padding: 14px 18px;
	border: 2.5px solid var(--line);
	border-radius: 18px;
	background: var(--flour);
	font-size: 16.5px;
	transition:
		box-shadow 0.2s,
		background 0.2s;
}

.field textarea {
	min-height: 150px;
	resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
	outline: none;
	background: #fff;
	box-shadow: 0 0 0 4px var(--sunny);
}

.note-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 22px;
}

.note-foot small {
	color: var(--cocoa-2);
	font-size: 14.5px;
	max-width: 420px;
}

/* ---------- Legal ---------- */
.legal-hero {
	padding-bottom: clamp(40px, 5vw, 60px);
}

.legal-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 26px;
}

.legal-meta li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border: 2.5px solid var(--line);
	border-radius: 999px;
	background: #fff;
	font-weight: 600;
	font-size: 15px;
	box-shadow: 0 3px 0 var(--line);
}

.legal-meta svg {
	width: 17px;
	height: 17px;
	stroke-width: 2.4;
	color: var(--tomato);
}

.legal-wrap {
	max-width: 940px;
	padding-bottom: clamp(90px, 11vw, 140px);
}

.paper {
	position: relative;
	padding: clamp(28px, 5vw, 64px) clamp(24px, 5vw, 64px) clamp(28px, 5vw, 56px) clamp(40px, 7vw, 92px);
	border: 3px solid var(--line);
	border-radius: 30px;
	background:
		repeating-linear-gradient(180deg, transparent 0 33px, rgba(63, 176, 255, 0.16) 33px 34px),
		#fffdf8;
	background-position: 0 22px;
	box-shadow: 12px 12px 0 var(--line);
}

.paper::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: clamp(20px, 4vw, 56px);
	width: 2px;
	background: rgba(255, 91, 74, 0.5);
}

.doc {
	font-size: 16.5px;
	line-height: 1.75;
	color: #4a3226;
	overflow-wrap: anywhere;
}

.doc h2 {
	margin: 44px 0 14px;
	font-size: clamp(22px, 2.2vw, 28px);
	line-height: 1.2;
	color: var(--cocoa);
	scroll-margin-top: calc(var(--header-h) + 24px);
}

.doc h2::before {
	content: '';
	display: inline-block;
	width: 0.62em;
	height: 0.62em;
	margin-right: 0.4em;
	border: 2.5px solid var(--line);
	border-radius: 50%;
	background: var(--sunny);
	vertical-align: 0.02em;
}

.doc p + p,
.doc p + ul,
.doc ul + p {
	margin-top: 14px;
}

.doc ul {
	padding-left: 6px;
	display: grid;
	gap: 8px;
}

.doc li {
	position: relative;
	padding-left: 26px;
}

.doc li::before {
	content: '';
	position: absolute;
	left: 4px;
	top: 0.62em;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--tomato);
}

.doc a {
	color: var(--tomato-deep);
	font-weight: 600;
}

.doc .effective {
	display: inline-block;
	margin-bottom: 18px;
	padding: 5px 14px;
	border: 2.5px solid var(--line);
	border-radius: 999px;
	background: var(--minty);
	font-weight: 700;
	font-size: 14.5px;
}

.doc .opening {
	font-size: 18px;
	color: var(--cocoa);
}

.doc-end {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 46px;
	padding: 22px 26px;
	border: 3px solid var(--line);
	border-radius: 24px;
	background: var(--bubble);
	box-shadow: 0 5px 0 var(--line);
}

.doc-end p {
	font-family: var(--display);
	font-weight: 700;
	font-size: 22px;
}

.doc-end .btn {
	max-width: 100%;
	line-height: 1.15;
}

.doc-end .btn svg {
	flex: none;
}

/* reading progress: a dough ball rolling along the top */
.read-bar {
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	z-index: 60;
	height: 6px;
	pointer-events: none;
}

.read-bar i {
	display: block;
	height: 100%;
	width: calc(var(--p, 0) * 100%);
	background: linear-gradient(90deg, var(--sunny), var(--tomato));
	border-radius: 0 6px 6px 0;
}

.read-bar b {
	position: absolute;
	top: -5px;
	left: calc(var(--p, 0) * 100% - 8px);
	width: 16px;
	height: 16px;
	border: 2.5px solid var(--line);
	border-radius: 50%;
	background: var(--sunny);
	transform: rotate(calc(var(--p, 0) * 1440deg));
}

.read-bar b::after {
	content: '';
	position: absolute;
	left: 3px;
	top: 3px;
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: var(--line);
}

/* ---------- 404 ---------- */
.lost {
	min-height: 100vh;
	display: grid;
	place-items: center;
	padding: calc(var(--header-h) + 30px) 0 90px;
	text-align: center;
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.lost .blob {
	z-index: -1;
}

.lost-art {
	position: relative;
	width: min(380px, 80vw);
	margin: 0 auto;
}

.lost-art img {
	animation: squash 2.6s var(--squish) infinite;
	transform-origin: 50% 90%;
}

@keyframes squash {
	0%,
	100% {
		transform: scale(1, 1);
	}
	40% {
		transform: scale(1.08, 0.9);
	}
	60% {
		transform: scale(0.96, 1.05);
	}
}

.dizzy {
	position: absolute;
	z-index: 2;
	left: 50%;
	top: -16%;
	width: 52%;
	height: 34%;
	transform: translateX(-50%);
	animation: spin 4s linear infinite;
}

.dizzy svg {
	position: absolute;
	width: 30px;
	height: 30px;
	fill: var(--sunny);
	stroke: var(--line);
	stroke-width: 1.4;
}

@keyframes spin {
	to {
		transform: translateX(-50%) rotate(360deg);
	}
}

.lost h1 {
	margin-top: 20px;
}

.lost .lead {
	margin: 18px auto 0;
	max-width: 520px;
}

.lost .hero-actions {
	justify-content: center;
}

/* ---------- Footer ---------- */
.site-footer {
	position: relative;
	padding: 80px 0 34px;
	background: var(--cocoa);
	color: #f6e7d7;
	isolation: isolate;
}

.site-footer .wave {
	--fill: var(--cocoa);
}

.site-footer .sprinkles {
	z-index: -1;
	opacity: 0.4;
}

.footer-top {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
	gap: 36px;
	padding-bottom: 46px;
	border-bottom: 2px dashed rgba(246, 231, 215, 0.22);
}

.site-footer .brand {
	color: #fff;
}

.footer-brand p {
	margin-top: 16px;
	max-width: 330px;
	color: #d9c3b1;
	font-size: 15.5px;
}

.site-footer h4 {
	font-family: var(--display);
	font-weight: 700;
	font-size: 21px;
	color: var(--sunny);
	margin-bottom: 14px;
}

.site-footer ul {
	display: grid;
	gap: 9px;
}

.site-footer ul a {
	color: #f6e7d7;
	text-decoration: none;
	font-size: 15.5px;
	transition: color 0.2s;
}

.site-footer ul a:hover {
	color: var(--sunny);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.footer-mail small {
	display: block;
	color: #c9ae99;
	font-size: 13px;
	margin-bottom: 2px;
}

.footer-mail a {
	overflow-wrap: anywhere;
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	padding-top: 26px;
	color: #c9ae99;
	font-size: 14px;
}

/* ---------- Reveal ---------- */
.js [data-reveal] {
	opacity: 0;
	transform: translateY(36px) scale(0.96, 1.04);
	transition:
		opacity 0.7s var(--ease),
		transform 0.9s var(--squish);
	transition-delay: var(--delay, 0s);
}

.js [data-reveal].is-in {
	opacity: 1;
	transform: none;
}

/* toast for copied email */
.toast {
	position: fixed;
	left: 50%;
	bottom: 28px;
	z-index: 80;
	padding: 12px 22px;
	border: 3px solid var(--line);
	border-radius: 999px;
	background: var(--minty);
	font-weight: 700;
	box-shadow: 0 5px 0 var(--line);
	transform: translate(-50%, 140%);
	transition: transform 0.45s var(--squish);
}

.toast.is-on {
	transform: translate(-50%, 0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.promise-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.footer-top {
		grid-template-columns: 1fr 1fr;
	}

	.flagship-grid {
		grid-template-columns: 1fr;
	}

	.tv-mock {
		max-width: 760px;
		margin-inline: auto;
		width: 100%;
	}
}

@media (max-width: 900px) {
	.nav {
		position: fixed;
		inset: 0;
		z-index: -1;
		height: 100vh;
		height: 100dvh;
		overflow-y: auto;
		flex-direction: column;
		justify-content: center;
		gap: 10px;
		padding: 100px 24px 40px;
		background: var(--flour);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-14px);
		transition:
			opacity 0.3s,
			transform 0.4s var(--squish),
			visibility 0.3s;
	}

	.nav a {
		font-family: var(--display);
		font-weight: 700;
		font-size: 34px;
		padding: 10px 26px;
	}

	.nav-open .nav {
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	/* the header's frosted blur would trap the fixed menu panel inside the header bar, so drop it while the menu is open */
	.nav-open .site-header {
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		background: var(--flour);
		box-shadow: none;
	}

	.nav-open {
		overflow: hidden;
	}

	.menu-btn {
		display: grid;
	}

	.header-cta {
		display: none;
	}

	.hero-grid,
	.about-hero-grid,
	.contact-grid,
	.story {
		grid-template-columns: 1fr;
	}

	.hero-art {
		max-width: 480px;
	}

	.flagship .sprinkles {
		display: none;
	}

	/* single column: keep the sprinkles around the artwork, below the text */
	.hero .sprinkles,
	.page-hero .sprinkles {
		top: 58%;
		left: -40%;
	}

	.make-grid,
	.game-grid,
	.desk-grid {
		grid-template-columns: 1fr;
	}

	.game-grid {
		max-width: 520px;
		margin-inline: auto;
	}

	.steps {
		grid-template-columns: 1fr 1fr;
		row-gap: 40px;
	}

	.steps-line {
		display: none;
	}

	.cta-panel {
		grid-template-columns: 1fr;
	}

	.cta-panel .mascot-wave {
		justify-self: end;
		margin-top: -30px;
	}

}

@media (max-width: 600px) {
	body {
		font-size: 16px;
	}

	.container {
		width: calc(100% - 32px);
	}

	.brand {
		font-size: 23px;
	}

	.brand-mark {
		width: 40px;
		height: 40px;
	}

	.promise-grid,
	.note-grid {
		grid-template-columns: 1fr;
	}

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

	.footer-top {
		grid-template-columns: 1fr;
	}

	.site-footer .sprinkles {
		display: none;
	}

	.btn {
		font-size: 18px;
		padding: 14px 22px;
	}

	.make-card .peek {
		width: 80px;
		right: 18px;
	}

	.make-card .peek--short {
		width: 66px;
	}

	.oven {
		width: 84px;
	}

	.paper {
		padding-left: 34px;
	}

	.paper::before {
		left: 18px;
	}

	/* the mock is busy at phone width: hide the side columns and keep the playing video */
	.screen {
		grid-template-columns: 36% 1fr;
	}

	.up-next {
		display: none;
	}

	.cats li {
		font-size: 2.6cqw;
	}

	.remote {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}
