/*
Theme Name: Chop African
Theme URI: https://example.com/
Author: Chop African
Description: The website for the Chop African mobile app, an African food and grocery marketplace for the United States. A one-page home with a scroll-driven video, phone screenshots and room for more pages. Looks like the app: a Cameroonian village home with a thatch roof and a woven reed wall.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chop-african
*/

/* ------------------------------------------------------------------ colours
   Same values as the app. Day colours first, night colours follow the visitor's device setting. */
:root {
	--wall: #E2C79C;
	--surface: #F6E9CF;
	--text: #2A1B10;
	--muted: #5E4630;
	--green: #275A26;
	--green-ink: #275A26;
	--leaf: #7DBB4A;
	--red: #8F321D;
	--yellow: #E9B949;
	--thatch: #B8894A;
	--thatch-dark: #7A5630;
	--accent-ink: #8F321D;
	--line: rgba(122, 86, 48, .4);
	--roof-ink: #2A1B10;
	--phone: #1C120A;
	--shadow: 0 24px 50px -18px rgba(60, 36, 12, .55);
	--weave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='64'%3E%3Cg stroke='%237A5630' fill='none'%3E%3Cpath d='M3 0V64' opacity='.16'/%3E%3Cpath d='M9 0L9.6 64' opacity='.11'/%3E%3Cpath d='M15 0L14.5 64' opacity='.16'/%3E%3Cpath d='M0 30L18 31.2' stroke-width='1.6' opacity='.22'/%3E%3Cpath d='M0 34L18 33.2' opacity='.13'/%3E%3C/g%3E%3C/svg%3E");
	--fringe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='18'%3E%3Cpath d='M0 0H22V6.3L19 18L16 8.1L13 16.2L10 7.2L7 18L4 9L1.5 15.3L0 6.3Z' fill='%23B8894A'/%3E%3Cpath d='M3 0V9M8.5 0V9.9M14.5 0V9M20 0V8.1' stroke='%237A5630' stroke-width='.8' opacity='.55'/%3E%3C/svg%3E");
	--display: "Chaop African", "Alegreya Sans SC", sans-serif;
	--display-green: "Chaop African Green", "Chaop African", "Alegreya Sans SC", sans-serif;
	--display-gold: "Chaop African Color", "Chaop African", "Alegreya Sans SC", sans-serif;
	--wordmark: "Chaop African Banana", "Chaop African", "Alegreya Sans SC", sans-serif;
	--small-caps: "Alegreya Sans SC", "Karla", sans-serif;
	--body: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
	:root {
		--wall: #21160C;
		--surface: #2D1F12;
		--text: #F6E9CF;
		--muted: #CDB58E;
		--green-ink: #8CC66A;
		--accent-ink: #E9B949;
		--thatch: #7A5630;
		--thatch-dark: #4A3320;
		--line: rgba(201, 164, 106, .32);
		--roof-ink: #F6E9CF;
		--phone: #0D0804;
		--shadow: 0 24px 50px -18px rgba(0, 0, 0, .8);
		--weave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='64'%3E%3Cg stroke='%23B8894A' fill='none'%3E%3Cpath d='M3 0V64' opacity='.12'/%3E%3Cpath d='M9 0L9.6 64' opacity='.08'/%3E%3Cpath d='M15 0L14.5 64' opacity='.12'/%3E%3Cpath d='M0 30L18 31.2' stroke-width='1.6' opacity='.17'/%3E%3Cpath d='M0 34L18 33.2' opacity='.1'/%3E%3C/g%3E%3C/svg%3E");
		--fringe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='18'%3E%3Cpath d='M0 0H22V6.3L19 18L16 8.1L13 16.2L10 7.2L7 18L4 9L1.5 15.3L0 6.3Z' fill='%237A5630'/%3E%3Cpath d='M3 0V9M8.5 0V9.9M14.5 0V9M20 0V8.1' stroke='%234A3320' stroke-width='.8' opacity='.7'/%3E%3C/svg%3E");
	}
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
	margin: 0;
	background: var(--wall) var(--weave);
	color: var(--text);
	font: 400 1.0625rem/1.6 var(--body);
	overflow-x: clip;
}
img, svg, video { max-width: 100%; }
img { height: auto; }
a { color: var(--green-ink); text-underline-offset: .18em; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.1; text-wrap: balance; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 10px 16px; background: var(--surface); color: var(--text); }
.skip-link:focus { left: 12px; top: 12px; }
.crop { width: 26px; height: 26px; flex: none; overflow: visible; }

.eyebrow {
	margin: 0 0 10px;
	font: 700 1.05rem/1 var(--small-caps);
	letter-spacing: .12em;
	color: var(--accent-ink);
}

/* ------------------------------------------------------------------ roof (header) */
.roof { position: sticky; top: 0; z-index: 50; }
.home .roof { position: fixed; left: 0; right: 0; }
.admin-bar .roof { top: 32px; }
@media (max-width: 782px) { .admin-bar .roof { top: 46px; } }
.roof__bar {
	background:
		repeating-linear-gradient(92deg, transparent 0 9px, rgba(74, 51, 32, .16) 9px 10px),
		linear-gradient(rgba(74, 51, 32, .28), rgba(74, 51, 32, .1)),
		var(--thatch);
	color: var(--roof-ink);
}
.roof__inner { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.fringe { position: absolute; left: 0; right: 0; top: 100%; height: 18px; background: var(--fringe) repeat-x; pointer-events: none; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; margin-right: auto; }
.brand__hut { width: 44px; height: 38px; flex: none; }
.brand__name { margin: 0; font: 400 1.5rem/1 var(--wordmark); white-space: nowrap; }

.roof__nav .menu, .roof__nav ul { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.roof__nav a { display: block; padding: 8px 12px; border-radius: 999px; color: inherit; font-weight: 700; text-decoration: none; }
.roof__nav a:hover { background: rgba(255, 255, 255, .22); }
.roof__cta {
	position: relative; padding: 9px 18px; border-radius: 999px;
	background: var(--green); color: #F6E9CF; font-weight: 700; text-decoration: none; white-space: nowrap;
	box-shadow: inset 0 0 0 2px rgba(125, 187, 74, .55);
}
.roof__cta:hover { background: #1F4A1C; }
@media (max-width: 720px) {
	.roof__nav { display: none; }
	.brand__name { font-size: 1.25rem; }
	.roof__inner { min-height: 58px; gap: 10px; }
}

/* ------------------------------------------------------------------ buttons */
.btn {
	position: relative; display: inline-flex; align-items: center; justify-content: center;
	min-height: 56px; padding: 14px 34px; border-radius: 999px;
	background: var(--green); color: #F6E9CF; font: 700 1.1rem/1.2 var(--body); text-decoration: none;
	box-shadow: 0 10px 22px -12px rgba(20, 50, 18, .9);
}
.btn::before { content: ""; position: absolute; inset: 3px; border-radius: inherit; border: 2px dashed var(--leaf); opacity: .85; pointer-events: none; }
.btn:hover { background: #1F4A1C; }
.btn--ghost { background: transparent; color: var(--green-ink); box-shadow: none; }
.btn--ghost::before { inset: 0; border-color: currentColor; opacity: .7; }
.btn--ghost:hover { background: rgba(39, 90, 38, .1); }
/* crops growing out of buttons: each crop is anchored by its foot to the button's edge, starts at nothing,
   shoots up past full size, settles, then sways a little. Hovering the button makes them sprout again. */
.btn__crops { position: absolute; inset: 0; pointer-events: none; }
.btn__crops .crop {
	position: absolute; width: 24px; height: 24px; transform-origin: 50% 100%;
	transform: rotate(var(--r, 0deg));
	animation: crop-grow .95s cubic-bezier(.3, 1.5, .5, 1) calc(.25s + var(--n, 0) * 110ms) both,
		crop-sway 3.6s ease-in-out calc(1.3s + var(--n, 0) * 110ms) infinite;
}
.btn__crops--compact .crop { width: 17px; height: 17px; }
.btn:hover .btn__crops .crop, .btn:focus-visible .btn__crops .crop,
.roof__cta:hover .btn__crops .crop, .roof__cta:focus-visible .btn__crops .crop {
	animation: crop-sprout .7s cubic-bezier(.3, 1.6, .5, 1) calc(var(--n, 0) * 55ms) both;
}
/* a button inside a film headline that is not showing yet waits, so its crops grow when it appears */
.scrolly.is-pinned .beat:not(.is-on) .btn__crops .crop { animation: none; transform: rotate(var(--r, 0deg)) scale(0); }
@keyframes crop-grow {
	0% { transform: rotate(var(--r, 0deg)) scale(0); }
	55% { transform: rotate(calc(var(--r, 0deg) + 7deg)) scale(1.28); }
	78% { transform: rotate(calc(var(--r, 0deg) - 4deg)) scale(.92); }
	100% { transform: rotate(var(--r, 0deg)) scale(1); }
}
@keyframes crop-sprout {
	0% { transform: rotate(var(--r, 0deg)) scale(.15); }
	60% { transform: rotate(calc(var(--r, 0deg) - 8deg)) scale(1.5); }
	100% { transform: rotate(var(--r, 0deg)) scale(1.22); }
}
@keyframes crop-sway {
	0%, 100% { transform: rotate(calc(var(--r, 0deg) - 5deg)) scale(1); }
	50% { transform: rotate(calc(var(--r, 0deg) + 5deg)) scale(1.06); }
}

/* ------------------------------------------------------------------ the opening film
   Plain state (no JavaScript, reduced motion, data saver): a still picture, the pitch under it, the headlines in a row.
   Pinned state (.is-pinned, added by scroll-video.js): a tall section whose stage sticks to the screen while the film plays. */
.scrolly { --p: .3; position: relative; background: #150D06; color: #F6E9CF; }
.scrolly__stage { position: relative; }
.scrolly__media { position: relative; background: #150D06; }
.scrolly__poster, .scrolly__video, .scrolly__scene { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 68vh; object-fit: cover; }
.scrolly__canvas, .scrolly__shade, .scrolly__progress, .scrolly__hint, .scrolly__skip, .beat--end { display: none; }

.scrolly__beats { width: min(1120px, 100% - 40px); margin-inline: auto; padding: 34px 0 44px; }
.hero__mark { margin: 0 0 12px; font: 400 clamp(2.9rem, 8vw, 5.8rem)/.95 var(--wordmark); color: #F6E9CF; }
.hero__title { font: 400 clamp(1.5rem, 3.1vw, 2.4rem)/1.15 var(--display-gold); color: #E9B949; margin-bottom: 18px; }
.hero__pitch { max-width: 33em; font-size: 1.18rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 26px 22px; margin: 30px 0 18px; }
.hero__note { margin: 0; color: #E3CFA8; font-size: 1rem; }
.scrolly__captions { display: flex; flex-wrap: wrap; gap: 6px 34px; margin: 34px 0 0; padding: 22px 0 0; list-style: none; border-top: 1px dashed rgba(233, 185, 73, .45); }
.beat--line { font: 400 clamp(1.3rem, 3vw, 2rem)/1.1 var(--display-gold); color: #E9B949; }

.scrolly__flag {
	position: absolute; left: 20px; top: 34px; z-index: 3; max-width: min(430px, calc(100% - 40px)); margin: 0;
	padding: 10px 14px; border-radius: 12px; border: 2px dashed #E9B949;
	background: rgba(21, 13, 6, .82); color: #F6E9CF; font-size: .92rem; line-height: 1.35;
}
.scrolly__flag strong { display: block; font: 700 1rem/1.2 var(--small-caps); letter-spacing: .14em; color: #E9B949; }
.scrolly__frame { display: block; margin-top: 4px; font-variant-numeric: tabular-nums; color: #CDB58E; }

/* the placeholder scene follows --p (0 at the top of the section, 1 at the bottom): a day passes over the home */
.sc-sun { transform-origin: 800px 900px; transform: rotate(calc((var(--p) - .35) * 150deg)); }
.sc-night { opacity: calc((var(--p) - .55) * 3.2); }
.sc-stars { opacity: calc((var(--p) - .68) * 4); }
.sc-dusk { opacity: calc((var(--p) - .55) * 1.5); }
.sc-doorglow { opacity: calc((var(--p) - .6) * 3); }

/* ---- pinned */
.scrolly.is-pinned { height: 460vh; }
.scrolly.is-pinned .scrolly__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.scrolly.is-pinned .scrolly__stage { height: 100%; }
.scrolly.is-pinned .scrolly__media { position: absolute; inset: 0; }
.scrolly.is-pinned .scrolly__poster,
.scrolly.is-pinned .scrolly__canvas,
.scrolly.is-pinned .scrolly__video,
.scrolly.is-pinned .scrolly__scene { display: block; position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; aspect-ratio: auto; object-fit: cover; }
.scrolly.is-pinned .scrolly__canvas { opacity: 0; }
.scrolly.is-pinned.has-film .scrolly__canvas { opacity: 1; }
/* a dark veil under the words: heavier on the left and bottom where the text sits, so it always reads (4.5:1 or better) */
.scrolly.is-pinned .scrolly__shade {
	display: block; position: absolute; inset: 0;
	background:
		linear-gradient(to top, rgba(21, 13, 6, .9), rgba(21, 13, 6, .45) 34%, rgba(21, 13, 6, 0) 62%),
		linear-gradient(to right, rgba(21, 13, 6, .62), rgba(21, 13, 6, 0) 58%);
}
.scrolly.is-pinned .scrolly__beats { position: absolute; inset: 0; width: auto; margin: 0; padding: 0; pointer-events: none; }
.scrolly.is-pinned .scrolly__captions { display: contents; }
.scrolly.is-pinned .beat {
	position: absolute; left: max(20px, calc((100% - 1120px) / 2)); right: max(20px, calc((100% - 1120px) / 2)); bottom: clamp(56px, 11vh, 120px);
	margin: 0; opacity: 0; visibility: hidden; transform: translateY(18px);
	transition: opacity .28s ease-in, transform .28s ease-in, visibility 0s .28s;
}
.scrolly.is-pinned .beat.is-on { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity .5s ease-out, transform .5s ease-out, visibility 0s; }
.scrolly.is-pinned .beat--hero { max-width: 640px; right: auto; }
.scrolly.is-pinned .beat--line { font-size: clamp(2.6rem, 8.2vw, 6.6rem); line-height: 1; }
.scrolly.is-pinned .beat--end { display: block; }
.beat__big { margin: 0 0 10px; font: 400 clamp(2.6rem, 8.2vw, 6.6rem)/1 var(--display-gold); color: #E9B949; }
.beat__small { font-size: 1.25rem; margin-bottom: 30px; }

.scrolly.is-pinned .scrolly__hint {
	display: flex; flex-direction: column; align-items: center; gap: 8px;
	position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); margin: 0;
	font: 700 .95rem/1 var(--small-caps); letter-spacing: .2em; color: #F6E9CF; transition: opacity .3s;
}
.scrolly__hint span { width: 2px; height: 26px; background: linear-gradient(#E9B949, rgba(233, 185, 73, 0)); animation: hint 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes hint { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.scrolly.is-moving .scrolly__hint { opacity: 0; }
.scrolly.is-moving .scrolly__hint span { animation: none; }
.scrolly.is-pinned .scrolly__skip {
	display: inline-flex; align-items: center; min-height: 44px; position: absolute; right: 20px; bottom: 18px; padding: 8px 16px; border-radius: 999px;
	background: rgba(21, 13, 6, .6); color: #F6E9CF; font-weight: 700; font-size: .95rem; text-decoration: none;
	border: 1px solid rgba(246, 233, 207, .45);
}
.scrolly__skip:hover { background: rgba(21, 13, 6, .85); }
.scrolly.is-pinned .scrolly__progress { display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(246, 233, 207, .18); }
.scrolly__progress span { display: block; height: 100%; background: #E9B949; transform: scaleX(0); transform-origin: left; }

/* ---- pinned, on a phone held upright: the film fills the top of the screen and the words sit on the wall under it */
@media (max-width: 820px) and (orientation: portrait) {
	.scrolly.is-pinned .scrolly__media { inset: 0 0 auto 0; height: min(125vw, 47svh); }
	.scrolly.is-pinned .scrolly__shade { background: linear-gradient(to top, #150D06, rgba(21, 13, 6, 0) 26%); }
	.scrolly.is-pinned .scrolly__beats { inset: min(125vw, 47svh) 0 0 0; background: var(--weave), #150D06; }
	.scrolly.is-pinned .beat { left: 20px; right: 20px; top: 14px; bottom: auto; }
	.scrolly.is-pinned .beat--line, .scrolly.is-pinned .beat--end { top: clamp(30px, 8svh, 84px); }
	.scrolly.is-pinned .beat--line, .beat__big { font-size: clamp(2.6rem, 13vw, 4rem); }
	.hero__mark { font-size: clamp(2.5rem, 12.5vw, 3.4rem); margin-bottom: 8px; }
	.hero__title { font-size: 1.32rem; margin-bottom: 10px; }
	.scrolly.is-pinned .hero__pitch { font-size: 1rem; line-height: 1.45; margin-bottom: 0; }
	.scrolly.is-pinned .hero__actions { margin: 24px 0 0; }
	.scrolly.is-pinned .hero__actions .btn--light, .scrolly.is-pinned .hero__note, .scrolly.is-pinned .scrolly__hint { display: none; }
	.scrolly.is-pinned .scrolly__skip { right: 14px; bottom: 16px; }
}

.btn--light { background: rgba(21, 13, 6, .35); color: #F6E9CF; box-shadow: none; }
.btn--light::before { inset: 0; border-color: #F6E9CF; opacity: .75; }
.btn--light:hover { background: rgba(21, 13, 6, .6); }

/* ------------------------------------------------------------------ features */
.features { padding: clamp(30px, 5vw, 60px) 0; }
.feature { padding: clamp(48px, 7vw, 96px) 0; }
.feature__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 90px); align-items: center; }
.feature--flip .feature__shot { order: 2; }
.feature__shot { position: relative; display: grid; place-items: center; padding: 20px 0; }
.feature__mat {
	position: absolute; width: min(430px, 96%); aspect-ratio: 1; border-radius: 50%;
	background: var(--weave), radial-gradient(circle at 50% 40%, #3F8A3A, #1F4A1C 75%);
	box-shadow: inset 0 0 0 10px rgba(0, 0, 0, .08);
}
#shop .feature__mat { background: var(--weave), radial-gradient(circle at 50% 40%, #F0CB6B, #C99727 78%); }
#dish .feature__mat { background: var(--weave), radial-gradient(circle at 50% 40%, #B64A2F, #6F2313 78%); }
#seller .feature__mat { background: var(--weave), radial-gradient(circle at 50% 40%, #C9A46A, #7A5630 80%); }

.phone {
	position: relative; width: min(290px, 70vw); padding: 9px; border-radius: 46px;
	background: var(--phone); box-shadow: var(--shadow), inset 0 0 0 2px rgba(255, 255, 255, .12);
}
.phone__screen { border-radius: 38px; overflow: hidden; background: #000; }
.phone__screen img { display: block; width: 100%; height: auto; }

.feature__title { font: 400 clamp(1.9rem, 4.2vw, 3.1rem)/1.08 var(--display); color: var(--text); margin-bottom: 18px; }
.feature__lead { font-size: 1.2rem; max-width: 30em; }
.feature__points { margin: 22px 0 0; padding: 0; list-style: none; max-width: 31em; }
.feature__points li { position: relative; padding: 12px 0 12px 34px; border-top: 1px dashed var(--line); }
.feature__points li::before {
	content: ""; position: absolute; left: 4px; top: 17px; width: 16px; height: 16px;
	border-radius: 0 60% 0 60%; background: var(--leaf); box-shadow: inset -3px -3px 0 rgba(39, 90, 38, .45);
}

.garland { position: relative; display: flex; justify-content: space-between; align-items: center; max-width: 620px; margin: 0 auto; padding: 0 10px; }
.garland::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed var(--green-ink); opacity: .6; }
.garland .crop { position: relative; width: 30px; height: 30px; }
@media (max-width: 520px) { .garland .crop:nth-child(even) { display: none; } }

@media (max-width: 820px) {
	.feature__inner { grid-template-columns: 1fr; }
	.feature--flip .feature__shot { order: 0; }
	.feature__mat { width: min(360px, 92%); }
}

/* fade each feature in as it arrives (only when scroll-video.js has switched this on) */
.has-reveal [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .5s ease-out, transform .5s ease-out; }
.has-reveal [data-reveal].is-seen { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ sellers and delivery partners */
.partners { position: relative; overflow: hidden; padding: clamp(64px, 9vw, 120px) 0; background: #1F4A1C; color: #F6E9CF; }
.partners__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.partners::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(20, 50, 18, .96) 0%, rgba(24, 58, 22, .9) 46%, rgba(21, 13, 6, .55) 100%); }
.partners__inner { position: relative; z-index: 2; }
.partners__title { font: 400 clamp(1.8rem, 4vw, 2.9rem)/1.1 var(--display-gold); color: #E9B949; margin-bottom: 16px; }
.partners__lead { max-width: 36em; font-size: 1.2rem; }
.partners__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin: 34px 0 22px; }
.partners__card { padding: 26px; border-radius: 22px; border: 2px dashed rgba(125, 187, 74, .7); background: rgba(13, 34, 12, .72); }
.partners__card h3 { font: 400 1.7rem/1.1 var(--display); margin-bottom: 10px; }
.partners__card p:last-child { margin: 0; }
.tag { display: inline-block; margin: 0 0 14px; padding: 5px 12px; border-radius: 999px; background: #E9B949; color: #2A1B10; font: 700 .95rem/1 var(--small-caps); letter-spacing: .1em; }
.partners__note { margin: 0; color: #D9E7C4; }
@media (max-width: 720px) { .partners__grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ download */
.download { padding: clamp(64px, 9vw, 120px) 0; }
.download__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 6vw, 90px); align-items: center; }
/* the picture is cut to the shape of a doorway */
.download__door { max-width: 380px; width: 100%; margin-inline: auto; border-radius: 190px 190px 26px 26px; overflow: hidden; border: 8px solid var(--thatch-dark); box-shadow: var(--shadow); }
.download__door img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.download__title { font: 400 clamp(2.2rem, 5.4vw, 4rem)/1.05 var(--display-green); color: var(--green-ink); margin-bottom: 16px; }
.download__lead { max-width: 28em; font-size: 1.2rem; }
.download__stores { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 26px; }
.store {
	display: grid; gap: 2px; min-width: 210px; padding: 12px 22px; border-radius: 16px; text-align: left;
	border: 2px dashed var(--line); background: var(--surface); color: var(--text); cursor: default;
}
.store__small { font: 700 .9rem/1.1 var(--small-caps); letter-spacing: .1em; color: var(--muted); }
.store__big { font: 700 1.35rem/1.2 var(--body); }
@media (max-width: 820px) {
	.download__inner { grid-template-columns: 1fr; }
	.download__door { max-width: 280px; }
}

/* ------------------------------------------------------------------ footer */
.foot { position: relative; padding: 46px 0 34px; background: #21160C; color: #F6E9CF; }
.foot__sticks { position: absolute; top: 0; left: 0; right: 0; height: 6px; border-top: 3px solid #B8894A; border-bottom: 1px solid rgba(201, 164, 106, .8); }
.foot__inner { display: grid; gap: 22px; }
.foot__brand { display: flex; align-items: center; gap: 16px; }
.foot__hut { width: 64px; height: auto; flex: none; }
.foot__line { margin: 6px 0 0; color: #CDB58E; max-width: 30em; }
.foot__nav ul { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; list-style: none; }
.foot__nav a { color: #F6E9CF; }
.foot__small { margin: 0; color: #CDB58E; font-size: .95rem; }

/* ------------------------------------------------------------------ ordinary pages and posts */
.page { padding: clamp(56px, 8vw, 96px) 0; max-width: 760px; }
.page__title { font: 400 clamp(2rem, 5vw, 3.2rem)/1.1 var(--display-green); color: var(--green-ink); margin-bottom: 26px; }
/* Titles typed in WordPress may contain accents or symbols the display font does not have, so they use the small-caps face. */
.page__title--plain, .entry__title { font-family: var(--small-caps); font-weight: 700; }
.entry { margin-bottom: 44px; }
.entry__title { font-size: 1.7rem; margin-bottom: 8px; }
.entry__title a { text-decoration: none; }
.prose { background: var(--surface); border-radius: 22px; padding: clamp(20px, 4vw, 40px); box-shadow: var(--shadow); }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2, .prose h3 { font-family: var(--small-caps); font-weight: 700; margin: 1.4em 0 .5em; }
.prose img { border-radius: 14px; }
.alignwide { margin-inline: -20px; }

/* ------------------------------------------------------------------ 3D bouncing headings
   site.js wraps each letter of a [data-bounce] heading in its own box. The letters tumble up one after another
   when the heading arrives, and the heading keeps a carved, raised look afterwards. */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.bounce { perspective: 700px; }
.bounce .w { display: inline-block; white-space: nowrap; }
.bounce .ch { display: inline-block; transform-origin: 50% 85%; backface-visibility: hidden; }
.is-seen .ch,
.scrolly.is-pinned .beat.is-on .ch,
.finale.is-pinned.is-ready .finale__title .ch { animation: bounce3d .95s cubic-bezier(.22, .8, .3, 1) both; animation-delay: calc(var(--i) * 34ms); }
@keyframes bounce3d {
	0% { opacity: 0; transform: translate3d(0, .9em, -120px) rotateX(-95deg) scale(.6); }
	42% { opacity: 1; transform: translate3d(0, -.26em, 40px) rotateX(22deg) scale(1.08); }
	62% { transform: translate3d(0, .09em, 0) rotateX(-10deg) scale(.97); }
	80% { transform: translate3d(0, -.04em, 0) rotateX(4deg) scale(1.01); }
	100% { opacity: 1; transform: none; }
}
/* raised look: a hard edge under the letters, then a soft shadow */
.feature__title { text-shadow: 0 1px 0 var(--thatch), 0 2px 0 var(--thatch), 0 3px 0 var(--thatch-dark), 0 4px 0 var(--thatch-dark), 0 10px 16px rgba(60, 36, 12, .28); }
.hero__mark, .hero__title, .beat--line, .beat__big, .partners__title, .download__title, .finale__title, .page__title:not(.page__title--plain) {
	filter: drop-shadow(0 3px 0 rgba(42, 27, 16, .8));
}

/* ------------------------------------------------------------------ mortar and pestle: scroll to top */
.totop {
	position: fixed; right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); z-index: 45;
	display: grid; justify-items: center; gap: 2px; min-width: 64px; padding: 4px 4px 6px;
	color: #2A1B10; text-decoration: none;
	opacity: 0; visibility: hidden; transform: translateY(18px);
	transition: opacity .3s ease, transform .3s ease, visibility 0s .3s;
}
.totop.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .3s ease, transform .3s ease, visibility 0s; }
.totop__art { width: 60px; height: 68px; overflow: visible; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .35)); }
.totop__label { padding: 5px 11px; border-radius: 999px; background: #F6E9CF; border: 2px solid #7A5630; font: 700 .9rem/1.1 var(--small-caps); letter-spacing: .06em; white-space: nowrap; }
.totop:hover .totop__pestle, .totop:focus-visible .totop__pestle { animation: pound .42s ease-in infinite alternate; }
.totop:hover .totop__label { background: #E9B949; }
@keyframes pound { from { transform: translateY(-10px); } to { transform: translateY(2px); } }

/* ------------------------------------------------------------------ the ending: into the hut
   Plain state: a night scene with the hut, the rope switch and the footer line.
   Pinned state (.is-pinned, added by site.js): the scene sticks to the screen while a small picture of the site
   shrinks into the doorway; then the words and the rope appear (.is-ready). Pulling the rope adds .is-lit and
   then .is-entering, which moves the view in through the door. */
.finale { position: relative; background: #0A0603; color: #F6E9CF; }
.finale__stage {
	position: relative; isolation: isolate; overflow: hidden;
	display: flex; flex-direction: column; align-items: center;
	min-height: 100vh; min-height: 100svh; padding: clamp(74px, 13vh, 104px) 20px 16px;
}
.finale__scene {
	position: absolute; inset: 0; z-index: -1; display: flex; align-items: flex-end; justify-content: center;
	background: radial-gradient(120% 85% at 50% 100%, #33200F 0%, #1A1008 50%, #0A0603 100%);
}
.finale__stars {
	position: absolute; inset: 0 0 38% 0; opacity: .85;
	background-image:
		radial-gradient(circle, #F6E9CF 0 1.2px, transparent 1.7px), radial-gradient(circle, #F6E9CF 0 1px, transparent 1.5px),
		radial-gradient(circle, #E9B949 0 1.4px, transparent 1.9px), radial-gradient(circle, #F6E9CF 0 .9px, transparent 1.4px);
	background-size: 211px 173px, 157px 229px, 331px 283px, 97px 131px;
	background-position: 12px 40px, 80px 12px, 150px 90px, 40px 70px;
}
.finale__ground { position: absolute; left: -12%; right: -12%; bottom: 0; height: 24%; border-radius: 50% 50% 0 0 / 34% 34% 0 0; background: radial-gradient(ellipse at 50% 0, #2F4A1E, #132010 72%); }
.finale__hutwrap { position: relative; width: min(520px, 76vw, 60vh); margin-bottom: clamp(64px, 13vh, 150px); }
.finale__hut { position: relative; display: block; width: 100%; height: auto; }
.finale__hut .hut__door { fill: #1E1108; transition: fill .5s ease-out; }
.finale__spill { position: absolute; left: 50%; top: 80%; width: 190%; aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(255, 214, 110, .6), rgba(255, 214, 110, .12) 38%, rgba(255, 214, 110, 0) 62%); opacity: 0; transition: opacity .9s ease-out; }
.finale__hutwrap::after { content: ""; position: absolute; left: 50%; top: 80%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(255, 233, 168, .75), rgba(255, 214, 110, 0) 65%); mix-blend-mode: screen; opacity: 0; transition: opacity .7s ease-out; }
.finale__hut .hut__door + ellipse { opacity: 0; transition: opacity .5s; }
.finale.is-lit .finale__hut .hut__door { fill: #FFE9A8; }
.finale.is-lit .finale__hut .hut__door + ellipse { opacity: .4; }
.finale.is-lit .finale__spill, .finale.is-lit .finale__hutwrap::after { opacity: 1; }

.finale__words { position: relative; z-index: 2; text-align: center; transition: opacity .5s ease, transform .5s ease; }
.finale__title { font: 400 clamp(2rem, min(8.4vw, 10vh), 4.8rem)/1.05 var(--display-gold); color: #E9B949; margin-bottom: 8px; }
.finale__hint { margin: 0; font-size: 1.1rem; }
.finale__status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.finale__foot { position: relative; z-index: 2; margin-top: auto; max-width: 48em; text-align: center; font-size: .9rem; line-height: 1.4; color: #CDB58E; transition: opacity .4s; }
.finale__foot p { margin: 0; }
.finale__foot .foot__nav ul { justify-content: center; margin-bottom: 6px; }

/* the rope: a twisted cord hanging from the roof, a bamboo handle, and a tag that says what it does */
.rope {
	--rx: -50%;
	position: absolute; top: 0; left: calc(50% + min(32vw, 300px)); z-index: 3;
	display: flex; flex-direction: column; align-items: center; padding: 0 6px 8px;
	background: none; border: 0; color: inherit; cursor: pointer; font: inherit;
	transform-origin: 50% 0; transform: translate(var(--rx), 0);
	transition: transform .8s cubic-bezier(.3, 1.35, .5, 1), opacity .4s;
	-webkit-tap-highlight-color: transparent;
}
.rope__cord { width: 10px; height: clamp(110px, 40vh, 430px); border-radius: 0 0 4px 4px; background: repeating-linear-gradient(-58deg, #DDB86E 0 5px, #9A7437 5px 8px); box-shadow: inset -2px 0 0 rgba(0, 0, 0, .25), 0 4px 8px rgba(0, 0, 0, .4); }
.rope__handle { display: block; width: 84px; height: 30px; margin-top: -2px; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .45)); }
.rope__label { margin-top: 8px; padding: 6px 13px 7px; border-radius: 12px; background: #F6E9CF; border: 2px solid #7A5630; color: #2A1B10; font: 400 1.2rem/1 var(--display); white-space: nowrap; box-shadow: 0 4px 0 #7A5630; }
.rope:hover .rope__label, .rope:focus-visible .rope__label { background: #E9B949; }
.rope:focus-visible { outline: 3px solid #E9B949; outline-offset: 4px; border-radius: 14px; }
.finale.is-pinned.is-ready .rope { animation: sway 3.4s ease-in-out .9s infinite; }
.rope.is-pulled, .finale.is-pinned.is-ready .rope.is-pulled { animation: pull .7s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes sway { 0%, 100% { transform: translate(var(--rx), 0) rotate(-2.2deg); } 50% { transform: translate(var(--rx), 0) rotate(2.2deg); } }
@keyframes pull { 0% { transform: translate(var(--rx), 0); } 35% { transform: translate(var(--rx), 38px); } 100% { transform: translate(var(--rx), 0); } }

/* the small picture of the whole site that goes in through the door */
.finale__site { display: none; position: absolute; inset: 0; z-index: 4; overflow: hidden; background: var(--wall) var(--weave); color: var(--text); }
.finale__site-in { display: grid; justify-items: center; gap: clamp(14px, 4vh, 40px); padding-top: 50px; }
.finale__site .brand__name { font-size: clamp(2.2rem, min(9vw, 12vh), 6rem); }
.finale__phones { display: flex; gap: min(2.4vw, 26px); }
.finale__phones .phone { --pw: min(19vw, 23vh, 230px); width: var(--pw); padding: calc(var(--pw) * .032); border-radius: calc(var(--pw) * .16); }
.finale__phones .phone__screen { border-radius: calc(var(--pw) * .13); }

.finale.is-pinned { height: 240vh; }
.finale.is-pinned .finale__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.finale.is-pinned .finale__stage { height: 100%; min-height: 0; }
.finale.is-pinned .finale__site { display: grid; place-items: center; }
.finale.is-pinned:not(.is-ready) .finale__words { opacity: 0; transform: translateY(14px); }
.finale.is-pinned:not(.is-ready) .rope { transform: translate(var(--rx), -105%); }
.finale.is-entering .finale__scene { transform: scale(36); transition: transform 1.7s cubic-bezier(.6, 0, .9, .3); }
.finale.is-entering .finale__words, .finale.is-entering .rope, .finale.is-entering .finale__foot { opacity: 0; }

/* the warm light that fills the screen as the view passes through the doorway, then clears at the top of the page */
.homecoming { position: fixed; inset: 0; z-index: 200; pointer-events: none; background: radial-gradient(circle, #FFF6D2, #FFDB80); opacity: 0; transition: opacity .85s ease-in .8s; }
.homecoming.is-on { opacity: 1; }
.homecoming.is-leaving { opacity: 0; transition: opacity 1.2s ease-out; }

@media (max-width: 700px) {
	.rope { --rx: 0%; left: auto; right: 8px; }
	.finale__words { align-self: stretch; text-align: left; padding-right: 100px; }
	.finale__hint { font-size: 1rem; }
	.finale__foot { padding-right: 76px; text-align: left; font-size: .82rem; }
}

/* ------------------------------------------------------------------ fitting every screen */
/* very narrow phones */
@media (max-width: 380px) {
	.wrap { width: calc(100% - 28px); }
	.brand { gap: 7px; }
	.brand__hut { width: 34px; height: 30px; }
	.roof .brand__name { font-size: 1.05rem; }
	.roof__cta { padding: 8px 12px; font-size: .92rem; }
	.store { min-width: 0; width: 100%; }
	.phone { width: min(260px, 74vw); }
}
/* phones held sideways and other short screens: less text over the film, smaller scene */
@media (max-height: 540px) and (orientation: landscape) {
	.scrolly.is-pinned .hero__pitch, .scrolly.is-pinned .hero__note, .scrolly.is-pinned .scrolly__hint { display: none; }
	.scrolly.is-pinned .beat { bottom: 34px; }
	.scrolly.is-pinned .hero__mark { font-size: min(8vw, 19vh); margin-bottom: 4px; }
	.scrolly.is-pinned .hero__title { font-size: min(3.4vw, 8vh); margin-bottom: 0; }
	.scrolly.is-pinned .hero__actions { margin: 20px 0 0; }
	.scrolly.is-pinned .beat--line, .beat__big { font-size: min(8.2vw, 22vh); }
	.beat__small { margin-bottom: 20px; font-size: 1.05rem; }
	.btn { min-height: 46px; padding: 10px 26px; }
	.finale__stage { padding-top: 70px; }
	.finale__hutwrap { width: min(46vh, 50vw); margin-bottom: 40px; }
	.finale__title { margin-bottom: 2px; }
	.finale__words { align-self: flex-start; text-align: left; padding-left: 4vw; }
	.rope__cord { height: 26vh; min-height: 0; }
	.finale__foot { align-self: flex-start; max-width: 34vw; text-align: left; font-size: .78rem; }
}
/* very wide screens: let the page breathe a little more, and keep the phones from looking small */
@media (min-width: 1700px) {
	.wrap { width: min(1320px, 100% - 80px); }
	body { font-size: 1.15rem; }
	.phone { width: 330px; }
	.feature__mat { width: min(490px, 96%); }
	.scrolly.is-pinned .beat { left: max(40px, calc((100% - 1320px) / 2)); right: max(40px, calc((100% - 1320px) / 2)); }
}

/* short upright phones: a smaller film so the name, pitch and button all fit on the first screen */
@media (max-width: 820px) and (max-height: 700px) and (orientation: portrait) {
	.scrolly.is-pinned .scrolly__media { height: min(125vw, 38svh); }
	.scrolly.is-pinned .scrolly__beats { inset: min(125vw, 38svh) 0 0 0; }
	.scrolly.is-pinned .beat { top: 10px; }
	.hero__mark { font-size: clamp(2.1rem, 11.5vw, 2.8rem); margin-bottom: 6px; }
	.hero__title { font-size: 1.16rem; margin-bottom: 8px; }
	.scrolly.is-pinned .hero__pitch { font-size: .93rem; line-height: 1.4; }
	.scrolly.is-pinned .hero__actions { margin: 20px 0 0; }
	.btn { min-height: 50px; padding: 11px 28px; font-size: 1.02rem; }
}
@media (max-width: 480px) {
	.totop__art { width: 48px; height: 54px; }
	.totop__label { font-size: .8rem; padding: 4px 9px; }
}

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