header {
  position: relative;
  padding: 52px 0 0;
  text-align: center;
  overflow: hidden;
}
h1 {
  font-family: var(--head);
  font-weight: 900;
  font-stretch: 112%;
  font-size: clamp(2.3rem, 7.4vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
h1 .logo {
  display: inline-block;
  width: 0.74em;
  height: 0.74em;
  vertical-align: -0.04em;
  animation: fade 0.8s var(--ease) both;
}
h1 .w {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: top;
  padding-bottom: 0.06em;
}
h1 .w span {
  display: inline-block;
  animation: rise 0.9s var(--ease) both;
}
.sub {
  max-width: 34em;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: 1.05rem;
  animation: fade 0.8s var(--ease) 0.5s both;
}
@keyframes rise {
  from {
    transform: translateY(105%);
  }
  to {
    transform: none;
  }
}
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* TICKER: rètol de carretera amb els preus que llisquen */
.ticker {
  position: relative;
  background: var(--road);
  color: #e9eef2;
  overflow: hidden;
  padding: 14px 0;
  margin-top: 8px;
}
.ticker::before,
.ticker::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.18) 0 36px,
    transparent 36px 72px
  );
  animation: lanes 1.1s linear infinite;
}
.ticker::before {
  top: 0;
}
.ticker::after {
  bottom: 0;
  animation-direction: reverse;
}
.track {
  display: flex;
  width: max-content;
  animation: scroll 38s linear infinite;
}
.ticker:hover .track {
  animation-play-state: paused;
}
.tk {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 0 28px;
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}
.tk b {
  font-family: var(--head);
  font-weight: 800;
  font-stretch: 110%;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}
.tk .p {
  font-family: "Bungee", Impact, sans-serif;
  color: var(--led);
  font-size: 1.25rem;
}
.tk .t {
  font-size: 0.85rem;
  color: #b7c2cc;
}
.tk .sw {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  align-self: center;
}
@keyframes lanes {
  to {
    background-position: -72px 0;
  }
}
@keyframes scroll {
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .track {
    justify-content: center;
    width: auto;
  }
}
