/* Home aprovada: ritmo visual, projetos, atuacao, CTA final e footer */

.home-page-v2 {
  --home-section-title-size: clamp(3rem, 5.35vw, 5.65rem);
  --home-section-space: clamp(74px, 7vw, 108px);
  --home-section-line: 0.94;
  --home-section-letter: -0.055em;
}

/* Faixa tecnica entre a apresentacao e os projetos */

.home-page-v2 .home-tech-ribbon {
  position: relative;
  z-index: 4;
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--theme-border, rgba(52, 64, 85, .14));
  border-bottom: 1px solid var(--theme-border, rgba(52, 64, 85, .14));
  background: color-mix(in srgb, var(--theme-surface-strong, #F8FAFC) 52%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.home-page-v2 .home-tech-ribbon::before,
.home-page-v2 .home-tech-ribbon::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  width: min(9vw, 130px);
  pointer-events: none;
}

.home-page-v2 .home-tech-ribbon::before {
  left: 0;
  background: linear-gradient(90deg, var(--theme-bg-start, #F8FAFC), transparent);
}

.home-page-v2 .home-tech-ribbon::after {
  right: 0;
  background: linear-gradient(270deg, var(--theme-bg-end, #D9E0E7), transparent);
}

.home-page-v2 .home-tech-ribbon__track {
  display: flex;
  width: max-content;
  min-width: 100%;
  animation: homeTechRibbon 34s linear infinite;
  will-change: transform;
}

.home-page-v2 .home-tech-ribbon:hover .home-tech-ribbon__track {
  animation-play-state: paused;
}

.home-page-v2 .home-tech-ribbon__group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  padding: 16px 6px;
}

.home-page-v2 .home-tech-ribbon__item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 39px;
  padding: 0 15px;
  border: 1px solid var(--theme-border, rgba(52, 64, 85, .14));
  border-radius: 999px;
  background: color-mix(in srgb, var(--theme-surface-strong, #F8FAFC) 82%, transparent);
  color: var(--theme-text, #0B1324);
  box-shadow: 0 7px 22px rgba(52, 64, 85, .055);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
  white-space: nowrap;
}

.home-page-v2 .home-tech-ribbon__item i {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--theme-text-soft, #5B6474) 62%, #68B8AD 38%);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--theme-text-soft, #5B6474) 7%, transparent);
}

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

/* Escala tipografica comum para os grandes titulos da home */

.home-page-v2 .home-method__header h2,
.home-page-v2 .home-contact-cta__title {
  font-size: var(--home-section-title-size);
  font-weight: 700;
  line-height: var(--home-section-line);
  letter-spacing: var(--home-section-letter);
}

/* Como eu atuo */

.home-page-v2 .home-method {
  position: relative;
  padding: var(--home-section-space) 0;
  border-top: 1px solid var(--theme-border, rgba(52, 64, 85, .14));
}

.home-page-v2 .home-method__header {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, .55fr);
  align-items: end;
  gap: clamp(32px, 6vw, 90px);
  margin-bottom: clamp(46px, 5vw, 70px);
}

.home-page-v2 .home-method__header h2 {
  max-width: 880px;
  margin: 14px 0 0;
  color: var(--theme-text, #0B1324);
}

.home-page-v2 .home-method__intro {
  max-width: 540px;
  margin: 0;
  color: var(--theme-text-soft, #5B6474);
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  line-height: 1.72;
}

.home-page-v2 .home-method__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--theme-border, rgba(52, 64, 85, .15));
  border-bottom: 1px solid var(--theme-border, rgba(52, 64, 85, .15));
}

.home-page-v2 .home-method__item {
  min-width: 0;
  padding: 30px 28px 34px;
  border-right: 1px solid var(--theme-border, rgba(52, 64, 85, .15));
}

.home-page-v2 .home-method__item:last-child {
  border-right: 0;
}

.home-page-v2 .home-method__number {
  display: block;
  margin-bottom: 36px;
  color: var(--theme-text-soft, #5B6474);
  font-family: "IBM Plex Mono", "JetBrains Mono", monospace;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
}

.home-page-v2 .home-method__item h3 {
  margin: 0 0 13px;
  color: var(--theme-text, #0B1324);
  font-size: clamp(1.05rem, 1.5vw, 1.32rem);
  line-height: 1.2;
}

.home-page-v2 .home-method__item p {
  margin: 0;
  color: var(--theme-text-soft, #5B6474);
  font-size: .94rem;
  line-height: 1.68;
}

/* Encerramento */

.home-page-v2 .home-contact-cta {
  position: relative;
  padding: var(--home-section-space) 0;
  overflow: hidden;
  border-top: 1px solid var(--theme-border, rgba(52, 64, 85, .14));
}

.home-page-v2 .home-contact-cta::before {
  content: "";
  position: absolute;
  width: min(54vw, 720px);
  aspect-ratio: 1;
  right: -18%;
  top: -50%;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--theme-text-soft, #5B6474) 9%, transparent), transparent 68%);
}

.home-page-v2 .home-contact-cta__content {
  position: relative;
  max-width: 1040px;
}

.home-page-v2 .home-contact-cta__title {
  max-width: 880px;
  margin: 18px 0 22px;
  color: var(--theme-text, #0B1324);
}

.home-page-v2 .home-contact-cta__description {
  max-width: 760px;
  margin: 0;
  color: var(--theme-text-soft, #5B6474);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.7;
}

.home-page-v2 .home-contact-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* Footer */

.home-page-v2 .footer {
  padding: 30px 0 36px;
  border-top: 1px solid var(--theme-border, rgba(52, 64, 85, .14));
}

.home-page-v2 .footer-grid {
  align-items: center;
}

.home-page-v2 .footer-grid > p {
  color: var(--theme-text-soft, #5B6474);
  font-size: .84rem;
}

.home-page-v2 .socials {
  display: flex;
  align-items: center;
  gap: 24px;
}

.home-page-v2 .socials a {
  position: relative;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--theme-text-soft, #344055);
  font-size: .84rem;
  font-weight: 700;
}

.home-page-v2 .socials a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right .2s ease;
}

.home-page-v2 .socials a:hover::after {
  right: 0;
}

html[data-theme="dark"] .home-page-v2 .home-tech-ribbon::before {
  background: linear-gradient(90deg, var(--theme-bg-start, #0B1324), transparent);
}

html[data-theme="dark"] .home-page-v2 .home-tech-ribbon::after {
  background: linear-gradient(270deg, var(--theme-bg-end, #344055), transparent);
}

@media (max-width: 980px) {
  .home-page-v2 {
    --home-section-title-size: clamp(2.8rem, 8.3vw, 5rem);
    --home-section-space: clamp(68px, 8vw, 92px);
  }

  .home-page-v2 .home-method__header {
    grid-template-columns: 1fr;
  }

  .home-page-v2 .home-method__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page-v2 .home-method__item:nth-child(2) {
    border-right: 0;
  }

  .home-page-v2 .home-method__item:nth-child(-n+2) {
    border-bottom: 1px solid var(--theme-border, rgba(52, 64, 85, .15));
  }
}

@media (max-width: 640px) {
  .home-page-v2 {
    --home-section-title-size: clamp(2.5rem, 13vw, 4rem);
    --home-section-space: 64px;
  }

  .home-page-v2 .home-tech-ribbon__group {
    gap: 8px;
    padding-block: 12px;
  }

  .home-page-v2 .home-tech-ribbon__item {
    min-height: 35px;
    padding-inline: 12px;
    font-size: .65rem;
  }

  .home-page-v2 .home-method__grid {
    grid-template-columns: 1fr;
  }

  .home-page-v2 .home-method__item,
  .home-page-v2 .home-method__item:nth-child(2) {
    padding: 24px 0 28px;
    border-right: 0;
    border-bottom: 1px solid var(--theme-border, rgba(52, 64, 85, .15));
  }

  .home-page-v2 .home-method__item:last-child {
    border-bottom: 0;
  }

  .home-page-v2 .home-method__number {
    margin-bottom: 22px;
  }

  .home-page-v2 .home-contact-cta__actions {
    flex-direction: column;
  }

  .home-page-v2 .home-contact-cta__actions .btn {
    width: 100%;
  }

  .home-page-v2 .footer-grid {
    gap: 20px;
  }

  .home-page-v2 .socials {
    flex-wrap: wrap;
    gap: 16px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page-v2 .home-tech-ribbon__track {
    animation: none;
    transform: none;
  }
}

/* Hero refinements */
.home-page-v2 .home-hero-v2__title {
  white-space: nowrap;
  font-size: clamp(4.2rem, 8vw, 8.2rem);
  line-height: .88;
}

.home-page-v2 .home-hero-v2__content {
  max-width: 860px;
}

.home-page-v2 .home-hero-v2__areas {
  display: none;
}

/* Projetos: regra consolidada, sem overrides duplicados */
.home-page-v2 .home-projects-section {
  padding-top: clamp(54px, 5vw, 78px);
  padding-bottom: clamp(64px, 6vw, 92px);
}

.home-page-v2 .home-projects-section .section-head {
  display: block;
  margin-bottom: 34px;
}

.home-page-v2 .home-projects-section .section-head > div:first-child {
  min-width: 0;
  max-width: 940px;
}

.home-page-v2 .home-projects-section .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid color-mix(in srgb, var(--theme-border, rgba(52, 64, 85, .16)) 88%, #BFD0F8 12%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--theme-surface-strong, #F8FAFC) 90%, #DDE8FF 10%);
  color: #274B8F;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-page-v2 .home-projects-section .section-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #68B8AD;
  box-shadow: 0 0 0 5px color-mix(in srgb, #68B8AD 14%, transparent);
}

.home-page-v2 .home-projects-section .section-title {
  max-width: 940px;
  margin: 16px 0 0;
  color: var(--theme-text, #0B1324);
  font-size: clamp(3.05rem, 3.7vw, 4.15rem);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.052em;
}

.home-page-v2 .home-projects-section .section-title span {
  display: block;
  white-space: nowrap;
}

.home-page-v2 .home-projects-section .section-description {
  max-width: 920px;
  margin: 20px 0 0;
  color: var(--theme-text-soft, #5B6474);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.7;
}

.home-page-v2 .home-projects-section .featured-filters {
  margin-bottom: 38px;
}

.home-page-v2 .home-projects-section .project-card > p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.home-page-v2 .featured-filters--custom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-page-v2 .featured-filters--custom .filter-btn {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--theme-border, rgba(52, 64, 85, .16));
  border-radius: 999px;
  background: color-mix(in srgb, var(--theme-surface-strong, #F8FAFC) 70%, transparent);
  color: var(--theme-text-soft, #344055);
  box-shadow: none;
  font-size: clamp(.92rem, 1vw, 1rem);
  font-weight: 700;
}

.home-page-v2 .featured-filters--custom .filter-btn.is-active {
  border-color: #163B86;
  background: #163B86;
  color: #fff;
}

.home-page-v2 .featured-filters--custom .filter-btn:hover {
  border-color: color-mix(in srgb, var(--theme-text-soft, #5B6474) 28%, var(--theme-border));
  transform: translateY(-1px);
}

@media (max-width: 1200px) {
  .home-page-v2 .home-hero-v2__title {
    white-space: normal;
  }
}

@media (max-width: 1100px) {
  .home-page-v2 .home-projects-section .section-title {
    max-width: 860px;
    font-size: clamp(2.9rem, 6.5vw, 4rem);
  }

  .home-page-v2 .home-projects-section .section-title span {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .home-page-v2 .home-projects-section .section-title {
    font-size: clamp(2.45rem, 11.5vw, 3.45rem);
    line-height: 1;
  }
}

/* CTA final: fundo limpo e titulo em uma linha no desktop */
.home-page-v2 .home-contact-cta {
  background: color-mix(in srgb, var(--theme-bg-start, #F8FAFC) 88%, var(--theme-bg-end, #D9E0E7) 12%);
}

.home-page-v2 .home-contact-cta::before {
  opacity: .72;
}

.home-page-v2 .home-contact-cta__content {
  display: block;
  max-width: none;
}

.home-page-v2 .home-contact-cta__title {
  width: max-content;
  max-width: none;
  margin: 18px 0 22px;
  font-size: clamp(2.75rem, 3.25vw, 3.9rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.048em;
  white-space: nowrap;
}

.home-page-v2 .home-contact-cta__description {
  max-width: 920px;
}

html[data-theme="dark"] .home-page-v2 .home-contact-cta {
  background: color-mix(in srgb, var(--theme-bg-start, #0B1324) 88%, var(--theme-bg-end, #344055) 12%);
}

@media (max-width: 1180px) {
  .home-page-v2 .home-contact-cta__title {
    width: auto;
    white-space: normal;
    font-size: clamp(2.7rem, 5.5vw, 3.8rem);
  }
}





/* Projeto destaque da Home: card horizontal editorial */
.home-page-v2 .projects-featured-slot {
  margin: 28px 0 30px;
}

.home-page-v2 .projects-featured-card {
  display: flex;
  width: 100%;
  min-height: 340px;
  overflow: hidden;
  border: 1px solid var(--theme-border, rgba(52, 64, 85, .16));
  border-radius: 24px;
  background: color-mix(in srgb, var(--theme-surface-strong, #F8FAFC) 94%, transparent);
  box-shadow: 0 22px 55px rgba(11, 19, 36, .08);
}

.home-page-v2 .projects-featured-card__media {
  position: relative;
  width: 40%;
  min-height: 340px;
  flex: 0 0 40%;
  overflow: hidden;
  background: var(--theme-surface-muted, #EEF2F4);
}

.home-page-v2 .projects-featured-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  object-position: center;
}

.home-page-v2 .projects-featured-card__placeholder {
  width: 100%;
  height: 100%;
  min-height: 340px;
  background: linear-gradient(135deg, #F7F9FC, #E4EAF0);
}

.home-page-v2 .projects-featured-card__body {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(28px, 4vw, 48px);
}

.home-page-v2 .projects-featured-card__eyebrow {
  margin-bottom: 16px;
  color: var(--theme-text-soft, #5B6474);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.home-page-v2 .projects-featured-card__body h3 {
  max-width: 700px;
  margin: 0 0 14px;
  color: var(--theme-text, #0B1324);
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.12;
}

.home-page-v2 .projects-featured-card__body p {
  max-width: 720px;
  margin: 0;
  color: var(--theme-text-soft, #5B6474);
  font-size: clamp(.98rem, 1.15vw, 1.06rem);
  line-height: 1.72;
}

.home-page-v2 .projects-featured-card__action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--theme-text, #0B1324);
  font-size: .9rem;
  font-weight: 800;
  cursor: pointer;
}

.home-page-v2 .projects-featured-card__action svg {
  width: 17px;
  height: 17px;
  transition: transform .2s ease;
}

.home-page-v2 .projects-featured-card__action:hover svg {
  transform: translateX(4px);
}

.home-page-v2 .projects-featured-card__action:focus-visible {
  outline: 2px solid var(--theme-accent-2, #B0A9F1);
  outline-offset: 5px;
  border-radius: 4px;
}

html[data-theme="dark"] .home-page-v2 .projects-featured-card {
  background: color-mix(in srgb, var(--theme-surface-strong, #111827) 94%, transparent);
}

@media (max-width: 820px) {
  .home-page-v2 .projects-featured-card {
    display: grid;
    min-height: 0;
  }

  .home-page-v2 .projects-featured-card__media {
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .home-page-v2 .projects-featured-card__media img,
  .home-page-v2 .projects-featured-card__placeholder {
    min-height: 0;
    height: 100%;
  }

  .home-page-v2 .projects-featured-card__body {
    padding: 24px;
  }
}


/* Projetos da Home: destaque principal + filtros + 3 cards na paleta Letícia Silva */
.home-page-v2 .home-projects-section {
  padding-top: clamp(54px, 5vw, 78px);
  padding-bottom: clamp(72px, 7vw, 104px);
  overflow: hidden;
  background: var(--theme-bg, #EEF2F4);
}

.home-page-v2 .home-projects-container {
  width: min(1460px, calc(100% - 48px));
  max-width: 1460px;
}

.home-page-v2 .home-projects-original-head {
  display: block;
  margin-bottom: 34px;
}

.home-page-v2 .home-projects-section .home-projects-original-head > div:first-child {
  width: 100%;
  min-width: 0;
  max-width: none;
}

.home-page-v2 .home-projects-original-head .projects-section-kicker-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.5vw, 34px);
  width: 100%;
}

.home-page-v2 .home-projects-original-head .projects-section-kicker-row .section-kicker {
  flex: 0 0 auto;
  margin: 0;
  white-space: nowrap;
}

.home-page-v2 .home-projects-original-head .projects-section-divider {
  display: block;
  flex: 1 1 auto;
  min-width: 72px;
  height: 1px;
  background: color-mix(in srgb, var(--theme-text-soft, #5B6474) 24%, transparent);
}

.home-page-v2 .home-projects-section .home-projects-original-head .section-description {
  width: 100%;
  max-width: none;
  margin: 20px auto 0;
  text-align: center;
}

.home-page-v2 .projects-featured-slot {
  display: block;
  width: 100%;
  margin-top: 0;
}

.home-page-v2 .projects-featured-slot + .home-projects-grid {
  margin-top: 26px;
}

.home-page-v2 .home-project-reference-card {
  overflow: hidden;
  border: 1px solid rgba(201, 208, 214, .84);
  border-radius: 22px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 16px 38px rgba(11, 19, 36, .08);
}

.home-page-v2 .home-project-reference-card--featured {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(380px, .8fr);
  align-items: stretch;
  min-height: 420px;
  border-color: rgba(176, 169, 241, .48);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(247, 245, 239, .96));
  box-shadow:
    0 22px 52px rgba(11, 19, 36, .10),
    0 0 0 1px rgba(176, 169, 241, .10);
}

.home-page-v2 .home-project-reference-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #EEF2F4;
  cursor: pointer;
}

.home-page-v2 .home-project-reference-card--featured .home-project-reference-card__media {
  min-height: 420px;
  aspect-ratio: auto;
  border-right: 1px solid rgba(201, 208, 214, .62);
}

.home-page-v2 .home-project-reference-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-page-v2 .home-project-reference-card__placeholder {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 28% 18%, rgba(176, 169, 241, .20), transparent 30%),
    linear-gradient(135deg, #F7F5EF, #E8EDF1);
}

.home-page-v2 .home-project-reference-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(11, 19, 36, .06) 100%);
  pointer-events: none;
}

.home-page-v2 .home-project-reference-card__badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border: 1px solid rgba(148, 135, 233, .24);
  border-radius: 999px;
  background: linear-gradient(135deg, #B0A9F1, #D7D2FA);
  color: #0B1324;
  box-shadow: 0 8px 20px rgba(176, 169, 241, .20);
  font-size: .72rem;
  font-weight: 800;
}

.home-page-v2 .home-project-reference-card--featured .home-project-reference-card__badge {
  background: linear-gradient(135deg, #0B1324, #344055);
  border-color: rgba(11, 19, 36, .14);
  color: #F7F5EF;
}

.home-page-v2 .home-project-reference-card__body {
  padding: 20px 22px 24px;
}

.home-page-v2 .home-project-reference-card--featured .home-project-reference-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 4vw, 48px);
}

.home-page-v2 .home-project-reference-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.home-page-v2 .home-project-reference-card__tags li {
  padding: 5px 9px;
  border: 1px solid rgba(176, 169, 241, .30);
  border-radius: 999px;
  background: rgba(176, 169, 241, .10);
  color: #344055;
  font-size: .66rem !important;
  font-weight: 700;
  line-height: 1.15;
}

.home-page-v2 .home-project-reference-card__body h3 {
  margin: 0;
  color: #0B1324;
  font-size: clamp(1.35rem, 1.7vw, 1.72rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.home-page-v2 .home-project-reference-card--featured .home-project-reference-card__body h3 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.home-page-v2 .home-project-reference-card__body > p {
  display: -webkit-box;
  max-width: 100%;
  margin: 12px 0 0;
  overflow: hidden;
  color: #5B6474;
  font-size: .92rem;
  line-height: 1.56;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.home-page-v2 .home-project-reference-card--featured .home-project-reference-card__body > p {
  margin-top: 16px;
  font-size: 1rem;
  line-height: 1.68;
  -webkit-line-clamp: 5;
}

.home-page-v2 .home-project-reference-card__action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  margin-top: 20px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #6F61C8;
  font: inherit;
  font-size: .88rem;
  font-weight: 800;
  cursor: pointer;
}

.home-page-v2 .home-project-reference-card--featured .home-project-reference-card__action {
  color: #0B1324;
}

.home-page-v2 .home-project-reference-card__action svg {
  width: 16px;
  height: 16px;
}

.home-page-v2 .home-project-reference-card__action:focus-visible,
.home-page-v2 .home-project-reference-card__media:focus-visible {
  outline: 2px solid #9487E9;
  outline-offset: 4px;
}

.home-page-v2 .home-projects-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 24px auto 0;
}

.home-page-v2 .home-projects-filters .filter-btn {
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid rgba(201, 208, 214, .88);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: #344055;
  font-weight: 700;
  box-shadow: none;
}

.home-page-v2 .home-projects-filters .filter-btn:hover {
  border-color: rgba(176, 169, 241, .64);
  background: rgba(176, 169, 241, .08);
}

.home-page-v2 .home-projects-filters .filter-btn.is-active {
  border-color: rgba(148, 135, 233, .40);
  background: linear-gradient(135deg, #B0A9F1, #D7D2FA);
  color: #0B1324;
}

.home-page-v2 .home-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.home-page-v2 .home-projects-section .portfolio-actions {
  display: flex;
  width: 100%;
  justify-content: center;
  margin-top: 34px;
  text-align: center;
}

.home-page-v2 .home-projects-section .portfolio-actions .btn {
  border-color: rgba(52, 64, 85, .18);
  background: #0B1324;
  color: #F7F5EF;
}

.home-page-v2 .home-projects-section .portfolio-actions .btn:hover {
  border-color: rgba(148, 135, 233, .52);
  background: #344055;
}

html[data-theme="dark"] .home-page-v2 .home-project-reference-card {
  border-color: rgba(201, 208, 214, .14);
  background: #162033;
}

html[data-theme="dark"] .home-page-v2 .home-project-reference-card__body h3,
html[data-theme="dark"] .home-page-v2 .home-project-reference-card--featured .home-project-reference-card__action {
  color: #F7F5EF;
}

html[data-theme="dark"] .home-page-v2 .home-project-reference-card__body > p,
html[data-theme="dark"] .home-page-v2 .home-project-reference-card__tags li {
  color: #D8DEE8;
}

@media (max-width: 1020px) {
  .home-page-v2 .home-project-reference-card--featured {
    grid-template-columns: 1fr;
  }

  .home-page-v2 .home-project-reference-card--featured .home-project-reference-card__media {
    min-height: 0;
    aspect-ratio: 16 / 9;
    border-right: 0;
    border-bottom: 1px solid rgba(201, 208, 214, .62);
  }

  .home-page-v2 .home-projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .home-page-v2 .home-projects-filters {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    margin-top: 20px;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .home-page-v2 .home-projects-filters .filter-btn {
    flex: 0 0 auto;
  }

  .home-page-v2 .home-projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .home-page-v2 .home-projects-section {
    padding-top: 54px;
  }

  .home-page-v2 .home-projects-original-head .projects-section-kicker-row {
    gap: 14px;
  }

  .home-page-v2 .home-projects-original-head .projects-section-divider {
    min-width: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page-v2 .home-project-reference-card,
  .home-page-v2 .home-project-reference-card__action,
  .home-page-v2 .home-project-reference-card__media,
  .home-page-v2 .home-projects-filters .filter-btn {
    transition: none !important;
  }
}
