/* =========================================================
   Kabeer Portfolio — cinematic effects layer
   Loads after main.css. Same fonts, sections and colors;
   adds glass, glow, grain, cursor, tilt and motion.
   ========================================================= */

:root {
	--bg: #07070b;
	--bg-alt: #0c0c12;
	--surface: rgba(255, 255, 255, 0.035);
	--glass: linear-gradient(160deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.015));
	--glass-border: linear-gradient(140deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.04) 35%, rgba(255, 255, 255, 0.02) 60%, color-mix(in srgb, var(--accent) 60%, transparent));
	--glow-accent: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent), 0 20px 60px -18px var(--accent);
	--spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

body { background: var(--bg); }

/* ---------- Film grain + vignette ---------- */
body::before {
	content: ""; position: fixed; inset: -120px; z-index: 90; pointer-events: none; opacity: 0.055; will-change: transform;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	animation: kpx-grain 1s steps(6) infinite;
}
body::after {
	content: ""; position: fixed; inset: 0; z-index: 89; pointer-events: none;
	background: radial-gradient(ellipse 120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.55));
}
@keyframes kpx-grain {
	0% { transform: translate(0, 0); } 20% { transform: translate(-96px, 64px); } 40% { transform: translate(64px, -96px); }
	60% { transform: translate(-64px, -32px); } 80% { transform: translate(96px, 96px); } 100% { transform: translate(0, 0); }
}

/* ---------- Custom cursor ----------
   .kpx-dot  : the pointer itself (exact mouse position)
   .kpx-ring : zero-size anchor on the same exact position; its circle (.kpx-ring__c)
               changes size with transform: scale(), so it is always centred on the dot. */
.kpx-dot, .kpx-ring, .kpx-glow { position: fixed; left: 0; top: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s; will-change: transform; }
.kpx-cursor .kpx-dot, .kpx-cursor .kpx-ring, .kpx-cursor .kpx-glow { opacity: 1; }
.kpx-cursor, .kpx-cursor a, .kpx-cursor button, .kpx-cursor label { cursor: none; }
.kpx-cursor input, .kpx-cursor textarea, .kpx-cursor select { cursor: text; }
.kpx-dot { z-index: 401; width: 0; height: 0; }
.kpx-dot::before {
	content: ""; position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%;
	background: #fff; box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.55), 0 0 10px rgba(255, 255, 255, 0.6);
	transition: transform 0.2s var(--ease);
}
.kpx-ring { z-index: 400; width: 0; height: 0; }
.kpx-ring__c {
	position: absolute; left: -46px; top: -46px; width: 92px; height: 92px; border-radius: 50%;
	display: grid; place-items: center; border: 3px solid rgba(255, 255, 255, 0.5);
	transform: scale(0.46); transform-origin: 50% 50%;
	transition: transform 0.4s var(--ease), background 0.3s, border-color 0.3s;
}
.kpx-ring__c span { font: 600 11px/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity 0.2s; }
.kpx-glow {
	z-index: 0; width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%;
	background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent), rgba(124, 92, 255, 0.06) 40%, transparent 70%);
}
.kpx-hover .kpx-ring__c { transform: scale(0.7); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.kpx-label .kpx-ring__c { transform: scale(1); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 85%, transparent); }
.kpx-label .kpx-ring__c span { opacity: 1; }
.kpx-down .kpx-ring__c { transform: scale(0.38); }
.kpx-down.kpx-hover .kpx-ring__c { transform: scale(0.6); }
.kpx-down.kpx-label .kpx-ring__c { transform: scale(0.88); }
.kpx-down .kpx-dot::before { transform: scale(0.7); }

/* ---------- Glass helper (gradient border via mask) ---------- */
.kp-badge, .kp-stat, .kp-tools, .kp-service, .kp-cta, .kp-card, .kp-filters, .kp-monitor, .kp-about__tag {
	position: relative;
	background: var(--glass), rgba(14, 14, 20, 0.72);
	border-color: transparent;
}
.kp-badge::after, .kp-stat::after, .kp-tools::after, .kp-service::after, .kp-cta::after, .kp-card::after, .kp-filters::after, .kp-monitor::after, .kp-about__tag::after {
	content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 3;
	background: var(--glass-border);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor; mask-composite: exclude;
}

/* ---------- Header: glass pill nav ---------- */
.kp-nav ul { padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }
.kp-nav ul a { transition: color 0.25s, background 0.25s, transform 0.25s var(--ease); }
.kp-nav ul a.is-active { background: color-mix(in srgb, var(--accent) 16%, transparent); color: #fff; }
@media (max-width: 900px) { .kp-nav ul { border: 0; background: none; padding: 0; } }
.kp-logo__dot { animation: kpx-pulse-dot 2.4s ease-in-out infinite; }
@keyframes kpx-pulse-dot { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 10%, transparent), 0 0 18px var(--accent); } }

/* ---------- Buttons: glow + sheen ---------- */
.kp-btn { will-change: transform; overflow: hidden; isolation: isolate; }
.kp-btn > * { position: relative; z-index: 1; }
.kp-btn--accent { box-shadow: var(--glow-accent); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 85%, #fff), var(--accent) 50%, color-mix(in srgb, var(--accent) 70%, #000)); }
.kp-btn::before {
	content: ""; position: absolute; inset: 0; z-index: 0; transform: translateX(-120%) skewX(-20deg);
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent); transition: transform 0.8s var(--ease);
}
.kp-btn:hover::before { transform: translateX(120%) skewX(-20deg); }
.kp-btn:hover { transform: none; }

/* ---------- Hero: orbs, parallax, word reveal ---------- */
.kp-hero { isolation: isolate; }
/* Orbs: the soft glow is baked into the gradient (it matches the old blur(80px) exactly),
   so the GPU does not have to re-blur three large layers on every frame. */
.kpx-orb { position: absolute; border-radius: 50%; margin: -260px; z-index: -1; pointer-events: none; will-change: transform; }
.kpx-orb--1 { width: 1060px; height: 1060px; left: -10%; top: 4%; background: radial-gradient(circle closest-side, color-mix(in srgb, var(--accent) 28.1%, transparent) 0%, color-mix(in srgb, var(--accent) 26.9%, transparent) 8.3%, color-mix(in srgb, var(--accent) 23.4%, transparent) 16.7%, color-mix(in srgb, var(--accent) 18.6%, transparent) 25%, color-mix(in srgb, var(--accent) 13.2%, transparent) 33.3%, color-mix(in srgb, var(--accent) 8.3%, transparent) 41.7%, color-mix(in srgb, var(--accent) 4.4%, transparent) 50%, color-mix(in srgb, var(--accent) 2.0%, transparent) 58.3%, color-mix(in srgb, var(--accent) 0.7%, transparent) 66.7%, color-mix(in srgb, var(--accent) 0.2%, transparent) 75%, transparent 83%); animation: kpx-drift 18s ease-in-out infinite; }
.kpx-orb--2 { width: 1000px; height: 1000px; right: -8%; top: 18%; background: radial-gradient(circle closest-side, rgba(124, 92, 255, 0.232) 0%, rgba(124, 92, 255, 0.221) 8.3%, rgba(124, 92, 255, 0.191) 16.7%, rgba(124, 92, 255, 0.148) 25%, rgba(124, 92, 255, 0.104) 33.3%, rgba(124, 92, 255, 0.063) 41.7%, rgba(124, 92, 255, 0.033) 50%, rgba(124, 92, 255, 0.015) 58.3%, rgba(124, 92, 255, 0.006) 66.7%, rgba(124, 92, 255, 0.002) 75%, transparent 83%); animation: kpx-drift 23s ease-in-out infinite reverse; }
.kpx-orb--3 { width: 900px; height: 900px; left: 40%; bottom: -8%; background: radial-gradient(circle closest-side, rgba(34, 211, 238, 0.086) 0%, rgba(34, 211, 238, 0.081) 8.3%, rgba(34, 211, 238, 0.069) 16.7%, rgba(34, 211, 238, 0.053) 25%, rgba(34, 211, 238, 0.035) 33.3%, rgba(34, 211, 238, 0.021) 41.7%, rgba(34, 211, 238, 0.011) 50%, rgba(34, 211, 238, 0.005) 58.3%, rgba(34, 211, 238, 0.002) 66.7%, rgba(34, 211, 238, 0.001) 75%, transparent 83%); animation: kpx-drift 27s ease-in-out infinite; }
@keyframes kpx-drift { 0%, 100% { translate: 0 0; } 33% { translate: 40px -30px; } 66% { translate: -30px 40px; } }

.kp-hero__title.kpx-split { opacity: 1 !important; transform: none !important; }
.kpx-word { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.06em 0.02em 0.1em; margin: -0.06em -0.02em -0.1em; }
.kpx-word > span { display: inline-block; transform: translateY(110%) rotate(5deg); transition: transform 1.25s var(--ease); transition-delay: var(--wd, 0s); }
.kpx-ready .kpx-word > span { transform: none; }
.kpx-word.kpx-grad > span {
	background: linear-gradient(100deg, #fff 0%, color-mix(in srgb, var(--accent) 70%, #fff) 30%, var(--accent) 55%, #a78bfa 85%, #fff 100%);
	background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
	animation: kpx-shine 7s linear infinite;
}
@keyframes kpx-shine { to { background-position: 220% center; } }

.kp-monitor { transform-style: preserve-3d; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9), 0 0 80px -30px color-mix(in srgb, var(--accent) 60%, transparent); }
.kp-monitor:hover { transform: none; }
.kp-monitor__screen { overflow: hidden; }
.kp-monitor__screen::before {
	content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.35;
	background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 3px);
}
.kp-play { animation: kpx-breathe 3s ease-in-out infinite; }
@keyframes kpx-breathe { 50% { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0.1), 0 0 0 30px rgba(255, 255, 255, 0.04), 0 0 60px color-mix(in srgb, var(--accent) 60%, transparent); } }

.kp-marquee { background: rgba(255, 255, 255, 0.015); }
.kp-marquee__track span:not(.kp-marquee__star) { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4); transition: color 0.35s; }
.kp-marquee:hover .kp-marquee__track { animation-play-state: paused; }
.kp-marquee__track span:not(.kp-marquee__star):hover { color: var(--text); }

/* ---------- Section headings: gradient eyebrow line ---------- */
.kp-eyebrow::before { width: 28px; height: 1px; background: linear-gradient(90deg, transparent, currentColor); }
.kp-h2 { letter-spacing: -0.03em; }

/* ---------- Tilt + glare ---------- */
[data-kpx-tilt] { transform-style: preserve-3d; will-change: transform; transition: transform 0.7s var(--ease), border-color 0.3s; }
[data-kpx-tilt].kpx-tilting { transition: transform 0.12s linear; }
.kpx-glare {
	position: absolute; inset: 0; z-index: 4; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.4s;
	background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.18), transparent 55%);
	mix-blend-mode: overlay;
}
.kpx-tilting .kpx-glare { opacity: 1; }
.kp-card:hover, .kp-service:hover { transform: none; }

/* ---------- Spotlight that follows the pointer ---------- */
.kp-service::before, .kp-tools::before, .kp-cta .kp-cta__glow { transition: opacity 0.5s; }
.kp-service::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 20%, transparent), transparent 60%); }
.kp-tools::before {
	content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
	background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%);
}
.kp-tools:hover::before { opacity: 1; }
.kp-tools > * { position: relative; }
.kp-service__icon { transform: translateZ(30px); box-shadow: 0 12px 30px -12px var(--accent); }

/* ---------- Portfolio cards: cinematic hover preview ---------- */
.kp-card { box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.9); }
.kp-card__media { isolation: isolate; }
.kp-card__media::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, transparent 45%, rgba(5, 5, 8, 0.75)); pointer-events: none; }
.kp-card__media img, .kp-card__fallback { transition: transform 1.2s var(--ease), filter 0.5s; }
.kp-card:hover .kp-card__media img, .kp-card:hover .kp-card__fallback { transform: scale(1.08); filter: brightness(0.8) saturate(1.15); }
/* Sheen slides with transform (GPU-cheap) instead of repainting the background each frame. */
.kp-card__fallback { overflow: hidden; }
.kp-card__fallback::before {
	content: ""; position: absolute; inset: 0;
	background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px);
}
.kp-card__fallback::after {
	content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 750%;
	background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.08) 45%, transparent 60%);
	background-size: 33.3333% 100%; will-change: transform; animation: kpx-sheen 6s ease-in-out infinite;
}
@keyframes kpx-sheen { 0% { transform: translateX(-57.3333%); } 100% { transform: translateX(-9.3333%); } }
.kp-card__play { z-index: 2; transform: translateZ(40px); }

.kpx-pv { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 0.4s; }
.kpx-previewing .kpx-pv { opacity: 1; }
.kpx-pv__rec {
	position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 8px;
	font: 600 11px/1 ui-monospace, Menlo, monospace; letter-spacing: 0.1em; color: #fff;
	background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.kpx-pv__rec::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ef4444; animation: kp-blink 1s steps(2) infinite; }
.kpx-pv__tc { position: absolute; top: 14px; right: 14px; padding: 6px 10px; border-radius: 8px; font: 500 11px/1 ui-monospace, Menlo, monospace; color: #fff; background: rgba(0, 0, 0, 0.45); }
.kpx-pv__bar { position: absolute; left: 14px; right: 14px; bottom: 14px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.2); overflow: hidden; }
.kpx-pv__bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--accent), #a78bfa); box-shadow: 0 0 10px var(--accent); }
.kpx-previewing .kpx-pv__bar i { animation: kpx-playbar 6s linear infinite; }
@keyframes kpx-playbar { to { width: 100%; } }
.kp-card__body { transition: transform 0.6s var(--ease); transform: translateZ(20px); }

/* Filter buttons inside a glass pill */
.kp-filters { display: inline-flex; padding: 6px; border-radius: 999px; gap: 6px; max-width: 100%; }
@media (max-width: 600px) {
	/* Phones: wrap the pills into tidy rows so every filter is visible (no hidden sideways scroll). */
	.kp-filters { display: flex; flex-wrap: wrap; justify-content: center; overflow: visible; margin-inline: 0; padding: 6px; border-radius: 22px; gap: 6px; width: 100%; }
	.kp-filters button { flex: 1 1 auto; padding: 10px 14px; font-size: 13.5px; text-align: center; white-space: nowrap; }
}
.kp-filters button { border-color: transparent; }
.kp-filters button.is-active { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 8px 24px -10px var(--accent); }
.kp-card { transition: opacity 0.45s var(--ease), transform 0.7s var(--ease), border-color 0.3s; }
.kp-card.kpx-leaving { opacity: 0; transform: scale(0.96) !important; }

/* ---------- Skills: shimmering bars ---------- */
.kp-bar__fill { position: relative; overflow: hidden; box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 60%, transparent); }
.kp-bar__fill::after {
	content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 50%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
	will-change: transform; animation: kpx-bar 2.6s ease-in-out infinite;
}
@keyframes kpx-bar { from { transform: translateX(-60%); } to { transform: translateX(160%); } }
.kp-tools li { transition: border-color 0.25s, color 0.25s, transform 0.5s var(--ease), background 0.25s; }
.kp-tools li:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }

/* ---------- Stats: gradient numbers ---------- */
.kp-stat strong { background: linear-gradient(180deg, #fff, #a9a6c4); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Contact CTA: animated aurora ---------- */
.kp-cta__glow { animation: kpx-aurora 10s ease-in-out infinite alternate; }
@keyframes kpx-aurora { from { transform: translateX(-8%) scale(1); } to { transform: translateX(8%) scale(1.1); } }

/* ---------- Social icons ---------- */
.kp-social a:hover { box-shadow: 0 10px 30px -10px var(--accent); }

/* ---------- Reveal: blur + rise ---------- */
.kp-js .kp-reveal { filter: blur(8px); transform: translateY(36px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease); }
.kp-js .kp-reveal.is-in { filter: none; }

/* ---------- Scroll progress bar ---------- */
.kpx-progress { position: fixed; left: 0; top: 0; z-index: 150; height: 2px; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), #a78bfa); box-shadow: 0 0 12px var(--accent); pointer-events: none; }
.admin-bar .kpx-progress { top: 32px; }
@media (max-width: 782px) { .admin-bar .kpx-progress { top: 46px; } }

/* ---------- Modal polish ---------- */
.kp-modal__frame { box-shadow: var(--glow-accent), 0 40px 120px -20px rgba(0, 0, 0, 0.9); }


/* ---------- Performance ----------
   Timeline playhead moves with transform instead of `left` (no layout every frame). */
.kp-timeline { container-type: inline-size; }
.kp-timeline__head { animation-name: kpx-scrub; }
@keyframes kpx-scrub { from { transform: translateX(0); } to { transform: translateX(calc(100cqw - 2px)); } }
/* Looping animations pause while their section is off screen (they resume exactly where they were). */
.kpx-off *, .kpx-off *::before, .kpx-off *::after { animation-play-state: paused !important; }

/* Hide the filter scrollbar on phones */
.kp-filters { scrollbar-width: none; }
.kp-filters::-webkit-scrollbar { display: none; }

/* Safety net: some plugins zero every transition when the OS "reduce motion" setting is on
   (Windows "Animation effects" off). Keep the reveal animation running for everyone. */
@media (prefers-reduced-motion: reduce) {
	.kp-js .kp-reveal { transition-duration: 1.1s !important; }
}

/* ---------- Intro: blur wave reveal ----------
   Frosted glass with the name on it; a soft liquid wave rises from the bottom and
   washes the blur away in three steps (heavy -> medium -> light), so the page comes
   into focus behind a glowing crest. Masks only move (no filter animation). */
.kpx-wave { position: fixed; inset: 0; z-index: 380; outline: none; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; cursor: pointer; }
.kpx-wave__layer, .kpx-wave__crest { position: absolute; inset: 0; pointer-events: none; }
.kpx-wave__layer {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 3000' preserveAspectRatio='none'%3E%3Cfilter id='f' x='-0.5' y='-0.5' width='2' height='2'%3E%3CfeGaussianBlur stdDeviation='1 38'/%3E%3C/filter%3E%3Cpath filter='url%28%23f%29' fill='%23fff' d='M-250,-300 L1250,-300 L1250,1519.6 L1240,1523.4 L1230,1526.1 L1220,1527.7 L1210,1528.6 L1200,1528.9 L1190,1528.9 L1180,1528.9 L1170,1529.1 L1160,1529.6 L1150,1530.6 L1140,1532.1 L1130,1534.2 L1120,1536.7 L1110,1539.5 L1100,1542.3 L1090,1545.0 L1080,1547.1 L1070,1548.5 L1060,1548.8 L1050,1547.9 L1040,1545.4 L1030,1541.4 L1020,1535.7 L1010,1528.4 L1000,1519.6 L990,1509.6 L980,1498.7 L970,1487.2 L960,1475.6 L950,1464.2 L940,1453.6 L930,1444.1 L920,1436.2 L910,1430.0 L900,1426.0 L890,1424.1 L880,1424.4 L870,1426.9 L860,1431.4 L850,1437.7 L840,1445.4 L830,1454.2 L820,1463.8 L810,1473.5 L800,1483.2 L790,1492.4 L780,1500.9 L770,1508.3 L760,1514.6 L750,1519.6 L740,1523.4 L730,1526.1 L720,1527.7 L710,1528.6 L700,1528.9 L690,1528.9 L680,1528.9 L670,1529.1 L660,1529.6 L650,1530.6 L640,1532.1 L630,1534.2 L620,1536.7 L610,1539.5 L600,1542.3 L590,1545.0 L580,1547.1 L570,1548.5 L560,1548.8 L550,1547.9 L540,1545.4 L530,1541.4 L520,1535.7 L510,1528.4 L500,1519.6 L490,1509.6 L480,1498.7 L470,1487.2 L460,1475.6 L450,1464.2 L440,1453.6 L430,1444.1 L420,1436.2 L410,1430.0 L400,1426.0 L390,1424.1 L380,1424.4 L370,1426.9 L360,1431.4 L350,1437.7 L340,1445.4 L330,1454.2 L320,1463.8 L310,1473.5 L300,1483.2 L290,1492.4 L280,1500.9 L270,1508.3 L260,1514.6 L250,1519.6 L240,1523.4 L230,1526.1 L220,1527.7 L210,1528.6 L200,1528.9 L190,1528.9 L180,1528.9 L170,1529.1 L160,1529.6 L150,1530.6 L140,1532.1 L130,1534.2 L120,1536.7 L110,1539.5 L100,1542.3 L90,1545.0 L80,1547.1 L70,1548.5 L60,1548.8 L50,1547.9 L40,1545.4 L30,1541.4 L20,1535.7 L10,1528.4 L0,1519.6 L-10,1509.6 L-20,1498.7 L-30,1487.2 L-40,1475.6 L-50,1464.2 L-60,1453.6 L-70,1444.1 L-80,1436.2 L-90,1430.0 L-100,1426.0 L-110,1424.1 L-120,1424.4 L-130,1426.9 L-140,1431.4 L-150,1437.7 L-160,1445.4 L-170,1454.2 L-180,1463.8 L-190,1473.5 L-200,1483.2 L-210,1492.4 L-220,1500.9 L-230,1508.3 L-240,1514.6 L-250,1519.6 Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 3000' preserveAspectRatio='none'%3E%3Cfilter id='f' x='-0.5' y='-0.5' width='2' height='2'%3E%3CfeGaussianBlur stdDeviation='1 38'/%3E%3C/filter%3E%3Cpath filter='url%28%23f%29' fill='%23fff' d='M-250,-300 L1250,-300 L1250,1519.6 L1240,1523.4 L1230,1526.1 L1220,1527.7 L1210,1528.6 L1200,1528.9 L1190,1528.9 L1180,1528.9 L1170,1529.1 L1160,1529.6 L1150,1530.6 L1140,1532.1 L1130,1534.2 L1120,1536.7 L1110,1539.5 L1100,1542.3 L1090,1545.0 L1080,1547.1 L1070,1548.5 L1060,1548.8 L1050,1547.9 L1040,1545.4 L1030,1541.4 L1020,1535.7 L1010,1528.4 L1000,1519.6 L990,1509.6 L980,1498.7 L970,1487.2 L960,1475.6 L950,1464.2 L940,1453.6 L930,1444.1 L920,1436.2 L910,1430.0 L900,1426.0 L890,1424.1 L880,1424.4 L870,1426.9 L860,1431.4 L850,1437.7 L840,1445.4 L830,1454.2 L820,1463.8 L810,1473.5 L800,1483.2 L790,1492.4 L780,1500.9 L770,1508.3 L760,1514.6 L750,1519.6 L740,1523.4 L730,1526.1 L720,1527.7 L710,1528.6 L700,1528.9 L690,1528.9 L680,1528.9 L670,1529.1 L660,1529.6 L650,1530.6 L640,1532.1 L630,1534.2 L620,1536.7 L610,1539.5 L600,1542.3 L590,1545.0 L580,1547.1 L570,1548.5 L560,1548.8 L550,1547.9 L540,1545.4 L530,1541.4 L520,1535.7 L510,1528.4 L500,1519.6 L490,1509.6 L480,1498.7 L470,1487.2 L460,1475.6 L450,1464.2 L440,1453.6 L430,1444.1 L420,1436.2 L410,1430.0 L400,1426.0 L390,1424.1 L380,1424.4 L370,1426.9 L360,1431.4 L350,1437.7 L340,1445.4 L330,1454.2 L320,1463.8 L310,1473.5 L300,1483.2 L290,1492.4 L280,1500.9 L270,1508.3 L260,1514.6 L250,1519.6 L240,1523.4 L230,1526.1 L220,1527.7 L210,1528.6 L200,1528.9 L190,1528.9 L180,1528.9 L170,1529.1 L160,1529.6 L150,1530.6 L140,1532.1 L130,1534.2 L120,1536.7 L110,1539.5 L100,1542.3 L90,1545.0 L80,1547.1 L70,1548.5 L60,1548.8 L50,1547.9 L40,1545.4 L30,1541.4 L20,1535.7 L10,1528.4 L0,1519.6 L-10,1509.6 L-20,1498.7 L-30,1487.2 L-40,1475.6 L-50,1464.2 L-60,1453.6 L-70,1444.1 L-80,1436.2 L-90,1430.0 L-100,1426.0 L-110,1424.1 L-120,1424.4 L-130,1426.9 L-140,1431.4 L-150,1437.7 L-160,1445.4 L-170,1454.2 L-180,1463.8 L-190,1473.5 L-200,1483.2 L-210,1492.4 L-220,1500.9 L-230,1508.3 L-240,1514.6 L-250,1519.6 Z'/%3E%3C/svg%3E");
	-webkit-mask-size: 100vw 300%; mask-size: 100vw 300%;
	-webkit-mask-repeat: repeat-x; mask-repeat: repeat-x;
	-webkit-mask-position: 0 20%; mask-position: 0 20%;
}
.kpx-wave__layer--1 {
	background:
		radial-gradient(60% 50% at 50% 50%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
		linear-gradient(135deg, rgba(30, 30, 44, 0.6), rgba(12, 12, 18, 0.5) 50%, rgba(24, 20, 40, 0.6));
	backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3);
}
.kpx-wave__layer--2 { background: rgba(7, 7, 11, 0.12); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); }
.kpx-wave__layer--3 { backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.kpx-wave__crest {
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 3000' preserveAspectRatio='none'%3E%3Cg fill='none' vector-effect='non-scaling-stroke' stroke-linejoin='round'%3E%3Cpath d='M-250,1519.6 L-240,1514.6 L-230,1508.3 L-220,1500.9 L-210,1492.4 L-200,1483.2 L-190,1473.5 L-180,1463.8 L-170,1454.2 L-160,1445.4 L-150,1437.7 L-140,1431.4 L-130,1426.9 L-120,1424.4 L-110,1424.1 L-100,1426.0 L-90,1430.0 L-80,1436.2 L-70,1444.1 L-60,1453.6 L-50,1464.2 L-40,1475.6 L-30,1487.2 L-20,1498.7 L-10,1509.6 L0,1519.6 L10,1528.4 L20,1535.7 L30,1541.4 L40,1545.4 L50,1547.9 L60,1548.8 L70,1548.5 L80,1547.1 L90,1545.0 L100,1542.3 L110,1539.5 L120,1536.7 L130,1534.2 L140,1532.1 L150,1530.6 L160,1529.6 L170,1529.1 L180,1528.9 L190,1528.9 L200,1528.9 L210,1528.6 L220,1527.7 L230,1526.1 L240,1523.4 L250,1519.6 L260,1514.6 L270,1508.3 L280,1500.9 L290,1492.4 L300,1483.2 L310,1473.5 L320,1463.8 L330,1454.2 L340,1445.4 L350,1437.7 L360,1431.4 L370,1426.9 L380,1424.4 L390,1424.1 L400,1426.0 L410,1430.0 L420,1436.2 L430,1444.1 L440,1453.6 L450,1464.2 L460,1475.6 L470,1487.2 L480,1498.7 L490,1509.6 L500,1519.6 L510,1528.4 L520,1535.7 L530,1541.4 L540,1545.4 L550,1547.9 L560,1548.8 L570,1548.5 L580,1547.1 L590,1545.0 L600,1542.3 L610,1539.5 L620,1536.7 L630,1534.2 L640,1532.1 L650,1530.6 L660,1529.6 L670,1529.1 L680,1528.9 L690,1528.9 L700,1528.9 L710,1528.6 L720,1527.7 L730,1526.1 L740,1523.4 L750,1519.6 L760,1514.6 L770,1508.3 L780,1500.9 L790,1492.4 L800,1483.2 L810,1473.5 L820,1463.8 L830,1454.2 L840,1445.4 L850,1437.7 L860,1431.4 L870,1426.9 L880,1424.4 L890,1424.1 L900,1426.0 L910,1430.0 L920,1436.2 L930,1444.1 L940,1453.6 L950,1464.2 L960,1475.6 L970,1487.2 L980,1498.7 L990,1509.6 L1000,1519.6 L1010,1528.4 L1020,1535.7 L1030,1541.4 L1040,1545.4 L1050,1547.9 L1060,1548.8 L1070,1548.5 L1080,1547.1 L1090,1545.0 L1100,1542.3 L1110,1539.5 L1120,1536.7 L1130,1534.2 L1140,1532.1 L1150,1530.6 L1160,1529.6 L1170,1529.1 L1180,1528.9 L1190,1528.9 L1200,1528.9 L1210,1528.6 L1220,1527.7 L1230,1526.1 L1240,1523.4 L1250,1519.6' stroke='%23ff5a36' stroke-opacity='.16' stroke-width='22' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M-250,1519.6 L-240,1514.6 L-230,1508.3 L-220,1500.9 L-210,1492.4 L-200,1483.2 L-190,1473.5 L-180,1463.8 L-170,1454.2 L-160,1445.4 L-150,1437.7 L-140,1431.4 L-130,1426.9 L-120,1424.4 L-110,1424.1 L-100,1426.0 L-90,1430.0 L-80,1436.2 L-70,1444.1 L-60,1453.6 L-50,1464.2 L-40,1475.6 L-30,1487.2 L-20,1498.7 L-10,1509.6 L0,1519.6 L10,1528.4 L20,1535.7 L30,1541.4 L40,1545.4 L50,1547.9 L60,1548.8 L70,1548.5 L80,1547.1 L90,1545.0 L100,1542.3 L110,1539.5 L120,1536.7 L130,1534.2 L140,1532.1 L150,1530.6 L160,1529.6 L170,1529.1 L180,1528.9 L190,1528.9 L200,1528.9 L210,1528.6 L220,1527.7 L230,1526.1 L240,1523.4 L250,1519.6 L260,1514.6 L270,1508.3 L280,1500.9 L290,1492.4 L300,1483.2 L310,1473.5 L320,1463.8 L330,1454.2 L340,1445.4 L350,1437.7 L360,1431.4 L370,1426.9 L380,1424.4 L390,1424.1 L400,1426.0 L410,1430.0 L420,1436.2 L430,1444.1 L440,1453.6 L450,1464.2 L460,1475.6 L470,1487.2 L480,1498.7 L490,1509.6 L500,1519.6 L510,1528.4 L520,1535.7 L530,1541.4 L540,1545.4 L550,1547.9 L560,1548.8 L570,1548.5 L580,1547.1 L590,1545.0 L600,1542.3 L610,1539.5 L620,1536.7 L630,1534.2 L640,1532.1 L650,1530.6 L660,1529.6 L670,1529.1 L680,1528.9 L690,1528.9 L700,1528.9 L710,1528.6 L720,1527.7 L730,1526.1 L740,1523.4 L750,1519.6 L760,1514.6 L770,1508.3 L780,1500.9 L790,1492.4 L800,1483.2 L810,1473.5 L820,1463.8 L830,1454.2 L840,1445.4 L850,1437.7 L860,1431.4 L870,1426.9 L880,1424.4 L890,1424.1 L900,1426.0 L910,1430.0 L920,1436.2 L930,1444.1 L940,1453.6 L950,1464.2 L960,1475.6 L970,1487.2 L980,1498.7 L990,1509.6 L1000,1519.6 L1010,1528.4 L1020,1535.7 L1030,1541.4 L1040,1545.4 L1050,1547.9 L1060,1548.8 L1070,1548.5 L1080,1547.1 L1090,1545.0 L1100,1542.3 L1110,1539.5 L1120,1536.7 L1130,1534.2 L1140,1532.1 L1150,1530.6 L1160,1529.6 L1170,1529.1 L1180,1528.9 L1190,1528.9 L1200,1528.9 L1210,1528.6 L1220,1527.7 L1230,1526.1 L1240,1523.4 L1250,1519.6' stroke='%23ff5a36' stroke-opacity='.45' stroke-width='7' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M-250,1519.6 L-240,1514.6 L-230,1508.3 L-220,1500.9 L-210,1492.4 L-200,1483.2 L-190,1473.5 L-180,1463.8 L-170,1454.2 L-160,1445.4 L-150,1437.7 L-140,1431.4 L-130,1426.9 L-120,1424.4 L-110,1424.1 L-100,1426.0 L-90,1430.0 L-80,1436.2 L-70,1444.1 L-60,1453.6 L-50,1464.2 L-40,1475.6 L-30,1487.2 L-20,1498.7 L-10,1509.6 L0,1519.6 L10,1528.4 L20,1535.7 L30,1541.4 L40,1545.4 L50,1547.9 L60,1548.8 L70,1548.5 L80,1547.1 L90,1545.0 L100,1542.3 L110,1539.5 L120,1536.7 L130,1534.2 L140,1532.1 L150,1530.6 L160,1529.6 L170,1529.1 L180,1528.9 L190,1528.9 L200,1528.9 L210,1528.6 L220,1527.7 L230,1526.1 L240,1523.4 L250,1519.6 L260,1514.6 L270,1508.3 L280,1500.9 L290,1492.4 L300,1483.2 L310,1473.5 L320,1463.8 L330,1454.2 L340,1445.4 L350,1437.7 L360,1431.4 L370,1426.9 L380,1424.4 L390,1424.1 L400,1426.0 L410,1430.0 L420,1436.2 L430,1444.1 L440,1453.6 L450,1464.2 L460,1475.6 L470,1487.2 L480,1498.7 L490,1509.6 L500,1519.6 L510,1528.4 L520,1535.7 L530,1541.4 L540,1545.4 L550,1547.9 L560,1548.8 L570,1548.5 L580,1547.1 L590,1545.0 L600,1542.3 L610,1539.5 L620,1536.7 L630,1534.2 L640,1532.1 L650,1530.6 L660,1529.6 L670,1529.1 L680,1528.9 L690,1528.9 L700,1528.9 L710,1528.6 L720,1527.7 L730,1526.1 L740,1523.4 L750,1519.6 L760,1514.6 L770,1508.3 L780,1500.9 L790,1492.4 L800,1483.2 L810,1473.5 L820,1463.8 L830,1454.2 L840,1445.4 L850,1437.7 L860,1431.4 L870,1426.9 L880,1424.4 L890,1424.1 L900,1426.0 L910,1430.0 L920,1436.2 L930,1444.1 L940,1453.6 L950,1464.2 L960,1475.6 L970,1487.2 L980,1498.7 L990,1509.6 L1000,1519.6 L1010,1528.4 L1020,1535.7 L1030,1541.4 L1040,1545.4 L1050,1547.9 L1060,1548.8 L1070,1548.5 L1080,1547.1 L1090,1545.0 L1100,1542.3 L1110,1539.5 L1120,1536.7 L1130,1534.2 L1140,1532.1 L1150,1530.6 L1160,1529.6 L1170,1529.1 L1180,1528.9 L1190,1528.9 L1200,1528.9 L1210,1528.6 L1220,1527.7 L1230,1526.1 L1240,1523.4 L1250,1519.6' stroke='%23fff' stroke-opacity='.9' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3C/g%3E%3C/svg%3E") 0 20% / 100vw 300% repeat-x;
	opacity: 0;
}
.kpx-wave.is-going { pointer-events: none; cursor: default; }
.kpx-wave.is-going .kpx-wave__layer { animation: kpx-wave-mask 1.9s cubic-bezier(.62, 0, .3, 1) forwards; }
.kpx-wave.is-going .kpx-wave__layer--2 { animation-delay: 0.14s; }
.kpx-wave.is-going .kpx-wave__layer--3 { animation-delay: 0.28s; }
.kpx-wave.is-going .kpx-wave__crest { animation: kpx-wave-crest 1.9s cubic-bezier(.62, 0, .3, 1) forwards; }
@keyframes kpx-wave-mask {
	from { -webkit-mask-position: 0 20%; mask-position: 0 20%; }
	to { -webkit-mask-position: -100vw 82.5%; mask-position: -100vw 82.5%; }
}
@keyframes kpx-wave-crest {
	0% { background-position: 0 20%; opacity: 0; }
	12% { opacity: 1; }
	80% { opacity: 1; }
	100% { background-position: -100vw 82.5%; opacity: 0; }
}
.kpx-wave__title {
	position: absolute; inset: 0; display: grid; place-content: center; gap: 16px; padding: 0 5vw;
	text-align: center; pointer-events: none;
}
.kpx-wave__title > * { opacity: 0; filter: blur(16px); transform: translateY(18px); transition: opacity 1.1s var(--ease), filter 1.1s var(--ease), transform 1.1s var(--ease); }
.kpx-wave__title strong {
	font: 700 clamp(40px, 8.5vw, 120px)/1 var(--font-head); letter-spacing: -0.02em; text-transform: uppercase;
	background: linear-gradient(90deg, #fff, #fff 60%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent;
	text-shadow: 0 0 40px color-mix(in srgb, var(--accent) 35%, transparent);
}
.kpx-wave__title span { font: 500 clamp(11px, 1.3vw, 15px)/1.4 var(--font-body); letter-spacing: 0.42em; text-transform: uppercase; color: rgba(255, 255, 255, 0.62); transition-delay: 0.25s; }
.kpx-wave.is-on .kpx-wave__title > * { opacity: 1; filter: blur(0); transform: none; }
.kpx-wave.is-going .kpx-wave__title > * { opacity: 0; filter: blur(18px); transform: translateY(-28px) scale(1.04); transition-duration: 0.8s; transition-delay: 0.45s; }
.kpx-wave__hint {
	position: absolute; left: 0; right: 0; bottom: 9vh; margin: 0; text-align: center; pointer-events: none;
	font: 500 12px/1 var(--font-body); letter-spacing: 0.32em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7);
	opacity: 0; transition: opacity 0.4s;
}
.kpx-wave.is-on .kpx-wave__hint { opacity: 1; animation: kpx-hint 2.2s ease-in-out 1s infinite; }
.kpx-wave.is-going .kpx-wave__hint { opacity: 0; animation: none; }
@keyframes kpx-hint { 50% { opacity: 0.25; } }
/* Hold the header until the wave has washed through */
.kpx-intro .kp-header { opacity: 0; }
.kp-header { transition: opacity 0.8s var(--ease) 0.2s; }

/* ---------- Email chooser (desktop) ---------- */
.kpx-mail {
	position: absolute; z-index: 250; min-width: 230px; padding: 6px; border-radius: 16px;
	display: grid; gap: 2px;
	background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)), rgba(16, 16, 23, 0.97);
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.9), 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent);
	opacity: 0; transform: translateY(-6px) scale(0.97); transform-origin: top center;
	transition: opacity 0.22s var(--ease), transform 0.3s var(--ease);
}
.kpx-mail.is-open { opacity: 1; transform: none; }
.kpx-mail a, .kpx-mail button {
	display: block; width: 100%; text-align: left; padding: 11px 14px; border-radius: 11px; border: 0; background: none;
	font: 500 14px/1.2 var(--font-body); color: var(--text); text-decoration: none;
	transition: background 0.2s, color 0.2s;
}
.kpx-mail a:hover, .kpx-mail button:hover { background: color-mix(in srgb, var(--accent) 16%, transparent); color: #fff; }
.kpx-cursor .kpx-mail button { cursor: none; }

/* =========================================================
   Portfolio: grouped by work type, with details accordion
   ========================================================= */
.kp-groups { display: grid; gap: clamp(56px, 7vw, 96px); }
.kp-group.is-hidden { display: none; }
.kp-group__head {
	display: flex; align-items: baseline; gap: 14px; margin-bottom: 28px; padding-bottom: 16px;
	border-bottom: 1px solid var(--line);
	background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 60%, transparent), transparent 40%) left bottom / 100% 1px no-repeat;
}
.kp-group__num { font: 600 13px/1 ui-monospace, Menlo, monospace; color: var(--accent); letter-spacing: 0.08em; }
.kp-group__title { font-family: var(--font-head); font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.02em; margin: 0; }
.kp-group__count { margin-left: auto; font-size: 14px; color: var(--muted); }
.kp-grid { break-inside: auto; }
.kp-grid .kp-card { break-inside: avoid; margin-bottom: 24px; }
.kp-grid--tall { columns: 4 220px; }
.kp-card.is-more { display: none; }
.kp-group__more { display: flex; justify-content: center; margin-top: 12px; }

.kp-card__title { font-size: 19px; margin: 0 0 6px; }
.kp-card__meta { font-size: 13px; color: var(--muted); margin: 0 0 4px; letter-spacing: 0.01em; }
.kp-card__dur {
	position: absolute; right: 12px; bottom: 12px; z-index: 2; padding: 4px 8px; border-radius: 7px;
	font: 500 12px/1 ui-monospace, Menlo, monospace; color: #fff; background: rgba(0, 0, 0, 0.55);
}
/* Hover preview: the real video fades in over the poster */
.kp-card__preview {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1;
	opacity: 0; transition: opacity 0.45s var(--ease); pointer-events: none;
}
.kp-card.is-playing .kp-card__preview { opacity: 1; }
.kp-card.is-playing .kp-card__play { opacity: 0; scale: 0.8; }

/* Accordion */
.kp-acc { margin-top: 14px; border-top: 1px solid var(--line); }
.kp-acc summary {
	list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 14px 0 2px; font-weight: 600; font-size: 14px; color: var(--text); user-select: none;
}
.kp-acc summary::-webkit-details-marker { display: none; }
.kp-acc summary span { transition: color 0.25s; }
.kp-acc summary:hover span { color: var(--accent); }
.kp-acc summary i {
	position: relative; width: 26px; height: 26px; flex: none; border-radius: 50%;
	border: 1px solid var(--line-strong); transition: transform 0.45s var(--ease), background 0.3s, border-color 0.3s;
}
.kp-acc summary i::before, .kp-acc summary i::after {
	content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; margin: -0.75px 0 0 -5px;
	background: currentColor; border-radius: 2px; transition: transform 0.45s var(--ease);
}
.kp-acc summary i::after { transform: rotate(90deg); }
.kp-acc.is-open summary i { transform: rotate(180deg); background: var(--accent); border-color: var(--accent); color: #fff; }
.kp-acc.is-open summary i::after { transform: rotate(0deg); }
.kp-acc__body { overflow: hidden; transition: height 0.45s var(--ease); }
.kp-acc__inner { padding: 12px 0 2px; font-size: 14.5px; color: var(--muted); }
.kp-acc__inner p { margin: 0 0 10px; }
.kp-acc__inner ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.kp-acc__inner li { display: flex; gap: 8px; }
.kp-acc__inner li::before { content: ""; width: 5px; height: 5px; margin-top: 9px; flex: none; border-radius: 50%; background: var(--accent); }
.kp-acc__inner strong { color: var(--text); font-weight: 600; }
.kpx-cursor .kp-acc summary { cursor: none; }
@media (max-width: 600px) {
	.kp-grid--tall { columns: 2 150px; column-gap: 14px; }
	.kp-grid--tall .kp-card__body { padding: 14px 14px 16px; }
	.kp-grid--tall .kp-card__title { font-size: 16px; }
	.kp-group__head { flex-wrap: wrap; }
}

/* Shape rows inside a portfolio group (landscape → square → vertical) */
.kp-grid--rows { columns: auto; display: grid; gap: 24px; align-items: start; }
.kp-grid--rows .kp-card { margin-bottom: 0; }
.kp-grid--r16x9 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kp-grid--r1x1 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kp-grid--r9x16 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kp-grid--rows + .kp-subhead { margin-top: 40px; }
.kp-subhead {
	display: flex; align-items: center; gap: 10px; margin: 0 0 16px;
	font: 600 12px/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.kp-subhead::before { content: ""; width: 18px; height: 1px; background: var(--accent); }
.kp-subhead span { padding: 3px 7px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); color: var(--text); letter-spacing: 0; }
@media (max-width: 1000px) {
	.kp-grid--r16x9 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.kp-grid--r1x1, .kp-grid--r9x16 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.kp-grid--rows { gap: 14px; }
	.kp-grid--r16x9 { grid-template-columns: minmax(0, 1fr); }
	.kp-grid--r1x1, .kp-grid--r9x16 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.kp-grid--r1x1 .kp-card__body, .kp-grid--r9x16 .kp-card__body { padding: 14px 14px 16px; }
	.kp-grid--r1x1 .kp-card__title, .kp-grid--r9x16 .kp-card__title { font-size: 16px; }
}

/* Collapsed rows + Show all / Show less */
.kp-subhead.is-more, .kp-grid--rows.is-more { display: none; }
.kp-group__more { margin-top: 28px; }
.kp-more-btn { gap: 10px; }
.kp-more-btn__icon {
	position: relative; width: 14px; height: 14px; flex: none; transition: transform 0.45s var(--ease);
}
.kp-more-btn__icon::before {
	content: ""; position: absolute; left: 3px; top: 1px; width: 7px; height: 7px;
	border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg);
}
.kp-more-btn[aria-expanded="true"] .kp-more-btn__icon { transform: rotate(180deg) translateY(-3px); }
