/* Animated header (Lykkeservice-style stack -> split) */
.hero-stage{--gap:4px;--n:4;--pw:calc((100% - var(--gap)*(var(--n) - 1))/var(--n));position:absolute;inset:0;background:#26291c;overflow:hidden}
.hp{position:absolute;top:0;left:0;width:100%;height:100%;margin:0;overflow:hidden;opacity:0;transform:scale(1.12);filter:blur(14px);z-index:1;
  transition:left 1.3s cubic-bezier(.22,1,.36,1),width 1.3s cubic-bezier(.22,1,.36,1),opacity 1s cubic-bezier(.22,1,.36,1),transform 1.15s cubic-bezier(.22,1,.36,1),filter 1s ease}
.hp picture,.hp img{display:block;width:100%;height:100%}
.hp img{object-fit:cover;object-position:center;transform:scale(1.08);transition:transform 9s linear}
.hp::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(20,22,14,.15),rgba(20,22,14,.35));pointer-events:none}
.hero-stage[data-state=stack] .hp.is-in{opacity:1;transform:scale(1);filter:blur(0)}
.hero-stage[data-state=stack] .hp.is-in:not(.is-top){filter:brightness(.6) saturate(.85)}
.hero-stage[data-state=stack] .hp.is-top{z-index:3}
.hero-stage[data-state=stack] .hp.is-top img{transform:scale(1)}
.hero-stage[data-state=split] .hp{opacity:1;transform:none;filter:none;width:var(--pw);z-index:2}
.hero-stage[data-state=split] .hp img{transform:scale(1.02)}
.hero-stage[data-state=split] .hp:hover img{transform:scale(1.08);transition-duration:1.2s}
.hero-stage[data-state=split] .hp[data-index="0"]{left:0}
.hero-stage[data-state=split] .hp[data-index="1"]{left:calc(var(--pw) + var(--gap));transition-delay:.07s}
.hero-stage[data-state=split] .hp[data-index="2"]{left:calc((var(--pw) + var(--gap))*2);transition-delay:.14s}
.hero-stage[data-state=split] .hp[data-index="3"]{left:calc((var(--pw) + var(--gap))*3);transition-delay:.21s}
/* object focus per photo when narrow */
.hero-stage[data-state=split] .hp[data-index="0"] img{object-position:30% 50%}
.hero-stage[data-state=split] .hp[data-index="1"] img{object-position:45% 50%}
.hero-stage[data-state=split] .hp[data-index="2"] img{object-position:72% 50%}
.hero-stage[data-state=split] .hp[data-index="3"] img{object-position:40% 50%}
.hp-cap{position:absolute;z-index:4;top:5.6rem;left:1rem;display:flex;gap:.5rem;align-items:center;padding:.38rem .7rem;border-radius:999px;
  background:rgba(20,22,14,.55);backdrop-filter:blur(6px);color:#fdfdfb;font-size:.72rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase;
  opacity:0;transform:translateY(-8px);transition:opacity .6s ease .9s,transform .6s ease .9s}
.hp-n{color:var(--green,#B0BA75);font-weight:800}
.hero-stage[data-state=split] .hp-cap{opacity:1;transform:none}
.hero-dots{position:absolute;z-index:5;right:1.25rem;bottom:1.25rem;display:flex;gap:.4rem}
.hero-dots i{width:22px;height:3px;border-radius:2px;background:rgba(253,253,251,.35);overflow:hidden;position:relative}
.hero-dots i.on::after{content:"";position:absolute;inset:0;background:var(--green,#B0BA75);animation:dotFill var(--dur,5s) linear forwards;transform-origin:left}
@keyframes dotFill{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.hero-stage[data-state=split] ~ .hero-dots{opacity:0}
.hero-shade{z-index:3}
@media (max-width:900px){.hp-cap{display:none}}
@media (prefers-reduced-motion:reduce){.hp,.hp img{transition:none!important}}
.hero-media .hp img{animation:none}
.hero-shade{transition:opacity 1.2s ease}
.hero.is-split .hero-shade{opacity:.72}
.hero-stage .hp::after{background:linear-gradient(180deg,rgba(20,22,14,.05),rgba(20,22,14,.25))}
