.hero-section {
  --hero-section-black: #0d0d0d;
  --hero-section-ink: #161616;
  --hero-section-cream: #f5f2ea;
  --hero-section-muted: #eae4d8;
  --hero-section-red: #dc3610;

  position: relative;
  min-height: 1117px;
  overflow: visible;
  background-color: var(--hero-section-black);
}

.hero-section__bg {
  position: absolute;
  inset: 0 0 auto;
  z-index: 0;
  height: 1200px;
  overflow: hidden;
  background-color: var(--hero-section-black);
}

.hero-section__video,
.hero-section__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-section__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(13, 13, 13, 0) 84%, var(--hero-section-black) 100%),
    linear-gradient(90deg, rgba(13, 13, 13, 0.34) 0%, rgba(13, 13, 13, 0) 58%),
    linear-gradient(0deg, rgba(13, 13, 13, 0.1), rgba(13, 13, 13, 0.1));
}

.hero-section__inner {
  position: relative;
  z-index: 2;
  width: min(1290px, calc(100% - var(--space-3xl)));
  min-height: 1117px;
  margin: 0 auto;
  padding-top: 500px;
}

.hero-section__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: min(740px, 100%);
  gap: var(--space-xl);
}

.hero-section__title {
  max-width: 740px;
  margin: 0;
  color: var(--hero-section-cream);
  font-family: var(--font-display);
  font-size: calc(var(--fs-display-large) * 1.4);
  font-weight: var(--fw-bold);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-section__brush {
  display: block;
  width: 351px;
  height: auto;
  margin-top: calc(var(--space-lg) * -1);
  flex: 0 0 auto;
}

.hero-section__subtitle {
  max-width: 740px;
  margin: 0;
  color: var(--hero-section-cream);
  font-family: var(--font-body);
  font-size: var(--fs-section-text);
  font-weight: var(--fw-medium);
  line-height: 1.6;
  letter-spacing: 0;
}

.hero-section__actions {
  display: flex;
  align-items: flex-start;
}

.hero-section__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 410px));
  align-items: start;
  gap: 30px;
  margin-top: 137px;
}

.hero-section__card {
  display: flex;
  align-items: center;
  padding-top: 10px;
  border-top: 5px solid var(--hero-section-red);
  text-decoration: none;
  color: inherit;
  transition: border-color 220ms ease-out;
}

.hero-section__card--link {
  cursor: pointer;
}

.hero-section__card--link:focus-visible {
  outline: 2px solid var(--hero-section-muted);
  outline-offset: 4px;
}

.hero-section__card-frame {
  position: relative;
  width: 100%;
  height: 580px;
  overflow: hidden;
  background-color: var(--hero-section-ink);
}

.hero-section__card-video,
.hero-section__card-image {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 100%;
  height: 611px;
  object-fit: cover;
}

.hero-section__card-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: rgba(22, 22, 22, 0.8);
  transition: background-color 220ms ease-out;
}

.hero-section__card-content {
  position: absolute;
  left: 50%;
  top: 220px;
  z-index: 2;
  display: flex;
  width: min(350px, calc(100% - var(--space-xl)));
  transform: translateX(-50%);
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

@media (hover: hover) {
  .hero-section__card:hover {
    border-top-color: var(--hero-section-muted);
  }

  .hero-section__card:hover .hero-section__card-shade {
    background-color: rgba(185, 43, 11, 0.9);
  }
}

.hero-section__card:focus-visible .hero-section__card-shade {
  background-color: rgba(185, 43, 11, 0.9);
}

.hero-section__card:focus-visible {
  border-top-color: var(--hero-section-muted);
}

.hero-section__card-icon {
  display: block;
  width: 80px;
  height: 79px;
  flex-shrink: 0;
}

.hero-section__card-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-section__card-title {
  width: 100%;
  color: var(--hero-section-cream);
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  line-height: 1.1;
  letter-spacing: 0;
  text-align: center;
}

@media (max-width: 1140px) {
  .hero-section {
    min-height: 1040px;
  }

  .hero-section__inner {
    width: min(930px, calc(100% - var(--space-xl)));
    min-height: 1040px;
    padding-top: 430px;
  }

  .hero-section__title {
    font-size: var(--fs-hero-title);
  }

  .hero-section__cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-lg);
    margin-top: 120px;
  }

  .hero-section__card-frame {
    height: 470px;
  }

  .hero-section__card-content {
    top: 178px;
  }

  .hero-section__card-title {
    font-size: var(--fs-h4);
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    overflow: hidden;
  }

  .hero-section__bg {
    height: 720px;
  }

  .hero-section__inner {
    width: calc(100% - var(--space-xl));
    min-height: 0;
    padding-top: 320px;
    padding-bottom: var(--space-3xl);
  }

  .hero-section__content {
    gap: var(--space-lg);
  }

  .hero-section__title {
    font-size: var(--fs-display-medium);
  }

  .hero-section__brush {
    width: 280px;
    max-width: 100%;
    margin-top: calc(var(--space-md) * -1);
  }

  .hero-section__subtitle {
    font-size: var(--fs-section-text);
  }

  .hero-section__cards {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-top: var(--space-4xl);
  }

  .hero-section__card-frame {
    height: 420px;
  }

  .hero-section__card-content {
    top: 154px;
  }
}

@media (max-width: 360px) {
  .hero-section__inner {
    width: calc(100% - var(--space-lg));
  }

  .hero-section__title {
    font-size: var(--fs-section-title);
  }

  .hero-section__button {
    width: 100%;
  }
}
