/* =====================================================================
 * Front page (newsberg/template-frontpage.php).
 * Uses the --sc-* tokens from site-chrome.css.
 * ===================================================================== */
#content.hm { padding: 0 !important; }
.hm { background: #fff; color: var(--sc-text); overflow-x: clip; }
.hm-wrap { max-width: var(--sc-max); margin: 0 auto; padding: 0 24px; }
.hm p { font-size: 16px !important; line-height: 1.8; }

.hm .hm-eyebrow {
	margin: 0 0 12px;
	font-size: 12.5px !important;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--sc-purple);
	line-height: 1.4;
}
.hm .hm-h2 {
	margin: 0 0 16px;
	font-size: clamp(24px, 2.6vw, 34px) !important;
	font-weight: 700;
	line-height: 1.35;
	color: var(--sc-ink);
	text-wrap: balance;
}
.hm a { text-decoration: none; }
.hm a:focus-visible, .hm button:focus-visible { outline: 2px solid var(--sc-purple); outline-offset: 3px; }

.hm-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 26px;
	border-radius: 999px;
	font-size: 15.5px !important;
	font-weight: 700;
	border: 1.5px solid transparent;
	transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.hm-btn i { font-size: 13px !important; transition: transform .2s ease; }
.hm-btn:hover i.fa-arrow-right { transform: translateX(3px); }
.hm-btn-primary { background: var(--sc-purple); color: #fff !important; box-shadow: 0 10px 24px rgba(106, 13, 173, .28); }
.hm-btn-primary:hover { background: var(--sc-purple-deep); transform: translateY(-2px); }
.hm-btn-ghost { border-color: #d9c7ef; color: var(--sc-purple) !important; background: #fff; }
.hm-btn-ghost:hover { border-color: var(--sc-purple); background: var(--sc-lavender); }
.hm-btn-light { background: #fff; color: var(--sc-purple) !important; }
.hm-btn-light:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, .18); }

.hm-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px !important; color: var(--sc-purple) !important; }
.hm-link i { font-size: 12px !important; transition: transform .2s ease; }
.hm-link:hover i { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hm-hero { padding: 56px 0 72px; background: linear-gradient(180deg, #fff 0%, #fbf8fe 100%); }
.hm-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.hm .hm-hero-title {
	margin: 0 0 22px;
	font-family: 'Playfair Display', 'Noto Sans Thai', Georgia, serif !important;
	font-size: clamp(36px, 4.3vw, 60px) !important;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -.015em;
	text-wrap: balance;
	color: var(--sc-ink);
}
.hm .hm-hero-sub {
	margin: 0 0 18px;
	padding-left: 14px;
	border-left: 3px solid var(--sc-purple);
	font-size: clamp(18px, 1.6vw, 22px) !important;
	font-weight: 700;
	line-height: 1.5;
	color: var(--sc-ink);
}
.hm .hm-hero-sub span { display: inline-block; }
.hm .hm-hero-title em { font-family: inherit !important; font-style: italic; font-weight: 500; color: var(--sc-purple); }
.hm .hm-hero-desc { max-width: 520px; margin: 0 0 32px; font-size: 16px !important; color: var(--sc-text); }
.hm-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hm-scroll-cue { display: inline-flex; align-items: center; gap: 10px; margin-top: 48px; font-size: 13px !important; font-weight: 600; color: var(--sc-muted) !important; }
.hm-scroll-mouse { position: relative; width: 20px; height: 30px; border: 1.6px solid currentColor; border-radius: 12px; }
.hm-scroll-mouse::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 6px; margin-left: -1.5px; border-radius: 2px; background: var(--sc-purple); animation: hm-scroll 1.8s ease-in-out infinite; }
@keyframes hm-scroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(8px); } }

.hm-hero-visual { position: relative; padding: 24px 64px 24px 24px; }
.hm-hero-shape {
	position: absolute;
	inset: 0 40px 0 0;
	border-radius: 48% 52% 44% 56% / 52% 44% 56% 48%;
	background: linear-gradient(140deg, #efe3fb 0%, #e3d0f6 100%);
}
.hm-hero-img {
	position: relative;
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 13.5;
	object-fit: cover;
	border-radius: 28px 140px 28px 28px;
	box-shadow: 0 30px 60px rgba(31, 18, 51, .16);
}
.hm-hero-words {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	gap: 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.hm-hero-words li {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	font-size: 11px !important;
	font-weight: 700;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--sc-muted);
	line-height: 1;
	white-space: nowrap;
}
.hm-hero-words li:nth-child(4) { color: var(--sc-purple); }

/* ---------- Pillars ---------- */
.hm-pillars { position: relative; margin-top: -36px; z-index: 2; }
/* Divider lines come from the 1px grid gap showing the row's line-colored
   background, so they stay correct however the items wrap. */
.hm-pillar-row {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 1px;
	list-style: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background: var(--sc-line);
	border-radius: 22px;
	box-shadow: 0 18px 50px rgba(31, 18, 51, .09);
	border: 1px solid var(--sc-line);
}
.hm-pillar { background: #fff; }
.hm-pillar a { display: flex; align-items: center; gap: 14px; height: 100%; padding: 24px 20px; transition: background .2s ease; }
.hm-pillar a:hover { background: #faf6fe; }
.hm-pillar-icon {
	flex-shrink: 0;
	display: inline-flex; align-items: center; justify-content: center;
	width: 50px; height: 50px; border-radius: 14px;
	background: var(--sc-lavender);
	color: var(--sc-purple);
	transition: background .2s ease, color .2s ease, transform .2s ease;
}
.hm-pillar-icon i { font-size: 20px !important; }
.hm-pillar a:hover .hm-pillar-icon { background: var(--sc-purple); color: #fff; transform: rotate(-6deg); }
.hm-pillar-text { display: flex; flex-direction: column; min-width: 0; }
.hm-pillar-text strong { font-size: 15px !important; font-weight: 700; color: var(--sc-ink); line-height: 1.35; }
.hm-pillar-text span { font-size: 13px !important; color: var(--sc-muted); line-height: 1.5; }

/* ---------- Banner slider: full width, top of page ----------
   Slides are 2560x764 artwork with text running close to the edges, so
   the track keeps their exact ratio (no cropping, no zoom) and the
   controls stay out of the way until hovered. */
.hm-slider { background: #1f1233; }
.hm-slider .newsberg-banner-slider { max-height: none; }
.hm-slider .nbs-track { padding-bottom: 29.84%; min-height: 0; max-height: none; }
.hm-slider .nbs-slide img,
.hm-slider .nbs-slide.is-active img { transform: none; }
.hm-slider .nbs-arrow {
	width: 52px;
	height: 52px;
	min-width: 0;
	padding: 0 !important;
	border-radius: 50% !important;
	border: 1px solid rgba(255, 255, 255, .4) !important;
	background: rgba(20, 12, 36, .38) !important;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	color: #fff !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .25) !important;
	opacity: 0;
	transform: translateY(-50%) scale(.9);
	transition: opacity .3s ease, transform .3s cubic-bezier(.2, .7, .2, 1), background .25s ease, border-color .25s ease;
}
.hm-slider .nbs-arrow i { font-size: 16px !important; transition: transform .25s ease; }
.hm-slider .newsberg-banner-slider:hover .nbs-arrow { opacity: 1; transform: translateY(-50%) scale(1); }
.hm-slider .nbs-arrow:hover {
	background: var(--sc-purple) !important;
	border-color: var(--sc-purple) !important;
	box-shadow: 0 10px 28px rgba(106, 13, 173, .5) !important;
	transform: translateY(-50%) scale(1.06) !important;
}
.hm-slider .nbs-prev:hover i { transform: translateX(-2px); }
.hm-slider .nbs-next:hover i { transform: translateX(2px); }
.hm-slider .nbs-arrow:active { transform: translateY(-50%) scale(.94) !important; }
.hm-slider .nbs-arrow:focus { outline: none; }
.hm-slider .nbs-arrow:focus-visible { opacity: 1; outline: 2px solid #fff; outline-offset: 3px; }
.hm-slider .nbs-prev { left: 20px; right: auto; }
.hm-slider .nbs-next { right: 20px; left: auto; }
.hm-slider .nbs-counter { top: 16px; right: 18px; gap: 6px; font-size: 12.5px !important; padding: 6px 12px; border-radius: 999px; background: rgba(20, 12, 36, .38); border: 1px solid rgba(255, 255, 255, .3); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); letter-spacing: .06em; }
.hm-slider .nbs-counter i { font-size: 12px !important; }
.hm-slider .nbs-dots { bottom: 10px; gap: 6px; }
.hm-slider .nbs-dot { width: 26px; height: 4px; }
@media (hover: none) {
	.hm-slider .nbs-arrow { display: none; }
}

/* ---------- About ---------- */
.hm-about {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(440px, 29.3vw, 600px);
	margin-top: 72px;
	overflow: hidden;
	background: #fff;
}
.hm-about-bg { position: absolute; inset: 0; }
.hm-about-bg img { width: 100%; height: 100%; object-fit: cover; object-position: right center; display: block; }
/* Extra white wash on the left so the copy stays readable when the
   banner is cropped narrower than its native 3.2:1 ratio. */
.hm-about::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.8) 34%, rgba(255,255,255,0) 50%);
	pointer-events: none;
}
.hm-about .hm-wrap { position: relative; z-index: 2; width: 100%; padding-top: 36px; padding-bottom: 36px; }
.hm-about-copy { max-width: 450px; }
.hm .hm-about-title { margin: 0 0 14px; line-height: 1.05; }
.hm .hm-about-title span { display: block; font-size: clamp(30px, 3vw, 42px) !important; font-weight: 700; color: var(--sc-ink); }
.hm .hm-about-title strong { display: block; font-size: clamp(46px, 4.8vw, 72px) !important; font-weight: 800; color: var(--sc-purple); letter-spacing: -.01em; }
.hm .hm-about-lead { margin: 0 0 12px; font-size: 18px !important; font-weight: 700; color: var(--sc-ink); line-height: 1.5; }
.hm .hm-about-text { margin: 0 0 22px; font-size: 15px !important; line-height: 1.8; color: var(--sc-text); }

/* ---------- News + upcoming ---------- */
.hm-news { padding: 88px 0; background: #faf7fd; }
.hm-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.hm-section-head .hm-h2 { margin-bottom: 0; }
/* Cards and the activities panel share one row height, so their tops and
   bottoms line up; the cards' bodies absorb any extra height. */
.hm-news-grid { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.hm-news-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.hm-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 18px;
	overflow: hidden;
	border: 1px solid var(--sc-line);
	transition: transform .25s ease, box-shadow .25s ease;
}
.hm-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(31, 18, 51, .1); }
.hm-card-media { position: relative; display: block; flex: 1 1 auto; min-height: 190px; overflow: hidden; background: var(--sc-lavender); }
.hm-card-media img { position: absolute; inset: 0; }
.hm-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hm-card:hover .hm-card-media img { transform: scale(1.05); }
.hm-card-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 34px; color: #c9b2e8; }
.hm-card-body { display: flex; flex-direction: column; flex: 0 0 auto; padding: 18px 20px 20px; }
.hm-card-media .hm-chip {
	position: absolute;
	left: 12px;
	top: 12px;
	max-width: calc(100% - 24px);
	padding: 4px 11px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .94);
	color: var(--sc-purple);
	font-size: 12px !important;
	font-weight: 700;
	line-height: 1.5;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	box-shadow: 0 4px 12px rgba(31, 18, 51, .15);
}
.hm-card-date { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; font-size: 13px !important; color: var(--sc-muted); }
.hm-card-date i { font-size: 12px !important; color: var(--sc-purple); }
.hm .hm-card-title { min-height: calc(3 * 1.6em); margin: 0 0 16px; font-size: 16px !important; font-weight: 700; line-height: 1.6; }
.hm-card-title a {
	color: var(--sc-ink) !important;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.hm-card-title a::after { content: ""; position: absolute; inset: 0; }
.hm-card:hover .hm-card-title a { color: var(--sc-purple) !important; }
.hm-card-more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px !important; font-weight: 700; color: var(--sc-purple); }
.hm-card-more i { font-size: 11px !important; transition: transform .2s ease; }
.hm-card:hover .hm-card-more i { transform: translateX(4px); }

.hm-events { display: flex; flex-direction: column; background: #fff; border-radius: 18px; border: 1px solid var(--sc-line); padding: 22px 22px 20px; }
.hm-event-list { flex: 1; }
.hm-events-head h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 18px !important; font-weight: 700; color: var(--sc-ink); }
.hm-events-head i { color: var(--sc-purple); font-size: 16px !important; }
.hm-event-list { list-style: none; margin: 0; padding: 0; }
.hm-event { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--sc-line); }
.hm-event:first-child { border-top: 0; padding-top: 4px; }
.hm-event-date {
	flex-shrink: 0;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	width: 64px; padding: 8px 4px;
	border-radius: 14px;
	background: var(--sc-purple);
	color: #fff;
	line-height: 1.15;
	text-align: center;
}
.hm-event-date strong { font-size: 17px !important; font-weight: 800; }
.hm-event-date span { font-size: 12px !important; font-weight: 700; }
.hm-event-date small { font-size: 10.5px !important; opacity: .8; }
.hm-event-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hm-event-text a {
	font-size: 14.5px !important;
	font-weight: 700;
	line-height: 1.5;
	color: var(--sc-ink) !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.hm-event-text a:hover { color: var(--sc-purple) !important; }
.hm-event-text small { font-size: 12.5px !important; color: var(--sc-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.hm-event.is-past .hm-event-date { background: var(--sc-lavender); color: var(--sc-purple); }
.hm-event-divider { padding: 12px 0 2px; border-top: 1px dashed #dccbf0; font-size: 11.5px !important; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sc-muted); }
.hm-event-divider + .hm-event { border-top: 0; }
.hm-events-empty { color: var(--sc-muted); }
.hm-events-all {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	margin-top: 10px; padding: 11px; border-radius: 12px;
	background: var(--sc-lavender);
	font-size: 14px !important; font-weight: 700; color: var(--sc-purple) !important;
	transition: background .2s ease, color .2s ease;
}
.hm-events-all:hover { background: var(--sc-purple); color: #fff !important; }
.hm-events-all i { font-size: 11px !important; }

/* ---------- RDU video ---------- */
.hm-video { padding: 96px 0; }
.hm-video-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.hm-video-copy .hm-h2 { font-size: clamp(22px, 2.2vw, 28px) !important; margin-bottom: 24px; }
.hm-video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: var(--sc-ink); box-shadow: 0 24px 50px rgba(31, 18, 51, .16); }
.hm-video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Key figures ---------- */
.hm-stats {
	position: relative;
	padding: 72px 0;
	background: linear-gradient(100deg, rgba(43, 10, 74, .94) 0%, rgba(75, 8, 128, .86) 55%, rgba(106, 13, 173, .7) 100%), var(--hm-stats-bg) center / cover no-repeat;
	color: #fff;
}
.hm-stats-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.hm-stats-row li { display: flex; flex-direction: column; gap: 6px; padding: 6px 28px; }
.hm-stats-row li + li { border-left: 1px solid rgba(255, 255, 255, .2); }
.hm-stats-row strong { font-family: 'Playfair Display', 'Noto Sans Thai', serif !important; font-size: clamp(36px, 4vw, 52px) !important; font-weight: 600; line-height: 1.05; font-variant-numeric: lining-nums tabular-nums; }
.hm-stats-row span { font-size: 15px !important; color: rgba(255, 255, 255, .82); }

/* ---------- Members ---------- */
.hm-members { padding: 88px 0; }
/* Carousel controls: one white pill holding prev / pause / next. */
.hm-carousel-nav {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 5px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--sc-line);
	box-shadow: 0 10px 26px rgba(31, 18, 51, .08);
}
.hm .hm-round-btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	min-width: 0;
	padding: 0 !important;
	margin: 0;
	border-radius: 50% !important;
	border: 0 !important;
	background: transparent;
	color: var(--sc-ink);
	box-shadow: none !important;
	line-height: 1;
	cursor: pointer;
	transition: background .2s ease, color .2s ease, transform .2s ease;
}
.hm .hm-round-btn:hover { background: var(--sc-lavender); color: var(--sc-purple); }
.hm .hm-round-btn[data-dir]:hover i { transform: translateX(calc(var(--d, 1) * 2px)); }
.hm .hm-round-btn[data-dir="-1"] { --d: -1; }
.hm .hm-round-btn:active { transform: scale(.92); }
.hm .hm-round-btn i { font-size: 14px !important; transition: transform .2s ease; }
.hm .hm-play-btn { background: var(--sc-purple); color: #fff; box-shadow: 0 6px 14px rgba(106, 13, 173, .3) !important; }
.hm .hm-play-btn:hover { background: var(--sc-purple-deep); color: #fff; }
.hm .hm-play-btn i { font-size: 12px !important; }
.hm .hm-round-btn:focus:not(:focus-visible) { outline: none !important; }
.hm .hm-round-btn:focus-visible { outline: 2px solid var(--sc-purple) !important; outline-offset: 2px; }
.hm-member-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 5 * 20px) / 6);
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 6px 2px 14px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.hm-member-track::-webkit-scrollbar { display: none; }
.hm-member-track li { scroll-snap-align: start; }
/* While looping, the script owns the position: no snapping, and soft
   fades at both edges so logos drift in and out. */
.hm-member-track.is-looping {
	scroll-snap-type: none;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.hm-member { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 10px 6px; border-radius: 16px; transition: background .2s ease; }
.hm-member:hover { background: #faf6fe; }
.hm-member-logo {
	display: flex; align-items: center; justify-content: center;
	width: 108px; height: 108px; border-radius: 50%;
	background: #fff; border: 1px solid var(--sc-line);
	box-shadow: 0 8px 22px rgba(31, 18, 51, .07);
	transition: transform .25s ease, box-shadow .25s ease;
}
.hm-member-logo img { max-width: 78%; max-height: 70%; object-fit: contain; }
.hm-member:hover .hm-member-logo { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(106, 13, 173, .16); }
.hm-member-name { font-size: 13.5px !important; font-weight: 600; line-height: 1.5; color: var(--sc-text); }
.hm-member:hover .hm-member-name { color: var(--sc-purple); }

/* ---------- CTA ---------- */
.hm-cta { padding: 0 0 88px; }
.hm-cta-inner {
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	padding: 44px 52px !important;
	border-radius: 26px;
	background: radial-gradient(circle at 90% 10%, rgba(214, 140, 255, .45), transparent 45%), linear-gradient(120deg, #4b0880 0%, var(--sc-purple) 100%);
	color: #fff;
	max-width: calc(var(--sc-max) - 48px);
}
.hm-cta .hm-eyebrow { color: #e4c9ff; }
.hm .hm-cta-title span { display: inline-block; }
.hm .hm-cta-title { margin: 0; font-size: clamp(22px, 2.6vw, 32px) !important; font-weight: 700; line-height: 1.4; color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	/* Too narrow to lay the copy over the photo: stack it underneath. */
	.hm-about { display: block; min-height: 0; margin-top: 40px; }
	.hm-about-bg { position: relative; display: block; }
	.hm-about-bg img { height: auto; aspect-ratio: 1200 / 596; }
	.hm-about::before { display: none; }
	.hm-about .hm-wrap { padding-top: 32px; padding-bottom: 8px; }
	.hm-about-copy { max-width: none; }
	.hm-pillar-row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.hm-pillar { grid-column: span 2; }
	.hm-pillar:nth-child(n+4) { grid-column: span 3; }
	.hm-news-grid { grid-template-columns: 1fr; }
	.hm-card-media { flex: none; aspect-ratio: 4 / 3; min-height: 0; }
	.hm-member-track { grid-auto-columns: calc((100% - 3 * 20px) / 4); }
}
@media (max-width: 900px) {
	.hm-hero { padding: 40px 0 64px; }
	.hm-hero-grid, .hm-video-grid { grid-template-columns: 1fr; gap: 40px; }
	.hm-hero-visual { width: 100%; max-width: 560px; margin: 0 auto; padding: 10px; }
	.hm-hero-shape { inset: 0; }
	.hm-hero-words { display: none; }
	.hm-hero-img { aspect-ratio: 4 / 3; }
	.hm-scroll-cue { display: none; }
	.hm-stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 0; }
	.hm-stats-row li:nth-child(3) { border-left: 0; }
	.hm-cta-inner { flex-direction: column; align-items: flex-start; padding: 36px 28px !important; }
}
@media (max-width: 640px) {
	.hm-wrap { padding: 0 16px; }
	.hm-cta-inner { max-width: calc(100% - 32px); }
	.hm .hm-hero-title { font-size: 34px !important; }
	.hm .hm-hero-sub { font-size: 17px !important; }
	.hm .hm-hero-desc { font-size: 15.5px !important; }
	.hm-hero-visual { padding: 8px; }
	.hm-hero-img { border-radius: 20px 80px 20px 20px; }
	.hm-hero-words { gap: 12px; }
	.hm-hero-words li { font-size: 9.5px !important; }
	.hm-pillars { margin-top: -28px; }
	.hm-pillar-row { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 18px; }
	.hm-pillar, .hm-pillar:nth-child(n+4) { grid-column: auto; }
	.hm-pillar:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.hm-pillar a { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 12px; }
	.hm-pillar-icon { width: 42px; height: 42px; border-radius: 12px; }
	.hm-pillar-icon i { font-size: 17px !important; }
	.hm-pillar-text strong { font-size: 14px !important; }
	.hm-slider .nbs-counter { display: none; }
	.hm-slider .nbs-dots { bottom: 6px; }
	.hm-slider .nbs-dot { width: 16px; height: 3px; }
	.hm-news, .hm-video, .hm-members { padding: 64px 0; }
	.hm-section-head { flex-wrap: wrap; margin-bottom: 22px; }
	.hm-news-cards {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: 78%;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding-bottom: 8px;
		margin: 0 -16px;
		padding-left: 16px;
		padding-right: 16px;
		scroll-padding-left: 16px;
		scrollbar-width: none;
	}
	.hm-news-cards::-webkit-scrollbar { display: none; }
	.hm-card { scroll-snap-align: start; }
	.hm-stats { padding: 52px 0; }
	.hm-stats-row li { padding: 4px 16px; }
	.hm-stats-row span { font-size: 13.5px !important; }
	.hm-member-track { grid-auto-columns: calc((100% - 2 * 14px) / 3); gap: 14px; }
	.hm-member-logo { width: 84px; height: 84px; }
	.hm-member-name { font-size: 12.5px !important; }
	.hm-cta { padding-bottom: 64px; }
}

@media (prefers-reduced-motion: reduce) {
	.hm *, .hm *::before, .hm *::after { animation: none !important; transition: none !important; }
	.hm-member-track { scroll-behavior: auto; }
}

/* =====================================================================
 * Motion layer (js/home-fx.js). Hidden/animated states only apply under
 * html.hm-fx, which the script adds — and never with reduced motion.
 * ===================================================================== */

/* ---------- Hero: drifting aurora, faint grid ---------- */
.hm-hero { position: relative; isolation: isolate; overflow: hidden; }
.hm-hero::before {
	content: "";
	position: absolute;
	inset: -20%;
	z-index: -2;
	background:
		radial-gradient(38% 42% at 18% 30%, rgba(168, 85, 247, .16), transparent 70%),
		radial-gradient(34% 40% at 82% 62%, rgba(124, 58, 237, .14), transparent 70%),
		radial-gradient(26% 30% at 60% 12%, rgba(245, 196, 81, .10), transparent 70%);
	animation: hm-aurora 22s ease-in-out infinite alternate;
}
@keyframes hm-aurora {
	0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
	50%  { transform: translate3d(3%, -2%, 0) rotate(4deg); }
	100% { transform: translate3d(-3%, 2%, 0) rotate(-3deg); }
}
.hm-hero-grid::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-image: radial-gradient(rgba(106, 13, 173, .13) 1px, transparent 1.4px);
	background-size: 26px 26px;
	-webkit-mask-image: radial-gradient(60% 70% at 30% 40%, #000, transparent 75%);
	mask-image: radial-gradient(60% 70% at 30% 40%, #000, transparent 75%);
}
.hm-hero-grid { position: relative; }

/* ---------- Hero entrance ---------- */
.hm-fx .hm-hero-copy > * { animation: hm-rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hm-fx .hm-hero-copy > :nth-child(1) { animation-delay: .05s; }
.hm-fx .hm-hero-copy > :nth-child(2) { animation-delay: .15s; }
.hm-fx .hm-hero-copy > :nth-child(3) { animation-delay: .3s; }
.hm-fx .hm-hero-copy > :nth-child(4) { animation-delay: .42s; }
.hm-fx .hm-hero-copy > :nth-child(5) { animation-delay: .54s; }
.hm-fx .hm-hero-copy > :nth-child(6) { animation-delay: .66s; }
.hm-fx .hm-hero-visual { animation: hm-pop 1.1s cubic-bezier(.2, .7, .2, 1) .2s both; }
@keyframes hm-rise {
	from { opacity: 0; transform: translateY(26px); filter: blur(6px); }
	to   { opacity: 1; transform: none; filter: none; }
}
@keyframes hm-pop {
	from { opacity: 0; transform: scale(.94) translateY(20px); }
	to   { opacity: 1; transform: none; }
}
/* Shimmer across the accented words of the headline. */
.hm-fx .hm .hm-hero-title em {
	background: linear-gradient(100deg, #6a0dad 20%, #b47cff 40%, #f5c451 50%, #b47cff 60%, #6a0dad 80%);
	background-size: 250% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	padding-right: .08em;
	animation: hm-shimmer 6s ease-in-out 1.2s infinite;
}
@keyframes hm-shimmer {
	0%, 100% { background-position: 100% 0; }
	50%      { background-position: 0 0; }
}

.hm-hero-shape { animation: hm-morph 14s ease-in-out infinite alternate; }
@keyframes hm-morph {
	0%   { border-radius: 48% 52% 44% 56% / 52% 44% 56% 48%; }
	50%  { border-radius: 56% 44% 52% 48% / 44% 56% 46% 54%; }
	100% { border-radius: 44% 56% 48% 52% / 56% 48% 52% 44%; }
}

/* ---------- Buttons: light sweep ---------- */
.hm-btn { position: relative; overflow: hidden; isolation: isolate; }
.hm-btn::after {
	content: "";
	position: absolute;
	top: 0;
	left: -75%;
	width: 50%;
	height: 100%;
	z-index: -1;
	background: linear-gradient(110deg, transparent, rgba(255, 255, 255, .45), transparent);
	transform: skewX(-20deg);
	transition: left .7s ease;
	pointer-events: none;
}
.hm-btn:hover::after { left: 130%; }
.hm-btn-primary { background: linear-gradient(120deg, #7b1fd1 0%, var(--sc-purple) 45%, #4b0880 100%); }

/* ---------- Key figures: glowing numbers ---------- */
.hm-stats-row strong { text-shadow: 0 0 28px rgba(216, 180, 254, .45); }

/* ---------- Scroll reveal ---------- */
.hm-fx .fx-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
	transition-delay: var(--fx-delay, 0ms);
}
.hm-fx .fx-reveal.is-in { opacity: 1; transform: none; }
/* Cards keep their own hover transition once revealed. */
.hm-fx .hm-card.fx-reveal.is-in { transition: opacity .8s ease, transform .25s ease, box-shadow .25s ease; transition-delay: var(--fx-delay, 0ms), 0ms, 0ms; }

/* ---------- Scroll progress line ---------- */
.hm-progress {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 2px;
	transform-origin: 0 50%;
	transform: scaleX(0);
	background: linear-gradient(90deg, #6a0dad, #b47cff, #f5c451);
	pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
	.hm-hero::before, .hm-hero-shape { animation: none !important; }
}
.hm-fx .hm-card.fx-reveal.is-in:hover { transform: translateY(-4px); }
