.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--graphite);
  color: var(--paper);
  overflow: clip;
  contain: layout paint;
  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.56;
  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.78) 50%,
    rgba(16, 20, 22, 0.34) 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__grid {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  align-items: center;
  justify-content: start;
  gap: clamp(24px, 3vw, 40px);
  margin: auto 0;
}

.hero__main {
  max-width: 760px;
  text-align: left;
}

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

.hero__metric-card {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 15px 18px;
  background: linear-gradient(135deg, rgba(22, 27, 29, 0.72) 0%, rgba(14, 18, 20, 0.56) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-left: 2px solid rgba(99, 175, 56, 0.55);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-decoration: none;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease, background 0.28s ease;
}

.hero__metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
  border-left-color: var(--brand);
  background: linear-gradient(135deg, rgba(26, 32, 35, 0.84) 0%, rgba(16, 20, 22, 0.72) 100%);
}

.hero__metric-card--brand {
  border-left-color: var(--brand);
  background: linear-gradient(135deg, rgba(24, 32, 27, 0.78) 0%, rgba(14, 19, 17, 0.64) 100%);
}

.hero__metric-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  padding-top: 5px;
}

.hero__metric-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.hero__metric-val {
  font-family: var(--font-display);
  font-size: clamp(19px, 1.55vw, 22px);
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
  color: var(--paper);
}

.hero__metric-card--brand .hero__metric-val {
  color: #ffffff;
}

.hero__metric-label {
  font-size: 12.5px;
  line-height: 1.38;
  color: #AEBFC4;
}

.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(3, 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__grid {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 24px;
  }

  .hero__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
  }

  .hero__metric-card {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 16px;
  }

  .hero__metric-num {
    padding-top: 0;
  }

  .hero__metric-val {
    font-size: clamp(17px, 2.3vw, 20px);
  }

  .hero__dossier {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 0;
  }
}

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

  .hero__inner {
    gap: 12px;
  }

  .hero__grid {
    gap: 14px;
  }

  .hero__rule {
    margin-bottom: 8px;
  }

  .hero__title {
    font-size: 26px;
    line-height: 1.1;
    margin-bottom: 8px;
  }

  .hero__lead {
    font-size: 13.5px;
    line-height: 1.42;
    margin-bottom: 12px;
  }

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

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

  .hero__metrics {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .hero__metric-card {
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
  }

  .hero__metric-card:hover {
    transform: none;
  }

  .hero__metric-num {
    font-size: 10.5px;
  }

  .hero__metric-body {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
  }

  .hero__metric-val {
    font-size: 15px;
    line-height: 1.15;
    flex-shrink: 0;
  }

  .hero__metric-label {
    font-size: 11px;
    line-height: 1.25;
    text-align: right;
  }

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

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

  .hero__dossier-item:first-child {
    padding-right: 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hero__dossier-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .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__metrics { animation: apfelHeroFade 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.18s 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__metrics, .hero__dossier {
    animation: none !important;
  }
}
