/*
 * ARAZAS keynote subpages (community, events, explore), 2026-10-21.
 * Builds on home-v3.css (tokens, kickers, links, separators, .x3-open cards). Motion is CSS-only
 * and switches off under prefers-reduced-motion.
 */

/* hero with a cinematic photo */
.x3-sub-hero { position: relative; padding: clamp(64px, 11vh, 128px) 22px 0; text-align: center; isolation: isolate; }
.x3-sub-hero::before {
	content: ""; position: absolute; inset: 20% -10% auto; height: 80%; z-index: -1; pointer-events: none;
	background: radial-gradient(45% 45% at 40% 60%, rgba(59, 130, 255, 0.16), transparent 70%), radial-gradient(35% 40% at 65% 55%, rgba(255, 180, 0, 0.1), transparent 70%);
	filter: blur(24px);
}
.x3-sub-hero h1 {
	max-width: 980px; margin: 8px auto 0; padding: 0.04em 0.06em 0.14em;
	font-size: clamp(40px, 7vw, 84px); font-weight: 700; line-height: 1.06; letter-spacing: -0.045em;
	background: linear-gradient(180deg, #fff 25%, #b9b9c2 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.x3 .x3-sub-hero__lede { max-width: 720px; margin: 14px auto 0; font-size: clamp(18px, 2vw, 24px); line-height: 1.4; color: var(--x3-sub); letter-spacing: -0.012em; }
.x3-sub-hero__media { position: relative; max-width: 1280px; margin: clamp(32px, 6vh, 64px) auto 0; overflow: hidden; border-radius: 28px; }
.x3-sub-hero__media img {
	display: block; width: 100%; height: auto; filter: brightness(1.55) contrast(1.06) saturate(1.05);
	-webkit-mask-image: radial-gradient(ellipse 90% 95% at 50% 50%, #000 65%, transparent 100%); mask-image: radial-gradient(ellipse 90% 95% at 50% 50%, #000 65%, transparent 100%);
}
.x3-sub-hero__media figcaption { position: absolute; right: 18px; bottom: 12px; font-size: 11px; color: var(--x3-dim); }

/* cards as links */
a.x3-sub-card { display: block; text-decoration: none; }
.x3-sub-card__go { display: inline-block; margin-top: 16px; font-size: 15px; font-weight: 600; color: var(--x3-gold-2); }
.x3-sub-card__go::after { content: "\203A"; display: inline-block; margin-left: 0.3em; transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1); }
a.x3-sub-card:hover .x3-sub-card__go::after { transform: translateX(3px); }

/* statement */
.x3-sub-stmt { max-width: 860px; margin: 0 auto; padding: clamp(56px, 9vh, 100px) 22px 0; text-align: center; }
.x3-sub-stmt h2 { margin-top: 10px; font-size: clamp(34px, 5.4vw, 64px); font-weight: 700; line-height: 1.05; letter-spacing: -0.04em; }
.x3 .x3-sub-stmt__para { margin: 18px auto 0; font-size: clamp(18px, 2vw, 23px); line-height: 1.5; color: var(--x3-sub); letter-spacing: -0.01em; }
.x3-sub-stmt__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.x3-sub-stmt__list li { padding: 10px 16px 10px 36px; position: relative; border-radius: 999px; font-size: 15px; color: var(--x3-text); background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.x3-sub-stmt__list li::before { content: ""; position: absolute; left: 16px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: radial-gradient(circle, #8fb9ff, #3b82ff); box-shadow: 0 0 10px rgba(59, 130, 255, 0.8); }

/* related community chips */
.x3-sub-related { padding: clamp(48px, 8vh, 90px) 22px clamp(80px, 12vh, 140px); text-align: center; }
.x3-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.x3-chip { padding: 10px 18px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--x3-sub); text-decoration: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); transition: color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease; }
.x3-chip:hover, .x3-chip:focus-visible { color: #fff; box-shadow: inset 0 0 0 1px rgba(143, 185, 255, 0.6), 0 0 24px -8px rgba(59, 130, 255, 0.7); }
.x3-chip.is-current { color: #000; background: var(--x3-gold); box-shadow: none; }

/* events list */
.x3-events { max-width: 1080px; margin: 0 auto; padding: clamp(56px, 9vh, 100px) 22px clamp(80px, 12vh, 140px); text-align: center; }
.x3-events h2 { margin-top: 10px; font-size: clamp(36px, 6vw, 72px); font-weight: 700; line-height: 1.04; letter-spacing: -0.04em; }
.x3-events__list { margin-top: clamp(32px, 6vh, 56px); text-align: left; }
.x3-event { display: grid; grid-template-columns: 56px minmax(0, 1fr) 260px; gap: 24px; align-items: start; padding: 28px 8px; border-top: 1px solid rgba(255, 255, 255, 0.1); scroll-margin-top: 96px; transition: background 0.4s ease; border-radius: 4px; }
.x3-event:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.x3-event:hover, .x3-event:target { background: linear-gradient(90deg, rgba(59, 130, 255, 0.08), transparent 70%); }
.x3-event__num { font: 600 13px/1.6 "JetBrains Mono", ui-monospace, monospace; color: var(--x3-gold); }
.x3-event__kick { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #8fb9ff; }
.x3-event h3 { margin: 6px 0 0; font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; letter-spacing: -0.03em; color: var(--x3-text); }
.x3-event__body p:last-child { margin: 8px 0 0; font-size: 16px; line-height: 1.5; color: var(--x3-sub); }
.x3-event__meta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.x3-event__when { margin: 0; font-size: 14px; color: var(--x3-dim); }
.x3-event .x3-link { font-size: 17px; }

@media (prefers-reduced-motion: no-preference) {
	.x3-sub-hero .x3-kicker, .x3-sub-hero h1, .x3-sub-hero__lede, .x3-sub-hero .x3-links { animation: x3-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both, x3-kicker 6s linear infinite; }
	.x3-sub-hero h1, .x3-sub-hero__lede, .x3-sub-hero .x3-links { animation: x3-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
	.x3-sub-hero h1 { animation-delay: 0.06s; } .x3-sub-hero__lede { animation-delay: 0.12s; } .x3-sub-hero .x3-links { animation-delay: 0.18s; }
	.x3-sub-hero__media { animation: x3-reveal 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s both; }
	.x3-sub-hero__media img { animation: x3-kenburns 24s ease-in-out infinite alternate; }
	.x3-sub-hero::before { animation: x3-breathe 10s ease-in-out infinite; }
	@keyframes x3-kenburns { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.06) translate(-1%, -1%); } }
	@supports (animation-timeline: view()) {
		.x3-sub-stmt, .x3-event, .x3-chips, .x3-sub-stmt__list li { animation: x3-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
	}
}

@media (max-width: 833px) {
	.x3-sub-hero__media { border-radius: 20px; }
	.x3-event { grid-template-columns: 1fr; gap: 10px; }
}

/* numbered rows (about, vision, values) */
.x3-rows { max-width: 1080px; margin: 0 auto; padding: clamp(56px, 9vh, 100px) 22px 0; text-align: center; }
.x3-rows h2 { margin-top: 10px; font-size: clamp(36px, 6vw, 72px); font-weight: 700; line-height: 1.04; letter-spacing: -0.04em; }
.x3-rows__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; margin-top: clamp(32px, 6vh, 56px); text-align: left; }
.x3-row { position: relative; padding: 26px 0 26px 52px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.x3-row__num { position: absolute; left: 0; top: 30px; font: 600 12px/1 "JetBrains Mono", ui-monospace, monospace; color: var(--x3-gold); }
.x3-row h3 { margin: 0; font-size: 22px; font-weight: 650; letter-spacing: -0.02em; color: var(--x3-text); }
.x3-row p { margin: 8px 0 0; font-size: 16px; line-height: 1.55; color: var(--x3-sub); }
.x3-row::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: linear-gradient(90deg, #ffcc4d, #4f8cff); transition: width 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.x3-row:hover::before { width: 100%; }

/* community index cards */
.x3-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
a.x3-comm-card { text-decoration: none; min-height: 360px; justify-content: flex-end; padding: 32px 28px 30px; }
a.x3-comm-card .x3-card__bg { opacity: 0.9; filter: brightness(1.35); -webkit-mask-image: linear-gradient(180deg, #000 30%, rgba(0, 0, 0, 0.35)); mask-image: linear-gradient(180deg, #000 30%, rgba(0, 0, 0, 0.35)); }
a.x3-comm-card h2 { color: #fff; font-size: clamp(24px, 2.4vw, 32px); }
a.x3-comm-card:hover { box-shadow: inset 0 0 0 1px rgba(143, 185, 255, 0.45), 0 20px 50px -24px rgba(59, 130, 255, 0.6); }

@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: view()) {
		.x3-row, .x3-comm-card { animation: x3-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
	}
}
@media (max-width: 833px) {
	.x3-rows__grid { grid-template-columns: 1fr; }
	.x3-grid--3 { grid-template-columns: 1fr; }
}
.x3-grid--3 > :last-child:nth-child(3n+1) { grid-column: 1 / -1; min-height: 300px; }

/* electric blue + gold plasma on subpages */
.x3-sub-hero::after {
	content: ""; position: absolute; inset: 0 -10% auto; height: 70%; z-index: -1; pointer-events: none; opacity: 0.3; mix-blend-mode: screen;
	background: url("/assets/img/home-v3/plasma-2-1600.webp") center / cover no-repeat;
	-webkit-mask-image: radial-gradient(ellipse 55% 60% at 50% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 55% 60% at 50% 40%, #000 20%, transparent 75%);
}
.x3-sub-related { position: relative; isolation: isolate; overflow: hidden; margin: clamp(48px, 8vh, 96px) 12px 12px; border-radius: 32px; background: #02040a; box-shadow: inset 0 0 0 1px rgba(127, 208, 255, 0.18); }
.x3-sub-related::before { content: ""; position: absolute; inset: -6%; z-index: -2; opacity: 0.75; background: url("/assets/img/home-v3/plasma-1-800.webp") center / cover no-repeat; }
.x3-sub-related::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(2, 4, 10, 0.6), rgba(2, 4, 10, 0.3)); }
.x3-sub-related .x3-chip:not(.is-current) { background: rgba(2, 4, 10, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@media (prefers-reduced-motion: no-preference) {
	.x3-sub-hero::after { animation: x3-plasma 40s ease-in-out infinite alternate; }
	.x3-sub-related::before { animation: x3-plasma-big 30s ease-in-out infinite alternate; }
}
