.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--graphite);
  color: var(--paper);
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(28px, 5vh, 64px)) 0 clamp(22px, 3.6vh, 36px);
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.42;
  z-index: 0;
  will-change: transform;
  animation: apfelHeroDrift 28s ease-in-out infinite alternate;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    102deg,
    rgba(16, 20, 22, 0.94) 0%,
    rgba(16, 20, 22, 0.84) 52%,
    rgba(16, 20, 22, 0.56) 100%
  );
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(28px, 4.5vh, 48px);
}

.hero__main {
  max-width: 840px;
  margin: auto 0;
  text-align: left;
}

.hero__rule {
  width: 40px;
  height: 2px;
  background-color: var(--brand);
  margin-bottom: clamp(18px, 2.8vh, 26px);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.1vw, 54px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--paper);
  margin-bottom: clamp(16px, 2.4vh, 24px);
}

.hero__title-accent {
  color: var(--brand);
}

.hero__lead {
  font-size: clamp(15px, 1.22vw, 16.5px);
  line-height: 1.7;
  color: #C2CFD3;
  max-width: 560px;
  margin-bottom: clamp(24px, 3.6vh, 36px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero__btn {
  min-height: 48px;
  padding: 13px 30px;
  font-size: 14.5px;
}

.hero__dossier {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: clamp(16px, 2.2vh, 22px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 0;
}

.hero__dossier-item {
  display: block;
  padding-right: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color var(--transition);
}

.hero__dossier-link:hover .hero__dossier-val {
  color: var(--brand);
}

.hero__dossier-item:not(:first-child) {
  padding-left: 20px;
}

.hero__dossier-item:last-child {
  border-right: 0;
  padding-right: 0;
}

.hero__dossier-label {
  display: block;
  font-size: 11.5px;
  color: var(--ink-light-muted);
  margin-bottom: 4px;
}

.hero__dossier-val {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1024px) {
  .hero__dossier {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 20px;
  }

  .hero__dossier-item,
  .hero__dossier-item:not(:first-child) {
    padding: 0;
    border-right: 0;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 100svh;
    padding: calc(var(--header-h) + 18px) 0 18px;
  }

  .hero__inner {
    gap: 18px;
  }

  .hero__rule {
    margin-bottom: 12px;
  }

  .hero__title {
    font-size: 28px;
    line-height: 1.1;
    margin-bottom: 10px;
  }

  .hero__lead {
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 16px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .hero__btn {
    width: 100%;
    min-height: 42px;
    padding: 10px 16px;
    font-size: 13.5px;
  }

  .hero__dossier {
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
    padding-top: 12px;
  }

  .hero__dossier-label {
    font-size: 10.5px;
    margin-bottom: 2px;
  }

  .hero__dossier-val {
    font-size: 12px;
    line-height: 1.3;
  }
}

@media (max-height: 620px) {
  .hero {
    padding: 84px 0 18px;
  }

  .hero__title {
    font-size: clamp(26px, 3.6vw, 40px);
    margin-bottom: 12px;
  }

  .hero__lead {
    margin-bottom: 18px;
  }

  .hero__dossier {
    padding-top: 12px;
  }
}

.hero__rule { transform-origin: left center; animation: apfelRuleDraw 0.55s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero__title { animation: apfelHeroFade 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both; }
.hero__lead { animation: apfelHeroFade 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both; }
.hero__actions { animation: apfelHeroFade 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both; }
.hero__dossier { animation: apfelHeroFade 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both; }

@keyframes apfelHeroDrift {
  0%   { transform: scale(1.01) translate3d(0, 0, 0); }
  100% { transform: scale(1.075) translate3d(-1.2%, -0.8%, 0); }
}
@keyframes apfelRuleDraw {
  0%   { transform: scaleX(0); opacity: 0.4; }
  100% { transform: scaleX(1); opacity: 1; }
}
@keyframes apfelHeroFade {
  0%   { opacity: 0; transform: translate3d(0, 12px, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg, .hero__rule, .hero__title, .hero__lead, .hero__actions, .hero__dossier {
    animation: none !important;
  }
}
