/* Scroll-driven photo deck: the pinned viewport shows one card stacking over the next as you scroll */
.pf-home-deck { position: relative; height: 380vh; background: color-mix(in srgb, var(--wp--preset--color--base) 40%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--base) 40%, transparent); }
.pf-home-deck .pf-home-deck__viewport { position: sticky; top: 6rem; display: flex; align-items: center; justify-content: center; height: calc(100vh - 8rem); max-height: 650px; overflow: hidden; }
.pf-home-deck .pf-home-deck__inner { position: relative; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 80rem; height: 100%; margin: 0 auto; }
.pf-home-deck .pf-home-deck__head { max-width: 42rem; margin: 0 auto 1.5rem; text-align: center; }
@media (min-width: 640px) { .pf-home-deck .pf-home-deck__head { margin-bottom: 2rem; } }
.pf-home-deck .pf-home-deck__pill { display: inline-block; margin: 0 0 0.5rem; padding: 0.25rem 0.875rem; border-radius: 9999px; background: var(--wp--preset--color--sky-100); color: var(--wp--preset--color--sky-700); font-weight: 700; letter-spacing: 0.05em; line-height: 1rem; text-transform: uppercase; }
.pf-home-deck .pf-home-deck__title { margin: 0; font-size: var(--wp--preset--font-size--xx-large); font-weight: 800; line-height: 2rem; }
@media (min-width: 640px) { .pf-home-deck .pf-home-deck__title { font-size: var(--wp--preset--font-size--huge); line-height: 2.5rem; } }
.pf-home-deck .pf-home-deck__text { margin: 0.5rem 0 0; font-size: var(--wp--preset--font-size--xs); line-height: 1rem; }
@media (min-width: 640px) { .pf-home-deck .pf-home-deck__text { font-size: var(--wp--preset--font-size--small); line-height: 1.25rem; } }
.pf-home-deck .pf-home-deck__stack { position: relative; width: 100%; max-width: 48rem; height: 380px; margin: 0 auto; }
@media (min-width: 640px) { .pf-home-deck .pf-home-deck__stack { height: 450px; } }
.pf-home-deck .pf-home-deck__card { position: absolute; width: 100%; max-width: 820px; padding: 0 1rem; will-change: transform, opacity; transition: none; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.pf-home-deck .pf-home-deck__card:not(:first-child) { opacity: 0; }
.pf-home-deck .pf-home-deck__card > .wp-block-group, .pf-home-deck .pf-home-deck__frame { margin: 0; }
.pf-home-deck .pf-home-deck__frame { position: relative; }
.pf-home-deck .pf-home-deck__card > .pf-home-deck__frame { padding: 0.75rem; border: 1px solid color-mix(in srgb, var(--wp--preset--color--base) 80%, transparent); border-radius: 2rem; background: color-mix(in srgb, var(--wp--preset--color--base) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--wp--preset--shadow--card); }
@media (min-width: 640px) { .pf-home-deck .pf-home-deck__card > .pf-home-deck__frame { padding: 1rem; } }
.pf-home-deck .pf-home-deck__frame .wp-block-image { position: relative; aspect-ratio: 16 / 10; margin: 0; overflow: hidden; border-radius: 1.5rem; background: var(--wp--preset--color--contrast); cursor: pointer; }
.pf-home-deck .pf-home-deck__photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.pf-home-deck .pf-home-deck__frame:hover .pf-home-deck__photo img { transform: scale(1.05); }
.pf-home-deck .pf-home-deck__photo figcaption { display: none; }
.pf-home-deck .pf-home-deck__photo::before { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--wp--preset--color--contrast) 20%, transparent); opacity: 0; transition: opacity 0.15s ease; pointer-events: none; }
.pf-home-deck .pf-home-deck__photo::after { content: "Click to Zoom"; position: absolute; top: 50%; left: 50%; padding: 0.5rem 1rem; border-radius: 0.75rem; background: color-mix(in srgb, var(--wp--preset--color--base) 90%, transparent); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); color: var(--wp--preset--color--contrast); font-size: var(--wp--preset--font-size--xs); font-weight: 700; line-height: 1rem; white-space: nowrap; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); transform: translate(-50%, -50%); opacity: 0; transition: opacity 0.15s ease; pointer-events: none; }
.pf-home-deck .pf-home-deck__frame:hover .pf-home-deck__photo::before, .pf-home-deck .pf-home-deck__frame:hover .pf-home-deck__photo::after, .pf-home-deck .pf-home-deck__frame:focus-visible .pf-home-deck__photo::before, .pf-home-deck .pf-home-deck__frame:focus-visible .pf-home-deck__photo::after { opacity: 1; }
.pf-home-deck .pf-home-deck__note { margin: 1.5rem 0 0; font-weight: 600; letter-spacing: 0.05em; line-height: 1.5rem; text-align: center; text-transform: uppercase; animation: pf-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
