@keyframes hero-reveal-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero {
  background: linear-gradient(155deg, var(--surface) 0%, var(--canvas) 100%);
  min-height: 82vh;
  display: flex;
  align-items: center;
}

.hero__inner {
  width: min(1240px, calc(100% - 4rem));
  margin: 0 auto;
  padding: 8rem 0;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
  gap: 6rem;
  align-items: center;
}

.hero__copy { align-self: end; }

.hero__copy h1 {
  margin: 0 0 2rem;
  max-width: 12ch;
  font-weight: 800;
  font-size: clamp(4rem, 5vw, 6.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
  color: var(--ink);
  animation: hero-reveal-up 700ms var(--ease) both;
}

.hero__copy p {
  margin: 0 0 3.2rem;
  max-width: 42rem;
  font-size: 1.9rem;
  color: var(--ink-muted);
  animation: hero-reveal-up 700ms var(--ease) both 120ms;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 2.8rem;
  flex-wrap: wrap;
  animation: hero-reveal-up 700ms var(--ease) both 220ms;
}

.hero__actions .button {
  min-height: 4.8rem;
  padding: 0 2rem;
}

.hero__credentials {
  margin-top: 3.6rem;
  padding-top: 3.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.hero__credential {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
}

.hero__credential-icon {
  flex: 0 0 auto;
  width: 3.2rem;
  height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.hero__credential-icon.material-symbols-rounded {
  font-size: 3.2rem;
  line-height: 1;
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 40;
}
.hero__credential-icon--flag svg { width: 100%; height: auto; display: block; border-radius: 2px; }
.hero__credential-icon--check { color: #2e9e4f; }

.hero__credential-break { display: none; }

.hero__visual {
  aspect-ratio: 4 / 3;
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  animation: hero-reveal-up 800ms var(--ease) both 160ms;
}

.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.hero__logos {
  grid-column: 1 / -1;
  margin-top: 1rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5.2rem;
}
.hero__logo img {
  max-height: 3.6rem;
  width: auto;
  display: block;
  filter: grayscale(1);
  opacity: 0.65;
}
.hero__logo--invert img { filter: grayscale(1) invert(1); opacity: 0.75; max-height: 2.8rem; }
.hero__logo--lg img { max-height: 4.6rem; }

.hero__logos-marquee { display: none; }

@media (min-width: 1440px) {
  .hero__logos { gap: 5.6rem; flex-wrap: nowrap; }
  .hero__logo { flex: 0 0 auto; }
  .hero__logo img { max-height: 3.9rem; }
  .hero__logo--invert img { max-height: 3.1rem; }
  .hero__logo--lg img { max-height: 4.9rem; }
}

@media (max-width: 1024px) {
  .hero { min-height: 0; }
  .hero__inner { grid-template-columns: 1fr; padding: 6rem 0; gap: 0; }
  .hero__copy { align-self: auto; display: contents; }
  .hero__copy h1 { max-width: 100%; order: 1; }
  .hero__copy p { order: 2; }
  .hero__actions { order: 3; }
  .hero__visual { order: 4; margin-top: 3.6rem; }
  .hero__credentials { order: 5; }
  .hero__logos { margin-top: 0; padding-top: 3.2rem; gap: 3.2rem; order: 6; }
}

@media (max-width: 640px) {
  .hero__credentials {
    margin-top: 2.8rem;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    background: #efeeeb;
    border-radius: var(--radius-lg);
  }
  .hero__credential {
    flex: 1 1 0;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: left;
    gap: 1rem;
    padding: 2.2rem 1rem;
    font-size: 1.2rem;
    line-height: 1.34;
    position: relative;
  }
  .hero__credential + .hero__credential::before {
    content: "";
    position: absolute;
    left: 0;
    top: 22%;
    bottom: 22%;
    width: 1px;
    background: var(--line);
  }
  .hero__credential-icon { width: 2.2rem; height: 2.2rem; }
  .hero__credential-icon.material-symbols-rounded { font-size: 2.2rem; }
  .hero__credential-break { display: inline; }

  .hero__logos { display: none; }

  .hero__logos-marquee {
    display: none;
    order: 6;
    margin-top: 0;
    padding-top: 2.4rem;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
  }
  .hero__logos-track {
    display: flex;
    width: max-content;
    animation: hero-logos-scroll 24s linear infinite;
  }
  .hero__logos-group {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 3.6rem;
    padding-right: 3.6rem;
  }
  .hero__logo-m {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero__logo-m img {
    max-height: 4.4rem;
    width: auto;
    display: block;
    filter: grayscale(1);
    opacity: 0.7;
  }
  .hero__logo-m.hero__logo--invert img { filter: grayscale(1) invert(1); opacity: 0.8; }
  .hero__logo-m.hero__logo--lg img { max-height: 5.6rem; }
  .hero__logo-m.hero__logo--wide img { max-height: none; width: 16rem; }
}

@keyframes hero-logos-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__logos-track { animation: none; }
}

@media (max-width: 560px) {
  .hero__inner { width: calc(100% - 3.2rem); }
}

@media (max-width: 520px) {
  .hero__inner { padding: 4.8rem 0; }
  .hero__logos-marquee { padding-top: 2rem; }
  .hero__logo-m img { max-height: 3.8rem; }
  .hero__logo-m.hero__logo--lg img { max-height: 4.8rem; }
  .hero__logo-m.hero__logo--wide img { width: 13.5rem; }

  .hero__credential {
    gap: 0.7rem;
    padding: 1.8rem 0.7rem;
    font-size: 1.05rem;
  }
  .hero__credential-icon { width: 2rem; height: 2rem; }
  .hero__credential-icon.material-symbols-rounded { font-size: 2rem; }
}
