/* Homepage hero headline: minimal kinetic type (js/hero-kinetic.js).
   One line at a time in ink, with its second phrase in the brand blue. Words rise into place with a
   soft blur, hold, then lift away before the next line arrives. No other colour, no ornaments. All lines share
   one grid cell, so the block keeps the height of the tallest line and the page never jumps.
   Animations carry !important so the global reduced-motion reset in styles.css does not freeze
   them (the owner wants the site animated). */

html body #home .hk {
    position: relative;
    display: grid;
    width: 100%;
    max-width: 1060px;
    margin: 0 auto;
    color: #0f172a;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(38px, 5.2vw, 70px);
    font-weight: 300;
    line-height: 1.06;
    letter-spacing: -.045em;
    text-align: center;
    text-wrap: balance;
}
html body #home .hk-s { grid-area: 1 / 1; visibility: hidden; }
html body #home .hk-s.is-in, html body #home .hk-s.is-out, html body #home .hk-s.hk-static { visibility: visible; }
html body #home .hk-static em, html body #home .hk-w.is-acc { font-style: normal; color: #2563eb; }

/* Each word rises into place with a soft blur, then lifts away; nothing is masked, so no letter
   is ever clipped. The outgoing line finishes before the incoming one starts. */
html body #home .hk-w { display: inline-block; }
html body #home .hk-wi { display: inline-block; opacity: 0; will-change: transform, opacity, filter; }
html body #home .hk-s.is-in .hk-wi { animation: hkUp 1s cubic-bezier(.16, 1, .3, 1) both !important; animation-delay: calc(.32s + var(--i) * 60ms) !important; }
html body #home .hk-s.is-out .hk-wi { animation: hkAway .5s cubic-bezier(.55, 0, .7, .2) both !important; animation-delay: calc(var(--i) * 25ms) !important; }

@keyframes hkUp {
    0% { opacity: 0; transform: translate3d(0, .42em, 0); filter: blur(10px); }
    60% { filter: blur(0); }
    100% { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes hkAway {
    0% { opacity: 1; transform: none; filter: blur(0); }
    100% { opacity: 0; transform: translate3d(0, -.32em, 0); filter: blur(8px); }
}

@media (max-width: 760px) {
    html body #home .hk { font-size: clamp(34px, 9.6vw, 44px); letter-spacing: -.04em; line-height: 1.08; }
}
