/* ==========================================================================
   CyberExpoX 2026 — brand layer for CyberPulse
   Palette, type and motifs taken from the CyberExpoX 2026 proposal deck.
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Unbounded"; font-weight: 600; font-display: swap; src: url("../fonts/unbounded-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Unbounded"; font-weight: 700; font-display: swap; src: url("../fonts/unbounded-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Unbounded"; font-weight: 800; font-display: swap; src: url("../fonts/unbounded-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-weight: 400; font-display: swap; src: url("../fonts/lexend-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-weight: 500; font-display: swap; src: url("../fonts/lexend-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-weight: 600; font-display: swap; src: url("../fonts/lexend-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-weight: 700; font-display: swap; src: url("../fonts/lexend-latin-700-normal.woff2") format("woff2"); }

/* ---------- Brand tokens ---------- */
:root {
	--cxp-violet: #5a44ca;
	--cxp-violet-600: #4a36b5;
	--cxp-violet-ink: #2b2080;
	--cxp-navy: #16183d;
	--cxp-navy-2: #20245a;
	--cxp-green: #00dc58;
	--cxp-green-600: #00b849;
	--cxp-cream: #fff3d6;
	--cxp-pink: #f0328f;
	--cxp-teal: #1fc8cf;
	--cxp-ink: #111114;
	--cxp-paper: #fbfbfd;
	--cxp-lilac: #efedfb;
	--cxp-muted: #5c5d70;

	--cxp-display: "Unbounded", "Arial Black", sans-serif;
	--cxp-text: "Lexend", system-ui, sans-serif;
	--cxp-radius: 14px;
	--cxp-wrap: 1240px;

	/* Motifs */
	--cxp-stripes-pink: repeating-linear-gradient(-55deg, var(--cxp-pink) 0 5px, transparent 5px 15px);
	--cxp-stripes-violet: repeating-linear-gradient(-55deg, var(--cxp-violet-600) 0 7px, transparent 7px 18px);
	--cxp-tri: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='48' viewBox='0 0 56 48'%3E%3Cpath d='M0 46 14 22 28 46M28 46 42 22 56 46M14 22 28 0 42 22' fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1.5'/%3E%3C/svg%3E");
	--cxp-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M10 0h10v10h10v10H20v10H10V20H0V10h10z' fill='%2300dc58'/%3E%3C/svg%3E");
	--cxp-plus-teal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M10 0h10v10h10v10H20v10H10V20H0V10h10z' fill='%231fc8cf'/%3E%3C/svg%3E");
	--cxp-spark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 0C21 13 27 19 40 20 27 21 21 27 20 40 19 27 13 21 0 20 13 19 19 13 20 0z' fill='%23ffffff'/%3E%3C/svg%3E");

	/* Map onto CyberPulse's colour system (HSL triplets) */
	--cpl-color-primary: 250, 56%, 53%;
	--cpl-color-success: 144, 100%, 43%;
	--cpl-color-info: 182, 74%, 47%;
	--cpl-color-danger: 330, 87%, 57%;
	--cpl-color-secondary: 236, 47%, 16%;
	--cpl-color-primary-light: #efedfb;
	--cpl-color-success-light: #dcfbe8;
	--cpl-color-contrast-base: 240deg;
	--cpl-color-contrast-saturation: 10%;
	--cpl-color-background-base: 240deg;
	--cpl-color-background-saturation: 33%;
	--cpl-color-glitch-1: #f0328f;
	--cpl-color-glitch-2: #00dc58;
	--cpl-border-radius: 10px;
}

/* Night mode = deep navy instead of neutral black */
.cpl-night-mode {
	--cpl-color-contrast-base: 245deg;
	--cpl-color-contrast-saturation: 25%;
	--cpl-color-background-base: 236deg;
	--cpl-color-background-saturation: 46%;
	--cpl-color-glitch-1: #f0328f;
	--cpl-color-glitch-2: #00dc58;
	--cxp-paper: #121433;
	--cxp-lilac: #1b1e48;
	--cxp-ink: #f4f3ff;
	--cxp-muted: #b4b6d6;
}

/* ---------- Base ---------- */
body.cxp {
	font-family: var(--cxp-text);
	font-weight: 400;
	background-color: var(--cxp-paper);
}
body.cxp h1, body.cxp h2, body.cxp h3, body.cxp h4, body.cxp .h1, body.cxp .h2, body.cxp .h3, body.cxp .h4 {
	font-family: var(--cxp-display);
	font-weight: 800;
	letter-spacing: -0.01em;
	text-transform: uppercase;
}
body.cxp ::selection { background: var(--cxp-green); color: var(--cxp-ink); }

/* Buttons everywhere (theme + blocks) */
body.cxp .cpl-btn,
body.cxp .wp-block-button__link,
body.cxp button[type="submit"],
body.cxp input[type="submit"] {
	font-family: var(--cxp-display);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-radius: 999px;
}

/* ---------- Header ---------- */
body.cxp .site-header {
	background: var(--cxp-paper);
	border-bottom: 1px solid rgba(90, 68, 202, 0.12);
}
body.cxp .site-header .cpl-navbar-nav > .menu > ul > li > a,
body.cxp .site-header .cpl-navbar-nav > .menu > li > a,
body.cxp .site-header #primary-menu a {
	font-family: var(--cxp-text);
	color: var(--cxp-ink);
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.04em;
}
body.cxp .site-header #primary-menu a:hover,
body.cxp .site-header #primary-menu .current-menu-item > a { color: var(--cxp-violet); }
.cpl-night-mode body.cxp .site-header #primary-menu a:hover { color: var(--cxp-green); }
body.cxp .site-header .cxp-nav-cta > a {
	padding: 10px 18px !important;
	border-radius: 999px;
	background: var(--cxp-green);
	color: var(--cxp-ink) !important;
	font-family: var(--cxp-display) !important;
	font-size: 12px !important;
	font-weight: 700 !important;
}

/* Ticker → green-on-navy event strip */
body.cxp .cpl-ticker {
	background: var(--cxp-navy);
	color: var(--cxp-green);
	font-family: var(--cxp-display);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.08em;
}

/* Preloader */
body.cxp .cpl-preloader { background: var(--cxp-violet); }

/* ---------- Landing layout ---------- */
.cxp-landing { overflow: hidden; margin: 0 calc(var(--cpl-container__padding, 30px) * -1) !important; }
/* Classic themes wrap group blocks in an inner container — flatten it so section grids work. */
.cxp-landing .wp-block-group > .wp-block-group__inner-container { display: contents; }
.cxp-landing > * { margin: 0; }
body.cxp-is-landing .site-content { padding: 0; max-width: none; }
.cxp-wrap { max-width: var(--cxp-wrap); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.cxp-landing p { margin: 0 0 1em; }
.cxp-landing figure { margin: 0; }
.cxp-landing img { display: block; max-width: 100%; height: auto; }
.cxp-landing mark { background: none; color: var(--cxp-violet); }
.cpl-night-mode .cxp-landing mark { color: var(--cxp-green); }

.cxp-section { position: relative; padding: clamp(64px, 9vw, 120px) 0; background: var(--cxp-paper); color: var(--cxp-ink); }
.cxp-section--lilac { background: var(--cxp-lilac); }

.cxp-h { font-size: clamp(30px, 4.2vw, 52px); line-height: 1.05; margin: 0 0 clamp(28px, 4vw, 48px); color: var(--cxp-ink); }
.cxp-h--light { color: #fff; }
.cxp-eyebrow {
	font-family: var(--cxp-display);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--cxp-violet);
}
.cxp-tag { font-weight: 600; font-size: 14px; color: var(--cxp-violet); margin-bottom: 0.4em !important; }
.cpl-night-mode .cxp-tag, .cpl-night-mode .cxp-eyebrow { color: var(--cxp-green); }

.cxp-split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.cxp-split--wide { grid-template-columns: 1fr 1fr; }

/* Buttons */
.cxp-landing .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.cxp-landing .wp-block-button__link {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 17px 28px;
	border: 2px solid transparent;
	text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.cxp-landing .wp-block-button__link:hover { transform: translateY(-2px); }
.cxp-btn-green .wp-block-button__link { background: var(--cxp-green); color: var(--cxp-ink); box-shadow: 0 6px 0 var(--cxp-violet-ink); }
.cxp-btn-green .wp-block-button__link:hover { box-shadow: 0 8px 0 var(--cxp-violet-ink); color: var(--cxp-ink); }
.cxp-btn-violet .wp-block-button__link { background: var(--cxp-violet); color: #fff; }
.cxp-btn-violet .wp-block-button__link:hover { background: var(--cxp-violet-600); color: #fff; }
.cxp-btn-ghost .wp-block-button__link { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.cxp-btn-ghost .wp-block-button__link:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }

/* ---------- Hero ---------- */
.cxp-hero {
	position: relative;
	padding: clamp(56px, 7vw, 96px) 0 clamp(72px, 8vw, 112px);
	background: var(--cxp-tri) 0 0 / 56px 48px, var(--cxp-violet);
	color: #fff;
	isolation: isolate;
}
.cxp-hero::before { /* blue stripe block, top right */
	content: ""; position: absolute; z-index: -1;
	top: 0; right: 0; width: min(38vw, 520px); height: 46%;
	background: var(--cxp-stripes-violet);
	opacity: .9;
}
.cxp-hero::after { /* pink stripe block, bottom left */
	content: ""; position: absolute; z-index: -1;
	left: 0; bottom: 0; width: min(30vw, 380px); height: 90px;
	background: var(--cxp-stripes-pink);
}
.cxp-hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.cxp-hero .cxp-eyebrow { color: var(--cxp-green); margin-bottom: 18px; }
.cxp-hero__logo { width: min(440px, 80%); margin-bottom: 26px !important; filter: drop-shadow(0 10px 0 rgba(22,24,61,.35)); }
.cxp-hero__title {
	font-size: clamp(26px, 3.3vw, 42px);
	line-height: 1.08;
	margin: 0 0 18px;
	color: #fff;
}
.cxp-hero__title mark { color: var(--cxp-green) !important; }
.cxp-hero__lede { font-size: 18px; line-height: 1.6; max-width: 34em; color: rgba(255,255,255,.88); }

.cxp-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 30px; padding: 0; }
.cxp-facts div { padding: 12px 16px; border-radius: 10px; background: var(--cxp-navy); min-width: 130px; }
.cxp-facts dt { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--cxp-green); margin: 0; }
.cxp-facts dd { margin: 2px 0 0; font-family: var(--cxp-display); font-weight: 700; font-size: 14px; }

.cxp-hero__art { position: relative; }
.cxp-hero__art::before { /* green plus */
	content: ""; position: absolute; z-index: 2; left: -26px; bottom: 90px;
	width: 60px; height: 60px; background: var(--cxp-plus) center / contain no-repeat;
}
.cxp-hero__art::after { /* sparkle */
	content: ""; position: absolute; z-index: 2; right: -18px; top: -22px;
	width: 54px; height: 54px; background: var(--cxp-spark) center / contain no-repeat;
}
.cxp-frame { position: relative; border: 3px solid #fff; border-radius: 4px; box-shadow: 14px 14px 0 var(--cxp-navy); }
.cxp-frame img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.cxp-frame--pink { box-shadow: 14px 14px 0 var(--cxp-pink); border-color: var(--cxp-violet-600); }
.cxp-frame--pink img { aspect-ratio: 5 / 6; }
.cxp-hero__art .cxp-frame img { aspect-ratio: auto; }

.cxp-countdown {
	position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%);
	display: flex; gap: 6px; padding: 10px; border-radius: 14px;
	background: var(--cxp-navy); box-shadow: 0 12px 30px rgba(22,24,61,.35);
}
.cxp-countdown div { min-width: 64px; padding: 6px 4px; text-align: center; border-radius: 8px; background: var(--cxp-navy-2); }
.cxp-countdown span { display: block; font-family: var(--cxp-display); font-weight: 800; font-size: 24px; line-height: 1.1; color: var(--cxp-green); font-variant-numeric: tabular-nums; }
.cxp-countdown small { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); }

/* ---------- Programme strip ---------- */
.cxp-strip { background: var(--cxp-navy); color: rgba(255,255,255,.75); padding: 22px 20px; text-align: center; }
.cxp-strip p { margin: 0 !important; font-family: var(--cxp-display); font-weight: 700; font-size: clamp(11px, 1.2vw, 14px); letter-spacing: .12em; text-transform: uppercase; }
.cxp-strip span { color: var(--cxp-pink); padding: 0 .35em; }
.cxp-strip strong { color: var(--cxp-green); font-weight: 700; }

/* ---------- About ---------- */
.cxp-about p { font-size: 17px; line-height: 1.7; color: var(--cxp-muted); }
.cxp-about strong { color: var(--cxp-ink); }
.cxp-motif { max-width: 300px; margin-top: 28px !important; }
.cxp-card { position: relative; padding: clamp(28px, 3.5vw, 44px); border-radius: var(--cxp-radius); }
.cxp-card--violet { background: var(--cxp-violet); color: #fff; box-shadow: 12px 12px 0 var(--cxp-green); }
.cxp-card--violet .cxp-eyebrow { color: var(--cxp-green); }
.cxp-card--violet h3 { color: #fff; font-size: clamp(20px, 2vw, 26px); line-height: 1.2; margin: 6px 0 14px; }
.cxp-card--violet p { color: rgba(255,255,255,.85); font-size: 16px; }
.cxp-card--violet::after {
	content: ""; position: absolute; right: -16px; top: -16px; width: 40px; height: 40px;
	background: var(--cxp-plus-teal) center / contain no-repeat;
}

/* ---------- Numbers ---------- */
.cxp-numbers { background: var(--cxp-tri) 0 0 / 56px 48px, var(--cxp-violet); color: #fff; }
.cxp-numbers .cxp-eyebrow { color: var(--cxp-green); }
.cxp-numbers p { color: rgba(255,255,255,.88); font-size: 17px; line-height: 1.7; max-width: 34em; }
.cxp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 28px; }
.cxp-stats div { padding: 16px 14px; border-radius: 10px; background: var(--cxp-navy); }
.cxp-stats strong { display: block; white-space: nowrap; font-family: var(--cxp-display); font-weight: 800; font-size: clamp(18px, 1.8vw, 26px); color: var(--cxp-green); line-height: 1.1; }
.cxp-stats span { display: block; margin-top: 4px; line-height: 1.35; font-size: 13px; color: rgba(255,255,255,.8); }
.cxp-numbers .cxp-frame--pink { margin-right: 14px !important; }

/* ---------- On the day tiles ---------- */
.cxp-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cxp-tile { position: relative; overflow: hidden; border-radius: 12px; background: var(--cxp-navy); }
.cxp-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.cxp-tile:hover img { transform: scale(1.06); }
.cxp-tile figcaption {
	position: absolute; left: 0; right: 0; bottom: 0; margin: 0 !important;
	padding: 12px 16px; text-align: left;
	background: rgba(90, 68, 202, .92); color: #fff;
	font-family: var(--cxp-text); font-weight: 700; font-size: 15px;
}
.cxp-tile:nth-child(4n+2) figcaption { background: rgba(22, 24, 61, .92); }
.cxp-tile:nth-child(4n+2) figcaption::before { content: "▶ "; color: var(--cxp-green); }

/* ---------- Line-up ---------- */
.cxp-people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cxp-person { overflow: hidden; border-radius: var(--cxp-radius); background: var(--cxp-paper); box-shadow: 0 1px 0 rgba(90,68,202,.12); transition: transform .25s ease, box-shadow .25s ease; }
.cxp-person:hover { transform: translateY(-4px); box-shadow: 8px 8px 0 var(--cxp-violet); }
.cxp-person img { width: 100%; aspect-ratio: 1 / 0.95; object-fit: cover; }
.cxp-person :is(p, h3) { padding: 0 20px; }
.cxp-person .cxp-tag { padding-top: 18px; }
.cxp-person h3 { font-size: 17px; line-height: 1.2; margin: 0 0 8px; text-transform: none; letter-spacing: 0; }
.cxp-person h3 em { color: var(--cxp-violet); }
.cxp-person p:last-child { font-size: 14px; line-height: 1.5; color: var(--cxp-muted); padding-bottom: 22px; margin: 0; }

/* ---------- Tickets ---------- */
.cxp-tickets { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; align-items: stretch; }
.cxp-ticket {
	position: relative; display: flex; flex-direction: column;
	padding: 30px 28px; border-radius: var(--cxp-radius);
	background: var(--cxp-lilac); color: var(--cxp-ink);
	border: 2px solid transparent;
}
.cxp-ticket::before, .cxp-ticket::after { /* ticket notches */
	content: ""; position: absolute; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--cxp-paper);
}
.cxp-ticket::before { left: -12px; } .cxp-ticket::after { right: -12px; }
.cxp-price { font-family: var(--cxp-display); font-weight: 800; font-size: clamp(30px, 3vw, 40px); line-height: 1; margin: 6px 0 18px !important; }
.cxp-ticket ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.cxp-ticket li { position: relative; padding: 7px 0 7px 26px; border-top: 1px dashed rgba(90,68,202,.25); font-size: 15px; }
.cxp-ticket li::before { content: ""; position: absolute; left: 0; top: 12px; width: 13px; height: 13px; background: var(--cxp-plus) center / contain no-repeat; }
.cxp-ticket--featured { background: var(--cxp-violet); color: #fff; border-color: var(--cxp-green); }
.cxp-ticket--featured .cxp-eyebrow { color: var(--cxp-green); }
.cxp-ticket--featured li { border-color: rgba(255,255,255,.2); }
.cxp-ticket--info { background: var(--cxp-navy); color: #fff; justify-content: center; }
.cxp-info { margin: 0; }
.cxp-info div { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.cxp-info div:last-child { border: 0; }
.cxp-info dt { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--cxp-green); }
.cxp-info dd { margin: 2px 0 0; font-weight: 600; font-size: 16px; }

/* ---------- Partners ---------- */
.cxp-partners { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cxp-partner {
	display: grid; grid-template-columns: 112px 1fr; column-gap: 22px; align-items: center;
	padding: 20px; border-radius: var(--cxp-radius); background: var(--cxp-paper); border: 2px solid transparent;
}
.cxp-partner figure { grid-row: 1 / span 3; background: #fff; border-radius: 10px; padding: 8px; }
.cxp-partner figure img { width: 100%; aspect-ratio: 1.15 / 1; object-fit: contain; }
.cxp-partner h3 { font-size: 16px; text-transform: none; letter-spacing: 0; margin: 0 0 4px; }
.cxp-partner p:last-child { font-size: 14px; line-height: 1.5; color: var(--cxp-muted); margin: 0; }
.cxp-partner--accent { border-color: var(--cxp-green); }
.cxp-partner--accent .cxp-tag { color: var(--cxp-green-600); }
.cxp-ticketing { display: flex; align-items: center; gap: 28px; margin-top: 36px; }
.cxp-ticketing p { margin: 0 !important; color: var(--cxp-muted); }
.cxp-ticketing figure { background: #fff; border-radius: 10px; padding: 6px 12px; }
.cxp-ticketing img { height: 38px; width: auto; }

/* ---------- Sponsor CTA ---------- */
.cxp-cta { position: relative; padding: clamp(72px, 9vw, 120px) 0; background: var(--cxp-tri) 0 0 / 56px 48px, var(--cxp-violet); color: #fff; isolation: isolate; }
.cxp-cta::before { content: ""; position: absolute; z-index: -1; left: 0; top: 0; width: min(30vw, 360px); height: 55%; background: var(--cxp-stripes-violet); }
.cxp-cta::after { content: ""; position: absolute; z-index: -1; right: 6%; bottom: 0; width: 220px; height: 70px; background: var(--cxp-stripes-pink); }
.cxp-cta .cxp-eyebrow { color: var(--cxp-green); }
.cxp-cta p { color: rgba(255,255,255,.88); font-size: 17px; line-height: 1.7; }
.cxp-contact { padding: 32px; border-radius: var(--cxp-radius); background: var(--cxp-navy); box-shadow: 12px 12px 0 var(--cxp-green); }
.cxp-contact__name { font-family: var(--cxp-display); font-weight: 700; font-size: 20px; color: #fff !important; margin-bottom: .5em !important; }
.cxp-contact a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); }
.cxp-contact a:hover { color: var(--cxp-green); border-color: var(--cxp-green); }

/* ---------- Footer ---------- */
body.cxp .cpl-footer { background: var(--cxp-navy); color: rgba(255,255,255,.7); margin-top: 0; }
body.cxp .cpl-footer::before { display: none; }
body.cxp .cpl-footer a { color: var(--cxp-green); }
body.cxp .cpl-footer .cpl-footer-copyright { font-size: 14px; color: rgba(255,255,255,.72); }
body.cxp-is-landing .cpl-footer { --cpl-footer__padding-y: 44px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.cxp-tiles, .cxp-people { grid-template-columns: repeat(2, 1fr); }
	.cxp-tickets { grid-template-columns: 1fr 1fr; }
	.cxp-ticket--info { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
	.cxp-hero__grid, .cxp-split, .cxp-split--wide { grid-template-columns: 1fr; }
	.cxp-hero__art { max-width: 520px; margin: 24px auto 30px; }
	.cxp-stats { grid-template-columns: repeat(2, 1fr); }
	.cxp-partners { grid-template-columns: 1fr; }
	.cxp-hero::before { width: 45vw; height: 220px; }
}
@media (max-width: 600px) {
	.cxp-tickets { grid-template-columns: 1fr; }
	.cxp-people { grid-template-columns: 1fr 1fr; gap: 12px; }
	.cxp-person :is(p, h3) { padding: 0 14px; }
	.cxp-person h3 { font-size: 14px; }
	.cxp-tiles { gap: 10px; }
	.cxp-tile figcaption { font-size: 12px; padding: 8px 10px; }
	.cxp-partner { grid-template-columns: 80px 1fr; column-gap: 16px; }
	.cxp-countdown div { min-width: 54px; }
	.cxp-countdown span { font-size: 20px; }
	.cxp-hero__art::before { left: -10px; width: 44px; height: 44px; }
	.cxp-ticketing { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
	.cxp-landing * { transition: none !important; }
}

/* ---------- Get involved ---------- */
.cxp-involve { display: grid; gap: 12px; }
.cxp-involve__item { position: relative; padding: 22px 24px 22px 64px; border-radius: var(--cxp-radius); background: var(--cxp-navy); }
.cxp-involve__item::before { content: ""; position: absolute; left: 24px; top: 26px; width: 22px; height: 22px; background: var(--cxp-plus) center / contain no-repeat; }
.cxp-involve__item:nth-child(2)::before { background-image: var(--cxp-plus-teal); }
.cxp-involve__item h3 { color: #fff; font-size: 16px; margin: 0 0 6px; }
.cxp-involve__item p { margin: 0 !important; font-size: 15px !important; line-height: 1.5 !important; color: rgba(255,255,255,.75) !important; }

/* ---------- Gallery page ---------- */
.cxp-hero--slim { padding: clamp(56px, 7vw, 100px) 0; }
.cxp-hero--slim .cxp-hero__lede { margin-bottom: 0; }
.cxp-hero__title--xl { font-size: clamp(34px, 5.4vw, 68px); }
/* Gallery: any Gallery block on a CyberExpoX page becomes the brand grid.
   Tile shapes (tall / wide) are set automatically by cyberexpox.js. */
.cxp-gallery,
.cxp-landing .wp-block-gallery.has-nested-images { display: grid !important; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 170px; grid-auto-flow: dense; gap: 12px !important; margin: 0 0 40px; }
.cxp-landing .wp-block-gallery.has-nested-images figure.wp-block-image,
.cxp-gitem { position: relative; width: auto !important; margin: 0 !important; overflow: hidden; border-radius: 12px; background: var(--cxp-navy); cursor: zoom-in; grid-row: span 2; }
.cxp-landing .wp-block-gallery figure.wp-block-image a,
.cxp-gitem a { display: block; width: 100%; height: 100%; }
.cxp-landing .wp-block-gallery figure.wp-block-image img,
.cxp-gitem img { width: 100% !important; height: 100% !important; object-fit: cover; transition: transform .5s ease; }
.cxp-landing .wp-block-gallery figure.wp-block-image:hover img,
.cxp-gitem:hover img { transform: scale(1.05); }
.cxp-gitem::after { content: ""; position: absolute; inset: 0; border: 3px solid transparent; border-radius: 12px; transition: border-color .2s ease; pointer-events: none; }
.cxp-gitem:hover::after, .cxp-gitem:focus-within::after { border-color: var(--cxp-green); }
.cxp-landing .wp-block-gallery figure.wp-block-image figcaption { font-size: 13px; }
.cxp-g-wide, .cxp-g-feature { grid-column: span 2; }
.cxp-g-feature { grid-row: span 2; }
.cxp-landing h2.wp-block-heading + .wp-block-gallery { margin-top: 0; }
.cxp-cta--slim { padding: clamp(56px, 7vw, 96px) 0; }
.cxp-cta--slim .cxp-h { margin-bottom: 24px; }

.cxp-lightbox { position: fixed; inset: 0; z-index: 99999; display: none; align-items: center; justify-content: center; padding: 4vh 4vw; background: rgba(14, 15, 40, .94); }
.cxp-lightbox.is-open { display: flex; }
.cxp-lightbox img { max-width: 100%; max-height: 84vh; border: 3px solid #fff; box-shadow: 14px 14px 0 var(--cxp-violet); }
.cxp-lightbox figcaption { position: absolute; left: 0; right: 0; bottom: 3vh; text-align: center; color: #fff; font-weight: 600; }
.cxp-lightbox button { position: absolute; display: grid; place-items: center; width: 52px !important; height: 52px !important; min-width: 0; padding: 0 !important; margin: 0; line-height: 1 !important; border: 0; border-radius: 50%; background: var(--cxp-green); color: var(--cxp-ink); font: 800 22px/1 var(--cxp-display); cursor: pointer; }
.cxp-lightbox .cxp-lb-close { top: 3vh; right: 3vw; }
.cxp-lightbox .cxp-lb-prev { left: 2vw; top: 50%; margin-top: -26px; }
.cxp-lightbox .cxp-lb-next { right: 2vw; top: 50%; margin-top: -26px; }

@media (max-width: 860px) {
	.cxp-gallery, .cxp-landing .wp-block-gallery.has-nested-images { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 120px; gap: 8px !important; }
	.cxp-g-feature { grid-row: span 2; }
	.cxp-lightbox .cxp-lb-prev, .cxp-lightbox .cxp-lb-next { top: auto; bottom: 3vh; margin: 0; }
}
.cxp-numbers .wp-block-buttons { margin-top: 28px; }
.cxp-involve__item a { color: var(--cxp-green); font-weight: 600; text-decoration: none; white-space: nowrap; }
.cxp-involve__item a:hover { text-decoration: underline; }
.cxp-involve__item:nth-child(3)::before { background-image: var(--cxp-plus-teal); }
.cxp-involve__item:nth-child(2)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M10 0h10v10h10v10H20v10H10V20H0V10h10z' fill='%23f0328f'/%3E%3C/svg%3E"); }

/* ---------- Smooth anchor scrolling (header offset) ---------- */
html { scroll-behavior: smooth; }
.cxp-landing [id] { scroll-margin-top: 90px; }

/* ---------- Preloader: subtle glitch on the logo ---------- */
body.cxp .cpl-preloader { background: var(--cxp-violet) var(--cxp-tri) 0 0 / 56px 48px; }
body.cxp .cpl-preloader-logo::before {
	content: "";
	position: absolute;
	top: 7px; bottom: 7px; left: 20px; right: 20px;
	background: url("../img/logo-cyberexpox.png") left center / contain no-repeat;
	filter: drop-shadow(-4px 0 0 #f0328f) drop-shadow(4px 0 0 #00dc58);
	opacity: 0;
	pointer-events: none;
	animation: cxp-glitch-slice 2.6s infinite steps(1, end);
}
body.cxp .cpl-preloader-logo img { animation: cxp-glitch-rgb 2.6s infinite steps(1, end); }
@keyframes cxp-glitch-rgb {
	0%, 86%, 100% { transform: none; filter: none; }
	87% { transform: translate(2px, 0); filter: drop-shadow(-2px 0 0 rgba(240, 50, 143, .85)) drop-shadow(2px 0 0 rgba(0, 220, 88, .85)); }
	90% { transform: translate(-2px, 1px) skewX(-3deg); filter: drop-shadow(2px 0 0 rgba(240, 50, 143, .85)) drop-shadow(-2px 0 0 rgba(31, 200, 207, .85)); }
	93% { transform: translate(1px, -1px); filter: drop-shadow(-1px 0 0 rgba(0, 220, 88, .85)); }
	95% { transform: none; filter: none; }
}
@keyframes cxp-glitch-slice {
	0%, 86%, 100% { opacity: 0; clip-path: inset(0 0 100% 0); transform: none; }
	87% { opacity: .9; clip-path: inset(12% 0 70% 0); transform: translateX(-8px); }
	89% { opacity: .9; clip-path: inset(48% 0 34% 0); transform: translateX(7px); }
	91% { opacity: .9; clip-path: inset(72% 0 10% 0); transform: translateX(-5px); }
	93% { opacity: .9; clip-path: inset(30% 0 55% 0); transform: translateX(4px); }
	95% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
	body.cxp .cpl-preloader-logo::before, body.cxp .cpl-preloader-logo img { animation: none; }
}

/* Ticker separators: brand pink in both light and night mode */
body.cxp .cpl-ticker-inner > div::before,
.cpl-night-mode body.cxp .cpl-ticker-inner > div::before { color: var(--cxp-pink); font-weight: 800; }

/* ---------- FAQ accordion ---------- */
.cxp-faq { background: var(--cxp-lilac); }
.cxp-faq__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.cxp-faq__intro { position: sticky; top: 110px; }
.cxp-faq__intro p:not(.cxp-eyebrow) { font-size: 17px; line-height: 1.7; color: var(--cxp-muted); max-width: 26em; }
.cxp-faq__intro::after { content: ""; display: block; width: 180px; height: 56px; margin-top: 36px; background: var(--cxp-stripes-pink); }
.cxp-faq__group {
	font-family: var(--cxp-display) !important; font-size: 12px !important; font-weight: 700 !important;
	letter-spacing: .16em; color: var(--cxp-violet); margin: 34px 0 12px !important;
}
.cxp-faq__group:first-child { margin-top: 0 !important; }
.cpl-night-mode .cxp-faq__group { color: var(--cxp-green); }
.cxp-faq__item {
	margin: 0 0 10px !important; border-radius: var(--cxp-radius); background: var(--cxp-paper);
	border: 2px solid transparent; transition: border-color .2s ease, box-shadow .2s ease;
}
.cxp-faq__item:hover { border-color: rgba(90, 68, 202, .25); }
.cxp-faq__item[open] { border-color: var(--cxp-violet); box-shadow: 8px 8px 0 var(--cxp-green); }
.cxp-faq__item summary {
	position: relative; display: block; list-style: none; cursor: pointer;
	padding: 20px 64px 20px 24px; font-family: var(--cxp-text); font-weight: 600; font-size: 17px; line-height: 1.4; color: var(--cxp-ink);
}
.cxp-faq__item summary::-webkit-details-marker { display: none; }
.cxp-faq__item summary::after {
	content: ""; position: absolute; right: 22px; top: 50%; width: 26px; height: 26px; margin-top: -13px;
	border-radius: 50%; background: var(--cxp-lilac) var(--cxp-plus) center / 12px no-repeat;
	transition: transform .25s ease, background-color .25s ease;
}
.cxp-faq__item[open] summary::after { transform: rotate(45deg); background-color: var(--cxp-navy); }
.cxp-faq__item summary:focus-visible { outline: 3px solid var(--cxp-green); outline-offset: 2px; border-radius: var(--cxp-radius); }
.cxp-faq__item > :not(summary) { margin: 0 24px 0 !important; padding-bottom: 4px; font-size: 16px; line-height: 1.7; color: var(--cxp-muted); }
.cxp-faq__item > :not(summary):last-child { padding-bottom: 22px; }
.cxp-faq__item[open] > :not(summary) { animation: cxp-faq-in .3s ease; }
.cxp-faq__item strong { color: var(--cxp-ink); }
.cxp-faq__item a { color: var(--cxp-violet); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cpl-night-mode .cxp-faq__item a { color: var(--cxp-green); }
.cxp-faq__item ul { list-style: none; padding: 0; }
.cxp-faq__item li { position: relative; padding: 6px 0 6px 26px; }
.cxp-faq__item li::before { content: ""; position: absolute; left: 0; top: 13px; width: 13px; height: 13px; background: var(--cxp-plus) center / contain no-repeat; }
@keyframes cxp-faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
	.cxp-faq__grid { grid-template-columns: 1fr; }
	.cxp-faq__intro { position: static; }
	.cxp-faq__intro::after { display: none; }
	.cxp-faq__item summary { font-size: 16px; padding: 18px 58px 18px 18px; }
	.cxp-faq__item > :not(summary) { margin: 0 18px !important; }
}
@media (prefers-reduced-motion: reduce) { .cxp-faq__item[open] > :not(summary) { animation: none; } }
