/* ==========================================================================
   Echoes of Life — site styles
   Tokens live in theme.json; this file holds layout pieces, motion and
   components that theme.json can't express.
   ========================================================================== */

:root {
	--eol-ease: cubic-bezier(.22, 1, .36, 1);
	--eol-ease-soft: cubic-bezier(.45, 0, .55, 1);
	--eol-radius: 20px;
	--eol-radius-media: 16px;
	--eol-line: var(--wp--preset--color--line, #E7DDD1);
	--eol-red: var(--wp--preset--color--red, #D4111A);
	--eol-brand: var(--wp--preset--color--brand-red, #F91515);
	--eol-ink: var(--wp--preset--color--ink, #1F1A17);
	--eol-ink-soft: var(--wp--preset--color--ink-soft, #5D544E);
	--eol-cream: var(--wp--preset--color--cream, #FAF6F0);
	--eol-sand: var(--wp--preset--color--sand, #F2EAE0);
	--eol-blush: var(--wp--preset--color--blush, #F8E6E1);
	--eol-shadow: 0 1px 2px rgba(31, 26, 23, .04), 0 12px 32px -12px rgba(31, 26, 23, .16);
	--eol-header-h: 76px;
}

@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: .22s; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--eol-header-h) + 24px); }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: clip; }
::selection { background: var(--eol-blush); color: var(--eol-ink); }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--eol-red); outline-offset: 3px; border-radius: 6px; }
img { height: auto; }

/* ---------- Type helpers ---------- */
:where(h1, h2, h3, .eol-statement) em { font-style: italic; font-weight: 400; color: var(--eol-red); }
.eol-eyebrow { font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--eol-red); margin-bottom: .35rem; }
.eol-eyebrow a { color: inherit; text-decoration: none; }
.eol-eyebrow a:hover { text-decoration: underline; }
.wp-block-post-terms.eol-eyebrow a { color: var(--eol-red); }
.eol-script { font-family: var(--wp--preset--font-family--script); font-size: clamp(1.9rem, 1.5rem + 1.3vw, 2.6rem); line-height: 1.1; color: var(--eol-red); letter-spacing: 0; text-transform: none; }
.eol-lede { font-size: clamp(1.15rem, 1.05rem + .45vw, 1.375rem); line-height: 1.55; color: var(--eol-ink-soft); }
.eol-statement { font-family: var(--wp--preset--font-family--serif); font-size: clamp(1.75rem, 1.15rem + 2.5vw, 3rem); line-height: 1.25; letter-spacing: -.01em; color: var(--eol-ink); max-width: 28ch; }
.eol-big-quote { font-family: var(--wp--preset--font-family--serif); font-style: italic; font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3.1rem); line-height: 1.22; letter-spacing: -.01em; color: var(--eol-ink); }
.eol-cite { font-size: .9375rem; color: var(--eol-ink-soft); letter-spacing: .02em; }
.eol-cite::before { content: "— "; color: var(--eol-red); }
.eol-kicker { font-family: var(--wp--preset--font-family--script); color: var(--eol-red); font-size: 1.75rem; line-height: 1; }
.eol-aside { margin-top: var(--wp--preset--spacing--40) !important; color: var(--eol-ink-soft); }

/* Arrow links: text + sliding arrow. The ::before stretches the link over its card. */
.eol-arrow a { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; color: var(--eol-red); text-decoration: none; }
.eol-arrow a::after { content: "→"; transition: transform .2s var(--eol-ease); }
.eol-arrow a:hover::after, .eol-arrow a:focus-visible::after { transform: translateX(4px); }
.eol-arrow a:hover { color: var(--wp--preset--color--red-dark); }
.eol-arrow-more .wp-block-post-excerpt__more-link { display: inline-flex; gap: .45em; margin-top: .75rem; font-weight: 600; text-decoration: none; }
.eol-arrow-more .wp-block-post-excerpt__more-link::after { content: "→"; transition: transform .2s var(--eol-ease); }
.eol-arrow-more .wp-block-post-excerpt__more-link:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.eol-site-header { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 100; }
/* The blur lives on a pseudo-element: backdrop-filter on the header itself would
   trap the full-screen mobile menu (position: fixed) inside the header box. */
.eol-header { position: relative; z-index: 0; border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.eol-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(250, 246, 240, .9); -webkit-backdrop-filter: saturate(1.3) blur(12px); backdrop-filter: saturate(1.3) blur(12px); opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.eol-scrolled .eol-header { border-bottom-color: var(--eol-line); }
.eol-scrolled .eol-header::before { opacity: 1; }
.eol-header__inner { gap: 1.5rem; }
.eol-logo img { width: 96px; height: auto; }
.eol-header__actions { gap: 1.25rem; }
.eol-header__donate .wp-block-button__link { padding: .62rem 1.25rem; font-size: 1rem; }

.eol-nav .wp-block-navigation-item__content { position: relative; padding-block: .35rem; }
.eol-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--eol-red);
	transform: scaleX(0); transform-origin: left; transition: transform .2s var(--eol-ease);
}
.eol-nav .wp-block-navigation__container > .wp-block-navigation-item:hover > .wp-block-navigation-item__content::after,
.eol-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content[aria-current="page"]::after { transform: scaleX(1); }
.eol-nav .wp-block-navigation__submenu-container {
	border: 1px solid var(--eol-line) !important; border-radius: 16px; padding: .5rem !important; background: #fff !important;
	box-shadow: var(--eol-shadow); min-width: 230px !important; margin-top: .4rem;
}
.eol-nav .has-child > .wp-block-navigation__submenu-container { transform: translateY(6px); transition: opacity .18s ease, transform .18s var(--eol-ease), visibility .18s; }
.eol-nav .has-child:hover > .wp-block-navigation__submenu-container,
.eol-nav .has-child:focus-within > .wp-block-navigation__submenu-container { transform: translateY(0); }
.eol-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: .6rem .85rem !important; border-radius: 10px; }
.eol-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--eol-sand); }
.eol-nav .wp-block-navigation__responsive-container-open { padding: .5rem; border-radius: 999px; }

/* Collapse to the menu button below 1080px (core only collapses below 600px). */
@media (min-width: 600px) and (max-width: 1079px) {
	.eol-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.eol-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
.eol-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--eol-cream) !important; padding: clamp(1.25rem, 4vw, 2.5rem); }
.eol-nav .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 3.5rem; align-items: flex-start !important; }
.eol-nav .wp-block-navigation__responsive-container.is-menu-open { --navigation-layout-justification-setting: flex-start; --navigation-layout-justify: flex-start; }
.eol-nav .is-menu-open .wp-block-navigation__container, .eol-nav .is-menu-open .wp-block-navigation-item { align-items: flex-start !important; text-align: left; }
/* "Donate" lives in the header as a button; inside the open menu it is repeated as a pill. */
.eol-nav .eol-nav-donate { display: none !important; }
.eol-nav .is-menu-open .eol-nav-donate { display: flex !important; margin-top: 1rem; }
.eol-nav .is-menu-open .eol-nav-donate .wp-block-navigation-item__content { font-family: var(--wp--preset--font-family--sans); font-size: 1.125rem; font-weight: 600; color: #fff !important; background: var(--eol-red); padding: .8rem 1.6rem !important; border-radius: 999px; }
.eol-nav .is-menu-open .wp-block-navigation__container { gap: .9rem !important; }
.eol-nav .is-menu-open .wp-block-navigation-item__content { font-family: var(--wp--preset--font-family--serif); font-size: 1.6rem; }
.eol-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-family: var(--wp--preset--font-family--sans); font-size: 1.125rem; color: var(--eol-ink-soft); }
.eol-nav .is-menu-open .wp-block-navigation__submenu-container { border: 0 !important; box-shadow: none; background: transparent !important; padding: .25rem 0 0 .25rem !important; margin: 0; }
.js-motion .eol-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item { animation: eol-rise .4s var(--eol-ease) both; }
.js-motion .eol-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:nth-child(2) { animation-delay: .04s; }
.js-motion .eol-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:nth-child(3) { animation-delay: .08s; }
.js-motion .eol-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:nth-child(4) { animation-delay: .12s; }
.js-motion .eol-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:nth-child(5) { animation-delay: .16s; }

@media (max-width: 600px) {
	/* The admin bar scrolls away on phones, so the sticky header should sit at the very top. */
	.eol-site-header { top: 0; }
}
@media (max-width: 599px) {
	.eol-logo img { width: 78px; }
	.eol-header__actions { gap: .6rem; }
	.eol-header__donate .wp-block-button__link { padding: .55rem 1rem; font-size: .9375rem; }
}

/* ---------- Buttons ---------- */
.wp-block-button__link { transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .16s ease; }
.wp-block-button__link:active { transform: scale(.98); }
.is-style-outline .wp-block-button__link:hover { background: var(--eol-ink); color: #fff; border-color: var(--eol-ink); }
.eol-ring-btn .wp-block-button__link { position: relative; }
.eol-ring-btn .wp-block-button__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.eol-ring-btn .wp-block-button__link:hover::after { animation: eol-btn-ring .7s var(--eol-ease); }
@keyframes eol-btn-ring { from { box-shadow: 0 0 0 0 rgba(212, 17, 26, .38); } to { box-shadow: 0 0 0 9px rgba(212, 17, 26, 0); } }

/* ---------- Sections & grids ---------- */
.eol-section { position: relative; }
.eol-section-head { margin-bottom: var(--wp--preset--spacing--50); }
.eol-section-head--split { gap: 1.5rem; }
.eol-grid { gap: clamp(1rem, .75rem + 1vw, 1.5rem); grid-template-columns: repeat(auto-fit, minmax(min(var(--eol-min, 16rem), 100%), 1fr)) !important; }
.eol-grid--3 { --eol-min: 17rem; }
.eol-grid--4 { --eol-min: 13.5rem; }
.eol-statement-band .eol-statement { margin-top: .5rem; }

/* ---------- Cards ---------- */
.eol-card {
	position: relative; display: flex; flex-direction: column; gap: .7rem;
	background: #fff; border: 1px solid var(--eol-line); border-radius: var(--eol-radius);
	padding: clamp(1.5rem, 1.2rem + 1vw, 2rem);
	transition: transform .2s var(--eol-ease), border-color .2s ease, box-shadow .2s ease;
}
.eol-card > * { margin: 0 !important; }
.eol-card p { color: var(--eol-ink-soft); }
.eol-card .eol-arrow { margin-top: auto !important; padding-top: .35rem; }
.eol-card .eol-arrow a::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.eol-card:has(.eol-arrow a):hover,
.eol-card:has(.eol-arrow a):focus-within { transform: translateY(-4px); border-color: color-mix(in srgb, var(--eol-red) 24%, var(--eol-line)); box-shadow: var(--eol-shadow); }
.eol-card--quiet { background: transparent; }
.eol-card--quiet:has(.eol-arrow a):hover { background: #fff; }
.eol-icon-card::before {
	content: ""; display: block; width: 52px; height: 52px; border-radius: 50%; margin-bottom: .5rem;
	background-color: var(--eol-blush); background-repeat: no-repeat; background-position: center; background-size: 26px;
	transition: transform .3s var(--eol-ease);
}
.eol-icon-card:hover::before { transform: scale(1.06); }

/* ---------- Hero ---------- */
.eol-hero { position: relative; overflow: clip; }
.eol-hero h1 { font-size: clamp(3rem, 1.9rem + 4.6vw, 5.6rem); margin-top: .5rem; }
.eol-hero .eol-lede { max-width: 44ch; }
.eol-hero .wp-block-buttons { margin-top: var(--wp--preset--spacing--40); }

.eol-tv-card { position: relative; background: #fff; border: 1px solid var(--eol-line); border-radius: 28px; padding: .9rem .9rem 1.75rem; box-shadow: var(--eol-shadow); transition: transform .3s var(--eol-ease), box-shadow .3s ease; }
.eol-tv-card > *:not(.eol-tv-card__screen) { padding-inline: .9rem; }
.eol-tv-card:hover { transform: translateY(-4px); }
.eol-tv-card .eol-arrow a::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.eol-tv-card h2 { margin-top: .35rem; }
.eol-tv-card__screen {
	position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; margin-bottom: 1.4rem !important;
	border-radius: 20px; overflow: hidden; isolation: isolate;
	background: radial-gradient(circle at 50% 50%, #fff 0%, var(--eol-blush) 42%, var(--eol-sand) 100%);
}

/* ---------- Page heroes ---------- */
.eol-page-hero { position: relative; }
.eol-page-hero--rings { overflow: clip; }
.eol-page-hero--rings > *:not(.eol-page-hero__rings) { position: relative; z-index: 1; }
.eol-page-hero__rings { position: absolute !important; right: -14%; top: 50%; width: min(64vw, 760px); aspect-ratio: 1; translate: 0 -50%; margin: 0 !important; }
.eol-page-hero h1 { margin-top: .4rem; }
.eol-page-hero .wp-block-buttons { margin-top: var(--wp--preset--spacing--40); }

.eol-tv-hero { position: relative; overflow: clip; text-align: center; }
.eol-tv-hero > *:not(.eol-tv-hero__rings) { position: relative; z-index: 1; }
.eol-tv-hero__rings { position: absolute !important; inset: 0; margin: 0 !important; pointer-events: none; max-width: none !important; }
.eol-tv-hero__rings .eol-rings { position: absolute; left: 50%; top: 50%; width: min(120vw, 1100px); aspect-ratio: 1; translate: -50% -50%; }
.eol-tv-hero h1 { font-size: clamp(3rem, 1.8rem + 5vw, 6rem); }
.eol-word-ring { display: none; }
@media (min-width: 1100px) {
	.eol-word-ring { display: block; position: absolute; inset: 0; }
	.eol-word-ring span { position: absolute; font-family: var(--wp--preset--font-family--serif); font-style: italic; font-size: 1.15rem; color: var(--eol-ink-soft); opacity: 0; }
	.eol-word-ring span:nth-child(1) { left: 9%; top: 26%; }
	.eol-word-ring span:nth-child(2) { left: 4%; top: 54%; }
	.eol-word-ring span:nth-child(3) { left: 11%; top: 80%; }
	.eol-word-ring span:nth-child(4) { right: 9%; top: 24%; }
	.eol-word-ring span:nth-child(5) { right: 4%; top: 52%; }
	.eol-word-ring span:nth-child(6) { right: 12%; top: 79%; }
	.js-motion .eol-word-ring span { animation: eol-word-breathe 12s var(--eol-ease-soft) infinite; }
	.js-motion .eol-word-ring span:nth-child(2) { animation-delay: 2s; }
	.js-motion .eol-word-ring span:nth-child(3) { animation-delay: 4s; }
	.js-motion .eol-word-ring span:nth-child(4) { animation-delay: 1s; }
	.js-motion .eol-word-ring span:nth-child(5) { animation-delay: 3s; }
	.js-motion .eol-word-ring span:nth-child(6) { animation-delay: 5s; }
	html:not(.js-motion) .eol-word-ring span { opacity: .55; }
}
@keyframes eol-word-breathe { 0%, 100% { opacity: 0; transform: translateY(6px); } 20%, 60% { opacity: .7; transform: none; } }

/* ---------- Echo rings (signature motion) ---------- */
.eol-rings { display: block; pointer-events: none; }
.eol-rings svg { display: block; width: 100%; height: 100%; overflow: visible; }
.eol-rings circle { fill: none; stroke: var(--eol-brand); stroke-width: 1.25; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; opacity: 0; }
.eol-rings circle.eol-ring-static { opacity: .14; }
.eol-rings circle.eol-ring-anim { animation: eol-ring 9s var(--eol-ease-soft) infinite; }
.eol-rings circle.eol-ring-anim:nth-of-type(3) { animation-delay: -3s; }
.eol-rings circle.eol-ring-anim:nth-of-type(4) { animation-delay: -6s; }
.eol-rings.is-paused circle { animation-play-state: paused; }
@keyframes eol-ring { 0% { transform: scale(.6); opacity: 0; } 14% { opacity: var(--eol-ring-opacity, .42); } 100% { transform: scale(1.62); opacity: 0; } }
.eol-rings--soft { --eol-ring-opacity: .26; position: absolute !important; left: 50%; top: 50%; width: min(140vw, 980px); aspect-ratio: 1; translate: -50% -50%; margin: 0 !important; }
.eol-rings--corner { --eol-ring-opacity: .32; position: absolute !important; right: -140px; top: -160px; width: 460px; aspect-ratio: 1; margin: 0 !important; }
.eol-rings--hero { --eol-ring-opacity: .4; }
.eol-tv-card__screen .eol-rings { position: absolute; inset: -20%; --eol-ring-opacity: .5; }
.eol-share-cta, .eol-donate-band, .eol-feature-panel { position: relative; overflow: hidden; isolation: isolate; }
.eol-share-cta > *:not(.eol-rings), .eol-donate-band > *:not(.eol-rings), .eol-feature-panel > *:not(.eol-rings) { position: relative; z-index: 1; }
.eol-donate-band, .eol-feature-panel { border-radius: 28px; gap: 2rem; }
.eol-donate-band__text { flex: 1 1 32rem; max-width: 46rem; }
.eol-donate-band__text h2 { margin-top: 0; }

/* Static ring divider whose outline draws in. */
.eol-ring-divider { display: block; width: 88px; height: 88px; margin: 0 auto var(--wp--preset--spacing--40) !important; }
.eol-ring-divider svg { width: 100%; height: 100%; overflow: visible; }
.eol-ring-divider circle { fill: none; stroke: var(--eol-brand); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.eol-ring-divider circle:nth-child(1) { opacity: .7; }
.eol-ring-divider circle:nth-child(2) { opacity: .4; }
.eol-ring-divider circle:nth-child(3) { opacity: .2; }
.js-motion .eol-ring-divider circle { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--eol-ease); }
.js-motion .eol-ring-divider circle:nth-child(2) { transition-delay: .15s; }
.js-motion .eol-ring-divider circle:nth-child(3) { transition-delay: .3s; }
.js-motion .eol-ring-divider.is-visible circle { stroke-dashoffset: 0; }

/* Play button */
.eol-play { position: relative; z-index: 2; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .94); box-shadow: 0 8px 24px -8px rgba(31, 26, 23, .3); transition: transform .3s var(--eol-ease); }
.eol-play::before { content: ""; width: 0; height: 0; margin-left: 4px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent var(--eol-red); }
.eol-play::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.eol-play--large { width: 88px; height: 88px; }
.eol-play--large::before { border-width: 13px 0 13px 21px; margin-left: 6px; }
:where(.eol-tv-card, .eol-episode, .eol-featured-episode__row):hover .eol-play { transform: scale(1.08); }
:where(.eol-tv-card, .eol-episode, .eol-featured-episode__row):hover .eol-play::after { animation: eol-btn-ring .7s var(--eol-ease); }

/* ---------- Episodes (Ripples of Life TV) ---------- */
.eol-episode-grid { gap: clamp(1rem, .75rem + 1.2vw, 1.75rem) !important; }
@media (min-width: 600px) and (max-width: 900px) { .eol-episode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
.eol-episode { position: relative; display: flex; flex-direction: column; gap: .9rem; }
.eol-episode > * { margin: 0 !important; }
.eol-thumb { position: relative; margin: 0 !important; border-radius: var(--eol-radius-media); overflow: hidden; background: var(--eol-sand); isolation: isolate; }
.eol-thumb img { transition: transform .6s var(--eol-ease); }
:where(.eol-episode, .eol-featured-episode__row):hover .eol-thumb img { transform: scale(1.03); }
.eol-thumb--video:not(.eol-has-placeholder) a::after {
	content: ""; position: absolute; left: 1rem; bottom: 1rem; width: 52px; height: 52px; border-radius: 50%;
	background: rgba(255, 255, 255, .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7.5v9l7.5-4.5z' fill='%23D4111A'/%3E%3C/svg%3E") center / 26px no-repeat;
	transition: transform .3s var(--eol-ease);
}
.eol-episode:hover .eol-thumb--video:not(.eol-has-placeholder) a::after { transform: scale(1.08); }
.eol-placeholder { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; background: radial-gradient(circle at 50% 46%, #fff 0%, var(--eol-blush) 40%, var(--eol-sand) 100%); }
.eol-thumb--wide .eol-placeholder { aspect-ratio: 16 / 9; }
.eol-thumb--portrait .eol-placeholder { aspect-ratio: 1; }
.eol-placeholder .eol-rings { position: absolute; inset: -30%; --eol-ring-opacity: .45; }
.eol-has-placeholder a { display: block; }
.eol-initial { position: relative; z-index: 2; font-family: var(--wp--preset--font-family--serif); font-size: 1.75rem; color: var(--eol-red); }
.eol-episode__caption h3 { margin: 0 0 .35rem; }
.eol-episode .wp-block-post-title a { text-decoration: none; color: var(--eol-ink); }
.eol-episode .wp-block-post-title a::before { content: ""; position: absolute; inset: 0; z-index: 3; }
.eol-episode .wp-block-post-title a:hover { color: var(--eol-red); }
.eol-episode .wp-block-post-excerpt { color: var(--eol-ink-soft); font-size: 1rem; margin: 0; }
.eol-episode .wp-block-post-excerpt__excerpt { margin: 0; }
.eol-featured-episode__row { position: relative; }
.eol-featured-episode .wp-block-post-title a { text-decoration: none; }
.eol-featured-episode .wp-block-post-title a:hover { color: var(--eol-red); }
.eol-featured-episode .wp-block-post-excerpt { color: var(--eol-ink-soft); }

.eol-episode-single h1 { margin-top: .4rem; }
.eol-episode-content .wp-block-embed { margin-block: var(--wp--preset--spacing--50); }
.eol-episode-content .wp-block-embed__wrapper { border-radius: var(--eol-radius-media); overflow: hidden; }
.eol-video-soon { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.25rem; aspect-ratio: 16 / 9; padding: 2rem; border-radius: var(--eol-radius-media); overflow: hidden; background: radial-gradient(circle at 50% 42%, #fff 0%, var(--eol-blush) 40%, var(--eol-sand) 100%); margin-block: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50) !important; }
.eol-video-soon .eol-rings { position: absolute; inset: -20%; }
.eol-video-soon > p { position: relative; z-index: 2; margin: 0 !important; max-width: 34ch; color: var(--eol-ink-soft); }
@media (max-width: 600px) { .eol-video-soon { aspect-ratio: auto; min-height: 320px; } }

.eol-video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--eol-radius-media); overflow: hidden; background: var(--eol-ink); box-shadow: var(--eol-shadow); }
.eol-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.eol-watch-bar { gap: 1rem; padding: 1.25rem 1.5rem; background: #fff; border: 1px solid var(--eol-line); border-radius: var(--eol-radius); }
.eol-watch-bar p { margin: 0; }
.eol-watch-bar .wp-block-button__link { padding: .55rem 1.1rem; font-size: .9375rem; }

/* ---------- Quote band & promises ---------- */
.eol-quote-band { text-align: center; }
.eol-promises { margin-top: var(--wp--preset--spacing--50) !important; padding-top: var(--wp--preset--spacing--40); border-top: 1px solid var(--eol-line); gap: 1.5rem; }
.eol-promises p { margin: 0; color: var(--eol-ink-soft); }
.eol-promises strong { font-family: var(--wp--preset--font-family--serif); font-size: 1.6rem; font-weight: 500; color: var(--eol-red); }

/* ---------- Memory visual (home) ---------- */
.eol-memory-visual { position: relative; width: min(100%, 460px); aspect-ratio: 1; margin-inline: auto; }
.eol-memory-visual .eol-rings { position: absolute; inset: 0; --eol-ring-opacity: .5; }
.eol-memory-visual__glow { position: absolute; left: 50%; top: 50%; width: 34%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, #fff 0%, rgba(255, 255, 255, .6) 40%, rgba(248, 230, 225, 0) 70%); }
.js-motion .eol-memory-visual__glow { animation: eol-glow 9s var(--eol-ease-soft) infinite; }
@keyframes eol-glow { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.12); opacity: 1; } }
.eol-memory-visual__words span { position: absolute; left: 50%; top: 50%; font-family: var(--wp--preset--font-family--serif); font-style: italic; font-size: clamp(.95rem, .85rem + .4vw, 1.15rem); color: var(--eol-ink-soft); white-space: nowrap; translate: -50% -50%; }
.eol-memory-visual__words span:nth-child(1) { top: 12%; }
.eol-memory-visual__words span:nth-child(2) { left: 84%; top: 32%; }
.eol-memory-visual__words span:nth-child(3) { left: 86%; top: 68%; }
.eol-memory-visual__words span:nth-child(4) { left: 50%; top: 88%; }
.eol-memory-visual__words span:nth-child(5) { left: 14%; top: 68%; }
.eol-memory-visual__words span:nth-child(6) { left: 16%; top: 32%; }
.js-motion .eol-memory-visual__words span { opacity: 0; transition: opacity .9s var(--eol-ease), transform .9s var(--eol-ease); transform: translateY(8px); }
.js-motion .eol-memory-visual.is-visible .eol-memory-visual__words span { opacity: .85; transform: none; }
.js-motion .eol-memory-visual.is-visible .eol-memory-visual__words span:nth-child(2) { transition-delay: .35s; }
.js-motion .eol-memory-visual.is-visible .eol-memory-visual__words span:nth-child(3) { transition-delay: .7s; }
.js-motion .eol-memory-visual.is-visible .eol-memory-visual__words span:nth-child(4) { transition-delay: 1.05s; }
.js-motion .eol-memory-visual.is-visible .eol-memory-visual__words span:nth-child(5) { transition-delay: 1.4s; }
.js-motion .eol-memory-visual.is-visible .eol-memory-visual__words span:nth-child(6) { transition-delay: 1.75s; }

/* ---------- Lists, notes, rows ---------- */
.eol-checklist { list-style: none; padding-left: 0; }
.eol-checklist li { position: relative; padding-left: 2.1rem; margin-block: .7rem; }
.eol-checklist li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.4rem; height: 1.4rem; border-radius: 50%; background-color: var(--eol-blush); background-repeat: no-repeat; background-position: center; background-size: .85rem; }
.eol-list-rows > p { margin: 0 !important; padding-block: 1.1rem; border-top: 1px solid var(--eol-line); color: var(--eol-ink-soft); }
.eol-list-rows > p:last-child { border-bottom: 1px solid var(--eol-line); }
.eol-list-rows > p strong { color: var(--eol-ink); }
.eol-list-rows--compact > p { padding-block: .85rem; }
.eol-note { margin-top: var(--wp--preset--spacing--40) !important; padding: 1rem 1.25rem; background: var(--eol-blush); border-radius: 14px; }
.eol-note p { margin: 0; }
.eol-contact-list { display: grid; gap: 1.5rem; }
.eol-contact-item { position: relative; padding-left: 4rem; min-height: 52px; }
.eol-contact-item > * { margin: 0 !important; }
.eol-contact-item h6, .eol-contact-item .eol-label { color: var(--eol-ink-soft); margin-bottom: .2rem !important; }
.eol-contact-item::before { content: ""; position: absolute; left: 0; top: 0; width: 52px; height: 52px; border-radius: 50%; background-color: #fff; border: 1px solid var(--eol-line); background-repeat: no-repeat; background-position: center; background-size: 22px; }

/* ---------- FAQ ---------- */
.eol-faq .wp-block-details { border-top: 0; }
.eol-faq .wp-block-details:first-child { border-top: 1px solid var(--eol-line); }
.eol-faq summary { cursor: pointer; list-style: none; position: relative; padding-right: 2.5rem; font-family: var(--wp--preset--font-family--serif); font-size: 1.25rem; }
.eol-faq summary::-webkit-details-marker { display: none; }
.eol-faq summary::after { content: ""; position: absolute; right: .25rem; top: 50%; width: 22px; height: 22px; translate: 0 -50%; border-radius: 50%; background: var(--eol-blush) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D4111A' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 7v10M7 12h10'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .25s var(--eol-ease); }
.eol-faq details[open] summary::after { transform: rotate(45deg); }
.eol-faq details > :not(summary) { color: var(--eol-ink-soft); margin-top: .75rem; }

/* ---------- Remembrance wall ---------- */
.eol-wall-grid { gap: 1.25rem !important; }
.eol-tribute { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .4rem; background: #fff; border: 1px solid var(--eol-line); border-radius: var(--eol-radius); padding: 1.75rem 1.5rem; }
.eol-tribute > * { margin: 0 !important; }
.eol-tribute .eol-thumb--portrait { width: 72px; height: 72px; border-radius: 50%; margin-bottom: .6rem !important; }
.eol-tribute .eol-thumb--portrait img { width: 72px; height: 72px; object-fit: cover; }
.eol-tribute .wp-block-post-title { font-size: 1.375rem; }
.eol-tribute__years { font-size: .875rem; letter-spacing: .08em; color: var(--eol-ink-soft); }
.eol-tribute__years p { margin: 0; }
.eol-tribute__message { font-family: var(--wp--preset--font-family--serif); font-style: italic; color: var(--eol-ink-soft); font-size: 1.05rem; }
.eol-tribute__message > * { margin-block: .5rem 0; }
.eol-wall-empty { position: relative; padding: var(--wp--preset--spacing--50) 1rem; border: 1px dashed #DCCDBD; border-radius: 28px; }

/* ---------- Forms (Contact Form 7) ---------- */
.eol-form-card { background: #fff; border: 1px solid var(--eol-line); border-radius: 24px; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); box-shadow: var(--eol-shadow); }
.eol-form-card > h2 { margin-top: 0; margin-bottom: 1.25rem; }
.eol-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.eol-field--full { grid-column: 1 / -1; }
@media (max-width: 640px) { .eol-form-grid { grid-template-columns: 1fr; } }
.eol-field label, .eol-label { display: block; font-weight: 600; font-size: .9375rem; color: var(--eol-ink); }
.eol-field small { display: block; margin-top: .4rem; font-size: .8125rem; color: var(--eol-ink-soft); font-weight: 400; }
.eol-form input[type="text"], .eol-form input[type="email"], .eol-form input[type="tel"], .eol-form select, .eol-form textarea {
	display: block; width: 100%; margin-top: .4rem; padding: .78rem .95rem; border: 1px solid #D9CCBD; border-radius: 12px;
	background: var(--eol-cream); color: var(--eol-ink); font: inherit; font-size: 1rem; line-height: 1.4;
	transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.eol-form textarea { min-height: 8rem; resize: vertical; }
.eol-form select { appearance: none; padding-right: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235D544E' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; background-size: 16px; }
.eol-form :is(input, select, textarea):focus { outline: none; border-color: var(--eol-red); background-color: #fff; box-shadow: 0 0 0 3px rgba(212, 17, 26, .12); }
.eol-form .wpcf7-checkbox { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .55rem; }
.eol-form .wpcf7-list-item { margin: 0; }
.eol-form .wpcf7-checkbox .wpcf7-list-item label { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem; border: 1px solid #D9CCBD; border-radius: 999px; background: var(--eol-cream); font-weight: 400; font-size: .9375rem; cursor: pointer; transition: border-color .16s, background-color .16s; }
.eol-form .wpcf7-checkbox .wpcf7-list-item label:has(input:checked) { border-color: var(--eol-red); background: var(--eol-blush); }
.eol-form input[type="checkbox"] { accent-color: var(--eol-red); width: 1rem; height: 1rem; }
.eol-check { font-size: .9375rem; color: var(--eol-ink-soft); }
.eol-check .wpcf7-list-item label { display: inline-flex; gap: .6rem; align-items: flex-start; }
.eol-check input[type="checkbox"] { margin-top: .25rem; flex: none; }
.eol-form input[type="submit"] {
	appearance: none; border: 0; cursor: pointer; margin-top: .25rem; padding: .85rem 1.75rem; border-radius: 999px;
	background: var(--eol-red); color: #fff; font: inherit; font-weight: 600; font-size: 1.0625rem; transition: background-color .16s ease, transform .16s ease;
}
.eol-form input[type="submit"]:hover { background: var(--wp--preset--color--red-dark); }
.eol-form input[type="submit"]:active { transform: scale(.98); }
.eol-form .wpcf7-not-valid-tip { margin-top: .35rem; font-size: .875rem; color: var(--wp--preset--color--red-dark); font-weight: 500; }
.eol-form .wpcf7 form .wpcf7-response-output { margin: 1.25rem 0 0; padding: .85rem 1.1rem; border-radius: 12px; border-width: 1px; font-size: .9375rem; }
.eol-form .wpcf7 form.sent .wpcf7-response-output { border-color: var(--wp--preset--color--sage); background: #EEF2EC; }
.eol-form .wpcf7 form.invalid .wpcf7-response-output, .eol-form .wpcf7 form.failed .wpcf7-response-output { border-color: var(--eol-red); background: var(--eol-blush); }
.eol-form .wpcf7-spinner { vertical-align: middle; }
.eol-form--fallback { padding: 1rem 1.25rem; background: var(--eol-blush); border-radius: 14px; }

/* ---------- Donate (Zeffy) ---------- */
.eol-zeffy { position: relative; background: #fff; border: 1px solid var(--eol-line); border-radius: 24px; overflow: hidden; box-shadow: var(--eol-shadow); }
.eol-zeffy iframe { display: block; width: 100%; height: 1240px; border: 0; }
.eol-zeffy__fallback { margin: 0; padding: .85rem 1.25rem; font-size: .875rem; color: var(--eol-ink-soft); border-top: 1px solid var(--eol-line); background: var(--eol-cream); }

/* ---------- Footer ---------- */
.eol-label, h2.eol-label { font-family: var(--wp--preset--font-family--sans); font-size: var(--wp--preset--font-size--small); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; line-height: 1.4; }
.eol-footer h6, .eol-footer .eol-label { color: var(--eol-ink); margin-bottom: 1rem; }
.eol-card h2 { line-height: 1.2; }
.eol-footer__tag { color: var(--eol-ink-soft); max-width: 34ch; margin-top: 1rem; }
.eol-footer-links { list-style: none; padding: 0; margin: 0; }
.eol-footer-links li { margin-block: .5rem; }
.eol-footer a { color: var(--eol-ink); text-decoration: none; background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size .2s var(--eol-ease), color .2s; }
.eol-footer a:hover { color: var(--eol-red); background-size: 100% 1px; }
.eol-footer .wp-block-social-links a { background: none; }
.eol-footer__contact { line-height: 1.9; }
.eol-crisis { margin-top: var(--wp--preset--spacing--50) !important; padding: .95rem 1.25rem; background: rgba(255, 255, 255, .65); border: 1px solid var(--eol-line); border-radius: 14px; font-size: .9375rem; }
.eol-crisis p { margin: 0; }
.eol-crisis a { color: var(--eol-red); font-weight: 600; }
.eol-footer__bottom { gap: 1rem; }
.eol-footer__bottom p { margin: 0; }
.eol-social { margin-top: 1.25rem !important; }
.eol-motion-toggle { display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .85rem; border: 1px solid #D9CCBD; border-radius: 999px; background: transparent; color: var(--eol-ink-soft); font: inherit; font-size: .875rem; cursor: pointer; transition: border-color .16s, color .16s; }
.eol-motion-toggle:hover { border-color: var(--eol-ink); color: var(--eol-ink); }
.eol-motion-toggle__dot { position: relative; width: 26px; height: 15px; border-radius: 999px; background: #D9CCBD; transition: background-color .2s; }
.eol-motion-toggle__dot::after { content: ""; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; transition: transform .2s var(--eol-ease); }
.eol-motion-toggle[aria-pressed="true"] .eol-motion-toggle__dot { background: var(--eol-red); }
.eol-motion-toggle[aria-pressed="true"] .eol-motion-toggle__dot::after { transform: translateX(11px); }

/* ---------- Generic content (page.html / posts) ---------- */
.eol-prose > * { max-width: 720px; }
.eol-prose h2 { font-size: var(--wp--preset--font-size--x-large); margin-top: 2.5rem; }
.eol-quote { border-left: 2px solid var(--eol-red) !important; padding-left: 1.5rem !important; font-style: italic; }
.eol-quote cite { display: block; margin-top: .75rem; font-family: var(--wp--preset--font-family--sans); font-style: normal; font-size: .9375rem; color: var(--eol-ink-soft); }
.wp-block-query-pagination { margin-top: var(--wp--preset--spacing--50); gap: .5rem; }
.wp-block-query-pagination a, .wp-block-query-pagination .current { padding: .35rem .75rem; border-radius: 999px; text-decoration: none; }
.wp-block-query-pagination .current { background: var(--eol-ink); color: #fff; }
.eol-story-card .wp-block-post-title a { text-decoration: none; color: var(--eol-ink); }

/* ==========================================================================
   Motion: page-load intro, words, scroll reveals
   ========================================================================== */
@keyframes eol-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes eol-word { from { opacity: 0; filter: blur(6px); transform: translateY(8px); } to { opacity: 1; filter: blur(0); transform: none; } }

.js-motion .eol-intro { animation: eol-rise .9s var(--eol-ease) .12s both; }
.js-motion .eol-words + .eol-intro { animation-delay: .55s; }
.js-motion .eol-words + .eol-intro + .eol-intro { animation-delay: .75s; }
.js-motion .eol-words + .eol-intro + .eol-intro + .eol-intro { animation-delay: .9s; }
.js-motion .eol-tv-card.eol-intro, .js-motion .eol-zeffy.eol-intro { animation-delay: .45s; }

.js-motion .eol-words:not(.is-split) { opacity: 0; }
.eol-words .eol-word { display: inline-block; }
.js-motion .eol-words .eol-word { animation: eol-word .7s var(--eol-ease) both; animation-delay: calc(.22s + var(--wi, 0) * 90ms); }

.js-motion .eol-reveal:not(.is-visible),
.js-motion .eol-stagger:not(.is-visible) > * { opacity: 0; transform: translateY(16px); }
.js-motion .eol-reveal,
.js-motion .eol-stagger > * { transition: opacity .65s var(--eol-ease), transform .65s var(--eol-ease), border-color .2s ease, box-shadow .2s ease; }
.js-motion .eol-stagger.is-visible > * { transition-delay: calc(var(--si, 0) * 80ms); }
.js-motion .eol-stagger.is-visible > *:hover { transition-delay: 0s; }
.js-motion .no-transition, .js-motion .no-transition > * { transition: none !important; }

/* ==========================================================================
   Reduced motion: system setting or the footer toggle
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	@view-transition { navigation: none; }
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
	.eol-rings circle.eol-ring-anim { animation: none !important; opacity: .22; }
	.eol-rings circle.eol-ring-anim:nth-of-type(2) { transform: scale(.85); }
	.eol-rings circle.eol-ring-anim:nth-of-type(3) { transform: scale(1.2); opacity: .14; }
	.eol-rings circle.eol-ring-anim:nth-of-type(4) { transform: scale(1.55); opacity: .08; }
	.eol-card:hover, .eol-tv-card:hover { transform: none !important; }
	.eol-word-ring span { animation: none !important; opacity: .55 !important; }
}
html.eol-reduce-motion { scroll-behavior: auto; }
html.eol-reduce-motion *, html.eol-reduce-motion *::before, html.eol-reduce-motion *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
html.eol-reduce-motion .eol-rings circle.eol-ring-anim { animation: none !important; opacity: .22; }
html.eol-reduce-motion .eol-rings circle.eol-ring-anim:nth-of-type(2) { transform: scale(.85); }
html.eol-reduce-motion .eol-rings circle.eol-ring-anim:nth-of-type(3) { transform: scale(1.2); opacity: .14; }
html.eol-reduce-motion .eol-rings circle.eol-ring-anim:nth-of-type(4) { transform: scale(1.55); opacity: .08; }
html.eol-reduce-motion .eol-card:hover, html.eol-reduce-motion .eol-tv-card:hover { transform: none !important; }
html.eol-reduce-motion .eol-word-ring span { animation: none !important; opacity: .55 !important; }

/* ---------- Small screens ---------- */
@media (max-width: 781px) {
	.eol-hero h1 { font-size: clamp(2.75rem, 1.5rem + 7vw, 4rem); }
	.eol-page-hero__rings { right: -45%; width: 120vw; opacity: .7; }
	.eol-donate-band { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
	.eol-feature-panel { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
	.eol-zeffy iframe { height: 1320px; }
}
.eol-form .wpcf7-form-control-wrap { display: block; }
