/*
 * WonderTale House — homepage storytelling sections (Phase 2B.3), markup from wondertale-core
 * stories.php. Loaded only on pages that use these widgets.
 *
 *   .wt-welcome  Warm-ivory editorial introduction with an illustrated open storybook.
 *   .wt-tellers  Meet the Storytellers: typographic author cards with their real book covers.
 *   .wt-family   Cinematic night interior (illustrated, no photographs), lamp light and dust motes.
 *   .wt-pillars  Why Families Love WonderTale House: four illustrated arch vignettes.
 *   .wt-circle   Story Circle newsletter design. Sign-ups are not active (disabled controls).
 *   .wt-finale   Final call to action: a glowing story door at night, flowing into the footer.
 *
 * Rhythm: ivory → night → ivory → night alternates with the earlier sections; seams reuse the
 * scalloped gold edge from the story-world section. Artwork is .wt-art (CSS backgrounds),
 * requested only once a section is near the viewport. Reduced motion: all ambient motion off.
 */

/* ---------- Shared ---------- */
.wt-js [data-wt-section]:not(.is-near) .wt-art { background-image: none !important; }
.wt-art { display: block; background-repeat: no-repeat; background-position: center; background-size: contain; }
.wt-family::before,
.wt-finale::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -1px;
	height: var(--_edge, 56px);
	z-index: 4;
	pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath d='M0 0 H1440 V22 C1320 54 1200 14 1080 34 C960 54 840 18 720 36 C600 54 480 14 360 32 C240 50 120 18 0 34Z' fill='%23FFF7EE'/%3E%3Cpath d='M0 34 C120 18 240 50 360 32 C480 14 600 54 720 36 C840 18 960 54 1080 34 C1200 14 1320 54 1440 22' fill='none' stroke='%23E9A23B' stroke-opacity='.6' stroke-width='2'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
.wt-family::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: var(--_edge, 56px);
	z-index: 4;
	pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath d='M0 64 H1440 V30 C1300 8 1180 50 1040 30 C900 10 800 48 660 28 C520 8 400 50 260 30 C160 16 80 34 0 22Z' fill='%23FFF7EE'/%3E%3Cpath d='M0 22 C80 34 160 16 260 30 C400 50 520 8 660 28 C800 48 900 10 1040 30 C1180 50 1300 8 1440 30' fill='none' stroke='%23E9A23B' stroke-opacity='.6' stroke-width='2'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}

/* Floral sprigs used in the ivory sections (decorative, margins only). */
.wt-welcome__layer--sprig-a,
.wt-welcome__layer--sprig-b,
.wt-pillars__layer--sprig-a,
.wt-pillars__layer--sprig-b,
.wt-circle__layer--sprig {
	inset: auto;
	width: clamp(120px, 15vw, 230px);
	aspect-ratio: 300 / 120;
	background: url(../img/ornaments/sprig.svg) center / contain no-repeat;
	opacity: 0.9;
}

/* =========================================================================================
 * Welcome
 * ======================================================================================= */
.wt-welcome {
	--_wave: 72px;
	--_top: 0px;
	position: relative;
	padding: calc(var(--_top) + clamp(56px, 7vw, 112px)) 0 clamp(64px, 7vw, 112px);
	background:
		radial-gradient(ellipse 42% 50% at 76% 52%, rgb(255 230 180 / 0.7), transparent 70%),
		radial-gradient(ellipse 36% 40% at 8% 18%, rgb(248 215 196 / 0.5), transparent 70%),
		linear-gradient(180deg, #fff7ee 0%, #fffaf3 60%, #fff7ee 100%);
	background-position: 0 var(--_top);
	background-size: 100% calc(100% - var(--_top));
	background-repeat: no-repeat;
	color: var(--wt-ink);
	overflow: hidden;
}
/* Directly after the hero, the Welcome takes over the hero's wave seam. */
.elementor-widget-wt-hero + .elementor-widget-wt-welcome .wt-welcome { --_top: var(--_wave); margin-top: calc(-1 * var(--_wave)); }
.elementor-widget-wt-hero + .elementor-widget-wt-welcome .wt-welcome::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: var(--_wave);
	z-index: 2;
	pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 72' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C180 4 340 60 540 30 C740 0 880 56 1080 34 C1250 16 1350 44 1440 30 V72 H0Z' fill='%23E9A23B' fill-opacity='.55'/%3E%3Cpath d='M0 46 C180 10 340 66 540 36 C740 6 880 62 1080 40 C1250 22 1350 50 1440 36 V72 H0Z' fill='%23FFF7EE'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
/* …and the featured books below no longer overlap upward; their wave becomes a gold divider. */
.elementor-widget-wt-welcome + .elementor-widget-wt-books .wt-shelf { margin-top: 0; }

.wt-welcome__layer--glow { background: radial-gradient(ellipse 30% 36% at 74% 54%, rgb(255 222 160 / 0.45), transparent 70%); }
.wt-welcome__layer--sprig-a { top: calc(var(--_top) + 18px); right: -34px; transform: translate3d(0, var(--wt-parallax-y, 0px), 0) scaleX(-1) rotate(-8deg); }
.wt-welcome__layer--sprig-b { bottom: 10px; left: -40px; transform: translate3d(0, var(--wt-parallax-y, 0px), 0) rotate(6deg); }

.wt-welcome__inner {
	position: relative;
	z-index: 3;
	display: grid;
	gap: clamp(28px, 4vw, 56px);
	align-items: center;
	max-width: var(--wt-content-max);
	margin-inline: auto;
	padding-inline: var(--wt-gutter);
}
@media (min-width: 960px) {
	.wt-welcome__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}
.wt-welcome__copy { position: relative; z-index: 2; max-width: 600px; }
.wt-welcome .wt-section-head__eyebrow::before { margin-inline: 0 0.7em; }
.wt-welcome .wt-section-head__eyebrow::after { display: none; }
.wt-site .wt-welcome__title {
	margin: 0;
	font-family: var(--wt-font-display);
	font-weight: 600;
	font-size: clamp(2.2rem, 1.5rem + 2.7vw, 3.75rem);
	line-height: 1.06;
	letter-spacing: -0.02em;
	color: var(--wt-teal-900);
	font-variation-settings: "SOFT" 70, "opsz" 110;
	text-wrap: balance;
}
.wt-welcome__line { display: block; }
.wt-welcome__line--accent { font-style: italic; font-weight: 500; color: var(--wt-gold-700); margin-top: 0.08em; }
.wt-welcome__rule {
	display: block;
	width: 132px;
	height: 16px;
	margin: clamp(20px, 2.4vw, 28px) 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 16'%3E%3Cpath d='M0 8 H52 M80 8 H132' stroke='%23E9A23B' stroke-width='1.5'/%3E%3Cpath d='M66 1 Q67.4 6.6 73 8 Q67.4 9.4 66 15 Q64.6 9.4 59 8 Q64.6 6.6 66 1Z' fill='%23E9A23B'/%3E%3C/svg%3E") left center / contain no-repeat;
}
.wt-site .wt-welcome__text { margin: 0 0 var(--wt-space-4); font-size: var(--wt-fs-body); line-height: 1.7; color: #3b4646; max-width: 54ch; text-wrap: pretty; }
.wt-site .wt-welcome__text--lead { font-size: var(--wt-fs-lead); line-height: 1.6; color: var(--wt-ink); }
.wt-site .wt-welcome__signature {
	margin: var(--wt-space-5) 0 0;
	font-family: var(--wt-font-display);
	font-style: italic;
	font-size: 1.15rem;
	color: var(--wt-forest-700);
}
.wt-welcome__visual { position: relative; width: min(100%, 560px); margin-inline: auto; aspect-ratio: 640 / 500; }
.wt-welcome__halo {
	position: absolute;
	inset: 4% 2% 0;
	border-radius: 50%;
	background: radial-gradient(circle at 50% 58%, rgb(255 236 196 / 0.95), rgb(255 236 196 / 0.3) 45%, transparent 70%);
}
.wt-welcome__art {
	position: absolute;
	inset: 0;
	background-image: url(../img/ornaments/open-book.svg);
	animation: wt-welcome-float 9s ease-in-out infinite;
}
@keyframes wt-welcome-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.wt-welcome__sparkles { position: absolute; inset: 0 10% 30%; pointer-events: none; }

/* =========================================================================================
 * Meet the Storytellers
 * ======================================================================================= */
.wt-tellers {
	position: relative;
	padding: clamp(64px, 7vw, 112px) 0 clamp(80px, 8vw, 128px);
	background:
		radial-gradient(ellipse 40% 36% at 12% 30%, rgb(234 223 241 / 0.7), transparent 70%),
		radial-gradient(ellipse 40% 36% at 90% 64%, rgb(248 215 196 / 0.55), transparent 70%),
		linear-gradient(180deg, #fffaf4 0%, #fdf3e6 55%, #fff7ee 100%);
	overflow: hidden;
}
.wt-tellers__layer--glow { background: radial-gradient(ellipse 50% 30% at 50% 60%, rgb(255 226 170 / 0.32), transparent 70%); }
.wt-tellers__layer--flutter::before { --bw: 34px; left: 8%; top: 16%; --fd: 15s; }
.wt-tellers__layer--flutter::after { --bw: 26px; right: 9%; top: 70%; --fd: 12s; animation-delay: -0.4s, -6s; }
.wt-tellers__layer--flutter::before,
.wt-tellers__layer--flutter::after {
	content: "";
	position: absolute;
	width: var(--bw, 46px);
	aspect-ratio: 64 / 52;
	background: url(../img/ornaments/butterfly.svg) center / contain no-repeat;
	animation: wt-flap 0.9s ease-in-out infinite alternate, wt-drift var(--fd, 14s) ease-in-out infinite;
	filter: drop-shadow(0 0 10px rgb(255 210 120 / 0.55));
}
.wt-tellers__inner { position: relative; z-index: 3; max-width: var(--wt-content-max); margin-inline: auto; padding-inline: var(--wt-gutter); }
.wt-site .wt-tellers__list {
	display: grid;
	gap: clamp(22px, 3vw, 40px);
	margin: clamp(32px, 4vw, 56px) 0 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 900px) { .wt-site .wt-tellers__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wt-tellers__item { margin: 0; }
.wt-teller {
	--arch-a: #fde3d4;
	--arch-b: #f6b59f;
	--ink: var(--wt-coral-700);
	position: relative;
	height: 100%;
	display: flex;
	flex-direction: column;
	border-radius: 32px;
	background: linear-gradient(180deg, rgb(255 255 255 / 0.7), #fffaf2 40%);
	border: 1px solid rgb(234 217 196 / 0.9);
	box-shadow: 0 1px 0 rgb(255 255 255 / 0.9) inset, 0 28px 50px -34px rgb(122 74 20 / 0.5), 0 2px 6px rgb(122 74 20 / 0.05);
	overflow: hidden;
	transition: transform var(--wt-dur-slow) var(--wt-ease-out), box-shadow var(--wt-dur-slow) var(--wt-ease-out);
}
.wt-teller--2 { --arch-a: #d7ece7; --arch-b: #7fb8ab; --ink: var(--wt-teal); }
.wt-teller.is-draft { border-style: dashed; border-color: rgb(180 71 47 / 0.35); }
.wt-teller__art {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: clamp(10px, 2vw, 24px);
	height: clamp(220px, 22vw, 268px);
	padding: 28px 24px 0;
	background:
		radial-gradient(ellipse 60% 70% at 50% 100%, rgb(255 236 200 / 0.9), transparent 70%),
		linear-gradient(180deg, rgb(255 247 238 / 0) 0%, rgb(251 238 221 / 0.8) 100%);
	border-bottom: 1px solid rgb(234 217 196 / 0.8);
}
.wt-teller__arch {
	position: relative;
	flex: none;
	display: grid;
	place-items: center;
	width: clamp(108px, 11vw, 140px);
	aspect-ratio: 4 / 5;
	margin-bottom: 26px;
	border-radius: 999px 999px 18px 18px;
	background: linear-gradient(180deg, var(--arch-a), var(--arch-b));
	box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.8), 0 0 0 1px rgb(122 74 20 / 0.08), 0 18px 28px -18px rgb(122 74 20 / 0.5);
	overflow: hidden;
}
.wt-teller__arch::before { content: ""; position: absolute; inset: 6px; border-radius: 999px 999px 13px 13px; border: 1px solid rgb(255 255 255 / 0.7); }
.wt-teller__monogram {
	position: relative;
	font-family: var(--wt-font-display);
	font-weight: 600;
	font-style: italic;
	font-size: clamp(2.6rem, 2rem + 1.6vw, 3.4rem);
	line-height: 1;
	letter-spacing: -0.04em;
	color: #fffaf2;
	text-shadow: 0 2px 10px rgb(70 38 6 / 0.25);
	font-variation-settings: "SOFT" 100, "opsz" 144;
}
.wt-site .wt-teller__portrait { width: 100%; height: 100%; object-fit: cover; }
.wt-teller__fan { position: relative; display: flex; align-items: flex-end; height: 100%; padding-bottom: 18px; }
.wt-site .wt-teller__cover {
	display: block;
	width: clamp(70px, 7.4vw, 104px);
	height: auto;
	max-width: none;
	margin-left: -22px;
	border-radius: 2px 6px 6px 2px;
	box-shadow: -2px 0 0 rgb(40 20 0 / 0.22), 0 18px 24px -12px rgb(70 38 6 / 0.55), 0 2px 4px rgb(70 38 6 / 0.15);
	transform-origin: 50% 100%;
	transition: transform var(--wt-dur-slow) var(--wt-ease-spring);
}
.wt-teller__cover:first-child { margin-left: 0; transform: rotate(-7deg); }
.wt-teller__cover:nth-child(2) { transform: translateY(-10px); z-index: 1; }
.wt-teller__cover:nth-child(3) { transform: rotate(7deg); }
.wt-teller:hover, .wt-teller:focus-within { transform: translateY(-4px); box-shadow: 0 1px 0 rgb(255 255 255 / 0.9) inset, 0 36px 60px -34px rgb(122 74 20 / 0.55), 0 2px 6px rgb(122 74 20 / 0.06); }
.wt-teller:hover .wt-teller__cover:first-child, .wt-teller:focus-within .wt-teller__cover:first-child { transform: rotate(-12deg) translateX(-10px); }
.wt-teller:hover .wt-teller__cover:nth-child(2), .wt-teller:focus-within .wt-teller__cover:nth-child(2) { transform: translateY(-18px); }
.wt-teller:hover .wt-teller__cover:nth-child(3), .wt-teller:focus-within .wt-teller__cover:nth-child(3) { transform: rotate(12deg) translateX(10px); }

.wt-teller__body { display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 2.4vw, 32px) clamp(22px, 2.6vw, 36px) clamp(26px, 2.6vw, 36px); }
.wt-site .wt-teller__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: var(--wt-fs-eyebrow); font-weight: 800; letter-spacing: var(--wt-tracking-eyebrow); text-transform: uppercase; color: var(--wt-gold-700); }
.wt-teller__kicker .wt-chip { letter-spacing: 0.04em; }
.wt-site .wt-teller__name {
	margin: 0;
	font-family: var(--wt-font-display);
	font-weight: 600;
	font-size: clamp(1.75rem, 1.4rem + 1.1vw, 2.35rem);
	line-height: 1.08;
	letter-spacing: -0.015em;
	color: var(--wt-teal-900);
}
.wt-site .wt-teller__link { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size var(--wt-dur-base) var(--wt-ease-out); }
.wt-site .wt-teller__link:hover, .wt-site .wt-teller__link:focus-visible { background-size: 100% 1.5px; }
.wt-site .wt-teller__link:focus-visible { outline: var(--wt-focus-ring); outline-offset: 4px; border-radius: 2px; }
.wt-site .wt-teller__line { margin: 0; font-size: var(--wt-fs-lead); line-height: 1.55; color: #3b4646; text-wrap: pretty; }
.wt-teller__group { margin-top: 6px; }
.wt-site .wt-teller__label { margin: 0 0 6px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wt-forest-700); }
.wt-site .wt-teller__worlds,
.wt-site .wt-teller__books { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.wt-teller__world {
	padding: 4px 12px;
	border-radius: var(--wt-radius-pill);
	background: rgb(6 79 75 / 0.07);
	border: 1px solid rgb(6 79 75 / 0.16);
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--wt-teal-900);
}
.wt-teller__world--series { background: rgb(161 124 170 / 0.1); border-color: rgb(110 76 120 / 0.22); color: var(--wt-lavender-700); }
.wt-site .wt-teller__world a { color: inherit; }
.wt-teller__books li { display: inline-flex; align-items: baseline; gap: 4px; font-size: 0.9375rem; }
.wt-teller__books li:not(:last-child)::after { content: "·"; margin-left: 4px; color: var(--wt-gold); }
.wt-site .wt-teller__book { color: var(--wt-teal); font-weight: 700; text-decoration: underline; text-decoration-color: rgb(6 79 75 / 0.3); text-underline-offset: 3px; }
.wt-site .wt-teller__book:hover { color: var(--wt-teal-900); text-decoration-color: currentColor; }
.wt-site .wt-teller__book:focus-visible { outline: var(--wt-focus-ring); outline-offset: 2px; border-radius: 2px; }
.wt-teller__draft { font-size: 0.75rem; color: var(--wt-coral-700); }
.wt-site .wt-tellers__note { margin-top: 36px; }

/* =========================================================================================
 * Family reading — cinematic
 * ======================================================================================= */
.wt-family {
	--_edge: 56px;
	position: relative;
	display: grid;
	align-items: center;
	min-height: clamp(560px, 58vw, 820px);
	padding: calc(var(--_edge) + clamp(40px, 5vw, 72px)) 0 calc(var(--_edge) + clamp(40px, 5vw, 72px));
	background: #0b2433;
	color: var(--wt-ivory);
	overflow: hidden;
	isolation: isolate;
}
.wt-family__scene { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.wt-family__art {
	position: absolute;
	inset: 0;
	background-image: url(../img/ornaments/reading-nook.svg);
	background-size: cover;
	background-position: 72% 50%;
	transform-origin: 66% 60%;
	animation: wt-family-drift 32s ease-in-out infinite alternate;
}
@keyframes wt-family-drift { from { scale: 1; } to { scale: 1.05; } }
.wt-family__lamp {
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse 28% 36% at 64% 68%, rgb(255 200 110 / 0.35), transparent 70%);
	mix-blend-mode: screen;
	animation: wt-flicker 6s ease-in-out infinite;
}
.wt-family__shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgb(7 22 30 / 0.94) 0%, rgb(7 22 30 / 0.82) 30%, rgb(7 22 30 / 0.2) 58%, rgb(7 22 30 / 0) 72%),
		linear-gradient(180deg, rgb(7 22 30 / 0.25), transparent 30%, transparent 70%, rgb(7 22 30 / 0.4));
}
.wt-family__motes { position: absolute; inset: 0; pointer-events: none; }
.wt-family__motes .wt-spark { --s: 5px; background: radial-gradient(circle, #fff6dc 0%, rgb(255 214 140 / 0.8) 30%, transparent 70%); opacity: 0.5; }
.wt-family__motes .wt-spark:nth-child(-n + 6) { left: calc(48% + var(--x) * 0.4); }
.wt-family__inner { position: relative; z-index: 2; width: 100%; max-width: var(--wt-content-max); margin-inline: auto; padding-inline: var(--wt-gutter); }
.wt-family__copy { max-width: 540px; }
.wt-site .wt-family__eyebrow { margin: 0 0 var(--wt-space-4); font-size: var(--wt-fs-eyebrow); font-weight: 800; letter-spacing: var(--wt-tracking-eyebrow); text-transform: uppercase; color: #f2be62; }
.wt-site .wt-family__title {
	margin: 0;
	font-family: var(--wt-font-display);
	font-weight: 600;
	font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.7rem);
	line-height: 1.06;
	letter-spacing: -0.02em;
	color: var(--wt-ivory);
	font-variation-settings: "SOFT" 70, "opsz" 120;
	text-shadow: 0 2px 30px rgb(0 0 0 / 0.35);
	text-wrap: balance;
}
.wt-site .wt-family__beats { margin: clamp(22px, 2.6vw, 32px) 0 0; padding-left: 18px; border-left: 2px solid rgb(242 190 98 / 0.55); }
.wt-family__beat { display: block; font-family: var(--wt-font-display); font-style: italic; font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem); line-height: 1.55; color: #fbe3b4; }
.wt-site .wt-family__text { margin: clamp(22px, 2.6vw, 30px) 0 0; font-size: var(--wt-fs-lead); line-height: 1.6; color: rgb(255 247 238 / 0.88); max-width: 44ch; }
.wt-site .wt-family__closing {
	margin: 10px 0 0;
	font-family: var(--wt-font-display);
	font-weight: 600;
	font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.8rem);
	line-height: 1.3;
	color: #f2be62;
	text-shadow: 0 0 30px rgb(242 190 98 / 0.35);
	max-width: 30ch;
}
@media (max-width: 899px) {
	.wt-family { display: block; min-height: 0; padding: 0 0 calc(var(--_edge) + 48px); }
	.wt-family__scene { position: relative; height: min(84vw, 520px); }
	.wt-family__art { background-position: 58% 60%; }
	.wt-family__shade { background: linear-gradient(180deg, rgb(11 36 51 / 0.2) 0%, transparent 25%, transparent 55%, #0b2433 100%); }
	.wt-family__lamp { background: radial-gradient(ellipse 50% 40% at 56% 68%, rgb(255 200 110 / 0.3), transparent 70%); }
	.wt-family__inner { margin-top: -40px; }
}

/* =========================================================================================
 * Why families love WonderTale House
 * ======================================================================================= */
.wt-pillars {
	position: relative;
	padding: clamp(64px, 7vw, 112px) 0;
	background:
		radial-gradient(ellipse 50% 40% at 50% 70%, rgb(255 232 190 / 0.55), transparent 70%),
		linear-gradient(180deg, #fff7ee 0%, #fffaf4 100%);
	overflow: hidden;
}
.wt-pillars__layer--sprig-a { top: 20px; left: -40px; transform: translate3d(0, var(--wt-parallax-y, 0px), 0) rotate(-4deg); }
.wt-pillars__layer--sprig-b { top: 28px; right: -40px; transform: translate3d(0, var(--wt-parallax-y, 0px), 0) scaleX(-1) rotate(-4deg); }
.wt-pillars__layer--glow { background: radial-gradient(ellipse 40% 30% at 50% 0%, rgb(242 190 98 / 0.18), transparent 70%); }
.wt-pillars__inner { position: relative; z-index: 3; max-width: var(--wt-content-max); margin-inline: auto; padding-inline: var(--wt-gutter); }
.wt-site .wt-pillars__list { display: grid; gap: clamp(18px, 2.2vw, 28px); margin: clamp(32px, 4vw, 56px) 0 0; padding: 0; list-style: none; }
@media (min-width: 600px) { .wt-site .wt-pillars__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .wt-site .wt-pillars__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.wt-pillar {
	--tint-a: #fde6d6;
	--tint-b: #fff4ec;
	--rim: #f2c2a6;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0;
	padding: 22px 22px 30px;
	text-align: center;
	border-radius: 30px;
	background: linear-gradient(180deg, rgb(255 255 255 / 0.75), #fffaf2 55%);
	border: 1px solid rgb(234 217 196 / 0.9);
	box-shadow: 0 1px 0 rgb(255 255 255 / 0.9) inset, 0 24px 44px -32px rgb(122 74 20 / 0.45);
	transition: transform var(--wt-dur-slow) var(--wt-ease-out), box-shadow var(--wt-dur-slow) var(--wt-ease-out);
}
.wt-pillar--seed { --tint-a: #d8eedf; --tint-b: #f1faf4; --rim: #a9d3b8; }
.wt-pillar--together { --tint-a: #e9ddf2; --tint-b: #f8f2fb; --rim: #cdb5e0; }
.wt-pillar--library { --tint-a: #fbeac0; --tint-b: #fff8e4; --rim: #ecc977; }
.wt-pillar__frame {
	position: relative;
	display: block;
	width: min(100%, 220px);
	aspect-ratio: 240 / 210;
	border-radius: 999px 999px 24px 24px;
	background: linear-gradient(180deg, var(--tint-a), var(--tint-b));
	box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.85), 0 0 0 1px var(--rim), 0 16px 26px -18px rgb(122 74 20 / 0.45);
	overflow: hidden;
}
.wt-pillar__frame::before { content: ""; position: absolute; inset: 7px; border-radius: 999px 999px 18px 18px; border: 1px solid rgb(255 255 255 / 0.75); }
.wt-pillar__art { position: absolute; inset: 8% 4% 0; transition: transform var(--wt-dur-slow) var(--wt-ease-spring); }
.wt-pillar--again .wt-pillar__art { background-image: url(../img/ornaments/pillar-again.svg); }
.wt-pillar--seed .wt-pillar__art { background-image: url(../img/ornaments/pillar-seed.svg); }
.wt-pillar--together .wt-pillar__art { background-image: url(../img/ornaments/pillar-together.svg); }
.wt-pillar--library .wt-pillar__art { background-image: url(../img/ornaments/pillar-library.svg); }
.wt-pillar__num { margin-top: 18px; font-family: var(--wt-font-display); font-style: italic; font-size: 0.95rem; color: var(--wt-gold-700); letter-spacing: 0.06em; }
.wt-site .wt-pillar__title {
	margin: 6px 0 0;
	font-family: var(--wt-font-display);
	font-weight: 600;
	font-size: clamp(1.2rem, 1.1rem + 0.35vw, 1.4rem);
	line-height: 1.2;
	color: var(--wt-teal-900);
	text-wrap: balance;
}
.wt-site .wt-pillar__copy { margin: 10px 0 0; font-size: 0.975rem; line-height: 1.6; color: #3b4646; max-width: 30ch; }
.wt-pillar:hover { transform: translateY(-5px); box-shadow: 0 1px 0 rgb(255 255 255 / 0.9) inset, 0 32px 52px -30px rgb(122 74 20 / 0.5); }
.wt-pillar:hover .wt-pillar__art { transform: translateY(-6px) scale(1.04); }

/* =========================================================================================
 * Story Circle — design only
 * ======================================================================================= */
.wt-circle { position: relative; padding: clamp(40px, 5vw, 72px) 0 clamp(96px, 9vw, 144px); background: linear-gradient(180deg, #fffaf4 0%, #fff7ee 100%); }
.wt-circle__inner { position: relative; z-index: 3; max-width: calc(1100px + 2 * var(--wt-gutter)); margin-inline: auto; padding-inline: var(--wt-gutter); }
.wt-circle__card {
	position: relative;
	display: grid;
	gap: clamp(24px, 3vw, 48px);
	align-items: center;
	padding: clamp(48px, 5vw, 64px) clamp(24px, 4.4vw, 64px) clamp(32px, 4vw, 56px);
	border-radius: 36px;
	background:
		radial-gradient(ellipse 50% 70% at 100% 0%, rgb(234 223 241 / 0.9), transparent 70%),
		radial-gradient(ellipse 60% 80% at 0% 100%, rgb(255 226 170 / 0.6), transparent 70%),
		linear-gradient(135deg, #fde9dc 0%, #fbf0f2 50%, #f1e8f6 100%);
	border: 1px solid rgb(234 217 196 / 0.9);
	box-shadow: 0 1px 0 rgb(255 255 255 / 0.9) inset, 0 34px 60px -40px rgb(122 74 20 / 0.55);
}
.wt-circle__card::after { content: ""; position: absolute; inset: 10px; border-radius: 28px; border: 1px dashed rgb(138 90 16 / 0.22); pointer-events: none; }
@media (min-width: 900px) { .wt-circle__card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.wt-circle__layer--sprig { top: 14px; right: 20px; width: clamp(110px, 12vw, 170px); transform: scaleX(-1) rotate(-6deg); opacity: 0.8; }
.wt-circle__layer--flutter::before {
	content: "";
	position: absolute;
	left: 46%;
	top: -18px;
	width: 34px;
	aspect-ratio: 64 / 52;
	background: url(../img/ornaments/butterfly.svg) center / contain no-repeat;
	animation: wt-flap 0.9s ease-in-out infinite alternate, wt-drift 13s ease-in-out infinite;
}
.wt-circle__seal { position: absolute; z-index: 2; top: -30px; left: clamp(24px, 4.4vw, 64px); width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #fffaf2; box-shadow: 0 0 0 6px rgb(255 247 238 / 0.9), 0 12px 24px -10px rgb(122 74 20 / 0.45); }
.wt-circle__seal svg { width: 44px; height: 44px; }
.wt-circle__copy, .wt-circle__signup { position: relative; z-index: 2; }
.wt-site .wt-circle__eyebrow { margin: 0 0 var(--wt-space-3); font-size: var(--wt-fs-eyebrow); font-weight: 800; letter-spacing: var(--wt-tracking-eyebrow); text-transform: uppercase; color: var(--wt-coral-700); }
.wt-site .wt-circle__title {
	margin: 0;
	font-family: var(--wt-font-display);
	font-weight: 600;
	font-size: clamp(1.9rem, 1.4rem + 1.9vw, 2.9rem);
	line-height: 1.08;
	letter-spacing: -0.015em;
	color: var(--wt-teal-900);
	text-wrap: balance;
}
.wt-site .wt-circle__text { margin: var(--wt-space-4) 0 0; font-size: var(--wt-fs-lead); line-height: 1.6; color: #3b4646; max-width: 42ch; }
.wt-circle__label { display: block; margin: 0 0 8px; font-size: 0.875rem; font-weight: 800; color: var(--wt-teal-900); }
.wt-circle__row { display: flex; flex-wrap: wrap; gap: 10px; }
.wt-site .wt-circle__input {
	flex: 1 1 220px;
	min-width: 0;
	height: var(--wt-btn-h-lg);
	padding: 0 20px;
	border-radius: var(--wt-radius-pill);
	border: 1.5px solid rgb(6 79 75 / 0.25);
	background: rgb(255 255 255 / 0.75);
	font: inherit;
	font-size: 1rem;
	color: var(--wt-ink);
}
.wt-site .wt-circle__input:disabled { cursor: not-allowed; border-style: dashed; color: #5d6868; }
.wt-site .wt-circle__input:disabled::placeholder { color: #6b7575; }
.wt-site .wt-circle__btn[disabled] { opacity: 0.62; flex: 0 0 auto; }
.wt-site .wt-circle__status {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 14px 0 0;
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--wt-teal-900);
}
.wt-circle__dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--wt-gold); box-shadow: 0 0 0 4px rgb(233 162 59 / 0.22); }
.wt-site .wt-circle__audience { margin: 6px 0 0; font-size: 0.875rem; color: #4a5555; }

/* =========================================================================================
 * Final call to action
 * ======================================================================================= */
.wt-finale {
	--_edge: 56px;
	position: relative;
	padding: calc(var(--_edge) + clamp(48px, 6vw, 96px)) 0 clamp(64px, 7vw, 112px);
	background:
		radial-gradient(ellipse 40% 60% at 30% 60%, rgb(255 196 100 / 0.22), transparent 70%),
		radial-gradient(ellipse 70% 60% at 70% 20%, rgb(18 120 110 / 0.6), transparent 70%),
		linear-gradient(180deg, #053f3b 0%, var(--wt-teal) 40%, #03302d 100%);
	color: var(--wt-ivory);
	overflow: hidden;
}
.wt-finale__layer--sky { background: url(../img/ornaments/stars.svg) center top / cover no-repeat; opacity: 0.6; }
.wt-finale__layer--flutter::before {
	content: "";
	position: absolute;
	left: 18%;
	top: 26%;
	width: 40px;
	aspect-ratio: 64 / 52;
	background: url(../img/ornaments/butterfly.svg) center / contain no-repeat;
	animation: wt-flap 0.9s ease-in-out infinite alternate, wt-drift 16s ease-in-out infinite;
	filter: drop-shadow(0 0 10px rgb(255 210 120 / 0.6));
}
.wt-finale__fireflies { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.wt-finale__fireflies .wt-spark { --s: 6px; background: radial-gradient(circle, #fffbe0 0%, rgb(255 226 140 / 0.9) 28%, rgb(233 162 59 / 0) 70%); }
.wt-finale__inner {
	position: relative;
	z-index: 3;
	display: grid;
	gap: clamp(24px, 4vw, 64px);
	align-items: center;
	justify-items: center;
	max-width: var(--wt-content-max);
	margin-inline: auto;
	padding-inline: var(--wt-gutter);
	text-align: center;
}
@media (min-width: 900px) {
	.wt-finale__inner { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); justify-items: start; text-align: left; }
}
.wt-finale__door { position: relative; width: clamp(200px, 28vw, 360px); aspect-ratio: 520 / 640; }
.wt-finale__art { position: absolute; inset: 0; background-image: url(../img/ornaments/story-door.svg); }
.wt-finale__spill {
	position: absolute;
	left: 50%;
	top: 52%;
	width: 60%;
	height: 50%;
	translate: -50% -50%;
	border-radius: 50%;
	background: radial-gradient(circle, rgb(255 226 150 / 0.55), transparent 70%);
	filter: blur(8px);
	mix-blend-mode: screen;
	animation: wt-flicker 5s ease-in-out infinite;
}
.wt-site .wt-finale__title {
	margin: 0;
	font-family: var(--wt-font-display);
	font-weight: 600;
	font-size: clamp(2.3rem, 1.5rem + 3vw, 4.1rem);
	line-height: 1.04;
	letter-spacing: -0.02em;
	color: var(--wt-ivory);
	font-variation-settings: "SOFT" 70, "opsz" 130;
	text-shadow: 0 2px 30px rgb(0 0 0 / 0.3);
	text-wrap: balance;
	max-width: 15ch;
}
.wt-site .wt-finale__text { margin: var(--wt-space-5) 0 0; font-family: var(--wt-font-display); font-style: italic; font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem); line-height: 1.55; color: #fbe3b4; max-width: 34ch; }
.wt-finale__cta { margin-top: var(--wt-space-6); box-shadow: 0 12px 30px -10px rgb(233 162 59 / 0.65), 0 0 0 6px rgb(233 162 59 / 0.14); }
.wt-site .wt-finale__cta:focus-visible { outline: 3px solid var(--wt-ivory); outline-offset: 4px; }
@media (max-width: 899px) {
	.wt-site .wt-finale__title, .wt-site .wt-finale__text { margin-inline: auto; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.wt-welcome__art,
	.wt-family__art,
	.wt-family__lamp,
	.wt-finale__spill,
	.wt-tellers__layer--flutter::before, .wt-tellers__layer--flutter::after,
	.wt-circle__layer--flutter::before,
	.wt-finale__layer--flutter::before { animation: none !important; }
	.wt-teller, .wt-teller__cover, .wt-pillar, .wt-pillar__art { transition: none !important; }
	.wt-teller:hover, .wt-teller:focus-within, .wt-pillar:hover { transform: none; }
	.wt-teller:hover .wt-teller__cover:first-child, .wt-teller:focus-within .wt-teller__cover:first-child { transform: rotate(-7deg); }
	.wt-teller:hover .wt-teller__cover:nth-child(2), .wt-teller:focus-within .wt-teller__cover:nth-child(2) { transform: translateY(-10px); }
	.wt-teller:hover .wt-teller__cover:nth-child(3), .wt-teller:focus-within .wt-teller__cover:nth-child(3) { transform: rotate(7deg); }
	.wt-pillar:hover .wt-pillar__art { transform: none; }
}
@media (hover: none) {
	.wt-teller:hover, .wt-pillar:hover { transform: none; }
	.wt-pillar:hover .wt-pillar__art { transform: none; }
}

/* ---------- Small screens ---------- */
@media (max-width: 767px) {
	.wt-welcome { --_wave: 44px; }
	.wt-welcome__layer--sprig-a { width: 110px; right: -40px; opacity: 0.7; }
	.wt-welcome__layer--sprig-b { width: 110px; left: -46px; opacity: 0.7; }
	.wt-pillars__layer--sprig-a, .wt-pillars__layer--sprig-b { width: 96px; opacity: 0.6; }
	.wt-family, .wt-finale { --_edge: 40px; }
	.wt-teller__art { height: 210px; }
	.wt-circle__layer--sprig { width: 96px; right: 10px; top: 10px; }
}

/* Single-column Welcome: keep the warm light behind the illustration, not behind the copy. */
@media (max-width: 959px) {
	.wt-welcome {
		background:
			radial-gradient(ellipse 70% 22% at 50% 84%, rgb(255 230 180 / 0.7), transparent 70%),
			radial-gradient(ellipse 50% 30% at 8% 12%, rgb(248 215 196 / 0.45), transparent 70%),
			linear-gradient(180deg, #fff7ee 0%, #fffaf3 60%, #fff7ee 100%);
		background-position: 0 var(--_top);
		background-size: 100% calc(100% - var(--_top));
		background-repeat: no-repeat;
	}
	.wt-welcome__layer--glow { background: radial-gradient(ellipse 60% 20% at 50% 84%, rgb(255 222 160 / 0.4), transparent 70%); }
}
