/* One fox, illustrated scenes, and quiet footprints on the outside margins. */
.brand:has(> .brand-copy) { flex-direction: row; align-items: center; gap: 12px; }
.brand-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.brand-fox-mark { display: block; flex: 0 0 48px; width: 48px; height: 50px; object-fit: contain; }
.fox-footer-brand { display: flex; align-items: center; gap: 14px; }
.fox-footer-mascot { display: block; flex: 0 0 64px; width: 64px; height: auto; object-fit: contain; }
main { position: relative; isolation: isolate; }
.fox-background { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: clip; }
.fox-background-trail { position: absolute; width: 42px; display: grid; justify-items: center; gap: 6px; opacity: .075; }
.fox-background-trail img { width: 20px; height: 28px; object-fit: contain; }
.fox-background-trail img:nth-child(odd) { transform: translateX(-7px) rotate(-12deg); }
.fox-background-trail img:nth-child(even) { transform: translateX(7px) rotate(10deg); }
.trail-left { left: 8px; top: 170px; transform: rotate(12deg); }
.trail-right { right: 8px; bottom: 100px; transform: rotate(-16deg); }
.fox-background-home .trail-left { top: 700px; }
.fox-background-home .trail-right { top: 53%; bottom: auto; }
.trail-lower { left: 8px; bottom: 200px; transform: rotate(14deg); }
.fox-art { position: relative; display: block; width: 100%; min-width: 0; padding: 0; margin: 0; border: 0; background: transparent; }
.fox-art img { display: block; width: 100%; height: auto; max-width: 100%; object-fit: contain; }
.fox-art-response { position: absolute; inset: 0; height: 100% !important; opacity: 0; pointer-events: none; }
.fox-react { isolation: isolate; }
.fox-react .fox-art-base,
.fox-react .fox-art-response { transition: opacity 240ms cubic-bezier(.22, 1, .36, 1); }
/* These pairs use two still poses; switching directly avoids doubled limbs. */
.fox-react[data-fox-art="family"] .fox-art-base,
.fox-react[data-fox-art="family"] .fox-art-response,
.fox-react[data-fox-art="goodbye"] .fox-art-base,
.fox-react[data-fox-art="goodbye"] .fox-art-response { transition: none; }
/* Add both premultiplied layers: ordinary alpha blending brightens the middle
   of a transparent crossfade even when their opacities sum to one. */
@supports (mix-blend-mode: plus-lighter) {
 .fox-react .fox-art-base,
 .fox-react .fox-art-response { mix-blend-mode: plus-lighter; }
}
@supports not (mix-blend-mode: plus-lighter) {
 .fox-react .fox-art-base,
 .fox-react .fox-art-response { transition: none; }
}
.fox-react:not(.is-ready) .fox-art-base,
.fox-react:not(.is-ready) .fox-art-response { transition: none; }
.fox-react:disabled { opacity: 1; cursor: default; }
.fox-react.is-ready { cursor: pointer; }
.fox-react.is-active .fox-art-response { opacity: 1; }
.fox-react.is-active .fox-art-base { opacity: 0; }
.fox-react:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: var(--radius); }
.hero-fox { align-self: center; justify-self: end; max-width: 680px; }
.section-fox { width: min(100%, 340px); margin: 22px 0 28px; }
.section-fox-wide { width: min(100%, 460px); }
.family-intro .section-fox { max-width: 420px; }
.fox-closing { width: min(100%, 440px); justify-self: end; }
.page-head.has-fox-art { grid-template-columns: minmax(0, 1fr) minmax(220px, 360px); max-width: 1100px; gap: 28px; }
.page-head .page-fox { width: 100%; max-width: 360px; justify-self: end; }
.page-head.has-fox-art.compact-fox { grid-template-columns: minmax(0, 1fr) 200px; }
.page-certificate-fox { max-width: 300px; margin: 20px 0; }
@media (max-width: 850px) {
 .brand:has(> .brand-copy) { gap: 8px; }
 .brand-fox-mark { flex-basis: 40px; width: 40px; height: 42px; }
 .page-head.has-fox-art { grid-template-columns: minmax(0, 1fr) 260px; }
 .hero-fox { justify-self: center; max-width: 540px; }
 .fox-closing { justify-self: start; max-width: 360px; }
}
@media (max-width: 640px) {
 .fox-background-trail { width: 14px; gap: 6px; }
 .fox-background-trail img { width: 10px; height: 14px; }
 .fox-background-trail img:nth-child(odd) { transform: translateX(-2px) rotate(-12deg); }
 .fox-background-trail img:nth-child(even) { transform: translateX(2px) rotate(10deg); }
 .trail-left,.trail-lower { left: 2px; transform: none; }
 .trail-right { right: 2px; transform: none; }
 .trail-lower { display: none; }
 .page-head.has-fox-art { grid-template-columns: minmax(0, 1fr); gap: 8px; }
 .page-head .page-fox { justify-self: start; max-width: 320px; margin-bottom: 18px; }
 .page-head.has-fox-art.compact-fox { grid-template-columns: minmax(0,1fr) 100px; gap: 12px; }
 .section-fox { max-width: 300px; }
}
@media (max-width: 400px) { .brand-fox-mark { flex-basis: 36px; width: 36px; height: 38px; } .fox-footer-mascot { flex-basis: 52px; } }
@media (prefers-reduced-motion: reduce) { .fox-react .fox-art-base,.fox-react .fox-art-response { transition: none; } }
@media print { .fox-background,.fox-art-response { display: none; } .fox-art-base { opacity: 1 !important; } }
