/* ─── dayogreats / animations.css ────────────────────
 * Keyframes and reduced-motion handling.
 * ──────────────────────────────────────────────────── */

@keyframes fadeInUp {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}
@keyframes rise {
	from { transform: translateY(110%); }
	to { transform: translateY(0); }
}
@keyframes drawLine {
	to { transform: scaleX(1); }
}
@keyframes ripple {
	0% { transform: scale(0.7); opacity: 1; }
	100% { transform: scale(2.5); opacity: 0; }
}
@keyframes drift {
	from { transform: translate(0, 0); }
	to { transform: translate(-100px, 60px); }
}
@keyframes scrollSweep {
	0% { left: -30%; }
	100% { left: 100%; }
}
@keyframes pulseDot {
	0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); }
	50% { box-shadow: 0 0 0 8px transparent; }
}
@keyframes pingPulse {
	0%, 100% { opacity: 0.3; r: 3; }
	50% { opacity: 1; r: 5; }
}
@keyframes travel {
	0% { transform: translateX(0); opacity: 0; }
	15% { opacity: 1; }
	85% { opacity: 1; }
	100% { transform: translateX(110px); opacity: 0; }
}

/* Reveal-on-scroll word masking (used in hero). */
.reveal-word {
	display: inline-block;
	overflow: hidden;
	line-height: 1.15;
	padding-bottom: 0.08em;
	margin-bottom: -0.08em;
}
.reveal-word > span {
	display: inline-block;
	transform: translateY(110%);
	animation: rise 1s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}

/* Reduced-motion: disable all motion. */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
	body { cursor: auto; }
	.cursor-ring, .cursor-dot { display: none; }
	.ttf-row { opacity: 1 !important; transform: none !important; }
}

/* ─── Scroll-triggered reveals ─────────────────────── */
.reveal-on-scroll {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
	will-change: opacity, transform;
}
.reveal-on-scroll.is-revealed {
	opacity: 1;
	transform: translateY(0);
}
.reveal-on-scroll.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-on-scroll.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-on-scroll.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-on-scroll.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── Code block enhancement ──────────────────────── */
pre, pre.wp-block-code {
	background: #1a1814;
	color: #f0e7d6;
	border: 1px solid #2a251f;
	border-radius: 4px;
	padding: 20px 24px;
	overflow-x: auto;
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 14px;
	line-height: 1.55;
	margin: 28px 0;
}
pre code {
	background: transparent !important;
	color: inherit !important;
	padding: 0 !important;
	border: 0 !important;
	font-size: inherit !important;
}
:not(pre) > code {
	background: var(--paper-soft);
	color: var(--accent);
	padding: 2px 6px;
	border-radius: 3px;
	font-size: 0.92em;
	font-family: 'JetBrains Mono', ui-monospace, monospace;
}

/* Footnote refs */
sup.footnote-ref, sup a[href^="#fn"] {
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.7em;
	color: var(--accent);
	font-weight: 500;
	text-decoration: none;
	padding: 0 2px;
}
sup.footnote-ref:hover { text-decoration: underline; }

/* Footnotes section at bottom of article */
.footnotes, .wp-block-footnotes {
	margin-top: 64px;
	padding-top: 32px;
	border-top: 2px solid var(--ink);
	font-size: 14px;
	color: var(--ink-soft);
	font-family: 'Newsreader', serif;
}
.footnotes ol { padding-left: 24px; }
.footnotes li { margin-bottom: 12px; line-height: 1.55; }

/* ─── Screen reader only utility ──────────────────── */
.screen-reader-text {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}
