/* P6 Fullpage Snap
 * Snapping is handled in JS (event-driven), so no CSS scroll-snap here —
 * this keeps it working regardless of theme overflow wrappers.
 */

/* Each tagged row becomes a full-viewport panel. */
.p6-snap-section {
	min-height: 100vh;
	min-height: 100svh; /* accounts for mobile browser chrome */
}

/* ---- Optional pre-styled arrows ([p6_snap_down] / [p6_snap_up]) ---- */
.p6-snap-down-wrap {
	display: flex;
	width: 100%;
}
.p6-snap-down-center { justify-content: center; }
.p6-snap-down-left   { justify-content: flex-start; }
.p6-snap-down-right  { justify-content: flex-end; }

.p6-snap-down,
.p6-snap-up-btn {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 8px;
	color: inherit;
}

.p6-snap-down-label {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 0.66rem;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	opacity: 0.85;
}

.p6-snap-down-arrow,
.p6-snap-up-arrow {
	width: 16px;
	height: 16px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
}

/* Down arrow points down; up arrow points up. */
.p6-snap-down-arrow {
	transform: rotate(45deg);
	animation: p6-snap-bounce-down 2s ease-in-out infinite;
}
.p6-snap-up-arrow {
	transform: rotate(-135deg);
	animation: p6-snap-bounce-up 2s ease-in-out infinite;
}

@keyframes p6-snap-bounce-down {
	0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.6; }
	50%      { transform: rotate(45deg) translate(4px, 4px); opacity: 1; }
}
@keyframes p6-snap-bounce-up {
	0%, 100% { transform: rotate(-135deg) translate(0, 0); opacity: 0.6; }
	50%      { transform: rotate(-135deg) translate(4px, 4px); opacity: 1; }
}

/* A fixed up-arrow that appears once you're past the first panel. */
.p6-snap-up {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 90;
	opacity: 0;
	pointer-events: none;
	transition: opacity .4s;
}
.p6-snap-up.on {
	opacity: 1;
	pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
	.p6-snap-down-arrow,
	.p6-snap-up-arrow { animation: none; }
}

@media (max-width: 760px) {
	.p6-snap-up { right: 14px; bottom: 14px; }
}
