/* One motion language: 180ms feedback, 440ms entrances, slow ambient drift. */
:root { --motion-in: 440ms; --motion-ease: cubic-bezier(.2,.75,.25,1); }
.data-toolbar .content-note { min-height: 42px; max-width: 680px; }
.breed-card, .fact-card { position: relative; }
.breed-card::after, .fact-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; border: 1px solid #b8edb075; box-shadow: inset 0 0 25px #b8edb010; opacity: 0; transition: opacity 180ms; }
.breed-card:focus-within::after, .fact-card:focus-within::after { opacity: 1; }
.breed-card:focus-within, .fact-card:focus-within { outline: 2px solid var(--brand); outline-offset: 4px; }
.detail-source a, .fact-source a { display: inline-block; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--brand); }
.hero-visual { perspective: 1000px; }
html:not(.js) .search-panel, html:not(.js) #refresh, html:not(.js) #more { display: none; }
html:not(.js) body[data-page="facts"] #result-count { display: none; }
@media (prefers-reduced-motion: no-preference) {
    .data-enter { animation: premium-enter var(--motion-in) var(--motion-ease) var(--stagger,0ms) both; }
    @keyframes premium-enter { from { opacity: .72; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
    .hero__content > * { animation: text-arrive 520ms var(--motion-ease) both; }
    .hero__content > :nth-child(2) { animation-delay: 45ms; }
    .hero__content > :nth-child(3) { animation-delay: 90ms; }
    .hero__content > :nth-child(n+4) { animation-delay: 135ms; }
    @keyframes text-arrive { from { opacity: .82; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
    /* LCP content is always visible; no fade from zero or render-blocking class. */
    .detail-heading { animation: text-arrive 400ms var(--motion-ease) both; }
    .detail-grid > .breed-photo { animation: photo-arrive 480ms var(--motion-ease) both; }
    @keyframes photo-arrive { from { transform: perspective(1000px) rotateY(-1.2deg) translateY(5px); } to { transform: perspective(1000px) rotateY(0) translateY(0); } }
    @media (min-width: 821px) and (hover: hover) and (pointer: fine) {
        .hero-shot { rotate: y var(--scene-y,0deg); transition: rotate 200ms ease-out; }
        .motion-running .hero-shot-left { animation: float 11s ease-in-out -3s infinite; }
        .motion-running .stage-orbit::after { animation: beacon 6s ease-in-out infinite; }
        @keyframes beacon { 50% { opacity: .35; transform: scale(.7); } }
        .breed-card:hover::after, .fact-card:hover::after { opacity: 1; }
        .fact-card:hover { border-color: #799a7c; }
        .detail-grid .photo-frame:hover img { transform: scale(1.018); }
    }
}
@media (prefers-reduced-motion: reduce) {
    .hero-shot { rotate: none !important; }
    .data-enter { animation: none !important; }
}
