/* Motion and interaction polish, following Emil Kowalski's design-engineering rules.
   Only transform and opacity move; strong ease-out curves; UI under 300ms; hover gated to mouse devices; reduced motion respected. */
:root{--ease-out:cubic-bezier(.23,1,.32,1);--ease-in-out:cubic-bezier(.77,0,.175,1)}

/* Buttons: colour eases, a small press on click */
.btn,.ck-btn{transition:transform 160ms var(--ease-out),background-color 200ms ease,color 200ms ease,border-color 200ms ease,box-shadow 200ms ease}
.btn:active,.ck-btn:active{transform:scale(.97)}

/* Links and menu */
.links a{transition:color 150ms ease}
.links a:not(.btn):not(.active):hover{color:var(--accent)}
footer a,.direct a,.note a,.fine a{text-underline-offset:3px;transition:text-decoration-color 150ms ease,color 150ms ease}

/* Form fields: a soft focus glow instead of a hard jump */
input,select,textarea{transition:border-color 150ms ease,box-shadow 150ms ease}
.cform input:focus,.cform select:focus,.cform textarea:focus,.form input:focus,.form select:focus,.cta input:focus{border-color:#c8902e;box-shadow:0 0 0 4px rgba(200,144,46,.18)}

/* Linked cards lift on hover (mouse only, never on touch) */
.pick{transition:transform 200ms var(--ease-out),border-color 200ms ease,box-shadow 200ms ease}
.pick:hover{transform:none;box-shadow:none}
@media (hover:hover) and (pointer:fine){
 .pick:hover{transform:translateY(-3px);border-color:var(--accent);box-shadow:0 14px 32px rgba(11,36,102,.12)}
 .btn:hover{box-shadow:0 8px 22px rgba(6,14,40,.18)}
}

/* Hero: enters once on load, staggered, from a small offset (never from nothing) */
@keyframes rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes settle{from{opacity:0;transform:scale(.97)}to{opacity:1;transform:none}}
.herodark .wrap>div:first-child>*{animation:rise 420ms var(--ease-out) both}
.herodark .wrap>div:first-child>*:nth-child(1){animation-delay:40ms}
.herodark .wrap>div:first-child>*:nth-child(2){animation-delay:90ms}
.herodark .wrap>div:first-child>*:nth-child(3){animation-delay:150ms}
.herodark .wrap>div:first-child>*:nth-child(4){animation-delay:200ms}
.herodark .wrap>div:first-child>*:nth-child(5){animation-delay:240ms}
.herodark .wrap>div:first-child>*:nth-child(n+6){animation-delay:270ms}
.herodark .wrap>div:last-child{animation:settle 600ms var(--ease-out) 120ms both}

/* One slow light sweep across the hero after it loads, then still */
@keyframes sweep{from{transform:translateX(-70%);opacity:0}25%{opacity:1}to{transform:translateX(70%);opacity:0}}
.herodark::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(105deg,transparent 35%,rgba(255,255,255,.07) 48%,rgba(255,236,200,.10) 50%,rgba(255,255,255,.05) 52%,transparent 65%);animation:sweep 1800ms var(--ease-in-out) 500ms both}

/* Cookie notice slides up from the bottom when it appears */
.cookie{transition:transform 400ms var(--ease-out),opacity 400ms ease}
@starting-style{.cookie{transform:translateY(100%);opacity:0}}

@media (prefers-reduced-motion:reduce){
 .herodark .wrap>div:first-child>*,.herodark .wrap>div:last-child{animation:fade 300ms ease both}
 .herodark::after{animation:none;opacity:0}
 .btn:active,.ck-btn:active{transform:none}
 .pick:hover{transform:none!important}
 @keyframes fade{from{opacity:0}}
}
