.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  padding-top: 108px;
  padding-bottom: 108px;
  width: 100%;
}

@media (max-width: 600px) {
  .hero {
    padding-top: 48px;
    padding-bottom: 48px;
  }
}

.hero__title {
  font-size: var(--fs-hero-title);
  font-weight: 600;
  width: 100%;
}

.hero__text {
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--color-text-secondary);
  width: 100%;
}

.hero__text .link {
  color: var(--color-link);
  text-decoration: underline;
}

.hero__buttons {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Segmented nav */
.segment-nav {
  position: relative;
  display: inline-flex;
  gap: 4px;
  background: var(--color-soft);
  padding: 6px;
  border-radius: 20px;
  margin: 0 0 40px;
}

@media (max-width: 600px) {
  .segment-nav {
    display: flex;
    width: 100%;
  }

  .segment-nav__item {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
  }
}

.segment-nav__item {
  position: relative;
  width: 94px;
  padding: 9px 0 8px;
  border-radius: 14px;
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s ease;
}

.segment-nav__item[aria-selected="true"] {
  width: 120px;
  background: var(--color-white);
}

.segment-nav__icon-wrap {
  width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  opacity: 0;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, margin-right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.segment-nav__item[aria-selected="true"] .segment-nav__icon-wrap {
  width: 17px;
  opacity: 1;
  margin-right: 4px;
}

.segment-nav__icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  display: block;
}

/* Project grid */
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.project-column {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project-card__cover {
  position: relative;
  width: 100%;
  border-radius: var(--radius-card);
  background: var(--color-soft);
  overflow: hidden;
}

.project-card__cover img {
  width: 100%;
  height: auto;
  display: block;
}

.project-card__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-card__title {
  font-size: var(--fs-card-title);
  font-weight: 400;
  line-height: 28px;
}

.project-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-meta);
  font-weight: 500;
  color: var(--color-text-secondary);
}

.project-card__logo {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--color-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.project-card__logo img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

@media (max-width: 720px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

.project-grid .loader-wrap {
  grid-column: 1 / -1;
}
