/* Home V2 — dark tech / aurora glass system (ported from the KBIT design system). */

.v2-page {
	background-color: #060a14;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
	background-size: 52px 52px;
	color: #fff;
}

.v2-aurora {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
}

.v2-aurora::before,
.v2-aurora::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
}

.v2-aurora::before {
	width: 60rem;
	height: 26rem;
	left: 50%;
	top: -8rem;
	transform: translateX(-50%);
	background: radial-gradient(ellipse at center, rgba(79, 120, 165, 0.34) 0%, rgba(79, 120, 165, 0.08) 55%, transparent 75%);
	animation: v2-drift 14s ease-in-out infinite;
}

.v2-aurora::after {
	width: 34rem;
	height: 18rem;
	left: 58%;
	top: 16rem;
	background: radial-gradient(ellipse at center, rgba(197, 161, 90, 0.16) 0%, transparent 70%);
	animation: v2-drift 18s ease-in-out infinite reverse;
}

@keyframes v2-drift {
	0%, 100% { transform: translateX(-50%) translateY(0) scale(1); }
	50% { transform: translateX(-46%) translateY(1.5rem) scale(1.06); }
}

.v2-wave-gold { stroke: url(#v2-grad-gold); filter: drop-shadow(0 0 6px rgba(197, 161, 90, 0.55)); }
.v2-wave-aurora { stroke: url(#v2-grad-aurora); filter: drop-shadow(0 0 6px rgba(79, 120, 165, 0.6)); }

.v2-glass {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.v2-glass-hover {
	transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.v2-glass-hover:hover {
	transform: translateY(-4px);
	border-color: rgba(197, 161, 90, 0.28);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 44px rgba(197, 161, 90, 0.08);
}

.v2-cta-gold {
	background: linear-gradient(135deg, #d4ac62 0%, var(--vt-red) 60%, #b08d47 100%);
	box-shadow: 0 0 24px rgba(197, 161, 90, 0.35), 0 8px 24px rgba(0, 0, 0, 0.4);
	transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.v2-cta-gold:hover {
	box-shadow: 0 0 44px rgba(197, 161, 90, 0.55), 0 8px 24px rgba(0, 0, 0, 0.4);
	transform: translateY(-1px);
}

.v2-marquee {
	display: flex;
	width: max-content;
	animation: v2-marquee 36s linear infinite;
}

.v2-marquee:hover { animation-play-state: paused; }

@keyframes v2-marquee {
	to { transform: translateX(-50%); }
}

.v2-fade-x {
	-webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
	mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
	overflow: hidden;
}

/* ===== Hero composition ===== */

.amlab-home-hero {
	position: relative;
	overflow: hidden;
}

.amlab-home-hero__waves {
	pointer-events: none;
	position: absolute;
	left: 0;
	right: 0;
	top: 46%;
	height: 420px;
	width: 100%;
	opacity: 0.7;
}

.amlab-home-hero .amlab-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	border-radius: 999px;
	padding: 0.35rem 1rem 0.35rem 0.5rem;
	font-size: 0.75rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.75);
}

.amlab-hero-badge__new {
	border-radius: 999px;
	background: var(--vt-red);
	color: var(--vt-ink);
	padding: 0.2rem 0.65rem;
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.amlab-home-hero h1 {
	letter-spacing: -0.03em;
	line-height: 1.05;
}

.amlab-home-hero .amlab-hero-sub {
	color: rgba(255, 255, 255, 0.5);
	max-width: 32rem;
}

/* Hero news panel (Query Loop of latest posts) */
.amlab-hero-news {
	border-radius: 1rem;
	padding: 1.25rem;
}

.amlab-hero-news__heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	padding-bottom: 1rem;
	margin-bottom: 1rem;
}

.amlab-hero-news__title {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.amlab-hero-news__title h2 {
	font-size: 0.9rem;
	font-weight: 700;
	color: #fff;
	margin: 0;
}

/* Megaphone icon in a soft gold circle. */
.amlab-hero-news__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 999px;
	border: 1px solid rgba(197, 161, 90, 0.3);
	background: rgba(197, 161, 90, 0.15);
	color: var(--vt-red);
	flex-shrink: 0;
}

.amlab-hero-news__viewall a { color: rgba(197, 161, 90, 0.7); }
.amlab-hero-news__viewall a:hover { color: var(--vt-red); }

/* "View All Updates" link under the news list. */
.amlab-hero-news__all {
	margin: 1rem 0 0;
}

.amlab-hero-news__all a {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--vt-red);
}

/* News item — code badge square + title/date column. */
.amlab-hero-news-list {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.amlab-hero-news .amlab-hero-news-item {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	border: 1px solid rgba(255, 255, 255, 0.06);
	background: rgba(255, 255, 255, 0.04);
	border-radius: 0.75rem;
	padding: 0.75rem;
	text-decoration: none;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.amlab-hero-news .amlab-hero-news-item:hover {
	border-color: rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.08);
}

.amlab-hero-news-item__code {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.3);
	color: var(--vt-red);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.03em;
	margin-top: 0.1rem;
}

.amlab-hero-news-item__text { min-width: 0; }

.amlab-hero-news-item__title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1.35;
	color: #fff;
}

.amlab-hero-news-item__date {
	display: block;
	font-size: 0.65rem;
	color: rgba(255, 255, 255, 0.4);
	margin-top: 0.25rem;
}

/* Stats glass strip */
.amlab-stats-strip {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	border-radius: 1rem;
	max-width: 56rem;
	margin-inline: auto;
}

/* ===== Home membership CTA (split: text + chips | form card) ===== */
.amlab-home-cta__cols { gap: 2.5rem; align-items: center; }

.amlab-home-cta .amlab-eyebrow { color: var(--vt-red); }

.amlab-home-cta .amlab-hero-sub { color: rgba(255, 255, 255, 0.72); }

.amlab-cta-chips {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.65rem;
	margin-top: 1.75rem;
}

.amlab-cta-chip {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.7rem 0.9rem;
	border-radius: 0.7rem;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.09);
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.8rem;
	font-weight: 600;
}

.amlab-cta-chip::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 999px;
	background: var(--vt-red);
	flex-shrink: 0;
}

.amlab-cta-form { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28); }

/* Membership CF7 form — two-up field grid (fields sit in their own <p>). */
.amlab-cta-form .wpcf7-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem 1.25rem;
	align-items: start;
}

.amlab-cta-form .wpcf7-form > .hidden-fields-container,
.amlab-cta-form .wpcf7-form br { display: none; }

/* Consent row + submit span the full width. */
.amlab-cta-form .wpcf7-form > p:has(.amlab-form-consent),
.amlab-cta-form .wpcf7-form > p:has(.wpcf7-submit),
.amlab-cta-form .wpcf7-form > .wpcf7-response-output {
	grid-column: 1 / -1;
	margin: 0;
}

.amlab-cta-form .wpcf7-form > p { margin: 0; }

.amlab-cta-form label {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--vt-ink);
}

.amlab-cta-form input[type="text"],
.amlab-cta-form input[type="email"] {
	width: 100%;
	margin-top: 0.4rem;
	padding: 0.7rem 0.9rem;
	border: 1px solid var(--vt-border);
	border-radius: 10px;
	background: #fff;
	font-size: 0.9rem;
	color: var(--vt-ink);
	box-sizing: border-box;
}

.amlab-cta-form input::placeholder { color: rgba(21, 27, 47, 0.4); }

.amlab-cta-form input:focus {
	outline: none;
	border-color: var(--vt-red);
	box-shadow: 0 0 0 3px rgba(197, 161, 90, 0.12);
}

.amlab-cta-form .amlab-form-consent {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-size: 0.8rem;
	color: rgba(21, 27, 47, 0.7);
	line-height: 1.4;
}

.amlab-cta-form .wpcf7-submit {
	width: 100%;
	padding: 0.85rem 1.5rem;
	background: var(--vt-red);
	color: var(--vt-ink);
	border: none;
	border-radius: 10px;
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease;
}

.amlab-cta-form .wpcf7-submit:hover { background: #B58F45; }

@media (max-width: 782px) {
	.amlab-cta-chips { grid-template-columns: 1fr; }
	.amlab-cta-form .wpcf7-form { grid-template-columns: 1fr; }
}

/* News category badge — small gold uppercase chip on the post-terms output. */
.amlab-news-card .wp-block-post-terms {
	display: inline-flex;
	align-items: center;
	padding: 0.15rem 0.55rem;
	border-radius: 999px;
	background: rgba(197, 161, 90, 0.12);
	color: var(--vt-red-dark);
	font-size: 0.58rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.amlab-news-card .wp-block-post-terms a { color: inherit; text-decoration: none; }

.amlab-stats-strip .amlab-stat {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
	text-align: center;
	padding: 1.75rem 1rem;
}

/* Vertical divider between stats (like the reference divide-x). */
.amlab-stats-strip .amlab-stat + .amlab-stat {
	border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.amlab-stat__icon {
	color: rgba(197, 161, 90, 0.7);
	margin-bottom: 0.15rem;
}

.amlab-stats-strip .amlab-stat__value {
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #fff;
	font-variant-numeric: tabular-nums;
	margin: 0;
}

.amlab-stats-strip .amlab-stat__label {
	font-size: 0.7rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.4);
	margin: 0.35rem 0 0;
}

/* Marquee band */
.amlab-marquee-band {
	border-top: 1px solid rgba(255, 255, 255, 0.05);
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.amlab-marquee-band__label {
	text-align: center;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: rgba(255, 255, 255, 0.35);
}

.amlab-marquee__track {
	display: flex;
	align-items: center;
}

.amlab-marquee__tile {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	margin-right: 3rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.45);
	white-space: nowrap;
}

.amlab-marquee__tile::after {
	content: "✦";
	font-size: 8px;
	color: rgba(197, 161, 90, 0.5);
	margin-left: 3rem;
}

.amlab-marquee__tile img {
	max-height: 34px;
	width: auto;
	opacity: 0.75;
}

@media (prefers-reduced-motion: reduce) {
	.v2-aurora::before,
	.v2-aurora::after,
	.v2-marquee { animation: none; }
	.v2-glass-hover:hover,
	.v2-cta-gold:hover { transform: none; }
}

/* ===== Home builder shortcodes — layout wrappers for the section renderers.
   (The old page used core columns/groups; the shortcode markup needs its own
   grid/flow rules so the sections lay out identically.) ===== */
.amlab-home-band { padding: 4.5rem 0; }
.amlab-home-band__body { margin-top: 2.5rem; }
.amlab-home-head {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 2rem;
	align-items: flex-end;
	justify-content: space-between;
}
.amlab-home-head .amlab-view-all { margin: 0; }
.amlab-home-hero__grid {
	display: grid;
	gap: 3rem;
	align-items: center;
}
@media (min-width: 900px) {
	.amlab-home-hero__grid { grid-template-columns: 1.1fr 0.9fr; }
}
.amlab-hub-card { transition: border-color 0.15s, box-shadow 0.15s; }
.amlab-hub-card:hover { border-color: var(--vt-red); }
