/* Site-wide decoration: loading intro, animated background layers, custom cursor, photo lightbox. */

/* ---- animated background ---- */
@keyframes pf-fx-gradient-flow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes pf-fx-orb-1 { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(80px, -90px) scale(1.15); } 66% { transform: translate(-50px, 70px) scale(0.9); } }
@keyframes pf-fx-orb-2 { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(-90px, 80px) scale(1.1); } 66% { transform: translate(60px, -60px) scale(0.95); } }
@keyframes pf-fx-orb-3 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(70px, 90px) scale(1.2); } }

.pf-site-effects .pf-bg { position: fixed; pointer-events: none; }
.pf-site-effects .pf-bg--gradient {
	inset: 0; z-index: -2;
	background: linear-gradient(135deg, #fffaf5, var(--wp--preset--color--sky-50), var(--wp--preset--color--orange-100), var(--wp--preset--color--sky-100), var(--wp--preset--color--orange-50));
	background-size: 400% 400%;
	animation: pf-fx-gradient-flow 20s ease infinite;
}
.pf-site-effects .pf-bg--orb1, .pf-site-effects .pf-bg--orb2, .pf-site-effects .pf-bg--orb3 { z-index: -1; border-radius: 50%; }
.pf-site-effects .pf-bg--orb1 { top: 10%; left: -10%; width: 550px; height: 550px; background: radial-gradient(circle, rgba(14, 165, 233, 0.22) 0%, rgba(224, 242, 254, 0) 70%); animation: pf-fx-orb-1 16s ease-in-out infinite; }
.pf-site-effects .pf-bg--orb2 { top: 45%; right: -10%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(249, 115, 22, 0.16) 0%, rgba(255, 237, 213, 0) 70%); animation: pf-fx-orb-2 20s ease-in-out infinite; }
.pf-site-effects .pf-bg--orb3 { bottom: -10%; left: 30%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%); animation: pf-fx-orb-3 18s ease-in-out infinite; }
.pf-site-effects .pf-bg--canvas { inset: 0; width: 100%; height: 100%; z-index: 0; }

/* ---- custom cursor (mouse only) ---- */
.pf-site-effects .pf-cursor { position: fixed; pointer-events: none; z-index: 9999; border-radius: 50%; transform: translate(-50%, -50%); will-change: transform; opacity: 0; }
.pf-site-effects .pf-cursor.is-on { opacity: 1; }
.pf-site-effects .pf-cursor--ring { width: 40px; height: 40px; border: 2px solid rgba(249, 115, 22, 0.65); transition: width 0.25s, height 0.25s, border-color 0.25s, background 0.25s; }
.pf-site-effects .pf-cursor--ring.is-hover { width: 64px; height: 64px; border-color: rgba(14, 165, 233, 0.9); background: rgba(14, 165, 233, 0.06); }
.pf-site-effects .pf-cursor--dot { width: 9px; height: 9px; background: var(--wp--preset--color--primary); }
@media (pointer: coarse) { .pf-site-effects .pf-cursor { display: none !important; } }

/* ---- loading intro ---- */
.pf-site-effects .pf-intro { display: none; }
html.pf-intro-lock .pf-site-effects .pf-intro {
	display: flex; position: fixed; inset: 0; z-index: 10000; align-items: center; justify-content: center;
	flex-direction: column; overflow: hidden; pointer-events: all;
}
.pf-site-effects .pf-intro__panel { position: absolute; left: 0; right: 0; height: 50.5%; background: linear-gradient(135deg, var(--wp--preset--color--sky-950) 0%, var(--wp--preset--color--sky-900) 55%, var(--wp--preset--color--sky-800) 100%); transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1); }
.pf-site-effects .pf-intro__panel--top { top: 0; }
.pf-site-effects .pf-intro__panel--bottom { bottom: 0; }
.pf-site-effects .pf-intro__panel::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.25), transparent 55%); }
.pf-site-effects .pf-intro.is-done .pf-intro__panel--top { transform: translateY(-101%); }
.pf-site-effects .pf-intro.is-done .pf-intro__panel--bottom { transform: translateY(101%); }
.pf-site-effects .pf-intro__content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 1.5rem; max-width: 28rem; transition: opacity 0.45s ease, transform 0.6s ease; }
.pf-site-effects .pf-intro.is-done .pf-intro__content { opacity: 0; transform: scale(0.94); }
.pf-site-effects .pf-intro__logo { position: relative; width: 9.5rem; height: 9.5rem; border-radius: 9999px; background: #fffaf5; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 60px rgba(14, 165, 233, 0.35); animation: pf-fx-logo-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
.pf-site-effects .pf-intro__logo img { width: 72%; height: 72%; object-fit: contain; }
.pf-site-effects .pf-intro__logo::before, .pf-site-effects .pf-intro__logo::after { content: ""; position: absolute; inset: -10px; border-radius: 9999px; border: 2px solid rgba(249, 115, 22, 0.7); animation: pf-fx-ring 2.2s ease-out infinite; }
.pf-site-effects .pf-intro__logo::after { animation-delay: 1.1s; border-color: rgba(14, 165, 233, 0.7); }
.pf-site-effects .pf-intro__title { margin: 2rem 0 0; color: var(--wp--preset--color--base); font-weight: 800; font-size: 1.5rem; line-height: 1.5; letter-spacing: -0.01em; animation: pf-fx-rise 0.8s 0.3s cubic-bezier(0.16, 1, 0.3, 1) both; }
.pf-site-effects .pf-intro__tag { margin: 0.5rem 0 0; color: var(--wp--preset--color--sky-200); font-size: 0.9rem; line-height: 1.5; animation: pf-fx-rise 0.8s 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; }
.pf-site-effects .pf-intro__bar { margin-top: 2rem; width: 13rem; height: 4px; border-radius: 9999px; background: rgba(255, 255, 255, 0.18); overflow: hidden; animation: pf-fx-rise 0.8s 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
.pf-site-effects .pf-intro__fill { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--wp--preset--color--primary), var(--wp--preset--color--orange-300)); animation: pf-fx-fill 2.2s 0.6s cubic-bezier(0.65, 0, 0.35, 1) forwards; }
.pf-site-effects .pf-intro__skip { position: absolute; z-index: 3; bottom: 1.75rem; right: 1.75rem; color: var(--wp--preset--color--sky-100); font: inherit; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 9999px; padding: 0.5rem 1rem; cursor: pointer; transition: background 0.2s; }
.pf-site-effects .pf-intro__skip:hover { background: rgba(255, 255, 255, 0.22); }
.pf-site-effects .pf-intro__skip:focus-visible { outline: 3px solid var(--wp--preset--color--primary); outline-offset: 3px; }
@keyframes pf-fx-logo-in { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }
@keyframes pf-fx-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pf-fx-ring { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes pf-fx-fill { to { width: 100%; } }
@media (prefers-reduced-motion: reduce) {
	.pf-site-effects .pf-intro__logo::before, .pf-site-effects .pf-intro__logo::after { display: none; }
	.pf-site-effects .pf-intro__panel, .pf-site-effects .pf-intro__content { transition: opacity 0.3s ease !important; }
	.pf-site-effects .pf-intro.is-done .pf-intro__panel--top, .pf-site-effects .pf-intro.is-done .pf-intro__panel--bottom { transform: none; opacity: 0; }
}

/* ---- photo lightbox ---- */
.pf-site-effects .pf-lightbox { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(2, 6, 23, 0.8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.pf-site-effects .pf-lightbox[hidden] { display: none; }
.pf-site-effects .pf-lightbox__box { position: relative; width: 100%; max-width: 56rem; padding: 1rem; background: rgba(255, 255, 255, 0.95); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 1.5rem; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.pf-site-effects .pf-lightbox__close { position: absolute; top: 1rem; right: 1rem; z-index: 10; display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; padding: 0; border: 0; border-radius: 9999px; background: var(--wp--preset--color--slate-100); color: var(--wp--preset--color--slate-700); font: inherit; font-weight: 700; font-size: 1.25rem; line-height: 1; cursor: pointer; transition: color 0.15s, background-color 0.15s; }
.pf-site-effects .pf-lightbox__close:hover { background: var(--wp--preset--color--primary); color: var(--wp--preset--color--base); }
.pf-site-effects .pf-lightbox__frame { margin-bottom: 1rem; border-radius: 1rem; overflow: hidden; aspect-ratio: 16 / 10; background: var(--wp--preset--color--contrast); }
.pf-site-effects .pf-lightbox__frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pf-site-effects .pf-lightbox__caption { margin: 0; text-align: center; font-weight: 700; font-size: 1.125rem; line-height: 1.75rem; color: var(--wp--preset--color--contrast); }
.pf-site-effects .pf-lightbox__caption[hidden] { display: none; }
@media (min-width: 640px) { .pf-site-effects .pf-lightbox__box { padding: 1.5rem; } }
