/* SAGA motion: calm, purposeful, never in the way of reading.
   Everything here is switched off for visitors who ask for reduced motion. */
.saga-button-words{display:inline;min-width:0;white-space:normal}
.saga-button-word{display:inline-block}

@media(prefers-reduced-motion:no-preference){
/* Hover feedback */
.button,.featured-article,main article{transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease,background-color .22s ease}
@media(hover:hover){
 .button:hover{transform:translateY(-2px)}
 .featured-article:hover,main article:hover{transform:translateY(-3px);box-shadow:0 14px 30px #123e3214}
 .news-card .news-image{overflow:hidden}
 .news-card .news-image img,.news-card .news-image svg{transition:transform .6s cubic-bezier(.22,.68,.18,1)}
 .news-card:hover .news-image img,.news-card:hover .news-image svg{transform:scale(1.04)}
}

/* Sections arrive once, softly */
.section-arrive{animation:saga-section .8s cubic-bezier(.22,.68,.18,1) both}
@keyframes saga-section{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
.motion-enter{animation:saga-enter .7s cubic-bezier(.2,.65,.3,1) both}
@keyframes saga-enter{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
dialog[open]{animation:saga-dialog .24s ease both}
@keyframes saga-dialog{from{opacity:0;transform:translateY(10px) scale(.99)}to{opacity:1;transform:none}}

/* Hero: staggered headline, then the landscape comes alive */
.hero h1{animation:saga-enter .9s .05s cubic-bezier(.2,.65,.3,1) both}
.hero h1+p,.hero p{animation:saga-enter .9s .2s cubic-bezier(.2,.65,.3,1) both}
.hero-actions{animation:saga-enter .9s .35s cubic-bezier(.2,.65,.3,1) both}
.hero-art svg circle[cx="379"]{transform-box:fill-box;transform-origin:center;animation:saga-sunrise 1.8s .2s cubic-bezier(.22,.68,.18,1) both,saga-sun 7s 2s ease-in-out infinite}
@keyframes saga-sunrise{from{transform:translateY(70px);opacity:0}to{transform:none;opacity:1}}
@keyframes saga-sun{0%,100%{transform:scale(1)}50%{transform:scale(1.045)}}
.hero-art svg>path[d^="M490 390"]{transform-box:view-box;transform-origin:490px 390px;animation:saga-sway 6s ease-in-out infinite}
@keyframes saga-sway{0%,100%{transform:rotate(-2deg)}50%{transform:rotate(2.5deg)}}
.hero-art svg path[d^="M0 250Q110"],.hero-art svg path[d^="M0 253Q110"]{stroke-dasharray:420;stroke-dashoffset:420;animation:saga-draw 2.2s .5s cubic-bezier(.4,0,.2,1) forwards}
@keyframes saga-draw{to{stroke-dashoffset:0}}

/* News cards: gentle staggered arrival */
#news .news-arrive{animation:saga-news .8s cubic-bezier(.22,.68,.18,1) both;animation-delay:var(--news-delay,0ms)}
@keyframes saga-news{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
@media(max-width:700px){#news .news-arrive{animation-delay:0ms}}

/* Back to top */
.to-top{transition:opacity .25s ease,transform .25s ease}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.hero-art svg path[d^="M0 250Q110"],.hero-art svg path[d^="M0 253Q110"]{stroke-dasharray:none;stroke-dashoffset:0}}

#news{overflow:clip}

.to-top{position:fixed;inset-inline-end:18px;bottom:18px;z-index:30;width:46px;height:46px;border-radius:50%;border:1px solid #dbdf9b66;background:#123e32;color:#dbdf9b;font-size:20px;line-height:1;display:grid;place-items:center;cursor:pointer;box-shadow:0 8px 22px #0d302740;opacity:0;transform:translateY(12px);pointer-events:none}
.to-top.show{opacity:1;transform:none;pointer-events:auto}
.to-top:focus-visible{outline:3px solid #b38b43;outline-offset:3px}
@media print{.to-top{display:none}}
