.references-section {
    position: relative;
    width: 90vw;
    height: 100vh;
    overflow: hidden;
    display: grid;
    grid-template-columns: 120px 760px 1fr;
    align-items: flex-end;
    box-sizing: border-box;
    padding: 80px 20px 20px 172px;
}

.references-title {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 54px;
    font-weight: 400;
    color: transparent;
    -webkit-text-stroke: 2px var(--highlight-main);
    margin: 0 20px;
}

.reference-grid {
    width: 700px;
    min-height: 110px;
    gap: 18px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: repeat(3, auto);
}

.grid-item {
    height: 182px;
    border: 1px solid var(--highlight-light);
    border-radius: 22px;
    display: grid;
    grid-template-columns: 1fr 1px 220px;
    align-items: center;
}

.project-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.project-item p:first-child {
    font-size: 24px;
    color: var(--highlight-main);
}

.project-item p {
    margin: 0;
}

.reference-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 18px;
    line-height: 1.4;
    padding: 0 16px;
    min-width: 0;
}

.reference-text {
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}

.reference-toggle {
    margin-top: 8px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--highlight-main);
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.grid-item.expanded {
    height: auto;
    min-height: 182px;
    padding: 18px 0;
}

.grid-item.expanded .reference-text {
    display: block;
    overflow: visible;
}

.project-item p {
    margin: 0;
    color: var(--highlight-light);
}

.separator {
    width: 1px;
    height: 110px;
    background-color: var(--highlight-main);
}

.references-next-link {
    position: absolute;
    right: 0;
    top: 42%;
    transform: rotate(-180deg);
}

.references-next-link img {
    width: 110px;
    filter: hue-rotate(110deg);
}

.reference-dots {
    display: none;
}

.mobile-text {
    display: none;
}

