/* ARYF Home — refined hand-built template.
 * Single continuous dark background so sections flow without hard edges. */

.aryf-home {
	/* Break out of The7's constrained content container so hero + section
	 * gradients flow edge-to-edge. */
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	margin-top: 0;

	--c-bg-top:     #1f1858;
	--c-bg-mid:     #0d1130;
	--c-bg-low:     #060815;
	--c-bg-card:    rgba(255, 255, 255, 0.035);
	--c-bg-card-h:  rgba(255, 255, 255, 0.06);
	--c-text:       #f1f3f8;
	--c-text-soft:  #adb6c5;
	--c-text-mute:  #6e7686;
	--c-border:     rgba(255, 255, 255, 0.08);
	--c-border-h:   rgba(255, 255, 255, 0.18);
	--c-blue:       #5db1ff;
	--c-purple:     #b97cff;
	--c-teal:       #34d4a8;
	--c-amber:      #fbbf24;
	--c-pink:       #ff6f9e;
	--c-cta-1:      #7dd3fc;
	--c-cta-2:      #38bdf8;
	--r-card:       18px;
	--r-pill:       999px;
	--ease-out:     cubic-bezier(0.2, 0.7, 0.2, 1);
	--dur-fast:     0.18s;
	--dur-med:      0.25s;

	/* Premium surface tokens — apply to any card-shaped element to get a
	 * cohesive elegant feel: gradient surface, top-edge highlight, layered
	 * shadow, and an accent-tinted halo. Cards opt in via:
	 *   background: var(--surface-card);
	 *   box-shadow: var(--shadow-card), var(--shadow-glow);
	 * Where the glow auto-tints from the element's `color` (accent). */
	--surface-card:   linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.018) 100%);
	--surface-card-h: linear-gradient(180deg, rgba(255, 255, 255, 0.085) 0%, rgba(255, 255, 255, 0.035) 100%);
	--shadow-card:
		inset 0 1px 0 rgba(255, 255, 255, 0.07),
		0 1px 2px rgba(0, 0, 0, 0.22),
		0 24px 48px -22px rgba(0, 0, 0, 0.55);
	--shadow-card-h:
		inset 0 1px 0 rgba(255, 255, 255, 0.11),
		0 2px 6px rgba(0, 0, 0, 0.28),
		0 36px 64px -22px rgba(0, 0, 0, 0.65);
	--shadow-glow:    0 24px 64px -22px color-mix(in srgb, currentColor 22%, transparent);
	--shadow-glow-h:  0 30px 72px -20px color-mix(in srgb, currentColor 38%, transparent);

	/* Text decoration tokens — for premium type rendering. */
	--text-shadow-depth: 0 1px 0 rgba(0, 0, 0, 0.32);
	--text-grad-h2:      linear-gradient(180deg, #ffffff 0%, #c5cee0 100%);

	background:
		linear-gradient(180deg,
			var(--c-bg-top)  0%,
			var(--c-bg-mid) 28%,
			var(--c-bg-mid) 70%,
			var(--c-bg-low) 100%);
	color: var(--c-text);
	font-family: 'Sora', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	position: relative;
	/* overflow-x:hidden alone forces overflow-y:auto (spec quirk), which
	 * clips the hero __bg glow before it can extend up behind the fixed
	 * menu. overflow:clip clips x without quirking y, so the glow can
	 * reach the top of the viewport and the menu sits on the same purple
	 * wash as the hero — no seam at the menu's bottom edge. */
	overflow-x: hidden;            /* fallback for browsers without `clip` */
	overflow: clip visible;        /* modern: clip x, allow y to overflow */
}

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

/* ============================================================
 * HERO
 * ============================================================ */

.aryf-home-hero {
	position: relative;
	padding: clamp(28px, 6vh, 170px) 24px clamp(56px, 9vh, 200px);
	display: flex;
	align-items: center;
	justify-content: center;
	/* No overflow:hidden — we want __bg to extend up behind the theme header. */
	isolation: isolate;
}

/* Mobile: a bit more vertical padding than the base, plus more
 * line-height between the eyebrow/title block. The hero does NOT
 * own the full viewport — we want the next section to peek so
 * visitors know there's more below. */
@media (max-width: 760px) {
	.aryf-home-hero {
		padding-top:    clamp(56px, 10vh, 96px);
		padding-bottom: clamp(48px, 8vh, 80px);
	}
	.aryf-home-hero__eyebrow {
		line-height: 1.6;
		margin-bottom: 1.6rem;
	}
	.aryf-home-hero__title {
		line-height: 1.25;
		margin-bottom: 1.8rem;
	}
	.aryf-home-hero__pills   { margin-bottom: 2rem; }
}

/* Soft ambient glow — three radial gradients, all fading to transparent
 * so the hero blends seamlessly into the body gradient below. */
.aryf-home-hero__bg {
	position: absolute;
	/* Extend ABOVE the hero so the glow continues up to (and behind) the
	 * theme header, eliminating any dark band on tall mobile viewports. */
	inset: -160px 0 0 0;
	background:
		linear-gradient(180deg,
			rgba(99, 91, 200, 0.42) 0%,
			rgba(99, 91, 200, 0.22) 25%,
			transparent 70%),
		radial-gradient(70% 60% at 30% 30%, rgba(120, 91, 255, 0.55), transparent 65%),
		radial-gradient(70% 60% at 75% 30%, rgba(168, 85, 247, 0.45), transparent 65%),
		radial-gradient(60% 50% at 55% 90%, rgba( 45, 212, 191, 0.16), transparent 70%);
	z-index: -2;
	filter: blur(4px);
	pointer-events: none;
}

/* Subtle starfield, very low opacity */
.aryf-home-hero__stars {
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(1.4px 1.4px at 12% 22%, rgba(255,255,255,0.7), transparent 60%),
		radial-gradient(1.1px 1.1px at 32% 48%, rgba(255,255,255,0.5), transparent 60%),
		radial-gradient(1.6px 1.6px at 58% 18%, rgba(255,255,255,0.6), transparent 60%),
		radial-gradient(1.0px 1.0px at 72% 62%, rgba(255,255,255,0.45), transparent 60%),
		radial-gradient(1.3px 1.3px at 88% 28%, rgba(255,255,255,0.55), transparent 60%),
		radial-gradient(1.0px 1.0px at 18% 76%, rgba(255,255,255,0.4), transparent 60%),
		radial-gradient(1.2px 1.2px at 48% 88%, rgba(255,255,255,0.5), transparent 60%),
		radial-gradient(1.4px 1.4px at 90% 80%, rgba(255,255,255,0.45), transparent 60%);
	background-repeat: no-repeat;
	z-index: -1;
	pointer-events: none;
	opacity: 0.85;
}

/* The fade-out at the bottom of the hero — guarantees a perfect, smooth
 * transition into the next section regardless of what's there. */
.aryf-home-hero__fade {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 25%;
	background: linear-gradient(180deg, transparent 0%, var(--c-bg-mid) 100%);
	z-index: -1;
	pointer-events: none;
}

.aryf-home-hero__inner {
	max-width: 920px;
	width: 100%;
	text-align: center;
	position: relative;
	z-index: 1;
}

/* Eyebrow — mobile-first: small, refined, with thin glowing dividers
 * on either side. Scales up on tablet/desktop but never overpowers. */
.aryf-home-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.7em;
	font-size: clamp(0.95rem, 2.8vw, 1.15rem);
	font-weight: 600;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--c-blue);
	margin: 0 0 1.1rem;
	opacity: 0.92;
	text-shadow: 0 0 18px rgba(125, 211, 252, 0.35);
}
/* CJK eyebrows have built-in character spacing, so the Latin-style
 * letter-spacing turns into uncomfortable gaps between Chinese
 * characters. Halve the tracking on ZH (and ZH-Traditional). */
body.aryf-lang-zh .aryf-home-hero__eyebrow,
body.aryf-lang-zh-hant .aryf-home-hero__eyebrow {
	letter-spacing: 0.14em;
}
.aryf-home-hero__eyebrow::before,
.aryf-home-hero__eyebrow::after {
	content: "";
	display: inline-block;
	width: clamp(20px, 6vw, 44px);
	height: 1px;
	background: linear-gradient(90deg, transparent, currentColor, transparent);
	opacity: 0.7;
}

/* Title — smaller min on mobile, scales fluidly. Soft glow + tighter
 * tracking for a premium feel. */
.aryf-home-hero__title {
	font-size: clamp(0.8rem, 6.5vw, 2rem);
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: -0.022em;
	margin: 0 0 1.3rem;
	color: var(--c-text);
	text-shadow:
		0 1px 0 rgba(0, 0, 0, 0.25),
		0 0 32px rgba(168, 132, 252, 0.18);
}

.aryf-home-hero__title-accent {
	display: inline-block;
	line-height: 1.22;          /* descenders on g/y/p need ≥1.15× — was clipped */
	padding-bottom: 0.05em;
	background: linear-gradient(135deg, #93c5fd 0%, #c084fc 55%, #f0abfc 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
	margin-top: 0.15em;
}
.aryf-home-hero__title { display: block; }
.aryf-home-hero__title .aryf-home-hero__title-accent { display: inline-block; margin-top: 0.1em; }

.aryf-home-hero__pills {
	list-style: none;
	padding: 0;
	margin: 0 0 2rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem 1.6rem;
	justify-content: center;
	font-size: 0.98rem;
	font-weight: 500;
}

.aryf-home-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	color: var(--c-text);
}

.aryf-home-pill__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	box-shadow: 0 0 12px currentColor;
	background-color: currentColor;
}

.aryf-home-pill--blue   { color: var(--c-blue); }
.aryf-home-pill--purple { color: var(--c-purple); }
.aryf-home-pill--teal   { color: var(--c-teal); }
.aryf-home-pill--amber  { color: var(--c-amber); }

.aryf-home-pill .aryf-home-pill__dot + *,
.aryf-home-pill {
	color: var(--c-text);
}
.aryf-home-pill .aryf-home-pill__dot {
	background-color: currentColor;
}
.aryf-home-pill--blue .aryf-home-pill__dot   { background: var(--c-blue);   color: var(--c-blue); }
.aryf-home-pill--purple .aryf-home-pill__dot { background: var(--c-purple); color: var(--c-purple); }
.aryf-home-pill--teal .aryf-home-pill__dot   { background: var(--c-teal);   color: var(--c-teal); }
.aryf-home-pill--amber .aryf-home-pill__dot  { background: var(--c-amber);  color: var(--c-amber); }

.aryf-home-hero__ctas {
	display: inline-flex;
	gap: 0.8rem;
	flex-wrap: wrap;
	justify-content: center;
	margin-top: 0.4rem;
}

/* ============================================================
 * CTAs (shared)
 * ============================================================ */

.aryf-cta-primary {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.85rem 1.5rem;
	background: linear-gradient(135deg, var(--c-cta-1) 0%, var(--c-cta-2) 100%);
	color: #0a1830;
	border-radius: var(--r-pill);
	font-weight: 600;
	font-size: 0.96rem;
	text-decoration: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
	box-shadow: 0 8px 24px rgba(56, 189, 248, 0.32);
	white-space: nowrap;
}
.aryf-cta-primary:hover,
.aryf-cta-primary:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 12px 32px rgba(56, 189, 248, 0.5);
	filter: brightness(1.05);
	color: #0a1830;
	text-decoration: none;
}

.aryf-cta-ghost {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.85rem 1.4rem;
	background: transparent;
	color: var(--c-text);
	border: 1px solid var(--c-border);
	border-radius: var(--r-pill);
	font-weight: 500;
	font-size: 0.95rem;
	text-decoration: none;
	transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.aryf-cta-ghost:hover,
.aryf-cta-ghost:focus-visible {
	background-color: rgba(255, 255, 255, 0.06);
	border-color: var(--c-border-h);
	color: var(--c-text);
	text-decoration: none;
	transform: translateY(-1px);
}

/* ============================================================
 * Section scaffolding
 * ============================================================ */

.aryf-home-section {
	padding: clamp(56px, 9vh, 130px) 24px;
	position: relative;
}

.aryf-home-section__inner {
	max-width: 1120px;
	margin: 0 auto;
	position: relative;
}
.aryf-home-section__inner--narrow {
	max-width: 760px;
}

.aryf-home-section__heading {
	max-width: 760px;
	margin: 0 auto clamp(2.5rem, 5vw, 3.6rem);
	text-align: center;
}

.aryf-home-section__cta {
	margin-top: clamp(2rem, 4vw, 3rem);
	text-align: center;
}
.aryf-home-section__cta--row {
	display: flex;
	gap: 0.8rem;
	flex-wrap: wrap;
	justify-content: center;
}

.aryf-home-eyebrow {
	font-size: 1.2rem;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	text-align: center;
	color: var(--c-blue);
	margin: 0 0 0.9rem;
}
.aryf-home-eyebrow--center { text-align: center; }

/* Thin glowing side dividers on centered eyebrows — same trick the hero
 * eyebrow uses. Adds a subtle "section badge" feel without being loud.
 *
 * display: table + margin: auto self-centers regardless of parent's
 * text-align (some parents like .aryf-home-section__inner--narrow don't
 * set text-align: center). */
.aryf-home-eyebrow--center {
	position: relative;
	display: table;
	margin-left: auto;
	margin-right: auto;
	padding: 0 1.4em;
}
.aryf-home-eyebrow--center::before,
.aryf-home-eyebrow--center::after {
	content: '';
	position: absolute;
	top: 50%;
	width: 0.9em;
	height: 1px;
	background: linear-gradient(90deg, transparent, currentColor, transparent);
	opacity: 0.55;
	transform: translateY(-50%);
}
.aryf-home-eyebrow--center::before { right: 100%; }
.aryf-home-eyebrow--center::after  { left: 100%; }
/* Wrap centered eyebrows in a centered container so display:inline-block
 * doesn't lose horizontal centering. We piggyback on the existing
 * text-align: center cascade from .aryf-home-section__heading. */

.aryf-home-h2 {
	font-size: clamp(1.4rem, 2.5vw, 1.8rem);
	font-weight: 600;
	line-height: 1.8;
	letter-spacing: -0.024em;
	text-align: center;
	margin: 0 0 1.2rem;
	background: var(--text-grad-h2);
	-webkit-background-clip: text;
	        background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}
.aryf-home-h2--center { text-align: center; }
/* Fallback for very old browsers that don't support background-clip: text */
@supports not (background-clip: text) {
	.aryf-home-h2 { color: var(--c-text); }
}

/* Sub-section heading. Use inside a section that already has a main h2
 * (e.g. a "supporters" block tucked under the nonprofit section). */
.aryf-home-h3 {
	font-size: clamp(1.15rem, 1.6vw, 1.45rem);
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: -0.018em;
	margin: 0 0 0.7rem;
	color: var(--c-text);
	text-shadow: var(--text-shadow-depth);
}
.aryf-home-h3--center { text-align: center; }

/* Spacing wrapper for a supporters/community subsection inside a section. */
.aryf-home-supporters {
	max-width: 720px;
	margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
	text-align: center;
}

.aryf-home-p {
	font-size: 1.025rem;
	line-height: 1.7;
	color: var(--c-text-soft);
	margin: 0 0 1.1rem;
}
.aryf-home-p:last-child { margin-bottom: 0; }
.aryf-home-p--center {
	text-align: center;
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
}
.aryf-home-p--lead {
	font-size: 1.1rem;
	color: var(--c-text);
}
.aryf-home-p--small {
	font-size: 0.96rem;
	line-height: 1.65;
}

/* Section dividers — extremely subtle radial accent on top */
.aryf-home-section:not(.aryf-home-hero)::before {
	content: '';
	position: absolute;
	left: 50%;
	top: 0;
	transform: translateX(-50%);
	width: 360px;
	max-width: 60%;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
	pointer-events: none;
}

/* ============================================================
 * Split section (New Era)
 * ============================================================ */

.aryf-home-split {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
}

.aryf-home-split__media {
	margin: 0;
	border-radius: 20px;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	background: rgba(255, 255, 255, 0.04);
	position: relative;
	box-shadow:
		0 0 0 1px var(--c-border),
		0 30px 60px -20px rgba(99, 102, 241, 0.35),
		0 10px 30px -10px rgba(0, 0, 0, 0.5);
}
.aryf-home-split__media::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 60%, rgba(13, 17, 48, 0.45) 100%);
	pointer-events: none;
}
.aryf-home-split__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Non-image right column — for decorative content like seals/badges.
 * No aspect-ratio, no background, just a centering wrapper. */
.aryf-home-split__aside {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Body-led variant: body column gets more room than the aside.
 * DOM order is aside-first (so mobile naturally renders aside above body);
 * on desktop we use `order` to swap the visual layout — body on the left,
 * aside on the right. */
.aryf-home-split--text-led {
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
}
@media (min-width: 881px) {
	.aryf-home-split--text-led .aryf-home-split__body  { order: 0; }
	.aryf-home-split--text-led .aryf-home-split__aside { order: 1; }
}

@media (max-width: 880px) {
	.aryf-home-split {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
	.aryf-home-split__media {
		max-width: 420px;
		margin: 0 auto;
	}
}

/* ============================================================
 * Learn. Create. Innovate. — domain cards + ways list
 * ============================================================ */

.aryf-home-domains {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
}

.aryf-home-domain {
	position: relative;
	background: var(--surface-card);
	border: 1px solid var(--c-border);
	border-radius: var(--r-card);
	padding: 1.8rem 1.5rem;
	box-shadow: var(--shadow-card), var(--shadow-glow);
	transition:
		background var(--dur-med) ease,
		transform var(--dur-med) ease,
		border-color var(--dur-med) ease,
		box-shadow var(--dur-med) ease;
	overflow: hidden;
	isolation: isolate;
}
/* Gradient border accent — faint at rest, intensifies on hover.
 * Built via the mask-composite trick so the gradient sits ON the border. */
.aryf-home-domain::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1px;
	background: linear-gradient(135deg, transparent 40%, currentColor 100%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	        mask-composite: exclude;
	opacity: 0.35;
	transition: opacity var(--dur-med) ease;
	pointer-events: none;
}
.aryf-home-domain:hover {
	background: var(--surface-card-h);
	transform: translateY(-3px);
	border-color: var(--c-border-h);
	box-shadow: var(--shadow-card-h), var(--shadow-glow-h);
}
.aryf-home-domain:hover::before { opacity: 1; }

.aryf-home-domain--blue   { color: var(--c-blue); }
.aryf-home-domain--purple { color: var(--c-purple); }
.aryf-home-domain--teal   { color: var(--c-teal); }
.aryf-home-domain--amber  { color: var(--c-amber); }
.aryf-home-domain--pink   { color: var(--c-pink); }

/* Icon + title share a row, vertically centered together. */
.aryf-home-domain__head {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	margin-bottom: 0.8rem;
}

.aryf-home-domain__icon {
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: color-mix(in srgb, currentColor 15%, transparent);
	color: inherit;
}

.aryf-home-domain__h {
	font-size: 1.15rem;
	font-weight: 600;
	margin: 0;
	color: var(--c-text);
	letter-spacing: -0.015em;
	text-shadow: var(--text-shadow-depth);
}

.aryf-home-domain__p {
	font-size: 0.96rem;
	line-height: 1.6;
	color: var(--c-text-soft);
	margin: 0;
}

@media (max-width: 820px) {
	.aryf-home-domains { grid-template-columns: 1fr; }
}

/* .aryf-home-domains--four — 4-up at wide desktop, 2×2 at mid widths,
 * stacks at ≤820px (inherits from base). */
@media (min-width: 820px) {
	.aryf-home-domains--four {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (min-width: 1024px) {
	.aryf-home-domains--four {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Icon list — small card-row list with an iconified leader on each item.
 * Generic; reusable anywhere a section needs "N short points with an icon". */
.aryf-home-icon-list {
	margin: clamp(2.5rem, 5vw, 3.6rem) auto 0;
	max-width: 760px;
}
.aryf-home-icon-list__title {
	text-align: center;
	font-size: 1rem;
	font-weight: 500;
	color: var(--c-text-soft);
	margin: 0 0 1.2rem;
}
.aryf-home-icon-list__items {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.7rem;
}
.aryf-home-icon-list__items > li {
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
	padding: 0.95rem 1.15rem;
	background: var(--c-bg-card);
	border: 1px solid var(--c-border);
	border-radius: 12px;
	font-size: 0.98rem;
	line-height: 1.55;
	color: var(--c-text-soft);
	transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.aryf-home-icon-list__items > li:hover {
	background: var(--c-bg-card-h);
	border-color: var(--c-border-h);
}
.aryf-home-icon-list__items > li strong { color: var(--c-text); font-weight: 600; }
.aryf-home-icon-list__icon {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background: color-mix(in srgb, currentColor 15%, transparent);
	color: var(--c-blue);
}

/* ============================================================
 * Callout — tinted, left-accented info box. Reusable inside any
 * section body to highlight a sub-point (e.g. fund info).
 * Default accent is blue; modifiers swap the accent color.
 * ============================================================ */

.aryf-home-callout {
	margin: 1.5rem 0;
	padding: 1.4rem 1.6rem;
	background: var(--surface-card);
	border: 1px solid var(--c-border);
	border-radius: 14px;
	border-left: 3px solid var(--c-blue);
	box-shadow: var(--shadow-card);
}
.aryf-home-callout--purple { border-left-color: var(--c-purple); }
.aryf-home-callout--teal   { border-left-color: var(--c-teal); }
.aryf-home-callout--amber  { border-left-color: var(--c-amber); }
.aryf-home-callout--pink   { border-left-color: var(--c-pink); }

.aryf-home-callout__title {
	font-size: 1.02rem;
	font-weight: 600;
	color: var(--c-text);
	margin: 0 0 0.6rem;
	letter-spacing: -0.01em;
	text-shadow: var(--text-shadow-depth);
}

/* ============================================================
 * Tiles — compact icon + label + sub tiles in a grid. Reusable
 * anywhere you need a small visual breakdown (funding sources,
 * stats, feature highlights). Default is a 2-col grid; the wrapper
 * inherits its accent color via the .--<accent> modifier, which
 * tints the icon background via currentColor.
 * ============================================================ */
.aryf-home-tiles {
	list-style: none;
	margin: 1rem 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.7rem;
}

.aryf-home-tile {
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
	padding: 0.85rem 0.95rem;
	background: var(--surface-card);
	border: 1px solid var(--c-border);
	border-radius: 12px;
	box-shadow: var(--shadow-card);
	color: var(--c-blue);
}
.aryf-home-tile--blue   { color: var(--c-blue); }
.aryf-home-tile--purple { color: var(--c-purple); }
.aryf-home-tile--teal   { color: var(--c-teal); }
.aryf-home-tile--amber  { color: var(--c-amber); }
.aryf-home-tile--pink   { color: var(--c-pink); }

.aryf-home-tile__icon {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: color-mix(in srgb, currentColor 16%, transparent);
	color: inherit;
}

.aryf-home-tile__body {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.aryf-home-tile__label {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--c-text);
	letter-spacing: -0.005em;
	text-shadow: var(--text-shadow-depth);
}

.aryf-home-tile__sub {
	font-size: 0.82rem;
	color: var(--c-text-mute);
	line-height: 1.4;
}

@media (max-width: 560px) {
	.aryf-home-tiles {
		grid-template-columns: 1fr;
	}
}

/* ============================================================
 * 501(c)(3) seal — CSS-only badge used in the Nonprofit section.
 * Drops into a .aryf-home-split__aside slot.
 * ============================================================ */

.aryf-home-seal {
	position: relative;
	width: 220px;
	height: 220px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.aryf-home-seal__ring {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background:
		radial-gradient(circle at center, rgba(56, 189, 248, 0.18), transparent 65%),
		conic-gradient(from 0deg, var(--c-blue), var(--c-purple), var(--c-teal), var(--c-blue));
	-webkit-mask: radial-gradient(circle, transparent 56%, #000 57%, #000 72%, transparent 73%);
	        mask: radial-gradient(circle, transparent 56%, #000 57%, #000 72%, transparent 73%);
	opacity: 0.85;
}
.aryf-home-seal__inner {
	position: relative;
	width: 64%;
	height: 64%;
	border-radius: 50%;
	background:
		radial-gradient(circle at 30% 30%, rgba(93, 177, 255, 0.25), transparent 60%),
		var(--c-bg-mid);
	border: 1px solid var(--c-border-h);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.3rem;
	text-align: center;
	box-shadow: 0 12px 28px -10px rgba(0,0,0,0.6);
}
.aryf-home-seal__big {
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--c-text);
	letter-spacing: -0.01em;
}
/* "Verified" chip — checkmark + caption inside the seal. The teal tint
 * reads as an approval/trust signal, making the tax-deductible status
 * pop instead of fading into the seal's interior.
 *
 * Defaults sized for the longer English text ("TAX-DEDUCTIBLE") so the
 * pill fits within the inner circle. The ZH override below bumps font
 * size since 可抵税 is only 3 characters and reads small at EN defaults. */
.aryf-home-seal__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	margin-top: 0.45rem;
	padding: 0.26rem 0.6rem;
	border-radius: var(--r-pill);
	background: color-mix(in srgb, var(--c-teal) 16%, transparent);
	border: 1px solid color-mix(in srgb, var(--c-teal) 38%, transparent);
	color: var(--c-teal);
	font-size: 0.66rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	white-space: nowrap;
}
.aryf-home-seal__badge svg {
	flex: 0 0 auto;
}
body.aryf-lang-zh .aryf-home-seal__badge {
	font-size: 0.88rem;
	letter-spacing: 0.1em;
	padding: 0.32rem 0.75rem;
	gap: 0.4rem;
}
body.aryf-lang-zh .aryf-home-seal__badge svg {
	width: 14px;
	height: 14px;
}

@media (max-width: 880px) {
	.aryf-home-seal {
		width: 170px;
		height: 170px;
	}
	.aryf-home-seal__big { font-size: 1.2rem; }
	.aryf-home-seal__badge {
		font-size: 0.68rem;
		padding: 0.24rem 0.58rem;
		letter-spacing: 0.05em;
		margin-top: 0.4rem;
	}
}

/* ============================================================
 * Mission section
 * ============================================================ */

.aryf-home-section--mission {
	padding-bottom: clamp(40px, 6vh, 60px);
}

/* ============================================================
 * Recognition slot at the bottom
 * ============================================================ */

.aryf-home-section--recognition {
	padding-top: clamp(40px, 6vh, 60px);
	padding-bottom: clamp(80px, 10vh, 120px);
}
.aryf-home-section--recognition::before { display: none !important; }

/* ============================================================
 * The7 hooks
 * ============================================================ */

/* The7 / parent-theme overrides for every dark design-system template.
 * Keyed off a single body class (aryf-dark-template) added via the
 * body_class filter in functions.php — driven by aryf_template_asset_map.
 * Adding a new design-system template is a one-line PHP change; no CSS
 * edits needed here. */

/* Hero (or title block) is the page header — kill The7's default title bar. */
body.aryf-dark-template #page-title,
body.aryf-dark-template .page-title-area,
body.aryf-dark-template .full-width-wrap > .stripe-section { display: none; }

/* The7 reserves padding-top:70px on #main and has some bottom spacing before
 * the footer; the body bg shows through both strips. Paint a vertical
 * gradient so the top strip matches the hero purple and the bottom strip
 * matches the dark footer. Anchor to viewport so colors hit predictably. */
body.aryf-dark-template {
	background-color: #060812 !important;
	background-image: linear-gradient(
		180deg,
		#2a1f6a 0,
		#2a1f6a 130px,          /* extend past the 100px menu height */
		#1f1858 260px,          /* purple continues into the hero glow */
		#060812 100vh           /* fully dark by one viewport-height down */
	) !important;
	background-repeat: no-repeat !important;
	background-attachment: scroll !important;
}
body.aryf-dark-template #main {
	background: transparent;
	/* The7's default padding-top:70px doesn't fully clear our 100px-tall
	 * sticky-row menu, so the menu overlaps the hero by 30px. Bump it
	 * to match the actual menu height. */
	padding-top: 100px !important;
}
/* Mobile: hamburger overlay doesn't need clearance — The7 already sets
 * #main padding-top to 0 under 778px. Mirror that here. */
@media (max-width: 1240px) {
	body.aryf-dark-template #main { padding-top: 0 !important; }
}

/* Kill The7's 1px border below the sticky header — it creates a hard seam
 * against the body gradient. */
body.aryf-dark-template .elementor-location-header .the7-e-sticky-row-anchor,
body.aryf-dark-template .elementor-location-header [class*="the7-e-sticky-row"] {
	border-bottom: 0 !important;
}

/* The7 Elementor header inner has asymmetric vertical padding (extra on top,
 * nothing on bottom) which makes the menu items sit flush against the bar's
 * bottom edge. Re-balance it. */
.elementor-location-header [data-element_type="container"],
.elementor-location-header .e-con-inner,
.elementor-location-header [class*="the7-e-sticky-row"] {
	align-items: center !important;
}
.elementor-location-header > .elementor > [data-element_type="container"] {
	padding-top: 14px !important;
	padding-bottom: 14px !important;
}


/* ============================================================
 * HERO POLISH — premium, futuristic feel
 * Layered on top of the base hero rules above. Animations are short,
 * subtle, and gated by prefers-reduced-motion.
 * ============================================================ */

/* Hero background — universal across every page (home, courses, learning
 * path, projects, course detail). Static, full-bleed, no animated layers
 * that could pulse or create visible "shadow borders" at the edges.
 *
 * Composition:
 *   - A horizontal-uniform vertical wash (no left/right vignette).
 *   - A single soft top-center light pool that fades evenly to both sides.
 *   - A subtle teal accent at the bottom for warmth.
 * The title accent gradient (further down) is the only animated element. */
.aryf-home-hero__bg {
	background:
		linear-gradient(180deg,
			rgba(99, 91, 200, 0.32) 0%,
			rgba(99, 91, 200, 0.18) 45%,
			rgba(20, 16, 40, 0.0) 100%),
		radial-gradient(140% 90% at 50% -20%,
			rgba(168, 85, 247, 0.42) 0%,
			rgba(120, 91, 255, 0.32) 30%,
			rgba(56,  189, 248, 0.10) 55%,
			transparent 80%),
		radial-gradient(120% 60% at 50% 110%,
			rgba(45, 212, 191, 0.10) 0%,
			transparent 70%);
	background-size: 100% 100%, 100% 100%, 100% 100%;
	background-repeat: no-repeat;
}

/* Hero ::before and ::after — kept empty so all previous animated layers
 * stop rendering. We deliberately do NOT add new decorative animations
 * here. Title shimmer remains the single animated element across pages. */
.aryf-home-hero::before,
.aryf-home-hero::after {
	content: none;
}

/* 4) Title accent — gradient stays static, but a slow shimmer sweeps
 *    across it. Background-size > 100% lets us animate background-position. */
.aryf-home-hero__title-accent {
	background: linear-gradient(110deg,
		#93c5fd 0%,
		#c084fc 30%,
		#f0abfc 50%,
		#c084fc 70%,
		#93c5fd 100%);
	background-size: 220% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
	animation: aryf-shimmer 9s ease-in-out infinite;
}
@keyframes aryf-shimmer {
	0%, 100% { background-position:   0% 50%; }
	50%      { background-position: 100% 50%; }
}

/* 5) Pill dots — gentle breathing pulse with an extended glow halo. */
.aryf-home-pill__dot {
	box-shadow:
		0 0  8px currentColor,
		0 0 16px currentColor;
	animation: aryf-pulse 3.4s ease-in-out infinite;
}
.aryf-home-pill--purple .aryf-home-pill__dot { animation-delay: 0.6s; }
.aryf-home-pill--teal   .aryf-home-pill__dot { animation-delay: 1.2s; }
.aryf-home-pill--amber  .aryf-home-pill__dot { animation-delay: 1.8s; }
@keyframes aryf-pulse {
	0%, 100% { transform: scale(1);    box-shadow: 0 0  8px currentColor, 0 0 16px currentColor; }
	50%      { transform: scale(1.18); box-shadow: 0 0 12px currentColor, 0 0 28px currentColor; }
}

/* 6) Hero CTAs — entrance animation + primary CTA gets an active glow.
 *    Each child fades up sequentially. */
.aryf-home-hero__eyebrow,
.aryf-home-hero__title,
.aryf-home-hero__pills,
.aryf-home-hero__ctas {
	animation: aryf-rise 0.9s var(--ease-out) both;
}
.aryf-home-hero__eyebrow { animation-delay: 0.05s; }
.aryf-home-hero__title   { animation-delay: 0.15s; }
.aryf-home-hero__pills   { animation-delay: 0.30s; }
.aryf-home-hero__ctas    { animation-delay: 0.45s; }
@keyframes aryf-rise {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: translateY(0);    }
}

/* Primary CTA: ambient glow that intensifies on hover + slight lift. */
.aryf-home-hero__ctas .aryf-cta-primary {
	box-shadow:
		0  6px 22px -6px rgba(56, 189, 248, 0.55),
		0  0  40px -8px rgba(125, 211, 252, 0.35);
	transition: transform 0.25s var(--ease-out),
				box-shadow 0.25s ease;
}
.aryf-home-hero__ctas .aryf-cta-primary::after {
	content: "";
	position: absolute;
	inset: -2px;
	border-radius: inherit;
	background: linear-gradient(135deg, #7dd3fc, #c084fc, #7dd3fc);
	background-size: 200% 200%;
	opacity: 0.0;
	z-index: -1;
	filter: blur(10px);
	transition: opacity 0.3s ease;
	animation: aryf-shimmer 6s ease-in-out infinite;
}
.aryf-home-hero__ctas .aryf-cta-primary { position: relative; }
.aryf-home-hero__ctas .aryf-cta-primary:hover {
	transform: translateY(-2px);
	box-shadow:
		0 10px 28px -6px rgba(56, 189, 248, 0.7),
		0  0  56px -8px rgba(125, 211, 252, 0.55);
}
.aryf-home-hero__ctas .aryf-cta-primary:hover::after {
	opacity: 0.45;
}

/* Ghost CTA: glassy hover */
.aryf-home-hero__ctas .aryf-cta-ghost {
	transition: transform 0.25s var(--ease-out),
				background-color 0.25s ease,
				border-color 0.25s ease;
}
.aryf-home-hero__ctas .aryf-cta-ghost:hover {
	transform: translateY(-2px);
	background-color: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.22);
}

/* Reduce / kill motion when the OS asks. */
@media (prefers-reduced-motion: reduce) {
	.aryf-home-hero__bg,
	.aryf-home-hero::before,
	.aryf-home-hero__title-accent,
	.aryf-home-pill__dot,
	.aryf-home-hero__eyebrow,
	.aryf-home-hero__title,
	.aryf-home-hero__pills,
	.aryf-home-hero__ctas,
	.aryf-home-hero__ctas .aryf-cta-primary::after {
		animation: none !important;
	}
	.aryf-home-hero__eyebrow,
	.aryf-home-hero__title,
	.aryf-home-hero__pills,
	.aryf-home-hero__ctas {
		opacity: 1;
		transform: none;
	}
}


/* .aryf-home-domains--five — 5-card layout that gracefully wraps to
 * 3+2 (centered), then 2+2+1, then stacked. Used when a section follows
 * other content (e.g. a split), so it carries its own top margin. */
.aryf-home-domains--five {
	margin-top: clamp(2.5rem, 6vh, 4.5rem);
}

@media (min-width: 880px) {
	/* Bottom row has 2 cards. Center them under the 3 above by spanning
	 * each across 2 of a 6-track redefinition. */
	.aryf-home-domains--five {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
	.aryf-home-domains--five > :nth-child(1),
	.aryf-home-domains--five > :nth-child(2),
	.aryf-home-domains--five > :nth-child(3) {
		grid-column: span 2;
	}
	.aryf-home-domains--five > :nth-child(4) {
		grid-column: 2 / span 2;
	}
	.aryf-home-domains--five > :nth-child(5) {
		grid-column: 4 / span 2;
	}
}

@media (max-width: 760px) {
	.aryf-home-domains--five {
		gap: 1rem;
		margin-top: clamp(2rem, 4vh, 3rem);
	}
}
