/*
Theme Name: Churchside
Theme URI: https://churchside.ca
Author: Well-Paced Media
Author URI: https://wellpaced.ca
Description: One-page website for Churchside, a church social media service. Warm, readable and built for pastors.
Version: 16.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: All rights reserved
Text Domain: churchside
*/

/* ---------- Tokens ---------- */
:root {
	--cream: #F7F3EA;
	--paper: #FFFDF8;
	--linen: #EFE8DA;
	--sand: #E9DFC9;
	--line: #E3D9C6;
	--line-strong: #D9CDB6;
	--ink: #232D24;
	--ink-soft: #3A453A;
	--muted: #4A5547;
	--sage: #56634F;
	--gold: #CDB384;
	--gold-text: #D7C193;
	--focus: #B8954F;
	--on-dark: #F7F3EA;
	--on-dark-soft: #DCD6C8;
	--sans: 'Figtree', 'Segoe UI', system-ui, -apple-system, sans-serif;
	--serif: 'Literata', Georgia, 'Times New Roman', serif;
	--wrap: 1200px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 19px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: #3F5A3A; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 3px;
}
input, textarea, button { font-family: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 12px; left: 12px; z-index: 100; width: auto; height: auto; clip: auto;
	background: var(--ink); color: var(--on-dark); padding: 12px 20px; border-radius: 999px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px) { .wrap { padding: 0 20px; } }

.section { padding: 120px 0; }
.section--linen { background: var(--linen); }
.section--sage { background: var(--sage); color: var(--on-dark); }
@media (max-width: 700px) { .section { padding: 80px 0; } }

.h2 {
	font-size: clamp(34px, 4vw, 52px);
	line-height: 1.1;
	letter-spacing: -0.02em;
	font-weight: 800;
	max-width: 780px;
}
.lede { margin-top: 20px; font-size: 21px; color: var(--ink-soft); max-width: 660px; }
.section--sage .lede { color: #EEE9DD; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	font-weight: 700; font-size: 20px; line-height: 1.2;
	padding: 18px 34px; border-radius: 999px;
	text-decoration: none; border: 2px solid transparent; cursor: pointer;
	transition: background-color .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: var(--on-dark); }
.btn--dark:hover { background: #33402F; color: var(--on-dark); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--on-dark); }
.btn--gold { background: var(--gold); color: var(--ink); font-weight: 800; }
.btn--gold:hover { background: var(--gold-text); color: var(--ink); }
.btn--small { font-size: 18px; padding: 13px 26px; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(247, 243, 234, .94);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header__inner {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 14px 32px; padding-top: 16px; padding-bottom: 16px;
}
.site-logo img { height: 52px; width: auto; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 18px; padding: 10px 0; }
.site-nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 6px; }
@media (max-width: 600px) {
	.site-logo img { height: 42px; }
	.site-nav { gap: 4px 20px; }
	.site-nav a:not(.btn) { font-size: 17px; }
}
.scroll-progress {
	position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
	background: var(--gold); transform: scaleX(0); transform-origin: left center;
}

/* ---------- Hero ---------- */
.hero { padding: 96px 0 0; position: relative; }
.hero > .wrap { position: relative; z-index: 1; }
.hero-bg-par { position: absolute; inset: 0; }
.hero__title {
	font-size: clamp(44px, 6.4vw, 84px);
	line-height: 1.02; letter-spacing: -0.025em; font-weight: 800; max-width: 900px;
}
.hero__sub { margin-top: 28px; font-size: clamp(20px, 2vw, 25px); line-height: 1.5; max-width: 660px; color: var(--ink-soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
@media (max-width: 700px) { .hero { padding-top: 64px; } }

.rail-scroll { margin-top: 64px; overflow-x: auto; padding: 24px 0 8px; }
.rail { min-width: 980px; position: relative; }
.rail__grid {
	display: grid; grid-template-columns: 1.25fr repeat(6, minmax(0, 1fr));
	gap: 14px; align-items: end; position: relative; z-index: 1;
}
.rail__sunday {
	background: var(--ink); color: var(--on-dark); border-radius: 22px; padding: 24px 22px;
	min-height: 230px; display: flex; flex-direction: column; justify-content: space-between;
}
.rail__sunday-day { font-weight: 700; font-size: 18px; color: var(--gold-text); }
.rail__sunday-title { font-size: 28px; font-weight: 800; line-height: 1.15; }
.rail__sunday-text { font-size: 17px; line-height: 1.45; margin-top: 8px; color: var(--on-dark-soft); }
.rail__day {
	background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 12px;
	display: flex; flex-direction: column; gap: 10px;
}
.rail__day-name { font-weight: 700; font-size: 16px; color: var(--sage); padding: 0 2px; }
.rail__day-label { font-size: 16px; font-weight: 600; line-height: 1.3; padding: 0 2px; }
.rail__thumb { aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; position: relative; background: var(--ink); }
.rail__thumb--clip { aspect-ratio: 9 / 16; }
.rail__thumb img, .rail__thumb video { width: 100%; height: 100%; object-fit: cover; }
.rail__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
/* Week strip hover */
.rail__day, .rail__sunday {
	transition: transform .35s var(--ease), box-shadow .35s ease, border-color .35s ease, opacity .3s ease;
}
.rail__thumb img, .rail__thumb video { transition: transform .6s var(--ease); }
.rail__play { transition: transform .3s ease, opacity .3s ease; }
.rail__day-label { transition: color .3s ease; }
@media (hover: hover) {
	.rail__grid:hover .rail__day:not(:hover),
	.rail__grid:hover .rail__sunday:not(:hover) { opacity: .72; }
	.rail__day:hover {
		transform: translateY(-12px) rotate(-1.5deg);
		box-shadow: 0 22px 44px rgba(35, 45, 36, .2);
		border-color: var(--gold);
	}
	.rail__day--even:hover { transform: translateY(-12px) rotate(1.5deg); }
	.rail__sunday:hover { transform: translateY(-8px); box-shadow: 0 22px 44px rgba(35, 45, 36, .28); }
	.rail__day:hover .rail__thumb img { transform: scale(1.08); }
	.rail__day:hover .rail__play { transform: scale(1.18); }
	.rail__day.is-playing .rail__play { opacity: 0; transform: scale(.6); }
	.rail__day:hover .rail__day-label { color: var(--ink); }
}
@media (prefers-reduced-motion: reduce) {
	.rail__day:hover, .rail__day--even:hover, .rail__sunday:hover { transform: none; }
	.rail__day:hover .rail__thumb img { transform: none; }
}
.rail__hill { display: block; width: 100%; height: 110px; margin-top: -30px; position: relative; z-index: 0; }

/* ---------- Problem ---------- */
.problem { padding: 24px 0 112px; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px 80px; align-items: start; }
.problem__text { display: flex; flex-direction: column; gap: 22px; font-size: 21px; color: #EEE9DD; }
.problem__text strong { color: var(--on-dark); }

/* ---------- How it works ---------- */
.steps-track { margin-top: 64px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.steps-track__fill { height: 100%; background: var(--gold); border-radius: 3px; transform-origin: left center; }
@media (max-width: 900px) { .steps-track { display: none; } }
.steps {
	list-style: none; margin: 32px 0 0; padding: 0;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px;
}
.step {
	background: var(--paper); border: 1px solid var(--line); border-radius: 26px; padding: 40px 36px;
	display: flex; flex-direction: column; gap: 18px;
}
.step--first { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.step__num {
	width: 56px; height: 56px; border-radius: 50%; background: var(--sand); color: var(--ink);
	font-weight: 800; font-size: 26px; display: flex; align-items: center; justify-content: center;
}
.step--first .step__num { background: var(--gold); }
.step h3 { font-size: 28px; line-height: 1.2; font-weight: 800; }
.step p { color: var(--ink-soft); }
.step--first p { color: var(--on-dark-soft); }
.step__note { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--gold-text); font-size: 17px; }

/* ---------- What you get ---------- */
.showcase { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.panel {
	flex: 1 1 480px; min-width: 0; background: var(--paper); border-radius: 22px; padding: 28px;
	display: flex; flex-direction: column; gap: 22px;
}
@media (max-width: 600px) { .panel { flex-basis: 100%; padding: 20px; } }
.panel h3, .card h3 { font-size: 26px; font-weight: 800; line-height: 1.25; }
.card h3 { font-size: 22px; }
.panel__desc, .card__desc { margin-top: 6px; font-size: 17px; line-height: 1.5; color: var(--ink-soft); }
.clips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.clips figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.clips video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 18px; background: var(--ink); }
.clips figcaption { font-size: 16px; color: var(--ink-soft); }

.carousel { display: flex; flex-direction: column; gap: 20px; }
.carousel__frame {
	position: relative; width: 100%; max-width: 440px; align-self: center;
	aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: #1E2D4A;
}
.carousel__slide {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
	opacity: 0; transition: opacity .32s ease;
}
.carousel__slide.is-active { opacity: 1; }
.carousel__controls { display: flex; align-items: center; justify-content: center; gap: 20px; }
.carousel__btn {
	width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--ink);
	background: transparent; color: var(--ink); cursor: pointer;
	display: flex; align-items: center; justify-content: center;
}
.carousel__btn--next { background: var(--ink); color: var(--on-dark); }
.carousel__count { font-weight: 700; font-size: 18px; min-width: 90px; text-align: center; }
.caption-box { background: var(--cream); border-radius: 14px; padding: 18px 20px; font-size: 16px; line-height: 1.55; color: var(--ink-soft); }
.caption-box__title { font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.caption-box p + p { margin-top: 8px; }
.caption-box__tags { color: var(--sage); font-weight: 600; }

.cards { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card { background: var(--paper); border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; }
.card__body { padding: 0 6px 8px; }

.included {
	margin-top: 24px; background: var(--paper); border-radius: 22px; padding: 32px 36px;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px 40px;
}
.included__item { display: flex; gap: 14px; align-items: flex-start; }
.included__item svg { flex: none; margin-top: 2px; }
.included__title { font-weight: 800; font-size: 19px; }
.included__text { font-size: 17px; color: var(--ink-soft); line-height: 1.5; }

/* ---------- Built around your church ---------- */
.brand-demo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.brand-demo figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.brand-demo figcaption { font-size: 16px; color: var(--ink-soft); }
.brand-demo__note { grid-column: 1 / -1; margin-top: 4px; font-size: 17px; color: var(--ink-soft); }
.demo-post {
	aspect-ratio: 4 / 5; border-radius: 18px; padding: 28px;
	display: flex; flex-direction: column; justify-content: space-between;
}
.demo-post--trad { background: #1F3350; }
.demo-post--trad .demo-post__church { font-family: var(--serif); font-size: 13px; color: #C9A961; letter-spacing: .04em; }
.demo-post--trad .demo-post__quote { font-family: var(--serif); color: #F4EFE3; font-size: 22px; line-height: 1.35; }
.demo-post--trad .demo-post__rule { height: 2px; width: 40px; background: #C9A961; }
.demo-post--casual { background: #F2C14E; color: #2A2416; }
.demo-post--casual .demo-post__church { font-weight: 800; font-size: 14px; }
.demo-post--casual .demo-post__quote { font-weight: 800; font-size: 26px; line-height: 1.1; letter-spacing: -.01em; }
.demo-post--casual .demo-post__ref { font-size: 13px; font-weight: 700; }
@media (max-width: 420px) {
	.demo-post { padding: 18px; }
	.demo-post--trad .demo-post__quote { font-size: 18px; }
	.demo-post--casual .demo-post__quote { font-size: 20px; }
}
.body-copy { display: flex; flex-direction: column; gap: 18px; margin-top: 24px; font-size: 21px; color: var(--ink-soft); }

/* ---------- Church life ---------- */
.chips { list-style: none; margin: 48px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.chips li { background: var(--paper); border-radius: 999px; padding: 14px 24px; font-weight: 600; font-size: 19px; }

.photo-callout {
	margin-top: 40px; background: var(--ink); color: var(--on-dark); border-radius: 26px; padding: 36px 40px;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px;
}
.photo-callout__text { display: flex; gap: 20px; align-items: flex-start; flex: 1 1 520px; min-width: 0; }
.photo-callout__text svg { flex: none; margin-top: 2px; }
.photo-callout h3 { font-size: 26px; line-height: 1.25; font-weight: 800; }
.photo-callout p { margin-top: 8px; font-size: 19px; line-height: 1.55; color: var(--on-dark-soft); }
.photo-callout .btn { flex: none; font-size: 19px; padding: 16px 30px; }
@media (max-width: 600px) {
	.photo-callout { padding: 28px 22px; }
	.photo-callout__text { flex-direction: column; flex-basis: 100%; }
}

/* ---------- Pricing ---------- */
.pricing { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 28px; align-items: stretch; }
.price-card {
	flex: 2 1 560px; min-width: 0; background: var(--ink); color: var(--on-dark);
	border-radius: 28px; padding: 48px;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px;
}
@media (max-width: 600px) { .price-card { flex-basis: 100%; padding: 32px 24px; } }
.price-card__main { display: flex; flex-direction: column; gap: 18px; }
.price-card__name { font-weight: 700; font-size: 20px; color: var(--gold-text); }
.price-card__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.price-card__amount { font-size: 64px; font-weight: 800; line-height: 1; }
.price-card__per { font-size: 20px; color: var(--on-dark-soft); }
.price-card__terms { font-size: 19px; color: var(--on-dark-soft); }
.price-card__main .btn { align-self: flex-start; margin-top: auto; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 19px; }
.checklist li { display: flex; gap: 12px; }
.checklist svg { flex: none; margin-top: 3px; }
.custom-card {
	flex: 1 1 300px; min-width: 0; background: var(--paper); border: 1px solid var(--line);
	border-radius: 28px; padding: 44px; display: flex; flex-direction: column; gap: 16px;
}
@media (max-width: 600px) { .custom-card { padding: 32px 24px; } }
.custom-card__kicker { font-weight: 700; font-size: 20px; color: var(--sage); }
.custom-card h3 { font-size: 28px; line-height: 1.2; font-weight: 800; }
.custom-card p { color: var(--ink-soft); }
.custom-card .btn { align-self: flex-start; margin-top: auto; font-size: 19px; padding: 14px 28px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 56px 80px; align-items: center; }
.about__photo { aspect-ratio: 4 / 5; max-width: 440px; width: 100%; border-radius: 28px; overflow: hidden; background: var(--line-strong); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.about__letter { margin-top: 28px; display: flex; flex-direction: column; gap: 20px; font-family: var(--serif); font-size: 21px; line-height: 1.7; color: #2E382F; }
.about__goal { font-family: var(--sans); font-weight: 700; font-size: 22px; line-height: 1.5; color: var(--ink); }
.about__sign { margin-top: 28px; font-weight: 700; font-size: 19px; }
.about__sign span { font-weight: 500; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 900px; }
.faq { margin-top: 48px; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
	list-style: none; cursor: pointer; padding: 26px 4px;
	display: flex; justify-content: space-between; align-items: center; gap: 24px;
	font-size: 22px; font-weight: 700; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq__icon {
	flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--linen); color: var(--ink);
	display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 500; line-height: 1;
	transition: transform .16s ease, background-color .16s, color .16s;
}
.faq details[open] .faq__icon { transform: rotate(45deg); background: var(--ink); color: var(--on-dark); }
.faq details p { padding: 0 56px 28px 4px; font-size: 20px; line-height: 1.6; color: var(--ink-soft); }
@media (max-width: 600px) {
	.faq summary { font-size: 20px; }
	.faq details p { padding-right: 4px; font-size: 19px; }
}

/* ---------- Contact ---------- */
.contact-email { margin-top: 36px; font-size: 20px; }
.contact-email a { color: var(--on-dark); font-weight: 700; }
.contact-form {
	background: var(--paper); color: var(--ink); border-radius: 28px; padding: 40px;
	display: flex; flex-direction: column; gap: 20px;
}
@media (max-width: 600px) { .contact-form { padding: 28px 22px; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 700; font-size: 18px; }
.field label span { font-weight: 500; color: var(--muted); }
.field input, .field textarea {
	font-size: 19px; padding: 15px 16px; border: 2px solid var(--line-strong);
	border-radius: 12px; background: #FFFFFF; color: var(--ink); width: 100%;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { border-color: var(--sage); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { align-self: flex-start; border: 0; }
.form-notice { border-radius: 14px; padding: 16px 18px; font-size: 18px; font-weight: 600; }
.form-notice--ok { background: #E6EDDF; color: #2F4A2B; }
.form-notice--error { background: #F6E3DA; color: #7A2E14; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-soft); padding: 72px 0 48px; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.site-footer__brand { max-width: 420px; display: flex; flex-direction: column; gap: 18px; }
.site-footer__logo { display: flex; align-items: center; gap: 14px; }
.site-footer__logo img:first-child { height: 52px; width: auto; }
.site-footer__logo img:last-child { height: 30px; width: auto; }
.site-footer__brand p { font-size: 18px; line-height: 1.55; }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, auto)); gap: 12px 48px; font-size: 18px; align-content: start; }
.footer-nav a, .site-footer__contact a { color: var(--on-dark); text-decoration: none; }
.footer-nav a:hover, .site-footer__contact a:hover { text-decoration: underline; }
.site-footer__contact { display: flex; flex-direction: column; gap: 10px; font-size: 18px; }
.site-footer__bottom {
	margin-top: 56px; padding-top: 24px; border-top: 1px solid #3E4A3F;
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
	font-size: 16px; color: #B9B3A5;
}
.site-footer__bottom a { color: var(--on-dark-soft); }

/* ---------- Basic pages (privacy policy etc.) ---------- */
.page-content { max-width: 760px; }
.page-content h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.1; letter-spacing: -.02em; margin-bottom: 32px; }
.page-content .entry > * + * { margin-top: 1em; }
.page-content h2 { font-size: 30px; margin-top: 1.6em; }
.page-content h3 { font-size: 24px; margin-top: 1.4em; }

/* ---------- Motion ---------- */
@keyframes cs-load { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes cs-hill { from { opacity: 0; transform: translateY(70px) scaleX(.55); } to { opacity: 1; transform: none; } }
@keyframes cs-rise { from { opacity: 0; transform: translateY(56px); } to { opacity: 1; transform: none; } }
@keyframes cs-pop { from { opacity: 0; transform: translateY(40px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes cs-left { from { opacity: 0; transform: translateX(-80px) rotate(-6deg); } to { opacity: 1; transform: none; } }
@keyframes cs-right { from { opacity: 0; transform: translateX(80px) rotate(6deg); } to { opacity: 1; transform: none; } }
@keyframes cs-out { from { opacity: 1; transform: none; } to { opacity: .15; transform: translateY(-60px) scale(.97); } }
@keyframes cs-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes cs-unveil { from { clip-path: inset(22% 18% 22% 18% round 28px); } to { clip-path: inset(0 0 0 0 round 28px); } }
@keyframes cs-zoom { from { transform: scale(1.3); } to { transform: scale(1); } }

@media (prefers-reduced-motion: no-preference) {
	.cs-load { animation: cs-load .9s var(--ease) backwards; }
	.cs-d1 { animation-delay: .75s; } .cs-d2 { animation-delay: .9s; }
	.cs-r0 { animation-delay: 1.05s; } .cs-r1 { animation-delay: 1.15s; } .cs-r2 { animation-delay: 1.25s; }
	.cs-r3 { animation-delay: 1.35s; } .cs-r4 { animation-delay: 1.45s; } .cs-r5 { animation-delay: 1.55s; } .cs-r6 { animation-delay: 1.65s; }
	.cs-hill { transform-origin: 50% 100%; animation: cs-hill 1.3s 1.7s var(--ease) backwards; }

	@supports (animation-timeline: view()) {
		.cs-out { animation: cs-out linear both; animation-timeline: view(); animation-range: exit 0% exit 90%; }
		.cs-reveal { animation: cs-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
		.cs-pop { animation: cs-pop linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
		.cs-left { animation: cs-left linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
		.cs-right { animation: cs-right linear both; animation-timeline: view(); animation-range: entry 10% cover 42%; }
		.cs-s1 { animation-range: entry 5% cover 25%; } .cs-s2 { animation-range: entry 15% cover 30%; }
		.cs-s3 { animation-range: entry 25% cover 35%; } .cs-s4 { animation-range: entry 35% cover 40%; }
		.cs-s5 { animation-range: entry 45% cover 45%; } .cs-s6 { animation-range: entry 55% cover 50%; }
		.cs-s7 { animation-range: entry 65% cover 55%; } .cs-s8 { animation-range: entry 75% cover 60%; }
		.cs-grow { animation: cs-grow linear both; animation-timeline: view(); animation-range: entry 40% cover 60%; }
		.cs-unveil { animation: cs-unveil linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
		.cs-zoom { animation: cs-zoom linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
		.scroll-progress { animation: cs-grow linear both; animation-timeline: scroll(root); }
	}
}
@supports not (animation-timeline: scroll()) { .scroll-progress { display: none; } }
@media (prefers-reduced-motion: reduce) {
	.scroll-progress { display: none; }
	.btn:hover { transform: none; }
}


/* Hero background art and headline */
.hero-bg{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:0}
.hero-art{position:absolute;top:-70px;right:-150px;width:min(900px,78vw);height:auto;opacity:.65}
@media (max-width:900px){.hero-art{width:620px;right:-300px;top:40px;opacity:.4}}
@media (max-width:600px){.hero-art{right:auto;left:calc(50vw - 230px);top:110px}}
.hero-word{display:inline-block}
@keyframes cs-word{from{opacity:0;transform:translateY(.45em);filter:blur(8px)}to{opacity:1;transform:none;filter:none}}
@keyframes ha-ripple{0%{transform:scale(.45);opacity:0}18%{opacity:.55}100%{transform:scale(2.5);opacity:0}}
@keyframes ha-spin{to{transform:rotate(360deg)}}
@keyframes ha-draw{from{stroke-dashoffset:260}to{stroke-dashoffset:0}}
@keyframes ha-pop{from{opacity:0;transform:scale(.2)}to{opacity:1;transform:none}}
@keyframes ha-sway{from{transform:rotate(-4deg)}to{transform:rotate(4deg)}}
@keyframes ha-seed{0%{transform:translateY(0);opacity:0}15%{opacity:1}85%{opacity:.8}100%{transform:translateY(-170px);opacity:0}}
@keyframes ha-glow{from{opacity:.35}to{opacity:.6}}
@keyframes ha-fade{from{opacity:0}to{opacity:1}}
@keyframes ha-par{from{transform:translateY(0)}to{transform:translateY(140px)}}
@media (prefers-reduced-motion: no-preference){
.hero-word{animation:cs-word .85s cubic-bezier(.2,.7,.2,1) backwards}
.cs-w1{animation-delay:.10s}.cs-w2{animation-delay:.19s}.cs-w3{animation-delay:.28s}.cs-w4{animation-delay:.42s}.cs-w5{animation-delay:.51s}.cs-w6{animation-delay:.60s}
.hero-art{animation:ha-fade 1.6s ease backwards}
.ha-ripple{transform-box:fill-box;transform-origin:center;animation:ha-ripple 10s cubic-bezier(.2,.6,.3,1) infinite}
.ha-p2{animation-delay:-2.5s}.ha-p3{animation-delay:-5s}.ha-p4{animation-delay:-7.5s}
.ha-spin{transform-box:view-box;transform-origin:400px 370px;animation:ha-spin 140s linear infinite}
.ha-rays{transform-box:view-box;transform-origin:400px 370px;animation:ha-spin 90s linear infinite reverse}
.ha-draw{stroke-dasharray:260;animation:ha-draw 2.4s cubic-bezier(.4,0,.2,1) 1.2s backwards}
.ha-d2{animation-delay:1.45s}.ha-d3{animation-delay:1.7s}
.ha-leaf{transform-box:fill-box;transform-origin:100% 100%;animation:ha-pop .9s cubic-bezier(.2,.7,.2,1) backwards,ha-sway 6s ease-in-out infinite alternate}
.ha-l1{animation-delay:2.6s,3.5s}.ha-l2{animation-delay:2.8s,4.2s;transform-origin:0 100%}.ha-l3{animation-delay:3s,3.8s}.ha-l4{animation-delay:3.2s,4.6s;transform-origin:0 100%}.ha-l5{animation-delay:3.4s,4s;transform-origin:0 100%}
.ha-seed{animation:ha-seed 13s linear infinite}
.ha-s2{animation-delay:-2s}.ha-s3{animation-delay:-4s}.ha-s4{animation-delay:-6s}.ha-s5{animation-delay:-8s}.ha-s6{animation-delay:-10s}.ha-s7{animation-delay:-11.5s}.ha-s8{animation-delay:-3s}
@supports (animation-timeline: scroll()){
.hero-bg-par{animation:ha-par linear both;animation-timeline:scroll(root);animation-range:0 900px}
}
}
@media (prefers-reduced-motion: reduce){.ha-seed{opacity:.5}}
